gdpr-guard-local
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.gdprGuardLocal=e():t.gdprGuardLocal=e()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=9)}([function(t,e,r){(function(e){var r=Object.assign?Object.assign:function(t,e,r,n){for(var o=1;o<arguments.length;o++)a(Object(arguments[o]),(function(e,r){t[r]=e}));return t},n=function(){if(Object.create)return function(t,e,n,o){var i=u(arguments,1);return r.apply(this,[Object.create(t)].concat(i))};{function t(){}return function(e,n,o,i){var a=u(arguments,1);return t.prototype=e,r.apply(this,[new t].concat(a))}}}(),o=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},i="undefined"!=typeof window?window:e;function u(t,e){return Array.prototype.slice.call(t,e||0)}function a(t,e){s(t,(function(t,r){return e(t,r),!1}))}function s(t,e){if(c(t)){for(var r=0;r<t.length;r++)if(e(t[r],r))return t[r]}else for(var n in t)if(t.hasOwnProperty(n)&&e(t[n],n))return t[n]}function c(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:r,create:n,trim:o,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:u,each:a,map:function(t,e){var r=c(t)?[]:{};return s(t,(function(t,n){return r[n]=e(t,n),!1})),r},pluck:s,isList:c,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:i}}).call(this,r(11))},function(t,e,r){var n;"undefined"!=typeof self?self:"undefined"!=typeof window&&window,n=()=>(()=>{"use strict";var t={315:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.makeGuard=void 0;var n=r(670);e.makeGuard=function(t,e,r,o,i){return void 0===r&&(r=n.GdprStorage.Cookie),void 0===o&&(o=!1),void 0===i&&(i=null),{name:t,description:e,storage:r,required:o,enabled:null===i?o:i,enable:function(){return this.enabled||this.toggle(),this},disable:function(){return this.enabled&&this.toggle(),this},toggle:function(){return this.required||(this.enabled=!this.enabled),this},makeRequired:function(){return this.required=!0,this.enabled=!0,this},isEnabled:function(t){return this.name===t&&this.enabled},enableForStorage:function(t){return this.enabled||this.toggleForStorage(t),this},disableForStorage:function(t){return this.enabled&&this.toggleForStorage(t),this},toggleForStorage:function(t){return this.storage!=t||this.required||this.toggle(),this},raw:function(){return JSON.parse(JSON.stringify(this))}}}},822:function(t,e,r){var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.GdprGuardGroup=void 0;var u=r(670),a=function(){function t(t,e,r,n){void 0===e&&(e=""),void 0===r&&(r=!1),void 0===n&&(n=!1),this.name=t,this.description=e,this.enabled=r,this.required=n,this.storage=u.GdprStorage.None,this.bindings=new Map,this.required&&(this.enabled=!0)}return t.for=function(e,r,n,o){return void 0===r&&(r=""),void 0===n&&(n=!1),void 0===o&&(o=!1),new t(e,r,n,o)},t.prototype.addGuard=function(t){return this.bindings.set(t.name,t),this},t.prototype.hasGuard=function(t){return this.name===t||this.bindings.has(t)||this.reduceSubGroupsPred((function(e){return e.hasGuard(t)}))},t.prototype.getGuard=function(t){var e,r;return this.name===t?this:null!==(r=null!==(e=this.bindings.get(t))&&void 0!==e?e:this.reduceSubGroups((function(e){return e.getGuard(t)})))&&void 0!==r?r:null},t.prototype.isEnabled=function(t){if(this.hasGuard(t)){var e=this.getGuard(t);if(null!==e)return e.enabled}return!1},t.prototype.enable=function(){return this.required?this:(this.enabled=!0,this.doForEachGuard((function(t){return t.enable()})))},t.prototype.disable=function(){return this.required?this:(this.enabled=!1,this.doForEachGuard((function(t){return t.disable()})))},t.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},t.prototype.makeRequired=function(){return this.required=!0,this.enabled=!0,this.doForEachGuard((function(t){return t.makeRequired()}))},t.prototype.enableForStorage=function(t){return this.required?this:this.doForEachGuard((function(e){e.enableForStorage(t)}))},t.prototype.disableForStorage=function(t){return this.required?this:this.doForEachGuard((function(e){e.disableForStorage(t)}))},t.prototype.toggleForStorage=function(t){return this.required?this:this.doForEachGuard((function(e){e.toggleForStorage(t)}))},t.prototype.raw=function(){var t={name:this.name,description:this.description,enabled:this.enabled,required:this.required,storage:this.storage,guards:[]};return t.guards=o([],n(this.bindings),!1).map((function(t){var e=n(t,2);return e[0],e[1].raw()})),t},t.prototype.doForEachGuard=function(t){return this.bindings.forEach((function(e){return t(e)})),this},t.prototype.reduceSubGroupsPred=function(e){var r,o;try{for(var u=i(this.bindings),a=u.next();!a.done;a=u.next()){var s=n(a.value,2),c=(s[0],s[1]);if(c instanceof t&&e(c))return!0}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return!1},t.prototype.reduceSubGroups=function(e){var r,o;try{for(var u=i(this.bindings),a=u.next();!a.done;a=u.next()){var s=n(a.value,2),c=(s[0],s[1]);if(c instanceof t){var f=e(c);if(f)return f}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return null},t.prototype.getGuards=function(){return o([],n(this.bindings.values()),!1)},t}();e.GdprGuardGroup=a},777:function(t,e,r){var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.GdprManager=void 0;var u=r(822),a=r(670),s=r(554),c=r(779),f=function(){function t(){this.bannerWasShown=!1,this.enabled=!0,this.events=new s.GdprManagerEventHub,this.groups=new Map,this.name="manager",this.description="Manager of GDPR guard groups",this.storage=a.GdprStorage.None,this.required=!1}return t.create=function(e){void 0===e&&(e=[]);var r=new t;return e.forEach((function(t){return r.addGroup(t)})),r},t.prototype.closeBanner=function(){var t=this;this.bannerWasShown=!0,(0,c.visitGdpr)(this,{onEach:function(e){e.enabled?t.events.enable(e.name):t.events.disable(e.name)}})},t.prototype.resetAndShowBanner=function(){this.bannerWasShown=!1},t.prototype.createGroup=function(t,e){return void 0===e&&(e=""),this.addGroup(u.GdprGuardGroup.for(t,e))},t.prototype.addGroup=function(t){return this.groups.set(t.name,t),this},t.prototype.hasGuard=function(t){return this.reduceGroupsPred((function(e){return e.hasGuard(t)}))},t.prototype.getGuard=function(t){var e,r;try{for(var i=n(this.groups),u=i.next();!u.done;u=i.next()){var a=o(u.value,2),s=(a[0],a[1]);if(s.hasGuard(t))return s.getGuard(t)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},t.prototype.hasGroup=function(t){return this.reduceGroupsPred((function(e){return e.name===t}))},t.prototype.getGroup=function(t){var e,r;try{for(var i=n(this.groups),u=i.next();!u.done;u=i.next()){var a=o(u.value,2),s=a[0],c=a[1];if(s===t)return c}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},t.prototype.isEnabled=function(t){return this.reduceGroupsPred((function(e){return e.isEnabled(t)}))},t.prototype.enable=function(){return this.enabled=!0,this.forEachGroup((function(t){return t.enable()}))},t.prototype.disable=function(){return this.enabled=!1,this.forEachGroup((function(t){return t.disable()}))},t.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},t.prototype.makeRequired=function(){return this},t.prototype.enableForStorage=function(t){return this.forEachGroup((function(e){return e.enableForStorage(t)}))},t.prototype.disableForStorage=function(t){return this.forEachGroup((function(e){return e.disableForStorage(t)}))},t.prototype.toggleForStorage=function(t){return this.forEachGroup((function(e){return e.toggleForStorage(t)}))},t.prototype.raw=function(){var t={bannerWasShown:this.bannerWasShown,enabled:this.enabled,groups:[],name:this.name,description:this.description,storage:this.storage,required:this.required};return t.groups=i([],o(this.groups.values()),!1).map((function(t){return t.raw()})),t},t.prototype.reduceGroupsPred=function(t){var e,r;try{for(var i=n(this.groups),u=i.next();!u.done;u=i.next()){var a=o(u.value,2);if(a[0],t(a[1]))return!0}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return!1},t.prototype.forEachGroup=function(t){return this.groups.forEach((function(e){return t(e)})),this},t.prototype.getGroups=function(){return i([],o(this.groups.values()),!1)},t}();e.GdprManager=f},554:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GdprManagerEventHub=void 0;var r=function(){function t(){this.eventMap={}}return t.prototype.onEnable=function(t,e){return this.addListener("enable",t,e),this},t.prototype.onDisable=function(t,e){return this.addListener("disable",t,e),this},t.prototype.enable=function(t){return this.executeListeners("enable",t),this},t.prototype.disable=function(t){return this.executeListeners("disable",t),this},t.prototype.tagFor=function(t,e){return"".concat(t,"--").concat(e)},t.prototype.addListener=function(t,e,r){var n=this.tagFor(t,e);n in this.eventMap||(this.eventMap[n]=[]),this.eventMap[n].push(r)},t.prototype.executeListeners=function(t,e){var r,n=this.tagFor(t,e);null===(r=this.eventMap[n])||void 0===r||r.forEach((function(t){return t()}))},t}();e.GdprManagerEventHub=r},670:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.GdprStorage=void 0,function(t){t[t.None=1]="None",t[t.Cookie=2]="Cookie",t[t.LocalStorage=4]="LocalStorage",t[t.SessionStorage=8]="SessionStorage",t[t.IndexedDb=16]="IndexedDb",t[t.FileSystem=16]="FileSystem",t[t.ServerStorage=16]="ServerStorage",t[t.All=30]="All"}(r||(r={})),e.GdprStorage=r},860:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},u=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.GdprGroupBuilder=void 0;var a=r(670),s=r(237),c=r(822),f=r(890),l=function(t){function e(e,r,n,o,i,u){var a=t.call(this)||this;return a.parent=e,a.name=r,a.description=n,a.enable=i,a.require=u,a.guards=[],a.storage=o,u&&(a.enable=!0),a}return o(e,t),e.create=function(t,r,n,o,i,u){return void 0===n&&(n=""),void 0===o&&(o=null),void 0===i&&(i=!0),void 0===u&&(u=!1),new e(t,r,n,o||a.GdprStorage.Cookie,i,u)},e.prototype.startGroup=function(e,r,n){return void 0===e&&(e=null),void 0===r&&(r=""),void 0===n&&(n=""),t.prototype.startGroup.call(this,e||this.parent.storage,r,n)},e.prototype.startRequiredGroup=function(t,e,r){return void 0===t&&(t=null),void 0===e&&(e=""),void 0===r&&(r=""),this.startGroup(t,e,r).required()},e.prototype.endGroup=function(){var t=this.require||this.enable,e=c.GdprGuardGroup.for(this.name,this.description,t,this.require);return u(u([],i(this.guards),!1),i(this.groups),!1).forEach((function(t){return e.addGuard(t)})),this.require&&e.makeRequired(),this.parent.groups.push(e),this.parent},e.prototype.withName=function(t){return this.edit((function(e){return e.name=t}))},e.prototype.withDescription=function(t){return this.edit((function(e){return e.description=t}))},e.prototype.storedIn=function(t){return this.edit((function(e){return e.storage=t}))},e.prototype.enabled=function(){return this.edit((function(t){return t.enable=!0}))},e.prototype.disabled=function(){return this.edit((function(t){return t.enable=!1}))},e.prototype.required=function(){return this.edit((function(t){return t.require=!0}))},e.prototype.startGuard=function(t){return void 0===t&&(t=null),f.GdprGuardBuilder.create(this,t||this.storage,this.enable)},e.prototype.startRequiredGuard=function(t){return this.startGuard(t).required()},e.prototype.withEnabledGuard=function(t,e,r){return void 0===e&&(e=""),void 0===r&&(r=null),this.startGuard(r).withName(t).withDescription(e).enabled().endGuard()},e.prototype.withDisabledGuard=function(t,e,r){return void 0===e&&(e=""),void 0===r&&(r=null),this.startGuard(r).withName(t).withDescription(e).disabled().endGuard()},e.prototype.edit=function(t){return t(this),this},e}(s.GdprManagerBuilder);e.GdprGroupBuilder=l},890:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GdprGuardBuilder=void 0;var n=r(670),o=r(315),i=function(){function t(t,e,r,n){this.parent=t,this.storage=e,this.enable=r,this.require=n,this.name="",this.description="",n&&(this.enable=!0)}return t.create=function(e,r,o,i){return void 0===r&&(r=n.GdprStorage.Cookie),void 0===o&&(o=!1),void 0===i&&(i=!1),new t(e,r,o,i)},t.prototype.endGuard=function(){var t=this.require||this.enable,e=(0,o.makeGuard)(this.name,this.description,this.storage,this.require,t);return this.require&&e.makeRequired(),this.parent.guards.push(e),this.parent},t.prototype.withName=function(t){return this.edit((function(e){return e.name=t}))},t.prototype.withDescription=function(t){return this.edit((function(e){return e.description=t}))},t.prototype.enabled=function(){return this.edit((function(t){return t.enable=!0}))},t.prototype.disabled=function(){return this.edit((function(t){return t.enable=!1}))},t.prototype.storedIn=function(t){return this.edit((function(e){return e.storage=t}))},t.prototype.required=function(){return this.edit((function(t){return t.require=!0}))},t.prototype.edit=function(t){return t(this),this},t}();e.GdprGuardBuilder=i},237:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GdprManagerBuilder=void 0;var n=r(670),o=r(777),i=r(171),u=function(){function t(){this.storage=n.GdprStorage.Cookie,this.groups=[],this.bannerWasShown=!1}return t.make=function(){return new t},t.prototype.withBannerShown=function(t){void 0===t&&(t=!0),this.bannerWasShown=t},t.prototype.startGroup=function(t,e,r,n){return void 0===t&&(t=null),void 0===e&&(e=""),void 0===r&&(r=""),void 0===n&&(n=!0),i.GdprGroupBuilder.create(this,e,r,t,n,!1)},t.prototype.startRequiredGroup=function(t,e,r){return void 0===t&&(t=null),void 0===e&&(e=""),void 0===r&&(r=""),this.startEnabledGroup(t,e,r).required()},t.prototype.startEnabledGroup=function(t,e,r){return void 0===t&&(t=null),void 0===e&&(e=""),void 0===r&&(r=""),this.startGroup(t,e,r,!0).enabled()},t.prototype.startDisabledGroup=function(t,e,r){return void 0===t&&(t=null),void 0===e&&(e=""),void 0===r&&(r=""),this.startGroup(t,e,r,!1).disabled()},t.prototype.build=function(){var t=o.GdprManager.create(this.groups);return t.bannerWasShown=this.bannerWasShown,t},t.prototype.endGroup=function(){return this},t}();e.GdprManagerBuilder=u},171:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(890),e),o(r(237),e),o(r(860),e)},93:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(315),e),o(r(822),e),o(r(777),e),o(r(670),e),o(r(554),e),o(r(779),e),o(r(171),e),o(r(891),e),o(r(562),e),o(r(344),e)},562:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GdprDeserializer=void 0;var n=r(777),o=r(670),i=r(822),u=r(315),a=["enabled","groups"],s=["guards"],c=["name","enabled","required","description","storage"],f=function(){function t(){}return t.manager=function(t){var e=this;if(!function(t){return a.every((function(e){return e in t}))&&"boolean"==typeof t.enabled&&Array.isArray(t.groups)}(t))return null;var r=t.groups.map((function(t){return e.group(t)})).filter((function(t){return null!==t})),o=n.GdprManager.create([]);return o.enabled=!!t.enabled,o.bannerWasShown=!!t.bannerWasShown,r.forEach((function(t){return o.addGroup(t)})),o},t.group=function(t){var e=this,r=this.guard(t);if(null===r)return null;if(!function(t){return s.every((function(e){return e in t}))&&Array.isArray(t.guards)}(t))return null;var n=i.GdprGuardGroup.for(r.name,r.description,r.enabled,r.required);return t.guards.map((function(t){return s.every((function(e){return e in t}))?e.group(t):e.guard(t)})).filter((function(t){return null!==t})).forEach((function(t){return n.addGuard(t)})),n},t.guard=function(t){return function(t){return c.every((function(e){return e in t}))&&"string"==typeof t.name&&"boolean"==typeof t.enabled&&"boolean"==typeof t.required&&"string"==typeof t.description&&"number"==typeof t.storage&&t.storage in o.GdprStorage}(t)?(0,u.makeGuard)(t.name,t.description,t.storage,!!t.required,!!t.enabled):null},t}();e.GdprDeserializer=f},344:function(t,e){var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function u(t){try{s(n.next(t))}catch(t){i(t)}}function a(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(u,a)}s((n=n.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.GdprSaviorAdapter=void 0;var o=function(){function t(){}return t.prototype.exists=function(t){return void 0===t&&(t=!0),r(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,this.restore(t)];case 1:return[2,null!==e.sent()]}}))}))},t.prototype.storeIfNotExists=function(t){return r(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,this.exists()];case 1:return[2,!!e.sent()||this.store(t)]}}))}))},t.prototype.restoreOrCreate=function(t){return r(this,void 0,void 0,(function(){var e,r;return n(this,(function(n){switch(n.label){case 0:return[4,this.restore()];case 1:return(e=n.sent())?[3,3]:[4,t()];case 2:return r=n.sent(),this.updateSharedManager(r),r.bannerWasShown&&r.closeBanner(),[2,r];case 3:return e.bannerWasShown&&e.closeBanner(),[2,e]}}))}))},t.prototype.check=function(){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Promise.resolve()];case 1:return t.sent(),[4,this.exists(!0)];case 2:return t.sent(),[2]}}))}))},t}();e.GdprSaviorAdapter=o},891:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GdprSerializer=void 0;var r=function(){function t(){}return t.serialize=function(t){return t.raw()},t}();e.GdprSerializer=r},779:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.visitGdpr=void 0;var n=r(777),o=r(822);e.visitGdpr=function(t,r){var i=void 0===r?{}:r,u=i.onManager,a=void 0===u?function(){}:u,s=i.onGroup,c=void 0===s?function(){}:s,f=i.onGuard,l=void 0===f?function(){}:f,p=i.onEach,d=void 0===p?function(){}:p,h={onManager:a,onGroup:c,onGuard:l,onEach:d};t instanceof n.GdprManager?(a(t),d(t),t.getGroups().forEach((function(t){return(0,e.visitGdpr)(t,h)}))):t instanceof o.GdprGuardGroup?(c(t),d(t),t.getGuards().forEach((function(t){return(0,e.visitGdpr)(t,h)}))):(l(t),d(t))}}},e={};return function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}(93)})(),t.exports=n()},function(t,e,r){"use strict";r.r(e),r.d(e,"versionComparator",(function(){return v})),r.d(e,"defaultStoreFactory",(function(){return g})),r.d(e,"expiration",(function(){return y})),r.d(e,"defaultConfigParts",(function(){return b})),r.d(e,"defaultConfig",(function(){return m})),r.d(e,"makeConfig",(function(){return w}));var n=r(3),o=r.n(n),i=r(7),u=r.n(i),a=r(8),s=r.n(a);function c(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function f(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t){f(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===l(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var d=function(){return(d=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},h=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=function(t,e){return e!==t};h(h([],function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}(u.a),!1),[s.a],!1).forEach((function(t){return o.a.addPlugin(t)}));var g=function(){return o.a},y=function(){return function(t,e){f(2,arguments);var r=p(t),n=c(e);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var u=i.getDate();return o>=u?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}(new Date,13)},b={comparator:v,expiration:y},m={storeKey:"gdpr",versionKey:"gdpr__version",version:"v0.0.0",comparator:v,expiration:y},w=function(t){return void 0===t&&(t={}),d(d({},m),t)}},function(t,e,r){var n=r(10),o=r(12),i=[r(4)];t.exports=n.createStore(o,i)},function(t,e,r){t.exports=function(){return r(19),{}}},function(t,e,r){},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n,o=r(1),i=r(2),u=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function u(t){try{s(n.next(t))}catch(t){i(t)}}function a(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(u,a)}s((n=n.apply(t,e||[])).next())}))},s=function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},c=function(t){function e(e,r){void 0===e&&(e=Object(i.makeConfig)()),void 0===r&&(r=i.defaultStoreFactory);var n=t.call(this)||this;return n.config=e,n.storage=r(),n}return u(e,t),e.prototype.updateSharedManager=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(t){return[2]}))}))},e.prototype.restore=function(t){return void 0===t&&(t=!0),a(this,void 0,void 0,(function(){var e,r,n;return s(this,(function(i){switch(i.label){case 0:return[4,this.storage.removeExpiredKeys()];case 1:return i.sent(),[4,this.storage.has(this.config.versionKey)];case 2:return i.sent()?[3,5]:[4,this.storage.set(this.config.versionKey,this.config.version,this.config.expiration())];case 3:return i.sent(),[4,this.storage.remove(this.config.storeKey)];case 4:i.sent(),i.label=5;case 5:return[4,this.storage.get(this.config.storeKey)];case 6:return e=i.sent(),[4,this.storage.get(this.config.versionKey)];case 7:r=i.sent(),i.label=8;case 8:return i.trys.push([8,15,,16]),n=o.GdprDeserializer.manager(e),this.config.comparator(r,this.config.version)?[4,this.storage.remove(this.config.storeKey)]:[3,11];case 9:return i.sent(),[4,this.storage.set(this.config.versionKey,this.config.version,this.config.expiration())];case 10:return i.sent(),[2,null];case 11:return n?t?[4,this.updateSharedManager(n)]:[3,13]:[3,14];case 12:i.sent(),i.label=13;case 13:return[2,n];case 14:return[2,null];case 15:return i.sent(),[2,null];case 16:return[2]}}))}))},e.prototype.store=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.storage.set(this.config.storeKey,t,this.config.expiration())];case 1:e.sent();try{return[2,this.exists()]}catch(t){return[2,!1]}return[2]}}))}))},e}(o.GdprSaviorAdapter)},function(t,e,r){var n=r(20),o=r(4);function i(t,e){return void 0!==this.get(e)}function u(t,e,r,n){null==n&&(n=r,r=null),null==r&&(r={});var o=this.get(e,r),i=n(o);this.set(e,void 0===i?o:i)}function a(t){return this.clearAll.call(this)}function s(t,e){return this.each.call(this,(function(t,r){e(r,t)}))}function c(t){return this.dump.call(this)}function f(t,e){return JSON.stringify(e)}function l(t,e){if("string"==typeof e)try{return JSON.parse(e)}catch(t){return e||void 0}}t.exports=[n,o,function(){return this.disabled=!this.enabled,{has:i,transact:u,clear:a,forEach:s,getAll:c,serialize:f,deserialize:l}}]},function(t,e){t.exports=function(){var t=this.createStore(this.storage,null,this._namespacePrefix+"expire_mixin");return{set:function(e,r,n,o){this.hasNamespace("expire_mixin")||t.set(r,o);return e()},get:function(t,r){this.hasNamespace("expire_mixin")||e.call(this,r);return t()},remove:function(e,r){this.hasNamespace("expire_mixin")||t.remove(r);return e()},getExpiration:function(e,r){return t.get(r)},removeExpiredKeys:function(t){var r=[];this.each((function(t,e){r.push(e)}));for(var n=0;n<r.length;n++)e.call(this,r[n])}};function e(e){t.get(e,Number.MAX_VALUE)<=(new Date).getTime()&&(this.raw.remove(e),t.remove(e))}}},function(t,e,r){"use strict";r.r(e);var n=r(2);r.d(e,"defaults",(function(){return n}));var o=r(1);for(var i in o)["default","defaults"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(i);r(5);var u=r(6);r.d(e,"LocalStorageSavior",(function(){return u.a}))},function(t,e,r){var n=r(0),o=n.slice,i=n.pluck,u=n.each,a=n.bind,s=n.create,c=n.isList,f=n.isFunction,l=n.isObject;t.exports={createStore:d};var p={version:"2.0.12",enabled:!1,get:function(t,e){var r=this.storage.read(this._namespacePrefix+t);return this._deserialize(r,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(r,n){t.call(e,e._deserialize(r),(n||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return d.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return d(this.storage,this.plugins,t)}};function d(t,e,r){r||(r=""),t&&!c(t)&&(t=[t]),e&&!c(e)&&(e=[e]);var n=r?"__storejs_"+r+"_":"",d=r?new RegExp("^"+n):null;if(!/^[a-zA-Z0-9_\-]*$/.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h=s({_namespacePrefix:n,_namespaceRegexp:d,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var r=t.read(e)===e;return t.remove(e),r}catch(t){return!1}},_assignPluginFnProp:function(t,e){var r=this[e];this[e]=function(){var e=o(arguments,0),n=this;function i(){if(r)return u(arguments,(function(t,r){e[r]=t})),r.apply(n,e)}var a=[i].concat(e);return t.apply(n,a)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var r="";try{r=JSON.parse(t)}catch(e){r=t}return void 0!==r?r:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(c(t))u(t,(function(t){e._addPlugin(t)}));else if(!i(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!f(t))throw new Error("Plugins must be function values that return objects");var r=t.call(this);if(!l(r))throw new Error("Plugins must return an object of function properties");u(r,(function(r,n){if(!f(r))throw new Error("Bad plugin property: "+n+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(r,n)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},p,{plugins:[]});return h.raw={},u(h,(function(t,e){f(t)&&(h.raw[e]=a(h,t))})),u(t,(function(t){h._addStorage(t)})),u(e,(function(t){h._addPlugin(t)})),h}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){t.exports=[r(13),r(14),r(15),r(16),r(17),r(18)]},function(t,e,r){var n=r(0).Global;function o(){return n.localStorage}function i(t){return o().getItem(t)}t.exports={name:"localStorage",read:i,write:function(t,e){return o().setItem(t,e)},each:function(t){for(var e=o().length-1;e>=0;e--){var r=o().key(e);t(i(r),r)}},remove:function(t){return o().removeItem(t)},clearAll:function(){return o().clear()}}},function(t,e,r){var n=r(0).Global;t.exports={name:"oldFF-globalStorage",read:function(t){return o[t]},write:function(t,e){o[t]=e},each:i,remove:function(t){return o.removeItem(t)},clearAll:function(){i((function(t,e){delete o[t]}))}};var o=n.globalStorage;function i(t){for(var e=o.length-1;e>=0;e--){var r=o.key(e);t(o[r],r)}}},function(t,e,r){var n=r(0).Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(u)return;var r=s(t);i((function(t){t.setAttribute(r,e),t.save("storejs")}))},read:function(t){if(u)return;var e=s(t),r=null;return i((function(t){r=t.getAttribute(e)})),r},each:function(t){i((function(e){for(var r=e.XMLDocument.documentElement.attributes,n=r.length-1;n>=0;n--){var o=r[n];t(e.getAttribute(o.name),o.name)}}))},remove:function(t){var e=s(t);i((function(t){t.removeAttribute(e),t.save("storejs")}))},clearAll:function(){i((function(t){var e=t.XMLDocument.documentElement.attributes;t.load("storejs");for(var r=e.length-1;r>=0;r--)t.removeAttribute(e[r].name);t.save("storejs")}))}};var o=n.document,i=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var t,e,r;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,r=t.createElement("div")}catch(e){r=o.createElement("div"),t=o.body}return function(e){var n=[].slice.call(arguments,0);n.unshift(r),t.appendChild(r),r.addBehavior("#default#userData"),r.load("storejs"),e.apply(this,n),t.removeChild(r)}}(),u=(n.navigator?n.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function s(t){return t.replace(/^\d/,"___$&").replace(a,"___")}},function(t,e,r){var n=r(0),o=n.Global,i=n.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!c(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(u.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;u.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:s,clearAll:function(){a((function(t,e){s(e)}))}};var u=o.document;function a(t){for(var e=u.cookie.split(/; ?/g),r=e.length-1;r>=0;r--)if(i(e[r])){var n=e[r].split("="),o=unescape(n[0]);t(unescape(n[1]),o)}}function s(t){t&&c(t)&&(u.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function c(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(u.cookie)}},function(t,e,r){var n=r(0).Global;function o(){return n.sessionStorage}function i(t){return o().getItem(t)}t.exports={name:"sessionStorage",read:i,write:function(t,e){return o().setItem(t,e)},each:function(t){for(var e=o().length-1;e>=0;e--){var r=o().key(e);t(i(r),r)}},remove:function(t){return o().removeItem(t)},clearAll:function(){return o().clear()}}},function(t,e){t.exports={name:"memoryStorage",read:function(t){return r[t]},write:function(t,e){r[t]=e},each:function(t){for(var e in r)r.hasOwnProperty(e)&&t(r[e],e)},remove:function(t){delete r[t]},clearAll:function(t){r={}}};var r={}},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var r,n,o,i,u,a=gap,s=e[t];switch(s&&"object"==typeof s&&"function"==typeof s.toJSON&&(s=s.toJSON(t)),"function"==typeof rep&&(s=rep.call(e,t,s)),typeof s){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,u=[],"[object Array]"===Object.prototype.toString.apply(s)){for(i=s.length,r=0;r<i;r+=1)u[r]=str(r,s)||"null";return o=0===u.length?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+a+"]":"["+u.join(",")+"]",gap=a,o}if(rep&&"object"==typeof rep)for(i=rep.length,r=0;r<i;r+=1)"string"==typeof rep[r]&&(o=str(n=rep[r],s))&&u.push(quote(n)+(gap?": ":":")+o);else for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(o=str(n,s))&&u.push(quote(n)+(gap?": ":":")+o);return o=0===u.length?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+a+"}":"{"+u.join(",")+"}",gap=a,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,r){var n;if(gap="",indent="","number"==typeof r)for(n=0;n<r;n+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,e){var r,n,o=t[e];if(o&&"object"==typeof o)for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(void 0!==(n=walk(o,r))?o[r]=n:delete o[r]);return reviver.call(t,e,o)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},function(t,e){t.exports=function(){return{dump:function(t){var e={};return this.each((function(t,r){e[r]=t})),e}}}}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.gdprGuardLocal=t():e.gdprGuardLocal=t()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:this,(()=>(()=>{var __webpack_modules__={974:function(e){var t;"undefined"!=typeof self?self:"undefined"!=typeof window&&window,t=()=>(()=>{"use strict";var e={315:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.makeGuard=void 0;var n=r(670);t.makeGuard=function(e,t,r,o,i){return void 0===r&&(r=n.GdprStorage.Cookie),void 0===o&&(o=!1),void 0===i&&(i=null),{name:e,description:t,storage:r,required:o,enabled:null===i?o:i,enable:function(){return this.enabled||this.toggle(),this},disable:function(){return this.enabled&&this.toggle(),this},toggle:function(){return this.required||(this.enabled=!this.enabled),this},makeRequired:function(){return this.required=!0,this.enabled=!0,this},isEnabled:function(e){return this.name===e&&this.enabled},enableForStorage:function(e){return this.enabled||this.toggleForStorage(e),this},disableForStorage:function(e){return this.enabled&&this.toggleForStorage(e),this},toggleForStorage:function(e){return this.storage!=e||this.required||this.toggle(),this},raw:function(){return JSON.parse(JSON.stringify(this))}}}},822:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGuardGroup=void 0;var a=r(670),u=function(){function e(e,t,r,n){void 0===t&&(t=""),void 0===r&&(r=!1),void 0===n&&(n=!1),this.name=e,this.description=t,this.enabled=r,this.required=n,this.storage=a.GdprStorage.None,this.bindings=new Map,this.required&&(this.enabled=!0)}return e.for=function(t,r,n,o){return void 0===r&&(r=""),void 0===n&&(n=!1),void 0===o&&(o=!1),new e(t,r,n,o)},e.prototype.addGuard=function(e){return this.bindings.set(e.name,e),this},e.prototype.hasGuard=function(e){return this.name===e||this.bindings.has(e)||this.reduceSubGroupsPred((function(t){return t.hasGuard(e)}))},e.prototype.getGuard=function(e){var t,r;return this.name===e?this:null!==(r=null!==(t=this.bindings.get(e))&&void 0!==t?t:this.reduceSubGroups((function(t){return t.getGuard(e)})))&&void 0!==r?r:null},e.prototype.isEnabled=function(e){if(this.hasGuard(e)){var t=this.getGuard(e);if(null!==t)return t.enabled}return!1},e.prototype.enable=function(){return this.required?this:(this.enabled=!0,this.doForEachGuard((function(e){return e.enable()})))},e.prototype.disable=function(){return this.required?this:(this.enabled=!1,this.doForEachGuard((function(e){return e.disable()})))},e.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},e.prototype.makeRequired=function(){return this.required=!0,this.enabled=!0,this.doForEachGuard((function(e){return e.makeRequired()}))},e.prototype.enableForStorage=function(e){return this.required?this:this.doForEachGuard((function(t){t.enableForStorage(e)}))},e.prototype.disableForStorage=function(e){return this.required?this:this.doForEachGuard((function(t){t.disableForStorage(e)}))},e.prototype.toggleForStorage=function(e){return this.required?this:this.doForEachGuard((function(t){t.toggleForStorage(e)}))},e.prototype.raw=function(){var e={name:this.name,description:this.description,enabled:this.enabled,required:this.required,storage:this.storage,guards:[]};return e.guards=o([],n(this.bindings),!1).map((function(e){var t=n(e,2);return t[0],t[1].raw()})),e},e.prototype.doForEachGuard=function(e){return this.bindings.forEach((function(t){return e(t)})),this},e.prototype.reduceSubGroupsPred=function(t){var r,o;try{for(var a=i(this.bindings),u=a.next();!u.done;u=a.next()){var s=n(u.value,2),c=(s[0],s[1]);if(c instanceof e&&t(c))return!0}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return!1},e.prototype.reduceSubGroups=function(t){var r,o;try{for(var a=i(this.bindings),u=a.next();!u.done;u=a.next()){var s=n(u.value,2),c=(s[0],s[1]);if(c instanceof e){var l=t(c);if(l)return l}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return null},e.prototype.getGuards=function(){return o([],n(this.bindings.values()),!1)},e}();t.GdprGuardGroup=u},777:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManager=void 0;var a=r(822),u=r(670),s=r(554),c=r(779),l=function(){function e(){this.bannerWasShown=!1,this.enabled=!0,this.events=new s.GdprManagerEventHub,this.groups=new Map,this.name="manager",this.description="Manager of GDPR guard groups",this.storage=u.GdprStorage.None,this.required=!1}return e.create=function(t){void 0===t&&(t=[]);var r=new e;return t.forEach((function(e){return r.addGroup(e)})),r},e.prototype.closeBanner=function(){var e=this;this.bannerWasShown=!0,(0,c.visitGdpr)(this,{onEach:function(t){t.enabled?e.events.enable(t.name):e.events.disable(t.name)}})},e.prototype.resetAndShowBanner=function(){this.bannerWasShown=!1},e.prototype.createGroup=function(e,t){return void 0===t&&(t=""),this.addGroup(a.GdprGuardGroup.for(e,t))},e.prototype.addGroup=function(e){return this.groups.set(e.name,e),this},e.prototype.hasGuard=function(e){return this.reduceGroupsPred((function(t){return t.hasGuard(e)}))},e.prototype.getGuard=function(e){var t,r;try{for(var i=n(this.groups),a=i.next();!a.done;a=i.next()){var u=o(a.value,2),s=(u[0],u[1]);if(s.hasGuard(e))return s.getGuard(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return null},e.prototype.hasGroup=function(e){return this.reduceGroupsPred((function(t){return t.name===e}))},e.prototype.getGroup=function(e){var t,r;try{for(var i=n(this.groups),a=i.next();!a.done;a=i.next()){var u=o(a.value,2),s=u[0],c=u[1];if(s===e)return c}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return null},e.prototype.isEnabled=function(e){return this.reduceGroupsPred((function(t){return t.isEnabled(e)}))},e.prototype.enable=function(){return this.enabled=!0,this.forEachGroup((function(e){return e.enable()}))},e.prototype.disable=function(){return this.enabled=!1,this.forEachGroup((function(e){return e.disable()}))},e.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},e.prototype.makeRequired=function(){return this},e.prototype.enableForStorage=function(e){return this.forEachGroup((function(t){return t.enableForStorage(e)}))},e.prototype.disableForStorage=function(e){return this.forEachGroup((function(t){return t.disableForStorage(e)}))},e.prototype.toggleForStorage=function(e){return this.forEachGroup((function(t){return t.toggleForStorage(e)}))},e.prototype.raw=function(){var e={bannerWasShown:this.bannerWasShown,enabled:this.enabled,groups:[],name:this.name,description:this.description,storage:this.storage,required:this.required};return e.groups=i([],o(this.groups.values()),!1).map((function(e){return e.raw()})),e},e.prototype.reduceGroupsPred=function(e){var t,r;try{for(var i=n(this.groups),a=i.next();!a.done;a=i.next()){var u=o(a.value,2);if(u[0],e(u[1]))return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!1},e.prototype.forEachGroup=function(e){return this.groups.forEach((function(t){return e(t)})),this},e.prototype.getGroups=function(){return i([],o(this.groups.values()),!1)},e}();t.GdprManager=l},554:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManagerEventHub=void 0;var r=function(){function e(){this.eventMap={}}return e.prototype.onEnable=function(e,t){return this.addListener("enable",e,t),this},e.prototype.onDisable=function(e,t){return this.addListener("disable",e,t),this},e.prototype.enable=function(e){return this.executeListeners("enable",e),this},e.prototype.disable=function(e){return this.executeListeners("disable",e),this},e.prototype.tagFor=function(e,t){return"".concat(e,"--").concat(t)},e.prototype.addListener=function(e,t,r){var n=this.tagFor(e,t);n in this.eventMap||(this.eventMap[n]=[]),this.eventMap[n].push(r)},e.prototype.executeListeners=function(e,t){var r,n=this.tagFor(e,t);null===(r=this.eventMap[n])||void 0===r||r.forEach((function(e){return e()}))},e}();t.GdprManagerEventHub=r},670:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.GdprStorage=void 0,function(e){e[e.None=1]="None",e[e.Cookie=2]="Cookie",e[e.LocalStorage=4]="LocalStorage",e[e.SessionStorage=8]="SessionStorage",e[e.IndexedDb=16]="IndexedDb",e[e.FileSystem=16]="FileSystem",e[e.ServerStorage=16]="ServerStorage",e[e.All=30]="All"}(r||(r={})),t.GdprStorage=r},860:function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGroupBuilder=void 0;var u=r(670),s=r(237),c=r(822),l=r(890),f=function(e){function t(t,r,n,o,i,a){var u=e.call(this)||this;return u.parent=t,u.name=r,u.description=n,u.enable=i,u.require=a,u.guards=[],u.storage=o,a&&(u.enable=!0),u}return o(t,e),t.create=function(e,r,n,o,i,a){return void 0===n&&(n=""),void 0===o&&(o=null),void 0===i&&(i=!0),void 0===a&&(a=!1),new t(e,r,n,o||u.GdprStorage.Cookie,i,a)},t.prototype.startGroup=function(t,r,n){return void 0===t&&(t=null),void 0===r&&(r=""),void 0===n&&(n=""),e.prototype.startGroup.call(this,t||this.parent.storage,r,n)},t.prototype.startRequiredGroup=function(e,t,r){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===r&&(r=""),this.startGroup(e,t,r).required()},t.prototype.endGroup=function(){var e=this.require||this.enable,t=c.GdprGuardGroup.for(this.name,this.description,e,this.require);return a(a([],i(this.guards),!1),i(this.groups),!1).forEach((function(e){return t.addGuard(e)})),this.require&&t.makeRequired(),this.parent.groups.push(t),this.parent},t.prototype.withName=function(e){return this.edit((function(t){return t.name=e}))},t.prototype.withDescription=function(e){return this.edit((function(t){return t.description=e}))},t.prototype.storedIn=function(e){return this.edit((function(t){return t.storage=e}))},t.prototype.enabled=function(){return this.edit((function(e){return e.enable=!0}))},t.prototype.disabled=function(){return this.edit((function(e){return e.enable=!1}))},t.prototype.required=function(){return this.edit((function(e){return e.require=!0}))},t.prototype.startGuard=function(e){return void 0===e&&(e=null),l.GdprGuardBuilder.create(this,e||this.storage,this.enable)},t.prototype.startRequiredGuard=function(e){return this.startGuard(e).required()},t.prototype.withEnabledGuard=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=null),this.startGuard(r).withName(e).withDescription(t).enabled().endGuard()},t.prototype.withDisabledGuard=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=null),this.startGuard(r).withName(e).withDescription(t).disabled().endGuard()},t.prototype.edit=function(e){return e(this),this},t}(s.GdprManagerBuilder);t.GdprGroupBuilder=f},890:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGuardBuilder=void 0;var n=r(670),o=r(315),i=function(){function e(e,t,r,n){this.parent=e,this.storage=t,this.enable=r,this.require=n,this.name="",this.description="",n&&(this.enable=!0)}return e.create=function(t,r,o,i){return void 0===r&&(r=n.GdprStorage.Cookie),void 0===o&&(o=!1),void 0===i&&(i=!1),new e(t,r,o,i)},e.prototype.endGuard=function(){var e=this.require||this.enable,t=(0,o.makeGuard)(this.name,this.description,this.storage,this.require,e);return this.require&&t.makeRequired(),this.parent.guards.push(t),this.parent},e.prototype.withName=function(e){return this.edit((function(t){return t.name=e}))},e.prototype.withDescription=function(e){return this.edit((function(t){return t.description=e}))},e.prototype.enabled=function(){return this.edit((function(e){return e.enable=!0}))},e.prototype.disabled=function(){return this.edit((function(e){return e.enable=!1}))},e.prototype.storedIn=function(e){return this.edit((function(t){return t.storage=e}))},e.prototype.required=function(){return this.edit((function(e){return e.require=!0}))},e.prototype.edit=function(e){return e(this),this},e}();t.GdprGuardBuilder=i},237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManagerBuilder=void 0;var n=r(670),o=r(777),i=r(171),a=function(){function e(){this.storage=n.GdprStorage.Cookie,this.groups=[],this.bannerWasShown=!1}return e.make=function(){return new e},e.prototype.withBannerShown=function(e){void 0===e&&(e=!0),this.bannerWasShown=e},e.prototype.startGroup=function(e,t,r,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===r&&(r=""),void 0===n&&(n=!0),i.GdprGroupBuilder.create(this,t,r,e,n,!1)},e.prototype.startRequiredGroup=function(e,t,r){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===r&&(r=""),this.startEnabledGroup(e,t,r).required()},e.prototype.startEnabledGroup=function(e,t,r){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===r&&(r=""),this.startGroup(e,t,r,!0).enabled()},e.prototype.startDisabledGroup=function(e,t,r){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===r&&(r=""),this.startGroup(e,t,r,!1).disabled()},e.prototype.build=function(){var e=o.GdprManager.create(this.groups);return e.bannerWasShown=this.bannerWasShown,e},e.prototype.endGroup=function(){return this},e}();t.GdprManagerBuilder=a},171:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(890),t),o(r(237),t),o(r(860),t)},93:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(315),t),o(r(822),t),o(r(777),t),o(r(670),t),o(r(554),t),o(r(779),t),o(r(171),t),o(r(891),t),o(r(562),t),o(r(344),t)},562:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprDeserializer=void 0;var n=r(777),o=r(670),i=r(822),a=r(315),u=["enabled","groups"],s=["guards"],c=["name","enabled","required","description","storage"],l=function(){function e(){}return e.manager=function(e){var t=this;if(!function(e){return u.every((function(t){return t in e}))&&"boolean"==typeof e.enabled&&Array.isArray(e.groups)}(e))return null;var r=e.groups.map((function(e){return t.group(e)})).filter((function(e){return null!==e})),o=n.GdprManager.create([]);return o.enabled=!!e.enabled,o.bannerWasShown=!!e.bannerWasShown,r.forEach((function(e){return o.addGroup(e)})),o},e.group=function(e){var t=this,r=this.guard(e);if(null===r)return null;if(!function(e){return s.every((function(t){return t in e}))&&Array.isArray(e.guards)}(e))return null;var n=i.GdprGuardGroup.for(r.name,r.description,r.enabled,r.required);return e.guards.map((function(e){return s.every((function(t){return t in e}))?t.group(e):t.guard(e)})).filter((function(e){return null!==e})).forEach((function(e){return n.addGuard(e)})),n},e.guard=function(e){return function(e){return c.every((function(t){return t in e}))&&"string"==typeof e.name&&"boolean"==typeof e.enabled&&"boolean"==typeof e.required&&"string"==typeof e.description&&"number"==typeof e.storage&&e.storage in o.GdprStorage}(e)?(0,a.makeGuard)(e.name,e.description,e.storage,!!e.required,!!e.enabled):null},e}();t.GdprDeserializer=l},344:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function u(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprSaviorAdapter=void 0;var o=function(){function e(){}return e.prototype.exists=function(e){return void 0===e&&(e=!0),r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,this.restore(e)];case 1:return[2,null!==t.sent()]}}))}))},e.prototype.storeIfNotExists=function(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,this.exists()];case 1:return[2,!!t.sent()||this.store(e)]}}))}))},e.prototype.restoreOrCreate=function(e){return r(this,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return[4,this.restore()];case 1:return(t=n.sent())?[3,3]:[4,e()];case 2:return r=n.sent(),this.updateSharedManager(r),r.bannerWasShown&&r.closeBanner(),[2,r];case 3:return t.bannerWasShown&&t.closeBanner(),[2,t]}}))}))},e.prototype.check=function(){return r(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Promise.resolve()];case 1:return e.sent(),[4,this.exists(!0)];case 2:return e.sent(),[2]}}))}))},e}();t.GdprSaviorAdapter=o},891:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprSerializer=void 0;var r=function(){function e(){}return e.serialize=function(e){return e.raw()},e}();t.GdprSerializer=r},779:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.visitGdpr=void 0;var n=r(777),o=r(822);t.visitGdpr=function(e,r){var i=void 0===r?{}:r,a=i.onManager,u=void 0===a?function(){}:a,s=i.onGroup,c=void 0===s?function(){}:s,l=i.onGuard,f=void 0===l?function(){}:l,p=i.onEach,d=void 0===p?function(){}:p,h={onManager:u,onGroup:c,onGuard:f,onEach:d};e instanceof n.GdprManager?(u(e),d(e),e.getGroups().forEach((function(e){return(0,t.visitGdpr)(e,h)}))):e instanceof o.GdprGuardGroup?(c(e),d(e),e.getGuards().forEach((function(e){return(0,t.visitGdpr)(e,h)}))):(f(e),d(e))}}},t={};return function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(93)})(),e.exports=t()},53:(e,t,r)=>{var n=r(129),o=r(890),i=[r(293)];e.exports=n.createStore(o,i)},535:e=>{e.exports=function(){return{dump:function(e){var t={};return this.each((function(e,r){t[r]=e})),t}}}},398:e=>{var t="expire_mixin";e.exports=function(){var e=this.createStore(this.storage,null,this._namespacePrefix+t);return{set:function(r,n,o,i){return this.hasNamespace(t)||e.set(n,i),r()},get:function(e,n){return this.hasNamespace(t)||r.call(this,n),e()},remove:function(r,n){return this.hasNamespace(t)||e.remove(n),r()},getExpiration:function(t,r){return e.get(r)},removeExpiredKeys:function(e){var t=[];this.each((function(e,r){t.push(r)}));for(var n=0;n<t.length;n++)r.call(this,t[n])}};function r(t){e.get(t,Number.MAX_VALUE)<=(new Date).getTime()&&(this.raw.remove(t),e.remove(t))}}},293:(e,t,r)=>{e.exports=function(){return r(413),{}}},413:()=>{"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var r,n,o,i,a,u=gap,s=t[e];switch(s&&"object"==typeof s&&"function"==typeof s.toJSON&&(s=s.toJSON(e)),"function"==typeof rep&&(s=rep.call(t,e,s)),typeof s){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(s)){for(i=s.length,r=0;r<i;r+=1)a[r]=str(r,s)||"null";return o=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+u+"]":"["+a.join(",")+"]",gap=u,o}if(rep&&"object"==typeof rep)for(i=rep.length,r=0;r<i;r+=1)"string"==typeof rep[r]&&(o=str(n=rep[r],s))&&a.push(quote(n)+(gap?": ":":")+o);else for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(o=str(n,s))&&a.push(quote(n)+(gap?": ":":")+o);return o=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+u+"}":"{"+a.join(",")+"}",gap=u,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,r){var n;if(gap="",indent="","number"==typeof r)for(n=0;n<r;n+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,n,o=e[t];if(o&&"object"==typeof o)for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(void 0!==(n=walk(o,r))?o[r]=n:delete o[r]);return reviver.call(e,t,o)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},596:(e,t,r)=>{var n=r(535),o=r(293);function i(e,t){return void 0!==this.get(t)}function a(e,t,r,n){null==n&&(n=r,r=null),null==r&&(r={});var o=this.get(t,r),i=n(o);this.set(t,void 0===i?o:i)}function u(e){return this.clearAll.call(this)}function s(e,t){return this.each.call(this,(function(e,r){t(r,e)}))}function c(e){return this.dump.call(this)}function l(e,t){return JSON.stringify(t)}function f(e,t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}}e.exports=[n,o,function(){return this.disabled=!this.enabled,{has:i,transact:a,clear:u,forEach:s,getAll:c,serialize:l,deserialize:f}}]},129:(e,t,r)=>{var n=r(123),o=n.slice,i=n.pluck,a=n.each,u=n.bind,s=n.create,c=n.isList,l=n.isFunction,f=n.isObject;e.exports={createStore:d};var p={version:"2.0.12",enabled:!1,get:function(e,t){var r=this.storage.read(this._namespacePrefix+e);return this._deserialize(r,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each((function(r,n){e.call(t,t._deserialize(r),(n||"").replace(t._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return d.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return d(this.storage,this.plugins,e)}};function d(e,t,r){r||(r=""),e&&!c(e)&&(e=[e]),t&&!c(t)&&(t=[t]);var n=r?"__storejs_"+r+"_":"",d=r?new RegExp("^"+n):null;if(!/^[a-zA-Z0-9_\-]*$/.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h={_namespacePrefix:n,_namespaceRegexp:d,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var r=e.read(t)===t;return e.remove(t),r}catch(e){return!1}},_assignPluginFnProp:function(e,t){var r=this[t];this[t]=function(){var t=o(arguments,0),n=this,i=[function(){if(r)return a(arguments,(function(e,r){t[r]=e})),r.apply(n,t)}].concat(t);return e.apply(n,i)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var r="";try{r=JSON.parse(e)}catch(t){r=e}return void 0!==r?r:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(c(e))a(e,(function(e){t._addPlugin(e)}));else if(!i(this.plugins,(function(t){return e===t}))){if(this.plugins.push(e),!l(e))throw new Error("Plugins must be function values that return objects");var r=e.call(this);if(!f(r))throw new Error("Plugins must return an object of function properties");a(r,(function(r,n){if(!l(r))throw new Error("Bad plugin property: "+n+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(r,n)}))}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;e&&(e.warn?e.warn:e.log).apply(e,arguments)}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},v=s(h,p,{plugins:[]});return v.raw={},a(v,(function(e,t){l(e)&&(v.raw[t]=u(v,e))})),a(e,(function(e){v._addStorage(e)})),a(t,(function(e){v._addPlugin(e)})),v}},123:(e,t,r)=>{var n=Object.assign?Object.assign:function(e,t,r,n){for(var o=1;o<arguments.length;o++)s(Object(arguments[o]),(function(t,r){e[r]=t}));return e},o=function(){if(Object.create)return function(e,t,r,o){var i=u(arguments,1);return n.apply(this,[Object.create(e)].concat(i))};{function e(){}return function(t,r,o,i){var a=u(arguments,1);return e.prototype=t,n.apply(this,[new e].concat(a))}}}(),i=String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},a="undefined"!=typeof window?window:r.g;function u(e,t){return Array.prototype.slice.call(e,t||0)}function s(e,t){c(e,(function(e,r){return t(e,r),!1}))}function c(e,t){if(l(e)){for(var r=0;r<e.length;r++)if(t(e[r],r))return e[r]}else for(var n in e)if(e.hasOwnProperty(n)&&t(e[n],n))return e[n]}function l(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}e.exports={assign:n,create:o,trim:i,bind:function(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}},slice:u,each:s,map:function(e,t){var r=l(e)?[]:{};return c(e,(function(e,n){return r[n]=t(e,n),!1})),r},pluck:c,isList:l,isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},isObject:function(e){return e&&"[object Object]"==={}.toString.call(e)},Global:a}},890:(e,t,r)=>{e.exports=[r(653),r(333),r(991),r(234),r(416),r(529)]},234:(e,t,r)=>{var n=r(123),o=n.Global,i=n.trim;e.exports={name:"cookieStorage",read:function(e){if(!e||!c(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(a.cookie.replace(new RegExp(t),"$1"))},write:function(e,t){e&&(a.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")},each:u,remove:s,clearAll:function(){u((function(e,t){s(t)}))}};var a=o.document;function u(e){for(var t=a.cookie.split(/; ?/g),r=t.length-1;r>=0;r--)if(i(t[r])){var n=t[r].split("="),o=unescape(n[0]);e(unescape(n[1]),o)}}function s(e){e&&c(e)&&(a.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function c(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},653:(e,t,r)=>{var n=r(123).Global;function o(){return n.localStorage}function i(e){return o().getItem(e)}e.exports={name:"localStorage",read:i,write:function(e,t){return o().setItem(e,t)},each:function(e){for(var t=o().length-1;t>=0;t--){var r=o().key(t);e(i(r),r)}},remove:function(e){return o().removeItem(e)},clearAll:function(){return o().clear()}}},529:e=>{e.exports={name:"memoryStorage",read:function(e){return t[e]},write:function(e,r){t[e]=r},each:function(e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},remove:function(e){delete t[e]},clearAll:function(e){t={}}};var t={}},333:(e,t,r)=>{var n=r(123).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return o[e]},write:function(e,t){o[e]=t},each:i,remove:function(e){return o.removeItem(e)},clearAll:function(){i((function(e,t){delete o[e]}))}};var o=n.globalStorage;function i(e){for(var t=o.length-1;t>=0;t--){var r=o.key(t);e(o[r],r)}}},991:(e,t,r)=>{var n=r(123).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(!u){var r=c(e);a((function(e){e.setAttribute(r,t),e.save(o)}))}},read:function(e){if(!u){var t=c(e),r=null;return a((function(e){r=e.getAttribute(t)})),r}},each:function(e){a((function(t){for(var r=t.XMLDocument.documentElement.attributes,n=r.length-1;n>=0;n--){var o=r[n];e(t.getAttribute(o.name),o.name)}}))},remove:function(e){var t=c(e);a((function(e){e.removeAttribute(t),e.save(o)}))},clearAll:function(){a((function(e){var t=e.XMLDocument.documentElement.attributes;e.load(o);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(o)}))}};var o="storejs",i=n.document,a=function(){if(!i||!i.documentElement||!i.documentElement.addBehavior)return null;var e,t,r,n="script";try{(t=new ActiveXObject("htmlfile")).open(),t.write("<"+n+">document.w=window</"+n+'><iframe src="/favicon.ico"></iframe>'),t.close(),e=t.w.frames[0].document,r=e.createElement("div")}catch(t){r=i.createElement("div"),e=i.body}return function(t){var n=[].slice.call(arguments,0);n.unshift(r),e.appendChild(r),r.addBehavior("#default#userData"),r.load(o),t.apply(this,n),e.removeChild(r)}}(),u=(n.navigator?n.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),s=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function c(e){return e.replace(/^\d/,"___$&").replace(s,"___")}},416:(e,t,r)=>{var n=r(123).Global;function o(){return n.sessionStorage}function i(e){return o().getItem(e)}e.exports={name:"sessionStorage",read:i,write:function(e,t){return o().setItem(e,t)},each:function(e){for(var t=o().length-1;t>=0;t--){var r=o().key(t);e(i(r),r)}},remove:function(e){return o().removeItem(e)},clearAll:function(){return o().clear()}}},966:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var n,o=r(974),i=r(944),a=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function u(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},s=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},c=function(e){function t(t,r){void 0===t&&(t=(0,i.makeConfig)()),void 0===r&&(r=i.defaultStoreFactory);var n=e.call(this)||this;return n.config=t,n.storage=r(),n}return a(t,e),t.prototype.updateSharedManager=function(e){return u(this,void 0,void 0,(function(){return s(this,(function(e){return[2]}))}))},t.prototype.restore=function(e){return void 0===e&&(e=!0),u(this,void 0,void 0,(function(){var t,r,n;return s(this,(function(i){switch(i.label){case 0:return[4,this.storage.removeExpiredKeys()];case 1:return i.sent(),[4,this.storage.has(this.config.versionKey)];case 2:return i.sent()?[3,5]:[4,this.storage.set(this.config.versionKey,this.config.version,this.config.expiration())];case 3:return i.sent(),[4,this.storage.remove(this.config.storeKey)];case 4:i.sent(),i.label=5;case 5:return[4,this.storage.get(this.config.storeKey)];case 6:return t=i.sent(),[4,this.storage.get(this.config.versionKey)];case 7:r=i.sent(),i.label=8;case 8:return i.trys.push([8,15,,16]),n=o.GdprDeserializer.manager(t),this.config.comparator(r,this.config.version)?[4,this.storage.remove(this.config.storeKey)]:[3,11];case 9:return i.sent(),[4,this.storage.set(this.config.versionKey,this.config.version,this.config.expiration())];case 10:return i.sent(),[2,null];case 11:return n?e?[4,this.updateSharedManager(n)]:[3,13]:[3,14];case 12:i.sent(),i.label=13;case 13:return[2,n];case 14:return[2,null];case 15:return i.sent(),[2,null];case 16:return[2]}}))}))},t.prototype.store=function(e){return u(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.storage.set(this.config.storeKey,e,this.config.expiration())];case 1:t.sent();try{return[2,this.exists()]}catch(e){return[2,!1]}return[2]}}))}))},t}(o.GdprSaviorAdapter)},944:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultConfig:()=>y,defaultConfigParts:()=>g,defaultStoreFactory:()=>h,expiration:()=>v,makeConfig:()=>b,versionComparator:()=>d});var n=r(53),o=r.n(n),i=r(596),a=r.n(i),u=r(398),s=r.n(u);function c(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function l(e,t){const r=function(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}(e);if(isNaN(t))return c(e,NaN);if(!t)return r;const n=r.getDate(),o=c(e,r.getTime());return o.setMonth(r.getMonth()+t+1,0),n>=o.getDate()?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}var f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},p=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},d=function(e,t){return t!==e};p(p([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(a()),!1),[s()],!1).forEach((function(e){return o().addPlugin(e)}));var h=function(){return o()},v=function(){return l(new Date,13)},g={comparator:d,expiration:v},y={storeKey:"gdpr",versionKey:"gdpr__version",version:"v0.0.0",comparator:d,expiration:v},b=function(e){return void 0===e&&(e={}),f(f({},y),e)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{LocalStorageSavior:()=>n.$,defaults:()=>e});var e=__webpack_require__(944),t=__webpack_require__(974),r={};for(const e in t)["default","defaults"].indexOf(e)<0&&(r[e]=()=>t[e]);__webpack_require__.d(__webpack_exports__,r);var n=__webpack_require__(966)})(),__webpack_exports__})())); | ||
//# sourceMappingURL=index.js.map |
@@ -26,3 +26,3 @@ export interface LocalStore { | ||
} | ||
export declare type Version = string | number; | ||
export type Version = string | number; | ||
/** | ||
@@ -32,4 +32,4 @@ * A function that compares two versions. It returns TRUE if the {@link newVersion} is greater | ||
*/ | ||
export declare type VersionComparator = (oldVersion: Version, newVersion: Version) => boolean; | ||
export declare type DateFactory = () => Date; | ||
export type VersionComparator = (oldVersion: Version, newVersion: Version) => boolean; | ||
export type DateFactory = () => Date; | ||
export interface LocalStorageConfig { | ||
@@ -58,2 +58,2 @@ /** | ||
} | ||
export declare type LocalStoreFactory = () => LocalStore; | ||
export type LocalStoreFactory = () => LocalStore; |
{ | ||
"name": "gdpr-guard-local", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A simple local storage adapter for gdpr-guard", | ||
@@ -41,3 +41,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"date-fns": "^2.28.0", | ||
"date-fns": "^3.6.0", | ||
"gdpr-guard": "^2.3.0", | ||
@@ -47,11 +47,15 @@ "store": "^2.0.12" | ||
"devDependencies": { | ||
"@types/node": "^20.14.9", | ||
"@types/store": "^2.0.5", | ||
"@types/webpack": "^5.28.5", | ||
"eledoc": "^0.2.1", | ||
"gh-pages": "^3.2.3", | ||
"ts-loader": "^7.0.5", | ||
"typedoc": "^0.17.7", | ||
"gh-pages": "^6.1.1", | ||
"ts-loader": "^9.5.1", | ||
"ts-node": "^10.9.2", | ||
"typedoc": "^0.23.24", | ||
"typedoc-plugin-as-member-of": "^1.0.2", | ||
"typescript": "4.6", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.12" | ||
"typescript": "^4.9.4", | ||
"webpack": "^5.92.1", | ||
"webpack-cli": "^5.0.1" | ||
} | ||
} |
module.exports = { | ||
mode: "file", | ||
out: "docs", | ||
emit: "docs", | ||
entryPointStrategy: "expand", | ||
entryPoints: ["src"], | ||
readme: "README.md", | ||
@@ -7,4 +10,6 @@ exclude: [ | ||
], | ||
theme: "node_modules/eledoc/bin/default/", | ||
hideGenerator: true | ||
}; | ||
theme: "default", | ||
includeVersion: true, | ||
hideGenerator: true, | ||
githubPages: true, | ||
}; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16
276
179655
12
+ Addeddate-fns@3.6.0(transitive)
- Removed@babel/runtime@7.26.9(transitive)
- Removeddate-fns@2.30.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
Updateddate-fns@^3.6.0