// source --> https://www.lisot.com/wp-content/plugins/webtoffee-gdpr-cookie-consent/public/modules/iab-tcf/assets/js/script.min.js?ver=2.6.6 
/*! For license information please see script.min.js.LICENSE.txt */
(()=>{"use strict";var e={604:e=>{function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,n,r=[],o=window,i=o;i;){try{if(i.frames.__tcfapiLocator){e=i;break}}catch(e){}if(i===o.top)break;i=i.parent}e||(function e(){var t=o.document,n=!!o.frames.__tcfapiLocator;if(!n)if(t.body){var r=t.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",t.body.appendChild(r)}else setTimeout(e,5);return!n}(),o.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(!t.length)return r;"setGdprApplies"===t[0]?t.length>3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(n=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:n,cmpLoaded:!1,cmpStatus:"stub"}):r.push(t)},o.addEventListener("message",(function(e){var n="string"==typeof e.data,r={};if(n)try{r=JSON.parse(e.data)}catch(e){}else r=e.data;var o="object"===t(r)&&null!==r?r.__tcfapiCall:null;o&&window.__tcfapi(o.command,o.version,(function(t,r){var i={__tcfapiReturn:{returnValue:t,success:r,callId:o.callId}};e&&e.source&&e.source.postMessage&&e.source.postMessage(n?JSON.stringify(i):i,"*")}),o.parameter)}),!1))}},6887:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.CallResponder=t.API_KEY=void 0;var i=n(4774),s=n(2697),a=n(3517),c=n(9250),u=n(4388);t.API_KEY="__tcfapi";var l=function(){function e(e){if(e){var n=i.TCFCommand.ADD_EVENT_LISTENER;if(null==e?void 0:e[n])throw new Error("Built-In Custom Commmand for ".concat(n," not allowed: Use ").concat(i.TCFCommand.GET_TC_DATA," instead"));if(n=i.TCFCommand.REMOVE_EVENT_LISTENER,null==e?void 0:e[n])throw new Error("Built-In Custom Commmand for ".concat(n," not allowed"));(null==e?void 0:e[i.TCFCommand.GET_TC_DATA])&&(e[i.TCFCommand.ADD_EVENT_LISTENER]=e[i.TCFCommand.GET_TC_DATA],e[i.TCFCommand.REMOVE_EVENT_LISTENER]=e[i.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,n){for(var l,p=[],f=3;f<arguments.length;f++)p[f-3]=arguments[f];if("string"!=typeof e)n(null,!1);else if(u.SupportedVersions.has(t)){if("function"!=typeof n)throw new Error("invalid callback function");a.CmpApiModel.disabled?n(new c.Disabled,!1):this.isCustomCommand(e)||this.isBuiltInCommand(e)?this.isCustomCommand(e)&&!this.isBuiltInCommand(e)?(l=this.customCommands)[e].apply(l,o([n],r(p),!1)):e===i.TCFCommand.PING?this.isCustomCommand(e)?new s.CommandMap[e](this.customCommands[e],p[0],null,n):new s.CommandMap[e](n,p[0]):void 0===a.CmpApiModel.tcModel?this.callQueue.push(o([e,t,n],r(p),!1)):this.isCustomCommand(e)&&this.isBuiltInCommand(e)?new s.CommandMap[e](this.customCommands[e],p[0],null,n):new s.CommandMap[e](n,p[0]):n(null,!1)}else n(null,!1)},e.prototype.purgeQueuedCalls=function(){var e=this.callQueue;this.callQueue=[],e.forEach((function(e){window[t.API_KEY].apply(window,o([],r(e),!1))}))},e.prototype.isCustomCommand=function(e){return this.customCommands&&"function"==typeof this.customCommands[e]},e.prototype.isBuiltInCommand=function(e){return void 0!==s.CommandMap[e]},e}();t.CallResponder=l},8273:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CmpApi=void 0;var r=n(3517),o=n(5249),i=n(6887),s=n(1530),a=function(){function e(e,t,n,o){void 0===n&&(n=!1),this.numUpdates=0,this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),r.CmpApiModel.cmpId=e,r.CmpApiModel.cmpVersion=t,r.CmpApiModel.tcfPolicyVersion=4,this.isServiceSpecific=!!n,this.callResponder=new i.CallResponder(o)}return e.prototype.throwIfInvalidInt=function(e,t,n){if(!("number"==typeof e&&Number.isInteger(e)&&e>=n))throw new Error("Invalid ".concat(t,": ").concat(e))},e.prototype.update=function(e,t){if(void 0===t&&(t=!1),r.CmpApiModel.disabled)throw new Error("CmpApi Disabled");r.CmpApiModel.cmpStatus=o.CmpStatus.LOADED,t?(r.CmpApiModel.displayStatus=o.DisplayStatus.VISIBLE,r.CmpApiModel.eventStatus=o.EventStatus.CMP_UI_SHOWN):void 0===r.CmpApiModel.tcModel?(r.CmpApiModel.displayStatus=o.DisplayStatus.DISABLED,r.CmpApiModel.eventStatus=o.EventStatus.TC_LOADED):(r.CmpApiModel.displayStatus=o.DisplayStatus.HIDDEN,r.CmpApiModel.eventStatus=o.EventStatus.USER_ACTION_COMPLETE),r.CmpApiModel.gdprApplies=null!==e,r.CmpApiModel.gdprApplies?(""===e?(r.CmpApiModel.tcModel=new s.TCModel,r.CmpApiModel.tcModel.cmpId=r.CmpApiModel.cmpId,r.CmpApiModel.tcModel.cmpVersion=r.CmpApiModel.cmpVersion):r.CmpApiModel.tcModel=s.TCString.decode(e),r.CmpApiModel.tcModel.isServiceSpecific=this.isServiceSpecific,r.CmpApiModel.tcfPolicyVersion=Number(r.CmpApiModel.tcModel.policyVersion),r.CmpApiModel.tcString=e):r.CmpApiModel.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():r.CmpApiModel.eventQueue.exec(),this.numUpdates++},e.prototype.disable=function(){r.CmpApiModel.disabled=!0,r.CmpApiModel.cmpStatus=o.CmpStatus.ERROR},e}();t.CmpApi=a},3517:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CmpApiModel=void 0;var r=n(5249),o=n(5616),i=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=r.CmpStatus.LOADING,this.disabled=!1,this.displayStatus=r.DisplayStatus.HIDDEN,this.eventQueue.clear()},e.apiVersion="2",e.eventQueue=new o.EventListenerQueue,e.cmpStatus=r.CmpStatus.LOADING,e.disabled=!1,e.displayStatus=r.DisplayStatus.HIDDEN,e}();t.CmpApiModel=i},3231:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5616:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventListenerQueue=void 0;var r=n(7293),o=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 r.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=o},4388:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedVersions=void 0;var n=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=n},2564:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddEventListenerCommand=void 0;var i=n(3517),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.listenerId=i.CmpApiModel.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),e.prototype.respond.call(this)},t}(n(7293).GetTCDataCommand);t.AddEventListenerCommand=s},1476:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Command=void 0;var n=function(){function e(e,t,n,r){this.success=!0,Object.assign(this,{callback:e,listenerId:n,param:t,next:r});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=n},2112:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2697:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommandMap=void 0;var r=n(2520),o=n(7293),i=n(3798),s=n(8284),a=n(2564),c=n(299),u=n(2237),l=function(){function e(){}var t,n,l,p,f,d;return t=u.TCFCommand.PING,n=u.TCFCommand.GET_TC_DATA,l=u.TCFCommand.GET_IN_APP_TC_DATA,p=u.TCFCommand.GET_VENDOR_LIST,f=u.TCFCommand.ADD_EVENT_LISTENER,d=u.TCFCommand.REMOVE_EVENT_LISTENER,e[t]=r.PingCommand,e[n]=o.GetTCDataCommand,e[l]=i.GetInAppTCDataCommand,e[p]=s.GetVendorListCommand,e[f]=a.AddEventListenerCommand,e[d]=c.RemoveEventListenerCommand,e}();t.CommandMap=l},3798:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetInAppTCDataCommand=void 0;var i=n(7293),s=n(1142),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new s.InAppTCData(this.param))},t}(i.GetTCDataCommand);t.GetInAppTCDataCommand=a},7293:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetTCDataCommand=void 0;var i=n(1476),s=n(1142),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new s.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}(i.Command);t.GetTCDataCommand=a},8284:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetVendorListCommand=void 0;var i=n(3517),s=n(1476),a=n(1530),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){var e,t=this,n=i.CmpApiModel.tcModel,r=n.vendorListVersion;void 0===this.param&&(this.param=r),(e=this.param===r&&n.gvl?n.gvl:new a.GVL(this.param)).readyPromise.then((function(){t.invokeCallback(e.getJson())}))},t}(s.Command);t.GetVendorListCommand=c},2520:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PingCommand=void 0;var i=n(1142),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.invokeCallback(new i.Ping)},t}(n(1476).Command);t.PingCommand=s},299:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveEventListenerCommand=void 0;var i=n(3517),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.invokeCallback(i.CmpApiModel.eventQueue.remove(this.param))},t}(n(1476).Command);t.RemoveEventListenerCommand=s},2237:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TCFCommand=void 0,(n=t.TCFCommand||(t.TCFCommand={})).PING="ping",n.GET_TC_DATA="getTCData",n.GET_IN_APP_TC_DATA="getInAppTCData",n.GET_VENDOR_LIST="getVendorList",n.ADD_EVENT_LISTENER="addEventListener",n.REMOVE_EVENT_LISTENER="removeEventListener"},4774:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2237),t),o(n(2112),t)},259:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.API_KEY=void 0,o(n(4774),t),o(n(1142),t),o(n(5249),t),o(n(8273),t),o(n(3517),t),o(n(3231),t);var i=n(6887);Object.defineProperty(t,"API_KEY",{enumerable:!0,get:function(){return i.API_KEY}})},9250:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Disabled=void 0;var i=n(9443),s=n(5249),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cmpStatus=s.CmpStatus.ERROR,t}return o(t,e),t}(i.Response);t.Disabled=a},4269:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.InAppTCData=void 0;var a=function(e){function t(t){var n=e.call(this,t)||this;return delete n.outOfBand,n}return o(t,e),t.prototype.createVectorField=function(e){return s([],i(e),!1).reduce((function(e,t){return e+(t[1]?"1":"0")}),"")},t.prototype.createRestrictions=function(e){var t={};if(e.numRestrictions>0){var n=e.getMaxVendorId();e.getRestrictions().forEach((function(e){t[e.purposeId.toString()]="_".repeat(n)}));for(var r=function(n){var r=n+1;e.getRestrictions(r).forEach((function(e){var r=e.restrictionType.toString(),o=e.purposeId.toString(),i=t[o].substr(0,n),s=t[o].substr(n+1);t[o]=i+r+s}))},o=0;o<n;o++)r(o)}return t},t}(n(4266).TCData);t.InAppTCData=a},7135:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Ping=void 0;var i=n(3517),s=function(e){function t(){var t=e.call(this)||this;return t.cmpLoaded=!0,t.cmpStatus=i.CmpApiModel.cmpStatus,t.displayStatus=i.CmpApiModel.displayStatus,t.apiVersion=String(i.CmpApiModel.apiVersion),i.CmpApiModel.tcModel&&i.CmpApiModel.tcModel.vendorListVersion&&(t.gvlVersion=+i.CmpApiModel.tcModel.vendorListVersion),t}return o(t,e),t}(n(9443).Response);t.Ping=s},9443:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;var r=n(3517);t.Response=function(){this.cmpId=r.CmpApiModel.cmpId,this.cmpVersion=r.CmpApiModel.cmpVersion,this.gdprApplies=r.CmpApiModel.gdprApplies,this.tcfPolicyVersion=r.CmpApiModel.tcfPolicyVersion}},4266:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.TCData=void 0;var a=n(3517),c=function(e){function t(t,n){var r=e.call(this)||this;if(r.eventStatus=a.CmpApiModel.eventStatus,r.cmpStatus=a.CmpApiModel.cmpStatus,r.listenerId=n,a.CmpApiModel.gdprApplies){var o=a.CmpApiModel.tcModel;r.tcString=a.CmpApiModel.tcString,r.isServiceSpecific=o.isServiceSpecific,r.useNonStandardTexts=o.useNonStandardTexts,r.purposeOneTreatment=o.purposeOneTreatment,r.publisherCC=o.publisherCountryCode,r.outOfBand={allowedVendors:r.createVectorField(o.vendorsAllowed,t),disclosedVendors:r.createVectorField(o.vendorsDisclosed,t)},r.purpose={consents:r.createVectorField(o.purposeConsents),legitimateInterests:r.createVectorField(o.purposeLegitimateInterests)},r.vendor={consents:r.createVectorField(o.vendorConsents,t),legitimateInterests:r.createVectorField(o.vendorLegitimateInterests,t)},r.specialFeatureOptins=r.createVectorField(o.specialFeatureOptins),r.publisher={consents:r.createVectorField(o.publisherConsents),legitimateInterests:r.createVectorField(o.publisherLegitimateInterests),customPurpose:{consents:r.createVectorField(o.publisherCustomConsents),legitimateInterests:r.createVectorField(o.publisherCustomLegitimateInterests)},restrictions:r.createRestrictions(o.publisherRestrictions)}}return r}return o(t,e),t.prototype.createRestrictions=function(e){var t={};if(e.numRestrictions>0)for(var n=e.getMaxVendorId(),r=function(n){var r=n.toString();e.getRestrictions(n).forEach((function(e){var n=e.purposeId.toString();t[n]||(t[n]={}),t[n][r]=e.restrictionType}))},o=1;o<=n;o++)r(o);return t},t.prototype.createVectorField=function(e,t){return t?t.reduce((function(t,n){return t[String(n)]=e.has(Number(n)),t}),{}):s([],i(e),!1).reduce((function(e,t){return e[t[0].toString(10)]=t[1],e}),{})},t}(n(9443).Response);t.TCData=c},1142:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9250),t),o(n(4269),t),o(n(7135),t),o(n(9443),t),o(n(4266),t)},6375:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CmpStatus=void 0,(n=t.CmpStatus||(t.CmpStatus={})).STUB="stub",n.LOADING="loading",n.LOADED="loaded",n.ERROR="error"},2620:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayStatus=void 0,(n=t.DisplayStatus||(t.DisplayStatus={})).VISIBLE="visible",n.HIDDEN="hidden",n.DISABLED="disabled"},4027:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EventStatus=void 0,(n=t.EventStatus||(t.EventStatus={})).TC_LOADED="tcloaded",n.CMP_UI_SHOWN="cmpuishown",n.USER_ACTION_COMPLETE="useractioncomplete"},5249:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6375),t),o(n(2620),t),o(n(4027),t)},1664:function(e,t){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],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 r=function(){function e(){}return e.prototype.clone=function(){var e=this,t=new this.constructor;return Object.keys(this).forEach((function(n){var r=e.deepClone(e[n]);void 0!==r&&(t[n]=r)})),t},e.prototype.deepClone=function(e){var t,r,o=typeof e;if("number"===o||"string"===o||"boolean"===o)return e;if(null!==e&&"object"===o){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var i=[];try{for(var s=n(e),a=s.next();!a.done;a=s.next()){var c=a.value;i.push(this.deepClone(c))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return e instanceof Array?i:new e.constructor(i)}var u={};for(var l in e)e.hasOwnProperty(l)&&(u[l]=this.deepClone(e[l]));return u}},e}();t.Cloneable=r},4796:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},c=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GVL=void 0;var u=n(1664),l=n(6315),p=n(7353),f=n(8974),d=function(e){function t(n,r){var o=e.call(this)||this;o.isReady_=!1,o.isLatest=!1;var i=t.baseUrl,s=null==r?void 0:r.language;if(s)try{s=t.consentLanguages.parseLanguage(s)}catch(e){throw new l.GVLError("Error during parsing the language: "+e.message)}if(o.lang_=s||t.DEFAULT_LANGUAGE,o.cacheLang_=s||t.DEFAULT_LANGUAGE,o.isVendorList(n))o.populate(n),o.readyPromise=Promise.resolve();else{if(!i)throw new l.GVLError("must specify GVL.baseUrl before loading GVL json");if(n>0){var a=n;t.CACHE.has(a)?(o.populate(t.CACHE.get(a)),o.readyPromise=Promise.resolve()):(i+=t.versionedFilename.replace("[VERSION]",String(a)),o.readyPromise=o.fetchJson(i))}else t.CACHE.has(t.LATEST_CACHE_KEY)?(o.populate(t.CACHE.get(t.LATEST_CACHE_KEY)),o.readyPromise=Promise.resolve()):(o.isLatest=!0,o.readyPromise=o.fetchJson(i+t.latestFilename))}return o}return o(t,e),Object.defineProperty(t,"baseUrl",{get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new l.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},enumerable:!1,configurable:!0}),t.emptyLanguageCache=function(e){var n=!1;return null==e&&t.LANGUAGE_CACHE.size>0?(t.LANGUAGE_CACHE=new Map,n=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(t.LANGUAGE_CACHE.delete(e.toUpperCase()),n=!0),n},t.emptyCache=function(e){var n=!1;return Number.isInteger(e)&&e>=0?(t.CACHE.delete(e),n=!0):void 0===e&&(t.CACHE=new Map,n=!0),n},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 s(this,void 0,void 0,(function(){var t,n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this.populate,[4,p.Json.fetch(e)];case 1:return t.apply(this,[r.sent()]),[3,3];case 2:throw n=r.sent(),new l.GVLError(n.message);case 3:return[2]}}))}))},t.prototype.getJson=function(){return i(i({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{vendors:this.cloneVendors()})},t.prototype.cloneSpecialFeatures=function(){var e,n,r={};try{for(var o=c(Object.keys(this.specialFeatures)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneFeature(this.specialFeatures[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneFeatures=function(){var e,n,r={};try{for(var o=c(Object.keys(this.features)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneFeature(this.features[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneStacks=function(){var e,n,r={};try{for(var o=c(Object.keys(this.stacks)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneStack(this.stacks[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneDataCategories=function(){var e,n,r={};try{for(var o=c(Object.keys(this.dataCategories)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneDataCategory(this.dataCategories[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneSpecialPurposes=function(){var e,n,r={};try{for(var o=c(Object.keys(this.specialPurposes)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.clonePurpose(this.specialPurposes[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.clonePurposes=function(){var e,n,r={};try{for(var o=c(Object.keys(this.purposes)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.clonePurpose(this.purposes[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.clonePurpose=function(e){return i(i({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})},t.cloneFeature=function(e){return i(i({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})},t.cloneDataCategory=function(e){return{id:e.id,name:e.name,description:e.description}},t.cloneStack=function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}},t.cloneDataRetention=function(e){return i(i({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{purposes:i({},e.purposes),specialPurposes:i({},e.specialPurposes)})},t.cloneVendorUrls=function(e){return e.map((function(e){return i({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})}))},t.cloneVendor=function(e){return i(i(i(i(i(i(i(i(i(i(i({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})},t.prototype.cloneVendors=function(){var e,n,r={};try{for(var o=c(Object.keys(this.fullVendorList)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneVendor(this.fullVendorList[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.changeLanguage=function(e){return s(this,void 0,void 0,(function(){var n,r,o,i,s,c;return a(this,(function(a){switch(a.label){case 0:n=e;try{n=t.consentLanguages.parseLanguage(e)}catch(e){throw new l.GVLError("Error during parsing the language: "+e.message)}if(r=e.toUpperCase(),n.toLowerCase()===t.DEFAULT_LANGUAGE.toLowerCase()&&!t.LANGUAGE_CACHE.has(r))return[2];if(n===this.lang_)return[3,5];if(this.lang_=n,!t.LANGUAGE_CACHE.has(r))return[3,1];for(i in o=t.LANGUAGE_CACHE.get(r))o.hasOwnProperty(i)&&(this[i]=o[i]);return[3,5];case 1:s=t.baseUrl+t.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.fetchJson(s)];case 3:return a.sent(),this.cacheLang_=r,this.cacheLanguage(),[3,5];case 4:throw c=a.sent(),new l.GVLError("unable to load language: "+c.message);case 5:return[2]}}))}))},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,n){var r=t.vendors_[String(n)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)})),e[n]=r),e}),{})},t.prototype.getFilteredVendors=function(e,t,n,r){var o=this,i=e.charAt(0).toUpperCase()+e.slice(1),s={};return("purpose"===e&&n?this["by"+i+"VendorMap"][String(t)][n]:this["by"+(r?"Special":"")+i+"VendorMap"][String(t)]).forEach((function(e){s[String(e)]=o.vendors[String(e)]})),s},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 f.ConsentLanguages,t.latestFilename="vendor-list.json",t.versionedFilename="archives/vendor-list-v[VERSION].json",t.languageFilename="purposes-[LANG].json",t}(u.Cloneable);t.GVL=d},7353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Json=void 0;var n=function(){function e(){}return e.absCall=function(e,t,n,r){return new Promise((function(o,i){var s=new XMLHttpRequest;s.withCredentials=n,s.addEventListener("load",(function(){if(s.readyState==XMLHttpRequest.DONE)if(s.status>=200&&s.status<300){var e=s.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}o(e)}else i(new Error("HTTP Status: ".concat(s.status," response type: ").concat(s.responseType)))})),s.addEventListener("error",(function(){i(new Error("error"))})),s.addEventListener("abort",(function(){i(new Error("aborted"))})),null===t?s.open("GET",e,!0):s.open("POST",e,!0),s.responseType="json",s.timeout=r,s.ontimeout=function(){i(new Error("Timeout "+r+"ms "+e))},s.send(t)}))},e.post=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=0),this.absCall(e,JSON.stringify(t),n,r)},e.fetch=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=0),this.absCall(e,null,t,n)},e}();t.Json=n},8932:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TCModel=void 0;var i=n(1664),s=n(6315),a=n(4796),c=n(8974),u=function(e){function t(t){var n=e.call(this)||this;return n.isServiceSpecific_=!1,n.supportOOB_=!0,n.useNonStandardTexts_=!1,n.purposeOneTreatment_=!1,n.publisherCountryCode_="AA",n.version_=2,n.consentScreen_=0,n.policyVersion_=4,n.consentLanguage_="EN",n.cmpId_=0,n.cmpVersion_=0,n.vendorListVersion_=0,n.numCustomPurposes_=0,n.specialFeatureOptins=new c.Vector,n.purposeConsents=new c.Vector,n.purposeLegitimateInterests=new c.Vector,n.publisherConsents=new c.Vector,n.publisherLegitimateInterests=new c.Vector,n.publisherCustomConsents=new c.Vector,n.publisherCustomLegitimateInterests=new c.Vector,n.vendorConsents=new c.Vector,n.vendorLegitimateInterests=new c.Vector,n.vendorsDisclosed=new c.Vector,n.vendorsAllowed=new c.Vector,n.publisherRestrictions=new c.PurposeRestrictionVector,t&&(n.gvl=t),n.updated(),n}return o(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 s.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 s.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 s.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},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 s.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 s.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 s.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 s.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}(i.Cloneable);t.TCModel=u},6468:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TCString=void 0;var r=n(9597),o=n(8974),i=n(196),s=n(8932),a=function(){function e(){}return e.encode=function(e,t){var n,o="";return e=r.SemanticPreEncoder.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new r.SegmentSequence(e,t)[""+e.version]).forEach((function(t,i){var s="";i<n.length-1&&(s="."),o+=r.SegmentEncoder.encode(e,t)+s})),o},e.decode=function(e,t){var n=e.split("."),a=n.length;t||(t=new s.TCModel);for(var c=0;c<a;c++){var u=n[c],l=r.Base64Url.decode(u.charAt(0)).substr(0,r.BitLength.segmentType),p=o.SegmentIDs.ID_TO_KEY[i.IntEncoder.decode(l,r.BitLength.segmentType).toString()];r.SegmentEncoder.decode(u,t,p)}return t},e}();t.TCString=a},3422:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Base64Url=void 0;var r=n(6315),o=function(){function e(){}return e.encode=function(e){if(!/^[0-1]+$/.test(e))throw new r.EncodingError("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",o=0;o<e.length;o+=this.BASIS)n+=this.DICT[parseInt(e.substr(o,this.BASIS),2)];return n},e.decode=function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new r.DecodingError("Invalidly encoded Base64URL string");for(var t="",n=0;n<e.length;n++){var o=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-o.length)+o}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=o},690:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitLength=void 0;var r=n(8974),o=function(){function e(){}var t,n,o,i,s,a,c,u,l,p,f,d,h,v,y,b,m,g;return t=r.Fields.cmpId,n=r.Fields.cmpVersion,o=r.Fields.consentLanguage,i=r.Fields.consentScreen,s=r.Fields.created,a=r.Fields.isServiceSpecific,c=r.Fields.lastUpdated,u=r.Fields.policyVersion,l=r.Fields.publisherCountryCode,p=r.Fields.publisherLegitimateInterests,f=r.Fields.publisherConsents,d=r.Fields.purposeConsents,h=r.Fields.purposeLegitimateInterests,v=r.Fields.purposeOneTreatment,y=r.Fields.specialFeatureOptins,b=r.Fields.useNonStandardTexts,m=r.Fields.vendorListVersion,g=r.Fields.version,e[t]=12,e[n]=12,e[o]=12,e[i]=6,e[s]=36,e[a]=1,e[c]=36,e[u]=6,e[l]=12,e[p]=24,e[f]=24,e[d]=24,e[h]=24,e[v]=1,e[y]=12,e[b]=1,e[m]=12,e[g]=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=o},7821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9825:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentEncoder=void 0;var r=n(3422),o=n(690),i=n(1679),s=n(2034),a=n(6315),c=n(1869),u=n(8974),l=function(){function e(){}return e.encode=function(e,t){var n,s=this;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new a.EncodingError("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var l="";t!==u.Segment.CORE&&(l=i.IntEncoder.encode(u.SegmentIDs.KEY_TO_ID[t],o.BitLength.segmentType));var p=(0,i.FieldEncoderMap)();return n.forEach((function(n){var r=e[n],i=p[n],u=o.BitLength[n];void 0===u&&s.isPublisherCustom(n)&&(u=Number(e[c.Fields.numCustomPurposes]));try{l+=i.encode(r,u)}catch(e){throw new a.EncodingError("Error encoding ".concat(t,"->").concat(n,": ").concat(e.message))}})),r.Base64Url.encode(l)},e.decode=function(e,t,n){var s=this,l=r.Base64Url.decode(e),p=0;n===u.Segment.CORE&&(t.version=i.IntEncoder.decode(l.substr(p,o.BitLength[c.Fields.version]),o.BitLength[c.Fields.version])),n!==u.Segment.CORE&&(p+=o.BitLength.segmentType);var f=this.fieldSequence[String(t.version)][n],d=(0,i.FieldEncoderMap)();return f.forEach((function(e){var n=d[e],r=o.BitLength[e];if(void 0===r&&s.isPublisherCustom(e)&&(r=Number(t[c.Fields.numCustomPurposes])),0!==r){var u=l.substr(p,r);if(n===i.VendorVectorEncoder?t[e]=n.decode(u,t.version):t[e]=n.decode(u,r),Number.isInteger(r))p+=r;else{if(!Number.isInteger(t[e].bitLength))throw new a.DecodingError(e);p+=t[e].bitLength}}})),t},e.isPublisherCustom=function(e){return 0===e.indexOf("publisherCustom")},e.fieldSequence=new s.FieldSequence,e}();t.SegmentEncoder=l},9579:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticPreEncoder=void 0;var r=n(6315),o=n(8974),i=function(){function e(){}return e.process=function(e,t){var n=e.gvl;if(!n)throw new r.EncodingError("Unable to encode TCModel without a GVL");if(!n.isReady)throw new r.EncodingError("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var o=e.version-1;if(!this.processor[o])throw new r.EncodingError("Invalid version: ".concat(e.version));return this.processor[o](e,n)},e.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((function(n,r){n.forEach((function(i,s){if(i){var a=t.vendors[s];if(!a||a.deletedDate)n.unset(s);else if(0===a[r].length)if("legIntPurposes"===r&&0===a.purposes.length&&0===a.legIntPurposes.length&&a.specialPurposes.length>0)n.set(s);else if("legIntPurposes"===r&&a.purposes.length>0&&0===a.legIntPurposes.length&&a.specialPurposes.length>0)n.set(s);else if(e.isServiceSpecific)if(0===a.flexiblePurposes.length)n.unset(s);else{for(var c=e.publisherRestrictions.getRestrictions(s),u=!1,l=0,p=c.length;l<p&&!u;l++)u=c[l].restrictionType===o.RestrictionType.REQUIRE_CONSENT&&"purposes"===r||c[l].restrictionType===o.RestrictionType.REQUIRE_LI&&"legIntPurposes"===r;u||n.unset(s)}else n.unset(s)}}))})),e.vendorsDisclosed.set(t.vendors),e}],e}();t.SemanticPreEncoder=i},8871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanEncoder=void 0;var n=function(){function e(){}return e.encode=function(e){return String(Number(e))},e.decode=function(e){return"1"===e},e}();t.BooleanEncoder=n},2909:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateEncoder=void 0;var r=n(196),o=n(6315),i=function(){function e(){}return e.encode=function(e,t){return r.IntEncoder.encode(Math.round(e.getTime()/100),t)},e.decode=function(e,t){if(t!==e.length)throw new o.DecodingError("invalid bit length");var n=new Date;return n.setTime(100*r.IntEncoder.decode(e,t)),n},e}();t.DateEncoder=i},8945:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldEncoderMap=void 0;var r=n(8974),o=n(8871),i=n(2909),s=n(8295),a=n(196),c=n(369),u=n(5047),l=n(3654);t.FieldEncoderMap=function(){var e;return(e={})[r.Fields.version]=a.IntEncoder,e[r.Fields.created]=i.DateEncoder,e[r.Fields.lastUpdated]=i.DateEncoder,e[r.Fields.cmpId]=a.IntEncoder,e[r.Fields.cmpVersion]=a.IntEncoder,e[r.Fields.consentScreen]=a.IntEncoder,e[r.Fields.consentLanguage]=c.LangEncoder,e[r.Fields.vendorListVersion]=a.IntEncoder,e[r.Fields.policyVersion]=a.IntEncoder,e[r.Fields.isServiceSpecific]=o.BooleanEncoder,e[r.Fields.useNonStandardTexts]=o.BooleanEncoder,e[r.Fields.specialFeatureOptins]=s.FixedVectorEncoder,e[r.Fields.purposeConsents]=s.FixedVectorEncoder,e[r.Fields.purposeLegitimateInterests]=s.FixedVectorEncoder,e[r.Fields.purposeOneTreatment]=o.BooleanEncoder,e[r.Fields.publisherCountryCode]=c.LangEncoder,e[r.Fields.vendorConsents]=l.VendorVectorEncoder,e[r.Fields.vendorLegitimateInterests]=l.VendorVectorEncoder,e[r.Fields.publisherRestrictions]=u.PurposeRestrictionVectorEncoder,e.segmentType=a.IntEncoder,e[r.Fields.vendorsDisclosed]=l.VendorVectorEncoder,e[r.Fields.vendorsAllowed]=l.VendorVectorEncoder,e[r.Fields.publisherConsents]=s.FixedVectorEncoder,e[r.Fields.publisherLegitimateInterests]=s.FixedVectorEncoder,e[r.Fields.numCustomPurposes]=a.IntEncoder,e[r.Fields.publisherCustomConsents]=s.FixedVectorEncoder,e[r.Fields.publisherCustomLegitimateInterests]=s.FixedVectorEncoder,e}},8295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FixedVectorEncoder=void 0;var r=n(8871),o=n(6315),i=n(8974),s=function(){function e(){}return e.encode=function(e,t){for(var n="",o=1;o<=t;o++)n+=r.BooleanEncoder.encode(e.has(o));return n},e.decode=function(e,t){if(e.length!==t)throw new o.DecodingError("bitfield encoding length mismatch");for(var n=new i.Vector,s=1;s<=t;s++)r.BooleanEncoder.decode(e[s-1])&&n.set(s);return n.bitLength=e.length,n},e}();t.FixedVectorEncoder=s},196:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IntEncoder=void 0;var r=n(6315),o=function(){function e(){}return e.encode=function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new r.EncodingError("".concat(e," too large to encode into ").concat(t));return n.length<t&&(n="0".repeat(t-n.length)+n),n},e.decode=function(e,t){if(t!==e.length)throw new r.DecodingError("invalid bit length");return parseInt(e,2)},e}();t.IntEncoder=o},369:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LangEncoder=void 0;var r=n(196),o=n(6315),i=function(){function e(){}return e.encode=function(e,t){var n=(e=e.toUpperCase()).charCodeAt(0)-65,i=e.charCodeAt(1)-65;if(n<0||n>25||i<0||i>25)throw new o.EncodingError("invalid language code: ".concat(e));if(t%2==1)throw new o.EncodingError("numBits must be even, ".concat(t," is not valid"));return t/=2,r.IntEncoder.encode(n,t)+r.IntEncoder.encode(i,t)},e.decode=function(e,t){if(t!==e.length||e.length%2)throw new o.DecodingError("invalid bit length for language");var n=e.length/2,i=r.IntEncoder.decode(e.slice(0,n),n)+65,s=r.IntEncoder.decode(e.slice(n),n)+65;return String.fromCharCode(i)+String.fromCharCode(s)},e}();t.LangEncoder=i},5047:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestrictionVectorEncoder=void 0;var r=n(690),o=n(8871),i=n(6315),s=n(196),a=n(8974),c=function(){function e(){}return e.encode=function(e){var t=s.IntEncoder.encode(e.numRestrictions,r.BitLength.numRestrictions);if(!e.isEmpty()){var n=function(t,n){for(var r=t+1;r<=n;r++)if(e.gvl.vendorIds.has(r))return r;return t};e.getRestrictions().forEach((function(i){t+=s.IntEncoder.encode(i.purposeId,r.BitLength.purposeId),t+=s.IntEncoder.encode(i.restrictionType,r.BitLength.restrictionType);for(var a=e.getVendors(i),c=a.length,u=0,l=0,p="",f=0;f<c;f++){var d=a[f];if(0===l&&(u++,l=d),f===c-1||a[f+1]>n(d,a[c-1])){var h=!(d===l);p+=o.BooleanEncoder.encode(h),p+=s.IntEncoder.encode(l,r.BitLength.vendorId),h&&(p+=s.IntEncoder.encode(d,r.BitLength.vendorId)),l=0}}t+=s.IntEncoder.encode(u,r.BitLength.numEntries),t+=p}))}return t},e.decode=function(e){var t=0,n=new a.PurposeRestrictionVector,c=s.IntEncoder.decode(e.substr(t,r.BitLength.numRestrictions),r.BitLength.numRestrictions);t+=r.BitLength.numRestrictions;for(var u=0;u<c;u++){var l=s.IntEncoder.decode(e.substr(t,r.BitLength.purposeId),r.BitLength.purposeId);t+=r.BitLength.purposeId;var p=s.IntEncoder.decode(e.substr(t,r.BitLength.restrictionType),r.BitLength.restrictionType);t+=r.BitLength.restrictionType;var f=new a.PurposeRestriction(l,p),d=s.IntEncoder.decode(e.substr(t,r.BitLength.numEntries),r.BitLength.numEntries);t+=r.BitLength.numEntries;for(var h=0;h<d;h++){var v=o.BooleanEncoder.decode(e.substr(t,r.BitLength.anyBoolean));t+=r.BitLength.anyBoolean;var y=s.IntEncoder.decode(e.substr(t,r.BitLength.vendorId),r.BitLength.vendorId);if(t+=r.BitLength.vendorId,v){var b=s.IntEncoder.decode(e.substr(t,r.BitLength.vendorId),r.BitLength.vendorId);if(t+=r.BitLength.vendorId,b<y)throw new i.DecodingError("Invalid RangeEntry: endVendorId ".concat(b," is less than ").concat(y));for(var m=y;m<=b;m++)n.add(m,f)}else n.add(y,f)}}return n.bitLength=t,n},e}();t.PurposeRestrictionVectorEncoder=c},5860:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VectorEncodingType=void 0,(n=t.VectorEncodingType||(t.VectorEncodingType={}))[n.FIELD=0]="FIELD",n[n.RANGE=1]="RANGE"},3654:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VendorVectorEncoder=void 0;var r=n(8974),o=n(9597),i=n(196),s=n(8871),a=n(8295),c=n(5860),u=n(6315),l=function(){function e(){}return e.encode=function(e){var t,n=[],r=[],a=i.IntEncoder.encode(e.maxId,o.BitLength.maxId),u="",l=o.BitLength.maxId+o.BitLength.encodingType,p=l+e.maxId,f=2*o.BitLength.vendorId+o.BitLength.singleOrRange+o.BitLength.numEntries,d=l+o.BitLength.numEntries;return e.forEach((function(i,a){u+=s.BooleanEncoder.encode(i),(t=e.maxId>f&&d<p)&&i&&(e.has(a+1)?0===r.length&&(r.push(a),d+=o.BitLength.singleOrRange,d+=o.BitLength.vendorId):(r.push(a),d+=o.BitLength.vendorId,n.push(r),r=[]))})),t?(a+=String(c.VectorEncodingType.RANGE),a+=this.buildRangeEncoding(n)):(a+=String(c.VectorEncodingType.FIELD),a+=u),a},e.decode=function(e,t){var n,l=0,p=i.IntEncoder.decode(e.substr(l,o.BitLength.maxId),o.BitLength.maxId);l+=o.BitLength.maxId;var f=i.IntEncoder.decode(e.charAt(l),o.BitLength.encodingType);if(l+=o.BitLength.encodingType,f===c.VectorEncodingType.RANGE){if(n=new r.Vector,1===t){if("1"===e.substr(l,1))throw new u.DecodingError("Unable to decode default consent=1");l++}var d=i.IntEncoder.decode(e.substr(l,o.BitLength.numEntries),o.BitLength.numEntries);l+=o.BitLength.numEntries;for(var h=0;h<d;h++){var v=s.BooleanEncoder.decode(e.charAt(l));l+=o.BitLength.singleOrRange;var y=i.IntEncoder.decode(e.substr(l,o.BitLength.vendorId),o.BitLength.vendorId);if(l+=o.BitLength.vendorId,v){var b=i.IntEncoder.decode(e.substr(l,o.BitLength.vendorId),o.BitLength.vendorId);l+=o.BitLength.vendorId;for(var m=y;m<=b;m++)n.set(m)}else n.set(y)}}else{var g=e.substr(l,p);l+=p,n=a.FixedVectorEncoder.decode(g,p)}return n.bitLength=l,n},e.buildRangeEncoding=function(e){var t=e.length,n=i.IntEncoder.encode(t,o.BitLength.numEntries);return e.forEach((function(e){var t=1===e.length;n+=s.BooleanEncoder.encode(!t),n+=i.IntEncoder.encode(e[0],o.BitLength.vendorId),t||(n+=i.IntEncoder.encode(e[1],o.BitLength.vendorId))})),n},e}();t.VendorVectorEncoder=l},1679:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8871),t),o(n(2909),t),o(n(8945),t),o(n(8295),t),o(n(196),t),o(n(369),t),o(n(5047),t),o(n(5860),t),o(n(3654),t)},9597:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3422),t),o(n(690),t),o(n(7821),t),o(n(9825),t),o(n(9579),t),o(n(1679),t),o(n(2034),t)},4805:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSequence=void 0;var r=n(8974);t.FieldSequence=function(){var e,t;this[1]=((e={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.purposeConsents,r.Fields.vendorConsents],e),this[2]=((t={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.policyVersion,r.Fields.isServiceSpecific,r.Fields.useNonStandardTexts,r.Fields.specialFeatureOptins,r.Fields.purposeConsents,r.Fields.purposeLegitimateInterests,r.Fields.purposeOneTreatment,r.Fields.publisherCountryCode,r.Fields.vendorConsents,r.Fields.vendorLegitimateInterests,r.Fields.publisherRestrictions],t[r.Segment.PUBLISHER_TC]=[r.Fields.publisherConsents,r.Fields.publisherLegitimateInterests,r.Fields.numCustomPurposes,r.Fields.publisherCustomConsents,r.Fields.publisherCustomLegitimateInterests],t[r.Segment.VENDORS_ALLOWED]=[r.Fields.vendorsAllowed],t[r.Segment.VENDORS_DISCLOSED]=[r.Fields.vendorsDisclosed],t)}},5018:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentSequence=void 0;var r=n(8974);t.SegmentSequence=function(e,t){if(this[1]=[r.Segment.CORE],this[2]=[r.Segment.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(r.Segment.PUBLISHER_TC);else{var n=!(!t||!t.isForVendors);n&&!0!==e[r.Fields.supportOOB]||this[2].push(r.Segment.VENDORS_DISCLOSED),n&&(e[r.Fields.supportOOB]&&e[r.Fields.vendorsAllowed].size>0&&this[2].push(r.Segment.VENDORS_ALLOWED),this[2].push(r.Segment.PUBLISHER_TC))}}},4052:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2034:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4805),t),o(n(5018),t),o(n(4052),t)},1625:function(e,t){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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DecodingError=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="DecodingError",n}return r(t,e),t}(Error);t.DecodingError=o},8057:function(e,t){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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EncodingError=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="EncodingError",n}return r(t,e),t}(Error);t.EncodingError=o},3319:function(e,t){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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.GVLError=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="GVLError",n}return r(t,e),t}(Error);t.GVLError=o},5669:function(e,t){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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.TCModelError=void 0;var o=function(e){function t(t,n,r){void 0===r&&(r="");var o=e.call(this,"invalid value ".concat(n," passed for ").concat(t," ").concat(r))||this;return o.name="TCModelError",o}return r(t,e),t}(Error);t.TCModelError=o},6315:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1625),t),o(n(8057),t),o(n(3319),t),o(n(5669),t)},1530:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9597),t),o(n(6315),t),o(n(8974),t),o(n(1664),t),o(n(4796),t),o(n(7353),t),o(n(8932),t),o(n(6468),t)},5263:function(e,t){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],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 r=function(){function e(){}return e.prototype.has=function(t){return e.langSet.has(t)},e.prototype.parseLanguage=function(t){var r,o,i=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==i.length){if(e.langSet.has(t))return t;if(e.langSet.has(i))return i;var s=i+"-"+i;if(e.langSet.has(s))return s;try{for(var a=n(e.langSet),c=a.next();!c.done;c=a.next()){var u=c.value;if(-1!==u.indexOf(t)||-1!==u.indexOf(i))return u}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.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","HI","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]),e}();t.ConsentLanguages=r},2936:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5226:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceDisclosureStorageAccessType=void 0,(n=t.DeviceDisclosureStorageAccessType||(t.DeviceDisclosureStorageAccessType={})).COOKIE="cookie",n.WEB="web",n.APP="app"},1869:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=void 0;var n=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=n},9938:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4762:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestriction=void 0;var i=n(1664),s=n(6315),a=n(4278),c=function(e){function t(t,n){var r=e.call(this)||this;return void 0!==t&&(r.purposeId=t),void 0!==n&&(r.restrictionType=n),r}return o(t,e),t.unHash=function(e){var n=e.split(this.hashSeparator),r=new t;if(2!==n.length)throw new s.TCModelError("hash",e);return r.purposeId=parseInt(n[0],10),r.restrictionType=parseInt(n[1],10),r},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}(i.Cloneable);t.PurposeRestriction=c},310:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestrictionVector=void 0;var a=n(4762),c=n(4278),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bitLength=0,t.map=new Map,t}return o(t,e),t.prototype.has=function(e){return this.map.has(e)},t.prototype.isOkToHave=function(e,t,n){var r,o=!0;if(null===(r=this.gvl)||void 0===r?void 0:r.vendors){var i=this.gvl.vendors[n];if(i)if(e===c.RestrictionType.NOT_ALLOWED)o=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case c.RestrictionType.REQUIRE_CONSENT:o=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case c.RestrictionType.REQUIRE_LI:o=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else o=!1;else o=!1}return o},t.prototype.add=function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}},t.prototype.restrictPurposeToLegalBasis=function(e){var t=Array.from(this.gvl.vendorIds),n=e.hash,r=t[t.length-1],o=s([],i(Array(r).keys()),!1).map((function(e){return e+1}));if(this.has(n))for(var a=1;a<=r;a++)this.map.get(n).add(a);else this.map.set(n,new Set(o)),this.bitLength=0},t.prototype.getVendors=function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=Array.from(this.map.get(n)))}else{var r=new Set;this.map.forEach((function(e){e.forEach((function(e){r.add(e)}))})),t=Array.from(r)}return t.sort((function(e,t){return e-t}))},t.prototype.getRestrictionType=function(e,t){var n;return this.getRestrictions(e).forEach((function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n},t.prototype.vendorHasRestriction=function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o<r.length&&!n;o++)n=t.isSameAs(r[o]);return n},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(n,r){e?n.has(e)&&t.push(a.PurposeRestriction.unHash(r)):t.push(a.PurposeRestriction.unHash(r))})),t},t.prototype.getPurposes=function(){var e=new Set;return this.map.forEach((function(t,n){e.add(a.PurposeRestriction.unHash(n).purposeId)})),Array.from(e)},t.prototype.remove=function(e,t){var n=t.hash,r=this.map.get(n);r&&(r.delete(e),0==r.size&&(this.map.delete(n),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,n){var r=a.PurposeRestriction.unHash(n);Array.from(e).forEach((function(n){t.isOkToHave(r.restrictionType,r.purposeId,n)||e.delete(n)}))})))},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}(n(1664).Cloneable);t.PurposeRestrictionVector=u},4278:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictionType=void 0,(n=t.RestrictionType||(t.RestrictionType={}))[n.NOT_ALLOWED=0]="NOT_ALLOWED",n[n.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",n[n.REQUIRE_LI=2]="REQUIRE_LI"},6607:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Segment=void 0,(n=t.Segment||(t.Segment={})).CORE="core",n.VENDORS_DISCLOSED="vendorsDisclosed",n.VENDORS_ALLOWED="vendorsAllowed",n.PUBLISHER_TC="publisherTC"},9315:(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentIDs=void 0;var o=n(6607),i=function(){function e(){}return e.ID_TO_KEY=[o.Segment.CORE,o.Segment.VENDORS_DISCLOSED,o.Segment.VENDORS_ALLOWED,o.Segment.PUBLISHER_TC],e.KEY_TO_ID=((r={})[o.Segment.CORE]=0,r[o.Segment.VENDORS_DISCLOSED]=1,r[o.Segment.VENDORS_ALLOWED]=2,r[o.Segment.PUBLISHER_TC]=3,r),e}();t.SegmentIDs=i},2684:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=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 s=n(1664),a=n(6315),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 o(t,e),t.prototype[Symbol.iterator]=function(){var e;return i(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]}}))},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;return"object"==typeof e&&Object.keys(e).every((function(n){var r=Number.isInteger(parseInt(n,10));return(r=r&&t.isValidNumber(e[n].id))&&void 0!==e[n].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}(s.Cloneable);t.Vector=c},2376:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9965:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9508:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1724:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8135:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},254:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8839:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2585:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},7657:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4922:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3800:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2376),t),o(n(9508),t),o(n(2574),t),o(n(1724),t),o(n(254),t),o(n(8839),t),o(n(2585),t),o(n(7657),t),o(n(4922),t),o(n(9965),t),o(n(8135),t)},8974:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5263),t),o(n(1869),t),o(n(9938),t),o(n(8970),t),o(n(4762),t),o(n(310),t),o(n(5226),t),o(n(2936),t),o(n(4278),t),o(n(6607),t),o(n(9315),t),o(n(2684),t),o(n(3800),t)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(()=>{function e(t){return e="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(t)}function t(e){var n="function"==typeof Map?new Map:void 0;return t=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,o)}function o(){return r(e,arguments,s(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i(o,e)},t(e)}function r(e,t,n){return r=o()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},r.apply(null,arguments)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var a=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(u,t);var n,r,a,c=(r=u,a=o(),function(){var t,n=s(r);if(a){var o=s(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,t)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=c.call(this,e)).name="EncodingError",t}return n=u,Object.defineProperty(n,"prototype",{writable:!1}),n}(t(Error));function c(e){return c="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},c(e)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},u(e)}function l(e,t,n){return l=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o},l.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(i,e);var t,n,r,o=(n=i,r=p(),function(){var e,t=d(n);if(r){var o=d(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).name="DecodingError",t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(u(Error));function v(e){return v="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},v(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function b(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){if(!/^[0-1]+$/.test(e))throw new a("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",r=0;r<e.length;r+=this.BASIS)n+=this.DICT[parseInt(e.substr(r,this.BASIS),2)];return n}},{key:"decode",value:function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new h("Invalidly encoded Base64URL string");for(var t="",n=0;n<e.length;n++){var r=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-r.length)+r}return t}}],null&&y(t.prototype,null),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function w(e){return w="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},w(e)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function E(e){var t=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===w(t)?t:String(t)}b(g,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),b(g,"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]])),b(g,"BASIS",6),b(g,"LCM",24);var O,C,P,L=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"has",value:function(t){return e.langSet.has(t)}},{key:"parseLanguage",value:function(t){var n=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==n.length){if(e.langSet.has(t))return t;if(e.langSet.has(n))return n;var r=n+"-"+n;if(e.langSet.has(r))return r;var o,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(e.langSet);try{for(i.s();!(o=i.n()).done;){var s=o.value;if(-1!==s.indexOf(t)||-1!==s.indexOf(n))return s}}catch(e){i.e(e)}finally{i.f()}}throw new Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function I(e){return I="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},I(e)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function A(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===I(t)?t:String(t)}O=L,C="langSet",P=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]),(C=E(C))in O?Object.defineProperty(O,C,{value:P,enumerable:!0,configurable:!0,writable:!0}):O[C]=P;var V=A((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){return M="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},M(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F(r.key),r)}}function F(e){var t=function(e,t){if("object"!==M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===M(t)?t:String(t)}T(V,"cmpId","cmpId"),T(V,"cmpVersion","cmpVersion"),T(V,"consentLanguage","consentLanguage"),T(V,"consentScreen","consentScreen"),T(V,"created","created"),T(V,"supportOOB","supportOOB"),T(V,"isServiceSpecific","isServiceSpecific"),T(V,"lastUpdated","lastUpdated"),T(V,"numCustomPurposes","numCustomPurposes"),T(V,"policyVersion","policyVersion"),T(V,"publisherCountryCode","publisherCountryCode"),T(V,"publisherCustomConsents","publisherCustomConsents"),T(V,"publisherCustomLegitimateInterests","publisherCustomLegitimateInterests"),T(V,"publisherLegitimateInterests","publisherLegitimateInterests"),T(V,"publisherConsents","publisherConsents"),T(V,"publisherRestrictions","publisherRestrictions"),T(V,"purposeConsents","purposeConsents"),T(V,"purposeLegitimateInterests","purposeLegitimateInterests"),T(V,"purposeOneTreatment","purposeOneTreatment"),T(V,"specialFeatureOptins","specialFeatureOptins"),T(V,"useNonStandardTexts","useNonStandardTexts"),T(V,"vendorConsents","vendorConsents"),T(V,"vendorLegitimateInterests","vendorLegitimateInterests"),T(V,"vendorListVersion","vendorListVersion"),T(V,"vendorsAllowed","vendorsAllowed"),T(V,"vendorsDisclosed","vendorsDisclosed"),T(V,"version","version");var D=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"clone",value:function(){var e=this,t=new this.constructor;return Object.keys(this).forEach((function(n){var r=e.deepClone(e[n]);void 0!==r&&(t[n]=r)})),t}},{key:"deepClone",value:function(e){var t=M(e);if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var n,r=[],o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;r.push(this.deepClone(i))}}catch(e){o.e(e)}finally{o.f()}return e instanceof Array?r:new e.constructor(r)}var s={};for(var a in e)e.hasOwnProperty(a)&&(s[a]=this.deepClone(e[a]));return s}}}],n&&R(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function N(e){return N="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},N(e)}function U(e){var t="function"==typeof Map?new Map:void 0;return U=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return B(e,arguments,Q(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),H(r,e)},U(e)}function B(e,t,n){return B=G()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&H(o,n.prototype),o},B.apply(null,arguments)}function G(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}var q,W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(i,e);var t,n,r,o=(n=i,r=G(),function(){var e,t=Q(n);if(r){var o=Q(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,"invalid value ".concat(t," passed for ").concat(e," ").concat(r))).name="TCModelError",n}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(U(Error));function K(e){return K="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},K(e)}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X(r.key),r)}}function J(e,t){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J(e,t)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}function Z(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e){var t=function(e,t){if("object"!==K(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===K(t)?t:String(t)}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(q||(q={}));var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J(e,t)}(a,e);var t,n,r,o,i,s=(o=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$(o);if(i){var n=$(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Z(z(n=s.call(this)),"purposeId_",void 0),Z(z(n),"restrictionType",void 0),void 0!==e&&(n.purposeId=e),void 0!==t&&(n.restrictionType=t),n}return t=a,r=[{key:"unHash",value:function(e){var t=e.split(this.hashSeparator),n=new a;if(2!==t.length)throw new W("hash",e);return n.purposeId=parseInt(t[0],10),n.restrictionType=parseInt(t[1],10),n}}],(n=[{key:"hash",get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(a.hashSeparator).concat(this.restrictionType)}},{key:"purposeId",get:function(){return this.purposeId_},set:function(e){this.purposeId_=e}},{key:"isValid",value:function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===q.NOT_ALLOWED||this.restrictionType===q.REQUIRE_CONSENT||this.restrictionType===q.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}])&&Y(t.prototype,n),r&&Y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(D);function te(e){return te="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},te(e)}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ce(r.key),r)}}function oe(e,t){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oe(e,t)}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},se(e)}function ae(e,t,n){return(t=ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e){var t=function(e,t){if("object"!==te(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===te(t)?t:String(t)}Z(ee,"hashSeparator","-");var ue,le,pe,fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(s,e);var t,n,r,o,i=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=se(r);if(o){var n=se(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}(this,e)});function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ae(ie(e=i.call.apply(i,[this].concat(n))),"bitLength",0),ae(ie(e),"map",new Map),ae(ie(e),"gvl_",void 0),e}return t=s,n=[{key:"has",value:function(e){return this.map.has(e)}},{key:"isOkToHave",value:function(e,t,n){var r,o=!0;if(null!==(r=this.gvl)&&void 0!==r&&r.vendors){var i=this.gvl.vendors[n];if(i)if(e===q.NOT_ALLOWED)o=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case q.REQUIRE_CONSENT:o=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case q.REQUIRE_LI:o=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else o=!1;else o=!1}return o}},{key:"add",value:function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}},{key:"restrictPurposeToLegalBasis",value:function(e){var t,n=Array.from(this.gvl.vendorIds),r=e.hash,o=n[n.length-1],i=(t=Array(o).keys(),function(e){if(Array.isArray(e))return ne(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){return e+1}));if(this.has(r))for(var s=1;s<=o;s++)this.map.get(r).add(s);else this.map.set(r,new Set(i)),this.bitLength=0}},{key:"getVendors",value:function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=Array.from(this.map.get(n)))}else{var r=new Set;this.map.forEach((function(e){e.forEach((function(e){r.add(e)}))})),t=Array.from(r)}return t.sort((function(e,t){return e-t}))}},{key:"getRestrictionType",value:function(e,t){var n;return this.getRestrictions(e).forEach((function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n}},{key:"vendorHasRestriction",value:function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o<r.length&&!n;o++)n=t.isSameAs(r[o]);return n}},{key:"getMaxVendorId",value:function(){var e=0;return this.map.forEach((function(t){e=Math.max(Array.from(t)[t.size-1],e)})),e}},{key:"getRestrictions",value:function(e){var t=[];return this.map.forEach((function(n,r){e?n.has(e)&&t.push(ee.unHash(r)):t.push(ee.unHash(r))})),t}},{key:"getPurposes",value:function(){var e=new Set;return this.map.forEach((function(t,n){e.add(ee.unHash(n).purposeId)})),Array.from(e)}},{key:"remove",value:function(e,t){var n=t.hash,r=this.map.get(n);r&&(r.delete(e),0==r.size&&(this.map.delete(n),this.bitLength=0))}},{key:"gvl",get:function(){return this.gvl_},set:function(e){var t=this;this.gvl_||(this.gvl_=e,this.map.forEach((function(e,n){var r=ee.unHash(n);Array.from(e).forEach((function(n){t.isOkToHave(r.restrictionType,r.purposeId,n)||e.delete(n)}))})))}},{key:"isEmpty",value:function(){return 0===this.map.size}},{key:"numRestrictions",get:function(){return this.map.size}}],n&&re(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(D);function de(e){return de="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},de(e)}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,be(r.key),r)}}function ve(e,t,n){return t&&he(e.prototype,t),n&&he(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ye(e,t,n){return(t=be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===de(t)?t:String(t)}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(ue||(ue={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(le||(le={}));var me,ge=ve((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));function we(e){return we="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},we(e)}function _e(){_e=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof f?t:f,s=Object.create(i.prototype),a=new C(o||[]);return r(s,"_invoke",{value:_(e,n,a)}),s}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function f(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(P([])));b&&b!==t&&n.call(b,i)&&(v=b);var m=h.prototype=f.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,s,a){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==we(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(p).then((function(e){u.value=e,s(u)}),(function(e){return o("throw",e,s,a)}))}a(c.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=h,r(m,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(w.prototype),c(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},g(m),c(m,a,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Le(r.key),r)}}function Ee(e,t){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ee(e,t)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}function Pe(e,t,n){return(t=Le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e){var t=function(e,t){if("object"!==we(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===we(t)?t:String(t)}ye(ge,"ID_TO_KEY",[le.CORE,le.VENDORS_DISCLOSED,le.VENDORS_ALLOWED,le.PUBLISHER_TC]),ye(ge,"KEY_TO_ID",(ye(pe={},le.CORE,0),ye(pe,le.VENDORS_DISCLOSED,1),ye(pe,le.VENDORS_ALLOWED,2),ye(pe,le.PUBLISHER_TC,3),pe)),me=Symbol.iterator;var Ie,je,Ae,Te,ke,Ve,xe,Me,Re,Fe,De,Ne,Ue,Be,Ge,He,Qe,qe,We=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ee(e,t)}(s,e);var t,n,r,o,i=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ce(r);if(o){var n=Ce(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oe(e)}(this,e)});function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pe(Oe(e=i.call.apply(i,[this].concat(n))),"bitLength",0),Pe(Oe(e),"maxId_",0),Pe(Oe(e),"set_",new Set),e}return t=s,n=[{key:me,value:_e().mark((function e(){var t;return _e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=1;case 1:if(!(t<=this.maxId)){e.next=7;break}return e.next=4,[t,this.has(t)];case 4:t++,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"values",value:function(){return this.set_.values()}},{key:"maxId",get:function(){return this.maxId_}},{key:"has",value:function(e){return this.set_.has(e)}},{key:"unset",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t.unset(e)})):"object"===we(e)?this.unset(Object.keys(e).map((function(e){return Number(e)}))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((function(e){t.maxId_=Math.max(t.maxId,e)}))))}},{key:"isIntMap",value:function(e){var t=this,n="object"===we(e);return n=n&&Object.keys(e).every((function(n){var r=Number.isInteger(parseInt(n,10));return(r=r&&t.isValidNumber(e[n].id))&&void 0!==e[n].name})),n}},{key:"isValidNumber",value:function(e){return parseInt(e,10)>0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new W("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}],n&&Se(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(D);function Ke(e){return Ke="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},Ke(e)}function Ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$e(r.key),r)}}function Je(e,t,n){return t&&Ye(e.prototype,t),n&&Ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ze(e,t,n){return(t=$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){var t=function(e,t){if("object"!==Ke(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ke(t)?t:String(t)}Ie=V.cmpId,je=V.cmpVersion,Ae=V.consentLanguage,Te=V.consentScreen,ke=V.created,Ve=V.isServiceSpecific,xe=V.lastUpdated,Me=V.policyVersion,Re=V.publisherCountryCode,Fe=V.publisherLegitimateInterests,De=V.publisherConsents,Ne=V.purposeConsents,Ue=V.purposeLegitimateInterests,Be=V.purposeOneTreatment,Ge=V.specialFeatureOptins,He=V.useNonStandardTexts,Qe=V.vendorListVersion,qe=V.version;var Ze=Je((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));function Xe(e){return Xe="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},Xe(e)}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tt(r.key),r)}}function tt(e){var t=function(e,t){if("object"!==Xe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xe(t)?t:String(t)}ze(Ze,Ie,12),ze(Ze,je,12),ze(Ze,Ae,12),ze(Ze,Te,6),ze(Ze,ke,36),ze(Ze,Ve,1),ze(Ze,xe,36),ze(Ze,Me,6),ze(Ze,Re,12),ze(Ze,Fe,24),ze(Ze,De,24),ze(Ze,Ne,24),ze(Ze,Ue,24),ze(Ze,Be,1),ze(Ze,Ge,12),ze(Ze,He,1),ze(Ze,Qe,12),ze(Ze,qe,6),ze(Ze,"anyBoolean",1),ze(Ze,"encodingType",1),ze(Ze,"maxId",16),ze(Ze,"numCustomPurposes",6),ze(Ze,"numEntries",12),ze(Ze,"numRestrictions",12),ze(Ze,"purposeId",6),ze(Ze,"restrictionType",2),ze(Ze,"segmentType",3),ze(Ze,"singleOrRange",1),ze(Ze,"vendorId",16);var nt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){return String(Number(e))}},{key:"decode",value:function(e){return"1"===e}}],null&&et(t.prototype,null),n&&et(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rt(e){return rt="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},rt(e)}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,it(r.key),r)}}function it(e){var t=function(e,t){if("object"!==rt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rt(t)?t:String(t)}var st=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new a("".concat(e," too large to encode into ").concat(t));return n.length<t&&(n="0".repeat(t-n.length)+n),n}},{key:"decode",value:function(e,t){if(t!==e.length)throw new h("invalid bit length");return parseInt(e,2)}}],null&&ot(t.prototype,null),n&&ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function at(e){return at="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},at(e)}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ut(r.key),r)}}function ut(e){var t=function(e,t){if("object"!==at(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===at(t)?t:String(t)}var lt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){return st.encode(Math.round(e.getTime()/100),t)}},{key:"decode",value:function(e,t){if(t!==e.length)throw new h("invalid bit length");var n=new Date;return n.setTime(100*st.decode(e,t)),n}}],null&&ct(t.prototype,null),n&&ct(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pt(e){return pt="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},pt(e)}function ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dt(r.key),r)}}function dt(e){var t=function(e,t){if("object"!==pt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pt(t)?t:String(t)}var ht=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){for(var n="",r=1;r<=t;r++)n+=nt.encode(e.has(r));return n}},{key:"decode",value:function(e,t){if(e.length!==t)throw new h("bitfield encoding length mismatch");for(var n=new We,r=1;r<=t;r++)nt.decode(e[r-1])&&n.set(r);return n.bitLength=e.length,n}}],null&&ft(t.prototype,null),n&&ft(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vt(e){return vt="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},vt(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bt(r.key),r)}}function bt(e){var t=function(e,t){if("object"!==vt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===vt(t)?t:String(t)}var mt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){var n=(e=e.toUpperCase()).charCodeAt(0)-65,r=e.charCodeAt(1)-65;if(n<0||n>25||r<0||r>25)throw new a("invalid language code: ".concat(e));if(t%2==1)throw new a("numBits must be even, ".concat(t," is not valid"));return t/=2,st.encode(n,t)+st.encode(r,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new h("invalid bit length for language");var n=e.length/2,r=st.decode(e.slice(0,n),n)+65,o=st.decode(e.slice(n),n)+65;return String.fromCharCode(r)+String.fromCharCode(o)}}],null&&yt(t.prototype,null),n&&yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gt(e){return gt="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},gt(e)}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_t(r.key),r)}}function _t(e){var t=function(e,t){if("object"!==gt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===gt(t)?t:String(t)}var St,Et=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){var t=st.encode(e.numRestrictions,Ze.numRestrictions);if(!e.isEmpty()){var n=function(t,n){for(var r=t+1;r<=n;r++)if(e.gvl.vendorIds.has(r))return r;return t};e.getRestrictions().forEach((function(r){t+=st.encode(r.purposeId,Ze.purposeId),t+=st.encode(r.restrictionType,Ze.restrictionType);for(var o=e.getVendors(r),i=o.length,s=0,a=0,c="",u=0;u<i;u++){var l=o[u];if(0===a&&(s++,a=l),u===i-1||o[u+1]>n(l,o[i-1])){var p=!(l===a);c+=nt.encode(p),c+=st.encode(a,Ze.vendorId),p&&(c+=st.encode(l,Ze.vendorId)),a=0}}t+=st.encode(s,Ze.numEntries),t+=c}))}return t}},{key:"decode",value:function(e){var t=0,n=new fe,r=st.decode(e.substr(t,Ze.numRestrictions),Ze.numRestrictions);t+=Ze.numRestrictions;for(var o=0;o<r;o++){var i=st.decode(e.substr(t,Ze.purposeId),Ze.purposeId);t+=Ze.purposeId;var s=st.decode(e.substr(t,Ze.restrictionType),Ze.restrictionType);t+=Ze.restrictionType;var a=new ee(i,s),c=st.decode(e.substr(t,Ze.numEntries),Ze.numEntries);t+=Ze.numEntries;for(var u=0;u<c;u++){var l=nt.decode(e.substr(t,Ze.anyBoolean));t+=Ze.anyBoolean;var p=st.decode(e.substr(t,Ze.vendorId),Ze.vendorId);if(t+=Ze.vendorId,l){var f=st.decode(e.substr(t,Ze.vendorId),Ze.vendorId);if(t+=Ze.vendorId,f<p)throw new h("Invalid RangeEntry: endVendorId ".concat(f," is less than ").concat(p));for(var d=p;d<=f;d++)n.add(d,a)}else n.add(p,a)}}return n.bitLength=t,n}}],null&&wt(t.prototype,null),n&&wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ot(e){return Ot="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},Ot(e)}function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pt(r.key),r)}}function Pt(e){var t=function(e,t){if("object"!==Ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ot(t)?t:String(t)}!function(e){e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE"}(St||(St={}));var Lt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){var t,n=[],r=[],o=st.encode(e.maxId,Ze.maxId),i="",s=Ze.maxId+Ze.encodingType,a=s+e.maxId,c=2*Ze.vendorId+Ze.singleOrRange+Ze.numEntries,u=s+Ze.numEntries;return e.forEach((function(o,s){i+=nt.encode(o),(t=e.maxId>c&&u<a)&&o&&(e.has(s+1)?0===r.length&&(r.push(s),u+=Ze.singleOrRange,u+=Ze.vendorId):(r.push(s),u+=Ze.vendorId,n.push(r),r=[]))})),t?(o+=String(St.RANGE),o+=this.buildRangeEncoding(n)):(o+=String(St.FIELD),o+=i),o}},{key:"decode",value:function(e,t){var n,r=0,o=st.decode(e.substr(r,Ze.maxId),Ze.maxId);r+=Ze.maxId;var i=st.decode(e.charAt(r),Ze.encodingType);if(r+=Ze.encodingType,i===St.RANGE){if(n=new We,1===t){if("1"===e.substr(r,1))throw new h("Unable to decode default consent=1");r++}var s=st.decode(e.substr(r,Ze.numEntries),Ze.numEntries);r+=Ze.numEntries;for(var a=0;a<s;a++){var c=nt.decode(e.charAt(r));r+=Ze.singleOrRange;var u=st.decode(e.substr(r,Ze.vendorId),Ze.vendorId);if(r+=Ze.vendorId,c){var l=st.decode(e.substr(r,Ze.vendorId),Ze.vendorId);r+=Ze.vendorId;for(var p=u;p<=l;p++)n.set(p)}else n.set(u)}}else{var f=e.substr(r,o);r+=o,n=ht.decode(f,o)}return n.bitLength=r,n}},{key:"buildRangeEncoding",value:function(e){var t=e.length,n=st.encode(t,Ze.numEntries);return e.forEach((function(e){var t=1===e.length;n+=nt.encode(!t),n+=st.encode(e[0],Ze.vendorId),t||(n+=st.encode(e[1],Ze.vendorId))})),n}}],null&&Ct(t.prototype,null),n&&Ct(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function It(e){return It="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},It(e)}function jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==It(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===It(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(){var e;return jt(e={},V.version,st),jt(e,V.created,lt),jt(e,V.lastUpdated,lt),jt(e,V.cmpId,st),jt(e,V.cmpVersion,st),jt(e,V.consentScreen,st),jt(e,V.consentLanguage,mt),jt(e,V.vendorListVersion,st),jt(e,V.policyVersion,st),jt(e,V.isServiceSpecific,nt),jt(e,V.useNonStandardTexts,nt),jt(e,V.specialFeatureOptins,ht),jt(e,V.purposeConsents,ht),jt(e,V.purposeLegitimateInterests,ht),jt(e,V.purposeOneTreatment,nt),jt(e,V.publisherCountryCode,mt),jt(e,V.vendorConsents,Lt),jt(e,V.vendorLegitimateInterests,Lt),jt(e,V.publisherRestrictions,Et),jt(e,"segmentType",st),jt(e,V.vendorsDisclosed,Lt),jt(e,V.vendorsAllowed,Lt),jt(e,V.publisherConsents,ht),jt(e,V.publisherLegitimateInterests,ht),jt(e,V.numCustomPurposes,st),jt(e,V.publisherCustomConsents,ht),jt(e,V.publisherCustomLegitimateInterests,ht),e}function Tt(e){return Tt="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},Tt(e)}function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mt(r.key),r)}}function Vt(e,t,n){return t&&kt(e.prototype,t),n&&kt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xt(e,t,n){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e){var t=function(e,t){if("object"!==Tt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Tt(t)?t:String(t)}var Rt=Vt((function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xt(this,"1",xt({},le.CORE,[V.version,V.created,V.lastUpdated,V.cmpId,V.cmpVersion,V.consentScreen,V.consentLanguage,V.vendorListVersion,V.purposeConsents,V.vendorConsents])),xt(this,"2",(xt(t={},le.CORE,[V.version,V.created,V.lastUpdated,V.cmpId,V.cmpVersion,V.consentScreen,V.consentLanguage,V.vendorListVersion,V.policyVersion,V.isServiceSpecific,V.useNonStandardTexts,V.specialFeatureOptins,V.purposeConsents,V.purposeLegitimateInterests,V.purposeOneTreatment,V.publisherCountryCode,V.vendorConsents,V.vendorLegitimateInterests,V.publisherRestrictions]),xt(t,le.PUBLISHER_TC,[V.publisherConsents,V.publisherLegitimateInterests,V.numCustomPurposes,V.publisherCustomConsents,V.publisherCustomLegitimateInterests]),xt(t,le.VENDORS_ALLOWED,[V.vendorsAllowed]),xt(t,le.VENDORS_DISCLOSED,[V.vendorsDisclosed]),t))}));function Ft(e){return Ft="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},Ft(e)}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bt(r.key),r)}}function Nt(e,t,n){return t&&Dt(e.prototype,t),n&&Dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ut(e,t,n){return(t=Bt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e){var t=function(e,t){if("object"!==Ft(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ft(t)?t:String(t)}var Gt=Nt((function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ut(this,"1",[le.CORE]),Ut(this,"2",[le.CORE]),2===t.version)if(t.isServiceSpecific)this[2].push(le.PUBLISHER_TC);else{var r=!(!n||!n.isForVendors);r&&!0!==t[V.supportOOB]||this[2].push(le.VENDORS_DISCLOSED),r&&(t[V.supportOOB]&&t[V.vendorsAllowed].size>0&&this[2].push(le.VENDORS_ALLOWED),this[2].push(le.PUBLISHER_TC))}}));function Ht(e){return Ht="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},Ht(e)}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qt(r.key),r)}}function qt(e){var t=function(e,t){if("object"!==Ht(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ht(t)?t:String(t)}var Wt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){var n,r=this;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new a("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var o="";t!==le.CORE&&(o=st.encode(ge.KEY_TO_ID[t],Ze.segmentType));var i=At();return n.forEach((function(n){var s=e[n],c=i[n],u=Ze[n];void 0===u&&r.isPublisherCustom(n)&&(u=Number(e[V.numCustomPurposes]));try{o+=c.encode(s,u)}catch(e){throw new a("Error encoding ".concat(t,"->").concat(n,": ").concat(e.message))}})),g.encode(o)}},{key:"decode",value:function(e,t,n){var r=this,o=g.decode(e),i=0;n===le.CORE&&(t.version=st.decode(o.substr(i,Ze[V.version]),Ze[V.version])),n!==le.CORE&&(i+=Ze.segmentType);var s=this.fieldSequence[String(t.version)][n],a=At();return s.forEach((function(e){var n=a[e],s=Ze[e];if(void 0===s&&r.isPublisherCustom(e)&&(s=Number(t[V.numCustomPurposes])),0!==s){var c=o.substr(i,s);if(t[e]=n===Lt?n.decode(c,t.version):n.decode(c,s),Number.isInteger(s))i+=s;else{if(!Number.isInteger(t[e].bitLength))throw new h(e);i+=t[e].bitLength}}})),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}],null&&Qt(t.prototype,null),n&&Qt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kt(e){return Kt="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},Kt(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jt(r.key),r)}}function Jt(e){var t=function(e,t){if("object"!==Kt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kt(t)?t:String(t)}!function(e,t,n){(t=qt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Wt,"fieldSequence",new Rt);var zt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"process",value:function(e,t){var n=e.gvl;if(!n)throw new a("Unable to encode TCModel without a GVL");if(!n.isReady)throw new a("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var r=e.version-1;if(!this.processor[r])throw new a("Invalid version: ".concat(e.version));return this.processor[r](e,n)}}],null&&Yt(t.prototype,null),n&&Yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $t(e){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function Zt(e){var t="function"==typeof Map?new Map:void 0;return Zt=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Xt(e,arguments,nn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),tn(r,e)},Zt(e)}function Xt(e,t,n){return Xt=en()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&tn(o,n.prototype),o},Xt.apply(null,arguments)}function en(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function tn(e,t){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tn(e,t)}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}!function(e,t,n){(t=Jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(zt,"processor",[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((function(n,r){n.forEach((function(o,i){if(o){var s=t.vendors[i];if(!s||s.deletedDate)n.unset(i);else if(0===s[r].length)if("legIntPurposes"===r&&0===s.purposes.length&&0===s.legIntPurposes.length&&s.specialPurposes.length>0)n.set(i);else if("legIntPurposes"===r&&s.purposes.length>0&&0===s.legIntPurposes.length&&s.specialPurposes.length>0)n.set(i);else if(e.isServiceSpecific)if(0===s.flexiblePurposes.length)n.unset(i);else{for(var a=e.publisherRestrictions.getRestrictions(i),c=!1,u=0,l=a.length;u<l&&!c;u++)c=a[u].restrictionType===q.REQUIRE_CONSENT&&"purposes"===r||a[u].restrictionType===q.REQUIRE_LI&&"legIntPurposes"===r;c||n.unset(i)}else n.unset(i)}}))})),e.vendorsDisclosed.set(t.vendors),e}]);var rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tn(e,t)}(i,e);var t,n,r,o=(n=i,r=en(),function(){var e,t=nn(n);if(r){var o=nn(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===$t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).name="GVLError",t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(Zt(Error));function on(e){return on="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},on(e)}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(){cn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof f?t:f,s=Object.create(i.prototype),a=new C(o||[]);return r(s,"_invoke",{value:_(e,n,a)}),s}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function f(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(P([])));b&&b!==t&&n.call(b,i)&&(v=b);var m=h.prototype=f.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,s,a){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==on(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(p).then((function(e){u.value=e,s(u)}),(function(e){return o("throw",e,s,a)}))}a(c.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=h,r(m,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(w.prototype),c(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},g(m),c(m,a,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function un(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function ln(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){un(i,r,o,s,a,"next",e)}function a(e){un(i,r,o,s,a,"throw",e)}s(void 0)}))}}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yn(r.key),r)}}function fn(e,t){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fn(e,t)}function dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hn(e)}function vn(e,t,n){return(t=yn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){var t=function(e,t){if("object"!==on(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===on(t)?t:String(t)}var bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fn(e,t)}(u,e);var t,n,r,o,i,s,a,c=(s=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=hn(s);if(a){var n=hn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===on(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dn(e)}(this,e)});function u(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),vn(dn(n=c.call(this)),"readyPromise",void 0),vn(dn(n),"gvlSpecificationVersion",void 0),vn(dn(n),"vendorListVersion",void 0),vn(dn(n),"tcfPolicyVersion",void 0),vn(dn(n),"lastUpdated",void 0),vn(dn(n),"purposes",void 0),vn(dn(n),"specialPurposes",void 0),vn(dn(n),"features",void 0),vn(dn(n),"specialFeatures",void 0),vn(dn(n),"isReady_",!1),vn(dn(n),"vendors_",void 0),vn(dn(n),"vendorIds",void 0),vn(dn(n),"fullVendorList",void 0),vn(dn(n),"googleVendors_",void 0),vn(dn(n),"googleVendorIds",void 0),vn(dn(n),"fullGoogleVendorList",void 0),vn(dn(n),"byPurposeVendorMap",void 0),vn(dn(n),"bySpecialPurposeVendorMap",void 0),vn(dn(n),"byFeatureVendorMap",void 0),vn(dn(n),"bySpecialFeatureVendorMap",void 0),vn(dn(n),"stacks",void 0),vn(dn(n),"dataCategories",void 0),vn(dn(n),"lang_",void 0),vn(dn(n),"cacheLang_",void 0),vn(dn(n),"isLatest",!1);var r=u.baseUrl,o=null==t?void 0:t.language;if(o)try{o=u.consentLanguages.parseLanguage(o)}catch(e){throw new rn("Error during parsing the language: "+e.message)}if(n.lang_=o||u.DEFAULT_LANGUAGE,n.cacheLang_=o||u.DEFAULT_LANGUAGE,n.isVendorList(e))n.populate(e),n.readyPromise=Promise.resolve();else{if(!r)throw new rn("must specify GVL.baseUrl before loading GVL json");if(e>0){var i=e;u.CACHE.has(i)?(n.populate(u.CACHE.get(i)),n.readyPromise=Promise.resolve()):(r+=u.versionedFilename.replace("[VERSION]",String(i)),n.readyPromise=n.fetchJson(r))}else u.CACHE.has(u.LATEST_CACHE_KEY)?(n.populate(u.CACHE.get(u.LATEST_CACHE_KEY)),n.readyPromise=Promise.resolve()):(n.isLatest=!0,n.readyPromise=n.fetchJson(r+u.latestFilename))}return n}return t=u,n=[{key:"cacheLanguage",value:function(){u.LANGUAGE_CACHE.has(this.cacheLang_)||u.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(i=ln(cn().mark((function e(t){var n,r,o,i,s,a,c=this;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="GVL_JSON_".concat(this.isLatest?"latest":this.vendorListVersion),r="".concat(n,"_expiry"),o=36e5,i=sessionStorage.getItem(n),s=sessionStorage.getItem(r),a=Date.now(),!(i&&s&&a<parseInt(s,10))){e.next=11;break}return this.populate(JSON.parse(i)),e.abrupt("return",Promise.resolve());case 11:return e.abrupt("return",fetch(t).then((function(e){if(!e.ok)throw new rn("Failed to load GVL JSON from ".concat(t));return e.json()})).then((function(e){sessionStorage.setItem(n,JSON.stringify(e)),sessionStorage.setItem(r,(a+o).toString()),c.populate(e)})).catch((function(e){throw new rn("Error fetching GVL JSON: ".concat(e.message))})));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"getJson",value:function(){return an(an({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{},{vendors:this.cloneVendors(),googleVendors:this.googleVendors})}},{key:"cloneSpecialFeatures",value:function(){for(var e={},t=0,n=Object.keys(this.specialFeatures);t<n.length;t++){var r=n[t];e[r]=u.cloneFeature(this.specialFeatures[r])}return e}},{key:"cloneFeatures",value:function(){for(var e={},t=0,n=Object.keys(this.features);t<n.length;t++){var r=n[t];e[r]=u.cloneFeature(this.features[r])}return e}},{key:"cloneStacks",value:function(){for(var e={},t=0,n=Object.keys(this.stacks);t<n.length;t++){var r=n[t];e[r]=u.cloneStack(this.stacks[r])}return e}},{key:"cloneDataCategories",value:function(){for(var e={},t=0,n=Object.keys(this.dataCategories);t<n.length;t++){var r=n[t];e[r]=u.cloneDataCategory(this.dataCategories[r])}return e}},{key:"cloneSpecialPurposes",value:function(){for(var e={},t=0,n=Object.keys(this.specialPurposes);t<n.length;t++){var r=n[t];e[r]=u.clonePurpose(this.specialPurposes[r])}return e}},{key:"clonePurposes",value:function(){for(var e={},t=0,n=Object.keys(this.purposes);t<n.length;t++){var r=n[t];e[r]=u.clonePurpose(this.purposes[r])}return e}},{key:"cloneVendors",value:function(){for(var e={},t=0,n=Object.keys(this.fullVendorList);t<n.length;t++){var r=n[t];e[r]=u.cloneVendor(this.fullVendorList[r])}return e}},{key:"changeLanguage",value:(o=ln(cn().mark((function e(t){var n,r,o,i,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t,e.prev=1,n=u.consentLanguages.parseLanguage(t),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),new rn("Error during parsing the language: "+e.t0.message);case 8:if(r=t.toUpperCase(),n.toLowerCase()!==u.DEFAULT_LANGUAGE.toLowerCase()||u.LANGUAGE_CACHE.has(r)){e.next=11;break}return e.abrupt("return");case 11:if(n===this.lang_){e.next=29;break}if(this.lang_=n,!u.LANGUAGE_CACHE.has(r)){e.next=18;break}for(i in o=u.LANGUAGE_CACHE.get(r))o.hasOwnProperty(i)&&(this[i]=o[i]);e.next=29;break;case 18:return s=u.baseUrl+u.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),e.prev=19,e.next=22,this.fetchJson(s);case 22:this.cacheLang_=r,this.cacheLanguage(),e.next=29;break;case 26:throw e.prev=26,e.t1=e.catch(19),new rn("unable to load language: "+e.t1.message);case 29:case"end":return e.stop()}}),e,this,[[1,5],[19,26]])}))),function(e){return o.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.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.googleVendors_=e.googleVendors,this.fullGoogleVendorList=e.googleVendors,this.mapVendors(),this.mapGoogleVendors(),this.isReady_=!0,this.isLatest&&u.CACHE.set(u.LATEST_CACHE_KEY,this.getJson()),u.CACHE.has(this.vendorListVersion)||u.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(e){t.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((function(e){t.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((function(e){t.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((function(e){return+e}))),this.vendorIds=new Set(e),this.vendors_=e.reduce((function(e,n){var r=t.vendors_[String(n)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)})),e[n]=r),e}),{})}},{key:"mapGoogleVendors",value:function(e){var t=this;Array.isArray(e)||(e=Object.keys(this.fullGoogleVendorList).map((function(e){return+e}))),this.googleVendors_=e.reduce((function(e,n){var r=t.googleVendors_[String(n)];return r&&(e[n]=r),e}),{}),this.googleVendorIds=new Set(Object.keys(this.googleVendors_))}},{key:"getFilteredVendors",value:function(e,t,n,r){var o=this,i=e.charAt(0).toUpperCase()+e.slice(1),s={};return("purpose"===e&&n?this["by"+i+"VendorMap"][String(t)][n]:this["by"+(r?"Special":"")+i+"VendorMap"][String(t)]).forEach((function(e){s[String(e)]=o.vendors[String(e)]})),s}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"googleVendors",get:function(){return this.googleVendors_}},{key:"narrowGoogleVendorsTo",value:function(e){this.mapGoogleVendors(e)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var e=new u(this.getJson());return this.lang_!==u.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}}],r=[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new rn("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}},{key:"emptyLanguageCache",value:function(e){var t=!1;return null==e&&u.LANGUAGE_CACHE.size>0?(u.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(u.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(u.CACHE.delete(e),t=!0):void 0===e&&(u.CACHE=new Map,t=!0),t}},{key:"clonePurpose",value:function(e){return an(an({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneFeature",value:function(e){return an(an({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneDataCategory",value:function(e){return{id:e.id,name:e.name,description:e.description}}},{key:"cloneStack",value:function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}},{key:"cloneDataRetention",value:function(e){return an(an({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{},{purposes:an({},e.purposes),specialPurposes:an({},e.specialPurposes)})}},{key:"cloneVendorUrls",value:function(e){return e.map((function(e){return an({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})}))}},{key:"cloneVendor",value:function(e){return an(an(an(an(an(an(an(an(an(an(an({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})}},{key:"isInstanceOf",value:function(e){return"object"===on(e)&&"function"==typeof e.narrowVendorsTo}}],n&&pn(t.prototype,n),r&&pn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(D);function mn(e){return mn="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},mn(e)}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,On(r.key),r)}}function wn(e,t){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wn(e,t)}function _n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function En(e,t,n){return(t=On(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(e){var t=function(e,t){if("object"!==mn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mn(t)?t:String(t)}vn(bn,"LANGUAGE_CACHE",new Map),vn(bn,"CACHE",new Map),vn(bn,"LATEST_CACHE_KEY",0),vn(bn,"DEFAULT_LANGUAGE","EN"),vn(bn,"consentLanguages",new L),vn(bn,"baseUrl_",void 0),vn(bn,"latestFilename","vendor-list.json"),vn(bn,"versionedFilename","archives/vendor-list-v[VERSION].json"),vn(bn,"languageFilename","purposes-[LANG].json");var Cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wn(e,t)}(s,e);var t,n,r,o,i=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Sn(r);if(o){var n=Sn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _n(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),En(_n(t=i.call(this)),"isServiceSpecific_",!1),En(_n(t),"supportOOB_",!0),En(_n(t),"useNonStandardTexts_",!1),En(_n(t),"purposeOneTreatment_",!1),En(_n(t),"publisherCountryCode_","AA"),En(_n(t),"version_",2),En(_n(t),"consentScreen_",0),En(_n(t),"policyVersion_",4),En(_n(t),"consentLanguage_","EN"),En(_n(t),"cmpId_",0),En(_n(t),"cmpVersion_",0),En(_n(t),"vendorListVersion_",0),En(_n(t),"numCustomPurposes_",0),En(_n(t),"gvl_",void 0),En(_n(t),"created",void 0),En(_n(t),"lastUpdated",void 0),En(_n(t),"specialFeatureOptins",new We),En(_n(t),"purposeConsents",new We),En(_n(t),"purposeLegitimateInterests",new We),En(_n(t),"publisherConsents",new We),En(_n(t),"publisherLegitimateInterests",new We),En(_n(t),"publisherCustomConsents",new We),En(_n(t),"publisherCustomLegitimateInterests",new We),En(_n(t),"customPurposes",void 0),En(_n(t),"vendorConsents",new We),En(_n(t),"vendorLegitimateInterests",new We),En(_n(t),"vendorsDisclosed",new We),En(_n(t),"vendorsAllowed",new We),En(_n(t),"publisherRestrictions",new fe),e&&(t.gvl=e),t.updated(),t}return t=s,(n=[{key:"gvl",get:function(){return this.gvl_},set:function(e){bn.isInstanceOf(e)||(e=new bn(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}},{key:"cmpId",get:function(){return this.cmpId_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new W("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new W("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new W("consentScreen",e);this.consentScreen_=e}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new W("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)>>0)<0)throw new W("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new W("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;if("object"===mn(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 W("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}])&&gn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(D);function Pn(e){return Pn="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},Pn(e)}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,In(r.key),r)}}function In(e){var t=function(e,t){if("object"!==Pn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Pn(t)?t:String(t)}En(Cn,"consentLanguages",bn.consentLanguages);var jn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){var n,r="";return e=zt.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new Gt(e,t)[""+e.version]).forEach((function(t,o){var i="";o<n.length-1&&(i="."),r+=Wt.encode(e,t)+i})),r}},{key:"decode",value:function(e,t){var n=e.split("."),r=n.length;t||(t=new Cn);for(var o=0;o<r;o++){var i=n[o],s=g.decode(i.charAt(0)).substr(0,Ze.segmentType),a=ge.ID_TO_KEY[st.decode(s,Ze.segmentType).toString()];Wt.decode(i,t,a)}return t}}],null&&Ln(t.prototype,null),n&&Ln(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),An=n(604);function Tn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null,o={};return"POST"===t&&n&&(r=JSON.stringify(n),o["Content-Type"]="application/json"),fetch(e,{method:t,headers:o,body:r})}function kn(e){return kn="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},kn(e)}function Vn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Mn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||Mn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mn(e,t){if(e){if("string"==typeof e)return Rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rn(e,t):void 0}}function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fn(){Fn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof f?t:f,s=Object.create(i.prototype),a=new C(o||[]);return r(s,"_invoke",{value:_(e,n,a)}),s}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function f(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(P([])));b&&b!==t&&n.call(b,i)&&(v=b);var m=h.prototype=f.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,s,a){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==kn(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(p).then((function(e){u.value=e,s(u)}),(function(e){return o("throw",e,s,a)}))}a(c.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=h,r(m,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(w.prototype),c(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},g(m),c(m,a,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function Dn(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function Nn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Dn(i,r,o,s,a,"next",e)}function a(e){Dn(i,r,o,s,a,"throw",e)}s(void 0)}))}}window.cookielawinfo=window.cookielawinfo||{};var Un,Bn=window.cookielawinfo,Gn=window.iabConfig,Hn=window.iabTranslations,Qn=n(259).CmpApi,qn=Gn.isGoogleACMEnabled;function Wn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=document.querySelector(e);n&&(n.checked=t)}function Kn(){return Yn.apply(this,arguments)}function Yn(){return(Yn=Nn(Fn().mark((function e(){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Bn._cmpAPI=qn?new Qn(404,1,!0,{getTCData:function(e,t,n){"boolean"!=typeof t&&(t.addtl_consent=Bn._addtlConsent),e(t,n)}}):new Qn(404,1,!0),e.next=4,Jn();case 4:document.addEventListener("cli_consent_update",(function(e){!function(){var e,t,n,r,o,i,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";if("all"===s)Bn._tcModel.purposeLegitimateInterests.set([2,7,8,9,10,11]),Bn._tcModel.setAllPurposeConsents(),Bn._tcModel.setAllSpecialFeatureOptins(),Bn._tcModel.setAllVendorLegitimateInterests(),Bn._tcModel.setAllVendorConsents(),qn&&nr(Array.from(Bn._tcModel.gvl.googleVendorIds));else if(Bn._tcModel.unsetAll(),nr([]),"custom"===s){var a=xn(rr(),5);e=a[0],t=a[1],n=a[2],r=a[3],o=a[4],qn&&(i=rr()[5]),Bn._tcModel.vendorConsents.set(t),Bn._tcModel.vendorLegitimateInterests.set(e),Bn._tcModel.purposeLegitimateInterests.set(r),Bn._tcModel.purposeConsents.set(n),Bn._tcModel.specialFeatureOptins.set(o),qn&&nr(i)}Lr("euconsent","".concat(tr(),",").concat(Bn._cliEncodeACString(Bn._addtlConsent||"")),CLI_ACCEPT_COOKIE_EXPIRE),ir(),Bn._cliIABStatusUpdate(!1)}(e.detail.status)})),document.querySelectorAll(".wt-cli-vendors-btn").forEach((function(e){var t=e.getAttribute("data-tag");e.addEventListener("click",(function(){return function(e){_cliIABShowTab("cli_cookie_vendors");var t=Ir("#wt-cli-iab-".concat(e,"-consents"));t&&t.click()}(t)}))})),Cr(),Object.values(Bn._tcModel.gvl.purposes).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithConsentPurpose(e.id))+or(Bn._tcModel.gvl.getVendorsWithFlexiblePurpose(e.id))+or(Bn._tcModel.gvl.getVendorsWithLegIntPurpose(e.id)),n=document.querySelector("#wt-cli-iab-purpose-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),Object.values(Bn._tcModel.gvl.specialPurposes).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithSpecialPurpose(e.id)),n=document.querySelector("#wt-cli-iab-specialpurpose-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),Object.values(Bn._tcModel.gvl.features).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithFeature(e.id)),n=document.querySelector("#wt-cli-iab-feature-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),Object.values(Bn._tcModel.gvl.specialFeatures).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithSpecialFeature(e.id)),n=document.querySelector("#wt-cli-iab-specialfeature-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),cr(),_r(),ir(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.error(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function Jn(){return zn.apply(this,arguments)}function zn(){return(zn=Nn(Fn().mark((function e(){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Bn._tcModel){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,$n();case 4:er(e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $n(){return Zn.apply(this,arguments)}function Zn(){return(Zn=Nn(Fn().mark((function e(){var t;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return bn.baseUrl=Gn.baseUrl,bn.latestFilename=Gn.latestFilename,bn.languageFilename=Gn.languageFilename,t=new bn,e.next=6,t.readyPromise;case 6:return null!=Gn&&Gn.allowedVendors&&t.narrowVendorsTo(Gn.allowedVendors),null!=Gn&&Gn.allowedGoogleVendors&&t.narrowGoogleVendorsTo(Gn.allowedGoogleVendors),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xn(e){var t=new Cn(e);return t.purposeLegitimateInterests.set([2,7,8,9,10,11]),t.setAllVendorLegitimateInterests(),t}function er(e){var t=null,n=function(e){for(var t="".concat("euconsent","="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}(),r=null,o=null;if(n){var i=n.split(",");qn||i.length>1?(r=i[0],o=Bn._cliDecodeACString(i[1]||"")):r=n}r?((t=jn.decode(r)).policyVersion_<e.tcfPolicyVersion?(t=Xn(e),Lr("euconsent",tr(),CLI_ACCEPT_COOKIE_EXPIRE)):t.gvl=e,qn&&o&&(Bn._addtlConsent=o)):t=Xn(e),t.cmpId=404,t.cmpVersion=1,t.isServiceSpecific=!0,Bn._tcModel=t}function tr(){return jn.encode(Bn._tcModel,{segments:[le.CORE,le.PUBLISHER_TC]})}function nr(e){Bn._addtlConsent="1~".concat(e.join("."))}function rr(){var e,t,n=xn((e=[],t=[],Object.values(Bn._tcModel.gvl.purposes).forEach((function(n){var r=document.querySelector("#wt-cli-iab-purpose-consents-checkbox-item-".concat(n.id));r&&r.checked&&t.push(n.id);var o=document.querySelector("#wt-cli-iab-purpose-legitimate-interests-checkbox-item-".concat(n.id));o&&o.checked&&e.push(n.id)})),[t,e]),2),r=n[0],o=n[1],i=function(){var e=[],t=[];return Object.values(Bn._tcModel.gvl.specialFeatures).forEach((function(n){var r=document.querySelector("#wt-cli-iab-specialfeature-consents-checkbox-item-".concat(n.id));r&&r.checked&&t.push(n.id);var o=document.querySelector("#wt-cli-iab-specialfeature-consents-checkbox-item-".concat(n.id));o&&o.checked&&e.push(n.id)})),[t,e]}(),s=xn(i,1)[0],a=function(){var e=[],t=[];return Object.values(Bn._tcModel.gvl.vendors).forEach((function(n){var r=document.querySelector("#wt-cli-iab-vendors-consents-checkbox-item-".concat(n.id));r&&r.checked&&t.push(n.id);var o=document.querySelector("#wt-cli-iab-vendors-legitimate-interests-checkbox-item-".concat(n.id));o&&o.checked&&e.push(n.id)})),[t,e]}(),c=xn(a,2),u=c[0],l=c[1],p=function(){var e=[],t=[];return Object.values(Bn._tcModel.gvl.googleVendors).forEach((function(n){var r=document.querySelector("#wt-cli-iab-google-vendors-consents-checkbox-item-".concat(n.id));r&&r.checked&&t.push(n.id);var o=document.querySelector("#wt-cli-iab-google-vendors-consents-checkbox-item-".concat(n.id));o&&o.checked&&e.push(n.id)})),[t,e]}();return[l,u,r,o,s,xn(p,1)[0]]}function or(e){return Object.keys(e).length}function ir(){var e,t,n=function(){for(var e=[],t=[],n=0,r=Object.values(Bn._tcModel.gvl.vendors);n<r.length;n++){var o=r[n];0!==o.purposes.length&&e.push(o.id),0!==o.legIntPurposes.length&&t.push(o.id)}var i={thirdPartySectionChecked:!1,consent:{allowed:[],rejected:[]},legitimateInterest:{allowed:[],rejected:[]}};return Bn._tcModel.vendorConsents.forEach((function(e,t){e?i.consent.allowed.push(t):i.consent.rejected.push(t)})),Bn._tcModel.vendorLegitimateInterests.forEach((function(e,t){e?i.legitimateInterest.allowed.push(t):i.legitimateInterest.rejected.push(t)})),i.thirdPartySectionChecked=i.consent.allowed.length===or(e),i}(),r=n.consent,o=n.legitimateInterest,i=n.thirdPartySectionChecked;if(qn){var s=(e={sectionChecked:!1,consent:{allowed:[],rejected:[]}},t={},Bn._addtlConsent&&Bn._addtlConsent.split("~")[1].split(".").forEach((function(e){return t[e]=!0})),Object.keys(Bn._tcModel.gvl.googleVendors).forEach((function(n){t[n]?e.consent.allowed.push(n):e.consent.rejected.push(n)})),e.sectionChecked=e.consent.allowed.length===or(Bn._tcModel.gvl.googleVendors),e);if(s){Wn("#wt-cli-iab-google-vendors-consents-checkbox",s.sectionChecked);var a,c=Vn(s.consent.allowed);try{for(c.s();!(a=c.n()).done;){var u=a.value;Wn("#wt-cli-iab-google-vendors-consents-checkbox-item-".concat(u))}}catch(e){c.e(e)}finally{c.f()}var l,p=Vn(s.consent.rejected);try{for(p.s();!(l=p.n()).done;){var f=l.value;Wn("#wt-cli-iab-google-vendors-consents-checkbox-item-".concat(f),!1)}}catch(e){p.e(e)}finally{p.f()}}}var d=function(){var e={purposeConsent:{allowed:[],rejected:[]},purposeLegitimateInterest:{allowed:[],rejected:[]},specialFeatures:{allowed:[],rejected:[]},purposeSectionChecked:!1,specialFeaturesSectionChecked:!1};return Bn._tcModel.purposeConsents.forEach((function(t,n){t?e.purposeConsent.allowed.push(n):e.purposeConsent.rejected.push(n)})),Bn._tcModel.purposeLegitimateInterests.forEach((function(t,n){t?e.purposeLegitimateInterest.allowed.push(n):e.purposeLegitimateInterest.rejected.push(n)})),Bn._tcModel.specialFeatureOptins.forEach((function(t,n){t?e.specialFeatures.allowed.push(n):e.specialFeatures.rejected.push(n)})),e.purposeSectionChecked=e.purposeConsent.allowed.length===or(Bn._tcModel.gvl.purposes),e.specialFeaturesSectionChecked=e.specialFeatures.allowed.length===or(Bn._tcModel.gvl.specialFeatures),e}(),h=d.purposeConsent,v=d.purposeLegitimateInterest,y=d.specialFeatures,b=d.purposeSectionChecked,m=d.specialFeaturesSectionChecked;Wn("#wt-cli-iab-vendors-consents-checkbox",i);var g,w=Vn(r.allowed);try{for(w.s();!(g=w.n()).done;){var _=g.value;Wn("#wt-cli-iab-vendors-consents-checkbox-item-".concat(_))}}catch(e){w.e(e)}finally{w.f()}var S,E=Vn(r.rejected);try{for(E.s();!(S=E.n()).done;){var O=S.value;Wn("#wt-cli-iab-vendors-consents-checkbox-item-".concat(O),!1)}}catch(e){E.e(e)}finally{E.f()}var C,P=Vn(o.allowed);try{for(P.s();!(C=P.n()).done;){var L=C.value;Wn("#wt-cli-iab-vendors-legitimate-interests-checkbox-item-".concat(L))}}catch(e){P.e(e)}finally{P.f()}var I,j=Vn(o.rejected);try{for(j.s();!(I=j.n()).done;){var A=I.value;Wn("#wt-cli-iab-vendors-legitimate-interests-checkbox-item-".concat(A),!1)}}catch(e){j.e(e)}finally{j.f()}Wn("#wt-cli-iab-purpose-consents-checkbox",b),Wn("#wt-cli-iab-specialfeature-consents-checkbox",m);var T,k=Vn(h.allowed);try{for(k.s();!(T=k.n()).done;){var V=T.value;Wn("#wt-cli-iab-purpose-consents-checkbox-item-".concat(V))}}catch(e){k.e(e)}finally{k.f()}var x,M=Vn(h.rejected);try{for(M.s();!(x=M.n()).done;){var R=x.value;Wn("#wt-cli-iab-purpose-consents-checkbox-item-".concat(R),!1)}}catch(e){M.e(e)}finally{M.f()}var F,D=Vn(v.allowed);try{for(D.s();!(F=D.n()).done;){var N=F.value;Wn("#wt-cli-iab-purpose-legitimate-interests-checkbox-item-".concat(N))}}catch(e){D.e(e)}finally{D.f()}var U,B=Vn(v.rejected);try{for(B.s();!(U=B.n()).done;){var G=U.value;Wn("#wt-cli-iab-purpose-legitimate-interests-checkbox-item-".concat(G),!1)}}catch(e){B.e(e)}finally{B.f()}var H,Q=Vn(y.allowed);try{for(Q.s();!(H=Q.n()).done;){var q=H.value;Wn("#wt-cli-iab-specialfeature-consents-checkbox-item-".concat(q))}}catch(e){Q.e(e)}finally{Q.f()}var W,K=Vn(y.rejected);try{for(K.s();!(W=K.n()).done;){var Y=W.value;Wn("#wt-cli-iab-specialfeature-consents-checkbox-item-".concat(Y),!1)}}catch(e){K.e(e)}finally{K.f()}}function sr(){var e=Bn._tcModel.gvl.vendors;Object.values(e).forEach((function(e){fr(e,"vendors",vr);var t=e.deviceStorageDisclosureUrl;if(t){var n=document.querySelector("#wt-cli-iab-vendors-consents-content-".concat(e.id," .wt-cli-iab-vendor-storage-disclosure-section"));n&&function(e,t,n){var r=document.createElement("button");r.textContent="Show more",r.className="wt-cli-link",e.appendChild(r),r.addEventListener("click",Er.bind(null,e,t))}(n,t,e.id)}}))}Gn.status&&An(),Un=Nn(Fn().mark((function e(){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kn();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])}))),"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Un):Un()),Bn._cliIABStatusUpdate=Nn(Fn().mark((function e(){var t,n,r,o=arguments;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]&&o[0],n=o.length>1&&void 0!==o[1]&&o[1],Gn.status){e.next=4;break}return e.abrupt("return");case 4:if(Bn._tcModel){e.next=7;break}return e.next=7,Jn();case 7:return e.next=9,new Promise((function(e){!function t(){Bn._tcModel&&Bn._tcModel.purposeConsents&&Bn._tcModel.purposeConsents.size>0?e():setTimeout(t,100)}()}));case 9:r=Gn.appliedLaw,Bn._cmpAPI.update("ccpa"!==r?t&&n?"":tr():null,t);case 11:case"end":return e.stop()}}),e)})));var ar=!1;function cr(){var e=Bn._tcModel.gvl.vendors,t=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-vendors-consents-content"),n=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-vendors-consents");t&&n&&n.addEventListener("click",Nn(Fn().mark((function n(){var r;return Fn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!ar){n.next=3;break}return n.abrupt("return");case 3:return t.innerHTML='<div class="cli_loader" style="font-size:14px;">'.concat(Hn.vendorDetails.headers.loading,"</div>"),n.next=6,ur(e,"vendors","third-party-vendors");case 6:r=n.sent,t.innerHTML=r,ir(),ar=!0,sr(),n.next=17;break;case 13:n.prev=13,n.t0=n.catch(0),console.error("Error loading vendor list:",n.t0),t.innerHTML='<div class="error">Failed to load vendor list. Please try again.</div>';case 17:case"end":return n.stop()}}),n,null,[[0,13]])}))))}function ur(e,t,n){return lr.apply(this,arguments)}function lr(){return lr=Nn(Fn().mark((function e(t,n,r){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){setTimeout((function(){try{var i=pr(t,n,r);e(i)}catch(e){o(e)}}),1e3)})));case 1:case"end":return e.stop()}}),e)}))),lr.apply(this,arguments)}function pr(e,t,n){var r="";return Object.values(e).forEach((function(e){r+='\n            <div class="cli-tab-section cli-sub-tab-section">\n                <div class="cli-sub-tab-header wt-cli-iab-'.concat(t,"-consents-item-").concat(e.id,'">\n                    <a id="wt-cli-iab-').concat(t,"-consents-item-").concat(e.id,'" tabindex="0" role="tab" aria-expanded="false" aria-controls="wt-cli-tab-').concat(e.id,'" class="cli-nav-link cli-settings-mobile" data-target="').concat(n,"-").concat(e.id,'" data-toggle="cli-toggle-tab">\n                        ').concat(e.name,"\n                    </a>"),e.legIntPurposes&&e.legIntPurposes.length>0&&"vendors"===t&&(r+='\n                <div class="cli-switch cli-legitimate-switch">\n                    <input type="checkbox" class="cli-iab-checkbox cli-vendors-checkbox" id="wt-cli-iab-'.concat(t,"-legitimate-interests-checkbox-item-").concat(e.id,'" aria-label="').concat(e.name,'" data-id="checkbox-legitimate-').concat(e.id,'" role="switch" aria-controls="wt-cli-iab-').concat(t,"-legitimate-interests-checkbox-item-").concat(e.id,'" aria-labelledby="wt-cli-iab-').concat(t,"-legitimate-interests-checkbox-item-").concat(e.id,'" />\n                    <label for="wt-cli-iab-').concat(t,"-legitimate-interests-checkbox-item-").concat(e.id,'" class="cli-slider" data-cli-enable="').concat(Hn.vendorDetails.others.legitimate_text,'" data-cli-disable="').concat(Hn.vendorDetails.others.legitimate_text,'"><span class="wt-cli-sr-only">').concat(e.name,"</span></label>\n                </div>")),r+='\n                <div class="cli-switch">\n                    <input type="checkbox" class="cli-iab-checkbox cli-vendors-checkbox" id="wt-cli-iab-'.concat(t,"-consents-checkbox-item-").concat(e.id,'" aria-label="third-party-vendors-').concat(e.id,'" data-id="checkbox-').concat(n,"-").concat(e.id,'" role="switch" aria-controls="wt-cli-tab-link-').concat(n,"-").concat(e.id,'" aria-labelledby="wt-cli-tab-link-').concat(e.id,'" />\n                    <label for="wt-cli-iab-').concat(t,"-consents-checkbox-item-").concat(e.id,'" class="cli-slider" data-cli-enable="').concat(Hn.vendorDetails.others.enable,'" data-cli-disable="').concat(Hn.vendorDetails.others.disable,'"><span class="wt-cli-sr-only">').concat(e.id,'</span></label>\n                </div>\n            </div>\n            <div class="cli-sub-tab-content">\n                <div id="wt-cli-iab-').concat(t,"-consents-content-").concat(e.id,'" tabindex="0" role="tabpanel" aria-labelledby="wt-cli-iab-').concat(t,"-consents-item-").concat(e.id,'" class="cli-tab-pane cli-fade" data-id="').concat(n,"-").concat(e.id,'">\n                    <div class="wt-cli-iab-').concat(t,'-detail-section"></div>\n                    <div class="wt-cli-iab-').concat(t,'-storage-disclosure-section"></div>\n                </div>\n            </div>\n        </div>')})),r}function fr(e,t,n){var r=document.querySelector("#wt-cli-iab-".concat(t,"-consents-content-").concat(e.id," .wt-cli-iab-").concat(t,"-detail-section")),o=document.querySelector("#wt-cli-iab-".concat(t,"-consents-item-").concat(e.id));if(r&&o){var i=!1;o.addEventListener("click",Nn(Fn().mark((function t(){var o;return Fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!i){t.next=3;break}return t.abrupt("return");case 3:return r.innerHTML='<div class="cli_loader" style="font-size:14px;">'.concat(Hn.vendorDetails.headers.loading,"</div>"),t.next=6,dr(e,n);case 6:o=t.sent,r.innerHTML=o,i=!0,t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Error loading vendor details:",t.t0),r.innerHTML='<div class="error">Failed to load vendor details. Please try again.</div>';case 15:case"end":return t.stop()}}),t,null,[[0,11]])}))))}}function dr(e,t){return hr.apply(this,arguments)}function hr(){return(hr=Nn(Fn().mark((function e(t,n){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){setTimeout((function(){try{var o=n(t);e(o)}catch(e){r(e)}}),1e3)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vr(e){var t=gr(e.urls,null==Gn?void 0:Gn.currentLanguage,"privacy"),n=gr(e.urls,null==Gn?void 0:Gn.currentLanguage,"legIntClaim"),r=function(e){return e&&e.hasOwnProperty("stdRetention")&&null!==e.stdRetention?e.stdRetention:null}(e.dataRetention),o=yr(t,"".concat(Hn.vendorDetails.others.privacy),"privacy-link"),i=yr(n,"".concat(Hn.vendorDetails.others.legitimate),"claim-link"),s=function(e,t,n,r){return e?'<div class="cli-tab-content-'.concat(n,'">\n                    <label class="cli-').concat(n,'-title cli-vendor-sub-title"> ').concat(t,'</label>\n                    <span class="cli-vendor-sub-title">').concat(e," ").concat("days","</span>\n                </div>"):""}(r,"".concat(Hn.vendorDetails.others.retention),"retention-period"),a=mr(Bn._tcModel.gvl.purposes,e.purposes,e.dataRetention),c=mr(Bn._tcModel.gvl.purposes,e.legIntPurposes,e.dataRetention),u=mr(Bn._tcModel.gvl.specialPurposes,e.specialPurposes,e.dataRetention),l=mr(Bn._tcModel.gvl.specialFeatures,e.specialFeatures,e.dataRetention),p=mr(Bn._tcModel.gvl.features,e.features,e.dataRetention),f=mr(Bn._tcModel.gvl.dataCategories,e.dataDeclaration,e.dataRetention),d=br(a,"".concat(Hn.vendorDetails.headers.purposes)),h=br(c,"".concat(Hn.vendorDetails.headers.legitimate_purposes)),v=br(u,"".concat(Hn.vendorDetails.headers.special_purposes)),y=br(p,"".concat(Hn.vendorDetails.headers.features)),b=br(l,"".concat(Hn.vendorDetails.headers.special_features)),m=br(f,"".concat(Hn.vendorDetails.headers.data_categories)),g="",w=function(e){var t=[];if(void 0!==e.cookieMaxAgeSeconds){var n=Math.round(e.cookieMaxAgeSeconds/86400);t.push({cookieMaxAgeDays:n})}return void 0!==e.cookieRefresh&&t.push({cookieRefresh:e.cookieRefresh}),void 0!==e.usesCookies&&t.push({usesCookies:e.usesCookies}),void 0!==e.usesNonCookieAccess&&t.push({usesNonCookieAccess:e.usesNonCookieAccess}),t}(e);return w&&w.length>0&&(g+='<label class="cli-vendor-sub-title">'.concat(Hn.deviceOverview.title,'</label><ul class="cli_vendor_subtab_header">'),w.forEach((function(e){void 0!==e.cookieMaxAgeDays&&(g+="<li>".concat(Hn.deviceOverview.headers.duration_title).concat(e.cookieMaxAgeDays," days</li>")),void 0!==e.cookieRefresh&&(e.cookieRefresh?g+="<li>".concat(Hn.deviceOverview.headers.cookie_refreshed,"</li>"):g+="<li>".concat(Hn.deviceOverview.headers.cookie_not_refreshed,"</li>")),void 0!==e.usesCookies&&e.usesCookies&&(g+="<li>".concat(Hn.deviceOverview.headers.tracking_title).concat(Hn.deviceOverview.headers.tracking_method),void 0!==e.usesNonCookieAccess&&e.usesNonCookieAccess&&(g+=" ".concat(Hn.deviceOverview.headers.tracking_method_extended)),g+="</li>")})),g+="</ul>"),o+i+s+d+h+v+y+b+m+g}function yr(e,t,n){return e?'<div class="cli-tab-content-'.concat(n,'">\n            <label class="cli-').concat(n,'-title cli-vendor-sub-title"> ').concat(t,'</label>\n            <a class="cli-').concat(n,'" target="_blank" href="').concat(e,'">').concat(e,"</a>\n        </div>"):""}function br(e,t){var n=e.map((function(e){return"<li>".concat(e.name,"</li>")})).join("");return n?'<div class="wt-cli-iab-details-section"><label class="cli-vendor-sub-title">'.concat(t,'</label><ul class ="cli_vendor_subtab_header">').concat(n,"</ul></div>"):""}function mr(e,t,n){return Object.values(e).filter((function(e){return t.includes(e.id)})).map((function(e){var t={name:e.name};return n&&(t[n]=n.purposes[e.id]||0),t}))}function gr(e,t,n){var r=e.find((function(e){return e.langId===t}));if(r)return r[n];var o=e.find((function(e){return"en"===e.langId}));return o?o[n]:null}var wr=!1;function _r(){if(qn){var e=Bn._tcModel.gvl.googleVendors,t=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-google-vendors-consents-content"),n=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-google-vendors-consents");t&&n&&n.addEventListener("click",Nn(Fn().mark((function n(){var r;return Fn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!wr){n.next=3;break}return n.abrupt("return");case 3:return t.innerHTML='<div class="cli_loader" style="font-size:14px;">'.concat(Hn.vendorDetails.headers.loading,"</div>"),n.next=6,ur(e,"google-vendors","google-vendors");case 6:r=n.sent,t.innerHTML=r,ir(),wr=!0,Object.values(e).forEach((function(e){fr(e,"google-vendors",Sr)})),n.next=17;break;case 13:n.prev=13,n.t0=n.catch(0),console.error("Error loading vendor list:",n.t0),t.innerHTML='<div class="error">Failed to load vendor list. Please try again.</div>';case 17:case"end":return n.stop()}}),n,null,[[0,13]])}))))}}function Sr(e){return yr(e.privacy,"".concat(Hn.vendorDetails.others.privacy),"privacy-link")}function Er(e,t,n){return Or.apply(this,arguments)}function Or(){return(Or=Nn(Fn().mark((function e(t,n,r){var o,i,s,a,c,u;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),e.prev=1,e.next=4,Tn(n);case 4:return o=e.sent,e.next=7,o.json();case 7:if((i=e.sent)&&i.disclosures&&i.disclosures.length){e.next=10;break}throw new Error("Invalid disclosures");case 10:s=i.disclosures.map((function(e){return{name:e.identifier,type:e.type,duration:e.maxAgeSeconds?Math.round(e.maxAgeSeconds/86400):0,domain:e.domains||[],purposes:(e.purposes||[]).map((function(e){return Bn._tcModel.gvl.purposes[e].name}))}})),a=s.map((function(e){var t=["name","type","duration","domain","purposes"].map((function(t){return"<li><div>".concat(Hn.storageDisclosures.headers[t],"</div><div>").concat("purposes"===t?'<ul class="wt-cli-iab-purposes-list">'.concat(e.purposes.map((function(e){return"<li>".concat(e,"</li>")})).join(""),"</ul>"):"domain"===t?e.domain.join(","):e[t],"</div></li>")})).join("");return'<ul class="wt-cli-iab-cookie-des-table">'.concat(t,"</ul>")})),c='<label class="cli-vendor-sub-title">'.concat(Hn.storageDisclosures.title,"</label>"),u="".concat(c,'<div class="wt-cli-iab-audit-table">').concat(a.join(""),"</div>"),t.innerHTML=u,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),console.log(e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])})))).apply(this,arguments)}function Cr(){var e=document.querySelector("#wt-cli-iab-notice-toggle");if(e){var t=e.innerHTML,n=or(Bn._tcModel.gvl.vendors);qn&&(n+=or(Bn._tcModel.gvl.googleVendors)),t=t.replace("{{count}}",n),e.innerHTML=t,e.addEventListener("click",Pr.bind(null))}}function Pr(){CLI.TogglePreference(),function(){_cliIABShowTab("cli_cookie_vendors");var e=Ir("#wt-cli-iab-vendors-consents[aria-expanded='false']");e&&e.click()}()}function Lr(e,t,n){var r="";!0===Boolean(Cli_Data.secure_cookies)&&(r=";secure");var o=""!==Cli_Data.cookieDomain?";domain=".concat(Cli_Data.cookieDomain):"",i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var s=";expires=".concat(i.toGMTString());n<1?this.eraseCookie(e,s):document.cookie="".concat(e,"=").concat(t).concat(r).concat(s).concat(o,";path=/")}function Ir(e){return document.querySelector(e)||null}function jr(e,t,n){return e.replace(t,n)}var Ar=new Map([[".1.","k"],[".2.","l"],[".3.","m"],[".4.","n"],[".5.","o"],[".6.","p"],[".7.","q"],[".8.","r"],[".9.","s"],[".10.","t"],[".11.","u"],["00","v"],["k1","a"],["k2","b"],["k3","c"],["k4","d"],["k5","e"],["v.","f"],["12","w"],["13","x"],["14","y"],["15","z"]]);Bn._cliEncodeACString=function(e){var t=e.split("~");if(!t[1]||e.length<1200)return e;var n=t[1].split(".");return t[1]=n.reduce((function(e,t,r){return r>0&&(e="".concat(e,".").concat(Number(t)-Number(n[r-1]))),e}),n[0]),t[1]=Array.from(Ar.entries()).reduce((function(e,t){var n=xn(t,2),r=n[0],o=n[1];return e.split(r).join(o)}),t[1]),t[1]="_".concat(jr(t[1],/(f[0-9]){3,}/g,(function(e){return Bn._cliReplaceAll("G".concat(e,"g"),"f","")}))),t.join("~")},Bn._cliDecodeACString=function(e){var t=e.split("~");if(!t[1]||"_"!==t[1][0])return e;t[1]=jr(t[1].slice(1),/G([0-9]+)g/g,(function(e){return Bn._cliReplaceAll(e.slice(1,-1),"","f").slice(0,-1)}));var n=new Map(Array.from(Ar,(function(e){return e.reverse()})).reverse());t[1]=Array.from(n.entries()).reduce((function(e,t){var n=xn(t,2),r=n[0],o=n[1];return e.split(r).join(o)}),t[1]);var r=t[1].split(".");return t[1]=r.reduce((function(e,t,n){return n>0&&(e="".concat(e,".").concat(Number(e.split(".").pop())+Number(t))),e}),r[0]),t.join("~")},Bn._cliReplaceAll=function(e,t,n){return e.replace(new RegExp(t.replace(/[.*+?^${}()[\]\\]/g,"\\$&"),"g"),n)}})()})();