1(()=>{var e={179:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestriction=void 0;var o=s(2388),i=s(8177),a=s(8725),c=function(e){function t(t,s){var n=e.call(this)||this;return void 0!==t&&(n.purposeId=t),void 0!==s&&(n.restrictionType=s),n}return r(t,e),t.unHash=function(e){var s=e.split(this.hashSeparator),n=new t;if(2!==s.length)throw new i.TCModelError("hash",e);return n.purposeId=parseInt(s[0],10),n.restrictionType=parseInt(s[1],10),n},Object.defineProperty(t.prototype,"hash",{get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(t.hashSeparator).concat(this.restrictionType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"purposeId",{get:function(){return this.purposeId_},set:function(e){this.purposeId_=e},enumerable:!1,configurable:!0}),t.prototype.isValid=function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===a.RestrictionType.NOT_ALLOWED||this.restrictionType===a.RestrictionType.REQUIRE_CONSENT||this.restrictionType===a.RestrictionType.REQUIRE_LI)},t.prototype.isSameAs=function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType},t.hashSeparator="-",t}(o.Cloneable);t.PurposeRestriction=c},489:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayStatus=void 0,(s=t.DisplayStatus||(t.DisplayStatus={})).VISIBLE="visible",s.HIDDEN="hidden",s.DISABLED="disabled"},834:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),o=this&&this.__awaiter||function(e,t,s,n){return new(s||(s=Promise))((function(r,o){function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var s,n,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(i=0)),i;)try{if(s=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{s=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GVL=void 0;var a=s(2388),c=s(8177),l=s(8223),u=s(8495),d=function(e){function t(s){var n=e.call(this)||this;n.isReady_=!1,n.isLatest=!1;var r=t.baseUrl;if(n.lang_=t.DEFAULT_LANGUAGE,n.cacheLang_=t.DEFAULT_LANGUAGE,n.isVendorList(s))n.populate(s),n.readyPromise=Promise.resolve();else{if(!r)throw new c.GVLError("must specify GVL.baseUrl before loading GVL json");if(s>0){var o=s;t.CACHE.has(o)?(n.populate(t.CACHE.get(o)),n.readyPromise=Promise.resolve()):(r+=t.versionedFilename.replace("[VERSION]",String(o)),n.readyPromise=n.fetchJson(r))}else t.CACHE.has(t.LATEST_CACHE_KEY)?(n.populate(t.CACHE.get(t.LATEST_CACHE_KEY)),n.readyPromise=Promise.resolve()):(n.isLatest=!0,n.readyPromise=n.fetchJson(r+t.latestFilename))}return n}return r(t,e),Object.defineProperty(t,"baseUrl",{get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new c.GVLError("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}
1,enumerable:!1,configurable:!0}),t.emptyLanguageCache=function(e){var s=!1;return null==e&&t.LANGUAGE_CACHE.size>0?(t.LANGUAGE_CACHE=new Map,s=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(t.LANGUAGE_CACHE.delete(e.toUpperCase()),s=!0),s},t.emptyCache=function(e){var s=!1;return Number.isInteger(e)&&e>=0?(t.CACHE.delete(e),s=!0):void 0===e&&(t.CACHE=new Map,s=!0),s},t.prototype.cacheLanguage=function(){t.LANGUAGE_CACHE.has(this.cacheLang_)||t.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})},t.prototype.fetchJson=function(e){return o(this,void 0,void 0,(function(){var t,s;return i(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),t=this.populate,[4,l.Json.fetch(e)];case 1:return t.apply(this,[n.sent()]),[3,3];case 2:throw s=n.sent(),new c.GVLError(s.message);case 3:return[2]}}))}))},t.prototype.getJson=function(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))},t.prototype.changeLanguage=function(e){return o(this,void 0,void 0,(function(){var s,n,r,o,a,l;return i(this,(function(i){switch(i.label){case 0:s=e;try{s=t.consentLanguages.parseLanguage(e)}catch(e){throw new c.GVLError("Error during parsing the language: "+e.message)}if(n=e.toUpperCase(),s.toLowerCase()===t.DEFAULT_LANGUAGE.toLowerCase()&&!t.LANGUAGE_CACHE.has(n))return[2];if(s===this.lang_)return[3,5];if(this.lang_=s,!t.LANGUAGE_CACHE.has(n))return[3,1];for(o in r=t.LANGUAGE_CACHE.get(n))r.hasOwnProperty(o)&&(this[o]=r[o]);return[3,5];case 1:a=t.baseUrl+t.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.fetchJson(a)];case 3:return i.sent(),this.cacheLang_=n,this.cacheLanguage(),[3,5];case 4:throw l=i.sent(),new c.GVLError("unable to load language: "+l.message);case 5:return[2]}}
1))}))},Object.defineProperty(t.prototype,"language",{get:function(){return this.lang_},enumerable:!1,configurable:!0}),t.prototype.isVendorList=function(e){return void 0!==e&&void 0!==e.vendors},t.prototype.populate=function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&t.CACHE.set(t.LATEST_CACHE_KEY,this.getJson()),t.CACHE.has(this.vendorListVersion)||t.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()},t.prototype.mapVendors=function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(e){t.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((function(e){t.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((function(e){t.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((function(e){return+e}))),this.vendorIds=new Set(e),this.vendors_=e.reduce((function(e,s){var n=t.vendors_[String(s)];return n&&void 0===n.deletedDate&&(n.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(s)})),n.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(s)})),n.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(s)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(s)})),n.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(s)})),n.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(s)})),e[s]=n),e}),{})},t.prototype.getFilteredVendors=function(e,t,s,n){var r=this,o=e.charAt(0).toUpperCase()+e.slice(1),i={};return("purpose"===e&&s?this["by"+o+"VendorMap"][String(t)][s]:this["by"+(n?"Special":"")+o+"VendorMap"][String(t)]).forEach((function(e){i[String(e)]=r.vendors[String(e)]})),i},t.prototype.getVendorsWithConsentPurpose=function(e){return this.getFilteredVendors("purpose",e,"consent")},t.prototype.getVendorsWithLegIntPurpose=function(e){return this.getFilteredVendors("purpose",e,"legInt")},t.prototype.getVendorsWithFlexiblePurpose=function(e){return this.getFilteredVendors("purpose",e,"flexible")},t.prototype.getVendorsWithSpecialPurpose=function(e){return this.getFilteredVendors("purpose",e,void 0,!0)},t.prototype.getVendorsWithFeature=function(e){return this.getFilteredVendors("feature",e)},t.prototype.getVendorsWithSpecialFeature=function(e){return this.getFilteredVendors("feature",e,void 0,!0)},Object.defineProperty(t.prototype,"vendors",{get:function(){return this.vendors_},enumerable:!1,configurable:!0}),t.prototype.narrowVendorsTo=function(e){this.mapVendors(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReady_},enumerable:!1,configurable:!0}),t.prototype.clone=function(){var e=new t(this.getJson());return this.lang_!==t.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e},t.isInstanceOf=function(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo},t.LANGUAGE_CACHE=new Map,t.CACHE=new Map,t.LATEST_CACHE_KEY=0,t.DEFAULT_LANGUAGE="EN",t.consentLanguages=new u.ConsentLanguages,t.latestFilename="vendor-list.json",t.versionedFilename="archives/vendor-list-v[VERSION].json",t.languageFilename="purposes-[LANG].json",t}(a.Cloneable);t.GVL=d},849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1040:e=>{"use strict";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,n=[],r=window,o=r;o;){try{if(o.frames.__tcfapiLocator){e=o;break}}catch(e){}if(o===r.top)break;o=o.parent}e||(function e(){var t=r.document,s=!!r.frames.__tcfapiLocator;if(!s)if(t.body){var n=t.createElement("iframe");n.style.cssText="display:none",n.name="__tcfapiLocator",t.body.appendChild(n)}else setTimeout(e,5);return!s}(),r.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return n;"setGdprApplies"===t[0]?t.length>3&&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"}):n.push(t)},r.addEventListener("message",(function(e){var s="string"==typeof e.data,n={};if(s)try{n=JSON.parse(e.data)}catch(e){}else n=e.data;var r="object"===t(n)&&null!==n?n.__tcfapiCall:null;r&&window.__tcfapi(r.command,r.version,(function(t,n){var o={__tcfapiReturn:{returnValue:t,success:n,callId:r.callId}};e&&e.source&&e.source.postMessage&&e.source.postMessage(s?JSON.stringify(o):o,"*")}),r.parameter)}),!1))}},1049:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
vendor: 2,116 bytes, line 1
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(9561),t),r(s(8117),t),r(s(8499),t),r(s(6274),t),r(s(7034),t),r(s(5981),t),r(s(1716),t),r(s(8219),t),r(s(6558),t)},1130:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(5575),t),r(s(6834),t),r(s(5279),t)},1166:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddEventListenerCommand=void 0;var o=s(5011),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){this.listenerId=o.CmpApiModel.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),e.prototype.respond.call(this)},t}(s(2044).GetTCDataCommand);t.AddEventListenerCommand=i},1229:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(8270),t),r(s(8177),t),r(s(8495),t),r(s(2388),t),r(s(834),t),r(s(8223),t),r(s(5771),t),r(s(8029),t)},1543:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),o=this&&this.__read||function(e,t){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var n,r,o=s.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}return i},i=this&&this.__spreadArray||function(e,t,s){if(s||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.TCData=void 0;var a=s(5011),c=function(e){function t(t,s){var n=e.call(this)||this;if(n.eventStatus=a.CmpApiModel.eventStatus,n.cmpStatus=a.CmpApiModel.cmpStatus,n.listenerId=s,a.CmpApiModel.gdprApplies){var r=a.CmpApiModel.tcModel;n.tcString=a.CmpApiModel.tcString,n.isServiceSpecific=r.isServiceSpecific,n.useNonStandardTexts=r.useNonStandardTexts,n.purposeOneTreatment=r.purposeOneTreatment,n.publisherCC=r.publisherCountryCode,n.outOfBand={allowedVendors:n.createVectorField(r.vendorsAllowed,t),disclosedVendors:n.createVectorField(r.vendorsDisclosed,t)},n.purpose={consents:n.createVectorField(r.purposeConsents),legitimateInterests:n.createVectorField(r.purposeLegitimateInterests)},n.vendor={consents:n.createVectorField(r.vendorConsents,t),legitimateInterests:n.createVectorField(r.vendorLegitimateInterests,t)},n.specialFeatureOptins=n.createVectorField(r.specialFeatureOptins),n.publisher={consents:n.createVectorField(r.publisherConsents),legitimateInterests:n.createVectorField(r.publisherLegitimateInterests),customPurpose:{consents:n.createVectorField(r.publisherCustomConsents),legitimateInterests:n.createVectorField(r.publisherCustomLegitimateInterests)},restrictions:n.createRestrictions(r.publisherRestrictions)}}return n}return r(t,e),t.prototype.createRestrictions=function(e){var t={};if(e.numRestrictions>0)for(var s=e.getMaxVendorId(),n=function(s){var n=s.toString();
1e.getRestrictions(s).forEach((function(e){var s=e.purposeId.toString();t[s]||(t[s]={}),t[s][n]=e.restrictionType}))},r=1;r<=s;r++)n(r);return t},t.prototype.createVectorField=function(e,t){return t?t.reduce((function(t,s){return t[String(s)]=e.has(Number(s)),t}),{}):i([],o(e),!1).reduce((function(e,t){return e[t[0].toString(10)]=t[1],e}),{})},t}(s(4625).Response);t.TCData=c},1716:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestrictionVectorEncoder=void 0;var n=s(8937),r=s(9561),o=s(8177),i=s(7034),a=s(8495),c=function(){function e(){}return e.encode=function(e){var t=i.IntEncoder.encode(e.numRestrictions,n.BitLength.numRestrictions);if(!e.isEmpty()){var s=function(t,s){for(var n=t+1;n<=s;n++)if(e.gvl.vendorIds.has(n))return n;return t};e.getRestrictions().forEach((function(o){t+=i.IntEncoder.encode(o.purposeId,n.BitLength.purposeId),t+=i.IntEncoder.encode(o.restrictionType,n.BitLength.restrictionType);for(var a=e.getVendors(o),c=a.length,l=0,u=0,d="",p=0;p<c;p++){var _=a[p];if(0===u&&(l++,u=_),p===c-1||a[p+1]>s(_,a[c-1])){var h=!(_===u);d+=r.BooleanEncoder.encode(h),d+=i.IntEncoder.encode(u,n.BitLength.vendorId),h&&(d+=i.IntEncoder.encode(_,n.BitLength.vendorId)),u=0}}t+=i.IntEncoder.encode(l,n.BitLength.numEntries),t+=d}))}return t},e.decode=function(e){var t=0,s=new a.PurposeRestrictionVector,c=i.IntEncoder.decode(e.substr(t,n.BitLength.numRestrictions),n.BitLength.numRestrictions);t+=n.BitLength.numRestrictions;for(var l=0;l<c;l++){var u=i.IntEncoder.decode(e.substr(t,n.BitLength.purposeId),n.BitLength.purposeId);t+=n.BitLength.purposeId;var d=i.IntEncoder.decode(e.substr(t,n.BitLength.restrictionType),n.BitLength.restrictionType);t+=n.BitLength.restrictionType;var p=new a.PurposeRestriction(u,d),_=i.IntEncoder.decode(e.substr(t,n.BitLength.numEntries),n.BitLength.numEntries);t+=n.BitLength.numEntries;for(var h=0;h<_;
1h++){var f=r.BooleanEncoder.decode(e.substr(t,n.BitLength.anyBoolean));t+=n.BitLength.anyBoolean;var g=i.IntEncoder.decode(e.substr(t,n.BitLength.vendorId),n.BitLength.vendorId);if(t+=n.BitLength.vendorId,f){var v=i.IntEncoder.decode(e.substr(t,n.BitLength.vendorId),n.BitLength.vendorId);if(t+=n.BitLength.vendorId,v<g)throw new o.DecodingError("Invalid RangeEntry: endVendorId ".concat(v," is less than ").concat(g));for(var m=g;m<=v;m++)s.add(m,p)}else s.add(g,p)}}return s.bitLength=t,s},e}();t.PurposeRestrictionVectorEncoder=c},1723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1746:(e,t,s)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentIDs=void 0;var r=s(8966),o=function(){function e(){}return e.ID_TO_KEY=[r.Segment.CORE,r.Segment.VENDORS_DISCLOSED,r.Segment.VENDORS_ALLOWED,r.Segment.PUBLISHER_TC],e.KEY_TO_ID=((n={})[r.Segment.CORE]=0,n[r.Segment.VENDORS_DISCLOSED]=1,n[r.Segment.VENDORS_ALLOWED]=2,n[r.Segment.PUBLISHER_TC]=3,n),e}();t.SegmentIDs=o},1824:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),o=this&&this.__read||function(e,t){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var n,r,o=s.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}return i},i=this&&this.__spreadArray||function(e,t,s){if(s||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestrictionVector=void 0;var a=s(179),c=s(8725),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bitLength=0,t.map=new Map,t}return r(t,e),t.prototype.has=function(e){return this.map.has(e)},t.prototype.isOkToHave=function(e,t,s){var n,r=!0;if(null===(n=this.gvl)||void 0===n?void 0:n.vendors){var o=this.gvl.vendors[s];if(o)if(e===c.RestrictionType.NOT_ALLOWED)r=o.legIntPurposes.includes(t)||o.purposes.includes(t);else if(o.flexiblePurposes.length)switch(e){case c.RestrictionType.REQUIRE_CONSENT:r=o.flexiblePurposes.includes(t)&&o.legIntPurposes.includes(t);break;case c.RestrictionType.REQUIRE_LI:r=o.flexiblePurposes.includes(t)&&o.purposes.includes(t)}else r=!1;else r=!1}return r},t.prototype.add=function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var s=t.hash;this.has(s)||(this.map.set(s,new Set),this.bitLength=0),this.map.get(s).add(e)}},t.prototype.restrictPurposeToLegalBasis=function(e){var t=Array.from(this.gvl.vendorIds),s=e.hash,n=t[t.length-1],r=i([],o(Array(n).keys()),!1).map((function(e){return e+1}));if(this.has(s))for(var a=1;a<=n;a++)this.map.get(s).add(a);else this.map.set(s,new Set(r)),this.bitLength=0},t.prototype.getVendors=function(e){var t=[];if(e){var s=e.hash;this.has(s)&&(t=Array.from(this.map.get(s)))}else{var n=new Set;this.map.forEach((function(e){e.forEach((function(e){n.add(e)}))})),t=Array.from(n)}return t.sort((function(e,t){return e-t}))},t.prototype.getRestrictionType=function(e,t){var s;return this.getRestrictions(e).forEach((function(e){e.purposeId===t&&(void 0===s||s>e.restrictionType)&&(s=e.restrictionType)})),s},t.prototype.vendorHasRestriction=function(e,t){for(var s=!1,n=this.getRestrictions(e),r=0;r<n.length&&!s;r++)s=t.isSameAs(n[r]);return s},t.prototype.getMaxVendorId=function(){var e=0;return this.map.forEach((function(t){e=Math.max(Array.from(t)[t.size-1],e)})),e},t.prototype.getRestrictions=function(e){var t=[];return this.map.forEach((function(s,n){e?s.has(e)&&t.push(a.PurposeRestriction.unHash(n)):t.push(a.PurposeRestriction.unHash(n))})),t},t.prototype.getPurposes=function(){var e=new Set;
1return this.map.forEach((function(t,s){e.add(a.PurposeRestriction.unHash(s).purposeId)})),Array.from(e)},t.prototype.remove=function(e,t){var s=t.hash,n=this.map.get(s);n&&(n.delete(e),0==n.size&&(this.map.delete(s),this.bitLength=0))},Object.defineProperty(t.prototype,"gvl",{get:function(){return this.gvl_},set:function(e){var t=this;this.gvl_||(this.gvl_=e,this.map.forEach((function(e,s){var n=a.PurposeRestriction.unHash(s);Array.from(e).forEach((function(s){t.isOkToHave(n.restrictionType,n.purposeId,s)||e.delete(s)}))})))},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return 0===this.map.size},Object.defineProperty(t.prototype,"numRestrictions",{get:function(){return this.map.size},enumerable:!1,configurable:!0}),t}(s(2388).Cloneable);t.PurposeRestrictionVector=l},1867:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.CmpStatus=void 0,(s=t.CmpStatus||(t.CmpStatus={})).STUB="stub",s.LOADING="loading",s.LOADED="loaded",s.ERROR="error"},1965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1995:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.EventStatus=void 0,(s=t.EventStatus||(t.EventStatus={})).TC_LOADED="tcloaded",s.CMP_UI_SHOWN="cmpuishown",s.USER_ACTION_COMPLETE="useractioncomplete"},2044:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetTCDataCommand=void 0;var o=s(8605),i=s(4392),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new i.TCData(this.param,this.listenerId))},t.prototype.throwIfParamInvalid=function(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")},t}(o.Command);t.GetTCDataCommand=a},2388:function(e,t){"use strict";var s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,s=t&&e[t],n=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Cloneable=void 0;var n=function(){function e(){}return e.prototype.clone=function(){var e=this,t=new this.constructor;return Object.keys(this).forEach((function(s){var n=e.deepClone(e[s]);void 0!==n&&(t[s]=n)})),t},e.prototype.deepClone=function(e){var t,n,r=typeof e;if("number"===r||"string"===r||"boolean"===r)return e;if(null!==e&&"object"===r){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var o=[];try{for(var i=s(e),a=i.next();!a.done;a=i.next()){var c=a.value;o.push(this.deepClone(c))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return e instanceof Array?o:new e.constructor(o)}var l={};for(var u in e)e.hasOwnProperty(u)&&(l[u]=this.deepClone(e[u]));return l}},e}();t.Cloneable=n},2629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3016:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(5752),t),r(s(3326),t)},3076:function(e,t,s){"use strict";var n=this&&this.__read||function(e,t){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var n,r,o=s.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}return i},r=this&&this.__spreadArray||function(e,t,s){if(s||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.CallResponder=t.API_KEY=void 0;var o=s(3016),i=s(6987),a=s(5011),c=s(4414),l=s(7121);t.API_KEY="__tcfapi";var u=function(){function e(e){if(e){var s=o.TCFCommand.ADD_EVENT_LISTENER;if(null==e?void 0:e[s])throw new Error("Built-In Custom Commmand for ".concat(s," not allowed: Use ").concat(o.TCFCommand.GET_TC_DATA," instead"));if(s=o.TCFCommand.REMOVE_EVENT_LISTENER,null==e?void 0:e[s])throw new Error("Built-In Custom Commmand for ".concat(s," not allowed"));(null==e?void 0:e[o.TCFCommand.GET_TC_DATA])&&(e[o.TCFCommand.ADD_EVENT_LISTENER]=e[o.TCFCommand.GET_TC_DATA],e[o.TCFCommand.REMOVE_EVENT_LISTENER]=e[o.TCFCommand.GET_TC_DATA]),this.customCommands=e}try{this.callQueue=window[t.API_KEY]()||[]}catch(e){this.callQueue=[]}finally{window[t.API_KEY]=this.apiCall.bind(this),this.purgeQueuedCalls()}}return e.prototype.apiCall=function(e,t,s){for(var u,d=[],p=3;p<arguments.length;p++)d[p-3]=arguments[p];if("string"!=typeof e)s(null,!1);else if(l.SupportedVersions.has(t)){if("function"!=typeof s)throw new Error("invalid callback function");a.CmpApiModel.disabled?s(new c.Disabled,!1):this.isCustomCommand(e)||this.isBuiltInCommand(e)?this.isCustomCommand(e)&&!this.isBuiltInCommand(e)?(u=this.customCommands)[e].apply(u,r([s],n(d),!1)):e===o.TCFCommand.PING?this.isCustomCommand(e)?new i.CommandMap[e](this.customCommands[e],d[0],null,s):new i.CommandMap[e](s,d[0]):void 0===a.CmpApiModel.tcModel?this.callQueue.push(r([e,t,s],n(d),!1)):this.isCu
1stomCommand(e)&&this.isBuiltInCommand(e)?new i.CommandMap[e](this.customCommands[e],d[0],null,s):new i.CommandMap[e](s,d[0]):s(null,!1)}else s(null,!1)},e.prototype.purgeQueuedCalls=function(){var e=this.callQueue;this.callQueue=[],e.forEach((function(e){window[t.API_KEY].apply(window,r([],n(e),!1))}))},e.prototype.isCustomCommand=function(e){return this.customCommands&&"function"==typeof this.customCommands[e]},e.prototype.isBuiltInCommand=function(e){return void 0!==i.CommandMap[e]},e}();t.CallResponder=u},3082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3388:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CmpApi=void 0;var n=s(5011),r=s(7517),o=s(3076),i=s(1229),a=function(){function e(e,t,s,r){void 0===s&&(s=!1),this.numUpdates=0,this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),n.CmpApiModel.cmpId=e,n.CmpApiModel.cmpVersion=t,n.CmpApiModel.tcfPolicyVersion=4,this.isServiceSpecific=!!s,this.callResponder=new o.CallResponder(r)}return e.prototype.throwIfInvalidInt=function(e,t,s){if(!("number"==typeof e&&Number.isInteger(e)&&e>=s))throw new Error("Invalid ".concat(t,": ").concat(e))},e.prototype.update=function(e,t){if(void 0===t&&(t=!1),n.CmpApiModel.disabled)throw new Error("CmpApi Disabled");n.CmpApiModel.cmpStatus=r.CmpStatus.LOADED,t?(n.CmpApiModel.displayStatus=r.DisplayStatus.VISIBLE,n.CmpApiModel.eventStatus=r.EventStatus.CMP_UI_SHOWN):void 0===n.CmpApiModel.tcModel?(n.CmpApiModel.displayStatus=r.DisplayStatus.DISABLED,n.CmpApiModel.eventStatus=r.EventStatus.TC_LOADED):(n.CmpApiModel.displayStatus=r.DisplayStatus.HIDDEN,n.CmpApiModel.eventStatus=r.EventStatus.USER_ACTION_COMPLETE),n.CmpApiModel.gdprApplies=null!==e,n.CmpApiModel.gdprApplies?(""===e?(n.CmpApiModel.tcModel=new i.TCModel,n.CmpApiModel.tcModel.cmpId=n.CmpApiModel.cmpId,n.CmpApiModel.tcModel.cmpVersion=n.CmpApiModel.cmpVersion):n.CmpApiModel.tcModel=i.TCString.decode(e),n.CmpApiModel.tcModel.isServiceSpecific=this.isServiceSpecific,n.CmpApiModel.tcfPolicyVersion=Number(n.CmpApiModel.tcModel.policyVersion),n.CmpApiModel.tcString=e):n.CmpApiModel.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():n.CmpApiModel.eventQueue.exec(),this.numUpdates++},e.prototype.disable=function(){n.CmpApiModel.disabled=!0,n.CmpApiModel.cmpStatus=r.CmpStatus.ERROR},e}();t.CmpApi=a},3522:function(e){e.exports=function(){"use strict";var e,t,s=1e3,n=6e4,r=36e5,o=864e5,i=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,c=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:a,months:c,days:o,hours:r,minutes:n,seconds:s,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof m},p=function(e,t,s){return new m(e,s,t.$l)},_=function(e){return t.p(e)+"s"},h=function(e){return e<0},f=function(e){return h(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:""+g(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},m=function(){function h(e,t,s){var n=this;if(this.$d={},this.$l=s,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*u[_(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[_(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var r=e.match(l);if(r){var o=r.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var g=h.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,s){return t+(e.$d[s]||0)*u[s]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=f(e/a),e%=a,this.$d.months=f(e/c),e%=c,this.$d.days=f(e/o),e%=o,this.$d.hours=f(e/r),e%=r,this.$d.minutes=f(e/n),e%=n,this.$d.seconds=f(e/s),e%=s,this.$d.milliseconds=e},g.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=7*this.$d.weeks);var n=v(s,"D"),r=v(this.$d.hours,"H"),o=v(this.$d.minutes,"M"),i=this.$d.seconds||0;this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3,i=Math.round(1e3*i)/1e3);var a=v(i,"S"),c=e.negative||t.negative||n.negative||r.negative||o.negative||a.negative,l=r.format||o.format||a.format?"T":"",u=(c?"-":"")+"P"+e.format+t.format+n.format+l+r.format+o.format
1+a.format;return"P"===u||"-P"===u?"P0D":u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return s.replace(i,(function(e,t){return t||String(n[e])}))},g.as=function(e){return this.$ms/u[_(e)]},g.get=function(e){var t=this.$ms,s=_(e);return"milliseconds"===s?t%=1e3:t="weeks"===s?f(t/u[s]):this.$d[s],t||0},g.add=function(e,t,s){var n;return n=t?e*u[_(t)]:d(e)?e.$ms:p(e,this).$ms,p(this.$ms+n*(s?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return p(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},h}(),y=function(e,t,s){return e.add(t.years()*s,"y").add(t.months()*s,"M").add(t.days()*s,"d").add(t.hours()*s,"h").add(t.minutes()*s,"m").add(t.seconds()*s,"s").add(t.milliseconds()*s,"ms")};return function(s,n,r){e=r,t=r().$utils(),r.duration=function(e,t){var s=r.locale();return p(e,{$l:s},t)},r.isDuration=d;var o=n.prototype.add,i=n.prototype.subtract;n.prototype.add=function(e,t){return d(e)?y(this,e,1):o.bind(this)(e,t)},n.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):i.bind(this)(e,t)}}}()},3715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4109:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceDisclosureStorageAccessType=void 0,(s=t.DeviceDisclosureStorageAccessType||(t.DeviceDisclosureStorageAccessType={})).COOKIE="cookie",s.WEB="web",s.APP="app"},4122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=void 0;var s=function(){function e(){}return e.cmpId="cmpId",e.cmpVersion="cmpVersion",e.consentLanguage="consentLanguage",e.consentScreen="consentScreen",e.created="created",e.supportOOB="supportOOB",e.isServiceSpecific="isServiceSpecific",e.lastUpdated="lastUpdated",e.numCustomPurposes="numCustomPurposes",e.policyVersion="policyVersion",e.publisherCountryCode="publisherCountryCode",e.publisherCustomConsents="publisherCustomConsents",e.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",e.publisherLegitimateInterests="publisherLegitimateInterests",e.publisherConsents="publisherConsents",e.publisherRestrictions="publisherRestrictions",e.purposeConsents="purposeConsents",e.purposeLegitimateInterests="purposeLegitimateInterests",e.purposeOneTreatment="purposeOneTreatment",e.specialFeatureOptins="specialFeatureOptins",e.useNonStandardTexts="useNonStandardTexts",e.vendorConsents="vendorConsents",e.vendorLegitimateInterests="vendorLegitimateInterests",e.vendorListVersion="vendorListVersion",e.vendorsAllowed="vendorsAllowed",e.vendorsDisclosed="vendorsDisclosed",e.version="version",e}();t.Fields=s},4178:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
vendor: 7,164 bytes, line 1
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.API_KEY=void 0,r(s(3016),t),r(s(4392),t),r(s(7517),t),r(s(3388),t),r(s(5011),t),r(s(849),t);var o=s(3076);Object.defineProperty(t,"API_KEY",{enumerable:!0,get:function(){return o.API_KEY}})},4291:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveEventListenerCommand=void 0;var o=s(5011),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){this.invokeCallback(o.CmpApiModel.eventQueue.remove(this.param))},t}(s(8605).Command);t.RemoveEventListenerCommand=i},4353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,s=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",c="week",l="month",u="quarter",d="year",p="date",_="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],s=e%100;return"["+e+(t[(s-20)%10]||t[s]||t[0])+"]"}},v=function(e,t,s){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(s)+e},m={s:v,z:function(e){var t=-e.utcOffset(),s=Math.abs(t),n=Math.floor(s/60),r=s%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(r,2,"0")},m:function e(t,s){if(t.date()<s.date())return-e(s,t);var n=12*(s.year()-t.year())+(s.month()-t.month()),r=t.clone().add(n,l),o=s-r<0,i=t.clone().add(n+(o?-1:1),l);return+(-(n+(s-r)/(o?r-i:i-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:a,D:p,h:i,m:o,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=g;var C="$isDayjsObject",S=function(e){return e instanceof P||!(!e||!e[C])},w=function e(t,s,n){var r;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(r=o),s&&(b[o]=s,r=o);var i=t.split("-");if(!r&&i.length>1)return e(i[0])}else{var a=t.name;b[a]=t,r=a}return!n&&r&&(y=r),r||!n&&y},E=function(e,t){if(S(e))return e.clone();var s="object"==typeof t?t:{};return s.date=e,s.args=arguments,new P(s)},O=m;O.l=w,O.i=S,O.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,s=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var r=n[2]-1||0,o=(n[7]||"0").substring(0,3);return s?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return O},v.isValid=function(){return!(this.$d.toString()===_)},v.isSame=function(e,t){var s=E(e);return this.startOf(t)<=s&&s<=this.endOf(t)},v.isAfter=function(e,t){return E(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<E(e)},v.$g=function(e,t,s){return O.u(e)?this[t]:this.set(s,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var s=this,n=!!O.u(t)||t,u=O.p(e),_=function(e,t){var r=O.w(s.$u?Date.UTC(s.$y,t,e):new Date(s.$y,t,e),s);return n?r:r.endOf(a)},h=function(e,t){return O.w(s.toDate()[e].apply(s.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),s)},f=this.$W,g=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(u){case d:return n?_(1,0):_(31,11);case l:return n?_(1,g):_(0,g+1);case c:var y=this.$locale().weekStart||0,b=(f<y?f+7:f)-y;return _(n?v-b:v+(6-b),g);case a:case p:return h(m+"Hours",0);case i:return h(m+"Minutes",1);case o:return h(m+"Seconds",2);case r:return h(m+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,c=O.p(e),u="set"+(this.$u?"UTC":""),_=(s={},s[a]=u+"Date",s[p]=u+"Date",s[l]=u+"Month",s[d]=u+"FullYear",s[i]=u+"Hours",s[o]=u+"Minutes",s[r]=u+"Seconds",s[n]=u+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===l||c===d){var f=this.clone().set(p,1);f.$d[_](h),f.init(),this.$d=f.set(p,Math.min(this.$D,f.daysInMonth())).$d}else _&&this.$d[_](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[O.p(e)]()},v.add=function(n,u){var p,_=this;n=Number(n);var h=O.p(u),f=function(e){var t=E(_);return O.w(t.date(t.date()+Math.round(e*n)),_)};if(h===l)return this.set(l,this.$M+n);if(h===d)return this.set(d,this.$y+n);if(h===a)return f(1);if(h===c)return f(7);var g=(p={},p[o]=t,p[i]=s,p[r]=e,p)[h]||1,v=this.$d.getTime()+n*g;return O.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,s=this.$locale();if(!this.isValid())return s.invalidDate||_;var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=O.z(this),o=this.$H,i=this.$m,a=this.$M,c=s.weekdays,l=s.months,u=s.meridiem,d=function(e,s,r,o){return e&&(e[s]||e(t,n))||r[s].slice(0,o)},p=function(e){return O.s(o%12||12,e,"0")},h=u||function(e,t,s){var n=e<12?"AM":"PM";return s?n.toLowerCase():n};return n.replace(f,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return O.s(t.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return d(s.monthsShort,a,l,3);case"MMMM":return d(l,a);case"D":return t.$D;case"DD":return O.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(s.weekdaysMin,t.$W,c,2);case"ddd":return d(s.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return O.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(o,i,!0);case"A":return h(o,i,!1);case"m":return String(i);case"mm":return O.s(i,2,"0");case"s":return String(t.$s);case"ss":return O.s(t.$s,2,"0");case"SSS":return O.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))}
vendor: 1,378 bytes, line 1
1,v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,p,_){var h,f=this,g=O.p(p),v=E(n),m=(v.utcOffset()-this.utcOffset())*t,y=this-v,b=function(){return O.m(f,v)};switch(g){case d:h=b()/12;break;case l:h=b();break;case u:h=b()/3;break;case c:h=(y-m)/6048e5;break;case a:h=(y-m)/864e5;break;case i:h=y/s;break;case o:h=y/t;break;case r:h=y/e;break;default:h=y}return _?h:O.a(h)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var s=this.clone(),n=w(e,t,!0);return n&&(s.$L=n),s},v.clone=function(){return O.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),I=P.prototype;return E.prototype=I,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",l],["$y",d],["$D",p]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,P,E),e.$i=!0),E},E.locale=w,E.isDayjs=S,E.unix=function(e){return E(1e3*e)},E.en=b[y],E.Ls=b,E.p={},E}()},4392:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(4414),t),r(s(8503),t),r(s(7834),t),r(s(4625),t),r(s(1543),t)},4414:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.Disabled=void 0;var o=s(4625),i=s(7517),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cmpStatus=i.CmpStatus.ERROR,t}return r(t,e),t}(o.Response);t.Disabled=a},4621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4625:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;var n=s(5011);t.Response=function(){this.cmpId=n.CmpApiModel.cmpId,this.cmpVersion=n.CmpApiModel.cmpVersion,this.gdprApplies=n.CmpApiModel.gdprApplies,this.tcfPolicyVersion=n.CmpApiModel.tcfPolicyVersion}},4984:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),o=this&&this.__generator||function(e,t){var s,n,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(i=0)),i;)try{if(s=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{s=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Vector=void 0;var i=s(2388),a=s(8177),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bitLength=0,t.maxId_=0,t.set_=new Set,t}return r(t,e),t.prototype[Symbol.iterator]=function(){var e;return o(this,(function(t){switch(t.label){case 0:e=1,t.label=1;case 1:return e<=this.maxId?[4,[e,this.has(e)]]:[3,4];case 2:t.sent(),t.label=3;case 3:return e++,[3,1];case 4:return[2]}}
1))},t.prototype.values=function(){return this.set_.values()},Object.defineProperty(t.prototype,"maxId",{get:function(){return this.maxId_},enumerable:!1,configurable:!0}),t.prototype.has=function(e){return this.set_.has(e)},t.prototype.unset=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t.unset(e)})):"object"==typeof e?this.unset(Object.keys(e).map((function(e){return Number(e)}))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((function(e){t.maxId_=Math.max(t.maxId,e)}))))},t.prototype.isIntMap=function(e){var t=this,s="object"==typeof e;return s&&Object.keys(e).every((function(s){var n=Number.isInteger(parseInt(s,10));return(n=n&&t.isValidNumber(e[s].id))&&void 0!==e[s].name}))},t.prototype.isValidNumber=function(e){return parseInt(e,10)>0},t.prototype.isSet=function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t},t.prototype.set=function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new a.TCModelError("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}},t.prototype.empty=function(){this.set_=new Set},t.prototype.forEach=function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)},Object.defineProperty(t.prototype,"size",{get:function(){return this.set_.size},enumerable:!1,configurable:!0}),t.prototype.setAll=function(e){this.set(e)},t}(i.Cloneable);t.Vector=c},5011:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CmpApiModel=void 0;var n=s(7517),r=s(6903),o=function(){function e(){}return e.reset=function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=n.CmpStatus.LOADING,this.disabled=!1,this.displayStatus=n.DisplayStatus.HIDDEN,this.eventQueue.clear()},e.apiVersion="2",e.eventQueue=new r.EventListenerQueue,e.cmpStatus=n.CmpStatus.LOADING,e.disabled=!1,e.displayStatus=n.DisplayStatus.HIDDEN,e}();t.CmpApiModel=o},5279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5543:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticPreEncoder=void 0;var n=s(8177),r=s(8495),o=function(){function e(){}return e.process=function(e,t){var s=e.gvl;if(!s)throw new n.EncodingError("Unable to encode TCModel without a GVL");if(!s.isReady)throw new n.EncodingError("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=s.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var r=e.version-1;if(!this.processor[r])throw new n.EncodingError("Invalid version: ".concat(e.version));return this.processor[r](e,s)},e.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var s=new Map;return s.set("legIntPurposes",e.vendorLegitimateInterests),s.set("purposes",e.vendorConsents),s.forEach((function(s,n){s.forEach((function(o,i){if(o){var a=t.vendors[i];if(!a||a.deletedDate)s.unset(i);else if(0===a[n].length)if("legIntPurposes"===n&&0===a.purposes.length&&0===a.legIntPurposes.length&&a.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===a.flexiblePurposes.length)s.unset(i);else{for(var c=e.publisherRestrictions.getRestrictions(i),l=!1,u=0,d=c.length;u<d&&!l;u++)l=c[u].restrictionType===r.RestrictionType.REQUIRE_CONSENT&&"purposes"===n||c[u].restrictionType===r.RestrictionType.REQUIRE_LI&&"legIntPurposes"===n;l||s.unset(i)}else s.unset(i)}}))})),e.vendorsDisclosed.set(t.vendors),e}],e}();t.SemanticPreEncoder=o},5575:(e,t,s)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSequence=void 0;var n=s(8495);t.FieldSequence=function(){var e,t;this[1]=((e={})[n.Segment.CORE]=[n.Fields.version,n.Fields.created,n.Fields.lastUpdated,n.Fields.cmpId,n.Fields.cmpVersion,n.Fields.consentScreen,n.Fields.consentLanguage,n.Fields.vendorListVersion,n.Fields.purposeConsents,n.Fields.vendorConsents],e),this[2]=((t={})[n.Segment.CORE]=[n.Fields.version,n.Fields.created,n.Fields.lastUpdated,n.Fields.cmpId,n.Fields.cmpVersion,n.Fields.consentScreen,n.Fields.consentLanguage,n.Fields.vendorListVersion,n.Fields.policyVersion,n.Fields.isServiceSpecific,n.Fields.useNonStandardTexts,n.Fields.specialFeatureOptins,n.Fields.purposeConsents,n.Fields.purposeLegitimateInterests,n.Fields.purposeOneTreatment,n.Fields.publisherCountryCode,n.Fields.vendorConsents,n.Fields.vendorLegitimateInterests,n.Fields.publisherRestrictions],t[n.Segment.PUBLISHER_TC]=[n.Fields.publisherConsents,n.Fields.publisherLegitimateInterests,n.Fields.numCustomPurposes,n.Fields.publisherCustomConsents,n.Fields.publisherCustomLegitimateInterests],t[n.Segment.VENDORS_ALLOWED]=[n.Fields.vendorsAllowed],t[n.Segment.VENDORS_DISCLOSED]=[n.Fields.vendorsDisclosed],t)}},5743:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5752:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.TCFCommand=void 0,(s=t.TCFCommand||(t.TCFCommand={})).PING="ping",s.GET_TC_DATA="getTCData",s.GET_IN_APP_TC_DATA="getInAppTCData",s.GET_VENDOR_LIST="getVendorList",s.ADD_EVENT_LISTENER="addEventListener",s.REMOVE_EVENT_LISTENER="removeEventListener"},5771:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.TCModel=void 0;var o=s(2388),i=s(8177),a=s(834),c=s(8495),l=function(e){function t(t){var s=e.call(this)||this;return s.isServiceSpecific_=!1,s.supportOOB_=!0,s.useNonStandardTexts_=!1,s.purposeOneTreatment_=!1,s.publisherCountryCode_="AA",s.version_=2,s.consentScreen_=0,s.policyVersion_=4,s.consentLanguage_="EN",s.cmpId_=0,s.cmpVersion_=0,s.vendorListVersion_=0,s.numCustomPurposes_=0,s.specialFeatureOptins=new c.Vector,s.purposeConsents=new c.Vector,s.purposeLegitimateInterests=new c.Vector,s.publisherConsents=new c.Vector,s.publisherLegitimateInterests=new c.Vector,s.publisherCustomConsents=new c.Vector,s.publisherCustomLegitimateInterests=new c.Vector,s.vendorConsents=new c.Vector,s.vendorLegitimateInterests=new c.Vector,s.vendorsDisclosed=new c.Vector,s.vendorsAllowed=new c.Vector,s.publisherRestrictions=new c.PurposeRestrictionVector,t&&(s.gvl=t),s.updated(),s}return r(t,e),Object.defineProperty(t.prototype,"gvl",{get:function(){return this.gvl_},set:function(e){a.GVL.isInstanceOf(e)||(e=new a.GVL(e)),this.gvl_=e,this.publisherRestrictions.gvl=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cmpId",{get:function(){return this.cmpId_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new i.TCModelError("cmpId",e);this.cmpId_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cmpVersion",{get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new i.TCModelError("cmpVersion",e);this.cmpVersion_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"consentScreen",{get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new i.TCModelError("consentScreen",e);this.consentScreen_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"consentLanguage",{get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"publisherCountryCode",{get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new i.TCModelError("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vendorListVersion",{get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)|0)<0)throw new i.TCModelError("vendorListVersion",e);this.vendorListVersion_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"policyVersion",{get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new i.TCModelError("policyVersion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isServiceSpecific",{get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useNonStandardTexts",{get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supportOOB",{get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"purposeOneTreatment",{get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e},enumerable:!1,configurable:!0}),t.prototype.setAllVendorConsents=function(){this.vendorConsents.set(this.gvl.vendors)},t.prototype.unsetAllVendorConsents=function(){this.vendorConsents.empty()},t.prototype.setAllVendorsDisclosed=function(){this.vendorsDisclosed.set(this.gvl.vendors)},t.prototype.unsetAllVendorsDisclosed=function(){this.vendorsDisclosed.empty()},t.prototype.setAllVendorsAllowed=function(){this.vendorsAllowed.set(this.gvl.vendors)},t.prototype.unsetAllVendorsAllowed=function(){this.vendorsAllowed.empty()},t.prototype.setAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.set(this.gvl.vendors)},t.prototype.unsetAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.empty()},t.prototype.setAllPurposeConsents=function(){this.purposeConsents.set(this.gvl.purposes)},t.prototype.unsetAllPurposeConsents=function(){this.purposeConsents.empty()},t.prototype.setAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.set(this.gvl.purposes)},t.prototype.unsetAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.empty()},t.prototype.setAllSpecialFeatureOptins=function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)},t.prototype.unsetAllSpecialFeatureOptins=function(){this.specialFeatureOptins.empty()},t.prototype.setAll=function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()},t.prototype.unsetAll=function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()},Object.defineProperty(t.prototype,"numCustomPurposes",{get:function(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new i.TCModelError("numCustomPurposes",e)},enumerable:!1,configurable:!0}),t.prototype.updated=function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t},t.consentLanguages=a.GVL.consentLanguages,t}(o.Cloneable);t.TCModel=l},5969:function(e,t){"use strict";
1var s,n=this&&this.__extends||(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TCModelError=void 0;var r=function(e){function t(t,s,n){void 0===n&&(n="");var r=e.call(this,"invalid value ".concat(s," passed for ").concat(t," ").concat(n))||this;return r.name="TCModelError",r}return n(t,e),t}(Error);t.TCModelError=r},5981:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangEncoder=void 0;var n=s(7034),r=s(8177),o=function(){function e(){}return e.encode=function(e,t){var s=(e=e.toUpperCase()).charCodeAt(0)-65,o=e.charCodeAt(1)-65;if(s<0||s>25||o<0||o>25)throw new r.EncodingError("invalid language code: ".concat(e));if(t%2==1)throw new r.EncodingError("numBits must be even, ".concat(t," is not valid"));return t/=2,n.IntEncoder.encode(s,t)+n.IntEncoder.encode(o,t)},e.decode=function(e,t){if(t!==e.length||e.length%2)throw new r.DecodingError("invalid bit length for language");var s=e.length/2,o=n.IntEncoder.decode(e.slice(0,s),s)+65,i=n.IntEncoder.decode(e.slice(s),s)+65;return String.fromCharCode(o)+String.fromCharCode(i)},e}();t.LangEncoder=o},5987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6274:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedVectorEncoder=void 0;var n=s(9561),r=s(8177),o=s(8495),i=function(){function e(){}return e.encode=function(e,t){for(var s="",r=1;r<=t;r++)s+=n.BooleanEncoder.encode(e.has(r));return s},e.decode=function(e,t){if(e.length!==t)throw new r.DecodingError("bitfield encoding length mismatch");for(var s=new o.Vector,i=1;i<=t;i++)n.BooleanEncoder.decode(e[i-1])&&s.set(i);return s.bitLength=e.length,s},e}();t.FixedVectorEncoder=i},6344:function(e,t){"use strict";var s,n=this&&this.__extends||(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EncodingError=void 0;var r=function(e){function t(t){var s=e.call(this,t)||this;return s.name="EncodingError",s}return n(t,e),t}(Error);t.EncodingError=r},6497:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetVendorListCommand=void 0;var o=s(5011),i=s(8605),a=s(1229),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){var e,t=this,s=o.CmpApiModel.tcModel,n=s.vendorListVersion;void 0===this.param&&(this.param=n),(e=this.param===n&&s.gvl?s.gvl:new a.GVL(this.param)).readyPromise.then((function(){t.invokeCallback(e.getJson())}))},t}(i.Command);t.GetVendorListCommand=c},6558:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VendorVectorEncoder=void 0;var n=s(8495),r=s(8270),o=s(7034),i=s(9561),a=s(6274),c=s(8219),l=s(8177),u=function(){function e(){}return e.encode=function(e){var t,s=[],n=[],a=o.IntEncoder.encode(e.maxId,r.BitLength.maxId),l="",u=r.BitLength.maxId+r.BitLength.encodingType,d=u+e.maxId,p=2*r.BitLength.vendorId+r.BitLength.singleOrRange+r.BitLength.numEntries,_=u+r.BitLength.numEntries;return e.forEach((function(o,a){l+=i.BooleanEncoder.encode(o),(t=e.maxId>p&&_<d)&&o&&(e.has(a+1)?0===n.length&&(n.push(a),_+=r.BitLength.singleOrRange,_+=r.BitLength.vendorId):(n.push(a),_+=r.BitLength.vendorId,s.push(n),n=[]))})),t?(a+=String(c.VectorEncodingType.RANGE),a+=this.buildRangeEncoding(s)):(a+=String(c.VectorEncodingType.FIELD),a+=l),a},e.decode=function(e,t){var s,u=0,d=o.IntEncoder.decode(e.substr(u,r.BitLength.maxId),r.BitLength.maxId);u+=r.BitLength.maxId;var p=o.IntEncoder.decode(e.charAt(u),r.BitLength.encodingType);if(u+=r.BitLength.encodingType,p===c.VectorEncodingType.RANGE){if(s=new n.Vector,1===t){if("1"===e.substr(u,1))throw new l.DecodingError("Unable to decode default consent=1");u++}var _=o.IntEncoder.decode(e.substr(u,r.BitLength.numEntries),r.BitLength.numEntries);u+=r.BitLength.numEntries;for(var h=0;h<_;h++){var f=i.BooleanEncoder.decode(e.charAt(u));u+=r.BitLength.singleOrRange;var g=o.IntEncoder.decode(e.substr(u,r.BitLength.vendorId),r.BitLength.vendorId);if(u+=r.BitLength.vendorId,f){var v=o.IntEncoder.decode(e.substr(u,r.BitLength.vendorId),r.BitLength.vendorId);u+=r.BitLength.vendorId;for(var m=g;m<=v;m++)s.set(m)}else s.set(g)}}else{var y=e.substr(u,d);u+=d,s=a.FixedVectorEncoder.decode(y,d)}return s.bitLength=u,s},e.buildRangeEncoding=function(e){var t=e.length,s=o.IntEncoder.encode(t,r.BitLength.numEntries);return e.forEach((function(e){var t=1===e.length;s+=i.BooleanEncoder.encode(!t),s+=o.IntEncoder.encode(e[0],r.BitLength.vendorId),t||(s+=o.IntEncoder.encode(e[1],r.BitLength.vendorId))})),s},e}();t.VendorVectorEncoder=u},6834:(e,t,s)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentSequence=void 0;var n=s(8495);t.SegmentSequence=function(e,t){if(this[1]=[n.Segment.CORE],this[2]=[n.Segment.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(n.Segment.PUBLISHER_TC);else{var s=!(!t||!t.isForVendors);s&&!0!==e[n.Fields.supportOOB]||this[2].push(n.Segment.VENDORS_DISCLOSED),s&&(e[n.Fields.supportOOB]&&e[n.Fields.vendorsAllowed].size>0&&this[2].push(n.Segment.VENDORS_ALLOWED),this[2].push(n.Segment.PUBLISHER_TC))}}},6903:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventListenerQueue=void 0;var n=s(2044),r=function(){function e(){this.eventQueue=new Map,this.queueNumber=0}return e.prototype.add=function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++},e.prototype.remove=function(e){return this.eventQueue.delete(e)},e.prototype.exec=function(){this.eventQueue.forEach((function(e,t){new n.GetTCDataCommand(e.callback,e.param,t,e.next)}))},e.prototype.clear=function(){this.queueNumber=0,this.eventQueue.clear()},Object.defineProperty(e.prototype,"size",{get:function(){return this.eventQueue.size},enumerable:!1,configurable:!0}),e}();t.EventListenerQueue=r},6987:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandMap=void 0;var n=s(8777),r=s(2044),o=s(7892),i=s(6497),a=s(1166),c=s(4291),l=s(5752),u=function(){function e(){}var t,s,u,d,p,_;return t=l.TCFCommand.PING,s=l.TCFCommand.GET_TC_DATA,u=l.TCFCommand.GET_IN_APP_TC_DATA,d=l.TCFCommand.GET_VENDOR_LIST,p=l.TCFCommand.ADD_EVENT_LISTENER,_=l.TCFCommand.REMOVE_EVENT_LISTENER,e[t]=n.PingCommand,e[s]=r.GetTCDataCommand,e[u]=o.GetInAppTCDataCommand,e[d]=i.GetVendorListCommand,e[p]=a.AddEventListenerCommand,e[_]=c.RemoveEventListenerCommand,e}();t.CommandMap=u},7034:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntEncoder=void 0;var n=s(8177),r=function(){function e(){}return e.encode=function(e,t){var s;if("string"==typeof e&&(e=parseInt(e,10)),(s=e.toString(2)).length>t||e<0)throw new n.EncodingError("".concat(e," too large to encode into ").concat(t));return s.length<t&&(s="0".repeat(t-s.length)+s),s},e.decode=function(e,t){if(t!==e.length)throw new n.DecodingError("invalid bit length");return parseInt(e,2)},e}();t.IntEncoder=r},7121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedVersions=void 0;var s=function(){function e(){}return e.has=function(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)},e.set_=new Set([0,2,void 0,null]),e}();t.SupportedVersions=s},7418:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base64Url=void 0;var n=s(8177),r=function(){function e(){}return e.encode=function(e){if(!/^[0-1]+$/.test(e))throw new n.EncodingError("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var s="",r=0;r<e.length;r+=this.BASIS)s+=this.DICT[parseInt(e.substr(r,this.BASIS),2)];return s},e.decode=function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new n.DecodingError("Invalidly encoded Base64URL string");for(var t="",s=0;s<e.length;s++){var r=this.REVERSE_DICT.get(e[s]).toString(2);t+="0".repeat(this.BASIS-r.length)+r}return t},e.DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",e.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]]),e.BASIS=6,e.LCM=24,e}();t.Base64Url=r},7517:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(1867),t),r(s(489),t),r(s(1995),t)},7640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7650:function(e,t){"use strict";var s,n=this&&this.__extends||(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GVLError=void 0;var r=function(e){function t(t){var s=e.call(this,t)||this;return s.name="GVLError",s}return n(t,e),t}(Error);t.GVLError=r},7834:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.Ping=void 0;var o=s(5011),i=function(e){function t(){var t=e.call(this)||this;return t.cmpLoaded=!0,t.cmpStatus=o.CmpApiModel.cmpStatus,t.displayStatus=o.CmpApiModel.displayStatus,t.apiVersion=String(o.CmpApiModel.apiVersion),o.CmpApiModel.tcModel&&o.CmpApiModel.tcModel.vendorListVersion&&(t.gvlVersion=+o.CmpApiModel.tcModel.vendorListVersion),t}return r(t,e),t}(s(4625).Response);t.Ping=i},7892:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetInAppTCDataCommand=void 0;var o=s(2044),i=s(4392),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new i.InAppTCData(this.param))},t}(o.GetTCDataCommand);t.GetInAppTCDataCommand=a},8029:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TCString=void 0;var n=s(8270),r=s(8495),o=s(7034),i=s(5771),a=function(){function e(){}return e.encode=function(e,t){var s,r="";return e=n.SemanticPreEncoder.process(e,t),(s=Array.isArray(null==t?void 0:t.segments)?t.segments:new n.SegmentSequence(e,t)[""+e.version]).forEach((function(t,o){var i="";o<s.length-1&&(i="."),r+=n.SegmentEncoder.encode(e,t)+i})),r},e.decode=function(e,t){var s=e.split("."),a=s.length;t||(t=new i.TCModel);for(var c=0;c<a;c++){var l=s[c],u=n.Base64Url.decode(l.charAt(0)).substr(0,n.BitLength.segmentType),d=r.SegmentIDs.ID_TO_KEY[o.IntEncoder.decode(u,n.BitLength.segmentType).toString()];n.SegmentEncoder.decode(l,t,d)}return t},e}();t.TCString=a},8117:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateEncoder=void 0;var n=s(7034),r=s(8177),o=function(){function e(){}return e.encode=function(e,t){return n.IntEncoder.encode(Math.round(e.getTime()/100),t)},e.decode=function(e,t){if(t!==e.length)throw new r.DecodingError("invalid bit length");var s=new Date;return s.setTime(100*n.IntEncoder.decode(e,t)),s},e}();t.DateEncoder=o},8177:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(9244),t),r(s(6344),t),r(s(7650),t),r(s(5969),t)},8219:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.VectorEncodingType=void 0,(s=t.VectorEncodingType||(t.VectorEncodingType={}))[s.FIELD=0]="FIELD",s[s.RANGE=1]="RANGE"},8223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Json=void 0;var s=function(){function e(){}return e.absCall=function(e,t,s,n){return new Promise((function(r,o){var i=new XMLHttpRequest;i.withCredentials=s,i.addEventListener("load",(function(){if(i.readyState==XMLHttpRequest.DONE)if(i.status>=200&&i.status<300){var e=i.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}r(e)}else o(new Error("HTTP Status: ".concat(i.status," response type: ").concat(i.responseType)))})),i.addEventListener("error",(function(){o(new Error("error"))})),i.addEventListener("abort",(function(){o(new Error("aborted"))})),null===t?i.open("GET",e,!0):i.open("POST",e,!0),i.responseType="json",i.timeout=n,i.ontimeout=function(){o(new Error("Timeout "+n+"ms "+e))},i.send(t)}))},e.post=function(e,t,s,n){return void 0===s&&(s=!1),void 0===n&&(n=0),this.absCall(e,JSON.stringify(t),s,n)},e.fetch=function(e,t,s){return void 0===t&&(t=!1),void 0===s&&(s=0),this.absCall(e,null,t,s)},e}();t.Json=s},8270:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(7418),t),r(s(8937),t),r(s(5743),t),r(s(8343),t),r(s(5543),t),r(s(1049),t),r(s(1130),t)},8343:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentEncoder=void 0;var n=s(7418),r=s(8937),o=s(1049),i=s(1130),a=s(8177),c=s(4122),l=s(8495),u=function(){function e(){}return e.encode=function(e,t){var s,i=this;try{s=this.fieldSequence[String(e.version)][t]}catch(s){throw new a.EncodingError("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var u="";t!==l.Segment.CORE&&(u=o.IntEncoder.encode(l.SegmentIDs.KEY_TO_ID[t],r.BitLength.segmentType));var d=(0,o.FieldEncoderMap)();return s.forEach((function(s){var n=e[s],o=d[s],l=r.BitLength[s];void 0===l&&i.isPublisherCustom(s)&&(l=Number(e[c.Fields.numCustomPurposes]));try{u+=o.encode(n,l)}catch(e){throw new a.EncodingError("Error encoding ".concat(t,"->").concat(s,": ").concat(e.message))}})),n.Base64Url.encode(u)},e.decode=function(e,t,s){var i=this,u=n.Base64Url.decode(e),d=0;s===l.Segment.CORE&&(t.version=o.IntEncoder.decode(u.substr(d,r.BitLength[c.Fields.version]),r.BitLength[c.Fields.version])),s!==l.Segment.CORE&&(d+=r.BitLength.segmentType);var p=this.fieldSequence[String(t.version)][s],_=(0,o.FieldEncoderMap)();return p.forEach((function(e){var s=_[e],n=r.BitLength[e];if(void 0===n&&i.isPublisherCustom(e)&&(n=Number(t[c.Fields.numCustomPurposes])),0!==n){var l=u.substr(d,n);if(s===o.VendorVectorEncoder?t[e]=s.decode(l,t.version):t[e]=s.decode(l,n),Number.isInteger(n))d+=n;else{if(!Number.isInteger(t[e].bitLength))throw new a.DecodingError(e);d+=t[e].bitLength}}})),t},e.isPublisherCustom=function(e){return 0===e.indexOf("publisherCustom")},e.fieldSequence=new i.FieldSequence,e}();t.SegmentEncoder=u},8495:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);
1r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(8614),t),r(s(4122),t),r(s(3082),t),r(s(2920),t),r(s(179),t),r(s(1824),t),r(s(4109),t),r(s(3280),t),r(s(8725),t),r(s(8966),t),r(s(1746),t),r(s(4984),t),r(s(9183),t)},8499:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldEncoderMap=void 0;var n=s(8495),r=s(9561),o=s(8117),i=s(6274),a=s(7034),c=s(5981),l=s(1716),u=s(6558);t.FieldEncoderMap=function(){var e;return(e={})[n.Fields.version]=a.IntEncoder,e[n.Fields.created]=o.DateEncoder,e[n.Fields.lastUpdated]=o.DateEncoder,e[n.Fields.cmpId]=a.IntEncoder,e[n.Fields.cmpVersion]=a.IntEncoder,e[n.Fields.consentScreen]=a.IntEncoder,e[n.Fields.consentLanguage]=c.LangEncoder,e[n.Fields.vendorListVersion]=a.IntEncoder,e[n.Fields.policyVersion]=a.IntEncoder,e[n.Fields.isServiceSpecific]=r.BooleanEncoder,e[n.Fields.useNonStandardTexts]=r.BooleanEncoder,e[n.Fields.specialFeatureOptins]=i.FixedVectorEncoder,e[n.Fields.purposeConsents]=i.FixedVectorEncoder,e[n.Fields.purposeLegitimateInterests]=i.FixedVectorEncoder,e[n.Fields.purposeOneTreatment]=r.BooleanEncoder,e[n.Fields.publisherCountryCode]=c.LangEncoder,e[n.Fields.vendorConsents]=u.VendorVectorEncoder,e[n.Fields.vendorLegitimateInterests]=u.VendorVectorEncoder,e[n.Fields.publisherRestrictions]=l.PurposeRestrictionVectorEncoder,e.segmentType=a.IntEncoder,e[n.Fields.vendorsDisclosed]=u.VendorVectorEncoder,e[n.Fields.vendorsAllowed]=u.VendorVectorEncoder,e[n.Fields.publisherConsents]=i.FixedVectorEncoder,e[n.Fields.publisherLegitimateInterests]=i.FixedVectorEncoder,e[n.Fields.numCustomPurposes]=a.IntEncoder,e[n.Fields.publisherCustomConsents]=i.FixedVectorEncoder,e[n.Fields.publisherCustomLegitimateInterests]=i.FixedVectorEncoder,e}},8503:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),o=this&&this.__read||function(e,t){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var n,r,o=s.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}return i},i=this&&this.__spreadArray||function(e,t,s){if(s||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.InAppTCData=void 0;var a=function(e){function t(t){var s=e.call(this,t)||this;return delete s.outOfBand,s}return r(t,e),t.prototype.createVectorField=function(e){return i([],o(e),!1).reduce((function(e,t){return e+(t[1]?"1":"0")}),"")},t.prototype.createRestrictions=function(e){var t={};if(e.numRestrictions>0){var s=e.getMaxVendorId();e.getRestrictions().forEach((function(e){t[e.purposeId.toString()]="_".repeat(s)}));for(var n=function(s){var n=s+1;
1e.getRestrictions(n).forEach((function(e){var n=e.restrictionType.toString(),r=e.purposeId.toString(),o=t[r].substr(0,s),i=t[r].substr(s+1);t[r]=o+n+i}))},r=0;r<s;r++)n(r)}return t},t}(s(1543).TCData);t.InAppTCData=a},8605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Command=void 0;var s=function(){function e(e,t,s,n){this.success=!0,Object.assign(this,{callback:e,listenerId:s,param:t,next:n});try{this.respond()}catch(e){this.invokeCallback(null)}}return e.prototype.invokeCallback=function(e){var t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)},e}();t.Command=s},8614:function(e,t){"use strict";var s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,s=t&&e[t],n=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentLanguages=void 0;var n=function(){function e(){}return e.prototype.has=function(t){return e.langSet.has(t)},e.prototype.parseLanguage=function(t){var n,r,o=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==o.length){if(e.langSet.has(t))return t;if(e.langSet.has(o))return o;var i=o+"-"+o;if(e.langSet.has(i))return i;try{for(var a=s(e.langSet),c=a.next();!c.done;c=a.next()){var l=c.value;if(-1!==l.indexOf(t)||-1!==l.indexOf(o))return l}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}throw new Error("unsupported language ".concat(t))},e.prototype.forEach=function(t){e.langSet.forEach(t)},Object.defineProperty(e.prototype,"size",{get:function(){return e.langSet.size},enumerable:!1,configurable:!0}),e.langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HR","HU","ID","IT","JA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SR-LATN","SR-CYRL","SV","TL","TR","UK","ZH"]),e}();t.ConsentLanguages=n},8725:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictionType=void 0,(s=t.RestrictionType||(t.RestrictionType={}))[s.NOT_ALLOWED=0]="NOT_ALLOWED",s[s.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",s[s.REQUIRE_LI=2]="REQUIRE_LI"},8777:function(e,t,s){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.PingCommand=void 0;var o=s(4392),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){this.invokeCallback(new o.Ping)},t}(s(8605).Command);t.PingCommand=i},8937:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitLength=void 0;var n=s(8495),r=function(){function e(){}var t,s,r,o,i,a,c,l,u,d,p,_,h,f,g,v,m,y;return t=n.Fields.cmpId,s=n.Fields.cmpVersion,r=n.Fields.consentLanguage,o=n.Fields.consentScreen,i=n.Fields.created,a=n.Fields.isServiceSpecific,c=n.Fields.lastUpdated,l=n.Fields.policyVersion,u=n.Fields.publisherCountryCode,d=n.Fields.publisherLegitimateInterests,p=n.Fields.publisherConsents,_=n.Fields.purposeConsents,h=n.Fields.purposeLegitimateInterests,f=n.Fields.purposeOneTreatment,g=n.Fields.specialFeatureOptins,v=n.Fields.useNonStandardTexts,m=n.Fields.vendorListVersion,y=n.Fields.version,e[t]=12,e[s]=12,e[r]=12,e[o]=6,e[i]=36,e[a]=1,e[c]=36,e[l]=6,e[u]=12,e[d]=24,e[p]=24,e[_]=24,e[h]=24,e[f]=1,e[g]=12,e[v]=1,e[m]=12,e[y]=6,e.anyBoolean=1,e.encodingType=1,e.maxId=16,e.numCustomPurposes=6,e.numEntries=12,e.numRestrictions=12,e.purposeId=6,e.restrictionType=2,e.segmentType=3,e.singleOrRange=1,e.vendorId=16,e}();t.BitLength=r},8966:(e,t)=>{"use strict";var s;
1Object.defineProperty(t,"__esModule",{value:!0}),t.Segment=void 0,(s=t.Segment||(t.Segment={})).CORE="core",s.VENDORS_DISCLOSED="vendorsDisclosed",s.VENDORS_ALLOWED="vendorsAllowed",s.PUBLISHER_TC="publisherTC"},9183:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s);var r=Object.getOwnPropertyDescriptor(t,s);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,n,r)}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s(7640),t),r(s(3362),t),r(s(2629),t),r(s(3715),t),r(s(5308),t),r(s(4621),t),r(s(5987),t),r(s(1965),t),r(s(3297),t),r(s(1723),t)},9244:function(e,t){"use strict";var s,n=this&&this.__extends||(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DecodingError=void 0;var r=function(e){function t(t){var s=e.call(this,t)||this;return s.name="DecodingError",s}return n(t,e),t}(Error);t.DecodingError=r},9561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanEncoder=void 0;var s=function(){function e(){}return e.encode=function(e){return String(Number(e))},e.decode=function(e){return"1"===e},e}();t.BooleanEncoder=s}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";class e extends Error{constructor(e){super(e),this.name="DecodingError"}}class t extends Error{constructor(e){super(e),this.name="EncodingError"}}class n extends Error{constructor(e){super(e),this.name="GVLError"}}class r extends Error{constructor(e,t,s=""){super(`invalid value ${t} passed for ${e} ${s}`),this.name="TCModelError"}}class o{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 t("Invalid bitField");const s=e.length%this.LCM;e+=s?"0".repeat(this.LCM-s):"";let n="";for(let t=0;t<e.length;t+=this.BASIS)n+=this.DICT[parseInt(e.substr(t,this.BASIS),2)];return n}static decode(t){if(!/^[A-Za-z0-9\-_]+$/.test(t))throw new e("Invalidly encoded Base64URL string");let s="";for(let e=0;e<t.length;e++){const n=this.REVERSE_DICT.get(t[e]).toString(2);s+="0".repeat(this.BASIS-n.length)+n}return s}}class i{static langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HR","HU","ID","IT","JA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SR-LATN","SR-CYRL","SV","TL","TR","UK","ZH"]);has(e){return i.langSet.has(e)}parseLanguage(e){const t=(e=e.toUpperCase()).split("-")[0];if(e.length>=2&&2==t.length){if(i.langSet.has(e))return e;if(i.langSet.has(t))return t;const s=t+"-"+t;if(i.langSet.has(s))return s;for(const s of i.langSet)if(-1!==s.indexOf(e)||-1!==s.indexOf(t))return s}throw new Error(`unsupported language ${e}`)}forEach(e){i.langSet.forEach(e)}get size(){return i.langSet.size}}class a{static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";
1static 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 c{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}}}}var l,u,d,p;!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(l||(l={}));class _ extends c{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 _;if(2!==t.length)throw new r("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}${_.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===l.NOT_ALLOWED||this.restrictionType===l.REQUIRE_CONSENT||this.restrictionType===l.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class h extends c{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,s){let n=!0;if(this.gvl?.vendors){const r=this.gvl.vendors[s];if(r)if(e===l.NOT_ALLOWED)n=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case l.REQUIRE_CONSENT:n=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case l.REQUIRE_LI:n=r.flexiblePurposes.includes(t)&&r.purposes.includes(t)}else n=!1;else n=!1}return n}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,n=t[t.length-1],r=[...Array(n).keys()].map((e=>e+1));if(this.has(s))for(let e=1;e<=n;e++)this.map.get(s).add(e);else this.map.set(s,new Set(r)),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 n=this.getRestrictions(e);for(let e=0;e<n.length&&!s;e++)s=t.isSameAs(n[e]);return s}getMaxVendorId(){let e=0;return this.map.forEach((t=>{e=Math.max(Array.from(t)[t.size-1],e)})),e}getRestrictions(e){const t=[];
1return this.map.forEach(((s,n)=>{e?s.has(e)&&t.push(_.unHash(n)):t.push(_.unHash(n))})),t}getPurposes(){const e=new Set;return this.map.forEach(((t,s)=>{e.add(_.unHash(s).purposeId)})),Array.from(e)}remove(e,t){const s=t.hash,n=this.map.get(s);n&&(n.delete(e),0==n.size&&(this.map.delete(s),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach(((e,t)=>{const s=_.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"}(u||(u={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(d||(d={}));class f{static ID_TO_KEY=[d.CORE,d.VENDORS_DISCLOSED,d.VENDORS_ALLOWED,d.PUBLISHER_TC];static KEY_TO_ID={[d.CORE]:0,[d.VENDORS_DISCLOSED]:1,[d.VENDORS_ALLOWED]:2,[d.PUBLISHER_TC]:3}}class g extends c{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 r("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}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 v{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 m{static encode(e,s){let n;if("string"==typeof e&&(e=parseInt(e,10)),n=e.toString(2),n.length>s||e<0)throw new t(`${e} too large to encode into ${s}`);return n.length<s&&(n="0".repeat(s-n.length)+n),n}static decode(t,s){if(s!==t.length)throw new e("invalid bit length");return parseInt(t,2)}}class y{static encode(e,t){return m.encode(Math.round(e.getTime()/100),t)}static decode(t,s){if(s!==t.length)throw new e("invalid bit length");const n=new Date;return n.setTime(100*m.decode(t,s)),n}}class b{static encode(e){return String(Number(e))}static decode(e){return"1"===e}}class C{static encode(e,t){let s="";for(let n=1;n<=t;n++)s+=b.encode(e.has(n));return s}static decode(t,s){if(t.length!==s)throw new e("bitfield encoding length mismatch");const n=new g;for(let e=1;e<=s;e++)b.decode(t[e-1])&&n.set(e);return n.bitLength=t.length,n}}class S{static encode(e,s){const n=(e=e.toUpperCase()).charCodeAt(0)-65,r=e.charCodeAt(1)-65;if(n<0||n>25||r<0||r>25)throw new t(`invalid language code: ${e}`);if(s%2==1)throw new t(`numBits must be even, ${s}
1 is not valid`);s/=2;return m.encode(n,s)+m.encode(r,s)}static decode(t,s){let n;if(s!==t.length||t.length%2)throw new e("invalid bit length for language");{const e=65,s=t.length/2,r=m.decode(t.slice(0,s),s)+e,o=m.decode(t.slice(s),s)+e;n=String.fromCharCode(r)+String.fromCharCode(o)}return n}}class w{static encode(e){let t=m.encode(e.numRestrictions,v.numRestrictions);if(!e.isEmpty()){const s=(t,s)=>{for(let n=t+1;n<=s;n++)if(e.gvl.vendorIds.has(n))return n;return t};e.getRestrictions().forEach((n=>{t+=m.encode(n.purposeId,v.purposeId),t+=m.encode(n.restrictionType,v.restrictionType);const r=e.getVendors(n),o=r.length;let i=0,a=0,c="";for(let e=0;e<o;e++){const t=r[e];if(0===a&&(i++,a=t),e===o-1||r[e+1]>s(t,r[o-1])){const e=!(t===a);c+=b.encode(e),c+=m.encode(a,v.vendorId),e&&(c+=m.encode(t,v.vendorId)),a=0}}t+=m.encode(i,v.numEntries),t+=c}))}return t}static decode(t){let s=0;const n=new h,r=m.decode(t.substr(s,v.numRestrictions),v.numRestrictions);s+=v.numRestrictions;for(let o=0;o<r;o++){const r=m.decode(t.substr(s,v.purposeId),v.purposeId);s+=v.purposeId;const o=m.decode(t.substr(s,v.restrictionType),v.restrictionType);s+=v.restrictionType;const i=new _(r,o),a=m.decode(t.substr(s,v.numEntries),v.numEntries);s+=v.numEntries;for(let r=0;r<a;r++){const r=b.decode(t.substr(s,v.anyBoolean));s+=v.anyBoolean;const o=m.decode(t.substr(s,v.vendorId),v.vendorId);if(s+=v.vendorId,r){const r=m.decode(t.substr(s,v.vendorId),v.vendorId);if(s+=v.vendorId,r<o)throw new e(`Invalid RangeEntry: endVendorId ${r} is less than ${o}`);for(let e=o;e<=r;e++)n.add(e,i)}else n.add(o,i)}}return n.bitLength=s,n}}!function(e){e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE"}(p||(p={}));class E{static encode(e){const t=[];let s,n=[],r=m.encode(e.maxId,v.maxId),o="";const i=v.maxId+v.encodingType,a=i+e.maxId,c=2*v.vendorId+v.singleOrRange+v.numEntries;let l=i+v.numEntries;return e.forEach(((r,i)=>{if(o+=b.encode(r),s=e.maxId>c&&l<a,s&&r){e.has(i+1)?0===n.length&&(n.push(i),l+=v.singleOrRange,l+=v.vendorId):(n.push(i),l+=v.vendorId,t.push(n),n=[])}})),s?(r+=String(p.RANGE),r+=this.buildRangeEncoding(t)):(r+=String(p.FIELD),r+=o),r}static decode(t,s){let n,r=0;const o=m.decode(t.substr(r,v.maxId),v.maxId);r+=v.maxId;const i=m.decode(t.charAt(r),v.encodingType);if(r+=v.encodingType,i===p.RANGE){if(n=new g,1===s){if("1"===t.substr(r,1))throw new e("Unable to decode default consent=1");r++}const o=m.decode(t.substr(r,v.numEntries),v.numEntries);r+=v.numEntries;for(let e=0;e<o;e++){const e=b.decode(t.charAt(r));r+=v.singleOrRange;const s=m.decode(t.substr(r,v.vendorId),v.vendorId);if(r+=v.vendorId,e){const e=m.decode(t.substr(r,v.vendorId),v.vendorId);r+=v.vendorId;for(let t=s;t<=e;t++)n.set(t)}else n.set(s)}}else{const e=t.substr(r,o);r+=o,n=C.decode(e,o)}return n.bitLength=r,n}static buildRangeEncoding(e){const t=e.length;let s=m.encode(t,v.numEntries);return e.forEach((e=>{const t=1===e.length;s+=b.encode(!t),s+=m.encode(e[0],v.vendorId),t||(s+=m.encode(e[1],v.vendorId))})),s}}function O(){return{[a.version]:m,[a.created]:y,[a.lastUpdated]:y,[a.cmpId]:m,[a.cmpVersion]:m,[a.consentScreen]:m,[a.consentLanguage]:S,[a.vendorListVersion]:m,[a.policyVersion]:m,[a.isServiceSpecific]:b,[a.useNonStandardTexts]:b,[a.specialFeatureOptins]:C,[a.purposeConsents]:C,[a.purposeLegitimateInterests]:C,[a.purposeOneTreatment]:b,[a.publisherCountryCode]:S,[a.vendorConsents]:E,[a.vendorLegitimateInterests]:E,[a.publisherRestrictions]:w,segmentType:m,[a.vendorsDisclosed]:E,[a.vendorsAllowed]:E,[a.publisherConsents]:C,[a.publisherLegitimateInterests]:C,[a.numCustomPurposes]:m,[a.publisherCustomConsents]:C,[a.publisherCustomLegitimateInterests]:C}}class P{1={[d.CORE]:[a.version,a.created,a.lastUpdated,a.cmpId,a.cmpVersion,a.consentScreen,a.consentLanguage,a.vendorListVersion,a.purposeConsents,a.vendorConsents]};2={[d.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],[d.PUBLISHER_TC]:[a.publisherConsents,a.publisherLegitimateInterests,a.numCustomPurposes,a.publisherCustomConsents,a.publisherCustomLegitimateInterests],[d.VENDORS_ALLOWED]:[a.vendorsAllowed],[d.VENDORS_DISCLOSED]:[a.vendorsDisclosed]}}class I{1=[d.CORE];2=[d.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(d.PUBLISHER_TC);else{const s=!(!t||!t.isForVendors);s&&!0!==e[a.supportOOB]||this[2].push(d.VENDORS_DISCLOSED),s&&(e[a.supportOOB]&&e[a.vendorsAllowed].size>0&&this[2].push(d.VENDORS_ALLOWED),this[2].push(d.PUBLISHER_TC))}}}class A{static fieldSequence=new P;static encode(e,s){let n;try{n=this.fieldSequence[String(e.version)][s]}
1catch(n){throw new t(`Unable to encode version: ${e.version}, segment: ${s}`)}let r="";s!==d.CORE&&(r=m.encode(f.KEY_TO_ID[s],v.segmentType));const i=O();return n.forEach((n=>{const o=e[n],c=i[n];let l=v[n];void 0===l&&this.isPublisherCustom(n)&&(l=Number(e[a.numCustomPurposes]));try{r+=c.encode(o,l)}catch(e){throw new t(`Error encoding ${s}->${n}: ${e.message}`)}})),o.encode(r)}static decode(t,s,n){const r=o.decode(t);let i=0;n===d.CORE&&(s.version=m.decode(r.substr(i,v[a.version]),v[a.version])),n!==d.CORE&&(i+=v.segmentType);const c=this.fieldSequence[String(s.version)][n],l=O();return c.forEach((t=>{const n=l[t];let o=v[t];if(void 0===o&&this.isPublisherCustom(t)&&(o=Number(s[a.numCustomPurposes])),0!==o){const a=r.substr(i,o);if(s[t]=n===E?n.decode(a,s.version):n.decode(a,o),Number.isInteger(o))i+=o;else{if(!Number.isInteger(s[t].bitLength))throw new e(t);i+=s[t].bitLength}}})),s}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}class L{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,n)=>{s.forEach(((r,o)=>{if(r){const r=t.vendors[o];if(!r||r.deletedDate)s.unset(o);else if(0===r[n].length)if("legIntPurposes"===n&&0===r.purposes.length&&0===r.legIntPurposes.length&&r.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===r.flexiblePurposes.length)s.unset(o);else{const t=e.publisherRestrictions.getRestrictions(o);let r=!1;for(let e=0,s=t.length;e<s&&!r;e++)r=t[e].restrictionType===l.REQUIRE_CONSENT&&"purposes"===n||t[e].restrictionType===l.REQUIRE_LI&&"legIntPurposes"===n;r||s.unset(o)}else s.unset(o)}}))})),e.vendorsDisclosed.set(t.vendors),e}];static process(e,s){const n=e.gvl;if(!n)throw new t("Unable to encode TCModel without a GVL");if(!n.isReady)throw new t("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),s?.version>0&&s?.version<=this.processor.length?e.version=s.version:e.version=this.processor.length;const r=e.version-1;if(!this.processor[r])throw new t(`Invalid version: ${e.version}`);return this.processor[r](e,n)}}class D{static absCall(e,t,s,n){return new Promise(((r,o)=>{const i=new XMLHttpRequest;i.withCredentials=s,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){}r(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=n,i.ontimeout=()=>{o(new Error("Timeout "+n+"ms "+e))},i.send(t)}))}static post(e,t,s=!1,n=0){return this.absCall(e,JSON.stringify(t),s,n)}static fetch(e,t=!1,s=0){return this.absCall(e,null,t,s)}}class j extends c{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new i;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new n("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){super();let t=j.baseUrl;if(this.lang_=j.DEFAULT_LANGUAGE,this.cacheLang_=j.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new n("must specify GVL.baseUrl before loading GVL json");if(e>0){const s=e;j.CACHE.has(s)?(this.populate(j.CACHE.get(s)),this.readyPromise=Promise.resolve()):(t+=j.versionedFilename.replace("[VERSION]",String(s)),this.readyPromise=this.fetchJson(t))}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(t+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 D.fetch(e))}catch(e){throw new n(e.message)}}getJson(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}async changeLanguage(e){let t=e;try{t=j.consentLanguages.parseLanguage(e)}catch(e){throw new n("Error during parsing the language: "+e.message)}const s=e.toUpperCase();if((t.toLowerCase()!==j.DEFAULT_LANGUAGE.toLowerCase()||j.LANGUAGE_CACHE.has(s))&&t!==this.lang_)if(this.lang_=t,j.LANGUAGE_CACHE.has(s)){const e=j.LANGUAGE_CACHE.get(s);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_=s,this.cacheLanguage()}catch(e){throw new n("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
1ors,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 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,n){const r=e.charAt(0).toUpperCase()+e.slice(1);let o;const i={};return o="purpose"===e&&s?this["by"+r+"VendorMap"][String(t)][s]:this["by"+(n?"Special":"")+r+"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 k extends c{static consentLanguages=j.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardTexts_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=4;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new g;purposeConsents=new g;purposeLegitimateInterests=new g;publisherConsents=new g;publisherLegitimateInterests=new g;publisherCustomConsents=new g;publisherCustomLegitimateInterests=new g;customPurposes;vendorConsents=new g;vendorLegitimateInterests=new g;vendorsDisclosed=new g;vendorsAllowed=new g;publisherRestrictions=new h;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 r("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new r("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new r("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 r("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)|0)<0)throw new r("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 r("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 r("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 T{static encode(e,t){let s,n="";return e=L.process(e,t),s=Array.isArray(t?.segments)?t.segments:new I(e,t)[""+e.version],s.forEac
1h(((t,r)=>{let o="";r<s.length-1&&(o="."),n+=A.encode(e,t)+o})),n}static decode(e,t){const s=e.split("."),n=s.length;t||(t=new k);for(let e=0;e<n;e++){const n=s[e],r=o.decode(n.charAt(0)).substr(0,v.segmentType),i=f.ID_TO_KEY[m.decode(r,v.segmentType).toString()];A.decode(n,t,i)}return t}}var V=s(4353),M=s.n(V);const x=s(1040),{CmpApi:R}=s(4178);let F=s(3522);const N="cs_viewed_cookie_policy",Q="CS-Magic",B=CS_Data.cs_expire_days,U=CS_Data.cs_proof_expire,G="cs_consent_string",H="cs_addtl_consent",Y="cs_cross_domain_categories";function J(e){if(e&&"object"==typeof e)return e;if("string"!=typeof e)return null;const t=e.replace(/^\uFEFF/,"").trim(),s=function(e){try{const t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(e){return null}},n=s(t);if(null!==n)return n;const r=t.indexOf("{"),o=t.lastIndexOf("}");return-1!==r&&o>r?s(t.slice(r,o+1)):null}function W(){jQuery((function(){!async function(){let e=jQuery;if(Z.checkDisableCM(),Z.disableCM)return Z.enableAllCookies(!0),void X.runScripts("unblockAll");e("#cs_preview_popup").on("wheel",(function(e){e.stopPropagation()})),await z.buildVendorList(),q.checkCrossDomainCookie();let t=!1;1==CS_Data.cs_refresh_after_consent&&(t=CS_Data.cs_refresh_after_consent),Z.set(),X.checkPluginStatus(X.cookieBar),e(".cs_preview_container:not(.cs_footer_btn) > .preview_wrap").is(":visible")&&e.ajax({url:cs_log_object.ajaxurl,type:"POST",data:{action:"proof_show_count_update",nonce_code:CS_Data.security},success:function(e){},error:function(e){console.log(e)}});let s=q.read(N+Z.testPrefix),n=q.read(Q+Z.testPrefix);function r(){Z.enableAllCookies(),X.runScripts("unblockAll"),z.enableAllProperties(),te.setConsent()}null==q.read(Q+Z.testPrefix)&&(X.removeAllPreferenceCookies(),"1"===CS_Data.cs_track_analytics&&e("#cs_enabled_cookie_term"+Z.testPrefix+"_"+CS_Data.cs_script_cat.analytics).trigger("click")),function(){(function(){const{cs_active_rule_name:t,cs_iab:r,cs_showing_rule_until_express_consent:o}=CS_Data;return e(".cs_block_content_1").length>0&&("iab"===t&&1==r.native_scripts&&null===s||"ask_before_tracking"===t&&null===s||"inform_and_opiout"===t&&(1==o&&null===s||0==o&&null===n)||"just_inform"===t&&null===n)})()&&(Z.manageHtmlOverflow(!0),e(".cs-popupbar-overlay-bar").addClass("cs-show"));"unblock"===K.force_action?r():K.cache_enabled?function(){const e=K.active_rule,t=q.read(Q+Z.testPrefix);"just_inform"===e||"false"===e?r():"ask_before_tracking"===e||"inform_and_opiout"===e?"inform_and_opiout"===e&&null===t?r():(X.runScripts("runRules"),te.setConsent()):"iab"===e&&0==CS_Data.cs_iab.native_scripts?(X.runScripts("runRules"),te.setConsent()):(X.runScripts("onlyFillingPlaceholder"),te.setConsent())}():function(){const{cs_active_rule_name:e}=CS_Data,t=q.read(Q+Z.testPrefix);"inform_and_opiout"===e&&null===t||"false"===e||"just_inform"===e?r():(X.runScripts("onlyFillingPlaceholder"),te.setConsent())}()}(),jQuery(document).on("click",".cs-open-consent",(function(t){t.preventDefault();let s=document.createElement("div");document.body.appendChild(s);let n=e(this).data("id");e.ajax({url:cs_log_object.ajaxurl,type:"POST",dataType:"html",data:{action:"preview_shortcode_show",id:n,nonce_code:CS_Data.security},success:function(t){null===J(t)?(e(s).html(t),e(s).find(".cs-info-bar").hasClass("cs-public-cookie-popup")&&e(s).find(".cs-popupbar-overlay").addClass("cs-show"),e(s).find(".cs-info-bar").css({opacity:1,display:"block"}),e(s).show()):console.log("error ",t)},error:function(e){console.log(e)}})})),jQuery(document).on("click",".cs_action_btn",(function(s){s.preventDefault();let n=jQuery(this).attr("data-cs_action");q.set(N,"yes",B),Z.currentSetCategory="cs_enabled_cookie_term"+Z.testPrefix+"_0","allow_all"==n?(void 0!==s.originalEvent?Z.enableAllCookies():Z.settingsPopUpClose(),Z.accept_close(),z.enableAllProperties(),te.setConsent()):"disable_all"==n?(Z.disableAllCookies(),Z.reject_close(),z.disableAllProperties(),te.setConsent()):"minimum_recommended"==n?(Z.minimumRecommended(),z.setProperties(),Z.checkCategories(),te.setConsent()):"cs_confirm"==n&&(Z.toggleUserPreferenceCheckBox(),z.setProperties(),te.setConsent()),Z.insertProof(n);let r=e(this).closest(".cs_preview_container").find(".preview_wrap");jQuery("body").removeClass("cs-barmodal-open cs-modal-open"),r.find(".cs_settings_popup").removeClass("cs-show").addClass("cs-out"),r.find(".cs-settings-overlay").removeClass("cs-show"),r.find(".cs-popupbar-overlay").removeClass("cs-show"),r.find(".cs-info-bar").css({opacity:0,display:"none"}),1==Z.getStickyButton()&&Z.showStickyButton(),r.hide(),Z.manageHtmlOverflow(!1),e(".cs-popupbar-overlay-bar").removeClass("cs-show"),Z.generate_user_preference_cookie(),t?setTimeout((function(){location.replace(location.href)}),1500):"unblock"!=K.force_action&&("cs_confirm"==n||"minimum_recommended"==n?X.runScripts("runRules"):"allow_all"==n?X.runScripts("unblockAll"):"disable_all"==n&&
1X.runScripts("blockAll")),Z.updateStickyButton()})),jQuery(document).on("click",".cs-info-sticky-button",(function(t){jQuery(".cs_preview_container").find(".cs-info-bar").hide(),jQuery(".cs_preview_container").show(),"single"==CS_Data.cs_design_type?Z.settingsPopUpShow():e(".options_btn").trigger("click")})),jQuery(document).on("click","#wp-admin-bar-cs_test_consent_clear > .ab-item",(function(t){t.preventDefault();let s=jQuery(this).attr("href");e.ajax({url:s,type:"POST",success:function(e){location.replace(location.href)},error:function(){console.log("error")}})})),jQuery("body").on("click",".cs_script_action",(function(){let e=jQuery(this).attr("id"),s=jQuery(".cs_script_action[id="+e+"]");jQuery(this).is(":checked")?(q.set(e,"yes",B),s.prop("checked",!0),jQuery(this).closest(".facebook_term_group").length>0&&(q.set("cs_enabled_advanced_matching"+Z.testPrefix,"yes",B),jQuery("#cs_enabled_advanced_matching"+Z.testPrefix).prop("checked",!0).prop("disabled",!1),q.set("cs_enabled_server_side"+Z.testPrefix,"yes",B),jQuery("#cs_enabled_server_side"+Z.testPrefix).prop("checked",!0).prop("disabled",!1))):(q.set(e,"no",B),s.prop("checked",!1),jQuery(this).closest(".facebook_term_group").length>0&&(q.set("cs_enabled_advanced_matching"+Z.testPrefix,"no",B),jQuery("#cs_enabled_advanced_matching"+Z.testPrefix).prop("checked",!1).prop("disabled",!0),q.set("cs_enabled_server_side"+Z.testPrefix,"no",B),jQuery("#cs_enabled_server_side"+Z.testPrefix).prop("checked",!1).prop("disabled",!0))),t||(Z.currentSetCategory=e),Z.generate_user_preference_cookie(),Z.checkCategories(),Z.generateConsent();let n=parseInt(e.replace("cs_enabled_cookie_term"+Z.testPrefix+"_",""));jQuery(this).is(":checked")?z.setPropertiesCheckboxes("enable",n):z.setPropertiesCheckboxes("disable",n),q.set(N+Z.testPrefix,"yes",B),Z.ConsentMagicRunCallBacks()})),jQuery(document).on(".cs_script_action").each((function(){jQuery(this).is(":checked")&&jQuery(this).closest(".facebook_term_group").length>0&&(jQuery("#cs_enabled_advanced_matching"+Z.testPrefix).prop("disabled",!1),jQuery("#cs_enabled_server_side"+Z.testPrefix).prop("disabled",!1))})),jQuery(document).on("click",".options_btn",(function(e){e.preventDefault(),Z.settingsPopUpShow()})),e(document).on("click",".cs-modal-close",(function(){let t=e(this).closest(".cs_preview_container").find(".preview_wrap");e("body").removeClass("cs-modal-open"),t.find(".cs_settings_popup").removeClass("cs-show").addClass("cs-out"),t.find(".cs-settings-overlay").removeClass("cs-show"),t.find(".cs-popupbar-overlay").removeClass("cs-show"),t.find(".cs-info-bar").css({opacity:0,display:"none"}),Z.manageHtmlOverflow(!1),t.hide(),Z.showStickyButton();let s=e(this).data("action");1==CS_Data.cs_deny_consent_for_close&&(Z.disableAllCookies(),Z.reject_close(),1==CS_Data.cs_refresh_after_consent?setTimeout((function(){location.replace(location.href)}),1500):X.runScripts("blockAll"),Z.updateStickyButton()),Z.insertProof(s)})),e(window).on("scroll",(function(){let t=jQuery("#boost-notifications-wrapper");window.innerWidth<=1024&&q.read(Q+Z.testPrefix)&&e(".cs_footer_btn").length>0&&(!function(t){let s=window.innerHeight+100,n=e(window).scrollTop();return e(t).offset().top<=s+n}(e("#cs_preview_popup_button"))||1!=Z.getStickyButton()?(Z.hideStickyButton(".cs_mobile_side_sticky"),e(".cs_preview_container.cs_footer_btn .cs-info-sticky").removeClass("fixed-preview")):(Z.showStickyButton(".cs_mobile_side_sticky"),t.length>0&&jQuery("#boost-notifications-wrapper .boost-notification:first-child").hide("fast"),e(".cs_preview_container.cs_footer_btn .cs-info-sticky").addClass("fixed-preview"))),e(window).scrollTop()>=10&&e(".cs_preview_container.cs_top_push").length>0?(t.length>0&&jQuery("#boost-notifications-wrapper .boost-notification:first-child").hide("fast"),e(".cs_preview_container.cs_top_push:not(.cs_footer_btn) .cs-info-sticky").addClass("fixed-preview")):e(".cs_preview_container.cs_top_push:not(.cs_footer_btn) .cs-info-sticky").removeClass("fixed-preview")})),e(document).on("click",".cs_manage_current_consent",(function(){let e=jQuery(this).data("cs-script-type"),t="cs_enabled_cookie_term"+Z.testPrefix+"_"+e;q.set(t,"yes",B),q.set(N+Z.testPrefix,"yes",B),Z.checkCategories(),z.setPropertiesCheckboxes("enable",e,!0),te.setConsent(),"unblock"!=K.force_action&&X.runScripts("runRules"),Z.generate_user_preference_cookie(),Z.generateConsent(),Z.ConsentMagicRunCallBacks()})),e("#cs_preview_popup .cs_sub_tab__popup_content li").on("click",(function(){let t=e(this).attr("data-target"),s=e(this).closest(".cs-modal-content"),n=s.find(".cs_sub_tab_container"),r=e(".cs-tab-footer .cs_more_options_btn"),o=e(".cs-tab-footer .cs_setting_save_button");s.find(".cs_sub_tab > li").removeClass("active"),e(this).addClass("active"),n.find(".cs_sub_tab_content_iab").hide(),n.find('.cs_sub_tab_content_iab[data-id="'+t+'"]').fadeIn(),"consent"==t?(r.show(),o.hide()):(r.hide(),o.show())})),e("#cs_preview_popup .cs_more_options_btn").on("click",(function(t){t.preventDefault(),e("#cs_preview_popup .cs_sub_tab__popup_content li[data-target=options]").trigger("click")})),e("#cs_preview_popup .cs_card-header").on("click",(function(){let t=e(this).closest(".cs_card_single").find(".cs_card-body"),s=e(this).find(".cs_card_arrow");t.hasClass("show")?(t.slideUp(600).removeClass("show"),s.removeClass("opened")):(t.slideDown(600).addClass("show"),s.addClass("opened"))})),e("#cs_preview_popup .cs_sub_sub_tab__popup_content li").on("click",(function(){let t=e(this).attr("data-target"),s=e(this).closest(".cs_card-body"),n=s.find(".cs_sub_tab_container");s.find(".cs_sub_sub_tab > li").removeClass("active"),e(this).addClass("active"),n.find(".cs_sub_sub_tab_content_iab").hide(),n.find('.cs_sub_sub_tab_content_iab[data-id="'+t+'"]').fadeIn()})),e(document).on("click","#cs_preview_popup .cs_sub_card-header-name",(function(){let t=e(this).closest(".cs_sub_sub_card"),s=t.find(".cs_sub_sub_card-body"),n=e(this).find(".cs_card_arrow");e(this).data("cs-built")||(0==t.data("cs-additional-vendor")?z.buildVendorDetails(e(this)):z.buildAdditionalVendorDetails(e(this))),s.hasClass("show")?(s.slide
1Up(600).removeClass("show"),n.removeClass("opened")):(s.slideDown(600).addClass("show"),n.addClass("opened"))})),e(document).on("click",".cs_action_purposes_btn",(function(t){switch(t.preventDefault(),e(this).attr("data-cs_action")){case"allow_all_purposes":z.enableAllPurposes();break;case"disable_all_purposes":z.disableAllPurposes();break;case"allow_all_special_features":z.enableAllSpecialFeatures();break;case"disable_all_special_features":z.disableAllSpecialFeatures();break;case"allow_all_vendors":z.enableAllVendors();break;case"disable_all_vendors":z.disableAllVendors();break;case"allow_all_additional_vendors":z.enableAllAdditionalVendors();break;case"disable_all_additional_vendors":z.disableAllAdditionalVendors()}})),e(document).on("click.cs_click_url","#cs_preview_popup .cs_sub_sub_card_item_description_url",(function(t){t.preventDefault();let s=e(this),n=parseInt(e(this).data("vendorid")),r=CS_Vendor_list.vendors[n].deviceStorageDisclosureUrl,o=e(this).closest(".cs_sub_sub_card_item_description").find(".cs_sub_sub_card_item_description_data .cs_scroll_container_data");s.removeClass("cs_sub_sub_card_item_description_url").addClass("cs_sub_sub_card_item_description_url_done"),e.ajax({url:r,type:"GET",beforeSend:function(){s.append('<span class="cs_loading">...</span>')},success:function(e){if(Object.keys(e.disclosures).length>0){let t='<table><thead><tr><th class="cs_item_description_data_table_col_1">'+CS_Data.cs_translations.cs_iab_name+'</th><th class="cs_item_description_data_table_col_2">'+CS_Data.cs_translations.cs_iab_domain+'</th><th class="cs_item_description_data_table_col_3">'+CS_Data.cs_translations.cs_iab_purposes+'</th><th class="cs_item_description_data_table_col_4">'+CS_Data.cs_translations.cs_iab_expiry+'</th><th class="cs_item_description_data_table_col_5">'+CS_Data.cs_translations.cs_iab_type+"</th></tr></thead><tbody>";e.disclosures.forEach((e=>{t+='<tr><td class="cs_item_description_data_table_col_1"> '+e.identifier+'</td><td class="cs_item_description_data_table_col_2">',e.domains&&"object"==typeof e.domains?e.domains.forEach((e=>{t+=e})):e.domain&&"string"==typeof e.domain&&(t+=e.domain),t+='</td><td class="cs_item_description_data_table_col_3">',e.purposes&&(t+="<ul>",e.purposes.forEach((e=>{t+="<li>"+CS_Vendor_list.purposes[e].name+"</li>"})),t+="</ul>"),t+='</td><td class="cs_item_description_data_table_col_4">'+re(e.maxAgeSeconds)+'</td><td class="cs_item_description_data_table_col_5">'+e.type+"</td></tr>"})),t+="</tbody></table>",o.prepend(t)}else o.html(CS_Data.cs_translations.cs_iab_nodata).removeClass("cs_scroll_container_data")},error:function(e){console.log("Error: ",e),o.html(CS_Data.cs_translations.cs_iab_nodata).removeClass("cs_scroll_container_data")},complete:function(){s.find(".cs_loading").remove(),s.find("a").html(CS_Data.cs_translations.cs_iab_cookie_details),e("#cs_preview_popup .cs_sub_sub_card_item_description_url_done").trigger("click")}})})),e(document).on("click","#cs_preview_popup .cs_sub_sub_card_item_description_url_done",(function(t){t.preventDefault();let s=e(this);s.hasClass("show")?s.siblings(".cs_sub_sub_card_item_description_data").slideUp(400):s.siblings(".cs_sub_sub_card_item_description_data").slideDown(400),s.toggleClass("show")})),e(document).on("click","#cs_preview_popup .cs_open_vendors",(function(t){t.preventDefault(),t.target.matches(".open")&&e(".options_btn").trigger("click"),t.target.matches(".current")||e('#cs_preview_popup .cs_sub_tab__popup_content li[data-target="options"]').trigger("click");let s=e("#cs_card-header-vendors");s.closest(".cs_card_single").find(".cs_card-body").fadeIn().addClass("show"),s.find("i").removeClass("icon-chevron-right-arrow").addClass("icon-chevron-down-arrow");let n=document.getElementById("cs_card-header-vendors").offsetTop;e("#cs-modal-body").animate({scrollTop:n-90},1500)})),"single"==CS_Data.cs_design_type&&null==s&&("iab"==CS_Data.cs_active_rule_name&&"1"===CS_Data.cs_track_analytics&&z.togglePurposes("enable",CS_Data.cs_script_cat.analytics),1==CS_Data.cs_run_scripts&&Z.settingsPopUpShow()),jQuery("body").on("click",".cs_iab_accept_all",(function(e){jQuery(this).is(":checked")?(Z.enableAllCookies(),z.enableAllProperties()):(Z.disableAllCookies(),z.disableAllProperties())})),e(".elementor-wrapper.elementor-open-inline").css("width","100%")}()}))}const z={cmpApi:null,tcModel:null,tcString:null,validVendorList:!1,addtlConsentVendors:[],addtlConsent:"2~dv.",enableAdvertiserConsentMode:!1,encodingOptions:{segments:[d.CORE,d.PUBLISHER_TC]},loadVendorList:async function(){if(await fetch(CS_Data.cs_iab.vendor_list_url,{method:"GET",headers:{Accept:"application/json","Cache-Control":"max-age=0,no-cache,no-store,must-revalidate"}}).then((e=>e.json())).then((e=>{window.CS_Vendor_list=e})),window.CS_Vendor_list.vendorListVersion!=CS_Data.cs_iab.vendor_list_version){let e=document.documentElement.lang;e=e.replace("-","_"),await jQuery.ajax({url:cs_log_object.ajaxurl,type:"POST",dataType:"text",data:{action:"cs_get_active_vendor_list",lang:e,nonce_code:CS_Data.security},success:async function(e){let t=J(e);t&&t.success&&t.data?window.CS_Vendor_list=JSON.parse(t.data.vendor_list):console.log("error ",e)},error:async function(e){console.log("error ",e)}})}},enabled:function(){return CS_Data.cs_iab.enabled&&this.validVendorList},initTCString:function(){let e=null;if(q.read(N)){let t=q.read(G+Z.testPrefix);if(t){e=JSON.parse(window.atob(t)).string}else e=this.setPropertiesFromOldVersions();let s=localStorage.getItem(H+Z.testPrefix);if(s)this.addtlConsentVendors=s.split("."),this.addtlConsentVendors=this.addtlConsentVendors.map((e=>+e)),this.buildAddtlConsent();else{let e=[];jQuery("#cs_preview_popup .cs-additional-vendor-input").each((function(){let t=jQuery(this);t.prop("checked")&&e.push(parseInt(t.attr("id").replace("cs_enable_additional_vendor"+Z.testPrefix+"_","")))})),this.addtlConsentVendors=e,this.buildAddtlConsent()}}this.tcString=e},setPropertiesFromOldVersions:function(){return this.initTCModel(),this.initCMPApi(),jQuery(".cs_script_action").each((function(){let e=jQuery(this).attr("id"),t=e.replace("cs_enabled_cookie_term"+Z.testPrefix+"_","");"yes"==q.read(e)?z.setPropertiesCheckboxes("enable",t):z.setPropertiesCheckboxes("disable",t)})),this.tcString=T.encode(this.tcModel,this.encodingOptions),this.setProperties(),this.tcString},initTCModel:function(){let e=this.getGlobalVendorList();Object.keys(e).length>0&&(this.tcModel=new k(e),this.tcModel.cmpId=parseInt(CS_Data.cs_iab.cmp_id),this.tcModel.cmpVersion=parseInt(CS_Data.cs_iab.cmp_ver
1sion))},initCMPApi:function(){if("function"!=typeof window.__tcfapi||!this.cmpApi){let e=parseInt(CS_Data.cs_iab.cmp_id),t=parseInt(CS_Data.cs_iab.cmp_version);this.cmpApi=new R(e,t,!0,{getTCData:(e,t,s)=>{"boolean"!=typeof t&&(t.addtlConsent=this.addtlConsent,t.enableAdvertiserConsentMode=this.enableAdvertiserConsentMode),e(t,s)}})}},getGlobalVendorList:function(){return"undefined"!=typeof CS_Vendor_list&&Object.keys(CS_Vendor_list).length>0?CS_Vendor_list:{}},checkGlobalVendorList:async function(){return await this.loadVendorList(),"undefined"!=typeof CS_Vendor_list&&Object.keys(CS_Vendor_list).length>0&&(this.validVendorList=!0),this.validVendorList},setPreferencesAPI:function(){if(this.initCMPApi(),this.tcString&&0!==this.tcString){let e=T.decode(this.tcString);e.purposeConsents.forEach(((e,t)=>{e&&this.tcModel.purposeConsents.set(t)})),e.purposeLegitimateInterests.forEach(((e,t)=>{e&&this.tcModel.purposeLegitimateInterests.set(t)})),e.specialFeatureOptins.forEach(((e,t)=>{e&&this.tcModel.specialFeatureOptins.set(t)})),e.vendorConsents.forEach(((e,t)=>{e&&this.tcModel.vendorConsents.set(t)})),e.vendorLegitimateInterests.forEach(((e,t)=>{e&&this.tcModel.vendorLegitimateInterests.set(t)}))}else this.tcModel||this.initTCModel(),this.tcString=T.encode(this.tcModel,this.encodingOptions);this.cmpApi.update(this.tcString,!0)},loadPreferences:function(){this.enabled()&&(x(),this.initTCString(),q.read(N)&&(this.initTCModel(),this.setPreferencesAPI(),jQuery("#cs_preview_popup .cs-purposes-input").each((function(){let e=jQuery(this),t=parseInt(e.attr("id").replace("cs_enable_purpose"+Z.testPrefix+"_",""));z.tcModel.purposeConsents.has(t)?e.prop("checked",!0):e.prop("checked",!1)})),jQuery("#cs_preview_popup .cs-purposes-legitimate-input").each((function(){let e=jQuery(this),t=parseInt(e.attr("id").replace("cs_enable_legitimate_purpose"+Z.testPrefix+"_",""));z.tcModel.purposeLegitimateInterests.has(t)?e.prop("checked",!0):e.prop("checked",!1)})),jQuery("#cs_preview_popup .cs-special-feature-input").each((function(){let e=jQuery(this),t=parseInt(e.attr("id").replace("cs_enable_special_feature"+Z.testPrefix+"_",""));z.tcModel.specialFeatureOptins.has(t)?e.prop("checked",!0):e.prop("checked",!1)})),jQuery("#cs_preview_popup .cs-vendor-input").each((function(){let e=jQuery(this),t=parseInt(e.attr("id").replace("cs_enable_vendor"+Z.testPrefix+"_",""));z.tcModel.vendorConsents.has(t)?e.prop("checked",!0):e.prop("checked",!1)})),jQuery("#cs_preview_popup .cs-legitimate-vendor-input").each((function(){let e=jQuery(this),t=parseInt(e.attr("id").replace("cs_enable_legitimate_vendor"+Z.testPrefix+"_",""));z.tcModel.vendorLegitimateInterests.has(t)?e.prop("checked",!0):e.prop("checked",!1)})),jQuery("#cs_preview_popup .cs-additional-vendor-input").each((function(){let e=jQuery(this),t=parseInt(e.attr("id").replace("cs_enable_additional_vendor"+Z.testPrefix+"_",""));-1!==z.addtlConsentVendors.indexOf(t)?e.prop("checked",!0):e.prop("checked",!1)}))),this.setScriptValues())},setScriptValues:function(){jQuery("#cs_preview_popup .cs-purposes-input").each((function(){let e=jQuery(this),t=e.attr("data-script_cat"),s=e.is(":checked");if(t&&t.length>0){try{t=t.replace(/^"+|"+$/g,""),t=JSON.parse(t)}catch(e){console.error("Error JSON parsing: ",e),t=[]}for(const e in t){let n=jQuery(".cs_script_action[id=cs_enabled_cookie_term"+Z.testPrefix+"_"+t[e]+"]");1==CS_Data.cs_iab.native_scripts?q.set("cs_enabled_cookie_term"+Z.testPrefix+"_"+t[e],s?"yes":"no",B):q.set("cs_enabled_cookie_term"+Z.testPrefix+"_"+t[e],"yes",B),n.prop("checked",s),s&&n.prop("disabled",!s),n.closest(".facebook_term_group").length>0&&(jQuery("#cs_enabled_advanced_matching"+Z.testPrefix).prop("checked",s).prop("disabled",!s),jQuery("#cs_enabled_server_side"+Z.testPrefix).prop("checked",s).prop("disabled",!s),1==CS_Data.cs_iab.native_scripts?(q.set("cs_enabled_advanced_matching"+Z.testPrefix,s?"yes":"no",B),q.set("cs_enabled_server_side"+Z.testPrefix,s?"yes":"no",B)):(q.set("cs_enabled_advanced_matching"+Z.testPrefix,"yes",B),q.set("cs_enabled_server_side"+Z.testPrefix,"yes",B)))}}})),Z.generate_user_preference_cookie(),Z.checkCategories(),Z.generateConsent(),Z.ConsentMagicRunCallBacks()},setTCString:function(){let e=[],t="",s=this.getGlobalVendorList();Object.keys(s.purposes).length>
10&&Object.entries(s.purposes).forEach(((s,n)=>{let r=parseInt(s[0]),o=jQuery("#cs_enable_purpose"+Z.testPrefix+"_"+r);o.length>0&&o.prop("checked")?(e.push(r),t+="1"):t+="0"})),this.tcModel.purposeConsents.empty(),e.forEach(((e,t)=>{this.tcModel.purposeConsents.set(e)}));let n=[];jQuery("#cs_preview_popup .cs-purposes-legitimate-input").each((function(){let e=jQuery(this);e.prop("checked")&&n.push(parseInt(e.attr("id").replace("cs_enable_legitimate_purpose"+Z.testPrefix+"_","")))})),this.tcModel.purposeLegitimateInterests.empty(),n.forEach(((e,t)=>{this.tcModel.purposeLegitimateInterests.set(e)}));let r=[];jQuery("#cs_preview_popup .cs-special-feature-input").each((function(){let e=jQuery(this);e.prop("checked")&&r.push(parseInt(e.attr("id").replace("cs_enable_special_feature"+Z.testPrefix+"_","")))})),this.tcModel.specialFeatureOptins.empty(),r.forEach(((e,t)=>{this.tcModel.specialFeatureOptins.set(e)}));let o=[];jQuery("#cs_preview_popup .cs-vendor-input").each((function(){let e=jQuery(this);e.prop("checked")&&o.push(parseInt(e.attr("id").replace("cs_enable_vendor"+Z.testPrefix+"_","")))})),this.tcModel.vendorConsents.empty(),o.forEach(((e,t)=>{this.tcModel.vendorConsents.set(e)}));let i=[];jQuery("#cs_preview_popup .cs-legitimate-vendor-input").each((function(){let e=jQuery(this);e.prop("checked")&&i.push(parseInt(e.attr("id").replace("cs_enable_legitimate_vendor"+Z.testPrefix+"_","")))})),this.tcModel.vendorLegitimateInterests.empty(),i.forEach(((e,t)=>{this.tcModel.vendorLegitimateInterests.set(e)})),this.tcModel.vendorConsents.empty(),o.forEach(((e,t)=>{this.tcModel.vendorConsents.set(e)}));let a=[];jQuery("#cs_preview_popup .cs-additional-vendor-input").each((function(){let e=jQuery(this);e.prop("checked")&&a.push(parseInt(e.attr("id").replace("cs_enable_additional_vendor"+Z.testPrefix+"_","")))})),this.addtlConsentVendors=a,this.buildAddtlConsent(),this.tcString=T.encode(this.tcModel,this.encodingOptions),this.cmpApi.update(this.tcString,!0);let c={string:this.tcString,purposes:t};q.set(G+Z.testPrefix,window.btoa(JSON.stringify(c)),B)},buildAddtlConsent:function(){let e=CS_Data.cs_iab.active_additional_vendors.filter((e=>!this.addtlConsentVendors.includes(e)));this.addtlConsent="2"+(this.addtlConsentVendors.length>0?"~":"")+this.addtlConsentVendors.join(".")+"~dv."+e.join("."),localStorage.setItem(H+Z.testPrefix,this.addtlConsentVendors.join("."))},buildVendorList:async function(){if(CS_Data.cs_iab.enabled&&await this.checkGlobalVendorList(),this.enabled()){let e=jQuery("#cs_preview_popup .cs_iab_vendor_container"),t=this.getGlobalVendorList();if(CS_Data.cs_iab.active_vendors.length>0&&void 0!==t.vendors&&Object.keys(t.vendors).length>0){let s=jQuery(".cs_iab_container");CS_Data.cs_iab.active_vendors.forEach((n=>{if(void 0!==t.vendors[n]){let r=e.clone();r.css("display","block"),r.attr("data-cs-additional-vendor","0"),r.find(".cs_iab_vendor_name").html(t.vendors[n].name);let o="cs_enable_vendor"+Z.testPrefix+"_"+t.vendors[n].id,i='<div class="cs_sub_card_item_sub_switcher">';if(i+='<div class="cs_sub_card_switcher">',i+='<div class="primary-switch">',i+='<input type="hidden" name="'+o+'" value="0" class="'+o+'">',i+='<input type="checkbox" name="'+o+'" value="1" id="'+o+'" class="primary-switch-input cs-vendor-input cs-iab-input '+o+'">',i+='<label class="primary-switch-btn" for="'+o+'"></label>',i+="</div></div>",i+='<div class="cs_style_third_font cs_switcher_label">'+CS_Data.cs_translations.cs_iab_btn_text_allow+"</div>",i+="</div>",r.find(".cs_iab_vendor_switcher").html(i),Object.keys(t.vendors[n].legIntPurposes).length>0){let e="cs_enable_legitimate_vendor"+Z.testPrefix+"_"+t.vendors[n].id,s='<div class="cs_sub_card_item_sub_switcher">';s+='<div class="cs_sub_card_switcher">',s+='<div class="primary-switch">',s+='<input type="hidden" name="'+e+'" value="0" class="'+e+'">',s+='<input type="checkbox" name="'+e+'" value="1" id="'+e+'" class="primary-switch-input cs-legitimate-vendor-input cs-iab-input '+e+'" checked="checked">',s+='<label class="primary-switch-btn" for="'+e+'"></label>',s+="</div></div>",s+='<div class="cs_style_third_font cs_switcher_label">'+CS_Data.cs_translations.cs_iab_legitimate_interest+"</div>",s+="</div>",r.find(".cs_iab_legitimate_switcher").html(s)}s.append(r)}}))}if(CS_Data.cs_iab.active_additional_vendors.length>0&&void 0!==t.additional_vendors&&Object.keys(t.additional_vendors).length>0){let s=jQuery(".cs_iab_container_additional");
1CS_Data.cs_iab.active_additional_vendors.forEach((n=>{if(void 0!==t.additional_vendors[n]){let r=e.clone();r.css("display","block"),r.attr("data-cs-additional-vendor","1"),r.find(".cs_iab_vendor_name").html(t.additional_vendors[n].name);let o="cs_enable_additional_vendor"+Z.testPrefix+"_"+t.additional_vendors[n].id,i='<div class="cs_sub_card_item_sub_switcher">';i+='<div class="cs_sub_card_switcher">',i+='<div class="primary-switch">',i+='<input type="hidden" name="'+o+'" value="0" class="'+o+'">',i+='<input type="checkbox" name="'+o+'" value="1" id="'+o+'" class="primary-switch-input cs-additional-vendor-input cs-iab-input '+o+'">',i+='<label class="primary-switch-btn" for="'+o+'"></label>',i+="</div></div>",i+='<div class="cs_style_third_font cs_switcher_label">'+CS_Data.cs_translations.cs_iab_btn_text_allow+"</div>",i+="</div>",r.find(".cs_iab_vendor_switcher").html(i),s.append(r)}}))}this.loadPreferences()}},buildVendorDetails:function(e){let t="",s=e.closest(".cs_iab_vendor_container"),n=s.find(".cs-vendor-input").attr("id");n=parseInt(n.replace("cs_enable_vendor"+Z.testPrefix+"_",""));let r,o,i=this.getGlobalVendorList();if(Object.keys(i.vendors[n].urls).length>1&&CS_Data.cs_iab.current_iab_lang){let e=i.vendors[n].urls.map((e=>e.langId)).indexOf(CS_Data.cs_iab.current_iab_lang);-1!==e?(r=i.vendors[n].urls[e].hasOwnProperty("privacy")?i.vendors[n].urls[e].privacy:"",o=i.vendors[n].urls[e].hasOwnProperty("legIntClaim")?i.vendors[n].urls[e].legIntClaim:""):(r=i.vendors[n].urls[0].hasOwnProperty("privacy")?i.vendors[n].urls[0].privacy:"",o=i.vendors[n].urls[0].hasOwnProperty("legIntClaim")?i.vendors[n].urls[0].legIntClaim:"")}else r=i.vendors[n].urls[0].hasOwnProperty("privacy")?i.vendors[n].urls[0].privacy:"",o=i.vendors[n].urls[0].hasOwnProperty("legIntClaim")?i.vendors[n].urls[0].legIntClaim:"";r.length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_privacy_policy+"</div>",t+='<div class="cs_vendor_link_wrap">',t+='<a href="'+r+'" target="_blank" class="cs_vendor_link">'+r+"</a>",t+="</div></div>"),o.length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_legitimate_interest+"</div>",t+='<div class="cs_vendor_link_wrap">',t+='<a href="'+o+'" target="_blank" class="cs_vendor_link">'+o+"</a>",t+="</div></div>");let a=[...i.vendors[n].purposes,...i.vendors[n].flexiblePurposes];
1a=[...new Set(a)],a.length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_purposes+"</div>",t+="<ul>",a.forEach((e=>{if(void 0!==i.purposes[e]){let s=void 0!==i.vendors[n].dataRetention.purposes[e]?i.vendors[n].dataRetention.purposes[e]:i.vendors[n].dataRetention.hasOwnProperty("stdRetention")?i.vendors[n].dataRetention.stdRetention:0;t+="<li>"+i.purposes[e].name+" ("+CS_Data.cs_translations.cs_iab_days.replace("%",s)+")</li>"}})),t+="</ul>",t+="</div>"),Object.keys(i.vendors[n].legIntPurposes).length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_purposes+" ("+CS_Data.cs_translations.cs_iab_legitimate_interest+")</div>",t+="<ul>",i.vendors[n].legIntPurposes.forEach((e=>{if(void 0!==i.purposes[e]){let s=void 0!==i.vendors[n].dataRetention.purposes[e]?i.vendors[n].dataRetention.purposes[e]:i.vendors[n].dataRetention.hasOwnProperty("stdRetention")?i.vendors[n].dataRetention.stdRetention:0;t+="<li>"+i.purposes[e].name+" ("+CS_Data.cs_translations.cs_iab_days.replace("%",s)+")</li>"}})),t+="</ul>",t+="</div>"),Object.keys(i.vendors[n].specialPurposes).length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_special_purposes+"</div>",t+="<ul>",i.vendors[n].specialPurposes.forEach((e=>{if(void 0!==i.specialPurposes[e]){let s=void 0!==i.vendors[n].dataRetention.specialPurposes[e]?i.vendors[n].dataRetention.specialPurposes[e]:i.vendors[n].dataRetention.hasOwnProperty("stdRetention")?i.vendors[n].dataRetention.stdRetention:0;t+="<li>"+i.specialPurposes[e].name+" ("+CS_Data.cs_translations.cs_iab_days.replace("%",s)+")</li>"}})),t+="</ul>",t+="</div>"),Object.keys(i.vendors[n].features).length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_features+"</div>",t+="<ul>",i.vendors[n].features.forEach((e=>{void 0!==i.features[e]&&(t+="<li>"+i.features[e].name+"</li>")})),t+="</ul>",t+="</div>"),Object.keys(i.vendors[n].specialFeatures).length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_special_features+"</div>",t+="<ul>",i.vendors[n].specialFeatures.forEach((e=>{void 0!==i.specialFeatures[e]&&(t+="<li>"+i.specialFeatures[e].name+"</li>")})),t+="</ul>",t+="</div>"),void 0!==i.vendors[n].dataDeclaration&&Object.keys(i.vendors[n].dataDeclaration).length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_data_categories+"</div>",t+="<ul>",i.vendors[n].dataDeclaration.forEach((e=>{void 0!==i.dataCategories[e]&&(t+="<li>"+i.dataCategories[e].name+"</li>")})),t+="</ul>",t+="</div>");let c=[];if(i.vendors[n].cookieMaxAgeSeconds&&(c.cookieMaxAgeSeconds=re(i.vendors[n].cookieMaxAgeSeconds)),i.vendors[n].cookieRefresh&&(c.cookieRefresh=CS_Data.cs_translations.cs_iab_cookie_refreshed),i.vendors[n].usesCookies||i.vendors[n].usesNonCookieAccess){let e=CS_Data.cs_translations.cs_iab_storage_methods+": ";i.vendors[n].usesCookies?e+=CS_Data.cs_translations.cs_iab_cookies_and_others:!i.vendors[n].usesCookies&&i.vendors[n].usesNonCookieAccess&&(e+=CS_Data.cs_translations.cs_iab_other_methods),c.cookies=e}if(Object.keys(c).length>0){t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_consent_preferences+"</div>",t+="<ul>";for(let e in c)t+="<li>"+c[e]+"</li>";t+="</ul>",t+="</div>"}Object.keys(i.vendors[n].deviceStorageDisclosureUrl).length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name cs_sub_sub_card_item_description_url cs_sub_sub_card_item_style" data-vendorid="'+n+'">',t+="<a>"+CS_Data.cs_translations.cs_iab_show_cookie_details+'</a><i class="icon-chevron-down"></i>',t+="</div>",t+='<div class="cs_sub_sub_card_item_description_data cs_scroll_container"><div class="cs_scroll_container_data"></div></div>',t+="</div>"),s.find(".cs_sub_sub_card-body").append(t),e.attr("data-cs-built",1)},buildAdditionalVendorDetails:function(e){let t="",s=e.closest(".cs_iab_vendor_container"),n=s.find(".cs-additional-vendor-input").attr("id");n=parseInt(n.replace("cs_enable_additional_vendor"+Z.testPrefix+"_",""));let r=this.getGlobalVendorList();r.additional_vendors[n].privacy_policy.length>0&&(t+='<div class="cs_sub_sub_card_item_description">',t+='<div class="cs_sub_sub_card_item_description_name">'+CS_Data.cs_translations.cs_iab_privacy_policy+"</div>",t+='<div class="cs_vendor_link_wrap">',t+='<a href="'+r.additional_vendors[n].privacy_policy+'" target="_blank" class="cs_vendor_link">'+r.additional_vendors[n].privacy_policy+"</a>",t+="</div></div>"),s.find(".cs_sub_sub_card-body").append(t),e.attr("data-cs-built",1)},enableAllProperties:function(){this.enabled()&&(this.enableAllPurposes(),this.enableAllSpecialFeatures(),this.enableAllVendors(),this.enableAllAdditionalVendors(),this.setProperties(),this.tcModel.setAll(),jQuery(".cs_iab_accept_all").prop("checked",!0))},disableAllProperties:function(){this.enabled()&&(this.disableAllPurposes(!1),this.disableAllSpecialFeatures(),this.disableAllVendors(!1),this.disableAllAdditionalVendors(),this.setProperties(),this.tcModel.unsetAllPurposeConsents(),this.tcModel.unsetAllSpecialFeatureOptins(),this.tcModel.unsetAllVendorConsents(),jQuery(".cs_iab_accept_all").prop("checked",!1))},setProperties:function(){this.enabled()&&(this.setPreferencesAPI(),this.setTCString(),this.setScriptValues())},setPropertiesCheckboxes:function(e,t,s=!1){this.enabled()&&(this.togglePurposes(e,t),q.read(N)&&!s||this.setProperties())},togglePurposes:function(e,t){let s=jQuery("#cs_preview_popup .cs-purposes-input, #cs_preview_popup .cs-purposes-legitimate-input");s.length>0&&s.each((function(){let s=jQuery(this),n=s.attr("data-script_cat");n&&n.length>0&&(n=JSON.parse(n),-1!==n.indexOf(t)&&("disable"===e?s.hasClass("cs-purposes-legitimate-input")||s.prop("checked",!1):"enable"===e&&(s.prop("checked",!0),s.prop("disabled",!1))))}))},enableAllPurposes:function(){let e=jQuery("#cs_preview_popup .cs-purposes-input, #cs_preview_popup .cs-purposes-legitimate-input, #cs_preview_popup .cs_script_action");e.length>0&&e.each((function(){let e=jQuery(this);e.prop("checked",!0),e.prop("disabled",!1)})),Z.enableAllCookies()},disableAllPurposes:function(e=!0){let t;t=e?jQuery("#cs_preview_popup .cs-purposes-input, #cs_preview_popup .cs-purposes-legitimate-input, #cs_preview_popup .cs_script_action"):jQuery("#cs_preview_popup .cs-purposes-input, #cs_preview_popup .cs_script_action"),t.length>0&&t.each((function(){jQuery(this).prop("checked",!1)})),Z.disableAllCookies()},enableAllSpecialFeatures:function(){let e=jQuery("#cs_preview_popup .cs-special-feature-input");e.length>0&&e.each((function(){let e=jQuery(this);e.prop("checked",!0),e.prop("disabled",!1)}))},disableAllSpecialFeatures:function(){let e=jQuery("#cs_preview_popup .cs-special-feature-input");e.length>0&&e.each((function(){jQuery(this).prop("checked",!1)}))},enableAllVendors:function(){let e=jQuery("#cs_preview_popup .cs-vendor-input, #cs_preview_popup .cs-legitimate-vendor-input");e.length>0&&e.each((function(){let e=jQuery(this);e.prop("checked",!0),e.prop("disabled",!1)}))},disableAllVendors:function(e=!0){let t;t=e?jQuery("#cs_preview_popup .cs-vendor-input, #cs_preview_popup .cs-legitimate-vendor-input"):jQuery("#cs_preview_popup .cs-vendor-input"),t.length>0&&t.each((function(){jQuery(this).prop("checked",!1)}))},enableAllAdditionalVendors:function(){let e=jQuery("#cs_preview_popup .cs-additional-vendor-input");e.length>0&&e.each((function(){let e=jQuery(this);e.prop("checked",!0),e.prop("disabled",!1)}))},disableAllAdditionalVendors:function(){let e=jQuery("#cs_preview_popup .cs-additional-vendor-input");e.length>0&&e.each((function(){jQuery(this).prop("checked",!1)}))}},K={cache_enabled:!1,active_rule:"",check_status:!1,force_action:"",check_cache:async function(){let e=CS_Data.cs_cache_label,t=Math.floor((new Date).getTime()/1e3);if(t-300>e&&0!=e||e>t+300&&0!=e||1==CS_Data.cs_cache_enabled){this.cache_enabled=!0;let e=document.documentElement.lang;e=e.replace("-","_");let t=1,s=function(e){if(t>0)return t--,void setTimeout(e,500);K.fallback_to_page_markup()};setTimeout((function t(){jQuery.ajax({url:cs_log_object.ajaxurl,type:"POST",dataType:"text",data:{action:"cs_get_active_data",lang:e,nonce_code:CS_Data.security},success:function(e){let n=J(e);if(!n||!n.success)return void s(t);let r=jQuery("#cs_preview_popup"),o=jQuery("#cs_preview_popup_button");window.CS_Data=n.data.cs_data,K.active_rule=n.data.active_rule,n.data.content?(r.html(n.data.content.content),r.css("display","block"),o.html(n.data.content.button),o.css("display","block")):(r.css("display","none"),o.css("display","none")),K.force_action=n.data.force_action,K.check_status=!0,void 0!==window.pys&&window.pysOptions&&Object.keys(window.pysOptions).length>0&&(1==CS_Data.cs_google_consent_mode_enabled&&(CS_Data.cs_google_consent_mode.anal
1ytics_storage.enabled&&(window.pysOptions.gdpr.analytics_storage.value=CS_Data.cs_google_consent_mode.analytics_storage.value,window.pysOptions.gdpr.analytics_storage.filter=CS_Data.cs_google_consent_mode.analytics_storage.filter),CS_Data.cs_google_consent_mode.ad_storage.enabled&&(window.pysOptions.gdpr.ad_storage.value=CS_Data.cs_google_consent_mode.ad_storage.value,window.pysOptions.gdpr.ad_storage.filter=CS_Data.cs_google_consent_mode.ad_storage.filter),CS_Data.cs_google_consent_mode.ad_user_data.enabled&&(window.pysOptions.gdpr.ad_user_data.value=CS_Data.cs_google_consent_mode.ad_user_data.value,window.pysOptions.gdpr.ad_user_data.filter=CS_Data.cs_google_consent_mode.ad_user_data.filter),CS_Data.cs_google_consent_mode.ad_personalization.enabled&&(window.pysOptions.gdpr.ad_personalization.value=CS_Data.cs_google_consent_mode.ad_personalization.value,window.pysOptions.gdpr.ad_personalization.filter=CS_Data.cs_google_consent_mode.ad_personalization.filter)),1==CS_Data.cs_bing_consent_mode_enabled&&void 0!==window.pysOptions?.bing?.consent_mode&&CS_Data.cs_bing_consent_mode.ad_storage.enabled&&(window.pysOptions.bing.consent_mode.ad_storage.value=CS_Data.cs_bing_consent_mode.ad_storage.value,window.pysOptions.bing.consent_mode.ad_storage.filter=CS_Data.cs_bing_consent_mode.ad_storage.filter),CS_Data.cs_url_passthrough_mode.enabled&&window.pysOptions?.ga&&void 0!==window.pysOptions.ga.url_passthrough_filter&&(window.pysOptions.ga.url_passthrough=CS_Data.cs_url_passthrough_mode.value),void 0!==window.pys.Analytics&&window.pys.Analytics.loadPixel(),void 0!==window.pys.GAds&&window.pys.GAds.loadPixel()),"just_inform"!=n.data.cs_data.cs_active_rule_name&&"false"!=n.data.cs_data.cs_active_rule_name||Z.enableAllCookies()},error:function(e){console.log("error ",e),s(t)}})}),300)}else K.check_status=!0},fallback_to_page_markup:function(){let e=jQuery("#cs_preview_popup"),t=jQuery("#cs_preview_popup_button");e.children().length&&e.css("display","block"),t.children().length&&t.css("display","block"),this.active_rule=CS_Data.cs_active_rule_name,this.check_status=!0},enable_scripts:function(e){"just_inform"!=e.data.cs_data.cs_active_rule_name&&"false"!=e.data.cs_data.cs_active_rule_name||Z.enableAllCookies(),K.active_rule=e.data.active_rule,jQuery("#cs_preview_popup").html(e.data.content.content).css("display","block"),jQuery("#cs_preview_popup_button").html(e.data.content.button).css("display","block"),window.CS_Data=e.data.cs_data,this.force_action=e.data.force_action,this.check_status=!0}};window.CS_Cache=K,K.check_cache().then((async()=>{for(;!K.check_status;)await ne(100);W()}));const q={set:function(e,t,s){let n="",r=""!==CS_Data.cs_cookie_domain?"domain=."+CS_Data.cs_cookie_domain+";":"";if(e===Q){let t=new Date;t.setTime(t.getTime()-864e6),n="; expires="+t.toGMTString(),document.cookie=e+"="+n+";",n=""}if(s){let e=new Date;e.setTime(e.getTime()+24*s*60*60*1e3),n="; expires="+e.toGMTString()}if(document.cookie=e+"="+t+n+"; path=/;"+r,s<1){let s=r.substring(r.lastIndexOf(".",r.lastIndexOf(".")-1));document.cookie=e+"="+t+n+"; path=/; "+s+";"}if(Object.keys(CS_Data.cs_cookie_domain).length>0){let e=this.getallcookies(),t={};if(Object.keys(e).length>0)for(const s in e)if(s.startsWith("cs_enabled_cookie_term"+Z.testPrefix)){let n=s.replace("cs_enabled_cookie_term"+Z.testPrefix+"_",""),r=Object.entries(CS_Data.cookielist).filter((e=>e[0]==n)).reduce(((e,t)=>t[1].slug),"");r.length>0&&(t[r]=e[s])}document.cookie=Y+"="+window.btoa(JSON.stringify(t))+n+"; path=/;"+r+";"}},read:function(e){let t=e+"=",s=document.cookie.split(";");for(let e=0;e<s.length;e++){let n=s[e];for(;" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},erase:function(e){this.set(e,"",-10)},exists:function(e){return null!==this.read(e)},getallcookies:function(){let e=document.cookie.split(";"),t={};for(let s=0;s<e.length;s++){let n=e[s].split("=");t[(n[0]+"").trim()]=unescape(n[1])}return t},checkCrossDomainCookie:function(){if(Object.keys(CS_Data.cs_cookie_domain).length>0){let e=this.read(Y);if(e&&(e=JSON.parse(window.atob(e)),Object.keys(e).length>0))for(const t in e){let s=Object.entries(CS_Data.cookielist).filter((e=>e[1].slug==t)).reduce(((e,t)=>t[0]),"");s.length>0&&(this.erase("cs_enabled_cookie_term"+Z.testPrefix+"_"+s),this.set("cs_enabled_cookie_term"+Z.testPrefix+"_"+s,e[t]))}}}},Z={consent:{},allowedCategories:[],currentSetCategory:"",testPrefix:CS_Data.test_prefix,disableCM:!1,checkDisableCM:function(){jQuery(".disable_cm").length>0&&(this.disableCM=!0)},set:function(){"function"==typeof JSON.parse?(this.csRenewConsent(),this.ConsentMagicRunCallBacks(),1===jQuery(".cs_preview_container").data("scroll")&&window.addEventListener("scroll",Z.closeOnScroll,!1)):console.log("ConsentMagic requires JSON.parse but your browser doesn't support it")},settingsPopUpClose:function(){let e=$(this).closest(".cs_preview_container").find(".preview_wrap");e.find(".cs_settings_popup").removeClass("cs-show"),e.find(".cs_settings_popup").addClass("cs-out"),jQuery("body").removeClass("cs-modal-open"),e.find(".cs-settings-overlay").removeClass("cs-show"),e.find(".cs-popupbar-overlay").removeClass("cs-show"),e.find(".cs-info-bar").css({opacity:0,display:"none"}),this.showStickyButton(),e.hide(),Z.manageHtmlOverflow(!1),jQuery(".cs-popupbar-overlay-bar").removeClass("cs-show")},toggleUserPreferenceCheckBox:function(){"iab"!=CS_Data.cs_active_rule_name&&jQuery(".cs_script_action").each((function(){let e=jQuery(this).attr("id"),t=q.read(e);null==t?jQuery(this).is(":checked")?q.set(e,"yes",B):q.set(e,"no",B):"yes"==t?jQuery(this).prop("checked",!0):jQuery(this).prop("checked",!1)})),Z.checkCategories(),Z.generate_user_preference_cookie(),Z.generateConsent()}
1,settingsPopUpShow:function(){let e=jQuery(".cs_preview_container").find(".preview_wrap");jQuery("#boost-notifications-wrapper").length>0&&jQuery("#boost-notifications-wrapper .boost-notification:first-child").hide("fast"),"iab"!=CS_Data.cs_active_rule_name&&(null==q.read(Q+Z.testPrefix)?jQuery(".cs-tab-container").is(".inform_and_opiout")&&jQuery(".cs_script_action").each((function(){let e=jQuery(this).attr("id");q.set(e,"yes",B),jQuery(this).prop("checked",!0)})):jQuery(".cs_script_action").each((function(){let e=jQuery(this).attr("id");"yes"==q.read(e)?jQuery(this).prop("checked",!0):jQuery(this).prop("checked",!1)}))),e.find(".cs_settings_popup").addClass("cs-show").css({opacity:0}).animate({opacity:1}),e.find(".cs_settings_popup").removeClass("cs-blowup cs-out").addClass("cs-blowup"),jQuery("body").addClass("cs-modal-open"),Z.manageHtmlOverflow(!0),e.find(".cs-settings-overlay").addClass("cs-show"),e.find(".cs-info-bar").css({opacity:.1}),e.show()},accept_close:function(){return q.set(N+Z.testPrefix,"yes",B),this.generate_user_preference_cookie(),this.generateConsent(),Z.ConsentMagicRunCallBacks(),!1},reject_close:function(){for(let e in CS_Data.nn_cookie_ids)q.erase(CS_Data.nn_cookie_ids[e]);return q.set(N+Z.testPrefix,"no",B),this.generate_user_preference_cookie(),Z.generateConsent(),!1},generate_user_preference_cookie:function(){let e=[],t="";q.read(N+Z.testPrefix)&&e.push("cs-"+q.read(N+Z.testPrefix)),jQuery(".cs_script_action").each((function(){jQuery(this).is(":checked")?e.push(jQuery(this).attr("id")+"-yes"):e.push(jQuery(this).attr("id")+"-no")})),e.push("cs_all_enable"+(jQuery(".cs_iab_accept_all").is(":checked")?"-yes":"-no")),e.length>0&&(t=CS_Data.current_lang+"-"+e.join("__")),q.set("cs_user_preference"+Z.testPrefix,t,B)},isBase64:function(e){if(""===e||""===e.trim())return!1;try{return btoa(atob(e))==e}catch(e){return!1}},generateConsent:function(){let e=q.read(Q+Z.testPrefix),t={};null!==e&&(t=Z.isBase64(e)?window.atob(e):decodeURIComponent(e),t=JSON.parse(t)),"object"!=typeof t.ver&&(t.ver={});let s=window.location.hostname.replace("www","");t.ver[s]=CS_Data.consentVersion,jQuery(".cs_script_action").each((function(){let e="",s=jQuery(this).attr("id");s=s.replace("cs_enabled_cookie_term"+Z.testPrefix+"_",""),e=jQuery(this).is(":checked")?"true":"false",t[s]=e})),t=JSON.stringify(t),t=window.btoa(t),q.set(Q+Z.testPrefix,t,B)},csRenewConsent:function(){let e=q.read(Q+Z.testPrefix);if(null!==e){let t;if(jQuery(".cs_script_action").each((function(){let e=jQuery(this).attr("id");null==q.read(e)&&q.set(e,"no",B)})),t=Z.isBase64(e)?window.atob(e):decodeURIComponent(e),t=JSON.parse(t),void 0!==t.ver)if("string"==typeof t.ver)this.generateConsent();else{let e=window.location.hostname.replace("www","");if(void 0!==t.ver[e]&&t.ver[e]!=CS_Data.consentVersion){q.erase(N+Z.testPrefix),q.erase(Q+Z.testPrefix),q.erase("cs_user_preference"+Z.testPrefix);for(let e in CS_Data.nn_cookie_ids)q.erase(CS_Data.nn_cookie_ids[e]);q.erase("cs_enabled_advanced_matching"+Z.testPrefix),q.erase("cs_enabled_server_side"+Z.testPrefix),q.erase("cs_stored_consent_for")}}}},closeOnScroll:function(){let e=window.innerHeight*CS_Data.cs_default_close_on_scroll/100;window.pageYOffset>e&&!q.read(N+Z.testPrefix)&&(Z.enableAllCookies(),Z.accept_close(),Z.insertProof("scroll"),z.enableAllProperties(),te.setConsent(),X.runScripts("runRules"),window.removeEventListener("scroll",Z.closeOnScroll,!1),jQuery("#cs_preview_popup .cs_preview_container").hide(),1==Z.getStickyButton()&&Z.showStickyButton()),jQuery(".cs_preview_container").find(".preview_wrap").hide()},insertProof:function(e){let t=jQuery(".cs_preview_container").attr("data-cstype"),s=jQuery(".cs_preview_container").attr("data-rule"),n=q.read("cs_stored_consent_for");jQuery.ajax({url:cs_log_object.ajaxurl,type:"POST",dataType:"text",data:{action:"insert_proof",user_react:e,url:window.location.href,cs_type:t,nonce_code:CS_Data.security,cs_stored_consent:n,rule:s},success:function(e){null===J(e)?q.set("cs_stored_consent_for",e,U):console.log("error ",e)},error:function(e){console.log("error ",e)}})},enableAllCookies:function(){let e=jQuery(".cs_script_action");e.length>0?e.each((function(){let e=jQuery(this),t=e.attr("id");e.prop("checked",!0),e.prop("disabled",!1),Z.disableCM||q.set(t,"yes",B)}
1)):this.disableCM||Z.insertCookieByCookieList()},disableAllCookies:function(){jQuery(".cs_script_action").each((function(){let e=jQuery(this),t=e.attr("id");e.prop("checked",!1),q.set(t,"no",B)}))},checkCategories:function(){let e=[],t={};jQuery(".cs_script_action").each((function(){let s=!1,n=jQuery(this),r=n.attr("id");r=r.replace("cs_enabled_cookie_term"+Z.testPrefix+"_","");let o=r.replace("-","_");jQuery(n).is(":checked")&&(s=!0,e.push(r)),t[o]=s})),Z.allowedCategories=e,Z.consent=t},ConsentMagicRunCallBacks:function(){this.checkCategories(),"yes"==q.read(N+Z.testPrefix)&&"function"==typeof ConsentMagic_Accept_Callback&&ConsentMagic_Accept_Callback()},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");let s=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return s?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null},insertCookieByCookieList:function(){let e=CS_Data.cookielist;for(let t in e)e[t].term_id!=CS_Data.cs_necessary_cat_id&&q.set("cs_enabled_cookie_term"+Z.testPrefix+"_"+e[t].term_id,"yes");q.set("cs_enabled_advanced_matching"+Z.testPrefix,"yes"),q.set("enabled_server_side"+Z.testPrefix,"yes")},getStickyButton:function(){let e=jQuery("#cs_preview_popup .cs_preview_container"),t=e.data("sticky"),s=e.data("smart-sticky-desktop"),n=e.data("smart-sticky-mobile");return"ask_before_tracking"!=CS_Data.cs_active_rule_name&&"inform_and_opiout"!=CS_Data.cs_active_rule_name||(t&&s&&window.innerWidth>1024&&(t=e.data("smart-sticky-desktop-show")),t&&n&&window.innerWidth<=1024&&(t=e.data("smart-sticky-mobile-show"))),t},updateStickyButton:function(){let e=jQuery("#cs_preview_popup .cs_preview_container"),t=e.data("sticky"),s=e.data("smart-sticky-desktop"),n=e.data("smart-sticky-mobile"),r="";window.innerWidth<=1024&&t&&n?r="mobile":window.innerWidth>1024&&t&&s&&(r="desktop"),r&&jQuery.ajax({url:cs_log_object.ajaxurl,type:"POST",dataType:"text",data:{action:"cs_update_sticky_button",type:r,nonce_code:CS_Data.security},success:function(e){let t=J(e);t&&t.success&&t.data&&t.data.status&&!1===t.data.sticky_button&&jQuery("#cs_preview_popup_button").css("display","none")},error:function(e){console.log("error ",e)}})},minimumRecommended:function(){if(Object.keys(CS_Data.cs_minimum_recommended).length>0){let e=jQuery(".cs_script_action");e.length>0?e.each((function(){let e,t=jQuery(this),s=t.attr("id");e=t.closest(".facebook_term_group_switchers").length>0?s.replace(Z.testPrefix,""):s.replace("cs_enabled_cookie_term"+Z.testPrefix+"_",""),CS_Data.cs_minimum_recommended[e]?(t.prop("checked",!0).prop("disabled",!1),q.set(s,"yes",B),z.setPropertiesCheckboxes("enable",e)):(t.prop("checked",!1),q.set(s,"no",B),z.setPropertiesCheckboxes("disable",e))})):Z.insertCookieByCookieList()}},showStickyButton:function(e=null){let t,s=jQuery(".cs_remove_sticky");t=e?jQuery(".cs_footer_btn .cs-info-sticky:not("+e+")"):jQuery(".cs_footer_btn .cs-info-sticky"),0!==s.length&&"iab"!=CS_Data.cs_active_rule_name||t.addClass("show_button")},hideStickyButton:function(e=null){if("iab"!=CS_Data.cs_active_rule_name){let t;t=e?jQuery(".cs_footer_btn .cs-info-sticky:not("+e+")"):jQuery(".cs_footer_btn .cs-info-sticky"),t.removeClass("show_button")}},manageGoogleFonts:function(){let e=CS_Data.cs_script_cat.googlefonts;0!=CS_Data.cs_script_cat.googlefonts?"iab"==CS_Data.cs_active_rule_name&&0==CS_Data.cs_iab.native_scripts||1==CS_Data.cookielist[e].ignore||e==CS_Data.cs_necessary_cat_id||-1!==Z.allowedCategories.indexOf(CS_Data.cs_script_cat.googlefonts.toString())?jQuery("body").removeClass("cm-manage-google-fonts"):jQuery("body").addClass("cm-manage-google-fonts"):jQuery("body").removeClass("cm-manage-google-fonts")},manageHtmlOverflow:function(e){const t=window.lenis;t&&(e?t.stop():t.start()),e?jQuery("html").css({overflow:"hidden"}):jQuery("html").css({overflow:""})}},X={scriptsLoaded:!1,csShowBar:!1,hasTimeout:!1,timeout:0,checkPluginStatus:function(e){e()},cookieBar:function(){let e=q.read(N+Z.testPrefix),t=q.read(Q+Z.testPrefix),s=CS_Data.cs_active_rule_name,n=CS_Data.cs_showing_rule_until_express_consent,r=CS_Data.cs_iab?.native_scripts;("ask_before_tracking"===s&&null==e||"iab"===s&&1===r&&null==e||"inform_and_opiout"===s&&(1==n&&null==e||0==n&&null==t)||"just_inform"===s&&null==t)&&(X.csShowBar=!0);let o=jQuery(".cs_preview_container");1==Z.getStickyButton()?!1===X.csShowBar?(jQuery(".cs-popupbar-overlay").removeClass("cs-show"),o.find(".preview_wrap").hide(),o.show(),Z.showStickyButton()):(jQuery(".cs-info-bar").hasClass("cs-public-cookie-popup")&&jQuery(".cs-popupbar-overlay").addClass("cs-show"),o.show()):!1===X.csShowBar?(jQuery(".cs-popupbar-overlay").removeClass("cs-show"),o.hide()):(jQuery(".cs-info-bar").hasClass("cs-public-cookie-popup")&&jQuery(".cs-popupbar-overlay").addClass("cs-show"),o.show())},removeAllPreferenceCookies:function(){let e=CS_Data.cookielist;for(let t in e)q.erase("cs_enabled_cookie_term"+Z.testPrefix+"_"+t)},removeCookieByCategory:function(){if(null!==q.read(N+Z.testPrefix)){let e=CS_Data.non_necessary_cookies;for(let t in e){let s=t;if(-1===Z.allowedCategories.indexOf(s)){let t=e[s];for(let e=0;e<t.length;e++)null!==q.read(t[e])&&q.erase(t[e])}}}},runScripts:function(e=!1){let t=["iframe","IFRAME","EMBED","embed","OBJECT","object","IMG","img"],s={renderSrcElement:function(e=!1,n=!1,r=!1){let o=document.querySelectorAll('[data-cs-class="cs-blocker-script"]');for(let i=0;i<o.length;i++){let a=o[i],c=a.tagName,l=a.getAttribute("data-cs-script-type"),u="true"==a.getAttribute("data-cs-block");if(-1===t.indexOf(c))continue;let d=X.csScriptFuncs.checkBlockingStatus(l,u,e,n);this.shouldAddPlaceholder(d,r)?this.addPlaceholder(a):s.shouldReplaceSrc(d)&&this.replaceSrc(a)}let i=X.csScriptFuncs.checkBlockingStatus(CS_Data.cs_script_cat.youtube.toString(),CS_Data.cs_embedded_video.block,e,n);this.shouldAddPlaceholder(i,r)?this.addElementorPlaceholder():s.shouldReplaceSrc(i)&&this.replaceElementorPlaceholder()},addPlaceholder:function(e){if("iab"!=CS_Data.cs_active_rule_name||0!=CS_Data.cs_iab.native_scripts)if(0!==jQuery(e).prev(".cs-iframe-placeholder").length||e.hasAttribute("data-additional-cookie")){if(e.hasAttribute("data-additional-cookie")){let t=e.getAttribute("src");if("youtube"==e.getAttribute("data-additional-video")){let e=t.match(/www\.(youtube\.com\/embed)/);null!==e&&(t=t.replace(e[1],"youtube-nocookie.com/embed"))}else if("vimeo"==e.getAttribute("data-additional-video")&&t){let e=new URL(t),s=new URLSearchParams(e.search);s.set("dnt","1"),e.search=s.toString(),t=e.toString()}e.setAttribute("src",t),e.setAttribute("data-additional-cookie","false"),e.setAttribute("data-cs-block","true")}}else{let t=e.getAttribute("data-cs-placeholder"),s=e.offsetHeight;if(null!=s&&0!=s||(s=e.getAttribute("height")),e.parentNode.classList.add("cs_video_hidden"),jQuery('body[class*="elementor"]').length>0){let t=e.parentNode.parentNode;t.classList.contains("elementor-wrapper")&&(t.style.height=s+"px")}s=/px/.test(s)?s:s+"px";let n='<div style="width:100%; height:'+s+';" class="cs-iframe-placeholder"><div class="cs-inner-text">'+t+"</div></div>";"IMG"!==e.tagName&&jQuery(n).insertBefore(e),e.setAttribute("src","target=_blank"),e.removeAttribute("src"),e.style.display="none",e.setAttribute("data-cs-block","true")}},replaceSrc:function(e){if(e.hasAttribute("data-additional-cookie")){let t=e.getAttribute("src");if("youtube"==e.getAttribute("data-additional-video")){let e=t.match(/www\.(youtube\-nocookie\.com\/embed)/);null!==e&&(t=t.replace(e[1],"youtube.com/embed"))}else if("vimeo"==e.getAttribute("data-additional-video")){let e=new URL(t),s=new URLSearchParams(e.search);s.delete("dnt"),e.search=s.toString(),t=e.toString()}e.setAttribute("src",t),e.setAttribute("data-additional-cookie","true"),e.setAttribute("data-cs-block","false")}else{let t=e.getAttribute("data-cs-src");if(e.setAttribute("src",t),jQuery(e).prev(".cs-iframe-placeholder").length>0&&jQuery(e).prev(".cs-iframe-placeholder").remove(),e.parentNode.classList.remove("cs_video_hidden"),e.style.display="block",e.setAttribute("data-cs-block","false"),jQuery('body[class*="elementor"]').length>0){let t=e.parentNode.parentNode;t.classList.contains("elementor-wrapper")&&(t.style.height="initial")}}},addElementorPlaceholder:function(){let e=jQuery(".cs_manage_elementor_placeholder"),t=e.parent();e.removeClass("disabled"),t.find(".elementor-custom-embed-image-overlay").addClass("disabled"),t.find("iframe.elementor-video").css("display","none")},replaceElementorPlaceholder:function(){let e=jQuery(".cs_manage_elementor_placeholder"),t=e.parent();e.addClass("disabled"),t.find(".elementor-custom-embed-image-overlay").removeClass("disabled"),t.find("iframe.elementor-video").css("display","block")},shouldAddPlaceholder:function(e,t){return t&&e.isBlock||K.cache_enabled&&!X.scriptsLoaded&&e.isBlock||!e.skip&&e.isBlock},shouldReplaceSrc:function(e){return!e.skip&&!e.isBlock}},n=function(e=!1,t=!1,n=!1){X.csScriptFuncs.renderScripts(e,t),s.renderSrcElement(e,t,n),X.scriptsLoaded=!0};Z.disableCM||Z.toggleUserPreferenceCheckBox(),Z.checkCategories(),Z.manageGoogleFonts(),"onlyFillingPlaceholder"==e?n(!1,!1,!0):"unblockAll"==e?n(!1,!0):"blockAll"==e?n(!0,!1):"runRules"==e&&n()},csScriptFuncs:{blockScripts:function(e){if("iab"==CS_Data.cs_active_rule_name&&0==CS_Data.cs_iab.native_scripts)return;let t,s=e.getAttribute("data-cs-element-position");"SCRIPT"==e.tagName||"NOSCRIPT"==e.tagName?"SCRIPT"==e.tagName?(t=document.createElement("SCRIPT"),e.async?t.async=e.async:e.defer&&(t.defer=e.defer),e.src?t.src=e.src:t.textContent=e.innerText):t=d
1ocument.createElement("NOSCRIPT"):t=document.createElement("LINK");let n=jQuery(e).prop("attributes");for(let e=0;e<n.length;++e)"id"!==n[e].nodeName&&t.setAttribute(n[e].nodeName,n[e].value);"SCRIPT"==e.tagName?t.type="text/plain":"LINK"==e.tagName&&(t.setAttribute("data-cs-href",e.href),t.removeAttribute("href")),t.setAttribute("data-cs-block","true"),"head"===s?document.head.appendChild(t):document.body.appendChild(t),e.parentElement.removeChild(e)},unBlockScripts:function(e){let t,s=e.getAttribute("data-cs-element-position");"SCRIPT"==e.tagName||"NOSCRIPT"==e.tagName?"SCRIPT"==e.tagName?(t=document.createElement("SCRIPT"),e.async?t.async=e.async:e.defer&&(t.defer=e.defer),e.src?t.src=e.src:t.textContent=e.innerText):t=document.createElement("NOSCRIPT"):(t=document.createElement("LINK"),e.hasAttribute("data-cs-href")&&(t.href=e.getAttribute("data-cs-href")));let n=jQuery(e).prop("attributes");for(let e=0;e<n.length;++e)"id"!==n[e].nodeName&&t.setAttribute(n[e].nodeName,n[e].value);"SCRIPT"==e.tagName?t.type="text/javascript":"NOSCRIPT"==e.tagName&&(t.innerHTML=e.getAttribute("data-cs-content")),t.setAttribute("data-cs-block","false"),"head"===s?document.head.appendChild(t):document.body.appendChild(t),e.parentElement.removeChild(e)},advancedScriptToggle:function(e,t){1==CS_Data.cs_google_consent_mode_enabled&&(X.scriptsLoaded||setTimeout((()=>{ee.setGoogleConsentOptions()}),500),setTimeout((function(){ee.setDefaultGCMOptions(),ee.googleConsentMode(e,t)}),1500)),CS_Data.cs_bing_consent_mode.ad_storage.enabled&&setTimeout((function(){ee.bingConsentMode(e,t)}),500)},runPysScript:function(e=!0){if("iab"==CS_Data.cs_active_rule_name&&0==CS_Data.cs_iab.native_scripts)return;let t="";t=jQuery("body").hasClass("woocommerce-checkout")?"form.woocommerce-checkout":"#edd_purchase_form",Array.prototype.forEach.call(["pys_utm","pys_utm_id","pys_browser_time","pys_landing","pys_source","pys_order_type","last_pys_landing","last_pys_source","last_pys_utm","last_pys_utm_id"],(function(s){let n=document.querySelector(t+" input[name='"+s+"']");null!==n&&(n.hasAttribute("data-cs-block")||(n.setAttribute("data-cs-block",e?"true":"false"),n.hasAttribute("value")&&n.setAttribute("pys-value",n.value)),e?(n.hasAttribute("value")&&n.setAttribute("pys-value",n.value),n.removeAttribute("value"),n.setAttribute("data-cs-block",!0)):(n.value=n.getAttribute("pys-value"),n.setAttribute("data-cs-block",!1)))}))},pysPixelsToggle:function(e,t){void 0!==window.pys&&setTimeout((function(){(0==CS_Data.cs_script_cat.pys||CS_Data.cs_script_cat.pys==CS_Data.cs_necessary_cat_id||t||-1!==Z.allowedCategories.indexOf(CS_Data.cs_script_cat.pys.toString())&&!1===e)&&window.pys.Utils.manageCookies();let s=[{name:"TikTok",dataCat:CS_Data.cs_script_cat.tiktok,pysObj:window.pys.TikTok},{name:"Pinterest",dataCat:CS_Data.cs_script_cat.pinterest,pysObj:window.pys.Pinterest},{name:"OpenAI",dataCat:CS_Data.cs_script_cat.openai,pysObj:window.pys.OpenAI}];[{name:"Facebook",dataCat:CS_Data.cs_script_cat.facebook,pysObj:window.pys.Facebook,advOption:+CS_Data.cs_meta_ldu_mode},{name:"Analytics",dataCat:CS_Data.cs_script_cat.analytics,pysObj:window.pys.Analytics,advOption:CS_Data.cs_google_consent_mode_enabled},{name:"GTM",dataCat:CS_Data.cs_script_cat.analytics,pysObj:window.pys.GTM,advOption:CS_Data.cs_google_consent_mode_enabled},{name:"GAds",dataCat:CS_Data.cs_script_cat.gads,pysObj:window.pys.GAds,advOption:CS_Data.cs_google_consent_mode_enabled},{name:"Bing",dataCat:CS_Data.cs_script_cat.bing,pysObj:window.pys.Bing,advOption:CS_Data.cs_bing_consent_mode.ad_storage.enabled},{name:"Reddit",dataCat:CS_Data.cs_script_cat.reddit,pysObj:window.pys.Reddit,advOption:+CS_Data.cs_reddit_ldu_mode}].forEach((function(s){void 0!==s.pysObj&&(1==+s.advOption?K.check_status&&s.pysObj.loadPixel():0==s.dataCat||s.dataCat==CS_Data.cs_necessary_cat_id||"iab"==CS_Data.cs_active_rule_name&&0==CS_Data.cs_iab.native_scripts?s.pysObj.loadPixel():-1===Z.allowedCategories.indexOf(s.dataCat.toString())&&!1===t||e?("iab"==CS_Data.cs_active_rule_name&&1==CS_Data.cs_iab.native_scripts||"iab"!=CS_Data.cs_active_rule_name)&&s.pysObj.disable():s.pysObj.loadPixel())}
1)),s.forEach((function(s){void 0!==s.pysObj&&(0==s.dataCat||s.dataCat==CS_Data.cs_necessary_cat_id||"iab"==CS_Data.cs_active_rule_name&&0==CS_Data.cs_iab.native_scripts?s.pysObj.loadPixel():-1===Z.allowedCategories.indexOf(s.dataCat.toString())&&!1===t||e?("iab"==CS_Data.cs_active_rule_name&&1==CS_Data.cs_iab.native_scripts||"iab"!=CS_Data.cs_active_rule_name)&&s.pysObj.disable():s.pysObj.loadPixel())}))}),500)},conversionExporterToggle:function(e,t){void 0!==window.conversionExporter&&setTimeout((function(){(0==CS_Data.cs_script_cat.conversion_exporter||CS_Data.cs_script_cat.conversion_exporter==CS_Data.cs_necessary_cat_id||t||-1!==Z.allowedCategories.indexOf(CS_Data.cs_script_cat.conversion_exporter.toString())&&!1===e)&&window.conversionExporter.manageCookies.loadCookies()}),500)},checkBlockingStatus:function(e,t,s,n){let r,o;if(s||n)r=s;else if(K.cache_enabled&&!X.scriptsLoaded)r=("iab"!=CS_Data.cs_active_rule_name||0!=CS_Data.cs_iab.native_scripts)&&-1===Z.allowedCategories.indexOf(e);else{let s=q.read(N+Z.testPrefix),n=-1!==Z.allowedCategories.indexOf(e);r=!!("yes"===s&&!n||null===s&&t)||!n}return o=t===r,{isBlock:r,skip:o}},renderScripts:function(e=!1,t=!1){let s=document.querySelectorAll('script[data-cs-class="cs-blocker-script"], noscript[data-cs-class="cs-blocker-script"], link[data-cs-class="cs-blocker-script"]');s.length>0&&(Array.prototype.forEach.call(s,(function(s){let n=s.getAttribute("data-cs-script-type"),r="true"==s.getAttribute("data-cs-block"),o=X.csScriptFuncs.checkBlockingStatus(n,r,e,t);if(!o.skip)if(o.isBlock)X.csScriptFuncs.blockScripts(s);else{let e=0;"google_maps"!=s.dataset.csSlug&&"google_captcha_cf7"!=s.dataset.csSlug||(X.timeout+=500,e=X.timeout),setTimeout((()=>{X.csScriptFuncs.unBlockScripts(s),"google_captcha_cf7"==s.dataset.csSlug&&"object"==typeof wpcf7_recaptcha&&X.csScriptFuncs.renderCF7Scripts()}),e)}})),X.timeout=0),(!K.cache_enabled&&"just_inform"!=CS_Data.cs_active_rule_name||K.cache_enabled)&&(X.csScriptFuncs.advancedScriptToggle(e,t),1==CS_Data.cs_run_scripts&&("undefined"!=typeof pysOptions&&X.csScriptFuncs.pysPixelsToggle(e,t),"undefined"!=typeof CNVEX_Data&&X.csScriptFuncs.conversionExporterToggle(e,t),1==CS_Data.cs_consent_for_pys&&0!=CS_Data.cs_script_cat.pys&&CS_Data.cs_necessary_cat_id!=CS_Data.cs_script_cat.pys&&(jQuery("body").hasClass("woocommerce-checkout")||jQuery("body#edd-checkout").length>0)&&(t||Z.allowedCategories.indexOf(String(CS_Data.cs_script_cat.pys))>=0||1==CS_Data.cs_track_before_consent_expressed_for_pys&&!q.exists(N+Z.testPrefix)?X.csScriptFuncs.runPysScript(!1):(e||-1===Z.allowedCategories.indexOf(String(CS_Data.cs_script_cat.pys)))&&X.csScriptFuncs.runPysScript())))},renderCF7Scripts:function(){wpcf7_recaptcha.execute=function(e){grecaptcha.execute(wpcf7_recaptcha.sitekey,{action:e}).then((function(t){let s=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:e,token:t}});document.dispatchEvent(s)}))},wpcf7_recaptcha.execute_on_homepage=function(){wpcf7_recaptcha.execute(wpcf7_recaptcha.actions.homepage)},wpcf7_recaptcha.execute_on_contactform=function(){wpcf7_recaptcha.execute(wpcf7_recaptcha.actions.contactform)},grecaptcha.ready(wpcf7_recaptcha.execute_on_homepage),document.addEventListener("change",wpcf7_recaptcha.execute_on_contactform),document.addEventListener("wpcf7submit",wpcf7_recaptcha.execute_on_homepage),document.addEventListener("wpcf7grecaptchaexecuted",(e=>{const t=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let s=0;s<t.length;s++)t[s].setAttribute("value",e.detail.token)}))}}},ee={dataLayers:{},bingLoaded:!1,setDefaultConsent:function(){for(let e in ee.dataLayers){let t=!1,s=ee.dataLayers[e].container;if(void 0!==window[s]){let e=window[s].filter((e=>"consent"===e[0]&&"default"===e[1]&&Object.keys(e[2]).length>=4));e.length>0&&(t=!0)}!t&&ee.dataLayers[e].fire&&(se.dataLayerName=s,se.set("consent","default",{ad_storage:CS_Data.cs_google_consent_mode.ad_storage.enabled?CS_Data.cs_google_consent_mode.ad_storage.value:"granted",analytics_storage:CS_Data.cs_google_consent_mode.analytics_storage.enabled?CS_Data.cs_google_consent_mode.anal
1ytics_storage.value:"granted",ad_personalization:CS_Data.cs_google_consent_mode.ad_personalization.enabled?CS_Data.cs_google_consent_mode.ad_personalization.value:"granted",ad_user_data:CS_Data.cs_google_consent_mode.ad_user_data.enabled?CS_Data.cs_google_consent_mode.ad_user_data.value:"granted"}))}},setDefaultGCMOptions:function(){for(let e in ee.dataLayers){let t=ee.dataLayers[e].container;window[t]=window[t]||[]}},setGoogleConsentOptions:function(){let e=jQuery(".cs-blocker-script-advanced-data"),t=document.querySelectorAll(".cs-blocker-script-advanced");e.length>0&&e.each((function(){let e=JSON.parse(jQuery(this).val());if(e.data_layers&&Object.keys(e.data_layers).length>0)for(let t in e.data_layers)e.data_layers[t].container&&e.data_layers[t].container.length>0&&(ee.dataLayers[e.data_layers[t].container]=e.data_layers[t])})),0===Object.keys(ee.dataLayers).length&&(ee.dataLayers.dataLayer={container:"dataLayer",fire:!0}),this.setDefaultGCMOptions(),this.setDefaultConsent(),t.length>0&&Array.prototype.forEach.call(t,(function(e){X.csScriptFuncs.unBlockScripts(e)}))},googleConsentMode:function(e,t){let s={analytics_storage:{get:!1,status:"granted"},ad_storage:{get:!1,status:"granted"},ad_personalization:{get:!1,status:"granted"},ad_user_data:{get:!1,status:"granted"}};const n=window.pysOptions?.google_consent_mode,r=Object.keys(s);r.forEach((e=>{CS_Data.cs_google_consent_mode[e]?.enabled&&(n&&window.pysOptions.gdpr[e]?.enabled&&window.pysOptions.gdpr[e].filter?s[e].status=window.pysOptions.gdpr[e].value:s[e].get=!0)}));for(let n in ee.dataLayers){const o={},i=ee.dataLayers[n].container,a=(window[i]||[]).filter((e=>"consent"===e[0]))||[];r.forEach((n=>{if(s[n].get&&CS_Data.cs_google_consent_mode[n]?.enabled){const r=CS_Data.cs_google_consent_mode[n].category,i=a.map((e=>e[2][n])).filter(Boolean),c=i[i.length-1]||0,l=0===r?0:Z.allowedCategories.indexOf(r.toString());r===CS_Data.cs_necessary_cat_id||0===r||-1!==l||t?("granted"!==c&&(o[n]="granted"),s[n].status="granted"):(-1===l||e)&&("denied"!==c&&(o[n]="denied"),s[n].status="denied")}})),Object.keys(o).length>0&&(se.dataLayerName=i,se.set("consent","update",o))}const o=jQuery("body").hasClass("woocommerce-checkout")?jQuery("form.woocommerce-checkout"):jQuery("#edd_purchase_form");if(o.length>0){const e={cm_analytics_storage:s.analytics_storage.status,cm_ad_storage:s.ad_storage.status,cm_ad_user_data:s.ad_user_data.status,cm_ad_personalization:s.ad_personalization.status};Object.keys(e).forEach((t=>{const s=o.find(`input[name="${t}"]`);s.length>0?s.val(e[t]||0):o.append(`<input type='hidden' name='${t}' value='${e[t]||0}' />`)}))}},bingConsentMode:function(e,t){let s={ad_storage:{get:!1,status:"granted"}};const n=Object.keys(s),r={};n.forEach((n=>{if(CS_Data.cs_bing_consent_mode[n].enabled&&window.pysOptions?.bing?.consent_mode?.[n].enabled&&!window.pysOptions.bing.consent_mode[n].filter){const o=CS_Data.cs_bing_consent_mode[n].category,i=window.pysOptions?.bing?.consent_mode?.[n].value,a=0===o?0:Z.allowedCategories.indexOf(o.toString());o===CS_Data.cs_necessary_cat_id||0===o||-1!==a||t?((ee.bingLoaded||"granted"!==i)&&(r[n]="granted"),s[n].status="granted"):(-1===a||e)&&((ee.bingLoaded||"denied"!==i)&&(r[n]="denied"),s[n].status="denied")}})),ee.bingLoaded=!0,Object.keys(r).length>0&&window.uetq.push("consent","update",r)}},te={init:function(){this.enabled()&&(window.wp_consent_type=CS_Data.cs_wp_consent_api.consent_type)},enabled:function(){return CS_Data.cs_wp_consent_api.enabled&&"function"==typeof wp_set_consent},setConsent:function(){if(this.enabled()&&Object.keys(CS_Data.cs_wp_consent_api.categories).length>0){let e=CS_Data.cs_wp_consent_api.categories;for(let t in e){let s=e[t].slug,n="deny";if(Object.keys(e[t].ids).length>0){for(let s in e[t].ids)if(-1!==Z.allowedCategories.indexOf(e[t].ids[s].toString())){n="allow";break}}else n="allow";wp_set_consent(s,n)}}}};te.init();const se={dataLayerName:null,set:function(){window[this.dataLayerName].push(arguments)}};function ne(e){return new Promise((t=>setTimeout(t,e)))}function re(e){let t="";M().extend(F);let s=M().duration(1e3*e),n=s.years();t+=0!==n?CS_Data.cs_translations.cs_iab_years.replace("%",n)+" ":"";let r=s.months();t+=0!==r?CS_Data.cs_translations.cs_iab_months.replace("%",r)+" ":"";let o=s.days();t+=0!==o?CS_Data.cs_translations.cs_iab_days.replace("%",o)+" ":"";let i=s.hours();t+=0!==i?CS_Data.cs_translations.cs_iab_hours.replace("%",i)+" ":"";let a=s.minutes();return t+=0!==a?CS_Data.cs_translations.cs_iab_minutes.replace("%",a)+" ":"",t}})()})();
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.