1/*! For license information please see bundle.js.LICENSE.txt */ 2(()=>{"use strict";var e={604: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,r,s=[],n=window,o=n;o;){try{if(o.frames.__tcfapiLocator){e=o;break}}catch(e){}if(o===n.top)break;o=o.parent}e||(function e(){var t=n.document,r=!!n.frames.__tcfapiLocator;if(!r)if(t.body){var s=t.createElement("iframe");s.style.cssText="display:none",s.name="__tcfapiLocator",t.body.appendChild(s)}else setTimeout(e,5);return!r}(),n.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return s;"setGdprApplies"===t[0]?t.length>3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(r=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:r,cmpLoaded:!1,cmpStatus:"stub"}):s.push(t)},n.addEventListener("message",(function(e){var r="string"==typeof e.data,s={};if(r)try{s=JSON.parse(e.data)}catch(e){}else s=e.data;var n="object"===t(s)&&null!==s?s.__tcfapiCall:null;if(n){var o=null==e?void 0:e.source;window.__tcfapi(n.command,n.version,(function(e,t){var s={__tcfapiReturn:{returnValue:e,success:t,callId:n.callId}};o&&o.postMessage&&o.postMessage(r?JSON.stringify(s):s,"*")}),n.parameter),o=null}}),!1))}}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,r),o.exports}(()=>{var e,t,s,n,o,i,a,c;!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"}(n||(n={}));class l{listenerId;callback;next;param;success=!0;constructor(e,t,r,s){Object.assign(this,{callback:e,listenerId:r,param:t,next:s});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 u extends l{respond(){this.throwIfParamInvalid(),this.invokeCallback(new g(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 p{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 u(e.callback,e.param,t,e.next)}))}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}}class d{static apiVersion="2";static tcfPolicyVersion;static eventQueue=new p;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 h{cmpId=d.cmpId;cmpVersion=d.cmpVersion;gdprApplies=d.gdprApplies;tcfPolicyVersion=d.tcfPolicyVersion}class f extends h{cmpStatus=t.ERROR}class g extends h{tcString;listenerId;eventStatus;cmpStatus;isServiceSpecific;useNonStandardTexts;publisherCC;purposeOneTreatment;outOfBand;purpose;vendor;specialFeatureOptins;publisher;constructor(e,t){if(super(),this.eventStatus=d.eventStatus,this.cmpStatus=d.cmpStatus,this.listenerId=t,d.gdprApplies){const t=d.tcModel;this.tcString=d.tcString,this.isServiceSpecific=t.isServiceSpecific,this.useNonStandardTexts=t.useNonStandardTexts,this.purposeOneTreatment=t.purposeOneTreatment,this.publisherCC=t.publisherCountryCode,!1===this.isServiceSpecific&&(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),disclosedVendors:this.createVectorField(t.vendorsDisclosed,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 r=e.getMaxVendorId();for(let s=1;s<=r;s++){const r=s.toString();
2e.getRestrictions(s).forEach((e=>{const s=e.purposeId.toString();t[s]||(t[s]={}),t[s][r]=e.restrictionType}))}}return t}createVectorField(e,t){return t?t.reduce(((t,r)=>(t[String(r)]=e.has(Number(r)),t)),{}):[...e].reduce(((e,t)=>(e[t[0].toString(10)]=t[1],e)),{})}}class m extends g{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 r=e.getMaxVendorId();e.getRestrictions().forEach((e=>{t[e.purposeId.toString()]="_".repeat(r)}));for(let s=0;s<r;s++){const r=s+1;e.getRestrictions(r).forEach((e=>{const r=e.restrictionType.toString(),n=e.purposeId.toString(),o=t[n].substr(0,s),i=t[n].substr(s+1);t[n]=o+r+i}))}}return t}}class v extends h{cmpLoaded=!0;cmpStatus=d.cmpStatus;displayStatus=d.displayStatus;apiVersion=String(d.apiVersion);gvlVersion;constructor(){super(),d.tcModel&&d.tcModel.vendorListVersion&&(this.gvlVersion=+d.tcModel.vendorListVersion)}}class y extends l{respond(){this.invokeCallback(new v)}}class S extends u{respond(){this.throwIfParamInvalid(),this.invokeCallback(new m(this.param))}}class b extends Error{constructor(e){super(e),this.name="EncodingError"}}class E extends Error{constructor(e){super(e),this.name="DecodingError"}}class I{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 b("Invalid bitField");const t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let r="";for(let t=0;t<e.length;t+=this.BASIS)r+=this.DICT[parseInt(e.substr(t,this.BASIS),2)];return r}static decode(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new E("Invalidly encoded Base64URL string");let t="";for(let r=0;r<e.length;r++){const s=this.REVERSE_DICT.get(e[r]).toString(2);t+="0".repeat(this.BASIS-s.length)+s}return t}}class w{static 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"]);has(e){return w.langSet.has(e)}parseLanguage(e){const t=(e=e.toUpperCase()).split("-")[0];if(e.length>=2&&2==t.length){if(w.langSet.has(e))return e;if(w.langSet.has(t))return t;const r=t+"-"+t;if(w.langSet.has(r))return r;for(const r of w.langSet)if(-1!==r.indexOf(e)||-1!==r.indexOf(t))return r}throw new Error(`unsupported language ${e}`)}forEach(e){w.langSet.forEach(e)}get size(){return w.langSet.size}}class C{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 L{clone(){const e=new this.constructor;
2return Object.keys(this).forEach((t=>{const r=this.deepClone(this[t]);void 0!==r&&(e[t]=r)})),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 r of e)t.push(this.deepClone(r));return e instanceof Array?t:new e.constructor(t)}{const t={};for(const r in e)e.hasOwnProperty(r)&&(t[r]=this.deepClone(e[r]));return t}}}}class A extends Error{constructor(e,t,r=""){super(`invalid value ${t} passed for ${e} ${r}`),this.name="TCModelError"}}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(o||(o={}));class _ extends L{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),r=new _;if(2!==t.length)throw new A("hash",e);return r.purposeId=parseInt(t[0],10),r.restrictionType=parseInt(t[1],10),r}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${_.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===o.NOT_ALLOWED||this.restrictionType===o.REQUIRE_CONSENT||this.restrictionType===o.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class V extends L{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,r){let s=!0;if(this.gvl?.vendors){const n=this.gvl.vendors[r];if(n)if(e===o.NOT_ALLOWED)s=n.legIntPurposes.includes(t)||n.purposes.includes(t);else if(n.flexiblePurposes.length)switch(e){case o.REQUIRE_CONSENT:s=n.flexiblePurposes.includes(t)&&n.legIntPurposes.includes(t);break;case o.REQUIRE_LI:s=n.flexiblePurposes.includes(t)&&n.purposes.includes(t)}else s=!1;else s=!1}return s}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){const r=t.hash;this.has(r)||(this.map.set(r,new Set),this.bitLength=0),this.map.get(r).add(e)}}restrictPurposeToLegalBasis(e){const t=Array.from(this.gvl.vendorIds),r=e.hash,s=t[t.length-1],n=[...Array(s).keys()].map((e=>e+1));if(this.has(r))for(let e=1;e<=s;e++)this.map.get(r).add(e);else this.map.set(r,new Set(n)),this.bitLength=0}getVendors(e){let t=[];if(e){const r=e.hash;this.has(r)&&(t=Array.from(this.map.get(r)))}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 r;return this.getRestrictions(e).forEach((e=>{e.purposeId===t&&(void 0===r||r>e.restrictionType)&&(r=e.restrictionType)})),r}vendorHasRestriction(e,t){let r=!1;const s=this.getRestrictions(e);for(let e=0;e<s.length&&!r;e++)r=t.isSameAs(s[e]);return r}getMaxVendorId(){let e=0;return this.map.forEach((t=>{e=Math.max(Array.from(t)[t.size-1],e)})),e}getRestrictions(e){const t=[];return this.map.forEach(((r,s)=>{e?r.has(e)&&t.push(_.unHash(s)):t.push(_.unHash(s))})),t}getPurposes(){const e=new Set;return this.map.forEach(((t,r)=>{e.add(_.unHash(r).purposeId)})),Array.from(e)}remove(e,t){const r=t.hash,s=this.map.get(r);s&&(s.delete(e),0==s.size&&(this.map.delete(r),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach(((e,t)=>{const r=_.unHash(t);Array.from(e).forEach((t=>{this.isOkToHave(r.restrictionType,r.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"}(a||(a={}));class T{static ID_TO_KEY=[a.CORE,a.VENDORS_DISCLOSED,a.VENDORS_ALLOWED,a.PUBLISHER_TC];static KEY_TO_ID={[a.CORE]:0,[a.VENDORS_DISCLOSED]:1,[a.VENDORS_ALLOWED]:2,[a.PUBLISHER_TC]:3}}class O extends L{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 r=Number.isInteger(parseInt(t,10));return r=r&&this.isValidNumber(e[t].id),r=r&&void 0!==e[t].name,r})),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 A("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}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)}unsetAll(e){this.unset(e)}}class P{static[C.cmpId]=12;static[C.cmpVersion]=12;static[C.consentLanguage]=12;static[C.consentScreen]=6;static[C.created]=36;static[C.isServiceSpecific]=1;static[C.lastUpdated]=36;static[C.policyVersion]=6;static[C.publisherCountryCode]=12;static[C.publisherLegitimateInterests]=24;static[C.publisherConsents]=24;static[C.purposeConsents]=24;static[C.purposeLegitimateInterests]=24;static[C.purposeOneTreatment]=1;static[C.specialFeatureOptins]=12;static[C.useNonStandardTexts]=1;static[C.vendorListVersion]=12;static[C.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 N{static encode(e){return String(Number(e))}static decode(e){return"1"===e}}class x{static encode(e,t){let r;if("string"==typeof e&&(e=parseInt(e,10)),r=e.toString(2),r.length>t||e<0)throw new b(`${e} too large to encode into ${t}`);return r.length<t&&(r="0".repeat(t-r.length)+r),r}static decode(e,t){if(t!==e.length)throw new E("invalid bit length");return parseInt(e,2)}}class R{static encode(e,t){return x.encode(Math.round(e.getTime()/100),t)}static decode(e,t){if(t!==e.length)throw new E("invalid bit length");const r=new Date;return r.setTime(100*x.decode(e,t)),r}}class D{static encode(e,t){let r="";for(let s=1;s<=t;s++)r+=N.encode(e.has(s));return r}static decode(e,t){if(e.length!==t)throw new E("bitfield encoding length mismatch");const r=new O;for(let s=1;s<=t;s++)N.decode(e[s-1])&&r.set(s);return r.bitLength=e.length,r}}
2class F{static encode(e,t){const r=(e=e.toUpperCase()).charCodeAt(0)-65,s=e.charCodeAt(1)-65;if(r<0||r>25||s<0||s>25)throw new b(`invalid language code: ${e}`);if(t%2==1)throw new b(`numBits must be even, ${t} is not valid`);return t/=2,x.encode(r,t)+x.encode(s,t)}static decode(e,t){let r;if(t!==e.length||e.length%2)throw new E("invalid bit length for language");{const t=65,s=e.length/2,n=x.decode(e.slice(0,s),s)+t,o=x.decode(e.slice(s),s)+t;r=String.fromCharCode(n)+String.fromCharCode(o)}return r}}class k{static encode(e){let t=x.encode(e.numRestrictions,P.numRestrictions);if(!e.isEmpty()){const r=(t,r)=>{for(let s=t+1;s<=r;s++)if(e.gvl.vendorIds.has(s))return s;return t};e.getRestrictions().forEach((s=>{t+=x.encode(s.purposeId,P.purposeId),t+=x.encode(s.restrictionType,P.restrictionType);const n=e.getVendors(s),o=n.length;let i=0,a=0,c="";for(let e=0;e<o;e++){const t=n[e];if(0===a&&(i++,a=t),e===o-1||n[e+1]>r(t,n[o-1])){const e=!(t===a);c+=N.encode(e),c+=x.encode(a,P.vendorId),e&&(c+=x.encode(t,P.vendorId)),a=0}}t+=x.encode(i,P.numEntries),t+=c}))}return t}static decode(e){let t=0;const r=new V,s=x.decode(e.substr(t,P.numRestrictions),P.numRestrictions);t+=P.numRestrictions;for(let n=0;n<s;n++){const s=x.decode(e.substr(t,P.purposeId),P.purposeId);t+=P.purposeId;const n=x.decode(e.substr(t,P.restrictionType),P.restrictionType);t+=P.restrictionType;const o=new _(s,n),i=x.decode(e.substr(t,P.numEntries),P.numEntries);t+=P.numEntries;for(let s=0;s<i;s++){const s=N.decode(e.substr(t,P.anyBoolean));t+=P.anyBoolean;const n=x.decode(e.substr(t,P.vendorId),P.vendorId);if(t+=P.vendorId,s){const s=x.decode(e.substr(t,P.vendorId),P.vendorId);if(t+=P.vendorId,s<n)throw new E(`Invalid RangeEntry: endVendorId ${s} is less than ${n}`);for(let e=n;e<=s;e++)r.add(e,o)}else r.add(n,o)}}return r.bitLength=t,r}}!function(e){e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE"}(c||(c={}));class U{static encode(e){const t=[];let r,s=[],n=x.encode(e.maxId,P.maxId),o="";const i=P.maxId+P.encodingType,a=i+e.maxId,l=2*P.vendorId+P.singleOrRange+P.numEntries;let u=i+P.numEntries;return e.forEach(((n,i)=>{o+=N.encode(n),r=e.maxId>l&&u<a,r&&n&&(e.has(i+1)?0===s.length&&(s.push(i),u+=P.singleOrRange,u+=P.vendorId):(s.push(i),u+=P.vendorId,t.push(s),s=[]))})),r?(n+=String(c.RANGE),n+=this.buildRangeEncoding(t)):(n+=String(c.FIELD),n+=o),n}static decode(e,t){let r,s=0;const n=x.decode(e.substr(s,P.maxId),P.maxId);s+=P.maxId;const o=x.decode(e.charAt(s),P.encodingType);if(s+=P.encodingType,o===c.RANGE){if(r=new O,1===t){if("1"===e.substr(s,1))throw new E("Unable to decode default consent=1");s++}const n=x.decode(e.substr(s,P.numEntries),P.numEntries);s+=P.numEntries;for(let t=0;t<n;t++){const t=N.decode(e.charAt(s));s+=P.singleOrRange;const n=x.decode(e.substr(s,P.vendorId),P.vendorId);if(s+=P.vendorId,t){const t=x.decode(e.substr(s,P.vendorId),P.vendorId);s+=P.vendorId;for(let e=n;e<=t;e++)r.set(e)}else r.set(n)}}else{const t=e.substr(s,n);s+=n,r=D.decode(t,n)}return r.bitLength=s,r}static buildRangeEncoding(e){const t=e.length;let r=x.encode(t,P.numEntries);return e.forEach((e=>{const t=1===e.length;r+=N.encode(!t),r+=x.encode(e[0],P.vendorId),t||(r+=x.encode(e[1],P.vendorId))})),r}}function M(){return{[C.version]:x,[C.created]:R,[C.lastUpdated]:R,[C.cmpId]:x,[C.cmpVersion]:x,[C.consentScreen]:x,[C.consentLanguage]:F,[C.vendorListVersion]:x,[C.policyVersion]:x,[C.isServiceSpecific]:N,[C.useNonStandardTexts]:N,[C.specialFeatureOptins]:D,[C.purposeConsents]:D,[C.purposeLegitimateInterests]:D,[C.purposeOneTreatment]:N,[C.publisherCountryCode]:F,[C.vendorConsents]:U,[C.vendorLegitimateInterests]:U,[C.publisherRestrictions]:k,segmentType:x,[C.vendorsDisclosed]:U,[C.vendorsAllowed]:U,[C.publisherConsents]:D,[C.publisherLegitimateInterests]:D,[C.numCustomPurposes]:x,[C.publisherCustomConsents]:D,[C.publisherCustomLegitimateInterests]:D}}class G{1={[a.CORE]:[C.version,C.created,C.lastUpdated,C.cmpId,C.cmpVersion,C.consentScreen,C.consentLanguage,C.vendorListVersion,C.purposeConsents,C.vendorConsents]};2={[a.CORE]:[C.version,C.created,C.lastUpdated,C.cmpId,C.cmpVersion,C.consentScreen,C.consentLanguage,C.vendorListVersion,C.policyVersion,C.isServiceSpecific,C.useNonStandardTexts,C.specialFeatureOptins,C.purposeConsents,C.purposeLegitimateInterests,C.purposeOneTreatment,C.publisherCountryCode,C.vendorConsents,C.vendorLegitimateInterests,C.publisherRestrictions],[a.VENDORS_DISCLOSED]:[C.vendorsDisclosed],[a.PUBLISHER_TC]:[C.publisherConsents,C.publisherLegitimateInterests,C.numCustomPurposes,C.publisherCustomConsents,C.publisherCustomLegitimateInterests],[a.VENDORS_ALLOWED]:[C.vendorsAllowed]}}class j{1=[a.CORE];2=[a.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(a.VENDORS_DISCLOSED),this[2].push(a.PUBLISHER_TC);else{const r=!(!t||!t.isForVendors);r&&!0!==e[C.supportOOB]||this[2].push(a.VENDORS_DISCLOSED),r&&(e[C.supportOOB]&&e[C.vendorsAllowed].size>0&&this[2].push(a.VENDORS_ALLOWED),this[2].push(a.PUBLISHER_TC))}}}class H{static fieldSequence=new G;static encode(e,t){let r;try{r=this.fieldSequence[String(e.version)][t]}
2catch(r){throw new b(`Unable to encode version: ${e.version}, segment: ${t}`)}let s="";t!==a.CORE&&(s=x.encode(T.KEY_TO_ID[t],P.segmentType));const n=M();return r.forEach((r=>{const o=e[r],i=n[r];let a=P[r];void 0===a&&this.isPublisherCustom(r)&&(a=Number(e[C.numCustomPurposes]));try{s+=i.encode(o,a)}catch(e){throw new b(`Error encoding ${t}->${r}: ${e.message}`)}})),I.encode(s)}static decode(e,t,r){const s=I.decode(e);let n=0;r===a.CORE&&(t.version=x.decode(s.substr(n,P[C.version]),P[C.version])),r!==a.CORE&&(n+=P.segmentType);const o=this.fieldSequence[String(t.version)][r],i=M();return o.forEach((e=>{const r=i[e];let o=P[e];if(void 0===o&&this.isPublisherCustom(e)&&(o=Number(t[C.numCustomPurposes])),0!==o){const i=s.substr(n,o);if(t[e]=r===U?r.decode(i,t.version):r.decode(i,o),Number.isInteger(o))n+=o;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 B{static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);const r=new Map;return r.set("legIntPurposes",e.vendorLegitimateInterests),r.set("purposes",e.vendorConsents),r.forEach(((r,s)=>{r.forEach(((n,i)=>{if(n){const n=t.vendors[i];if(!n||n.deletedDate)r.unset(i);else if(0===n[s].length)if("legIntPurposes"===s&&0===n.purposes.length&&0===n.legIntPurposes.length&&n.specialPurposes.length>0)r.set(i);else if("legIntPurposes"===s&&n.purposes.length>0&&0===n.legIntPurposes.length&&n.specialPurposes.length>0)r.set(i);else if(e.isServiceSpecific)if(0===n.flexiblePurposes.length)r.unset(i);else{const t=e.publisherRestrictions.getRestrictions(i);let n=!1;for(let e=0,r=t.length;e<r&&!n;e++)n=t[e].restrictionType===o.REQUIRE_CONSENT&&"purposes"===s||t[e].restrictionType===o.REQUIRE_LI&&"legIntPurposes"===s;n||r.unset(i)}else r.unset(i)}}))})),e}];static process(e,t){const r=e.gvl;if(!r)throw new b("Unable to encode TCModel without a GVL");if(!r.isReady)throw new b("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=r.language.slice(0,2).toUpperCase(),t?.version>0&&t?.version<=this.processor.length?e.version=t.version:e.version=this.processor.length;const s=e.version-1;if(!this.processor[s])throw new b(`Invalid version: ${e.version}`);return this.processor[s](e,r)}}class Q extends Error{constructor(e){super(e),this.name="GVLError"}}class ${static absCall(e,t,r,s){return new Promise(((n,o)=>{const i=new XMLHttpRequest;i.withCredentials=r,i.addEventListener("load",(()=>{if(i.readyState==XMLHttpRequest.DONE)if(i.status>=200&&i.status<300){let e=i.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}n(e)}else o(new Error(`HTTP Status: ${i.status} response type: ${i.responseType}`))})),i.addEventListener("error",(()=>{o(new Error("error"))})),i.addEventListener("abort",(()=>{o(new Error("aborted"))})),null===t?i.open("GET",e,!0):i.open("POST",e,!0),i.responseType="json",i.timeout=s,i.ontimeout=()=>{o(new Error("Timeout "+s+"ms "+e))},i.send(t)}))}static post(e,t,r=!1,s=0){return this.absCall(e,JSON.stringify(t),r,s)}static fetch(e,t=!1,r=0){return this.absCall(e,null,t,r)}}class J extends L{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 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 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 r=J.baseUrl,s=t?.language;if(s)try{s=J.consentLanguages.parseLanguage(s)}catch(e){throw new Q("Error during parsing the language: "+e.message)}if(this.lang_=s||J.DEFAULT_LANGUAGE,this.cacheLang_=s||J.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!r)throw new Q("must specify GVL.baseUrl before loading GVL json");if(e>0){const t=e;J.CACHE.has(t)?(this.populate(J.CACHE.get(t)),this.readyPromise=Promise.resolve()):(r+=J.versionedFilename.replace("[VERSION]",String(t)),this.readyPromise=this.fetchJson(r))}else J.CACHE.has(J.LATEST_CACHE_KEY)?(this.populate(J.CACHE.get(J.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(r+J.latestFilename))}}static emptyLanguageCache(e){let t=!1;return null==e&&J.LANGUAGE_CACHE.size>0?(J.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(J.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(J.CACHE.delete(e),t=!0):void 0===e&&(J.CACHE=new Map,t=!0),t}cacheLanguage(){J.LANGUAGE_CACHE.has(this.cacheLang_)||J.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 $.fetch(e))}catch(e){throw new Q(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]=J.cloneFeature(this.specialFeatures[t]);return e}cloneFeatures(){const e={};for(const t of Object.keys(this.features))e[t]=J.cloneFeature(this.features[t]);return e}cloneStacks(){const e={};for(const t of Object.keys(this.stacks))e[t]=J.cloneStack(this.stacks[t]);return e}cloneDataCategories(){const e={};for(const t of Object.keys(this.dataCategories))e[t]=J.cloneDataCategory(this.dataCategories[t]);return e}cloneSpecialPurposes(){const e={};for(const t of Object.keys(this.specialPurposes))e[t]=J.clonePurpose(this.specialPurposes[t]);return e}clonePurposes(){const e={};for(const t of Object.keys(this.purposes))e[t]=J.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]=J.cloneVendor(this.fullVendorList[t]);return e}async changeLanguage(e){let t=e;try{t=J.consentLanguages.parseLanguage(e)}catch(e){throw new Q("Error during parsing the language: "+e.message)}const r=e.toUpperCase();if((t.toLowerCase()!==J.DEFAULT_LANGUAGE.toLowerCase()||J.LANGUAGE_CACHE.has(r))&&t!==this.lang_)if(this.lang_=t,J.LANGUAGE_CACHE.has(r)){const e=J.LANGUAGE_CACHE.get(r);for(const t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}else{const e=J.baseUrl+J.languageFilename.replace("[LANG]",this.lang_.toLowerCase());try{await this.fetchJson(e),this.cacheLang_=r,this.cacheLanguage()}catch(e){throw new Q("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.vend
2ors,this.mapVendors(),this.isReady_=!0,this.isLatest&&J.CACHE.set(J.LATEST_CACHE_KEY,this.getJson()),J.CACHE.has(this.vendorListVersion)||J.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 r=this.vendors_[String(t)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((e=>{this.byPurposeVendorMap[String(e)].consent.add(t)})),r.specialPurposes.forEach((e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)})),r.legIntPurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)})),r.features.forEach((e=>{this.byFeatureVendorMap[String(e)].add(t)})),r.specialFeatures.forEach((e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)})),e[t]=r),e}),{})}getFilteredVendors(e,t,r,s){const n=e.charAt(0).toUpperCase()+e.slice(1);let o;const i={};return o="purpose"===e&&r?this["by"+n+"VendorMap"][String(t)][r]:this["by"+(s?"Special":"")+n+"VendorMap"][String(t)],o.forEach((e=>{i[String(e)]=this.vendors[String(e)]})),i}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 J(this.getJson());return this.lang_!==J.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}class W extends L{static consentLanguages=J.consentLanguages;isServiceSpecific_=!0;supportOOB_=!1;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 O;purposeConsents=new O;purposeLegitimateInterests=new O;publisherConsents=new O;publisherLegitimateInterests=new O;publisherCustomConsents=new O;publisherCustomLegitimateInterests=new O;customPurposes;vendorConsents=new O;vendorLegitimateInterests=new O;vendorsDisclosed=new O;vendorsAllowed=new O;publisherRestrictions=new V;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){J.isInstanceOf(e)||(e=new J(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 A("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new A("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new A("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 A("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)>>0)<0)throw new A("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 A("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 A("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 Y{static encode(e,t){let r,s="";return e=B.process(e,t),r=Array.isArray(t?.segments)?t.segments:new j(e,t)[""+e.version],r.forEach(((t,n)=>{let o="";n<r.length-1&&(o="."),s+=H.encode(e,t)+o})),s}static decode(e,t){const r=e.split("."),s=r.length;t||(t=new W);for(let e=0;e<s;e++){const s=r[e],n=I.decode(s.charAt(0)).substr(0,P.segmentType),o=T.ID_TO_KEY[x.decode(n,P.segmentType).toString()];H.decode(s,t,o)}return t}}class z extends l{respond(){const e=d.tcModel,t=e.vendorListVersion;let r;void 0===this.param&&(this.param=t),r=this.param===t&&e.gvl?e.gvl:new J(this.param),r.readyPromise.then((()=>{this.invokeCallback(r.getJson())}))}}class K extends u{respond(){this.listenerId=d.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}}class q extends l{respond(){this.invokeCallback(d.eventQueue.remove(this.param))}}class Z{static[e.PING]=y;static[e.GET_TC_DATA]=u;static[e.GET_IN_APP_TC_DATA]=S;static[e.GET_VENDOR_LIST]=z;static[e.ADD_EVENT_LISTENER]=K;
2static[e.REMOVE_EVENT_LISTENER]=q}class X{static set_=new Set([0,2,void 0,null]);static has(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)}}const ee="__tcfapi";class te{callQueue;customCommands;constructor(t){if(t){let r=e.ADD_EVENT_LISTENER;if(t?.[r])throw new Error(`Built-In Custom Commmand for ${r} not allowed: Use ${e.GET_TC_DATA} instead`);if(r=e.REMOVE_EVENT_LISTENER,t?.[r])throw new Error(`Built-In Custom Commmand for ${r} 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[ee]()||[]}catch(e){this.callQueue=[]}finally{window[ee]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(t,r,s,...n){if("string"!=typeof t&&"function"==typeof s)s(null,!1);else if(X.has(r)){if("function"!=typeof s)throw new Error("invalid callback function");d.disabled?s(new f,!1):this.isCustomCommand(t)||this.isBuiltInCommand(t)?this.isCustomCommand(t)&&!this.isBuiltInCommand(t)?this.customCommands[t](s,...n):t===e.PING?this.isCustomCommand(t)?new Z[t](this.customCommands[t],n[0],null,s):new Z[t](s,n[0]):void 0===d.tcModel?this.callQueue.push([t,r,s,...n]):this.isCu
2stomCommand(t)&&this.isBuiltInCommand(t)?new Z[t](this.customCommands[t],n[0],null,s):new Z[t](s,n[0]):s(null,!1)}else s(null,!1)}purgeQueuedCalls(){const e=this.callQueue;this.callQueue=[],e.forEach((e=>{window[ee](...e)}))}isCustomCommand(e){return this.customCommands&&"function"==typeof this.customCommands[e]}isBuiltInCommand(e){return void 0!==Z[e]}}class re{callResponder;isServiceSpecific;numUpdates=0;constructor(e,t,r=!0,s){this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),d.cmpId=e,d.cmpVersion=t,d.tcfPolicyVersion=5,this.isServiceSpecific=!!r,this.callResponder=new te(s)}throwIfInvalidInt(e,t,r){if(!("number"==typeof e&&Number.isInteger(e)&&e>=r))throw new Error(`Invalid ${t}: ${e}`)}update(e,r=!1){if(d.disabled)throw new Error("CmpApi Disabled");d.cmpStatus=t.LOADED,r?(d.displayStatus=s.VISIBLE,d.eventStatus=n.CMP_UI_SHOWN):void 0===d.tcModel?(d.displayStatus=s.DISABLED,d.eventStatus=n.TC_LOADED):(d.displayStatus=s.HIDDEN,d.eventStatus=n.USER_ACTION_COMPLETE),d.gdprApplies=null!==e,d.gdprApplies?(""===e?(d.tcModel=new W,d.tcModel.cmpId=d.cmpId,d.tcModel.cmpVersion=d.cmpVersion):d.tcModel=Y.decode(e),d.tcModel.isServiceSpecific=this.isServiceSpecific,d.tcfPolicyVersion=Number(d.tcModel.policyVersion),d.tcString=e):d.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():d.eventQueue.exec(),this.numUpdates++}disable(){d.disabled=!0,d.cmpStatus=t.ERROR}}var se=r(604);function ne(e){return ne="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},ne(e)}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}function ie(){ie=function(){return t};var e,t={},r=Object.prototype,s=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,s){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new O(s||[]);return n(i,"_invoke",{value:A(e,r,a)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",h="suspendedYield",f="executing",g="completed",m={};function v(){}function y(){}function S(){}var b={};l(b,i,(function(){return this}));var E=Object.getPrototypeOf,I=E&&E(E(P([])));I&&I!==r&&s.call(I,i)&&(b=I);var w=S.prototype=v.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(n,o,i,a){var c=p(e[n],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ne(u)&&s.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(u).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,a)}))}a(c.arg)}var o;n(this,"_invoke",{value:function(e,s){function n(){return new t((function(t,n){r(e,s,t,n)}))}return o=o?o.then(n,n):n()}})}function A(t,r,s){var n=d;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===g){if("throw"===o)throw i;return{value:e,done:!0}}for(s.method=o,s.arg=i;;){var a=s.delegate;if(a){var c=_(a,s);if(c){if(c===m)continue;return c}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===d)throw n=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=f;var l=p(t,r,s);if("normal"===l.type){if(n=s.done?g:h,l.arg===m)continue;return{value:l.arg,done:s.done}}"throw"===l.type&&(n=g,s.method="throw",s.arg=l.arg)}}}function _(t,r){var s=r.method,n=t.iterator[s];if(n===e)return r.delegate=null,"throw"===s&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==s&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=p(n,t.iterator,r.arg);
2if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(s.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ne(t)+" is not iterable")}return y.prototype=S,n(w,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:y,configurable:!0}),y.displayName=l(S,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},C(L.prototype),l(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,s,n,o){void 0===o&&(o=Promise);var i=new L(u(e,r,s,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(w),l(w,c,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var s in t)r.push(s);return r.reverse(),function e(){for(;r.length;){var s=r.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},t.values=P,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(s,n){return a.type="throw",a.arg=t,r.next=s,n&&(r.method="next",r.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=s.call(i,"catchLoc"),l=s.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var s=r.completion;if("throw"===s.type){var n=s.arg;T(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,s){return this.delegate={iterator:P(t),resultName:r,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}function ae(e,t,r,s,n,o,i){try{var a=e[o](i),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(s,n)}function ce(e){return function(){var t=this,r=arguments;return new Promise((function(s,n){var o=e.apply(t,r);function i(e){ae(o,s,n,i,a,"next",e)}function a(e){ae(o,s,n,i,a,"throw",e)}i(void 0)}))}}var le="https://cdn.cookie.pii.ai/1/",ue=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=("documentLang"in t?t.documentLang:"undefined"!=typeof document&&document.documentElement&&document.documentElement.lang),s=("navigatorLang"in t?t.navigatorLang:"undefined"!=typeof navigator&&navigator.language),n=0,o=[e&&e.language,r,s];n<o.length;n++){var i=o[n];if(i){var a=String(i).trim().slice(0,2).toUpperCase();if(J.consentLanguages.has(a))return a}}return"EN"},pe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=new W(t);return function(e,t){t.AllowAllVendor&&t.AllowAllPurpose&&t.AllowAllLegIntPurpose&&t.AllowAllSpecialFeatures&&t.AllowAllLegIntVendors?(e.setAllPurposeConsents(!0),e.setAllPurposeLegitimateInterests(!0),e.setAllSpecialFeatureOptins(!0),e.setAllVendorConsents(!0),e.setAllVendorLegitimateInterests(!0)):t.DeclineAllVendor&&t.DeclineAllPurpose&&t.DeclineAllLegIntPurpose&&t.DeclineAllSpecialFeatures&&t.DeclineAllLegIntVendors?(e.unsetAllPurposeConsents(!0),e.unsetAllPurposeLegitimateInterests(!0),e.unsetAllSpecialFeatureOptins(!0),e.unsetAllVendorConsents(!1),e.unsetAllVendorLegitimateInterests(!0)):(e.purposeConsents.set(t.AllowedPurposes),e.vendorConsents.set(t.AllowedVendors),e.purposeLegitimateInterests.set(t.AllowedLegIntPurposes),e.specialFeatureOptins.set(t.AllowedSpecialFeatures),e.vendorLegitimateInterests.set(t.AllowedLegIntVendors))}(s,e.IABTCF),s.setAllVendorsDisclosed(),s.vendorsDisclosed.has(755)||console.error("TCF: Google (".concat(755,") is missing from disclosedVendors; ")+"this string will be rejected as Google error 1.4 (Limited Ads)."),s.cmpId=422,s.cmpVersion=2,s.consentScreen=3,s.tcfPolicyVersion=t.tcfPolicyVersion,s.isServiceSpecific=1,s.useNonStandardStacks=0,s.purposeOneTreatment=!0,s.publisherCountryCode=function(e,t){var r=t||("undefined"!=typeof localStorage?localStorage:null);if(e&&e.publisherCountryCode)return String(e.publisherCountryCode).trim().slice(0,2).toUpperCase();try{if(r){var s=r.getItem("geoData");if(s){var n,o=null===(n=JSON.parse(s))||void 0===n||null===(n=n.location)||void 0===n||null===(n=n.country)||void 0===n?void 0:n.code;if(o)return String(o).trim().slice(0,2).toUpperCase()}var i=r.getItem("ipDetailsData");if(i){var a,c=null===(a=JSON.parse(i))||void 0===a?void 0:a.countryCode;if(c)return String(c).trim().slice(0,2).toUpperCase()}}}catch(e){console.warn("TCF: could not read geo for publisherCountryCode",e)}return"US"}(e.tcfPayload,r.storage),s.useNonStandardTexts=1,s.isRangeEncoding=!0,s},de=function(){var e=ce(ie().mark((function e(t,r){var s,n,o=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=ue(r,o.length>2&&void 0!==o[2]?o[2]:{}),n=t.language,s!==n){e.next=5;break}return e.abrupt("return",n);case 5:return J.baseUrl=le,e.prev=6,e.next=9,t.changeLanguage(s);case 9:return e.abrupt("return",s);case 12:return e.prev=12,e.t0=e.catch(6),console.warn("TCF: no translated GVL published for ".concat(s,"; ")+"the TC string will declare ".concat(n,". See TCF-09."),e.t0),t.lang_=n,e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t,r){return e.apply(this,arguments)}}(),he=function(){var e=ce(ie().mark((function e(t,r){var s,n,o=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=o.length>2&&void 0!==o[2]?o[2]:{},n=new J(r),e.abrupt("return",n.readyPromise.then(ce(ie().mark((function e(){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de(n,t.tcfPayload,s.env);case 2:return r=pe(t,n,s),e.abrupt("return",Y.encode(r));case 4:case"end":return e.stop()}}),e)})))).catch((function(e){return console.error("Error loading GVL",e),!1})));case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),fe=function(e){for(var t=[],r=[],s=0,n=Object.entries(e||{});s<n.length;s++){var o=(l=n[s],u=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,o,i,a=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(s=o.call(r)).done)&&(a.push(s.value),a.length!==t);c=!0);}catch(e){l=!0,n=e}
vendor: 5,659 bytes, line 2
2finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw n}}return a}}(l,u)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(e,t):void 0}}(l,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1],c=Number(i);!Number.isInteger(c)||c<=0||("true"===a||!0===a?t.push(c):r.push(c))}var l,u,p=function(e,t){return e-t};return t.sort(p),r.sort(p),"".concat(2,"~").concat(t.join("."),"~dv.").concat(r.join("."))},ge="tcf_consent",me="__pieeyeTcf",ve="__pieeyeTcfQueue",ye=["acceptAll","rejectAll","selectedConsent"],Se=function(e){return-1!==ye.indexOf(e)},be=function(e,t,r){"function"==typeof e.CustomEvent&&e.dispatchEvent(new e.CustomEvent("pieeye:tcf-string-ready",{detail:{consentType:t,tcString:r||null}}))};function Ee(){Ee=function(){return t};var e,t={},r=Object.prototype,s=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,s){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new O(s||[]);return n(i,"_invoke",{value:A(e,r,a)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",h="suspendedYield",f="executing",g="completed",m={};function v(){}function y(){}function S(){}var b={};l(b,i,(function(){return this}));var E=Object.getPrototypeOf,I=E&&E(E(P([])));I&&I!==r&&s.call(I,i)&&(b=I);var w=S.prototype=v.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(n,o,i,a){var c=p(e[n],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ce(u)&&s.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(u).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,a)}))}a(c.arg)}var o;n(this,"_invoke",{value:function(e,s){function n(){return new t((function(t,n){r(e,s,t,n)}))}return o=o?o.then(n,n):n()}})}function A(t,r,s){var n=d;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===g){if("throw"===o)throw i;return{value:e,done:!0}}for(s.method=o,s.arg=i;;){var a=s.delegate;if(a){var c=_(a,s);if(c){if(c===m)continue;return c}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===d)throw n=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=f;var l=p(t,r,s);if("normal"===l.type){if(n=s.done?g:h,l.arg===m)continue;return{value:l.arg,done:s.done}}"throw"===l.type&&(n=g,s.method="throw",s.arg=l.arg)}}}function _(t,r){var s=r.method,n=t.iterator[s];if(n===e)return r.delegate=null,"throw"===s&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==s&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=p(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(s.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ce(t)+" is not iterable")}return y.prototype=S,n(w,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:y,configurable:!0}),y.displayName=l(S,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},C(L.prototype),l(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,s,n,o){void 0===o&&(o=Promise);var i=new L(u(e,r,s,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(w),l(w,c,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var s in t)r.push(s);return r.reverse(),function e(){for(;r.length;){var s=r.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},t.values=P,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(T),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(s,n){return a.type="throw",a.arg=t,r.next=s,n&&(r.method="next",r.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=s.call(i,"catchLoc"),l=s.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var s=r.completion;if("throw"===s.type){var n=s.arg;T(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,s){return this.delegate={iterator:P(t),resultName:r,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}function Ie(e,t,r,s,n,o,i){try{var a=e[o](i),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(s,n)}function we(e){return function(){var t=this,r=arguments;return new Promise((function(s,n){var o=e.apply(t,r);function i(e){Ie(o,s,n,i,a,"next",e)}function a(e){Ie(o,s,n,i,a,"throw",e)}i(void 0)}))}}function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}se();var Le=fe({}),Ae=function(){return{getTCData:function(e,t,r){r&&t&&"object"===Ce(t)&&(t.addtlConsent=Le),e(t,r)}}},_e=new re(422,2,!0,Ae());function Ve(e){return Te.apply(this,arguments)}function Te(){return(Te=we(Ee().mark((function e(t){var r;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.abrupt("return",r.json());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Oe=function(){var e=we(Ee().mark((function e(){var t;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ve("".concat(le,"gvl-vendor-list.json"));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(localStorage.getItem("tcfEnable"))if(localStorage.getItem("consent-response")){var Pe=localStorage.getItem("tcfPayload")?JSON.parse(localStorage.getItem("tcfPayload")):{};Le=fe(Pe.additionalVendors),_e=new re(422,2,!0,Ae()),Pe.tcString?_e.update(Pe.tcString,!1):_e.update("",!0)}else _e.update("",!0);var Ne=function(){var e=we(Ee().mark((function e(t,r){var s;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,he(t,r);case 2:return!1!==(s=e.sent)&&_e.update(s,!1),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),xe=function(){var e=we(Ee().mark((function e(t){var r,s,n,o,i,a,c,l,u,p;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=localStorage.getItem("tcfPayload")?JSON.parse(localStorage.getItem("tcfPayload")):{},s={},"acceptAll"!==t&&"rejectAll"!==t&&"selectedConsent"!==t){e.next=29;break}return n=Object.keys(r.purpose).filter((function(e){return"true"===r.purpose[e]})),o=Object.keys(r.legIntPurpose).filter((function(e){return"true"===r.legIntPurpose[e]})),i=Object.keys(r.legIntVendors).filter((function(e){return"true"===r.legIntVendors[e]})),a=Object.keys(r.legIntFeatures).filter((function(e){return"true"===r.legIntFeatures[e]})),c=Object.keys(r.vendors).filter((function(e){return"true"===r.vendors[e]})),Le=fe(r.additionalVendors),s.AllowedPurposes=n.map((function(e){return parseInt(e)})),s.AllowedLegIntPurposes=o.map((function(e){return parseInt(e)})),s.AllowedSpecialFeatures=a.map((function(e){return parseInt(e)})),s.AllowedVendors=c.map((function(e){return parseInt(e)})),s.AllowedLegIntVendors=i.map((function(e){return parseInt(e)})),s.AllowedFeatures=[1,2,3],"acceptAll"===t?(s.AllowAllPurpose=!0,s.AllowAllLegIntPurpose=!0,s.AllowAllSpecialFeatures=!0,s.AllowAllVendor=!0,s.AllowAllLegIntVendors=!0):"rejectAll"===t&&(s.DeclineAllPurpose=!1,s.DeclineAllLegIntPurpose=!1,s.DeclineAllSpecialFeatures=!1,s.DeclineAllVendor=!1,s.DeclineAllLegIntVendor=!1),l={IABTCF:s,tcfPayload:r},e.next=19,Oe();case 19:return u=e.sent,e.next=22,Ne(l,u);case 22:return p=e.sent,(r=localStorage.getItem("tcfPayload")?JSON.parse(localStorage.getItem("tcfPayload")):{}).tcString=p,localStorage.setItem("tcfPayload",JSON.stringify(r)),d=void 0,d=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2).secure,r=void 0!==t&&t,s=["".concat(ge,"=").concat(JSON.stringify(e)),"path=/","max-age=".concat(31536e3),"SameSite=Lax"];return r&&s.push("Secure"),s.join("; ")}({gdpr:1,gdpr_consent:p},{secure:"undefined"!=typeof location&&"https:"===location.protocol}),d.length>4096&&console.error("TCF: ".concat(ge," is ").concat(d.length," bytes, over the ")+"~".concat(4096,"-byte browser limit. The browser will drop ")+"it and the consent record will be lost."),document.cookie=d,e.abrupt("return",p);case 29:return e.abrupt("return",null);case 30:case"end":return e.stop()}var d}),e)})));return function(t){return e.apply(this,arguments)}}(),Re=function(){var e=we(Ee().mark((function e(t){var r;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null,e.prev=1,e.next=4,xe(t);case 4:r=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error("TCF: failed to encode a TC string for ".concat(t),e.t0);case 10:return e.prev=10,localStorage.removeItem("consentType"),localStorage.setItem("isVisited","true"),be(window,t,r),e.finish(10);case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}}),e,null,[[1,7,10,15]])})));return function(t){return e.apply(this,arguments)}}();!function(e,t){var r=function(e){if(Se(e))return t(e)};e.addEventListener("pieeye:tcf-consent",(function(e){r(e&&e.detail?e.detail.consentType:void 0)})),e[me]={notifyConsent:r};var s=e[ve];Array.isArray(s)&&s.splice(0).forEach(r),e[ve]={push:r}}(window,Re);var De=function(e){if(!e)return null;var t={};try{var r=e.getItem("tcfPayload");r&&(t=JSON.parse(r))}catch(e){console.warn("TCF: could not parse tcfPayload",e)}if(t&&t.customVendors)return"selectedConsent";var s=e.getItem("consentType");return Se(s)?s:null}(localStorage);window[me].ready=De?Re(De):Promise.resolve(null)})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.