📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: iabtcf.BvXAsWC3.min.js
var Fs=Object.defineProperty,xs=Object.defineProperties;var Us=Object.getOwnPropertyDescriptors;var Ze=Object.getOwnPropertySymbols;var Ms=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable;var Se=(r,t,e)=>t in r?Fs(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,E=(r,t)=>{for(var e in t||(t={}))Ms.call(t,e)&&Se(r,e,t[e]);if(Ze)for(var e of Ze(t))js.call(t,e)&&Se(r,e,t[e]);return r},Ee=(r,t)=>xs(r,Us(t));var i=(r,t,e)=>Se(r,typeof t!="symbol"?t+"":t,e);var I=(r,t,e)=>new Promise((s,n)=>{var o=d=>{try{a(e.next(d))}catch(h){n(h)}},c=d=>{try{a(e.throw(d))}catch(h){n(h)}},a=d=>d.done?s(d.value):Promise.resolve(d.value).then(o,c);a((e=e.apply(r,t)).next())});import{C as et,A as tt,c as st,T as rt}from"./consents.D7AR0Jjo.min.js";import{a as M,_ as ks}from"./observer.5V3DaO-P.min.js";var ie=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},q=function(r){return r&&r.Math===Math&&r},_=q(typeof globalThis=="object"&&globalThis)||q(typeof window=="object"&&window)||q(typeof self=="object"&&self)||q(typeof ie=="object"&&ie)||q(typeof ie=="object"&&ie)||function(){return this}()||Function("return this")(),Ke={},x=function(r){try{return!!r()}catch(t){return!0}},Gs=x,B=!Gs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Hs=x,ss=!Hs(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),Bs=ss,oe=Function.prototype.call,Qe=Bs?oe.bind(oe):function(){return oe.apply(oe,arguments)},rs={},ns={}.propertyIsEnumerable,is=Object.getOwnPropertyDescriptor,Ws=is&&!ns.call({1:2},1);rs.f=Ws?function(t){var e=is(this,t);return!!e&&e.enumerable}:ns;var os=function(r,t){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:t}},as=ss,cs=Function.prototype,xe=cs.call,Ks=as&&cs.bind.bind(xe,xe),R=as?Ks:function(r){return function(){return xe.apply(r,arguments)}},ls=R,Qs=ls({}.toString),zs=ls("".slice),Ys=function(r){return zs(Qs(r),8,-1)},qs=R,Js=x,Xs=Ys,Ie=Object,Zs=qs("".split),er=Js(function(){return!Ie("z").propertyIsEnumerable(0)})?function(r){return Xs(r)==="String"?Zs(r,""):Ie(r)}:Ie,us=function(r){return r==null},tr=us,sr=TypeError,ds=function(r){if(tr(r))throw new sr("Can't call method on "+r);return r},rr=er,nr=ds,ze=function(r){return rr(nr(r))},be=typeof document=="object"&&document.all,$=typeof be=="undefined"&&be!==void 0?function(r){return typeof r=="function"||r===be}:function(r){return typeof r=="function"},ir=$,se=function(r){return typeof r=="object"?r!==null:ir(r)},Ce=_,or=$,ar=function(r){return or(r)?r:void 0},ps=function(r,t){return arguments.length<2?ar(Ce[r]):Ce[r]&&Ce[r][t]},cr=R,lr=cr({}.isPrototypeOf),ur=_,nt=ur.navigator,it=nt&&nt.userAgent,dr=it?String(it):"",hs=_,we=dr,ot=hs.process,at=hs.Deno,ct=ot&&ot.versions||at&&at.version,lt=ct&&ct.v8,w,pe;lt&&(w=lt.split("."),pe=w[0]>0&&w[0]<4?1:+(w[0]+w[1]));!pe&&we&&(w=we.match(/Edge\/(\d+)/),(!w||w[1]>=74)&&(w=we.match(/Chrome\/(\d+)/),w&&(pe=+w[1])));var pr=pe,ut=pr,hr=x,fr=_,gr=fr.String,fs=!!Object.getOwnPropertySymbols&&!hr(function(){var r=Symbol("symbol detection");return!gr(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&ut&&ut<41}),vr=fs,gs=vr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yr=ps,mr=$,Sr=lr,Er=gs,Ir=Object,vs=Er?function(r){return typeof r=="symbol"}:function(r){var t=yr("Symbol");return mr(t)&&Sr(t.prototype,Ir(r))},br=String,Cr=function(r){try{return br(r)}catch(t){return"Object"}},wr=$,Tr=Cr,_r=TypeError,Or=function(r){if(wr(r))return r;throw new _r(Tr(r)+" is not a function")},Lr=Or,Pr=us,Ar=function(r,t){var e=r[t];return Pr(e)?void 0:Lr(e)},Te=Qe,_e=$,Oe=se,Vr=TypeError,$r=function(r,t){var e,s;if(t==="string"&&_e(e=r.toString)&&!Oe(s=Te(e,r))||_e(e=r.valueOf)&&!Oe(s=Te(e,r))||t!=="string"&&_e(e=r.toString)&&!Oe(s=Te(e,r)))return s;throw new Vr("Can't convert object to primitive value")},ys={exports:{}},dt=_,Dr=Object.defineProperty,Ye=function(r,t){try{Dr(dt,r,{value:t,configurable:!0,writable:!0})}catch(e){dt[r]=t}return t},Nr=_,Rr=Ye,pt="__core-js_shared__",ht=ys.exports=Nr[pt]||Rr(pt,{});(ht.versions||(ht.versions=[])).push({version:"3.47.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"});var qe=ys.exports,ft=qe,ms=function(r,t){return ft[r]||(ft[r]=t||{})},Fr=ds,xr=Object,Ur=function(r){return xr(Fr(r))},Mr=R,jr=Ur,kr=Mr({}.hasOwnProperty),W=Object.hasOwn||function(t,e){return kr(jr(t),e)},Gr=R,Hr=0,Br=Math.random(),Wr=Gr(1.1.toString),Ss=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Wr(++Hr+Br,36)},Kr=_,Qr=ms,gt=W,zr=Ss,Yr=fs,qr=gs,z=Kr.Symbol,Le=Qr("wks"),Jr=qr?z.for||z:z&&z.withoutSetter||zr,Xr=function(r){return gt(Le,r)||(Le[r]=Yr&>(z,r)?z[r]:Jr("Symbol."+r)),Le[r]},Zr=Qe,vt=se,yt=vs,en=Ar,tn=$r,sn=Xr,rn=TypeError,nn=sn("toPrimitive"),on=function(r,t){if(!vt(r)||yt(r))return r;var e=en(r,nn),s;if(e){if(t===void 0&&(t="default"),s=Zr(e,r,t),!vt(s)||yt(s))return s;throw new rn("Can't convert object to primitive value")}return t===void 0&&(t="number"),tn(r,t)},an=on,cn=vs,Es=function(r){var t=an(r,"string");return cn(t)?t:t+""},ln=_,mt=se,Ue=ln.document,un=mt(Ue)&&mt(Ue.createElement),dn=function(r){return un?Ue.createElement(r):{}},pn=B,hn=x,fn=dn,Is=!pn&&!hn(function(){return Object.defineProperty(fn("div"),"a",{get:function(){return 7}}).a!==7}),gn=B,vn=Qe,yn=rs,mn=os,Sn=ze,En=Es,In=W,bn=Is,St=Object.getOwnPropertyDescriptor;Ke.f=gn?St:function(t,e){if(t=Sn(t),e=En(e),bn)try{return St(t,e)}catch(s){}if(In(t,e))return mn(!vn(yn.f,t,e),t[e])};var ge={},Cn=B,wn=x,Tn=Cn&&wn(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),_n=se,On=String,Ln=TypeError,bs=function(r){if(_n(r))return r;throw new Ln(On(r)+" is not an object")},Pn=B,An=Is,Vn=Tn,ae=bs,Et=Es,$n=TypeError,Pe=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Ae="enumerable",Ve="configurable",$e="writable";ge.f=Pn?Vn?function(t,e,s){if(ae(t),e=Et(e),ae(s),typeof t=="function"&&e==="prototype"&&"value"in s&&$e in s&&!s[$e]){var n=Dn(t,e);n&&n[$e]&&(t[e]=s.value,s={configurable:Ve in s?s[Ve]:n[Ve],enumerable:Ae in s?s[Ae]:n[Ae],writable:!1})}return Pe(t,e,s)}:Pe:function(t,e,s){if(ae(t),e=Et(e),ae(s),An)try{return Pe(t,e,s)}catch(n){}if("get"in s||"set"in s)throw new $n("Accessors not supported");return"value"in s&&(t[e]=s.value),t};var Nn=B,Rn=ge,Fn=os,Cs=Nn?function(r,t,e){return Rn.f(r,t,Fn(1,e))}:function(r,t,e){return r[t]=e,r},ws={exports:{}},Me=B,xn=W,Ts=Function.prototype,Un=Me&&Object.getOwnPropertyDescriptor,Mn=xn(Ts,"name"),jn=Mn&&(!Me||Me&&Un(Ts,"name").configurable),kn={CONFIGURABLE:jn},Gn=R,Hn=$,je=qe,Bn=Gn(Function.toString);Hn(je.inspectSource)||(je.inspectSource=function(r){return Bn(r)});var Wn=je.inspectSource,Kn=_,Qn=$,It=Kn.WeakMap,zn=Qn(It)&&/native code/.test(String(It)),Yn=ms,qn=Ss,bt=Yn("keys"),Jn=function(r){return bt[r]||(bt[r]=qn(r))},_s={},Xn=zn,Os=_,Zn=Cs,De=W,Ne=qe,ei=Jn,ti=_s,Ct="Object already initialized",wt=Os.TypeError,si=Os.WeakMap,ke,he,Ge,ri=function(r){return Ge(r)?he(r):ke(r,{})};if(Xn||Ne.state){var O=Ne.state||(Ne.state=new si);O.get=O.get,O.has=O.has,O.set=O.set,ke=function(r,t){if(O.has(r))throw new wt(Ct);return t.facade=r,O.set(r,t),t},he=function(r){return O.get(r)||{}},Ge=function(r){return O.has(r)}}else{var K=ei("state");ti[K]=!0,ke=function(r,t){if(De(r,K))throw new wt(Ct);return t.facade=r,Zn(r,K,t),t},he=function(r){return De(r,K)?r[K]:{}},Ge=function(r){return De(r,K)}}var ni={get:he,enforce:ri},Je=R,ii=x,oi=$,ce=W,He=B,ai=kn.CONFIGURABLE,ci=Wn,Ls=ni,li=Ls.enforce,ui=Ls.get,Tt=String,ue=Object.defineProperty,di=Je("".slice),pi=Je("".replace),hi=Je([].join),fi=He&&!ii(function(){return ue(function(){},"length",{value:8}).length!==8}),gi=String(String).split("String"),vi=ws.exports=function(r,t,e){di(Tt(t),0,7)==="Symbol("&&(t="["+pi(Tt(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(t="get "+t),e&&e.setter&&(t="set "+t),(!ce(r,"name")||ai&&r.name!==t)&&(He?ue(r,"name",{value:t,configurable:!0}):r.name=t),fi&&e&&ce(e,"arity")&&r.length!==e.arity&&ue(r,"length",{value:e.arity});try{e&&ce(e,"constructor")&&e.constructor?He&&ue(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(n){}var s=li(r);return ce(s,"source")||(s.source=hi(gi,typeof t=="string"?t:"")),r};Function.prototype.toString=vi(function(){return oi(this)&&ui(this).source||ci(this)},"toString");var yi=ws.exports,mi=$,Si=ge,Ei=yi,Ii=Ye,bi=function(r,t,e,s){s||(s={});var n=s.enumerable,o=s.name!==void 0?s.name:t;if(mi(e)&&Ei(e,o,s),s.global)n?r[t]=e:Ii(t,e);else{try{s.unsafe?r[t]&&(n=!0):delete r[t]}catch(c){}n?r[t]=e:Si.f(r,t,{value:e,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return r},Ps={},Ci=Math.ceil,wi=Math.floor,Ti=Math.trunc||function(t){var e=+t;return(e>0?wi:Ci)(e)},_i=Ti,As=function(r){var t=+r;return t!==t||t===0?0:_i(t)},Oi=As,Li=Math.max,Pi=Math.min,Ai=function(r,t){var e=Oi(r);return e<0?Li(e+t,0):Pi(e,t)},Vi=As,$i=Math.min,Di=function(r){var t=Vi(r);return t>0?$i(t,9007199254740991):0},Ni=Di,Ri=function(r){return Ni(r.length)},Fi=ze,xi=Ai,Ui=Ri,Mi=function(r){return function(t,e,s){var n=Fi(t),o=Ui(n);if(o===0)return!r&&-1;var c=xi(s,o),a;if(r&&e!==e){for(;o>c;)if(a=n[c++],a!==a)return!0}else for(;o>c;c++)if((r||c in n)&&n[c]===e)return r||c||0;return!r&&-1}},ji={indexOf:Mi(!1)},ki=R,Re=W,Gi=ze,Hi=ji.indexOf,Bi=_s,_t=ki([].push),Wi=function(r,t){var e=Gi(r),s=0,n=[],o;for(o in e)!Re(Bi,o)&&Re(e,o)&&_t(n,o);for(;t.length>s;)Re(e,o=t[s++])&&(~Hi(n,o)||_t(n,o));return n},Ki=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qi=Wi,zi=Ki,Yi=zi.concat("length","prototype");Ps.f=Object.getOwnPropertyNames||function(t){return Qi(t,Yi)};var Vs={};Vs.f=Object.getOwnPropertySymbols;var qi=ps,Ji=R,Xi=Ps,Zi=Vs,eo=bs,to=Ji([].concat),so=qi("Reflect","ownKeys")||function(t){var e=Xi.f(eo(t)),s=Zi.f;return s?to(e,s(t)):e},Ot=W,ro=so,no=Ke,io=ge,oo=function(r,t,e){for(var s=ro(t),n=io.f,o=no.f,c=0;c<s.length;c++){var a=s[c];!Ot(r,a)&&!(e&&Ot(e,a))&&n(r,a,o(t,a))}},ao=x,co=$,lo=/#|\.prototype\./,re=function(r,t){var e=po[uo(r)];return e===fo?!0:e===ho?!1:co(t)?ao(t):!!t},uo=re.normalize=function(r){return String(r).replace(lo,".").toLowerCase()},po=re.data={},ho=re.NATIVE="N",fo=re.POLYFILL="P",go=re,le=_,vo=Ke.f,yo=Cs,mo=bi,So=Ye,Eo=oo,Io=go,bo=function(r,t){var e=r.target,s=r.global,n=r.stat,o,c,a,d,h,g;if(s?c=le:n?c=le[e]||So(e,{}):c=le[e]&&le[e].prototype,c)for(a in t){if(h=t[a],r.dontCallGetSet?(g=vo(c,a),d=g&&g.value):d=c[a],o=Io(s?a:e+(n?".":"#")+a,r.forced),!o&&d!==void 0){if(typeof h==typeof d)continue;Eo(h,d)}(r.sham||d&&d.sham)&&yo(h,"sham",!0),mo(c,a,h,r)}},Co=se,wo=Math.floor,To=Number.isInteger||function(t){return!Co(t)&&isFinite(t)&&wo(t)===t},_o=bo,Oo=To;_o({target:"Number",stat:!0},{isInteger:Oo});class U extends Error{constructor(t){super(t),this.name="DecodingError"}}class N extends Error{constructor(t){super(t),this.name="EncodingError"}}class Q extends Error{constructor(t){super(t),this.name="GVLError"}}class D extends Error{constructor(t,e,s=""){super(`invalid value ${e} passed for ${t} ${s}`),this.name="TCModelError"}}class j{static encode(t){if(!/^[0-1]+$/.test(t))throw new N("Invalid bitField");const e=t.length%this.LCM;t+=e?"0".repeat(this.LCM-e):"";let s="";for(let n=0;n<t.length;n+=this.BASIS)s+=this.DICT[parseInt(t.substr(n,this.BASIS),2)];return s}static decode(t){if(!/^[A-Za-z0-9\-_]+$/.test(t))throw new U("Invalidly encoded Base64URL string");let e="";for(let s=0;s<t.length;s++){const n=this.REVERSE_DICT.get(t[s]).toString(2);e+="0".repeat(this.BASIS-n.length)+n}return e}}i(j,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(j,"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]])),i(j,"BASIS",6),i(j,"LCM",24);const L=class L{has(t){return L.langSet.has(t)}parseLanguage(t){t=t.toUpperCase();const e=t.split("-")[0];if(t.length>=2&&e.length==2){if(L.langSet.has(t))return t;if(L.langSet.has(e))return e;const s=e+"-"+e;if(L.langSet.has(s))return s;for(const n of L.langSet)if(n.indexOf(t)!==-1||n.indexOf(e)!==-1)return n}throw new Error(`unsupported language ${t}`)}forEach(t){L.langSet.forEach(t)}get size(){return L.langSet.size}};i(L,"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"]));let Be=L;class l{}i(l,"cmpId","cmpId"),i(l,"cmpVersion","cmpVersion"),i(l,"consentLanguage","consentLanguage"),i(l,"consentScreen","consentScreen"),i(l,"created","created"),i(l,"supportOOB","supportOOB"),i(l,"isServiceSpecific","isServiceSpecific"),i(l,"lastUpdated","lastUpdated"),i(l,"numCustomPurposes","numCustomPurposes"),i(l,"policyVersion","policyVersion"),i(l,"publisherCountryCode","publisherCountryCode"),i(l,"publisherCustomConsents","publisherCustomConsents"),i(l,"publisherCustomLegitimateInterests","publisherCustomLegitimateInterests"),i(l,"publisherLegitimateInterests","publisherLegitimateInterests"),i(l,"publisherConsents","publisherConsents"),i(l,"publisherRestrictions","publisherRestrictions"),i(l,"purposeConsents","purposeConsents"),i(l,"purposeLegitimateInterests","purposeLegitimateInterests"),i(l,"purposeOneTreatment","purposeOneTreatment"),i(l,"specialFeatureOptins","specialFeatureOptins"),i(l,"useNonStandardTexts","useNonStandardTexts"),i(l,"vendorConsents","vendorConsents"),i(l,"vendorLegitimateInterests","vendorLegitimateInterests"),i(l,"vendorListVersion","vendorListVersion"),i(l,"vendorsAllowed","vendorsAllowed"),i(l,"vendorsDisclosed","vendorsDisclosed"),i(l,"version","version");class ne{clone(){const t=new this.constructor;return Object.keys(this).forEach(s=>{const n=this.deepClone(this[s]);n!==void 0&&(t[s]=n)}),t}deepClone(t){const e=typeof t;if(e==="number"||e==="string"||e==="boolean")return t;if(t!==null&&e==="object"){if(typeof t.clone=="function")return t.clone();if(t instanceof Date)return new Date(t.getTime());if(t[Symbol.iterator]!==void 0){const s=[];for(const n of t)s.push(this.deepClone(n));return t instanceof Array?s:new t.constructor(s)}else{const s={};for(const n in t)t.hasOwnProperty(n)&&(s[n]=this.deepClone(t[n]));return s}}}}var A;(function(r){r[r.NOT_ALLOWED=0]="NOT_ALLOWED",r[r.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",r[r.REQUIRE_LI=2]="REQUIRE_LI"})(A||(A={}));const ee=class ee extends ne{constructor(e,s){super();i(this,"purposeId_");i(this,"restrictionType");e!==void 0&&(this.purposeId=e),s!==void 0&&(this.restrictionType=s)}static unHash(e){const s=e.split(this.hashSeparator),n=new ee;if(s.length!==2)throw new D("hash",e);return n.purposeId=parseInt(s[0],10),n.restrictionType=parseInt(s[1],10),n}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${ee.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===A.NOT_ALLOWED||this.restrictionType===A.REQUIRE_CONSENT||this.restrictionType===A.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}};i(ee,"hashSeparator","-");let k=ee;class $s extends ne{constructor(){super(...arguments);i(this,"bitLength",0);i(this,"map",new Map);i(this,"gvl_")}has(e){return this.map.has(e)}isOkToHave(e,s,n){var c;let o=!0;if((c=this.gvl)!=null&&c.vendors){const a=this.gvl.vendors[n];if(a)if(e===A.NOT_ALLOWED)o=a.legIntPurposes.includes(s)||a.purposes.includes(s);else if(a.flexiblePurposes.length)switch(e){case A.REQUIRE_CONSENT:o=a.flexiblePurposes.includes(s)&&a.legIntPurposes.includes(s);break;case A.REQUIRE_LI:o=a.flexiblePurposes.includes(s)&&a.purposes.includes(s);break}else o=!1;else o=!1}return o}add(e,s){if(this.isOkToHave(s.restrictionType,s.purposeId,e)){const n=s.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}restrictPurposeToLegalBasis(e){const s=Array.from(this.gvl.vendorIds),n=e.hash,o=s[s.length-1],c=[...Array(o).keys()].map(a=>a+1);if(!this.has(n))this.map.set(n,new Set(c)),this.bitLength=0;else for(let a=1;a<=o;a++)this.map.get(n).add(a)}getVendors(e){let s=[];if(e){const n=e.hash;this.has(n)&&(s=Array.from(this.map.get(n)))}else{const n=new Set;this.map.forEach(o=>{o.forEach(c=>{n.add(c)})}),s=Array.from(n)}return s.sort((n,o)=>n-o)}getRestrictionType(e,s){let n;return this.getRestrictions(e).forEach(o=>{o.purposeId===s&&(n===void 0||n>o.restrictionType)&&(n=o.restrictionType)}),n}vendorHasRestriction(e,s){let n=!1;const o=this.getRestrictions(e);for(let c=0;c<o.length&&!n;c++)n=s.isSameAs(o[c]);return n}getMaxVendorId(){let e=0;return this.map.forEach(s=>{e=Math.max(Array.from(s)[s.size-1],e)}),e}getRestrictions(e){const s=[];return this.map.forEach((n,o)=>{e?n.has(e)&&s.push(k.unHash(o)):s.push(k.unHash(o))}),s}getPurposes(){const e=new Set;return this.map.forEach((s,n)=>{e.add(k.unHash(n).purposeId)}),Array.from(e)}remove(e,s){const n=s.hash,o=this.map.get(n);o&&(o.delete(e),o.size==0&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((s,n)=>{const o=k.unHash(n);Array.from(s).forEach(a=>{this.isOkToHave(o.restrictionType,o.purposeId,a)||s.delete(a)})}))}get gvl(){return this.gvl_}isEmpty(){return this.map.size===0}get numRestrictions(){return this.map.size}}var Lt;(function(r){r.COOKIE="cookie",r.WEB="web",r.APP="app"})(Lt||(Lt={}));var y;(function(r){r.CORE="core",r.VENDORS_DISCLOSED="vendorsDisclosed",r.VENDORS_ALLOWED="vendorsAllowed",r.PUBLISHER_TC="publisherTC"})(y||(y={}));class fe{}i(fe,"ID_TO_KEY",[y.CORE,y.VENDORS_DISCLOSED,y.VENDORS_ALLOWED,y.PUBLISHER_TC]),i(fe,"KEY_TO_ID",{[y.CORE]:0,[y.VENDORS_DISCLOSED]:1,[y.VENDORS_ALLOWED]:2,[y.PUBLISHER_TC]:3});class C extends ne{constructor(){super(...arguments);i(this,"bitLength",0);i(this,"maxId_",0);i(this,"set_",new Set)}*[Symbol.iterator](){for(let e=1;e<=this.maxId;e++)yield[e,this.has(e)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach(s=>this.unset(s)):typeof e=="object"?this.unset(Object.keys(e).map(s=>Number(s))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(s=>{this.maxId_=Math.max(this.maxId,s)})))}isIntMap(e){let s=typeof e=="object";return s=s&&Object.keys(e).every(n=>{let o=Number.isInteger(parseInt(n,10));return o=o&&this.isValidNumber(e[n].id),o=o&&e[n].name!==void 0,o}),s}isValidNumber(e){return parseInt(e,10)>0}isSet(e){let s=!1;return e instanceof Set&&(s=Array.from(e).every(this.isValidNumber)),s}set(e){if(Array.isArray(e))e.forEach(s=>this.set(s));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(s=>Number(s)));else if(this.isValidNumber(e))this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0;else throw new D("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap")}empty(){this.set_=new Set,this.maxId_=0}forEach(e){for(let s=1;s<=this.maxId;s++)e(this.has(s),s)}get size(){return this.set_.size}setAll(e){this.set(e)}}var $t,Dt,Nt,Rt,Ft,xt,Ut,Mt,jt,kt,Gt,Ht,Bt,Wt,Kt,Qt,zt,Yt;Yt=l.cmpId,zt=l.cmpVersion,Qt=l.consentLanguage,Kt=l.consentScreen,Wt=l.created,Bt=l.isServiceSpecific,Ht=l.lastUpdated,Gt=l.policyVersion,kt=l.publisherCountryCode,jt=l.publisherLegitimateInterests,Mt=l.publisherConsents,Ut=l.purposeConsents,xt=l.purposeLegitimateInterests,Ft=l.purposeOneTreatment,Rt=l.specialFeatureOptins,Nt=l.useNonStandardTexts,Dt=l.vendorListVersion,$t=l.version;class u{}i(u,Yt,12),i(u,zt,12),i(u,Qt,12),i(u,Kt,6),i(u,Wt,36),i(u,Bt,1),i(u,Ht,36),i(u,Gt,6),i(u,kt,12),i(u,jt,24),i(u,Mt,24),i(u,Ut,24),i(u,xt,24),i(u,Ft,1),i(u,Rt,12),i(u,Nt,1),i(u,Dt,12),i(u,$t,6),i(u,"anyBoolean",1),i(u,"encodingType",1),i(u,"maxId",16),i(u,"numCustomPurposes",6),i(u,"numEntries",12),i(u,"numRestrictions",12),i(u,"purposeId",6),i(u,"restrictionType",2),i(u,"segmentType",3),i(u,"singleOrRange",1),i(u,"vendorId",16);class V{static encode(t){return String(Number(t))}static decode(t){return t==="1"}}class v{static encode(t,e){let s;if(typeof t=="string"&&(t=parseInt(t,10)),s=t.toString(2),s.length>e||t<0)throw new N(`${t} too large to encode into ${e}`);return s.length<e&&(s="0".repeat(e-s.length)+s),s}static decode(t,e){if(e!==t.length)throw new U("invalid bit length");return parseInt(t,2)}}class Pt{static encode(t,e){return v.encode(Math.round(t.getTime()/100),e)}static decode(t,e){if(e!==t.length)throw new U("invalid bit length");const s=new Date;return s.setTime(v.decode(t,e)*100),s}}class F{static encode(t,e){let s="";for(let n=1;n<=e;n++)s+=V.encode(t.has(n));return s}static decode(t,e){if(t.length!==e)throw new U("bitfield encoding length mismatch");const s=new C;for(let n=1;n<=e;n++)V.decode(t[n-1])&&s.set(n);return s.bitLength=t.length,s}}class At{static encode(t,e){t=t.toUpperCase();const s=65,n=t.charCodeAt(0)-s,o=t.charCodeAt(1)-s;if(n<0||n>25||o<0||o>25)throw new N(`invalid language code: ${t}`);if(e%2===1)throw new N(`numBits must be even, ${e} is not valid`);e=e/2;const c=v.encode(n,e),a=v.encode(o,e);return c+a}static decode(t,e){let s;if(e===t.length&&!(t.length%2)){const o=t.length/2,c=v.decode(t.slice(0,o),o)+65,a=v.decode(t.slice(o),o)+65;s=String.fromCharCode(c)+String.fromCharCode(a)}else throw new U("invalid bit length for language");return s}}class Lo{static encode(t){let e=v.encode(t.numRestrictions,u.numRestrictions);if(!t.isEmpty()){const s=(n,o)=>{for(let c=n+1;c<=o;c++)if(t.gvl.vendorIds.has(c))return c;return n};t.getRestrictions().forEach(n=>{e+=v.encode(n.purposeId,u.purposeId),e+=v.encode(n.restrictionType,u.restrictionType);const o=t.getVendors(n),c=o.length;let a=0,d=0,h="";for(let g=0;g<c;g++){const S=o[g];if(d===0&&(a++,d=S),g===c-1||o[g+1]>s(S,o[c-1])){const m=S!==d;h+=V.encode(m),h+=v.encode(d,u.vendorId),m&&(h+=v.encode(S,u.vendorId)),d=0}}e+=v.encode(a,u.numEntries),e+=h})}return e}static decode(t){let e=0;const s=new $s,n=v.decode(t.substr(e,u.numRestrictions),u.numRestrictions);e+=u.numRestrictions;for(let o=0;o<n;o++){const c=v.decode(t.substr(e,u.purposeId),u.purposeId);e+=u.purposeId;const a=v.decode(t.substr(e,u.restrictionType),u.restrictionType);e+=u.restrictionType;const d=new k(c,a),h=v.decode(t.substr(e,u.numEntries),u.numEntries);e+=u.numEntries;for(let g=0;g<h;g++){const S=V.decode(t.substr(e,u.anyBoolean));e+=u.anyBoolean;const m=v.decode(t.substr(e,u.vendorId),u.vendorId);if(e+=u.vendorId,S){const Y=v.decode(t.substr(e,u.vendorId),u.vendorId);if(e+=u.vendorId,Y<m)throw new U(`Invalid RangeEntry: endVendorId ${Y} is less than ${m}`);for(let me=m;me<=Y;me++)s.add(me,d)}else s.add(m,d)}}return s.bitLength=e,s}}var X;(function(r){r[r.FIELD=0]="FIELD",r[r.RANGE=1]="RANGE"})(X||(X={}));class J{static encode(t){const e=[];let s=[],n=v.encode(t.maxId,u.maxId),o="",c;const a=u.maxId+u.encodingType,d=a+t.maxId,h=u.vendorId*2+u.singleOrRange+u.numEntries;let g=a+u.numEntries;return t.forEach((S,m)=>{o+=V.encode(S),c=t.maxId>h&&g<d,c&&S&&(t.has(m+1)?s.length===0&&(s.push(m),g+=u.singleOrRange,g+=u.vendorId):(s.push(m),g+=u.vendorId,e.push(s),s=[]))}),c?(n+=String(X.RANGE),n+=this.buildRangeEncoding(e)):(n+=String(X.FIELD),n+=o),n}static decode(t,e){let s,n=0;const o=v.decode(t.substr(n,u.maxId),u.maxId);n+=u.maxId;const c=v.decode(t.charAt(n),u.encodingType);if(n+=u.encodingType,c===X.RANGE){if(s=new C,e===1){if(t.substr(n,1)==="1")throw new U("Unable to decode default consent=1");n++}const a=v.decode(t.substr(n,u.numEntries),u.numEntries);n+=u.numEntries;for(let d=0;d<a;d++){const h=V.decode(t.charAt(n));n+=u.singleOrRange;const g=v.decode(t.substr(n,u.vendorId),u.vendorId);if(n+=u.vendorId,h){const S=v.decode(t.substr(n,u.vendorId),u.vendorId);n+=u.vendorId;for(let m=g;m<=S;m++)s.set(m)}else s.set(g)}}else{const a=t.substr(n,o);n+=o,s=F.decode(a,o)}return s.bitLength=n,s}static buildRangeEncoding(t){const e=t.length;let s=v.encode(e,u.numEntries);return t.forEach(n=>{const o=n.length===1;s+=V.encode(!o),s+=v.encode(n[0],u.vendorId),o||(s+=v.encode(n[1],u.vendorId))}),s}}function Vt(){return{[l.version]:v,[l.created]:Pt,[l.lastUpdated]:Pt,[l.cmpId]:v,[l.cmpVersion]:v,[l.consentScreen]:v,[l.consentLanguage]:At,[l.vendorListVersion]:v,[l.policyVersion]:v,[l.isServiceSpecific]:V,[l.useNonStandardTexts]:V,[l.specialFeatureOptins]:F,[l.purposeConsents]:F,[l.purposeLegitimateInterests]:F,[l.purposeOneTreatment]:V,[l.publisherCountryCode]:At,[l.vendorConsents]:J,[l.vendorLegitimateInterests]:J,[l.publisherRestrictions]:Lo,segmentType:v,[l.vendorsDisclosed]:J,[l.vendorsAllowed]:J,[l.publisherConsents]:F,[l.publisherLegitimateInterests]:F,[l.numCustomPurposes]:v,[l.publisherCustomConsents]:F,[l.publisherCustomLegitimateInterests]:F}}class Po{constructor(){i(this,1,{[y.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.purposeConsents,l.vendorConsents]});i(this,2,{[y.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.policyVersion,l.isServiceSpecific,l.useNonStandardTexts,l.specialFeatureOptins,l.purposeConsents,l.purposeLegitimateInterests,l.purposeOneTreatment,l.publisherCountryCode,l.vendorConsents,l.vendorLegitimateInterests,l.publisherRestrictions],[y.VENDORS_DISCLOSED]:[l.vendorsDisclosed],[y.PUBLISHER_TC]:[l.publisherConsents,l.publisherLegitimateInterests,l.numCustomPurposes,l.publisherCustomConsents,l.publisherCustomLegitimateInterests],[y.VENDORS_ALLOWED]:[l.vendorsAllowed]})}}class Ao{constructor(t,e){i(this,1,[y.CORE]);i(this,2,[y.CORE]);if(t.version===2)if(t.isServiceSpecific)this[2].push(y.VENDORS_DISCLOSED),this[2].push(y.PUBLISHER_TC);else{const s=!!(e&&e.isForVendors);(!s||t[l.supportOOB]===!0)&&this[2].push(y.VENDORS_DISCLOSED),s&&(t[l.supportOOB]&&t[l.vendorsAllowed].size>0&&this[2].push(y.VENDORS_ALLOWED),this[2].push(y.PUBLISHER_TC))}}}class We{static encode(t,e){let s;try{s=this.fieldSequence[String(t.version)][e]}catch(c){throw new N(`Unable to encode version: ${t.version}, segment: ${e}`)}let n="";e!==y.CORE&&(n=v.encode(fe.KEY_TO_ID[e],u.segmentType));const o=Vt();return s.forEach(c=>{const a=t[c],d=o[c];let h=u[c];h===void 0&&this.isPublisherCustom(c)&&(h=Number(t[l.numCustomPurposes]));try{n+=d.encode(a,h)}catch(g){throw new N(`Error encoding ${e}->${c}: ${g.message}`)}}),j.encode(n)}static decode(t,e,s){const n=j.decode(t);let o=0;s===y.CORE&&(e.version=v.decode(n.substr(o,u[l.version]),u[l.version])),s!==y.CORE&&(o+=u.segmentType);const c=this.fieldSequence[String(e.version)][s],a=Vt();return c.forEach(d=>{const h=a[d];let g=u[d];if(g===void 0&&this.isPublisherCustom(d)&&(g=Number(e[l.numCustomPurposes])),g!==0){const S=n.substr(o,g);if(h===J?e[d]=h.decode(S,e.version):e[d]=h.decode(S,g),Number.isInteger(g))o+=g;else if(Number.isInteger(e[d].bitLength))o+=e[d].bitLength;else throw new U(d)}}),e}static isPublisherCustom(t){return t.indexOf("publisherCustom")===0}}i(We,"fieldSequence",new Po);class Ds{static process(t,e){const s=t.gvl;if(!s)throw new N("Unable to encode TCModel without a GVL");if(!s.isReady)throw new N("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");t=t.clone(),t.consentLanguage=s.language.slice(0,2).toUpperCase(),(e==null?void 0:e.version)>0&&(e==null?void 0:e.version)<=this.processor.length?t.version=e.version:t.version=this.processor.length;const n=t.version-1;if(!this.processor[n])throw new N(`Invalid version: ${t.version}`);return this.processor[n](t,s)}}i(Ds,"processor",[t=>t,(t,e)=>{t.publisherRestrictions.gvl=e,t.purposeLegitimateInterests.unset([1,3,4,5,6]);const s=new Map;return s.set("legIntPurposes",t.vendorLegitimateInterests),s.set("purposes",t.vendorConsents),s.forEach((n,o)=>{n.forEach((c,a)=>{if(c){const d=e.vendors[a];if(!d||d.deletedDate)n.unset(a);else if(d[o].length===0)if(o==="legIntPurposes"&&d.purposes.length===0&&d.legIntPurposes.length===0&&d.specialPurposes.length>0)n.set(a);else if(o==="legIntPurposes"&&d.purposes.length>0&&d.legIntPurposes.length===0&&d.specialPurposes.length>0)n.set(a);else if(t.isServiceSpecific)if(d.flexiblePurposes.length===0)n.unset(a);else{const h=t.publisherRestrictions.getRestrictions(a);let g=!1;for(let S=0,m=h.length;S<m&&!g;S++)g=h[S].restrictionType===A.REQUIRE_CONSENT&&o==="purposes"||h[S].restrictionType===A.REQUIRE_LI&&o==="legIntPurposes";g||n.unset(a)}else n.unset(a)}})}),t}]);class Vo{static absCall(t,e,s,n){return new Promise((o,c)=>{const a=new XMLHttpRequest,d=()=>{if(a.readyState==XMLHttpRequest.DONE)if(a.status>=200&&a.status<300){let m=a.response;if(typeof m=="string")try{m=JSON.parse(m)}catch(Y){}o(m)}else c(new Error(`HTTP Status: ${a.status} response type: ${a.responseType}`))},h=()=>{c(new Error("error"))},g=()=>{c(new Error("aborted"))},S=()=>{c(new Error("Timeout "+n+"ms "+t))};a.withCredentials=s,a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("abort",g),e===null?a.open("GET",t,!0):a.open("POST",t,!0),a.responseType="json",a.timeout=n,a.ontimeout=S,a.send(e)})}static post(t,e,s=!1,n=0){return this.absCall(t,JSON.stringify(e),s,n)}static fetch(t,e=!1,s=0){return this.absCall(t,null,e,s)}}const f=class f extends ne{constructor(e,s){super();i(this,"readyPromise");i(this,"gvlSpecificationVersion");i(this,"vendorListVersion");i(this,"tcfPolicyVersion");i(this,"lastUpdated");i(this,"purposes");i(this,"specialPurposes");i(this,"features");i(this,"specialFeatures");i(this,"isReady_",!1);i(this,"vendors_");i(this,"vendorIds");i(this,"fullVendorList");i(this,"byPurposeVendorMap");i(this,"bySpecialPurposeVendorMap");i(this,"byFeatureVendorMap");i(this,"bySpecialFeatureVendorMap");i(this,"stacks");i(this,"dataCategories");i(this,"lang_");i(this,"cacheLang_");i(this,"isLatest",!1);let n=f.baseUrl,o=s==null?void 0:s.language;if(o)try{o=f.consentLanguages.parseLanguage(o)}catch(c){throw new Q("Error during parsing the language: "+c.message)}if(this.lang_=o||f.DEFAULT_LANGUAGE,this.cacheLang_=o||f.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!n)throw new Q("must specify GVL.baseUrl before loading GVL json");if(e>0){const c=e;f.CACHE.has(c)?(this.populate(f.CACHE.get(c)),this.readyPromise=Promise.resolve()):(n+=f.versionedFilename.replace("[VERSION]",String(c)),this.readyPromise=this.fetchJson(n))}else f.CACHE.has(f.LATEST_CACHE_KEY)?(this.populate(f.CACHE.get(f.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(n+f.latestFilename))}}static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new Q("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}static get baseUrl(){return this.baseUrl_}static emptyLanguageCache(e){let s=!1;return e==null&&f.LANGUAGE_CACHE.size>0?(f.LANGUAGE_CACHE=new Map,s=!0):typeof e=="string"&&this.consentLanguages.has(e.toUpperCase())&&(f.LANGUAGE_CACHE.delete(e.toUpperCase()),s=!0),s}static emptyCache(e){let s=!1;return Number.isInteger(e)&&e>=0?(f.CACHE.delete(e),s=!0):e===void 0&&(f.CACHE=new Map,s=!0),s}cacheLanguage(){f.LANGUAGE_CACHE.has(this.cacheLang_)||f.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}fetchJson(e){return I(this,null,function*(){try{this.populate(yield Vo.fetch(e))}catch(s){throw new Q(s.message)}})}getJson(){return Ee(E({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{vendors:this.cloneVendors()})}cloneSpecialFeatures(){const e={};for(const s of Object.keys(this.specialFeatures))e[s]=f.cloneFeature(this.specialFeatures[s]);return e}cloneFeatures(){const e={};for(const s of Object.keys(this.features))e[s]=f.cloneFeature(this.features[s]);return e}cloneStacks(){const e={};for(const s of Object.keys(this.stacks))e[s]=f.cloneStack(this.stacks[s]);return e}cloneDataCategories(){const e={};for(const s of Object.keys(this.dataCategories))e[s]=f.cloneDataCategory(this.dataCategories[s]);return e}cloneSpecialPurposes(){const e={};for(const s of Object.keys(this.specialPurposes))e[s]=f.clonePurpose(this.specialPurposes[s]);return e}clonePurposes(){const e={};for(const s of Object.keys(this.purposes))e[s]=f.clonePurpose(this.purposes[s]);return e}static clonePurpose(e){return E(E({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneFeature(e){return E(E({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneDataCategory(e){return{id:e.id,name:e.name,description:e.description}}static cloneStack(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}static cloneDataRetention(e){return Ee(E({},typeof e.stdRetention=="number"?{stdRetention:e.stdRetention}:{}),{purposes:E({},e.purposes),specialPurposes:E({},e.specialPurposes)})}static cloneVendorUrls(e){return e.map(s=>E({langId:s.langId,privacy:s.privacy},s.legIntClaim?{legIntClaim:s.legIntClaim}:{}))}static cloneVendor(e){return E(E(E(E(E(E(E(E(E(E(E({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}}:{}),typeof e.cookieMaxAgeSeconds=="number"||e.cookieMaxAgeSeconds===null?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),e.usesCookies!==void 0?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),e.cookieRefresh!==void 0?{cookieRefresh:e.cookieRefresh}:{}),e.usesNonCookieAccess!==void 0?{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}:{})}cloneVendors(){const e={};for(const s of Object.keys(this.fullVendorList))e[s]=f.cloneVendor(this.fullVendorList[s]);return e}changeLanguage(e){return I(this,null,function*(){let s=e;try{s=f.consentLanguages.parseLanguage(e)}catch(o){throw new Q("Error during parsing the language: "+o.message)}const n=e.toUpperCase();if(!(s.toLowerCase()===f.DEFAULT_LANGUAGE.toLowerCase()&&!f.LANGUAGE_CACHE.has(n))&&s!==this.lang_)if(this.lang_=s,f.LANGUAGE_CACHE.has(n)){const o=f.LANGUAGE_CACHE.get(n);for(const c in o)o.hasOwnProperty(c)&&(this[c]=o[c])}else{const o=f.baseUrl+f.languageFilename.replace("[LANG]",this.lang_.toLowerCase());try{yield this.fetchJson(o),this.cacheLang_=n,this.cacheLanguage()}catch(c){throw new Q("unable to load language: "+c.message)}}})}get language(){return this.lang_}isVendorList(e){return e!==void 0&&e.vendors!==void 0}populate(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,typeof this.lastUpdated=="string"&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&f.CACHE.set(f.LATEST_CACHE_KEY,this.getJson()),f.CACHE.has(this.vendorListVersion)||f.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(s=>{this.byPurposeVendorMap[s]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(s=>{this.bySpecialPurposeVendorMap[s]=new Set}),Object.keys(this.features).forEach(s=>{this.byFeatureVendorMap[s]=new Set}),Object.keys(this.specialFeatures).forEach(s=>{this.bySpecialFeatureVendorMap[s]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(s=>+s)),this.vendorIds=new Set(e),this.vendors_=e.reduce((s,n)=>{const o=this.vendors_[String(n)];return o&&o.deletedDate===void 0&&(o.purposes.forEach(c=>{this.byPurposeVendorMap[String(c)].consent.add(n)}),o.specialPurposes.forEach(c=>{this.bySpecialPurposeVendorMap[String(c)].add(n)}),o.legIntPurposes.forEach(c=>{this.byPurposeVendorMap[String(c)].legInt.add(n)}),o.flexiblePurposes&&o.flexiblePurposes.forEach(c=>{this.byPurposeVendorMap[String(c)].flexible.add(n)}),o.features.forEach(c=>{this.byFeatureVendorMap[String(c)].add(n)}),o.specialFeatures.forEach(c=>{this.bySpecialFeatureVendorMap[String(c)].add(n)}),s[n]=o),s},{})}getFilteredVendors(e,s,n,o){const c=e.charAt(0).toUpperCase()+e.slice(1);let a;const d={};return e==="purpose"&&n?a=this["by"+c+"VendorMap"][String(s)][n]:a=this["by"+(o?"Special":"")+c+"VendorMap"][String(s)],a.forEach(h=>{d[String(h)]=this.vendors[String(h)]}),d}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){const e=new f(this.getJson());return this.lang_!==f.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return typeof e=="object"&&typeof e.narrowVendorsTo=="function"}};i(f,"LANGUAGE_CACHE",new Map),i(f,"CACHE",new Map),i(f,"LATEST_CACHE_KEY",0),i(f,"DEFAULT_LANGUAGE","EN"),i(f,"consentLanguages",new Be),i(f,"baseUrl_"),i(f,"latestFilename","vendor-list.json"),i(f,"versionedFilename","archives/vendor-list-v[VERSION].json"),i(f,"languageFilename","purposes-[LANG].json");let P=f;class te extends ne{constructor(e){super();i(this,"isServiceSpecific_",!0);i(this,"supportOOB_",!1);i(this,"useNonStandardTexts_",!1);i(this,"purposeOneTreatment_",!1);i(this,"publisherCountryCode_","AA");i(this,"version_",2);i(this,"consentScreen_",0);i(this,"policyVersion_",5);i(this,"consentLanguage_","EN");i(this,"cmpId_",0);i(this,"cmpVersion_",0);i(this,"vendorListVersion_",0);i(this,"numCustomPurposes_",0);i(this,"gvl_");i(this,"created");i(this,"lastUpdated");i(this,"specialFeatureOptins",new C);i(this,"purposeConsents",new C);i(this,"purposeLegitimateInterests",new C);i(this,"publisherConsents",new C);i(this,"publisherLegitimateInterests",new C);i(this,"publisherCustomConsents",new C);i(this,"publisherCustomLegitimateInterests",new C);i(this,"customPurposes");i(this,"vendorConsents",new C);i(this,"vendorLegitimateInterests",new C);i(this,"vendorsDisclosed",new C);i(this,"vendorsAllowed",new C);i(this,"publisherRestrictions",new $s);e&&(this.gvl=e),this.updated()}set gvl(e){P.isInstanceOf(e)||(e=new P(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),Number.isInteger(e)&&e>1)this.cmpId_=e;else throw new D("cmpId",e)}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),Number.isInteger(e)&&e>-1)this.cmpVersion_=e;else throw new D("cmpVersion",e)}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),Number.isInteger(e)&&e>-1)this.consentScreen_=e;else throw new D("consentScreen",e)}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(/^([A-z]){2}$/.test(e))this.publisherCountryCode_=e.toUpperCase();else throw new D("publisherCountryCode",e)}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if(e=Number(e)>>0,e<0)throw new D("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new D("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(e){this.useNonStandardTexts_=e}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){let e=this.numCustomPurposes_;if(typeof this.customPurposes=="object"){const s=Object.keys(this.customPurposes).sort((n,o)=>Number(n)-Number(o));e=parseInt(s.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new D("numCustomPurposes",e)}updated(){const e=new Date,s=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=s,this.lastUpdated=s}}i(te,"consentLanguages",P.consentLanguages);class de{static encode(t,e){let s="",n;return t=Ds.process(t,e),Array.isArray(e==null?void 0:e.segments)?n=e.segments:n=new Ao(t,e)[""+t.version],n.forEach((o,c)=>{let a="";c<n.length-1&&(a="."),s+=We.encode(t,o)+a}),s}static decode(t,e){const s=t.split("."),n=s.length;e||(e=new te);for(let o=0;o<n;o++){const c=s[o],d=j.decode(c.charAt(0)).substr(0,u.segmentType),h=fe.ID_TO_KEY[v.decode(d,u.segmentType).toString()];We.decode(c,e,h)}return e}}var b;(function(r){r.PING="ping",r.GET_TC_DATA="getTCData",r.GET_IN_APP_TC_DATA="getInAppTCData",r.GET_VENDOR_LIST="getVendorList",r.ADD_EVENT_LISTENER="addEventListener",r.REMOVE_EVENT_LISTENER="removeEventListener"})(b||(b={}));var H;(function(r){r.STUB="stub",r.LOADING="loading",r.LOADED="loaded",r.ERROR="error"})(H||(H={}));var G;(function(r){r.VISIBLE="visible",r.HIDDEN="hidden",r.DISABLED="disabled"})(G||(G={}));var Z;(function(r){r.TC_LOADED="tcloaded",r.CMP_UI_SHOWN="cmpuishown",r.USER_ACTION_COMPLETE="useractioncomplete"})(Z||(Z={}));class ve{constructor(t,e,s,n){i(this,"listenerId");i(this,"callback");i(this,"next");i(this,"param");i(this,"success",!0);Object.assign(this,{callback:t,listenerId:s,param:e,next:n});try{this.respond()}catch(o){this.invokeCallback(null)}}invokeCallback(t){const e=t!==null;typeof this.next=="function"?this.callback(this.next,t,e):this.callback(t,e)}}class ye extends ve{respond(){this.throwIfParamInvalid(),this.invokeCallback(new Ns(this.param,this.listenerId))}throwIfParamInvalid(){if(this.param!==void 0&&(!Array.isArray(this.param)||!this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}class $o{constructor(){i(this,"eventQueue",new Map);i(this,"queueNumber",0)}add(t){return this.eventQueue.set(this.queueNumber,t),this.queueNumber++}remove(t){return this.eventQueue.delete(t)}exec(){this.eventQueue.forEach((t,e)=>{new ye(t.callback,t.param,e,t.next)})}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}}class p{static reset(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=H.LOADING,this.disabled=!1,this.displayStatus=G.HIDDEN,this.eventQueue.clear()}}i(p,"apiVersion","2"),i(p,"tcfPolicyVersion"),i(p,"eventQueue",new $o),i(p,"cmpStatus",H.LOADING),i(p,"disabled",!1),i(p,"displayStatus",G.HIDDEN),i(p,"cmpId"),i(p,"cmpVersion"),i(p,"eventStatus"),i(p,"gdprApplies"),i(p,"tcModel"),i(p,"tcString");class Xe{constructor(){i(this,"cmpId",p.cmpId);i(this,"cmpVersion",p.cmpVersion);i(this,"gdprApplies",p.gdprApplies);i(this,"tcfPolicyVersion",p.tcfPolicyVersion)}}class Do extends Xe{constructor(){super(...arguments);i(this,"cmpStatus",H.ERROR)}}class Ns extends Xe{constructor(e,s){super();i(this,"tcString");i(this,"listenerId");i(this,"eventStatus");i(this,"cmpStatus");i(this,"isServiceSpecific");i(this,"useNonStandardTexts");i(this,"publisherCC");i(this,"purposeOneTreatment");i(this,"outOfBand");i(this,"purpose");i(this,"vendor");i(this,"specialFeatureOptins");i(this,"publisher");if(this.eventStatus=p.eventStatus,this.cmpStatus=p.cmpStatus,this.listenerId=s,p.gdprApplies){const n=p.tcModel;this.tcString=p.tcString,this.isServiceSpecific=n.isServiceSpecific,this.useNonStandardTexts=n.useNonStandardTexts,this.purposeOneTreatment=n.purposeOneTreatment,this.publisherCC=n.publisherCountryCode,this.isServiceSpecific===!1&&(this.outOfBand={allowedVendors:this.createVectorField(n.vendorsAllowed,e),disclosedVendors:this.createVectorField(n.vendorsDisclosed,e)}),this.purpose={consents:this.createVectorField(n.purposeConsents),legitimateInterests:this.createVectorField(n.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(n.vendorConsents,e),legitimateInterests:this.createVectorField(n.vendorLegitimateInterests,e),disclosedVendors:this.createVectorField(n.vendorsDisclosed,e)},this.specialFeatureOptins=this.createVectorField(n.specialFeatureOptins),this.publisher={consents:this.createVectorField(n.publisherConsents),legitimateInterests:this.createVectorField(n.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(n.publisherCustomConsents),legitimateInterests:this.createVectorField(n.publisherCustomLegitimateInterests)},restrictions:this.createRestrictions(n.publisherRestrictions)}}}createRestrictions(e){const s={};if(e.numRestrictions>0){const n=e.getMaxVendorId();for(let o=1;o<=n;o++){const c=o.toString();e.getRestrictions(o).forEach(a=>{const d=a.purposeId.toString();s[d]||(s[d]={}),s[d][c]=a.restrictionType})}}return s}createVectorField(e,s){return s?s.reduce((n,o)=>(n[String(o)]=e.has(Number(o)),n),{}):[...e].reduce((n,o)=>(n[o[0].toString(10)]=o[1],n),{})}}class No extends Ns{constructor(t){super(t),delete this.outOfBand}createVectorField(t){return[...t].reduce((e,s)=>(e+=s[1]?"1":"0",e),"")}createRestrictions(t){const e={};if(t.numRestrictions>0){const s=t.getMaxVendorId();t.getRestrictions().forEach(n=>{e[n.purposeId.toString()]="_".repeat(s)});for(let n=0;n<s;n++){const o=n+1;t.getRestrictions(o).forEach(c=>{const a=c.restrictionType.toString(),d=c.purposeId.toString(),h=e[d].substr(0,n),g=e[d].substr(n+1);e[d]=h+a+g})}}return e}}class Ro extends Xe{constructor(){super();i(this,"cmpLoaded",!0);i(this,"cmpStatus",p.cmpStatus);i(this,"displayStatus",p.displayStatus);i(this,"apiVersion",String(p.apiVersion));i(this,"gvlVersion");p.tcModel&&p.tcModel.vendorListVersion&&(this.gvlVersion=+p.tcModel.vendorListVersion)}}class Fo extends ve{respond(){this.invokeCallback(new Ro)}}class xo extends ye{respond(){this.throwIfParamInvalid(),this.invokeCallback(new No(this.param))}}class Uo extends ve{respond(){const t=p.tcModel,e=t.vendorListVersion;let s;this.param===void 0&&(this.param=e),this.param===e&&t.gvl?s=t.gvl:s=new P(this.param),s.readyPromise.then(()=>{this.invokeCallback(s.getJson())})}}class Mo extends ye{respond(){this.listenerId=p.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}}class jo extends ve{respond(){this.invokeCallback(p.eventQueue.remove(this.param))}}var qt,Jt,Xt,Zt,es,ts;ts=b.PING,es=b.GET_TC_DATA,Zt=b.GET_IN_APP_TC_DATA,Xt=b.GET_VENDOR_LIST,Jt=b.ADD_EVENT_LISTENER,qt=b.REMOVE_EVENT_LISTENER;class T{}i(T,ts,Fo),i(T,es,ye),i(T,Zt,xo),i(T,Xt,Uo),i(T,Jt,Mo),i(T,qt,jo);class Rs{static has(t){return typeof t=="string"&&(t=Number(t)),this.set_.has(t)}}i(Rs,"set_",new Set([0,2,void 0,null]));const Fe="__tcfapi";class ko{constructor(t){i(this,"callQueue");i(this,"customCommands");if(t){let e=b.ADD_EVENT_LISTENER;if(t!=null&&t[e])throw new Error(`Built-In Custom Commmand for ${e} not allowed: Use ${b.GET_TC_DATA} instead`);if(e=b.REMOVE_EVENT_LISTENER,t!=null&&t[e])throw new Error(`Built-In Custom Commmand for ${e} not allowed`);t!=null&&t[b.GET_TC_DATA]&&(t[b.ADD_EVENT_LISTENER]=t[b.GET_TC_DATA],t[b.REMOVE_EVENT_LISTENER]=t[b.GET_TC_DATA]),this.customCommands=t}try{this.callQueue=window[Fe]()||[]}catch(e){this.callQueue=[]}finally{window[Fe]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(t,e,s,...n){if(typeof t!="string"&&typeof s=="function")s(null,!1);else if(!Rs.has(e))s(null,!1);else{if(typeof s!="function")throw new Error("invalid callback function");p.disabled?s(new Do,!1):!this.isCustomCommand(t)&&!this.isBuiltInCommand(t)?s(null,!1):this.isCustomCommand(t)&&!this.isBuiltInCommand(t)?this.customCommands[t](s,...n):t===b.PING?this.isCustomCommand(t)?new T[t](this.customCommands[t],n[0],null,s):new T[t](s,n[0]):p.tcModel===void 0?this.callQueue.push([t,e,s,...n]):this.isCustomCommand(t)&&this.isBuiltInCommand(t)?new T[t](this.customCommands[t],n[0],null,s):new T[t](s,n[0])}}purgeQueuedCalls(){const t=this.callQueue;this.callQueue=[],t.forEach(e=>{window[Fe](...e)})}isCustomCommand(t){return this.customCommands&&typeof this.customCommands[t]=="function"}isBuiltInCommand(t){return T[t]!==void 0}}class Go{constructor(t,e,s=!0,n){i(this,"callResponder");i(this,"isServiceSpecific");i(this,"numUpdates",0);this.throwIfInvalidInt(t,"cmpId",2),this.throwIfInvalidInt(e,"cmpVersion",0),p.cmpId=t,p.cmpVersion=e,p.tcfPolicyVersion=5,this.isServiceSpecific=!!s,this.callResponder=new ko(n)}throwIfInvalidInt(t,e,s){if(!(typeof t=="number"&&Number.isInteger(t)&&t>=s))throw new Error(`Invalid ${e}: ${t}`)}update(t,e=!1){if(p.disabled)throw new Error("CmpApi Disabled");p.cmpStatus=H.LOADED,e?(p.displayStatus=G.VISIBLE,p.eventStatus=Z.CMP_UI_SHOWN):p.tcModel===void 0?(p.displayStatus=G.DISABLED,p.eventStatus=Z.TC_LOADED):(p.displayStatus=G.HIDDEN,p.eventStatus=Z.USER_ACTION_COMPLETE),p.gdprApplies=t!==null,p.gdprApplies?(t===""?(p.tcModel=new te,p.tcModel.cmpId=p.cmpId,p.tcModel.cmpVersion=p.cmpVersion):p.tcModel=de.decode(t),p.tcModel.isServiceSpecific=this.isServiceSpecific,p.tcfPolicyVersion=Number(p.tcModel.policyVersion),p.tcString=t):p.tcModel=null,this.numUpdates===0?this.callResponder.purgeQueuedCalls():p.eventQueue.exec(),this.numUpdates++}disable(){p.disabled=!0,p.cmpStatus=H.ERROR}}class Ho{constructor(){i(this,"_cmpApi",null);i(this,"_gvl",null);i(this,"_tcModel",null);i(this,"_tcString",null);i(this,"_stack",-1);i(this,"_vendorIds",[]);this._cmpApi=new Go(et,tt,!0)}prepareVendorIds(){if(this._gvl===null)throw"call init first";this._vendorIds=Object.keys(this._gvl.vendors).map(t=>parseInt(t))}get vendorIds(){return this._vendorIds}get gvl(){if(this._gvl===null)throw"call init first";return this._gvl}get stack(){return this._stack}get TCString(){if(this._tcString===null)throw"call init first";return this._tcString}get currentTCModel(){if(this._gvl===null)throw"call init first";return this._tcModel!==null?this._tcModel:(this.currentTCString!==""?this._tcModel=de.decode(this.currentTCString):this._tcModel=new te(this._gvl),this._tcModel)}get currentTCString(){return this.getTCStringFromStorage()}getTCStringFromStorage(){const e=st.findCookies(rt).shift();return e?e.value:""}saveTCStringInStorage(t){this._tcModel=null,st.setCookie(rt,t,M.automaticCookieDomainAndPath.value?"":M.cookieDomain.value,!1,M.cookieLifetime.value)}init(t){return I(this,null,function*(){if(P.latestFilename="vendor-list.json",P.languageFilename="purposes-[LANG].json",P.baseUrl=M.globalStorageUrl.value,this._gvl=new P,yield this._gvl.readyPromise,this._tcString=de,M.language.value!=="en")try{yield this.gvl.changeLanguage(M.language.value)}catch(e){}this.gvl.narrowVendorsTo(t)})}signalShowUI(){this.updateTCString(this.currentTCString,!0)}signalDoNowShowUI(){this.updateTCString(this.currentTCString,!1)}isTCStringUpToDate(){if(this._gvl===null)throw"call init first";return!(this.getTCStringFromStorage()==""||typeof this.currentTCModel.vendorListVersion!="number"||this.currentTCModel.vendorListVersion<this._gvl.vendorListVersion)}saveConsentAll(){return I(this,null,function*(){const t=[],e=[];let s=[];const n=[],o=[],c=[];if(this._gvl===null)throw"call init first";return yield this._gvl.readyPromise,Object.keys(this._gvl.purposes).forEach(a=>{if(this._gvl===null)throw"call init first";t.push(this._gvl.purposes[a].id)}),Object.keys(this._gvl.specialFeatures).forEach(a=>{if(this._gvl===null)throw"call init first";e.push(this._gvl.specialFeatures[a].id)}),Object.keys(this._gvl.vendors).forEach(a=>{if(this._gvl===null)throw"call init first";n.push(this._gvl.vendors[a].id),o.push(this._gvl.vendors[a].id),c.push(this._gvl.vendors[a].id)}),s=yield this.legIntPurposeList(n),this.saveConsent(t,n,c,o,e,s)})}saveConsent(t,e,s,n,o,c){return I(this,null,function*(){const a=yield this.convertSelectionsToTCModel(t,e,s,n,o,c),d=de.encode(a);return this.updateTCString(d,!1)})}convertSelectionsToTCModel(t,e,s,n,o,c){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const a=new te(this._gvl);return yield a.gvl.readyPromise,a.cmpId=et,a.cmpVersion=tt,a.isServiceSpecific=!0,a.publisherCountryCode="DE",a.consentScreen=M.cookieVersion.value,e.forEach(d=>{var g;const h=(g=this._gvl)==null?void 0:g.vendors[d];h&&!h.deletedDate&&a.vendorConsents.set(d)}),c.forEach(d=>a.purposeLegitimateInterests.set(d)),s.forEach(d=>{var g;const h=(g=this._gvl)==null?void 0:g.vendors[d];h&&!h.deletedDate&&a.vendorLegitimateInterests.set(d)}),n.forEach(d=>{var g;const h=(g=this._gvl)==null?void 0:g.vendors[d];h&&!h.deletedDate&&a.vendorsDisclosed.set(d)}),o.forEach(d=>a.specialFeatureOptins.set(d)),t.forEach(d=>a.purposeConsents.set(d)),c.forEach(d=>a.purposeLegitimateInterests.set(d)),a})}updateTCString(t,e){if(this._gvl===null||this._cmpApi===null)throw"call init first";this.saveTCStringInStorage(t),ks.debug(`Called cmpApi.update() with TCstring: ${t} and showingUi: ${e}`),this._cmpApi.update(t,e)}vendorListByPurpose(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";return yield this._gvl.readyPromise,this._gvl.getVendorsWithConsentPurpose(t)})}vendorListBySpecialFeature(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";return yield this._gvl.readyPromise,this._gvl.getVendorsWithSpecialFeature(t)})}vendorListByLegInt(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";return yield this._gvl.readyPromise,this._gvl.getVendorsWithLegIntPurpose(t)})}vendorListByFeature(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";return yield this._gvl.readyPromise,this._gvl.getVendorsWithFeature(t)})}vendorListBySpecialPurpose(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";return yield this._gvl.readyPromise,this._gvl.getVendorsWithSpecialPurpose(t)})}purposeList(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const e=[];for(const s of t){const n=this._gvl.vendors[s];for(const o of n.purposes)e.indexOf(o)<0&&e.push(o)}return e})}legIntPurposeList(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const e=[];for(const s of t){const n=this._gvl.vendors[s];for(const o of n.legIntPurposes)e.indexOf(o)<0&&e.push(o)}return e})}specialPurposeList(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const e=[];for(const s of t){const n=this._gvl.vendors[s];for(const o of n.specialPurposes)e.indexOf(o)<0&&e.push(o)}return e})}featureList(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const e=[];for(const s of t){const n=this._gvl.vendors[s];for(const o of n.features)e.indexOf(o)<0&&e.push(o)}return e})}specialFeatureList(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const e=[];for(const s of t){const n=this._gvl.vendors[s];for(const o of n.specialFeatures)e.indexOf(o)<0&&e.push(o)}return e})}dataCategoryList(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const e=[];for(const s of t){const n=this._gvl.vendors[s];if(n.dataDeclaration)for(const o of n.dataDeclaration)e.indexOf(o)<0&&e.push(o)}return e})}computeStack(t){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;const e=this._gvl.stacks;let s=[];Object.keys(e).forEach(c=>{const a=e[c];for(const h of t)if(h!==1&&a.purposes.indexOf(h)<0)return;const d=a.purposes.filter(h=>t.indexOf(h)<0);s[d.length]=s[d.length]||[],s[d.length].push(a)}),s=s.filter(c=>c.length>0);const n=s.shift();if(typeof n=="undefined")return 0;const o=n.shift();return o===void 0?0:(this._stack=o.id,o.id)})}missingPurposes(t,e){return I(this,null,function*(){if(this._gvl===null)throw"call init first";yield this._gvl.readyPromise;let s=Object.assign([],t);const n=this._gvl.stacks[e];for(const o of n.purposes)s=s.filter(c=>c!=o);return s})}hasConsentPurpose(t){return this.currentTCModel.purposeConsents.has(t)}hasConsentSpecialFeature(t){return this.currentTCModel.specialFeatureOptins.has(t)}hasConsentVendor(t){return this.currentTCModel.vendorConsents.has(t)}hasConsentVendorLegInt(t){return this.currentTCModel.vendorLegitimateInterests.has(t)}hasConsentLegInt(t){return this.currentTCModel.purposeLegitimateInterests.has(t)}hasWhichConsents(){const t={purposes:[],specialFeatures:[],vendors:[],vendorsLegInt:[],legIntPurposes:[]};return this.currentTCModel.purposeConsents.forEach((e,s)=>{e&&t.purposes.push(s)}),this.currentTCModel.specialFeatureOptins.forEach((e,s)=>{e&&t.specialFeatures.push(s)}),this.currentTCModel.vendorConsents.forEach((e,s)=>{e&&t.vendors.push(s)}),this.currentTCModel.vendorLegitimateInterests.forEach((e,s)=>{e&&t.vendorsLegInt.push(s)}),this.currentTCModel.purposeLegitimateInterests.forEach((e,s)=>{e&&t.legIntPurposes.push(s)}),t}sortVendorsAlphabetically(t){const e=[];return Object.keys(t).forEach(s=>{e.push(t[s])}),e.sort(function(s,n){return s.name.localeCompare(n.name)}),e}}const Bo=new Ho,zo=Object.freeze(Object.defineProperty({__proto__:null,IABTCF:Bo},Symbol.toStringTag,{value:"Module"}));export{de as T,Bo as _,zo as i};
Save