(()=>{"use strict";var e,t,s,r,n,i,o,a,c={1040:e=>{function t(e){return(t="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)}e.exports=function(){for(var e,s,r=[],n=window,i=n;i;){try{if(i.frames.__tcfapiLocator){e=i;break}}catch(e){}if(i===n.top)break;i=i.parent}e||(function e(){var t=n.document,s=!!n.frames.__tcfapiLocator;if(!s)if(t.body){var r=t.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",t.body.appendChild(r)}else setTimeout(e,5);return!s}(),n.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),n=0;n3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(s=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:s,cmpLoaded:!1,cmpStatus:"stub"}):r.push(t)},n.addEventListener("message",function(e){var s="string"==typeof e.data,r={};if(s)try{r=JSON.parse(e.data)}catch(e){}else r=e.data;var n="object"===t(r)&&null!==r?r.__tcfapiCall:null;if(n){var i=null==e?void 0:e.source;window.__tcfapi(n.command,n.version,function(e,t){var r={__tcfapiReturn:{returnValue:e,success:t,callId:n.callId}};i&&i.postMessage&&i.postMessage(s?JSON.stringify(r):r,"*")},n.parameter),i=null}},!1))}}},l={};!function(e){e.PING="ping",e.GET_TC_DATA="getTCData",e.GET_IN_APP_TC_DATA="getInAppTCData",e.GET_VENDOR_LIST="getVendorList",e.ADD_EVENT_LISTENER="addEventListener",e.REMOVE_EVENT_LISTENER="removeEventListener"}(e||(e={})),function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(t||(t={})),function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"}(s||(s={})),function(e){e.TC_LOADED="tcloaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"}(r||(r={}));class p{listenerId;callback;next;param;success=!0;constructor(e,t,s,r){Object.assign(this,{callback:e,listenerId:s,param:t,next:r});try{this.respond()}catch(e){this.invokeCallback(null)}}invokeCallback(e){const t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)}}class d extends p{respond(){this.throwIfParamInvalid(),this.invokeCallback(new f(this.param,this.listenerId))}throwIfParamInvalid(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}class u{eventQueue=new Map;queueNumber=0;add(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}remove(e){return this.eventQueue.delete(e)}exec(){this.eventQueue.forEach((e,t)=>{new d(e.callback,e.param,t,e.next)})}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}}class h{static apiVersion="2";static tcfPolicyVersion;static eventQueue=new u;static cmpStatus=t.LOADING;static disabled=!1;static displayStatus=s.HIDDEN;static cmpId;static cmpVersion;static eventStatus;static gdprApplies;static tcModel;static tcString;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=t.LOADING,this.disabled=!1,this.displayStatus=s.HIDDEN,this.eventQueue.clear()}}class g{cmpId=h.cmpId;cmpVersion=h.cmpVersion;gdprApplies=h.gdprApplies;tcfPolicyVersion=h.tcfPolicyVersion}class m extends g{cmpStatus=t.ERROR}class f extends g{tcString;listenerId;eventStatus;cmpStatus;isServiceSpecific;useNonStandardTexts;publisherCC;purposeOneTreatment;outOfBand;purpose;vendor;specialFeatureOptins;publisher;constructor(e,t){if(super(),this.eventStatus=h.eventStatus,this.cmpStatus=h.cmpStatus,this.listenerId=t,h.gdprApplies){const t=h.tcModel;this.tcString=h.tcString,this.isServiceSpecific=t.isServiceSpecific,this.useNonStandardTexts=t.useNonStandardTexts,this.purposeOneTreatment=t.purposeOneTreatment,this.publisherCC=t.publisherCountryCode,this.outOfBand={allowedVendors:this.createVectorField(t.vendorsAllowed,e),disclosedVendors:this.createVectorField(t.vendorsDisclosed,e)},this.purpose={consents:this.createVectorField(t.purposeConsents),legitimateInterests:this.createVectorField(t.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(t.vendorConsents,e),legitimateInterests:this.createVectorField(t.vendorLegitimateInterests,e)},this.specialFeatureOptins=this.createVectorField(t.specialFeatureOptins),this.publisher={consents:this.createVectorField(t.publisherConsents),legitimateInterests:this.createVectorField(t.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(t.publisherCustomConsents),legitimateInterests:this.createVectorField(t.publisherCustomLegitimateInterests)},restrictions:this.createRestrictions(t.publisherRestrictions)}}}createRestrictions(e){const t={};if(e.numRestrictions>0){const s=e.getMaxVendorId();for(let r=1;r<=s;r++){const s=r.toString();e.getRestrictions(r).forEach(e=>{const r=e.purposeId.toString();t[r]||(t[r]={}),t[r][s]=e.restrictionType})}}return t}createVectorField(e,t){return t?t.reduce((t,s)=>(t[String(s)]=e.has(Number(s)),t),{}):[...e].reduce((e,t)=>(e[t[0].toString(10)]=t[1],e),{})}}class v extends f{constructor(e){super(e),delete this.outOfBand}createVectorField(e){return[...e].reduce((e,t)=>e+(t[1]?"1":"0"),"")}createRestrictions(e){const t={};if(e.numRestrictions>0){const s=e.getMaxVendorId();e.getRestrictions().forEach(e=>{t[e.purposeId.toString()]="_".repeat(s)});for(let r=0;r{const s=e.restrictionType.toString(),n=e.purposeId.toString(),i=t[n].substr(0,r),o=t[n].substr(r+1);t[n]=i+s+o})}}return t}}class C extends g{cmpLoaded=!0;cmpStatus=h.cmpStatus;displayStatus=h.displayStatus;apiVersion=String(h.apiVersion);gvlVersion;constructor(){super(),h.tcModel&&h.tcModel.vendorListVersion&&(this.gvlVersion=+h.tcModel.vendorListVersion)}}class b extends p{respond(){this.invokeCallback(new C)}}class I extends d{respond(){this.throwIfParamInvalid(),this.invokeCallback(new v(this.param))}}class E extends Error{constructor(e){super(e),this.name="DecodingError"}}class S extends Error{constructor(e){super(e),this.name="EncodingError"}}class _ extends Error{constructor(e){super(e),this.name="GVLError"}}class y extends Error{constructor(e,t,s=""){super(`invalid value ${t} passed for ${e} ${s}`),this.name="TCModelError"}}class L{static DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";static 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]]);static BASIS=6;static LCM=24;static encode(e){if(!/^[0-1]+$/.test(e))throw new S("Invalid bitField");const t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let s="";for(let t=0;t=2&&2==t.length){if(w.langSet.has(e))return e;if(w.langSet.has(t))return t;const s=t+"-"+t;if(w.langSet.has(s))return s;for(const s of w.langSet)if(-1!==s.indexOf(e)||-1!==s.indexOf(t))return s}throw new Error(`unsupported language ${e}`)}forEach(e){w.langSet.forEach(e)}get size(){return w.langSet.size}}class A{static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";static supportOOB="supportOOB";static isServiceSpecific="isServiceSpecific";static lastUpdated="lastUpdated";static numCustomPurposes="numCustomPurposes";static policyVersion="policyVersion";static publisherCountryCode="publisherCountryCode";static publisherCustomConsents="publisherCustomConsents";static publisherCustomLegitimateInterests="publisherCustomLegitimateInterests";static publisherLegitimateInterests="publisherLegitimateInterests";static publisherConsents="publisherConsents";static publisherRestrictions="publisherRestrictions";static purposeConsents="purposeConsents";static purposeLegitimateInterests="purposeLegitimateInterests";static purposeOneTreatment="purposeOneTreatment";static specialFeatureOptins="specialFeatureOptins";static useNonStandardTexts="useNonStandardTexts";static vendorConsents="vendorConsents";static vendorLegitimateInterests="vendorLegitimateInterests";static vendorListVersion="vendorListVersion";static vendorsAllowed="vendorsAllowed";static vendorsDisclosed="vendorsDisclosed";static version="version"}class V{clone(){const e=new this.constructor;return Object.keys(this).forEach(t=>{const s=this.deepClone(this[t]);void 0!==s&&(e[t]=s)}),e}deepClone(e){const t=typeof 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]){const t=[];for(const s of e)t.push(this.deepClone(s));return e instanceof Array?t:new e.constructor(t)}{const t={};for(const s in e)e.hasOwnProperty(s)&&(t[s]=this.deepClone(e[s]));return t}}}}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(n||(n={}));class T extends V{static hashSeparator="-";purposeId_;restrictionType;constructor(e,t){super(),void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){const t=e.split(this.hashSeparator),s=new T;if(2!==t.length)throw new y("hash",e);return s.purposeId=parseInt(t[0],10),s.restrictionType=parseInt(t[1],10),s}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${T.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===n.NOT_ALLOWED||this.restrictionType===n.REQUIRE_CONSENT||this.restrictionType===n.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class O extends V{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,s){let r=!0;if(this.gvl?.vendors){const i=this.gvl.vendors[s];if(i)if(e===n.NOT_ALLOWED)r=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case n.REQUIRE_CONSENT:r=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case n.REQUIRE_LI:r=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else r=!1;else r=!1}return r}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){const s=t.hash;this.has(s)||(this.map.set(s,new Set),this.bitLength=0),this.map.get(s).add(e)}}restrictPurposeToLegalBasis(e){const t=Array.from(this.gvl.vendorIds),s=e.hash,r=t[t.length-1],n=[...Array(r).keys()].map(e=>e+1);if(this.has(s))for(let e=1;e<=r;e++)this.map.get(s).add(e);else this.map.set(s,new Set(n)),this.bitLength=0}getVendors(e){let t=[];if(e){const s=e.hash;this.has(s)&&(t=Array.from(this.map.get(s)))}else{const e=new Set;this.map.forEach(t=>{t.forEach(t=>{e.add(t)})}),t=Array.from(e)}return t.sort((e,t)=>e-t)}getRestrictionType(e,t){let s;return this.getRestrictions(e).forEach(e=>{e.purposeId===t&&(void 0===s||s>e.restrictionType)&&(s=e.restrictionType)}),s}vendorHasRestriction(e,t){let s=!1;const r=this.getRestrictions(e);for(let e=0;e{e=Math.max(Array.from(t)[t.size-1],e)}),e}getRestrictions(e){const t=[];return this.map.forEach((s,r)=>{e?s.has(e)&&t.push(T.unHash(r)):t.push(T.unHash(r))}),t}getPurposes(){const e=new Set;return this.map.forEach((t,s)=>{e.add(T.unHash(s).purposeId)}),Array.from(e)}remove(e,t){const s=t.hash,r=this.map.get(s);r&&(r.delete(e),0==r.size&&(this.map.delete(s),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((e,t)=>{const s=T.unHash(t);Array.from(e).forEach(t=>{this.isOkToHave(s.restrictionType,s.purposeId,t)||e.delete(t)})}))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(i||(i={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(o||(o={}));class N{static ID_TO_KEY=[o.CORE,o.VENDORS_DISCLOSED,o.VENDORS_ALLOWED,o.PUBLISHER_TC];static KEY_TO_ID={[o.CORE]:0,[o.VENDORS_DISCLOSED]:1,[o.VENDORS_ALLOWED]:2,[o.PUBLISHER_TC]:3}}class P extends V{bitLength=0;maxId_=0;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(e=>this.unset(e)):"object"==typeof e?this.unset(Object.keys(e).map(e=>Number(e))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(e=>{this.maxId_=Math.max(this.maxId,e)})))}isIntMap(e){let t="object"==typeof e;return t=t&&Object.keys(e).every(t=>{let s=Number.isInteger(parseInt(t,10));return s=s&&this.isValidNumber(e[t].id),s=s&&void 0!==e[t].name,s}),t}isValidNumber(e){return parseInt(e,10)>0}isSet(e){let t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach(e=>this.set(e));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(e=>Number(e)));else{if(!this.isValidNumber(e))throw new y("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set,this.maxId_=0}forEach(e){for(let t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}}class R{static[A.cmpId]=12;static[A.cmpVersion]=12;static[A.consentLanguage]=12;static[A.consentScreen]=6;static[A.created]=36;static[A.isServiceSpecific]=1;static[A.lastUpdated]=36;static[A.policyVersion]=6;static[A.publisherCountryCode]=12;static[A.publisherLegitimateInterests]=24;static[A.publisherConsents]=24;static[A.purposeConsents]=24;static[A.purposeLegitimateInterests]=24;static[A.purposeOneTreatment]=1;static[A.specialFeatureOptins]=12;static[A.useNonStandardTexts]=1;static[A.vendorListVersion]=12;static[A.version]=6;static anyBoolean=1;static encodingType=1;static maxId=16;static numCustomPurposes=6;static numEntries=12;static numRestrictions=12;static purposeId=6;static restrictionType=2;static segmentType=3;static singleOrRange=1;static vendorId=16}class k{static encode(e,t){let s;if("string"==typeof e&&(e=parseInt(e,10)),s=e.toString(2),s.length>t||e<0)throw new S(`${e} too large to encode into ${t}`);return s.length25||r<0||r>25)throw new S(`invalid language code: ${e}`);if(t%2==1)throw new S(`numBits must be even, ${t} is not valid`);return t/=2,k.encode(s,t)+k.encode(r,t)}static decode(e,t){let s;if(t!==e.length||e.length%2)throw new E("invalid bit length for language");{const t=65,r=e.length/2,n=k.decode(e.slice(0,r),r)+t,i=k.decode(e.slice(r),r)+t;s=String.fromCharCode(n)+String.fromCharCode(i)}return s}}class M{static encode(e){let t=k.encode(e.numRestrictions,R.numRestrictions);if(!e.isEmpty()){const s=(t,s)=>{for(let r=t+1;r<=s;r++)if(e.gvl.vendorIds.has(r))return r;return t};e.getRestrictions().forEach(r=>{t+=k.encode(r.purposeId,R.purposeId),t+=k.encode(r.restrictionType,R.restrictionType);const n=e.getVendors(r),i=n.length;let o=0,a=0,c="";for(let e=0;es(t,n[i-1])){const e=!(t===a);c+=x.encode(e),c+=k.encode(a,R.vendorId),e&&(c+=k.encode(t,R.vendorId)),a=0}}t+=k.encode(o,R.numEntries),t+=c})}return t}static decode(e){let t=0;const s=new O,r=k.decode(e.substr(t,R.numRestrictions),R.numRestrictions);t+=R.numRestrictions;for(let n=0;n{i+=x.encode(n),s=e.maxId>l&&p{const t=1===e.length;s+=x.encode(!t),s+=k.encode(e[0],R.vendorId),t||(s+=k.encode(e[1],R.vendorId))}),s}}function H(){return{[A.version]:k,[A.created]:D,[A.lastUpdated]:D,[A.cmpId]:k,[A.cmpVersion]:k,[A.consentScreen]:k,[A.consentLanguage]:F,[A.vendorListVersion]:k,[A.policyVersion]:k,[A.isServiceSpecific]:x,[A.useNonStandardTexts]:x,[A.specialFeatureOptins]:U,[A.purposeConsents]:U,[A.purposeLegitimateInterests]:U,[A.purposeOneTreatment]:x,[A.publisherCountryCode]:F,[A.vendorConsents]:G,[A.vendorLegitimateInterests]:G,[A.publisherRestrictions]:M,segmentType:k,[A.vendorsDisclosed]:G,[A.vendorsAllowed]:G,[A.publisherConsents]:U,[A.publisherLegitimateInterests]:U,[A.numCustomPurposes]:k,[A.publisherCustomConsents]:U,[A.publisherCustomLegitimateInterests]:U}}class B{1={[o.CORE]:[A.version,A.created,A.lastUpdated,A.cmpId,A.cmpVersion,A.consentScreen,A.consentLanguage,A.vendorListVersion,A.purposeConsents,A.vendorConsents]};2={[o.CORE]:[A.version,A.created,A.lastUpdated,A.cmpId,A.cmpVersion,A.consentScreen,A.consentLanguage,A.vendorListVersion,A.policyVersion,A.isServiceSpecific,A.useNonStandardTexts,A.specialFeatureOptins,A.purposeConsents,A.purposeLegitimateInterests,A.purposeOneTreatment,A.publisherCountryCode,A.vendorConsents,A.vendorLegitimateInterests,A.publisherRestrictions],[o.PUBLISHER_TC]:[A.publisherConsents,A.publisherLegitimateInterests,A.numCustomPurposes,A.publisherCustomConsents,A.publisherCustomLegitimateInterests],[o.VENDORS_ALLOWED]:[A.vendorsAllowed],[o.VENDORS_DISCLOSED]:[A.vendorsDisclosed]}}class j{1=[o.CORE];2=[o.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(o.PUBLISHER_TC);else{const s=!(!t||!t.isForVendors);s&&!0!==e[A.supportOOB]||this[2].push(o.VENDORS_DISCLOSED),s&&(e[A.supportOOB]&&e[A.vendorsAllowed].size>0&&this[2].push(o.VENDORS_ALLOWED),this[2].push(o.PUBLISHER_TC))}}}class Q{static fieldSequence=new B;static encode(e,t){let s;try{s=this.fieldSequence[String(e.version)][t]}catch(s){throw new S(`Unable to encode version: ${e.version}, segment: ${t}`)}let r="";t!==o.CORE&&(r=k.encode(N.KEY_TO_ID[t],R.segmentType));const n=H();return s.forEach(s=>{const i=e[s],o=n[s];let a=R[s];void 0===a&&this.isPublisherCustom(s)&&(a=Number(e[A.numCustomPurposes]));try{r+=o.encode(i,a)}catch(e){throw new S(`Error encoding ${t}->${s}: ${e.message}`)}}),L.encode(r)}static decode(e,t,s){const r=L.decode(e);let n=0;s===o.CORE&&(t.version=k.decode(r.substr(n,R[A.version]),R[A.version])),s!==o.CORE&&(n+=R.segmentType);const i=this.fieldSequence[String(t.version)][s],a=H();return i.forEach(e=>{const s=a[e];let i=R[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=Number(t[A.numCustomPurposes])),0!==i){const o=r.substr(n,i);if(t[e]=s===G?s.decode(o,t.version):s.decode(o,i),Number.isInteger(i))n+=i;else{if(!Number.isInteger(t[e].bitLength))throw new E(e);n+=t[e].bitLength}}}),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}class ${static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);const s=new Map;return s.set("legIntPurposes",e.vendorLegitimateInterests),s.set("purposes",e.vendorConsents),s.forEach((s,r)=>{s.forEach((i,o)=>{if(i){const i=t.vendors[o];if(!i||i.deletedDate)s.unset(o);else if(0===i[r].length)if("legIntPurposes"===r&&0===i.purposes.length&&0===i.legIntPurposes.length&&i.specialPurposes.length>0)s.set(o);else if("legIntPurposes"===r&&i.purposes.length>0&&0===i.legIntPurposes.length&&i.specialPurposes.length>0)s.set(o);else if(e.isServiceSpecific)if(0===i.flexiblePurposes.length)s.unset(o);else{const t=e.publisherRestrictions.getRestrictions(o);let i=!1;for(let e=0,s=t.length;e0&&t?.version<=this.processor.length?e.version=t.version:e.version=this.processor.length;const r=e.version-1;if(!this.processor[r])throw new S(`Invalid version: ${e.version}`);return this.processor[r](e,s)}}class W{static absCall(e,t,s,r){return new Promise((n,i)=>{const o=new XMLHttpRequest;o.withCredentials=s,o.addEventListener("load",()=>{if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){let e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}n(e)}else i(new Error(`HTTP Status: ${o.status} response type: ${o.responseType}`))}),o.addEventListener("error",()=>{i(new Error("error"))}),o.addEventListener("abort",()=>{i(new Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=r,o.ontimeout=()=>{i(new Error("Timeout "+r+"ms "+e))},o.send(t)})}static post(e,t,s=!1,r=0){return this.absCall(e,JSON.stringify(t),s,r)}static fetch(e,t=!1,s=0){return this.absCall(e,null,t,s)}}class z extends V{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new w;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new _("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 latestFilename="vendor-list.json";static versionedFilename="archives/vendor-list-v[VERSION].json";static languageFilename="purposes-[LANG].json";readyPromise;gvlSpecificationVersion;vendorListVersion;tcfPolicyVersion;lastUpdated;purposes;specialPurposes;features;specialFeatures;isReady_=!1;vendors_;vendorIds;fullVendorList;byPurposeVendorMap;bySpecialPurposeVendorMap;byFeatureVendorMap;bySpecialFeatureVendorMap;stacks;dataCategories;lang_;cacheLang_;isLatest=!1;constructor(e,t){super();let s=z.baseUrl,r=t?.language;if(r)try{r=z.consentLanguages.parseLanguage(r)}catch(e){throw new _("Error during parsing the language: "+e.message)}if(this.lang_=r||z.DEFAULT_LANGUAGE,this.cacheLang_=r||z.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!s)throw new _("must specify GVL.baseUrl before loading GVL json");if(e>0){const t=e;z.CACHE.has(t)?(this.populate(z.CACHE.get(t)),this.readyPromise=Promise.resolve()):(s+=z.versionedFilename.replace("[VERSION]",String(t)),this.readyPromise=this.fetchJson(s))}else z.CACHE.has(z.LATEST_CACHE_KEY)?(this.populate(z.CACHE.get(z.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(s+z.latestFilename))}}static emptyLanguageCache(e){let t=!1;return null==e&&z.LANGUAGE_CACHE.size>0?(z.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(z.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(z.CACHE.delete(e),t=!0):void 0===e&&(z.CACHE=new Map,t=!0),t}cacheLanguage(){z.LANGUAGE_CACHE.has(this.cacheLang_)||z.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}async fetchJson(e){try{this.populate(await W.fetch(e))}catch(e){throw new _(e.message)}}getJson(){return{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 t of Object.keys(this.specialFeatures))e[t]=z.cloneFeature(this.specialFeatures[t]);return e}cloneFeatures(){const e={};for(const t of Object.keys(this.features))e[t]=z.cloneFeature(this.features[t]);return e}cloneStacks(){const e={};for(const t of Object.keys(this.stacks))e[t]=z.cloneStack(this.stacks[t]);return e}cloneDataCategories(){const e={};for(const t of Object.keys(this.dataCategories))e[t]=z.cloneDataCategory(this.dataCategories[t]);return e}cloneSpecialPurposes(){const e={};for(const t of Object.keys(this.specialPurposes))e[t]=z.clonePurpose(this.specialPurposes[t]);return e}clonePurposes(){const e={};for(const t of Object.keys(this.purposes))e[t]=z.clonePurpose(this.purposes[t]);return e}static clonePurpose(e){return{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{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{..."number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{},purposes:{...e.purposes},specialPurposes:{...e.specialPurposes}}}static cloneVendorUrls(e){return e.map(e=>({langId:e.langId,privacy:e.privacy,...e.legIntClaim?{legIntClaim:e.legIntClaim}:{}}))}static cloneVendor(e){return{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}:{}}}cloneVendors(){const e={};for(const t of Object.keys(this.fullVendorList))e[t]=z.cloneVendor(this.fullVendorList[t]);return e}async changeLanguage(e){let t=e;try{t=z.consentLanguages.parseLanguage(e)}catch(e){throw new _("Error during parsing the language: "+e.message)}const s=e.toUpperCase();if((t.toLowerCase()!==z.DEFAULT_LANGUAGE.toLowerCase()||z.LANGUAGE_CACHE.has(s))&&t!==this.lang_)if(this.lang_=t,z.LANGUAGE_CACHE.has(s)){const e=z.LANGUAGE_CACHE.get(s);for(const t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}else{const e=z.baseUrl+z.languageFilename.replace("[LANG]",this.lang_.toLowerCase());try{await this.fetchJson(e),this.cacheLang_=s,this.cacheLanguage()}catch(e){throw new _("unable to load language: "+e.message)}}}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}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,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&z.CACHE.set(z.LATEST_CACHE_KEY,this.getJson()),z.CACHE.has(this.vendorListVersion)||z.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(e),this.vendors_=e.reduce((e,t)=>{const s=this.vendors_[String(t)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(e=>{this.byPurposeVendorMap[String(e)].consent.add(t)}),s.specialPurposes.forEach(e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)}),s.legIntPurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)}),s.features.forEach(e=>{this.byFeatureVendorMap[String(e)].add(t)}),s.specialFeatures.forEach(e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)}),e[t]=s),e},{})}getFilteredVendors(e,t,s,r){const n=e.charAt(0).toUpperCase()+e.slice(1);let i;const o={};return i="purpose"===e&&s?this["by"+n+"VendorMap"][String(t)][s]:this["by"+(r?"Special":"")+n+"VendorMap"][String(t)],i.forEach(e=>{o[String(e)]=this.vendors[String(e)]}),o}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 z(this.getJson());return this.lang_!==z.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}class J extends V{static consentLanguages=z.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardTexts_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=5;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new P;purposeConsents=new P;purposeLegitimateInterests=new P;publisherConsents=new P;publisherLegitimateInterests=new P;publisherCustomConsents=new P;publisherCustomLegitimateInterests=new P;customPurposes;vendorConsents=new P;vendorLegitimateInterests=new P;vendorsDisclosed=new P;vendorsAllowed=new P;publisherRestrictions=new O;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){z.isInstanceOf(e)||(e=new z(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))throw new y("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new y("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new y("consentScreen",e);this.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))throw new y("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=0|Number(e))<0)throw new y("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 y("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("object"==typeof this.customPurposes){const t=Object.keys(this.customPurposes).sort((e,t)=>Number(e)-Number(t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new y("numCustomPurposes",e)}updated(){const e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}class K{static encode(e,t){let s,r="";return e=$.process(e,t),s=Array.isArray(t?.segments)?t.segments:new j(e,t)[""+e.version],s.forEach((t,n)=>{let i="";n{this.invokeCallback(s.getJson())})}}class q extends d{respond(){this.listenerId=h.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}}class Z extends p{respond(){this.invokeCallback(h.eventQueue.remove(this.param))}}class X{static[e.PING]=b;static[e.GET_TC_DATA]=d;static[e.GET_IN_APP_TC_DATA]=I;static[e.GET_VENDOR_LIST]=Y;static[e.ADD_EVENT_LISTENER]=q;static[e.REMOVE_EVENT_LISTENER]=Z}class ee{static set_=new Set([0,2,void 0,null]);static has(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)}}const te="__tcfapi";class se{callQueue;customCommands;constructor(t){if(t){let s=e.ADD_EVENT_LISTENER;if(t?.[s])throw new Error(`Built-In Custom Commmand for ${s} not allowed: Use ${e.GET_TC_DATA} instead`);if(s=e.REMOVE_EVENT_LISTENER,t?.[s])throw new Error(`Built-In Custom Commmand for ${s} not allowed`);t?.[e.GET_TC_DATA]&&(t[e.ADD_EVENT_LISTENER]=t[e.GET_TC_DATA],t[e.REMOVE_EVENT_LISTENER]=t[e.GET_TC_DATA]),this.customCommands=t}try{this.callQueue=window[te]()||[]}catch(e){this.callQueue=[]}finally{window[te]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(t,s,r,...n){if("string"!=typeof t)r(null,!1);else if(ee.has(s)){if("function"!=typeof r)throw new Error("invalid callback function");h.disabled?r(new m,!1):this.isCustomCommand(t)||this.isBuiltInCommand(t)?this.isCustomCommand(t)&&!this.isBuiltInCommand(t)?this.customCommands[t](r,...n):t===e.PING?this.isCustomCommand(t)?new X[t](this.customCommands[t],n[0],null,r):new X[t](r,n[0]):void 0===h.tcModel?this.callQueue.push([t,s,r,...n]):this.isCustomCommand(t)&&this.isBuiltInCommand(t)?new X[t](this.customCommands[t],n[0],null,r):new X[t](r,n[0]):r(null,!1)}else r(null,!1)}purgeQueuedCalls(){const e=this.callQueue;this.callQueue=[],e.forEach(e=>{window[te](...e)})}isCustomCommand(e){return this.customCommands&&"function"==typeof this.customCommands[e]}isBuiltInCommand(e){return void 0!==X[e]}}class re{callResponder;isServiceSpecific;numUpdates=0;constructor(e,t,s=!1,r){this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),h.cmpId=e,h.cmpVersion=t,h.tcfPolicyVersion=5,this.isServiceSpecific=!!s,this.callResponder=new se(r)}throwIfInvalidInt(e,t,s){if(!("number"==typeof e&&Number.isInteger(e)&&e>=s))throw new Error(`Invalid ${t}: ${e}`)}update(e,n=!1){if(h.disabled)throw new Error("CmpApi Disabled");h.cmpStatus=t.LOADED,n?(h.displayStatus=s.VISIBLE,h.eventStatus=r.CMP_UI_SHOWN):void 0===h.tcModel?(h.displayStatus=s.DISABLED,h.eventStatus=r.TC_LOADED):(h.displayStatus=s.HIDDEN,h.eventStatus=r.USER_ACTION_COMPLETE),h.gdprApplies=null!==e,h.gdprApplies?(""===e?(h.tcModel=new J,h.tcModel.cmpId=h.cmpId,h.tcModel.cmpVersion=h.cmpVersion):h.tcModel=K.decode(e),h.tcModel.isServiceSpecific=this.isServiceSpecific,h.tcfPolicyVersion=Number(h.tcModel.policyVersion),h.tcString=e):h.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():h.eventQueue.exec(),this.numUpdates++}disable(){h.disabled=!0,h.cmpStatus=t.ERROR}}(function e(t){var s=l[t];if(void 0!==s)return s.exports;var r=l[t]={exports:{}};return c[t](r,r.exports,e),r.exports})(1040)();var ne={set:function(e,t,s){if(s){var r=new Date;r.setTime(r.getTime()+24*s*60*60*1e3);var n="; expires="+r.toUTCString()}else n="";document.cookie=e+"="+encodeURIComponent(t)+n+"; path=/"},read:function(e){for(var t=e+"=",s=document.cookie.split(";"),r=s.length,n=0;n{ce.vendorConsents.unset(t)}),ce.vendorConsents.set(oe.consent.map(Number))),oe.legint&&(ce.vendorLegitimateInterests.forEach((e,t)=>{ce.vendorLegitimateInterests.unset(t)}),ce.vendorLegitimateInterests.set(oe.legint.map(Number))),oe.purpose_consent&&(ce.purposeConsents.forEach((e,t)=>{ce.purposeConsents.unset(t)}),ce.purposeConsents.set(oe.purpose_consent.map(Number))),oe.purpose_legint&&(ce.purposeLegitimateInterests.forEach((e,t)=>{ce.purposeLegitimateInterests.unset(t)}),ce.purposeLegitimateInterests.set(oe.purpose_legint.map(Number))),oe.feature_consent&&(ce.specialFeatureOptins.forEach((e,t)=>{ce.specialFeatureOptins.unset(t)}),ce.specialFeatureOptins.set(oe.feature_consent.map(Number)));var e=ae.join("."),t=iabtcf.gacm_data.map(e=>e[0]).filter(e=>!ae.includes(Number(e))).join(".");pe=`2~${e}~dv.${t}`,ce.addtlConsent=pe,le=K.encode(ce),ne.set("wpl_tc_string",le,365),ne.set("IABTCF_AddtlConsent",pe,365),oe.tcString=le,ce.tcString=le,ce.addtlConsent=pe,he.update(le,!0)}catch(e){console.error("Error updating TCModel:",e)}}(ge=jQuery)(".vendor-switch-handler.consent-switch").each(function(){const e=ge(this).val();oe.consent.includes(Number(e))?ge(this).prop("checked",!0):ge(this).prop("checked",!1)}),ge(".vendor-switch-handler.legint-switch").each(function(){const e=ge(this).val();oe.legint.includes(Number(e))?ge(this).prop("checked",!0):ge(this).prop("checked",!1)}),ge(".purposes-switch-handler.consent-switch").each(function(){const e=ge(this).val();oe.purpose_consent.includes(Number(e))?ge(this).prop("checked",!0):ge(this).prop("checked",!1)}),ge(".purposes-switch-handler.legint-switch").each(function(){const e=ge(this).val();oe.purpose_legint.includes(Number(e))?ge(this).prop("checked",!0):ge(this).prop("checked",!1)}),ge(".special-features-switch-handler.consent-switch").each(function(){const e=ge(this).val();oe.feature_consent.includes(Number(e))?ge(this).prop("checked",!0):ge(this).prop("checked",!1)}),ge(".vendor-all-switch-handler").each(function(){let e=!0;const t=[46,56,63,83,126,203,205,278,279,297,308,336,415,431,466,502,509,551,572,597,612,706,729,751,762,772,801,838,845,853,872,883,892,898,911,927,925,950,953,969,1005,1013,1014,1019,1041,1044,1075,1129,1160,1169,1170,1172,1187,1203,1204,1208,1217,1219,1225,1228,1234,1247,1253,1259,1275,1277,1278,1280,1285,1284,1300,1302,1306,1307,1308,1310,1311,1333];for(let s=0;s{try{ce.gvl=ie,ce.tcfPolicyVersion=ie.tcfPolicyVersion,ce.publisherCountryCode="IN",ce.version=2,ce.cmpId=449,ce.cmpVersion=1,ce.gdprApplies=!0,ce.isServiceSpecific=!1,ce&&ce.gvl?he=new re(449,1,!1,{getTCData:(e,t,s)=>{"boolean"!=typeof t&&("true"==de&&(t.addtlConsent=pe),"true"==ue&&(t.enableAdvertiserConsentMode=!0)),e(t,s)}}):console.error("GVL or TCModel is not ready"),ne.exists("wpl_tc_string")&&me()}catch(e){console.error("Error during CMP initialization:",e)}}),function(e){e(".gdpr_action_button").click(function(t){var s=e(this).attr("data-gdpr_action");"accept"==s&&ce.gvl.readyPromise.then(()=>{me()}),"reject"==s&&ce.gvl.readyPromise.then(()=>{!function(){try{ce.vendorConsents.forEach((e,t)=>{ce.vendorConsents.unset(t)}),ce.vendorLegitimateInterests.forEach((e,t)=>{ce.vendorLegitimateInterests.unset(t)}),ce.purposeConsents.forEach((e,t)=>{ce.purposeConsents.unset(t)}),ce.purposeLegitimateInterests.forEach((e,t)=>{ce.purposeLegitimateInterests.unset(t)}),ce.specialFeatureOptins.forEach((e,t)=>{ce.specialFeatureOptins.unset(t)}),ae=[];var e=iabtcf.gacm_data.map(e=>e[0]).join(".");pe=`2~~dv.${e}`,ce.addtlConsent=pe,le=K.encode(ce),oe.tcString=le,ce.tcString=le,ne.set("wpl_tc_string",le,365),ne.set("IABTCF_AddtlConsent",pe,365),he.update(le,!0),jQuery(".vendor-switch-handler").prop("checked",!1),jQuery(".gacm-vendor-switch-handler").prop("checked",!1),jQuery(".gacm-vendor-all-switch-handler").prop("checked",!1),jQuery(".vendor-all-switch-handler").prop("checked",!1)}catch(e){console.error("Error updating TCModel:",e)}}()})}),e(".vendor-all-switch-handler").click(function(){if(e(".vendor-all-switch-handler",this),e(this).is(":checked")){e(".vendor-switch-handler").prop("checked",!0),oe.consent=[],oe.legint=[];for(var t=0;t