- Redesign KPI cards to look like stock tickers - Add ticker ID (e.g. ВЫРУЧК:KPI, AOV:KPI) - Arrow up/down SVG indicators for change direction - Mini trend-line (50px) inside each card - Change color: green (#16a34a) for up, red (#e21d1d) for down - Remove sparkline background area, keep only line - Fix duplicate arrowUp variable naming (bArrowUp/bArrowDown/bArrowNeutral)
1 line
160 KiB
JavaScript
1 line
160 KiB
JavaScript
(window._sp_wp_jsonp=window._sp_wp_jsonp||[]).push([[4,3],{183:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return P}));r(19),r(23),r(56),r(24),r(25),r(75),r(138),r(104),r(57),r(37),r(52),r(53),r(26),r(27),r(36),r(191),r(192),r(54),r(58),r(73),r(30),r(76),r(28),r(55),r(38),r(29);var n=r(0),o=r(14),i=r(61),u=r(197),a=r(205),c=r(203),s=null,l=r(148);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j(n.key),n)}}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(y,e);var t,r,u,f=h(y);function y(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),S(w(n=f.call(this)),"category","gdpr"),n.config=Object(i.c)(e),n.campaignResponse=t,n.cmpApi={update:function(){}},n.propertyId=r,n}return t=y,(r=[{key:"init",value:function(){var e=this,t=this.config,r=t.accountId,o=t.cmpOrigin,i=t.groupPmId,u=t.includeTcfApi,l=t.mmsDomain,f=t.pmOrigin,p=t.propertyHref,y=t.pubData,b=t.msgOrigin,v=this.campaignResponse,d=v.actions,m=v.applies,h=v.cookies;return window._sp_.gdpr.deleteConsentCookies=function(){return Object(c.a)(o)},Object(n.setStateStorageInMemory)(m,"cookies","applies",this.category),Promise.all((d||[]).map(n.executeAction)).then((function(t){return Object(n.setCookiesAction)(h,l,e.category)})).then((function(){!1===u&&Object.assign(window._sp_.gdpr,Object(a.a)(o,l,e.propertyId)),m||e.cmpApi.update(null),window._sp_.gdpr.loadPrivacyManagerModal=function(t,u,a,c){return(t?Promise.resolve(t):function(e,t,r){return(s=s||Object(n.getStateStorageFromMemory)("childPmId",null,"gdpr"))?Promise.resolve(s):r?Object(n.fetch)("".concat(e,"/privacy-manager/childPmId"),{method:"GET",headers:{"Content-Type":"application/json"},params:{groupPmId:r,siteId:t}}).then(JSON.parse).then((function(e){return s=e.childPmId,e.childPmId})):Promise.resolve(null)}(o,e.propertyId,i)).then((function(t){if(!t)throw new Error("No privacy manager ID found");m&&e.cmpApi.update(Object(n.getUserConsentData)(e.category,"euconsent"),!0);var i=Object(n.getUserConsentData)(e.category,"uuid"),s="PrivacyManager";a?s="PrivacyManagerOTT":c&&(s="NativeOtt");var v=e.makeMessageUrl(s,t,i,e.propertyId,o,l,b);return u&&(v+="&pmTab=".concat(u)),new n.Renderer({accountId:r,url:v,mmsDomain:l,siteId:e.propertyId,href:p,msgOrigin:b,settings:"{}",messageId:t,cmpOrigin:o,type:"pm",pmOrigin:f,wrapperAPIOrigin:e.config.wrapperAPIOrigin,plugAndPlay:!0,activeElement:document.activeElement||void 0,updateCMP:e.updateCmpPost.bind(e),pubData:y,category:"gdpr"}).init()}))},window._sp_.gdpr.loadPrivacyManagerOtt=function(e){return window._sp_.gdpr.loadPrivacyManagerModal(e,null,!0)},window._sp_.gdpr.loadNativeOtt=function(e){return window._sp_.gdpr.loadPrivacyManagerModal(e,null,!1,!0)}}))}},{key:"checkForMessage",value:function(){var e=this.campaignResponse,t=e.applies,r=e.addtlConsent,o=e.consentStatus,i=e.euconsent,u=e.uuid;this.hasMessage()||(this.updateCmpPost(),Object(n.executeEventCallback)("onMessageReceiveData",[{messageId:0}],this.category),Object(n.executeEventCallback)("onConsentReady",[u,i,{addtlConsent:r,applies:t,consentedToAll:o&&o.consentedAll}],this.category))}},{key:"getPvData",value:function(){var e=this.campaignResponse&&this.campaignResponse.messageMetaData||{},t=e.messageId,r=e.categoryId,o=e.prtnUUID,i=e.subCategoryId,u=Object(n.getUserConsentData)(this.category);return{applies:u.applies,categoryId:r,consentStatus:u.consentStatus,euconsent:u.euconsent,msgId:t,subCategoryId:i,prtnUUID:o,uuid:u.uuid}}},{key:"makeMessageUrl",value:function(e,t,r,o,i,u,a){var c=Object(n.getConcatUuidParam)(),s=a,l=[],f=v({consent_origin:i,consentUUID:r,message_id:t,site_id:o,mms_origin:"".concat(u,"/mms/v2")},c);return"PrivacyManager"===e?l=["privacy-manager"]:"PrivacyManagerOTT"===e?l=["privacy-manager-ott"]:"NativeOtt"===e?l=["native-ott"]:f=v({message_id:t,consentUUID:r,consent_origin:i,preload_message:!0},c),Object(n.appendQueryParams)([s].concat(p(l),["index.html"]).join("/"),v(v({},f),{},{version:"v1"}))}},{key:"showMessage",value:function(){var e=this.config,t=e.accountId,r=e.cmpOrigin,i=e.mmsDomain,u=e.msgOrigin,a=e.pmOrigin,c=e.propertyHref,s=e.pubData;if(this.sendPvData(),!this.hasMessage())return Promise.resolve();var l=this.campaignResponse,f=l.applies,p=l.message,y=l.messageMetaData,b=y.bucket,v=y.categoryId,d=y.messageId,m=y.prtnUUID,h=y.subCategoryId;return f&&this.cmpApi.update(Object(n.getUserConsentData)(this.category,"euconsent"),!0),Object(n.executeEventCallback)("onMessageReceiveData",[{prtnUUID:m,messageId:d,msgDescription:p.message_json.name||"",bucket:b,uuid:Object(n.getUserConsentData)(this.category,"uuid"),categoryId:v,subCategoryId:h}],this.category),new n.Renderer({accountId:t,url:this.makeMessageUrl(p.message_json.type,d,Object(n.getUserConsentData)(this.category,"uuid"),this.propertyId,r,i,u),mmsDomain:i,siteId:this.propertyId,href:c,msgOrigin:u,message:p,settings:p.message_json.settings,messageId:d,prtnUUID:m,cmpOrigin:r,type:Object(o.e)(p.message_json.type)?"pm":"message",pmOrigin:a,wrapperAPIOrigin:this.config.wrapperAPIOrigin,callbackPath:null,plugAndPlay:!1,updateCMP:this.updateCmpPost.bind(this),pubData:s,category:"gdpr"}).init()}},{key:"updateCmpPost",value:function(){this.campaignResponse.applies&&(this.cmpApi.update(Object(n.getUserConsentData)(this.category,"euconsent"),!1),l.a.updateGoogleConsentMode(Object(n.getUserConsentData)(this.category,"gcmStatus")))}}])&&d(t.prototype,r),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),y}(u.a)},187:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return bu}));r(191),r(192),r(23),r(52),r(53),r(26),r(27),r(36),r(28),r(19),r(24),r(25);var n,o=r(183);r(138);!function(e){e.PING="ping",e.GET_TC_DATA="getTCData",e.GET_IN_APP_TC_DATA="getInAppTCData",e.GET_VENDOR_LIST="getVendorList",e.ADD_EVENT_LISTENER="addEventListener",e.REMOVE_EVENT_LISTENER="removeEventListener"}(n||(n={}));var i,u,a;r(57);!function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(i||(i={})),function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"}(u||(u={})),function(e){e.TC_LOADED="tcloaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"}(a||(a={}));r(193),r(30),r(201);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function l(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var p=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"listenerId",void 0),l(this,"callback",void 0),l(this,"next",void 0),l(this,"param",void 0),l(this,"success",!0),Object.assign(this,{callback:t,listenerId:n,param:r,next:o});try{this.respond()}catch(e){this.invokeCallback(null)}}var t,r,n;return t=e,(r=[{key:"invokeCallback",value:function(e){var t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(i,e);var t,r,n,o=h(i);function i(){return b(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"respond",value:function(){this.throwIfParamInvalid(),this.invokeCallback(new ue(this.param,this.listenerId))}},{key:"throwIfParamInvalid",value:function(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(p);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function P(e,t,r){return(t=E(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e){var t=function(e,t){if("object"!=S(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S(t)?t:t+""}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),P(this,"eventQueue",new Map),P(this,"queueNumber",0)}var t,r,n;return t=e,(r=[{key:"add",value:function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}},{key:"remove",value:function(e){return this.eventQueue.delete(e)}},{key:"exec",value:function(){this.eventQueue.forEach((function(e,t){new O(e.callback,e.param,t,e.next)}))}},{key:"clear",value:function(){this.queueNumber=0,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}])&&j(t.prototype,r),n&&j(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function T(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}var A=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"reset",value:function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=i.LOADING,this.disabled=!1,this.displayStatus=u.HIDDEN,this.eventQueue.clear()}}],(r=null)&&I(t.prototype,r),n&&I(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V(n.key),n)}}function D(e,t,r){return t&&R(e.prototype,t),r&&R(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t,r){return(t=V(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}T(A,"apiVersion","2"),T(A,"tcfPolicyVersion",void 0),T(A,"eventQueue",new _),T(A,"cmpStatus",i.LOADING),T(A,"disabled",!1),T(A,"displayStatus",u.HIDDEN),T(A,"cmpId",void 0),T(A,"cmpVersion",void 0),T(A,"eventStatus",void 0),T(A,"gdprApplies",void 0),T(A,"tcModel",void 0),T(A,"tcString",void 0);var x=D((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),N(this,"cmpId",A.cmpId),N(this,"cmpVersion",A.cmpVersion),N(this,"gdprApplies",A.gdprApplies),N(this,"tcfPolicyVersion",A.tcfPolicyVersion)}));function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=W(e);if(t){var o=W(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return H(this,r)}}function H(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Q(e)}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(u,e);var t,r,n,o=G(u);function u(){var e;F(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return J(Q(e=o.call.apply(o,[this].concat(r))),"cmpStatus",i.ERROR),e}return t=u,r&&M(t.prototype,r),n&&M(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(x);r(59),r(137),r(207),r(55),r(38),r(37),r(29);function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ie(n.key),n)}}function X(e,t){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=ne(e);if(t){var o=ne(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return te(this,r)}}function te(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return re(e)}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t,r){return(t=ie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}var ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}(i,e);var t,r,n,o=ee(i);function i(e,t){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),oe(re(r=o.call(this)),"tcString",void 0),oe(re(r),"listenerId",void 0),oe(re(r),"eventStatus",void 0),oe(re(r),"cmpStatus",void 0),oe(re(r),"isServiceSpecific",void 0),oe(re(r),"useNonStandardTexts",void 0),oe(re(r),"publisherCC",void 0),oe(re(r),"purposeOneTreatment",void 0),oe(re(r),"outOfBand",void 0),oe(re(r),"purpose",void 0),oe(re(r),"vendor",void 0),oe(re(r),"specialFeatureOptins",void 0),oe(re(r),"publisher",void 0),r.eventStatus=A.eventStatus,r.cmpStatus=A.cmpStatus,r.listenerId=t,A.gdprApplies){var n=A.tcModel;r.tcString=A.tcString,r.isServiceSpecific=n.isServiceSpecific,r.useNonStandardTexts=n.useNonStandardTexts,r.purposeOneTreatment=n.purposeOneTreatment,r.publisherCC=n.publisherCountryCode,!1===r.isServiceSpecific&&(r.outOfBand={allowedVendors:r.createVectorField(n.vendorsAllowed,e),disclosedVendors:r.createVectorField(n.vendorsDisclosed,e)}),r.purpose={consents:r.createVectorField(n.purposeConsents),legitimateInterests:r.createVectorField(n.purposeLegitimateInterests)},r.vendor={consents:r.createVectorField(n.vendorConsents,e),legitimateInterests:r.createVectorField(n.vendorLegitimateInterests,e),disclosedVendors:r.createVectorField(n.vendorsDisclosed,e)},r.specialFeatureOptins=r.createVectorField(n.specialFeatureOptins),r.publisher={consents:r.createVectorField(n.publisherConsents),legitimateInterests:r.createVectorField(n.publisherLegitimateInterests),customPurpose:{consents:r.createVectorField(n.publisherCustomConsents),legitimateInterests:r.createVectorField(n.publisherCustomLegitimateInterests)},restrictions:r.createRestrictions(n.publisherRestrictions)}}return r}return t=i,(r=[{key:"createRestrictions",value:function(e){var t={};if(e.numRestrictions>0)for(var r=e.getMaxVendorId(),n=function(r){var n=r.toString();e.getRestrictions(r).forEach((function(e){var r=e.purposeId.toString();t[r]||(t[r]={}),t[r][n]=e.restrictionType}))},o=1;o<=r;o++)n(o);return t}},{key:"createVectorField",value:function(e,t){return t?t.reduce((function(t,r){return t[String(r)]=e.has(Number(r)),t}),{}):q(e).reduce((function(e,t){return e[t[0].toString(10)]=t[1],e}),{})}}])&&Z(t.prototype,r),n&&Z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(x);function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return se(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fe(n.key),n)}}function fe(e){var t=function(e,t){if("object"!=ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ae(t)?t:t+""}function pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=ve(e);if(t){var o=ve(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return be(this,r)}}function be(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pe(e,t)}(i,e);var t,r,n,o=ye(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),delete(t=o.call(this,e)).outOfBand,t}return t=i,(r=[{key:"createVectorField",value:function(e){return ce(e).reduce((function(e,t){return e+=t[1]?"1":"0"}),"")}},{key:"createRestrictions",value:function(e){var t={};if(e.numRestrictions>0){var r=e.getMaxVendorId();e.getRestrictions().forEach((function(e){t[e.purposeId.toString()]="_".repeat(r)}));for(var n=function(r){var n=r+1;e.getRestrictions(n).forEach((function(e){var n=e.restrictionType.toString(),o=e.purposeId.toString(),i=t[o].substr(0,r),u=t[o].substr(r+1);t[o]=i+n+u}))},o=0;o<r;o++)n(o)}return t}}])&&le(t.prototype,r),n&&le(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(ue);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ee(n.key),n)}}function ge(e,t){return(ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=je(e);if(t){var o=je(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Oe(this,r)}}function Oe(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Se(e)}function Se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function je(e){return(je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pe(e,t,r){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ee(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==me(t)?t:t+""}var _e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ge(e,t)}(i,e);var t,r,n,o=we(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Pe(Se(e=o.call(this)),"cmpLoaded",!0),Pe(Se(e),"cmpStatus",A.cmpStatus),Pe(Se(e),"displayStatus",A.displayStatus),Pe(Se(e),"apiVersion",String(A.apiVersion)),Pe(Se(e),"gvlVersion",void 0),A.tcModel&&A.tcModel.vendorListVersion&&(e.gvlVersion=+A.tcModel.vendorListVersion),e}return t=i,r&&he(t.prototype,r),n&&he(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(x);function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ke(n.key),n)}}function ke(e){var t=function(e,t){if("object"!=Ce(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ce(t)?t:t+""}function Ae(e,t){return(Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Le(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=De(e);if(t){var o=De(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Re(this,r)}}function Re(e,t){if(t&&("object"===Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ae(e,t)}(i,e);var t,r,n,o=Le(i);function i(){return Ie(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"respond",value:function(){this.invokeCallback(new _e)}}])&&Te(t.prototype,r),n&&Te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(p);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Me(n.key),n)}}function Me(e){var t=function(e,t){if("object"!=Ve(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ve(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ve(t)?t:t+""}function Fe(e,t){return(Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=He(e);if(t){var o=He(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ge(this,r)}}function Ge(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(i,e);var t,r,n,o=Be(i);function i(){return xe(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"respond",value:function(){this.throwIfParamInvalid(),this.invokeCallback(new de(this.param))}}])&&Ue(t.prototype,r),n&&Ue(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(O);r(107),r(74);function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ye(n.key),n)}}function Ye(e){var t=function(e,t){if("object"!=We(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==We(t)?t:t+""}function ze(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ke(e){var t="function"==typeof Map?new Map:void 0;return(Ke=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return qe(e,arguments,Xe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ze(r,e)})(e)}function qe(e,t,r){if($e())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ze(o,r.prototype),o}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}function Ze(e,t){return(Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}(a,e);var t,r,n,o,i,u=(t=a,r=$e(),function(){var e,n=Xe(t);if(r){var o=Xe(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ze(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=u.call(this,e)).name="DecodingError",t}return n=a,o&&Je(n.prototype,o),i&&Je(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}(Ke(Error));function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nt(n.key),n)}}function nt(e){var t=function(e,t){if("object"!=tt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tt(t)?t:t+""}function ot(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function it(e){var t="function"==typeof Map?new Map:void 0;return(it=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ut(e,arguments,st(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ct(r,e)})(e)}function ut(e,t,r){if(at())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ct(o,r.prototype),o}function at(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(at=function(){return!!e})()}function ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(a,e);var t,r,n,o,i,u=(t=a,r=at(),function(){var e,n=st(t);if(r){var o=st(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ot(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=u.call(this,e)).name="EncodingError",t}return n=a,o&&rt(n.prototype,o),i&&rt(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}(it(Error));function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yt(n.key),n)}}function yt(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:t+""}function bt(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vt(e){var t="function"==typeof Map?new Map:void 0;return(vt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return dt(e,arguments,gt(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ht(r,e)})(e)}function dt(e,t,r){if(mt())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ht(o,r.prototype),o}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mt=function(){return!!e})()}function ht(e,t){return(ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gt(e){return(gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}(a,e);var t,r,n,o,i,u=(t=a,r=mt(),function(){var e,n=gt(t);if(r){var o=gt(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return bt(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=u.call(this,e)).name="GVLError",t}return n=a,o&&pt(n.prototype,o),i&&pt(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}(vt(Error));function Ot(e){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jt(n.key),n)}}function jt(e){var t=function(e,t){if("object"!=Ot(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ot(t)?t:t+""}function Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){if(t&&("object"===Ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _t(e){var t="function"==typeof Map?new Map:void 0;return(_t=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ct(e,arguments,kt(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Tt(r,e)})(e)}function Ct(e,t,r){if(It())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Tt(o,r.prototype),o}function It(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(It=function(){return!!e})()}function Tt(e,t){return(Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}(a,e);var t,r,n,o,i,u=(t=a,r=It(),function(){var e,n=kt(t);if(r){var o=kt(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return Et(this,e)});function a(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Pt(this,a),(r=u.call(this,"invalid value ".concat(t," passed for ").concat(e," ").concat(n))).name="TCModelError",r}return n=a,o&&St(n.prototype,o),i&&St(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}(_t(Error));function Lt(e){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nt(n.key),n)}}function Dt(e,t,r){return(t=Nt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nt(e){var t=function(e,t){if("object"!=Lt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lt(t)?t:t+""}var Vt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e){if(!/^[0-1]+$/.test(e))throw new lt("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var r="",n=0;n<e.length;n+=this.BASIS)r+=this.DICT[parseInt(e.substr(n,this.BASIS),2)];return r}},{key:"decode",value:function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new et("Invalidly encoded Base64URL string");for(var t="",r=0;r<e.length;r++){var n=this.REVERSE_DICT.get(e[r]).toString(2);t+="0".repeat(this.BASIS-n.length)+n}return t}}],(r=null)&&Rt(t.prototype,r),n&&Rt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Dt(Vt,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Dt(Vt,"REVERSE_DICT",new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]])),Dt(Vt,"BASIS",6),Dt(Vt,"LCM",24);r(72),r(105);function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ut(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Mt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mt(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){a=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bt(n.key),n)}}function Bt(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xt(t)?t:t+""}var Gt,Ht,Qt,Wt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"has",value:function(t){return e.langSet.has(t)}},{key:"parseLanguage",value:function(t){var r=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==r.length){if(e.langSet.has(t))return t;if(e.langSet.has(r))return r;var n=r+"-"+r;if(e.langSet.has(n))return n;var o,i=Ut(e.langSet);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(-1!==u.indexOf(t)||-1!==u.indexOf(r))return u}}catch(e){i.e(e)}finally{i.f()}}throw new Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])&&Ft(t.prototype,r),n&&Ft(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jt(e){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qt(n.key),n)}}function zt(e,t,r){return t&&Yt(e.prototype,t),r&&Yt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kt(e,t,r){return(t=qt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qt(e){var t=function(e,t){if("object"!=Jt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jt(t)?t:t+""}Gt=Wt,Ht="langSet",Qt=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IS","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]),(Ht=Bt(Ht))in Gt?Object.defineProperty(Gt,Ht,{value:Qt,enumerable:!0,configurable:!0,writable:!0}):Gt[Ht]=Qt;var $t=zt((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));Kt($t,"cmpId","cmpId"),Kt($t,"cmpVersion","cmpVersion"),Kt($t,"consentLanguage","consentLanguage"),Kt($t,"consentScreen","consentScreen"),Kt($t,"created","created"),Kt($t,"supportOOB","supportOOB"),Kt($t,"isServiceSpecific","isServiceSpecific"),Kt($t,"lastUpdated","lastUpdated"),Kt($t,"numCustomPurposes","numCustomPurposes"),Kt($t,"policyVersion","policyVersion"),Kt($t,"publisherCountryCode","publisherCountryCode"),Kt($t,"publisherCustomConsents","publisherCustomConsents"),Kt($t,"publisherCustomLegitimateInterests","publisherCustomLegitimateInterests"),Kt($t,"publisherLegitimateInterests","publisherLegitimateInterests"),Kt($t,"publisherConsents","publisherConsents"),Kt($t,"publisherRestrictions","publisherRestrictions"),Kt($t,"purposeConsents","purposeConsents"),Kt($t,"purposeLegitimateInterests","purposeLegitimateInterests"),Kt($t,"purposeOneTreatment","purposeOneTreatment"),Kt($t,"specialFeatureOptins","specialFeatureOptins"),Kt($t,"useNonStandardTexts","useNonStandardTexts"),Kt($t,"vendorConsents","vendorConsents"),Kt($t,"vendorLegitimateInterests","vendorLegitimateInterests"),Kt($t,"vendorListVersion","vendorListVersion"),Kt($t,"vendorsAllowed","vendorsAllowed"),Kt($t,"vendorsDisclosed","vendorsDisclosed"),Kt($t,"version","version");r(54);function Zt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xt(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){a=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function er(e){return(er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rr(n.key),n)}}function rr(e){var t=function(e,t){if("object"!=er(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==er(t)?t:t+""}var nr,or=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"clone",value:function(){var e=this,t=new this.constructor;return Object.keys(this).forEach((function(r){var n=e.deepClone(e[r]);void 0!==n&&(t[r]=n)})),t}},{key:"deepClone",value:function(e){var t=er(e);if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var r,n=[],o=Zt(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;n.push(this.deepClone(i))}}catch(e){o.e(e)}finally{o.f()}return e instanceof Array?n:new e.constructor(n)}var u={};for(var a in e)e.hasOwnProperty(a)&&(u[a]=this.deepClone(e[a]));return u}}}])&&tr(t.prototype,r),n&&tr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ir(e){return(ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yr(n.key),n)}}function ar(e,t){return(ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cr(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=fr(e);if(t){var o=fr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return sr(this,r)}}function sr(e,t){if(t&&("object"===ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lr(e)}function lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pr(e,t,r){return(t=yr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yr(e){var t=function(e,t){if("object"!=ir(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ir(t)?t:t+""}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(nr||(nr={}));var br=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ar(e,t)}(i,e);var t,r,n,o=cr(i);function i(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),pr(lr(r=o.call(this)),"purposeId_",void 0),pr(lr(r),"restrictionType",void 0),void 0!==e&&(r.purposeId=e),void 0!==t&&(r.restrictionType=t),r}return t=i,n=[{key:"unHash",value:function(e){var t=e.split(this.hashSeparator),r=new i;if(2!==t.length)throw new At("hash",e);return r.purposeId=parseInt(t[0],10),r.restrictionType=parseInt(t[1],10),r}}],(r=[{key:"hash",get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(i.hashSeparator).concat(this.restrictionType)}},{key:"purposeId",get:function(){return this.purposeId_},set:function(e){this.purposeId_=e}},{key:"isValid",value:function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===nr.NOT_ALLOWED||this.restrictionType===nr.REQUIRE_CONSENT||this.restrictionType===nr.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}])&&ur(t.prototype,r),n&&ur(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(or);pr(br,"hashSeparator","-");r(75),r(77),r(78),r(195);function vr(e){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dr(e){return function(e){if(Array.isArray(e))return mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_r(n.key),n)}}function wr(e,t){return(wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Or(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=Pr(e);if(t){var o=Pr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Sr(this,r)}}function Sr(e,t){if(t&&("object"===vr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jr(e)}function jr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Er(e,t,r){return(t=_r(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _r(e){var t=function(e,t){if("object"!=vr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vr(t)?t:t+""}var Cr,Ir,Tr,kr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wr(e,t)}(i,e);var t,r,n,o=Or(i);function i(){var e;hr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Er(jr(e=o.call.apply(o,[this].concat(r))),"bitLength",0),Er(jr(e),"map",new Map),Er(jr(e),"gvl_",void 0),e}return t=i,(r=[{key:"has",value:function(e){return this.map.has(e)}},{key:"isOkToHave",value:function(e,t,r){var n,o=!0;if(null!==(n=this.gvl)&&void 0!==n&&n.vendors){var i=this.gvl.vendors[r];if(i)if(e===nr.NOT_ALLOWED)o=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case nr.REQUIRE_CONSENT:o=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case nr.REQUIRE_LI:o=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else o=!1;else o=!1}return o}},{key:"add",value:function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var r=t.hash;this.has(r)||(this.map.set(r,new Set),this.bitLength=0),this.map.get(r).add(e)}}},{key:"restrictPurposeToLegalBasis",value:function(e){var t=Array.from(this.gvl.vendorIds),r=e.hash,n=t[t.length-1],o=dr(Array(n).keys()).map((function(e){return e+1}));if(this.has(r))for(var i=1;i<=n;i++)this.map.get(r).add(i);else this.map.set(r,new Set(o)),this.bitLength=0}},{key:"getVendors",value:function(e){var t=[];if(e){var r=e.hash;this.has(r)&&(t=Array.from(this.map.get(r)))}else{var n=new Set;this.map.forEach((function(e){e.forEach((function(e){n.add(e)}))})),t=Array.from(n)}return t.sort((function(e,t){return e-t}))}},{key:"getRestrictionType",value:function(e,t){var r;return this.getRestrictions(e).forEach((function(e){e.purposeId===t&&(void 0===r||r>e.restrictionType)&&(r=e.restrictionType)})),r}},{key:"vendorHasRestriction",value:function(e,t){for(var r=!1,n=this.getRestrictions(e),o=0;o<n.length&&!r;o++)r=t.isSameAs(n[o]);return r}},{key:"getMaxVendorId",value:function(){var e=0;return this.map.forEach((function(t){e=Math.max(Array.from(t)[t.size-1],e)})),e}},{key:"getRestrictions",value:function(e){var t=[];return this.map.forEach((function(r,n){e?r.has(e)&&t.push(br.unHash(n)):t.push(br.unHash(n))})),t}},{key:"getPurposes",value:function(){var e=new Set;return this.map.forEach((function(t,r){e.add(br.unHash(r).purposeId)})),Array.from(e)}},{key:"remove",value:function(e,t){var r=t.hash,n=this.map.get(r);n&&(n.delete(e),0==n.size&&(this.map.delete(r),this.bitLength=0))}},{key:"gvl",get:function(){return this.gvl_},set:function(e){var t=this;this.gvl_||(this.gvl_=e,this.map.forEach((function(e,r){var n=br.unHash(r);Array.from(e).forEach((function(r){t.isOkToHave(n.restrictionType,n.purposeId,r)||e.delete(r)}))})))}},{key:"isEmpty",value:function(){return 0===this.map.size}},{key:"numRestrictions",get:function(){return this.map.size}}])&&gr(t.prototype,r),n&&gr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(or);function Ar(e){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nr(n.key),n)}}function Rr(e,t,r){return t&&Lr(e.prototype,t),r&&Lr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e,t,r){return(t=Nr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nr(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ar(t)?t:t+""}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(Cr||(Cr={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(Ir||(Ir={}));var Vr=Rr((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));Dr(Vr,"ID_TO_KEY",[Ir.CORE,Ir.VENDORS_DISCLOSED,Ir.VENDORS_ALLOWED,Ir.PUBLISHER_TC]),Dr(Vr,"KEY_TO_ID",(Dr(Tr={},Ir.CORE,0),Dr(Tr,Ir.VENDORS_DISCLOSED,1),Dr(Tr,Ir.VENDORS_ALLOWED,2),Dr(Tr,Ir.PUBLISHER_TC,3),Tr));r(198),r(140),r(141),r(142),r(56),r(199);function xr(e){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ur(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ur=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,u=Object.create(i.prototype),a=new T(n||[]);return o(u,"_invoke",{value:E(e,r,a)}),u}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",y="executing",b="completed",v={};function d(){}function m(){}function h(){}var g={};s(g,u,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(k([])));O&&O!==r&&n.call(O,u)&&(g=O);var S=h.prototype=d.prototype=Object.create(g);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,u,a){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==xr(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,u,a)}),(function(e){r("throw",e,u,a)})):t.resolve(l).then((function(e){s.value=e,u(s)}),(function(e){return r("throw",e,u,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=p;return function(i,u){if(o===y)throw Error("Generator is already running");if(o===b){if("throw"===i)throw u;return{value:e,done:!0}}for(n.method=i,n.arg=u;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?b:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=b,n.method="throw",n.arg=s.arg)}}}function _(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var u=i.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(xr(t)+" is not iterable")}return m.prototype=h,o(S,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:m,configurable:!0}),m.displayName=s(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},j(P.prototype),s(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var u=new P(l(e,r,n,o),i);return t.isGeneratorFunction(r)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},j(S),s(S,c,"Generator"),s(S,u,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=e,u.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yr(n.key),n)}}function Br(e,t){return(Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gr(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=Wr(e);if(t){var o=Wr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Hr(this,r)}}function Hr(e,t){if(t&&("object"===xr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qr(e)}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wr(e){return(Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jr(e,t,r){return(t=Yr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yr(e){var t=function(e,t){if("object"!=xr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xr(t)?t:t+""}var zr,Kr,qr,$r,Zr,Xr,en,tn,rn,nn,on,un,an,cn,sn,ln,fn,pn,yn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Br(e,t)}(i,e);var t,r,n,o=Gr(i);function i(){var e;Mr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Jr(Qr(e=o.call.apply(o,[this].concat(r))),"bitLength",0),Jr(Qr(e),"maxId_",0),Jr(Qr(e),"set_",new Set),e}return t=i,(r=[{key:Symbol.iterator,value:Ur().mark((function e(){var t;return Ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=1;case 1:if(!(t<=this.maxId)){e.next=7;break}return e.next=4,[t,this.has(t)];case 4:t++,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"values",value:function(){return this.set_.values()}},{key:"maxId",get:function(){return this.maxId_}},{key:"has",value:function(e){return this.set_.has(e)}},{key:"unset",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t.unset(e)})):"object"===xr(e)?this.unset(Object.keys(e).map((function(e){return Number(e)}))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((function(e){t.maxId_=Math.max(t.maxId,e)}))))}},{key:"isIntMap",value:function(e){var t=this,r="object"===xr(e);return r=r&&Object.keys(e).every((function(r){var n=Number.isInteger(parseInt(r,10));return n=(n=n&&t.isValidNumber(e[r].id))&&void 0!==e[r].name}))}},{key:"isValidNumber",value:function(e){return parseInt(e,10)>0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new At("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set,this.maxId_=0}},{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}])&&Fr(t.prototype,r),n&&Fr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(or);function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hn(n.key),n)}}function dn(e,t,r){return t&&vn(e.prototype,t),r&&vn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mn(e,t,r){return(t=hn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hn(e){var t=function(e,t){if("object"!=bn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bn(t)?t:t+""}zr=$t.cmpId,Kr=$t.cmpVersion,qr=$t.consentLanguage,$r=$t.consentScreen,Zr=$t.created,Xr=$t.isServiceSpecific,en=$t.lastUpdated,tn=$t.policyVersion,rn=$t.publisherCountryCode,nn=$t.publisherLegitimateInterests,on=$t.publisherConsents,un=$t.purposeConsents,an=$t.purposeLegitimateInterests,cn=$t.purposeOneTreatment,sn=$t.specialFeatureOptins,ln=$t.useNonStandardTexts,fn=$t.vendorListVersion,pn=$t.version;var gn=dn((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));function wn(e){return(wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sn(n.key),n)}}function Sn(e){var t=function(e,t){if("object"!=wn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wn(t)?t:t+""}mn(gn,zr,12),mn(gn,Kr,12),mn(gn,qr,12),mn(gn,$r,6),mn(gn,Zr,36),mn(gn,Xr,1),mn(gn,en,36),mn(gn,tn,6),mn(gn,rn,12),mn(gn,nn,24),mn(gn,on,24),mn(gn,un,24),mn(gn,an,24),mn(gn,cn,1),mn(gn,sn,12),mn(gn,ln,1),mn(gn,fn,12),mn(gn,pn,6),mn(gn,"anyBoolean",1),mn(gn,"encodingType",1),mn(gn,"maxId",16),mn(gn,"numCustomPurposes",6),mn(gn,"numEntries",12),mn(gn,"numRestrictions",12),mn(gn,"purposeId",6),mn(gn,"restrictionType",2),mn(gn,"segmentType",3),mn(gn,"singleOrRange",1),mn(gn,"vendorId",16);var jn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e){return String(Number(e))}},{key:"decode",value:function(e){return"1"===e}}],(r=null)&&On(t.prototype,r),n&&On(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_n(n.key),n)}}function _n(e){var t=function(e,t){if("object"!=Pn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pn(t)?t:t+""}var Cn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e,t){var r;if("string"==typeof e&&(e=parseInt(e,10)),(r=e.toString(2)).length>t||e<0)throw new lt("".concat(e," too large to encode into ").concat(t));return r.length<t&&(r="0".repeat(t-r.length)+r),r}},{key:"decode",value:function(e,t){if(t!==e.length)throw new et("invalid bit length");return parseInt(e,2)}}],(r=null)&&En(t.prototype,r),n&&En(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function In(e){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kn(n.key),n)}}function kn(e){var t=function(e,t){if("object"!=In(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==In(t)?t:t+""}var An=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e,t){return Cn.encode(Math.round(e.getTime()/100),t)}},{key:"decode",value:function(e,t){if(t!==e.length)throw new et("invalid bit length");var r=new Date;return r.setTime(100*Cn.decode(e,t)),r}}],(r=null)&&Tn(t.prototype,r),n&&Tn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ln(e){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dn(n.key),n)}}function Dn(e){var t=function(e,t){if("object"!=Ln(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ln(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ln(t)?t:t+""}var Nn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e,t){for(var r="",n=1;n<=t;n++)r+=jn.encode(e.has(n));return r}},{key:"decode",value:function(e,t){if(e.length!==t)throw new et("bitfield encoding length mismatch");for(var r=new yn,n=1;n<=t;n++)jn.decode(e[n-1])&&r.set(n);return r.bitLength=e.length,r}}],(r=null)&&Rn(t.prototype,r),n&&Rn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vn(e){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Un(n.key),n)}}function Un(e){var t=function(e,t){if("object"!=Vn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vn(t)?t:t+""}var Mn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e,t){var r=(e=e.toUpperCase()).charCodeAt(0)-65,n=e.charCodeAt(1)-65;if(r<0||r>25||n<0||n>25)throw new lt("invalid language code: ".concat(e));if(t%2==1)throw new lt("numBits must be even, ".concat(t," is not valid"));return t/=2,Cn.encode(r,t)+Cn.encode(n,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new et("invalid bit length for language");var r=e.length/2,n=Cn.decode(e.slice(0,r),r)+65,o=Cn.decode(e.slice(r),r)+65;return String.fromCharCode(n)+String.fromCharCode(o)}}],(r=null)&&xn(t.prototype,r),n&&xn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fn(e){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gn(n.key),n)}}function Gn(e){var t=function(e,t){if("object"!=Fn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fn(t)?t:t+""}var Hn,Qn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e){var t=Cn.encode(e.numRestrictions,gn.numRestrictions);if(!e.isEmpty()){var r=function(t,r){for(var n=t+1;n<=r;n++)if(e.gvl.vendorIds.has(n))return n;return t};e.getRestrictions().forEach((function(n){t+=Cn.encode(n.purposeId,gn.purposeId),t+=Cn.encode(n.restrictionType,gn.restrictionType);for(var o=e.getVendors(n),i=o.length,u=0,a=0,c="",s=0;s<i;s++){var l=o[s];if(0===a&&(u++,a=l),s===i-1||o[s+1]>r(l,o[i-1])){var f=!(l===a);c+=jn.encode(f),c+=Cn.encode(a,gn.vendorId),f&&(c+=Cn.encode(l,gn.vendorId)),a=0}}t+=Cn.encode(u,gn.numEntries),t+=c}))}return t}},{key:"decode",value:function(e){var t=0,r=new kr,n=Cn.decode(e.substr(t,gn.numRestrictions),gn.numRestrictions);t+=gn.numRestrictions;for(var o=0;o<n;o++){var i=Cn.decode(e.substr(t,gn.purposeId),gn.purposeId);t+=gn.purposeId;var u=Cn.decode(e.substr(t,gn.restrictionType),gn.restrictionType);t+=gn.restrictionType;var a=new br(i,u),c=Cn.decode(e.substr(t,gn.numEntries),gn.numEntries);t+=gn.numEntries;for(var s=0;s<c;s++){var l=jn.decode(e.substr(t,gn.anyBoolean));t+=gn.anyBoolean;var f=Cn.decode(e.substr(t,gn.vendorId),gn.vendorId);if(t+=gn.vendorId,l){var p=Cn.decode(e.substr(t,gn.vendorId),gn.vendorId);if(t+=gn.vendorId,p<f)throw new et("Invalid RangeEntry: endVendorId ".concat(p," is less than ").concat(f));for(var y=f;y<=p;y++)r.add(y,a)}else r.add(f,a)}}return r.bitLength=t,r}}],(r=null)&&Bn(t.prototype,r),n&&Bn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Wn(e){return(Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yn(n.key),n)}}function Yn(e){var t=function(e,t){if("object"!=Wn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wn(t)?t:t+""}!function(e){e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE"}(Hn||(Hn={}));var zn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e){var t,r=[],n=[],o=Cn.encode(e.maxId,gn.maxId),i="",u=gn.maxId+gn.encodingType,a=u+e.maxId,c=2*gn.vendorId+gn.singleOrRange+gn.numEntries,s=u+gn.numEntries;return e.forEach((function(o,u){i+=jn.encode(o),(t=e.maxId>c&&s<a)&&o&&(e.has(u+1)?0===n.length&&(n.push(u),s+=gn.singleOrRange,s+=gn.vendorId):(n.push(u),s+=gn.vendorId,r.push(n),n=[]))})),t?(o+=String(Hn.RANGE),o+=this.buildRangeEncoding(r)):(o+=String(Hn.FIELD),o+=i),o}},{key:"decode",value:function(e,t){var r,n=0,o=Cn.decode(e.substr(n,gn.maxId),gn.maxId);n+=gn.maxId;var i=Cn.decode(e.charAt(n),gn.encodingType);if(n+=gn.encodingType,i===Hn.RANGE){if(r=new yn,1===t){if("1"===e.substr(n,1))throw new et("Unable to decode default consent=1");n++}var u=Cn.decode(e.substr(n,gn.numEntries),gn.numEntries);n+=gn.numEntries;for(var a=0;a<u;a++){var c=jn.decode(e.charAt(n));n+=gn.singleOrRange;var s=Cn.decode(e.substr(n,gn.vendorId),gn.vendorId);if(n+=gn.vendorId,c){var l=Cn.decode(e.substr(n,gn.vendorId),gn.vendorId);n+=gn.vendorId;for(var f=s;f<=l;f++)r.set(f)}else r.set(s)}}else{var p=e.substr(n,o);n+=o,r=Nn.decode(p,o)}return r.bitLength=n,r}},{key:"buildRangeEncoding",value:function(e){var t=e.length,r=Cn.encode(t,gn.numEntries);return e.forEach((function(e){var t=1===e.length;r+=jn.encode(!t),r+=Cn.encode(e[0],gn.vendorId),t||(r+=Cn.encode(e[1],gn.vendorId))})),r}}],(r=null)&&Jn(t.prototype,r),n&&Jn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kn(e){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qn(e,t,r){var n;return n=function(e,t){if("object"!=Kn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Kn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Kn(n)?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $n(){var e;return qn(e={},$t.version,Cn),qn(e,$t.created,An),qn(e,$t.lastUpdated,An),qn(e,$t.cmpId,Cn),qn(e,$t.cmpVersion,Cn),qn(e,$t.consentScreen,Cn),qn(e,$t.consentLanguage,Mn),qn(e,$t.vendorListVersion,Cn),qn(e,$t.policyVersion,Cn),qn(e,$t.isServiceSpecific,jn),qn(e,$t.useNonStandardTexts,jn),qn(e,$t.specialFeatureOptins,Nn),qn(e,$t.purposeConsents,Nn),qn(e,$t.purposeLegitimateInterests,Nn),qn(e,$t.purposeOneTreatment,jn),qn(e,$t.publisherCountryCode,Mn),qn(e,$t.vendorConsents,zn),qn(e,$t.vendorLegitimateInterests,zn),qn(e,$t.publisherRestrictions,Qn),qn(e,"segmentType",Cn),qn(e,$t.vendorsDisclosed,zn),qn(e,$t.vendorsAllowed,zn),qn(e,$t.publisherConsents,Nn),qn(e,$t.publisherLegitimateInterests,Nn),qn(e,$t.numCustomPurposes,Cn),qn(e,$t.publisherCustomConsents,Nn),qn(e,$t.publisherCustomLegitimateInterests,Nn),e}function Zn(e){return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ro(n.key),n)}}function eo(e,t,r){return t&&Xn(e.prototype,t),r&&Xn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function to(e,t,r){return(t=ro(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ro(e){var t=function(e,t){if("object"!=Zn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zn(t)?t:t+""}var no=eo((function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),to(this,"1",to({},Ir.CORE,[$t.version,$t.created,$t.lastUpdated,$t.cmpId,$t.cmpVersion,$t.consentScreen,$t.consentLanguage,$t.vendorListVersion,$t.purposeConsents,$t.vendorConsents])),to(this,"2",(to(t={},Ir.CORE,[$t.version,$t.created,$t.lastUpdated,$t.cmpId,$t.cmpVersion,$t.consentScreen,$t.consentLanguage,$t.vendorListVersion,$t.policyVersion,$t.isServiceSpecific,$t.useNonStandardTexts,$t.specialFeatureOptins,$t.purposeConsents,$t.purposeLegitimateInterests,$t.purposeOneTreatment,$t.publisherCountryCode,$t.vendorConsents,$t.vendorLegitimateInterests,$t.publisherRestrictions]),to(t,Ir.VENDORS_DISCLOSED,[$t.vendorsDisclosed]),to(t,Ir.PUBLISHER_TC,[$t.publisherConsents,$t.publisherLegitimateInterests,$t.numCustomPurposes,$t.publisherCustomConsents,$t.publisherCustomLegitimateInterests]),to(t,Ir.VENDORS_ALLOWED,[$t.vendorsAllowed]),t))}));function oo(e){return(oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function io(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,co(n.key),n)}}function uo(e,t,r){return t&&io(e.prototype,t),r&&io(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ao(e,t,r){return(t=co(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function co(e){var t=function(e,t){if("object"!=oo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oo(t)?t:t+""}var so=uo((function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ao(this,"1",[Ir.CORE]),ao(this,"2",[Ir.CORE]),2===t.version)if(t.isServiceSpecific)this[2].push(Ir.VENDORS_DISCLOSED),this[2].push(Ir.PUBLISHER_TC);else{var n=!(!r||!r.isForVendors);n&&!0!==t[$t.supportOOB]||this[2].push(Ir.VENDORS_DISCLOSED),n&&(t[$t.supportOOB]&&t[$t.vendorsAllowed].size>0&&this[2].push(Ir.VENDORS_ALLOWED),this[2].push(Ir.PUBLISHER_TC))}}));function lo(e){return(lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,po(n.key),n)}}function po(e){var t=function(e,t){if("object"!=lo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=lo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lo(t)?t:t+""}var yo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e,t){var r,n=this;try{r=this.fieldSequence[String(e.version)][t]}catch(r){throw new lt("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var o="";t!==Ir.CORE&&(o=Cn.encode(Vr.KEY_TO_ID[t],gn.segmentType));var i=$n();return r.forEach((function(r){var u=e[r],a=i[r],c=gn[r];void 0===c&&n.isPublisherCustom(r)&&(c=Number(e[$t.numCustomPurposes]));try{o+=a.encode(u,c)}catch(e){throw new lt("Error encoding ".concat(t,"->").concat(r,": ").concat(e.message))}})),Vt.encode(o)}},{key:"decode",value:function(e,t,r){var n=this,o=Vt.decode(e),i=0;r===Ir.CORE&&(t.version=Cn.decode(o.substr(i,gn[$t.version]),gn[$t.version])),r!==Ir.CORE&&(i+=gn.segmentType);var u=this.fieldSequence[String(t.version)][r],a=$n();return u.forEach((function(e){var r=a[e],u=gn[e];if(void 0===u&&n.isPublisherCustom(e)&&(u=Number(t[$t.numCustomPurposes])),0!==u){var c=o.substr(i,u);if(t[e]=r===zn?r.decode(c,t.version):r.decode(c,u),Number.isInteger(u))i+=u;else{if(!Number.isInteger(t[e].bitLength))throw new et(e);i+=t[e].bitLength}}})),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}],(r=null)&&fo(t.prototype,r),n&&fo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bo(e){return(bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mo(n.key),n)}}function mo(e){var t=function(e,t){if("object"!=bo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bo(t)?t:t+""}!function(e,t,r){(t=po(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(yo,"fieldSequence",new no);var ho=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"process",value:function(e,t){var r=e.gvl;if(!r)throw new lt("Unable to encode TCModel without a GVL");if(!r.isReady)throw new lt("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=r.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var n=e.version-1;if(!this.processor[n])throw new lt("Invalid version: ".concat(e.version));return this.processor[n](e,r)}}],(r=null)&&vo(t.prototype,r),n&&vo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();!function(e,t,r){(t=mo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ho,"processor",[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var r=new Map;return r.set("legIntPurposes",e.vendorLegitimateInterests),r.set("purposes",e.vendorConsents),r.forEach((function(r,n){r.forEach((function(o,i){if(o){var u=t.vendors[i];if(!u||u.deletedDate)r.unset(i);else if(0===u[n].length)if("legIntPurposes"===n&&0===u.purposes.length&&0===u.legIntPurposes.length&&u.specialPurposes.length>0)r.set(i);else if("legIntPurposes"===n&&u.purposes.length>0&&0===u.legIntPurposes.length&&u.specialPurposes.length>0)r.set(i);else if(e.isServiceSpecific)if(0===u.flexiblePurposes.length)r.unset(i);else{for(var a=e.publisherRestrictions.getRestrictions(i),c=!1,s=0,l=a.length;s<l&&!c;s++)c=a[s].restrictionType===nr.REQUIRE_CONSENT&&"purposes"===n||a[s].restrictionType===nr.REQUIRE_LI&&"legIntPurposes"===n;c||r.unset(i)}else r.unset(i)}}))})),e}]);r(144),r(58),r(73),r(76);function go(e){return(go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Oo(n.key),n)}}function Oo(e){var t=function(e,t){if("object"!=go(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==go(t)?t:t+""}var So=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"absCall",value:function(e,t,r,n){return new Promise((function(o,i){var u=new XMLHttpRequest;u.withCredentials=r,u.addEventListener("load",(function(){if(u.readyState==XMLHttpRequest.DONE)if(u.status>=200&&u.status<300){var e=u.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}o(e)}else i(new Error("HTTP Status: ".concat(u.status," response type: ").concat(u.responseType)))})),u.addEventListener("error",(function(){i(new Error("error"))})),u.addEventListener("abort",(function(){i(new Error("aborted"))})),null===t?u.open("GET",e,!0):u.open("POST",e,!0),u.responseType="json",u.timeout=n,u.ontimeout=function(){i(new Error("Timeout "+n+"ms "+e))},u.send(t)}))}},{key:"post",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),r,n)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,r)}}],(r=null)&&wo(t.prototype,r),n&&wo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jo(e){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Po(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(r),!0).forEach((function(t){No(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_o=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,u=Object.create(i.prototype),a=new T(n||[]);return o(u,"_invoke",{value:E(e,r,a)}),u}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",y="executing",b="completed",v={};function d(){}function m(){}function h(){}var g={};s(g,u,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(k([])));O&&O!==r&&n.call(O,u)&&(g=O);var S=h.prototype=d.prototype=Object.create(g);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,u,a){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==jo(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,u,a)}),(function(e){r("throw",e,u,a)})):t.resolve(l).then((function(e){s.value=e,u(s)}),(function(e){return r("throw",e,u,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=p;return function(i,u){if(o===y)throw Error("Generator is already running");if(o===b){if("throw"===i)throw u;return{value:e,done:!0}}for(n.method=i,n.arg=u;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?b:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=b,n.method="throw",n.arg=s.arg)}}}function _(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var u=i.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(jo(t)+" is not iterable")}return m.prototype=h,o(S,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:m,configurable:!0}),m.displayName=s(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},j(P.prototype),s(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var u=new P(l(e,r,n,o),i);return t.isGeneratorFunction(r)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},j(S),s(S,c,"Generator"),s(S,u,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=e,u.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Co(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Io(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){Co(i,n,o,u,a,"next",e)}function a(e){Co(i,n,o,u,a,"throw",e)}u(void 0)}))}}function To(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vo(n.key),n)}}function ko(e,t){return(ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ao(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=Do(e);if(t){var o=Do(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Lo(this,r)}}function Lo(e,t){if(t&&("object"===jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ro(e)}function Ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Do(e){return(Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function No(e,t,r){return(t=Vo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vo(e){var t=function(e,t){if("object"!=jo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jo(t)?t:t+""}var xo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(a,e);var t,r,n,o,i,u=Ao(a);function a(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),No(Ro(r=u.call(this)),"readyPromise",void 0),No(Ro(r),"gvlSpecificationVersion",void 0),No(Ro(r),"vendorListVersion",void 0),No(Ro(r),"tcfPolicyVersion",void 0),No(Ro(r),"lastUpdated",void 0),No(Ro(r),"purposes",void 0),No(Ro(r),"specialPurposes",void 0),No(Ro(r),"features",void 0),No(Ro(r),"specialFeatures",void 0),No(Ro(r),"isReady_",!1),No(Ro(r),"vendors_",void 0),No(Ro(r),"vendorIds",void 0),No(Ro(r),"fullVendorList",void 0),No(Ro(r),"byPurposeVendorMap",void 0),No(Ro(r),"bySpecialPurposeVendorMap",void 0),No(Ro(r),"byFeatureVendorMap",void 0),No(Ro(r),"bySpecialFeatureVendorMap",void 0),No(Ro(r),"stacks",void 0),No(Ro(r),"dataCategories",void 0),No(Ro(r),"lang_",void 0),No(Ro(r),"cacheLang_",void 0),No(Ro(r),"isLatest",!1);var n=a.baseUrl,o=null==t?void 0:t.language;if(o)try{o=a.consentLanguages.parseLanguage(o)}catch(e){throw new wt("Error during parsing the language: "+e.message)}if(r.lang_=o||a.DEFAULT_LANGUAGE,r.cacheLang_=o||a.DEFAULT_LANGUAGE,r.isVendorList(e))r.populate(e),r.readyPromise=Promise.resolve();else{if(!n)throw new wt("must specify GVL.baseUrl before loading GVL json");if(e>0){var i=e;a.CACHE.has(i)?(r.populate(a.CACHE.get(i)),r.readyPromise=Promise.resolve()):(n+=a.versionedFilename.replace("[VERSION]",String(i)),r.readyPromise=r.fetchJson(n))}else a.CACHE.has(a.LATEST_CACHE_KEY)?(r.populate(a.CACHE.get(a.LATEST_CACHE_KEY)),r.readyPromise=Promise.resolve()):(r.isLatest=!0,r.readyPromise=r.fetchJson(n+a.latestFilename))}return r}return t=a,r=[{key:"cacheLanguage",value:function(){a.LANGUAGE_CACHE.has(this.cacheLang_)||a.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(i=Io(_o().mark((function e(t){return _o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this,e.next=4,So.fetch(t);case 4:e.t1=e.sent,e.t0.populate.call(e.t0,e.t1),e.next=11;break;case 8:throw e.prev=8,e.t2=e.catch(0),new wt(e.t2.message);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return i.apply(this,arguments)})},{key:"getJson",value:function(){return Eo(Eo({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{},{vendors:this.cloneVendors()})}},{key:"cloneSpecialFeatures",value:function(){for(var e={},t=0,r=Object.keys(this.specialFeatures);t<r.length;t++){var n=r[t];e[n]=a.cloneFeature(this.specialFeatures[n])}return e}},{key:"cloneFeatures",value:function(){for(var e={},t=0,r=Object.keys(this.features);t<r.length;t++){var n=r[t];e[n]=a.cloneFeature(this.features[n])}return e}},{key:"cloneStacks",value:function(){for(var e={},t=0,r=Object.keys(this.stacks);t<r.length;t++){var n=r[t];e[n]=a.cloneStack(this.stacks[n])}return e}},{key:"cloneDataCategories",value:function(){for(var e={},t=0,r=Object.keys(this.dataCategories);t<r.length;t++){var n=r[t];e[n]=a.cloneDataCategory(this.dataCategories[n])}return e}},{key:"cloneSpecialPurposes",value:function(){for(var e={},t=0,r=Object.keys(this.specialPurposes);t<r.length;t++){var n=r[t];e[n]=a.clonePurpose(this.specialPurposes[n])}return e}},{key:"clonePurposes",value:function(){for(var e={},t=0,r=Object.keys(this.purposes);t<r.length;t++){var n=r[t];e[n]=a.clonePurpose(this.purposes[n])}return e}},{key:"cloneVendors",value:function(){for(var e={},t=0,r=Object.keys(this.fullVendorList);t<r.length;t++){var n=r[t];e[n]=a.cloneVendor(this.fullVendorList[n])}return e}},{key:"changeLanguage",value:(o=Io(_o().mark((function e(t){var r,n,o,i,u;return _o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t,e.prev=1,r=a.consentLanguages.parseLanguage(t),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),new wt("Error during parsing the language: "+e.t0.message);case 8:if(n=t.toUpperCase(),r.toLowerCase()!==a.DEFAULT_LANGUAGE.toLowerCase()||a.LANGUAGE_CACHE.has(n)){e.next=11;break}return e.abrupt("return");case 11:if(r===this.lang_){e.next=29;break}if(this.lang_=r,!a.LANGUAGE_CACHE.has(n)){e.next=18;break}for(i in o=a.LANGUAGE_CACHE.get(n))o.hasOwnProperty(i)&&(this[i]=o[i]);e.next=29;break;case 18:return u=a.baseUrl+a.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),e.prev=19,e.next=22,this.fetchJson(u);case 22:this.cacheLang_=n,this.cacheLanguage(),e.next=29;break;case 26:throw e.prev=26,e.t1=e.catch(19),new wt("unable to load language: "+e.t1.message);case 29:case"end":return e.stop()}}),e,this,[[1,5],[19,26]])}))),function(e){return o.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&a.CACHE.set(a.LATEST_CACHE_KEY,this.getJson()),a.CACHE.has(this.vendorListVersion)||a.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(e){t.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((function(e){t.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((function(e){t.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((function(e){return+e}))),this.vendorIds=new Set(e),this.vendors_=e.reduce((function(e,r){var n=t.vendors_[String(r)];return n&&void 0===n.deletedDate&&(n.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(r)})),n.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(r)})),n.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(r)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(r)})),n.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(r)})),n.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(r)})),e[r]=n),e}),{})}},{key:"getFilteredVendors",value:function(e,t,r,n){var o=this,i=e.charAt(0).toUpperCase()+e.slice(1),u={};return("purpose"===e&&r?this["by"+i+"VendorMap"][String(t)][r]:this["by"+(n?"Special":"")+i+"VendorMap"][String(t)]).forEach((function(e){u[String(e)]=o.vendors[String(e)]})),u}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var e=new a(this.getJson());return this.lang_!==a.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}}],n=[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new wt("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}},{key:"emptyLanguageCache",value:function(e){var t=!1;return null==e&&a.LANGUAGE_CACHE.size>0?(a.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(a.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(a.CACHE.delete(e),t=!0):void 0===e&&(a.CACHE=new Map,t=!0),t}},{key:"clonePurpose",value:function(e){return Eo(Eo({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneFeature",value:function(e){return Eo(Eo({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneDataCategory",value:function(e){return{id:e.id,name:e.name,description:e.description}}},{key:"cloneStack",value:function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}},{key:"cloneDataRetention",value:function(e){return Eo(Eo({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{},{purposes:Eo({},e.purposes),specialPurposes:Eo({},e.specialPurposes)})}},{key:"cloneVendorUrls",value:function(e){return e.map((function(e){return Eo({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})}))}},{key:"cloneVendor",value:function(e){return Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})}},{key:"isInstanceOf",value:function(e){return"object"===jo(e)&&"function"==typeof e.narrowVendorsTo}}],r&&To(t.prototype,r),n&&To(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(or);function Uo(e){return(Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jo(n.key),n)}}function Fo(e,t){return(Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bo(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=Qo(e);if(t){var o=Qo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Go(this,r)}}function Go(e,t){if(t&&("object"===Uo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ho(e)}function Ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qo(e){return(Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wo(e,t,r){return(t=Jo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jo(e){var t=function(e,t){if("object"!=Uo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Uo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uo(t)?t:t+""}No(xo,"LANGUAGE_CACHE",new Map),No(xo,"CACHE",new Map),No(xo,"LATEST_CACHE_KEY",0),No(xo,"DEFAULT_LANGUAGE","EN"),No(xo,"consentLanguages",new Wt),No(xo,"baseUrl_",void 0),No(xo,"latestFilename","vendor-list.json"),No(xo,"versionedFilename","archives/vendor-list-v[VERSION].json"),No(xo,"languageFilename","purposes-[LANG].json");var Yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}(i,e);var t,r,n,o=Bo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Wo(Ho(t=o.call(this)),"isServiceSpecific_",!0),Wo(Ho(t),"supportOOB_",!1),Wo(Ho(t),"useNonStandardTexts_",!1),Wo(Ho(t),"purposeOneTreatment_",!1),Wo(Ho(t),"publisherCountryCode_","AA"),Wo(Ho(t),"version_",2),Wo(Ho(t),"consentScreen_",0),Wo(Ho(t),"policyVersion_",5),Wo(Ho(t),"consentLanguage_","EN"),Wo(Ho(t),"cmpId_",0),Wo(Ho(t),"cmpVersion_",0),Wo(Ho(t),"vendorListVersion_",0),Wo(Ho(t),"numCustomPurposes_",0),Wo(Ho(t),"gvl_",void 0),Wo(Ho(t),"created",void 0),Wo(Ho(t),"lastUpdated",void 0),Wo(Ho(t),"specialFeatureOptins",new yn),Wo(Ho(t),"purposeConsents",new yn),Wo(Ho(t),"purposeLegitimateInterests",new yn),Wo(Ho(t),"publisherConsents",new yn),Wo(Ho(t),"publisherLegitimateInterests",new yn),Wo(Ho(t),"publisherCustomConsents",new yn),Wo(Ho(t),"publisherCustomLegitimateInterests",new yn),Wo(Ho(t),"customPurposes",void 0),Wo(Ho(t),"vendorConsents",new yn),Wo(Ho(t),"vendorLegitimateInterests",new yn),Wo(Ho(t),"vendorsDisclosed",new yn),Wo(Ho(t),"vendorsAllowed",new yn),Wo(Ho(t),"publisherRestrictions",new kr),e&&(t.gvl=e),t.updated(),t}return t=i,(r=[{key:"gvl",get:function(){return this.gvl_},set:function(e){xo.isInstanceOf(e)||(e=new xo(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}},{key:"cmpId",get:function(){return this.cmpId_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new At("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new At("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new At("consentScreen",e);this.consentScreen_=e}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new At("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)>>0)<0)throw new At("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new At("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;if("object"===Uo(this.customPurposes)){var t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new At("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}])&&Mo(t.prototype,r),n&&Mo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(or);function zo(e){return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ko(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qo(n.key),n)}}function qo(e){var t=function(e,t){if("object"!=zo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zo(t)?t:t+""}Wo(Yo,"consentLanguages",xo.consentLanguages);var $o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"encode",value:function(e,t){var r,n="";return e=ho.process(e,t),(r=Array.isArray(null==t?void 0:t.segments)?t.segments:new so(e,t)[""+e.version]).forEach((function(t,o){var i="";o<r.length-1&&(i="."),n+=yo.encode(e,t)+i})),n}},{key:"decode",value:function(e,t){var r=e.split("."),n=r.length;t||(t=new Yo);for(var o=0;o<n;o++){var i=r[o],u=Vt.decode(i.charAt(0)).substr(0,gn.segmentType),a=Vr.ID_TO_KEY[Cn.decode(u,gn.segmentType).toString()];yo.decode(i,t,a)}return t}}],(r=null)&&Ko(t.prototype,r),n&&Ko(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Zo(e){return(Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ei(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ti(n.key),n)}}function ti(e){var t=function(e,t){if("object"!=Zo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zo(t)?t:t+""}function ri(e,t){return(ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ni(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=ii(e);if(t){var o=ii(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return oi(this,r)}}function oi(e,t){if(t&&("object"===Zo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ii(e){return(ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ui=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}(i,e);var t,r,n,o=ni(i);function i(){return Xo(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"respond",value:function(){var e,t=this,r=A.tcModel,n=r.vendorListVersion;void 0===this.param&&(this.param=n),(e=this.param===n&&r.gvl?r.gvl:new xo(this.param)).readyPromise.then((function(){t.invokeCallback(e.getJson())}))}}])&&ei(t.prototype,r),n&&ei(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(p);r(194);function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function si(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,li(n.key),n)}}function li(e){var t=function(e,t){if("object"!=ai(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ai(t)?t:t+""}function fi(){return(fi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=pi(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function pi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=di(e)););return e}function yi(e,t){return(yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bi(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=di(e);if(t){var o=di(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return vi(this,r)}}function vi(e,t){if(t&&("object"===ai(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yi(e,t)}(i,e);var t,r,n,o=bi(i);function i(){return ci(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"respond",value:function(){this.listenerId=A.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),fi(di(i.prototype),"respond",this).call(this)}}])&&si(t.prototype,r),n&&si(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(O);function hi(e){return(hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Oi(n.key),n)}}function Oi(e){var t=function(e,t){if("object"!=hi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hi(t)?t:t+""}function Si(e,t){return(Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ji(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=Ei(e);if(t){var o=Ei(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Pi(this,r)}}function Pi(e,t){if(t&&("object"===hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ei(e){return(Ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _i,Ci,Ii,Ti,ki,Ai,Li=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Si(e,t)}(i,e);var t,r,n,o=ji(i);function i(){return gi(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"respond",value:function(){this.invokeCallback(A.eventQueue.remove(this.param))}}])&&wi(t.prototype,r),n&&wi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(p);function Ri(e){return(Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xi(n.key),n)}}function Ni(e,t,r){return t&&Di(e.prototype,t),r&&Di(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vi(e,t,r){return(t=xi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(e){var t=function(e,t){if("object"!=Ri(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ri(t)?t:t+""}_i=n.PING,Ci=n.GET_TC_DATA,Ii=n.GET_IN_APP_TC_DATA,Ti=n.GET_VENDOR_LIST,ki=n.ADD_EVENT_LISTENER,Ai=n.REMOVE_EVENT_LISTENER;var Ui=Ni((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));function Mi(e){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bi(n.key),n)}}function Bi(e){var t=function(e,t){if("object"!=Mi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mi(t)?t:t+""}Vi(Ui,_i,Ne),Vi(Ui,Ci,O),Vi(Ui,Ii,Qe),Vi(Ui,Ti,ui),Vi(Ui,ki,mi),Vi(Ui,Ai,Li);var Gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"has",value:function(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)}}],(r=null)&&Fi(t.prototype,r),n&&Fi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hi(e){return(Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qi(e){return function(e){if(Array.isArray(e))return Wi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Wi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ji(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zi(n.key),n)}}function Yi(e,t,r){return(t=zi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zi(e){var t=function(e,t){if("object"!=Hi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Hi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hi(t)?t:t+""}!function(e,t,r){(t=Bi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Gi,"set_",new Set([0,2,void 0,null]));var Ki=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Yi(this,"callQueue",void 0),Yi(this,"customCommands",void 0),t){var r=n.ADD_EVENT_LISTENER;if(null!=t&&t[r])throw new Error("Built-In Custom Commmand for ".concat(r," not allowed: Use ").concat(n.GET_TC_DATA," instead"));if(r=n.REMOVE_EVENT_LISTENER,null!=t&&t[r])throw new Error("Built-In Custom Commmand for ".concat(r," not allowed"));null!=t&&t[n.GET_TC_DATA]&&(t[n.ADD_EVENT_LISTENER]=t[n.GET_TC_DATA],t[n.REMOVE_EVENT_LISTENER]=t[n.GET_TC_DATA]),this.customCommands=t}try{this.callQueue=window.__tcfapi()||[]}catch(e){this.callQueue=[]}finally{window.__tcfapi=this.apiCall.bind(this),this.purgeQueuedCalls()}}var t,r,o;return t=e,(r=[{key:"apiCall",value:function(e,t,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];if("string"!=typeof e&&"function"==typeof r)r(null,!1);else if(Gi.has(t)){if("function"!=typeof r)throw new Error("invalid callback function");if(A.disabled)r(new z,!1);else if(this.isCustomCommand(e)||this.isBuiltInCommand(e))if(this.isCustomCommand(e)&&!this.isBuiltInCommand(e)){var a;(a=this.customCommands)[e].apply(a,[r].concat(i))}else e===n.PING?this.isCustomCommand(e)?new Ui[e](this.customCommands[e],i[0],null,r):new Ui[e](r,i[0]):void 0===A.tcModel?this.callQueue.push([e,t,r].concat(i)):this.isCustomCommand(e)&&this.isBuiltInCommand(e)?new Ui[e](this.customCommands[e],i[0],null,r):new Ui[e](r,i[0]);else r(null,!1)}else r(null,!1)}},{key:"purgeQueuedCalls",value:function(){var e=this.callQueue;this.callQueue=[],e.forEach((function(e){var t;(t=window).__tcfapi.apply(t,Qi(e))}))}},{key:"isCustomCommand",value:function(e){return this.customCommands&&"function"==typeof this.customCommands[e]}},{key:"isBuiltInCommand",value:function(e){return void 0!==Ui[e]}}])&&Ji(t.prototype,r),o&&Ji(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qi(e){return(qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eu(n.key),n)}}function Xi(e,t,r){return(t=eu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eu(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qi(t)?t:t+""}var tu=function(){function e(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3?arguments[3]:void 0;$i(this,e),Xi(this,"callResponder",void 0),Xi(this,"isServiceSpecific",void 0),Xi(this,"numUpdates",0),this.throwIfInvalidInt(t,"cmpId",2),this.throwIfInvalidInt(r,"cmpVersion",0),A.cmpId=t,A.cmpVersion=r,A.tcfPolicyVersion=5,this.isServiceSpecific=!!n,this.callResponder=new Ki(o)}var t,r,n;return t=e,(r=[{key:"throwIfInvalidInt",value:function(e,t,r){if(!("number"==typeof e&&Number.isInteger(e)&&e>=r))throw new Error("Invalid ".concat(t,": ").concat(e))}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(A.disabled)throw new Error("CmpApi Disabled");A.cmpStatus=i.LOADED,t?(A.displayStatus=u.VISIBLE,A.eventStatus=a.CMP_UI_SHOWN):void 0===A.tcModel?(A.displayStatus=u.DISABLED,A.eventStatus=a.TC_LOADED):(A.displayStatus=u.HIDDEN,A.eventStatus=a.USER_ACTION_COMPLETE),A.gdprApplies=null!==e,A.gdprApplies?(""===e?(A.tcModel=new Yo,A.tcModel.cmpId=A.cmpId,A.tcModel.cmpVersion=A.cmpVersion):A.tcModel=$o.decode(e),A.tcModel.isServiceSpecific=this.isServiceSpecific,A.tcfPolicyVersion=Number(A.tcModel.policyVersion),A.tcString=e):A.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():A.eventQueue.exec(),this.numUpdates++}},{key:"disable",value:function(){A.disabled=!0,A.cmpStatus=i.ERROR}}])&&Zi(t.prototype,r),n&&Zi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ru=r(0),nu=r(205),ou=r(203),iu=r(18);function uu(e){return(uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function au(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cu(n.key),n)}}function cu(e){var t=function(e,t){if("object"!=uu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=uu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uu(t)?t:t+""}function su(e,t){return(su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lu(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var r,n=yu(e);if(t){var o=yu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return fu(this,r)}}function fu(e,t){if(t&&("object"===uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pu(e)}function pu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yu(e){return(yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&su(e,t)}(i,e);var t,r,n,o=lu(i);function i(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,e,t,r)).cmpApi=function(e,t,r,n,o){var i,u=this,a={euconsentWithDisclosedVendors:ou.b,getTCData:function(e,t,r){if("boolean"!=typeof t&&r){var n=Object(ru.getStateStorageFromMemory)("googleConsentModeV2",void 0,"gdpr");t.addtlConsent=Object(ru.getUserConsentData)("gdpr","addtlConsent"),!0===n&&(t.enableAdvertiserConsentMode=n)}if("function"==typeof e)try{e.bind(u)(t,r)}catch(e){Object(ru.handleError)(new ru.CmpCallbackError(e),"gdpr")}}};return Object.assign(a,Object(nu.a)(e,t,r,o)),n&&(i=$o.decode(n).cmpId),i=i||iu.b,new tu(i,1,!0,a)}(n.config.cmpOrigin,n.config.mmsDomain,r,t.euconsent,n.updateCmpPost.bind(pu(n))),n}return t=i,r&&au(t.prototype,r),n&&au(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(o.default)},191:function(e,t,r){var n=r(1),o=r(4),i=r(15),u=r(106),a=r(139);n({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!a},{getPrototypeOf:function(e){return u(i(e))}})},192:function(e,t,r){var n=r(1),o=r(32),i=r(31),u=r(5),a=r(6),c=r(39),s=r(196),l=r(4),f=o("Reflect","construct"),p=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),y=!l((function(){f((function(){}))})),b=p||y;n({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(e,t){i(e),u(t);var r=arguments.length<3?e:i(arguments[2]);if(y&&!p)return f(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(s.apply(e,n))}var o=r.prototype,l=c(a(o)?o:Object.prototype),b=Function.apply.call(e,l,t);return a(b)?b:l}})},193:function(e,t,r){"use strict";var n=r(145),o=r(146);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},194:function(e,t,r){var n=r(1),o=r(6),i=r(5),u=r(9),a=r(17),c=r(106);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,s,l=arguments.length<3?t:arguments[2];return i(t)===l?t[r]:(n=a.f(t,r))?u(n,"value")?n.value:void 0===n.get?void 0:n.get.call(l):o(s=c(t))?e(s,r,l):void 0}})},195:function(e,t,r){"use strict";var n=r(1),o=r(31),i=r(15),u=r(4),a=r(40),c=[],s=c.sort,l=u((function(){c.sort(void 0)})),f=u((function(){c.sort(null)})),p=a("sort");n({target:"Array",proto:!0,forced:l||!f||!p},{sort:function(e){return void 0===e?s.call(i(this)):s.call(i(this),o(e))}})},196:function(e,t,r){"use strict";var n=r(31),o=r(6),i=[].slice,u={},a=function(e,t,r){if(!(t in u)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";u[t]=Function("C,a","return new C("+n.join(",")+")")}return u[t](e,r)};e.exports=Function.bind||function(e){var t=n(this),r=i.call(arguments,1),u=function(){var n=r.concat(i.call(arguments));return this instanceof u?a(t,n.length,n):t.apply(e,n)};return o(t.prototype)&&(u.prototype=t.prototype),u}},197:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));r(54),r(52),r(53),r(26),r(27),r(23),r(36),r(28),r(19),r(24),r(25),r(56),r(75),r(58),r(73),r(30),r(76);var n=r(0);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){var n;return n=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==o(n)?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,(r=[{key:"hasMessage",value:function(){var e=this.campaignResponse,t=e.message,r=e.messageMetaData;return t&&r&&Object.keys(t.message_json).length>0&&0!==r.messageId}},{key:"hasInlineMessage",value:function(){var e=this.campaignResponse.message;return!!this.hasMessage()&&e&&e.message_json&&e.message_json.settings&&e.message_json.settings.type&&"inline"===e.message_json.settings.type}},{key:"getPvData",value:function(){return{}}},{key:"sendPvData",value:function(){var e=this.config,t=e.accountId,r=e.env,o=e.wrapperAPIOrigin,i=e.mmsDomain,c=e.pubData,s=this.getPvData();!function(e,t,r,o,i,c,s,l){if(!Object(n.sampleUser)(s))return Promise.resolve();var f=a({},s,u(u({},l),{},{accountId:t,siteId:r,propertyId:r,pubData:c,withSiteActions:"true",sampleRate:Object(n.sampleRate)(s)}));Object(n.fetch)("".concat(o,"/v2/pv-data"),{method:"POST",body:JSON.stringify(f),headers:{"Content-Type":"application/json"},params:{env:e}}).then(JSON.parse).then((function(e){return Promise.all(Object.keys(e).map((function(t){return Object(n.handleConsentData)(e[t],t,i)})))})).catch((function(e){return Promise.resolve()}))}(r,t,this.propertyId,o,i,c,this.category,s)}}])&&s(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},198:function(e,t,r){r(63)("asyncIterator")},199:function(e,t,r){"use strict";var n=r(1),o=r(62),i=[].reverse,u=[1,2];n({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},201:function(e,t,r){r(1)({target:"Number",stat:!0},{isInteger:r(208)})},203:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return f})),r.d(t,"a",(function(){return p}));r(58),r(23),r(77),r(78),r(137),r(57),r(19),r(56),r(24),r(25),r(75),r(52),r(53),r(26),r(27),r(36),r(54),r(73),r(30),r(76),r(28);var n=r(0);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e,t,r){var n;return n=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==o(n)?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=function(e){var t=Object(n.getUserConsentData)("gdpr","euconsentWithDisclosedVendors");try{e(t,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}},c=function(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Object(n.getCustomVendorConsentFromMemory)());r.consentedVendors&&Array.isArray(e)&&e.length>0&&(r.consentedVendors=r.consentedVendors.filter((function(t){return e.includes(t._id.toString())})));try{t(r,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}},s=function(e,t,r){var o="".concat(e,"/vendor-list/vendor-purpose-mapping?siteId=").concat(t);Object(n.fetch)(o,{method:"GET"}).then((function(e){return JSON.parse(e)})).then((function(e){try{r(e,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}})).catch((function(e){try{r(null,!1)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}Object(n.handleError)(e,"gdpr")}))},l=function(e,t,r,o,i,u,a){var c=Object(n.getUserConsentData)("gdpr","uuid"),s="".concat(e,"/consent/v3/custom/").concat(u);Object(n.fetch)(s,{method:"POST",params:{consentUUID:c},body:JSON.stringify({vendors:t,categories:r,legIntCategories:o}),headers:{"Content-Type":"application/json"}}).then((function(e){return JSON.parse(e)})).then((function(e){return Object(n.handleConsentData)(e,"gdpr",a).then((function(t){return e}))})).then((function(e){try{i(e,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}})).catch((function(e){try{i(null,!1)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}Object(n.handleError)(e,"gdpr")}))},f=function(e,t,r,o,i){var u=Object(n.getUserConsentData)("gdpr","authId"),a=Object(n.getUserConsentData)("gdpr","uuid"),c=window._sp_&&window._sp_.config.accountId,s=Object(n.sampleRate)(),l=Object(n.sampleUser)();Object(n.fetch)("".concat(e,"/consent/v3/").concat(r,"/reject-all"),{headers:{"Content-Type":"application/json"},method:"POST",params:{accountId:c,authId:u,consentUUID:a,includeCustomVendorsRes:1,sampleRate:s,sendPVData:l,withSiteActions:!0}}).then((function(e){return JSON.parse(e)})).then((function(e){return Object(n.handleConsentData)(e,"gdpr",o).then((function(t){return e}))})).then((function(e){return i(),e})).then((function(e){try{t(null,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e))}})).catch((function(e){try{t(null,!1)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e))}Object(n.handleError)(e)}))},p=function(e){return Object(n.fetch)("".concat(e,"/consent/v2/delete-consent-cookies"),{method:"GET"}).then(JSON.parse).then((function(e){var t=e.actions,r=e.cookies;return Promise.all(t.map(n.executeAction)).then((function(e){return Object(n.setCookiesAction)(r,"","gdpr")}))}))}},205:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(203);function o(e,t,r,o){return{getCustomVendorConsents:function(e,t){Object(n.c)(t,e)},postCustomConsent:function(o,i,u,a){Object(n.e)(e,i,u,a,o,r,t)},postRejectAll:function(i){Object(n.f)(e,i,r,t,o)},getVendorPurposeMapping:function(t){Object(n.d)(e,r,t)}}}},207:function(e,t,r){r(1)({target:"String",proto:!0},{repeat:r(209)})},208:function(e,t,r){var n=r(6),o=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&o(e)===e}},209:function(e,t,r){"use strict";var n=r(41),o=r(16);e.exports=function(e){var t=String(o(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}}}]); |