PageSourceSearch

https://portal.privacypillar.com/default-src_app__services_gdpr_service_ts.f74f69c1e58bf05b.js

js privacypillar.com collected 2026-09-24 09:09:05 UTC 138,304 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["default-src_app__services_gdpr_service_ts"],{37858:(et,We,ce)=>{ce.d(We,{Q:()=>As});var Re=ce(92340),ae=ce(41092),ve=ce(591),be=ce(61737),Be=ce(27221),Me=ce(28597);class Le extends Error{constructor(e){super(e),this.name="InvalidFieldError"}}class J{segments;encodedString=null;dirty=!1;decoded=!0;constructor(){this.segments=this.initializeSegments()}hasField(e){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(let t=0;t<this.segments.length;t++){let s=this.segments[t];if(s.getFieldNames().includes(e))return s.hasField(e)}return!1}getFieldValue(e){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(let t=0;t<this.segments.length;t++){let s=this.segments[t];if(s.hasField(e))return s.getFieldValue(e)}throw new Le("Invalid field: '"+e+"'")}setFieldValue(e,t){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(let s=0;s<this.segments.length;s++){let n=this.segments[s];if(n.hasField(e))return void n.setFieldValue(e,t)}throw new Le("Invalid field: '"+e+"'")}toObj(){let e={};for(let t=0;t<this.segments.length;t++){let s=this.segments[t].toObj();for(const[n,o]of Object.entries(s))e[n]=o}return e}encode(){return(null==this.encodedString||0===this.encodedString.length||this.dirty)&&(this.encodedString=this.encodeSection(this.segments),this.dirty=!1,this.decoded=!0),this.encodedString}decode(e){this.encodedString=e,this.dirty=!1,this.decoded=!1}}class _ extends Error{constructor(e){super(e),this.name="DecodingError"}}class q extends Error{constructor(e){super(e),this.name="EncodingError"}}class f{static encode(e,t){let s=[];if(e>=1)for(s.push(1);e>=2*s[0];)s.unshift(2*s[0]);let n="";for(let o=0;o<s.length;o++){let c=s[o];e>=c?(n+="1",e-=c):n+="0"}if(n.length>t)throw new q("Numeric value '"+e+"' is too large for a bit string length of '"+t+"'");for(;n.length<t;)n="0"+n;return n}static decode(e){if(!/^[0-1]*$/.test(e))throw new _("Undecodable FixedInteger '"+e+"'");let t=0,s=[];for(let n=0;n<e.length;n++)s[e.length-(n+1)]=0===n?1:2*s[e.length-n];for(let n=0;n<e.length;n++)"1"===e.charAt(n)&&(t+=s[n]);return t}}class O{static DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";static REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]);encode(e){if(!/^[0-1]*$/.test(e))throw new q("Unencodable Base64Url '"+e+"'");e=this.pad(e);let t="",s=0;for(;s<=e.length-6;){let n=e.substring(s,s+6);try{let o=f.decode(n);t+=O.DICT.charAt(o),s+=6}catch{throw new q("Unencodable Base64Url '"+e+"'")}}return t}decode(e){if(!/^[A-Za-z0-9\-_]*$/.test(e))throw new _("Undecodable Base64URL string '"+e+"'");let t="";for(let s=0;s<e.length;s++){let n=e.charAt(s),o=O.REVERSE_DICT.get(n);t+=f.encode(o,6)}return t}}class T extends O{static instance=new T;constructor(){super()}static getInstance(){return this.instance}pad(e){for(;e.length%8>0;)e+="0";for(;e.length%6>0;)e+="0";return e}}class R{static instance=new R;constructor(){}static getInstance(){return this.instance}encode(e,t){let s="";for(let n=0;n<t.length;n++){let o=t[n];if(!e.containsKey(o))throw new Error("Field not found: '"+o+"'");s+=e.get(o).encode()}return s}decode(e,t,s){let n=0;for(let o=0;o<t.length;o++){let c=t[o];if(!s.containsKey(c))throw new Error("Field not found: '"+c+"'");{let S=s.get(c);try{let g=S.substring(e,n);S.decode(g),n+=g.length}catch(g){if("SubstringError"===g.name&&!S.getHardFailIfMissing())return;throw new _("Unable to decode field '"+c+"'")}}}}}class ie{static encode(e){let t=[];if(e>=1&&(t.push(1),e>=2)){t.push(2);let n=2;
1for(;e>=t[n-1]+t[n-2];)t.push(t[n-1]+t[n-2]),n++}let s="1";for(let n=t.length-1;n>=0;n--){let o=t[n];e>=o?(s="1"+s,e-=o):s="0"+s}return s}static decode(e){if(!/^[0-1]*$/.test(e)||e.length<2||e.indexOf("11")!==e.length-2)throw new _("Undecodable FibonacciInteger '"+e+"'");let t=0,s=[];for(let n=0;n<e.length-1;n++)s.push(0===n?1:1===n?2:s[n-1]+s[n-2]);for(let n=0;n<e.length-1;n++)"1"===e.charAt(n)&&(t+=s[n]);return t}}class re{static encode(e){if(!0===e)return"1";if(!1===e)return"0";throw new q("Unencodable Boolean '"+e+"'")}static decode(e){if("1"===e)return!0;if("0"===e)return!1;throw new _("Undecodable Boolean '"+e+"'")}}class He{static encode(e){e=e.sort((c,S)=>c-S);let t=[],s=0,n=0;for(;n<e.length;){let c=n;for(;c<e.length-1&&e[c]+1===e[c+1];)c++;t.push(e.slice(n,c+1)),n=c+1}let o=f.encode(t.length,12);for(let c=0;c<t.length;c++)if(1==t[c].length){let S=t[c][0]-s;s=t[c][0],o+="0"+ie.encode(S)}else{let S=t[c][0]-s;s=t[c][0];let g=t[c][t[c].length-1]-s;s=t[c][t[c].length-1],o+="1"+ie.encode(S)+ie.encode(g)}return o}static decode(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new _("Undecodable FibonacciIntegerRange '"+e+"'");let t=[],s=f.decode(e.substring(0,12)),n=0,o=12;for(let c=0;c<s;c++){let S=re.decode(e.substring(o,o+1));if(o++,!0===S){let g=e.indexOf("11",o),le=ie.decode(e.substring(o,g+2))+n;n=le,o=g+2,g=e.indexOf("11",o);let qe=ie.decode(e.substring(o,g+2))+n;n=qe,o=g+2;for(let Je=le;Je<=qe;Je++)t.push(Je)}else{let g=e.indexOf("11",o),le=ie.decode(e.substring(o,g+2))+n;n=le,t.push(le),o=g+2}}return t}}class je extends Error{constructor(e){super(e),this.name="ValidationError"}}class te{hardFailIfMissing;validator;value;constructor(e=!0){this.hardFailIfMissing=e}withValidator(e){return this.validator=e,this}hasValue(){return null!=this.value}getValue(){return this.value}setValue(e){if(this.validator&&!this.validator.test(e))throw new je("Invalid value '"+e+"'");this.value=e}getHardFailIfMissing(){return this.hardFailIfMissing}}class se extends _{constructor(e){super(e),this.name="SubstringError"}}class Z{static substring(e,t,s){if(s>e.length||t<0||t>s)throw new se("Invalid substring indexes "+t+":"+s+" for string of length "+e.length);return e.substring(t,s)}}class ke extends te{constructor(e,t=!0){super(t),this.setValue(e)}encode(){try{return He.encode(this.value)}catch(e){throw new q(e)}}decode(e){try{this.value=He.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{let s=f.decode(Z.substring(e,t,t+12)),n=t+12;for(let o=0;o<s;o++)n="1"===e.charAt(n)?e.indexOf("11",e.indexOf("11",n+1)+2)+2:e.indexOf("11",n+1)+2;return Z.substring(e,t,n)}catch(s){throw new se(s)}}getValue(){return[...super.getValue()]}setValue(e){super.setValue(Array.from(new Set(e)).sort((t,s)=>t-s))}}class a extends te{bitStringLength;
1constructor(e,t,s=!0){super(s),this.bitStringLength=e,this.setValue(t)}encode(){try{return f.encode(this.value,this.bitStringLength)}catch(e){throw new q(e)}}decode(e){try{this.value=f.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{return Z.substring(e,t,t+this.bitStringLength)}catch(s){throw new se(s)}}}class M{fields=new Map;containsKey(e){return this.fields.has(e)}put(e,t){this.fields.set(e,t)}get(e){return this.fields.get(e)}getAll(){return new Map(this.fields)}reset(e){this.fields.clear(),e.getAll().forEach((t,s)=>{this.fields.set(s,t)})}}var Ge=(()=>{return(i=Ge||(Ge={})).ID="Id",i.VERSION="Version",i.SECTION_IDS="SectionIds",Ge;var i})();const ze=[Ge.ID,Ge.VERSION,Ge.SECTION_IDS];class m{fields;encodedString=null;dirty=!1;decoded=!0;constructor(){this.fields=this.initializeFields()}validate(){}hasField(e){return this.fields.containsKey(e)}getFieldValue(e){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(e))return this.fields.get(e).getValue();throw new Le("Invalid field: '"+e+"'")}setFieldValue(e,t){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),!this.fields.containsKey(e))throw new Le(e+" not found");this.fields.get(e).setValue(t),this.dirty=!0}toObj(){let e={},t=this.getFieldNames();for(let s=0;s<t.length;s++){let n=t[s],o=this.getFieldValue(n);e[n]=o}return e}encode(){return(null==this.encodedString||0===this.encodedString.length||this.dirty)&&(this.validate(),this.encodedString=this.encodeSegment(this.fields),this.dirty=!1,this.decoded=!0),this.encodedString}decode(e){this.encodedString=e,this.dirty=!1,this.decoded=!1}}class D extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return ze}initializeFields(){let e=new M;return e.put(Ge.ID.toString(),new a(6,Ue.ID)),e.put(Ge.VERSION.toString(),new a(6,Ue.VERSION)),e.put(Ge.SECTION_IDS.toString(),new ke([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode HeaderV1CoreSegment '"+e+"'")}}}let Ue=(()=>{class i extends J{static ID=3;static VERSION=1;static NAME="header";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new D),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");for(let o=0;o<s.length;o++)n.length>o&&s[o].decode(n[o])}return s}encodeSection(t){let s=[];for(let n=0;n<t.length;n++)s.push(t[n].encode());return s.join(".")}}return i})();var N=(()=>{return(i=N||(N={})).VERSION="Version",i.CREATED="Created",i.LAST_UPDATED="LastUpdated",i.CMP_ID="CmpId",i.CMP_VERSION="CmpVersion",i.CONSENT_SCREEN="ConsentScreen",i.CONSENT_LANGUAGE="ConsentLanguage",i.VENDOR_LIST_VERSION="VendorListVersion",i.POLICY_VERSION="PolicyVersion",i.IS_SERVICE_SPECIFIC="IsServiceSpecific",i.USE_NON_STANDARD_STACKS="UseNonStandardStacks",i.SPECIAL_FEATURE_OPTINS="SpecialFeatureOptins",i.PURPOSE_CONSENTS="PurposeConsents",i.PURPOSE_LEGITIMATE_INTERESTS="PurposeLegitimateInterests",i.PURPOSE_ONE_TREATMENT="PurposeOneTreatment",i.PUBLISHER_COUNTRY_CODE="PublisherCountryCode",i.VENDOR_CONSENTS="VendorConsents",i.VENDOR_LEGITIMATE_INTERESTS="VendorLegitimateInterests",i.PUBLISHER_RESTRICTIONS="PublisherRestrictions",i.PUBLISHER_PURPOSES_SEGMENT_TYPE="PublisherPurposesSegmentType",i.PUBLISHER_CONSENTS="PublisherConsents",i.PUBLISHER_LEGITIMATE_INTERESTS="PublisherLegitimateInterests",i.NUM_CUSTOM_PURPOSES="NumCustomPurposes",i.PUBLISHER_CUSTOM_CONSENTS="PublisherCustomConsents",i.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS="PublisherCustomLegitimateInterests",i.VENDORS_ALLOWED_SEGMENT_TYPE="VendorsAllowedSegmentType",i.VENDORS_ALLOWED="VendorsAllowed",i.VENDORS_DISCLOSED_SEGMENT_TYPE="VendorsDisclosedSegmentType",i.VENDORS_DISCLOSED="VendorsDisclosed",N;var i})();const C=[N.VERSION,N.CREATED,N.LAST_UPDATED,N.CMP_ID,N.CMP_VERSION,N.CONSENT_SCREEN,N.CONSENT_LANGUAGE,N.VENDOR_LIST_VERSION,N.POLICY_VERSION,N.IS_SERVICE_SPECIFIC,N.USE_NON_STANDARD_STACKS,N.SPECIAL_FEATURE_OPTINS,N.PURPOSE_CONSENTS,N.PURPOSE_LEGITIMATE_INTERESTS,N.PURPOSE_ONE_TREATMENT,N.PUBLISHER_COUNTRY_CODE,N.VENDOR_CONSENTS,N.VENDOR_LEGITIMATE_INTERESTS,N.PUBLISHER_RESTRICTIONS],r=[N.PUBLISHER_PURPOSES_SEGMENT_TYPE,N.PUBLISHER_CONSENTS,N.PUBLISHER_LEGITIMATE_INTERESTS,N.NUM_CUSTOM_PURPOSES,N.PUBLISHER_CUSTOM_CONSENTS,N.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS],l=[N.VENDORS_ALLOWED_SEGMENT_TYPE,N.VENDORS_ALLOWED],E=[N.VENDORS_DISCLOSED_SEGMENT_TYPE,N.VENDORS_DISCLOSED];class d extends O{static instance=new d;constructor(){super()}static getInstance(){return this.instance}pad(e){for(;e.length%24>0;)e+="0";return e}}class u{static encode(e){e.sort((o,c)=>o-c);let t=[],s=0;for(;s<e.length;){let o=s;for(;o<e.length-1&&e[o]+1===e[o+1];)o++;t.push(e.slice(s,o+1)),s=o+1}let n=f.encode(t.length,12);for(let o=0;o<t.length;o++)n+=1===t[o].length?"0"+f.encode(t[o][0],16):"1"+f.encode(t[o][0],16)+f.encode(t[o][t[o].length-1],16);return n}static decode(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new _("Undecodable FixedIntegerRange '"+e+"'");let t=[],s=f.decode(e.substring(0,12)),n=12;for(let o=0;o<s;o++){let c=re.decode(e.substring(n,n+1));if(n++,!0===c){let S=f.decode(e.substring(n,n+16));n+=16;let g=f.decode(e.substring(n,n+16));n+=16;for(let le=S;le<=g;le++)t.push(le)}else{let S=f.decode(e.substring(n,n+16));t.push(S),n+=16}}return t}}class I extends te{constructor(e,t=!0){super(t),this.setValue(e)}encode(){try{return u.encode(this.value)}catch(e){throw new q(e)}}decode(e){try{this.value=u.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{let s=f.decode(Z.substring(e,t,t+12)),n=t+12;for(let o=0;o<s;o++)"1"===e.charAt(n)?n+=33:n+=17;return Z.substring(e,t,n)}catch(s){throw new se(s)}}getValue(){return[...super.getValue()]}setValue(e){super.setValue(Array.from(new Set(e)).sort((t,s)=>t-s))}}class P{key;type;ids;constructor(e,t,s){this.key=e,this.type=t,this.ids=s}getKey(){return this.key}setKey(e){this.key=e}getType(){return this.type}setType(e){this.type=e}getIds(){return this.ids}setIds(e){this.ids=e}}class w extends te{keyBitStringLength;typeBitStringLength;constructor(e,t,s,n=!0){super(n),this.keyBitStringLength=e,this.typeBitStringLength=t,this.setValue(s)}encode(){try{let e=this.value,t="";t+=f.encode(e.length,12);for(let s=0;s<e.length;s++){let n=e[s];t+=f.encode(n.getKey(),this.keyBitStringLength),t+=f.encode(n.getType(),this.typeBitStringLength),t+=u.encode(n.getIds())}return t}catch(e){throw new q(e)}}decode(e){try{let t=[],s=f.decode(Z.substring(e,0,12)),n=12;for(let o=0;o<s;o++){let c=f.decode(Z.substring(e,n,n+this.keyBitStringLength));n+=this.keyBitStringLength;let S=f.decode(Z.substring(e,n,n+this.typeBitStringLength));n+=this.typeBitStringLength;let g=new I([]).substring(e,n),le=u.decode(g);n+=g.length,t.push(new P(c,S,le))}this.value=t}catch(t){throw new _(t)}}substring(e,t){try{let s="";
1s+=Z.substring(e,t,t+12);let n=f.decode(s.toString()),o=t+s.length;for(let c=0;c<n;c++){let S=Z.substring(e,o,o+this.keyBitStringLength);o+=S.length,s+=S;let g=Z.substring(e,o,o+this.typeBitStringLength);o+=g.length,s+=g;let le=new I([]).substring(e,o);o+=le.length,s+=le}return s}catch(s){throw new se(s)}}}class p extends te{constructor(e,t=!0){super(t),this.setValue(e)}encode(){try{return re.encode(this.value)}catch(e){throw new q(e)}}decode(e){try{this.value=re.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{return Z.substring(e,t,t+1)}catch(s){throw new se(s)}}}class G{static encode(e){return f.encode(e?Math.round(e.getTime()/100):0,36)}static decode(e){if(!/^[0-1]*$/.test(e)||36!==e.length)throw new _("Undecodable Datetime '"+e+"'");return new Date(100*f.decode(e))}}class $ extends te{constructor(e,t=!0){super(t),this.setValue(e)}encode(){try{return G.encode(this.value)}catch(e){throw new q(e)}}decode(e){try{this.value=G.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{return Z.substring(e,t,t+36)}catch(s){throw new se(s)}}}class W{static encode(e,t){if(e.length>t)throw new q("Too many values '"+e.length+"'");let s="";for(let n=0;n<e.length;n++)s+=re.encode(e[n]);for(;s.length<t;)s+="0";return s}static decode(e){if(!/^[0-1]*$/.test(e))throw new _("Undecodable FixedBitfield '"+e+"'");let t=[];for(let s=0;s<e.length;s++)t.push(re.decode(e.substring(s,s+1)));return t}}class ne extends te{numElements;constructor(e,t=!0){super(t),this.numElements=e.length,this.setValue(e)}encode(){try{return W.encode(this.value,this.numElements)}catch(e){throw new q(e)}}decode(e){try{this.value=W.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{return Z.substring(e,t,t+this.numElements)}catch(s){throw new se(s)}}getValue(){return[...super.getValue()]}setValue(e){let t=[...e];for(let s=t.length;s<this.numElements;s++)t.push(!1);t.length>this.numElements&&(t=t.slice(0,this.numElements)),super.setValue(t)}}class xe{static encode(e,t){for(;e.length<t;)e+=" ";let s="";for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(32===o)s+=f.encode(63,6);else{if(!(o>=65))throw new q("Unencodable FixedString '"+e+"'");s+=f.encode(e.charCodeAt(n)-65,6)}}return s}static decode(e){if(!/^[0-1]*$/.test(e)||e.length%6!=0)throw new _("Undecodable FixedString '"+e+"'");let t="";for(let s=0;s<e.length;s+=6){let n=f.decode(e.substring(s,s+6));t+=63===n?" ":String.fromCharCode(n+65)}return t.trim()}}class $e extends te{stringLength;constructor(e,t,s=!0){super(s),this.stringLength=e,this.setValue(t)}encode(){try{return xe.encode(this.value,this.stringLength)}catch(e){throw new q(e)}}decode(e){try{this.value=xe.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{return Z.substring(e,t,t+6*this.stringLength)}catch(s){throw new se(s)}}}class ye extends te{constructor(e,t=!0){super(t),this.setValue(e)}encode(){try{let e=this.value.length>0?this.value[this.value.length-1]:0,t=u.encode(this.value),n=e;if(t.length<=n)return f.encode(e,16)+"1"+t;{let o=[],c=0;for(let S=0;S<e;S++)S===this.value[c]-1?(o[S]=!0,c++):o[S]=!1;return f.encode(e,16)+"0"+W.encode(o,n)}}catch(e){throw new q(e)}}decode(e){try{if("1"===e.charAt(16))this.value=u.decode(e.substring(17));else{let t=[],s=W.decode(e.substring(17));for(let n=0;n<s.length;n++)!0===s[n]&&t.push(n+1);this.value=t}}catch(t){throw new _(t)}}substring(e,t){try{let s=f.decode(Z.substring(e,t,t+16));return"1"===e.charAt(t+16)?Z.substring(e,t,t+17)+new I([]).substring(e,t+17):Z.substring(e,t,t+17+s)}catch(s){throw new se(s)}}getValue(){return[...super.getValue()]}setValue(e){super.setValue(Array.from(new Set(e)).sort((t,s)=>t-s))}}class tt extends m{base64UrlEncoder=d.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return C}initializeFields(){let e=new Date,t=new M;return t.put(N.VERSION.toString(),new a(6,oe.VERSION)),t.put(N.CREATED.toString(),new $(e)),t.put(N.LAST_UPDATED.toString(),new $(e)),t.put(N.CMP_ID.toString(),new a(12,0)),t.put(N.CMP_VERSION.toString(),new a(12,0)),t.put(N.CONSENT_SCREEN.toString(),new a(6,0)),t.put(N.CONSENT_LANGUAGE.toString(),new $e(2,"EN")),t.put(N.VENDOR_LIST_VERSION.toString(),new a(12,0)),t.put(N.POLICY_VERSION.toString(),new a(6,2)),t.put(N.IS_SERVICE_SPECIFIC.toString(),new p(!1)),t.put(N.USE_NON_STANDARD_STACKS.toString(),new p(!1)),t.put(N.SPECIAL_FEATURE_OPTINS.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(N.PURPOSE_CONSENTS.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(N.PURPOSE_LEGITIMATE_INTERESTS.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(N.PURPOSE_ONE_TREATMENT.toString(),new p(!1)),t.put(N.PUBLISHER_COUNTRY_CODE.toString(),new $e(2,"AA")),t.put(N.VENDOR_CONSENTS.toString(),new ye([])),t.put(N.VENDOR_LEGITIMATE_INTERESTS.toString(),new ye([])),t.put(N.PUBLISHER_RESTRICTIONS.toString(),new w(6,2,[],!1)),t}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode TcfEuV2CoreSegment '"+e+"'")}}}class Ke extends te{getLength;constructor(e,t,s=!0){super(s),this.getLength=e,this.setValue(t)}encode(){try{return W.encode(this.value,this.getLength())}catch(e){throw new q(e)}}decode(e){try{this.value=W.decode(e)}catch(t){throw new _(t)}}substring(e,t){try{return Z.substring(e,t,t+this.getLength())}catch(s){throw new se(s)}}getValue(){return[...super.getValue()]}setValue(e){let t=this.getLength(),s=[...e];for(let n=s.length;n<t;n++)s.push(!1);s.length>t&&(s=s.slice(0,t)),super.setValue([...s])}}class st extends m{base64UrlEncoder=d.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return r}initializeFields(){let e=new M;e.put(N.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new a(3,3)),e.put(N.PUBLISHER_CONSENTS.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(N.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let t=new a(6,0);return e.put(N.NUM_CUSTOM_PURPOSES.toString(),t),e.put(N.PUBLISHER_CUSTOM_CONSENTS.toString(),new Ke(()=>t.getValue(),[])),e.put(N.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new Ke(()=>t.getValue(),[])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode TcfEuV2PublisherPurposesSegment '"+e+"'")}}}class nt extends m{base64UrlEncoder=d.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return l}initializeFields(){let e=new M;return e.put(N.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new a(3,2)),e.put(N.VENDORS_ALLOWED.toString(),new ye([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode TcfEuV2VendorsAllowedSegment '"+e+"'")}}}class it extends m{base64UrlEncoder=d.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return E}initializeFields(){let e=new M;return e.put(N.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new a(3,1)),e.put(N.VENDORS_DISCLOSED.toString(),new ye([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode TcfEuV2VendorsDisclosedSegment '"+e+"'")}}}let oe=(()=>{class i extends J{static ID=2;static VERSION=2;static NAME="tcfeuv2";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new tt),t.push(new st),t.push(new nt),t.push(new it),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");for(let o=0;o<n.length;o++){let c=n[o];if(0!==c.length){let S=c.charAt(0);if(S>="A"&&S<="H")s[0].decode(n[o]);else if(S>="I"&&S<="P")s[3].decode(n[o]);else if(S>="Q"&&S<="X")s[2].decode(n[o]);else{if(!(S>="Y"&&S<="Z"||S>="a"&&S<="f"))throw new _("Unable to decode TcfEuV2 segment '"+c+"'");s[1].decode(n[o])}}}}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),this.getFieldValue(N.IS_SERVICE_SPECIFIC)?t.length>=2&&s.push(t[1].encode()):t.length>=2&&(s.push(t[2].encode()),t.length>=3&&s.push(t[3].encode()))),s.join(".")}setFieldValue(t,s){if(super.setFieldValue(t,s),t!==N.CREATED&&t!==N.LAST_UPDATED){let n=new Date;super.setFieldValue(N.CREATED,n),super.setFieldValue(N.LAST_UPDATED,n)}}}return i})();var A=(()=>{return(i=A||(A={})).VERSION="Version",i.CREATED="Created",i.LAST_UPDATED="LastUpdated",i.CMP_ID="CmpId",i.CMP_VERSION="CmpVersion",i.CONSENT_SCREEN="ConsentScreen",i.CONSENT_LANGUAGE="ConsentLanguage",i.VENDOR_LIST_VERSION="VendorListVersion",i.TCF_POLICY_VERSION="TcfPolicyVersion",i.USE_NON_STANDARD_STACKS="UseNonStandardStacks",i.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",i.PUB_PURPOSES_SEGMENT_TYPE="PubPurposesSegmentType",i.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",i.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",i.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",i.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",i.PUB_RESTRICTIONS="PubRestrictions",i.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",i.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",i.NUM_CUSTOM_PURPOSES="NumCustomPurposes",i.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",i.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent",i.DISCLOSED_VENDORS_SEGMENT_TYPE="DisclosedVendorsSegmentType",i.DISCLOSED_VENDORS="DisclosedVendors",A;var i})();const rt=[A.VERSION,A.CREATED,A.LAST_UPDATED,A.CMP_ID,A.CMP_VERSION,A.CONSENT_SCREEN,A.CONSENT_LANGUAGE,A.VENDOR_LIST_VERSION,A.TCF_POLICY_VERSION,A.USE_NON_STANDARD_STACKS,A.SPECIAL_FEATURE_EXPRESS_CONSENT,A.PURPOSES_EXPRESS_CONSENT,A.PURPOSES_IMPLIED_CONSENT,A.VENDOR_EXPRESS_CONSENT,A.VENDOR_IMPLIED_CONSENT,A.PUB_RESTRICTIONS],ot=[A.PUB_PURPOSES_SEGMENT_TYPE,A.PUB_PURPOSES_EXPRESS_CONSENT,A.PUB_PURPOSES_IMPLIED_CONSENT,A.NUM_CUSTOM_PURPOSES,A.CUSTOM_PURPOSES_EXPRESS_CONSENT,A.CUSTOM_PURPOSES_IMPLIED_CONSENT],lt=[A.DISCLOSED_VENDORS_SEGMENT_TYPE,A.DISCLOSED_VENDORS];class at extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return rt}initializeFields(){let e=new Date,t=new M;return t.put(A.VERSION.toString(),new a(6,Ee.VERSION)),t.put(A.CREATED.toString(),new $(e)),t.put(A.LAST_UPDATED.toString(),new $(e)),t.put(A.CMP_ID.toString(),new a(12,0)),t.put(A.CMP_VERSION.toString(),new a(12,0)),t.put(A.CONSENT_SCREEN.toString(),new a(6,
10)),t.put(A.CONSENT_LANGUAGE.toString(),new $e(2,"EN")),t.put(A.VENDOR_LIST_VERSION.toString(),new a(12,0)),t.put(A.TCF_POLICY_VERSION.toString(),new a(6,2)),t.put(A.USE_NON_STANDARD_STACKS.toString(),new p(!1)),t.put(A.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(A.PURPOSES_EXPRESS_CONSENT.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(A.PURPOSES_IMPLIED_CONSENT.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(A.VENDOR_EXPRESS_CONSENT.toString(),new ye([])),t.put(A.VENDOR_IMPLIED_CONSENT.toString(),new ye([])),t.put(A.PUB_RESTRICTIONS.toString(),new w(6,2,[],!1)),t}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode TcfCaV1CoreSegment '"+e+"'")}}}class ct extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return ot}initializeFields(){let e=new M;e.put(A.PUB_PURPOSES_SEGMENT_TYPE.toString(),new a(3,3)),e.put(A.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(A.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new ne([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let t=new a(6,0);return e.put(A.NUM_CUSTOM_PURPOSES.toString(),t),e.put(A.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new Ke(()=>t.getValue(),[])),e.put(A.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new Ke(()=>t.getValue(),[])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode TcfCaV1PublisherPurposesSegment '"+e+"'")}}}class Et extends m{base64UrlEncoder=d.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return lt}initializeFields(){let e=new M;return e.put(A.DISCLOSED_VENDORS_SEGMENT_TYPE.toString(),new a(3,1)),e.put(A.DISCLOSED_VENDORS.toString(),new ye([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode HeaderV1CoreSegment '"+e+"'")}}}let Ee=(()=>{class i extends J{static ID=5;static VERSION=1;static NAME="tcfcav1";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new at),t.push(new ct),t.push(new Et),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");for(let o=0;o<n.length;o++){let c=n[o];if(0!==c.length){let S=c.charAt(0);if(S>="A"&&S<="H")s[0].decode(n[o]);else if(S>="I"&&S<="P")s[2].decode(n[o]);else{if(!(S>="Y"&&S<="Z"||S>="a"&&S<="f"))throw new _("Unable to decode TcfCaV1 segment '"+c+"'");s[1].decode(n[o])}}}}return s}encodeSection(t){let s=[];return s.push(t[0].encode()),s.push(t[1].encode()),this.getFieldValue(A.DISCLOSED_VENDORS).length>0&&s.push(t[2].encode()),s.join(".")}setFieldValue(t,s){if(super.setFieldValue(t,s),t!==A.CREATED&&t!==A.LAST_UPDATED){let n=new Date;super.setFieldValue(A.CREATED,n),super.setFieldValue(A.LAST_UPDATED,n)}}}return i})();class Qe{validator;value=null;constructor(e,t){this.validator=t||new class{test(s){return!0}},this.setValue(e)}hasValue(){return null!=this.value}getValue(){return this.value}setValue(e){e?this.value=e.charAt(0):e=null}}class dt{validator;value=null;constructor(e,t){this.validator=t||new class{test(s){return!0}},this.setValue(e)}hasValue(){return null!=this.value}getValue(){return this.value}setValue(e){this.value=e}}class St{fields=new Map;containsKey(e){return this.fields.has(e)}put(e,t){this.fields.set(e,t)}get(e){return this.fields.get(e)}getAll(){return new Map(this.fields)}
1reset(e){this.fields.clear(),e.getAll().forEach((t,s)=>{this.fields.set(s,t)})}}var ee=(()=>{return(i=ee||(ee={})).VERSION="Version",i.NOTICE="Notice",i.OPT_OUT_SALE="OptOutSale",i.LSPA_COVERED="LspaCovered",ee;var i})();const ut=[ee.VERSION,ee.NOTICE,ee.OPT_OUT_SALE,ee.LSPA_COVERED];class ht extends m{constructor(e){super(),e&&this.decode(e)}getFieldNames(){return ut}initializeFields(){const e=new class{test(s){return"-"===s||"Y"===s||"N"===s}};let t=new St;return t.put(ee.VERSION,new dt(de.VERSION)),t.put(ee.NOTICE,new Qe("-",e)),t.put(ee.OPT_OUT_SALE,new Qe("-",e)),t.put(ee.LSPA_COVERED,new Qe("-",e)),t}encodeSegment(e){let t="";return t+=e.get(ee.VERSION).getValue(),t+=e.get(ee.NOTICE).getValue(),t+=e.get(ee.OPT_OUT_SALE).getValue(),t+=e.get(ee.LSPA_COVERED).getValue(),t}decodeSegment(e,t){if(null==e||4!=e.length)throw new _("Unable to decode UspV1CoreSegment '"+e+"'");try{t.get(ee.VERSION).setValue(parseInt(e.substring(0,1))),t.get(ee.NOTICE).setValue(e.charAt(1)),t.get(ee.OPT_OUT_SALE).setValue(e.charAt(2)),t.get(ee.LSPA_COVERED).setValue(e.charAt(3))}catch{throw new _("Unable to decode UspV1CoreSegment '"+e+"'")}}}let de=(()=>{class i extends J{static ID=6;static VERSION=1;static NAME="uspv1";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new ht),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");for(let o=0;o<s.length;o++)n.length>o&&s[o].decode(n[o])}return s}encodeSection(t){let s=[];for(let n=0;n<t.length;n++)s.push(t[n].encode());return s.join(".")}}return i})();var V=(()=>{return(i=V||(V={})).VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",i.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",i.SALE_OPT_OUT="SaleOptOut",i.SHARING_OPT_OUT="SharingOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.PERSONAL_DATA_CONSENTS="PersonalDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",V;var i})();const _t=[V.VERSION,V.SHARING_NOTICE,V.SALE_OPT_OUT_NOTICE,V.SHARING_OPT_OUT_NOTICE,V.TARGETED_ADVERTISING_OPT_OUT_NOTICE,V.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,V.SENSITIVE_DATA_LIMIT_USE_NOTICE,V.SALE_OPT_OUT,V.SHARING_OPT_OUT,V.TARGETED_ADVERTISING_OPT_OUT,V.SENSITIVE_DATA_PROCESSING,V.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,V.PERSONAL_DATA_CONSENTS,V.MSPA_COVERED_TRANSACTION,V.MSPA_OPT_OUT_OPTION_MODE,V.MSPA_SERVICE_PROVIDER_MODE],gt=[V.GPC_SEGMENT_TYPE,V.GPC];class Ze{static encode(e,t,s){if(e.length>s)throw new q("Too many values '"+e.length+"'");let n="";for(let o=0;o<e.length;o++)n+=f.encode(e[o],t);for(;n.length<t*s;)n+="0";return n}static decode(e,t,s){if(!/^[0-1]*$/.test(e))throw new _("Undecodable FixedInteger '"+e+"'");if(e.length>t*s)throw new _("Undecodable FixedIntegerList '"+e+"'");if(e.length%t!=0)throw new _("Undecodable FixedIntegerList '"+e+"'");for(;e.length<t*s;)e+="0";e.length>t*s&&(e=e.substring(0,t*s));let n=[];for(let o=0;o<e.length;o+=t)n.push(f.decode(e.substring(o,o+t)));for(;n.length<s;)n.push(0);return n}}class Q extends te{elementBitStringLength;numElements;constructor(e,t,s=!0){super(s),this.elementBitStringLength=e,this.numElements=t.length,this.setValue(t)}encode(){try{return Ze.encode(this.value,this.elementBitStringLength,this.numElements)}catch(e){throw new q(e)}}decode(e){try{this.value=Ze.decode(e,this.elementBitStringLength,this.numElements)}catch(t){throw new _(t)}}substring(e,t){try{return Z.substring(e,t,t+this.elementBitStringLength*this.numElements)}catch(s){throw new se(s)}}getValue(){return[...super.getValue()]}setValue(e){let t=[...e];for(let s=t.length;s<this.numElements;s++)t.push(0);t.length>this.numElements&&(t=t.slice(0,this.numElements)),super.setValue(t)}}class Tt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return _t}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(V.VERSION.toString(),new a(6,Se.VERSION)),n.put(V.SHARING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(V.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(V.SHARING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(V.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(V.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(V.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(V.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(V.SHARING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(V.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(V.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]).withValidator(s)),n.put(V.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0]).withValidator(s)),n.put(V.PERSONAL_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(V.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(V.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(V.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNatCoreSegment '"+e+"'")}}}class It extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return gt}initializeFields(){let e=new M;return e.put(V.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(V.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(V.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNatGpcSegment '"+e+"'")}}}let Se=(()=>{class i extends J{static ID=7;static VERSION=1;static NAME="usnat";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new Tt),t.push(new It),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(V.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(V.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(V.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var b=(()=>{return(i=b||(b={})).VERSION="Version",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",i.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",i.SALE_OPT_OUT="SaleOptOut",i.SHARING_OPT_OUT="SharingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.PERSONAL_DATA_CONSENTS="PersonalDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",b;var i})();const Ot=[b.VERSION,b.SALE_OPT_OUT_NOTICE,b.SHARING_OPT_OUT_NOTICE,b.SENSITIVE_DATA_LIMIT_USE_NOTICE,b.SALE_OPT_OUT,b.SHARING_OPT_OUT,b.SENSITIVE_DATA_PROCESSING,b.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,b.PERSONAL_DATA_CONSENTS,b.MSPA_COVERED_TRANSACTION,b.MSPA_OPT_OUT_OPTION_MODE,b.MSPA_SERVICE_PROVIDER_MODE],Nt=[b.GPC_SEGMENT_TYPE,b.GPC];class pt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Ot}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(b.VERSION.toString(),new a(6,ue.VERSION)),n.put(b.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(b.SHARING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(b.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(b.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(b.SHARING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(b.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0,0]).withValidator(s)),n.put(b.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0]).withValidator(s)),n.put(b.PERSONAL_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(b.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(b.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(b.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);
1this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsCaCoreSegment '"+e+"'")}}}class At extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Nt}initializeFields(){let e=new M;return e.put(b.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(b.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(b.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsCaGpcSegment '"+e+"'")}}}let ue=(()=>{class i extends J{static ID=8;static VERSION=1;static NAME="usca";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new pt),t.push(new At),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(b.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(b.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(b.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var X=(()=>{return(i=X||(X={})).VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",X;var i})();const Ct=[X.VERSION,X.SHARING_NOTICE,X.SALE_OPT_OUT_NOTICE,X.TARGETED_ADVERTISING_OPT_OUT_NOTICE,X.SALE_OPT_OUT,X.TARGETED_ADVERTISING_OPT_OUT,X.SENSITIVE_DATA_PROCESSING,X.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,X.MSPA_COVERED_TRANSACTION,X.MSPA_OPT_OUT_OPTION_MODE,X.MSPA_SERVICE_PROVIDER_MODE];class ft extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Ct}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(X.VERSION.toString(),new a(6,he.VERSION)),n.put(X.SHARING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(X.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(X.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(X.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(X.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(X.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(X.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(X.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(X.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(X.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsVaCoreSegment '"+e+"'")}}}let he=(()=>{class i extends J{static ID=9;static VERSION=1;static NAME="usva";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new ft),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");for(let o=0;o<s.length;o++)n.length>o&&s[o].decode(n[o])}return s}encodeSection(t){let s=[];for(let n=0;n<t.length;n++)s.push(t[n].encode());return s.join(".")}}return i})();var K=(()=>{return(i=K||(K={})).VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",K;var i})();const Pt=[K.VERSION,K.SHARING_NOTICE,K.SALE_OPT_OUT_NOTICE,K.TARGETED_ADVERTISING_OPT_OUT_NOTICE,K.SALE_OPT_OUT,K.TARGETED_ADVERTISING_OPT_OUT,K.SENSITIVE_DATA_PROCESSING,K.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,K.MSPA_COVERED_TRANSACTION,K.MSPA_OPT_OUT_OPTION_MODE,K.MSPA_SERVICE_PROVIDER_MODE],Dt=[K.GPC_SEGMENT_TYPE,K.GPC];class wt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Pt}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(K.VERSION.toString(),new a(6,_e.VERSION)),n.put(K.SHARING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(K.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(K.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(K.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(K.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(K.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0]).withValidator(s)),n.put(K.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(K.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(K.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(K.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsCoCoreSegment '"+e+"'")}}}class Vt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Dt}initializeFields(){let e=new M;return e.put(K.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(K.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(K.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsCoGpcSegment '"+e+"'")}}}let _e=(()=>{class i extends J{static ID=10;static VERSION=1;static NAME="usco";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new wt),t.push(new Vt),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(K.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(K.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(K.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var j=(()=>{return(i=j||(j={})).VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",j;var i})();const Rt=[j.VERSION,j.SHARING_NOTICE,j.SALE_OPT_OUT_NOTICE,j.TARGETED_ADVERTISING_OPT_OUT_NOTICE,j.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,j.SALE_OPT_OUT,j.TARGETED_ADVERTISING_OPT_OUT,j.SENSITIVE_DATA_PROCESSING,j.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,j.MSPA_COVERED_TRANSACTION,j.MSPA_OPT_OUT_OPTION_MODE,j.MSPA_SERVICE_PROVIDER_MODE];class Mt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Rt}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(j.VERSION.toString(),new a(6,ge.VERSION)),n.put(j.SHARING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(j.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(j.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(j.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(j.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(j.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(j.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(j.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(j.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(j.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(j.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);
1this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsUtCoreSegment '"+e+"'")}}}let ge=(()=>{class i extends J{static ID=11;static VERSION=1;static NAME="usut";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new Mt),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");for(let o=0;o<s.length;o++)n.length>o&&s[o].decode(n[o])}return s}encodeSection(t){let s=[];for(let n=0;n<t.length;n++)s.push(t[n].encode());return s.join(".")}}return i})();var Y=(()=>{return(i=Y||(Y={})).VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",Y;var i})();const mt=[Y.VERSION,Y.SHARING_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.MSPA_COVERED_TRANSACTION,Y.MSPA_OPT_OUT_OPTION_MODE,Y.MSPA_SERVICE_PROVIDER_MODE],Gt=[Y.GPC_SEGMENT_TYPE,Y.GPC];class bt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return mt}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(Y.VERSION.toString(),new a(6,Te.VERSION)),n.put(Y.SHARING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(Y.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(Y.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(Y.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(Y.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(Y.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(Y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0]).withValidator(s)),n.put(Y.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(Y.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(Y.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsCtCoreSegment '"+e+"'")}}}class Lt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Gt}initializeFields(){let e=new M;return e.put(Y.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(Y.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(Y.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsCtGpcSegment '"+e+"'")}}}let Te=(()=>{class i extends J{static ID=12;static VERSION=1;static NAME="usct";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new bt),t.push(new Lt),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(Y.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(Y.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(Y.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var k=(()=>{return(i=k||(k={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",k;var i})();const Ut=[k.VERSION,k.PROCESSING_NOTICE,k.SALE_OPT_OUT_NOTICE,k.TARGETED_ADVERTISING_OPT_OUT_NOTICE,k.SALE_OPT_OUT,k.TARGETED_ADVERTISING_OPT_OUT,k.SENSITIVE_DATA_PROCESSING,k.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,k.ADDITIONAL_DATA_PROCESSING_CONSENT,k.MSPA_COVERED_TRANSACTION,k.MSPA_OPT_OUT_OPTION_MODE,k.MSPA_SERVICE_PROVIDER_MODE];class vt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Ut}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(k.VERSION.toString(),new a(6,Ie.VERSION)),n.put(k.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(k.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(k.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(k.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(k.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(k.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(k.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0]).withValidator(s)),n.put(k.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(k.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(k.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(k.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsFlCoreSegment '"+e+"'")}}}let Ie=(()=>{class i extends J{static ID=13;static VERSION=1;static NAME="usfl";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new vt),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");for(let o=0;o<s.length;o++)n.length>o&&s[o].decode(n[o])}return s}encodeSection(t){let s=[];for(let n=0;n<t.length;n++)s.push(t[n].encode());return s.join(".")}}return i})();var L=(()=>{return(i=L||(L={})).VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",L;var i})();const yt=[L.VERSION,L.SHARING_NOTICE,L.SALE_OPT_OUT_NOTICE,L.TARGETED_ADVERTISING_OPT_OUT_NOTICE,L.SALE_OPT_OUT,L.TARGETED_ADVERTISING_OPT_OUT,L.SENSITIVE_DATA_PROCESSING,L.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,L.ADDITIONAL_DATA_PROCESSING_CONSENT,L.MSPA_COVERED_TRANSACTION,L.MSPA_OPT_OUT_OPTION_MODE,L.MSPA_SERVICE_PROVIDER_MODE],Ft=[L.GPC_SEGMENT_TYPE,L.GPC];class xt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return yt}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(L.VERSION.toString(),new a(6,Oe.VERSION)),n.put(L.SHARING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(L.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(L.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(L.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(L.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(L.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(L.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0]).withValidator(s)),n.put(L.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(L.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(L.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(L.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsMtCoreSegment '"+e+"'")}}}class Bt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Ft}initializeFields(){let e=new M;return e.put(L.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(L.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(L.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);
1this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsMtGpcSegment '"+e+"'")}}}let Oe=(()=>{class i extends J{static ID=14;static VERSION=1;static NAME="usmt";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new xt),t.push(new Bt),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(L.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(L.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(L.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var U=(()=>{return(i=U||(U={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",U;var i})();const Ht=[U.VERSION,U.PROCESSING_NOTICE,U.SALE_OPT_OUT_NOTICE,U.TARGETED_ADVERTISING_OPT_OUT_NOTICE,U.SALE_OPT_OUT,U.TARGETED_ADVERTISING_OPT_OUT,U.SENSITIVE_DATA_PROCESSING,U.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,U.ADDITIONAL_DATA_PROCESSING_CONSENT,U.MSPA_COVERED_TRANSACTION,U.MSPA_OPT_OUT_OPTION_MODE,U.MSPA_SERVICE_PROVIDER_MODE],zt=[U.GPC_SEGMENT_TYPE,U.GPC];class Kt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Ht}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(U.VERSION.toString(),new a(6,Ne.VERSION)),n.put(U.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(U.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(U.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(U.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(U.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(U.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0,0,0,0]).withValidator(s)),n.put(U.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0]).withValidator(s)),n.put(U.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(U.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(U.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(U.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsOrCoreSegment '"+e+"'")}}}class Yt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return zt}initializeFields(){let e=new M;return e.put(U.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(U.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(U.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);
1this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsOrGpcSegment '"+e+"'")}}}let Ne=(()=>{class i extends J{static ID=15;static VERSION=1;static NAME="usor";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new Kt),t.push(new Yt),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(U.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(U.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(U.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var v=(()=>{return(i=v||(v={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",v;var i})();const Wt=[v.VERSION,v.PROCESSING_NOTICE,v.SALE_OPT_OUT_NOTICE,v.TARGETED_ADVERTISING_OPT_OUT_NOTICE,v.SALE_OPT_OUT,v.TARGETED_ADVERTISING_OPT_OUT,v.SENSITIVE_DATA_PROCESSING,v.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,v.ADDITIONAL_DATA_PROCESSING_CONSENT,v.MSPA_COVERED_TRANSACTION,v.MSPA_OPT_OUT_OPTION_MODE,v.MSPA_SERVICE_PROVIDER_MODE],jt=[v.GPC_SEGMENT_TYPE,v.GPC];class kt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Wt}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(v.VERSION.toString(),new a(6,pe.VERSION)),n.put(v.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(v.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(v.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(v.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(v.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(v.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(v.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(v.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(v.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(v.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(v.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsTxCoreSegment '"+e+"'")}}}class $t extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return jt}initializeFields(){let e=new M;return e.put(v.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(v.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(v.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsTxGpcSegment '"+e+"'")}}}let pe=(()=>{class i extends J{static ID=16;static VERSION=1;static NAME="ustx";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new kt),t.push(new $t),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(v.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(v.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(v.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var y=(()=>{return(i=y||(y={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",y;var i})();const Qt=[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],Xt=[y.GPC_SEGMENT_TYPE,y.GPC];class Jt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Qt}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(y.VERSION.toString(),new a(6,Ae.VERSION)),n.put(y.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(y.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(y.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(y.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(y.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(y.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0,0]).withValidator(s)),n.put(y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0,0,0]).withValidator(s)),n.put(y.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(y.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(y.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(y.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsDeCoreSegment '"+e+"'")}}}class Zt extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Xt}initializeFields(){let e=new M;return e.put(y.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(y.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(y.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsDeGpcSegment '"+e+"'")}}}let Ae=(()=>{class i extends J{static ID=17;static VERSION=1;static NAME="usde";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new Jt),t.push(new Zt),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(y.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(y.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(y.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var F=(()=>{return(i=F||(F={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SENSITIVE_DATA_OPT_OUT_NOTICE="SensitiveDataOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",F;var i})();const qt=[F.VERSION,F.PROCESSING_NOTICE,F.SALE_OPT_OUT_NOTICE,F.TARGETED_ADVERTISING_OPT_OUT_NOTICE,F.SENSITIVE_DATA_OPT_OUT_NOTICE,F.SALE_OPT_OUT,F.TARGETED_ADVERTISING_OPT_OUT,F.SENSITIVE_DATA_PROCESSING,F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,F.MSPA_COVERED_TRANSACTION,F.MSPA_OPT_OUT_OPTION_MODE,F.MSPA_SERVICE_PROVIDER_MODE],es=[F.GPC_SEGMENT_TYPE,F.GPC];class ts extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return qt}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(F.VERSION.toString(),new a(6,Ce.VERSION)),n.put(F.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(F.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(F.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(F.SENSITIVE_DATA_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(F.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(F.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(F.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(F.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(F.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(F.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);
1this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsIaCoreSegment '"+e+"'")}}}class ss extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return es}initializeFields(){let e=new M;return e.put(F.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(F.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(F.GPC.toString(),new p(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsIaGpcSegment '"+e+"'")}}}let Ce=(()=>{class i extends J{static ID=18;static VERSION=1;static NAME="usia";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new ts),t.push(new ss),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(F.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(F.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(F.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var x=(()=>{return(i=x||(x={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",x;var i})();const ns=[x.VERSION,x.PROCESSING_NOTICE,x.SALE_OPT_OUT_NOTICE,x.TARGETED_ADVERTISING_OPT_OUT_NOTICE,x.SALE_OPT_OUT,x.TARGETED_ADVERTISING_OPT_OUT,x.SENSITIVE_DATA_PROCESSING,x.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,x.ADDITIONAL_DATA_PROCESSING_CONSENT,x.MSPA_COVERED_TRANSACTION,x.MSPA_OPT_OUT_OPTION_MODE,x.MSPA_SERVICE_PROVIDER_MODE],is=[x.GPC_SEGMENT_TYPE,x.GPC];class rs extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return ns}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(x.VERSION.toString(),new a(6,fe.VERSION)),n.put(x.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(x.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(x.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(x.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(x.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(x.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(x.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(x.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(x.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(x.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(x.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNeCoreSegment '"+e+"'")}}}class os extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return is}initializeFields(){let e=new M;return e.put(x.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(x.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(x.GPC.toString(),new p(!1)),e}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNeGpcSegment '"+e+"'")}}}let fe=(()=>{class i extends J{static ID=19;static VERSION=1;static NAME="usne";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new rs),t.push(new os),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(x.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(x.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(x.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var B=(()=>{return(i=B||(B={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",B;var i})();const ls=[B.VERSION,B.PROCESSING_NOTICE,B.SALE_OPT_OUT_NOTICE,B.TARGETED_ADVERTISING_OPT_OUT_NOTICE,B.SALE_OPT_OUT,B.TARGETED_ADVERTISING_OPT_OUT,B.SENSITIVE_DATA_PROCESSING,B.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,B.ADDITIONAL_DATA_PROCESSING_CONSENT,B.MSPA_COVERED_TRANSACTION,B.MSPA_OPT_OUT_OPTION_MODE,B.MSPA_SERVICE_PROVIDER_MODE],as=[B.GPC_SEGMENT_TYPE,B.GPC];class cs extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return ls}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(B.VERSION.toString(),new a(6,Pe.VERSION)),n.put(B.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(B.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(B.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(B.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(B.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(B.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(B.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0]).withValidator(s)),n.put(B.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(B.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(B.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(B.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNhCoreSegment '"+e+"'")}}}class Es extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return as}initializeFields(){let e=new M;return e.put(B.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(B.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(B.GPC.toString(),new p(!1)),e}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNhGpcSegment '"+e+"'")}}}let Pe=(()=>{class i extends J{static ID=20;static VERSION=1;static NAME="usnh";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new cs),t.push(new Es),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(B.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(B.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(B.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var H=(()=>{return(i=H||(H={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",H;var i})();const ds=[H.VERSION,H.PROCESSING_NOTICE,H.SALE_OPT_OUT_NOTICE,H.TARGETED_ADVERTISING_OPT_OUT_NOTICE,H.SALE_OPT_OUT,H.TARGETED_ADVERTISING_OPT_OUT,H.SENSITIVE_DATA_PROCESSING,H.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,H.ADDITIONAL_DATA_PROCESSING_CONSENT,H.MSPA_COVERED_TRANSACTION,H.MSPA_OPT_OUT_OPTION_MODE,H.MSPA_SERVICE_PROVIDER_MODE],Ss=[H.GPC_SEGMENT_TYPE,H.GPC];class us extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return ds}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(H.VERSION.toString(),new a(6,De.VERSION)),n.put(H.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(H.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(H.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(H.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(H.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(H.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0,0,0]).withValidator(s)),n.put(H.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Q(2,[0,0,0,0,0]).withValidator(s)),n.put(H.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(H.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(H.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(H.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNjCoreSegment '"+e+"'")}}}class hs extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return Ss}initializeFields(){let e=new M;return e.put(H.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(H.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(H.GPC.toString(),new p(!1)),e}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsNjGpcSegment '"+e+"'")}}}let De=(()=>{class i extends J{static ID=21;static VERSION=1;static NAME="usnj";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new us),t.push(new hs),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(H.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(H.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(H.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();var z=(()=>{return(i=z||(z={})).VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc",z;var i})();const _s=[z.VERSION,z.PROCESSING_NOTICE,z.SALE_OPT_OUT_NOTICE,z.TARGETED_ADVERTISING_OPT_OUT_NOTICE,z.SALE_OPT_OUT,z.TARGETED_ADVERTISING_OPT_OUT,z.SENSITIVE_DATA_PROCESSING,z.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,z.ADDITIONAL_DATA_PROCESSING_CONSENT,z.MSPA_COVERED_TRANSACTION,z.MSPA_OPT_OUT_OPTION_MODE,z.MSPA_SERVICE_PROVIDER_MODE],gs=[z.GPC_SEGMENT_TYPE,z.GPC];class Ts extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return _s}initializeFields(){const e=new class{test(o){return o>=0&&o<=2}},t=new class{test(o){return o>=1&&o<=2}},s=new class{test(o){for(let c=0;c<o.length;c++){let S=o[c];if(S<0||S>2)return!1}return!0}};let n=new M;return n.put(z.VERSION.toString(),new a(6,we.VERSION)),n.put(z.PROCESSING_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(z.SALE_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(z.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new a(2,0).withValidator(e)),n.put(z.SALE_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(z.TARGETED_ADVERTISING_OPT_OUT.toString(),new a(2,0).withValidator(e)),n.put(z.SENSITIVE_DATA_PROCESSING.toString(),new Q(2,[0,0,0,0,0,0,0,0]).withValidator(s)),n.put(z.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new a(2,0).withValidator(e)),n.put(z.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new a(2,0).withValidator(e)),n.put(z.MSPA_COVERED_TRANSACTION.toString(),new a(2,1).withValidator(t)),n.put(z.MSPA_OPT_OUT_OPTION_MODE.toString(),new a(2,0).withValidator(e)),n.put(z.MSPA_SERVICE_PROVIDER_MODE.toString(),new a(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsTnCoreSegment '"+e+"'")}}}class Is extends m{base64UrlEncoder=T.getInstance();bitStringEncoder=R.getInstance();constructor(e){super(),e&&this.decode(e)}getFieldNames(){return gs}initializeFields(){let e=new M;return e.put(z.GPC_SEGMENT_TYPE.toString(),new a(2,1)),e.put(z.GPC_SEGMENT_INCLUDED.toString(),new p(!0)),e.put(z.GPC.toString(),new p(!1)),e}
1encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(null==e||0===e.length)&&this.fields.reset(t);try{let s=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(s,this.getFieldNames(),t)}catch{throw new _("Unable to decode UsTnGpcSegment '"+e+"'")}}}let we=(()=>{class i extends J{static ID=22;static VERSION=1;static NAME="ustn";constructor(t){super(),t&&t.length>0&&this.decode(t)}getId(){return i.ID}getName(){return i.NAME}getVersion(){return i.VERSION}initializeSegments(){let t=[];return t.push(new Ts),t.push(new Is),t}decodeSection(t){let s=this.initializeSegments();if(null!=t&&0!==t.length){let n=t.split(".");n.length>0&&s[0].decode(n[0]),n.length>1?(s[1].setFieldValue(z.GPC_SEGMENT_INCLUDED,!0),s[1].decode(n[1])):s[1].setFieldValue(z.GPC_SEGMENT_INCLUDED,!1)}return s}encodeSection(t){let s=[];return t.length>=1&&(s.push(t[0].encode()),t.length>=2&&!0===t[1].getFieldValue(z.GPC_SEGMENT_INCLUDED)&&s.push(t[1].encode())),s.join(".")}}return i})();class Ve{static SECTION_ID_NAME_MAP=new Map([[oe.ID,oe.NAME],[Ee.ID,Ee.NAME],[de.ID,de.NAME],[Se.ID,Se.NAME],[ue.ID,ue.NAME],[he.ID,he.NAME],[_e.ID,_e.NAME],[ge.ID,ge.NAME],[Te.ID,Te.NAME],[Ie.ID,Ie.NAME],[Oe.ID,Oe.NAME],[Ne.ID,Ne.NAME],[pe.ID,pe.NAME],[Ae.ID,Ae.NAME],[Ce.ID,Ce.NAME],[fe.ID,fe.NAME],[Pe.ID,Pe.NAME],[De.ID,De.NAME],[we.ID,we.NAME]]);static SECTION_ORDER=[oe.NAME,Ee.NAME,de.NAME,Se.NAME,ue.NAME,he.NAME,_e.NAME,ge.NAME,Te.NAME,Ie.NAME,Oe.NAME,Ne.NAME,pe.NAME,Ae.NAME,Ce.NAME,fe.NAME,Pe.NAME,De.NAME,we.NAME]}class Os{sections=new Map;encodedString=null;decoded=!0;dirty=!1;constructor(e){e&&this.decode(e)}setFieldValue(e,t,s){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let n=null;if(this.sections.has(e)?n=this.sections.get(e):e===Ee.NAME?(n=new Ee,this.sections.set(Ee.NAME,n)):e===oe.NAME?(n=new oe,this.sections.set(oe.NAME,n)):e===de.NAME?(n=new de,this.sections.set(de.NAME,n)):e===Se.NAME?(n=new Se,this.sections.set(Se.NAME,n)):e===ue.NAME?(n=new ue,this.sections.set(ue.NAME,n)):e===he.NAME?(n=new he,this.sections.set(he.NAME,n)):e===_e.NAME?(n=new _e,this.sections.set(_e.NAME,n)):e===ge.NAME?(n=new ge,this.sections.set(ge.NAME,n)):e===Te.NAME?(n=new Te,this.sections.set(Te.NAME,n)):e===Ie.NAME?(n=new Ie,this.sections.set(Ie.NAME,n)):e===Oe.NAME?(n=new Oe,this.sections.set(Oe.NAME,n)):e===Ne.NAME?(n=new Ne,this.sections.set(Ne.NAME,n)):e===pe.NAME?(n=new pe,this.sections.set(pe.NAME,n)):e===Ae.NAME?(n=new Ae,this.sections.set(Ae.NAME,n)):e===Ce.NAME?(n=new Ce,this.sections.set(Ce.NAME,n)):e===fe.NAME?(n=new fe,this.sections.set(fe.NAME,n)):e===Pe.NAME?(n=new Pe,this.sections.set(Pe.NAME,n)):e===De.NAME?(n=new De,this.sections.set(De.NAME,n)):e===we.NAME&&(n=new we,this.sections.set(we.NAME,n)),!n)throw new Le(e+"."+t+" not found");n.setFieldValue(t,s),this.dirty=!0}setFieldValueBySectionId(e,t,s){this.setFieldValue(Ve.SECTION_ID_NAME_MAP.get(e),t,s)}getFieldValue(e,t){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(e)?this.sections.get(e).getFieldValue(t):null}getFieldValueBySectionId(e,t){return this.getFieldValue(Ve.SECTION_ID_NAME_MAP.get(e),t)}hasField(e,t){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),!!this.sections.has(e)&&this.sections.get(e).hasField(t)}hasFieldBySectionId(e,t){return this.hasField(Ve.SECTION_ID_NAME_MAP.get(e),t)}hasSection(e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(e)}hasSectionId(e){return this.hasSection(Ve.SECTION_ID_NAME_MAP.get(e))}deleteSection(e){!this.decoded&&null!=this.encodedString&&this.encodedString.length>0&&this.decode(this.encodedString),this.sections.delete(e),this.dirty=!0}deleteSectionById(e){this.deleteSection(Ve.SECTION_ID_NAME_MAP.get(e))}clear(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}getHeader(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let e=new Ue;
1return e.setFieldValue("SectionIds",this.getSectionIds()),e.toObj()}getSection(e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(e)?this.sections.get(e).toObj():null}getSectionIds(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let e=[];for(let t=0;t<Ve.SECTION_ORDER.length;t++){let s=Ve.SECTION_ORDER[t];if(this.sections.has(s)){let n=this.sections.get(s);e.push(n.getId())}}return e}encodeModel(e){let t=[],s=[];for(let o=0;o<Ve.SECTION_ORDER.length;o++){let c=Ve.SECTION_ORDER[o];if(e.has(c)){let S=e.get(c);t.push(S.encode()),s.push(S.getId())}}let n=new Ue;return n.setFieldValue("SectionIds",s),t.unshift(n.encode()),t.join("~")}decodeModel(e){if(!e||0==e.length||e.startsWith("DB")){let t=e.split("~"),s=new Map;if(t[0].startsWith("D")){let o=new Ue(t[0]).getFieldValue("SectionIds");if(o.length!==t.length-1)throw new _("Unable to decode '"+e+"'. The number of sections does not match the number of sections defined in the header.");for(let c=0;c<o.length;c++){if(""===t[c+1].trim())throw new _("Unable to decode '"+e+"'. Section "+(c+1)+" is blank.");if(o[c]===Ee.ID){let g=new Ee(t[c+1]);s.set(Ee.NAME,g)}else if(o[c]===oe.ID){let g=new oe(t[c+1]);s.set(oe.NAME,g)}else if(o[c]===de.ID){let g=new de(t[c+1]);s.set(de.NAME,g)}else if(o[c]===Se.ID){let g=new Se(t[c+1]);s.set(Se.NAME,g)}else if(o[c]===ue.ID){let g=new ue(t[c+1]);s.set(ue.NAME,g)}else if(o[c]===he.ID){let g=new he(t[c+1]);s.set(he.NAME,g)}else if(o[c]===_e.ID){let g=new _e(t[c+1]);s.set(_e.NAME,g)}else if(o[c]===ge.ID){let g=new ge(t[c+1]);s.set(ge.NAME,g)}else if(o[c]===Te.ID){let g=new Te(t[c+1]);s.set(Te.NAME,g)}else if(o[c]===Ie.ID){let g=new Ie(t[c+1]);s.set(Ie.NAME,g)}else if(o[c]===Oe.ID){let g=new Oe(t[c+1]);s.set(Oe.NAME,g)}else if(o[c]===Ne.ID){let g=new Ne(t[c+1]);s.set(Ne.NAME,g)}else if(o[c]===pe.ID){let g=new pe(t[c+1]);s.set(pe.NAME,g)}else if(o[c]===Ae.ID){let g=new Ae(t[c+1]);s.set(Ae.NAME,g)}else if(o[c]===Ce.ID){let g=new Ce(t[c+1]);s.set(Ce.NAME,g)}else if(o[c]===fe.ID){let g=new fe(t[c+1]);s.set(fe.NAME,g)}else if(o[c]===Pe.ID){let g=new Pe(t[c+1]);s.set(Pe.NAME,g)}else if(o[c]===De.ID){let g=new De(t[c+1]);s.set(De.NAME,g)}else if(o[c]===we.ID){let g=new we(t[c+1]);s.set(we.NAME,g)}}}return s}if(e.startsWith("C")){let t=new Map,s=new oe(e);return t.set(oe.NAME,s),(new Ue).setFieldValue(Ge.SECTION_IDS,[2]),t.set(Ue.NAME,s),t}throw new _("Unable to decode '"+e+"'")}encodeSection(e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(e)?this.sections.get(e).encode():null}encodeSectionById(e){return this.encodeSection(Ve.SECTION_ID_NAME_MAP.get(e))}decodeSection(e,t){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let s=null;this.sections.has(e)?s=this.sections.get(e):e===Ee.NAME?(s=new Ee,this.sections.set(Ee.NAME,s)):e===oe.NAME?(s=new oe,this.sections.set(oe.NAME,s)):e===de.NAME?(s=new de,this.sections.set(de.NAME,s)):e===Se.NAME?(s=new Se,this.sections.set(Se.NAME,s)):e===ue.NAME?(s=new ue,this.sections.set(ue.NAME,s)):e===he.NAME?(s=new he,this.sections.set(he.NAME,s)):e===_e.NAME?(s=new _e,this.sections.set(_e.NAME,s)):e===ge.NAME?(s=new ge,this.sections.set(ge.NAME,s)):e===Te.NAME?(s=new Te,this.sections.set(Te.NAME,s)):e===Ie.NAME?(s=new Ie,this.sections.set(Ie.NAME,s)):e===Oe.NAME?(s=new Oe,this.sections.set(Oe.NAME,s)):e===Ne.NAME?(s=new Ne,this.sections.set(Ne.NAME,s)):e===pe.NAME?(s=new pe,this.sections.set(pe.NAME,s)):e===Ae.NAME?(s=new Ae,this.sections.set(Ae.NAME,s)):e===Ce.NAME?(s=new Ce,this.sections.set(Ce.NAME,s)):e===fe.NAME?(s=new fe,this.sections.set(fe.NAME,s)):e===Pe.NAME?(s=new Pe,this.sections.set(Pe.NAME,s)):e===De.NAME?(s=new De,this.sections.set(De.NAME,s)):e===we.NAME&&(s=new we,this.sections.set(we.NAME,s)),s&&(s.decode(t),this.dirty=!0)}decodeSectionById(e,t){this.decodeSection(Ve.SECTION_ID_NAME_MAP.get(e),t)}toObject(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let e={};for(let t=0;t<Ve.SECTION_ORDER.length;t++){let s=Ve.SECTION_ORDER[t];this.sections.has(s)&&(e[s]=this.sections.get(s).toObj())}return e}encode(){return(null==this.encodedString||0===this.encodedString.length||this.dirty)&&(this.encodedString=this.encodeModel(this.sections),this.dirty=!1,this.decoded=!0),this.encodedString}decode(e){this.encodedString=e,this.dirty=!1,this.decoded=!1}}
1class Vs extends Error{constructor(e){super(e),this.name="GVLError"}}var Xe=ce(94650),Ns=ce(80529),ps=ce(46262);let As=(()=>{const e=class{constructor(s,n){this.http=s,this.lokiService=n,this.GPP_Section=new Map([[7,"usnat"],[8,"usca"],[9,"usva"],[10,"usco"],[11,"usut"],[12,"usct"],[13,"usfl"],[14,"usmt"],[15,"usor"],[16,"ustx"],[17,"usde"],[18,"usia"],[19,"usne"],[20,"usnh"],[21,"usnj"],[22,"ustn"],[23,"usmn"],[24,"ustn"],[25,"ustn"],[26,"ustn"],[27,"ustn"]]),this.consentInfo=new ve.X(null),this.getConsentInfo=this.consentInfo.asObservable(),this.gvlString=ae.Ew.baseUrl=Re.N.iabUrlV2,this.gvl=new ae.Ew,this.tcModel=new ae.gI(this.gvl),this.gppModel=new Os}decodeTcString(s){return ae.E9.decode(s)}decodeGppString(s){this.gppModel.decode(s);let n=this.gppModel.getSectionIds(),o=n[0];return{gppData:this.getApplicableSection(o).data,sectionID:n,sectionName:this.getApplicableSection(o).sectionName,GppString:s}}getApplicableSection(s){const n=this.GPP_Section.get(Number(s));return n?(this.gppModel.getFieldValue(n,"Version"),{data:this.gppModel.getSection(n),sectionName:n}):{data:null,sectionName:null}}getPurposeIds(s){const n=[];for(let o=0;s.purposeConsents.maxId>=o;o++)s.purposeConsents.has(o)&&n.push(o);return n}getPurposeLegiIds(s){const n=[];for(let o=0;s.purposeLegitimateInterests.maxId>=o;o++)s.purposeLegitimateInterests.has(o)&&n.push(o);return n}getSpecialFeatureIds(s){const n=[];for(let o=0;s.specialFeatureOptins.maxId>=o;o++)s.specialFeatureOptins.has(o)&&n.push(o);return n}getVendorsIds(s){const n=[];for(let o=0;s.vendorConsents.maxId>=o;o++)s.vendorConsents.has(o)&&n.push(o);return n}getVendorsLegiIds(s){const n=[];for(let o=0;s.vendorLegitimateInterests.maxId>=o;o++)s.vendorLegitimateInterests.has(o)&&n.push(o);return n}getGoogleVendors(s,n){return this.http.get(Re.N.googleVendorsUrl).pipe((0,Be.K)(o=>(this.onSendLogs(Me.o.INFO,o,Me.X.googleVendors,s,n,Re.N.googleVendorsUrl),(0,be._)(o))))}onSendLogs(s,n,o,c,S,g){this.lokiService.onSendErrorLogs(s,n,o,c,S,g).subscribe()}getAllData(){return this.gvl.readyPromise.then(()=>this.gvl)}getIabCustomVendors(){return this.http.get("assets/vendors/custom-vendors.json")}setConsent(s){this.consentInfo.next(s),this.getConsentInfo.subscribe(n=>{})}};let i=e;return e.\u0275fac=function(n){return new(n||e)(Xe.LFG(Ns.eN),Xe.LFG(ps.L))},e.\u0275prov=Xe.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),i})()},41092:(et,We,ce)=>{ce.d(We,{Ew:()=>D,gI:()=>Ue,E9:()=>N});class Re extends Error{constructor(r){super(r),this.name="DecodingError"}}class ae extends Error{constructor(r){super(r),this.name="EncodingError"}}class ve extends Error{constructor(r){super(r),this.name="GVLError"}}class be extends Error{constructor(r,l,E=""){super(`invalid value ${l} passed for ${r} ${E}`),this.name="TCModelError"}}class Be{static DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";static REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]);static BASIS=6;static LCM=24;static encode(r){if(!/^[0-1]+$/.test(r))throw new ae("Invalid bitField");const l=r.length%this.LCM;r+=l?"0".repeat(this.LCM-l):"";let E="";for(let d=0;d<r.length;d+=this.BASIS)E+=this.DICT[parseInt(r.substr(d,this.BASIS),2)];return E}static decode(r){if(!/^[A-Za-z0-9\-_]+$/.test(r))throw new Re("Invalidly encoded Base64URL string");let l="";for(let E=0;E<r.length;E++){const d=this.REVERSE_DICT.get(r[E]).toString(2);l+="0".repeat(this.BASIS-d.length)+d}return l}}class Me{static langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]);has(r){return Me.langSet.has(r)}parseLanguage(r){const l=(r=r.toUpperCase()).split("-")[0];if(r.length>=2&&2==l.length){if(Me.langSet.has(r))return r;if(Me.langSet.has(l))return l;const E=l+"-"+l;if(Me.langSet.has(E))return E;for(const d of Me.langSet)if(-1!==d.indexOf(r)||-1!==d.indexOf(l))return d}throw new Error(`unsupported language ${r}`)}forEach(r){Me.langSet.forEach(r)}get size(){return Me.langSet.size}}let h=(()=>class C{static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";
1static supportOOB="supportOOB";static isServiceSpecific="isServiceSpecific";static lastUpdated="lastUpdated";static numCustomPurposes="numCustomPurposes";static policyVersion="policyVersion";static publisherCountryCode="publisherCountryCode";static publisherCustomConsents="publisherCustomConsents";static publisherCustomLegitimateInterests="publisherCustomLegitimateInterests";static publisherLegitimateInterests="publisherLegitimateInterests";static publisherConsents="publisherConsents";static publisherRestrictions="publisherRestrictions";static purposeConsents="purposeConsents";static purposeLegitimateInterests="purposeLegitimateInterests";static purposeOneTreatment="purposeOneTreatment";static specialFeatureOptins="specialFeatureOptins";static useNonStandardTexts="useNonStandardTexts";static vendorConsents="vendorConsents";static vendorLegitimateInterests="vendorLegitimateInterests";static vendorListVersion="vendorListVersion";static vendorsAllowed="vendorsAllowed";static vendorsDisclosed="vendorsDisclosed";static version="version"})();class Fe{clone(){const r=new this.constructor;return Object.keys(this).forEach(E=>{const d=this.deepClone(this[E]);void 0!==d&&(r[E]=d)}),r}deepClone(r){const l=typeof r;if("number"===l||"string"===l||"boolean"===l)return r;if(null!==r&&"object"===l){if("function"==typeof r.clone)return r.clone();if(r instanceof Date)return new Date(r.getTime());if(void 0!==r[Symbol.iterator]){const E=[];for(const d of r)E.push(this.deepClone(d));return r instanceof Array?E:new r.constructor(E)}{const E={};for(const d in r)r.hasOwnProperty(d)&&(E[d]=this.deepClone(r[d]));return E}}}}var me=(()=>{return(C=me||(me={}))[C.NOT_ALLOWED=0]="NOT_ALLOWED",C[C.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",C[C.REQUIRE_LI=2]="REQUIRE_LI",me;var C})();let Le=(()=>{class C extends Fe{static hashSeparator="-";purposeId_;restrictionType;constructor(l,E){super(),void 0!==l&&(this.purposeId=l),void 0!==E&&(this.restrictionType=E)}static unHash(l){const E=l.split(this.hashSeparator),d=new C;if(2!==E.length)throw new be("hash",l);return d.purposeId=parseInt(E[0],10),d.restrictionType=parseInt(E[1],10),d}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${C.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(l){this.purposeId_=l}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===me.NOT_ALLOWED||this.restrictionType===me.REQUIRE_CONSENT||this.restrictionType===me.REQUIRE_LI)}isSameAs(l){return this.purposeId===l.purposeId&&this.restrictionType===l.restrictionType}}return C})();class J extends Fe{bitLength=0;map=new Map;gvl_;has(r){return this.map.has(r)}isOkToHave(r,l,E){let d=!0;if(this.gvl?.vendors){const u=this.gvl.vendors[E];if(u)if(r===me.NOT_ALLOWED)d=u.legIntPurposes.includes(l)||u.purposes.includes(l);else if(u.flexiblePurposes.length)switch(r){case me.REQUIRE_CONSENT:d=u.flexiblePurposes.includes(l)&&u.legIntPurposes.includes(l);break;case me.REQUIRE_LI:d=u.flexiblePurposes.includes(l)&&u.purposes.includes(l)}else d=!1;else d=!1}return d}add(r,l){if(this.isOkToHave(l.restrictionType,l.purposeId,r)){const E=l.hash;this.has(E)||(this.map.set(E,new Set),this.bitLength=0),this.map.get(E).add(r)}}restrictPurposeToLegalBasis(r){const l=Array.from(this.gvl.vendorIds),E=r.hash,d=l[l.length-1],u=[...Array(d).keys()].map(I=>I+1);if(this.has(E))for(let I=1;I<=d;I++)this.map.get(E).add(I);else this.map.set(E,new Set(u)),this.bitLength=0}getVendors(r){let l=[];if(r){const E=r.hash;this.has(E)&&(l=Array.from(this.map.get(E)))}else{const E=new Set;this.map.forEach(d=>{d.forEach(u=>{E.add(u)})}),l=Array.from(E)}return l.sort((E,d)=>E-d)}getRestrictionType(r,l){let E;return this.getRestrictions(r).forEach(d=>{d.purposeId===l&&(void 0===E||E>d.restrictionType)&&(E=d.restrictionType)}),E}vendorHasRestriction(r,l){let E=!1;const d=this.getRestrictions(r);for(let u=0;u<d.length&&!E;u++)E=l.isSameAs(d[u]);return E}getMaxVendorId(){let r=0;return this.map.forEach(l=>{r=Math.max(Array.from(l)[l.size-1],r)}),r}getRestrictions(r){const l=[];
1return this.map.forEach((E,d)=>{r?E.has(r)&&l.push(Le.unHash(d)):l.push(Le.unHash(d))}),l}getPurposes(){const r=new Set;return this.map.forEach((l,E)=>{r.add(Le.unHash(E).purposeId)}),Array.from(r)}remove(r,l){const E=l.hash,d=this.map.get(E);d&&(d.delete(r),0==d.size&&(this.map.delete(E),this.bitLength=0))}set gvl(r){this.gvl_||(this.gvl_=r,this.map.forEach((l,E)=>{const d=Le.unHash(E);Array.from(l).forEach(I=>{this.isOkToHave(d.restrictionType,d.purposeId,I)||l.delete(I)})}))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}var _=(()=>{return(C=_||(_={})).CORE="core",C.VENDORS_DISCLOSED="vendorsDisclosed",C.VENDORS_ALLOWED="vendorsAllowed",C.PUBLISHER_TC="publisherTC",_;var C})();class q{static ID_TO_KEY=[_.CORE,_.VENDORS_DISCLOSED,_.VENDORS_ALLOWED,_.PUBLISHER_TC];static KEY_TO_ID={[_.CORE]:0,[_.VENDORS_DISCLOSED]:1,[_.VENDORS_ALLOWED]:2,[_.PUBLISHER_TC]:3}}class f extends Fe{bitLength=0;maxId_=0;set_=new Set;*[Symbol.iterator](){for(let r=1;r<=this.maxId;r++)yield[r,this.has(r)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(r){return this.set_.has(r)}unset(r){Array.isArray(r)?r.forEach(l=>this.unset(l)):"object"==typeof r?this.unset(Object.keys(r).map(l=>Number(l))):(this.set_.delete(Number(r)),this.bitLength=0,r===this.maxId&&(this.maxId_=0,this.set_.forEach(l=>{this.maxId_=Math.max(this.maxId,l)})))}isIntMap(r){let l="object"==typeof r;return l=l&&Object.keys(r).every(E=>{let d=Number.isInteger(parseInt(E,10));return d=d&&this.isValidNumber(r[E].id),d=d&&void 0!==r[E].name,d}),l}isValidNumber(r){return parseInt(r,10)>0}isSet(r){let l=!1;return r instanceof Set&&(l=Array.from(r).every(this.isValidNumber)),l}set(r){if(Array.isArray(r))r.forEach(l=>this.set(l));else if(this.isSet(r))this.set(Array.from(r));else if(this.isIntMap(r))this.set(Object.keys(r).map(l=>Number(l)));else{if(!this.isValidNumber(r))throw new be("set()",r,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(r),this.maxId_=Math.max(this.maxId,r),this.bitLength=0}}empty(){this.set_=new Set}forEach(r){for(let l=1;l<=this.maxId;l++)r(this.has(l),l)}get size(){return this.set_.size}setAll(r){this.set(r)}}class O{static[h.cmpId]=12;static[h.cmpVersion]=12;static[h.consentLanguage]=12;static[h.consentScreen]=6;static[h.created]=36;static[h.isServiceSpecific]=1;static[h.lastUpdated]=36;static[h.policyVersion]=6;static[h.publisherCountryCode]=12;static[h.publisherLegitimateInterests]=24;static[h.publisherConsents]=24;static[h.purposeConsents]=24;static[h.purposeLegitimateInterests]=24;static[h.purposeOneTreatment]=1;static[h.specialFeatureOptins]=12;static[h.useNonStandardTexts]=1;static[h.vendorListVersion]=12;static[h.version]=6;static anyBoolean=1;static encodingType=1;static maxId=16;static numCustomPurposes=6;static numEntries=12;static numRestrictions=12;static purposeId=6;static restrictionType=2;static segmentType=3;static singleOrRange=1;static vendorId=16}class T{static encode(r,l){let E;if("string"==typeof r&&(r=parseInt(r,10)),E=r.toString(2),E.length>l||r<0)throw new ae(`${r} too large to encode into ${l}`);return E.length<l&&(E="0".repeat(l-E.length)+E),E}static decode(r,l){if(l!==r.length)throw new Re("invalid bit length");return parseInt(r,2)}}class R{static encode(r,l){return T.encode(Math.round(r.getTime()/100),l)}static decode(r,l){if(l!==r.length)throw new Re("invalid bit length");const E=new Date;return E.setTime(100*T.decode(r,l)),E}}class ie{static encode(r){return String(Number(r))}static decode(r){return"1"===r}}class re{static encode(r,l){let E="";for(let d=1;d<=l;d++)E+=ie.encode(r.has(d));return E}static decode(r,l){if(r.length!==l)throw new Re("bitfield encoding length mismatch");const E=new f;for(let d=1;d<=l;d++)ie.decode(r[d-1])&&E.set(d);return E.bitLength=r.length,E}}class He{static encode(r,l){const d=(r=r.toUpperCase()).charCodeAt(0)-65,u=r.charCodeAt(1)-65;if(d<0||d>25||u<0||u>25)throw new ae(`invalid language code: ${r}`);if(l%2==1)throw new ae(`numBits must be even, ${l} is not valid`);return T.encode(d,l/=2)+T.encode(u,l)}static decode(r,l){let E;if(l!==r.length||r.length%2)throw new Re("invalid bit length for language");{const u=r.length/2,I=T.decode(r.slice(0,u),u)+65,P=T.decode(r.slice(u),u)+65;E=String.fromCharCode(I)+String.fromCharCode(P)}return E}}class je{static encode(r){let l=T.encode(r.numRestrictions,O.numRestrictions);if(!r.isEmpty()){const E=(d,u)=>{for(let I=d+1;I<=u;I++)if(r.gvl.vendorIds.has(I))return I;return d};
1r.getRestrictions().forEach(d=>{l+=T.encode(d.purposeId,O.purposeId),l+=T.encode(d.restrictionType,O.restrictionType);const u=r.getVendors(d),I=u.length;let P=0,w=0,p="";for(let G=0;G<I;G++){const $=u[G];if(0===w&&(P++,w=$),G===I-1||u[G+1]>E($,u[I-1])){const W=$!==w;p+=ie.encode(W),p+=T.encode(w,O.vendorId),W&&(p+=T.encode($,O.vendorId)),w=0}}l+=T.encode(P,O.numEntries),l+=p})}return l}static decode(r){let l=0;const E=new J,d=T.decode(r.substr(l,O.numRestrictions),O.numRestrictions);l+=O.numRestrictions;for(let u=0;u<d;u++){const I=T.decode(r.substr(l,O.purposeId),O.purposeId);l+=O.purposeId;const P=T.decode(r.substr(l,O.restrictionType),O.restrictionType);l+=O.restrictionType;const w=new Le(I,P),p=T.decode(r.substr(l,O.numEntries),O.numEntries);l+=O.numEntries;for(let G=0;G<p;G++){const $=ie.decode(r.substr(l,O.anyBoolean));l+=O.anyBoolean;const W=T.decode(r.substr(l,O.vendorId),O.vendorId);if(l+=O.vendorId,$){const ne=T.decode(r.substr(l,O.vendorId),O.vendorId);if(l+=O.vendorId,ne<W)throw new Re(`Invalid RangeEntry: endVendorId ${ne} is less than ${W}`);for(let xe=W;xe<=ne;xe++)E.add(xe,w)}else E.add(W,w)}}return E.bitLength=l,E}}var te=(()=>{return(C=te||(te={}))[C.FIELD=0]="FIELD",C[C.RANGE=1]="RANGE",te;var C})();class se{static encode(r){const l=[];let I,E=[],d=T.encode(r.maxId,O.maxId),u="";const P=O.maxId+O.encodingType,w=P+r.maxId,p=2*O.vendorId+O.singleOrRange+O.numEntries;let G=P+O.numEntries;return r.forEach(($,W)=>{u+=ie.encode($),I=r.maxId>p&&G<w,I&&$&&(r.has(W+1)?0===E.length&&(E.push(W),G+=O.singleOrRange,G+=O.vendorId):(E.push(W),G+=O.vendorId,l.push(E),E=[]))}),I?(d+=String(te.RANGE),d+=this.buildRangeEncoding(l)):(d+=String(te.FIELD),d+=u),d}static decode(r,l){let E,d=0;const u=T.decode(r.substr(d,O.maxId),O.maxId);d+=O.maxId;const I=T.decode(r.charAt(d),O.encodingType);if(d+=O.encodingType,I===te.RANGE){if(E=new f,1===l){if("1"===r.substr(d,1))throw new Re("Unable to decode default consent=1");d++}const P=T.decode(r.substr(d,O.numEntries),O.numEntries);d+=O.numEntries;for(let w=0;w<P;w++){const p=ie.decode(r.charAt(d));d+=O.singleOrRange;const G=T.decode(r.substr(d,O.vendorId),O.vendorId);if(d+=O.vendorId,p){const $=T.decode(r.substr(d,O.vendorId),O.vendorId);d+=O.vendorId;for(let W=G;W<=$;W++)E.set(W)}else E.set(G)}}else{const P=r.substr(d,u);d+=u,E=re.decode(P,u)}return E.bitLength=d,E}static buildRangeEncoding(r){let E=T.encode(r.length,O.numEntries);return r.forEach(d=>{const u=1===d.length;E+=ie.encode(!u),E+=T.encode(d[0],O.vendorId),u||(E+=T.encode(d[1],O.vendorId))}),E}}function Z(){return{[h.version]:T,[h.created]:R,[h.lastUpdated]:R,[h.cmpId]:T,[h.cmpVersion]:T,[h.consentScreen]:T,[h.consentLanguage]:He,[h.vendorListVersion]:T,[h.policyVersion]:T,[h.isServiceSpecific]:ie,[h.useNonStandardTexts]:ie,[h.specialFeatureOptins]:re,[h.purposeConsents]:re,[h.purposeLegitimateInterests]:re,[h.purposeOneTreatment]:ie,[h.publisherCountryCode]:He,[h.vendorConsents]:se,[h.vendorLegitimateInterests]:se,[h.publisherRestrictions]:je,segmentType:T,[h.vendorsDisclosed]:se,[h.vendorsAllowed]:se,[h.publisherConsents]:re,[h.publisherLegitimateInterests]:re,[h.numCustomPurposes]:T,[h.publisherCustomConsents]:re,[h.publisherCustomLegitimateInterests]:re}}class ke{1={[_.CORE]:[h.version,h.created,h.lastUpdated,h.cmpId,h.cmpVersion,h.consentScreen,h.consentLanguage,h.vendorListVersion,h.purposeConsents,h.vendorConsents]};2={[_.CORE]:[h.version,h.created,h.lastUpdated,h.cmpId,h.cmpVersion,h.consentScreen,h.consentLanguage,h.vendorListVersion,h.policyVersion,h.isServiceSpecific,h.useNonStandardTexts,h.specialFeatureOptins,h.purposeConsents,h.purposeLegitimateInterests,h.purposeOneTreatment,h.publisherCountryCode,h.vendorConsents,h.vendorLegitimateInterests,h.publisherRestrictions],[_.PUBLISHER_TC]:[h.publisherConsents,h.publisherLegitimateInterests,h.numCustomPurposes,h.publisherCustomConsents,h.publisherCustomLegitimateInterests],[_.VENDORS_ALLOWED]:[h.vendorsAllowed],[_.VENDORS_DISCLOSED]:[h.vendorsDisclosed]}}class a{1=[_.CORE];2=[_.CORE];constructor(r,l){if(2===r.version)if(r.isServiceSpecific)this[2].push(_.PUBLISHER_TC);else{const E=!(!l||!l.isForVendors);(!E||!0===r[h.supportOOB])&&this[2].push(_.VENDORS_DISCLOSED),E&&(r[h.supportOOB]&&r[h.vendorsAllowed].size>0&&this[2].push(_.VENDORS_ALLOWED),this[2].push(_.PUBLISHER_TC))}}}class M{static fieldSequence=new ke;static encode(r,l){let E;try{E=this.fieldSequence[String(r.version)][l]}catch{throw new ae(`Unable to encode version: ${r.version}, segment: ${l}`)}let d="";l!==_.CORE&&(d=T.encode(q.KEY_TO_ID[l],O.segmentType));const u=Z();
1return E.forEach(I=>{const P=r[I],w=u[I];let p=O[I];void 0===p&&this.isPublisherCustom(I)&&(p=Number(r[h.numCustomPurposes]));try{d+=w.encode(P,p)}catch(G){throw new ae(`Error encoding ${l}->${I}: ${G.message}`)}}),Be.encode(d)}static decode(r,l,E){const d=Be.decode(r);let u=0;E===_.CORE&&(l.version=T.decode(d.substr(u,O[h.version]),O[h.version])),E!==_.CORE&&(u+=O.segmentType);const I=this.fieldSequence[String(l.version)][E],P=Z();return I.forEach(w=>{const p=P[w];let G=O[w];if(void 0===G&&this.isPublisherCustom(w)&&(G=Number(l[h.numCustomPurposes])),0!==G){const $=d.substr(u,G);if(l[w]=p.decode($,p===se?l.version:G),Number.isInteger(G))u+=G;else{if(!Number.isInteger(l[w].bitLength))throw new Re(w);u+=l[w].bitLength}}}),l}static isPublisherCustom(r){return 0===r.indexOf("publisherCustom")}}let Ge=(()=>class C{static processor=[l=>l,(l,E)=>{l.publisherRestrictions.gvl=E,l.purposeLegitimateInterests.unset([1,3,4,5,6]);const d=new Map;return d.set("legIntPurposes",l.vendorLegitimateInterests),d.set("purposes",l.vendorConsents),d.forEach((u,I)=>{u.forEach((P,w)=>{if(P){const p=E.vendors[w];if(!p||p.deletedDate)u.unset(w);else if(0===p[I].length)if("legIntPurposes"===I&&0===p.purposes.length&&0===p.legIntPurposes.length&&p.specialPurposes.length>0)u.set(w);else if("legIntPurposes"===I&&p.purposes.length>0&&0===p.legIntPurposes.length&&p.specialPurposes.length>0)u.set(w);else if(l.isServiceSpecific)if(0===p.flexiblePurposes.length)u.unset(w);else{const G=l.publisherRestrictions.getRestrictions(w);let $=!1;for(let W=0,ne=G.length;W<ne&&!$;W++)$=G[W].restrictionType===me.REQUIRE_CONSENT&&"purposes"===I||G[W].restrictionType===me.REQUIRE_LI&&"legIntPurposes"===I;$||u.unset(w)}else u.unset(w)}})}),l.vendorsDisclosed.set(E.vendors),l}];static process(l,E){const d=l.gvl;if(!d)throw new ae("Unable to encode TCModel without a GVL");if(!d.isReady)throw new ae("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(l=l.clone()).consentLanguage=d.language.slice(0,2).toUpperCase(),l.version=E?.version>0&&E?.version<=this.processor.length?E.version:this.processor.length;const u=l.version-1;if(!this.processor[u])throw new ae(`Invalid version: ${l.version}`);return this.processor[u](l,d)}})();var ze=ce(15861);class m{static absCall(r,l,E,d){return new Promise((u,I)=>{const P=new XMLHttpRequest;P.withCredentials=E,P.addEventListener("load",()=>{if(P.readyState==XMLHttpRequest.DONE)if(P.status>=200&&P.status<300){let W=P.response;if("string"==typeof W)try{W=JSON.parse(W)}catch{}u(W)}else I(new Error(`HTTP Status: ${P.status} response type: ${P.responseType}`))}),P.addEventListener("error",()=>{I(new Error("error"))}),P.addEventListener("abort",()=>{I(new Error("aborted"))}),P.open(null===l?"GET":"POST",r,!0),P.responseType="json",P.timeout=d,P.ontimeout=()=>{I(new Error("Timeout "+d+"ms "+r))},P.send(l)})}static post(r,l,E=!1,d=0){return this.absCall(r,JSON.stringify(l),E,d)}static fetch(r,l=!1,E=0){return this.absCall(r,null,l,E)}}class D extends Fe{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new Me;static baseUrl_;static set baseUrl(r){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(r))throw new ve("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");r.length>0&&"/"!==r[r.length-1]&&(r+="/"),this.baseUrl_=r}static get baseUrl(){return this.baseUrl_}static latestFilename="vendor-list.json";static versionedFilename="archives/vendor-list-v[VERSION].json";static languageFilename="purposes-[LANG].json";readyPromise;gvlSpecificationVersion;vendorListVersion;tcfPolicyVersion;lastUpdated;purposes;specialPurposes;features;specialFeatures;isReady_=!1;vendors_;vendorIds;fullVendorList;byPurposeVendorMap;bySpecialPurposeVendorMap;byFeatureVendorMap;bySpecialFeatureVendorMap;stacks;dataCategories;lang_;cacheLang_;isLatest=!1;constructor(r,l){super();let E=D.baseUrl,d=l?.language;if(d)try{d=D.consentLanguages.parseLanguage(d)}catch(u){throw new ve("Error during parsing the language: "+u.message)}if(this.lang_=d||D.DEFAULT_LANGUAGE,this.cacheLang_=d||D.DEFAULT_LANGUAGE,this.isVendorList(r))this.populate(r),this.readyPromise=Promise.resolve();else{if(!E)throw new ve("must specify GVL.baseUrl before loading GVL json");if(r>0){const u=r;D.CACHE.has(u)?(this.populate(D.CACHE.get(u)),this.readyPromise=Promise.resolve()):(E+=D.versionedFilename.replace("[VERSION]",String(u)),this.readyPromise=this.fetchJson(E))}else D.CACHE.has(D.LATEST_CACHE_KEY)?(this.populate(D.CACHE.get(D.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(E+D.latestFilename))}}static emptyLanguageCache(r){let l=!1;return null==r&&D.LANGUAGE_CACHE.size>0?(D.LANGUAGE_CACHE=new Map,l=!0):"string"==typeof r&&this.consentLanguages.has(r.toUpperCase())&&(D.LANGUAGE_CACHE.delete(r.toUpperCase()),l=!0),l}static emptyCache(r){let l=!1;return Number.isInteger(r)&&r>=0?(D.CACHE.delete(r),l=!0):void 0===r&&(D.CACHE=new Map,l=!0),l}cacheLanguage(){D.LANGUAGE_CACHE.has(this.cacheLang_)||D.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}fetchJson(r){var l=this;return(0,ze.Z)(function*(){try{l.populate(yield m.fetch(r))}catch(E){throw new ve(E.message)}})()}getJson(){return{gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks(),...this.dataCategories?{dataCategories:this.cloneDataCategories()}:{},vendors:this.cloneVendors()}}cloneSpecialFeatures(){const r={};for(const l of Object.keys(this.specialFeatures))r[l]=D.cloneFeature(this.specialFeatures[l]);return r}cloneFeatures(){const r={};for(const l of Object.keys(this.features))r[l]=D.cloneFeature(this.features[l]);return r}cloneStacks(){const r={};for(const l of Object.keys(this.stacks))r[l]=D.cloneStack(this.stacks[l]);return r}cloneDataCategories(){const r={};for(const l of Object.keys(this.dataCategories))r[l]=D.cloneDataCategory(this.dataCategories[l]);return r}cloneSpecialPurposes(){const r={};for(const l of Object.keys(this.specialPurposes))r[l]=D.clonePurpose(this.specialPurposes[l]);return r}clonePurposes(){const r={};for(const l of Object.keys(this.purposes))r[l]=D.clonePurpose(this.purposes[l]);return r}static clonePurpose(r){return{id:r.id,name:r.name,description:r.description,...r.descriptionLegal?{descriptionLegal:r.descriptionLegal}:{},...r.illustrations?{illustrations:Array.from(r.illustrations)}:{}}}static cloneFeature(r){return{id:r.id,name:r.name,description:r.description,...r.descriptionLegal?{descriptionLegal:r.descriptionLegal}:{},...r.illustrations?{illustrations:Array.from(r.illustrations)}:{}}}static cloneDataCategory(r){return{id:r.id,name:r.name,description:r.description}}static cloneStack(r){return{id:r.id,name:r.name,description:r.description,purposes:Array.from(r.purposes),specialFeatures:Array.from(r.specialFeatures)}}static cloneDataRetention(r){return{..."number"==typeof r.stdRetention?{stdRetention:r.stdRetention}:{},purposes:{...r.purposes},specialPurposes:{...r.specialPurposes}}}static cloneVendorUrls(r){return r.map(l=>({langId:l.langId,privacy:l.privacy,...l.legIntClaim?{legIntClaim:l.legIntClaim}:{}}))}static cloneVendor(r){return{id:r.id,name:r.name,purposes:Array.from(r.purposes),legIntPurposes:Array.from(r.legIntPurposes),flexiblePurposes:Array.from(r.flexiblePurposes),specialPurposes:Array.from(r.specialPurposes),features:Array.from(r.features),specialFeatures:Array.from(r.specialFeatures),...r.overflow?{overflow:{httpGetLimit:r.overflow.httpGetLimit}}:{},..."number"==typeof r.cookieMaxAgeSeconds||null===r.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:r.cookieMaxAgeSeconds}:{},...void 0!==r.usesCookies?{usesCookies:r.usesCookies}:{},...r.policyUrl?{policyUrl:r.policyUrl}:{},...void 0!==r.cookieRefresh?{cookieRefresh:r.cookieRefresh}:{},...void 0!==r.usesNonCookieAccess?{usesNonCookieAccess:r.usesNonCookieAccess}:{},...r.dataRetention?{dataRetention:this.cloneDataRetention(r.dataRetention)}:{},...r.urls?{urls:this.cloneVendorUrls(r.urls)}:{},...r.dataDeclaration?{dataDeclaration:Array.from(r.dataDeclaration)}:{},...r.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:r.deviceStorageDisclosureUrl}:{},...r.deletedDate?{deletedDate:r.deletedDate}:{}}}cloneVendors(){const r={};for(const l of Object.keys(this.fullVendorList))r[l]=D.cloneVendor(this.fullVendorList[l]);return r}changeLanguage(r){var l=this;return(0,ze.Z)(function*(){let E=r;try{E=D.consentLanguages.parseLanguage(r)}catch(u){throw new ve("Error during parsing the language: "+u.message)}const d=r.toUpperCase();if((E.toLowerCase()!==D.DEFAULT_LANGUAGE.toLowerCase()||D.LANGUAGE_CACHE.has(d))&&E!==l.lang_)if(l.lang_=E,D.LANGUAGE_CACHE.has(d)){const u=D.LANGUAGE_CACHE.get(d);for(const I in u)u.hasOwnProperty(I)&&(l[I]=u[I])}else{const u=D.baseUrl+D.languageFilename.replace("[LANG]",l.lang_.toLowerCase());try{yield l.fetchJson(u),l.cacheLang_=d,l.cacheLanguage()}catch(I){throw new ve("unable to load language: "+I.message)}}})()}get language(){return this.lang_}isVendorList(r){return void 0!==r&&void 0!==r.vendors}populate(r){this.purposes=r.purposes,this.specialPurposes=r.specialPurposes,this.features=r.features,this.specialFeatures=r.specialFeatures,this.stacks=r.stacks,this.dataCategories=r.dataCategories,this.isVendorList(r)&&(this.gvlSpecificationVersion=r.gvlSpecificationVersion,this.tcfPolicyVersion=r.tcfPolicyVersion,this.vendorListVersion=r.vendorListVersion,this.lastUpdated=r.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=r.vendors,this.fullVendorList=r.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&D.CACHE.set(D.LATEST_CACHE_KEY,this.getJson()),D.CACHE.has(this.vendorListVersion)||D.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(r){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={}
1,Object.keys(this.purposes).forEach(l=>{this.byPurposeVendorMap[l]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(l=>{this.bySpecialPurposeVendorMap[l]=new Set}),Object.keys(this.features).forEach(l=>{this.byFeatureVendorMap[l]=new Set}),Object.keys(this.specialFeatures).forEach(l=>{this.bySpecialFeatureVendorMap[l]=new Set}),Array.isArray(r)||(r=Object.keys(this.fullVendorList).map(l=>+l)),this.vendorIds=new Set(r),this.vendors_=r.reduce((l,E)=>{const d=this.vendors_[String(E)];return d&&void 0===d.deletedDate&&(d.purposes.forEach(u=>{this.byPurposeVendorMap[String(u)].consent.add(E)}),d.specialPurposes.forEach(u=>{this.bySpecialPurposeVendorMap[String(u)].add(E)}),d.legIntPurposes.forEach(u=>{this.byPurposeVendorMap[String(u)].legInt.add(E)}),d.flexiblePurposes&&d.flexiblePurposes.forEach(u=>{this.byPurposeVendorMap[String(u)].flexible.add(E)}),d.features.forEach(u=>{this.byFeatureVendorMap[String(u)].add(E)}),d.specialFeatures.forEach(u=>{this.bySpecialFeatureVendorMap[String(u)].add(E)}),l[E]=d),l},{})}getFilteredVendors(r,l,E,d){const u=r.charAt(0).toUpperCase()+r.slice(1);let I;const P={};return I="purpose"===r&&E?this["by"+u+"VendorMap"][String(l)][E]:this["by"+(d?"Special":"")+u+"VendorMap"][String(l)],I.forEach(w=>{P[String(w)]=this.vendors[String(w)]}),P}getVendorsWithConsentPurpose(r){return this.getFilteredVendors("purpose",r,"consent")}getVendorsWithLegIntPurpose(r){return this.getFilteredVendors("purpose",r,"legInt")}getVendorsWithFlexiblePurpose(r){return this.getFilteredVendors("purpose",r,"flexible")}getVendorsWithSpecialPurpose(r){return this.getFilteredVendors("purpose",r,void 0,!0)}getVendorsWithFeature(r){return this.getFilteredVendors("feature",r)}getVendorsWithSpecialFeature(r){return this.getFilteredVendors("feature",r,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(r){this.mapVendors(r)}get isReady(){return this.isReady_}clone(){const r=new D(this.getJson());return this.lang_!==D.DEFAULT_LANGUAGE&&r.changeLanguage(this.lang_),r}static isInstanceOf(r){return"object"==typeof r&&"function"==typeof r.narrowVendorsTo}}class Ue extends Fe{static consentLanguages=D.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardTexts_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=4;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new f;purposeConsents=new f;purposeLegitimateInterests=new f;publisherConsents=new f;publisherLegitimateInterests=new f;publisherCustomConsents=new f;publisherCustomLegitimateInterests=new f;customPurposes;vendorConsents=new f;vendorLegitimateInterests=new f;vendorsDisclosed=new f;vendorsAllowed=new f;publisherRestrictions=new J;constructor(r){super(),r&&(this.gvl=r),this.updated()}set gvl(r){D.isInstanceOf(r)||(r=new D(r)),this.gvl_=r,this.publisherRestrictions.gvl=r}get gvl(){return this.gvl_}set cmpId(r){if(r=Number(r),!(Number.isInteger(r)&&r>1))throw new be("cmpId",r);this.cmpId_=r}get cmpId(){return this.cmpId_}set cmpVersion(r){if(r=Number(r),!(Number.isInteger(r)&&r>-1))throw new be("cmpVersion",r);this.cmpVersion_=r}get cmpVersion(){return this.cmpVersion_}set consentScreen(r){if(r=Number(r),!(Number.isInteger(r)&&r>-1))throw new be("consentScreen",r);this.consentScreen_=r}get consentScreen(){return this.consentScreen_}set consentLanguage(r){this.consentLanguage_=r}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(r){if(!/^([A-z]){2}$/.test(r))throw new be("publisherCountryCode",r);this.publisherCountryCode_=r.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(r){if((r=Number(r)>>0)<0)throw new be("vendorListVersion",r);this.vendorListVersion_=r}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(r){if(this.policyVersion_=parseInt(r,10),this.policyVersion_<0)throw new be("policyVersion",r)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(r){this.version_=parseInt(r,10)}get version(){return this.version_}set isServiceSpecific(r){this.isServiceSpecific_=r}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(r){this.useNonStandardTexts_=r}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(r){this.supportOOB_=r}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(r){this.purposeOneTreatment_=r}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){let r=this.numCustomPurposes_;if("object"==typeof this.customPurposes){const l=Object.keys(this.customPurposes).sort((E,d)=>Number(E)-Number(d));r=parseInt(l.pop(),10)}return r}set numCustomPurposes(r){if(this.numCustomPurposes_=parseInt(r,10),this.numCustomPurposes_<0)throw new be("numCustomPurposes",r)}updated(){const r=new Date,l=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()));this.created=l,this.lastUpdated=l}}class N{static encode(r,l){let d,E="";return r=Ge.process(r,l),d=Array.isArray(l?.segments)?l.segments:new a(r,l)[""+r.ver
1sion],d.forEach((u,I)=>{let P="";I<d.length-1&&(P="."),E+=M.encode(r,u)+P}),E}static decode(r,l){const E=r.split("."),d=E.length;l||(l=new Ue);for(let u=0;u<d;u++){const I=E[u],w=Be.decode(I.charAt(0)).substr(0,O.segmentType),p=q.ID_TO_KEY[T.decode(w,O.segmentType).toString()];M.decode(I,l,p)}return l}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.