Files
neo 932ec3ac8f KPI cards: Bloomberg stock ticker style
- Redesign KPI cards to look like stock tickers
- Add ticker ID (e.g. ВЫРУЧК:KPI, AOV:KPI)
- Arrow up/down SVG indicators for change direction
- Mini trend-line (50px) inside each card
- Change color: green (#16a34a) for up, red (#e21d1d) for down
- Remove sparkline background area, keep only line
- Fix duplicate arrowUp variable naming (bArrowUp/bArrowDown/bArrowNeutral)
2026-06-21 18:14:08 +05:00

1 line
408 KiB
JavaScript

(window._sp_wp_jsonp=window._sp_wp_jsonp||[]).push([[9,8],{180:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));n(138),n(23),n(56),n(19),n(24),n(25),n(75),n(104),n(57),n(37),n(52),n(53),n(26),n(27),n(36),n(191),n(192),n(54),n(58),n(73),n(30),n(76),n(28);var r=n(0),o=n(204),i=n(61);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,v(r.key),r)}}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(p,t);var e,n,u,c=s(p);function p(t,e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),d(y(r=c.call(this)),"category","usnat"),r.config=Object(i.e)(t),r.campaignResponse=e,r.propertyId=n,r}return e=p,(n=[{key:"init",value:function(){var t=this,e=this.config,n=e.accountId,i=e.usNatOrigin,u=e.mmsDomain,c=e.propertyHref,l=e.msgOrigin,f=e.pmOrigin,s=e.pubData,p=this.campaignResponse,y=p.actions,b=p.applies,d=p.cookies;return Object(r.setStateStorageInMemory)(b,"cookies","applies",this.category),Object.assign(window._sp_.usnat,Object(o.a)(a(a({},this.config),{},{propertyId:this.propertyId}),this.category)),window._sp_.usnat.loadPrivacyManager=function(e,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(!(e=e||Object(r.getStateStorageFromMemory)("childPmId",null,t.category)))return Promise.reject("No privacyManagerId provided, no groupPmId found.");var p=Object(r.getUserConsentData)(t.category,"legislation");if("state"===p&&!1===b)return Promise.reject("No categories to collect or modify consent for when outside of applies scope.");t.cmpApi&&(t.cmpApi.setSignalStatus("not ready"),t.cmpApi.setCmpDisplayStatus("visible"));var y=t.makeMessageUrl(2,e,Object(r.getUserConsentData)(t.category,"uuid"),t.propertyId,i,u,l),d={};return o&&(d={type:"inline",type_settings:{targetType:"id",targetName:o}}),new r.Renderer({accountId:n,url:y,mmsDomain:u,siteId:t.propertyId,href:c,msgOrigin:l,settings:d,messageId:e,cmpOrigin:i,type:"pm",pmOrigin:f,wrapperAPIOrigin:t.config.wrapperAPIOrigin,plugAndPlay:!0,callbackPath:a,updateCMP:t.updateCmpPost.bind(t),pubData:s,category:t.category}).init()},window._sp_.usnat.loadPrivacyManagerModal=function(t,e,n){return window._sp_.usnat.loadPrivacyManager(t,e,null,n)},Promise.all((y||[]).map(r.executeAction)).then((function(e){return Object(r.setCookiesAction)(d,u,t.category)}))}},{key:"checkForMessage",value:function(){var t=this.hasMessage(),e=this.campaignResponse.applies;t?e&&this.cmpApi&&this.cmpApi.setCmpDisplayStatus("visible"):Object(r.executeEventCallback)("onMessageReceiveData",[{messageId:0}],this.category),this.updateCmpPost(t);var n=Object(r.getUserConsentData)(this.category)||{},o=n.gpcEnabled,i=n.consentString,u=n.uuid;Object(r.executeEventCallback)("onConsentReady",[u,i,{applies:e,gpcEnabled:o}],this.category)}},{key:"getPvData",value:function(){var t=this.campaignResponse&&this.campaignResponse.messageMetaData||{},e=t.messageId,n=t.prtnUUID,o=Object(r.getUserConsentData)(this.category)||{};return{applies:o.applies,uuid:o.uuid,consentStatus:o.consentStatus,msgId:e,prtnUUID:n}}},{key:"makeMessageUrl",value:function(t,e,n,o,i,u,c){var l=["us_pm","index.html"],f=c,s=a({usNatOrigin:i,uuid:n,message_id:e,site_id:o,mms_origin:"".concat(u,"/mms/v2")},Object(r.getConcatUuidParam)());return 1===t&&(s.is_usnat_notice="true"),Object(r.appendQueryParams)([f].concat(l).join("/"),a(a({},s),{},{version:"v1"}))}},{key:"showMessage",value:function(){if(this.sendPvData(),!this.hasMessage())return Promise.resolve();var t=this.config,e=t.accountId,n=t.usNatOrigin,o=t.mmsDomain,i=t.msgOrigin,u=t.pmOrigin,c=t.propertyHref,a=t.pubData,l=this.campaignResponse,f=l.message,s=l.messageMetaData,p=s.bucket,y=s.categoryId,b=s.messageId,d=s.prtnUUID,v=s.subCategoryId;return Object(r.executeEventCallback)("onMessageReceiveData",[{prtnUUID:d,msg_id:b,messageId:b,msgDescription:f.message_json.name||"",bucket:p,categoryId:y,subCategoryId:v}],this.category),new r.Renderer({accountId:e,url:this.makeMessageUrl(v,b,Object(r.getUserConsentData)(this.category,"uuid"),this.propertyId,n,o,i),mmsDomain:o,siteId:this.propertyId,href:c,msgOrigin:i,message:f,settings:f.message_json.settings,messageId:b,prtnUUID:d,cmpOrigin:n,type:"pm-fl",pmOrigin:u,wrapperAPIOrigin:this.config.wrapperAPIOrigin,callbackPath:null,plugAndPlay:!1,updateCMP:this.updateCmpPost.bind(this),pubData:a,category:this.category}).init()}},{key:"updateCmpPost",value:function(t){}}])&&l(e.prototype,n),u&&l(e,u),Object.defineProperty(e,"prototype",{writable:!1}),p}(n(197).a)},181:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return g}));n(75),n(57),n(23),n(30),n(191),n(192),n(52),n(53),n(26),n(27),n(36),n(28),n(19),n(24),n(25);var r=n(0),o=(n(60),n(54),n(58),n(73),n(76),n(38),n(37),n(55),n(29),n(202)),i=n(200),u=n(206);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){try{if(o.b.SECTION_ID_NAME_MAP.has(t))return o.b.SECTION_ID_NAME_MAP.get(t)}catch(t){}return e}function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,v(r.key),r)}}function v(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}function h(t,e){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return E(t)}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(f,t);var e,n,c,l=S(f);function f(t,e,n){var c;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(c=l.call(this,t,e,n)).cmpApi=function(t,e,n,r){var c=this,l={GetCustomVendorRejectsUspv1:function(n){Object(u.a)(1,n,s({},e),t)}};return Object.entries(i.a).forEach((function(o){var i=a(o,2),u=i[0],f=i[1];l["".concat(u,"Usnat")]=f.bind(c,s(s({},e),{},{propertyId:t}),n,r)})),new o.a(6,1,l)}(n,c.config,c.category,c.updateCmpPost.bind(E(c))),c.cmpApi.setCmpStatus("loaded"),e.applies){var p=Object(r.getUserConsentData)(c.category,"applicableSections")||[],b=Object(r.getUserConsentData)(c.category,"consentStrings")||[];c.cmpApi.setSupportedAPIs(b.map((function(t){return"".concat(t.sectionId,":").concat(y(t.sectionId,t.sectionName))}))),c.cmpApi.setApplicableSections(p.length>0?p:[-1])}else c.cmpApi.setCmpDisplayStatus("disabled"),c.cmpApi.setApplicableSections([-1]),c.cmpApi.setSignalStatus("ready");return c}return e=f,(n=[{key:"setSectionString",value:function(){var t=this,e=Object(r.getUserConsentData)(this.category),n=e.applies,o=e.consentStrings;if(n){var i=[];o.forEach((function(e){var n=e.sectionId,r=e.sectionName,o=e.consentString;r=y(n,r);var u=!1;t.cmpApi.getSectionStringById(n)!==o&&(u=!0,t.cmpApi.setSectionStringById(n,o)),u&&t.cmpApi.fireSectionChange(r),i.push("".concat(n,":").concat(r))})),this.cmpApi.setSupportedAPIs(i);var u,c,a,l=this.cmpApi.getGppString();Object(r.setUserConsentData)((u={},c=this.category,a={consentString:l},(c=v(c))in u?Object.defineProperty(u,c,{value:a,enumerable:!0,configurable:!0,writable:!0}):u[c]=a,u))}}},{key:"updateCmpPost",value:function(t){t=t||!1,this.campaignResponse.applies&&("ready"===this.cmpApi.getSignalStatus()&&this.cmpApi.setSignalStatus("not ready"),this.setSectionString(),t||this.cmpApi.setCmpDisplayStatus("hidden"),this.cmpApi.setSignalStatus("ready"))}}])&&d(e.prototype,n),c&&d(e,c),Object.defineProperty(e,"prototype",{writable:!1}),f}(n(180).default)},186:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));n(191),n(192),n(23),n(194),n(73),n(52),n(53),n(26),n(27),n(36),n(54),n(58),n(30),n(76),n(28),n(19),n(24),n(25);var r=n(0),o=n(206);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=p(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function p(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function y(t,e){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(p,t);var e,n,i,f=b(p);function p(){return a(this,p),f.apply(this,arguments)}return e=p,(n=[{key:"init",value:function(){var t=this.campaignResponse.uuid;Object(o.b)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.config),this.propertyId),Object(r.setStateStorageInMemory)(!t,"newUser",void 0,this.category),s(v(p.prototype),"init",this).call(this)}},{key:"updateCmpPost",value:function(t){!0===this.config.includeUspApi&&window.__uspapi&&"function"==typeof window.__uspapi.hasSeenCCPAMessage&&window.__uspapi.hasSeenCCPAMessage(),s(v(p.prototype),"updateCmpPost",this).call(this,t)}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),p}(n(181).default)},191:function(t,e,n){var r=n(1),o=n(4),i=n(15),u=n(106),c=n(139);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},192:function(t,e,n){var r=n(1),o=n(32),i=n(31),u=n(5),c=n(6),a=n(39),l=n(196),f=n(4),s=o("Reflect","construct"),p=f((function(){function t(){}return!(s((function(){}),[],t)instanceof t)})),y=!f((function(){s((function(){}))})),b=p||y;r({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(t,e){i(t),u(e);var n=arguments.length<3?t:i(arguments[2]);if(y&&!p)return s(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var o=n.prototype,f=a(c(o)?o:Object.prototype),b=Function.apply.call(t,f,e);return c(b)?b:f}})},193:function(t,e,n){"use strict";var r=n(145),o=n(146);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},194:function(t,e,n){var r=n(1),o=n(6),i=n(5),u=n(9),c=n(17),a=n(106);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return i(e)===f?e[n]:(r=c.f(e,n))?u(r,"value")?r.value:void 0===r.get?void 0:r.get.call(f):o(l=a(e))?t(l,n,f):void 0}})},195:function(t,e,n){"use strict";var r=n(1),o=n(31),i=n(15),u=n(4),c=n(40),a=[],l=a.sort,f=u((function(){a.sort(void 0)})),s=u((function(){a.sort(null)})),p=c("sort");r({target:"Array",proto:!0,forced:f||!s||!p},{sort:function(t){return void 0===t?l.call(i(this)):l.call(i(this),o(t))}})},196:function(t,e,n){"use strict";var r=n(31),o=n(6),i=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("C,a","return new C("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),u=function(){var r=n.concat(i.call(arguments));return this instanceof u?c(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(u.prototype=e.prototype),u}},197:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));n(54),n(52),n(53),n(26),n(27),n(23),n(36),n(28),n(19),n(24),n(25),n(56),n(75),n(58),n(73),n(30),n(76);var r=n(0);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"hasMessage",value:function(){var t=this.campaignResponse,e=t.message,n=t.messageMetaData;return e&&n&&Object.keys(e.message_json).length>0&&0!==n.messageId}},{key:"hasInlineMessage",value:function(){var t=this.campaignResponse.message;return!!this.hasMessage()&&t&&t.message_json&&t.message_json.settings&&t.message_json.settings.type&&"inline"===t.message_json.settings.type}},{key:"getPvData",value:function(){return{}}},{key:"sendPvData",value:function(){var t=this.config,e=t.accountId,n=t.env,o=t.wrapperAPIOrigin,i=t.mmsDomain,a=t.pubData,l=this.getPvData();!function(t,e,n,o,i,a,l,f){if(!Object(r.sampleUser)(l))return Promise.resolve();var s=c({},l,u(u({},f),{},{accountId:e,siteId:n,propertyId:n,pubData:a,withSiteActions:"true",sampleRate:Object(r.sampleRate)(l)}));Object(r.fetch)("".concat(o,"/v2/pv-data"),{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"},params:{env:t}}).then(JSON.parse).then((function(t){return Promise.all(Object.keys(t).map((function(e){return Object(r.handleConsentData)(t[e],e,i)})))})).catch((function(t){return Promise.resolve()}))}(n,e,this.propertyId,o,i,a,this.category,l)}}])&&l(e.prototype,n),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()},198:function(t,e,n){n(63)("asyncIterator")},199:function(t,e,n){"use strict";var r=n(1),o=n(62),i=[].reverse,u=[1,2];r({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},200:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n(57);var r=n(0),o={getUserConsents:function(t,e,n,o){var i=(Object(r.getUserConsentData)(e)||{}).userConsents;i=i||{categories:[]};try{o(i,!0)}catch(t){Object(r.handleError)(new r.CmpCallbackError(t),e)}},postRejectAll:function(t,e,n,o){var i=t.env,u=t.consentLanguage,c=t.propertyId,a=t.mmsDomain,l=t.wrapperAPIOrigin,f={applies:Object(r.getUserConsentData)(e,"applies"),authId:Object(r.getUserConsentData)(e,"authId"),mmsDomain:a,propertyId:c,includeData:{actions:{type:"RecordString"}},uuid:Object(r.getUserConsentData)(e,"uuid"),sampleRate:Object(r.sampleRate)(e),sendPVData:Object(r.sampleUser)(e),pmSaveAndExitVariables:{categories:[],shownCategories:[],vendors:[],lan:u}};Object(r.fetch)("".concat(l,"/v2/choice/").concat(Object(r.getCategoryUrlParam)(e),"/1"),{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(f),params:{env:i}}).then((function(t){return JSON.parse(t)})).then((function(t){return Object(r.handleConsentData)(t,e,a).then((function(e){return t}))})).then((function(t){return"function"==typeof n&&n(),t})).then((function(t){try{o(null,!0)}catch(t){Object(r.handleError)(new r.CmpCallbackError(t),e)}})).catch((function(t){try{o(null,!1)}catch(t){Object(r.handleError)(new r.CmpCallbackError(t))}Object(r.handleError)(t,e)}))}}},202:function(t,e,n){"use strict";n.d(e,"b",(function(){return oO})),n.d(e,"a",(function(){return XO}));n(191),n(192),n(23),n(52),n(53),n(26),n(27),n(36),n(28),n(19),n(24),n(25);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var a=i((function t(e,n,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"eventName",void 0),u(this,"listenerId",void 0),u(this,"data",void 0),u(this,"pingData",void 0),this.eventName=e,this.listenerId=n,this.data=r,this.pingData=o}));function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function s(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}var b=s((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,"gppVersion",void 0),p(this,"cmpStatus",void 0),p(this,"cmpDisplayStatus",void 0),p(this,"signalStatus",void 0),p(this,"supportedAPIs",void 0),p(this,"cmpId",void 0),p(this,"sectionList",void 0),p(this,"applicableSections",void 0),p(this,"gppString",void 0),p(this,"parsedSections",void 0),this.gppVersion=e.gppVersion,this.cmpStatus=e.cmpStatus,this.cmpDisplayStatus=e.cmpDisplayStatus,this.signalStatus=e.signalStatus,this.supportedAPIs=e.supportedAPIs,this.cmpId=e.cmpId,this.sectionList=e.gppModel.getSectionIds(),this.applicableSections=e.applicableSections,this.gppString=e.gppModel.encode(),this.parsedSections=e.gppModel.toObject()}));n(138);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,S(r.key),r)}}function h(t,e,n){return(e=S(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}var O=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,"callback",void 0),h(this,"parameter",void 0),h(this,"success",!0),h(this,"cmpApiContext",void 0),this.cmpApiContext=e,Object.assign(this,{callback:n,parameter:r})}var e,n,r;return e=t,(n=[{key:"execute",value:function(){try{return this.respond()}catch(t){return this.invokeCallback(null),null}}},{key:"invokeCallback",value:function(t){var e=null!==t;this.callback&&this.callback(t,e)}}])&&v(e.prototype,n),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_(r.key),r)}}function _(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}function w(t,e){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function T(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(i,t);var e,n,r,o=T(i);function i(){return m(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"respond",value:function(){var t=this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),e=new a("listenerRegistered",t,!0,new b(this.cmpApiContext));this.invokeCallback(e)}}])&&g(e.prototype,n),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(O);function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,D(r.key),r)}}function D(t){var e=function(t,e){if("object"!=j(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==j(e)?e:e+""}function R(t,e){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function V(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(t,e){if(e&&("object"===j(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var U=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&R(t,e)}(i,t);var e,n,r,o=V(i);function i(){return A(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"respond",value:function(){var t=new b(this.cmpApiContext);this.invokeCallback(t)}}])&&C(e.prototype,n),r&&C(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(O);n(29),n(72);function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function x(t){var e=function(t,e){if("object"!=G(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==G(e)?e:e+""}function B(t,e){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=K(t);if(e){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(t,e){if(e&&("object"===G(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B(t,e)}(i,t);var e,n,r,o=H(i);function i(){return L(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("<section>.<field> parameter required");var t=this.parameter.split(".");if(2!=t.length)throw new Error("Field name must be in the format <section>.<fieldName>");var e=t[0],n=t[1],r=this.cmpApiContext.gppModel.getFieldValue(e,n);this.invokeCallback(r)}}])&&F(e.prototype,n),r&&F(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(O);function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$(r.key),r)}}function $(t){var e=function(t,e){if("object"!=W(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==W(e)?e:e+""}function J(t,e){return(J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function q(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=tt(t);if(e){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(t,e){if(e&&("object"===W(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function tt(t){return(tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&J(t,e)}(i,t);var e,n,r,o=q(i);function i(){return Q(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("<section> parameter required");var t=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(t=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(t)}}])&&X(e.prototype,n),r&&X(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(O);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,it(r.key),r)}}function it(t){var e=function(t,e){if("object"!=nt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nt(e)?e:e+""}function ut(t,e){return(ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ct(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=lt(t);if(e){var o=lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return at(this,n)}}function at(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function lt(t){return(lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ft,st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ut(t,e)}(i,t);var e,n,r,o=ct(i);function i(){return rt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("<section>[.version] parameter required");var t=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(t)}}])&&ot(e.prototype,n),r&&ot(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(O);function pt(t){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dt(r.key),r)}}function dt(t){var e=function(t,e){if("object"!=pt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pt(e)?e:e+""}function vt(t,e){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ht(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ot(t);if(e){var o=Ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return St(this,n)}}function St(t,e){if(e&&("object"===pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ot(t){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.ADD_EVENT_LISTENER="addEventListener",t.GET_FIELD="getField",t.GET_SECTION="getSection",t.HAS_SECTION="hasSection",t.PING="ping",t.REMOVE_EVENT_LISTENER="removeEventListener"}(ft||(ft={}));var Et,mt,gt,_t,wt,Tt,Pt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vt(t,e)}(i,t);var e,n,r,o=ht(i);function i(){return yt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"respond",value:function(){var t=this.parameter,e=this.cmpApiContext.eventQueue.remove(t),n=new a("listenerRemoved",t,e,new b(this.cmpApiContext));this.invokeCallback(n)}}])&&bt(e.prototype,n),r&&bt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(O);function Nt(t){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ct(r.key),r)}}function jt(t,e,n){return e&&It(t.prototype,e),n&&It(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function At(t,e,n){return(e=Ct(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ct(t){var e=function(t,e){if("object"!=Nt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Nt(e)?e:e+""}Et=ft.ADD_EVENT_LISTENER,mt=ft.GET_FIELD,gt=ft.GET_SECTION,_t=ft.HAS_SECTION,wt=ft.PING,Tt=ft.REMOVE_EVENT_LISTENER;var Dt,Rt,Vt,Mt,kt=jt((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}));At(kt,Et,I),At(kt,mt,Y),At(kt,gt,et),At(kt,_t,st),At(kt,wt,U),At(kt,Tt,Pt),function(t){t.STUB="stub",t.LOADING="loading",t.LOADED="loaded",t.ERROR="error"}(Dt||(Dt={})),function(t){t.VISIBLE="visible",t.HIDDEN="hidden",t.DISABLED="disabled"}(Rt||(Rt={})),function(t){t.GPP_LOADED="gpploaded",t.CMP_UI_SHOWN="cmpuishown",t.USER_ACTION_COMPLETE="useractioncomplete"}(Vt||(Vt={})),function(t){t.NOT_READY="not ready",t.READY="ready"}(Mt||(Mt={}));n(30),n(55),n(38),n(37);function Ut(t){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t){return function(t){if(Array.isArray(t))return Lt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Lt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lt(t,e)}(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.")}()}function Lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Bt(r.key),r)}}function xt(t,e,n){return(e=Bt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bt(t){var e=function(t,e){if("object"!=Ut(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ut(e)?e:e+""}var Ht=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xt(this,"callQueue",void 0),xt(this,"customCommands",void 0),xt(this,"cmpApiContext",void 0),this.cmpApiContext=e,n){var r=ft.ADD_EVENT_LISTENER;if(null!=n&&n[r])throw new Error("Built-In Custom Commmand for ".concat(r," not allowed"));if(r=ft.REMOVE_EVENT_LISTENER,null!=n&&n[r])throw new Error("Built-In Custom Commmand for ".concat(r," not allowed"));this.customCommands=n}try{this.callQueue=window.__gpp()||[]}catch(t){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}}var e,n,r;return e=t,(n=[{key:"apiCall",value:function(t,e,n,r){if("string"!=typeof t)e(null,!1);else{if(e&&"function"!=typeof e)throw new Error("invalid callback function");this.isCustomCommand(t)?this.customCommands[t](e,n):this.isBuiltInCommand(t)?new kt[t](this.cmpApiContext,e,n).execute():e&&e(null,!1)}}},{key:"purgeQueuedCalls",value:function(){var t=this.callQueue;this.callQueue=[],t.forEach((function(t){var e;(e=window).__gpp.apply(e,Gt(t))}))}},{key:"isCustomCommand",value:function(t){return this.customCommands&&"function"==typeof this.customCommands[t]}},{key:"isBuiltInCommand",value:function(t){return void 0!==kt[t]}}])&&Ft(e.prototype,n),r&&Ft(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();n(193);function zt(t){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wt(r.key),r)}}function Yt(t,e,n){return(e=Wt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wt(t){var e=function(t,e){if("object"!=zt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zt(e)?e:e+""}var Qt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Yt(this,"eventQueue",new Map),Yt(this,"queueNumber",1e3),Yt(this,"cmpApiContext",void 0),this.cmpApiContext=e;try{for(var n=window.__gpp("events")||[],r=0;r<n.length;r++){var o=n[r];this.eventQueue.set(o.id,{callback:o.callback,parameter:o.parameter})}}catch(t){console.log(t)}}var e,n,r;return e=t,(n=[{key:"add",value:function(t){return this.eventQueue.set(this.queueNumber,t),this.queueNumber++}},{key:"get",value:function(t){return this.eventQueue.get(t)}},{key:"remove",value:function(t){return this.eventQueue.delete(t)}},{key:"exec",value:function(t,e){var n=this;this.eventQueue.forEach((function(r,o){var i=new a(t,o,e,new b(n.cmpApiContext));r.callback(i,!0)}))}},{key:"clear",value:function(){this.queueNumber=1e3,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}])&&Kt(e.prototype,n),r&&Kt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();n(104),n(147),n(143),n(77),n(78),n(60),n(74),n(137);function Xt(t){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Jt(r.key),r)}}function Jt(t){var e=function(t,e){if("object"!=Xt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Xt(e)?e:e+""}function qt(t,e){if(e&&("object"===Xt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Zt(t){var e="function"==typeof Map?new Map:void 0;return(Zt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return te(t,arguments,re(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ne(n,t)})(t)}function te(t,e,n){if(ee())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&ne(o,n.prototype),o}function ee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ee=function(){return!!t})()}function ne(t,e){return(ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function re(t){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var oe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ne(t,e)}(c,t);var e,n,r,o,i,u=(e=c,n=ee(),function(){var t,r=re(e);if(n){var o=re(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return qt(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).name="InvalidFieldError",e}return r=c,o&&$t(r.prototype,o),i&&$t(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(Zt(Error));function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ue(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ce(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(t,e)}(t,e)||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 ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fe(r.key),r)}}function le(t,e,n){return(e=fe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fe(t){var e=function(t,e){if("object"!=ie(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ie(e)?e:e+""}var se=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),le(this,"segments",void 0),le(this,"encodedString",null),le(this,"dirty",!1),le(this,"decoded",!0),this.segments=this.initializeSegments()}var e,n,r;return e=t,(n=[{key:"hasField",value:function(t){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(var e=0;e<this.segments.length;e++){var n=this.segments[e];if(n.getFieldNames().includes(t))return n.hasField(t)}return!1}},{key:"getFieldValue",value:function(t){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(var e=0;e<this.segments.length;e++){var n=this.segments[e];if(n.hasField(t))return n.getFieldValue(t)}throw new oe("Invalid field: '"+t+"'")}},{key:"setFieldValue",value:function(t,e){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(var n=0;n<this.segments.length;n++){var r=this.segments[n];if(r.hasField(t))return void r.setFieldValue(t,e)}throw new oe("Invalid field: '"+t+"'")}},{key:"toObj",value:function(){for(var t={},e=0;e<this.segments.length;e++)for(var n=this.segments[e].toObj(),r=0,o=Object.entries(n);r<o.length;r++){var i=ue(o[r],2),u=i[0],c=i[1];t[u]=c}return t}},{key:"encode",value:function(){return(null==this.encodedString||0===this.encodedString.length||this.dirty)&&(this.encodedString=this.encodeSection(this.segments),this.dirty=!1,this.decoded=!0),this.encodedString}},{key:"decode",value:function(t){this.encodedString=t,this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!1}},{key:"setIsDirty",value:function(t){this.dirty=t}}])&&ae(e.prototype,n),r&&ae(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function pe(t){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,be(r.key),r)}}function be(t){var e=function(t,e){if("object"!=pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pe(e)?e:e+""}function de(t,e){if(e&&("object"===pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ve(t){var e="function"==typeof Map?new Map:void 0;return(ve=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return he(t,arguments,Ee(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Oe(n,t)})(t)}function he(t,e,n){if(Se())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Oe(o,n.prototype),o}function Se(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Se=function(){return!!t})()}function Oe(t,e){return(Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ee(t){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var me=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oe(t,e)}(c,t);var e,n,r,o,i,u=(e=c,n=Se(),function(){var t,r=Ee(e);if(n){var o=Ee(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return de(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).name="DecodingError",e}return r=c,o&&ye(r.prototype,o),i&&ye(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(ve(Error));function ge(t){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,we(r.key),r)}}function we(t){var e=function(t,e){if("object"!=ge(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ge(e)?e:e+""}function Te(t,e){if(e&&("object"===ge(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Pe(t){var e="function"==typeof Map?new Map:void 0;return(Pe=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Ne(t,arguments,Ae(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),je(n,t)})(t)}function Ne(t,e,n){if(Ie())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&je(o,n.prototype),o}function Ie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ie=function(){return!!t})()}function je(t,e){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ae(t){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ce=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&je(t,e)}(c,t);var e,n,r,o,i,u=(e=c,n=Ie(),function(){var t,r=Ae(e);if(n){var o=Ae(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Te(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).name="EncodingError",e}return r=c,o&&_e(r.prototype,o),i&&_e(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(Pe(Error));function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ve(r.key),r)}}function Ve(t){var e=function(t,e){if("object"!=De(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==De(e)?e:e+""}var Me=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t,e){var n=[];if(t>=1)for(n.push(1);t>=2*n[0];)n.unshift(2*n[0]);for(var r="",o=0;o<n.length;o++){var i=n[o];t>=i?(r+="1",t-=i):r+="0"}if(r.length>e)throw new Ce("Numeric value '"+t+"' is too large for a bit string length of '"+e+"'");for(;r.length<e;)r="0"+r;return r}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t))throw new me("Undecodable FixedInteger '"+t+"'");for(var e=0,n=[],r=0;r<t.length;r++)n[t.length-(r+1)]=0===r?1:2*n[t.length-r];for(var o=0;o<t.length;o++)"1"===t.charAt(o)&&(e+=n[o]);return e}}],(n=null)&&Re(e.prototype,n),r&&Re(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ke(t){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ue(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Le(r.key),r)}}function Ge(t,e,n){return(e=Le(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Le(t){var e=function(t,e){if("object"!=ke(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ke(e)?e:e+""}var Fe=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"encode",value:function(e){if(!/^[0-1]*$/.test(e))throw new Ce("Unencodable Base64Url '"+e+"'");e=this.pad(e);for(var n="",r=0;r<=e.length-6;){var o=e.substring(r,r+6);try{var i=Me.decode(o);n+=t.DICT.charAt(i),r+=6}catch(t){throw new Ce("Unencodable Base64Url '"+e+"'")}}return n}},{key:"decode",value:function(e){if(!/^[A-Za-z0-9\-_]*$/.test(e))throw new me("Undecodable Base64URL string '"+e+"'");for(var n="",r=0;r<e.length;r++){var o=e.charAt(r),i=t.REVERSE_DICT.get(o);n+=Me.encode(i,6)}return n}}])&&Ue(e.prototype,n),r&&Ue(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function xe(t){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,We(r.key),r)}}function He(t,e){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ze(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ye(t);if(e){var o=Ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(t,e){if(e&&("object"===xe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ye(t){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function We(t){var e=function(t,e){if("object"!=xe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xe(e)?e:e+""}Ge(Fe,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Ge(Fe,"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]]));var Qe,Xe,$e,Je=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&He(t,e)}(i,t);var e,n,r,o=ze(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return e=i,r=[{key:"getInstance",value:function(){return this.instance}}],(n=[{key:"pad",value:function(t){for(;t.length%8>0;)t+="0";for(;t.length%6>0;)t+="0";return t}}])&&Be(e.prototype,n),r&&Be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(Fe);function qe(t){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tn(r.key),r)}}function tn(t){var e=function(t,e){if("object"!=qe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qe(e)?e:e+""}Qe=Je,Xe="instance",$e=new Je,(Xe=We(Xe))in Qe?Object.defineProperty(Qe,Xe,{value:$e,enumerable:!0,configurable:!0,writable:!0}):Qe[Xe]=$e;var en=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"getInstance",value:function(){return this.instance}}],(n=[{key:"encode",value:function(t,e){for(var n="",r=0;r<e.length;r++){var o=e[r];if(!t.containsKey(o))throw new Error("Field not found: '"+o+"'");n+=t.get(o).encode()}return n}},{key:"decode",value:function(t,e,n){for(var r=0,o=0;o<e.length;o++){var i=e[o];if(!n.containsKey(i))throw new Error("Field not found: '"+i+"'");var u=n.get(i);try{var c=u.substring(t,r);u.decode(c),r+=c.length}catch(t){if("SubstringError"!==t.name||u.getHardFailIfMissing())throw new me("Unable to decode field '"+i+"'");return}}}}])&&Ze(e.prototype,n),r&&Ze(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();!function(t,e,n){(e=tn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(en,"instance",new en);n(195),n(105),n(194),n(73);function nn(t){return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,on(r.key),r)}}function on(t){var e=function(t,e){if("object"!=nn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=nn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nn(e)?e:e+""}var un=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t){var e=[];if(t>=1&&(e.push(1),t>=2)){e.push(2);for(var n=2;t>=e[n-1]+e[n-2];)e.push(e[n-1]+e[n-2]),n++}for(var r="1",o=e.length-1;o>=0;o--){var i=e[o];t>=i?(r="1"+r,t-=i):r="0"+r}return r}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t)||t.length<2||t.indexOf("11")!==t.length-2)throw new me("Undecodable FibonacciInteger '"+t+"'");for(var e=0,n=[],r=0;r<t.length-1;r++)0===r?n.push(1):1===r?n.push(2):n.push(n[r-1]+n[r-2]);for(var o=0;o<t.length-1;o++)"1"===t.charAt(o)&&(e+=n[o]);return e}}],(n=null)&&rn(e.prototype,n),r&&rn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function cn(t){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function an(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ln(r.key),r)}}function ln(t){var e=function(t,e){if("object"!=cn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cn(e)?e:e+""}var fn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t){if(!0===t)return"1";if(!1===t)return"0";throw new Ce("Unencodable Boolean '"+t+"'")}},{key:"decode",value:function(t){if("1"===t)return!0;if("0"===t)return!1;throw new me("Undecodable Boolean '"+t+"'")}}],(n=null)&&an(e.prototype,n),r&&an(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function sn(t){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yn(r.key),r)}}function yn(t){var e=function(t,e){if("object"!=sn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sn(e)?e:e+""}var bn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t){t=t.sort((function(t,e){return t-e}));for(var e=[],n=0,r=0;r<t.length;){for(var o=r;o<t.length-1&&t[o]+1===t[o+1];)o++;e.push(t.slice(r,o+1)),r=o+1}for(var i=Me.encode(e.length,12),u=0;u<e.length;u++)if(1==e[u].length){var c=e[u][0]-n;n=e[u][0],i+="0"+un.encode(c)}else{var a=e[u][0]-n;n=e[u][0];var l=e[u][e[u].length-1]-n;n=e[u][e[u].length-1],i+="1"+un.encode(a)+un.encode(l)}return i}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t)||t.length<12)throw new me("Undecodable FibonacciIntegerRange '"+t+"'");for(var e=[],n=Me.decode(t.substring(0,12)),r=0,o=12,i=0;i<n;i++){var u=fn.decode(t.substring(o,o+1));if(o++,!0===u){var c=t.indexOf("11",o),a=un.decode(t.substring(o,c+2))+r;r=a,o=c+2,c=t.indexOf("11",o);var l=un.decode(t.substring(o,c+2))+r;r=l,o=c+2;for(var f=a;f<=l;f++)e.push(f)}else{var s=t.indexOf("11",o),p=un.decode(t.substring(o,s+2))+r;r=p,e.push(p),o=s+2}}return e}}],(n=null)&&pn(e.prototype,n),r&&pn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,hn(r.key),r)}}function hn(t){var e=function(t,e){if("object"!=dn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=dn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dn(e)?e:e+""}function Sn(t,e){if(e&&("object"===dn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function On(t){var e="function"==typeof Map?new Map:void 0;return(On=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return En(t,arguments,_n(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gn(n,t)})(t)}function En(t,e,n){if(mn())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&gn(o,n.prototype),o}function mn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mn=function(){return!!t})()}function gn(t,e){return(gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gn(t,e)}(c,t);var e,n,r,o,i,u=(e=c,n=mn(),function(){var t,r=_n(e);if(n){var o=_n(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Sn(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).name="ValidationError",e}return r=c,o&&vn(r.prototype,o),i&&vn(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(On(Error));function Tn(t){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jn(r.key),r)}}function In(t,e,n){return(e=jn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jn(t){var e=function(t,e){if("object"!=Tn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Tn(e)?e:e+""}var An=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Pn(this,t),In(this,"hardFailIfMissing",void 0),In(this,"validator",void 0),In(this,"value",void 0),this.hardFailIfMissing=e}var e,n,r;return e=t,(n=[{key:"withValidator",value:function(t){return this.validator=t,this}},{key:"hasValue",value:function(){return void 0!==this.value&&null!==this.value}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(t){if(this.validator&&!this.validator.test(t))throw new wn("Invalid value '"+t+"'");this.value=t}},{key:"getHardFailIfMissing",value:function(){return this.hardFailIfMissing}}])&&Nn(e.prototype,n),r&&Nn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Cn(t){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Rn(r.key),r)}}function Rn(t){var e=function(t,e){if("object"!=Cn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Cn(e)?e:e+""}function Vn(t,e){return(Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Mn(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Un(t);if(e){var o=Un(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kn(this,n)}}function kn(t,e){if(e&&("object"===Cn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Un(t){return(Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vn(t,e)}(i,t);var e,n,r,o=Mn(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).name="SubstringError",e}return e=i,n&&Dn(e.prototype,n),r&&Dn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(me);function Ln(t){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xn(r.key),r)}}function xn(t){var e=function(t,e){if("object"!=Ln(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ln(e)?e:e+""}var Bn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"substring",value:function(t,e,n){if(n>t.length||e<0||e>n)throw new Gn("Invalid substring indexes "+e+":"+n+" for string of length "+t.length);return t.substring(e,n)}}],(n=null)&&Fn(e.prototype,n),r&&Fn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Hn(t){return(Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zn(t){return function(t){if(Array.isArray(t))return Kn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kn(t,e)}(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.")}()}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Qn(r.key),r)}}function Qn(t){var e=function(t,e){if("object"!=Hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Hn(e)?e:e+""}function Xn(){return(Xn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=$n(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function $n(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=tr(t)););return t}function Jn(t,e){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function qn(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=tr(t);if(e){var o=tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zn(this,n)}}function Zn(t,e){if(e&&("object"===Hn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function tr(t){return(tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var er=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jn(t,e)}(i,t);var e,n,r,o=qn(i);function i(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Yn(this,i),(e=o.call(this,n)).setValue(t),e}return e=i,(n=[{key:"encode",value:function(){try{return bn.encode(this.value)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=bn.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{for(var n=Me.decode(Bn.substring(t,e,e+12)),r=e+12,o=0;o<n;o++)r="1"===t.charAt(r)?t.indexOf("11",t.indexOf("11",r+1)+2)+2:t.indexOf("11",r+1)+2;return Bn.substring(t,e,r)}catch(t){throw new Gn(t)}}},{key:"getValue",value:function(){return zn(Xn(tr(i.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(t){Xn(tr(i.prototype),"setValue",this).call(this,Array.from(new Set(t)).sort((function(t,e){return t-e})))}}])&&Wn(e.prototype,n),r&&Wn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function nr(t){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,sr(r.key),r)}}function ir(t,e){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ur(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=lr(t);if(e){var o=lr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}function cr(t,e){if(e&&("object"===nr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ar(t)}function ar(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lr(t){return(lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fr(t,e,n){return(e=sr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sr(t){var e=function(t,e){if("object"!=nr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nr(e)?e:e+""}var pr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ir(t,e)}(i,t);var e,n,r,o=ur(i);function i(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return rr(this,i),fr(ar(n=o.call(this,r)),"bitStringLength",void 0),n.bitStringLength=t,n.setValue(e),n}return e=i,(n=[{key:"encode",value:function(){try{return Me.encode(this.value,this.bitStringLength)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=Me.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{return Bn.substring(t,e,e+this.bitStringLength)}catch(t){throw new Gn(t)}}}])&&or(e.prototype,n),r&&or(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function yr(t){return(yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function br(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dr(r.key),r)}}function dr(t){var e=function(t,e){if("object"!=yr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yr(e)?e:e+""}var vr,hr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){(e=dr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"fields",new Map)}var e,n,r;return e=t,(n=[{key:"containsKey",value:function(t){return this.fields.has(t)}},{key:"put",value:function(t,e){this.fields.set(t,e)}},{key:"get",value:function(t){return this.fields.get(t)}},{key:"getAll",value:function(){return new Map(this.fields)}},{key:"reset",value:function(t){var e=this;this.fields.clear(),t.getAll().forEach((function(t,n){e.fields.set(n,t)}))}}])&&br(e.prototype,n),r&&br(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();!function(t){t.ID="Id",t.VERSION="Version",t.SECTION_IDS="SectionIds"}(vr||(vr={}));var Sr=[vr.ID,vr.VERSION,vr.SECTION_IDS];function Or(t){return(Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Er(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,gr(r.key),r)}}function mr(t,e,n){return(e=gr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gr(t){var e=function(t,e){if("object"!=Or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Or(e)?e:e+""}var _r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),mr(this,"fields",void 0),mr(this,"encodedString",null),mr(this,"dirty",!1),mr(this,"decoded",!0),this.fields=this.initializeFields()}var e,n,r;return e=t,(n=[{key:"validate",value:function(){}},{key:"hasField",value:function(t){return this.fields.containsKey(t)}},{key:"getFieldValue",value:function(t){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(t))return this.fields.get(t).getValue();throw new oe("Invalid field: '"+t+"'")}},{key:"setFieldValue",value:function(t,e){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),!this.fields.containsKey(t))throw new oe(t+" not found");this.fields.get(t).setValue(e),this.dirty=!0}},{key:"toObj",value:function(){for(var t={},e=this.getFieldNames(),n=0;n<e.length;n++){var r=e[n],o=this.getFieldValue(r);t[r]=o}return t}},{key:"encode",value:function(){return(null==this.encodedString||0===this.encodedString.length||this.dirty)&&(this.validate(),this.encodedString=this.encodeSegment(this.fields),this.dirty=!1,this.decoded=!0),this.encodedString}},{key:"decode",value:function(t){this.encodedString=t,this.dirty=!1,this.decoded=!1}}])&&Er(e.prototype,n),r&&Er(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function wr(t){return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Dr(r.key),r)}}function Pr(t,e){return(Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Nr(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ar(t);if(e){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ir(this,n)}}function Ir(t,e){if(e&&("object"===wr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jr(t)}function jr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ar(t){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Cr(t,e,n){return(e=Dr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dr(t){var e=function(t,e){if("object"!=wr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==wr(e)?e:e+""}var Rr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pr(t,e)}(i,t);var e,n,r,o=Nr(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Cr(jr(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Cr(jr(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Sr}},{key:"initializeFields",value:function(){var t=new hr;return t.put(vr.ID.toString(),new pr(6,Hr.ID)),t.put(vr.VERSION.toString(),new pr(6,Hr.VERSION)),t.put(vr.SECTION_IDS.toString(),new er([])),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode HeaderV1CoreSegment '"+t+"'")}}}])&&Tr(e.prototype,n),r&&Tr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Vr(t){return(Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xr(r.key),r)}}function kr(t,e){return(kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ur(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Lr(t);if(e){var o=Lr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gr(this,n)}}function Gr(t,e){if(e&&("object"===Vr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Lr(t){return(Lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fr(t,e,n){return(e=xr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xr(t){var e=function(t,e){if("object"!=Vr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Vr(e)?e:e+""}var Br,Hr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kr(t,e)}(i,t);var e,n,r,o=Ur(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Rr),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length)for(var n=t.split("."),r=0;r<e.length;r++)n.length>r&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r.encode())}return e.join(".")}}])&&Mr(e.prototype,n),r&&Mr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Fr(Hr,"ID",3),Fr(Hr,"VERSION",1),Fr(Hr,"NAME","header"),function(t){t.VERSION="Version",t.CREATED="Created",t.LAST_UPDATED="LastUpdated",t.CMP_ID="CmpId",t.CMP_VERSION="CmpVersion",t.CONSENT_SCREEN="ConsentScreen",t.CONSENT_LANGUAGE="ConsentLanguage",t.VENDOR_LIST_VERSION="VendorListVersion",t.POLICY_VERSION="PolicyVersion",t.IS_SERVICE_SPECIFIC="IsServiceSpecific",t.USE_NON_STANDARD_STACKS="UseNonStandardStacks",t.SPECIAL_FEATURE_OPTINS="SpecialFeatureOptins",t.PURPOSE_CONSENTS="PurposeConsents",t.PURPOSE_LEGITIMATE_INTERESTS="PurposeLegitimateInterests",t.PURPOSE_ONE_TREATMENT="PurposeOneTreatment",t.PUBLISHER_COUNTRY_CODE="PublisherCountryCode",t.VENDOR_CONSENTS="VendorConsents",t.VENDOR_LEGITIMATE_INTERESTS="VendorLegitimateInterests",t.PUBLISHER_RESTRICTIONS="PublisherRestrictions",t.PUBLISHER_PURPOSES_SEGMENT_TYPE="PublisherPurposesSegmentType",t.PUBLISHER_CONSENTS="PublisherConsents",t.PUBLISHER_LEGITIMATE_INTERESTS="PublisherLegitimateInterests",t.NUM_CUSTOM_PURPOSES="NumCustomPurposes",t.PUBLISHER_CUSTOM_CONSENTS="PublisherCustomConsents",t.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS="PublisherCustomLegitimateInterests",t.VENDORS_ALLOWED_SEGMENT_TYPE="VendorsAllowedSegmentType",t.VENDORS_ALLOWED="VendorsAllowed",t.VENDORS_DISCLOSED_SEGMENT_TYPE="VendorsDisclosedSegmentType",t.VENDORS_DISCLOSED="VendorsDisclosed"}(Br||(Br={}));var zr=[Br.VERSION,Br.CREATED,Br.LAST_UPDATED,Br.CMP_ID,Br.CMP_VERSION,Br.CONSENT_SCREEN,Br.CONSENT_LANGUAGE,Br.VENDOR_LIST_VERSION,Br.POLICY_VERSION,Br.IS_SERVICE_SPECIFIC,Br.USE_NON_STANDARD_STACKS,Br.SPECIAL_FEATURE_OPTINS,Br.PURPOSE_CONSENTS,Br.PURPOSE_LEGITIMATE_INTERESTS,Br.PURPOSE_ONE_TREATMENT,Br.PUBLISHER_COUNTRY_CODE,Br.VENDOR_CONSENTS,Br.VENDOR_LEGITIMATE_INTERESTS,Br.PUBLISHER_RESTRICTIONS],Kr=[Br.PUBLISHER_PURPOSES_SEGMENT_TYPE,Br.PUBLISHER_CONSENTS,Br.PUBLISHER_LEGITIMATE_INTERESTS,Br.NUM_CUSTOM_PURPOSES,Br.PUBLISHER_CUSTOM_CONSENTS,Br.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS],Yr=[Br.VENDORS_ALLOWED_SEGMENT_TYPE,Br.VENDORS_ALLOWED],Wr=[Br.VENDORS_DISCLOSED_SEGMENT_TYPE,Br.VENDORS_DISCLOSED];function Qr(t){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,to(r.key),r)}}function $r(t,e){return($r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Jr(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Zr(t);if(e){var o=Zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qr(this,n)}}function qr(t,e){if(e&&("object"===Qr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Zr(t){return(Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function to(t){var e=function(t,e){if("object"!=Qr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qr(e)?e:e+""}var eo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$r(t,e)}(i,t);var e,n,r,o=Jr(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return e=i,r=[{key:"getInstance",value:function(){return this.instance}}],(n=[{key:"pad",value:function(t){for(;t.length%24>0;)t+="0";return t}}])&&Xr(e.prototype,n),r&&Xr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(Fe);function no(t){return(no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ro(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,oo(r.key),r)}}function oo(t){var e=function(t,e){if("object"!=no(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=no(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==no(e)?e:e+""}!function(t,e,n){(e=to(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(eo,"instance",new eo);var io=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t){t.sort((function(t,e){return t-e}));for(var e=[],n=0;n<t.length;){for(var r=n;r<t.length-1&&t[r]+1===t[r+1];)r++;e.push(t.slice(n,r+1)),n=r+1}for(var o=Me.encode(e.length,12),i=0;i<e.length;i++)1===e[i].length?o+="0"+Me.encode(e[i][0],16):o+="1"+Me.encode(e[i][0],16)+Me.encode(e[i][e[i].length-1],16);return o}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t)||t.length<12)throw new me("Undecodable FixedIntegerRange '"+t+"'");for(var e=[],n=Me.decode(t.substring(0,12)),r=12,o=0;o<n;o++){var i=fn.decode(t.substring(r,r+1));if(r++,!0===i){var u=Me.decode(t.substring(r,r+16));r+=16;var c=Me.decode(t.substring(r,r+16));r+=16;for(var a=u;a<=c;a++)e.push(a)}else{var l=Me.decode(t.substring(r,r+16));e.push(l),r+=16}}return e}}],(n=null)&&ro(e.prototype,n),r&&ro(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function uo(t){return(uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function co(t){return function(t){if(Array.isArray(t))return ao(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ao(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ao(t,e)}(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.")}()}function ao(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function lo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,so(r.key),r)}}function so(t){var e=function(t,e){if("object"!=uo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uo(e)?e:e+""}function po(){return(po="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=yo(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function yo(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=So(t)););return t}function bo(t,e){return(bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vo(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=So(t);if(e){var o=So(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ho(this,n)}}function ho(t,e){if(e&&("object"===uo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function So(t){return(So=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bo(t,e)}(i,t);var e,n,r,o=vo(i);function i(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return lo(this,i),(e=o.call(this,n)).setValue(t),e}return e=i,(n=[{key:"encode",value:function(){try{return io.encode(this.value)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=io.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{for(var n=Me.decode(Bn.substring(t,e,e+12)),r=e+12,o=0;o<n;o++)"1"===t.charAt(r)?r+=33:r+=17;return Bn.substring(t,e,r)}catch(t){throw new Gn(t)}}},{key:"getValue",value:function(){return co(po(So(i.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(t){po(So(i.prototype),"setValue",this).call(this,Array.from(new Set(t)).sort((function(t,e){return t-e})))}}])&&fo(e.prototype,n),r&&fo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function Eo(t){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_o(r.key),r)}}function go(t,e,n){return(e=_o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _o(t){var e=function(t,e){if("object"!=Eo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Eo(e)?e:e+""}var wo=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),go(this,"key",void 0),go(this,"type",void 0),go(this,"ids",void 0),this.key=e,this.type=n,this.ids=r}var e,n,r;return e=t,(n=[{key:"getKey",value:function(){return this.key}},{key:"setKey",value:function(t){this.key=t}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(t){this.type=t}},{key:"getIds",value:function(){return this.ids}},{key:"setIds",value:function(t){this.ids=t}}])&&mo(e.prototype,n),r&&mo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function To(t){return(To="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Po(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function No(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Vo(r.key),r)}}function Io(t,e){return(Io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function jo(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Do(t);if(e){var o=Do(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ao(this,n)}}function Ao(t,e){if(e&&("object"===To(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Co(t)}function Co(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Do(t){return(Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ro(t,e,n){return(e=Vo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vo(t){var e=function(t,e){if("object"!=To(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=To(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==To(e)?e:e+""}var Mo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Io(t,e)}(i,t);var e,n,r,o=jo(i);function i(t,e,n){var r,u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Po(this,i),Ro(Co(r=o.call(this,u)),"keyBitStringLength",void 0),Ro(Co(r),"typeBitStringLength",void 0),r.keyBitStringLength=t,r.typeBitStringLength=e,r.setValue(n),r}return e=i,(n=[{key:"encode",value:function(){try{var t=this.value,e="";e+=Me.encode(t.length,12);for(var n=0;n<t.length;n++){var r=t[n];e+=Me.encode(r.getKey(),this.keyBitStringLength),e+=Me.encode(r.getType(),this.typeBitStringLength),e+=io.encode(r.getIds())}return e}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{for(var e=[],n=Me.decode(Bn.substring(t,0,12)),r=12,o=0;o<n;o++){var i=Me.decode(Bn.substring(t,r,r+this.keyBitStringLength));r+=this.keyBitStringLength;var u=Me.decode(Bn.substring(t,r,r+this.typeBitStringLength));r+=this.typeBitStringLength;var c=new Oo([]).substring(t,r),a=io.decode(c);r+=c.length,e.push(new wo(i,u,a))}this.value=e}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{var n="";n+=Bn.substring(t,e,e+12);for(var r=Me.decode(n.toString()),o=e+n.length,i=0;i<r;i++){var u=Bn.substring(t,o,o+this.keyBitStringLength);o+=u.length,n+=u;var c=Bn.substring(t,o,o+this.typeBitStringLength);o+=c.length,n+=c;var a=new Oo([]).substring(t,o);o+=a.length,n+=a}return n}catch(t){throw new Gn(t)}}}])&&No(e.prototype,n),r&&No(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function ko(t){return(ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Go(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Lo(r.key),r)}}function Lo(t){var e=function(t,e){if("object"!=ko(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ko(e)?e:e+""}function Fo(t,e){return(Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function xo(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ho(t);if(e){var o=Ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bo(this,n)}}function Bo(t,e){if(e&&("object"===ko(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ho(t){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fo(t,e)}(i,t);var e,n,r,o=xo(i);function i(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Uo(this,i),(e=o.call(this,n)).setValue(t),e}return e=i,(n=[{key:"encode",value:function(){try{return fn.encode(this.value)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=fn.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{return Bn.substring(t,e,e+1)}catch(t){throw new Gn(t)}}}])&&Go(e.prototype,n),r&&Go(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function Ko(t){return(Ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wo(r.key),r)}}function Wo(t){var e=function(t,e){if("object"!=Ko(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ko(e)?e:e+""}var Qo=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t){return t?Me.encode(Math.round(t.getTime()/100),36):Me.encode(0,36)}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t)||36!==t.length)throw new me("Undecodable Datetime '"+t+"'");return new Date(100*Me.decode(t))}}],(n=null)&&Yo(e.prototype,n),r&&Yo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Xo(t){return(Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qo(r.key),r)}}function qo(t){var e=function(t,e){if("object"!=Xo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Xo(e)?e:e+""}function Zo(t,e){return(Zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ti(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=ni(t);if(e){var o=ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ei(this,n)}}function ei(t,e){if(e&&("object"===Xo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ni(t){return(ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ri=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zo(t,e)}(i,t);var e,n,r,o=ti(i);function i(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return $o(this,i),(e=o.call(this,n)).setValue(t),e}return e=i,(n=[{key:"encode",value:function(){try{return Qo.encode(this.value)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=Qo.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{return Bn.substring(t,e,e+36)}catch(t){throw new Gn(t)}}}])&&Jo(e.prototype,n),r&&Jo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function oi(t){return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ui(r.key),r)}}function ui(t){var e=function(t,e){if("object"!=oi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=oi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oi(e)?e:e+""}var ci=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t,e){if(t.length>e)throw new Ce("Too many values '"+t.length+"'");for(var n="",r=0;r<t.length;r++)n+=fn.encode(t[r]);for(;n.length<e;)n+="0";return n}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t))throw new me("Undecodable FixedBitfield '"+t+"'");for(var e=[],n=0;n<t.length;n++)e.push(fn.decode(t.substring(n,n+1)));return e}}],(n=null)&&ii(e.prototype,n),r&&ii(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ai(t){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function li(t){return function(t){if(Array.isArray(t))return fi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return fi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fi(t,e)}(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.")}()}function fi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function si(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,mi(r.key),r)}}function yi(){return(yi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=bi(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function bi(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Oi(t)););return t}function di(t,e){return(di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vi(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Oi(t);if(e){var o=Oi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hi(this,n)}}function hi(t,e){if(e&&("object"===ai(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Si(t)}function Si(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oi(t){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ei(t,e,n){return(e=mi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mi(t){var e=function(t,e){if("object"!=ai(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ai(e)?e:e+""}var gi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&di(t,e)}(i,t);var e,n,r,o=vi(i);function i(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return si(this,i),Ei(Si(e=o.call(this,n)),"numElements",void 0),e.numElements=t.length,e.setValue(t),e}return e=i,(n=[{key:"encode",value:function(){try{return ci.encode(this.value,this.numElements)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=ci.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{return Bn.substring(t,e,e+this.numElements)}catch(t){throw new Gn(t)}}},{key:"getValue",value:function(){return li(yi(Oi(i.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(t){for(var e=li(t),n=e.length;n<this.numElements;n++)e.push(!1);e.length>this.numElements&&(e=e.slice(0,this.numElements)),yi(Oi(i.prototype),"setValue",this).call(this,e)}}])&&pi(e.prototype,n),r&&pi(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function _i(t){return(_i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ti(r.key),r)}}function Ti(t){var e=function(t,e){if("object"!=_i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_i(e)?e:e+""}var Pi=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t,e){for(;t.length<e;)t+=" ";for(var n="",r=0;r<t.length;r++){var o=t.charCodeAt(r);if(32===o)n+=Me.encode(63,6);else{if(!(o>=65))throw new Ce("Unencodable FixedString '"+t+"'");n+=Me.encode(t.charCodeAt(r)-65,6)}}return n}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t)||t.length%6!=0)throw new me("Undecodable FixedString '"+t+"'");for(var e="",n=0;n<t.length;n+=6){var r=Me.decode(t.substring(n,n+6));e+=63===r?" ":String.fromCharCode(r+65)}return e.trim()}}],(n=null)&&wi(e.prototype,n),r&&wi(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ni(t){return(Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ji(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ki(r.key),r)}}function Ai(t,e){return(Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ci(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Vi(t);if(e){var o=Vi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Di(this,n)}}function Di(t,e){if(e&&("object"===Ni(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ri(t)}function Ri(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vi(t){return(Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Mi(t,e,n){return(e=ki(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ki(t){var e=function(t,e){if("object"!=Ni(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ni(e)?e:e+""}var Ui=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ai(t,e)}(i,t);var e,n,r,o=Ci(i);function i(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Ii(this,i),Mi(Ri(n=o.call(this,r)),"stringLength",void 0),n.stringLength=t,n.setValue(e),n}return e=i,(n=[{key:"encode",value:function(){try{return Pi.encode(this.value,this.stringLength)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=Pi.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{return Bn.substring(t,e,e+6*this.stringLength)}catch(t){throw new Gn(t)}}}])&&ji(e.prototype,n),r&&ji(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function Gi(t){return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Li(t){return function(t){if(Array.isArray(t))return Fi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Fi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fi(t,e)}(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.")}()}function Fi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Hi(r.key),r)}}function Hi(t){var e=function(t,e){if("object"!=Gi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Gi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Gi(e)?e:e+""}function zi(){return(zi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=Ki(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Ki(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Xi(t)););return t}function Yi(t,e){return(Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Wi(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Xi(t);if(e){var o=Xi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qi(this,n)}}function Qi(t,e){if(e&&("object"===Gi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Xi(t){return(Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $i=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yi(t,e)}(i,t);var e,n,r,o=Wi(i);function i(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return xi(this,i),(e=o.call(this,n)).setValue(t),e}return e=i,(n=[{key:"encode",value:function(){try{var t=this.value.length>0?this.value[this.value.length-1]:0,e=io.encode(this.value),n=e.length,r=t;if(n<=r)return Me.encode(t,16)+"1"+e;for(var o=[],i=0,u=0;u<t;u++)u===this.value[i]-1?(o[u]=!0,i++):o[u]=!1;return Me.encode(t,16)+"0"+ci.encode(o,r)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{if("1"===t.charAt(16))this.value=io.decode(t.substring(17));else{for(var e=[],n=ci.decode(t.substring(17)),r=0;r<n.length;r++)!0===n[r]&&e.push(r+1);this.value=e}}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{var n=Me.decode(Bn.substring(t,e,e+16));return"1"===t.charAt(e+16)?Bn.substring(t,e,e+17)+new Oo([]).substring(t,e+17):Bn.substring(t,e,e+17+n)}catch(t){throw new Gn(t)}}},{key:"getValue",value:function(){return Li(zi(Xi(i.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(t){zi(Xi(i.prototype),"setValue",this).call(this,Array.from(new Set(t)).sort((function(t,e){return t-e})))}}])&&Bi(e.prototype,n),r&&Bi(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function Ji(t){return(Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,iu(r.key),r)}}function Zi(t,e){return(Zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tu(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=ru(t);if(e){var o=ru(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eu(this,n)}}function eu(t,e){if(e&&("object"===Ji(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nu(t)}function nu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ru(t){return(ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ou(t,e,n){return(e=iu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iu(t){var e=function(t,e){if("object"!=Ji(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ji(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ji(e)?e:e+""}var uu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zi(t,e)}(i,t);var e,n,r,o=tu(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),ou(nu(e=o.call(this)),"base64UrlEncoder",eo.getInstance()),ou(nu(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return zr}},{key:"initializeFields",value:function(){var t=new Date,e=new hr;return e.put(Br.VERSION.toString(),new pr(6,lc.VERSION)),e.put(Br.CREATED.toString(),new ri(t)),e.put(Br.LAST_UPDATED.toString(),new ri(t)),e.put(Br.CMP_ID.toString(),new pr(12,0)),e.put(Br.CMP_VERSION.toString(),new pr(12,0)),e.put(Br.CONSENT_SCREEN.toString(),new pr(6,0)),e.put(Br.CONSENT_LANGUAGE.toString(),new Ui(2,"EN")),e.put(Br.VENDOR_LIST_VERSION.toString(),new pr(12,0)),e.put(Br.POLICY_VERSION.toString(),new pr(6,2)),e.put(Br.IS_SERVICE_SPECIFIC.toString(),new zo(!1)),e.put(Br.USE_NON_STANDARD_STACKS.toString(),new zo(!1)),e.put(Br.SPECIAL_FEATURE_OPTINS.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(Br.PURPOSE_CONSENTS.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(Br.PURPOSE_LEGITIMATE_INTERESTS.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(Br.PURPOSE_ONE_TREATMENT.toString(),new zo(!1)),e.put(Br.PUBLISHER_COUNTRY_CODE.toString(),new Ui(2,"AA")),e.put(Br.VENDOR_CONSENTS.toString(),new $i([])),e.put(Br.VENDOR_LEGITIMATE_INTERESTS.toString(),new $i([])),e.put(Br.PUBLISHER_RESTRICTIONS.toString(),new Mo(6,2,[],!1)),e}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode TcfEuV2CoreSegment '"+t+"'")}}}])&&qi(e.prototype,n),r&&qi(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function cu(t){return(cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function au(t){return function(t){if(Array.isArray(t))return lu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return lu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lu(t,e)}(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.")}()}function lu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function su(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Eu(r.key),r)}}function pu(){return(pu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=yu(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function yu(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Su(t)););return t}function bu(t,e){return(bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function du(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Su(t);if(e){var o=Su(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vu(this,n)}}function vu(t,e){if(e&&("object"===cu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hu(t)}function hu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Su(t){return(Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ou(t,e,n){return(e=Eu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eu(t){var e=function(t,e){if("object"!=cu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=cu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cu(e)?e:e+""}var mu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bu(t,e)}(i,t);var e,n,r,o=du(i);function i(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return fu(this,i),Ou(hu(n=o.call(this,r)),"getLength",void 0),n.getLength=t,n.setValue(e),n}return e=i,(n=[{key:"encode",value:function(){try{return ci.encode(this.value,this.getLength())}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=ci.decode(t)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{return Bn.substring(t,e,e+this.getLength())}catch(t){throw new Gn(t)}}},{key:"getValue",value:function(){return au(pu(Su(i.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(t){for(var e=this.getLength(),n=au(t),r=n.length;r<e;r++)n.push(!1);n.length>e&&(n=n.slice(0,e)),pu(Su(i.prototype),"setValue",this).call(this,au(n))}}])&&su(e.prototype,n),r&&su(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function gu(t){return(gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Au(r.key),r)}}function wu(t,e){return(wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Tu(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Iu(t);if(e){var o=Iu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pu(this,n)}}function Pu(t,e){if(e&&("object"===gu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Nu(t)}function Nu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Iu(t){return(Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ju(t,e,n){return(e=Au(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Au(t){var e=function(t,e){if("object"!=gu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gu(e)?e:e+""}var Cu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wu(t,e)}(i,t);var e,n,r,o=Tu(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),ju(Nu(e=o.call(this)),"base64UrlEncoder",eo.getInstance()),ju(Nu(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Kr}},{key:"initializeFields",value:function(){var t=new hr;t.put(Br.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new pr(3,3)),t.put(Br.PUBLISHER_CONSENTS.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(Br.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var e=new pr(6,0);return t.put(Br.NUM_CUSTOM_PURPOSES.toString(),e),t.put(Br.PUBLISHER_CUSTOM_CONSENTS.toString(),new mu((function(){return e.getValue()}),[])),t.put(Br.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new mu((function(){return e.getValue()}),[])),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode TcfEuV2PublisherPurposesSegment '"+t+"'")}}}])&&_u(e.prototype,n),r&&_u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Du(t){return(Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ru(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Fu(r.key),r)}}function Vu(t,e){return(Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Mu(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Gu(t);if(e){var o=Gu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ku(this,n)}}function ku(t,e){if(e&&("object"===Du(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Uu(t)}function Uu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gu(t){return(Gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Lu(t,e,n){return(e=Fu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fu(t){var e=function(t,e){if("object"!=Du(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Du(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Du(e)?e:e+""}var xu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vu(t,e)}(i,t);var e,n,r,o=Mu(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Lu(Uu(e=o.call(this)),"base64UrlEncoder",eo.getInstance()),Lu(Uu(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Yr}},{key:"initializeFields",value:function(){var t=new hr;return t.put(Br.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new pr(3,2)),t.put(Br.VENDORS_ALLOWED.toString(),new $i([])),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode TcfEuV2VendorsAllowedSegment '"+t+"'")}}}])&&Ru(e.prototype,n),r&&Ru(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Bu(t){return(Bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$u(r.key),r)}}function zu(t,e){return(zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ku(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Qu(t);if(e){var o=Qu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yu(this,n)}}function Yu(t,e){if(e&&("object"===Bu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wu(t)}function Wu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qu(t){return(Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xu(t,e,n){return(e=$u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $u(t){var e=function(t,e){if("object"!=Bu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Bu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bu(e)?e:e+""}var Ju=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zu(t,e)}(i,t);var e,n,r,o=Ku(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Xu(Wu(e=o.call(this)),"base64UrlEncoder",eo.getInstance()),Xu(Wu(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Wr}},{key:"initializeFields",value:function(){var t=new hr;return t.put(Br.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new pr(3,1)),t.put(Br.VENDORS_DISCLOSED.toString(),new $i([])),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode TcfEuV2VendorsDisclosedSegment '"+t+"'")}}}])&&Hu(e.prototype,n),r&&Hu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function qu(t){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cc(r.key),r)}}function tc(){return(tc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=ec(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function ec(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ic(t)););return t}function nc(t,e){return(nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function rc(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=ic(t);if(e){var o=ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(t,e){if(e&&("object"===qu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ic(t){return(ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function uc(t,e,n){return(e=cc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cc(t){var e=function(t,e){if("object"!=qu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=qu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qu(e)?e:e+""}var ac,lc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nc(t,e)}(i,t);var e,n,r,o=rc(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new uu),t.push(new Cu),t.push(new xu),t.push(new Ju),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length)for(var n=t.split("."),r=0;r<n.length;r++){var o=n[r];if(0!==o.length){var i=o.charAt(0);if(i>="A"&&i<="H")e[0].decode(n[r]);else if(i>="I"&&i<="P")e[3].decode(n[r]);else if(i>="Q"&&i<="X")e[2].decode(n[r]);else{if(!(i>="Y"&&i<="Z"||i>="a"&&i<="f"))throw new me("Unable to decode TcfEuV2 segment '"+o+"'");e[1].decode(n[r])}}}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),this.getFieldValue(Br.IS_SERVICE_SPECIFIC)?t.length>=2&&e.push(t[1].encode()):t.length>=2&&(e.push(t[2].encode()),t.length>=3&&e.push(t[3].encode()))),e.join(".")}},{key:"setFieldValue",value:function(t,e){if(tc(ic(i.prototype),"setFieldValue",this).call(this,t,e),t!==Br.CREATED&&t!==Br.LAST_UPDATED){var n=new Date;tc(ic(i.prototype),"setFieldValue",this).call(this,Br.CREATED,n),tc(ic(i.prototype),"setFieldValue",this).call(this,Br.LAST_UPDATED,n)}}}])&&Zu(e.prototype,n),r&&Zu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);uc(lc,"ID",2),uc(lc,"VERSION",2),uc(lc,"NAME","tcfeuv2"),function(t){t.VERSION="Version",t.CREATED="Created",t.LAST_UPDATED="LastUpdated",t.CMP_ID="CmpId",t.CMP_VERSION="CmpVersion",t.CONSENT_SCREEN="ConsentScreen",t.CONSENT_LANGUAGE="ConsentLanguage",t.VENDOR_LIST_VERSION="VendorListVersion",t.TCF_POLICY_VERSION="TcfPolicyVersion",t.USE_NON_STANDARD_STACKS="UseNonStandardStacks",t.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",t.PUB_PURPOSES_SEGMENT_TYPE="PubPurposesSegmentType",t.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",t.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",t.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",t.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",t.PUB_RESTRICTIONS="PubRestrictions",t.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",t.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",t.NUM_CUSTOM_PURPOSES="NumCustomPurposes",t.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",t.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent",t.DISCLOSED_VENDORS_SEGMENT_TYPE="DisclosedVendorsSegmentType",t.DISCLOSED_VENDORS="DisclosedVendors"}(ac||(ac={}));var fc=[ac.VERSION,ac.CREATED,ac.LAST_UPDATED,ac.CMP_ID,ac.CMP_VERSION,ac.CONSENT_SCREEN,ac.CONSENT_LANGUAGE,ac.VENDOR_LIST_VERSION,ac.TCF_POLICY_VERSION,ac.USE_NON_STANDARD_STACKS,ac.SPECIAL_FEATURE_EXPRESS_CONSENT,ac.PURPOSES_EXPRESS_CONSENT,ac.PURPOSES_IMPLIED_CONSENT,ac.VENDOR_EXPRESS_CONSENT,ac.VENDOR_IMPLIED_CONSENT,ac.PUB_RESTRICTIONS],sc=[ac.PUB_PURPOSES_SEGMENT_TYPE,ac.PUB_PURPOSES_EXPRESS_CONSENT,ac.PUB_PURPOSES_IMPLIED_CONSENT,ac.NUM_CUSTOM_PURPOSES,ac.CUSTOM_PURPOSES_EXPRESS_CONSENT,ac.CUSTOM_PURPOSES_IMPLIED_CONSENT],pc=[ac.DISCLOSED_VENDORS_SEGMENT_TYPE,ac.DISCLOSED_VENDORS];function yc(t){return(yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,mc(r.key),r)}}function dc(t,e){return(dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vc(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Oc(t);if(e){var o=Oc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hc(this,n)}}function hc(t,e){if(e&&("object"===yc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sc(t)}function Sc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oc(t){return(Oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ec(t,e,n){return(e=mc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mc(t){var e=function(t,e){if("object"!=yc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=yc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yc(e)?e:e+""}var gc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dc(t,e)}(i,t);var e,n,r,o=vc(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Ec(Sc(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Ec(Sc(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return fc}},{key:"initializeFields",value:function(){var t=new Date,e=new hr;return e.put(ac.VERSION.toString(),new pr(6,Zc.VERSION)),e.put(ac.CREATED.toString(),new ri(t)),e.put(ac.LAST_UPDATED.toString(),new ri(t)),e.put(ac.CMP_ID.toString(),new pr(12,0)),e.put(ac.CMP_VERSION.toString(),new pr(12,0)),e.put(ac.CONSENT_SCREEN.toString(),new pr(6,0)),e.put(ac.CONSENT_LANGUAGE.toString(),new Ui(2,"EN")),e.put(ac.VENDOR_LIST_VERSION.toString(),new pr(12,0)),e.put(ac.TCF_POLICY_VERSION.toString(),new pr(6,2)),e.put(ac.USE_NON_STANDARD_STACKS.toString(),new zo(!1)),e.put(ac.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(ac.PURPOSES_EXPRESS_CONSENT.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(ac.PURPOSES_IMPLIED_CONSENT.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(ac.VENDOR_EXPRESS_CONSENT.toString(),new $i([])),e.put(ac.VENDOR_IMPLIED_CONSENT.toString(),new $i([])),e.put(ac.PUB_RESTRICTIONS.toString(),new Mo(6,2,[],!1)),e}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode TcfCaV1CoreSegment '"+t+"'")}}}])&&bc(e.prototype,n),r&&bc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function _c(t){return(_c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Cc(r.key),r)}}function Tc(t,e){return(Tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Pc(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=jc(t);if(e){var o=jc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nc(this,n)}}function Nc(t,e){if(e&&("object"===_c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ic(t)}function Ic(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jc(t){return(jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ac(t,e,n){return(e=Cc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cc(t){var e=function(t,e){if("object"!=_c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_c(e)?e:e+""}var Dc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tc(t,e)}(i,t);var e,n,r,o=Pc(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Ac(Ic(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Ac(Ic(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return sc}},{key:"initializeFields",value:function(){var t=new hr;t.put(ac.PUB_PURPOSES_SEGMENT_TYPE.toString(),new pr(3,3)),t.put(ac.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(ac.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new gi([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var e=new pr(6,0);return t.put(ac.NUM_CUSTOM_PURPOSES.toString(),e),t.put(ac.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new mu((function(){return e.getValue()}),[])),t.put(ac.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new mu((function(){return e.getValue()}),[])),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode TcfCaV1PublisherPurposesSegment '"+t+"'")}}}])&&wc(e.prototype,n),r&&wc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Rc(t){return(Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xc(r.key),r)}}function Mc(t,e){return(Mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function kc(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Lc(t);if(e){var o=Lc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uc(this,n)}}function Uc(t,e){if(e&&("object"===Rc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Gc(t)}function Gc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lc(t){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fc(t,e,n){return(e=xc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xc(t){var e=function(t,e){if("object"!=Rc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rc(e)?e:e+""}var Bc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mc(t,e)}(i,t);var e,n,r,o=kc(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Fc(Gc(e=o.call(this)),"base64UrlEncoder",eo.getInstance()),Fc(Gc(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return pc}},{key:"initializeFields",value:function(){var t=new hr;return t.put(ac.DISCLOSED_VENDORS_SEGMENT_TYPE.toString(),new pr(3,1)),t.put(ac.DISCLOSED_VENDORS.toString(),new $i([])),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode HeaderV1CoreSegment '"+t+"'")}}}])&&Vc(e.prototype,n),r&&Vc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Hc(t){return(Hc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qc(r.key),r)}}function Kc(){return(Kc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=Yc(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Yc(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$c(t)););return t}function Wc(t,e){return(Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Qc(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=$c(t);if(e){var o=$c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xc(this,n)}}function Xc(t,e){if(e&&("object"===Hc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function $c(t){return($c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Jc(t,e,n){return(e=qc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qc(t){var e=function(t,e){if("object"!=Hc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Hc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Hc(e)?e:e+""}var Zc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wc(t,e)}(i,t);var e,n,r,o=Qc(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new gc),t.push(new Dc),t.push(new Bc),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length)for(var n=t.split("."),r=0;r<n.length;r++){var o=n[r];if(0!==o.length){var i=o.charAt(0);if(i>="A"&&i<="H")e[0].decode(n[r]);else if(i>="I"&&i<="P")e[2].decode(n[r]);else{if(!(i>="Y"&&i<="Z"||i>="a"&&i<="f"))throw new me("Unable to decode TcfCaV1 segment '"+o+"'");e[1].decode(n[r])}}}return e}},{key:"encodeSection",value:function(t){var e=[];return e.push(t[0].encode()),e.push(t[1].encode()),this.getFieldValue(ac.DISCLOSED_VENDORS).length>0&&e.push(t[2].encode()),e.join(".")}},{key:"setFieldValue",value:function(t,e){if(Kc($c(i.prototype),"setFieldValue",this).call(this,t,e),t!==ac.CREATED&&t!==ac.LAST_UPDATED){var n=new Date;Kc($c(i.prototype),"setFieldValue",this).call(this,ac.CREATED,n),Kc($c(i.prototype),"setFieldValue",this).call(this,ac.LAST_UPDATED,n)}}}])&&zc(e.prototype,n),r&&zc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Jc(Zc,"ID",5),Jc(Zc,"VERSION",1),Jc(Zc,"NAME","tcfcav1");n(107);function ta(t){return(ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ea(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function na(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ia(r.key),r)}}function ra(t,e,n){return e&&na(t.prototype,e),n&&na(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function oa(t,e,n){return(e=ia(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ia(t){var e=function(t,e){if("object"!=ta(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ta(e)?e:e+""}var ua=function(){function t(e,n){ea(this,t),oa(this,"validator",void 0),oa(this,"value",null),this.validator=n||new(function(){function t(){ea(this,t)}return ra(t,[{key:"test",value:function(t){return!0}}]),t}()),this.setValue(e)}return ra(t,[{key:"hasValue",value:function(){return null!=this.value}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(t){t?this.value=t.charAt(0):t=null}}]),t}();function ca(t){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function la(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pa(r.key),r)}}function fa(t,e,n){return e&&la(t.prototype,e),n&&la(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sa(t,e,n){return(e=pa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pa(t){var e=function(t,e){if("object"!=ca(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ca(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ca(e)?e:e+""}var ya=function(){function t(e,n){aa(this,t),sa(this,"validator",void 0),sa(this,"value",null),this.validator=n||new(function(){function t(){aa(this,t)}return fa(t,[{key:"test",value:function(t){return!0}}]),t}()),this.setValue(e)}return fa(t,[{key:"hasValue",value:function(){return null!=this.value}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(t){this.value=t}}]),t}();function ba(t){return(ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function da(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,va(r.key),r)}}function va(t){var e=function(t,e){if("object"!=ba(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ba(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ba(e)?e:e+""}var ha,Sa=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){(e=va(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"fields",new Map)}var e,n,r;return e=t,(n=[{key:"containsKey",value:function(t){return this.fields.has(t)}},{key:"put",value:function(t,e){this.fields.set(t,e)}},{key:"get",value:function(t){return this.fields.get(t)}},{key:"getAll",value:function(){return new Map(this.fields)}},{key:"reset",value:function(t){var e=this;this.fields.clear(),t.getAll().forEach((function(t,n){e.fields.set(n,t)}))}}])&&da(e.prototype,n),r&&da(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();!function(t){t.VERSION="Version",t.NOTICE="Notice",t.OPT_OUT_SALE="OptOutSale",t.LSPA_COVERED="LspaCovered"}(ha||(ha={}));var Oa=[ha.VERSION,ha.NOTICE,ha.OPT_OUT_SALE,ha.LSPA_COVERED];function Ea(t){return(Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ma(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ga(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,wa(r.key),r)}}function _a(t,e,n){return e&&ga(t.prototype,e),n&&ga(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function wa(t){var e=function(t,e){if("object"!=Ea(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ea(e)?e:e+""}function Ta(t,e){return(Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Pa(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ia(t);if(e){var o=Ia(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Na(this,n)}}function Na(t,e){if(e&&("object"===Ea(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ia(t){return(Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ja=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ta(t,e)}(n,t);var e=Pa(n);function n(t){var r;return ma(this,n),r=e.call(this),t&&r.decode(t),r}return _a(n,[{key:"getFieldNames",value:function(){return Oa}},{key:"initializeFields",value:function(){var t=new(function(){function t(){ma(this,t)}return _a(t,[{key:"test",value:function(t){return"-"===t||"Y"===t||"N"===t}}]),t}()),e=new Sa;return e.put(ha.VERSION,new ya(La.VERSION)),e.put(ha.NOTICE,new ua("-",t)),e.put(ha.OPT_OUT_SALE,new ua("-",t)),e.put(ha.LSPA_COVERED,new ua("-",t)),e}},{key:"encodeSegment",value:function(t){var e="";return e+=t.get(ha.VERSION).getValue(),e+=t.get(ha.NOTICE).getValue(),e+=t.get(ha.OPT_OUT_SALE).getValue(),e+=t.get(ha.LSPA_COVERED).getValue()}},{key:"decodeSegment",value:function(t,e){if(null==t||4!=t.length)throw new me("Unable to decode UspV1CoreSegment '"+t+"'");try{e.get(ha.VERSION).setValue(parseInt(t.substring(0,1))),e.get(ha.NOTICE).setValue(t.charAt(1)),e.get(ha.OPT_OUT_SALE).setValue(t.charAt(2)),e.get(ha.LSPA_COVERED).setValue(t.charAt(3))}catch(e){throw new me("Unable to decode UspV1CoreSegment '"+t+"'")}}}]),n}(_r);function Aa(t){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ca(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ua(r.key),r)}}function Da(t,e){return(Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ra(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ma(t);if(e){var o=Ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Va(this,n)}}function Va(t,e){if(e&&("object"===Aa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ma(t){return(Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ka(t,e,n){return(e=Ua(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ua(t){var e=function(t,e){if("object"!=Aa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Aa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Aa(e)?e:e+""}var Ga,La=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Da(t,e)}(i,t);var e,n,r,o=Ra(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new ja),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length)for(var n=t.split("."),r=0;r<e.length;r++)n.length>r&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r.encode())}return e.join(".")}}])&&Ca(e.prototype,n),r&&Ca(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);ka(La,"ID",6),ka(La,"VERSION",1),ka(La,"NAME","uspv1"),function(t){t.VERSION="Version",t.SHARING_NOTICE="SharingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",t.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",t.SALE_OPT_OUT="SaleOptOut",t.SHARING_OPT_OUT="SharingOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.PERSONAL_DATA_CONSENTS="PersonalDataConsents",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(Ga||(Ga={}));var Fa=[Ga.VERSION,Ga.SHARING_NOTICE,Ga.SALE_OPT_OUT_NOTICE,Ga.SHARING_OPT_OUT_NOTICE,Ga.TARGETED_ADVERTISING_OPT_OUT_NOTICE,Ga.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,Ga.SENSITIVE_DATA_LIMIT_USE_NOTICE,Ga.SALE_OPT_OUT,Ga.SHARING_OPT_OUT,Ga.TARGETED_ADVERTISING_OPT_OUT,Ga.SENSITIVE_DATA_PROCESSING,Ga.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,Ga.PERSONAL_DATA_CONSENTS,Ga.MSPA_COVERED_TRANSACTION,Ga.MSPA_OPT_OUT_OPTION_MODE,Ga.MSPA_SERVICE_PROVIDER_MODE],xa=[Ga.GPC_SEGMENT_TYPE,Ga.GPC];function Ba(t){return(Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ha(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,za(r.key),r)}}function za(t){var e=function(t,e){if("object"!=Ba(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ba(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ba(e)?e:e+""}var Ka=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"encode",value:function(t,e,n){if(t.length>n)throw new Ce("Too many values '"+t.length+"'");for(var r="",o=0;o<t.length;o++)r+=Me.encode(t[o],e);for(;r.length<e*n;)r+="0";return r}},{key:"decode",value:function(t,e,n){if(!/^[0-1]*$/.test(t))throw new me("Undecodable FixedInteger '"+t+"'");if(t.length>e*n)throw new me("Undecodable FixedIntegerList '"+t+"'");if(t.length%e!=0)throw new me("Undecodable FixedIntegerList '"+t+"'");for(;t.length<e*n;)t+="0";t.length>e*n&&(t=t.substring(0,e*n));for(var r=[],o=0;o<t.length;o+=e)r.push(Me.decode(t.substring(o,o+e)));for(;r.length<n;)r.push(0);return r}}],(n=null)&&Ha(e.prototype,n),r&&Ha(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ya(t){return(Ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wa(t){return function(t){if(Array.isArray(t))return Qa(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Qa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qa(t,e)}(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.")}()}function Qa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,il(r.key),r)}}function Ja(){return(Ja="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=qa(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function qa(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=rl(t)););return t}function Za(t,e){return(Za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tl(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=rl(t);if(e){var o=rl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return el(this,n)}}function el(t,e){if(e&&("object"===Ya(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nl(t)}function nl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rl(t){return(rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ol(t,e,n){return(e=il(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function il(t){var e=function(t,e){if("object"!=Ya(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ya(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ya(e)?e:e+""}var ul=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Za(t,e)}(i,t);var e,n,r,o=tl(i);function i(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Xa(this,i),ol(nl(n=o.call(this,r)),"elementBitStringLength",void 0),ol(nl(n),"numElements",void 0),n.elementBitStringLength=t,n.numElements=e.length,n.setValue(e),n}return e=i,(n=[{key:"encode",value:function(){try{return Ka.encode(this.value,this.elementBitStringLength,this.numElements)}catch(t){throw new Ce(t)}}},{key:"decode",value:function(t){try{this.value=Ka.decode(t,this.elementBitStringLength,this.numElements)}catch(t){throw new me(t)}}},{key:"substring",value:function(t,e){try{return Bn.substring(t,e,e+this.elementBitStringLength*this.numElements)}catch(t){throw new Gn(t)}}},{key:"getValue",value:function(){return Wa(Ja(rl(i.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(t){for(var e=Wa(t),n=e.length;n<this.numElements;n++)e.push(0);e.length>this.numElements&&(e=e.slice(0,this.numElements)),Ja(rl(i.prototype),"setValue",this).call(this,e)}}])&&$a(e.prototype,n),r&&$a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(An);function cl(t){return(cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function al(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ll(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,hl(r.key),r)}}function fl(t,e,n){return e&&ll(t.prototype,e),n&&ll(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sl(t,e){return(sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function pl(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=dl(t);if(e){var o=dl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yl(this,n)}}function yl(t,e){if(e&&("object"===cl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bl(t)}function bl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dl(t){return(dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vl(t,e,n){return(e=hl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hl(t){var e=function(t,e){if("object"!=cl(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=cl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cl(e)?e:e+""}var Sl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sl(t,e)}(n,t);var e=pl(n);function n(t){var r;return al(this,n),vl(bl(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),vl(bl(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return fl(n,[{key:"getFieldNames",value:function(){return Fa}},{key:"initializeFields",value:function(){var t=new(function(){function t(){al(this,t)}return fl(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){al(this,t)}return fl(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){al(this,t)}return fl(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(Ga.VERSION.toString(),new pr(6,Ul.VERSION)),r.put(Ga.SHARING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SHARING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SHARING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ga.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]).withValidator(n)),r.put(Ga.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0]).withValidator(n)),r.put(Ga.PERSONAL_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(Ga.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(Ga.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);66==n.length&&(n=n.substring(0,48)+"00000000"+n.substring(48,52)+"00"+n.substring(52,62)),this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNatCoreSegment '"+t+"'")}}}]),n}(_r);function Ol(t){return(Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function El(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Nl(r.key),r)}}function ml(t,e){return(ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gl(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Tl(t);if(e){var o=Tl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _l(this,n)}}function _l(t,e){if(e&&("object"===Ol(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wl(t)}function wl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tl(t){return(Tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Pl(t,e,n){return(e=Nl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nl(t){var e=function(t,e){if("object"!=Ol(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ol(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ol(e)?e:e+""}var Il=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ml(t,e)}(i,t);var e,n,r,o=gl(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Pl(wl(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Pl(wl(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return xa}},{key:"initializeFields",value:function(){var t=new hr;return t.put(Ga.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(Ga.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(Ga.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNatGpcSegment '"+t+"'")}}}])&&El(e.prototype,n),r&&El(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function jl(t){return(jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Al(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kl(r.key),r)}}function Cl(t,e){return(Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Dl(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Vl(t);if(e){var o=Vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rl(this,n)}}function Rl(t,e){if(e&&("object"===jl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Vl(t){return(Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ml(t,e,n){return(e=kl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kl(t){var e=function(t,e){if("object"!=jl(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=jl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jl(e)?e:e+""}var Ul=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cl(t,e)}(i,t);var e,n,r,o=Dl(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Sl),t.push(new Il),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(Ga.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(Ga.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(Ga.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Al(e.prototype,n),r&&Al(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);function Gl(t){return(Gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ll(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ql(r.key),r)}}function xl(t,e,n){return e&&Fl(t.prototype,e),n&&Fl(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bl(t,e){return(Bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Hl(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Yl(t);if(e){var o=Yl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zl(this,n)}}function zl(t,e){if(e&&("object"===Gl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Kl(t)}function Kl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yl(t){return(Yl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Wl(t,e,n){return(e=Ql(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ql(t){var e=function(t,e){if("object"!=Gl(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Gl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Gl(e)?e:e+""}Ml(Ul,"ID",7),Ml(Ul,"VERSION",2),Ml(Ul,"NAME","usnat");var Xl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bl(t,e)}(n,t);var e=Hl(n);function n(t,r){var o;return Ll(this,n),Wl(Kl(o=e.call(this)),"base64UrlEncoderSP",Je.getInstance()),Wl(Kl(o),"bitStringEncoderSP",en.getInstance()),t&&o.decode(t),1===r&&(o.fields=o.initializeFieldsV1()),o}return xl(n,[{key:"initializeFieldsV1",value:function(){var t=new(function(){function t(){Ll(this,t)}return xl(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Ll(this,t)}return xl(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Ll(this,t)}return xl(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(Ga.VERSION.toString(),new pr(6,1)),r.put(Ga.SHARING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SHARING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SHARING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ga.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ga.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0,0,0,0,0]).withValidator(n)),r.put(Ga.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0]).withValidator(n)),r.put(Ga.PERSONAL_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(Ga.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(Ga.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(Ga.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoderSP.decode(t);66===n.length&&(this.fields=this.initializeFieldsV1(),e=this.fields),this.bitStringEncoderSP.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNatCoreSegment '"+t+"'")}}}]),n}(Sl);function $l(t){return($l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ql(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,uf(r.key),r)}}function Zl(t,e){return(Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tf(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=rf(t);if(e){var o=rf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ef(this,n)}}function ef(t,e){if(e&&("object"===$l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nf(t)}function nf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rf(t){return(rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function of(t,e,n){return(e=uf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uf(t){var e=function(t,e){if("object"!=$l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=$l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$l(e)?e:e+""}var cf,af=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zl(t,e)}(i,t);var e,n,r,o=tf(i);function i(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Jl(this,i),of(nf(e=o.call(this)),"version",i.VERSION),e.version=n,e.segments=e.initializeSegments(),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getVersion",value:function(){return this.version}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Xl(void 0,this.version)),t.push(new Il),t}}])&&ql(e.prototype,n),r&&ql(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(Ul);of(af,"ID",7),of(af,"NAME","usnat"),function(t){t.VERSION="Version",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",t.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",t.SALE_OPT_OUT="SaleOptOut",t.SHARING_OPT_OUT="SharingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.PERSONAL_DATA_CONSENTS="PersonalDataConsents",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(cf||(cf={}));var lf=[cf.VERSION,cf.SALE_OPT_OUT_NOTICE,cf.SHARING_OPT_OUT_NOTICE,cf.SENSITIVE_DATA_LIMIT_USE_NOTICE,cf.SALE_OPT_OUT,cf.SHARING_OPT_OUT,cf.SENSITIVE_DATA_PROCESSING,cf.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,cf.PERSONAL_DATA_CONSENTS,cf.MSPA_COVERED_TRANSACTION,cf.MSPA_OPT_OUT_OPTION_MODE,cf.MSPA_SERVICE_PROVIDER_MODE],ff=[cf.GPC_SEGMENT_TYPE,cf.GPC];function sf(t){return(sf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,mf(r.key),r)}}function bf(t,e,n){return e&&yf(t.prototype,e),n&&yf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function df(t,e){return(df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vf(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Of(t);if(e){var o=Of(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hf(this,n)}}function hf(t,e){if(e&&("object"===sf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sf(t)}function Sf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Of(t){return(Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ef(t,e,n){return(e=mf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mf(t){var e=function(t,e){if("object"!=sf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=sf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sf(e)?e:e+""}var gf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&df(t,e)}(n,t);var e=vf(n);function n(t){var r;return pf(this,n),Ef(Sf(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),Ef(Sf(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return bf(n,[{key:"getFieldNames",value:function(){return lf}},{key:"initializeFields",value:function(){var t=new(function(){function t(){pf(this,t)}return bf(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){pf(this,t)}return bf(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){pf(this,t)}return bf(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(cf.VERSION.toString(),new pr(6,Bf.VERSION)),r.put(cf.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(cf.SHARING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(cf.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(cf.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(cf.SHARING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(cf.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0,0]).withValidator(n)),r.put(cf.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0]).withValidator(n)),r.put(cf.PERSONAL_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(cf.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(cf.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(cf.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsCaCoreSegment '"+t+"'")}}}]),n}(_r);function _f(t){return(_f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Cf(r.key),r)}}function Tf(t,e){return(Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Pf(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=jf(t);if(e){var o=jf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nf(this,n)}}function Nf(t,e){if(e&&("object"===_f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return If(t)}function If(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jf(t){return(jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Af(t,e,n){return(e=Cf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cf(t){var e=function(t,e){if("object"!=_f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_f(e)?e:e+""}var Df=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tf(t,e)}(i,t);var e,n,r,o=Pf(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Af(If(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Af(If(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return ff}},{key:"initializeFields",value:function(){var t=new hr;return t.put(cf.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(cf.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(cf.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsCaGpcSegment '"+t+"'")}}}])&&wf(e.prototype,n),r&&wf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Rf(t){return(Rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ff(r.key),r)}}function Mf(t,e){return(Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function kf(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Gf(t);if(e){var o=Gf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uf(this,n)}}function Uf(t,e){if(e&&("object"===Rf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Gf(t){return(Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Lf(t,e,n){return(e=Ff(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ff(t){var e=function(t,e){if("object"!=Rf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Rf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rf(e)?e:e+""}var xf,Bf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mf(t,e)}(i,t);var e,n,r,o=kf(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new gf),t.push(new Df),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(cf.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(cf.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(cf.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Vf(e.prototype,n),r&&Vf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Lf(Bf,"ID",8),Lf(Bf,"VERSION",1),Lf(Bf,"NAME","usca"),function(t){t.VERSION="Version",t.SHARING_NOTICE="SharingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"}(xf||(xf={}));var Hf=[xf.VERSION,xf.SHARING_NOTICE,xf.SALE_OPT_OUT_NOTICE,xf.TARGETED_ADVERTISING_OPT_OUT_NOTICE,xf.SALE_OPT_OUT,xf.TARGETED_ADVERTISING_OPT_OUT,xf.SENSITIVE_DATA_PROCESSING,xf.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,xf.MSPA_COVERED_TRANSACTION,xf.MSPA_OPT_OUT_OPTION_MODE,xf.MSPA_SERVICE_PROVIDER_MODE];function zf(t){return(zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ts(r.key),r)}}function Wf(t,e,n){return e&&Yf(t.prototype,e),n&&Yf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qf(t,e){return(Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Xf(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=qf(t);if(e){var o=qf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $f(this,n)}}function $f(t,e){if(e&&("object"===zf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Jf(t)}function Jf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qf(t){return(qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Zf(t,e,n){return(e=ts(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ts(t){var e=function(t,e){if("object"!=zf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zf(e)?e:e+""}var es=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qf(t,e)}(n,t);var e=Xf(n);function n(t){var r;return Kf(this,n),Zf(Jf(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),Zf(Jf(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return Wf(n,[{key:"getFieldNames",value:function(){return Hf}},{key:"initializeFields",value:function(){var t=new(function(){function t(){Kf(this,t)}return Wf(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Kf(this,t)}return Wf(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Kf(this,t)}return Wf(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(xf.VERSION.toString(),new pr(6,ss.VERSION)),r.put(xf.SHARING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(xf.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(xf.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(xf.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(xf.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(xf.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(xf.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(xf.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(xf.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(xf.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsVaCoreSegment '"+t+"'")}}}]),n}(_r);function ns(t){return(ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ls(r.key),r)}}function os(t,e){return(os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function is(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=cs(t);if(e){var o=cs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return us(this,n)}}function us(t,e){if(e&&("object"===ns(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function cs(t){return(cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function as(t,e,n){return(e=ls(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ls(t){var e=function(t,e){if("object"!=ns(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ns(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ns(e)?e:e+""}var fs,ss=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&os(t,e)}(i,t);var e,n,r,o=is(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new es),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length)for(var n=t.split("."),r=0;r<e.length;r++)n.length>r&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r.encode())}return e.join(".")}}])&&rs(e.prototype,n),r&&rs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);as(ss,"ID",9),as(ss,"VERSION",1),as(ss,"NAME","usva"),function(t){t.VERSION="Version",t.SHARING_NOTICE="SharingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(fs||(fs={}));var ps=[fs.VERSION,fs.SHARING_NOTICE,fs.SALE_OPT_OUT_NOTICE,fs.TARGETED_ADVERTISING_OPT_OUT_NOTICE,fs.SALE_OPT_OUT,fs.TARGETED_ADVERTISING_OPT_OUT,fs.SENSITIVE_DATA_PROCESSING,fs.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,fs.MSPA_COVERED_TRANSACTION,fs.MSPA_OPT_OUT_OPTION_MODE,fs.MSPA_SERVICE_PROVIDER_MODE],ys=[fs.GPC_SEGMENT_TYPE,fs.GPC];function bs(t){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ds(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ws(r.key),r)}}function hs(t,e,n){return e&&vs(t.prototype,e),n&&vs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ss(t,e){return(Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Os(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=gs(t);if(e){var o=gs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Es(this,n)}}function Es(t,e){if(e&&("object"===bs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ms(t)}function ms(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gs(t){return(gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _s(t,e,n){return(e=ws(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ws(t){var e=function(t,e){if("object"!=bs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=bs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bs(e)?e:e+""}var Ts=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ss(t,e)}(n,t);var e=Os(n);function n(t){var r;return ds(this,n),_s(ms(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),_s(ms(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return hs(n,[{key:"getFieldNames",value:function(){return ps}},{key:"initializeFields",value:function(){var t=new(function(){function t(){ds(this,t)}return hs(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){ds(this,t)}return hs(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){ds(this,t)}return hs(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(fs.VERSION.toString(),new pr(6,Ks.VERSION)),r.put(fs.SHARING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(fs.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(fs.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(fs.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(fs.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(fs.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0]).withValidator(n)),r.put(fs.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(fs.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(fs.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(fs.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsCoCoreSegment '"+t+"'")}}}]),n}(_r);function Ps(t){return(Ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ns(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Vs(r.key),r)}}function Is(t,e){return(Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function js(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ds(t);if(e){var o=Ds(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return As(this,n)}}function As(t,e){if(e&&("object"===Ps(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cs(t)}function Cs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ds(t){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rs(t,e,n){return(e=Vs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vs(t){var e=function(t,e){if("object"!=Ps(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ps(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ps(e)?e:e+""}var Ms=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Is(t,e)}(i,t);var e,n,r,o=js(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Rs(Cs(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Rs(Cs(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return ys}},{key:"initializeFields",value:function(){var t=new hr;return t.put(fs.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(fs.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(fs.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsCoGpcSegment '"+t+"'")}}}])&&Ns(e.prototype,n),r&&Ns(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function ks(t){return(ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Us(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Hs(r.key),r)}}function Gs(t,e){return(Gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ls(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=xs(t);if(e){var o=xs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fs(this,n)}}function Fs(t,e){if(e&&("object"===ks(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function xs(t){return(xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Bs(t,e,n){return(e=Hs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hs(t){var e=function(t,e){if("object"!=ks(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ks(e)?e:e+""}var zs,Ks=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gs(t,e)}(i,t);var e,n,r,o=Ls(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Ts),t.push(new Ms),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(fs.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(fs.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(fs.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Us(e.prototype,n),r&&Us(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Bs(Ks,"ID",10),Bs(Ks,"VERSION",1),Bs(Ks,"NAME","usco"),function(t){t.VERSION="Version",t.SHARING_NOTICE="SharingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"}(zs||(zs={}));var Ys=[zs.VERSION,zs.SHARING_NOTICE,zs.SALE_OPT_OUT_NOTICE,zs.TARGETED_ADVERTISING_OPT_OUT_NOTICE,zs.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,zs.SALE_OPT_OUT,zs.TARGETED_ADVERTISING_OPT_OUT,zs.SENSITIVE_DATA_PROCESSING,zs.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,zs.MSPA_COVERED_TRANSACTION,zs.MSPA_OPT_OUT_OPTION_MODE,zs.MSPA_SERVICE_PROVIDER_MODE];function Ws(t){return(Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rp(r.key),r)}}function $s(t,e,n){return e&&Xs(t.prototype,e),n&&Xs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Js(t,e){return(Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function qs(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=ep(t);if(e){var o=ep(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zs(this,n)}}function Zs(t,e){if(e&&("object"===Ws(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tp(t)}function tp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ep(t){return(ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function np(t,e,n){return(e=rp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rp(t){var e=function(t,e){if("object"!=Ws(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ws(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ws(e)?e:e+""}var op=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Js(t,e)}(n,t);var e=qs(n);function n(t){var r;return Qs(this,n),np(tp(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),np(tp(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return $s(n,[{key:"getFieldNames",value:function(){return Ys}},{key:"initializeFields",value:function(){var t=new(function(){function t(){Qs(this,t)}return $s(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Qs(this,t)}return $s(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Qs(this,t)}return $s(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(zs.VERSION.toString(),new pr(6,bp.VERSION)),r.put(zs.SHARING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zs.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zs.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zs.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zs.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(zs.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(zs.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(zs.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(zs.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(zs.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(zs.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsUtCoreSegment '"+t+"'")}}}]),n}(_r);function ip(t){return(ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function up(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pp(r.key),r)}}function cp(t,e){return(cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ap(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=fp(t);if(e){var o=fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lp(this,n)}}function lp(t,e){if(e&&("object"===ip(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function fp(t){return(fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sp(t,e,n){return(e=pp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pp(t){var e=function(t,e){if("object"!=ip(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ip(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ip(e)?e:e+""}var yp,bp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cp(t,e)}(i,t);var e,n,r,o=ap(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new op),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length)for(var n=t.split("."),r=0;r<e.length;r++)n.length>r&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r.encode())}return e.join(".")}}])&&up(e.prototype,n),r&&up(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);sp(bp,"ID",11),sp(bp,"VERSION",1),sp(bp,"NAME","usut"),function(t){t.VERSION="Version",t.SHARING_NOTICE="SharingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(yp||(yp={}));var dp=[yp.VERSION,yp.SHARING_NOTICE,yp.SALE_OPT_OUT_NOTICE,yp.TARGETED_ADVERTISING_OPT_OUT_NOTICE,yp.SALE_OPT_OUT,yp.TARGETED_ADVERTISING_OPT_OUT,yp.SENSITIVE_DATA_PROCESSING,yp.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,yp.MSPA_COVERED_TRANSACTION,yp.MSPA_OPT_OUT_OPTION_MODE,yp.MSPA_SERVICE_PROVIDER_MODE],vp=[yp.GPC_SEGMENT_TYPE,yp.GPC];function hp(t){return(hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Op(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Np(r.key),r)}}function Ep(t,e,n){return e&&Op(t.prototype,e),n&&Op(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function mp(t,e){return(mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gp(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Tp(t);if(e){var o=Tp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _p(this,n)}}function _p(t,e){if(e&&("object"===hp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wp(t)}function wp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tp(t){return(Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Pp(t,e,n){return(e=Np(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Np(t){var e=function(t,e){if("object"!=hp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hp(e)?e:e+""}var Ip=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mp(t,e)}(n,t);var e=gp(n);function n(t){var r;return Sp(this,n),Pp(wp(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),Pp(wp(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return Ep(n,[{key:"getFieldNames",value:function(){return dp}},{key:"initializeFields",value:function(){var t=new(function(){function t(){Sp(this,t)}return Ep(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Sp(this,t)}return Ep(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Sp(this,t)}return Ep(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(yp.VERSION.toString(),new pr(6,Qp.VERSION)),r.put(yp.SHARING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(yp.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(yp.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(yp.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(yp.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(yp.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(yp.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0]).withValidator(n)),r.put(yp.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(yp.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(yp.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsCtCoreSegment '"+t+"'")}}}]),n}(_r);function jp(t){return(jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ap(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Up(r.key),r)}}function Cp(t,e){return(Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Dp(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Mp(t);if(e){var o=Mp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rp(this,n)}}function Rp(t,e){if(e&&("object"===jp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Vp(t)}function Vp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mp(t){return(Mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function kp(t,e,n){return(e=Up(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Up(t){var e=function(t,e){if("object"!=jp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=jp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jp(e)?e:e+""}var Gp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cp(t,e)}(i,t);var e,n,r,o=Dp(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),kp(Vp(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),kp(Vp(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return vp}},{key:"initializeFields",value:function(){var t=new hr;return t.put(yp.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(yp.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(yp.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsCtGpcSegment '"+t+"'")}}}])&&Ap(e.prototype,n),r&&Ap(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Lp(t){return(Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yp(r.key),r)}}function xp(t,e){return(xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Bp(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=zp(t);if(e){var o=zp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hp(this,n)}}function Hp(t,e){if(e&&("object"===Lp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function zp(t){return(zp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Kp(t,e,n){return(e=Yp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yp(t){var e=function(t,e){if("object"!=Lp(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Lp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Lp(e)?e:e+""}var Wp,Qp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xp(t,e)}(i,t);var e,n,r,o=Bp(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Ip),t.push(new Gp),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(yp.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(yp.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(yp.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Fp(e.prototype,n),r&&Fp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Kp(Qp,"ID",12),Kp(Qp,"VERSION",1),Kp(Qp,"NAME","usct"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"}(Wp||(Wp={}));var Xp=[Wp.VERSION,Wp.PROCESSING_NOTICE,Wp.SALE_OPT_OUT_NOTICE,Wp.TARGETED_ADVERTISING_OPT_OUT_NOTICE,Wp.SALE_OPT_OUT,Wp.TARGETED_ADVERTISING_OPT_OUT,Wp.SENSITIVE_DATA_PROCESSING,Wp.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,Wp.ADDITIONAL_DATA_PROCESSING_CONSENT,Wp.MSPA_COVERED_TRANSACTION,Wp.MSPA_OPT_OUT_OPTION_MODE,Wp.MSPA_SERVICE_PROVIDER_MODE];function $p(t){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,uy(r.key),r)}}function Zp(t,e,n){return e&&qp(t.prototype,e),n&&qp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ty(t,e){return(ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ey(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=oy(t);if(e){var o=oy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ny(this,n)}}function ny(t,e){if(e&&("object"===$p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ry(t)}function ry(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oy(t){return(oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function iy(t,e,n){return(e=uy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uy(t){var e=function(t,e){if("object"!=$p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=$p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$p(e)?e:e+""}var cy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ty(t,e)}(n,t);var e=ey(n);function n(t){var r;return Jp(this,n),iy(ry(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),iy(ry(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return Zp(n,[{key:"getFieldNames",value:function(){return Xp}},{key:"initializeFields",value:function(){var t=new(function(){function t(){Jp(this,t)}return Zp(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Jp(this,t)}return Zp(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Jp(this,t)}return Zp(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(Wp.VERSION.toString(),new pr(6,hy.VERSION)),r.put(Wp.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Wp.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Wp.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Wp.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Wp.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Wp.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(Wp.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0]).withValidator(n)),r.put(Wp.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(Wp.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(Wp.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(Wp.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsFlCoreSegment '"+t+"'")}}}]),n}(_r);function ay(t){return(ay="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ly(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dy(r.key),r)}}function fy(t,e){return(fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sy(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=yy(t);if(e){var o=yy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return py(this,n)}}function py(t,e){if(e&&("object"===ay(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function yy(t){return(yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function by(t,e,n){return(e=dy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dy(t){var e=function(t,e){if("object"!=ay(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ay(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ay(e)?e:e+""}var vy,hy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fy(t,e)}(i,t);var e,n,r,o=sy(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new cy),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length)for(var n=t.split("."),r=0;r<e.length;r++)n.length>r&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r.encode())}return e.join(".")}}])&&ly(e.prototype,n),r&&ly(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);by(hy,"ID",13),by(hy,"VERSION",1),by(hy,"NAME","usfl"),function(t){t.VERSION="Version",t.SHARING_NOTICE="SharingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(vy||(vy={}));var Sy=[vy.VERSION,vy.SHARING_NOTICE,vy.SALE_OPT_OUT_NOTICE,vy.TARGETED_ADVERTISING_OPT_OUT_NOTICE,vy.SALE_OPT_OUT,vy.TARGETED_ADVERTISING_OPT_OUT,vy.SENSITIVE_DATA_PROCESSING,vy.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,vy.ADDITIONAL_DATA_PROCESSING_CONSENT,vy.MSPA_COVERED_TRANSACTION,vy.MSPA_OPT_OUT_OPTION_MODE,vy.MSPA_SERVICE_PROVIDER_MODE],Oy=[vy.GPC_SEGMENT_TYPE,vy.GPC];function Ey(t){return(Ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function my(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ay(r.key),r)}}function _y(t,e,n){return e&&gy(t.prototype,e),n&&gy(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function wy(t,e){return(wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ty(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Iy(t);if(e){var o=Iy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Py(this,n)}}function Py(t,e){if(e&&("object"===Ey(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ny(t)}function Ny(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Iy(t){return(Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jy(t,e,n){return(e=Ay(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ay(t){var e=function(t,e){if("object"!=Ey(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ey(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ey(e)?e:e+""}var Cy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wy(t,e)}(n,t);var e=Ty(n);function n(t){var r;return my(this,n),jy(Ny(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),jy(Ny(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return _y(n,[{key:"getFieldNames",value:function(){return Sy}},{key:"initializeFields",value:function(){var t=new(function(){function t(){my(this,t)}return _y(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){my(this,t)}return _y(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){my(this,t)}return _y(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(vy.VERSION.toString(),new pr(6,Jy.VERSION)),r.put(vy.SHARING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(vy.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(vy.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(vy.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(vy.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(vy.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(vy.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0]).withValidator(n)),r.put(vy.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(vy.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(vy.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(vy.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsMtCoreSegment '"+t+"'")}}}]),n}(_r);function Dy(t){return(Dy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ry(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Fy(r.key),r)}}function Vy(t,e){return(Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function My(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Gy(t);if(e){var o=Gy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ky(this,n)}}function ky(t,e){if(e&&("object"===Dy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Uy(t)}function Uy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gy(t){return(Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ly(t,e,n){return(e=Fy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fy(t){var e=function(t,e){if("object"!=Dy(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Dy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dy(e)?e:e+""}var xy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vy(t,e)}(i,t);var e,n,r,o=My(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Ly(Uy(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Ly(Uy(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Oy}},{key:"initializeFields",value:function(){var t=new hr;return t.put(vy.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(vy.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(vy.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsMtGpcSegment '"+t+"'")}}}])&&Ry(e.prototype,n),r&&Ry(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function By(t){return(By="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xy(r.key),r)}}function zy(t,e){return(zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ky(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Wy(t);if(e){var o=Wy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yy(this,n)}}function Yy(t,e){if(e&&("object"===By(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Wy(t){return(Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Qy(t,e,n){return(e=Xy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xy(t){var e=function(t,e){if("object"!=By(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=By(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==By(e)?e:e+""}var $y,Jy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zy(t,e)}(i,t);var e,n,r,o=Ky(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Cy),t.push(new xy),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(vy.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(vy.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(vy.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Hy(e.prototype,n),r&&Hy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Qy(Jy,"ID",14),Qy(Jy,"VERSION",1),Qy(Jy,"NAME","usmt"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}($y||($y={}));var qy=[$y.VERSION,$y.PROCESSING_NOTICE,$y.SALE_OPT_OUT_NOTICE,$y.TARGETED_ADVERTISING_OPT_OUT_NOTICE,$y.SALE_OPT_OUT,$y.TARGETED_ADVERTISING_OPT_OUT,$y.SENSITIVE_DATA_PROCESSING,$y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,$y.ADDITIONAL_DATA_PROCESSING_CONSENT,$y.MSPA_COVERED_TRANSACTION,$y.MSPA_OPT_OUT_OPTION_MODE,$y.MSPA_SERVICE_PROVIDER_MODE],Zy=[$y.GPC_SEGMENT_TYPE,$y.GPC];function tb(t){return(tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fb(r.key),r)}}function rb(t,e,n){return e&&nb(t.prototype,e),n&&nb(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ob(t,e){return(ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ib(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=ab(t);if(e){var o=ab(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ub(this,n)}}function ub(t,e){if(e&&("object"===tb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return cb(t)}function cb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ab(t){return(ab=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lb(t,e,n){return(e=fb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fb(t){var e=function(t,e){if("object"!=tb(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=tb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tb(e)?e:e+""}var sb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ob(t,e)}(n,t);var e=ib(n);function n(t){var r;return eb(this,n),lb(cb(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),lb(cb(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return rb(n,[{key:"getFieldNames",value:function(){return qy}},{key:"initializeFields",value:function(){var t=new(function(){function t(){eb(this,t)}return rb(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){eb(this,t)}return rb(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){eb(this,t)}return rb(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put($y.VERSION.toString(),new pr(6,Cb.VERSION)),r.put($y.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put($y.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put($y.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put($y.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put($y.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put($y.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0,0,0,0]).withValidator(n)),r.put($y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0]).withValidator(n)),r.put($y.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put($y.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put($y.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put($y.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsOrCoreSegment '"+t+"'")}}}]),n}(_r);function pb(t){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Eb(r.key),r)}}function bb(t,e){return(bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function db(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Sb(t);if(e){var o=Sb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vb(this,n)}}function vb(t,e){if(e&&("object"===pb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hb(t)}function hb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sb(t){return(Sb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ob(t,e,n){return(e=Eb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eb(t){var e=function(t,e){if("object"!=pb(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pb(e)?e:e+""}var mb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bb(t,e)}(i,t);var e,n,r,o=db(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Ob(hb(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Ob(hb(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Zy}},{key:"initializeFields",value:function(){var t=new hr;return t.put($y.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put($y.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put($y.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsOrGpcSegment '"+t+"'")}}}])&&yb(e.prototype,n),r&&yb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function gb(t){return(gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jb(r.key),r)}}function wb(t,e){return(wb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Tb(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Nb(t);if(e){var o=Nb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pb(this,n)}}function Pb(t,e){if(e&&("object"===gb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Nb(t){return(Nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ib(t,e,n){return(e=jb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jb(t){var e=function(t,e){if("object"!=gb(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gb(e)?e:e+""}var Ab,Cb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wb(t,e)}(i,t);var e,n,r,o=Tb(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new sb),t.push(new mb),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue($y.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue($y.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue($y.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&_b(e.prototype,n),r&&_b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Ib(Cb,"ID",15),Ib(Cb,"VERSION",1),Ib(Cb,"NAME","usor"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(Ab||(Ab={}));var Db=[Ab.VERSION,Ab.PROCESSING_NOTICE,Ab.SALE_OPT_OUT_NOTICE,Ab.TARGETED_ADVERTISING_OPT_OUT_NOTICE,Ab.SALE_OPT_OUT,Ab.TARGETED_ADVERTISING_OPT_OUT,Ab.SENSITIVE_DATA_PROCESSING,Ab.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,Ab.ADDITIONAL_DATA_PROCESSING_CONSENT,Ab.MSPA_COVERED_TRANSACTION,Ab.MSPA_OPT_OUT_OPTION_MODE,Ab.MSPA_SERVICE_PROVIDER_MODE],Rb=[Ab.GPC_SEGMENT_TYPE,Ab.GPC];function Vb(t){return(Vb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zb(r.key),r)}}function Ub(t,e,n){return e&&kb(t.prototype,e),n&&kb(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gb(t,e){return(Gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Lb(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Bb(t);if(e){var o=Bb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fb(this,n)}}function Fb(t,e){if(e&&("object"===Vb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xb(t)}function xb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bb(t){return(Bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Hb(t,e,n){return(e=zb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zb(t){var e=function(t,e){if("object"!=Vb(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Vb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Vb(e)?e:e+""}var Kb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gb(t,e)}(n,t);var e=Lb(n);function n(t){var r;return Mb(this,n),Hb(xb(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),Hb(xb(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return Ub(n,[{key:"getFieldNames",value:function(){return Db}},{key:"initializeFields",value:function(){var t=new(function(){function t(){Mb(this,t)}return Ub(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Mb(this,t)}return Ub(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Mb(this,t)}return Ub(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(Ab.VERSION.toString(),new pr(6,sd.VERSION)),r.put(Ab.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ab.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ab.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Ab.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ab.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Ab.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(Ab.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(Ab.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(Ab.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(Ab.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(Ab.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsTxCoreSegment '"+t+"'")}}}]),n}(_r);function Yb(t){return(Yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,td(r.key),r)}}function Qb(t,e){return(Qb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Xb(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=qb(t);if(e){var o=qb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $b(this,n)}}function $b(t,e){if(e&&("object"===Yb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Jb(t)}function Jb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qb(t){return(qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Zb(t,e,n){return(e=td(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function td(t){var e=function(t,e){if("object"!=Yb(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Yb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yb(e)?e:e+""}var ed=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qb(t,e)}(i,t);var e,n,r,o=Xb(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Zb(Jb(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Zb(Jb(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Rb}},{key:"initializeFields",value:function(){var t=new hr;return t.put(Ab.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(Ab.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(Ab.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsTxGpcSegment '"+t+"'")}}}])&&Wb(e.prototype,n),r&&Wb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function nd(t){return(nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ld(r.key),r)}}function od(t,e){return(od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function id(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=cd(t);if(e){var o=cd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ud(this,n)}}function ud(t,e){if(e&&("object"===nd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function cd(t){return(cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ad(t,e,n){return(e=ld(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ld(t){var e=function(t,e){if("object"!=nd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=nd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nd(e)?e:e+""}var fd,sd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&od(t,e)}(i,t);var e,n,r,o=id(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Kb),t.push(new ed),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(Ab.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(Ab.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(Ab.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&rd(e.prototype,n),r&&rd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);ad(sd,"ID",16),ad(sd,"VERSION",1),ad(sd,"NAME","ustx"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(fd||(fd={}));var pd=[fd.VERSION,fd.PROCESSING_NOTICE,fd.SALE_OPT_OUT_NOTICE,fd.TARGETED_ADVERTISING_OPT_OUT_NOTICE,fd.SALE_OPT_OUT,fd.TARGETED_ADVERTISING_OPT_OUT,fd.SENSITIVE_DATA_PROCESSING,fd.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,fd.ADDITIONAL_DATA_PROCESSING_CONSENT,fd.MSPA_COVERED_TRANSACTION,fd.MSPA_OPT_OUT_OPTION_MODE,fd.MSPA_SERVICE_PROVIDER_MODE],yd=[fd.GPC_SEGMENT_TYPE,fd.GPC];function bd(t){return(bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,wd(r.key),r)}}function hd(t,e,n){return e&&vd(t.prototype,e),n&&vd(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sd(t,e){return(Sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Od(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=gd(t);if(e){var o=gd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ed(this,n)}}function Ed(t,e){if(e&&("object"===bd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return md(t)}function md(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gd(t){return(gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _d(t,e,n){return(e=wd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wd(t){var e=function(t,e){if("object"!=bd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=bd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bd(e)?e:e+""}var Td=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sd(t,e)}(n,t);var e=Od(n);function n(t){var r;return dd(this,n),_d(md(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),_d(md(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return hd(n,[{key:"getFieldNames",value:function(){return pd}},{key:"initializeFields",value:function(){var t=new(function(){function t(){dd(this,t)}return hd(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){dd(this,t)}return hd(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){dd(this,t)}return hd(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(fd.VERSION.toString(),new pr(6,Kd.VERSION)),r.put(fd.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(fd.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(fd.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(fd.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(fd.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(fd.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0,0]).withValidator(n)),r.put(fd.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0,0,0]).withValidator(n)),r.put(fd.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(fd.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(fd.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(fd.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsDeCoreSegment '"+t+"'")}}}]),n}(_r);function Pd(t){return(Pd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Vd(r.key),r)}}function Id(t,e){return(Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function jd(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Dd(t);if(e){var o=Dd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ad(this,n)}}function Ad(t,e){if(e&&("object"===Pd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cd(t)}function Cd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dd(t){return(Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rd(t,e,n){return(e=Vd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vd(t){var e=function(t,e){if("object"!=Pd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Pd(e)?e:e+""}var Md=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Id(t,e)}(i,t);var e,n,r,o=jd(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Rd(Cd(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Rd(Cd(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return yd}},{key:"initializeFields",value:function(){var t=new hr;return t.put(fd.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(fd.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(fd.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsDeGpcSegment '"+t+"'")}}}])&&Nd(e.prototype,n),r&&Nd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function kd(t){return(kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ud(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Hd(r.key),r)}}function Gd(t,e){return(Gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ld(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=xd(t);if(e){var o=xd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fd(this,n)}}function Fd(t,e){if(e&&("object"===kd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function xd(t){return(xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Bd(t,e,n){return(e=Hd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hd(t){var e=function(t,e){if("object"!=kd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=kd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kd(e)?e:e+""}var zd,Kd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gd(t,e)}(i,t);var e,n,r,o=Ld(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Td),t.push(new Md),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(fd.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(fd.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(fd.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Ud(e.prototype,n),r&&Ud(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);Bd(Kd,"ID",17),Bd(Kd,"VERSION",1),Bd(Kd,"NAME","usde"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SENSITIVE_DATA_OPT_OUT_NOTICE="SensitiveDataOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(zd||(zd={}));var Yd=[zd.VERSION,zd.PROCESSING_NOTICE,zd.SALE_OPT_OUT_NOTICE,zd.TARGETED_ADVERTISING_OPT_OUT_NOTICE,zd.SENSITIVE_DATA_OPT_OUT_NOTICE,zd.SALE_OPT_OUT,zd.TARGETED_ADVERTISING_OPT_OUT,zd.SENSITIVE_DATA_PROCESSING,zd.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,zd.MSPA_COVERED_TRANSACTION,zd.MSPA_OPT_OUT_OPTION_MODE,zd.MSPA_SERVICE_PROVIDER_MODE],Wd=[zd.GPC_SEGMENT_TYPE,zd.GPC];function Qd(t){return(Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ov(r.key),r)}}function Jd(t,e,n){return e&&$d(t.prototype,e),n&&$d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function qd(t,e){return(qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Zd(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=nv(t);if(e){var o=nv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tv(this,n)}}function tv(t,e){if(e&&("object"===Qd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ev(t)}function ev(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nv(t){return(nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rv(t,e,n){return(e=ov(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ov(t){var e=function(t,e){if("object"!=Qd(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qd(e)?e:e+""}var iv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qd(t,e)}(n,t);var e=Zd(n);function n(t){var r;return Xd(this,n),rv(ev(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),rv(ev(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return Jd(n,[{key:"getFieldNames",value:function(){return Yd}},{key:"initializeFields",value:function(){var t=new(function(){function t(){Xd(this,t)}return Jd(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Xd(this,t)}return Jd(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Xd(this,t)}return Jd(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(zd.VERSION.toString(),new pr(6,Tv.VERSION)),r.put(zd.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zd.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zd.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zd.SENSITIVE_DATA_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(zd.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(zd.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(zd.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(zd.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(zd.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(zd.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(zd.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsIaCoreSegment '"+t+"'")}}}]),n}(_r);function uv(t){return(uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,bv(r.key),r)}}function av(t,e){return(av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function lv(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=pv(t);if(e){var o=pv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fv(this,n)}}function fv(t,e){if(e&&("object"===uv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return sv(t)}function sv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pv(t){return(pv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yv(t,e,n){return(e=bv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bv(t){var e=function(t,e){if("object"!=uv(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=uv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uv(e)?e:e+""}var dv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&av(t,e)}(i,t);var e,n,r,o=lv(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),yv(sv(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),yv(sv(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Wd}},{key:"initializeFields",value:function(){var t=new hr;return t.put(zd.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(zd.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(zd.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsIaGpcSegment '"+t+"'")}}}])&&cv(e.prototype,n),r&&cv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function vv(t){return(vv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_v(r.key),r)}}function Sv(t,e){return(Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ov(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=mv(t);if(e){var o=mv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ev(this,n)}}function Ev(t,e){if(e&&("object"===vv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function mv(t){return(mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gv(t,e,n){return(e=_v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _v(t){var e=function(t,e){if("object"!=vv(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=vv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vv(e)?e:e+""}var wv,Tv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sv(t,e)}(i,t);var e,n,r,o=Ov(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new iv),t.push(new dv),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(zd.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(zd.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(zd.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&hv(e.prototype,n),r&&hv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);gv(Tv,"ID",18),gv(Tv,"VERSION",1),gv(Tv,"NAME","usia"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(wv||(wv={}));var Pv=[wv.VERSION,wv.PROCESSING_NOTICE,wv.SALE_OPT_OUT_NOTICE,wv.TARGETED_ADVERTISING_OPT_OUT_NOTICE,wv.SALE_OPT_OUT,wv.TARGETED_ADVERTISING_OPT_OUT,wv.SENSITIVE_DATA_PROCESSING,wv.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,wv.ADDITIONAL_DATA_PROCESSING_CONSENT,wv.MSPA_COVERED_TRANSACTION,wv.MSPA_OPT_OUT_OPTION_MODE,wv.MSPA_SERVICE_PROVIDER_MODE],Nv=[wv.GPC_SEGMENT_TYPE,wv.GPC];function Iv(t){return(Iv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Av(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Gv(r.key),r)}}function Cv(t,e,n){return e&&Av(t.prototype,e),n&&Av(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Dv(t,e){return(Dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Rv(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=kv(t);if(e){var o=kv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vv(this,n)}}function Vv(t,e){if(e&&("object"===Iv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Mv(t)}function Mv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kv(t){return(kv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Uv(t,e,n){return(e=Gv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gv(t){var e=function(t,e){if("object"!=Iv(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Iv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Iv(e)?e:e+""}var Lv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dv(t,e)}(n,t);var e=Rv(n);function n(t){var r;return jv(this,n),Uv(Mv(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),Uv(Mv(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return Cv(n,[{key:"getFieldNames",value:function(){return Pv}},{key:"initializeFields",value:function(){var t=new(function(){function t(){jv(this,t)}return Cv(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){jv(this,t)}return Cv(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){jv(this,t)}return Cv(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(wv.VERSION.toString(),new pr(6,ih.VERSION)),r.put(wv.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(wv.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(wv.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(wv.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(wv.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(wv.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(wv.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(wv.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(wv.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(wv.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(wv.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNeCoreSegment '"+t+"'")}}}]),n}(_r);function Fv(t){return(Fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Qv(r.key),r)}}function Bv(t,e){return(Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Hv(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Yv(t);if(e){var o=Yv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zv(this,n)}}function zv(t,e){if(e&&("object"===Fv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Kv(t)}function Kv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yv(t){return(Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Wv(t,e,n){return(e=Qv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qv(t){var e=function(t,e){if("object"!=Fv(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Fv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Fv(e)?e:e+""}var Xv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bv(t,e)}(i,t);var e,n,r,o=Hv(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Wv(Kv(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Wv(Kv(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return Nv}},{key:"initializeFields",value:function(){var t=new hr;return t.put(wv.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(wv.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(wv.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNeGpcSegment '"+t+"'")}}}])&&xv(e.prototype,n),r&&xv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function $v(t){return($v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rh(r.key),r)}}function qv(t,e){return(qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Zv(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=eh(t);if(e){var o=eh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return th(this,n)}}function th(t,e){if(e&&("object"===$v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function eh(t){return(eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nh(t,e,n){return(e=rh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rh(t){var e=function(t,e){if("object"!=$v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=$v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$v(e)?e:e+""}var oh,ih=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qv(t,e)}(i,t);var e,n,r,o=Zv(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Lv),t.push(new Xv),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(wv.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(wv.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(wv.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Jv(e.prototype,n),r&&Jv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);nh(ih,"ID",19),nh(ih,"VERSION",1),nh(ih,"NAME","usne"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(oh||(oh={}));var uh=[oh.VERSION,oh.PROCESSING_NOTICE,oh.SALE_OPT_OUT_NOTICE,oh.TARGETED_ADVERTISING_OPT_OUT_NOTICE,oh.SALE_OPT_OUT,oh.TARGETED_ADVERTISING_OPT_OUT,oh.SENSITIVE_DATA_PROCESSING,oh.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,oh.ADDITIONAL_DATA_PROCESSING_CONSENT,oh.MSPA_COVERED_TRANSACTION,oh.MSPA_OPT_OUT_OPTION_MODE,oh.MSPA_SERVICE_PROVIDER_MODE],ch=[oh.GPC_SEGMENT_TYPE,oh.GPC];function ah(t){return(ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Sh(r.key),r)}}function sh(t,e,n){return e&&fh(t.prototype,e),n&&fh(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ph(t,e){return(ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function yh(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=vh(t);if(e){var o=vh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bh(this,n)}}function bh(t,e){if(e&&("object"===ah(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return dh(t)}function dh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vh(t){return(vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function hh(t,e,n){return(e=Sh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sh(t){var e=function(t,e){if("object"!=ah(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ah(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ah(e)?e:e+""}var Oh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ph(t,e)}(n,t);var e=yh(n);function n(t){var r;return lh(this,n),hh(dh(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),hh(dh(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return sh(n,[{key:"getFieldNames",value:function(){return uh}},{key:"initializeFields",value:function(){var t=new(function(){function t(){lh(this,t)}return sh(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){lh(this,t)}return sh(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){lh(this,t)}return sh(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(oh.VERSION.toString(),new pr(6,Lh.VERSION)),r.put(oh.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(oh.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(oh.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(oh.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(oh.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(oh.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(oh.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0]).withValidator(n)),r.put(oh.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(oh.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(oh.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(oh.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNhCoreSegment '"+t+"'")}}}]),n}(_r);function Eh(t){return(Eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ih(r.key),r)}}function gh(t,e){return(gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _h(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Ph(t);if(e){var o=Ph(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wh(this,n)}}function wh(t,e){if(e&&("object"===Eh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Th(t)}function Th(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ph(t){return(Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nh(t,e,n){return(e=Ih(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ih(t){var e=function(t,e){if("object"!=Eh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Eh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Eh(e)?e:e+""}var jh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gh(t,e)}(i,t);var e,n,r,o=_h(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Nh(Th(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),Nh(Th(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return ch}},{key:"initializeFields",value:function(){var t=new hr;return t.put(oh.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(oh.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(oh.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNhGpcSegment '"+t+"'")}}}])&&mh(e.prototype,n),r&&mh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function Ah(t){return(Ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ch(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Uh(r.key),r)}}function Dh(t,e){return(Dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Rh(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=Mh(t);if(e){var o=Mh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vh(this,n)}}function Vh(t,e){if(e&&("object"===Ah(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Mh(t){return(Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function kh(t,e,n){return(e=Uh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uh(t){var e=function(t,e){if("object"!=Ah(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ah(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ah(e)?e:e+""}var Gh,Lh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dh(t,e)}(i,t);var e,n,r,o=Rh(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Oh),t.push(new jh),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(oh.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(oh.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(oh.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&Ch(e.prototype,n),r&&Ch(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);kh(Lh,"ID",20),kh(Lh,"VERSION",1),kh(Lh,"NAME","usnh"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(Gh||(Gh={}));var Fh=[Gh.VERSION,Gh.PROCESSING_NOTICE,Gh.SALE_OPT_OUT_NOTICE,Gh.TARGETED_ADVERTISING_OPT_OUT_NOTICE,Gh.SALE_OPT_OUT,Gh.TARGETED_ADVERTISING_OPT_OUT,Gh.SENSITIVE_DATA_PROCESSING,Gh.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,Gh.ADDITIONAL_DATA_PROCESSING_CONSENT,Gh.MSPA_COVERED_TRANSACTION,Gh.MSPA_OPT_OUT_OPTION_MODE,Gh.MSPA_SERVICE_PROVIDER_MODE],xh=[Gh.GPC_SEGMENT_TYPE,Gh.GPC];function Bh(t){return(Bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qh(r.key),r)}}function Kh(t,e,n){return e&&zh(t.prototype,e),n&&zh(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yh(t,e){return(Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Wh(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=$h(t);if(e){var o=$h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qh(this,n)}}function Qh(t,e){if(e&&("object"===Bh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xh(t)}function Xh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $h(t){return($h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Jh(t,e,n){return(e=qh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qh(t){var e=function(t,e){if("object"!=Bh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Bh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bh(e)?e:e+""}var Zh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yh(t,e)}(n,t);var e=Wh(n);function n(t){var r;return Hh(this,n),Jh(Xh(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),Jh(Xh(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return Kh(n,[{key:"getFieldNames",value:function(){return Fh}},{key:"initializeFields",value:function(){var t=new(function(){function t(){Hh(this,t)}return Kh(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){Hh(this,t)}return Kh(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){Hh(this,t)}return Kh(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(Gh.VERSION.toString(),new pr(6,OS.VERSION)),r.put(Gh.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Gh.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Gh.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(Gh.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Gh.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(Gh.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0,0,0]).withValidator(n)),r.put(Gh.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ul(2,[0,0,0,0,0]).withValidator(n)),r.put(Gh.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(Gh.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(Gh.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(Gh.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNjCoreSegment '"+t+"'")}}}]),n}(_r);function tS(t){return(tS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,aS(r.key),r)}}function nS(t,e){return(nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function rS(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=uS(t);if(e){var o=uS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oS(this,n)}}function oS(t,e){if(e&&("object"===tS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return iS(t)}function iS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uS(t){return(uS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function cS(t,e,n){return(e=aS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aS(t){var e=function(t,e){if("object"!=tS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=tS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tS(e)?e:e+""}var lS=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nS(t,e)}(i,t);var e,n,r,o=rS(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),cS(iS(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),cS(iS(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return xh}},{key:"initializeFields",value:function(){var t=new hr;return t.put(Gh.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(Gh.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(Gh.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsNjGpcSegment '"+t+"'")}}}])&&eS(e.prototype,n),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function fS(t){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,hS(r.key),r)}}function pS(t,e){return(pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function yS(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=dS(t);if(e){var o=dS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bS(this,n)}}function bS(t,e){if(e&&("object"===fS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function dS(t){return(dS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vS(t,e,n){return(e=hS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hS(t){var e=function(t,e){if("object"!=fS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=fS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fS(e)?e:e+""}var SS,OS=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pS(t,e)}(i,t);var e,n,r,o=yS(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new Zh),t.push(new lS),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(Gh.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(Gh.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(Gh.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&sS(e.prototype,n),r&&sS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);vS(OS,"ID",21),vS(OS,"VERSION",1),vS(OS,"NAME","usnj"),function(t){t.VERSION="Version",t.PROCESSING_NOTICE="ProcessingNotice",t.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",t.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",t.SALE_OPT_OUT="SaleOptOut",t.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",t.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",t.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",t.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",t.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",t.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",t.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",t.GPC_SEGMENT_TYPE="GpcSegmentType",t.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",t.GPC="Gpc"}(SS||(SS={}));var ES=[SS.VERSION,SS.PROCESSING_NOTICE,SS.SALE_OPT_OUT_NOTICE,SS.TARGETED_ADVERTISING_OPT_OUT_NOTICE,SS.SALE_OPT_OUT,SS.TARGETED_ADVERTISING_OPT_OUT,SS.SENSITIVE_DATA_PROCESSING,SS.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,SS.ADDITIONAL_DATA_PROCESSING_CONSENT,SS.MSPA_COVERED_TRANSACTION,SS.MSPA_OPT_OUT_OPTION_MODE,SS.MSPA_SERVICE_PROVIDER_MODE],mS=[SS.GPC_SEGMENT_TYPE,SS.GPC];function gS(t){return(gS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,DS(r.key),r)}}function TS(t,e,n){return e&&wS(t.prototype,e),n&&wS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function PS(t,e){return(PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function NS(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=AS(t);if(e){var o=AS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return IS(this,n)}}function IS(t,e){if(e&&("object"===gS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jS(t)}function jS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function AS(t){return(AS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function CS(t,e,n){return(e=DS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DS(t){var e=function(t,e){if("object"!=gS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gS(e)?e:e+""}var RS=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&PS(t,e)}(n,t);var e=NS(n);function n(t){var r;return _S(this,n),CS(jS(r=e.call(this)),"base64UrlEncoder",Je.getInstance()),CS(jS(r),"bitStringEncoder",en.getInstance()),t&&r.decode(t),r}return TS(n,[{key:"getFieldNames",value:function(){return ES}},{key:"initializeFields",value:function(){var t=new(function(){function t(){_S(this,t)}return TS(t,[{key:"test",value:function(t){return t>=0&&t<=2}}]),t}()),e=new(function(){function t(){_S(this,t)}return TS(t,[{key:"test",value:function(t){return t>=1&&t<=2}}]),t}()),n=new(function(){function t(){_S(this,t)}return TS(t,[{key:"test",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n<0||n>2)return!1}return!0}}]),t}()),r=new hr;return r.put(SS.VERSION.toString(),new pr(6,qS.VERSION)),r.put(SS.PROCESSING_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(SS.SALE_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(SS.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new pr(2,0).withValidator(t)),r.put(SS.SALE_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(SS.TARGETED_ADVERTISING_OPT_OUT.toString(),new pr(2,0).withValidator(t)),r.put(SS.SENSITIVE_DATA_PROCESSING.toString(),new ul(2,[0,0,0,0,0,0,0,0]).withValidator(n)),r.put(SS.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new pr(2,0).withValidator(t)),r.put(SS.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new pr(2,0).withValidator(t)),r.put(SS.MSPA_COVERED_TRANSACTION.toString(),new pr(2,1).withValidator(e)),r.put(SS.MSPA_OPT_OUT_OPTION_MODE.toString(),new pr(2,0).withValidator(t)),r.put(SS.MSPA_SERVICE_PROVIDER_MODE.toString(),new pr(2,0).withValidator(t)),r}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsTnCoreSegment '"+t+"'")}}}]),n}(_r);function VS(t){return(VS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function MS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,BS(r.key),r)}}function kS(t,e){return(kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function US(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=FS(t);if(e){var o=FS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return GS(this,n)}}function GS(t,e){if(e&&("object"===VS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return LS(t)}function LS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FS(t){return(FS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xS(t,e,n){return(e=BS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BS(t){var e=function(t,e){if("object"!=VS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=VS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==VS(e)?e:e+""}var HS=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kS(t,e)}(i,t);var e,n,r,o=US(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),xS(LS(e=o.call(this)),"base64UrlEncoder",Je.getInstance()),xS(LS(e),"bitStringEncoder",en.getInstance()),t&&e.decode(t),e}return e=i,(n=[{key:"getFieldNames",value:function(){return mS}},{key:"initializeFields",value:function(){var t=new hr;return t.put(SS.GPC_SEGMENT_TYPE.toString(),new pr(2,1)),t.put(SS.GPC_SEGMENT_INCLUDED.toString(),new zo(!0)),t.put(SS.GPC.toString(),new zo(!1)),t}},{key:"encodeSegment",value:function(t){var e=this.bitStringEncoder.encode(t,this.getFieldNames());return this.base64UrlEncoder.encode(e)}},{key:"decodeSegment",value:function(t,e){null!=t&&0!==t.length||this.fields.reset(e);try{var n=this.base64UrlEncoder.decode(t);this.bitStringEncoder.decode(n,this.getFieldNames(),e)}catch(e){throw new me("Unable to decode UsTnGpcSegment '"+t+"'")}}}])&&MS(e.prototype,n),r&&MS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(_r);function zS(t){return(zS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function KS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,JS(r.key),r)}}function YS(t,e){return(YS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function WS(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,r=XS(t);if(e){var o=XS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return QS(this,n)}}function QS(t,e){if(e&&("object"===zS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function XS(t){return(XS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $S(t,e,n){return(e=JS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JS(t){var e=function(t,e){if("object"!=zS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zS(e)?e:e+""}var qS=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&YS(t,e)}(i,t);var e,n,r,o=WS(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t&&t.length>0&&e.decode(t),e}return e=i,(n=[{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}},{key:"getVersion",value:function(){return i.VERSION}},{key:"initializeSegments",value:function(){var t=[];return t.push(new RS),t.push(new HS),t}},{key:"decodeSection",value:function(t){var e=this.initializeSegments();if(null!=t&&0!==t.length){var n=t.split(".");n.length>0&&e[0].decode(n[0]),n.length>1?(e[1].setFieldValue(SS.GPC_SEGMENT_INCLUDED,!0),e[1].decode(n[1])):e[1].setFieldValue(SS.GPC_SEGMENT_INCLUDED,!1)}return e}},{key:"encodeSection",value:function(t){var e=[];return t.length>=1&&(e.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(SS.GPC_SEGMENT_INCLUDED)&&e.push(t[1].encode())),e.join(".")}}])&&KS(e.prototype,n),r&&KS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(se);function ZS(t){return(ZS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rO(r.key),r)}}function eO(t,e,n){return e&&tO(t.prototype,e),n&&tO(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function nO(t,e,n){return(e=rO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rO(t){var e=function(t,e){if("object"!=ZS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ZS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZS(e)?e:e+""}$S(qS,"ID",22),$S(qS,"VERSION",1),$S(qS,"NAME","ustn");var oO=eO((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}));function iO(t){return(iO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,aO(r.key),r)}}function cO(t,e,n){return(e=aO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aO(t){var e=function(t,e){if("object"!=iO(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=iO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==iO(e)?e:e+""}nO(oO,"SECTION_ID_NAME_MAP",new Map([[lc.ID,lc.NAME],[Zc.ID,Zc.NAME],[La.ID,La.NAME],[af.ID,af.NAME],[Bf.ID,Bf.NAME],[ss.ID,ss.NAME],[Ks.ID,Ks.NAME],[bp.ID,bp.NAME],[Qp.ID,Qp.NAME],[hy.ID,hy.NAME],[Jy.ID,Jy.NAME],[Cb.ID,Cb.NAME],[sd.ID,sd.NAME],[Kd.ID,Kd.NAME],[Tv.ID,Tv.NAME],[ih.ID,ih.NAME],[Lh.ID,Lh.NAME],[OS.ID,OS.NAME],[qS.ID,qS.NAME]])),nO(oO,"SECTION_ORDER",[lc.NAME,Zc.NAME,La.NAME,af.NAME,Bf.NAME,ss.NAME,Ks.NAME,bp.NAME,Qp.NAME,hy.NAME,Jy.NAME,Cb.NAME,sd.NAME,Kd.NAME,Tv.NAME,ih.NAME,Lh.NAME,OS.NAME,qS.NAME]);var lO=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),cO(this,"sections",new Map),cO(this,"encodedString",null),cO(this,"decoded",!0),cO(this,"dirty",!1),e&&this.decode(e)}var e,n,r;return e=t,(n=[{key:"setFieldValue",value:function(t,e,n){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);var r=null;if(this.sections.has(t)?r=this.sections.get(t):t===Zc.NAME?(r=new Zc,this.sections.set(Zc.NAME,r)):t===lc.NAME?(r=new lc,this.sections.set(lc.NAME,r)):t===La.NAME?(r=new La,this.sections.set(La.NAME,r)):t===af.NAME?(r=new af,this.sections.set(af.NAME,r)):t===Bf.NAME?(r=new Bf,this.sections.set(Bf.NAME,r)):t===ss.NAME?(r=new ss,this.sections.set(ss.NAME,r)):t===Ks.NAME?(r=new Ks,this.sections.set(Ks.NAME,r)):t===bp.NAME?(r=new bp,this.sections.set(bp.NAME,r)):t===Qp.NAME?(r=new Qp,this.sections.set(Qp.NAME,r)):t===hy.NAME?(r=new hy,this.sections.set(hy.NAME,r)):t===Jy.NAME?(r=new Jy,this.sections.set(Jy.NAME,r)):t===Cb.NAME?(r=new Cb,this.sections.set(Cb.NAME,r)):t===sd.NAME?(r=new sd,this.sections.set(sd.NAME,r)):t===Kd.NAME?(r=new Kd,this.sections.set(Kd.NAME,r)):t===Tv.NAME?(r=new Tv,this.sections.set(Tv.NAME,r)):t===ih.NAME?(r=new ih,this.sections.set(ih.NAME,r)):t===Lh.NAME?(r=new Lh,this.sections.set(Lh.NAME,r)):t===OS.NAME?(r=new OS,this.sections.set(OS.NAME,r)):t===qS.NAME&&(r=new qS,this.sections.set(qS.NAME,r)),!r)throw new oe(t+"."+e+" not found");r.setFieldValue(e,n),this.dirty=!0,r.setIsDirty(!0)}},{key:"setFieldValueBySectionId",value:function(t,e,n){this.setFieldValue(oO.SECTION_ID_NAME_MAP.get(t),e,n)}},{key:"getFieldValue",value:function(t,e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(t)?this.sections.get(t).getFieldValue(e):null}},{key:"getFieldValueBySectionId",value:function(t,e){return this.getFieldValue(oO.SECTION_ID_NAME_MAP.get(t),e)}},{key:"hasField",value:function(t,e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),!!this.sections.has(t)&&this.sections.get(t).hasField(e)}},{key:"hasFieldBySectionId",value:function(t,e){return this.hasField(oO.SECTION_ID_NAME_MAP.get(t),e)}},{key:"hasSection",value:function(t){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(t)}},{key:"hasSectionId",value:function(t){return this.hasSection(oO.SECTION_ID_NAME_MAP.get(t))}},{key:"deleteSection",value:function(t){!this.decoded&&null!=this.encodedString&&this.encodedString.length>0&&this.decode(this.encodedString),this.sections.delete(t),this.dirty=!0}},{key:"deleteSectionById",value:function(t){this.deleteSection(oO.SECTION_ID_NAME_MAP.get(t))}},{key:"clear",value:function(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}},{key:"getHeader",value:function(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);var t=new Hr;return t.setFieldValue("SectionIds",this.getSectionIds()),t.toObj()}},{key:"getSection",value:function(t){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(t)?this.sections.get(t).toObj():null}},{key:"getSectionIds",value:function(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);for(var t=[],e=0;e<oO.SECTION_ORDER.length;e++){var n=oO.SECTION_ORDER[e];if(this.sections.has(n)){var r=this.sections.get(n);t.push(r.getId())}}return t}},{key:"encodeModel",value:function(t){for(var e=[],n=[],r=0;r<oO.SECTION_ORDER.length;r++){var o=oO.SECTION_ORDER[r];if(t.has(o)){var i=t.get(o);i.setIsDirty(!0),e.push(i.encode()),n.push(i.getId())}}var u=new Hr;return u.setFieldValue("SectionIds",n),e.unshift(u.encode()),e.join("~")}},{key:"decodeModel",value:function(t){if(!t||0==t.length||t.startsWith("DB")){var e=t.split("~"),n=new Map;if(e[0].startsWith("D")){var r=new Hr(e[0]).getFieldValue("SectionIds");if(r.length!==e.length-1)throw new me("Unable to decode '"+t+"'. The number of sections does not match the number of sections defined in the header.");for(var o=0;o<r.length;o++){if(""===e[o+1].trim())throw new me("Unable to decode '"+t+"'. Section "+(o+1)+" is blank.");if(r[o]===Zc.ID){var i=new Zc(e[o+1]);n.set(Zc.NAME,i)}else if(r[o]===lc.ID){var u=new lc(e[o+1]);n.set(lc.NAME,u)}else if(r[o]===La.ID){var c=new La(e[o+1]);n.set(La.NAME,c)}else if(r[o]===af.ID){var a=new af(e[o+1]);n.set(af.NAME,a)}else if(r[o]===Bf.ID){var l=new Bf(e[o+1]);n.set(Bf.NAME,l)}else if(r[o]===ss.ID){var f=new ss(e[o+1]);n.set(ss.NAME,f)}else if(r[o]===Ks.ID){var s=new Ks(e[o+1]);n.set(Ks.NAME,s)}else if(r[o]===bp.ID){var p=new bp(e[o+1]);n.set(bp.NAME,p)}else if(r[o]===Qp.ID){var y=new Qp(e[o+1]);n.set(Qp.NAME,y)}else if(r[o]===hy.ID){var b=new hy(e[o+1]);n.set(hy.NAME,b)}else if(r[o]===Jy.ID){var d=new Jy(e[o+1]);n.set(Jy.NAME,d)}else if(r[o]===Cb.ID){var v=new Cb(e[o+1]);n.set(Cb.NAME,v)}else if(r[o]===sd.ID){var h=new sd(e[o+1]);n.set(sd.NAME,h)}else if(r[o]===Kd.ID){var S=new Kd(e[o+1]);n.set(Kd.NAME,S)}else if(r[o]===Tv.ID){var O=new Tv(e[o+1]);n.set(Tv.NAME,O)}else if(r[o]===ih.ID){var E=new ih(e[o+1]);n.set(ih.NAME,E)}else if(r[o]===Lh.ID){var m=new Lh(e[o+1]);n.set(Lh.NAME,m)}else if(r[o]===OS.ID){var g=new OS(e[o+1]);n.set(OS.NAME,g)}else if(r[o]===qS.ID){var _=new qS(e[o+1]);n.set(qS.NAME,_)}}}return n}if(t.startsWith("C")){var w=new Map,T=new lc(t);return w.set(lc.NAME,T),(new Hr).setFieldValue(vr.SECTION_IDS,[2]),w.set(Hr.NAME,T),w}throw new me("Unable to decode '"+t+"'")}},{key:"encodeSection",value:function(t){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(t)?this.sections.get(t).encode():null}},{key:"encodeSectionById",value:function(t){return this.encodeSection(oO.SECTION_ID_NAME_MAP.get(t))}},{key:"decodeSection",value:function(t,e){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);var n=null;this.sections.has(t)?n=this.sections.get(t):t===Zc.NAME?(n=new Zc,this.sections.set(Zc.NAME,n)):t===lc.NAME?(n=new lc,this.sections.set(lc.NAME,n)):t===La.NAME?(n=new La,this.sections.set(La.NAME,n)):t===af.NAME?(n=new af,this.sections.set(af.NAME,n)):t===Bf.NAME?(n=new Bf,this.sections.set(Bf.NAME,n)):t===ss.NAME?(n=new ss,this.sections.set(ss.NAME,n)):t===Ks.NAME?(n=new Ks,this.sections.set(Ks.NAME,n)):t===bp.NAME?(n=new bp,this.sections.set(bp.NAME,n)):t===Qp.NAME?(n=new Qp,this.sections.set(Qp.NAME,n)):t===hy.NAME?(n=new hy,this.sections.set(hy.NAME,n)):t===Jy.NAME?(n=new Jy,this.sections.set(Jy.NAME,n)):t===Cb.NAME?(n=new Cb,this.sections.set(Cb.NAME,n)):t===sd.NAME?(n=new sd,this.sections.set(sd.NAME,n)):t===Kd.NAME?(n=new Kd,this.sections.set(Kd.NAME,n)):t===Tv.NAME?(n=new Tv,this.sections.set(Tv.NAME,n)):t===ih.NAME?(n=new ih,this.sections.set(ih.NAME,n)):t===Lh.NAME?(n=new Lh,this.sections.set(Lh.NAME,n)):t===OS.NAME?(n=new OS,this.sections.set(OS.NAME,n)):t===qS.NAME&&(n=new qS,this.sections.set(qS.NAME,n)),n&&(n.decode(e),this.dirty=!0)}},{key:"decodeSectionById",value:function(t,e){this.decodeSection(oO.SECTION_ID_NAME_MAP.get(t),e)}},{key:"toObject",value:function(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);for(var t={},e=0;e<oO.SECTION_ORDER.length;e++){var n=oO.SECTION_ORDER[e];this.sections.has(n)&&(t[n]=this.sections.get(n).toObj())}return t}},{key:"encode",value:function(){return(null==this.encodedString||0===this.encodedString.length||this.dirty)&&(this.encodedString=this.encodeModel(this.sections),this.dirty=!1,this.decoded=!0),this.encodedString}},{key:"decode",value:function(t){this.encodedString=t,this.dirty=!1,this.decoded=!1}}])&&uO(e.prototype,n),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function fO(t){return(fO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yO(r.key),r)}}function pO(t,e,n){return(e=yO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yO(t){var e=function(t,e){if("object"!=fO(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=fO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fO(e)?e:e+""}var bO=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),pO(this,"gppVersion","1.1"),pO(this,"supportedAPIs",[]),pO(this,"eventQueue",new Qt(this)),pO(this,"cmpStatus",Dt.LOADING),pO(this,"cmpDisplayStatus",Rt.HIDDEN),pO(this,"signalStatus",Mt.NOT_READY),pO(this,"applicableSections",[]),pO(this,"gppModel",new lO),pO(this,"cmpId",void 0),pO(this,"cmpVersion",void 0),pO(this,"eventStatus",void 0)}var e,n,r;return e=t,(n=[{key:"reset",value:function(){this.eventQueue.clear(),this.cmpStatus=Dt.LOADING,this.cmpDisplayStatus=Rt.HIDDEN,this.signalStatus=Mt.NOT_READY,this.applicableSections=[],this.supportedAPIs=[],this.gppModel=new lO,delete this.cmpId,delete this.cmpVersion,delete this.eventStatus}}])&&sO(e.prototype,n),r&&sO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();n(56),n(57);function dO(t){return(dO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,hO(r.key),r)}}function hO(t){var e=function(t,e){if("object"!=dO(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=dO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dO(e)?e:e+""}var SO=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"absCall",value:function(t,e,n,r){return new Promise((function(o,i){var u=new XMLHttpRequest;u.withCredentials=n,u.addEventListener("load",(function(){if(u.readyState==XMLHttpRequest.DONE)if(u.status>=200&&u.status<300){var t=u.response;if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}o(t)}else i(new Error("HTTP Status: ".concat(u.status," response type: ").concat(u.responseType)))})),u.addEventListener("error",(function(){i(new Error("error"))})),u.addEventListener("abort",(function(){i(new Error("aborted"))})),null===e?u.open("GET",t,!0):u.open("POST",t,!0),u.responseType="json",u.timeout=r,u.ontimeout=function(){i(new Error("Timeout "+r+"ms "+t))},u.send(e)}))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(t,JSON.stringify(e),n,r)}},{key:"fetch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(t,null,e,n)}}],(n=null)&&vO(e.prototype,n),r&&vO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function OO(t){return(OO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function EO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,mO(r.key),r)}}function mO(t){var e=function(t,e){if("object"!=OO(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=OO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OO(e)?e:e+""}function gO(t,e){if(e&&("object"===OO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _O(t){var e="function"==typeof Map?new Map:void 0;return(_O=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return wO(t,arguments,NO(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),PO(n,t)})(t)}function wO(t,e,n){if(TO())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&PO(o,n.prototype),o}function TO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(TO=function(){return!!t})()}function PO(t,e){return(PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function NO(t){return(NO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var IO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&PO(t,e)}(c,t);var e,n,r,o,i,u=(e=c,n=TO(),function(){var t,r=NO(e);if(n){var o=NO(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return gO(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).name="GVLError",e}return r=c,o&&EO(r.prototype,o),i&&EO(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(_O(Error));function jO(t){return(jO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function AO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,CO(r.key),r)}}function CO(t){var e=function(t,e){if("object"!=jO(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=jO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jO(e)?e:e+""}var DO=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"has",value:function(e){return t.langSet.has(e)}},{key:"forEach",value:function(e){t.langSet.forEach(e)}},{key:"size",get:function(){return t.langSet.size}}])&&AO(e.prototype,n),r&&AO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();!function(t,e,n){(e=CO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(DO,"langSet",new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HR","HU","ID","IT","JA","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"]));n(198),n(140),n(141),n(142),n(199),n(144),n(54),n(75),n(59);function RO(t){return(RO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function VO(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */VO=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,u=Object.create(i.prototype),c=new j(r||[]);return o(u,"_invoke",{value:T(t,n,c)}),u}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="executing",b="completed",d={};function v(){}function h(){}function S(){}var O={};l(O,u,(function(){return this}));var E=Object.getPrototypeOf,m=E&&E(E(A([])));m&&m!==n&&r.call(m,u)&&(O=m);var g=S.prototype=v.prototype=Object.create(O);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,u,c){var a=s(t[o],t,i);if("throw"!==a.type){var l=a.arg,f=l.value;return f&&"object"==RO(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(a.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var o=p;return function(i,u){if(o===y)throw Error("Generator is already running");if(o===b){if("throw"===i)throw u;return{value:t,done:!0}}for(r.method=i,r.arg=u;;){var c=r.delegate;if(c){var a=P(c,r);if(a){if(a===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var l=s(e,n,r);if("normal"===l.type){if(o=r.done?b:"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=b,r.method="throw",r.arg=l.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=s(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var u=i.arg;return u?u.done?(n[e.resultName]=u.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(RO(e)+" is not iterable")}return h.prototype=S,o(g,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:h,configurable:!0}),h.displayName=l(S,a,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,l(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},_(w.prototype),l(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var u=new w(f(t,n,r,o),i);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},_(g),l(g,a,"Generator"),l(g,u,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=r.call(u,"catchLoc"),l=r.call(u,"finallyLoc");if(a&&l){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),d}},e}function MO(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function kO(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){MO(i,r,o,u,c,"next",t)}function c(t){MO(i,r,o,u,c,"throw",t)}u(void 0)}))}}function UO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xO(r.key),r)}}function GO(t,e,n){return e&&UO(t.prototype,e),n&&UO(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function LO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FO(t,e,n){return(e=xO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xO(t){var e=function(t,e){if("object"!=RO(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=RO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==RO(e)?e:e+""}var BO=function(){function t(){LO(this,t),FO(this,"vendors",void 0),FO(this,"consentLanguages",new DO),FO(this,"gvlSpecificationVersion",void 0),FO(this,"vendorListVersion",void 0),FO(this,"tcfPolicyVersion",void 0),FO(this,"lastUpdated",void 0),FO(this,"purposes",void 0),FO(this,"specialPurposes",void 0),FO(this,"features",void 0),FO(this,"specialFeatures",void 0),FO(this,"stacks",void 0),FO(this,"dataCategories",void 0),FO(this,"language",t.DEFAULT_LANGUAGE),FO(this,"vendorIds",void 0),FO(this,"ready",!1),FO(this,"fullVendorList",void 0),FO(this,"byPurposeVendorMap",void 0),FO(this,"bySpecialPurposeVendorMap",void 0),FO(this,"byFeatureVendorMap",void 0),FO(this,"bySpecialFeatureVendorMap",void 0),FO(this,"baseUrl",void 0),FO(this,"languageFilename","purposes-[LANG].json")}var e,n;return GO(t,[{key:"changeLanguage",value:(n=kO(VO().mark((function t(e){var n,r;return VO().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.toUpperCase(),!this.consentLanguages.has(n)){t.next=18;break}if(n===this.language){t.next=16;break}return this.language=n,r=this.baseUrl+this.languageFilename.replace("[LANG]",e),t.prev=5,t.t0=this,t.next=9,SO.fetch(r);case 9:t.t1=t.sent,t.t0.populate.call(t.t0,t.t1),t.next=16;break;case 13:throw t.prev=13,t.t2=t.catch(5),new IO("unable to load language: "+t.t2.message);case 16:t.next=19;break;case 18:throw new IO("unsupported language ".concat(e));case 19:case"end":return t.stop()}}),t,this,[[5,13]])}))),function(t){return n.apply(this,arguments)})},{key:"getJson",value:function(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{key:"isVendorList",value:function(t){return void 0!==t&&void 0!==t.vendors}},{key:"populate",value:function(t){this.purposes=t.purposes,this.specialPurposes=t.specialPurposes,this.features=t.features,this.specialFeatures=t.specialFeatures,this.stacks=t.stacks,this.dataCategories=t.dataCategories,this.isVendorList(t)&&(this.gvlSpecificationVersion=t.gvlSpecificationVersion,this.tcfPolicyVersion=t.tcfPolicyVersion,this.vendorListVersion=t.vendorListVersion,this.lastUpdated=t.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors=t.vendors,this.fullVendorList=t.vendors,this.mapVendors(),this.ready=!0)}},{key:"mapVendors",value:function(t){var e=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(t){e.byPurposeVendorMap[t]={legInt:new Set,impCons:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(t){e.bySpecialPurposeVendorMap[t]=new Set})),Object.keys(this.features).forEach((function(t){e.byFeatureVendorMap[t]=new Set})),Object.keys(this.specialFeatures).forEach((function(t){e.bySpecialFeatureVendorMap[t]=new Set})),Array.isArray(t)||(t=Object.keys(this.fullVendorList).map((function(t){return+t}))),this.vendorIds=new Set(t),this.vendors=t.reduce((function(t,n){var r=e.vendors[String(n)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(t){e.byPurposeVendorMap[String(t)].consent.add(n)})),r.specialPurposes.forEach((function(t){e.bySpecialPurposeVendorMap[String(t)].add(n)})),r.legIntPurposes&&r.legIntPurposes.forEach((function(t){e.byPurposeVendorMap[String(t)].legInt.add(n)})),r.impConsPurposes&&r.impConsPurposes.forEach((function(t){e.byPurposeVendorMap[String(t)].impCons.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(t){e.byPurposeVendorMap[String(t)].flexible.add(n)})),r.features.forEach((function(t){e.byFeatureVendorMap[String(t)].add(n)})),r.specialFeatures.forEach((function(t){e.bySpecialFeatureVendorMap[String(t)].add(n)})),t[n]=r),t}),{})}},{key:"getFilteredVendors",value:function(t,e,n,r){var o=this,i=t.charAt(0).toUpperCase()+t.slice(1),u={};return("purpose"===t&&n?this["by"+i+"VendorMap"][String(e)][n]:this["by"+(r?"Special":"")+i+"VendorMap"][String(e)]).forEach((function(t){u[String(t)]=o.vendors[String(t)]})),u}},{key:"getVendorsWithConsentPurpose",value:function(t){return this.getFilteredVendors("purpose",t,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(t){return this.getFilteredVendors("purpose",t,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(t){return this.getFilteredVendors("purpose",t,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(t){return this.getFilteredVendors("purpose",t,void 0,!0)}},{key:"getVendorsWithFeature",value:function(t){return this.getFilteredVendors("feature",t)}},{key:"getVendorsWithSpecialFeature",value:function(t){return this.getFilteredVendors("feature",t,void 0,!0)}},{key:"narrowVendorsTo",value:function(t){this.mapVendors(t)}},{key:"isReady",get:function(){return this.ready}}],[{key:"fromVendorList",value:function(e){var n=new t;return n.populate(e),n}},{key:"fromUrl",value:(e=kO(VO().mark((function e(n){var r,o,i,u,c,a;return VO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=n.baseUrl)&&0!==r.length){e.next=3;break}throw new IO("Invalid baseUrl: '"+r+"'");case 3:if(!/^https?:\/\/vendorlist\.consensu\.org\//.test(r)){e.next=5;break}throw new IO("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");case 5:if(r.length>0&&"/"!==r[r.length-1]&&(r+="/"),(o=new t).baseUrl=r,n.languageFilename?o.languageFilename=n.languageFilename:o.languageFilename="purposes-[LANG].json",!(n.version>0)){e.next=20;break}return(i=n.versionedFilename)||(i="archives/vendor-list-v[VERSION].json"),u=r+i.replace("[VERSION]",String(n.version)),e.t0=o,e.next=16,SO.fetch(u);case 16:e.t1=e.sent,e.t0.populate.call(e.t0,e.t1),e.next=28;break;case 20:return(c=n.latestFilename)||(c="vendor-list.json"),a=r+c,e.t2=o,e.next=26,SO.fetch(a);case 26:e.t3=e.sent,e.t2.populate.call(e.t2,e.t3);case 28:return e.abrupt("return",o);case 29:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"isInstanceOf",value:function(t){return"object"===RO(t)&&"function"==typeof t.narrowVendorsTo}}]),t}();function HO(t){return(HO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zO(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */zO=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,u=Object.create(i.prototype),c=new j(r||[]);return o(u,"_invoke",{value:T(t,n,c)}),u}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="executing",b="completed",d={};function v(){}function h(){}function S(){}var O={};l(O,u,(function(){return this}));var E=Object.getPrototypeOf,m=E&&E(E(A([])));m&&m!==n&&r.call(m,u)&&(O=m);var g=S.prototype=v.prototype=Object.create(O);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,u,c){var a=s(t[o],t,i);if("throw"!==a.type){var l=a.arg,f=l.value;return f&&"object"==HO(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(a.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var o=p;return function(i,u){if(o===y)throw Error("Generator is already running");if(o===b){if("throw"===i)throw u;return{value:t,done:!0}}for(r.method=i,r.arg=u;;){var c=r.delegate;if(c){var a=P(c,r);if(a){if(a===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var l=s(e,n,r);if("normal"===l.type){if(o=r.done?b:"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=b,r.method="throw",r.arg=l.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=s(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var u=i.arg;return u?u.done?(n[e.resultName]=u.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(HO(e)+" is not iterable")}return h.prototype=S,o(g,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:h,configurable:!0}),h.displayName=l(S,a,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,l(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},_(w.prototype),l(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var u=new w(f(t,n,r,o),i);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},_(g),l(g,a,"Generator"),l(g,u,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=r.call(u,"catchLoc"),l=r.call(u,"finallyLoc");if(a&&l){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),d}},e}function KO(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function YO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,QO(r.key),r)}}function WO(t,e,n){return(e=QO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function QO(t){var e=function(t,e){if("object"!=HO(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=HO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==HO(e)?e:e+""}FO(BO,"DEFAULT_LANGUAGE","EN");var XO=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),WO(this,"callResponder",void 0),WO(this,"cmpApiContext",void 0),this.cmpApiContext=new bO,this.cmpApiContext.cmpId=e,this.cmpApiContext.cmpVersion=n,this.callResponder=new Ht(this.cmpApiContext,r)}var e,n,r,o,i;return e=t,(n=[{key:"fireEvent",value:function(t,e){this.cmpApiContext.eventQueue.exec(t,e)}},{key:"fireErrorEvent",value:function(t){this.cmpApiContext.eventQueue.exec("error",t)}},{key:"fireSectionChange",value:function(t){this.cmpApiContext.eventQueue.exec("sectionChange",t)}},{key:"getEventStatus",value:function(){return this.cmpApiContext.eventStatus}},{key:"setEventStatus",value:function(t){this.cmpApiContext.eventStatus=t}},{key:"getCmpStatus",value:function(){return this.cmpApiContext.cmpStatus}},{key:"setCmpStatus",value:function(t){this.cmpApiContext.cmpStatus=t,this.cmpApiContext.eventQueue.exec("cmpStatus",t)}},{key:"getCmpDisplayStatus",value:function(){return this.cmpApiContext.cmpDisplayStatus}},{key:"setCmpDisplayStatus",value:function(t){this.cmpApiContext.cmpDisplayStatus=t,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",t)}},{key:"getSignalStatus",value:function(){return this.cmpApiContext.signalStatus}},{key:"setSignalStatus",value:function(t){this.cmpApiContext.signalStatus=t,this.cmpApiContext.eventQueue.exec("signalStatus",t)}},{key:"getApplicableSections",value:function(){return this.cmpApiContext.applicableSections}},{key:"setApplicableSections",value:function(t){this.cmpApiContext.applicableSections=t}},{key:"getSupportedAPIs",value:function(){return this.cmpApiContext.supportedAPIs}},{key:"setSupportedAPIs",value:function(t){this.cmpApiContext.supportedAPIs=t}},{key:"setGppString",value:function(t){this.cmpApiContext.gppModel.decode(t)}},{key:"getGppString",value:function(){return this.cmpApiContext.gppModel.encode()}},{key:"setSectionString",value:function(t,e){this.cmpApiContext.gppModel.decodeSection(t,e)}},{key:"setSectionStringById",value:function(t,e){this.setSectionString(oO.SECTION_ID_NAME_MAP.get(t),e)}},{key:"getSectionString",value:function(t){return this.cmpApiContext.gppModel.encodeSection(t)}},{key:"getSectionStringById",value:function(t){return this.getSectionString(oO.SECTION_ID_NAME_MAP.get(t))}},{key:"setFieldValue",value:function(t,e,n){this.cmpApiContext.gppModel.setFieldValue(t,e,n)}},{key:"setFieldValueBySectionId",value:function(t,e,n){this.setFieldValue(oO.SECTION_ID_NAME_MAP.get(t),e,n)}},{key:"getFieldValue",value:function(t,e){return this.cmpApiContext.gppModel.getFieldValue(t,e)}},{key:"getFieldValueBySectionId",value:function(t,e){return this.getFieldValue(oO.SECTION_ID_NAME_MAP.get(t),e)}},{key:"getSection",value:function(t){return this.cmpApiContext.gppModel.getSection(t)}},{key:"getSectionById",value:function(t){return this.getSection(oO.SECTION_ID_NAME_MAP.get(t))}},{key:"hasSection",value:function(t){return this.cmpApiContext.gppModel.hasSection(t)}},{key:"hasSectionId",value:function(t){return this.hasSection(oO.SECTION_ID_NAME_MAP.get(t))}},{key:"deleteSection",value:function(t){this.cmpApiContext.gppModel.deleteSection(t)}},{key:"deleteSectionById",value:function(t){this.deleteSection(oO.SECTION_ID_NAME_MAP.get(t))}},{key:"clear",value:function(){this.cmpApiContext.gppModel.clear()}},{key:"getObject",value:function(){return this.cmpApiContext.gppModel.toObject()}},{key:"getGvlFromVendorList",value:function(t){return BO.fromVendorList(t)}},{key:"getGvlFromUrl",value:(o=zO().mark((function t(e){return zO().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",BO.fromUrl(e));case 1:case"end":return t.stop()}}),t)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function u(t){KO(i,n,r,u,c,"next",t)}function c(t){KO(i,n,r,u,c,"throw",t)}u(void 0)}))},function(t){return i.apply(this,arguments)})}])&&YO(e.prototype,n),r&&YO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},204:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(200);function o(t,e,n){return{getUserConsents:function(o){return r.a.getUserConsents(t,e,n,o)},postRejectAll:function(o){return r.a.postRejectAll(t,e,n,o)}}}},206:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return y}));n(57),n(23),n(30),n(52),n(53),n(26),n(27),n(36),n(54),n(58),n(73),n(76),n(28),n(19),n(24),n(25);var r=n(0),o=n(200);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t,e,n){try{t(e,n)}catch(t){Object(r.handleError)(new r.CmpCallbackError(t),"ccpa")}},f=function(t,e,n,o){var i=n.usNatOrigin,u=Object(r.getUserConsentData)("usnat"),c=u.applies,a=u.dateCreated,f=u.consentStatus,s=u.customVendorRejects,p=u.customVendorRejectsDate;if(s&&a===p)l(e,s,!0);else if(f&&!0===f.consentedToAll)l(e,{rejectedCategories:[],rejectedVendors:[],ccpaApplies:c},!0);else{var y="".concat(i,"/consent/").concat(o,"/custom-vendors?uuid=").concat(Object(r.getUserConsentData)("usnat","uuid"));Object(r.fetch)(y,{method:"GET"}).then((function(t){return JSON.parse(t)})).then((function(t){var n={rejectedCategories:t.rejectedCategories,rejectedVendors:t.rejectedVendors,ccpaApplies:t.applies};Object(r.setUserConsentData)({usnat:{customVendorRejects:n,customVendorRejectsDate:a}}),l(e,n,!0)})).catch((function(t){return e(null,!1)}))}},s={getuspdata:function(t,e){var n,o=Object(r.getUserConsentData)("usnat")||{},i=o.applies,u=o.dateCreated,c=o.gpcEnabled,a=o.consentStatus,l=Object(r.getStateStorageFromMemory)("newUser",void 0,"usnat");i?n=(a&&a.granularStatus).sellStatus?"YNN":"YYN":n="---";n="1"+n;try{e({version:t,uspString:n,newUser:l,dateCreated:u,gpcEnabled:c},!0)}catch(t){Object(r.handleError)(new r.CmpCallbackError(t),"ccpa")}},getcustomvendorrejects:f,postrejectall:function(t,e,n,r){return o.a.postRejectAll(c(c({},n),{},{propertyId:r}),"usnat",void 0,e)}},p=function(t,e){var n=window.__uspapi.a;!function(t,e){window.__uspapi=function(n,r,o){"string"==typeof n&&(n=n.toLowerCase());var i=s[n];i&&i(r,o,t,e)}}(t,e),n&&n.length>0&&n.forEach((function(t){window.__uspapi.apply(null,t)}))},y=function(t,e){window.__uspapi.hasSeenCCPAMessage=function(){p(t,e),window.__uspapi.hasSeenCCPAMessage=void 0}}}}]);