(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;e2&&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);n0?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;n0&&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. parameter required");var t=this.parameter.split(".");if(2!=t.length)throw new Error("Field name must be in the format
.");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 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[.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;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=1)for(n.push(1);t>=2*n[0];)n.unshift(2*n[0]);for(var r="",o=0;o=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.length0;)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=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;r0&&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;nt.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);n1&&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;o2&&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;n0&&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;rr&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n0;)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;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&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;o3&&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;n1&&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;n1&&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;ne)throw new Ce("Too many values '"+t.length+"'");for(var n="",r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&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;nthis.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=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;n2&&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);n1&&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;ut.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&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;re&&(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;n0&&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="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;n0&&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="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;n0&&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;rr&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;nn)throw new Ce("Too many values '"+t.length+"'");for(var r="",o=0;oe*n)throw new me("Undecodable FixedIntegerList '"+t+"'");if(t.length%e!=0)throw new me("Undecodable FixedIntegerList '"+t+"'");for(;t.lengthe*n&&(t=t.substring(0,e*n));for(var r=[],o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&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;nthis.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=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;e2)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;n0&&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=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;e2)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;n1&&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=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;e2)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;n0&&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=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;e2)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;n0&&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;rr&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n=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;e2)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;n0&&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=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;e2)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;n0&&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;rr&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n=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;e2)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;n0&&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=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;e2)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;n0&&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;rr&&e[r].decode(n[r]);return e}},{key:"encodeSection",value:function(t){for(var e=[],n=0;n=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;e2)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;n0&&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=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;e2)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;n0&&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=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;e2)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;n0&&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=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;e2)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;n0&&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=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;e2)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;n0&&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=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;e2)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;n0&&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=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;e2)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;n0&&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=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;e2)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;n0&&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=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;e2)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;n0&&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;n0&&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=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=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=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=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;n0&&"/"!==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=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=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=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;n0&&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}}}}]);