PageSourceSearch

https://www.postcodelottery.co.uk/_next/static/chunks/88f6ee86.14dc85fe695ffaad.js

js postcodelottery.co.uk collected 2026-10-02 04:13:40 UTC 304,406 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:groupwebsite-ppl":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5451],{58793:(e,t,n)=>{function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function i(e){var t,n,s,i=2;for("u">typeof Symbol&&(n=Symbol.asyncIterator,s=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(s&&null!=(t=e[s]))return new r(t.call(e));n="@@asyncIterator",s="@@iterator"}throw TypeError("Object is not async iterable")}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(r=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new r(e)}function a(e,t,n,s,i,r,a){try{var o=e[r](a),c=o.value}catch(e){return void n(e)}o.done?t(c):Promise.resolve(c).then(s,i)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(s,i){var r=e.apply(t,n);function o(e){a(r,s,i,o,c,"next",e)}function c(e){a(r,s,i,o,c,"throw",e)}o(void 0)})}}function c(e,t,n){return t=p(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,v()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,N(s.key),s)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var s=0,i=function(){};return{s:i,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw r}}}}function g(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(f="u">typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var s=function(e,t){for(;!({}).hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(s){var i=Object.getOwnPropertyDescriptor(s,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(null,arguments)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){if("function"!=typeof t&&null!==t)throw 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&&y(e,t)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,s)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?E(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(){var e,t,n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,s,i,r){var c=Object.create((s&&s.prototype instanceof o?s:o).prototype);return C(c,"_invoke",function(n,s,i){var r,o,c,u=0,l=i||[],d=!1,h={p:0,n:0,v:e,a:g,f:g.bind(e,4),d:function(t,n){return r=t,o=0,c=e,h.n=n,a}};function g(n,s){for(o=n,c=s,t=0;!d&&u&&!i&&t<l.length;t++){var i,r=l[t],g=h.p,f=r[2];n>3?(i=f===s)&&(c=r[(o=r[4])?5:(o=3,3)],r[4]=r[5]=e):r[0]<=g&&((i=n<2&&g<r[1])?(o=0,h.v=s,h.n=r[1]):g<f&&(i=n<3||r[0]>s||s>f)&&(r[4]=n,r[5]=s,h.n=f,o=0))}if(i||n>1)return a;throw d=!0,s}return function(i,l,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&g(l,f),o=l,c=f;(t=o<2?e:c)||!d;){r||(o?o<3?(o>1&&(h.n=-1),g(o,c)):h.n=c:h.v=c);try{if(u=2,r){if(o||(i="next"),t=r[i]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,o<2&&(o=0)}else 1===o&&(t=r.return)&&t.call(r),o<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),o=1);r=e}else if((t=(d=h.n<0)?c:n.call(s,h))!==a)break}catch(t){r=e,o=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,i,r),!0),c}var a={};function o(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=u.prototype=o.prototype=Object.create([][s]?t(t([][s]())):(C(t={},s,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,C(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return c.prototype=u,C(l,"constructor",u),C(u,"constructor",c),c.displayName="GeneratorFunction",C(u,i,"GeneratorFunction"),C(l),C(l,i,"Generator"),C(l,s,function(){return this}),C(l,"toString",function(){return"[object Generator]"}),(T=function(){return{w:r,m:d}})()}function C(e,t,n,s){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(C=function(e,t,n,s){function r(t,n){C(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!s,configurable:!s,writable:!s}):e[t]=n:(r("next",0),r("throw",1),r("return",2))})(e,t,n,s)}function _(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw TypeError(typeof e+" is not iterable")}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,i,r,a,o=[],c=!0,u=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(s=r.call(n)).done)&&(o.push(s.value),o.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}(e,t)||b(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t,n,s){var i=f(p(1&s?e.prototype:e),t,n);return 2&s&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function O(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function D(e){return(D="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){if("string"==typeof e)return s(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function L(e){var t="function"==typeof Map?new Map:void 0;return(L=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 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,n)}function n(){return function(e,t,n){if(v())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,t);var i=new(e.bind.apply(e,s));return n&&y(i,n.prototype),i}(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)})(e)}n.d(t,{$:()=>a1,A:()=>oD,B:()=>oi,C:()=>eG,D:()=>eB,E:()=>tg,F:()=>ex,G:()=>rE,H:()=>oe,I:()=>oo,J:()=>
1oc,K:()=>ou,L:()=>tf,M:()=>r4,N:()=>oh,O:()=>og,P:()=>of,Q:()=>od,R:()=>r$,S:()=>rA,T:()=>on,U:()=>a6,V:()=>op,W:()=>ej,X:()=>n4,Y:()=>so,Z:()=>a7,_:()=>S,a:()=>eH,a0:()=>a5,a1:()=>e7,a2:()=>a8,a3:()=>a9,a4:()=>tt,a5:()=>or,a6:()=>tK,a7:()=>ot,a8:()=>oS,a9:()=>tr,aA:()=>tM,aB:()=>em,aC:()=>eO,aD:()=>tw,aE:()=>tR,aF:()=>ob,aa:()=>oa,ab:()=>os,ac:()=>e0,ad:()=>rz,ae:()=>e$,af:()=>t_,ag:()=>tT,ah:()=>tA,ai:()=>tO,aj:()=>ty,ak:()=>tC,al:()=>tm,am:()=>tN,an:()=>A,ao:()=>ev,ap:()=>eE,aq:()=>th,ar:()=>tb,as:()=>tD,at:()=>ey,au:()=>eb,av:()=>eN,aw:()=>eA,ax:()=>eD,ay:()=>tP,az:()=>tk,b:()=>e4,c:()=>ry,d:()=>d,e:()=>eQ,f:()=>ew,g:()=>u,h:()=>c,i:()=>g,j:()=>tX,k:()=>sw,l:()=>sT,m:()=>o,n:()=>T,o:()=>st,p:()=>sB,q:()=>n9,r:()=>O,s:()=>nQ,t:()=>sA,u:()=>I,v:()=>n1,w:()=>e8,x:()=>m,y:()=>a2,z:()=>a3});var w,R,P,k,V,U,M,F,G,B,x,H,j,Y,J,W,K,X,q,Q,z,$,Z,ee,et,en,es,ei,er,ea,eo,ec,eu,el,ed,eh=((tz={}).CONSENT_RESPONSE="consent-response",tz.CONSENT_UI="consent-ui",tz),eg=((t$={}).ACCEPT="accept",t$.REJECT="reject",t$.DISMISS="dismiss",t$.FULLSCREEN="enter-fullscreen",t$.READY="ready",t$),ef=((tZ={})[tZ.TCF_V2=2]="TCF_V2",tZ[tZ.CCPA=3]="CCPA",tZ),ep=((t0={}).BY_SETTINGS_UPDATE="bySettingsUpdate",t0.ON_INITIAL_PAGE_LOAD="onInitialPageLoad",t0.ON_DENY_ALL_BTN_CLICK="onDenyAllBtnClick",t0.ON_ACCEPT_ALL_BTN_CLICK="onAcceptAllBtnClick",t0.ON_DENY_ALL_ANCHOR_CLICK="onDenyAllAnchorClick",t0.ON_TOGGLE_SELECT_ALL="onToggleSelectAll",t0.ON_TOGGLE_CATEGORY="onToggleCategory",t0.ON_TOGGLE_CONSENT="onToggleConsent",t0.ON_SPECIAL_FUNCTION_ACCEPT_ALL_CONSENT_TRIGGER="onSpecialFunctionAcceptAllConsentTrigger",t0.ON_COUNTDOWN_FINISHED="onCountdownFinished",t0.ON_WINDOW_FUNCTION_UPDATE_CONSENT="onWindowFunctionUpdateConsent",t0.ON_NON_EU_REGION="onNonEURegion",t0.ON_SAVE_BTN_CLICK="onSaveBtnClick",t0),eS=((t1={}).EXPLICIT="explicit",t1.IMPLICIT="implicit",t1.UPDATE="update",t1),ev=((t2={}).ACCEPT_ALL_SERVICES="onAcceptAllServices",t2.DENY_ALL_SERVICES="onDenyAllServices",t2.ESSENTIAL_CHANGE="onEssentialChange",t2.INITIAL_PAGE_LOAD="onInitialPageLoad",t2.NON_EU_REGION="onNonEURegion",t2.SESSION_RESTORED="onSessionRestored",t2.TCF_STRING_CHANGE="onTcfStringChange",t2.UPDATE_SERVICES="onUpdateServices",t2.MOBILE_SESSION_RESTORED="onMobileSessionRestore",t2),eE=((t3={}).EXPLICIT="explicit",t3.IMPLICIT="implicit",t3),eI=((t4={})[t4.UNDEFINED=0]="UNDEFINED",t4[t4.CMP_SHOWN=1]="CMP_SHOWN",t4[t4.ACCEPT_ALL=2]="ACCEPT_ALL",t4[t4.DENY_ALL=3]="DENY_ALL",t4[t4.SAVE=4]="SAVE",t4[t4.ACCEPT_ALL_L1=5]="ACCEPT_ALL_L1",t4[t4.DENY_ALL_L1=6]="DENY_ALL_L1",t4[t4.SAVE_L1=7]="SAVE_L1",t4[t4.ACCEPT_ALL_L2=8]="ACCEPT_ALL_L2",t4[t4.DENY_ALL_L2=9]="DENY_ALL_L2",t4[t4.SAVE_L2=10]="SAVE_L2",t4[t4.COOKIE_POLICY_LINK=11]="COOKIE_POLICY_LINK",t4[t4.IMPRINT_LINK=12]="IMPRINT_LINK",t4[t4.MORE_INFORMATION_LINK=13]="MORE_INFORMATION_LINK",t4[t4.PRIVACY_POLICY_LINK=14]="PRIVACY_POLICY_LINK",t4[t4.CCPA_TOGGLES_ON=15]="CCPA_TOGGLES_ON",t4[t4.CCPA_TOGGLES_OFF=16]="CCPA_TOGGLES_OFF",t4[t4.SAY_MINE_LINK=17]="SAY_MINE_LINK",(t6={})[t6.FALSE=0]="FALSE",t6[t6.TRUE=1]="TRUE",t6),eT=((t5={})[t5.DATA_LAYER=0]="DATA_LAYER",t5[t5.WINDOW_EVENT=1]="WINDOW_EVENT",t5),eC=((t7={})[t7.MAJOR=0]="MAJOR",t7[t7.MINOR=1]="MINOR",t7[t7.PATCH=2]="PATCH",t7),e_=((t8={}).CALL_INIT="Usercentrics: You have to call the init method before!",t8.DATA_LOCAL="Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!",t8.UNKNOWN_VARIANT="Usercentrics: Unknown variant",t8.NOT_CCPA="Usercentrics: CCPA was not initialized",t8.NOT_DEFAULT="Usercentrics: GDPR was not initialized",t8.NOT_TCF="Usercentrics: TCF was not initialized",t8),ey=((t9={}).BANNER="BANNER",t9.WALL="WALL",t9),eA=((ne={}).CENTER="CENTER",ne.SIDE="SIDE",ne),em=((nt={})[nt.DARK=0]="DARK",nt[nt.LIGHT=1]="LIGHT",nt),eO=((nn={}).LINK="LINK",nn.BUTTON="BUTTON",nn.MORE_LINK_BUTTON="MORE_LINK_BUTTON",nn),eN=((ns={}).LEFT="LEFT",ns.RIGHT="RIGHT",ns),eD=((ni={}).HORIZONTAL="HORIZONTAL",ni.VERTICAL="VERTICAL",ni),eb=((nr={}).ALL="ALL",nr.SHORT="SHORT",nr),eL=((na={}).CROSS_DEVICE_DATA_NOT_AVAILABLE="Usercentrics: Cross Device Consents data is not available",na.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Device TCF data is not available",na.CROSS_DEVICE_FEATURE_DISABLED="Usercentrics: The `Cross-Device Consent Sharing` feature is not enabled. Please contact the support team in order to enable this feature for your configuration",na),ew=((no={}).CROSS_DOMAIN_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain Consents data is not available",no.C
1ROSS_DOMAIN_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain TCF data is not available",no.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent Sharing is not available.",no.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent language is not available",no.CROSS_DOMAIN_SET_DATA_FAILURE="Usercentrics: Unable to set Cross Domain data",no.CROSS_DOMAIN_SET_TCF_DATA_FAILURE="Usercentrics: Unable to set Cross Domain TCF data",no.CROSS_DOMAIN_IFRAME_ERROR="Usercentrics: Iframe error",no.CROSS_DOMAIN_IFRAME_NOT_FOUND="Usercentrics: Cross Domain iFrame not found",no.CROSS_DOMAIN_IFRAME_LOAD_ERROR="Usercentrics: IFrame did not load",no),eR=((nc={}).CLEAR="clear",nc.GET_CROSS_DOMAIN_LANGUAGE="getCrossDomainLanguage",nc.GET_CROSS_DOMAIN_SESSION_DATA="getCrossDomainSessionData",nc.GET_CROSS_DOMAIN_TCF_DATA="getCrossDomainTcfData",nc.GET_CROSS_DOMAIN_CCPA_DATA="getCrossDomainCcpaData",nc.GET_TC_STRING="getTCString",nc.PING="ping",nc.SET_CROSS_DOMAIN_DATA="setCrossDomainData",nc.SET_CROSS_DOMAIN_TCF_DATA="setCrossDomainTcfData",nc.SET_CROSS_DOMAIN_CCPA_DATA="setCrossDomainCcpaData",nc.SET_TC_STRING="setTCString",nc),eP="ucMobileSdk",ek=["*.usercentrics-sandbox.eu","*.usercentrics.eu"],eV=((nu={})[nu.FIRST_LAYER=0]="FIRST_LAYER",nu[nu.NONE=1]="NONE",nu[nu.PRIVACY_BUTTON=2]="PRIVACY_BUTTON",nu[nu.SECOND_LAYER=3]="SECOND_LAYER",nu),eU=((nl={})[nl.CCPA=0]="CCPA",nl[nl.DEFAULT=1]="DEFAULT",nl[nl.TCF=2]="TCF",nl),eM="4.64.0",eF=["CCPA","UCPA","CTDPA","VCDPA","CPRA","CPA","MSPL"],eG=1,eB="1---",ex="__uspapiLocator",eH=/^[1][nNyY-][nNyY-][nNyY-]$/,ej="__uspapi",eY=((nd={}).EMPTY="",nd.GPC_ACTION="gpc",nd.USER_ACTION="user",nd),eJ=((nh={}).CCPA="uc_usprivacy",nh.CCPA_DATA="uc_ccpa",nh.CONSENTS_BUFFER="uc_consents_buffer",nh.CONSENTS_V2_BUFFER="uc_consents_v2_buffer",nh.GCM_DATA="uc_gcm",nh.LEGACY_SETTINGS="ucSettings",nh.SERVICES="uc_services",nh.SETTINGS="uc_settings",nh.TCF="uc_tcf",nh.USER_INTERACTION="uc_user_interaction",nh.AB_TEST_VARIANT="uc_ab_variant",nh.INTERACTION_TYPE="uc_interaction_type",nh),eW=((ng={}).USER_COUNTRY="uc_user_country",ng),eK="uc-cross-domain-bridge",eX="".concat("https://app.usercentrics.eu","/browser-sdk/").concat(eM,"/cross-domain-bridge.html"),eq="".concat("https://app.eu.usercentrics.eu","/browser-sdk/").concat(eM,"/cross-domain-bridge.html"),eQ=function(){var e,t,n,s,i,r,a,c,l,h,g;function f(){u(this,f)}return d(f,null,[{key:"setDomainBridgeUri",value:function(e){var t="";e&&(e.crossDomainConsentSharingIFrame?t=e.crossDomainConsentSharingIFrame:e.app&&(t="".concat(e.app,"/browser-sdk/").concat(eM,"/cross-domain-bridge.html")));var n=""!==t?t:eX;f.domainBridgeUri=f.useEuCdn?eq:n}},{key:"getDomainBridgeUri",value:function(){return f.domainBridgeUri}},{key:"init",value:(g=o(T().m(function e(t,n){return T().w(function(e){for(;;)if(0===e.n)return f.setDomainBridgeUri(n),f.setUseEuCdn((null==t?void 0:t.useEuCdn)||!1),f.setDomainBridgeUri(n),e.a(2,this.initIFrame(f.getDomainBridgeUri(),eK))},e,this)})),function(e,t){return g.apply(this,arguments)})},{key:"initIFrame",value:(h=o(T().m(function e(t,n){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(e,s){var i=f.createIFrame(t,n);i.onload=o(T().m(function r(){var a;return T().w(function(r){for(;;)switch(r.n){case 0:a=setTimeout(function(){i={},s(Error(ew.CROSS_DOMAIN_IFRAME_LOAD_ERROR))},1e3),f.queryIFrame(t,n,eR.PING).then(function(){clearTimeout(a),e(!0)}).catch(function(e){clearTimeout(a),s(e)});case 1:return r.a(2)}},r)})),i.onerror=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:s(Error(ew.CROSS_DOMAIN_IFRAME_ERROR));case 1:return e.a(2)}},e)})),f.appendIFrame(i)}))},e)})),function(e,t){return h.apply(this,arguments)})},{key:"setIsCrossDomainAvailable",value:function(e){f.crossDomainAvailable=e}},{key:"isCookieBridgeAvailable",value:function(){return f.cookieBridgeAvailable}},{key:"setIsCookieBridgeAvailable",value:function(e){f.cookieBridgeAvailable=e}},{key:"isCrossDomainAvailable",value:function(){return f.crossDomainAvailable}},{key:"getCrossDomainId",value:function(){return f.crossDomainId}},{key:"setCrossDomainId",value:function(e){f.crossDomainId="".concat("uc_cross_domain_data","_").concat(e)}},{key:"setCookieBridgeDomain",value:function(e,t){this.cookieBridgeDomain="".concat(e).concat(t)}},{key:"setUseEuCdn",value:function(e){f.useEuCdn=e}},{key:"createIFrame",value:function(e,t){f.removeIFrame(t);var n=document.createElement("iframe");return n.style.display="none",n.id=t,n.src=e,n}},{key:"removeIFrame",value:function(e){var t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"queryIFrame",value:(l=o(T().m(function e(t,n,s,i,r){var a;return T().w(function(e){for(;;)switch(e.n){case 0:if((a=document.getElementById(n))&&a.id){e.n=1;break}throw Error(ew.CROSS_DOMAIN_IFRAME_NOT_FOUND);case 1:return e.a(2,new Promise(function(e,n){var o=JSON.stringify({crossDomainId:r,method:s,payload:i}),c=new MessageChannel;c.port1.onmessage=function(t){var s=JSON.parse(t.data),i=s.success,r=s.data;i?e(r):n(t)},a&&a.contentWindow&&a.contentWindow.postMessage(o,t,[c.port2])}))}},e)})),function(e,t,n,s,i){return l.apply(this,arguments)})},{key:"appendIFrame",value:function(e){try{document.body?document.body.appendChild(e):document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(e)})}catch(e){return Error(ew.CROSS_DOMAIN_IFRAME_ERROR)}return null}},{key:"query",value:(c=o(T().m(function e(t,n){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.queryIFrame(f.getDomainBridgeUri(),eK,t,n,f.crossDomainId))},e)})),function(e,t){return c.apply(this,arguments)})},{key:"getCrossDomainLanguage",value:function(){return f.query(eR.GET_CROSS_DOMAIN_LANGUAGE)}},{key:"setCrossDomainData",value:(a=o(T().m(function e(t){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.query(eR.SET_CROSS_DOMAIN_DATA,{consents:t.services.map(function(e){return e.history.map(function(t){return{action:t.action,consentId:"",settingsVersion:t.versions.settings,status:t.status,templateId:e.id,timestamp:"".concat(t.timestamp),updatedBy:t.type}})}).reduce(function(e,t){return e.concat(t)},[]).sort(function(e,t){return parseInt(e.timestamp,10)-parseInt(t.timestamp,10)}),controllerId:t.controllerId,language:t.language}))},e)})),function(e){return a.apply(this,arguments)})},{key:"setCrossDomainCcpaData",value:(r=o(T().m(function e(t){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.query(eR.SET_CROSS_DOMAIN_CCPA_DATA,t))},e)})),function(e){return r.apply(this,arguments)})},{key:"getCrossDomainCcpaData",value:(i=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.query(eR.GET_CROSS_DOMAIN_CCPA_DATA))},e)})),function(){return i.apply(this,arguments)})},{key:"getCrossDomainSessionData",value:(s=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.query(eR.GET_CROSS_DOMAIN_SESSION_DATA))},e)})),function(){return s.apply(this,arguments)})},{key:"getCrossDomainTcfData",value:(n=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.query(eR.GET_CROSS_DOMAIN_TCF_DATA))},e)})),function(){return n.apply(this,arguments)})},{key:"setCrossDomainTcfData",value:(t=o(T().m(function e(t){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.query(eR.SET_CROSS_DOMAIN_TCF_DATA,t))},e)})),function(e){return t.apply(this,arguments)})},{key:"clearCrossDomainStorage",value:(e=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,f.query(eR.CLEAR))},e)})),function(){return e.apply(this,arguments)})}])}();g(eQ,"crossDomainId",""),g(eQ,"cookieBridgeDomain",""),g(eQ,"domainBridgeUri",eX),g(eQ,"useEuCdn",!1),g(eQ,"cookieBridgeAvailable",!1),g(eQ,"crossDomainAvailable",!1);var ez=d(function e(){u(this,e),g(this,"data",void 0),g(this,"length",0),this.data={}},[{key:"updateLength",value:function(){this.length=Object.keys(this.data).length}},{key:"key",value:function(e){var t=Object.keys(this.data)[e];return void 0===D(t)?null:t}},{key:"getItem",value:function(e){return void 0!==this.data[e]?this.data[e]:null}},{key:"setItem",value:function(e,t){this.data[e]=String(t),this.updateLength()}},{key:"removeItem",value:function(e){delete this.data[e],this.updateLength()}},{key:"clear",value:function(){this.data={},this.updateLength()}}]),e$=((nf={}).COOKIE_BRIDGE_NOT_AVAILABLE="Usercentrics: Cookie bridge is not available.",nf.COOKIE_BRIDGE_OPTIONS_NOT_SET="Usercentrics: Cookie bridge options are not set",nf.GET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to get the Global TC string",nf.INIT_TCF_ERROR="Usercentrics: Unable to init TCF",nf.RESET_GVL_FAILURE="Usercentrics: Unable to reset Global Vendor List",nf.SET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to set the Global TC string",nf.VENDOR_REMOVED="Usercentrics: The following vendor is not part of the official vendors list anymore: ",nf.TC_MODEL_UNDEFINED="Usercentrics: tcModel can not be null.",nf.SELECTED_LANGUAGE_UNDEFINED="Usercentrics: Selected language can not be undefined",nf),eZ=((np={})[np.ID=0]="ID",np[np.LEGITIMATE_INTEREST=1]="LEGITIMATE_INTEREST",np[np.PURPOSES=2]="PURPOSES",np[np.SPECIAL_PURPOSES=3]="SPECIAL_PURPOSES",np),e0=((nS={})[nS.FIRST_LAYER=1]="FIRST_LAYER",nS[nS.SECOND_LAYER=2]="SECOND_LAYER",nS),e1=function(e){switch(e){case ep.ON_ACCEPT_ALL_BTN_CLICK:case ep.ON_SPECIAL_FUNCTION_ACCEPT_ALL_CONSENT_TRIGGER:return ev.ACCEPT_ALL_SERVICES;case ep.ON_DENY_ALL_ANCHOR_CLICK:case ep.ON_DENY_ALL_BTN_CLICK:return ev.DENY_ALL_SERVICES;case ep.ON_NON_EU_REGION:return ev.NON_EU_REGION;case ep.ON_INITIAL_PAGE_LOAD:case ep.ON_COUNTDOWN_FINISHED:return ev.INITIAL_PAGE_LOAD;case ep.ON_TOGGLE_CATEGORY:case ep.ON_TOGGLE_CONSENT:case ep.ON_TOGGLE_SELECT_ALL:return ev.
1ESSENTIAL_CHANGE;case ep.ON_WINDOW_FUNCTION_UPDATE_CONSENT:case ep.BY_SETTINGS_UPDATE:case ep.ON_SAVE_BTN_CLICK:return ev.UPDATE_SERVICES;default:return ev.INITIAL_PAGE_LOAD}},e2=function(e){switch(e){case eS.UPDATE:case eS.IMPLICIT:return eE.IMPLICIT;case eS.EXPLICIT:return eE.EXPLICIT;default:return eE.IMPLICIT}},e3="RAMDOM_KEY_LOCAL_STORAGE",e4=function(){var e;function t(){u(this,t),g(this,"localStorage",null),g(this,"sessionStorage",null),g(this,"storeServiceIdToNameMapping",!1)}return d(t,[{key:"setStoreServiceIdToNameMapping",value:function(e){this.storeServiceIdToNameMapping=e}},{key:"getStoreServiceIdToNameMapping",value:function(){return this.storeServiceIdToNameMapping}},{key:"init",value:function(){try{localStorage.setItem(e3,e3),localStorage.removeItem(e3),this.localStorage=localStorage}catch(e){this.localStorage=new ez}try{sessionStorage.setItem(e3,e3),sessionStorage.removeItem(e3),this.sessionStorage=sessionStorage}catch(e){this.sessionStorage=new ez}}}],[{key:"getInstance",value:function(){return t.instance||(t.instance=new t),t.instance}},{key:"resetInstance",value:function(){t.instance.localStorage=null,t.instance.sessionStorage=null}},{key:"appendToConsentsBuffer",value:function(e){var n,s=t.fetchConsentsBuffer(),i=(new Date).valueOf();s.push({consents:e,timestamp:i}),null==(n=t.getInstance().localStorage)||n.setItem(eJ.CONSENTS_BUFFER,JSON.stringify(s))}},{key:"appendToConsentsV2Buffer",value:function(e){var n,s=t.fetchConsentsV2Buffer(),i=(new Date).valueOf();s.push({consents:e,timestamp:i}),null==(n=t.getInstance().localStorage)||n.setItem(eJ.CONSENTS_V2_BUFFER,JSON.stringify(s))}},{key:"clearOnNewSettingsId",value:function(e){e!==t.fetchSettingsId()&&t.clear()}},{key:"findBufferItem",value:function(e){return t.fetchConsentsBuffer().slice().find(function(t){return JSON.stringify(t.consents)===JSON.stringify(e)})}},{key:"findV2BufferItem",value:function(e){return t.fetchConsentsV2Buffer().slice().find(function(t){return JSON.stringify(t.consents)===JSON.stringify(e)})}},{key:"removeConsentsBufferItem",value:function(e){var n,s,i=t.fetchConsentsBuffer(),r=i.length+0;(i=i.filter(function(t){return JSON.stringify(t)!==JSON.stringify(e)})).length&&i.length!==r?null==(n=t.getInstance().localStorage)||n.setItem(eJ.CONSENTS_BUFFER,JSON.stringify(i)):null==(s=t.getInstance().localStorage)||s.removeItem(eJ.CONSENTS_BUFFER)}},{key:"removeConsentsV2BufferItem",value:function(e){var n,s,i=t.fetchConsentsV2Buffer(),r=i.length+0;(i=i.filter(function(t){return JSON.stringify(t)!==JSON.stringify(e)})).length&&i.length!==r?null==(n=t.getInstance().localStorage)||n.setItem(eJ.CONSENTS_V2_BUFFER,JSON.stringify(i)):null==(s=t.getInstance().localStorage)||s.removeItem(eJ.CONSENTS_V2_BUFFER)}},{key:"getCcpaString",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.CCPA);return n&&eH.test(n)?n:eB}},{key:"getCcpaData",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.CCPA_DATA);return n?JSON.parse(n):null}},{key:"fetchConsentsBuffer",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.CONSENTS_BUFFER);return n?JSON.parse(n):[]}},{key:"fetchConsentsV2Buffer",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.CONSENTS_V2_BUFFER);return n?JSON.parse(n):[]}},{key:"fetchControllerId",value:function(){var e=t.fetchSettings();return e?e.controllerId:""}},{key:"fetchLanguage",value:function(){var e=t.fetchSettings();return e?e.language:""}},{key:"fetchServices",value:function(){var e=t.fetchSettings();return e?e.services:[]}},{key:"fetchLegacySettings",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.LEGACY_SETTINGS);return n?JSON.parse(n):null}},{key:"fetchSettings",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.SETTINGS);return n?JSON.parse(n):{}}},{key:"fetchSettingsId",value:function(){var e=t.fetchSettings();return e?e.id:""}},{key:"fetchSettingsVersion",value:function(){var e=t.fetchSettings();return e?e.version:""}},{key:"fetchTCFData",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.TCF),s=n?JSON.parse(n):{acString:"",tcString:"",timestamp:Date.now(),vendors:[]};return s.vendors||(s.vendors=[]),s}},{key:"fetchTCFVendorsDisclosedObject",value:function(e){var n,s=t.fetchTCFData(),i=s.acString,r=s.tcString,a=s.vendors,o=s.vendorsDisclosed;if(!a&&!o)return{};if((o||!o&&!a.length&&r)&&e){var c=Object.keys(e).map(Number);n=(o||c).filter(function(t){return e[t]}).map(function(t){var n=e[t];return[n.id,n.legIntPurposes,n.purposes,n.specialPurposes]}),t.saveTCFData({acString:i,tcString:r,timestamp:Date.now(),vendors:n})}else n=a;return n.reduce(function(e,t){return I(I({},e),{},g({},t[eZ.ID],!0))},{})}},{key:"fetchTCString",value:function(){return t.fetchTCFData().tcString||""}},{key:"fetchACString",value:function(){return t.fetchTCFData().acString||""}},{key:"fetchUserActionPerformed",value:function(){var e;return"true"===(null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.USER_INTERACTION))}},{key:"fetchActionTypePerformed",value:function(){var e;return(null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.INTERACTION_TYPE))||""}},{key:"fetchUserCountryResponse",value:function(){try{var e;return JSON.parse((null==(e=t.getInstance().sessionStorage)?void 0:e.getItem(eW.USER_COUNTRY))||"null")}catch(e){return null}}},{key:"setUserCountryResponse",value:function(e){var n;null==(n=t.getInstance().sessionStorage)||n.setItem(eW.USER_COUNTRY,JSON.stringify(e))}},{key:"setActionTypePerformed",value:function(e){var n;null==(n=t.getInstance().localStorage)||n.setItem(eJ.INTERACTION_TYPE,e)}},{key:"mapServices",value:function(e){return e.map(function(e){return{history:e.consent.history,id:e.id,processorId:e.processorId,status:e.consent.status}})}},{key:"mapSettings",value:function(e,n){return{controllerId:e.controllerId,id:e.id,language:e.selectedLanguage,services:t.mapServices(n),version:e.version}}},{key:"migrateLegacySettings",value:function(e){if(!t.settingsExist(
1)){var n,s=t.fetchLegacySettings();if(t.clearLegacySettings(),null!=s&&s[e]){var i=(n=s[e])&&e8(n.ucConsents.consents)?g(g({},eJ.SETTINGS,{controllerId:n.ucConsents.consents[0].controllerId,id:n.usercentrics.settings.settingsId,language:n.usercentrics.settings.language,services:n.ucConsents.consents.map(function(e){return{history:e.history.map(function(e){return{action:e1(e.action),language:e.language,status:e.consentStatus,timestamp:e.updatedAt,type:e2(e.updatedBy),versions:{application:e.appVersion,service:e.consentTemplateVersion,settings:e.settingsVersion}}}),id:e.templateId,processorId:e.processorId,status:e.consentStatus}}),version:n.usercentrics.settings.version}),eJ.USER_INTERACTION,n.usercentrics.firstUserInteraction.stateSaved):null;i&&(t.saveSettings(i[eJ.SETTINGS]),i[eJ.USER_INTERACTION]&&(t.setUserActionPerformed(!0),t.setActionTypePerformed(eY.USER_ACTION)))}}}},{key:"saveSettings",value:function(e,n){var s;if(null==(s=t.getInstance().localStorage)||s.setItem(eJ.SETTINGS,JSON.stringify(e)),t.getInstance().getStoreServiceIdToNameMapping()&&n&&n.length){var i,r=n.reduce(function(e,t){return e[t.id]=t.name,e},{});null==(i=t.getInstance().localStorage)||i.setItem(eJ.SERVICES,JSON.stringify(r))}eQ.isCrossDomainAvailable()&&eQ.setCrossDomainData(e).catch(function(){console.warn(ew.CROSS_DOMAIN_SET_DATA_FAILURE)})}},{key:"saveTCFData",value:function(e){var n;null==(n=t.getInstance().localStorage)||n.setItem(eJ.TCF,JSON.stringify(e)),eQ.isCrossDomainAvailable()&&eQ.setCrossDomainTcfData(e).catch(function(){console.warn(ew.CROSS_DOMAIN_SET_TCF_DATA_FAILURE)})}},{key:"fetchGcmData",value:function(){var e,n=null==(e=t.getInstance().localStorage)?void 0:e.getItem(eJ.GCM_DATA);return n?JSON.parse(n):null}},{key:"saveGcmData",value:function(e){var n;null==(n=t.getInstance().localStorage)||n.setItem(eJ.GCM_DATA,JSON.stringify(e))}},{key:"saveTCString",value:function(e){var n=t.fetchTCFData();this.saveTCFData(I(I({},n),{},{tcString:e}))}},{key:"setCcpaTimeStamp",value:function(e){var n,s=e||{ccpaString:this.getCcpaString()||"",timestamp:(new Date).getTime()};null==(n=t.getInstance().localStorage)||n.setItem(eJ.CCPA_DATA,JSON.stringify(s))}},{key:"getCcpaTimeStamp",value:function(){var e=this.getCcpaData();return e&&e.timestamp?e.timestamp:(new Date).getTime()}},{key:"setCcpaString",value:function(e){var n;null==(n=t.getInstance().localStorage)||n.setItem(eJ.CCPA,e),this.setCcpaTimeStamp()}},{key:"settingsExist",value:function(){return e9(t.fetchSettings())}},{key:"setUserActionPerformed",value:function(e){var n,s;null==(n=t.getInstance().localStorage)||n.setItem(eJ.USER_INTERACTION,JSON.stringify(e)),e&&(null==(s=t.getInstance().localStorage)||s.setItem(eJ.INTERACTION_TYPE,"user"))}},{key:"clearCcpa",value:function(){var e;this.clearCcpaData(),null==(e=t.getInstance().localStorage)||e.removeItem(eJ.CCPA)}},{key:"clearCcpaData",value:function(){var e;null==(e=t.getInstance().localStorage)||e.removeItem(eJ.CCPA_DATA)}},{key:"clearTcf",value:function(){var e;null==(e=t.getInstance().localStorage)||e.removeItem(eJ.TCF)}},{key:"clearGcm",value:function(){var e;null==(e=t.getInstance().localStorage)||e.removeItem(eJ.GCM_DATA)}},{key:"clear",value:function(){var e,n,s;t.clearCcpa(),t.clearTcf(),t.clearGcm(),null==(e=t.getInstance().localStorage)||e.removeItem(eJ.SETTINGS),null==(n=t.getInstance().localStorage)||n.removeItem(eJ.USER_INTERACTION),null==(s=t.getInstance().localStorage)||s.removeItem(eJ.INTERACTION_TYPE)}},{key:"clearAll",value:(e=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:if(this.clear(),!eQ.isCrossDomainAvailable()){e.n=1;break}return e.n=1,eQ.clearCrossDomainStorage();case 1:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"fetchAbTestVariant",value:function(e){var n,s,i=(null==(n=t.getInstance().localStorage)?void 0:n.getItem(eJ.AB_TEST_VARIANT))||"";if(e.includes(i))return i;var r=e[Math.floor(Math.random()*e.length)];return null==(s=t.getInstance().localStorage)||s.setItem(eJ.AB_TEST_VARIANT,r),r}},{key:"clearLegacySettings",value:function(){var e;null==(e=t.getInstance().localStorage)||e.removeItem(eJ.LEGACY_SETTINGS)}}])}();g(e4,"instance",void 0);var e6=function(e,t){return -1!==e.indexOf(t)},e5=function(){return"SDK-".concat(eM)},e7=function(){return parseInt("3",10)},e8=function(e){return Array.isArray(e)&&e.length>0},e9=function(e){return"object"===D(e)&&null!==e&&Object.keys(e).length>0},te=function(e,t){try{JSON.parse(e)}catch(n){return console.warn("Invalid JSON string from ".concat(t,': "').concat(e,'"')),!1}return!0},tt=function(e,t){if(void 0===t)throw Error("altElement of nullishOperation can not be undefined");return null!=e?e:t},tn=function(e,t,n,s,i,r){return{applicationVersion:e5(),consent:{action:n,status:t.consent.status,type:s},service:{categorySlug:i||"",id:t.id,name:t.name,processorId:t.processorId,version:t.version},settings:{controllerId:e.controllerId,id:e.id,language:e.selectedLanguage,referrerControllerId:tt(null==r?void 0:r.referrerControllerId,""),version:e.version},timestamp:tt(null==r?void 0:r.timestamp,(new Date).valueOf())}},ts=function(e){var t=e.dataTransferSettings,n=e.services,s=e.consentAction,i=e.consentString,r=e.isCcpa,a=e.isTcf,o=e.isAnalyticsEnabled,c=e.isConsentXDeviceEnabled,u=(void 0===n?[]:n).map(function(e){return{consentStatus:e.consent.status,consentTemplateId:e.id,consentTemplateVersion:e.version}}),l="",d="",h="";if(a){var g=e4.fetchTCFData(),f=g.acString,p=g.tcString,S=g.timestamp,v=g.vendors,E=g.vendorsDisclosed;d=tt(d?null==i?void 0:i.TCF2:p,""),h=JSON.stringify({timestamp:S,vendors:v,vendorsDisclosed:E}),f&&(l=f)}else r&&(d=tt(null==i?void 0:i.CCPA,""));return I(I(I(I({action:s,analytics:tt(o,!1),appVersion:e5().replace("SDK-","")},h&&{consentMeta:h}),{},{consents:u},d&&{consentString:d}),l&&{acString:l}),{},{controllerId:t.controllerId,language:t.selectedLanguage,settingsId:t.
1id,settingsVersion:t.version,xdevice:tt(c,!1)})},ti=function(e,t){return e.reduce(function(e,n){var s=t[n];if(null==s||!s.name)return e;var i=s.name;return[].concat(O(e),[{id:n,name:i}])},[])};function tr(e){return O(new Set(e))}var ta=function(e){return e.filter(function(e){return[ev.ACCEPT_ALL_SERVICES,ev.DENY_ALL_SERVICES,ev.UPDATE_SERVICES].indexOf(e.action)>-1}).sort(function(e,t){return t.timestamp-e.timestamp})},to=function(e){return e&&"object"===D(e)},tc=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=I({},t);if(!to(s))throw Error("Source param should be an object");return to(e)&&Object.keys(e).forEach(function(t){var i,r=e[t],a=s[t];void 0!==a&&(s=Array.isArray(r)&&Array.isArray(a)?I(I({},s),{},g({},t,n?(i=r.concat(a)).filter(function(e,t){return i.indexOf(e)===t}):r)):to(r)&&to(a)?I(I({},s),{},g({},t,tc(I({},r),a))):I(I({},s),{},g({},t,r)))}),s},tu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e4,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5;return new Promise(function(i,r){var a=setInterval(function(){e()&&(clearTimeout(o),clearInterval(a),i())},s),o=setTimeout(function(){clearTimeout(o),clearInterval(a),r(Error(t))},n)})},tl=function(e,t){for(var n=e.split("."),s=t.split("."),i=Math.min(n.length,s.length),r=0;r<i;r+=1){var a=Number(n[r])||0,o=Number(s[r])||0;if(a!==o)return a>o?1:-1}return s.length-n.length},td=((nv={}).LEFT="LEFT",nv.CENTER="CENTER",nv.RIGHT="RIGHT",nv),th=((nE={}).CAT="CAT",nE.SRV="SRV",nE),tg=((nI={}).AVAILABLE_LANGUAGES_NOT_FOUND="Unable to find available languages using given settingsId and version.",nI.FETCH_ACM_VENDORS="Something went wrong while fetching the atp vendors.",nI.FETCH_AVAILABLE_LANGUAGES="Something went wrong while fetching the available languages.",nI.FETCH_DATA_PROCESSING_SERVICES="Something went wrong while fetching the data processing services.",nI.FETCH_LEGAL_BASIS="Something went wrong while fetching the legal data translations.",nI.FETCH_SETTINGS="Something went wrong while fetching the settings.",nI.FETCH_USER_CONSENTS="Something went wrong while fetching the user's consents.",nI.FETCH_USER_COUNTRY="Something went wrong while fetching the user's country.",nI.FETCH_USER_TCF_DATA="Something went wrong while fetching the user's tcf data.",nI.GENERATE_DATA_PROCESSING_SERVICES="Something went wrong while generating the data processing services.",nI.RULESET_NOT_FOUND="Config Map not found!",nI.TAGLOGGER="Tag logger API is being called just before browser unload, some browsers like firefox cancel the api call and throw the error.",nI.SAVE_CONSENTS="Something went wrong while saving user consents.",nI.SAVE_CONSENTS_RETRY="Number of retries exceeded for saving user consents.",nI.SETTINGS_NOT_FOUND="Unable to find settings using given settingsId and version.",nI.CUSTOM_REFERRER_NOT_VALID="A custom referrer was passed to setTrackingPixel but it is not a valid URL. Origin and pathname will be passed instead.",nI),tf=((nT={}).US_CA_ONLY="US_CA_ONLY",nT.US="US",nT),tp=((nC={})[nC.FIRST_LAYER=1]="FIRST_LAYER",nC[nC.SECOND_LAYER=3]="SECOND_LAYER",nC),tS=((n_={})[n_.DATA_LAYER=1]="DATA_LAYER",n_[n_.WINDOW_EVENT=4]="WINDOW_EVENT",n_),tv=((ny={}).DATA_COLLECTED_LIST="dataCollectedList",ny.DATA_PURPOSES_LIST="dataPurposesList",ny.DATA_RECIPIENTS_LIST="dataRecipientsList",ny.TECHNOLOGY_USED="technologyUsed",ny),tE=((nA={}).MAJOR="major",nA.MINOR="minor",nA.PATCH="patch",nA),tI=((nm={}).ICON="ICON",nm.LINK="LINK",{acceptAllButton:"Accept All",ccpaButton:"Agree to CCPA",ccpaMoreInformation:"More Information",closeButton:"Close",collapse:"Collapse",cookiePolicyButton:"Open Cookie Policy",copyControllerId:"Copy Controller ID",denyAllButton:"Deny all",expand:"Expand",fullscreenButton:"Enter full screen",imprintButton:"Open Imprint",languageSelector:"Select language",privacyButton:"Open",privacyPolicyButton:"Open Privacy Policy",saveButton:"Save",serviceInCategoryDetails:"View Service details",servicesInCategory:"List of Services in this category",tabButton:"Tab",usercentricsCard:"Card",usercentricsCMPButtons:"Footer including buttons",usercentricsCMPC
1ontent:"Content",usercentricsCMPHeader:"Header including language selection and external links",usercentricsCMPUI:"Consent Management Platform Interface",usercentricsList:"List",vendorConsentToggle:"Consent",vendorDetailedStorageInformation:"Detailed Storage Information",vendorLegIntToggle:"Legitimate Interest"}),tT="https://api.usercentrics.eu/tcf2/",tC="https://api.usercentrics.eu/gvl/v3/",t_="https://config.eu.usercentrics.eu/tcf2/",ty="https://config.eu.usercentrics.eu/gvl/v3/",tA="[LANG].json",tm="[LANG].json",tO="en-v2.json",tN="en.json",tD=function(e,t){return"boolean"==typeof e?e:t},tb=function(e){if(!e)return null;var t=e.startsWith("#")?e:"#".concat(e);return tL(t)?t:"#0045A5"},tL=function(e){return""!==e&&!!e&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e)},tw=function(e){if(null!=e.firstLayer.isOverlayEnabled)return e.firstLayer.isOverlayEnabled;var t=e.backgroundOverlay.find(function(e){var t;return(null==(t=e.target)?void 0:t[0])===tp.FIRST_LAYER});return!!t&&(null==t?void 0:t.darken)>0},tR=function(e){if(null!=e.secondLayer.isOverlayEnabled)return e.secondLayer.isOverlayEnabled;var t=e.backgroundOverlay.find(function(e){var t;return(null==(t=e.target)?void 0:t[0])===tp.SECOND_LAYER});return!!t&&(null==t?void 0:t.darken)>0},tP=function(e){return"number"!=typeof e&&("string"!=typeof e||e.includes("px"))?e:"".concat(e,"px")},tk=function(e){switch(e){case td.CENTER:return"center";case td.RIGHT:return"right";case td.LEFT:default:return"left"}},tV={description:"",id:"",legalBasis:[],name:""},tU=function(e,t){return e.map(function(e){var n=t.find(function(t){return t.id===e.id});return I(I(I({},e),n||tV),{},{description:e.description||(null==n?void 0:n.description)||tV.description,id:e.id,subServices:tU(e.subServices,t)})})},tM=function(){return"https://usercentrics.com/consent-management-platform-powered-by-usercentrics/"},tF=function(e){return null!=e&&null!=e.region},tG=function(e){return null!=e&&null!=e.changedPurposes},tB=function(e){var t;return null!=e&&null!=(null==(t=e.buttons)?void 0:t.optOutNotice)},tx=function(e){return null!=e&&null!=e.vendor},tH=function(e){var t;return null!=e&&null!=(null==(t=e.buttons)?void 0:t.showSecondLayer)},tj=function(e){return null!=e&&(tB(e)||tH(e)||tx(e))},tY=function(e){var t,n;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.showShortDescriptionOnMobile)&&null==(null==(n=e.firstLayer)?void 0:n.isCategoryTogglesEnabled)},tJ=function(e){var t;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.hideNonIabPurposes)},tW=function(e){var t;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.isCategoryTogglesEnabled)},tK=function(e){return 30.5*(e&&1>Math.sign(e)?1:null!=e&&Number.isFinite(e)?Math.min(13,Math.max(1,e)):13)};function tX(e){return eF.includes(e)}var tq=function(e){var t,n,s,i;return{allowedDomainOptions:{list:e.allowedDomains,showErrorCmp:e.showErrorOnUnallowedDomain},buttonDisplayLocation:e.buttonDisplayLocation,buttonPrivacyCloseIcon:e.buttonPrivacyCloseIcon,buttonPrivacyOpenIconUrl:e.buttonPrivacyOpenIconUrl,ccpa:(s=e.framework,{iabAgreementExists:(i=e.ccpa).iabAgreementExists,isActive:s?tX(s):i.isActive,region:i.region,reshowAfterDays:i.reshowAfterDays,showOnPageLoad:i.showOnPageLoad}),consentAnalytics:e.consentAnalytics,consentAPIv2:e.consentAPIv2,consentSharingIFrameIsActive:e.consentSharingIFrameIsActive,consentXDevice:e.consentXDevice,customization:(n=e.customization)?I(I({color:n.color?{primary:n.color.primary,privacyButtonBackground:n.color.privacyButtonBackground,privacyButtonIcon:n.color.privacyButtonIcon}:null},n.privacyButtonSizeMobile&&{privacyButtonSizeMobile:n.privacyButtonSizeMobile}),n.privacyButtonSizeDesktop&&{privacyButtonSizeDesktop:n.privacyButtonSizeDesktop}):n,dataExchangeOnPage:e.dataExchangeOnPage,displayOnlyForEU:e.displayOnlyForEU,enableBotDetection:e.enableBotDetection,enablePoweredBy:e.enablePoweredBy,framework:e.framework,googleConsentMode:e.googleConsentMode,integrations:e.integrations,interactionAnalytics:e.interactionAnalytics,labels:{partnerPoweredByLinkText:e.labels.partnerPoweredByLinkText,poweredBy:e.labels.poweredBy},languagesAvailable:e.languagesAvailable,partnerPoweredByUrl:e.partnerPoweredByUrl,privacyButtonIsVisible:e.privacyButtonIsVisible,privacyButtonUrls:e.privacyButtonUrls,renewConsentsTimestamp:e.renewConsentsTimestamp,reshowBanner:e.reshowBanner,settingsId:e.settingsId,showInitialViewForVersionChange:e.showInitialViewForVersionChange,tagLoggerIsActive:e.tagLoggerIsActive,tcf2:{resurfaceATPList
1Changed:(t=e.tcf2).resurfaceATPListChanged,resurfaceIABLegalBasisChanged:t.resurfaceIABLegalBasisChanged,resurfacePeriod:t.resurfacePeriod,resurfacePeriodEnded:t.resurfacePeriodEnded,resurfacePurposeChanged:t.resurfacePurposeChanged,resurfaceVendorAdded:t.resurfaceVendorAdded},tcf2Enabled:e.framework?["TCF2","UK_TCF2"].includes(e.framework):e.tcf2Enabled,variants:e.variants,version:e.version}},tQ=function(){function e(){u(this,e),g(this,"ampEnabled",!1)}return d(e,[{key:"isAmpEnabled",value:function(){return this.ampEnabled}},{key:"setIsAmpEnabled",value:function(e){this.ampEnabled=e}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"resetInstance",value:function(){e.instance.ampEnabled=!1}}])}();g(tQ,"instance",void 0);var tz,t$,tZ,t0,t1,t2,t3,t4,t6,t5,t7,t8,t9,ne,nt,nn,ns,ni,nr,na,no,nc,nu,nl,nd,nh,ng,nf,np,nS,nv,nE,nI,nT,nC,n_,ny,nA,nm,nO,nN,nD,nb,nL,nw,nR,nP="latest",nk={EU_URI:{AGGREGATOR:"https://aggregator.eu.usercentrics.eu/aggregate/",CDN:"https://config.eu.usercentrics.eu",FETCH_CONSENTS:"https://consents.eu.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics.eu",FETCH_TCF_DATA:"https://consents.eu.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.eu.usercentrics.eu/consentState",GRAPHQL:"https://api.eu.usercentrics.eu/graphql",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.eu.usercentrics.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics.eu/aggregate/",CDN:"https://api.usercentrics.eu",FETCH_CONSENTS:"https://consents.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics.eu",FETCH_TCF_DATA:"https://consents.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.usercentrics.eu/consentState",GRAPHQL:"https://graphql.usercentrics.eu/graphql",RULESET:"https://api.usercentrics.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics.eu/session/1px.png"}},nV={EU_URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-dot-usercentrics-playground.nw.r.appspot.com/",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-dot-usercentrics-playground.nw.r.appspot.com/",RULESET:"https://api.usercentrics-sandbox.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"}},nU=[ev.ESSENTIAL_CHANGE,ev.INITIAL_PAGE_LOAD,ev.NON_EU_REGION],nM=[ev.SESSION_RESTORED,ev.MOBILE_SESSION_RESTORED],nF=(nO=o(T().m(function e(t,n,s){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,nB(t,n,null,s))},e)})),function(e,t,n){return nO.apply(this,arguments)}),nG=(nN=o(T().m(function e(t,n,s,i){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,nB(t,s,n,i))},e)})),function(e,t,n,s){return nN.apply(this,arguments)}),nB=(nD=o(T().m(function e(t,n,s,i){var r,a;return T().w(function(e){for(;;)if(0===e.n)return r={"Content-Type":"application/json"},a=I(I({},i),{},{headers:r,method:s?"POST":"GET"}),s&&(a.body=JSON.stringify(s)),null!=i&&i.headers&&(a.headers=I(I({},r),i.headers)),e.a(2,fetch(t,a).then(function(){var e=o(T().m(function e(t){return T().w(function(e){for(;;)switch(e.n){case 0:if(!t.ok){e.n=1;break}return e.a(2,nH(t));case 1:throw nx(n,t.status);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()))},e)})),function(e,t,n,s){return nD.apply(this,arguments)}),nx=function(e,t){return{errorMessage:e,statusCode:t}},nH=(nb=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,nj(t);
1case 1:return n=e.v,e.a(2,{data:n,location:t.headers.get("x-client-geo-location"),statusCode:t.status})}},e)})),function(e){return nb.apply(this,arguments)}),nj=(nL=o(T().m(function e(t){var n,s;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.text();case 1:return s=""===(n=e.v)?{}:JSON.parse(n),e.a(2,s.data||s)}},e)})),function(e){return nL.apply(this,arguments)}),nY=((nw={})[nw.RESOURCE_NOT_FOUND=403]="RESOURCE_NOT_FOUND",nw),nJ="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{},nW={exports:{}},nK={exports:{}};nK.exports=nR=nR||function(e){if("u">typeof window&&window.crypto&&(t=window.crypto),"u">typeof self&&self.crypto&&(t=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"u">typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==nJ&&nJ.crypto&&(t=nJ.crypto),!t)try{t=n(48513)}catch(e){}var t,s=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},a=r.lib={},o=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,i=e.sigBytes;if(this.clamp(),s%4)for(var r=0;r<i;r++){var a=n[r>>>2]>>>24-r%4*8&255;t[s+r>>>2]|=a<<24-(s+r)%4*8}else for(var o=0;o<i;o+=4)t[s+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(s());return new c.init(t,e)}}),u=r.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s+=2)n[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new c.init(n,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;s.push(String.fromCharCode(r))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s++)n[s>>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},g=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,s=this._data,i=s.words,r=s.sigBytes,a=this.blockSize,o=r/(4*a),u=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*a,l=e.min(4*u,r);if(u){for(var d=0;d<u;d+=a)this._doProcessBlock(i,d);n=i.splice(0,u),s.sigBytes-=l}return new c.init(n,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=g.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=r.algo={};return r}(Math),nX=nK.exports,function(e){var t=nX.lib,n=t.WordArray,s=t.Hasher,i=nX.algo,r=[],a=[];function o(e){return 0x100000000*(e-(0|e))|0}for(var c=2,u=0;u<64;)(function(t){for(var n=e.sqrt(t),s=2;s<=n;
1s++)if(!(t%s))return!1;return!0})(c)&&(u<8&&(r[u]=o(e.pow(c,.5))),a[u]=o(e.pow(c,1/3)),u++),c++;var l=[],d=i.SHA256=s.extend({_doReset:function(){this._hash=new n.init(r.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,s=n[0],i=n[1],r=n[2],o=n[3],c=n[4],u=n[5],d=n[6],h=n[7],g=0;g<64;g++){if(g<16)l[g]=0|e[t+g];else{var f=l[g-15],p=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,S=l[g-2],v=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;l[g]=p+l[g-7]+v+l[g-16]}var E=s&i^s&r^i&r,I=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),T=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&d)+a[g]+l[g];h=d,d=u,u=c,c=o+T|0,o=r,r=i,i=s,s=T+(I+E)|0}n[0]=n[0]+s|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(s/0x100000000),n[15+(i+64>>>9<<4)]=s,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});nX.SHA256=s._createHelper(d),nX.HmacSHA256=s._createHmacHelper(d)}(Math),nW.exports=nX.SHA256;for(var nX,nq,nQ=nW.exports,nz=new Uint8Array(16),n$=[],nZ=0;nZ<256;++nZ)n$.push((nZ+256).toString(16).slice(1));var n0={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function n1(e,t,n){if(n0.randomUUID&&!t&&!e)return n0.randomUUID();var s=(e=e||{}).random||(e.rng||function(){if(!nq&&!(nq="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nq(nz)})();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=s[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n$[e[t+0]]+n$[e[t+1]]+n$[e[t+2]]+n$[e[t+3]]+"-"+n$[e[t+4]]+n$[e[t+5]]+"-"+n$[e[t+6]]+n$[e[t+7]]+"-"+n$[e[t+8]]+n$[e[t+9]]+"-"+n$[e[t+10]]+n$[e[t+11]]+n$[e[t+12]]+n$[e[t+13]]+n$[e[t+14]]+n$[e[t+15]]}(s)}var n2=function(){function e(){u(this,e),g(this,"needsSessionRestore",!1),g(this,"controllerId","")}return d(e,[{key:"value",get:function(){return this.controllerId},set:function(e){this.controllerId=e}},{key:"setControllerIdByResolvedSettingsId",value:function(e,t){var n=t.find(function(t){return e===t.settingsId});n&&(this.value=n.controllerId)}},{key:"setNeedSessionRestore",value:function(){this.needsSessionRestore=""!==this.controllerId}},{key:"init",value:function(){if(""===this.controllerId){var e=this.getStorageControllerId();this.controllerId=e||this.generateControllerId()}}},{key:"generateControllerId",value:function(){return"".concat(nQ(n1()))}},{key:"getStorageControllerId",value:function(){return e4.fetchControllerId()}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"resetInstance",value:function(){e.instance.controllerId=""}}])}();g(n2,"instance",void 0);var n3=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GR","HR","HU","IE","IT","IS","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"],n4=function(){var e,t,n,s,i;function r(){u(this,r),g(this,"userCountryData",{}),g(this,"convertUserCountryString",function(e){var t=null==e?void 0:e.split(","),n=t&&t[0]?t[0]:"DE";return{countryCode:n,countryName:n||"Germany (default)",regionCode:t&&t[1]&&t[1].length>=3?t[1].substring(2):""}})}return d(r,[{key:"setUserCountryData",value:function(e){this.userCountryData=e}},{key:"getUserCountryData",value:(i=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,this.userCountryData)},e,this)})),function(){return i.apply(this,arguments)})},{key:"getIsUserInCalifornia",value:(s=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,this.getIsUserInUS("CA"))},e,this)})),function(){return s.apply(this,arguments)})},{key:"getIsUserInEU",value:(n=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.getUserCountryData();case 1:if((t=e.v).code){e.n=2;break}return e.a(2,!1);case 2:return e.a(2,e6(n3,t.code.toUpperCase()))}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getIsUserInUS",value:(t=o(T().m(function e(t){var n,s;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.getUserCountryData();case 1:if((n=e.v).code){e.n=2;break}return e.a(2,!1);case 2:return(s=n.regionCode||"").length>
12&&(s=s.slice(2)),e.a(2,"US"===n.code&&(!t||s===t))}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"resolveLocation",value:(e=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.n){case 0:return n=this.convertUserCountryString(t),e.n=1,r.getInstance().getUserCountryData();case 1:e9(e.v)||(e4.setUserCountryResponse(n),this.setUserCountryData({code:n.countryCode,name:n.countryName,regionCode:n.regionCode}));case 2:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}],[{key:"getInstance",value:function(){return r.instance||(r.instance=new r),r.instance}},{key:"resetInstance",value:function(){r.instance.userCountryData={}}}])}();g(n4,"instance",void 0),g(n4,"mapUserCountryData",function(e){return{countryCode:e.code,countryName:e.name,regionCode:e.regionCode}});var n6={numOfAttempts:7,onFirstFail:function(){},onFirstRetriedSuccess:function(){},startingDelay:100,timeMultiple:2};function n5(e){return n7.apply(this,arguments)}function n7(){return(n7=o(T().m(function e(t){var n,s=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:return n=new n8(t,function(e){var t=I(I({},n6),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}(s.length>1&&void 0!==s[1]?s[1]:{})),e.n=1,n.execute();case 1:return e.a(2,e.v)}},e)}))).apply(this,arguments)}var n8=d(function e(t,n){u(this,e),this.request=t,this.options=n,g(this,"attemptNumber",0)},[{key:"execute",value:(sH=o(T().m(function e(){var t,n;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.attemptLimitReached){e.n=6;break}if(e.p=1,!this.attemptNumber){e.n=2;break}return e.n=2,this.wait(this.delay);case 2:return e.n=3,this.request();case 3:return t=e.v,this.attemptNumber&&this.options.onFirstRetriedSuccess(),e.a(2,t);case 4:if(e.p=4,n=e.v,this.attemptNumber||this.options.onFirstFail(),this.attemptNumber+=1,!this.attemptLimitReached){e.n=5;break}throw n;case 5:e.n=0;break;case 6:throw Error("Something went wrong.");case 7:return e.a(2)}},e,this,[[1,4]])})),function(){return sH.apply(this,arguments)})},{key:"attemptLimitReached",get:function(){return this.attemptNumber>=this.options.numOfAttempts}},{key:"wait",value:function(e){return new Promise(function(t){return setTimeout(t,e)})}},{key:"delay",get:function(){return this.options.startingDelay*Math.pow(this.options.timeMultiple,this.attemptNumber)}}]),n9=function(e){if(!e)return[];var t,n,s=e.reduce(function(e,t){return[].concat(O(e),[{id:t.templateId,version:t.version}])},[]);return(t=function(e,t){return e.id===t.id&&e.version===t.version},n=[],s.forEach(function(e){-1===n.findIndex(function(n){return t(e,n)})&&n.push(e)}),n).sort(function(e,t){return e.id>t.id?1:-1})},se=["tcString"],st=function(){var e,t,n,s,r,a,c,l,h,f,p,S,v,E,C,y,m;function N(){u(this,N),g(this,"API",nk),g(this,"abTestVariant",""),g(this,"controllerIdInstance",n2.getInstance()),g(this,"jsonCacheBustingString",""),g(this,"jsonFileLanguage",""),g(this,"jsonFileVersion",nP),g(this,"settingsId",""),g(this,"rulesetId",""),g(this,"useEuCdn",!1),g(this,"disableServerConsents",!1),g(this,"aggregatedServicesCache",null),g(this,"translationsCache",null)}return d(N,[{key:"resetAggregatedServicesCache",value:function(){this.aggregatedServicesCache=null}},{key:"resetTranslationsCache",value:function(){this.translationsCache=null}},{key:"getAbTestVariant",value:function(){return this.abTestVariant}},{key:"getJsonFileLanguage",value:function(){return this.jsonFileLanguage}},{key:"getJsonFileVersion",value:function(){return this.jsonFileVersion}},{key:"getSettingsId",value:function(){return this.settingsId}},{key:"getRulesetId",value:function(){return this.rulesetId}},{key:"getDisableServerConsents",value:function(){return this.disableServerConsents}},{key:"setJsonCacheBustingString",value:function(e){this.jsonCacheBustingString=e}},{key:"setJsonFileLanguage",value:function(e){this.jsonFileLanguage=e}},{key:"setJsonFileVersion",value:function(e){this.jsonFileVersion=e}},{key:"setDisableServerConsents",value:function(e){this.disableServerConsents=e}},{key:"setDomains",value:function(e,t){this.API=e?nV:t?{EU_URI:{AGGREGATOR:nk.EU_URI.AGGREGATOR,CDN:nk.EU_URI.CDN,FETCH_CONSENTS:nk.EU_URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:nk.EU_URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:nk.EU_URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:nk.EU_URI.FETCH_TCF_DATA_V2,GRAPHQL:nk.EU_URI.GRAPHQL,SAVE_CONSENTS_V2:nk.EU_URI.SAVE_CONSENTS_V2,TRACK_EVENT:nk.EU_URI.TRACK_EVENT,TRACK_SESSION:nk.EU_URI.TRACK_SESSION},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:I(I({AGGREGATOR:""!==t.aggregator?"".concat(t.aggregator,"/aggregate/"):nk.URI.AGGREGATOR,CDN:""!==t.cdn?t.cdn:nk.URI.CDN,RULESET:nk.URI.RULESET},""!==t.consents?{FETCH_CONSENTS:"".concat(t.consents,"/consentsHistory"),FETCH_CONSENTS_V2:"".concat(t.consents),FETCH_TCF_DATA:"".concat(t.consents,"/consentsHistoryTCF"),FETCH_TCF_DATA_V2:"".concat(t.consents,"/consentState")}:{FETCH_CONSENTS:nk.URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:nk.URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:nk.URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:nk.URI.FETCH_TCF_DATA_V2}),{},{GRAPHQL:""!==t.graphql?"".concat(t.graphql,"/graphql"):nk.URI.GRAPHQL,SAVE_CONSENTS_V2:""!==t.consentsV2?"".concat(t.consentsV2,"/consent"):nk.URI.SAVE_CONSENTS_V2,TRACK_EVENT:""!==t.trackingEvent?"".concat(t.trackingEvent,"/uct"):nk.URI.TRACK_EVENT,TRACK_SESSION:""!==t.app?"".concat(t.app,"/session/1px.png"):nk.URI.TRACK_SESSION})}:nk}},{key:"setSettingsId",value:function(e){this.settingsId=e}},{key:"setRulesetId",value:function(e){this.rulesetId=e}},{key:"setEuMode",value:function(e){this.useEuCdn=e}},{key:"isEuMode",value:function(){return this.useEuCdn}},{key:"getAggregatorUri",value:function(){return this.isEuMode()?this.API.EU_URI.AGGREGATOR:this.API.URI.AGGREGATOR}},{key:"getCdnUri",value:function(){return this.isEuMode()?this.API.EU_URI.CDN:this.API.URI.CDN}},{key:"getGraphQLUri",value:function(){return this.isEuMode()?this.API.EU_URI.GRAPHQL:this.API.URI.GRAPHQL}},{key:"getTcfDataV2Uri",value:function(){return this.isEuMode()?this.API.EU_URI.FETCH_TCF_DATA_V2:this.API.URI.FETCH_TCF_DATA_V2}},{key:"fetchAggregatedServices",value:(m=o(T().m(function e(t){var n,s,i,r=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:if(n=!(r.length>1&&void 0!==r[1])||r[1],!this.aggregatedServicesCache||!n){e.n=1;break}return e.a(2,this.aggregatedServicesCache);case 1:return s="".concat(this.getAggregatorUri()).concat(this.jsonFileLanguage,"?templates=").concat(t.map(function(e){return"".concat(e.id,"@").concat(e.version)}).join(",")),e.n=2,nF(s,tg.GENERATE_DATA_PROCESSING_SERVICES);case 2:return i=e.v,n&&(this.aggregatedServicesCache=i.data.templates),e.a(2,i.data.templates)}},e,this)})),function(e){return m.apply(this,arguments)})},{key:"fetchRuleset",value:(y=o(T().m(function e(){var t,n,s,i,r;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=this.createRulesetUrl(),e.n=1,nF(n,tg.RULESET_NOT_FOUND);case 1:return i=null==(t=(s=e.v).location)?void 0:t.split(","),e.a(2,{defaultRule:s.data.defaultRule,description:s.data.description,location:{code:i?i[0]:"",name:s.location||"",regionCode:i&&i[1]?i[
11]:""},rules:s.data.rules});case 2:throw e.p=2,(r=e.v).statusCode&&r.statusCode===nY.RESOURCE_NOT_FOUND&&(r.errorMessage=tg.RULESET_NOT_FOUND),r;case 3:return e.a(2)}},e,this,[[0,2]])})),function(){return y.apply(this,arguments)})},{key:"fetchAvailableLanguages",value:(C=o(T().m(function e(){var t,n,s;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=this.createAvailableLanguagesUrl(),e.n=1,nF(t,tg.FETCH_AVAILABLE_LANGUAGES);case 1:return n=e.v,e.n=2,n4.getInstance().resolveLocation(n.location);case 2:return e.a(2,n.data.languagesAvailable);case 3:throw e.p=3,(s=e.v).statusCode&&s.statusCode===nY.RESOURCE_NOT_FOUND&&(s.errorMessage=tg.AVAILABLE_LANGUAGES_NOT_FOUND),s;case 4:return e.a(2)}},e,this,[[0,3]])})),function(){return C.apply(this,arguments)})},{key:"fetchTranslations",value:(E=o(T().m(function e(){var t,n,s;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!this.translationsCache){e.n=1;break}return e.a(2,this.translationsCache);case 1:return e.p=1,t=this.createLanguagesUrl(),e.n=2,nF(t,tg.FETCH_LEGAL_BASIS);case 2:return n=e.v,this.translationsCache=n.data,e.a(2,n.data);case 3:return e.p=3,(s=e.v).statusCode&&s.statusCode===nY.RESOURCE_NOT_FOUND&&(s.errorMessage=tg.FETCH_LEGAL_BASIS),e.a(2,null)}},e,this,[[1,3]])})),function(){return E.apply(this,arguments)})},{key:"mergeAbVariant",value:(v=o(T().m(function e(t){var n,s;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=JSON.parse(t.data.variants.experiments),"UC"!==t.data.variants.activateWith){e.n=1;break}return s=Object.keys(n),this.abTestVariant=e4.fetchAbTestVariant(s),e.a(2,tc(n[this.abTestVariant],t.data));case 1:return e.p=1,e.n=2,tu(function(){return!!window.UC_AB_VARIANT},"window.UC_AB_VARIANT is not defined",2e3);case 2:e.n=4;break;case 3:e.p=3,console.warn(e.v);case 4:if(!(window.UC_AB_VARIANT&&n&&n[window.UC_AB_VARIANT])){e.n=5;break}return this.abTestVariant=window.UC_AB_VARIANT,e.a(2,tc(n[window.UC_AB_VARIANT],t.data));case 5:return e.a(2,t.data)}},e,this,[[1,3]])})),function(e){return v.apply(this,arguments)})},{key:"fetchAcmVendors",value:(S=o(T().m(function e(){var t,n;return T().w(function(e){for(;;)switch(e.n){case 0:return t=this.createAcmVendorsJsonUrl(),e.n=1,nF(t,tg.FETCH_ACM_VENDORS);case 1:return n=e.v,e.a(2,n.data)}},e,this)})),function(){return S.apply(this,arguments)})},{key:"fetchSettingsJson",value:(p=o(T().m(function e(){var t,n,s;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=this.createSettingsJsonUrl(),e.n=1,nF(t,tg.FETCH_SETTINGS);case 1:if(n=e.v,["ccpa","firstLayer","secondLayer"].forEach(function(e){n.data[e]||(n.data[e]={})}),n.data.tcf2&&(n.data.tcf2.selectedVendorIds=(n.data.tcf2.selectedVendorIds||[]).sort(function(e,t){return e-t})),n.data.consentTemplates&&(n.data.consentTemplates=n.data.consentTemplates.reduce(function(e,t){return t.isDeactivated||e.push(t),e},[])),!(n.data.variants&&n.data.variants.enabled&&te(n.data.variants.experiments,"A/B Testing"))){e.n=3;break}return e.n=2,this.mergeAbVariant(n);case 2:return e.a(2,e.v);case 3:return e.a(2,n.data);case 4:throw e.p=4,(s=e.v).statusCode&&s.statusCode===nY.RESOURCE_NOT_FOUND&&(s.errorMessage=tg.SETTINGS_NOT_FOUND),s;case 5:return e.a(2)}},e,this,[[0,4]])})),function(){return p.apply(this,arguments)})},{key:"fetchUserConsents",value:(f=o(T().m(function e(){var t,n;return T().w(function(e){for(;;)switch(e.n){case 0:if(this.getDisableServerConsents()){e.n=2;break}return t=this.createFetchUserConsentsUrl(),e.n=1,nF(t,tg.FETCH_USER_CONSENTS);case 1:return n=e.v,e.a(2,n.data.reverse());case 2:return e.a(2,[])}},e,this)})),function(){return f.apply(this,arguments)})},{key:"fetchUserConsentsV2",value:(h=o(T().m(function e(t,n){var s,i,r,a,o,c,u;return T().w(function(e){for(;;)switch(e.n){case 0:if(s=function(e){return[].concat(O(nU),O(nM)).includes(e)?eE.IMPLICIT:eE.EXPLICIT},this.getDisableServerConsents()){e.n=2;break}return i=this.createFetchUserConsentsV2Url(),e.n=1,nF(i,tg.FETCH_USER_CONSENTS);case 1:return r=e.v.data,a=null,o=null,t&&(c=JSON.parse(r.consentMeta),a={acString:r.acString||"",tcString:r.consentString,timestamp:c.timestamp,vendors:c.vendors,vendorsDisclosed:c.vendorsDisclosed}),n&&(o={ccpaString:r.consentString,timestamp:r.timestamp||Date.now()}),u=r.consents.reduce(function(e,t){return[].concat(O(e),[{action:r.action,consentId:"",settingsVersion:r.settingsVersion,status:t.consentStatus,templateId:t.consentTemplateId,timestamp:r.timestamp||Date.now(),updatedBy:s(r.action)}])},[]),e.a(2,I(I({consents:u},o&&{ccpa:o}),a&&{tcf:a}));case 2:return e.a(2,null)}},e,this)})),function(e,t){return h.apply(this,arguments)})},{key:"fetchUserTcfData",value:(l=o(T().m(function e(){var t,n,s;return T().w(function(e){for(;;)switch(e.n){case 0:if(this.getDisableServerConsents()){e.n=2;break}return t=this.createFetchUserTcfDataUrl(),e.n=1,nF(t,tg.FETCH_USER_TCF_DATA);case 1:return s=I({tcString:(n=e.v.data).tcString},JSON.parse(n.meta)||{}),e.a(2,s);case 2:return e.a(2,null)}},e,this)})),function(){return l.apply(this,arguments)})},{key:"fetchUserTcfDataV2",value:(c=o(T().m(function e(){var t,n,s,i;return T().w(function(e){for(;;)switch(e.n){case 0:return t=this.createFetchUserTcfDataV2Url(),e.n=1,nF(t,tg.FETCH_USER_TCF_DATA);case 1:if(!(n=e.v).data||!n.data.tcf2){e.n=2;break}return i=I({tcString:(s=n.data.tcf2).tcString},JSON.parse(s.meta)||{}),e.a(2,i);case 2:throw Error(tg.FETCH_USER_TCF_DATA);case 3:return e.a(2)}},e,this)})),function(){return c.apply(this,arguments)})},{key:"fetchVendorsList",value:(a=o(T().m(function e(t,n){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,fetch(t).then(function(e){return e.json()}).then(function(e){return null!=n&&n.length&&(e.purposes=Object.entries(e.purposes).reduce(function(e,t){var s=A(t,2),i=s[0],r=s[1];return I(I({},e),-1===n.indexOf(parseInt(i,10))&&g({},i,r))},{}),e.vendors=Object.entries(e.vendors).reduce(function(e,t){var s=A(t,2),i=s[0],r=s[1];return I(I({},e),{},g({},i,I(I({},r),{},{flexiblePurposes:r.flexiblePurposes.filter(function(e){return -1===n.indexOf(e)}),legIntPurposes:r.legIntPurposes.filter(function(e){return -1===n.indexOf(e)}),purposes:r.purposes.filter(function(e){return -1===n.indexOf(e)})})))},{})),e}))},e)})),function(e,t){return a.apply(this,arguments)})},{key:"saveTCFConsents",value:(r=o(T().m(function e(t,n,s,i,r,a){var o,c,u,l,d,h,g;return T().w(function(e){for(;;)switch(e.n){case 0:return o={consent:{status:!0},id:"tcf2",name:"tcf2",processorId:"abcd",version:"1.0.0"},c=n.tcString,u=function(e,t){if(null==e)return{};var n,s,i=function(e,t){if(null==e)return{};var n={};for(var s in e)if(({}).hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(s=0;s<r.length;s++)n=r[s],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,se),l=[],a&&(d=tn(t,o,s,i),h={consentMeta:{TCF2:JSON.stringify(u)},consentString:{TCF2:c},dataTransferObjects:[d]},l.push(this.saveConsentsV1_DEPRECATED(h))),r&&(g=ts({consentAction:s,consentString:{TCF2:c},dataTransferSettings:t,isAnalyticsEnabled:!0===r.isAnalyticsEnabled,isCcpa:!1,isConsentXDeviceEnabled:!0===r.isConsentAPIv2Enabled,isTcf:!0}),l.push(this.saveConsents(g))),e.n=1,Promise.all(l);case 1:return e.a(2)}},e,this)})),function(e,t,n,s,i,a){return r.apply(this,arguments)})},{key:"saveConsentsV1_DEPRECATED",value:(s=o(T().m(function e(t){var n,s,i,r=this;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.getDisableServerConsents()){e.n=4;break}return n=sn(),s=ss(t),e.p=1,e.n=2,n5(function(){return nG(r.getGraphQLUri(),s,tg.SAVE_CONSENTS,n)},{onFirstFail:function(){return e4.appendToConsentsBuffer(t)},onFirstRetriedSuccess:function(){var e=e4.findBufferItem(t);e&&e4.removeConsentsBufferItem(e)}});case 2:e.n=4;break;case 3:e.p=3,(i=e.v)instanceof Error&&console.error("".concat(tg.SAVE_CONSENTS_RETRY,": ").concat(i.message)),console.error(tg.SAVE_CONSENTS_RETRY);case 4:return e.a(2)}},e,this,[[1,3]])}
1)),function(e){return s.apply(this,arguments)})},{key:"saveConsents",value:(n=o(T().m(function e(t){var n,s,i,r;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.getDisableServerConsents()){e.n=4;break}return n=this.createSaveConsentsV2Url(),s=t,i=sn(),e.p=1,e.n=2,n5(function(){return nG(n,s,tg.SAVE_CONSENTS,i)},{onFirstFail:function(){return e4.appendToConsentsV2Buffer(t)},onFirstRetriedSuccess:function(){var e=e4.findV2BufferItem(t);e&&e4.removeConsentsV2BufferItem(e)}});case 2:e.n=4;break;case 3:e.p=3,(r=e.v)instanceof Error&&console.error("".concat(tg.SAVE_CONSENTS_RETRY,": ").concat(r.message)),console.error(tg.SAVE_CONSENTS_RETRY);case 4:return e.a(2)}},e,this,[[1,3]])})),function(e){return n.apply(this,arguments)})},{key:"sendConsents",value:function(e,t){return nG(this.getGraphQLUri(),e,tg.SAVE_CONSENTS,t)}},{key:"sendConsentsV2",value:function(e,t){return nG(this.createSaveConsentsV2Url(),e,tg.SAVE_CONSENTS,t)}},{key:"saveConsentsFromBuffer",value:(t=o(T().m(function e(){var t,n,s,r,a,o,c,u,l=this;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.getDisableServerConsents()||!Array.isArray(t=e4.fetchConsentsBuffer())||!t.length){e.n=12;break}n=!1,s=!1,e.p=1,a=T().m(function e(){var t,n,s,i;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=c.value,n=sn(),s=ss(t.consents),e.p=1,e.n=2,n5(function(){return l.sendConsents(s,n)});case 2:e4.removeConsentsBufferItem(t),e.n=4;break;case 3:e.p=3,(i=e.v)instanceof Error&&console.error("".concat(tg.SAVE_CONSENTS_RETRY,": ").concat(i.message)),console.error(tg.SAVE_CONSENTS_RETRY);case 4:return e.a(2)}},e,null,[[1,3]])}),o=i(t);case 2:return e.n=3,o.next();case 3:if(!(n=!(c=e.v).done)){e.n=5;break}return e.d(_(a()),4);case 4:n=!1,e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,u=e.v,s=!0,r=u;case 7:if(e.p=7,e.p=8,!n||null==o.return){e.n=9;break}return e.n=9,o.return();case 9:if(e.p=9,!s){e.n=10;break}throw r;case 10:return e.f(9);case 11:return e.f(7);case 12:return e.a(2)}},e,this,[[8,,9,11],[1,6,7,12]])})),function(){return t.apply(this,arguments)})},{key:"saveConsentsV2FromBuffer",value:(e=o(T().m(function e(){var t,n,s,r,a,o,c,u,l=this;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.getDisableServerConsents()||!Array.isArray(t=e4.fetchConsentsV2Buffer())||!t.length){e.n=12;break}n=!1,s=!1,e.p=1,a=T().m(function e(){var t,n,s,i;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=c.value,n=sn(),s=t.consents,e.p=1,e.n=2,n5(function(){return l.sendConsentsV2(s,n)});case 2:e4.removeConsentsV2BufferItem(t),e.n=4;break;case 3:e.p=3,(i=e.v)instanceof Error&&console.error("".concat(tg.SAVE_CONSENTS_RETRY,": ").concat(i.message)),console.error(tg.SAVE_CONSENTS_RETRY);case 4:return e.a(2)}},e,null,[[1,3]])}),o=i(t);case 2:return e.n=3,o.next();case 3:if(!(n=!(c=e.v).done)){e.n=5;break}return e.d(_(a()),4);case 4:n=!1,e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,u=e.v,s=!0,r=u;case 7:if(e.p=7,e.p=8,!n||null==o.return){e.n=9;break}return e.n=9,o.return();case 9:if(e.p=9,!s){e.n=10;break}throw r;case 10:return e.f(9);case 11:return e.f(7);case 12:return e.a(2)}},e,this,[[8,,9,11],[1,6,7,12]])})),function(){return e.apply(this,arguments)})},{key:"setTrackingPixel",value:function(e){var t,n="".concat(document.location.origin).concat(document.location.pathname);e.referrer?function(e){try{return new URL(e),!0}catch(e){return!1}}(e.referrer)?t=e.referrer:(console.warn(tg.CUSTOM_REFERRER_NOT_VALID),t=n):t=n;var s=(new Date).getTime(),i=encodeURIComponent(t),r="".concat(this.isEuMode()?this.API.EU_URI.TRACK_EVENT:this.API.URI.TRACK_EVENT,"?v=").concat(1,"&sid=").concat(this.settingsId,"&t=").concat(e.eventType,"&abv=").concat(e.abTestVariant,"&r=").concat(i,"&cb=").concat(s);(new Image).src=r}},{key:"updateTagLoggerData",value:function(e){var t=si({settingsId:this.settingsId,source:window.location.href,targets:e});this.saveTagLoggerData(t)}},{key:"addJsonCacheBustingString",value:function(e){return this.jsonCacheBustingString?"".concat(e,"?c=").concat(this.jsonCacheBustingString):e}},{key:"createAvailableLanguagesUrl",value:function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.SETTINGS,"/").concat(this.settingsId,"/").concat(this.jsonFileVersion,"/languages.json"))}},{key:"createLanguagesUrl",value:function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.TRANSLATIONS,"/translations-").concat(this.jsonFileLanguage,".json"))}},{key:"getSettingsUrl",value:function(){return"".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.SETTINGS,"/").concat(this.settingsId,"/").concat(this.jsonFileVersion)}},{key:"createSettingsJsonUrl",value:function(){return this.addJsonCacheBustingString("".concat(this.getSettingsUrl(),"/").concat(this.jsonFileLanguage,".json"))}},{key:"createAcmVendorsJsonUrl",value:function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/tcfac/acp.json"))}},{key:"createSessionTrackingUrl",value:function(){return"".concat(this.isEuMode()?this.API.EU_URI.TRACK_SESSION:this.API.URI.TRACK_SESSION,"?settingsId=").concat(this.settingsId)}},{key:"createFetchUserConsentsUrl",value:function(){return"".concat(this.isEuMode()?this.API.EU_URI.FETCH_CONSENTS:this.API.URI.FETCH_CONSENTS,"?controllerId=").concat(this.controllerIdInstance.value)}},{key:"createFetchUserConsentsV2Url",value:function(){return"".concat(this.isEuMode()?this.API.EU_URI.FETCH_CONSENTS_V2:this.API.URI.FETCH_CONSENTS_V2,"?settingsId=").concat(this.getSettingsId(),"&controllerId=").concat(this.controllerIdInstance.value)}},{key:"createFetchUserTcfDataUrl",value:function(){return"".concat(this.API.URI.FETCH_TCF_DATA,"?controllerId=").concat(this.controllerIdInstance.value)}},{key:"createFetchUserTcfDataV2Url",value:function(){return"".concat(this.getTcfDataV2Uri(),"?controllerId=").concat(this.controllerIdInstance.value,"&tcf2=true&settingsId=").concat(this.settingsId)}},{key:"createRulesetUrl",value:function(){return"".concat(this.API.URI.RULESET,"/").concat(this.API.FOLDER.RULESET,"/").concat(this.rulesetId,".json")}},{key:"createSaveConsentsV2Url",value:function(){return"".concat(this.isEuMode()?this.API.EU_URI.SAVE_CONSENTS_V2:this.API.URI.SAVE_CONSENTS_V2,"/uw/").concat(3)}},{key:"saveTagLoggerData",value:function(e){try{nG(this.getGraphQLUri(),e,"",I(I({},sn()),{},{keepalive:!0}))}catch(e){console.warn(tg.TAGLOGGER,e)}}}],[{key:"getInstance",value:function(){return N.instance||(N.instance=new N),N.instance}},{key:"resetInstance",value:function(){N.instance.jsonCacheBustingString="",N.instance.jsonFileLanguage="",N.instance.jsonFileVersion=nP,N.instance.settingsId="",N.instance.disableServerConsents=!1}}])}();g(st,"instance",void 0);var sn=function(){return{credentials:"omit",headers:{Accept:"application/json","Access-Control-Allow-Origin":"*","X-Request-ID":n1()},mode:"cors"}},ss=function(e){var t=e.dataTransferObjects,n=e.consentMeta,s=e.consentString;return{query:"mutation saveConsents($consents: [NewCreateConsentInput], $consentMeta: ConsentMeta, $consentString: ConsentString)\n      {\n        saveConsents(consents: $consents, consentMeta: $consentMeta, consentString: $consentString) { data { consentId } }\n      }",variables:{consentMeta:n,consents:sr(t),consentString:s}}},si=function(e){return{operationName:"saveTagLoggerData",query:"mutation saveTagLoggerData($settingsId: String, $source: String, $targets: [String])\n        {\n          saveTagLoggerData(settingsId: $settingsId, source: $source, targets: $targets)\n        }",variables:{settingsId:e.settingsId,source:e.source,targets:e.targets}}},sr=function(e){return e.map(function(e){return{action:e.consent.action,appVersion:e.applicationVersion,consentStatus:e.consent.status?"1":"0",consentTemplateId:e.service.id,consentTemplateVersion:e.service.version,controllerId:e.settings.controllerId,language:e.settings.language,processorId:e.service.processorId,referrerControllerId:e.settings.referrerControllerId,settingsId:e.settings.id,settingsVersion:e.settings.version,updatedBy:e.consent.type}})},sa=((sj=sa||{})[sj.NO=0]="NO",sj[sj.YES=1]="YES",sj[sj.NOT_SET=2]="NOT_SET",sj),so=function(){function e(){u(this,e),g(this,"isBotEnabled",!1),g(this,"isBot",sa.NOT_SET)}return d(e,[{key:"isRobot",value:function(){if(this.isBot===sa.NOT_SET)if(this.isBotEnabled){var e=window.navigator.userAgent,t=RegExp("AdsBot-Google|AdsBot-Google-Mobile|bingbot/|BingPreview/|Chrome-Lighthouse|DuckDuckBot/|Feedfetcher-Google|Googlebot/|Google Favicon|Googlebot-Image/|Google-InspectionTool|Googlebot-Mobile/|Googlebot-News|Googlebot-Video/|Google Page Speed Insights|Google PageSpeed Insights|Google PP|Google-Read-Aloud|Google Search Console|Google-SearchByImage|Google-Speakr|Google-Structured-Data-Testing-Tool|Google Web Preview|HeadlessChrome|Lighthouse|Optimizer|Pagespeed|SISTRIX|Slurp/|Storebot-Google|YahooSeeker|YahooCacheSystem|Yahoo! Site Explorer Feed Validator|Yahoo! Slurp","i");this.isBot=t.test(e)?sa.YES:sa.NO}else this.isBot=sa.NO;return this.isBot===sa.YES}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"resetInstance",value:function(){e.instance.isBot=sa.NOT_SET}}])}();g(so,"instance",void 0);var sc="UC_SDK_EVENT",su=["BkeKqEjuoZQ","dUzxiHb6Q","dsS7z9Hv4","l5j0HxFqd","2AMblLg3I","00xb_vkGq"],sl=["LykAT-gy","UekC8ye4S","9V8bg4D63","ByzZ5EsOsZX","S1_9Vsuj-Q","dqFgQeZH","twMyStLkn","B1Hk_zoTX","pxiRY9112","dyHOCwp5Y","DHS2sEi4b"],sd=["HkocEodjb7","87JYasXPF"],sh=function(){function e(){u(this,e),g(this,"dataLayerNames",[]),g(this,"windowEventNames",[]),g(this,"dataLayer",new Map),g(this,"blockDataLayerPush",!1),g(this,"isUniversalEventTrackingDisabled",!1),g(this,"isClarityEnabled",!1)}return d(e,[{key:"setBlockDataLayerPush",value:function(e){this.blockDataLayerPush=e}},{key:"setUetDisabled",value:function(e){this.isUniversalEventTrackingDisabled=e}},{key:"enableClarity",value:function(e){this.isClarityEnabled=e}},{key:"shouldBlockDataLayerPush",value:function(){return this.blockDataLayerPush}},{key:"init",value:function(e){var t=this;e.forEach(function(e){e.type===eT.DATA_LAYER?t.dataLayerNames=tt(e.names,[]):e.type===eT.WINDOW_EVENT&&(t.windowEventNames=tt(e.names,[]))}),this.windowEventNames.includes(sc)||this.windowEventNames.push(sc)}},{key:"setDataLayer",value:function(e,t){this.dataLayer.set(t,e)}},{key:"getDataLayer",value:function(){return this.dataLayer}},{key:"dispatch",value:function(e,t,n,s){e8(e)&&(this.pushEventsToDataLayer(e,t,n,s),this.dispatchWindowEvents(e,s))}},{key:"isValidDataLayer",value:function(e){return window[e]&&(Array.isArray(window[e])||Object.prototype.hasOwnProperty.call(window[e],"push"))}},{key:"pushEventsToDataLayer",value:function(e,t,n,s){var i=this;
1e8(this.dataLayerNames)&&this.dataLayerNames.forEach(function(r){if(window[r]=tt(window[r],[]),!i.isValidDataLayer(r))throw Error("DataLayer: ".concat(r," is not of a valid type!"));if(function(e,t){if(!e){var n,s,i,r,a=(i=(s=t.filter(function(e){var t=e.consent,n=t.type,s=t.action;return su.includes(e.service.id)&&(n===eE.EXPLICIT||n===eE.IMPLICIT&&s===ev.NON_EU_REGION)})).length>0,r=s.every(function(e){return e.consent.status}),{adStorageStatus:i&&r?"granted":"denied",shouldUpdate:i});a.shouldUpdate&&(n=a.adStorageStatus,(window.uetq||[]).push("consent","update",{ad_storage:n}),window.dispatchEvent(new CustomEvent("UC_UET_UPDATE",{detail:{adStorage:n}})))}}(i.isUniversalEventTrackingDisabled,e),function(e,t){if(e){var n,s,i,r,a,o,c={adStorageStatus:o=(a=t.filter(function(e){var t=e.consent,n=t.type,s=t.action,i="jzMEq56vW"===e.service.id,r=n===eE.EXPLICIT||n===eE.IMPLICIT&&s===ev.NON_EU_REGION;return i&&r})).length>0&&a.every(function(e){return!0===e.consent.status})?"granted":"denied",analyticsStorageStatus:o};n=c.adStorageStatus,s=c.analyticsStorageStatus,window.clarity=window.clarity||function(){var e,t=window.clarity;t.q=null!=(e=t.q)?e:[];for(var n=arguments.length,s=Array(n),i=0;i<n;i++)s[i]=arguments[i];t.q.push(s)},null==(i=(r=window).clarity)||i.call(r,"consentv2",{source:151,ad_Storage:n,analytics_Storage:s}),window.dispatchEvent(new CustomEvent("UC_CLARITY_UPDATE",{detail:{adStorage:n,analyticsStorage:s}}))}}(i.isClarityEnabled,e),n&&"dataLayer"===r){var a=!1,o=!1,c=!1,u=!1,l=!1;sf("set","developer_id.dOThhZD",!0),e.forEach(function(e){var t=e.service.id,n=e.consent,s=n.status,i=n.type,r=n.action;sd.includes(t)&&(i===eE.EXPLICIT||i===eE.IMPLICIT&&r===ev.NON_EU_REGION)&&(a=a||s,l=!0),sl.includes(t)&&(i===eE.EXPLICIT||i===eE.IMPLICIT&&r===ev.NON_EU_REGION)&&(u=!0,l=!0,s||(c=!0))}),t?o=!!t.consent:u&&!c&&(o=!0);var d={adsDataRedaction:!o};if(l){sf("consent","update",{ad_personalization:(d=I(I({},d),{},{adPersonalization:o?"granted":"denied",adStorage:o?"granted":"denied",adUserData:o?"granted":"denied",analyticsStorage:a?"granted":"denied"})).adPersonalization,ad_storage:d.adStorage,ad_user_data:d.adUserData,analytics_storage:d.analyticsStorage}),e4.saveGcmData(d);var h=new window.CustomEvent("UC_GCM_UPDATE",{detail:d});window.dispatchEvent(h)}sf("set","ads_data_redaction",d.adsDataRedaction)}window[r].push(sg(e,s)),i.setDataLayer(window[r],r),i.shouldBlockDataLayerPush()||e[0].consent.type===eE.EXPLICIT&&e.forEach(function(e){e.consent.status||window[r].push({event:"".concat(e.service.name," EXPLICIT_DENY")})})})}},{key:"dispatchWindowEvents",value:function(e,t){if(e8(this.windowEventNames)){var n=sg(e,t);this.windowEventNames.forEach(function(e){var t=new window.CustomEvent(e,{detail:n});window.dispatchEvent(t)})}}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"resetInstance",value:function(){e.instance.dataLayerNames=[],e.instance.windowEventNames=[],e.instance.dataLayer=new Map}}])}();g(sh,"instance",void 0);var sg=function(e,t){var n={action:null!=t?t:e[0].consent.action,event:"consent_status",type:e[0].consent.type,ucCategory:{}};return e.forEach(function(e){var t,s,i=(null==(t=e.service.categorySlug)?void 0:t.length)&&Object.prototype.hasOwnProperty.call(n.ucCategory,e.service.categorySlug);n=I(I({},n),{},g({},e.service.name,e.consent.status)),null!=(s=e.service.categorySlug)&&s.length&&(n.ucCategory[e.service.categorySlug]=i&&n.ucCategory[e.service.categorySlug]!==e.consent.status?null:e.consent.status)}),n},sf=function(){window.dataLayer.push(arguments)},sp=((sY={}).TEXT_JAVASCRIPT="text/javascript",sY.TEXT_PLAIN="text/plain",sY),sS="data-usercentrics",sv=function(){function e(){u(this,e)}return d(e,null,[{key:"enableScriptsForServicesWithConsent",value:function(t){var n=e.getDisabledScripts();Array.prototype.forEach.call(n,function(n){e.disabledScriptHasConsent(t,n)&&e.enableScript(n)})}},{key:"getDisabledScripts",value:function(){return document.querySelectorAll("script[".concat(sS,'][type="').concat(sp.TEXT_PLAIN,'"]'))}},{key:"disabledScriptHasConsent",value:function(e,t){return e.some(function(e){return e.name===t.getAttribute(sS)})}},{key:"enableScript",value:function(t){var n,s=t.src?e.createSrcScriptTag(t):e.createInlineScriptTag(t);(n=t.parentNode)&&n.replaceChild(s,t)}},{key:"createSrcScriptTag",value:function(t){var n=e.cloneScriptTag(t);return n.removeAttribute(sS),n.type=sp.TEXT_JAVASCRIPT,n}},{key:"createInlineScriptTag",value:function(t){var n=e.cloneScriptTag(t);n.removeAttribute(sS);var s=document.createTextNode(t.text);return n.appendChild(s),n.type=sp.TEXT_JAVASCRIPT,n}},{key:"cloneScriptTag",value:function(e){var t=document.createElement("script");
1return Array.from(e.attributes).forEach(function(e){t.setAttribute(e.name,e.value)}),t}}])}(),sE=d(function e(){u(this,e),g(this,"ariaLabels",void 0),this.ariaLabels=tI}),sI=d(function e(t,n,s){var i,r;u(this,e),g(this,"anyDomain",void 0),g(this,"cookieRefresh",void 0),g(this,"cookieStorage",void 0),g(this,"day",void 0),g(this,"days",void 0),g(this,"description",void 0),g(this,"disclosureDescription",void 0),g(this,"domain",void 0),g(this,"duration",void 0),g(this,"error",void 0),g(this,"hour",void 0),g(this,"hours",void 0),g(this,"identifier",void 0),g(this,"loading",void 0),g(this,"maximumAge",void 0),g(this,"minute",void 0),g(this,"minutes",void 0),g(this,"month",void 0),g(this,"months",void 0),g(this,"multipleDomains",void 0),g(this,"name",void 0),g(this,"no",void 0),g(this,"nonCookieStorage",void 0),g(this,"disclosureOptOut",void 0),g(this,"purposes",void 0),g(this,"second",void 0),g(this,"seconds",void 0),g(this,"session",void 0),g(this,"specialPurposes",void 0),g(this,"storedInformation",void 0),g(this,"storedInformationDescription",void 0),g(this,"title",void 0),g(this,"titleDetailed",void 0),g(this,"tryAgain",void 0),g(this,"type",void 0),g(this,"year",void 0),g(this,"years",void 0),g(this,"yes",void 0),this.anyDomain=t.anyDomain||"any domain (ex. first party cookie)",this.cookieRefresh=(null==n?void 0:n.COOKIE_REFRESH)||(null==s||null==(i=s.labels)?void 0:i.COOKIE_REFRESH)||"Cookie Refresh",this.cookieStorage=(null==n?void 0:n.COOKIE_STORAGE)||(null==s||null==(r=s.labels)?void 0:r.COOKIE_STORAGE)||"Cookie Storage",this.day=t.day,this.days=t.days,this.description=t.storageInformationDescription||"Below you can see the longest potential duration for storage on a device, as set when using the cookie method of storage and if there are any other methods used.",this.disclosureDescription=t.disclosureDescription||"Description",this.domain=t.domain||"Domain",this.duration=t.duration||"Duration",this.error=t.informationLoadingNotPossible||"Sorry; we could not load the required information.",this.hour=t.hour,this.hours=t.hours,this.identifier=t.identifier||"Identifier",this.loading=t.loadingStorageInformation||"Loading storage information",this.maximumAge=t.maximumAgeCookieStorage||"Maximum age of cookie storage",this.minute=t.minute,this.minutes=t.minutes,this.month=t.month,this.months=t.months,this.multipleDomains=t.multipleDomains||"multiple subdomains may exist",this.name=t.name||"Name",this.no=t.no||"no",this.nonCookieStorage=t.nonCookieStorage||"Non-cookie storage",this.disclosureOptOut=t.disclosureOptOut||"Opt-out",this.purposes=t.purposes||"Purposes",this.second=t.second||"second",this.seconds=t.seconds||"seconds",this.session=t.session||"Session",this.specialPurposes=t.specialPurposes||"Special Purposes",this.storedInformation=t.storedInformation||"Stored Information",this.storedInformationDescription=t.storedInformationDescription||"This service uses different means of storing information on a user’s device as listed below.",this.title=t.storageInformation||"Storage Information",this.titleDetailed=t.detailedStorageInformation||"Detailed Storage Information",this.tryAgain=t.tryAgain||"Try again?",this.type=t.type||"Type",this.year=t.year,this.years=t.years,this.yes=t.yes||"yes"}),sT=function(e,t){var n=e.defaultConsentStatus;return{history:[],status:!(null==t||!t.isEssential)||n}},sC=function(e,t){var n=e.legalBasisList,s=e.legalGround;return t.length>0?t:e8(n)?n:[s]},s_=function(e,t){return(null==e?void 0:e.description)||(null==t?void 0:t.descriptionOfService)||(null==t?void 0:t.description)||""},sy=function(e,t){return t&&!e.every(function(e){return t.find(function(t){return t.id===e.id})})||!1},sA=d(function e(t,n,s){u(this,e),g(this,"description",void 0),g(this,"id",void 0),g(this,"legalBasis",void 0),g(this,"name",void 0);var i,r=null==s?void 0:s.find(function(e){return t.templateId===e.templateId&&t.version===e.version}),a=null!=n&&n.legalBasis&&t.legalBasisList?t.legalBasisList.reduce(function(e,t){return null!=n&&n.legalBasis[t]?[].concat(O(e),[null==n?void 0:n.legalBasis[t]]):e},[]):[];this.description=s_(t,r),this.id=t.templateId,this.legalBasis=r&&!t.disableLegalBasis?sC(r,a):[],this.name=(null==(i=t._meta)?void 0:i.name)||(null==r?void 0:r.dataProcessor)||(null==r?void 0:r.dataProcessors[0])||""}),sm=function(){function e(t,n,s,i){u(this,e),g(v=c(this,e),"ariaLabels",void 0),g(v,"categories",void 0),g(v,"cookieInformation",void 0),g(v,"general",void 0),g(v,"links",void 0),g(v,"integrationLinks",void 0),g(v,"poweredBy",void 0),g(v,"service",void 0),g(v,"services",void 0);var r,a,o,l,d,h,f,p,S,v,E=t.labels;if(v.ariaLabels=I(I({},(null==s?void 0:s.labelsAria)||tI),{},{closeButton:E.btnClose}),v.categories=n.categories.map(function(e){return{description:e.description,label:e.label,slug:e.categorySlug}}),v.cookieInformation=new sI(E,null,s),v.general={back:(null==s||null==(r=s.labels)?void 0:r.BACK)||"Back",consentGiven:E.accepted,consentNotGiven:E.denied,consentType:E.consentType,controllerId:(null==s||null==(a=s.labels)?void 0:a.CID_TITLE)||"Controller ID",copied:E.copied,copy:E.copy,date:E.date,decision:E.decision,details:(null==s||null==(o=s.labels)?void 0:o.DETAILS)||"Details",explicit:E.explicit,gpcSignalHonored:(null==s||null==(l=s.labels)?void 0:l.GPC_SIGNAL_HONORED)||E.gpcSignalHonored||"The GPC signal is honored",implicit:E.implicit,implicitNo:E.noImplicit,implicitYes:E.yesImplicit,languageChange:(null==s||null==(d=s.labels)?void 0:d.LANGUAGE_CHANGE)||"Selecting an option will immediately change the language",privacyButton:E.btnChipName,showLess:E.readLess,showMore:E.btnBannerReadMore||E.showMore,subservice:(null==s||null==(h=s.labels)?void 0:h.SUB_SERVICE)||"Subservice",subservices:(null==s||null==(f=s.labels)?void 0:f.SUB_SERVICES)||"Subservices",subservicesDescription:(null==s||null==(p=s.labels)?void 0:p.SUB_SERVICES_DESCRIPTION)||"Below you can find all the services that are subordinate to this service. The current consent status of this service applies to all subservices.",webDutchAuthText:(null==s||null==(S=s.labels)?void 0:S.WEB_DUTCH_AUTH_TEXT)||""},v.links={cookiePolicy:{ariaLabel:tI.cookiePolicyButton,label:tt(E.cookiePolicyLinkText,""),url:t.cookiePolicyUrl},imprint:{ariaLabel:tI.imprintButton,label:E.imprintLinkText||null,url:t.imprintUrl},privacyPolicy:{ariaLabel:tI.privacyPolicyButton,label:E.privacyPolicyLinkText,url:t.privacyPolicyUrl}},t.integrations&&t.integrations.mine){var T={mine:{ariaLabel:"",label:t.integrations.mine[0].privacyCenterLabel,url:t.integrations.mine[0].privacyCenterUrl}};v.integrationLinks=I(I({},v.integrationLinks),T)}return v.poweredBy={label:"Powered by",partnerUrlLabel:tt(E.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"},v.service={dataCollected:{description:E.dataCollectedInfo,title:E.dataCollectedList},dataDistribution:{processingLocationDescription:E.locationofProcessingInfo,processingLocationTitle:E.locationOfProcessing,thirdPartyCountriesDescription:E.transferToThirdCountriesInfo,thirdPartyCountriesTitle:E.transferToThirdCountries},dataProtectionOfficer:{description:E.dataProtectionOfficerInfo,title:E.dataProtectionOfficer},dataPurposes:{description:E.dataPurposesInfo,title:E.dataPurposes},dataRecipients:{description:E.dataRecipientsListInfo,title:E.dataRecipientsList},descriptionTitle:E.descriptionOfService,history:{description:null,title:E.history},legalBasis:{description:E.legalBasisInfo,title:E.legalBasisList},processingCompanyTitle:E.processingCompany,retentionPeriod:{description:E.retentionPeriodInfo,title:E.retentionPeriod},technologiesUsed:{description:E.technologiesUsedInfo,title:E.technologiesUsed},urls:{cookiePolicyTitle:E.cookiePolicyInfo,optOutTitle:E.optOut,privacyPolicyTitle:E.policyOf}},v.services=n.consentTemplates.reduce(function(e,t){var n=new sA(t,s,i);return[].concat(O(e),[n])},[]),v}return S(e,sE),d(e)}(),sO=function(){function e(t,n,s,i){var r;return u(this,e),g(r=c(this,e,[t,n,s,i]),"buttons",void 0),g(r,"firstLayer",void 0),g(r,"secondLayer",void 0),r.buttons={optOutNotice:t.ccpa.optOutNoticeLabel||"Do n
1ot sell my personal information",save:t.ccpa.btnSave||"okay",showSecondLayer:t.ccpa.btnMoreInfo||t.labels.btnMore},r.firstLayer={description:{default:t.ccpa.firstLayerDescription||"",short:t.ccpa.firstLayerMobileDescription||"",shortDesktop:t.ccpa.firstLayerShortMessage||"",shortMobile:t.ccpa.firstLayerMobileDescription||""},title:t.ccpa.firstLayerTitle||""},r.secondLayer={categoryTab:t.secondLayer.tabsCategoriesLabel,description:t.ccpa.secondLayerDescription||"",serviceTab:t.secondLayer.tabsServicesLabel,title:t.ccpa.secondLayerTitle||""},r}return S(e,sm),d(e)}(),sN=d(function e(t,n){var s,i,r;u(this,e),g(this,"acceptAllImplicitlyOutsideEU",void 0),g(this,"consentAnalytics",void 0),g(this,"consentAPIv2",void 0),g(this,"consentXDevice",void 0),g(this,"consentSharingIFrameIsActive",void 0),g(this,"dataExchangeSettings",void 0),g(this,"googleConsentMode",void 0),g(this,"id",void 0),g(this,"isCcpaEnabled",void 0),g(this,"isEmbeddingsEnabled",void 0),g(this,"isTagLoggerActive",void 0),g(this,"isTcfEnabled",void 0),g(this,"language",void 0),g(this,"reshowBanner",void 0),g(this,"renewConsentsTimestamp",void 0),g(this,"showFirstLayerOnVersionChange",void 0),g(this,"version",void 0),this.acceptAllImplicitlyOutsideEU=t.displayOnlyForEU,this.consentAnalytics=tt(t.consentAnalytics,!1),this.consentAPIv2=tt(t.consentAPIv2,!1),this.consentXDevice=tt(t.consentXDevice,!1),this.consentSharingIFrameIsActive=t.consentSharingIFrameIsActive,this.dataExchangeSettings=t.dataExchangeOnPage.reduce(function(e,t){return t.type===tS.DATA_LAYER?e.push({names:t.names,type:eT.DATA_LAYER}):t.type===tS.WINDOW_EVENT&&e.push({names:t.names,type:eT.WINDOW_EVENT}),e},[]),this.googleConsentMode=t.googleConsentMode,this.id=t.settingsId,this.isCcpaEnabled=t.framework?tX(t.framework):null!=(s=null==(i=t.ccpa)?void 0:i.isActive)&&s,this.isEmbeddingsEnabled=!0,this.isTagLoggerActive=t.tagLoggerIsActive,this.isTcfEnabled=t.framework?["TCF2","UK_TCF2"].includes(t.framework):null!=(r=t.tcf2Enabled)&&r,this.language={available:t.languagesAvailable,selected:n},this.reshowBanner=tt(t.reshowBanner,-1),this.renewConsentsTimestamp=tt(t.renewConsentsTimestamp,null),this.showFirstLayerOnVersionChange=t.showInitialViewForVersionChange.map(function(e){switch(e){case tE.MAJOR:return eC.MAJOR;case tE.MINOR:return eC.MINOR;case tE.PATCH:default:return eC.PATCH}}),this.version=t.version}),sD=function(){function e(t,n,s,i){u(this,e),g(E=c(this,e,[t,n,s,i]),"buttons",void 0),g(E,"firstLayer",void 0),g(E,"secondLayer",void 0),E.buttons={acceptAll:t.labels.btnAcceptAll,cnilDeny:(null==s||null==(r=s.labels)?void 0:r.CNIL_DENY_LINK_TEXT)||"Continuer sans accepter",denyAll:t.labels.btnDeny,save:t.labels.btnSave,showSecondLayer:t.labels.btnMore};var r,a,o,l,d,h,f,p,S,v,E,I=(null==s||null==(a=s.labels)?void 0:a.WEB_DUTCH_AUTH_TEXT)||"",T=(null==(o=t.gdpr)?void 0:o.addVendorCount)||!1,C=I&&T?"<br />".concat(I):"";return E.firstLayer={description:{default:"".concat(null!=(l=t.bannerMessage)?l:"").concat(C)||"",short:"".concat(null!=(d=t.bannerMobileDescription)?d:"").concat(C)||"",shortDesktop:"".concat(null!=(h=t.firstLayer.shortMessage)?h:"").concat(C)||"",shortMobile:"".concat(null!=(f=t.bannerMobileDescription)?f:"").concat(C)||""},title:tt(t.labels.firstLayerTitle,"Privacy Settings")},E.secondLayer={acceptButtonLabel:t.secondLayer.acceptButtonText,categoryTab:t.secondLayer.tabsCategoriesLabel,dataTransferFilter:{all:(null==s||null==(p=s.labels)?void 0:p.ALL)||"All",thirdCountry:(null==s||null==(S=s.labels)?void 0:S.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},denyButtonLabel:t.secondLayer.denyButtonText,description:(null==(v=t.gdpr)?void 0:v.secondLayerDescription)||t.labels.titleCorner,serviceTab:t.secondLayer.tabsServicesLabel,title:t.labels.headerCorner},E}return S(e,sm),d(e)}(),sb=d(function e(t,n,s){var i;u(this,e),g(this,"privacyButton",void 0),g(this,"services",void 0),g(this,"gpcSignalHonored",void 0),this.privacyButton=tt(null==s?void 0:s.labelsAria.privacyButton,""),this.services=t.consentTemplates.reduce(function(e,t){var i=new sA(t,s,n);return[].concat(O(e),[i])},[]),this.gpcSignalHonored=(null==s||null==(i=s.labels)?void 0:i.GPC_SIGNAL_HONORED)||"The GPC signal is honored"}),sL=function(){var e;function t(){u(this,t),g(this,"needsSessionRestore",!1),g(this,"noShow",void 0),g(this,"apiInstance",st.getInstance()),g(this,"locationInstance",n4.getInstance())}return d(t,[{key:"unsetNoShow",value:function(){delete this.noShow}},{key:"getIsUsingNoShow",value:function(){return void 0!==this.noShow}},{key:"getNoShow",value:function(){return!0===this.noShow}},{key:"setNoShow",value:function(e){this.noShow=e}},{key:"resolveSettingsId",value:(e=o(T().m(function e(){var t,n,s,i,r,a,o,c;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.apiInstance.fetchRuleset();case 1:return t=e.v,s="",i=t.location,r=t.rules,o=(a=t.defaultRule).settingsId,c=a.noShow,i&&i.code&&(n=i.regionCode&&r.find(function(e){var t;return null==(t=e.locations)?void 0:t.includes(i.regionCode)})||r.find(function(e){var t;return null==(t=e.locations)?void 0:t.includes(i.code)}),this.locationInstance.setUserCountryData(i),e4.setUserCountryResponse(n4.mapUserCountryData(i))),this.unsetNoShow(),n?(s=n.settingsId,void 0!==n.noShow&&this.setNoShow(!0===n.noShow)):(s=o,this.setNoShow(!0===c)),e.a(2,{name:"Resolved Settings Id",noShow:this.getNoShow(),settingsId:s})}},e,this)})),function(){return e.apply(this,arguments)})}],[{key:"getInstance",value:function(){return t.instance||(t.instance=new t),t.instance}},{key:"resetInstance",value:function(){delete t.instance.noShow}}])}();g(sL,"instance",void 0);var sw=d(function e(t){u(this,e),g(this,"cookieMaxAgeSeconds",null),g(this,"cookieRefresh",null),g(this,"dataCollected",[]),g(this,"dataDistribution",null),g(this,"dataProtectionOfficer",null),g(this,"dataPurposes",[]),g(this,"dataRecipients",[]),g(this,"description",void 0),g(this,"deviceStorage",null),g(this,"deviceStorageDisclosureUrl",null),g(this,"language",null),g(this,"processingCompany",null),g(this,"retentionPeriodDescription",null),g(this,"technologiesUsed",[]),g(this,"urls",null),g(this,"usesCookies",null),g(this,"usesNonCookieAccess",null),this.cookieMaxAgeSeconds=tt(null==t?void 0:t.cookieMaxAgeSeconds,null),this.cookieRefresh=tt(null==t?void 0:t.cookieRefresh,null),this.dataCollected=t?sR(t,tv.DATA_COLLECTED_LIST):[],this.dataDistribution=t?sk(t):null,this.dataProtectionOfficer=tt(null==t?void 0:t.dataProtectionOfficer,null),this.dataPurposes=t?sP(t):[],this.dataRecipients=t?sR(t,tv.DATA_RECIPIENTS_LIST):[],this.description=s_(null,t),this.deviceStorage=tt(null==t?void 0:t.deviceStorage,null),this.deviceStorageDisclosureUrl=tt(null==t?void 0:t.deviceStorageDisclosureUrl,null),this.language=t?sV(t):null,this.processingCompany=t?sU(t):null,this.retentionPeriodDescription=t?sM(t):null,this.technologiesUsed=t?sR(t,tv.TECHNOLOGY_USED):[],this.usesCookies=tt(null==t?void 0:t.usesCookies,null),this.usesNonCookieAccess=tt(null==t?void 0:t.usesNonCookieAccess,null),this.urls=t?sF(t):null}),sR=function(e,t){var n;return e8(e[t])?e[t]:(null==(n=e[t])?void 0:n.length)>0?[e[t]]:[]},sP=function(e){var t=sR(e,tv.DATA_PURPOSES_LIST);return e8(t)?t:e.dataPurposes},sk=function(e){return{processingLocation:e.locationOfProcessing,thirdPartyCountries:e.thirdCountryTransfer?e.thirdCountryTransfer.split(","):[]}},sV=function(e){return{available:e.languagesAvailable,selected:e.language}},sU=function(e){return{address:e.addressOfProcessingCompany,dataProtectionOfficer:e.dataProtectionOfficer,name:e.nameOfProcessingCompany||e.processingCompany}},sM=function(e){var t;return e.retentionPeriodDescription||(null==(t=e.retentionPeriodList)?void 0:t[0])||""},sF=function(e){return{cookiePolicy:e.cookiePolicyURL,dataProcessingAgreement:e.linkToDpa,optOut:e.optOutUrl,privacyPolicy:e.privacyPolicyURL||e.policyOfProcessorUrl}},sG=function(){function e(t,n,s,i,r){u(this,e),g(f=c(this,e,[t,n,i,r]),"buttons",void 0),g(f,"firstLayer",void 0),g(f,"secondLayer",void 0),g(f,"titles",void 0),g(f,"toggles",void 0),g(f,"vendor",void 0),g(f,"acmVendor",void 0);var a,o,l,d,h,f,p=t.labels,S=t.tcf2;return f.cookieInformation.purposes=S.labelsPurposes,f.buttons={acceptAll:S.buttonsAcceptAllLabel,denyAll:S.buttonsDenyAllLabel,manageSettings:S.linksManageSettingsLabel,save:S.buttonsSaveLabel,showVendorTab:S.linksVendorListLinkLabel},f.firstLayer={description:{additionalInfo:S.firstLayerAdditionalInfo||null,dataSharedOutsideEUText:S.showDataSharedOutsideEUText&&S.dataSharedOutsideEUText?S.dataSharedOutsideEUText:null,default:S.firstLayerDescription.replace("%VENDOR_COUNT%",s.toString()),resurfaceNote:S.firstLayerNoteResurface||null},disclaimer:{serviceScope:S.firstLayerNoteService},title:S.firstLayerTitle},f.secondLayer={dataSharedOutsideEU:{text:(null==i||null==(a=i.labels)?void 0:a.VENDORS_OUTSIDE_EU)||null,title:p.transferToThirdCountries},dataTransferFilter:{all:(null==i||null==(o=i.labels)?void 0:o.ALL)||"All",thirdCountry:(null==i||null==(l=i.labels)?void 0:l.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},description:S.secondLayerDescription,maxStorageDurationText:((null==i||null==(d=i.labels)?void 0:d.WEB_TCF_MAX_STORAGE_DURATION_TEXT)||"The choices you make regarding the purposes and entities listed are saved in the local storage %TC_STRING_LOCATION%, for a maximum of 13 months. After 13 months, the CMP will prompt again.").replace("%TC_
1STRING_LOCATION%","uc_tcf"),maxStorageDurationTitle:(null==i||null==(h=i.labels)?void 0:h.WEB_TCF_MAX_STORAGE_DURATION_TITLE)||"CMP Storage and Access",purposesTab:S.tabsPurposeLabel,title:S.secondLayerTitle,vendorsTab:S.tabsVendorsLabel},f.titles={acmVendors:S.atpListTitle,examples:S.examplesLabel||"Examples",features:S.labelsFeatures,iabVendors:S.labelsIabVendors,nonIabPurposes:S.labelsNonIabPurposes,nonIabVendors:S.labelsNonIabVendors,purposes:S.labelsPurposes},f.toggles={consent:t.tcf2.togglesConsentToggleLabel,legitimateInterest:t.tcf2.togglesLegIntToggleLabel,specialFeaturesToggle:{offLabel:t.tcf2.togglesSpecialFeaturesToggleOff,onLabel:t.tcf2.togglesSpecialFeaturesToggleOn}},f.vendor={dataCategories:S.categoriesOfDataLabel,dataRetention:S.dataRetentionPeriodLabel,dataRetentionUnit:p.days,features:S.vendorFeatures,legitimateInterest:S.vendorLegitimateInterestPurposes,legitimateInterestClaim:S.legitimateInterestLabel,privacyPolicy:p.privacyPolicyLinkText,purposes:S.vendorPurpose,specialFeatures:S.vendorSpecialFeatures,specialPurposes:S.vendorSpecialPurposes,toggleAll:S.labelsActivateAllVendors},f.acmVendor={privacyPolicy:S.atpAdditionalInfo},f}return S(e,sm),d(e)}(),sB=function(){var e,t,s,i,r,a,c,l,h,f,p,S,v,E;function C(){u(this,C),g(this,"aggregatedServices",[]),g(this,"allLegacyServicesHaveName",!1),g(this,"isVariantLoaded",!1),g(this,"isAggregatorLoaded",!1),g(this,"language",""),g(this,"translations",null),g(this,"botInstance",so.getInstance()),g(this,"locationInstance",n4.getInstance()),g(this,"rulesetInstance",sL.getInstance()),g(this,"apiInstance",st.getInstance()),g(this,"_core",null),g(this,"_coreJson",null),g(this,"_data",null),g(this,"_dpsJson",null),g(this,"_labels",null),g(this,"_legacySettings",null),g(this,"_ui",null),g(this,"controllerIdInstance",n2.getInstance()),g(this,"acceptAllImplicitlyOnInit",null),g(this,"denyAllExplicitlyOnInit",null),g(this,"_isGpcRespected",null)}return d(C,[{key:"core",get:function(){return this._core},set:function(e){this._core=e}},{key:"coreJson",get:function(){return this._coreJson},set:function(e){this._coreJson=e}},{key:"data",get:function(){return this._data},set:function(e){this._data=e}},{key:"dpsJson",get:function(){return this._dpsJson},set:function(e){this._dpsJson=e}},{key:"labels",get:function(){return this._labels},set:function(e){this._labels=e}},{key:"legacySettings",get:function(){return this._legacySettings},set:function(e){this._legacySettings=e,this._isGpcRespected=null}},{key:"ui",get:function(){return this._ui},set:function(e){this._ui=e}},{key:"init",value:(E=o(T().m(function e(t,n,s){return T().w(function(e){for(;;)switch(e.n){case 0:this.language=s,this.core=new sN(t,s),this.coreJson=t,this.dpsJson=n,this.isAggregatorLoaded=!1,this.allLegacyServicesHaveName=this.checkIfServiceNameExists(n.consentTemplates),this.isAggregatorLoaded=!1;case 1:return e.a(2)}},e,this)})),function(e,t,n){return E.apply(this,arguments)})},{key:"initData",value:(v=o(T().m(function e(t){var s,i,r,a,c,u,l,d,h,g,f,p,S=this,v=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:if(s=v.length>1&&void 0!==v[1]?v[1]:[],i=!(v.length>2&&void 0!==v[2])||v[2],r=v.length>3&&void 0!==v[3]&&v[3],a=v.length>4&&void 0!==v[4]?v[4]:[],c=v.length>5&&void 0!==v[5]&&v[5],u=v.length>6&&void 0!==v[6]&&v[6],l=this.coreJson,d=this.dpsJson,h=this.legacySettings,l&&d){e.n=1;break}return e.a(2);case 1:g=this.controllerIdInstance.value,f=null!=s&&s.length?s:this.aggregatedServices,e.n=(p=t)===eU.CCPA?2:p===eU.TCF?4:p===eU.DEFAULT?7:9;break;case 2:return e.n=3,n.e(4015).then(n.bind(n,64015)).then(function(e){S.data=new(0,e.default)(l,d,g,c)});case 3:case 6:case 8:return e.a(3,10);case 4:if(h){e.n=5;break}return e.a(2);case 5:return e.n=6,n.e(2416).then(n.bind(n,22416)).then(function(){var e=o(T().m(function e(t){var n,s,o;return T().w(function(e){for(;;)switch(e.n){case 0:if(n=t.default,!(s=S.getDataTransferSettings())||!l.tcf2||(o=new n(h,l.tcf2,d,s,g,S.language,a,u),S.data=o,!i)){e.n=1;break}return e.n=1,o.init(r);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}());case 7:return e.n=8,n.e(4196).then(n.bind(n,14196)).then(function(e){
1S.data=new(0,e.default)(d,g,f)});case 9:console.error(e_.UNKNOWN_VARIANT);case 10:this.isVariantLoaded=!0;case 11:return e.a(2)}},e,this)})),function(e){return v.apply(this,arguments)})},{key:"checkIfServiceNameExists",value:function(e){return e.every(function(e){var t;return null!=(null==(t=e._meta)?void 0:t.name)})}},{key:"initLabels",value:function(e,t,n){var s=this.coreJson,i=this.dpsJson,r=this.legacySettings,a=null!=n&&n.length?n:this.aggregatedServices;if(i&&this.core)if(r)switch(e){case eU.CCPA:var o=new sO(r,i,t,a);this.labels=o;break;case eU.DEFAULT:var c=new sD(r,i,t,a);this.labels=c;break;case eU.TCF:var u=new sG(r,i,this.getThirdPartyCount(),t,a);this.labels=u;break;default:console.error(e_.UNKNOWN_VARIANT)}else{var l=new sb(i,a,t),d=s?{label:"Powered by",partnerUrlLabel:tt(s.labels.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"}:void 0;this.labels=I(I({},l),{},{poweredBy:d})}else console.error(e_.CALL_INIT)}},{key:"initUI",value:(S=o(T().m(function e(t,s){var i,r,a,o=this;return T().w(function(e){for(;;)switch(e.n){case 0:if(i=this.coreJson,r=this.legacySettings,i){e.n=1;break}return e.a(2);case 1:if(t!==eV.PRIVACY_BUTTON){e.n=3;break}return e.n=2,n.e(3700).then(n.bind(n,63700)).then(function(e){var t,n=e.default,s=th.CAT,a=!1;r&&(s=r.secondLayer.defaultView,a=r.secondLayer.hideDataProcessingServices);var c=new n(i,{defaultView:s,hideDataProcessingServices:a}),u=i.enablePoweredBy?{partnerUrl:i.partnerPoweredByUrl||null,url:"https://usercentrics.com/consent-management-platform-powered-by-usercentrics/"}:null;o.ui=I(I({},c),{},{customCss:null!=r&&null!=(t=r.features)&&t.customCss&&r.useUnsafeCustomCss&&null!=r.stylesCss?r.stylesCss:null,poweredBy:u})});case 2:return e.a(2);case 3:if(r){e.n=4;break}return e.a(2);case 4:e.n=(a=s)===eU.CCPA?5:a===eU.DEFAULT?7:a===eU.TCF?9:11;break;case 5:return e.n=6,n.e(1558).then(n.bind(n,31558)).then(function(e){o.ui=new(0,e.default)(i,r)});case 6:case 8:case 10:return e.a(3,12);case 7:return e.n=8,n.e(4243).then(n.bind(n,44243)).then(function(e){o.ui=new(0,e.default)(i,r)});case 9:return e.n=10,n.e(4325).then(n.bind(n,64325)).then(function(e){o.ui=new(0,e.default)(i,r)});case 11:console.error(e_.UNKNOWN_VARIANT);case 12:return e.a(2)}},e,this)})),function(e,t){return S.apply(this,arguments)})},{key:"getCcpaData",value:function(){return tF(this.data)?this.data:null}},{key:"getDefaultData",value:function(){var e;return null==(e=this.data)||tF(e)||tG(e)?null:this.data}},{key:"getTcfData",value:function(){return tG(this.data)?this.data:null}},{key:"getCcpaLabels",value:function(){return tB(this.labels)?this.labels:null}},{key:"getDefaultLabels",value:function(){return tH(this.labels)?this.labels:null}},{key:"getTcfLabels",value:function(){return tx(this.labels)?this.labels:null}},{key:"getCcpaUI",value:function(){return tY(this.ui)?this.ui:null}},{key:"getDefaultUI",value:function(){return tW(this.ui)?this.ui:null}},{key:"getTcfUI",value:function(){return tJ(this.ui)?this.ui:null}},{key:"getDataExchangeSettings",value:function(){return this.core?this.core.dataExchangeSettings:[]}},{key:"getCategoriesData",value:function(){return this.data?this.data.categories:[]}},{key:"getCategoriesBaseData",value:function(){var e=this;return this.data?this.data.categories.map(function(t){return{isEssential:t.isEssential,isHidden:t.isHidden,services:e.getServicesBaseInfo().filter(function(e){return e.categorySlug===t.slug}),slug:t.slug}}):[]}},{key:"getCategoriesLabels",value:function(){return this.labels&&tj(this.labels)?this.labels.categories:[]}},{key:"getCategoriesDataAndLabels",value:function(){var e,t,n;return e=this.getCategoriesData(),t=this.getCategoriesLabels(),n=this.getServicesLabels(),e.reduce(function(e,s){var i=t.find(function(e){return e.slug===s.slug}),r=tU(s.services,n);return i&&e.push(I(I(I({},i),s),{},{services:r})),e},[])}},{key:"getCategoriesBasic",value:function(){var e=this.getCategoriesData(),t=this.getServicesLabels();return e.reduce(function(e,n){var s;return[].concat(O(e),[I(I({},n),{},{services:(s=n.services,s.reduce(function(e,n){var s=t.find(function(e){return e.id===n.id});return s?[].concat(O(e),[{categorySlug:n.categorySlug,consent:n.consent,id:n.id,language:n.language,name:s.name,processorId:n.processorId,version:n.version}]):O(e)},[]))})])},[])}},{key:"getCategoriesBaseInfo",value:function(){return this.getCategoriesDataAndLabels()}},{key:"getCategoriesFullInfo",value:(p=o(T().m(function e(t,n){return T().w(function(e){for(;;)switch(e.n){case 0:if(this.isAggregatorLoaded){e.n=1;break}return e.n=1,this.extendServices(t,n);case 1:return e.a(2,this.getCategoriesDataAndLabels())}},e,this)})),function(e,t){return p.apply(this,arguments)})},{key:"getDataTransferSettings",value:function(e){return this.core?{controllerId:this.controllerIdInstance.value,id:this.core.id,selectedLanguage:this.core.language.selected,version:e||this.core.version}:null}},{key:"getEssentialCategories",value:function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(e,t){return t.isEssential?[].concat(O(e),[t]):e},[]):this.getCategoriesBasic().filter(function(e){return e.isEssential})}},{key:"getEssentialCategoriesData",value:function(){return this.getCategoriesData().reduce(function(e,t){return t.isEssential?[].concat(O(e),[t]):e},[])}},{key:"getNonEssentialCategories",value:function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(e,t){return t.isEssential?e:[].concat(O(e),[t])},[]):this.getCategoriesBasic().filter(function(e){return!e.isEssential})}},{key:"getNonEssentialCategoriesData",value:function(){return this.getCategoriesData().reduce(function(e,t){return t.isEssential?e:[].concat(O(e),[t])},[])}},{key:"getGoogleConsentMode",value:function(){return!!this.core&&this.core.googleConsentMode}},{key:"getServicesLabels",value:function(){return this.labels?this.labels.services:[]}},{key:"getServicesData",value:function(){return this.getCategoriesData().reduce(function(e,t){return[].concat(O(e),O(t.services))},[])}},{key:"getServicesDataAndLabels",value:function(){return tU(this.getServicesData(),this.get
1ServicesLabels())}},{key:"getServicesBaseInfo",value:function(){var e,t=this.mapBaseServices(this.getServicesData());return e=this.getServicesLabels(),t.reduce(function(t,n){var s=e.find(function(e){return e.id===n.id});return[].concat(O(t),[I(I(I({},n),s||tV),{},{id:n.id})])},[])}},{key:"getServicesFullInfo",value:(f=o(T().m(function e(t,n){return T().w(function(e){for(;;)switch(e.n){case 0:if(this.isAggregatorLoaded){e.n=1;break}return e.n=1,this.extendServices(t,n);case 1:return e.a(2,this.getServicesDataAndLabels())}},e,this)})),function(e,t){return f.apply(this,arguments)})},{key:"getServicesFromCategories",value:function(e){return e.reduce(function(e,t){return e.concat(t.services)},[])}},{key:"getServicesWithConsent",value:function(){return this.getServicesDataAndLabels().reduce(function(e,t){return t.consent.status?[].concat(O(e),[t]):e},[])}},{key:"areAllServicesAccepted",value:function(){return this.getServicesData().every(function(e){return e.consent.status})}},{key:"areAllVendorsAndPurposesAccepted",value:function(){var e=this.getTcfData();return!!e&&e.areAllPurposesAccepted()&&e.areAllVendorsAccepted()}},{key:"extendServices",value:(h=o(T().m(function e(t,n){var s,i;return T().w(function(e){for(;;)switch(e.n){case 0:if(s=this.dpsJson){e.n=1;break}return e.a(2);case 1:return this.isAggregatorLoaded=!0,e.n=2,this.fetchServices(s);case 2:if((i=e.v)&&0!==i.length){e.n=3;break}return e.a(2);case 3:this.aggregatedServices=i,this.initLabels(t,n,i),this.data&&(this.data.categories=this.data.categories.map(function(e){var t=s.categories.find(function(t){return t.categorySlug===e.slug});return I(I({},e),{},{services:e.services.map(function(e){if(s.consentTemplates.find(function(t){return t.templateId===e.id})&&t){var n=new sw(null==i?void 0:i.find(function(t){return e.id===t.templateId&&e.version===t.version}));return I(I({},e),n)}return e})})}));case 4:return e.a(2)}},e,this)})),function(e,t){return h.apply(this,arguments)})},{key:"isCcpaEnabled",value:function(){var e;return(null==(e=this.core)?void 0:e.isCcpaEnabled)||!1}},{key:"isCcpaAvailable",value:function(){var e;if(this.isCcpaEnabled()&&null!=(null==(e=this.coreJson)?void 0:e.ccpa))switch(this.coreJson.ccpa.region){case tf.US:return this.locationInstance.getIsUserInUS();case tf.US_CA_ONLY:return this.locationInstance.getIsUserInCalifornia();default:return Promise.resolve(!0)}return Promise.resolve(!1)}},{key:"isCrossDomainEnabled",value:function(){var e;return(null==(e=this.core)?void 0:e.consentSharingIFrameIsActive)||!1}},{key:"isTcfEnabled",value:function(){var e;return(null==(e=this.core)?void 0:e.isTcfEnabled)||!1}},{key:"isTcfAvailable",value:function(){var e;return this.isTcfEnabled()&&null!=(null==(e=this.coreJson)?void 0:e.tcf2)}},{key:"isTagLoggerActive",value:function(){var e;return(null==(e=this.core)?void 0:e.isTagLoggerActive)||!1}},{key:"isGpcRespected",value:(l=o(T().m(function e(){var t,n,s,i;return T().w(function(e){for(;;)switch(e.n){case 0:if(null===this._isGpcRespected){e.n=1;break}return e.a(2,this._isGpcRespected);case 1:return e.n=2,this.locationInstance.getIsUserInEU();case 2:if(!(i=!e.v)){e.n=3;break}i=!0===navigator.globalPrivacyControl;case 3:if(!(s=i)){e.n=4;break}s=!0===(null==(t=this._legacySettings)?void 0:t.gpcSignalHonoured)||!(null==(n=this._legacySettings)||!n.framework)&&tX(this._legacySettings.framework);case 4:return this._isGpcRespected=s,e.a(2,this._isGpcRespected)}},e,this)})),function(){return l.apply(this,arguments)})},{key:"mergeServicesIntoExistingCategories",value:function(e){return this.getCategoriesDataAndLabels().map(function(t){return I(I({},t),{},{services:t.services.map(function(t){return e.find(function(e){return e.id===t.id})||t})})})}},{key:"mergeServicesDataIntoExistingCategories",value:function(e){return this.getCategoriesData().map(function(t){return I(I({},t),{},{services:t.services.map(function(t){return e.find(function(e){return e.id===t.id})||t})})})}},{key:"setCategories",value:function(e){this.data&&(this.data.categories=e)}},{key:"setControllerId",value:function(e){this.data&&(this.data.controllerId=e),tG(this.data)&&this.data.updateControllerId(e)}},{key:"updateServicesLanguage",value:function(e){this.data&&this.data.categories.map(function(t){return I(I({},t),{},{services:t.services.map(function(t){return I(I({},t),{},{language:I(I({},t.language),{},{selected:e})})})})})}},{key:"shouldDenyAllOnInitFromGpc",value:(c=o(T().m(function e(){var t,n,s,i,r,a,o,c,u,l;return T().w(function(e){for(;;)switch(e.n){case 0:if(s=e4.fetchUserActionPerformed(),i=e4.fetchActionTypePerformed(),!s){e.n=1;break}return e.a(2,!1);case 1:if(i!==eY.GPC_ACTION){e.n=2;break}return e.a(2,!1);case 2:return r=null!=(t=null==(n=this.getCcpaData())?void 0:n.isExplicitConsented)&&t,e.n=3,this.isCcpaAvailable();case 3:if(!(u=e.v)){e.n=4;break}u=!r;case 4:if(!(c=u)){e.n=5;break}c=!0===navigator.globalPrivacyControl;case 5:if(o=c){e.n=8;break}return e.n=6,this.isGpcRespected();case 6:if(!(l=e.v)){e.n=7;break}l=!r;case 7:o=l;
1case 8:if(a=o){e.n=9;break}a=!1;case 9:return e.a(2,a)}},e,this)})),function(){return c.apply(this,arguments)})},{key:"shouldResurfaceForGpc",value:(a=o(T().m(function e(){var t,n;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.isGpcRespected();case 1:if(!(n=e.v)){e.n=2;break}n=!e4.fetchUserActionPerformed();case 2:if(!(t=n)){e.n=3;break}t=e4.fetchActionTypePerformed()===eY.GPC_ACTION;case 3:return e.a(2,t)}},e,this)})),function(){return a.apply(this,arguments)})},{key:"shouldDenyAllExplicitlyOnInit",value:(r=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:if(null===this.denyAllExplicitlyOnInit){e.n=1;break}return e.a(2,this.denyAllExplicitlyOnInit);case 1:return e.n=2,this.shouldDenyAllOnInitFromGpc();case 2:return this.denyAllExplicitlyOnInit=e.v,e.a(2,this.denyAllExplicitlyOnInit)}},e,this)})),function(){return r.apply(this,arguments)})},{key:"shouldAcceptAllImplicitlyOnInit",value:(i=o(T().m(function e(){var t,n,s,i,r,a,o,c,u;return T().w(function(e){for(;;)switch(e.n){case 0:if(null===this.acceptAllImplicitlyOnInit){e.n=1;break}return e.a(2,this.acceptAllImplicitlyOnInit);case 1:if(a=this.botInstance.isRobot()){e.n=4;break}return e.n=2,this.isCcpaAvailable();case 2:if(!(o=e.v)){e.n=3;break}o=!navigator.globalPrivacyControl;case 3:a=o;case 4:if(r=a){e.n=7;break}if(!(c=null==(t=this.core)?void 0:t.acceptAllImplicitlyOutsideEU)){e.n=6;break}return e.n=5,this.locationInstance.getIsUserInEU();case 5:c=!e.v;case 6:r=c;case 7:if(i=r){e.n=10;break}if(!(u=this.isTcfAvailable())){e.n=9;break}return e.n=8,null==(n=this.getTcfData())?void 0:n.getGdprApplies();case 8:u=!e.v;case 9:i=u;case 10:if(s=i){e.n=11;break}s=""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow();case 11:return this.acceptAllImplicitlyOnInit=s,e.a(2,this.acceptAllImplicitlyOnInit)}},e,this)})),function(){return i.apply(this,arguments)})},{key:"shouldAcceptAllImplicitlyOnVendorAdded",value:(s=o(T().m(function e(){var t,n,s,i,r,a,o,c,u,l;return T().w(function(e){for(;;)switch(e.n){case 0:if(o=this.botInstance.isRobot()){e.n=3;break}return e.n=1,this.isCcpaAvailable();case 1:if(!(c=e.v)){e.n=2;break}c=!(null!=(t=this.getCcpaData())&&t.isOptedOut);case 2:o=c;case 3:if(a=o){e.n=6;break}if(!(u=null==(n=this.core)?void 0:n.acceptAllImplicitlyOutsideEU)){e.n=5;break}return e.n=4,this.locationInstance.getIsUserInEU();case 4:u=!e.v;case 5:a=u;case 6:if(r=a){e.n=9;break}if(!(l=this.isTcfAvailable())){e.n=8;break}return e.n=7,null==(s=this.getTcfData())?void 0:s.getGdprApplies();case 7:l=!e.v;case 8:r=l;case 9:if(i=r){e.n=10;break}i=""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow();case 10:return e.a(2,i)}},e,this)})),function(){return s.apply(this,arguments)})},{key:"shouldShowFirstLayerOnVersionChange",value:function(){var e=e4.fetchSettingsVersion();if(this.core&&e&&e8(this.core.showFirstLayerOnVersionChange)){var t=this.core.version.split("."),n=e.split(".");return e6(this.core.showFirstLayerOnVersionChange,eC.MAJOR)&&t[0]!==n[0]||e6(this.core.showFirstLayerOnVersionChange,eC.MINOR)&&t[1]!==n[1]||e6(this.core.showFirstLayerOnVersionChange,eC.PATCH)&&t[2]!==n[2]}return!1}},{key:"getUpdatedServicesWithConsent",value:function(e){return this.getServicesDataAndLabels().map(function(t){return t.isEssential||(t.consent.status=e===eI.TRUE),t})}},{key:"getUpdatedServicesDataWithConsent",value:function(e){return this.getServicesData().map(function(t){return t.isEssential||(t.consent.status=e===eI.TRUE),t})}},{key:"getUpdatedServicesWithDecisions",value:function(e){return this.getServicesDataAndLabels().map(function(t){var n=e.find(function(e){return e.serviceId===t.id});return t.consent.status=t.isEssential||(n?n.status:t.consent.status),t})}},{key:"getUpdatedServicesDataWithDecisions",value:function(e){return this.getServicesData().map(function(t){var n=e.find(function(e){return e.serviceId===t.id});return t.consent.status=t.isEssential||(n?n.status:t.consent.status),t})}},{key:"updateDataTransferSettings",value:function(e){var t=e.controllerId,n=e.id,s=e.selectedLanguage,i=e.version;this.core&&this.data&&(this.data.controllerId=t,this.core.id=n,this.core.language.selected=s,this.core.version=i)}},{key:"isTcfHistoryV2Disabled",value:function(){return!!tG(this.data)&&!0===this.data.tcfv2HistoryDisabled}},{key:"getTCFPurposeOneTreatment",value:function(){return tG(this.data)&&this.data.purposeOneTreatment||!1}},{key:"getTCFStackIds",value:function(){return tG(this.data)?this.data.stackIds:[]}},{key:"getTCFVendorIds",value:function(){return tG(this.data)?this.data.vendorIds:[]}},{key:"getTCFDisclosedVendorsSegmentString",value:function(){var e;return null==(e=this.getTcfData())?void 0:e.getTCFDisclosedVendorsSegmentString()}},{key:"injectTCString",value:(t=o(T().m(function e(t){var n;return T().w(function(e){for(;;
1)switch(e.n){case 0:if(n=this.getTcfData()){e.n=1;break}return e.a(2,!1);case 1:return e.a(2,n.injectTCString(t))}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"fetchServices",value:(e=o(T().m(function e(t){var n,s,i,r;return T().w(function(e){for(;;)switch(e.n){case 0:if((n=n9(t.consentTemplates)).length){e.n=1;break}return e.a(2,null);case 1:if(s=st.getInstance(),i=so.getInstance(),r=[],i.isRobot()){e.n=3;break}return e.n=2,s.fetchAggregatedServices(n);case 2:r=e.v;case 3:return e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)})},{key:"mapBaseServices",value:function(e){return e.map(function(e){return{categorySlug:e.categorySlug,consent:e.consent,fetchSubServices:e.fetchSubServices,id:e.id,isEssential:e.isEssential,isHidden:e.isHidden,processorId:e.processorId,subServices:e.subServices,subServicesLength:e.subServicesLength,usesThirdCountry:e.usesThirdCountry,version:e.version}})}},{key:"getThirdPartyCount",value:function(){var e=tG(this.data)?this.data.getVendorsCount():0;return this.getServicesData().length+e}}],[{key:"getInstance",value:function(){return C.instance||(C.instance=new C),C.instance}},{key:"resetInstance",value:function(){C.instance.allLegacyServicesHaveName=!1,C.instance.core=null,C.instance.data=null,C.instance.labels=null,C.instance.legacySettings=null,C.instance.ui=null,C.instance.dpsJson=null,C.instance.coreJson=null,C.instance._isGpcRespected=null}}])}();g(sB,"instance",void 0);var sx=function(){var e,t,n,s;function i(){u(this,i),g(this,"restoreAction",null),g(this,"apiInstance",st.getInstance()),g(this,"controllerIdInstance",n2.getInstance()),g(this,"eventDispatcherInstance",sh.getInstance()),g(this,"settingsV2",sB.getInstance()),g(this,"userSessionData",void 0),g(this,"botInstance",so.getInstance())}return d(i,[{key:"execute",value:function(e,t,n,s,i,r){var a=this.settingsV2.getDataTransferSettings();if(a){var o,c=e.map(function(e){return tn(a,e,n,s,e.categorySlug)}),u=sW(t,c);if(!this.botInstance.isRobot()&&(r&&this.apiInstance.saveConsentsV1_DEPRECATED({consentString:i,dataTransferObjects:c}),null!=(o=this.settingsV2.core)&&o.consentAPIv2)){var l,d,h=ts({consentAction:n,consentString:i,dataTransferSettings:a,isAnalyticsEnabled:null==(l=this.settingsV2.core)?void 0:l.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null==(d=this.settingsV2.core)?void 0:d.consentXDevice,isTcf:!1,services:e});this.apiInstance.saveConsents(h)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(u));var g,f=this.settingsV2.getServicesDataAndLabels(),p=e4.mapSettings(a,f);e4.saveSettings(p,f),sv.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent());var S=this.settingsV2.getTcfData();S&&S.advertiserConsentModeEnabled&&(g=S.getTCFData().vendors.find(function(e){return 755===e.id})),this.eventDispatcherInstance.dispatch(c,g,this.settingsV2.getGoogleConsentMode())}}},{key:"getMergedServicesAndSettingsFromStorage",value:function(e){var t=e4.fetchSettings();if(t&&e){var n=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategories()),s=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategoriesData()),i=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategories()),r=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategoriesData()),a=this.getMergedAndUpdatedEssentialServices(n,t),o=this.getMergedAndUpdatedEssentialServices(s,t),c=this.getMergedNonEssentialServices(i,t),u=this.getMergedNonEssentialServices(r,t);return t.controllerId!==this.controllerIdInstance.value&&""===this.controllerIdInstance.value&&(this.controllerIdInstance.value=t.controllerId,e.controllerId=t.controllerId,tG(e)&&e.updateControllerId(t.controllerId)),{dataTransferSettings:this.settingsV2.getDataTransferSettings(),mergedServices:a.mergedEssentialServices.concat(c),mergedServicesData:o.mergedEssentialServices.concat(u),mergedSettingsData:e,updatedEssentialServices:a.updatedEssentialServices}}return{dataTransferSettings:null,mergedServices:[],mergedServicesData:[],mergedSettingsData:e,updatedEssentialServices:[]}}},{key:"getLatestConsentType",value:function(e){return e.length>0?e[e.length-1].type:eE.IMPLICIT}},{key:"getLatestConsentAction",value:function(e){return e.length>0?e[e.length-1].action:ev.INITIAL_PAGE_LOAD}},{key:"setUserSessionData",value:function(e){this.userSessionData=e}},{key:"mergeServicesAndSettings",value:function(e,t,n,s,i,r){var a=this;if(!n)return[];if(e8(s)){var o,c=s.map(function(e){return tn(n,e,ev.ESSENTIAL_CHANGE,a.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)}
1),u=sW(t,c),l=sK(t,u,i);if(r&&this.apiInstance.saveConsentsV1_DEPRECATED({dataTransferObjects:c}),null!=(o=this.settingsV2.core)&&o.consentAPIv2){var d,h,g=ts({consentAction:ev.ESSENTIAL_CHANGE,dataTransferSettings:n,isAnalyticsEnabled:null==(d=this.settingsV2.core)?void 0:d.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null==(h=this.settingsV2.core)?void 0:h.consentXDevice,isTcf:this.settingsV2.isTcfAvailable(),services:s});this.apiInstance.saveConsents(g)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(u)),e4.saveSettings(e4.mapSettings(n,l),l)}else this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(t)),e4.saveSettings(e4.mapSettings(n,e),e);return e.map(function(e){return tn(n,e,a.getLatestConsentAction(e.consent.history),a.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)})}},{key:"restoreUserSession",value:(s=o(T().m(function e(t){var n,s,i,r,a,o;return T().w(function(e){for(;;)switch(e.n){case 0:if(!(this.controllerIdInstance.value&&this.controllerIdInstance.needsSessionRestore&&(null==(n=this.settingsV2.core)||!n.consentAPIv2||null!=(s=this.settingsV2.core)&&s.consentAPIv2&&null!=(i=this.settingsV2.core)&&i.consentXDevice))){e.n=2;break}return e.n=1,this.getCrossDeviceSessionData(this.controllerIdInstance.value);case 1:r=e.v;case 2:if(!r&&this.userSessionData&&(r=I({},this.userSessionData)),!r&&window[eP]&&"function"==typeof window[eP].getUserSessionData)try{null!=(a=r=JSON.parse(window[eP].getUserSessionData(),function(e,t){if("timestamp"===e){var n=t.toString();return -1!==n.indexOf(".")?1e3*Number(n):Number(n)}return t}))&&a.consents&&null!=(o=r)&&o.consents.length&&!r.consents.every(function(e){return e.action})&&(r.consents=r.consents.map(function(e){return I(I({},e),{},{action:ev.MOBILE_SESSION_RESTORED})}),this.restoreAction=ev.MOBILE_SESSION_RESTORED)}catch(e){}if(r||!eQ.isCrossDomainAvailable()){e.n=4;break}return e.n=3,this.getCrossDomainSessionData();case 3:r=e.v;case 4:if(!r||!r.controllerId){e.n=5;break}return e.a(2,this.restoreData(r,t));case 5:return this.controllerIdInstance.needsSessionRestore=!1,e.a(2,!1)}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"getCrossDomainSessionData",value:(n=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,eQ.getCrossDomainSessionData().catch(function(){return console.warn(ew.CROSS_DOMAIN_DATA_NOT_AVAILABLE),{}});case 1:return t=e.v,e.a(2,t)}},e)})),function(){return n.apply(this,arguments)})},{key:"getCrossDeviceSessionData",value:(t=o(T().m(function e(t){var n,s,i,r,a,o,c,u,l,d,h,g;return T().w(function(e){for(;;)switch(e.n){case 0:return s=["dWLDa0s-m","VkvM9IcSA","Zdgjo9gQh","r2tAWzO7","GVl-ixMH"],i=this.apiInstance.getSettingsId(),r=this.settingsV2.isTcfAvailable(),e.n=1,this.settingsV2.isCcpaAvailable();case 1:if(a=e.v,o=null==(n=this.settingsV2.core)?void 0:n.consentAPIv2,c=[],u=null,l=null,!o){e.n=3;break}return e.n=2,this.apiInstance.fetchUserConsentsV2(r,a).catch(function(){return console.warn(eL.CROSS_DEVICE_DATA_NOT_AVAILABLE),null});case 2:c=null!=(d=null==(h=e.v)?void 0:h.consents)?d:[],r&&(-1===s.indexOf(i)&&this.settingsV2.isTcfHistoryV2Disabled()||(u=null==h?void 0:h.tcf)),a&&(l=null==h?void 0:h.ccpa),e.n=8;break;case 3:return e.n=4,this.apiInstance.fetchUserConsents().catch(function(){return console.warn(eL.CROSS_DEVICE_DATA_NOT_AVAILABLE),[]});case 4:if(c=e.v,!r){e.n=8;break}if(-1===s.indexOf(i)){e.n=6;break}return e.n=5,this.apiInstance.fetchUserTcfData().catch(function(){return console.warn(eL.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null});case 5:u=e.v,e.n=8;break;case 6:if(this.settingsV2.isTcfHistoryV2Disabled()){e.n=8;break}return e.n=7,this.apiInstance.fetchUserTcfDataV2().catch(function(){return console.warn(eL.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null});case 7:u=e.v;case 8:if(!r||u||!eQ.isCrossDomainAvailable()){e.n=10;break}return e.n=9,this.getCrossDomainSessionData();case 9:(g=e.v)&&g.tcf&&g.controllerId===t&&(u=g.tcf);case 10:return e.a(2,I(I(I({},{consents:c,controllerId:t,language:this.apiInstance.getJsonFileLanguage()}),null!==u&&{tcf:u}),null!==l&&{ccpa:l}))}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"restoreData",value:(e=o(T().m(function e(t,n){var s,i,r,a,o,c,u,l,d,h,g,f,p,S,v,E,I,C,_,y,A=this;return T().w(function(e){for(;;)switch(e.n){case 0:if(s=t.controllerId,i=t.consents,r=t.tcf,a=t.ccpa,o=this.settingsV2.core,c=this.getDataFacadeServices(n),u=e4.fetchControllerId(),this.controllerIdInstance.value=s,l=e4.fetchTCFData(),d=!1,!s||!e8(i)&&c.length){e.n=4;break}if(h=sq(i),g=e4.fetchServices(),!(t.consents[0].action===ev.SESSION_RESTORED&&s===u&&g.length===
1h.length&&g[0].history.length>0&&g[0].history[0].action&&g[0].history[0].action===ev.SESSION_RESTORED)){e.n=1;break}e.n=4;break;case 1:if(!e8(h)&&c.length){e.n=4;break}if(f=[],p=[],h.forEach(function(e){var t=c.findIndex(function(t){return t.id===e.templateId});if(t>-1){var n=c[t];n.consent.status=e.status;var s=p.findIndex(function(e){return e.id===n.id});-1===s?p.push(n):p[s]=n,c[t]=n;var i=A.settingsV2.getDataTransferSettings(e.settingsVersion);i&&f.push(tn(i,n,e.action,e.updatedBy,n.categorySlug,{timestamp:"string"==typeof e.timestamp?A.resolveTimestamp(e.timestamp):e.timestamp}))}}),this.settingsV2.data&&this.settingsV2.setControllerId(s),o&&h.length&&(v=tr(h.map(function(e){return e.settingsVersion})).sort(tl)).length&&(S=v[v.length-1]),E=sW(c,f),!(I=this.settingsV2.getDataTransferSettings(S))){e.n=3;break}if(!u||!s||s===u){e.n=2;break}return e.n=2,e4.clearAll();case 2:e4.saveSettings(e4.mapSettings(I,E),E);case 3:e8(h)&&e4.setUserActionPerformed(!0),d=!0;case 4:if(r&&r.tcString&&(r.tcString!==l.tcString||r.acString!==l.acString)&&(e4.saveTCFData(r),c.length||e4.setUserActionPerformed(!0)),C=this.settingsV2.getCcpaData(),a&&a.ccpaString&&C&&(_=a.ccpaString!==e4.getCcpaString(),C.setIsOptedOut(a.ccpaString),e4.setCcpaString(a.ccpaString),a.timestamp?e4.setCcpaTimeStamp(a):e4.clearCcpaData(),_&&e4.setUserActionPerformed(!0)),e4.fetchActionTypePerformed()!==eY.GPC_ACTION){e.n=6;break}return e.n=5,this.settingsV2.isGpcRespected();case 5:y=e.v,!d&&y&&e4.setUserActionPerformed(!1);case 6:return e.a(2,d)}},e,this)})),function(t,n){return e.apply(this,arguments)})},{key:"getDataFacadeServices",value:function(e){var t=this.settingsV2.checkIfServiceNameExists,n=e.categories,s=e.consentTemplates;if(s.length>0&&t(s))return s.map(function(e){var t,s=n.find(function(t){return t.categorySlug===e.categorySlug});return{categorySlug:e.categorySlug,consent:sT(e,s),id:e.templateId,name:(null==(t=e._meta)?void 0:t.name)||"",processorId:"".concat(nQ(n1())),version:e.version}});var i=this.settingsV2.getServicesDataAndLabels();return i.length>0?i.map(function(e){return{categorySlug:e.categorySlug,consent:e.consent,id:e.id,name:e.name,processorId:e.processorId,version:e.version}}):[]}},{key:"getMergedAndUpdatedEssentialServices",value:function(e,t){var n=this,s=[];return{mergedEssentialServices:e.map(function(e){var i,r,a=null==(r=t.services)?void 0:r.find(function(t){return t.id===e.id});return a?(e.consent.history=a.history,e.consent.status=!0,e.processorId=a.processorId,e.categorySlug=(null==(i=n.settingsV2.getCategoriesBaseData().find(function(t){return t.services.some(function(t){return t.id===e.id})}))?void 0:i.slug)||"",a.status||s.push(e),e):e}),updatedEssentialServices:s}}},{key:"getMergedNonEssentialServices",value:function(e,t){return e.map(function(e){var n,s=null==(n=t.services)?void 0:n.find(function(t){return t.id===e.id});if(s)return e.consent.history=s.history,e.consent.status=s.status,e.processorId=s.processorId,e;if(0===e.consent.history.length){var i,r=null==(i=t.services)?void 0:i.find(function(e){return e.history.length>0});return e.consent.history=[{action:ev.INITIAL_PAGE_LOAD,language:e.language?e.language.selected:"en",status:e.consent.status,timestamp:(new Date).getTime(),type:eE.IMPLICIT,versions:r&&r.history.length>0?r.history[0].versions:{application:"",service:e.version,settings:""}}],e}return e})}},{key:"resolveTimestamp",value:function(e){return 10===e.length?1e3*parseInt(e,10):parseInt(e,10)}}],[{key:"getInstance",value:function(){return i.instance||(i.instance=new i),i.instance}},{key:"resetInstance",value:function(){delete i.instance.userSessionData}}])}();g(sx,"instance",void 0);var sH,sj,sY,sJ,sW=function(e,t){return e.map(function(e){var n=t.filter(function(t){return t.service.id===e.id});if(e8(n)){var s=e.consent.history,i=s.length+n.length,r=i<=3?s:s.slice(i-3);return e.consent.history=[].concat(O(r),O(n.map(function(e){return sX(e)}))),e}return e})},sK=function(e,t,n){return e.reduce(function(e,s){var i=t.find(function(e){return e.id===s.id}),r=n.find(function(e){return e.id===s.id});return i&&r?[].concat(O(e),[{categorySlug:s.categorySlug,consent:i.consent,id:s.id,language:s.language,name:r.name,processorId:s.processorId,version:s.version}]):O(e)},[])},sX=function(e){return{action:e.consent.action,language:e.settings.language,status:e.consent.status,timestamp:e.timestamp,type:e.consent.type,versions:{application:e.applicationVersion,service:e.service.version,settings:e.settings.version}}},sq=function(e){return e.filter(function(e){return!nU.includes(e.action)})},sQ=d(function e(t,n,s,i){u(this,e),g(this,"eventName",void 0),g(this,"listenerId",void 0),g(this,"data",void 0),g(this,"pingData",void 0),this.eventName=t,this.listenerId=n,this.data=s,this.pingData=i}),sz=d(function e(t){u(this,e),g(this,"gppVersion",void 0),g(this,"cmpStatus",void 0),g(this,"cmpDisplayStatus",void 0),g(this,"signalStatus",void 0),g(this,"supportedAPIs",void 0),g(this,"cmpId",void 0),g(this,"sectionList",void 0),g(this,"applicableSections",void 0),g(this,"gppString",void 0),g(this,"parsedSections",void 0),this.gppVersion=t.gppVersion,this.cmpStatus=t.cmpStatus,this.cmpDisplayStatus=t.cmpDisplayStatus,this.signalStatus=t.signalStatus,this.supportedAPIs=t.supportedAPIs,this.cmpId=t.cmpId,this.sectionList=t.gppModel.getSectionIds(),this.applicableSections=t.applicableSections,this.gppString=t.gppModel.encode(),this.parsedSections=t.gppModel.toObject()}),s$=d(function e(t,n,s){u(this,e),g(this,"callback",void 0),g(this,"parameter",void 0),g(this,"success",!0),g(this,"cmpApiContext",void 0),this.cmpApiContext=t,Object.assign(this,{callback:n,parameter:s}
1)},[{key:"execute",value:function(){try{return this.respond()}catch(e){return this.invokeCallback(null),null}}},{key:"invokeCallback",value:function(e){this.callback&&this.callback(e,null!==e)}}]),sZ=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,s$),d(e,[{key:"respond",value:function(){var e=new sQ("listenerRegistered",this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),!0,new sz(this.cmpApiContext));this.invokeCallback(e)}}])}(),s0=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,s$),d(e,[{key:"respond",value:function(){var e=new sz(this.cmpApiContext);this.invokeCallback(e)}}])}(),s1=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,s$),d(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section>.<field> parameter required");var e=this.parameter.split(".");if(2!=e.length)throw Error("Field name must be in the format <section>.<fieldName>");var t=e[0],n=e[1],s=this.cmpApiContext.gppModel.getFieldValue(t,n);this.invokeCallback(s)}}])}(),s2=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,s$),d(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section> parameter required");var e=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(e=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(e)}}])}(),s3=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,s$),d(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section>[.version] parameter required");var e=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(e)}}])}();(s4=sJ||(sJ={})).ADD_EVENT_LISTENER="addEventListener",s4.GET_FIELD="getField",s4.GET_SECTION="getSection",s4.HAS_SECTION="hasSection",s4.PING="ping",s4.REMOVE_EVENT_LISTENER="removeEventListener";var s4,s6,s5,s7,s8,s9,ie,it=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,s$),d(e,[{key:"respond",value:function(){var e=this.parameter,t=this.cmpApiContext.eventQueue.remove(e),n=new sQ("listenerRemoved",e,t,new sz(this.cmpApiContext));this.invokeCallback(n)}}])}();s6=sJ.ADD_EVENT_LISTENER,s5=sJ.GET_FIELD,s7=sJ.GET_SECTION,s8=sJ.HAS_SECTION,s9=sJ.PING,ie=sJ.REMOVE_EVENT_LISTENER;var is,ii,ir,ia,io=d(function e(){u(this,e)});g(io,s6,sZ),g(io,s5,s1),g(io,s7,s2),g(io,s8,s3),g(io,s9,s0),g(io,ie,it),(ip=is||(is={})).STUB="stub",ip.LOADING="loading",ip.LOADED="loaded",ip.ERROR="error",(iS=ii||(ii={})).VISIBLE="visible",iS.HIDDEN="hidden",iS.DISABLED="disabled",(iv=ir||(ir={})).GPP_LOADED="gpploaded",iv.CMP_UI_SHOWN="cmpuishown",iv.USER_ACTION_COMPLETE="useractioncomplete",(iE=ia||(ia={})).NOT_READY="not ready",iE.READY="ready";var ic=d(function e(t,n){if(u(this,e),g(this,"callQueue",void 0),g(this,"customCommands",void 0),g(this,"cmpApiContext",void 0),this.cmpApiContext=t,n){var s=sJ.ADD_EVENT_LISTENER;if(null!=n&&n[s]||(s=sJ.REMOVE_EVENT_LISTENER,null!=n&&n[s]))throw Error("Built-In Custom Commmand for ".concat(s," not allowed"));this.customCommands=n}try{this.callQueue=window.__gpp()||[]}catch(e){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}},[{key:"apiCall",value:function(e,t,n,s){if("string"!=typeof e)t(null,!1);else{if(t&&"function"!=typeof t)throw Error("invalid callback function");this.isCustomCommand(e)?this.customCommands[e](t,n):this.isBuiltInCommand(e)?new io[e](this.cmpApiContext,t,n).execute():t&&t(null,!1)}}},{key:"purgeQueuedCalls",value:function(){var e=this.callQueue;this.callQueue=[],e.forEach(function(e){var t;(t=window).__gpp.apply(t,O(e))})}},{key:"isCustomCommand",value:function(e){return this.customCommands&&"function"==typeof this.customCommands[e]}},{key:"isBuiltInCommand",value:function(e){return void 0!==io[e]}}]),iu=d(function e(t){u(this,e),g(this,"eventQueue",new Map),g(this,"queueNumber",1e3),g(this,"cmpApiContext",void 0),this.cmpApiContext=t;try{for(var n=window.__gpp("events")||[],s=0;s<n.length;s++){var i=n[s];this.eventQueue.set(i.id,{callback:i.callback,parameter:i.parameter})}}catch(e){console.log(e)}},[{key:"add",value:function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}},{key:"get",value:function(e){return this.eventQueue.get(e)}},{key:"remove",value:function(e){return this.eventQueue.delete(e)}},{key:"exec",value:function(e,t){var n=this;this.eventQueue.forEach(function(s,i){var r=new sQ(e,i,t,new sz(n.cmpApiContext));s.callback(r,!0)})}},{key:"clear",value:function(){this.queueNumber=1e3,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}]),il=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="DecodingError",n}return S(e,L(Error)),d(e)}(),id=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){var n=[];if(e>=1)for(n.push(1);e>=2*n[0];)n.unshift(2*n[0]);for(var s="",i=0;i<n.length;i++){var r=n[i];e>=r?(s+="1",e-=r):s+="0"}for(;s.length<t;)s="0"+s;return s}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new il("Undecodable FixedInteger '"+e+"'");for(var t=0,n=[],s=0;s<e.length;s++)n[e.length-(s+1)]=0===s?1:2*n[e.length-s];for(var i=0;i<e.length;i++)"1"===e.charAt(i)&&(t+=n[i]);return t}}]),ih=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="EncodingError",n}return S(e,L(Error)),d(e)}(),ig=function(){function e(){u(this,e)}return d(e,[{key:"encode",value:function(t){if(!/^[0-1]*$/.test(t))throw new ih("Unencodable Base64Url '"+t+"'");t=this.pad(t);for(var n="",s=0;s<=t.length-6;){var i=t.substring(s,s+6);try{var r=id.decode(i);n+=e.DICT.charAt(r),s+=6}catch(e){throw new ih("Unencodable Base64Url '"+t+"'")}}return n}},{key:"decode",value:function(t){if(!/^[A-Za-z0-9\-_]*$/.test(t))throw new il("Undecodable Base64URL string");for(var n="",s=0;s<t.length;s++){var i=t.charAt(s),r=e.REVERSE_DICT.get(i);n+=id.encode(r,6)}return n}}])}();g(ig,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),g(ig,"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]]));var ip,iS,iv,iE,iI,iT=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,ig),d(e,[{key:"pad",value:function(e){for(;e.length%8>0;)e+="0";for(;e.length%6>0;)e+="0";return e}}])}(),iC=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){var t=[];if(e>=1&&(t.push(1),e>=2)){t.push(2);for(var n=2;e>=t[n-1]+t[n-2];)t.push(t[n-1]+t[n-2]),n++}for(var s="1",i=t.length-1;i>=0;i--){var r=t[i];e>=r?(s="1"+s,e-=r):s="0"+s}return s}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<2||e.indexOf("11")!==e.length-2)throw new il("Undecodable FibonacciInteger '"+e+"'");for(var t=0,n=[],s=0;s<e.length-1;s++)0===s?n.push(1):1===s?n.push(2):n.push(n[s-1]+n[s-2]);for(var i=0;i<e.length-1;i++)"1"===e.charAt(i)&&(t+=n[i]);return t}}]),i_=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){if(!0===e)return"1";if(!1===e)return"0";throw new ih("Unencodable Boolean '"+e+"'")}},{key:"decode",value:function(e){if("1"===e)return!0;
1if("0"===e)return!1;throw new il("Undecodable Boolean '"+e+"'")}}]),iy=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){e=e.sort(function(e,t){return e-t});for(var t=[],n=0,s=0;s<e.length;){for(var i=s;i<e.length-1&&e[i]+1===e[i+1];)i++;t.push(e.slice(s,i+1)),s=i+1}for(var r=id.encode(t.length,12),a=0;a<t.length;a++)if(1==t[a].length){var o=t[a][0]-n;n=t[a][0],r+="0"+iC.encode(o)}else{var c=t[a][0]-n;n=t[a][0];var u=t[a][t[a].length-1]-n;n=t[a][t[a].length-1],r+="1"+iC.encode(c)+iC.encode(u)}return r}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new il("Undecodable FibonacciIntegerRange '"+e+"'");for(var t=[],n=id.decode(e.substring(0,12)),s=0,i=12,r=0;r<n;r++){var a=i_.decode(e.substring(i,i+1));if(i++,!0===a){var o=e.indexOf("11",i),c=iC.decode(e.substring(i,o+2))+s;s=c,i=o+2,o=e.indexOf("11",i);var u=iC.decode(e.substring(i,o+2))+s;s=u,i=o+2;for(var l=c;l<=u;l++)t.push(l)}else{var d=e.indexOf("11",i),h=iC.decode(e.substring(i,d+2))+s;s=h,t.push(h),i=d+2}}return t}}]),iA=d(function e(){u(this,e),g(this,"value",void 0)},[{key:"hasValue",value:function(){return void 0!==this.value&&null!==this.value}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}}]),im=function(){function e(t){var n;return u(this,e),(n=c(this,e)).setValue(t),n}return S(e,iA),d(e,[{key:"encode",value:function(){return iy.encode(this.value)}},{key:"decode",value:function(e){this.value=iy.decode(e)}},{key:"substring",value:function(e,t){for(var n=id.decode(e.substring(t,t+12)),s=t+12,i=0;i<n;i++)s="1"===e.charAt(s)?e.indexOf("11",e.indexOf("11",s+1)+2)+2:e.indexOf("11",s+1)+2;return e.substring(t,s)}},{key:"getValue",value:function(){return O(m(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){m(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}(),iO=function(){function e(t,n){var s;return u(this,e),g(s=c(this,e),"bitStringLength",void 0),s.bitStringLength=t,s.setValue(n),s}return S(e,iA),d(e,[{key:"encode",value:function(){return id.encode(this.value,this.bitStringLength)}},{key:"decode",value:function(e){this.value=id.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.bitStringLength)}}])}();(ib=iI||(iI={})).ID="Id",ib.VERSION="Version",ib.SECTION_IDS="SectionIds";var iN=d(function e(t,n){u(this,e),g(this,"fields",void 0),g(this,"fieldOrder",void 0),this.fields=t,this.fieldOrder=n},[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getFieldOrder",value:function(){return this.fieldOrder}},{key:"encodeToBitString",value:function(){for(var e="",t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(!this.fields.has(n))throw Error("Field not found: '"+n+"'");e+=this.fields.get(n).encode()}return e}},{key:"decodeFromBitString",value:function(e){for(var t=0,n=0;n<this.fieldOrder.length;n++){var s=this.fieldOrder[n];if(!this.fields.has(s))throw Error("Field not found: '"+s+"'");var i=this.fields.get(s),r=i.substring(e,t);i.decode(r),t+=r.length}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(this.fields.has(n)){var s=this.fields.get(n).getValue();e[n]=s}}return e}}]),iD=function(){function e(t){u(this,e);var n,s=new Map;return s.set(iI.ID.toString(),new iO(6,e.ID)),s.set(iI.VERSION.toString(),new iO(6,e.VERSION)),s.set(iI.SECTION_IDS.toString(),new im([])),g(n=c(this,e,[s,[iI.ID.toString(),iI.VERSION.toString(),iI.SECTION_IDS.toString()]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,iN),d(e,[{key:"encode",value:function(){var e=this.encodeToBitString();return this.base64UrlEncoder.encode(e)}},{key:"decode",value:function(e){var t=this.base64UrlEncoder.decode(e);this.decodeFromBitString(t)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(iD,"ID",3),g(iD,"VERSION",1),g(iD,"NAME","header");var ib,iL,iw=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="InvalidFieldError",n}return S(e,L(Error)),d(e)}(),iR=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="LazyDecodingError",n}return S(e,il),d(e)}(),iP=function(){function e(t){var n;return u(this,e),(n=c(this,e)).setValue(t),n}return S(e,iA),d(e,[{key:"encode",value:function(){return i_.encode(this.value)}},{key:"decode",value:function(e){this.value=i_.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+1)}}])}(),ik=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){return e?id.encode(Math.round(e.getTime()/100),36):id.encode(0,36
1)}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||36!==e.length)throw new il("Undecodable Datetime '"+e+"'");return new Date(100*id.decode(e))}}]),iV=function(){function e(t){var n;return u(this,e),(n=c(this,e)).setValue(t),n}return S(e,iA),d(e,[{key:"encode",value:function(){return ik.encode(this.value)}},{key:"decode",value:function(e){this.value=ik.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+36)}}])}(),iU=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){for(var n="",s=0;s<e.length;s++)n+=i_.encode(e[s]);for(;n.length<t;)n+="0";return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new il("Undecodable FixedBitfield '"+e+"'");for(var t=[],n=0;n<e.length;n++)t.push(i_.decode(e.substring(n,n+1)));return t}}]),iM=function(){function e(t,n){var s;return u(this,e),g(s=c(this,e),"getLength",void 0),s.getLength=t,s.setValue(n),s}return S(e,iA),d(e,[{key:"encode",value:function(){return iU.encode(this.value,this.getLength())}},{key:"decode",value:function(e){this.value=iU.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.getLength())}},{key:"getValue",value:function(){return O(m(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=this.getLength(),s=O(t),i=s.length;i<n;i++)s.push(!1);s.length>n&&(s=s.slice(0,n)),m(e,"setValue",this,3)([O(s)])}}])}(),iF=function(){function e(t){var n;return u(this,e),g(n=c(this,e),"numElements",void 0),n.numElements=t.length,n.setValue(t),n}return S(e,iA),d(e,[{key:"encode",value:function(){return iU.encode(this.value,this.numElements)}},{key:"decode",value:function(e){this.value=iU.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.numElements)}},{key:"getValue",value:function(){return O(m(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=O(t),s=n.length;s<this.numElements;s++)n.push(!1);n.length>this.numElements&&(n=n.slice(0,this.numElements)),m(e,"setValue",this,3)([n])}}])}(),iG=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){for(;e.length<t;)e+=" ";for(var n="",s=0;s<e.length;s++){var i=e.charCodeAt(s);if(32===i)n+=id.encode(63,6);else{if(!(i>=65))throw new ih("Unencodable FixedString '"+e+"'");n+=id.encode(e.charCodeAt(s)-65,6)}}return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length%6!=0)throw new il("Undecodable FixedString '"+e+"'");for(var t="",n=0;n<e.length;n+=6){var s=id.decode(e.substring(n,n+6));t+=63===s?" ":String.fromCharCode(s+65)}return t.trim()}}]),iB=function(){function e(t,n){var s;return u(this,e),g(s=c(this,e),"stringLength",void 0),s.stringLength=t,s.setValue(n),s}return S(e,iA),d(e,[{key:"encode",value:function(){return iG.encode(this.value,this.stringLength)}},{key:"decode",value:function(e){this.value=iG.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+6*this.stringLength)}}])}(),ix=d(function e(t,n){u(this,e),g(this,"fields",void 0),g(this,"segments",void 0),this.fields=t,this.segments=n},[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getSegments",value:function(){return this.segments}},{key:"encodeSegmentsToBitStrings",value:function(){for(var e=[],t=0;t<this.segments.length;t++){for(var n="",s=0;s<this.segments[t].length;s++){var i=this.segments[t][s];if(!this.fields.has(i))throw Error("Field not found: '"+i+"'");try{n+=this.fields.get(i).encode()}catch(e){throw Error("Unable to encode "+i)}}
1e.push(n)}return e}},{key:"decodeSegmentsFromBitStrings",value:function(e){for(var t=0;t<this.segments.length&&t<e.length;t++){var n=e[t];if(n&&n.length>0)for(var s=0,i=0;i<this.segments[t].length;i++){var r=this.segments[t][i];if(!this.fields.has(r))throw Error("Field not found: '"+r+"'");try{var a=this.fields.get(r),o=a.substring(n,s);a.decode(o),s+=o.length}catch(e){throw Error("Unable to decode "+r)}}}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.segments.length;t++)for(var n=0;n<this.segments[t].length;n++){var s=this.segments[t][n];if(this.fields.has(s)){var i=this.fields.get(s).getValue();e[s]=i}}return e}}]),iH=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){e.sort(function(e,t){return e-t});for(var t=[],n=0;n<e.length;){for(var s=n;s<e.length-1&&e[s]+1===e[s+1];)s++;t.push(e.slice(n,s+1)),n=s+1}for(var i=id.encode(t.length,12),r=0;r<t.length;r++)1===t[r].length?i+="0"+id.encode(t[r][0],16):i+="1"+id.encode(t[r][0],16)+id.encode(t[r][t[r].length-1],16);return i}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new il("Undecodable FixedIntegerRange '"+e+"'");for(var t=[],n=id.decode(e.substring(0,12)),s=12,i=0;i<n;i++){var r=i_.decode(e.substring(s,s+1));if(s++,!0===r){var a=id.decode(e.substring(s,s+16));s+=16;var o=id.decode(e.substring(s,s+16));s+=16;for(var c=a;c<=o;c++)t.push(c)}else{var u=id.decode(e.substring(s,s+16));t.push(u),s+=16}}return t}}]),ij=function(){function e(t){var n;return u(this,e),(n=c(this,e)).setValue(t),n}return S(e,iA),d(e,[{key:"encode",value:function(){return iH.encode(this.value)}},{key:"decode",value:function(e){this.value=iH.decode(e)}},{key:"substring",value:function(e,t){for(var n=id.decode(e.substring(t,t+12)),s=t+12,i=0;i<n;i++)"1"===e.charAt(s)?s+=33:s+=17;return e.substring(t,s)}},{key:"getValue",value:function(){return O(m(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){m(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}(),iY=function(){function e(t){var n;return u(this,e),(n=c(this,e)).setValue(t),n}return S(e,iA),d(e,[{key:"encode",value:function(){var e=this.value.length>0?this.value[this.value.length-1]:0,t=iH.encode(this.value);if(t.length<=e)return id.encode(e,16)+"1"+t;for(var n=[],s=0,i=0;i<e;i++)i===this.value[s]-1?(n[i]=!0,s++):n[i]=!1;return id.encode(e,16)+"0"+iU.encode(n,e)}},{key:"decode",value:function(e){if("1"===e.charAt(16))this.value=iH.decode(e.substring(17));else{for(var t=[],n=iU.decode(e.substring(17)),s=0;s<n.length;s++)!0===n[s]&&t.push(s+1);this.value=t}}},{key:"substring",value:function(e,t){var n=id.decode(e.substring(t,t+16));return"1"===e.charAt(t+16)?e.substring(t,t+17)+new ij([]).substring(e,t+17):e.substring(t,t+17+n)}},{key:"getValue",value:function(){return O(m(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){m(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}();(iJ=iL||(iL={})).VERSION="Version",iJ.CREATED="Created",iJ.LAST_UPDATED="LastUpdated",iJ.CMP_ID="CmpId",iJ.CMP_VERSION="CmpVersion",iJ.CONSENT_SCREEN="ConsentScreen",iJ.CONSENT_LANGUAGE="ConsentLanguage",iJ.VENDOR_LIST_VERSION="VendorListVersion",iJ.POLICY_VERSION="PolicyVersion",iJ.IS_SERVICE_SPECIFIC="IsServiceSpecific",iJ.USE_NON_STANDARD_STACKS="UseNonStandardStacks",iJ.SPECIAL_FEATURE_OPTINS="SpecialFeatureOptins",iJ.PURPOSE_CONSENTS="PurposeConsents",iJ.PURPOSE_LEGITIMATE_INTERESTS="PurposeLegitimateInterests",iJ.PURPOSE_ONE_TREATMENT="PurposeOneTreatment",iJ.PUBLISHER_COUNTRY_CODE="PublisherCountryCode",iJ.VENDOR_CONSENTS="VendorConsents",iJ.VENDOR_LEGITIMATE_INTERESTS="VendorLegitimateInterests",iJ.PUBLISHER_RESTRICTIONS="PublisherRestrictions",iJ.PUBLISHER_PURPOSES_SEGMENT_TYPE="PublisherPurposesSegmentType",iJ.PUBLISHER_CONSENTS="PublisherConsents",iJ.PUBLISHER_LEGITIMATE_INTERESTS="PublisherLegitimateInterests",iJ.NUM_CUSTOM_PURPOSES="NumCustomPurposes",iJ.PUBLISHER_CUSTOM_CONSENTS="PublisherCustomConsents",iJ.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS="PublisherCustomLegitimateInterests",iJ.VENDORS_ALLOWED_SEGMENT_TYPE="VendorsAllowedSegmentType",iJ.VENDORS_ALLOWED="VendorsAllowed",iJ.VENDORS_DISCLOSED_SEGMENT_TYPE="VendorsDisclosedSegmentType",iJ.VENDORS_DISCLOSED="VendorsDisclosed";var iJ,iW,iK=function(){function e(){return u(this,e),c(this,e,arguments)}return S(e,ig),d(e,[{key:"pad",value:function(e){for(;e.length%24>0;)e+="0";return e}}])}(),iX=function(){function e(t){u(this,e);var n,s=new Map,i=new Date;s.set(iL.VERSION.toString(),new iO(6,e.VERSION)),s.set(iL.CREATED.toString(),new iV(i)),s.set(iL.LAST_UPDATED.toString(),new iV(i)),s.set(iL.CMP_ID.toString(),new iO(12,0)),s.set(iL.CMP_VERSION.toString(),new iO(12,0)),s.set(iL.CONSENT_SCREEN.toString(),new iO(6,0)),s.set(iL.CONSENT_LANGUAGE.toString(),new iB(2,"EN")),s.set(iL.VENDOR_LIST_VERSION.toString(),new iO(12,0)),s.set(iL.POLICY_VERSION.toString(),new iO(6,2)),s.set(iL.IS_SERVICE_SPECIFIC.toString(),new iP(!1)),s.set(iL.USE_NON_STANDARD_STACKS.toString(),new iP(!1)),s.set(iL.SPECIAL_FEATURE_OPTINS.toString(),new iF([!1,!1,
1!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iL.PURPOSE_CONSENTS.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iL.PURPOSE_LEGITIMATE_INTERESTS.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iL.PURPOSE_ONE_TREATMENT.toString(),new iP(!1)),s.set(iL.PUBLISHER_COUNTRY_CODE.toString(),new iB(2,"AA")),s.set(iL.VENDOR_CONSENTS.toString(),new iY([])),s.set(iL.VENDOR_LEGITIMATE_INTERESTS.toString(),new iY([])),s.set(iL.PUBLISHER_RESTRICTIONS.toString(),new ij([])),s.set(iL.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new iO(3,3)),s.set(iL.PUBLISHER_CONSENTS.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iL.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var r=new iO(6,0);return s.set(iL.NUM_CUSTOM_PURPOSES.toString(),r),s.set(iL.PUBLISHER_CUSTOM_CONSENTS.toString(),new iM(function(){return r.getValue()},[])),s.set(iL.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new iM(function(){return r.getValue()},[])),s.set(iL.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new iO(3,2)),s.set(iL.VENDORS_ALLOWED.toString(),new iY([])),s.set(iL.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new iO(3,1)),s.set(iL.VENDORS_DISCLOSED.toString(),new iY([])),g(n=c(this,e,[s,[[iL.VERSION.toString(),iL.CREATED.toString(),iL.LAST_UPDATED.toString(),iL.CMP_ID.toString(),iL.CMP_VERSION.toString(),iL.CONSENT_SCREEN.toString(),iL.CONSENT_LANGUAGE.toString(),iL.VENDOR_LIST_VERSION.toString(),iL.POLICY_VERSION.toString(),iL.IS_SERVICE_SPECIFIC.toString(),iL.USE_NON_STANDARD_STACKS.toString(),iL.SPECIAL_FEATURE_OPTINS.toString(),iL.PURPOSE_CONSENTS.toString(),iL.PURPOSE_LEGITIMATE_INTERESTS.toString(),iL.PURPOSE_ONE_TREATMENT.toString(),iL.PUBLISHER_COUNTRY_CODE.toString(),iL.VENDOR_CONSENTS.toString(),iL.VENDOR_LEGITIMATE_INTERESTS.toString(),iL.PUBLISHER_RESTRICTIONS.toString()],[iL.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),iL.PUBLISHER_CONSENTS.toString(),iL.PUBLISHER_LEGITIMATE_INTERESTS.toString(),iL.NUM_CUSTOM_PURPOSES.toString(),iL.PUBLISHER_CUSTOM_CONSENTS.toString(),iL.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString()],[iL.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),iL.VENDORS_ALLOWED.toString()],[iL.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),iL.VENDORS_DISCLOSED.toString()]]]),"base64UrlEncoder",new iK),t&&t.length>0&&n.decode(t),n}return S(e,ix),d(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),this.getFieldValue(iL.IS_SERVICE_SPECIFIC.toString())?e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])):(e[2]&&e[2].length>0&&t.push(this.base64UrlEncoder.encode(e[2])),e[3]&&e[3].length>0&&t.push(this.base64UrlEncoder.encode(e[3]))),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=0;s<t.length;s++){var i=this.base64UrlEncoder.decode(t[s]);switch(i.substring(0,3)){case"000":n[0]=i;break;case"001":n[3]=i;break;case"010":n[2]=i;break;case"011":n[1]=i;break;default:throw new il("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(t,n){if(m(e,"setFieldValue",this,3)([t,n]),t!==iL.CREATED.toString()&&t!==iL.LAST_UPDATED.toString()){var s=new Date,i=new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()));this.setFieldValue(iL.CREATED.toString(),i),this.setFieldValue(iL.LAST_UPDATED.toString(),i)}}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(iX,"ID",2),g(iX,"VERSION",2),g(iX,"NAME","tcfeuv2"),(iq=iW||(iW={})).VERSION="Version",iq.CREATED="Created",iq.LAST_UPDATED="LastUpdated",iq.CMP_ID="CmpId",iq.CMP_VERSION="CmpVersion",iq.CONSENT_SCREEN="ConsentScreen",iq.CONSENT_LANGUAGE="ConsentLanguage",iq.VENDOR_LIST_VERSION="VendorListVersion",iq.TCF_POLICY_VERSION="TcfPolicyVersion",iq.USE_NON_STANDARD_STACKS="UseNonStandardStacks",iq.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",iq.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",iq.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",iq.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",iq.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",iq.SEGMENT_TYPE="SegmentType",iq.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",iq.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",iq.NUM_CUSTOM_PURPOSES="NumCustomPurposes",iq.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",iq.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent";var iq,iQ,iz=function(){function e(t){u(this,e);var n,s=new Map,i=new Date;s.set(iW.VERSION.toString(),new iO(6,e.VERSION)),s.set(iW.CREATED.toString(),new iV(i)),s.set(iW.LAST_UPDATED.toString(),new iV(i)),s.set(iW.CMP_ID.toString(),new iO(12,0)),s.set(iW.CMP_VERSION.toString(),new iO(12,0)),s.set(iW.CONSENT_SCREEN.toString(),new iO(6,0)),s.set(iW.CONSENT_LANGUAGE.toString(),new iB(2,"EN")),s.set(iW.VENDOR_LIST_VERSION.toString(),new iO(12,0)),s.set(iW.TCF_POLICY_VERSION.toString(),new iO(6,2)),s.set(iW.USE_NON_STANDARD_STACKS.toString(),new iP(!1)),s.set(iW.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new iF([!1,!1,
1!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iW.PURPOSES_EXPRESS_CONSENT.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iW.PURPOSES_IMPLIED_CONSENT.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iW.VENDOR_EXPRESS_CONSENT.toString(),new iY([])),s.set(iW.VENDOR_IMPLIED_CONSENT.toString(),new iY([])),s.set(iW.SEGMENT_TYPE.toString(),new iO(3,3)),s.set(iW.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(iW.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new iF([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var r=new iO(6,0);return s.set(iW.NUM_CUSTOM_PURPOSES.toString(),r),s.set(iW.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new iM(function(){return r.getValue()},[])),s.set(iW.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new iM(function(){return r.getValue()},[])),g(n=c(this,e,[s,[[iW.VERSION.toString(),iW.CREATED.toString(),iW.LAST_UPDATED.toString(),iW.CMP_ID.toString(),iW.CMP_VERSION.toString(),iW.CONSENT_SCREEN.toString(),iW.CONSENT_LANGUAGE.toString(),iW.VENDOR_LIST_VERSION.toString(),iW.TCF_POLICY_VERSION.toString(),iW.USE_NON_STANDARD_STACKS.toString(),iW.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),iW.PURPOSES_EXPRESS_CONSENT.toString(),iW.PURPOSES_IMPLIED_CONSENT.toString(),iW.VENDOR_EXPRESS_CONSENT.toString(),iW.VENDOR_IMPLIED_CONSENT.toString()],[iW.SEGMENT_TYPE.toString(),iW.PUB_PURPOSES_EXPRESS_CONSENT.toString(),iW.PUB_PURPOSES_IMPLIED_CONSENT.toString(),iW.NUM_CUSTOM_PURPOSES.toString(),iW.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),iW.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString()]]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,ix),d(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=0;s<t.length;s++){var i=this.base64UrlEncoder.decode(t[s]);switch(i.substring(0,3)){case"000":n[0]=i;break;case"011":n[1]=i;break;default:throw new il("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(t,n){if(m(e,"setFieldValue",this,3)([t,n]),t!==iW.CREATED.toString()&&t!==iW.LAST_UPDATED.toString()){var s=new Date,i=new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()));this.setFieldValue(iW.CREATED.toString(),i),this.setFieldValue(iW.LAST_UPDATED.toString(),i)}}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(iz,"ID",5),g(iz,"VERSION",1),g(iz,"NAME","tcfcav1"),(iZ=iQ||(iQ={})).VERSION="Version",iZ.NOTICE="Notice",iZ.OPT_OUT_SALE="OptOutSale",iZ.LSPA_COVERED="LspaCovered";var i$=function(){function e(t){u(this,e),g(this,"fields",void 0),this.fields=new Map,this.fields.set(iQ.VERSION.toString(),e.VERSION),this.fields.set(iQ.NOTICE.toString(),"-"),this.fields.set(iQ.OPT_OUT_SALE.toString(),"-"),this.fields.set(iQ.LSPA_COVERED.toString(),"-"),t&&t.length>0&&this.decode(t)}return d(e,[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e):null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw new iw(e+" not found");this.fields.set(e,t)}},{key:"toObj",value:function(){var e,t={},n=h(this.fields.keys());try{for(n.s();!(e=n.n()).done;){var s=e.value,i=this.fields.get(s);t[s.toString()]=i}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"encode",value:function(){var e="";return e+=this.getFieldValue(iQ.VERSION.toString()),e+=this.getFieldValue(iQ.NOTICE.toString()),e+=this.getFieldValue(iQ.OPT_OUT_SALE.toString()),e+=this.getFieldValue(iQ.LSPA_COVERED.toString())}},{key:"decode",value:function(e){this.setFieldValue(iQ.VERSION.toString(),parseInt(e.charAt(0))),this.setFieldValue(iQ.NOTICE.toString(),e.charAt(1)),this.setFieldValue(iQ.OPT_OUT_SALE.toString(),e.charAt(2)),this.setFieldValue(iQ.LSPA_COVERED.toString(),e.charAt(3))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(i$,"ID",6),g(i$,"VERSION",1),g(i$,"NAME","uspv1");var iZ,i0,i1=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t,n){for(var s="",i=0;i<e.length;i++)s+=id.encode(e[i],t);for(;s.length<t*n;)s+="0";return s}},{key:"decode",value:function(e,t,n){if(!/^[0-1]*$/.test(e))throw new il("Undecodable FixedInteger '"+e+"'");if(e.length>t*n||e.length%t!=0)throw new il("Undecodable FixedIntegerList '"+e+"'");for(;e.length<t*n;)e+="0";e.length>t*n&&(e=e.substring(0,t*n));for(var s=[],i=0;i<e.length;i+=t)s.push(id.decode(e.substring(i,i+t)));for(;s.length<n;)s.push(0);return s}}]),i2=function(){function e(t,n){var s;return u(this,e),g(s=c(this,e),"elementBitStringLength",void 0),g(s,"numElements",void 0),s.elementBitStringLength=t,s.numElements=n.length,s.setValue(n),s}return S(e,iA),d(e,[{key:"encode",value:function(){return i1.encode(this.value,this.elementBitStringLength,this.numElements)}},{key:"decode",value:function(e){this.value=i1.decode(e,this.elementBitStringLength,this.numElements)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.elementBitStringLength*this.numElements)}},{key:"getValue",value:function(){return O(m(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=O(t),s=n.length;s<this.numElements;s++)n.push(0);n.length>this.numElements&&(n=n.slice(0,this.numElements)),m(e,"setValue",this,3)([n])}}])}();(i3=i0||(i0={})).VERSION="Version",i3.SHARING_NOTICE="SharingNotice",i3.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i3.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",i3.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i3.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",i3.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",i3.SALE_OPT_OUT="SaleOptOut",i3.SHARING_OPT_OUT="SharingOptOut",i3.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i3.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i3.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i3.PERSONAL_DATA_CONSENTS="PersonalDataConsents",i3.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i3.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i3.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i3.GPC_SEGMENT_TYPE="GpcSegmentType",i3.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i3.GPC="Gpc";var i3,i4,i6=function(){function e(t){u(this,e);var n,s=new Map;return s.set(i0.VERSION.toString(),new iO(6,e.VERSION)),s.set(i0.SHARING_NOTICE.toString(),new iO(2,0)
1),s.set(i0.SALE_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i0.SHARING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i0.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i0.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i0.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new iO(2,0)),s.set(i0.SALE_OPT_OUT.toString(),new iO(2,0)),s.set(i0.SHARING_OPT_OUT.toString(),new iO(2,0)),s.set(i0.TARGETED_ADVERTISING_OPT_OUT.toString(),new iO(2,0)),s.set(i0.SENSITIVE_DATA_PROCESSING.toString(),new i2(2,[0,0,0,0,0,0,0,0,0,0,0,0])),s.set(i0.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new i2(2,[0,0])),s.set(i0.PERSONAL_DATA_CONSENTS.toString(),new iO(2,0)),s.set(i0.MSPA_COVERED_TRANSACTION.toString(),new iO(2,0)),s.set(i0.MSPA_OPT_OUT_OPTION_MODE.toString(),new iO(2,0)),s.set(i0.MSPA_SERVICE_PROVIDER_MODE.toString(),new iO(2,0)),s.set(i0.GPC_SEGMENT_TYPE.toString(),new iO(2,1)),s.set(i0.GPC_SEGMENT_INCLUDED.toString(),new iP(!0)),s.set(i0.GPC.toString(),new iP(!1)),g(n=c(this,e,[s,[[i0.VERSION.toString(),i0.SHARING_NOTICE.toString(),i0.SALE_OPT_OUT_NOTICE.toString(),i0.SHARING_OPT_OUT_NOTICE.toString(),i0.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),i0.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),i0.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),i0.SALE_OPT_OUT.toString(),i0.SHARING_OPT_OUT.toString(),i0.TARGETED_ADVERTISING_OPT_OUT.toString(),i0.SENSITIVE_DATA_PROCESSING.toString(),i0.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),i0.PERSONAL_DATA_CONSENTS.toString(),i0.MSPA_COVERED_TRANSACTION.toString(),i0.MSPA_OPT_OUT_OPTION_MODE.toString(),i0.MSPA_SERVICE_PROVIDER_MODE.toString()],[i0.GPC_SEGMENT_TYPE.toString(),i0.GPC.toString()]]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,ix),d(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(i0.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new il("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(i0.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(i6,"ID",7),g(i6,"VERSION",1),g(i6,"NAME","usnatv1"),(i5=i4||(i4={})).VERSION="Version",i5.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i5.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",i5.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",i5.SALE_OPT_OUT="SaleOptOut",i5.SHARING_OPT_OUT="SharingOptOut",i5.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i5.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i5.PERSONAL_DATA_CONSENTS="PersonalDataConsents",i5.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i5.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i5.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i5.GPC_SEGMENT_TYPE="GpcSegmentType",i5.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i5.GPC="Gpc";var i5,i7,i8=function(){function e(t){u(this,e);var n,s=new Map;return s.set(i4.VERSION.toString(),new iO(6,e.VERSION)),s.set(i4.SALE_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i4.SHARING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i4.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new iO(2,0)),s.set(i4.SALE_OPT_OUT.toString(),new iO(2,0)),s.set(i4.SHARING_OPT_OUT.toString(),new iO(2,0)),s.set(i4.SENSITIVE_DATA_PROCESSING.toString(),new i2(2,[0,0,0,0,0,0,0,0,0])),s.set(i4.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new i2(2,[0,0])),s.set(i4.PERSONAL_DATA_CONSENTS.toString(),new iO(2,0)),s.set(i4.MSPA_COVERED_TRANSACTION.toString(),new iO(2,0)),s.set(i4.MSPA_OPT_OUT_OPTION_MODE.toString(),new iO(2,0)),s.set(i4.MSPA_SERVICE_PROVIDER_MODE.toString(),new iO(2,0)),s.set(i4.GPC_SEGMENT_TYPE.toString(),new iO(2,1)),s.set(i4.GPC_SEGMENT_INCLUDED.toString(),new iP(!0)),s.set(i4.GPC.toString(),new iP(!1)),g(n=c(this,e,[s,[[i4.VERSION.toString(),i4.SALE_OPT_OUT_NOTICE.toString(),i4.SHARING_OPT_OUT_NOTICE.toString(),i4.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),i4.SALE_OPT_OUT.toString(),i4.SHARING_OPT_OUT.toString(),i4.SENSITIVE_DATA_PROCESSING.toString(),i4.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),i4.PERSONAL_DATA_CONSENTS.toString(),i4.MSPA_COVERED_TRANSACTION.toString(),i4.MSPA_OPT_OUT_OPTION_MODE.toString(),i4.MSPA_SERVICE_PROVIDER_MODE.toString()],[i4.GPC_SEGMENT_TYPE.toString(),i4.GPC.toString()]]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,ix),d(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(i4.GPC_SEGMENT_INCLUDED).getValue()&&t.pu
1sh(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new il("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(i4.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(i8,"ID",8),g(i8,"VERSION",1),g(i8,"NAME","uscav1"),(i9=i7||(i7={})).VERSION="Version",i9.SHARING_NOTICE="SharingNotice",i9.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i9.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i9.SALE_OPT_OUT="SaleOptOut",i9.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i9.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i9.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i9.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i9.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i9.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode";var i9,re,rt=function(){function e(t){u(this,e);var n,s=new Map;return s.set(i7.VERSION.toString(),new iO(6,e.VERSION)),s.set(i7.SHARING_NOTICE.toString(),new iO(2,0)),s.set(i7.SALE_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i7.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(i7.SALE_OPT_OUT.toString(),new iO(2,0)),s.set(i7.TARGETED_ADVERTISING_OPT_OUT.toString(),new iO(2,0)),s.set(i7.SENSITIVE_DATA_PROCESSING.toString(),new i2(2,[0,0,0,0,0,0,0,0])),s.set(i7.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new iO(2,0)),s.set(i7.MSPA_COVERED_TRANSACTION.toString(),new iO(2,0)),s.set(i7.MSPA_OPT_OUT_OPTION_MODE.toString(),new iO(2,0)),s.set(i7.MSPA_SERVICE_PROVIDER_MODE.toString(),new iO(2,0)),g(n=c(this,e,[s,[i7.VERSION.toString(),i7.SHARING_NOTICE.toString(),i7.SALE_OPT_OUT_NOTICE.toString(),i7.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),i7.SALE_OPT_OUT.toString(),i7.TARGETED_ADVERTISING_OPT_OUT.toString(),i7.SENSITIVE_DATA_PROCESSING.toString(),i7.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),i7.MSPA_COVERED_TRANSACTION.toString(),i7.MSPA_OPT_OUT_OPTION_MODE.toString(),i7.MSPA_SERVICE_PROVIDER_MODE.toString()]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,iN),d(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(rt,"ID",9),g(rt,"VERSION",1),g(rt,"NAME","usvav1"),(rn=re||(re={})).VERSION="Version",rn.SHARING_NOTICE="SharingNotice",rn.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",rn.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",rn.SALE_OPT_OUT="SaleOptOut",rn.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",rn.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",rn.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",rn.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",rn.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",rn.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",rn.GPC_SEGMENT_TYPE="GpcSegmentType",rn.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",rn.GPC="Gpc";var rn,rs,ri=function(){function e(t){u(this,e);var n,s=new Map;return s.set(re.VERSION.toString(),new iO(6,e.VERSION)),s.set(re.SHARING_NOTICE.toString(),new iO(2,0)),s.set(re.SALE_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(re.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(re.SALE_OPT_OUT.toString(),new iO(2,0)),s.set(re.TARGETED_ADVERTISING_OPT_OUT.toString(),new iO(2,0)),s.set(re.SENSITIVE_DATA_PROCESSING.toString(),new i2(2,[0,0,0,0,0,0,0])),s.set(re.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new iO(2,0)),s.set(re.MSPA_COVERED_TRANSACTION.toString(),new iO(2,0)),s.set(re.MSPA_OPT_OUT_OPTION_MODE.toString(),new iO(2,0)),s.set(re.MSPA_SERVICE_PROVIDER_MODE.toString(),new iO(2,0)),s.set(re.GPC_SEGMENT_TYPE.toString(),new iO(2,1)),s.set(re.GPC_SEGMENT_INCLUDED.toString(),new iP(!0)),s.set(re.GPC.toString(),new iP(!1)),g(n=c(this,e,[s,[[re.VERSION.toString(),re.SHARING_NOTICE.toString(),re.SALE_OPT_OUT_NOTICE.toString(),re.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),re.SALE_OPT_OUT.toString(),re.TARGETED_ADVERTISING_OPT_OUT.toString(),re.SENSITIVE_DATA_PROCESSING.toString(),re.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),re.MSPA_COVERED_TRANSACTION.toString(),re.MSPA_OPT_OUT_OPTION_MODE.toString(),re.MSPA_SERVICE_PROVIDER_MODE.toString()],[re.GPC_SEGMENT_TYPE.toString(),re.GPC.toString()]]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,ix),d(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(re.GPC_SEGMENT_INCLUDED).getValue()&&t.pu
1sh(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new il("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(re.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(ri,"ID",10),g(ri,"VERSION",1),g(ri,"NAME","uscov1"),(rr=rs||(rs={})).VERSION="Version",rr.SHARING_NOTICE="SharingNotice",rr.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",rr.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",rr.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",rr.SALE_OPT_OUT="SaleOptOut",rr.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",rr.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",rr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",rr.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",rr.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",rr.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode";var rr,ra,ro=function(){function e(t){u(this,e);var n,s=new Map;return s.set(rs.VERSION.toString(),new iO(6,e.VERSION)),s.set(rs.SHARING_NOTICE.toString(),new iO(2,0)),s.set(rs.SALE_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(rs.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(rs.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(rs.SALE_OPT_OUT.toString(),new iO(2,0)),s.set(rs.TARGETED_ADVERTISING_OPT_OUT.toString(),new iO(2,0)),s.set(rs.SENSITIVE_DATA_PROCESSING.toString(),new i2(2,[0,0,0,0,0,0,0,0])),s.set(rs.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new iO(2,0)),s.set(rs.MSPA_COVERED_TRANSACTION.toString(),new iO(2,0)),s.set(rs.MSPA_OPT_OUT_OPTION_MODE.toString(),new iO(2,0)),s.set(rs.MSPA_SERVICE_PROVIDER_MODE.toString(),new iO(2,0)),g(n=c(this,e,[s,[rs.VERSION.toString(),rs.SHARING_NOTICE.toString(),rs.SALE_OPT_OUT_NOTICE.toString(),rs.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),rs.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),rs.SALE_OPT_OUT.toString(),rs.TARGETED_ADVERTISING_OPT_OUT.toString(),rs.SENSITIVE_DATA_PROCESSING.toString(),rs.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),rs.MSPA_COVERED_TRANSACTION.toString(),rs.MSPA_OPT_OUT_OPTION_MODE.toString(),rs.MSPA_SERVICE_PROVIDER_MODE.toString()]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,iN),d(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(ro,"ID",11),g(ro,"VERSION",1),g(ro,"NAME","usutv1"),(r8=ra||(ra={})).VERSION="Version",r8.SHARING_NOTICE="SharingNotice",r8.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",r8.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",r8.SALE_OPT_OUT="SaleOptOut",r8.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",r8.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",r8.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",r8.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",r8.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",r8.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",r8.GPC_SEGMENT_TYPE="GpcSegmentType",r8.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",r8.GPC="Gpc";var rc=function(){function e(t){u(this,e);var n,s=new Map;return s.set(ra.VERSION.toString(),new iO(6,e.VERSION)),s.set(ra.SHARING_NOTICE.toString(),new iO(2,0)),s.set(ra.SALE_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(ra.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new iO(2,0)),s.set(ra.SALE_OPT_OUT.toString(),new iO(2,0)),s.set(ra.TARGETED_ADVERTISING_OPT_OUT.toString(),new iO(2,0)),s.set(ra.SENSITIVE_DATA_PROCESSING.toString(),new i2(2,[0,0,0,0,0,0,0,0])),s.set(ra.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new i2(2,[0,0,0])),s.set(ra.MSPA_COVERED_TRANSACTION.toString(),new iO(2,0)
1),s.set(ra.MSPA_OPT_OUT_OPTION_MODE.toString(),new iO(2,0)),s.set(ra.MSPA_SERVICE_PROVIDER_MODE.toString(),new iO(2,0)),s.set(ra.GPC_SEGMENT_TYPE.toString(),new iO(2,1)),s.set(ra.GPC_SEGMENT_INCLUDED.toString(),new iP(!0)),s.set(ra.GPC.toString(),new iP(!1)),g(n=c(this,e,[s,[[ra.VERSION.toString(),ra.SHARING_NOTICE.toString(),ra.SALE_OPT_OUT_NOTICE.toString(),ra.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),ra.SALE_OPT_OUT.toString(),ra.TARGETED_ADVERTISING_OPT_OUT.toString(),ra.SENSITIVE_DATA_PROCESSING.toString(),ra.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),ra.MSPA_COVERED_TRANSACTION.toString(),ra.MSPA_OPT_OUT_OPTION_MODE.toString(),ra.MSPA_SERVICE_PROVIDER_MODE.toString()],[ra.GPC_SEGMENT_TYPE.toString(),ra.GPC.toString()]]]),"base64UrlEncoder",new iT),t&&t.length>0&&n.decode(t),n}return S(e,ix),d(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(ra.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new il("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(ra.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();g(rc,"ID",12),g(rc,"VERSION",1),g(rc,"NAME","usctv1");var ru=d(function e(){u(this,e)});g(ru,"SECTION_ID_NAME_MAP",new Map([[iX.ID,iX.NAME],[iz.ID,iz.NAME],[i$.ID,i$.NAME],[i6.ID,i6.NAME],[i8.ID,i8.NAME],[rt.ID,rt.NAME],[ri.ID,ri.NAME],[ro.ID,ro.NAME],[rc.ID,rc.NAME]])),g(ru,"SECTION_ORDER",[iX.NAME,iz.NAME,i$.NAME,i6.NAME,i8.NAME,rt.NAME,ri.NAME,ro.NAME,rc.NAME]);var rl=d(function e(t){u(this,e),g(this,"sections",new Map),g(this,"encodedString",void 0),g(this,"decoded",void 0),g(this,"dirty",void 0),t?this.encodedString=t:this.encodedString="DBAA",this.decoded=!1,this.dirty=!1},[{key:"setFieldValue",value:function(e,t,n){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}var s=null;if(this.sections.has(e)?s=this.sections.get(e):e===iz.NAME?(s=new iz,this.sections.set(iz.NAME,s)):e===iX.NAME?(s=new iX,this.sections.set(iX.NAME,s)):e===i$.NAME?(s=new i$,this.sections.set(i$.NAME,s)):e===i6.NAME?(s=new i6,this.sections.set(i6.NAME,s)):e===i8.NAME?(s=new i8,this.sections.set(i8.NAME,s)):e===rt.NAME?(s=new rt,this.sections.set(rt.NAME,s)):e===ri.NAME?(s=new ri,this.sections.set(ri.NAME,s)):e===ro.NAME?(s=new ro,this.sections.set(ro.NAME,s)):e===rc.NAME&&(s=new rc,this.sections.set(rc.NAME,s)),!s)throw new iw(e+"."+t+" not found");s.setFieldValue(t,n),this.dirty=!0}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(ru.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}return this.sections.has(e)?this.sections.get(e).getFieldValue(t):null}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(ru.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasField",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}return!!this.sections.has(e)&&this.sections.get(e).hasField(t)}},{key:"hasFieldBySectionId",value:function(e,t){return this.hasField(ru.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}return this.sections.has(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(ru.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}this.sections.delete(e),this.dirty=!0}},{key:"deleteSectionById",value:function(e){this.deleteSection(ru.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}},{key:"getHeader",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}var e=new iD;
1return e.setFieldValue("SectionIds",this.getSectionIds()),e.toObj()}},{key:"getSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}return this.sections.has(e)?this.sections.get(e).toObj():null}},{key:"getSectionIds",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}for(var e=[],t=0;t<ru.SECTION_ORDER.length;t++){var n=ru.SECTION_ORDER[t];if(this.sections.has(n)){var s=this.sections.get(n);e.push(s.getId())}}return e}},{key:"encode",value:function(){if(!this.dirty)return this.encodedString;if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}for(var e=[],t=[],n=0;n<ru.SECTION_ORDER.length;n++){var s=ru.SECTION_ORDER[n];if(this.sections.has(s)){var i=this.sections.get(s);e.push(i.encode()),t.push(i.getId())}}var r=new iD;return r.setFieldValue("SectionIds",this.getSectionIds()),e.unshift(r.encode()),this.encodedString=e.join("~"),this.dirty=!1,this.encodedString}},{key:"decode",value:function(e){this.encodedString=e,this.decoded=!1,this.dirty=!0,this.sections.clear();var t=e.split("~"),n=new iD(t[0]);this.sections.set(iD.NAME,n);for(var s=n.getFieldValue("SectionIds"),i=0;i<s.length;i++)if(s[i]===iz.ID){var r=new iz(t[i+1]);this.sections.set(iz.NAME,r)}else if(s[i]===iX.ID){var a=new iX(t[i+1]);this.sections.set(iX.NAME,a)}else if(s[i]===i$.ID){var o=new i$(t[i+1]);this.sections.set(i$.NAME,o)}else if(s[i]===i6.ID){var c=new i6(t[i+1]);this.sections.set(i6.NAME,c)}else if(s[i]===i8.ID){var u=new i8(t[i+1]);this.sections.set(i8.NAME,u)}else if(s[i]===rt.ID){var l=new rt(t[i+1]);this.sections.set(rt.NAME,l)}else if(s[i]===ri.ID){var d=new ri(t[i+1]);this.sections.set(ri.NAME,d)}else if(s[i]===ro.ID){var h=new ro(t[i+1]);this.sections.set(ro.NAME,h)}else if(s[i]===rc.ID){var g=new rc(t[i+1]);this.sections.set(rc.NAME,g)}this.decoded=!0,this.dirty=!1}},{key:"encodeSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}return this.sections.has(e)?this.sections.get(e).encode():null}},{key:"encodeSectionById",value:function(e){return this.encodeSection(ru.SECTION_ID_NAME_MAP.get(e))}},{key:"decodeSection",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}var n=null;this.sections.has(e)?n=this.sections.get(e):e===iz.NAME?(n=new iz,this.sections.set(iz.NAME,n)):e===iX.NAME?(n=new iX,this.sections.set(iX.NAME,n)):e===i$.NAME?(n=new i$,this.sections.set(i$.NAME,n)):e===i6.NAME?(n=new i6,this.sections.set(i6.NAME,n)):e===i8.NAME?(n=new i8,this.sections.set(i8.NAME,n)):e===rt.NAME?(n=new rt,this.sections.set(rt.NAME,n)):e===ri.NAME?(n=new ri,this.sections.set(ri.NAME,n)):e===ro.NAME?(n=new ro,this.sections.set(ro.NAME,n)):e===rc.NAME&&(n=new rc,this.sections.set(rc.NAME,n)),n&&(n.decode(t),this.dirty=!0)}},{key:"decodeSectionById",value:function(e,t){this.decodeSection(ru.SECTION_ID_NAME_MAP.get(e),t)}},{key:"toObject",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new iR(e.message)}for(var e={},t=0;t<ru.SECTION_ORDER.length;t++){var n=ru.SECTION_ORDER[t];this.sections.has(n)&&(e[n]=this.sections.get(n).toObj())}return e}}]),rd=d(function e(){u(this,e),g(this,"gppVersion","1.1"),g(this,"supportedAPIs",[]),g(this,"eventQueue",new iu(this)),g(this,"cmpStatus",is.LOADING),g(this,"cmpDisplayStatus",ii.HIDDEN),g(this,"signalStatus",ia.NOT_READY),g(this,"applicableSections",[]),g(this,"gppModel",new rl),g(this,"cmpId",void 0),g(this,"cmpVersion",void 0),g(this,"eventStatus",void 0)},[{key:"reset",value:function(){this.eventQueue.clear(),this.cmpStatus=is.LOADING,this.cmpDisplayStatus=ii.HIDDEN,this.signalStatus=ia.NOT_READY,this.applicableSections=[],this.supportedAPIs=[],this.gppModel=new rl,delete this.cmpId,delete this.cmpVersion,delete this.eventStatus}}]),rh=d(function e(){u(this,e)},null,[{key:"absCall",value:function(e,t,n,s){return new Promise(function(i,r){var a=new XMLHttpRequest;a.withCredentials=n,a.addEventListener("load",function(){if(a.readyState==XMLHttpRequest.DONE)if(a.status>=200&&a.status<300){var e=a.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}i(e)}else r(Error("HTTP Status: ".concat(a.status," response type: ").concat(a.responseType)))}),a.addEventListener("error",function(){r(Error("error"))}),a.addEventListener("abort",function(){r(Error("aborted"))}),null===t?a.open("GET",e,!0):a.open("POST",e,!0),a.responseType="json",a.timeout=s,a.ontimeout=function(){r(Error("Timeout "+s+"ms "+e))},a.send(t)})}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,s)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}]),rg=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="GVLError",n}return S(e,L(Error)),d(e)}(),rf=function(){function e(){u(this,e)}return d(e,[{key:"has",value:function(t){return e.langSet.has(t)}}
1,{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])}();g(rf,"langSet",new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]));var rp=function(){var e,t;function n(){u(this,n),g(this,"vendors",void 0),g(this,"consentLanguages",new rf),g(this,"gvlSpecificationVersion",void 0),g(this,"vendorListVersion",void 0),g(this,"tcfPolicyVersion",void 0),g(this,"lastUpdated",void 0),g(this,"purposes",void 0),g(this,"specialPurposes",void 0),g(this,"features",void 0),g(this,"specialFeatures",void 0),g(this,"stacks",void 0),g(this,"dataCategories",void 0),g(this,"language",n.DEFAULT_LANGUAGE),g(this,"vendorIds",void 0),g(this,"ready",!1),g(this,"fullVendorList",void 0),g(this,"byPurposeVendorMap",void 0),g(this,"bySpecialPurposeVendorMap",void 0),g(this,"byFeatureVendorMap",void 0),g(this,"bySpecialFeatureVendorMap",void 0),g(this,"baseUrl",void 0),g(this,"languageFilename","purposes-[LANG].json")}return d(n,[{key:"changeLanguage",value:(t=o(T().m(function e(t){var n,s,i;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=t.toUpperCase(),!this.consentLanguages.has(n)){e.n=5;break}if(n===this.language){e.n=4;break}return this.language=n,s=this.baseUrl+this.languageFilename.replace("[LANG]",t),e.p=1,i=this,e.n=2,rh.fetch(s);case 2:i.populate.call(i,e.v),e.n=4;break;case 3:throw e.p=3,new rg("unable to load language: "+e.v.message);case 4:e.n=6;break;case 5:throw new rg("unsupported language ".concat(t));case 6:return e.a(2)}},e,this,[[1,3]])})),function(e){return t.apply(this,arguments)})},{key:"getJson",value:function(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{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.ready=!0)}},{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,impCons: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,n){var s=t.vendors[String(n)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(function(e){t.byPurposeVendorMap[String(e)].consent.add(n)}),s.specialPurposes.forEach(function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)}),s.legIntPurposes&&s.legIntPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)}),s.impConsPurposes&&s.impConsPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].impCons.add(n)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)}),s.features.forEach(function(e){t.byFeatureVendorMap[String(e)].add(n)}
1),s.specialFeatures.forEach(function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)}),e[n]=s),e},{})}},{key:"getFilteredVendors",value:function(e,t,n,s){var i=this,r=e.charAt(0).toUpperCase()+e.slice(1),a={};return("purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)]).forEach(function(e){a[String(e)]=i.vendors[String(e)]}),a}},{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:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.ready}}],[{key:"fromVendorList",value:function(e){var t=new n;return t.populate(e),t}},{key:"fromUrl",value:(e=o(T().m(function e(t){var s,i,r,a,o,c,u,l;return T().w(function(e){for(;;)switch(e.n){case 0:if((s=t.baseUrl)&&0!==s.length){e.n=1;break}throw new rg("Invalid baseUrl: '"+s+"'");case 1:if(!/^https?:\/\/vendorlist\.consensu\.org\//.test(s)){e.
1n=2;break}throw new rg("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");case 2:if(s.length>0&&"/"!==s[s.length-1]&&(s+="/"),(i=new n).baseUrl=s,t.languageFilename?i.languageFilename=t.languageFilename:i.languageFilename="purposes-[LANG].json",!(t.version>0)){e.n=4;break}return(r=t.versionedFilename)||(r="archives/vendor-list-v[VERSION].json"),a=s+r.replace("[VERSION]",String(t.version)),u=i,e.n=3,rh.fetch(a);case 3:u.populate.call(u,e.v),e.n=6;break;case 4:return(o=t.latestFilename)||(o="vendor-list.json"),c=s+o,l=i,e.n=5,rh.fetch(c);case 5:l.populate.call(l,e.v);case 6:return e.a(2,i)}},e)})),function(t){return e.apply(this,arguments)})},{key:"isInstanceOf",value:function(e){return"object"===D(e)&&"function"==typeof e.narrowVendorsTo}}])}();g(rp,"DEFAULT_LANGUAGE","EN");var rS=d(function e(t,n,s){u(this,e),g(this,"callResponder",void 0),g(this,"cmpApiContext",void 0),this.cmpApiContext=new rd,this.cmpApiContext.cmpId=t,this.cmpApiContext.cmpVersion=n,this.callResponder=new ic(this.cmpApiContext,s)},[{key:"fireEvent",value:function(e,t){this.cmpApiContext.eventQueue.exec(e,t)}},{key:"fireErrorEvent",value:function(e){this.cmpApiContext.eventQueue.exec("error",e)}},{key:"fireSectionChange",value:function(e){this.cmpApiContext.eventQueue.exec("sectionChange",e)}},{key:"getEventStatus",value:function(){return this.cmpApiContext.eventStatus}},{key:"setEventStatus",value:function(e){this.cmpApiContext.eventStatus=e}},{key:"getCmpStatus",value:function(){return this.cmpApiContext.cmpStatus}},{key:"setCmpStatus",value:function(e){this.cmpApiContext.cmpStatus=e,this.cmpApiContext.eventQueue.exec("cmpStatus",e)}},{key:"getCmpDisplayStatus",value:function(){return this.cmpApiContext.cmpDisplayStatus}},{key:"setCmpDisplayStatus",value:function(e){this.cmpApiContext.cmpDisplayStatus=e,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",e)}},{key:"getSignalStatus",value:function(){return this.cmpApiContext.signalStatus}},{key:"setSignalStatus",value:function(e){this.cmpApiContext.signalStatus=e,this.cmpApiContext.eventQueue.exec("signalStatus",e)}},{key:"getApplicableSections",value:function(){return this.cmpApiContext.applicableSections}},{key:"setApplicableSections",value:function(e){this.cmpApiContext.applicableSections=e}},{key:"getSupportedAPIs",value:function(){return this.cmpApiContext.supportedAPIs}},{key:"setSupportedAPIs",value:function(e){this.cmpApiContext.supportedAPIs=e}},{key:"setGppString",value:function(e){this.cmpApiContext.gppModel.decode(e)}},{key:"getGppString",value:function(){return this.cmpApiContext.gppModel.encode()}},{key:"setSectionString",value:function(e,t){this.cmpApiContext.gppModel.decodeSection(e,t)}},{key:"setSectionStringById",value:function(e,t){this.setSectionString(ru.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSectionString",value:function(e){return this.cmpApiContext.gppModel.encodeSection(e)}},{key:"getSectionStringById",value:function(e){return this.getSectionString(ru.SECTION_ID_NAME_MAP.get(e))}},{key:"setFieldValue",value:function(e,t,n){this.cmpApiContext.gppModel.setFieldValue(e,t,n)}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(ru.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){return this.cmpApiContext.gppModel.getFieldValue(e,t)}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(ru.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSection",value:function(e){return this.cmpApiContext.gppModel.getSection(e)}},{key:"getSectionById",value:function(e){return this.getSection(ru.SECTION_ID_NAME_MAP.get(e))}},{key:"hasSection",value:function(e){return this.cmpApiContext.gppModel.hasSection(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(ru.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){this.cmpApiContext.gppModel.deleteSection(e)}},{key:"deleteSectionById",value:function(e){this.deleteSection(ru.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.cmpApiContext.gppModel.clear()}},{key:"getObject",value:function(){return this.cmpApiContext.gppModel.toObject()}},{key:"getGvlFromVendorList",value:function(e){return rp.fromVendorList(e)}},{key:"getGvlFromUrl",value:(r9=o(T().m(function e(t){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,rp.fromUrl(t))},e)})),function(e){return r9.apply(this,arguments)})}]),rv={tcfeuv2:2,tcfcav1:5,uspv1:6,usnat:7,usca:8,usva:9,usco:10,usut:11,usct:12},rE=function(){function e(t,n){var s,i=this;u(this,e),g(this,"cmpId",void 0),g(this,"cmpVersion",void 0),g(this,"gppApi",void 0),g(this,"gppEnabled",void 0),g(this,"setApplicableSections",function(e){if(i.gppEnabled)try{i.gppApi.setApplicableSections([rv[e]])}catch(t){throw Error('GppData - setApplicableSections - unrecognized legalframework "'.concat(e,'"'))}}),g(this,"setCmpSignalReady",o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:i.gppEnabled&&i.gppApi.setSignalStatus(ia.READY);case 1:return e.a(2)}},e)}))),g(this,"setCmpStatusLoaded",o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:i.gppEnabled&&i.gppApi.setCmpStatus(is.LOADED);case 1:return e.a(2)}},e)}))),g(this,"setCmpDisplayHidden",o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:i.gppEnabled&&i.gppApi.setCmpDisplayStatus(ii.HIDDEN);case 1:return e.a(2)}},e)}))),g(this,"setCmpDisplayVisible",o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:i.gppEnabled&&i.gppApi.setCmpDisplayStatus(ii.VISIBLE);case 1:return e.a(2)}},e)}))),g(this,"setSectionString",(s=o(T().m(function e(t,n){return T().w(function(e){for(;;)switch(e.n){case 0:""!==t&&i.gppEnabled&&(i.gppApi.setSectionString(n,t),i.gppApi.fireSectionChange(n));case 1:return e.a(2)}},e)})),function(e,t){return s.apply(this,arguments)})),this.gppEnabled=n||!1,this.cmpId=(null==t?void 0:t.tcf2.cmpId)||5,this.cmpVersion=(null==t?void 0:t.tcf2.cmpVersion)||parseInt("3",10),this.gppApi=new rS(this.cmpId,this.cmpVersion),this.gppApi.setCmpStatus(is.LOADING),this.gppApi.setSignalStatus(ia.NOT_READY)}return d(e,[{key:"resetGpp",value:function(){this.gppApi={}}}],[{key:"getInstance",value:function(t,n){var s,i=(null==(s=e.instance)?void 0:s.gppEnabled)||!1;return n||i?(e.instance||(e.instance=new e(t,n)),e.instance):null}}])}();g(rE,"instance",void 0);var rI=function(){var e;function t(){u(this,t),g(this,"primaryLanguage",""),g(this,"apiInstance",st.getInstance())}return d(t,[{key:"setPrimaryLanguage",value:function(e){this.primaryLanguage=e}},{key:"getPrimaryLanguage",value:function(){return this.primaryLanguage}},{key:"resolveLanguage",value:(e=o(T().m(function e(){var t,n,s,i,r,a,o=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:if(t=o.length>
10&&void 0!==o[0]&&o[0],n=e4.fetchUserCountryResponse(),s=[],!n){e.n=1;break}n4.getInstance().setUserCountryData({code:n.countryCode,name:n.countryName,regionCode:n.regionCode}),e.n=3;break;case 1:return e.n=2,this.apiInstance.fetchAvailableLanguages();case 2:s=e.v;case 3:if(t){e.n=5;break}if(!this.primaryLanguage){e.n=4;break}return this.apiInstance.setJsonFileLanguage(this.primaryLanguage),e.a(2);case 4:if(!(i=e4.fetchLanguage())){e.n=5;break}return this.apiInstance.setJsonFileLanguage(i),e.a(2);case 5:if(s.length){e.n=7;break}return e.n=6,this.apiInstance.fetchAvailableLanguages();case 6:s=e.v;case 7:if(!(r=rC(s))){e.n=8;break}return this.apiInstance.setJsonFileLanguage(r),e.a(2);case 8:if(!(a=rT(s))){e.n=9;break}return this.apiInstance.setJsonFileLanguage(a),e.a(2);case 9:if(!(s.length>0)){e.n=10;break}return this.apiInstance.setJsonFileLanguage(s[0]),e.a(2);case 10:this.apiInstance.setJsonFileLanguage("en");case 11:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})}],[{key:"getInstance",value:function(){return t.instance||(t.instance=new t),t.instance}}])}();g(rI,"instance",void 0);var rT=function(e){var t=window.navigator;if(e8(t.languages))for(var n=0;n<t.languages.length;n+=1){var s=r_(e,t.languages[n]);if(s)return s}return r_(e,null!=t.language?t.language:t.userLanguage)},rC=function(e){var t=document.documentElement.lang;return t?r_(e,t):null},r_=function(e,t){if(t){var n=t.toLowerCase().replace("-","_");if(e6(e,n))return n;var s=t.slice(0,2);if(e6(e,s))return s}return null},ry=((ae={}).API_INVALID_COMMAND="Usercentrics: (__uspapi) Invalid command: ",ae.API_INVALID_CALLBACK="Usercentrics: (__uspapi) callback parameter not a function",ae.INVALID_STRING="Usercentrics: ccpa string is invalid",ae.RESHOW_AFTER_DAYS_INVALID="Usercentrics: reshow after days must be greater than 364.",ae.SETTINGS_UNDEFINED="Usercentrics: ccpa is missing in setting",ae),rA=((at={}).ACCEPT="Y",at.DENY="N",at.UNKNOWN="-",at),rm=d(function e(){u(this,e),g(this,"apiInstance",st.getInstance())},[{key:"getTargets",value:function(e){var t=this;return e.reduce(function(e,n){if("mark"!==n.entryType&&"measure"!==n.entryType&&"paint"!==n.entryType&&!n.name.startsWith("data:")&&!["visible"].includes(n.name)&&!/^https:\/\/([a-z0-9.]+).usercentrics\.eu/.test(n.name)){var s=n.name,i=t.extractSubdomain(s);if(-1===e.indexOf(i))return[].concat(O(e),[i])}return e},[])}},{key:"initTagLogger",value:function(){var e=this;window.addEventListener("beforeunload",function(){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e.updateLog()})})}},{key:"extractSubdomain",value:function(e){var t,n=e.split("/");return e.indexOf("://")>-1?(t="".concat(n[2]),n[3]&&(t+="/".concat(n[3]))):(t="".concat(n[0]),n[1]&&(t+="/".concat(n[1]))),t="".concat(t.split("?")[0])}},{key:"updateLog",value:function(){if(Object.prototype.hasOwnProperty.call(window,"performance")&&"function"==typeof performance.getEntries){var e=window.performance.getEntries();this.apiInstance.updateTagLoggerData(this.getTargets(e))}else console.log("UC Warning: tag logger functionality is not supported by your browser.")}}]),rO=function(){var e,t,n,s,i,r;function a(){u(this,a),g(this,"initOptions",null),g(this,"isFirstTimePageVisit",!0),g(this,"selectedLayer",null),g(this,"shouldAcceptAllImplicitly",null),g(this,"shouldDenyAllExplicitly",null),g(this,"shouldShowFirstLayerOnVersionChange",!1),g(this,"variant",null),g(this,"ampInstance",tQ.getInstance()),g(this,"settingsV2",sB.getInstance()),g(this,"rulesetInstance",sL.getInstance()),g(this,"apiInstance",st.getInstance())}return d(a,[{key:"init",value:(r=o(T().m(function e(t){return T().w(function(e){for(;;)switch(e.n){case 0:if(this.initOptions=t,this.isFirstTimePageVisit=this.isFirstTimeVisit(),null!==this.shouldAcceptAllImplicitly){e.n=2;break}return e.n=1,this.settingsV2.shouldAcceptAllImplicitlyOnInit();case 1:this.shouldAcceptAllImplicitly=e.v;case 2:if(null!==this.shouldDenyAllExplicitly){e.n=4;break}return e.n=3,this.settingsV2.shouldDenyAllExplicitlyOnInit();case 3:this.shouldDenyAllExplicitly=e.v;case 4:this.shouldShowFirstLayerOnVersionChange=this.settingsV2.shouldShowFirstLayerOnVersionChange();case 5:return e.a(2)}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"isFirstTimeVisit",value:function(){return!e4.settingsExist(
1)}},{key:"shouldShowNone",value:(i=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:if(t=this.variant===eU.CCPA,!this.apiInstance.getRulesetId()||!this.rulesetInstance.getIsUsingNoShow()){e.n=1;break}return e.a(2,this.rulesetInstance.getNoShow());case 1:if(null!==this.shouldAcceptAllImplicitly){e.n=3;break}return e.n=2,this.settingsV2.shouldAcceptAllImplicitlyOnInit();case 2:this.shouldAcceptAllImplicitly=e.v;case 3:return e.a(2,this.shouldAcceptAllImplicitly&&!t)}},e,this)})),function(){return i.apply(this,arguments)})},{key:"shouldManuallyResurface",value:function(){var e=this.settingsV2.core,t=e4.fetchServices(),n=this.variant===eU.CCPA,s=null;if(t&&t.length>0){if(n)s=e4.getCcpaTimeStamp();else{var i=ta(t.reduce(function(e,t){return[].concat(O(e),O(t.history))},[]));e&&i.length>0&&(s=i[0].timestamp)}if(e&&s){var r=e.renewConsentsTimestamp;if(r&&Date.now()/1e3>r&&s/1e3<r)return!0}}return!1}},{key:"shouldShowFirstLayer",value:(s=o(T().m(function e(t){var n,s,i,r,a,o,c,u,l;return T().w(function(e){for(;;)switch(e.n){case 0:if(s=this.ampInstance.isAmpEnabled(),i=this.variant===eU.CCPA,r=(null==(n=t.ccpa)?void 0:n.showOnPageLoad)||!1,a=i?r:!this.shouldAcceptAllImplicitly,!this.shouldManuallyResurface()){e.n=1;break}return e.a(2,!0);case 1:return e.n=2,this.settingsV2.shouldResurfaceForGpc();case 2:if(!e.v){e.n=3;break}return e.a(2,!0);case 3:if(!this.shouldAcceptAllImplicitly||i){e.n=4;break}return e.a(2,!1);case 4:if(!this.shouldDenyAllExplicitly||r){e.n=5;break}return e.a(2,!1);case 5:if(!(a&&this.isFirstTimePageVisit||this.shouldShowFirstLayerOnVersionChange||!e4.fetchUserActionPerformed()&&(!i||r)||s)){e.n=6;break}return e.a(2,!0);case 6:e.n=(l=this.variant)===eU.CCPA?7:l===eU.TCF?9:(eU.DEFAULT,11);break;case 7:if(!this.shouldShowFirstLayerForCcpa(null==(o=t.ccpa)?void 0:o.reshowCMP,null==(c=t.ccpa)?void 0:c.reshowAfterDays)){e.n=8;break}return e.a(2,!0);case 8:case 10:return e.a(3,12);case 9:if(null==(u=this.settingsV2.getTcfData())||!u.shouldResurfaceUI()){e.n=10;break}return e.a(2,!0);case 11:if(!this.shouldForceReshowGDPRBanner()){e.n=12;break}return e.a(2,!0);case 12:return e.a(2,!1)}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"shouldForceReshowGDPRBanner",value:function(){var e=this.settingsV2.core;if(!e)return!1;var t=e.reshowBanner,n=ta(this.settingsV2.getServicesData().reduce(function(e,t){return[].concat(O(e),O(t.consent.history))},[]));if(t>0&&n.length>0){var s=new Date(n[0].timestamp);return s.setMonth(s.getMonth()+t),(new Date).getTime()-s.getTime()>=0}return!1}},{key:"shouldShowPrivacyButton",value:function(e){var t=window.location.href,n=!e.privacyButtonUrls||0===e.privacyButtonUrls.contains.length;return e.privacyButtonUrls&&e.privacyButtonUrls.contains.length>0&&e.privacyButtonUrls.contains.some(function(e){return t.includes(e)})&&(n=!0),e.privacyButtonIsVisible&&n}},{key:"resolveUiVariant",value:(n=o(T().m(function e(t){return T().w(function(e){for(;;)switch(e.n){case 0:if(null===this.variant){e.n=1;break}return e.a(2,this.variant);case 1:return e.n=2,this.settingsV2.isCcpaAvailable();case 2:if(!e.v){e.n=3;break}this.variant=eU.CCPA,e.n=4;break;case 3:this.variant=t?eU.TCF:eU.DEFAULT;case 4:return e.a(2,this.variant)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"resolveUiInitialLayer",value:(t=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.n){case 0:return n=this.shouldShowPrivacyButton(t),e.n=1,this.shouldShowNone();case 1:if(!e.v){e.n=2;break}return e.a(2,n?eV.PRIVACY_BUTTON:eV.NONE);case 2:return e.n=3,this.shouldShowFirstLayer(t);case 3:if(!e.v){e.n=4;break}return e.a(2,eV.FIRST_LAYER);case 4:if(!n){e.n=5;break}return e.a(2,eV.PRIVACY_BUTTON);case 5:return e.a(2,eV.NONE)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"resolveUIOptions",value:(e=o(T().m(function e(t){var n,s,i;return T().w(function(e){for(;;)switch(e.n){case 0:if(s=this.ampInstance.isAmpEnabled(),null!==this.variant){e.n=2;break}return e.n=1,this.resolveUiVariant(t.tcf2Enabled);case 1:this.variant=e.v;case 2:if(this.variant!==eU.CCPA&&e4.clearCcpa(),this.variant!==eU.TCF&&e4.clearTcf(),null==(n=this.initOptions)||!n.suppressCmpDisplay){e.n=3;break}i=eV.NONE,e.n=5;break;case 3:return e.n=4,this.resolveUiInitialLayer(t);case 4:i=e.v;case 5:return this.selectedLayer=i,e.a(2,{ampEnabled:s,initialLayer:this.selectedLayer,variant:this.variant})}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"shouldShowFirstLayerForCcpa",value:function(e){var t,n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:365,i=this.settingsV2.legacySettings,r=(n=e4.getCcpaData())?((new Date).getTime()-n.timestamp)/864e5:0;return i||void 0!==e?null!=(t=null!=e?e:null==i?void 0:i.ccpa.reshowCMP)&&t&&r>s:r>s}}],[{key:"getInstance",value:function(){return a.instance||(a.instance=new a),a.instance}},{key:"resetInstance",value:function(){a.instance.selectedLayer=null,a.instance.variant=null,a.instance.shouldAcceptAllImplicitly=null,a.instance.initOptions=null}}])}();g(rO,"instance",void 0);var rN=Object.freeze({initialize:function({modulePath:e=".",importFunctionName:t="__import__"}={}
1){try{self[t]=Function("u","return import(u)")}catch(i){let n=new URL(e,location),s=e=>{URL.revokeObjectURL(e.src),e.remove()};self[t]=e=>new Promise((i,r)=>{let a=new URL(e,n);if(self[t].moduleMap[a])return i(self[t].moduleMap[a]);let o=new Blob([`import * as m from '${a}';`,`${t}.moduleMap['${a}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(o),onerror(){r(Error(`Failed to import: ${e}`)),s(c)},onload(){i(self[t].moduleMap[a]),s(c)}});document.head.appendChild(c)}),self[t].moduleMap={}}}});function rD(e,t){return Object.keys(t).forEach(function(n){"default"===n||"__esModule"===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),e}function rb(e,t,n,s){Object.defineProperty(e,t,{get:n,set:s,enumerable:!0,configurable:!0})}var rL={},rw={};rb(rw,"Base64Url",function(){return rx});var rR={},rP={};rb(rP,"DecodingError",function(){return rk});var rk=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="DecodingError",n}return S(e,L(Error)),d(e)}(),rV={};rb(rV,"EncodingError",function(){return rU});var rU=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="EncodingError",n}return S(e,L(Error)),d(e)}(),rM={};rb(rM,"GVLError",function(){return rF});var rF=function(){function e(t){var n;return u(this,e),(n=c(this,e,[t])).name="GVLError",n}return S(e,L(Error)),d(e)}(),rG={};rb(rG,"TCModelError",function(){return rB});var rB=function(){function e(t,n){var s,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return u(this,e),(s=c(this,e,["invalid value ".concat(n," passed for ").concat(t," ").concat(i)])).name="TCModelError",s}return S(e,L(Error)),d(e)}();rD(rR,rP),rD(rR,rV),rD(rR,rM),rD(rR,rG);var rx=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){if(!/^[0-1]+$/.test(e))throw new rU("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",s=0;s<e.length;s+=this.BASIS)n+=this.DICT[parseInt(e.substr(s,this.BASIS),2)];return n}},{key:"decode",value:function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new rk("Invalidly encoded Base64URL string");for(var t="",n=0;n<e.length;n++){var s=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-s.length)+s}return t}}]);rx.DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",rx.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]]),rx.BASIS=6,rx.LCM=24;var rH={};rb(rH,"BitLength",function(){return am});var rj={},rY={};rb(rY,"ConsentLanguages",function(){return rJ});var rJ=function(){function e(){u(this,e)}return d(e,[{key:"has",value:function(t){return e.langSet.has(t)}},{key:"parseLanguage",value:function(t){var n=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==n.length){if(e.langSet.has(t))return t;if(e.langSet.has(n))return n;var s=n+"-"+n;if(e.langSet.has(s))return s;var i,r=h(e.langSet);try{for(r.s();!(i=r.n()).done;){var a=i.value;if(-1!==a.indexOf(t)||-1!==a.indexOf(n))return a}}catch(e){r.e(e)}finally{r.f()}}throw Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])}();rJ.langSet=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"]);var rW={};rb(rW,"Fields",function(){return rK});var rK=d(function e(){u(this,e)});rK.cmpId="cmpId",rK.cmpVersion="cmpVersion",rK.consentLanguage="consentLanguage",rK.consentScreen="consentScreen",rK.created="created",rK.supportOOB="supportOOB",rK.isServiceSpecific="isServiceSpecific",rK.lastUpdated="lastUpdated",r
1K.numCustomPurposes="numCustomPurposes",rK.policyVersion="policyVersion",rK.publisherCountryCode="publisherCountryCode",rK.publisherCustomConsents="publisherCustomConsents",rK.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",rK.publisherLegitimateInterests="publisherLegitimateInterests",rK.publisherConsents="publisherConsents",rK.publisherRestrictions="publisherRestrictions",rK.purposeConsents="purposeConsents",rK.purposeLegitimateInterests="purposeLegitimateInterests",rK.purposeOneTreatment="purposeOneTreatment",rK.specialFeatureOptins="specialFeatureOptins",rK.useNonStandardTexts="useNonStandardTexts",rK.vendorConsents="vendorConsents",rK.vendorLegitimateInterests="vendorLegitimateInterests",rK.vendorListVersion="vendorListVersion",rK.vendorsAllowed="vendorsAllowed",rK.vendorsDisclosed="vendorsDisclosed",rK.version="version";var rX={};rb(rX,"PurposeRestriction",function(){return r$}),rb({},"Cloneable",function(){return rq});var rq=d(function e(){u(this,e)},[{key:"clone",value:function(){var e=this,t=new this.constructor;return Object.keys(this).forEach(function(n){var s=e.deepClone(e[n]);void 0!==s&&(t[n]=s)}),t}},{key:"deepClone",value:function(e){var t=D(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 n,s=[],i=h(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;s.push(this.deepClone(r))}}catch(e){i.e(e)}finally{i.f()}return e instanceof Array?s:new e.constructor(s)}var a={};for(var o in e)e.hasOwnProperty(o)&&(a[o]=this.deepClone(e[o]));return a}}}]),rQ={};rb(rQ,"RestrictionType",function(){return rz});var rz=((an={})[an.NOT_ALLOWED=0]="NOT_ALLOWED",an[an.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",an[an.REQUIRE_LI=2]="REQUIRE_LI",an),r$=function(){function e(t,n){var s;return u(this,e),s=c(this,e),void 0!==t&&(s.purposeId=t),void 0!==n&&(s.restrictionType=n),s}return S(e,rq),d(e,[{key:"hash",get:function(){if(!this.isValid())throw Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(e.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===rz.NOT_ALLOWED||this.restrictionType===rz.REQUIRE_CONSENT||this.restrictionType===rz.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}],[{key:"unHash",value:function(t){var n=t.split(this.hashSeparator),s=new e;if(2!==n.length)throw new rB("hash",t);return s.purposeId=parseInt(n[0],10),s.restrictionType=parseInt(n[1],10),s}}])}();r$.hashSeparator="-";var rZ={};rb(rZ,"PurposeRestrictionVector",function(){return r0});var r0=function(){function e(){var t;u(this,e);for(var n=arguments.length,s=Array(n),i=0;i<n;i++)s[i]=arguments[i];return(t=c(this,e,[].concat(s))).bitLength=0,t.map=new Map,t}return S(e,rq),d(e,[{key:"has",value:function(e){return this.map.has(e)}},{key:"isOkToHave",value:function(e,t,n){var s,i=!0;if(null!=(s=this.gvl)&&s.vendors){var r=this.gvl.vendors[n];if(r)if(e===rz.NOT_ALLOWED)i=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case rz.REQUIRE_CONSENT:i=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case rz.REQUIRE_LI:i=r.flexiblePurposes.includes(t)&&r.purposes.includes(t)}else i=!1;else i=!1}return i}},{key:"add",value:function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}},{key:"restrictPurposeToLegalBasis",value:function(e){var t=Array.from(this.gvl.vendorIds),n=e.hash,s=t[t.length-1],i=O(Array(s).keys()).map(function(e){return e+1});if(this.has(n))for(var r=1;r<=s;r++)this.map.get(n).add(r);else this.map.set(n,new Set(i)),this.bitLength=0}},{key:"getVendors",value:function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=Array.from(this.map.get(n)))}else{var s=new Set;
1this.map.forEach(function(e){e.forEach(function(e){s.add(e)})}),t=Array.from(s)}return t.sort(function(e,t){return e-t})}},{key:"getRestrictionType",value:function(e,t){var n;return this.getRestrictions(e).forEach(function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)}),n}},{key:"vendorHasRestriction",value:function(e,t){for(var n=!1,s=this.getRestrictions(e),i=0;i<s.length&&!n;i++)n=t.isSameAs(s[i]);return n}},{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(n,s){e?n.has(e)&&t.push(r$.unHash(s)):t.push(r$.unHash(s))}),t}},{key:"getPurposes",value:function(){var e=new Set;return this.map.forEach(function(t,n){e.add(r$.unHash(n).purposeId)}),Array.from(e)}},{key:"remove",value:function(e,t){var n=t.hash,s=this.map.get(n);s&&(s.delete(e),0==s.size&&(this.map.delete(n),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,n){var s=r$.unHash(n);Array.from(e).forEach(function(n){t.isOkToHave(s.restrictionType,s.purposeId,n)||e.delete(n)})}))}},{key:"isEmpty",value:function(){return 0===this.map.size}},{key:"numRestrictions",get:function(){return this.map.size}}])}(),r1={};rb(r1,"DeviceDisclosureStorageAccessType",function(){return r2});var r2=((as={}).COOKIE="cookie",as.WEB="web",as.APP="app",as),r3={};rb(r3,"Segment",function(){return r4});var r4=((ai={}).CORE="core",ai.VENDORS_DISCLOSED="vendorsDisclosed",ai.VENDORS_ALLOWED="vendorsAllowed",ai.PUBLISHER_TC="publisherTC",ai),r6={};rb(r6,"SegmentIDs",function(){return r5});var r5=d(function e(){u(this,e)});r5.ID_TO_KEY=[r4.CORE,r4.VENDORS_DISCLOSED,r4.VENDORS_ALLOWED,r4.PUBLISHER_TC],r5.KEY_TO_ID=g(g(g(g({},r4.CORE,0),r4.VENDORS_DISCLOSED,1),r4.VENDORS_ALLOWED,2),r4.PUBLISHER_TC,3);var r7={};rb(r7,"Vector",function(){return ay});var r8,r9,ae,at,an,as,ai,ar,aa,ao,ac,au,al,ad,ah,ag,af,ap,aS,av,aE,aI,aT,aC,a_,ay=function(){function e(){var t;u(this,e);for(var n=arguments.length,s=Array(n),i=0;i<n;i++)s[i]=arguments[i];return(t=c(this,e,[].concat(s))).bitLength=0,t.maxId_=0,t.set_=new Set,t}return S(e,rq),d(e,[{key:Symbol.iterator,value:T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:t=1;case 1:if(!(t<=this.maxId)){e.n=3;break}return e.n=2,[t,this.has(t)];case 2:t++,e.n=1;break;case 3:return e.a(2)}},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"===D(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;return"object"===D(e)&&Object.keys(e).every(function(n){var s=Number.isInteger(parseInt(n,10));return(s=s&&t.isValidNumber(e[n].id))&&void 0!==e[n].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 rB("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)}},{key:"unsetAll",value:function(e){this.unset(e)}}])}(),aA={};rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(aA,{}),rD(rj,rY),rD(rj,rW),rD(rj,{}),rD(rj,{}),rD(rj,rX),rD(rj,rZ),rD(rj,r1),rD(rj,{}),rD(rj,rQ),rD(rj,r3),rD(rj,r6),rD(rj,r7),rD(rj,aA);var am=d(function e(){u(this,e)});ar=rK.cmpId,aa=rK.cmpVersion,ao=rK.consentLanguage,ac=rK.consentScreen,au=rK.created,al=rK.isServiceSpecific,ad=rK.lastUpdated,ah=rK.policyVersion,ag=rK.publisherCountryCode,af=rK.publisherLegitimateInterests,ap=rK.publisherConsents,aS=rK.purposeConsents,av=rK.purposeLegitimateInterests,aE=rK.purposeOneTreatment,aI=rK.specialFeatureOptins,aT=rK.useNonStandardTexts,aC=rK.vendorListVersion,a_=rK.version,am[ar]=12,am[aa]=12,am[ao]=12,am[ac]=6,am[au]=36,am[al]=1,am[ad]=36,am[a
1h]=6,am[ag]=12,am[af]=24,am[ap]=24,am[aS]=24,am[av]=24,am[aE]=1,am[aI]=12,am[aT]=1,am[aC]=12,am[a_]=6,am.anyBoolean=1,am.encodingType=1,am.maxId=16,am.numCustomPurposes=6,am.numEntries=12,am.numRestrictions=12,am.purposeId=6,am.restrictionType=2,am.segmentType=3,am.singleOrRange=1,am.vendorId=16;var aO={};rb(aO,"SegmentEncoder",function(){return az});var aN={},aD={};rb(aD,"BooleanEncoder",function(){return ab});var ab=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){return String(Number(e))}},{key:"decode",value:function(e){return"1"===e}}]),aL={};rb(aL,"DateEncoder",function(){return aP});var aw={};rb(aw,"IntEncoder",function(){return aR});var aR=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new rU("".concat(e," too large to encode into ").concat(t));return n.length<t&&(n="0".repeat(t-n.length)+n),n}},{key:"decode",value:function(e,t){if(t!==e.length)throw new rk("invalid bit length");return parseInt(e,2)}}]),aP=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){return aR.encode(Math.round(e.getTime()/100),t)}},{key:"decode",value:function(e,t){if(t!==e.length)throw new rk("invalid bit length");var n=new Date;return n.setTime(100*aR.decode(e,t)),n}}]),ak={};rb(ak,"FieldEncoderMap",function(){return aJ});var aV={};rb(aV,"FixedVectorEncoder",function(){return aU});var aU=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){for(var n="",s=1;s<=t;s++)n+=ab.encode(e.has(s));return n}},{key:"decode",value:function(e,t){if(e.length!==t)throw new rk("bitfield encoding length mismatch");for(var n=new ay,s=1;s<=t;s++)ab.decode(e[s-1])&&n.set(s);return n.bitLength=e.length,n}}]),aM={};rb(aM,"LangEncoder",function(){return aF});var aF=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){var n=(e=e.toUpperCase()).charCodeAt(0)-65,s=e.charCodeAt(1)-65;if(n<0||n>25||s<0||s>25)throw new rU("invalid language code: ".concat(e));if(t%2==1)throw new rU("numBits must be even, ".concat(t," is not valid"));return t/=2,aR.encode(n,t)+aR.encode(s,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new rk("invalid bit length for language");var n=e.length/2,s=aR.decode(e.slice(0,n),n)+65,i=aR.decode(e.slice(n),n)+65;return String.fromCharCode(s)+String.fromCharCode(i)}}]),aG={};rb(aG,"PurposeRestrictionVectorEncoder",function(){return aB});var aB=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){var t=aR.encode(e.numRestrictions,am.numRestrictions);if(!e.isEmpty()){var n=function(t,n){for(var s=t+1;s<=n;s++)if(e.gvl.vendorIds.has(s))return s;return t};e.getRestrictions().forEach(function(s){t+=aR.encode(s.purposeId,am.purposeId),t+=aR.encode(s.restrictionType,am.restrictionType);for(var i=e.getVendors(s),r=i.length,a=0,o=0,c="",u=0;u<r;u++){var l=i[u];if(0===o&&(a++,o=l),u===r-1||i[u+1]>n(l,i[r-1])){var d=l!==o;c+=ab.encode(d),c+=aR.encode(o,am.vendorId),d&&(c+=aR.encode(l,am.vendorId)),o=0}}t+=aR.encode(a,am.numEntries),t+=c})}return t}},{key:"decode",value:function(e){var t=0,n=new r0,s=aR.decode(e.substr(t,am.numRestrictions),am.numRestrictions);t+=am.numRestrictions;for(var i=0;i<s;i++){var r=aR.decode(e.substr(t,am.purposeId),am.purposeId);t+=am.purposeId;var a=aR.decode(e.substr(t,am.restrictionType),am.restrictionType);t+=am.restrictionType;var o=new r$(r,a),c=aR.decode(e.substr(t,am.numEntries),am.numEntries);t+=am.numEntries;for(var u=0;u<c;u++){var l=ab.decode(e.substr(t,am.anyBoolean));t+=am.anyBoolean;var d=aR.decode(e.substr(t,am.vendorId),am.vendorId);if(t+=am.vendorId,l){var h=aR.decode(e.substr(t,am.vendorId),am.vendorId);if(t+=am.vendorId,h<d)throw new rk("Invalid RangeEntry: endVendorId ".concat(h," is less than ").concat(d));for(var g=d;g<=h;g++)n.add(g,o)}else n.add(d,o)}}return n.bitLength=t,n}}]),ax={};rb(ax,"VendorVectorEncoder",function(){return aY});var aH={};rb(aH,"VectorEncodingType",function(){return aj});var aj=((w={})[w.FIELD=0]="FIELD",w[w.RANGE=1]="RANGE",w),aY=d(function e(){u(this,e)},null,[{key:"encode",value:function(e){var t,n=[],s=[],i=aR.encode(e.maxId,am.maxId),r="",a=am.max
1Id+am.encodingType,o=a+e.maxId,c=2*am.vendorId+am.singleOrRange+am.numEntries,u=a+am.numEntries;return e.forEach(function(i,a){r+=ab.encode(i),(t=e.maxId>c&&u<o)&&i&&(e.has(a+1)?0===s.length&&(s.push(a),u+=am.singleOrRange,u+=am.vendorId):(s.push(a),u+=am.vendorId,n.push(s),s=[]))}),t?(i+=String(aj.RANGE),i+=this.buildRangeEncoding(n)):(i+=String(aj.FIELD),i+=r),i}},{key:"decode",value:function(e,t){var n,s=0,i=aR.decode(e.substr(s,am.maxId),am.maxId);s+=am.maxId;var r=aR.decode(e.charAt(s),am.encodingType);if(s+=am.encodingType,r===aj.RANGE){if(n=new ay,1===t){if("1"===e.substr(s,1))throw new rk("Unable to decode default consent=1");s++}var a=aR.decode(e.substr(s,am.numEntries),am.numEntries);s+=am.numEntries;for(var o=0;o<a;o++){var c=ab.decode(e.charAt(s));s+=am.singleOrRange;var u=aR.decode(e.substr(s,am.vendorId),am.vendorId);if(s+=am.vendorId,c){var l=aR.decode(e.substr(s,am.vendorId),am.vendorId);s+=am.vendorId;for(var d=u;d<=l;d++)n.set(d)}else n.set(u)}}else{var h=e.substr(s,i);s+=i,n=aU.decode(h,i)}return n.bitLength=s,n}},{key:"buildRangeEncoding",value:function(e){var t=e.length,n=aR.encode(t,am.numEntries);return e.forEach(function(e){var t=1===e.length;n+=ab.encode(!t),n+=aR.encode(e[0],am.vendorId),t||(n+=aR.encode(e[1],am.vendorId))}),n}}]);function aJ(){var e;return g(g(g(g(g(g(g(g(g(g(e={},rK.version,aR),rK.created,aP),rK.lastUpdated,aP),rK.cmpId,aR),rK.cmpVersion,aR),rK.consentScreen,aR),rK.consentLanguage,aF),rK.vendorListVersion,aR),rK.policyVersion,aR),rK.isServiceSpecific,ab),g(g(g(g(g(g(g(g(g(g(e,rK.useNonStandardTexts,ab),rK.specialFeatureOptins,aU),rK.purposeConsents,aU),rK.purposeLegitimateInterests,aU),rK.purposeOneTreatment,ab),rK.publisherCountryCode,aF),rK.vendorConsents,aY),rK.vendorLegitimateInterests,aY),rK.publisherRestrictions,aB),"segmentType",aR),g(g(g(g(g(g(g(e,rK.vendorsDisclosed,aY),rK.vendorsAllowed,aY),rK.publisherConsents,aU),rK.publisherLegitimateInterests,aU),rK.numCustomPurposes,aR),rK.publisherCustomConsents,aU),rK.publisherCustomLegitimateInterests,aU)}rD(aN,aD),rD(aN,aL),rD(aN,ak),rD(aN,aV),rD(aN,aw),rD(aN,aM),rD(aN,aG),rD(aN,aH),rD(aN,ax);var aW={},aK={};rb(aK,"FieldSequence",function(){return aX});var aX=d(function e(){u(this,e),this[1]=g({},r4.CORE,[rK.version,rK.created,rK.lastUpdated,rK.cmpId,rK.cmpVersion,rK.consentScreen,rK.consentLanguage,rK.vendorListVersion,rK.purposeConsents,rK.vendorConsents]),this[2]=g(g(g(g({},r4.CORE,[rK.version,rK.created,rK.lastUpdated,rK.cmpId,rK.cmpVersion,rK.consentScreen,rK.consentLanguage,rK.vendorListVersion,rK.policyVersion,rK.isServiceSpecific,rK.useNonStandardTexts,rK.specialFeatureOptins,rK.purposeConsents,rK.purposeLegitimateInterests,rK.purposeOneTreatment,rK.publisherCountryCode,rK.vendorConsents,rK.vendorLegitimateInterests,rK.publisherRestrictions]),r4.VENDORS_DISCLOSED,[rK.vendorsDisclosed]),r4.PUBLISHER_TC,[rK.publisherConsents,rK.publisherLegitimateInterests,rK.numCustomPurposes,rK.publisherCustomConsents,rK.publisherCustomLegitimateInterests]),r4.VENDORS_ALLOWED,[rK.vendorsAllowed])}),aq={};rb(aq,"SegmentSequence",function(){return aQ});var aQ=d(function e(t,n){if(u(this,e),this[1]=[r4.CORE],this[2]=[r4.CORE],2===t.version)if(t.isServiceSpecific)this[2].push(r4.VENDORS_DISCLOSED),this[2].push(r4.PUBLISHER_TC);else{var s=!(!n||!n.isForVendors);s&&!0!==t[rK.supportOOB]||this[2].push(r4.VENDORS_DISCLOSED),s&&(t[rK.supportOOB]&&t[rK.vendorsAllowed].size>0&&this[2].push(r4.VENDORS_ALLOWED),this[2].push(r4.PUBLISHER_TC))}});rD(aW,aK),rD(aW,aq),rD(aW,{});var az=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){var n,s=this;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new rU("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var i="";t!==r4.CORE&&(i=aR.encode(r5.KEY_TO_ID[t],am.segmentType));var r=aJ();return n.forEach(function(n){var a=e[n],o=r[n],c=am[n];void 0===c&&s.isPublisherCustom(n)&&(c=Number(e[rK.numCustomPurposes]));try{i+=o.encode(a,c)}catch(e){throw new rU("Error encoding ".concat(t,"->").concat(n,": ").concat(e.message))}}),rx.encode(i)}},{key:"decode",value:function(e,t,n){var s=this,i=rx.decode(e),r=0;
1n===r4.CORE&&(t.version=aR.decode(i.substr(r,am[rK.version]),am[rK.version])),n!==r4.CORE&&(r+=am.segmentType);var a=this.fieldSequence[String(t.version)][n],o=aJ();return a.forEach(function(e){var n=o[e],a=am[e];if(void 0===a&&s.isPublisherCustom(e)&&(a=Number(t[rK.numCustomPurposes])),0!==a){var c=i.substr(r,a);if(t[e]=n===aY?n.decode(c,t.version):n.decode(c,a),Number.isInteger(a))r+=a;else{if(!Number.isInteger(t[e].bitLength))throw new rk(e);r+=t[e].bitLength}}}),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}]);az.fieldSequence=new aX;var a$={};rb(a$,"SemanticPreEncoder",function(){return aZ});var aZ=d(function e(){u(this,e)},null,[{key:"process",value:function(e,t){var n=e.gvl;if(!n)throw new rU("Unable to encode TCModel without a GVL");if(!n.isReady)throw new rU("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.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 s=e.version-1;if(!this.processor[s])throw new rU("Invalid version: ".concat(e.version));return this.processor[s](e,n)}}]);aZ.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach(function(n,s){n.forEach(function(i,r){if(i){var a=t.vendors[r];if(!a||a.deletedDate)n.unset(r);else if(0===a[s].length)if("legIntPurposes"===s&&0===a.purposes.length&&0===a.legIntPurposes.length&&a.specialPurposes.length>0)n.set(r);else if("legIntPurposes"===s&&a.purposes.length>0&&0===a.legIntPurposes.length&&a.specialPurposes.length>0)n.set(r);else if(e.isServiceSpecific)if(0===a.flexiblePurposes.length)n.unset(r);else{for(var o=e.publisherRestrictions.getRestrictions(r),c=!1,u=0,l=o.length;u<l&&!c;u++)c=o[u].restrictionType===rz.REQUIRE_CONSENT&&"purposes"===s||o[u].restrictionType===rz.REQUIRE_LI&&"legIntPurposes"===s;c||n.unset(r)}else n.unset(r)}})}),e.vendorsDisclosed.set(t.vendors),e}],rD(rL,rw),rD(rL,rH),rD(rL,{}),rD(rL,aO),rD(rL,a$),rD(rL,aN),rD(rL,aW),rb({},"GVL",function(){return a1}),rb({},"Json",function(){return a0});var a0=d(function e(){u(this,e)},null,[{key:"absCall",value:function(e,t,n,s){return new Promise(function(i,r){var a=new XMLHttpRequest;a.withCredentials=n,a.addEventListener("load",function(){if(a.readyState==XMLHttpRequest.DONE)if(a.status>=200&&a.status<300){var e=a.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}i(e)}else r(Error("HTTP Status: ".concat(a.status," response type: ").concat(a.responseType)))}),a.addEventListener("error",function(){r(Error("error"))}),a.addEventListener("abort",function(){r(Error("aborted"))}),null===t?a.open("GET",e,!0):a.open("POST",e,!0),a.responseType="json",a.timeout=s,a.ontimeout=function(){r(Error("Timeout "+s+"ms "+e))},a.send(t)})}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,s)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}]),a1=function(){var e,t;function n(e,t){u(this,n),(s=c(this,n)).isReady_=!1,s.isLatest=!1;var s,i=n.baseUrl,r=null==t?void 0:t.language;if(r)try{r=n.consentLanguages.parseLanguage(r)}catch(e){throw new rF("Error during parsing the language: "+e.message)}if(s.lang_=r||n.DEFAULT_LANGUAGE,s.cacheLang_=r||n.DEFAULT_LANGUAGE,s.isVendorList(e))s.populate(e),s.readyPromise=Promise.resolve();else{if(!i)throw new rF("must specify GVL.baseUrl before loading GVL json");e>0?n.CACHE.has(e)?(s.populate(n.CACHE.get(e)),s.readyPromise=Promise.resolve()):(i+=n.versionedFilename.replace("[VERSION]",String(e)),s.readyPromise=s.fetchJson(i)):n.CACHE.has(n.LATEST_CACHE_KEY)?(s.populate(n.CACHE.get(n.LATEST_CACHE_KEY)),s.readyPromise=Promise.resolve()):(s.isLatest=!0,s.readyPromise=s.fetchJson(i+n.latestFilename))}return s}return S(n,rq),d(n,[{key:"cacheLanguage",value:function(){n.LANGUAGE_CACHE.has(this.cacheLang_)||n.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,standardTexts:this.standardTexts})}},{key:"fetchJson",value:(t=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=this,e.n=1,a0.fetch(t);case 1:n.populate.call(n,e.v),e.n=3;break;case 2:throw e.p=2,new rF(e.v.message);case 3:return e.a(2)}},e,this,[[0,2]])})),function(e){return t.apply(this,arguments)})},{key:"getJson",value:function(){return I(I(I({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()}:{}),this.standardTexts?{standardTexts:I({},this.standardTexts)}:{}),{},{vendors:this.cloneVendors()})}},{key:"cloneSpecialFeatures",value:function(){for(var e={},t=0,s=Object.keys(this.specialFeatures);t<s.length;t++){var i=s[t];e[i]=n.cloneFeature(this.specialFeatures[i])}return e}},{key:"cloneFeatures",value:function(){for(var e={},t=0,s=Object.keys(this.features);t<s.length;t++){var i=s[t];e[i]=n.cloneFeature(this.features[i])}return e}},{key:"cloneStacks",value:function(){for(var e={},t=0,s=Object.keys(this.stacks);t<s.length;t++){var i=s[t];e[i]=n.cloneStack(this.stacks[i])}return e}},{key:"cloneDataCategories",value:function(){for(var e={},t=0,s=Object.keys(this.dataCategories);t<s.length;t++){var i=s[t];e[i]=n.cloneDataCategory(this.dataCategories[i])}return e}},{key:"cloneSpecialPurposes",value:function(){for(var e={},t=0,s=Object.keys(this.specialPurposes);t<s.length;t++){var i=s[t];e[i]=n.clonePurpose(this.specialPurposes[i])}return e}},{key:"clonePurposes",value:function(){for(var e={},t=0,s=Object.keys(this.purposes);t<s.length;t++){var i=s[t];e[i]=n.clonePurpose(this.purposes[i])}return e}},{key:"cloneVendors",value:function(){for(var e={},t=0,s=Object.keys(this.fullVendorList);t<s.length;t++){var i=s[t];e[i]=n.cloneVendor(this.fullVendorList[i])}return e}},{key:"changeLanguage",value:(e=o(T().m(function e(t){var s,i,r,a,o;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:s=t,e.p=1,s=n.consentLanguages.parseLanguage(t),e.n=3;break;case 2:throw e.p=2,new rF("Error during parsing the language: "+e.v.message);case 3:if(i=t.toUpperCase(),s.toLowerCase()!==n.DEFAULT_LANGUAGE.toLowerCase()||n.LANGUAGE_CACHE.has(i)){e.n=4;break}return e.a(2);case 4:if(s===this.lang_){e.n=9;break}if(this.lang_=s,!n.LANGUAGE_CACHE.has(i)){e.n=5;break}for(a in r=n.LANGUAGE_CACHE.get(i))r.hasOwnProperty(a)&&(this[a]=r[a]);e.n=9;break;case 5:return o=n.baseUrl+n.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),e.p=6,e.n=7,this.fetchJson(o);case 7:this.cacheLang_=i,this.cacheLanguage(),e.n=9;break;case 8:throw e.p=8,new rF("unable to load language: "+e.v.message);case 9:return e.a(2)}},e,this,[[6,8],[1,2]])})),function(t){return e.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.standardTexts=e.standardTexts,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.vend
1ors,this.mapVendors(),this.isReady_=!0,this.isLatest&&n.CACHE.set(n.LATEST_CACHE_KEY,this.getJson()),n.CACHE.has(this.vendorListVersion)||n.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,n){var s=t.vendors_[String(n)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(function(e){t.byPurposeVendorMap[String(e)].consent.add(n)}),s.specialPurposes.forEach(function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)}),s.legIntPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)}),s.features.forEach(function(e){t.byFeatureVendorMap[String(e)].add(n)}),s.specialFeatures.forEach(function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)}),e[n]=s),e},{})}},{key:"getFilteredVendors",value:function(e,t,n,s){var i=this,r=e.charAt(0).toUpperCase()+e.slice(1),a={};return("purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)]).forEach(function(e){a[String(e)]=i.vendors[String(e)]}),a}},{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 n(this.getJson());return this.lang_!==n.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}}],[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new rF("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&&n.LANGUAGE_CACHE.size>0?(n.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(n.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(n.CACHE.delete(e),t=!0):void 0===e&&(n.CACHE=new Map,t=!0),t}},{key:"clonePurpose",value:function(e){return I(I({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 I(I({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 I(I({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{},{purposes:I({},e.purposes),specialPurposes:I({},e.specialPurposes)})}},{key:"cloneVendorUrls",value:function(e){return e.map(function(e){return I({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})})}},{key:"cloneVendor",value:function(e){return I(I(I(I(I(I(I(I(I(I(I({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"===D(e)&&"function"==typeof e.narrowVendorsTo}}])}();a1.LANGUAGE_CACHE=new Map,a1.CACHE=new Map,a1.LATEST_CACHE_KEY=0,a1.DEFAULT_LANGUAGE="EN",a1.consentLanguages=new rJ,a1.latestFilename="vendor-list.json",a1.versionedFilename="archives/vendor-list-v[VERSION].json",a1.languageFilename="purposes-[LANG].json",rb({},"TCModel",function(){return a2});var a2=function(){function e(t){var n;return u(this,e),(n=c(this,e)).isServiceSpecific_=!0,n.supportOOB_=!1,n.useNonStandardTexts_=!1,n.purposeOneTreatment_=!1,n.publisherCountryCode_="AA",n.version_=2,n.consentScreen_=0,n.policyVersion_=5,n.consentLanguage_="EN",n.cmpId_=0,n.cmpVersion_=0,n.vendorListVersion_=0,n.numCustomPurposes_=0,n.addtlConsent_="",n.enableAdvertiserConsentMode_=!1,n.specialFeatureOptins=new ay,n.purposeConsents=new ay,n.purposeLegitimateInterests=new ay,n.publisherConsents=new ay,n.publisherLegitimateInterests=new ay,n.publisherCustomConsents=new ay,n.publisherCustomLegitimateInterests=new ay,n.vendorConsents=new ay,n.vendorLegitimateInterests=new ay,n.vendorsDisclosed=new ay,n.vendorsAllowed=new ay,n.publisherRestrictions=new r0,t&&(n.gvl=t),n.updated(),n}return S(e,rq),d(e,[{key:"gvl",get:function(){return this.gvl_},set:function(e){a1.isInstanceOf(e)||(e=new a1(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}},{key:"cmpId",get:function(){return this.cmpId_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>1))throw new rB("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw new rB("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw new rB("consentScreen",e);this.consentScreen_=e}}
1,{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 rB("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=0|Number(e))<0)throw new rB("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 rB("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:"addtlConsent",get:function(){return this.addtlConsent_},set:function(e){this.addtlConsent_=e||""}},{key:"enableAdvertiserConsentMode",get:function(){return this.enableAdvertiserConsentMode_},set:function(e){this.enableAdvertiserConsentMode_=!0===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:"setAllPublisherConsents",value:function(){this.publisherConsents.set(this.gvl.purposes)}},{key:"unsetAllPublisherConsents",value:function(){this.publisherConsents.empty()}},{key:"setAllPublisherLegitimateInterests",value:function(){this.publisherLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPublisherLegitimateInterests",value:function(){this.publisherLegitimateInterests.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.setAllPublisherConsents(),this.setAllPublisherLegitimateInterests(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllPublisherConsents(),this.unsetAllPublisherLegitimateInterests(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;return"object"===D(this.customPurposes)&&(e=parseInt(Object.keys(this.customPurposes).sort(function(e,t){return Number(e)-Number(t)}).pop(),10)),e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new rB("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}}])}();a2.consentLanguages=a1.consentLanguages,rb({},"TCString",function(){return a3});var a3=d(function e(){u(this,e)},null,[{key:"encode",value:function(e,t){var n,s="";return e=aZ.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new aQ(e,t)[""+e.version]
1).forEach(function(t,i){var r="";i<n.length-1&&(r="."),s+=az.encode(e,t)+r}),s}},{key:"decode",value:function(e,t){var n=e.split("."),s=n.length;t||(t=new a2);for(var i=0;i<s;i++){var r=n[i],a=rx.decode(r.charAt(0)).substr(0,am.segmentType),o=r5.ID_TO_KEY[aR.decode(a,am.segmentType).toString()];az.decode(r,t,o)}return t}}]),a4=function(e,t,n){return t?e.map(function(e){return t&&t[e.id]?I(I({},e),{},{name:"".concat(e.name," (").concat(n,": ").concat(t[e.id],")")}):e}):e},a6=function(e,t,n,s,i,r,a){if(!e)return[];var o=e.gvl,c=e.publisherRestrictions,u=e.vendorConsents,l=e.vendorLegitimateInterests;if(!o)return[];var d=e4.fetchTCFVendorsDisclosedObject(o.vendors),h=ol(c);return Object.values(o.vendors).map(function(e){var c,g,f,p=ti(e.purposes,o.purposes),S=ti(e.legIntPurposes,o.purposes);i&&(p=p.filter(function(e){return 1!==e.id}));var v=on(e.id,d),E=p.map(function(e){return e}),T=S.map(function(e){return e});h.forEach(function(t){var n=t.purposeId,s=t.restrictionType,i=e.flexiblePurposes.indexOf(n)>-1;switch(s){case rz.NOT_ALLOWED:E=E.filter(function(e){return e.id!==n}),T=T.filter(function(e){return e.id!==n});break;case rz.REQUIRE_CONSENT:T=T.filter(function(e){return e.id!==n||(i&&E.push(e),!1)});break;case rz.REQUIRE_LI:E=E.filter(function(e){return e.id!==n||(i&&T.push(e),!1)})}});var C="",_="";e.urls&&e.urls.forEach(function(e){var t=e.langId,n=e.legIntClaim,s=e.privacy,i=t&&o.language&&t.toLowerCase()===o.language.toLowerCase();s&&(C&&!i||(C=s)),n&&(_&&!i||(_=n))});var y,A=r.includes(e.id),m=null==(c=e.dataDeclaration)?void 0:c.reduce(function(e,t){var n=o.dataCategories&&o.dataCategories[t];if(n){var s=I(I({},n),{},{id:n.id.toString()});return e?[].concat(O(e),[s]):[s]}return e},[]);e.dataRetention&&e.dataRetention.stdRetention&&(y=[{id:e.dataRetention.stdRetention.toString(),name:e.dataRetention.stdRetention.toString()}]);var N=ti(e.specialFeatures.filter(function(e){return!t.includes(e)}),o.specialFeatures);return I(I(I({consent:v?u.has(e.id):null,cookieMaxAgeSeconds:e.cookieMaxAgeSeconds&&e.cookieMaxAgeSeconds>=0?e.cookieMaxAgeSeconds:null,cookieRefresh:tt(e.cookieRefresh,null)},m&&{dataCategories:m}),y&&{dataRetention:y}),{},{deviceStorage:null,deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl||null,features:e.features.map(function(e){return{id:e,name:o.features[e].name}}),flexiblePurposes:ti(e.flexiblePurposes,o.purposes),id:e.id,legitimateInterestClaimUrl:_,legitimateInterestConsent:v?l.has(e.id):null,legitimateInterestPurposes:T,name:e.name,policyUrl:e.policyUrl,privacyUrl:C,purposes:a4(E,null==(g=e.dataRetention)?void 0:g.purposes,a),showConsentToggle:E.length>0&&n,showLegitimateInterestConsentToggle:T.length>0&&n&&!s,showVendorOutsideEU:A,specialFeatures:N,specialPurposes:a4(ti(e.specialPurposes,o.specialPurposes),null==(f=e.dataRetention)?void 0:f.specialPurposes,a),usesCookies:tt(e.usesCookies,!1),usesNonCookieAccess:tt(e.usesNonCookieAccess,null)})})},a5=function(e){return{legitimateInterestPurposes:(null==e?void 0:e.legIntPurposes)||[],notAllowedPurposes:(null==e?void 0:e.notAllowedPurposes)||[],purposes:(null==e?void 0:e.purposes)||[]}},a7=function(e){return Object.entries(e).map(function(e){var t=A(e,2),n=t[0],s=t[1];return{id:parseInt(n.replace("p",""),10),name:s}})},a8=function(e){return e||"/browser-sdk/".concat(eM,"/cookie-bridge.html")},a9=function(e){return e||"https://usercentrics.mgr.consensu.org:443"},oe=function(e,t){return t&&0!==e.length?tr(e.reduce(function(e,t){return e.concat(t.features.map(function(e){return e.id}))},[])).reduce(function(e,n){var s=t[n];return s?[].concat(O(e),[s]):e},[]):[]},ot=function(e,t){return!e||!t},on=function(e){return!0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e4.fetchTCFVendorsDisclosedObject())[e]},os=function(e,t){var n=tr(e.reduce(function(e,t){return e.concat(t.purposes.map(function(e){return e.id})).concat(t.legitimateInterestPurposes.map(function(e){return e.id}))},[]));return t?n.filter(function(e){return 1!==e}):n},oi=function(e,t,n,s,i,r,a,o,c){if(!e||!t||!n)return[];var u=os(s,a),l=ou(t,i,r),d=e4.fetchTCFData().vendors,h=e.purposeConsents,f=e.purposeLegitimateInterests,p=tr(s.map(function(e){return e.legitimateInterestPurposes.map(function(e){return e.id})}).reduce(function(e,t){return e.concat(t)},[])),S=tr(s.map(function(e){return e.purposes.map(function(e){return e.id})}).reduce(function(e,t){return e.concat(t)},[])),v=u.reduce(function(e,t){var n=s.filter(function(e){return e.purposes.find(function(e){return e.id===t})}),i=s.filter(function(e){return e.legitimateInterestPurposes.find(function(e){return e.id===t})});return I(I({},e),{},g({},t,n.length+i.length))},{});return u.reduce(function(e,t){var s=n[t];if(!s)return e;var i=l.find(function(e){return e.purposeIds.includes(t)});return[].concat(O(e),[{consent:d.length?h.has(t):null,description:s.description,descriptionLegal:s.descriptionLegal,id:s.id,illustrations:s.illustrations,isPartOfASelectedStack:!!i,legitimateInterestConsent:d.length?f.has(t):null,name:s.name,numberOfVendors:v[s.id]||0,showConsentToggle:S.includes(t)&&o,showLegitimateInterestToggle:1!==s.id&&p.includes(t)&&o&&!c,stackId:(null==i?void 0:i.id)||null}])},[])}
1,or=function(e){return{onATPListChanged:e.resurfaceATPListChanged,onIABLegalBasisChanged:e.resurfaceIABLegalBasisChanged,onPeriodEnded:e.resurfacePeriodEnded,onPurposeChanged:e.resurfacePurposeChanged,onVendorAdded:e.resurfaceVendorAdded}},oa=function(e,t){return tr(e.reduce(function(e,n){return e.concat(n.specialFeatures.filter(function(e){return!t.includes(e.id)}).map(function(e){return e.id}))},[]))},oo=function(e,t,n,s,i,r){if(!e||!t)return[];var a=oa(n,s),o=ou(t.stacks,s,i);return a.map(function(n){var s=t.specialFeatures[n],i=o.find(function(e){return e.specialFeatureIds.includes(n)});return{consent:e.specialFeatureOptins.has(n),description:s.description,descriptionLegal:s.descriptionLegal,id:s.id,illustrations:s.illustrations,isPartOfASelectedStack:!!i,name:s.name,showConsentToggle:r,stackId:(null==i?void 0:i.id)||null}})},oc=function(e,t){return e?tr(t.reduce(function(e,t){return e.concat(t.specialPurposes.map(function(e){return e.id}))},[])).reduce(function(t,n){var s=e[n];return s?[].concat(O(t),[{description:s.description,descriptionLegal:s.descriptionLegal,id:s.id,illustrations:s.illustrations,name:s.name}]):t},[]):[]},ou=function(e,t,n){return e?n.reduce(function(n,s){var i=e[s];return i?[].concat(O(n),[{description:i.description,id:i.id,name:i.name,purposeIds:i.purposes,specialFeatureIds:i.specialFeatures.filter(function(e){return!t.includes(e)})}]):n},[]):[]},ol=function(e){return(null==e?void 0:e.getRestrictions().map(function(e){return{purposeId:e.purposeId,restrictionType:e.restrictionType}}))||[]},od=function(e,t){return!(null==e||!e.timestamp)&&(Date.now()-e.timestamp)/864e5>t},oh=function(e,t){if(null==e||!e.acString||null==e||!e.acString.length)return!1;var n=null==e?void 0:e.acString.split("~")[1].split(".").filter(function(e){return""!==e}).map(function(e){return parseInt(e,10)}),s=null==e?void 0:e.acString.split("dv.")[1].split(".").filter(function(e){return""!==e}).map(function(e){return parseInt(e,10)}),i=[].concat(O(n),O(s)).sort(function(e,t){return e-t}),r=t.map(function(e){return e.id}).sort(function(e,t){return e-t});return!(i.length===r.length&&i.every(function(e,t){return e===r[t]}))},og=function(e,t){return!(null==e||!e.vendors||null==e||!e.vendors.length)&&!t.every(function(t){return null==e?void 0:e.vendors.find(function(e){return e[eZ.ID]===t.id})})},of=function(e,t){return!(null==e||!e.vendors||!e.vendors.length||e.vendors.length&&!e.vendors[0][eZ.SPECIAL_PURPOSES])&&!e.vendors.every(function(e){var n=t.find(function(t){return t.id===e[eZ.ID]});return!n||e[eZ.PURPOSES].sort().toString()===n.purposes.map(function(e){return e.id}).sort().toString()&&e[eZ.LEGITIMATE_INTEREST].sort().toString()===n.legitimateInterestPurposes.map(function(e){return e.id}).sort().toString()&&e[eZ.SPECIAL_PURPOSES].sort().toString()===n.specialPurposes.map(function(e){return e.id}).sort().toString()})},op=function(e){return e.map(function(e){var t=e.id,n=e.legitimateInterestPurposes,s=e.purposes,i=e.specialPurposes;return[t,n.map(function(e){return e.id}),s.map(function(e){return e.id}),i.map(function(e){return e.id})]})},oS=function(e){var t=e.replace("_","-");if(a1.consentLanguages.has(t.toLocaleLowerCase())||a1.consentLanguages.has(t.toUpperCase()))return t;var n=t.slice(0,2);if(a1.consentLanguages.has(n.toLocaleLowerCase())||a1.consentLanguages.has(n.toUpperCase()))return n;switch(e){case"pt":return"pt-pt";case"sr":return"sr-cyrl";default:return"en"}},ov=[],oE=[],oI=function(e,t,n){switch(e){case"queue":return ov;case"ping":"function"==typeof t&&t({applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1"]},!0);break;case"addEventListener":"lastId"in window.__gpp||(window.__gpp.lastId=0),window.__gpp.lastId+=1;var s=window.__gpp.lastId;oE.push({callback:t,id:s,parameter:n}),t({data:!0,eventName:"listenerRegistered",listenerId:s,pingData:{applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","9:usva","7:usnat"]}},!0);break;case"removeEventListener":for(var i=!1,r=0;r<oE.length;r++)if(oE[r].id===n){oE.splice(r,1),i=!0;break}t({data:i,eventName:"listenerRemoved",listenerId:n,pingData:{applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","9:usva","7:usnat"]}},!0);break;case"hasSection":t(!1,!0);break;case"getSection":case"getField":t(null,!0);break;default:ov.push([e,t,n])}},oT="__gppLocator",oC=function(e){if(e&&e.source&&e.source.postMessage){var t="string"==typeof e.data,n=e.data;if(t)try{n=JSON.parse(e.data)}catch(e){return}if("object"===D(n)&&n.__gppCall){var s=n.__gppCall;window.__gpp(s.command,s.version,function(n,i){var r={__gppReturn:{returnValue:n,success:i,callId:s.callId}},a=t?JSON.stringify(r):r;
1try{e.source.postMessage(a,"*")}catch(e){}},s.parameter)}}},o_=function(){"u">typeof window&&(window.__gpp||!function(){for(var e=window,t=!1;e;){try{if(e.frames[oT]){t=!0;break}}catch(e){}if(e===window.top){t=!1;break}e=e.parent}return t}()&&(tu(function(){return!!window.document.body},"").then(function(){var e=window.document.createElement("iframe");e.style.cssText="display:none",e.name=oT,window.document.body.appendChild(e)}),1)&&(window.addEventListener("message",oC,!1),window.__gpp=oI))},oy=function(e){if(e&&e.source&&e.source.postMessage){var t="string"==typeof e.data,n=e.data;if(t)try{n=JSON.parse(e.data)}catch(e){return}if("object"===D(n)&&n.__tcfapiCall){var s=n.__tcfapiCall;window.__tcfapi(s.command,s.version,function(n,i){var r={__tcfapiReturn:{returnValue:n,success:i,callId:s.callId}},a=t?JSON.stringify(r):r;try{e.source.postMessage(a,"*")}catch(e){}},s.parameter)}}},oA=[],om=function(e,t,n,s){if(!e)return oA;switch(e){case"ping":"function"==typeof n&&n({cmpLoaded:!1,cmpStatus:"stub",gdprApplies:!0});break;case"pending":return oA;default:oA.push([e,t,n,s])}},oO="__tcfapiLocator",oN=function(){"u">typeof window&&(window.__tcfapi||!function(){for(var e=window,t=!1;e;){try{if(e.frames[oO]){t=!0;break}}catch(e){}if(e===window.top){t=!1;break}e=e.parent}return t}()&&(tu(function(){return!!window.document.body},"").then(function(){var e=window.document.createElement("iframe");e.style.cssText="display:none",e.name=oO,window.document.body.appendChild(e)}),1)&&(window.addEventListener("message",oy,!1),window.__tcfapi=om))},oD=((R={}).API_NAME="__uspapi",R.GET_USP_DATA="getUSPData",R);void 0!==rN&&rN.initialize({modulePath:"/dir"});var ob=d(function e(t,n){var s;if(u(this,e),g(this,"ampInstance",tQ.getInstance()),g(this,"apiInstance",st.getInstance()),g(this,"botInstance",so.getInstance()),g(this,"controllerIdInstance",n2.getInstance()),g(this,"dataFacadeInstance",sx.getInstance()),g(this,"eventDispatcherInstance",sh.getInstance()),g(this,"initOptions",{}),g(this,"isConsentRequired",null),g(this,"languageInstance",rI.getInstance()),g(this,"storageServiceInstance",e4.getInstance()),g(this,"locationInstance",n4.getInstance()),g(this,"settingsV2",sB.getInstance()),g(this,"uiInstance",rO.getInstance()),g(this,"domains",null),g(this,"rulesetRule",{name:"",noShow:!0,settingsId:""}),g(this,"gppData",null),g(this,"isCurrentDomainAllowed",function(e){var t,n,s,i=window.location.hostname.replace("www.",""),r=window.location.pathname,a=null==(t=e.allowedDomainOptions)?void 0:t.list;if(null!=(n=a)&&n.length&&(a=a.filter(function(e){return"string"==typeof e&&""!==e.trim()}).map(function(e){return e.trim()})),null==(s=a)||!s.length)return!0;var o=a.concat(ek),c=!1;return o.forEach(function(e){if(e.includes("*")){if("*."===e.slice(0,2))i.includes(e.slice(2))&&(c=!0);else if("/*"===e.slice(-2)){var t=e.slice(0,-2);t.split("/")[0]===i&&(i+r).includes(t)&&(c=!0)}}else e.includes("/")?i+r===e&&(c=!0):i===e&&(c=!0)}),c}),n&&(this.initOptions=n),this.apiInstance.setEuMode(!0===(null==n?void 0:n.euMode)),this.domains=(s=window.UC_UI_DOMAINS)?Object.entries(s).reduce(function(e,t){var n=t[0],s=t[1];return"/"===s.slice(-1)?I(I({},e),{},g({},n,s.slice(0,-1))):I(I({},e),{},g({},n,s))},{aggregator:"",app:"",cdn:"",consents:"",consentsV2:"",consentsV2Fetch:"",crossDomainConsentSharingIFrame:"",graphql:"",trackingEvent:""}):null,this.apiInstance.setDomains(!0===(null==n?void 0:n.sandboxEnv),this.domains),null!=n&&n.createTcfApiStub&&oN(),null!=n&&n.createGppStub&&o_(),null!=n&&n.useRulesetId?this.apiInstance.setRulesetId(t):this.apiInstance.setSettingsId(t),this.controllerIdInstance.value="",null==n||!n.controllerId||null!=n&&n.useRulesetId||(this.controllerIdInstance.value=n.controllerId),null!=n&&n.language&&this.languageInstance.setPrimaryLanguage(n.language),null!=n&&n.settingsCache&&this.apiInstance.setJsonCacheBustingString(n.settingsCache),null!=n&&n.version&&this.apiInstance.setJsonFileVersion(n.version),null!=n&&n.userCountryData&&"object"===D(n.userCountryData)&&Object.keys(n.userCountryData).every(function(e){return"string"==typeof e})&&this.locationInstance.setUserCountryData(n.userCountryData),null!=n&&n.userSessionData&&this.dataFacadeInstance.setUserSessionData(n.userSessionData),null!=n&&n.ampEnabled&&this.ampInstance.setIsAmpEnabled(!0),null!=n&&n.blockDataLayerPush&&this.eventDispatcherInstance.setBlockDataLayerPush(!0),null!=n&&n.disableUet?this.eventDispatcherInstance.setUetDisabled(!0):window.uetq=window.uetq||[],null!=n&&n.storeServiceIdToNameMapping&&this.storageServiceInstance.setStoreServiceIdToNameMapping(null==n?void 0:n.storeServiceIdToNameMapping),null!=n&&n.disableTracking&&(this.initOptions.disableTracking=!0),null!=n&&n.disableServerConsents&&this.apiInstance.setDisableServerConsents(!0),null!=n&&n.disableServerConsents&&null!=n&&n.controllerId)throw Error(e_.DATA_LOCAL);null!=n&&n.enableDeprecatedV1ConsentSaving&&(this.initOptions.enableDeprecatedV1ConsentSaving=n.enableDeprecatedV1ConsentSaving),this.initOptions.prefetchServices=tt(null==n?void 0:n.prefetchServices,!0),this.setTrackingPixel=this.setTrackingPixel.bind(this)},[{key:"fetchCoreAndDps",value:(ed=o(T().m(function e(){var t,n,s;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.loadSettings();case 1:return n=tq(t=e.v),s={categories:t.categories,consentTemplates:t.consentTemplates},e.a(2,{core:n,dps:s})}},e,this)})),function(){return ed.apply(this,arguments)})},{key:"init",value:(el=o(T().m(function e(){var t,n,s,i,r,a,c,u,l,d,h,g,f,p,S,v,E,C,_,y,A,m,O,N,D,b,L,w,R,P,k,V,U,M,F,G,B,x,H=this;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e4.getInstance().init(),this.initOptions.createGppStub&&(this.gppData=rE.getInstance(this.settingsV2.legacySettings,this.initOptions.createGppStub)),!this.apiInstance.getRulesetId()){e.n=2;break}return e.n=1,sL.getInstance().resolveSettingsId();case 1:this.rulesetRule=e.v,this.apiInstance.setSettingsId(this.rulesetRule.settingsId),this.initOptions.controllerIds&&this.controllerIdInstance.setControllerIdByResolvedSettingsId(this.rulesetRule.settingsId,this.initOptions.controllerIds);case 2:return e4.clearOnNewSettingsId(this.apiInstance.getSettingsId()),e4.migrateLegacySettings(this.apiInstance.getSettingsId()),r=(null==(i=null==(s=e4.fetchServices())?void 0:s.map(function(e){return e.history}).flat().reduce(function(e,t){return(null==e?void 0:e.timestamp)<t.timestamp?t:e}))?void 0:i.type)===eE.EXPLICIT,e.n=3,this.languageInstance.resolveLanguage();case 3:return e.p=3,e.n=4,this.fetchCoreAndDps();case 4:if(l=(u=e.v).core,d=u.dps,l.languagesAvailable.includes(this.apiInstance.getJsonFileLanguage())){e.n=5;break}throw Error("Using non allowed language");case 5:a=l,c=d,e.n=9;break;case 6:return e.p=6,e.v,this.languageInstance.setPrimaryLanguage(""),e.n=7,this.languageInstance.resolveLanguage(!0);case 7:return e.n=8,this.fetchCoreAndDps();case 8:g=(h=e.v).core,f=h.dps,a=g,c=f;case 9:if(this.isCurrentDomainAllowed(a)){e.n=10;break}throw(S=Error()).showErrorCmp=null==(p=a.allowedDomainOptions)?void 0:p.showErrorCmp,
1console.error('Usercentrics: The domain "'.concat(window.location.hostname,'" has not been added to the allowlist for this Usercentrics account.')),S;case 10:if(a&&c){e.n=11;break}throw Error();case 11:if(this.botInstance.isBotEnabled=a.enableBotDetection,!a.consentSharingIFrameIsActive||this.botInstance.isRobot()){e.n=12;break}return e.n=12,eQ.init({useEuCdn:this.initOptions.euMode||!1},this.domains).then(o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:if(eQ.setCrossDomainId(H.apiInstance.getSettingsId()),eQ.setIsCrossDomainAvailable(!0),eQ.setUseEuCdn(H.initOptions.euMode||!1),H.languageInstance.getPrimaryLanguage()){e.n=2;break}return e.n=1,eQ.getCrossDomainLanguage().catch(function(){return console.warn(ew.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE),""});case 1:return t=e.v,e.n=2,H.changeLanguage(t);case 2:return e.a(2)}},e)}))).catch(function(e){eQ.setIsCrossDomainAvailable(!1),eQ.removeIFrame(eK),console.warn(ew.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE,e)});case 12:return this.botInstance.isRobot()?this.initOptions.suppressCmpDisplay=!0:window.location.origin.includes("app.usercentrics.eu")&&window.location.pathname.includes("/browser-ui/preview/")||this.addSessionTrackingPixel(),v=c.consentTemplates.find(function(e){var t;return"Fraud0"===(null==(t=e._meta)?void 0:t.name)||"q-_eu2X2d"===e.templateId}),null!=(t=a.integrations)&&t.fraud0&&a.integrations.fraud0.length>0&&v&&(null==v||!v.isDeactivated)&&((E=document.createElement("script")).src="https://bt.fraud0.com/api/v2/fz.js?cid=".concat(a.integrations.fraud0[0].accountId),E.async=!0,E.setAttribute(sS,"Fraud0"),E.type=sp.TEXT_PLAIN,document.body.appendChild(E)),C=this.apiInstance.getJsonFileLanguage(),e.n=13,this.settingsV2.init(a,c,C);case 13:return e.n=14,this.uiInstance.resolveUiVariant(a.tcf2Enabled);case 14:return _=e.v,e.n=15,this.settingsV2.initData(_,[],!1,!0===this.initOptions.euMode,this.initOptions.excludeAcceptAllVendors,r,this.initOptions.enableDeprecatedV1ConsentSaving);case 15:return e.n=16,this.apiInstance.fetchTranslations();case 16:if(y=e.v,!this.initOptions.prefetchServices&&this.settingsV2.allLegacyServicesHaveName){e.n=18;break}return e.n=17,this.settingsV2.extendServices(_,y);case 17:this.apiInstance.resetAggregatedServicesCache();case 18:return this.controllerIdInstance.setNeedSessionRestore(),e.n=19,this.dataFacadeInstance.restoreUserSession(c);case 19:return(A=e.v)||(this.controllerIdInstance.init(),this.settingsV2.data&&this.settingsV2.setControllerId(this.controllerIdInstance.value)),e.n=20,this.uiInstance.init(this.initOptions);case 20:if(m=this.settingsV2.getTcfData(),!tG(this.settingsV2.data)||!m){e.n=21;break}return e.n=21,this.settingsV2.data.init(!0===this.initOptions.euMode);case 21:return this.settingsV2.initLabels(_,y),O=[],e4.settingsExist()&&(O=this.processStorageServicesAndSettings(this.settingsV2.data)),this.botInstance.isRobot()||(this.apiInstance.saveConsentsFromBuffer(),this.apiInstance.saveConsentsV2FromBuffer()),e.n=22,this.uiInstance.resolveUIOptions(a);case 22:return D=(N=e.v).initialLayer,b=e4.fetchTCFData(),A&&m&&(null==(L=this.gppData)||L.setSectionString(b.tcString,"tcfeuv2"),e4.saveTCFData(I(I({},b),{},{vendors:op(m.getTCFData().vendors)}))),x=this,e.n=23,this.uiInstance.shouldShowFirstLayer(a);case 23:return x.setIsConsentRequired.call(x,e.v),this.isConsentRequired&&e4.setUserActionPerformed(!1),this.settingsV2.initLabels(_,y),e.n=24,this.settingsV2.initUI(D,_);case 24:if(!m){e.n=27;break}if(!(D===eV.FIRST_LAYER||null!=(w=this.initOptions)&&w.suppressCmpDisplay&&this.getIsConsentRequired())||this.botInstance.isRobot()){e.n=26;break}return e.n=25,m.setUIAsOpen();case 25:e.n=27;break;case 26:return e.n=27,m.setUIAsClosed();case 27:return this.initOptions.createGppStub&&(tG(this.settingsV2.data)||tF(this.settingsV2.data))&&(tG(V=this.settingsV2.data)?null==(U=this.gppData)||U.setApplicableSections("tcfeuv2"):tF(V)?null==(M=this.gppData)||M.setApplicableSections(V.legalFramework):null==(F=this.gppData)||F.setApplicableSections("tcfeuv2"),(D===eV.FIRST_LAYER||D===eV.SECOND_LAYER||null!=(R=this.initOptions)&&R.suppressCmpDisplay&&this.getIsConsentRequired())&&!this.botInstance.isRobot()&&(null==(G=this.gppData)||G.setCmpDisplayVisible()),D!==eV.PRIVACY_BUTTON&&D!==eV.NONE||null==(B=this.gppData)||B.setCmpDisplayHidden(),null==(P=this.gppData)||P.setCmpSignalReady(),null==(k=this.gppData)||k.setCmpStatusLoaded()),this.settingsV2.isTagLoggerActive()&&!this.botInstance.isRobot()&&(new rm).initTagLogger(),this.eventDispatcherInstance.enableClarity(!0===(null==(n=this.settingsV2.legacySettings)?void 0:n.microsoftClarityConsentSignalEnabled)),this.eventDispatcherInstance.init(this.settingsV2.getDataExchangeSettings()),e.n=28,this.updateStorage(s,O,A);case 28:return e.a(2,N)}},e,this,[[3,6]])})),function(){return el.apply(this,arguments)})},{key:"acceptAllForTCF",value:(eu=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.n){case 0:if(!(n=this.settingsV2.getTcfData())){e.n=1;break}return e.n=1,n.acceptAllDisclosed(t);case 1:return e.a(2)}},e,this)})),function(e){return eu.apply(this,arguments)})},{key:"acceptAllServices",value:(ec=o(T().m(function e(){var t,n=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:eE.EXPLICIT,this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(eI.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(eI.TRUE),ev.ACCEPT_ALL_SERVICES,t,{},this.initOptions.enableDeprecatedV1ConsentSaving),e.n=1,this.saveUserActionPerformed();case 1:return e.a(2)}},e,this)})),function(){return ec.apply(this,arguments)})},{key:"changeLanguage",value:(eo=o(T().m(function e(t){var n,s,i,r,a,o,c,u,l,d,h,g,f,p,S,v,E,I;return T().w(function(e){for(;;)switch(e.n){case 0:if(i=(s=null==(n=this.settingsV2.core)?void 0:n.language.available)&&s.some(function(e){return e===t}),r=t!==this.apiInstance.getJsonFileLanguage()&&i,o=(a=this.settingsV2).core,c=a.data,!(r&&c&&o)){e.
1n=7;break}return this.apiInstance.setJsonFileLanguage(t),this.apiInstance.resetTranslationsCache(),this.settingsV2.language=t,e.n=1,this.fetchCoreAndDps();case 1:return u=e.v.dps,this.settingsV2.dpsJson=u,d=(l=this.uiInstance).selectedLayer,h=l.variant,e.n=2,this.apiInstance.fetchTranslations();case 2:if(g=e.v,null===h||null===d||null==u){e.n=6;break}if(!this.settingsV2.isAggregatorLoaded&&this.settingsV2.checkIfServiceNameExists(u.consentTemplates)){e.n=4;break}return e.n=3,this.settingsV2.extendServices(h,g);case 3:e.n=5;break;case 4:this.settingsV2.initLabels(h,g);case 5:this.apiInstance.resetAggregatedServicesCache();case 6:if(this.settingsV2.updateServicesLanguage(t),p=(f=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(c)).mergedServices,S=f.mergedServicesData,v=f.mergedSettingsData,o.language.selected=t,v.categories=this.settingsV2.mergeServicesDataIntoExistingCategories(S),this.settingsV2.data=v,(E=this.settingsV2.getDataTransferSettings())&&e4.saveSettings(e4.mapSettings(E,p),p),!tG(v)){e.n=7;break}return e.n=7,v.changeLanguage(t,null==(I=this.settingsV2.legacySettings)?void 0:I.tcf2);case 7:return e.a(2)}},e,this)})),function(e){return eo.apply(this,arguments)})},{key:"denyAllForTCF",value:(ea=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.n){case 0:if(!(n=this.settingsV2.getTcfData())){e.n=1;break}return e.n=1,n.denyAllDisclosed(t);case 1:return e.a(2)}},e,this)})),function(e){return ea.apply(this,arguments)})},{key:"denyAllServices",value:(er=o(T().m(function e(){var t,n=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:eE.EXPLICIT,this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(eI.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(eI.FALSE),ev.DENY_ALL_SERVICES,t,{},this.initOptions.enableDeprecatedV1ConsentSaving),e.n=1,this.saveUserActionPerformed();case 1:return e.a(2)}},e,this)})),function(){return er.apply(this,arguments)})},{key:"fetchIsUserInEU",value:(ei=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,this.locationInstance.getIsUserInEU())},e,this)})),function(){return ei.apply(this,arguments)})},{key:"fetchUserCountry",value:(es=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,this.locationInstance.getUserCountryData())},e,this)})),function(){return es.apply(this,arguments)})},{key:"getAbTestVariant",value:function(){return this.apiInstance.getAbTestVariant()}},{key:"getCategoriesBaseInfo",value:function(){return this.settingsV2.getCategoriesBaseInfo()}},{key:"getCategoriesFullInfo",value:(en=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.apiInstance.fetchTranslations();case 1:return t=e.v,e.a(2,this.settingsV2.getCategoriesFullInfo(this.uiInstance.variant,t))}},e,this)})),function(){return en.apply(this,arguments)})},{key:"getCcpaOptOutStatus",value:function(){var e;return(null==(e=this.settingsV2.getCcpaData())?void 0:e.getIsOptedOut())||!1}},{key:"getCcpaExplicitNoticeStatus",value:function(){var e;return(null==(e=this.settingsV2.getCcpaData())?void 0:e.getExplicitNotice())||!1}},{key:"saveOptOutForCcpa",value:(et=o(T().m(function e(t){var n,s,i,r,a=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:eE.EXPLICIT,s=a.length>2&&void 0!==a[2]&&a[2],(i=this.settingsV2.getCcpaData())&&(s||i.getIsOptedOut()!==t)){e.n=1;break}return e.a(2);case 1:return i.setCcpaStorage(t),r={consentAction:t?ev.DENY_ALL_SERVICES:ev.ACCEPT_ALL_SERVICES,consentStatus:t?eI.FALSE:eI.TRUE,consentString:{CCPA:e4.getCcpaString()}},this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(r.consentStatus),this.settingsV2.getUpdatedServicesDataWithConsent(r.consentStatus),r.consentAction,n,r.consentString,this.initOptions.enableDeprecatedV1ConsentSaving),e.n=2,this.saveUserActionPerformed();case 2:return e.a(2)}},e,this)})),function(e){return et.apply(this,arguments)})},{key:"saveDefaultForCcpa",value:(ee=o(T().m(function e(){var t,n,s;return T().w(function(e){for(;;)switch(e.n){case 0:if(t=this.settingsV2.getCcpaData(),n=e4.getCcpaString(),t){e.n=2;break}return e4.setCcpaTimeStamp(),e.n=1,this.saveUserActionPerformed();case 1:case 3:return e.a(2);case 2:return"-"===n[1]?(s=t.getIsOptedOut(),null==t||t.setCcpaStorage(s,rA.ACCEPT),window.dispatchEvent(new Event(sc))):e4.setCcpaTimeStamp(),e.n=3,this.saveUserActionPerformed()}},e,this)})),function(){return ee.apply(this,arguments)})},{key:"getControllerId",value:function(){return this.controllerIdInstance.value}},{key:"getServicesBaseInfo",value:function(){return this.settingsV2.getServicesBaseInfo()}},{key:"getServicesFullInfo",value:(Z=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.apiInstance.fetchTranslations();case 1:return t=e.v,e.a(2,this.settingsV2.getServicesFullInfo(this.uiInstance.variant,t))}},e,this)})),function(){return Z.apply(this,arguments)})},{key:"getSettingsCore",value:function(){var e=this.settingsV2.core;if(!e)throw Error(e_.CALL_INIT);return e}},{key:"getSettingsLabels",value:function(){var e=this.settingsV2.labels;if(!e)throw Error(e_.CALL_INIT);return e}},{key:"getSettingsData",value:function(){var e=this.settingsV2.data;if(!e)throw Error(e_.CALL_INIT);return e}},{key:"getSettingsUI",value:function(){return this.settingsV2.ui}},{key:"getAriaLabels",value:function(){var e,t;return tj(this.settingsV2.labels)&&null!=(null==(e=this.settingsV2.labels)?void 0:e.ariaLabels)?null==(t=this.settingsV2.labels)?void 0:t.ariaLabels:tI}},{key:"getTCFData",value:function(){var e=this.settingsV2.getTcfData();return e?e.getTCFData():null}},{key:"getGpcSignalHonoured",value:function(){var e;return null==(e=this.settingsV2.legacySettings)?void 0:e.gpcSignalHonoured}},{key:"getActionTypePerformed",value:function(){return e4.fetchActionTypePerformed()}},{key:"getTCFDisclosedVendorsSegmentString",value:function(){return this.settingsV2.getTCFDisclosedVendorsSegmentString()}},{key:"injectTCString",value:function(e){return this.settingsV2.injectTCString(e)}},{key:"setTCFUIAsClosed",value:($=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:if(!(t=this.settingsV2.getTcfData())){e.n=1;break}return e.n=1,t.setUIAsClosed();case 1:return e.a(2)}},e,this)})),function(){return $.apply(this,arguments)})},{key:"setGppDisplayHidden",value:(z=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,null==(t=rE.getInstance())?void 0:t.setCmpDisplayHidden();case 1:return e.a(2)}},e)})),function(){return z.apply(this,arguments)})},{key:"setGppDisplayVisible",value:(Q=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,null==(t=rE.getInstance())?void 0:t.setCmpDisplayVisible();case 1:return e.a(2)}},e)})),function(){return Q.apply(this,arguments)})},{key:"setTCFUIAsOpen",value:(q=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:if(!(t=this.settingsV2.getTcfData())){e.n=1;break}return e.n=1,t.setUIAsOpen();case 1:return e.a(2)}},e,this)})),function(){return q.apply(this,arguments)})},{key:"updateChoicesForTCF",value:(X=o(T().m(function e(t,n){var s;return T().w(function(e){for(;;)switch(e.n){case 0:if(!(s=this.settingsV2.getTcfData())){e.n=1;break}return e.n=1,s.updateChoices(t,n);case 1:return e.a(2)}},e,this)})),function(e,t){return X.apply(this,arguments)})},{key:"areAllConsentsAccepted",value:function(){return this.settingsV2.isTcfAvailable()?this.settingsV2.areAllVendorsAndPurposesAccepted()&&this.settingsV2.areAllServicesAccepted():this.settingsV2.areAllServicesAccepted()}},{key:"restoreUserSession",value:(K=o(T().m(function e(t){var n,s,i;return T().w(function(e){for(;;)switch(e.n){case 0:if(null==(n=this.settingsV2.core)||!n.consentAPIv2||null!=(s=this.settingsV2.core)&&s.c
1onsentXDevice){e.n=1;break}return console.warn(eL.CROSS_DEVICE_FEATURE_DISABLED),this.controllerIdInstance.needsSessionRestore=!1,e.a(2);case 1:if(this.controllerIdInstance.value=t,this.controllerIdInstance.needsSessionRestore=!0,this.settingsV2.setControllerId(t),!(i=this.settingsV2.dpsJson)){e.n=3;break}return e.n=2,this.dataFacadeInstance.restoreUserSession(i);case 2:e.v&&this.enableServicesScripts(this.processStorageServicesAndSettings(this.settingsV2.data),this.settingsV2.getGoogleConsentMode(),ev.SESSION_RESTORED);case 3:return e.a(2)}},e,this)})),function(e){return K.apply(this,arguments)})},{key:"clearStorage",value:(W=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,e4.clearAll();case 1:return e.a(2)}},e)})),function(){return W.apply(this,arguments)})},{key:"postMessageAmp",value:(J=o(T().m(function e(t,n,s){var i,r,a,c,u,l,d,h,g,f,p=this;return T().w(function(e){for(;;)switch(e.n){case 0:return i=this.settingsV2.isTcfAvailable(),e.n=1,this.settingsV2.isCcpaAvailable();case 1:if(r=e.v,a=function(){var e=p.settingsV2.getTcfData();return i&&null!=e&&e.getTCString?e.getTCString():r?e4.getCcpaString():""},c=function(){return t===eh.CONSENT_RESPONSE&&n!==eg.DISMISS&&(r||i)},u=function(){var e=o(T().m(function e(){var t,n,s,a;return T().w(function(e){for(;;)switch(e.n){case 0:if(a=p.settingsV2.getTcfData(),!i||!a){e.n=2;break}return t=ef.TCF_V2,e.n=1,a.getGdprApplies();case 1:n=e.v,s=p.settingsV2.getTCFPurposeOneTreatment(),e.n=3;break;case 2:r&&(t=ef.CCPA);case 3:return e.a(2,I({consentStringType:t},i&&{gdprApplies:n,purposeOne:s}))}},e)}));return function(){return e.apply(this,arguments)}}(),d=I,h=I,g={action:n,type:t},!(f=c())){e.n=3;break}return e.n=2,u();case 2:f={consentMetadata:e.v,info:a()};case 3:return l=d(h(g,f),s&&{initialHeight:s}),e.a(2,new Promise(function(e,t){try{window.parent.postMessage(I({},l),"*"),e()}catch(e){t(e)}}))}},e,this)})),function(e,t,n){return J.apply(this,arguments)})},{key:"acceptAllAmp",value:(Y=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessageAmp(eh.CONSENT_RESPONSE,eg.ACCEPT);case 1:return e.a(2)}},e,this)})),function(){return Y.apply(this,arguments)})},{key:"denyAllAmp",value:(j=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessageAmp(eh.CONSENT_RESPONSE,eg.REJECT);case 1:return e.a(2)}},e,this)})),function(){return j.apply(this,arguments)})},{key:"saveTCFDataAmp",value:(H=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.n){case 0:if(n=t.every(function(e){return e.status}),0!==t.length&&!n){e.n=2;break}return e.n=1,this.postMessageAmp(eh.CONSENT_RESPONSE,eg.ACCEPT);case 1:e.n=3;break;case 2:return e.n=3,this.postMessageAmp(eh.CONSENT_RESPONSE,eg.REJECT);case 3:return e.a(2)}},e,this)})),function(e){return H.apply(this,arguments)})},{key:"dismissAmp",value:(x=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.postMessageAmp(eh.CONSENT_RESPONSE,eg.DISMISS);case 1:return e.a(2)}},e,this)})),function(){return x.apply(this,arguments)})},{key:"enterFullscreenAmp",value:(B=o(T().m(function e(){return T().w(function(e){for(;;)if(0===e.n)return e.a(2,this.postMessageAmp(eh.CONSENT_UI,eg.FULLSCREEN))},e,this)})),function(){return B.apply(this,arguments)})},{key:"uiReadyAmp",value:(G=o(T().m(function e(){var t,n,s;return T().w(function(e){for(;;)if(0===e.n)return t=this.settingsV2.labels,n="60vh",t&&tj(t)&&(s=t.firstLayer.description.default.length,window.screen.height>700&&s<=250&&(n="50vh")),e.a(2,this.postMessageAmp(eh.CONSENT_UI,eg.READY,n))},e,this)})),function(){return G.apply(this,arguments)})},{key:"saveUserActionPerformed",value:(F=o(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:if(e4.setUserActionPerformed(!0),this.setIsConsentRequired(!1),!this.uiInstance.selectedLayer){e.n=1;break}return e.n=1,this.settingsV2.initUI(this.uiInstance.selectedLayer,this.uiInstance.variant);case 1:return e.a(2)}},e,this)})),function(){return F.apply(this,arguments)})},{key:"updateServices",value:(M=o(T().m(function e(t){var n,s,i,r=arguments;return T().w(function(e){for(;;)switch(e.n){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:eE.EXPLICIT,s=this.settingsV2.getUpdatedServicesWithDecisions(t),i=this.settingsV2.getUpdatedServicesDataWithDecisions(t),e8(s)&&this.dataFacadeInstance.execute(s,i,ev.UPDATE_SERVICES,n,{},this.initOptions.enableDeprecatedV1ConsentSaving),e.n=1,this.saveUserActionPerformed();case 1:return e.a(2)}},e,this)})),function(e){return M.apply(this,arguments)})},{key:"updateLayer",value:(U=o(T().m(function e(t){var n;return T().w(function(e){for(;;)switch(e.n){case 0:if(n=this.uiInstance.selectedLayer,this.uiInstance.selectedLayer=t,t!==n){e.n=1;break}return e.a(2);case 1:return e.n=2,this.settingsV2.initUI(t,this.uiInstance.variant);case 2:if(t!==eV.SECOND_LAYER){e.n=3;break}return e.n=3,this.loadServices();case 3:return e.a(2)}},e,this)})),function(e){return U.apply(this,arguments)})},{key:"loadServices",value:(V=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:if(!this.settingsV2.isAggregatorLoaded&&this.uiInstance.selectedLayer){e.n=1;break}return e.a(2);case 1:return e.n=2,this.apiInstance.fetchTranslations();case 2:return t=e.v,e.n=3,this.settingsV2.extendServices(this.uiInstance.variant,t);case 3:this.apiInstance.resetAggregatedServicesCache();case 4:return e.a(2)}},e,this)})),function(){return V.apply(this,arguments)})},{key:"loadSettings",value:(k=o(T().m(function e(){var t;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.apiInstance.fetchSettingsJson();case 1:return t=e.v,this.settingsV2.legacySettings=t,e.a(2,t)}},e,this)})),function(){return k.apply(this,arguments)})},{key:"updateStorage",value:(P=o(T().m(function e(t,n,s){var i,r,a;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.settingsV2.shouldDenyAllExplicitlyOnInit(
1);case 1:if(!e.v){e.n=4;break}return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(eI.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(eI.FALSE),ev.DENY_ALL_SERVICES,eE.EXPLICIT,{},this.initOptions.enableDeprecatedV1ConsentSaving),e.n=2,this.settingsV2.shouldDenyAllOnInitFromGpc();case 2:if(!e.v){e.n=3;break}e4.setActionTypePerformed(eY.GPC_ACTION);case 3:e.n=10;break;case 4:if(!this.uiInstance.isFirstTimeVisit()){e.n=6;break}return e.n=5,this.settingsV2.shouldAcceptAllImplicitlyOnInit();case 5:e.v?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(eI.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(eI.TRUE),ev.NON_EU_REGION,this.botInstance.isRobot()?eE.EXPLICIT:eE.IMPLICIT,{},this.initOptions.enableDeprecatedV1ConsentSaving):this.dataFacadeInstance.execute(this.settingsV2.getServicesDataAndLabels(),this.settingsV2.getServicesData(),ev.INITIAL_PAGE_LOAD,eE.IMPLICIT,{},this.initOptions.enableDeprecatedV1ConsentSaving),e.n=10;break;case 6:if(i=null!=n?n:this.processStorageServicesAndSettings(this.settingsV2.data),!(a=sy(this.settingsV2.getServicesData(),t))){e.n=8;break}return e.n=7,this.settingsV2.shouldAcceptAllImplicitlyOnVendorAdded();case 7:a=e.v;case 8:if(!a){e.n=9;break}this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(eI.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(eI.TRUE),ev.NON_EU_REGION,this.botInstance.isRobot()?eE.EXPLICIT:eE.IMPLICIT,{},this.initOptions.enableDeprecatedV1ConsentSaving),e.n=10;break;case 9:r=s&&this.dataFacadeInstance.restoreAction?this.dataFacadeInstance.restoreAction:ev.INITIAL_PAGE_LOAD,this.enableServicesScripts(i,this.settingsV2.getGoogleConsentMode(),r),this.dataFacadeInstance.restoreAction=null;case 10:return e.a(2)}},e,this)})),function(e,t,n){return P.apply(this,arguments)})},{key:"enableScriptsForServicesWithConsent",value:function(){sv.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent())}},{key:"setTrackingPixel",value:function(e){var t;!this.initOptions.disableTracking&&null!=(t=this.settingsV2.coreJson)&&t.interactionAnalytics&&this.apiInstance.setTrackingPixel(e)}},{key:"addSessionTrackingPixel",value:function(){(new Image).src=this.apiInstance.createSessionTrackingUrl()}},{key:"processStorageServicesAndSettings",value:function(e){if(!e||!this.settingsV2.labels)return[];var t=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(e),n=t.dataTransferSettings,s=t.mergedServicesData,i=t.mergedServices,r=t.updatedEssentialServices;return this.dataFacadeInstance.mergeServicesAndSettings(i,s,n,r,this.settingsV2.labels.services,this.initOptions.enableDeprecatedV1ConsentSaving)}},{key:"enableServicesScripts",value:function(e,t,n){var s,i=this.settingsV2.getTcfData();i&&i.advertiserConsentModeEnabled&&(s=i.getTCFData().vendors.find(function(e){return 755===e.id})),sv.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent()),this.eventDispatcherInstance.dispatch(e,s,t,n)}},{key:"setIsConsentRequired",value:function(e){this.isConsentRequired=!0===e}},{key:"getIsConsentRequired",value:function(){return this.isConsentRequired}},{key:"getThirdPartyCount",value:function(){return this.settingsV2.getThirdPartyCount()}},{key:"getAddVendorCount",value:function(){var e;return(null==(e=this.settingsV2.legacySettings)||null==(e=e.gdpr)?void 0:e.addVendorCount)||!1}}])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.