(()=>{function t(t){return t&&t.__esModule?t.default:t}var e,n,s,r,o,i,a,p={},l=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,c=Array.isArray;function u(t,e){for(var n in e)t[n]=e[n];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function m(t,n,s){var r,o,i,a={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:a[i]=n[i];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):s),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return h(t,a,r,o,null)}function h(t,e,r,o,i){var a={type:t,props:e,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++s:i};return null==i&&null!=n.vnode&&n.vnode(a),a}function f(t){return t.children}function g(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&r.sort(a));x.__r=0}function w(t,e,n,s,r,o,i,a,d,u,_){var m,g,b,y,x,w,S,k,L,T=0,V=s&&s.__k||l,A=V.length,R=A,D=e.length;for(n.__k=[],m=0;m0?h(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)?(y.__=n,y.__b=n.__b+1,-1===(k=I(y,V,S=m+T,R))?b=p:(b=V[k]||p,V[k]=void 0,R--),O(t,y,b,r,o,i,a,d,u,_),x=y.__e,(g=y.ref)&&b.ref!=g&&(b.ref&&P(b.ref,null,y),_.push(g,y.__c||x,y)),null!=x&&(null==w&&(w=x),(L=b===p||null===b.__v)?-1==k&&T--:k!==S&&(k===S+1?T++:k>S?R>D-S?T+=k-S:T--:T=k(null!=p?1:0))for(;i>=0||a=0){if((p=e[i])&&r==p.key&&o===p.type)return i;i--}if(a=s.__.length&&s.__.push({__V:G}),s.__[t]}function Y(t){return H=1,K(at,t)}function K(t,e,n){var s=q(F++,2);if(s.t=t,!s.__c&&(s.__=[n?n(e):at(void 0,e),function(t){var e=s.__N?s.__N[0]:s.__[0],n=s.t(e,t);e!==n&&(s.__N=[n,s.__[1]],s.__c.setState({}))}],s.__c=U,!U.u)){var r=function(t,e,n){if(!s.__c.__H)return!0;var r=s.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var i=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&s.__c.props===t)&&(!o||o.call(this,t,e,n))};U.u=!0;var o=U.shouldComponentUpdate,i=U.componentWillUpdate;U.componentWillUpdate=function(t,e,n){if(this.__e){var s=o;o=void 0,r(t,e,n),o=s}i&&i.call(this,t,e,n)},U.shouldComponentUpdate=r}return s.__N||s.__}function X(t,e){var s=q(F++,3);!n.__s&&it(s.__H,e)&&(s.__=t,s.i=e,U.__H.__h.push(s))}function Z(t){return H=5,tt((function(){return{current:t}}),[])}function tt(t,e){var n=q(F++,7);return it(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function et(){for(var t;t=z.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(rt),t.__H.__h.forEach(ot),t.__H.__h=[]}catch(e){t.__H.__h=[],n.__e(e,t.__v)}}n.__b=function(t){U=null,B&&B(t)},n.__r=function(t){$&&$(t),F=0;var e=(U=t.__c).__H;e&&(M===U?(e.__h=[],U.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=G,t.__N=t.i=void 0}))):(e.__h.forEach(rt),e.__h.forEach(ot),e.__h=[],F=0)),M=U},n.diffed=function(t){W&&W(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==z.push(e)&&j===n.requestAnimationFrame||((j=n.requestAnimationFrame)||st)(et)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==G&&(t.__=t.__V),t.i=void 0,t.__V=G}))),M=U=null},n.__c=function(t,e){e.some((function(t){try{t.__h.forEach(rt),t.__h=t.__h.filter((function(t){return!t.__||ot(t)}))}catch(s){e.some((function(t){t.__h&&(t.__h=[])})),e=[],n.__e(s,t.__v)}})),Q&&Q(t,e)},n.unmount=function(t){J&&J(t);var e,s=t.__c;s&&s.__H&&(s.__H.__.forEach((function(t){try{rt(t)}catch(t){e=t}})),s.__H=void 0,e&&n.__e(e,s.__v))};var nt="function"==typeof requestAnimationFrame;function st(t){var e,n=function(){clearTimeout(s),nt&&cancelAnimationFrame(e),setTimeout(t)},s=setTimeout(n,100);nt&&(e=requestAnimationFrame(n))}function rt(t){var e=U,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),U=e}function ot(t){var e=U;t.__c=t.__(),U=e}function it(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function at(t,e){return"function"==typeof e?e(t):e}function pt(t,e){for(var n in e)t[n]=e[n];return t}function lt(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var s in e)if("__source"!==s&&t[s]!==e[s])return!0;return!1}function dt(t){this.props=t}(dt.prototype=new g).isPureReactComponent=!0,dt.prototype.shouldComponentUpdate=function(t,e){return lt(this.props,t)||lt(this.state,e)};var ct=n.__b;n.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ct&&ct(t)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var ut=n.__e;n.__e=function(t,e,n,s){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);ut(t,e,n,s)};var _t=n.unmount;function mt(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=pt({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return mt(t,e,n)}))),t}function ht(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return ht(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function ft(){this.__u=0,this.t=null,this.__b=null}function gt(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function vt(){this.u=null,this.o=null}n.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),_t&&_t(t)},(ft.prototype=new g).__c=function(t,e){var n=e.__c,s=this;null==s.t&&(s.t=[]),s.t.push(n);var r=gt(s.__v),o=!1,i=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=i;var a=function(){if(! --s.__u){if(s.state.__a){var t=s.state.__a;s.__v.__k[0]=ht(t,t.__c.__P,t.__c.__O)}var e;for(s.setState({__a:s.__b=null});e=s.t.pop();)e.forceUpdate()}},p=!0===e.__h;s.__u++||p||s.setState({__a:s.__b=s.__v.__k[0]}),t.then(i,i)},ft.prototype.componentWillUnmount=function(){this.t=[]},ft.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),s=this.__v.__k[0].__c;this.__v.__k[0]=mt(this.__b,n,s.__O=s.__P)}this.__b=null}var r=e.__a&&m(f,null,t.fallback);return r&&(r.__h=null),[m(f,null,e.__a?null:t.children),r]};var bt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]{e(!1),n.update(s,!1),r(d),o(c),i(u),a(_),p(m),l(h),f(!1)}}):null}const Jt={purposes:"purposes",landingScreen:"landingScreen",vendors:"vendors"},qt=["stpd_manual_resurface_tl","stpd_manual_resurface_tr","stpd_manual_resurface_ml","stpd_manual_resurface_mr","stpd_manual_resurface_bl","stpd_manual_resurface_br"];function Yt({modalType:t,setModalType:e,resurface:n}){return t==Jt.purposes&&n?Wt("div",{}):t!=Jt.landingScreen?Wt("button",{type:"button",class:"stpd_return_btn",onClick:t==Jt.purposes?()=>e(Jt.landingScreen):()=>e(Jt.purposes),children:Wt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"currentColor",class:"bi bi-arrow-left-circle-fill",viewBox:"0 0 16 16",children:Wt("path",{d:"M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5z"})})}):Wt("div",{})}var Kt=({text:t,disableBeginningSpace:e,children:n})=>t?e?t:` ${t}`:e?n:` ${n}`;var Xt=({websiteName:t,setModalType:e,translation:n,customText:s,vendorCount:r})=>Wt("div",{class:"stpd_inner_wrapper",children:[Wt("p",{class:"stpd_front_title",children:s?.landingTitle?s?.landingTitle:Wt(Kt,{text:n?.title??0,children:"Welcome!"})}),Wt("div",{class:"stpd_front_title_wrapper",children:Wt("p",{class:"stpd_value_title",children:s?.landingSubTitle?s?.landingSubTitle:Wt(f,{children:[t,Wt(Kt,{text:n?.sub_title??0,children:" values your privacy"})]})})}),Wt("p",{children:[Wt(Kt,{text:n?.first_p.pre_vendor??0,children:"We and our"}),Wt("a",{role:"button",href:"#",onClick:()=>e(Jt.vendors),class:"stpd_landing_vendors",children:[Wt(Kt,{text:n?.first_p.w_vendors??0,children:"vendors"})," (",r,")"]}),Wt(Kt,{text:n?.first_p.post_vendors??0,children:"store and/or access information on a device, such as cookies and process personal data, such as unique identifiers to personalize content and ads, provide social media features, analyze our traffic, and develop and improve products."})]}),Wt("p",{children:Wt(Kt,{text:n?.second_p??0,children:"We and our vendors may use precise geolocation data and identification through device scanning with your permission. You may click to consent to our and our partners’ processing as described above. Alternatively, you may access more detailed information and change your preferences before granting or refusing consent."})}),Wt("p",{children:Wt(Kt,{text:n?.third_p??0,children:"Please note that some processing of your personal data may not require your consent, but you have a right to object to such processing. Your preferences will apply to this website only. You can change your preferences at any time by returning to this site. Scope of consent is service-specific."})})]});var Zt=class extends g{constructor(t){super(t),this.state={checked:this.props.checked,name:this.props.name,onClick:this.props.onClick,dataID:this.props.dataID}}toggleList=()=>{this.setState((t=>({checked:!t.checked}))),this.props.onClick({[this.state.name]:{[this.state.dataID]:!this.state.checked}})};render(){const{checked:t,name:e,dataID:n}=this.state;return Wt("label",{class:"stpd_switch",children:[Wt("input",{type:"checkbox",onClick:this.toggleList,checked:t,name:e,"data-id":n,value:t}),Wt("span",{class:"stpd_slider"})]})}};var te=class extends g{constructor(t){super(t),this.state={isListOpen:!1}}toggleList=()=>{this.setState((t=>({isListOpen:!t.isListOpen})))};render(){const{illustrations:t,translation_v_example:e,translation_h_example:n}=this.props;return Wt("div",{class:"stpd_dropdown_wrapper",onClick:this.toggleList,children:[Wt("button",{type:"button",class:"stpd_dropdown_btn",children:this.state.isListOpen?Wt("div",{children:Wt(Kt,{text:n??0,children:"Hide Examples"})}):Wt("div",{children:Wt(Kt,{text:e??0,children:"View Examples"})})}),this.state.isListOpen&&Wt("div",{role:"list",children:Wt("ul",{class:"stpd_dropdown_ul",children:t.map(((t,e)=>Wt("li",{class:"stpd_dropdown_li",children:t},e)))})})]})}};var ee=({handleChangeConsentValues:t,purposesConsent:e,purposesLegitimate:n,specialFeatures:s,data:r,setModalType:o,translation_m:i,translation_p:a,translation_vendors:p})=>{const l=[1,3,4,5,6],[d,c]=Y({});X((()=>{const t={purposes:{},legIntPurposes:{},specialPurposes:{},features:{},specialFeatures:{}};Object.values(r.vendors).forEach((e=>{for(const n in t)e[n]?.length&&e[n].forEach((e=>{t[n][e]=(t[n][e]||0)+1}))})),c(t)}),[]);const u=e=>{t(e)};return Wt("div",{class:"stpd_inner_wrapper",children:[Wt("p",{class:"stpd_title",children:Wt(Kt,{text:i?.title??0,children:"Manage Settings"})}),Wt("p",{children:Wt(Kt,{text:i?.first_p??0,children:"You can choose how your personal data will be used by other vendors."})}),r.purposes&&r.specialPurposes&&r.features&&r.specialFeatures&&d.purposes&&d.legIntPurposes&&d.specialPurposes&&d.features&&d.specialFeatures&&Wt("ul",{class:"stpd_purposes_list",children:[Wt("p",{class:"stpd_medium_title",children:Wt(Kt,{text:a?.w_purposes??0,children:"Purposes"})}),Object.keys(r.purposes).map((t=>Wt("div",{children:Wt("li",{children:[Wt("p",{class:"stpd_small_title",children:r.purposes[t].name}),Wt("p",{children:r.purposes[t].description}),Wt("div",{class:"stpd_consent_slider_wrapper",children:[Wt("div",{class:"stpd_consent_box",children:[Wt("span",{class:"stpd_toggle_option",children:[Wt(Kt,{text:a?.consent??0,children:"Consent"}),` (${d.purposes[t]||0}`,Wt(Kt,{text:p??0,children:"vendors"}),")"]}),Wt(Zt,{checked:e[t],name:"purposesConsent",onClick:u,dataID:r.purposes[t].id})]}),!l.includes(r.purposes[t].id)&&Wt("div",{class:"stpd_consent_box",children:[Wt("span",{class:"stpd_toggle_option",children:[Wt(Kt,{text:a?.leg_interest??0,children:"Legitimate interest"}),` (${d.legIntPurposes[t]||0}`,Wt(Kt,{text:p??0,children:"vendors"}),")"]}),Wt(Zt,{checked:n[t],name:"purposesLegitimate",onClick:u,dataID:r.purposes[t].id})]})]}),r.purposes[t]?.illustrations&&0!==r.purposes[t]?.illustrations.length&&Wt(te,{illustrations:r.purposes[t].illustrations,translation_v_example:i?.v_example,translation_h_example:i?.h_example})]},r.purposes[t].id)}))),Wt("p",{class:"stpd_medium_title",children:Wt(Kt,{text:a?.w_special_purposes??0,children:"Special purposes"})}),Object.keys(r.specialPurposes).map(((t,e)=>Wt("div",{children:Wt("li",{class:"stpd_sm_list_items",children:[Wt("p",{class:"stpd_small_title",children:[r.specialPurposes[t].name," ",` (${d.specialPurposes[t]||0}`,Wt(Kt,{text:p??0,children:"vendors"}),")"]}),Wt("p",{children:r.specialPurposes[t].description}),Wt("div",{style:"margin-top: auto !important",children:r.purposes[t]?.illustrations&&0!==r.specialPurposes[t]?.illustrations.length&&Wt(te,{illustrations:r.specialPurposes[t].illustrations,translation_v_example:i?.v_example,translation_h_example:i?.h_example})})]},e)}))),Wt("p",{class:"stpd_medium_title",children:Wt(Kt,{text:a?.w_features??0,children:"Features"})}),Object.keys(r.features).map(((t,e)=>Wt("div",{children:Wt("li",{class:"stpd_sm_list_items",children:[Wt("p",{class:"stpd_small_title",children:[r.features[t].name,` (${d.features[t]||0}`,Wt(Kt,{text:p??0,children:"vendors"}),")"]}),Wt("p",{children:r.features[t].description}),r.purposes[t]?.illustrations&&0!==r.features[t]?.illustrations.length&&Wt(te,{illustrations:r.features[t].illustrations,translation_v_example:i?.v_example,translation_h_example:i?.h_example})]},e)}))),Wt("p",{class:"stpd_medium_title",children:Wt(Kt,{text:a?.w_special_features??0,children:"Special features"})}),Object.keys(r.specialFeatures).map(((t,e)=>Wt("div",{children:Wt("li",{class:"stpd_sm_list_items",children:[Wt("p",{class:"stpd_small_title",children:r.specialFeatures[t].name}),Wt("p",{children:r.specialFeatures[t].description}),Wt("div",{class:"stpd_consent_slider_wrapper",children:Wt("div",{class:"stpd_consent_box",children:[Wt("span",{class:"stpd_toggle_option",children:[Wt(Kt,{text:a?.consent??0,children:"Consent"}),` (${d.specialFeatures[t]||0}`,Wt(Kt,{text:p??0,children:"vendors"}),")"]}),Wt(Zt,{checked:s[t],name:"specialFeatures",onClick:u,dataID:r.specialFeatures[t].id})]})}),r.purposes[t]?.illustrations&&0!==r.specialFeatures[t]?.illustrations.length&&Wt(te,{illustrations:r.specialFeatures[t].illustrations,translation_v_example:i?.v_example,translation_h_example:i?.h_example})]},e)}))),Wt("button",{type:"button",class:"stpd_vendor_list_btn",onClick:()=>o(Jt.vendors),children:Wt(Kt,{text:a?.w_gvl_list??0,children:"Global Vendor List"})})]})]})};var ne=class extends g{constructor(t){super(t),this.state={isListOpen:!1}}toggleList=()=>{this.setState((t=>({isListOpen:!t.isListOpen})))};render(){const{data:t,dataRetention:e,purposes:n,legIntPurposes:s,specialPurposes:r,features:o,specialFeatures:i,cookieMaxAgeSeconds:a,usesCookies:p,cookieRefresh:l,usesNonCookieAccess:d,translation_d:c,translation_p:u}=this.props;return Wt("div",{class:"stpd_dropdown_wrapper",onClick:this.toggleList,children:[Wt("button",{type:"button",class:"stpd_dropdown_btn",children:this.state.isListOpen?Wt("div",{children:Wt(Kt,{text:c?.h_details??0,children:"Hide details"})}):Wt("div",{children:Wt(Kt,{text:c?.v_details??0,children:"View details"})})}),this.state.isListOpen&&Wt("div",{role:"list",children:[Wt("div",{class:"stpd_dropdown_titles",children:[Wt(Kt,{text:c?.info_storing??0,children:"Information storing"}),":"]}),Wt("ul",{class:"stpd_dropdown_ul",children:[p?Wt(f,{children:[Wt("li",{class:"stpd_dropdown_li",children:Wt(Kt,{text:c?.s_cookies??0,children:"This vendor stores cookies"})}),Wt("li",{class:"stpd_dropdown_li",children:[Wt(Kt,{text:c?.c_duration??0,children:"Cookie duration"}),": ",Math.floor(a/86400)," ",Wt(Kt,{text:c.w_days,children:"days"})]}),l&&Wt("li",{class:"stpd_dropdown_li",children:Wt(Kt,{text:c?.c_refresh??0,children:"This vendor may refresh cookies after each session"})})]}):Wt("li",{class:"stpd_dropdown_li",children:Wt(Kt,{text:c?.d_s_cookies??0,children:"This vendor doesn't store cookies"})}),Wt("li",d?{class:"stpd_dropdown_li",children:Wt(Kt,{text:c?.ot_sorage_forms??0,children:"This vendor uses other forms of storage"})}:{class:"stpd_dropdown_li",children:Wt(Kt,{text:c?.n_ot_storage_forms??0,children:"This vendor doesn't use other forms of storage"})})]}),0!=n.length&&Wt(f,{children:[Wt("div",{class:"stpd_dropdown_titles",children:[Wt(Kt,{text:u?.w_purposes??0,children:"Purposes"}),":"]}),Wt("ul",{class:"stpd_dropdown_ul",children:n.map((n=>Wt("li",{class:"stpd_dropdown_li",children:[t.purposes[n].name,(()=>{if(0!==e?.stdRetention&&e?.stdRetention||e?.purposes[n]){const t=e?.purposes[n]||e.stdRetention;return Wt(f,{children:[" (",Wt(Kt,{text:c?.r_period??0,disableBeginningSpace:!0,children:"Retention period"})," ",t,Wt(Kt,{text:c?.w_days??0,children:"days"}),")"]})}return null})()]},n)))})]}),0!=s.length&&Wt(f,{children:[Wt("div",{class:"stpd_dropdown_titles",children:[Wt(Kt,{text:u?.l_i_purposes??0,children:"Legitimate interest purposes"}),":"]}),Wt("ul",{class:"stpd_dropdown_ul",children:s.map((n=>Wt("li",{class:"stpd_dropdown_li",children:[t.purposes[n].name,(()=>{if(0!==e?.stdRetention&&e?.stdRetention||e?.purposes[n]){const t=e?.purposes[n]||e.stdRetention;return Wt(f,{children:[" (",Wt(Kt,{text:c?.r_period??0,disableBeginningSpace:!0,children:"Retention period"})," ",t,Wt(Kt,{text:c?.w_days??0,children:"days"}),")"]})}return null})()]},n)))})]}),0!=r.length&&Wt(f,{children:[Wt("div",{class:"stpd_dropdown_titles",children:[Wt(Kt,{text:u?.w_special_purposes??0,children:"Special purposes"}),":"]}),Wt("ul",{class:"stpd_dropdown_ul",children:r.map((n=>Wt("li",{class:"stpd_dropdown_li",children:[t.specialPurposes[n].name,(()=>{if(0!==e?.stdRetention&&e?.stdRetention||e?.specialPurposes[n]){const t=e?.specialPurposes[n]||e.stdRetention;return Wt(f,{children:[" (",Wt(Kt,{text:c?.r_period??0,disableBeginningSpace:!0,children:"Retention period"})," ",t,Wt(Kt,{text:c?.w_days??0,children:"days"}),")"]})}return null})()]},n)))})]}),0!=o.length&&Wt(f,{children:[Wt("div",{class:"stpd_dropdown_titles",children:[Wt(Kt,{text:u?.w_features??0,children:"Features"}),":"]}),Wt("ul",{class:"stpd_dropdown_ul",children:o.map((e=>Wt("li",{class:"stpd_dropdown_li",children:t.features[e].name},e)))})]}),0!=i.length&&Wt(f,{children:[Wt("div",{class:"stpd_dropdown_titles",children:[Wt(Kt,{text:u?.w_special_features??0,children:"Special features"}),":"]}),Wt("ul",{class:"stpd_dropdown_ul",children:i.map((e=>Wt("li",{class:"stpd_dropdown_li",children:t.specialFeatures[e].name},e)))})]})]})]})}};const se=t=>{const[e,n]=Y((null==t?void 0:t.defaultInView)||!1),s=Z(),r=Z(),o=Z();return window&&!s.current&&(s.current=new IntersectionObserver((t=>{r.current=t[0],n(t[0].isIntersecting)}),Object.assign(Object.assign({},t),{root:o.current}))),X((()=>{r.current?(null==t?void 0:t.triggerOnce)&&o.current&&s.current.unobserve(o.current):s.current.observe(o.current)}),[o,e,t]),[o,e,r.current]};var re=t=>{const{numItems:e,renderItem:n}=t,[s,r]=Y([]),[o,i]=Y([]),[a,p]=se({triggerOnce:!1,threshold:.5});return X((()=>{for(let t=0;t<=5;t++)r((e=>[...e,n({index:t})])),i((e=>[...e,t]))}),[]),X((()=>{if(p){const t=parseInt(o.slice(-1))+1;for(let r=t;r<=t+5;r++)r[...t,r])))}else document.querySelector(".stpd_inner_wrapper.stpd_vendor_wrapper").removeAttribute("style")}),[p]),Wt(f,{children:s&&Wt(f,{children:[Wt("div",{className:"stpd_inner",children:s}),Wt("section",{ref:a,style:"height: 10px; margin-bottom: 10px;"})]})})};var oe,ie,ae,pe,le,de,ce,ue,_e,me,he,fe,ge,ve,be,ye,xe=({handleChangeConsentValues:t,vendorConsent:e,vendorLegitimate:n,nonGvlConsent:s,data:r,nonGvlData:o,translation_m:i,translation_p:a,translationLanguage:p})=>{const l=e=>{t(e)},d=t=>{const e=t-Object.keys(r.vendors).length-1;return Wt(f,{children:Wt("li",{children:[Wt("p",{class:"stpd_small_title stpd_vendor_name",children:o[e].provider_name}),Wt("a",{href:o[e].policy_url,class:"stpd_vendor_privacy_policy",target:"_blank",rel:"noopener noreferrer",children:Wt(Kt,{text:i?.privacy_policy??0,children:"Privacy policy"})}),Wt("div",{class:"stpd_consent_slider_wrapper",children:Wt("div",{class:"stpd_consent_box",children:[Wt("span",{class:"stpd_toggle_option",children:Wt(Kt,{text:a?.consent??0,children:"Consent"})}),Wt(Zt,{checked:s[o[e].provider_id],name:"nonGvlConsent",onClick:l,dataID:o[e].provider_id})]})})]},e)})},c=t=>{const s=Object.keys(r.vendors);let o=r.vendors[s[t]]?.urls?.find((t=>t.langId===p.toLowerCase()))||!1;return o=r.vendors[s[t]]?.policyUrl?r.vendors[s[t]]?.policyUrl:o?o.privacy:r.vendors[s[t]].urls.find((t=>"en"===t.langId))?.privacy||r.vendors[s[t]].urls[0].privacy,Wt("li",{children:[Wt("p",{class:"stpd_small_title stpd_vendor_name",children:r.vendors[s[t]].name}),Wt("a",{href:o||"none",class:"stpd_vendor_privacy_policy",target:"_blank",rel:"noopener noreferrer",children:Wt(Kt,{text:i?.privacy_policy??0,children:"Privacy policy"})}),Wt("div",{class:"stpd_consent_slider_wrapper",children:[0!=r.vendors[s[t]].purposes.length&&Wt("div",{class:"stpd_consent_box",children:[Wt("span",{class:"stpd_toggle_option",children:Wt(Kt,{text:a?.consent??0,children:"Consent"})}),Wt(Zt,{checked:e[s[t]],name:"vendorConsent",onClick:l,dataID:r.vendors[s[t]].id})]}),0!=r.vendors[s[t]].legIntPurposes.length&&Wt("div",{class:"stpd_consent_box",children:[Wt("span",{class:"stpd_toggle_option",children:Wt(Kt,{text:a?.leg_interest??0,children:"Legitimate interest"})}),Wt(Zt,{checked:n[s[t]],name:"vendorLegitimate",onClick:l,dataID:r.vendors[s[t]].id})]})]}),Wt(ne,{data:r,dataRetention:r.vendors[s[t]].dataRetention,purposes:r.vendors[s[t]].purposes,legIntPurposes:r.vendors[s[t]].legIntPurposes,specialPurposes:r.vendors[s[t]].specialPurposes,features:r.vendors[s[t]].features,specialFeatures:r.vendors[s[t]].specialFeatures,cookieMaxAgeSeconds:r.vendors[s[t]].cookieMaxAgeSeconds,usesCookies:r.vendors[s[t]].usesCookies,cookieRefresh:r.vendors[s[t]].cookieRefresh,translation_d:i?.v_dropdown??0,usesNonCookieAccess:r.vendors[s[t]].usesNonCookieAccess,translation_p:a})]})};return Wt("div",{class:"stpd_inner_wrapper stpd_vendor_wrapper",children:[Wt("p",{class:"stpd_title",children:Wt(Kt,{text:i?.title??0,children:"Vendor Settings"})}),Wt("p",{children:Wt(Kt,{text:i?.first_p??0,children:"Some Vendors do not request consent, but process your data based on their legitimate interests. You have a right to object to such processing."})}),Wt("p",{class:"stpd_medium_title stpd_vendor_distribution",children:Wt(Kt,{text:i?.v_r_distribution??0,children:"Registered TCF vendors"})}),Wt("p",{class:"stpd_vendor_distribution_info",children:Wt(Kt,{text:i?.v_n_distribution_info??0,children:"These vendors are officially registered with the IAB Europe Transparency and Consent Framework."})}),Wt(re,{numItems:Object.keys(r.vendors).length+Object.keys(o).length+1,renderItem:({index:t})=>Wt("div",{class:t==Object.keys(r.vendors).length&&"stpd_tcf_vendor_desc",children:tt(Jt.purposes),children:Wt(Kt,{text:p?.m_setting??0,children:"Manage settings"})}),i!=Jt.landingScreen&&Wt("button",{type:"submit",class:"stpd_submit_btn",onClick:e,children:Wt(Kt,{text:p?.c_choices??0,children:"Confirm choices"})}),r&&Wt("button",{type:"button",class:"stpd_submit_btn withdraw_consent",onClick:o(!0),children:Wt(Kt,{text:p?.wd_consent??0,children:"Withdraw consent"})}),!r&&s&&Wt("button",{type:"submit",class:"stpd_submit_btn",onClick:o(!1),children:Wt(Kt,{text:p?.reject_all??0,children:"Reject all"})})]}),Wt("button",{type:"submit",class:"stpd_submit_btn stpd_cta_btn",onClick:n,children:Wt(Kt,{text:p?.c_to_all??0,children:"Consent to all"})})]}),Wt("span",{class:"stpd_poweredby_setupad",children:["Powered by",Wt("a",{class:"stpd_poweredby_lnk",href:"https://setupad.com/?utm_source="+window.location.hostname.replace("www.","")+"&utm_medium=CMP&utm_campaign=promo",target:"_blank",rel:"noopener noreferrer nofollow","aria-label":"Setupad homepage",children:Wt("img",a?{src:"https://cmp.setupcmp.com/cmp/images/setupad_white.svg",height:"15",width:"70",alt:"Setupad powered by"}:{src:"https://cmp.setupcmp.com/cmp/images/setupad.svg",height:"15",width:"70",alt:"Setupad powered by"})})]})]})}(ie=oe||(oe={})).PING="ping",ie.GET_TC_DATA="getTCData",ie.GET_IN_APP_TC_DATA="getInAppTCData",ie.GET_VENDOR_LIST="getVendorList",ie.ADD_EVENT_LISTENER="addEventListener",ie.REMOVE_EVENT_LISTENER="removeEventListener",(pe=ae||(ae={})).STUB="stub",pe.LOADING="loading",pe.LOADED="loaded",pe.ERROR="error",(de=le||(le={})).VISIBLE="visible",de.HIDDEN="hidden",de.DISABLED="disabled",(ue=ce||(ce={})).TC_LOADED="tcloaded",ue.CMP_UI_SHOWN="cmpuishown",ue.USER_ACTION_COMPLETE="useractioncomplete";class Se{listenerId;callback;next;param;success=!0;constructor(t,e,n,s){Object.assign(this,{callback:t,listenerId:n,param:e,next:s});try{this.respond()}catch(t){this.invokeCallback(null)}}invokeCallback(t){const e=null!==t;"function"==typeof this.next?this.callback(this.next,t,e):this.callback(t,e)}}class Ee extends Se{respond(){this.throwIfParamInvalid(),this.invokeCallback(new Ve(this.param,this.listenerId))}throwIfParamInvalid(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}class Ie{eventQueue=new Map;queueNumber=0;add(t){return this.eventQueue.set(this.queueNumber,t),this.queueNumber++}remove(t){return this.eventQueue.delete(t)}exec(){this.eventQueue.forEach(((t,e)=>{new Ee(t.callback,t.param,e,t.next)}))}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}}class ke{static apiVersion="2";static tcfPolicyVersion;static eventQueue=new Ie;static cmpStatus=ae.LOADING;static disabled=!1;static displayStatus=le.HIDDEN;static cmpId;static cmpVersion;static eventStatus;static gdprApplies;static tcModel;static tcString;static reset(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=ae.LOADING,this.disabled=!1,this.displayStatus=le.HIDDEN,this.eventQueue.clear()}}class Le{cmpId=ke.cmpId;cmpVersion=ke.cmpVersion;gdprApplies=ke.gdprApplies;tcfPolicyVersion=ke.tcfPolicyVersion}class Te extends Le{cmpStatus=ae.ERROR}class Ve extends Le{tcString;listenerId;eventStatus;cmpStatus;isServiceSpecific;useNonStandardTexts;publisherCC;purposeOneTreatment;outOfBand;purpose;vendor;specialFeatureOptins;publisher;constructor(t,e){if(super(),this.eventStatus=ke.eventStatus,this.cmpStatus=ke.cmpStatus,this.listenerId=e,ke.gdprApplies){const e=ke.tcModel;this.tcString=ke.tcString,this.isServiceSpecific=e.isServiceSpecific,this.useNonStandardTexts=e.useNonStandardTexts,this.purposeOneTreatment=e.purposeOneTreatment,this.publisherCC=e.publisherCountryCode,this.outOfBand={allowedVendors:this.createVectorField(e.vendorsAllowed,t),disclosedVendors:this.createVectorField(e.vendorsDisclosed,t)},this.purpose={consents:this.createVectorField(e.purposeConsents),legitimateInterests:this.createVectorField(e.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(e.vendorConsents,t),legitimateInterests:this.createVectorField(e.vendorLegitimateInterests,t)},this.specialFeatureOptins=this.createVectorField(e.specialFeatureOptins),this.publisher={consents:this.createVectorField(e.publisherConsents),legitimateInterests:this.createVectorField(e.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(e.publisherCustomConsents),legitimateInterests:this.createVectorField(e.publisherCustomLegitimateInterests)},restrictions:this.createRestrictions(e.publisherRestrictions)}}}createRestrictions(t){const e={};if(t.numRestrictions>0){const n=t.getMaxVendorId();for(let s=1;s<=n;s++){const n=s.toString();t.getRestrictions(s).forEach((t=>{const s=t.purposeId.toString();e[s]||(e[s]={}),e[s][n]=t.restrictionType}))}}return e}createVectorField(t,e){return e?e.reduce(((e,n)=>(e[String(n)]=t.has(Number(n)),e)),{}):[...t].reduce(((t,e)=>(t[e[0].toString(10)]=e[1],t)),{})}}class Oe extends Ve{constructor(t){super(t),delete this.outOfBand}createVectorField(t){return[...t].reduce(((t,e)=>t+=e[1]?"1":"0"),"")}createRestrictions(t){const e={};if(t.numRestrictions>0){const n=t.getMaxVendorId();t.getRestrictions().forEach((t=>{e[t.purposeId.toString()]="_".repeat(n)}));for(let s=0;s{const n=t.restrictionType.toString(),r=t.purposeId.toString(),o=e[r].substr(0,s),i=e[r].substr(s+1);e[r]=o+n+i}))}}return e}}class Ae extends Le{cmpLoaded=!0;cmpStatus=ke.cmpStatus;displayStatus=ke.displayStatus;apiVersion=String(ke.apiVersion);gvlVersion;constructor(){super(),ke.tcModel&&ke.tcModel.vendorListVersion&&(this.gvlVersion=+ke.tcModel.vendorListVersion)}}class Pe extends Se{respond(){this.invokeCallback(new Ae)}}class Ne extends Ee{respond(){this.throwIfParamInvalid(),this.invokeCallback(new Oe(this.param))}}class Re extends Error{constructor(t){super(t),this.name="DecodingError"}}class De extends Error{constructor(t){super(t),this.name="EncodingError"}}class Fe extends Error{constructor(t){super(t),this.name="GVLError"}}class Ue extends Error{constructor(t,e,n=""){super(`invalid value ${e} passed for ${t} ${n}`),this.name="TCModelError"}}class Me{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(t){if(!/^[0-1]+$/.test(t))throw new De("Invalid bitField");const e=t.length%this.LCM;t+=e?"0".repeat(this.LCM-e):"";let n="";for(let e=0;e=2&&2==e.length){if(je.langSet.has(t))return t;if(je.langSet.has(e))return e;const n=e+"-"+e;if(je.langSet.has(n))return n;for(const n of je.langSet)if(-1!==n.indexOf(t)||-1!==n.indexOf(e))return n}throw new Error(`unsupported language ${t}`)}forEach(t){je.langSet.forEach(t)}get size(){return je.langSet.size}}class He{static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";static 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 ze{clone(){const t=new this.constructor;return Object.keys(this).forEach((e=>{const n=this.deepClone(this[e]);void 0!==n&&(t[e]=n)})),t}deepClone(t){const e=typeof t;if("number"===e||"string"===e||"boolean"===e)return t;if(null!==t&&"object"===e){if("function"==typeof t.clone)return t.clone();if(t instanceof Date)return new Date(t.getTime());if(void 0!==t[Symbol.iterator]){const e=[];for(const n of t)e.push(this.deepClone(n));return t instanceof Array?e:new t.constructor(e)}{const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=this.deepClone(t[n]));return e}}}}(me=_e||(_e={}))[me.NOT_ALLOWED=0]="NOT_ALLOWED",me[me.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",me[me.REQUIRE_LI=2]="REQUIRE_LI";class Ge extends ze{static hashSeparator="-";purposeId_;restrictionType;constructor(t,e){super(),void 0!==t&&(this.purposeId=t),void 0!==e&&(this.restrictionType=e)}static unHash(t){const e=t.split(this.hashSeparator),n=new Ge;if(2!==e.length)throw new Ue("hash",t);return n.purposeId=parseInt(e[0],10),n.restrictionType=parseInt(e[1],10),n}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${Ge.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(t){this.purposeId_=t}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===_e.NOT_ALLOWED||this.restrictionType===_e.REQUIRE_CONSENT||this.restrictionType===_e.REQUIRE_LI)}isSameAs(t){return this.purposeId===t.purposeId&&this.restrictionType===t.restrictionType}}class Be extends ze{bitLength=0;map=new Map;gvl_;has(t){return this.map.has(t)}isOkToHave(t,e,n){let s=!0;if(this.gvl?.vendors){const r=this.gvl.vendors[n];if(r)if(t===_e.NOT_ALLOWED)s=r.legIntPurposes.includes(e)||r.purposes.includes(e);else if(r.flexiblePurposes.length)switch(t){case _e.REQUIRE_CONSENT:s=r.flexiblePurposes.includes(e)&&r.legIntPurposes.includes(e);break;case _e.REQUIRE_LI:s=r.flexiblePurposes.includes(e)&&r.purposes.includes(e)}else s=!1;else s=!1}return s}add(t,e){if(this.isOkToHave(e.restrictionType,e.purposeId,t)){const n=e.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(t)}}restrictPurposeToLegalBasis(t,e=Array.from(this.gvl.vendorIds)){const n=t.hash;if(this.has(n)){const t=this.map.get(n);for(const n of e)t.add(n)}else this.map.set(n,new Set(e)),this.bitLength=0}getVendors(t){let e=[];if(t){const n=t.hash;this.has(n)&&(e=Array.from(this.map.get(n)))}else{const t=new Set;this.map.forEach((e=>{Array.from(e).forEach((e=>{t.add(e)}))})),e=Array.from(t)}return e.sort(((t,e)=>t-e))}getRestrictionType(t,e){let n;return this.getRestrictions(t).forEach((t=>{t.purposeId===e&&(void 0===n||n>t.restrictionType)&&(n=t.restrictionType)})),n}vendorHasRestriction(t,e){let n=!1;const s=this.getRestrictions(t);for(let t=0;t{const n=Array.from(e);t=Math.max(n[n.length-1],t)})),t}getRestrictions(t){const e=[];return this.map.forEach(((n,s)=>{t?n.has(t)&&e.push(Ge.unHash(s)):e.push(Ge.unHash(s))})),e}getPurposes(){const t=new Set;return this.map.forEach(((e,n)=>{t.add(Ge.unHash(n).purposeId)})),Array.from(t)}remove(t,e){const n=e.hash,s=this.map.get(n);s&&(s.delete(t),0==s.size&&(this.map.delete(n),this.bitLength=0))}set gvl(t){this.gvl_||(this.gvl_=t,this.map.forEach(((t,e)=>{const n=Ge.unHash(e);Array.from(t).forEach((e=>{this.isOkToHave(n.restrictionType,n.purposeId,e)||t.delete(e)}))})))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}(fe=he||(he={})).COOKIE="cookie",fe.WEB="web",fe.APP="app",(ve=ge||(ge={})).CORE="core",ve.VENDORS_DISCLOSED="vendorsDisclosed",ve.VENDORS_ALLOWED="vendorsAllowed",ve.PUBLISHER_TC="publisherTC";class $e{static ID_TO_KEY=[ge.CORE,ge.VENDORS_DISCLOSED,ge.VENDORS_ALLOWED,ge.PUBLISHER_TC];static KEY_TO_ID={[ge.CORE]:0,[ge.VENDORS_DISCLOSED]:1,[ge.VENDORS_ALLOWED]:2,[ge.PUBLISHER_TC]:3}}class We extends ze{bitLength=0;maxId_=0;set_=new Set;*[Symbol.iterator](){for(let t=1;t<=this.maxId;t++)yield[t,this.has(t)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(t){return this.set_.has(t)}unset(t){Array.isArray(t)?t.forEach((t=>this.unset(t))):"object"==typeof t?this.unset(Object.keys(t).map((t=>Number(t)))):(this.set_.delete(Number(t)),this.bitLength=0,t===this.maxId&&(this.maxId_=0,this.set_.forEach((t=>{this.maxId_=Math.max(this.maxId,t)}))))}isIntMap(t){let e="object"==typeof t;return e=e&&Object.keys(t).every((e=>{let n=Number.isInteger(parseInt(e,10));return n=n&&this.isValidNumber(t[e].id),n=n&&void 0!==t[e].name,n})),e}isValidNumber(t){return parseInt(t,10)>0}isSet(t){let e=!1;return t instanceof Set&&(e=Array.from(t).every(this.isValidNumber)),e}set(t){if(Array.isArray(t))t.forEach((t=>this.set(t)));else if(this.isSet(t))this.set(Array.from(t));else if(this.isIntMap(t))this.set(Object.keys(t).map((t=>Number(t))));else{if(!this.isValidNumber(t))throw new Ue("set()",t,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(t),this.maxId_=Math.max(this.maxId,t),this.bitLength=0}}empty(){this.set_=new Set}forEach(t){for(let e=1;e<=this.maxId;e++)t(this.has(e),e)}get size(){return this.set_.size}setAll(t){this.set(t)}}class Qe{static[He.cmpId]=12;static[He.cmpVersion]=12;static[He.consentLanguage]=12;static[He.consentScreen]=6;static[He.created]=36;static[He.isServiceSpecific]=1;static[He.lastUpdated]=36;static[He.policyVersion]=6;static[He.publisherCountryCode]=12;static[He.publisherLegitimateInterests]=24;static[He.publisherConsents]=24;static[He.purposeConsents]=24;static[He.purposeLegitimateInterests]=24;static[He.purposeOneTreatment]=1;static[He.specialFeatureOptins]=12;static[He.useNonStandardTexts]=1;static[He.vendorListVersion]=12;static[He.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 Je{static encode(t){return String(Number(t))}static decode(t){return"1"===t}}class qe{static encode(t,e){let n;if("string"==typeof t&&(t=parseInt(t,10)),n=t.toString(2),n.length>e||t<0)throw new De(`${t} too large to encode into ${e}`);return n.length25||s<0||s>25)throw new De(`invalid language code: ${t}`);if(e%2==1)throw new De(`numBits must be even, ${e} is not valid`);return qe.encode(n,e/=2)+qe.encode(s,e)}static decode(t,e){let n;if(e!==t.length||t.length%2)throw new Re("invalid bit length for language");{const e=65,s=t.length/2,r=qe.decode(t.slice(0,s),s)+e,o=qe.decode(t.slice(s),s)+e;n=String.fromCharCode(r)+String.fromCharCode(o)}return n}}class Ze{static encode(t){let e=qe.encode(t.numRestrictions,Qe.numRestrictions);if(!t.isEmpty()){const n=Array.from(t.gvl.vendorIds),s=(t,e)=>{const s=n.indexOf(t);return n.indexOf(e)-s>1};t.getRestrictions().forEach((n=>{e+=qe.encode(n.purposeId,Qe.purposeId),e+=qe.encode(n.restrictionType,Qe.restrictionType);const r=t.getVendors(n),o=r.length;let i=0,a=0,p="";for(let t=0;tr+e));n.restrictPurposeToLegalBasis(o,i)}else n.restrictPurposeToLegalBasis(o,[r])}}return n.bitLength=e,n}}(ye=be||(be={}))[ye.FIELD=0]="FIELD",ye[ye.RANGE=1]="RANGE";class tn{static encode(t){const e=[];let n,s=[],r=qe.encode(t.maxId,Qe.maxId),o="";const i=Qe.maxId+Qe.encodingType,a=i+t.maxId,p=2*Qe.vendorId+Qe.singleOrRange+Qe.numEntries;let l=i+Qe.numEntries;return t.forEach(((r,i)=>{if(o+=Je.encode(r),n=t.maxId>p&&l{const e=1===t.length;n+=Je.encode(!e),n+=qe.encode(t[0],Qe.vendorId),e||(n+=qe.encode(t[1],Qe.vendorId))})),n}}function en(){return{[He.version]:qe,[He.created]:Ye,[He.lastUpdated]:Ye,[He.cmpId]:qe,[He.cmpVersion]:qe,[He.consentScreen]:qe,[He.consentLanguage]:Xe,[He.vendorListVersion]:qe,[He.policyVersion]:qe,[He.isServiceSpecific]:Je,[He.useNonStandardTexts]:Je,[He.specialFeatureOptins]:Ke,[He.purposeConsents]:Ke,[He.purposeLegitimateInterests]:Ke,[He.purposeOneTreatment]:Je,[He.publisherCountryCode]:Xe,[He.vendorConsents]:tn,[He.vendorLegitimateInterests]:tn,[He.publisherRestrictions]:Ze,segmentType:qe,[He.vendorsDisclosed]:tn,[He.vendorsAllowed]:tn,[He.publisherConsents]:Ke,[He.publisherLegitimateInterests]:Ke,[He.numCustomPurposes]:qe,[He.publisherCustomConsents]:Ke,[He.publisherCustomLegitimateInterests]:Ke}}class nn{1={[ge.CORE]:[He.version,He.created,He.lastUpdated,He.cmpId,He.cmpVersion,He.consentScreen,He.consentLanguage,He.vendorListVersion,He.purposeConsents,He.vendorConsents]};2={[ge.CORE]:[He.version,He.created,He.lastUpdated,He.cmpId,He.cmpVersion,He.consentScreen,He.consentLanguage,He.vendorListVersion,He.policyVersion,He.isServiceSpecific,He.useNonStandardTexts,He.specialFeatureOptins,He.purposeConsents,He.purposeLegitimateInterests,He.purposeOneTreatment,He.publisherCountryCode,He.vendorConsents,He.vendorLegitimateInterests,He.publisherRestrictions],[ge.PUBLISHER_TC]:[He.publisherConsents,He.publisherLegitimateInterests,He.numCustomPurposes,He.publisherCustomConsents,He.publisherCustomLegitimateInterests],[ge.VENDORS_ALLOWED]:[He.vendorsAllowed],[ge.VENDORS_DISCLOSED]:[He.vendorsDisclosed]}}class sn{1=[ge.CORE];2=[ge.CORE];constructor(t,e){if(2===t.version)if(t.isServiceSpecific)this[2].push(ge.PUBLISHER_TC);else{const n=!(!e||!e.isForVendors);n&&!0!==t[He.supportOOB]||this[2].push(ge.VENDORS_DISCLOSED),n&&(t[He.supportOOB]&&t[He.vendorsAllowed].size>0&&this[2].push(ge.VENDORS_ALLOWED),this[2].push(ge.PUBLISHER_TC))}}}class rn{static fieldSequence=new nn;static encode(t,e){let n;try{n=this.fieldSequence[String(t.version)][e]}catch(n){throw new De(`Unable to encode version: ${t.version}, segment: ${e}`)}let s="";e!==ge.CORE&&(s=qe.encode($e.KEY_TO_ID[e],Qe.segmentType));const r=en();return n.forEach((n=>{const o=t[n],i=r[n];let a=Qe[n];void 0===a&&this.isPublisherCustom(n)&&(a=Number(t[He.numCustomPurposes]));try{s+=i.encode(o,a)}catch(t){throw new De(`Error encoding ${e}->${n}: ${t.message}`)}})),Me.encode(s)}static decode(t,e,n){const s=Me.decode(t);let r=0;n===ge.CORE&&(e.version=qe.decode(s.substr(r,Qe[He.version]),Qe[He.version])),n!==ge.CORE&&(r+=Qe.segmentType);const o=this.fieldSequence[String(e.version)][n],i=en();return o.forEach((t=>{const n=i[t];let o=Qe[t];if(void 0===o&&this.isPublisherCustom(t)&&(o=Number(e[He.numCustomPurposes])),0!==o){const i=s.substr(r,o);if(e[t]=n===tn?n.decode(i,e.version):n.decode(i,o),Number.isInteger(o))r+=o;else{if(!Number.isInteger(e[t].bitLength))throw new Re(t);r+=e[t].bitLength}}})),e}static isPublisherCustom(t){return 0===t.indexOf("publisherCustom")}}class on{static processor=[t=>t,(t,e)=>{t.publisherRestrictions.gvl=e,t.purposeLegitimateInterests.unset([1,3,4,5,6]);const n=new Map;return n.set("legIntPurposes",t.vendorLegitimateInterests),n.set("purposes",t.vendorConsents),n.forEach(((n,s)=>{n.forEach(((r,o)=>{if(r){const r=e.vendors[o];if(!r||r.deletedDate)n.unset(o);else if(0===r[s].length)if("legIntPurposes"===s&&0===r.purposes.length&&0===r.legIntPurposes.length&&r.specialPurposes.length>0);else if(t.isServiceSpecific)if(0===r.flexiblePurposes.length)n.unset(o);else{const e=t.publisherRestrictions.getRestrictions(o);let r=!1;for(let t=0,n=e.length;t0&&e?.version<=this.processor.length?t.version=e.version:t.version=this.processor.length;const s=t.version-1;if(!this.processor[s])throw new De(`Invalid version: ${t.version}`);return this.processor[s](t,n)}}class an{static absCall(t,e,n,s){return new Promise(((r,o)=>{const i=new XMLHttpRequest;i.withCredentials=n,i.addEventListener("load",(()=>{if(i.readyState==XMLHttpRequest.DONE)if(i.status>=200&&i.status<300){let t=i.response;if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}r(t)}else o(new Error(`HTTP Status: ${i.status} response type: ${i.responseType}`))})),i.addEventListener("error",(()=>{o(new Error("error"))})),i.addEventListener("abort",(()=>{o(new Error("aborted"))})),null===e?i.open("GET",t,!0):i.open("POST",t,!0),i.responseType="json",i.timeout=s,i.ontimeout=()=>{o(new Error("Timeout "+s+"ms "+t))},i.send(e)}))}static post(t,e,n=!1,s=0){return this.absCall(t,JSON.stringify(e),n,s)}static fetch(t,e=!1,n=0){return this.absCall(t,null,e,n)}}class pn extends ze{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new je;static baseUrl_;static set baseUrl(t){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(t))throw new Fe("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");t.length>0&&"/"!==t[t.length-1]&&(t+="/"),this.baseUrl_=t}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(t){super();let e=pn.baseUrl;if(this.lang_=pn.DEFAULT_LANGUAGE,this.cacheLang_=pn.DEFAULT_LANGUAGE,this.isVendorList(t))this.populate(t),this.readyPromise=Promise.resolve();else{if(!e)throw new Fe("must specify GVL.baseUrl before loading GVL json");if(t>0){const n=t;pn.CACHE.has(n)?(this.populate(pn.CACHE.get(n)),this.readyPromise=Promise.resolve()):(e+=pn.versionedFilename.replace("[VERSION]",String(n)),this.readyPromise=this.fetchJson(e))}else pn.CACHE.has(pn.LATEST_CACHE_KEY)?(this.populate(pn.CACHE.get(pn.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(e+pn.latestFilename))}}static emptyLanguageCache(t){let e=!1;return null==t&&pn.LANGUAGE_CACHE.size>0?(pn.LANGUAGE_CACHE=new Map,e=!0):"string"==typeof t&&this.consentLanguages.has(t.toUpperCase())&&(pn.LANGUAGE_CACHE.delete(t.toUpperCase()),e=!0),e}static emptyCache(t){let e=!1;return Number.isInteger(t)&&t>=0?(pn.CACHE.delete(t),e=!0):void 0===t&&(pn.CACHE=new Map,e=!0),e}cacheLanguage(){pn.LANGUAGE_CACHE.has(this.cacheLang_)||pn.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}async fetchJson(t){try{this.populate(await an.fetch(t))}catch(t){throw new Fe(t.message)}}getJson(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}async changeLanguage(t){let e=t;try{e=pn.consentLanguages.parseLanguage(t)}catch(t){throw new Fe("Error during parsing the language: "+t.message)}const n=t.toUpperCase();if((e.toLowerCase()!==pn.DEFAULT_LANGUAGE.toLowerCase()||pn.LANGUAGE_CACHE.has(n))&&e!==this.lang_)if(this.lang_=e,pn.LANGUAGE_CACHE.has(n)){const t=pn.LANGUAGE_CACHE.get(n);for(const e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}else{const t=pn.baseUrl+pn.languageFilename.replace("[LANG]",this.lang_.toLowerCase());try{await this.fetchJson(t),this.cacheLang_=n,this.cacheLanguage()}catch(t){throw new Fe("unable to load language: "+t.message)}}}get language(){return this.lang_}isVendorList(t){return void 0!==t&&void 0!==t.vendors}populate(t){this.purposes=t.purposes,this.specialPurposes=t.specialPurposes,this.features=t.features,this.specialFeatures=t.specialFeatures,this.stacks=t.stacks,this.dataCategories=t.dataCategories,this.isVendorList(t)&&(this.gvlSpecificationVersion=t.gvlSpecificationVersion,this.tcfPolicyVersion=t.tcfPolicyVersion,this.vendorListVersion=t.vendorListVersion,this.lastUpdated=t.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=t.vendors,this.fullVendorList=t.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&pn.CACHE.set(pn.LATEST_CACHE_KEY,this.getJson()),pn.CACHE.has(this.vendorListVersion)||pn.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(t){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((t=>{this.byPurposeVendorMap[t]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((t=>{this.bySpecialPurposeVendorMap[t]=new Set})),Object.keys(this.features).forEach((t=>{this.byFeatureVendorMap[t]=new Set})),Object.keys(this.specialFeatures).forEach((t=>{this.bySpecialFeatureVendorMap[t]=new Set})),Array.isArray(t)||(t=Object.keys(this.fullVendorList).map((t=>+t))),this.vendorIds=new Set(t),this.vendors_=t.reduce(((t,e)=>{const n=this.vendors_[String(e)];return n&&void 0===n.deletedDate&&(n.purposes.forEach((t=>{this.byPurposeVendorMap[String(t)].consent.add(e)})),n.specialPurposes.forEach((t=>{this.bySpecialPurposeVendorMap[String(t)].add(e)})),n.legIntPurposes.forEach((t=>{this.byPurposeVendorMap[String(t)].legInt.add(e)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((t=>{this.byPurposeVendorMap[String(t)].flexible.add(e)})),n.features.forEach((t=>{this.byFeatureVendorMap[String(t)].add(e)})),n.specialFeatures.forEach((t=>{this.bySpecialFeatureVendorMap[String(t)].add(e)})),t[e]=n),t}),{})}getFilteredVendors(t,e,n,s){const r=t.charAt(0).toUpperCase()+t.slice(1);let o;const i={};return o="purpose"===t&&n?this["by"+r+"VendorMap"][String(e)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(e)],o.forEach((t=>{i[String(t)]=this.vendors[String(t)]})),i}getVendorsWithConsentPurpose(t){return this.getFilteredVendors("purpose",t,"consent")}getVendorsWithLegIntPurpose(t){return this.getFilteredVendors("purpose",t,"legInt")}getVendorsWithFlexiblePurpose(t){return this.getFilteredVendors("purpose",t,"flexible")}getVendorsWithSpecialPurpose(t){return this.getFilteredVendors("purpose",t,void 0,!0)}getVendorsWithFeature(t){return this.getFilteredVendors("feature",t)}getVendorsWithSpecialFeature(t){return this.getFilteredVendors("feature",t,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(t){this.mapVendors(t)}get isReady(){return this.isReady_}clone(){const t=new pn(this.getJson());return this.lang_!==pn.DEFAULT_LANGUAGE&&t.changeLanguage(this.lang_),t}static isInstanceOf(t){return"object"==typeof t&&"function"==typeof t.narrowVendorsTo}}class ln extends ze{static consentLanguages=pn.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 We;purposeConsents=new We;purposeLegitimateInterests=new We;publisherConsents=new We;publisherLegitimateInterests=new We;publisherCustomConsents=new We;publisherCustomLegitimateInterests=new We;customPurposes;vendorConsents=new We;vendorLegitimateInterests=new We;vendorsDisclosed=new We;vendorsAllowed=new We;publisherRestrictions=new Be;constructor(t){super(),t&&(this.gvl=t),this.updated()}set gvl(t){pn.isInstanceOf(t)||(t=new pn(t)),this.gvl_=t,this.publisherRestrictions.gvl=t}get gvl(){return this.gvl_}set cmpId(t){if(t=Number(t),!(Number.isInteger(t)&&t>1))throw new Ue("cmpId",t);this.cmpId_=t}get cmpId(){return this.cmpId_}set cmpVersion(t){if(t=Number(t),!(Number.isInteger(t)&&t>-1))throw new Ue("cmpVersion",t);this.cmpVersion_=t}get cmpVersion(){return this.cmpVersion_}set consentScreen(t){if(t=Number(t),!(Number.isInteger(t)&&t>-1))throw new Ue("consentScreen",t);this.consentScreen_=t}get consentScreen(){return this.consentScreen_}set consentLanguage(t){this.consentLanguage_=t}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(t){if(!/^([A-z]){2}$/.test(t))throw new Ue("publisherCountryCode",t);this.publisherCountryCode_=t.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(t){if((t=Number(t)>>0)<0)throw new Ue("vendorListVersion",t);this.vendorListVersion_=t}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(t){if(this.policyVersion_=parseInt(t,10),this.policyVersion_<0)throw new Ue("policyVersion",t)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(t){this.version_=parseInt(t,10)}get version(){return this.version_}set isServiceSpecific(t){this.isServiceSpecific_=t}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(t){this.useNonStandardTexts_=t}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(t){this.supportOOB_=t}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(t){this.purposeOneTreatment_=t}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 t=this.numCustomPurposes_;if("object"==typeof this.customPurposes){const e=Object.keys(this.customPurposes).sort(((t,e)=>Number(t)-Number(e)));t=parseInt(e.pop(),10)}return t}set numCustomPurposes(t){if(this.numCustomPurposes_=parseInt(t,10),this.numCustomPurposes_<0)throw new Ue("numCustomPurposes",t)}updated(){const t=new Date,e=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));this.created=e,this.lastUpdated=e}}class dn{static encode(t,e){let n,s="";return t=on.process(t,e),n=Array.isArray(e?.segments)?e.segments:new sn(t,e)[""+t.version],n.forEach(((e,r)=>{let o="";r{this.invokeCallback(n.getJson())}))}}class un extends Ee{respond(){this.listenerId=ke.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}}class _n extends Se{respond(){this.invokeCallback(ke.eventQueue.remove(this.param))}}class mn{static[oe.PING]=Pe;static[oe.GET_TC_DATA]=Ee;static[oe.GET_IN_APP_TC_DATA]=Ne;static[oe.GET_VENDOR_LIST]=cn;static[oe.ADD_EVENT_LISTENER]=un;static[oe.REMOVE_EVENT_LISTENER]=_n}class hn{static set_=new Set([0,2,void 0,null]);static has(t){return"string"==typeof t&&(t=Number(t)),this.set_.has(t)}}const fn="__tcfapi";class gn{callQueue;customCommands;constructor(t){if(t){let e=oe.ADD_EVENT_LISTENER;if(t?.[e])throw new Error(`Built-In Custom Commmand for ${e} not allowed: Use ${oe.GET_TC_DATA} instead`);if(e=oe.REMOVE_EVENT_LISTENER,t?.[e])throw new Error(`Built-In Custom Commmand for ${e} not allowed`);t?.[oe.GET_TC_DATA]&&(t[oe.ADD_EVENT_LISTENER]=t[oe.GET_TC_DATA],t[oe.REMOVE_EVENT_LISTENER]=t[oe.GET_TC_DATA]),this.customCommands=t}try{this.callQueue=window[fn]()||[]}catch(t){this.callQueue=[]}finally{window[fn]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(t,e,n,...s){if("string"!=typeof t)n(null,!1);else if(hn.has(e)){if("function"!=typeof n)throw new Error("invalid callback function");ke.disabled?n(new Te,!1):this.isCustomCommand(t)||this.isBuiltInCommand(t)?this.isCustomCommand(t)&&!this.isBuiltInCommand(t)?this.customCommands[t](n,...s):t===oe.PING?this.isCustomCommand(t)?new mn[t](this.customCommands[t],s[0],null,n):new mn[t](n,s[0]):void 0===ke.tcModel?this.callQueue.push([t,e,n,...s]):this.isCustomCommand(t)&&this.isBuiltInCommand(t)?new mn[t](this.customCommands[t],s[0],null,n):new mn[t](n,s[0]):n(null,!1)}else n(null,!1)}purgeQueuedCalls(){const t=this.callQueue;this.callQueue=[],t.forEach((t=>{window[fn](...t)}))}isCustomCommand(t){return this.customCommands&&"function"==typeof this.customCommands[t]}isBuiltInCommand(t){return void 0!==mn[t]}}class vn{callResponder;isServiceSpecific;numUpdates=0;constructor(t,e,n=!1,s){this.throwIfInvalidInt(t,"cmpId",2),this.throwIfInvalidInt(e,"cmpVersion",0),ke.cmpId=t,ke.cmpVersion=e,ke.tcfPolicyVersion=4,this.isServiceSpecific=!!n,this.callResponder=new gn(s)}throwIfInvalidInt(t,e,n){if(!("number"==typeof t&&Number.isInteger(t)&&t>=n))throw new Error(`Invalid ${e}: ${t}`)}update(t,e=!1){if(ke.disabled)throw new Error("CmpApi Disabled");ke.cmpStatus=ae.LOADED,e?(ke.displayStatus=le.VISIBLE,ke.eventStatus=ce.CMP_UI_SHOWN):void 0===ke.tcModel?(ke.displayStatus=le.DISABLED,ke.eventStatus=ce.TC_LOADED):(ke.displayStatus=le.HIDDEN,ke.eventStatus=ce.USER_ACTION_COMPLETE),(ke.gdprApplies=null!==t)?(""===t?((ke.tcModel=new ln).cmpId=ke.cmpId,ke.tcModel.cmpVersion=ke.cmpVersion):ke.tcModel=dn.decode(t),ke.tcModel.isServiceSpecific=this.isServiceSpecific,ke.tcfPolicyVersion=Number(ke.tcModel.policyVersion),ke.tcString=t):ke.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():ke.eventQueue.exec(),this.numUpdates++}disable(){ke.disabled=!0,ke.cmpStatus=ae.ERROR}}var bn='.stpd_cmp hr{all:revert;box-sizing:content-box;height:0;overflow:visible}.stpd_cmp pre{all:revert;font-family:monospace,monospace;font-size:1em}.stpd_cmp a{all:revert;background-color:transparent}.stpd_cmp abbr[title]{all:revert;border-bottom:none;text-decoration:underline;text-decoration:underline dotted}.stpd_cmp b,.stpd_cmp strong{all:revert;font-weight:bolder}.stpd_cmp small{all:revert;font-size:80%}.stpd_cmp img{border-style:none}.stpd_cmp button,.stpd_cmp input{font-family:inherit;font-size:100%;line-height:1.15;margin:0;overflow:visible}.stpd_cmp button,.stpd_cmp select{text-transform:none}.stpd_cmp [type=button],.stpd_cmp [type=reset],.stpd_cmp [type=submit],.stpd_cmp button{-webkit-appearance:button}.stpd_cmp [type=button]::-moz-focus-inner,.stpd_cmp [type=reset]::-moz-focus-inner,.stpd_cmp [type=submit]::-moz-focus-inner,.stpd_cmp button::-moz-focus-inner{border-style:none;padding:0}.stpd_cmp [type=button]:-moz-focusring,.stpd_cmp [type=reset]:-moz-focusring,.stpd_cmp [type=submit]:-moz-focusring,.stpd_cmp button:-moz-focusring{outline:1px dotted ButtonText}.stpd_cmp [type=checkbox],.stpd_cmp [type=radio]{all:revert;box-sizing:border-box;padding:0}.stpd_cmp [type=number]::-webkit-inner-spin-button,.stpd_cmp [type=number]::-webkit-outer-spin-button{all:revert;height:auto}.stpd_cmp [type=search]{all:revert;-webkit-appearance:textfield;outline-offset:-2px}.stpd_cmp [type=search]::-webkit-search-decoration{all:revert;-webkit-appearance:none}.stpd_cmp [hidden]{all:revert;display:none}.stpd_cmp a,.stpd_cmp b,.stpd_cmp button,.stpd_cmp center,.stpd_cmp dd,.stpd_cmp div,.stpd_cmp dl,.stpd_cmp dt,.stpd_cmp form,.stpd_cmp i,.stpd_cmp img,.stpd_cmp li,.stpd_cmp ol,.stpd_cmp p,.stpd_cmp q,.stpd_cmp s,.stpd_cmp samp,.stpd_cmp section,.stpd_cmp small,.stpd_cmp span,.stpd_cmp strike,.stpd_cmp strong,.stpd_cmp table,.stpd_cmp td,.stpd_cmp th,.stpd_cmp tr,.stpd_cmp u,.stpd_cmp ul{all:revert;border:0;color:#383838;font-family:Arial,Helvetica,sans-serif;font-size:100%;margin:0;padding:0;vertical-align:baseline}.stpd_cmp *{color:inherit}.stpd ul li:before{color:transparent;content:""}button,input{-webkit-tap-highlight-color:rgba(0,0,0,0)}.stpd_cmp ol,.stpd_cmp ul{all:revert;list-style:none}.stpd_cmp img{all:revert;border:none;height:20px;margin:0;padding:0;width:auto}.stpd_cmp table{all:revert;border-collapse:collapse;border-spacing:0}.stpd_cmp{width:100%!important;z-index:2147483647!important}.stpd_cmp p{font-size:14px!important;line-height:1.25em!important;margin-bottom:10px!important;text-align:justify!important}.stpd_cmp a{color:#104e66!important}.stpd_dark.stpd_cmp a{color:#1ab6c5!important}.stpd_cmp button{font-size:12px!important;text-transform:uppercase!important}.stpd_cmp_wrapper{background-color:rgba(94,94,94,.5)!important;height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:2147483647!important}.stpd_cmp .stpd_front_title,.stpd_cmp .stpd_title{background-color:transparent!important;font-size:15px!important;font-weight:700!important;left:50%!important;margin:0!important;position:absolute!important;text-align:center!important;top:23px!important;transform:translate(-50%,-50%)!important}.stpd_front_title_wrapper{background-color:transparent!important;padding-bottom:1px!important;padding-top:0!important}.stpd_cmp .stpd_front_title{font-size:20px!important;font-weight:700!important;margin:0!important;text-align:center!important}.stpd_cmp .stpd_value_title{font-size:18px!important;font-weight:700!important;margin-bottom:15px!important}.stpd_cmp .stpd_medium_title{font-size:18px!important;font-weight:700!important;margin:20px 0 10px!important}.stpd_cmp .stpd_small_title{font-weight:700!important;margin:15px 0 10px!important;text-align:left!important}.stpd_cmp h1{font-size:1.5em!important}.stpd_cmp h2{font-size:1.25em!important}.stpd_button_wrapper button{height:40px!important;width:100%!important}.stpd_cmp span{width:100%!important}.stpd_cmp ul{list-style-type:none!important;padding:0!important}.stpd_cmp li{border:1px solid #c7c7c7!important;border-radius:.5em!important;list-style:none!important;margin-bottom:10px!important;padding:0 15px!important}.stpd_cmp ::-webkit-scrollbar{width:12px!important}.stpd_cmp ::-webkit-scrollbar-thumb{background-clip:padding-box!important;background-color:rgba(0,0,0,.2)!important;border:solid transparent!important;border-radius:2em!important;cursor:pointer!important}.stpd_cmp ::-webkit-scrollbar-track{background:transparent!important}.stpd_cmp_form>div:first-child{display:none!important}.stpd_inner_wrapper{height:100%!important;margin-right:-40px!important;overflow-x:hidden!important;overflow-y:scroll!important;width:100%!important}@-moz-document url-prefix(){.stpd_inner_wrapper{padding-right:40px!important}}.stpd_landing_vendors{cursor:pointer!important;padding:0 4px!important}.stpd_landing_vendors,.stpd_privacy_policy{color:#1ab6c5!important;text-decoration:none!important}.stpd_privacy_policy{margin-left:.2em!important}.stpd_privacy_policy:visited{color:#1ab6c5!important}.stpd_consent_slider_wrapper{margin:auto 0 10px!important}.stpd_consent_box{align-items:center!important;display:flex!important;margin-bottom:15px!important;text-align:left!important;width:100%!important}.stpd_cmp .stpd_vendor_distribution{margin-bottom:0!important;text-align:left!important}.stpd_vendor_distribution_info{display:block!important;margin-bottom:15px!important;text-align:left!important}.stpd_inner>div.stpd_tcf_vendor_desc{width:100%!important}.stpd_vendor_name{font-size:16px!important;margin-bottom:0!important;margin-top:15px!important}.stpd_vendor_privacy_policy{display:block!important;font-size:12px!important;margin-bottom:20px!important;margin-top:5px!important;text-decoration:none!important;width:fit-content!important}.stpd_vendor_privacy_policy:visited{color:#104e66 important}.stpd_dark .stpd_vendor_privacy_policy:visited{color:#1ab6c5!important}.stpd_cmp button{cursor:pointer!important}.stpd_vendor_list_btn{border:none!important;height:20px!important;margin-top:10px!important;width:130px!important;width:100%!important}.stpd_vendor_list_btn,.stpd_vendor_list_btn:hover{background-color:transparent!important;color:#104e66!important}.stpd_vendor_list_btn:hover{text-decoration:underline!important}.stpd_dark .stpd_vendor_list_btn,.stpd_dark .stpd_vendor_list_btn:hover{color:#1ab6c5!important}.stpd_dropdown_wrapper{background-color:#f5f3f3!important;border-top-left-radius:2em!important;border-top-right-radius:2em!important;cursor:pointer!important;padding:0 10px 1px!important}.stpd_dropdown_btn,.stpd_dropdown_btn:hover{background-color:transparent!important;border:none!important;border-top-left-radius:2em!important;border-top-right-radius:2em!important;cursor:pointer!important;height:30px!important;width:100%!important}.stpd_dropdown_titles{font-size:13px!important;font-weight:600!important;margin:15px 0 10px!important;text-align:left!important}.stpd_dropdown_wrapper .stpd_dropdown_ul{list-style-type:disc!important;padding-left:15px!important}.stpd_dropdown_wrapper .stpd_dropdown_li{border:none!important;border-radius:0!important;font-size:13px!important;list-style-type:disc!important;margin:0!important;padding:0 0 10px!important;text-align:left!important}.stpd_switch{display:inline-block!important;height:25px!important;position:relative!important;width:45px!important}.stpd_switch input{height:0!important;opacity:0!important;width:0!important}.stpd_slider{background-color:#888!important;bottom:0!important;cursor:pointer!important;left:0!important;min-width:39px!important;right:0!important;top:0!important}.stpd_slider,.stpd_slider:before{border-radius:2em!important;position:absolute!important;-webkit-transition:.4s!important;transition:.4s!important}.stpd_slider:before{background-color:#fff!important;bottom:2px!important;content:""!important;height:21px!important;left:2px!important;width:21px!important}.stpd_cmp input:checked+.stpd_slider{background-color:#1ab6c5!important}.stpd_cmp input:focus+.stpd_slider{box-shadow:0 0 1px #1ab6c5!important}.stpd_cmp input:checked+.stpd_slider:before{-webkit-transform:translateX(15px)!important;-ms-transform:translateX(15px)!important;transform:translateX(15px)!important}.stpd_toggle_option{font-size:14px!important;font-weight:600!important}.stpd_manual_resurface{height:40px!important;position:fixed!important;width:40px!important;z-index:2147483647!important}.stpd_manual_resurface_tl{left:3px!important;top:4px!important}.stpd_manual_resurface_tr{right:3px!important;top:4px!important}.stpd_manual_resurface_ml{left:3px!important;top:50%!important;transform:translate(-50%)}.stpd_manual_resurface_mr{right:3px!important;top:50%!important;transform:translate(-50%)}.stpd_manual_resurface_bl{bottom:4px!important;left:3px!important}.stpd_manual_resurface_br{bottom:4px!important;right:3px!important}.stpd_manual_resurface .stpd_tooltiptext_l{left:110%!important}.stpd_manual_resurface .stpd_tooltiptext_l:after{left:-6px!important;transform:rotate(180deg)!important}.stpd_manual_resurface .stpd_tooltiptext_r{right:110%!important}.stpd_manual_resurface .stpd_tooltiptext_r:after{left:100%!important}.stpd_manual_resurface button{align-items:center!important;background-color:#ddd!important;border:0 solid!important;border-radius:50%!important;color:#fff!important;display:flex!important;height:100%!important;justify-content:center!important;position:relative;transition:background-color .9s ease!important;width:100%!important}.stpd_manual_resurface button svg{display:block!important}.stpd_manual_resurface button:focus,.stpd_manual_resurface button:hover{background-color:#1ab6c5!important;color:#fff!important}.stpd_manual_resurface .stpd_tooltiptext{background-color:#000!important;border-radius:6px!important;color:#fff!important;font-size:13px!important;padding:7px 0!important;position:absolute!important;text-align:center!important;top:50%;transform:translateY(-50%);visibility:hidden!important;width:180px!important;z-index:1!important}.stpd_manual_resurface .stpd_tooltiptext:after{border:3px solid transparent!important;border-left-color:#000!important;content:""!important;margin-top:-3px!important;position:absolute!important;top:50%!important}.stpd_manual_resurface:hover .stpd_tooltiptext{visibility:visible!important}.stpd_loading{background:transparent!important;border:7px solid transparent!important;border-radius:50%!important;height:80px!important;left:50%!important;position:absolute!important;top:50%!important;transform:translate(-50%,-50%)!important;width:80px!important}.stpd_loading:before{animation:stpd_animateC 2s linear infinite!important;border-right:7px solid transparent!important;border-top:7px solid transparent!important;border-color:#cecece #cecece transparent transparent!important;border-radius:50%!important;border-style:solid!important;border-width:7px!important;content:""!important;height:100%!important;left:-7px!important;position:absolute!important;top:-7px!important;width:100%!important}@media screen and (max-width:500px){.stpd_inner_wrapper{padding-right:10px!important}.stpd_inner_wrapper,.stpd_inner_wrapper.stpd_vendor_wrapper{margin-right:-20px!important}@-moz-document url-prefix(){.stpd_inner_wrapper{padding-right:20px!important}}.stpd_manual_resurface{width:40px!important}.stpd_vendor_list_btn{text-decoration:underline!important}.stpd_return_btn:hover{background-color:transparent!important;color:#e4e4e4!important}}.stpd_button_wrapper{box-shadow:0 -6px 5px -5px rgba(0,0,0,.2)!important;padding-bottom:7px!important;padding-top:10px!important}.stpd_submit_btn{background-color:transparent!important;border:1px solid #104e66!important;border-radius:2rem!important;color:#104e66!important;font-weight:700!important}.stpd_dark .stpd_submit_btn{border:1px solid #1ab6c5!important;color:#1ab6c5!important}.stpd_flexed_btns{display:flex!important;gap:10px!important;padding-bottom:10px!important}.stpd_cmp_close_btn{background-color:transparent!important;border:none!important;cursor:pointer!important;height:19px!important;opacity:.3!important;position:absolute!important;right:15px!important;top:15px!important;width:20px!important}.stpd_cmp_close_btn:hover{background-color:transparent!important;opacity:1!important}.stpd_cmp_close_btn:after,.stpd_cmp_close_btn:before{background-color:#333!important;content:" "!important;height:25px!important;left:9px!important;position:absolute!important;top:-3px!important;width:2px!important}.stpd_cmp_close_btn:before{transform:rotate(45deg)!important}.stpd_cmp_close_btn:after{transform:rotate(-45deg)!important}.stpd_return_btn{background-color:transparent!important;border:none!important;color:#e4e4e4!important;left:15px!important;position:absolute!important;top:11px!important;width:auto!important}.stpd_return_btn span{font-size:16px!important;padding-right:2px!important}.stpd_cmp p.stpd_small_title.stpd_vendor_name{margin-bottom:0!important}.stpd_return_btn:hover{background-color:transparent!important;color:#104e66!important}.stpd_cta_btn{background-color:#104e66!important;color:#fff!important}.stpd_dark .stpd_cta_btn{background-color:#1ab6c5!important;color:#fff!important}.stpd_cta_btn:hover{filter:brightness(93%)!important}.stpd_privacy_link_all_text{font-size:14px!important;padding-bottom:5px!important}.stpd_poweredby_setupad{align-items:center!important;display:flex!important;font-size:11px!important;justify-content:center!important;margin:auto 0 0!important;max-height:16.5px!important;text-align:center!important}.stpd_poweredby_lnk{display:flex!important}.stpd_poweredby_setupad a{height:15px!important}.stpd_poweredby_setupad img{height:15px!important;padding-left:4px!important;width:70px!important}.stpd_flexed_btns .stpd_submit_btn:active,.stpd_flexed_btns .stpd_submit_btn:focus,.stpd_flexed_btns .stpd_submit_btn:hover{filter:brightness(80%)!important}.stpd_cmp .bi-arrow-left-circle-fill{display:block}.stpd_cmp.stpd_dark div,.stpd_cmp.stpd_dark p,.stpd_cmp.stpd_dark span{color:#fff!important}.stpd_cmp.stpd_dark .stpd_cmp_form{background-color:#111!important}.stpd_cmp.stpd_dark .stpd_slider{background-color:transparent!important;border:1px solid #1ab6c5!important}.stpd_cmp.stpd_dark .stpd_slider:before{background-color:#1ab6c5!important;height:19px!important;left:3px!important;width:19px!important}.stpd_cmp.stpd_dark input:checked+.stpd_slider:before{background-color:#111!important;-webkit-transform:translateX(16px)!important;-ms-transform:translateX(16px)!important;transform:translateX(16px)!important}.stpd_cmp.stpd_dark .stpd_return_btn{background-color:#1ab6c5!important;border:1px solid #1ab6c5!important;border-radius:50%!important;color:#111!important}.stpd_cmp.stpd_dark .stpd_return_btn:hover{background-color:transparent!important;color:#1ab6c5!important}.stpd_cmp.stpd_dark .stpd_dropdown_wrapper{background-color:#212121!important;border:1px solid hsla(0,0%,100%,.15)!important;border-bottom:none!important}.stpd_cmp.stpd_dark .stpd_dropdown_wrapper .stpd_dropdown_li{border:none!important;color:#fff!important}.stpd_cmp.stpd_dark .stpd_cmp_close_btn:after,.stpd_cmp.stpd_dark .stpd_cmp_close_btn:before{background-color:#1ab6c5!important;height:20px!important;left:12px!important;top:3px!important}.stpd_cmp.stpd_dark .stpd_cmp_close_btn{border:1px solid #1ab6c5!important;border-radius:50%!important;height:28px!important;opacity:1!important;top:11px!important;width:28px!important}.stpd_cmp.stpd_dark .stpd_cmp_close_btn:hover{background-color:#1ab6c5!important}.stpd_cmp.stpd_dark .stpd_cmp_close_btn:hover:after,.stpd_cmp.stpd_dark .stpd_cmp_close_btn:hover:before{background-color:#111!important}.stpd_cmp.stpd_dark .stpd_manual_resurface button{background-color:#111!important;border:1px solid #1ab6c5!important;color:#1ab6c5!important}.stpd_cmp.stpd_dark .stpd_manual_resurface button:hover{background-color:#1ab6c5!important;border:1px solid #1ab6c5!important;color:#111!important}.stpd_cmp.stpd_dark li{border:1px solid hsla(0,0%,100%,.15)!important}@media screen and (max-width:900px){.stpd_cmp .stpd_cmp_form{background-color:#fff!important;border-radius:2rem!important;bottom:auto!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;display:inline-block!important;height:620px!important;left:0!important;margin:auto!important;padding:45px 40px 127px!important;position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;vertical-align:middle!important;width:450px!important;z-index:10001!important}.stpd_cmp .stpd_consent_wrapper{margin-left:0!important;min-width:0!important}.stpd_cmp .stpd_button_wrapper{box-shadow:0 -6px 5px -5px rgba(0,0,0,.2)!important}.stpd_cmp .stpd_front_title{position:static!important;transform:translate(0)!important}.stpd_cmp .stpd_value_title{text-align:center!important}.stpd_cmp .stpd_purposes_list{display:block!important}.stpd_cmp .stpd_purposes_list>div{width:100%!important}.stpd_cmp .stpd_purposes_list>div>li{min-height:0!important}.stpd_cmp .stpd_inner{display:block!important}.stpd_cmp .stpd_inner>div{width:100%!important}.stpd_cmp .stpd_inner>div>li{min-height:0!important}}@media screen and (max-width:500px){.stpd_cmp .stpd_cmp_form{padding:45px 20px 127px!important;width:90%!important}.stpd_cmp .stpd_inner_wrapper{margin-right:-20px!important;padding-right:10px!important}.stpd_cmp .stpd_button_wrapper{display:block!important;width:100%!important}.stpd_cmp .stpd_button_wrapper button{overflow:hidden!important;text-overflow:ellipsis!important;width:100%!important}.stpd_cmp .stpd_submit_btn{width:100%!important}.stpd_cmp .stpd_button_wrapper .stpd_submit_btn{flex:1 1!important}.stpd_cmp .stpd_manual_resurface:hover .stpd_tooltiptext{visibility:hidden!important}}@media screen and (max-width:360px){.stpd_cmp .stpd_title{font-size:15px!important}}',yn=".stpd_cmp_form{background-color:#fff!important;border-bottom-left-radius:2rem!important;border-top-left-radius:2rem!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;display:inline-block!important;height:100%!important;padding:45px 40px 127px!important;position:absolute!important;right:0!important;vertical-align:middle!important;width:400px!important;z-index:10001!important}.stpd_cmp .stpd_value_title{text-align:center!important}@media screen and (max-height:630px) and (max-width:900px){.stpd_cmp .stpd_cmp_form{height:90%!important}}",xn=".stpd_cmp_form{background-color:#fff!important;border-bottom-right-radius:2rem!important;border-top-right-radius:2rem!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;display:inline-block!important;height:100%!important;left:0!important;padding:45px 40px 127px!important;position:absolute!important;vertical-align:middle!important;width:400px!important;z-index:10001!important}.stpd_cmp .stpd_value_title{text-align:center!important}@media screen and (max-height:630px) and (max-width:900px){.stpd_cmp .stpd_cmp_form{height:90%!important}}",wn=".stpd_cmp_form{background-color:#fff!important;border-bottom-left-radius:2rem!important;border-bottom-right-radius:2rem!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;display:flex!important;gap:20px!important;height:250px!important;margin:auto!important;padding:50px 20px 20px!important;position:fixed!important;top:0!important;vertical-align:middle!important;width:100%!important;z-index:10001!important}.stpd_value_title{font-size:18px!important;font-weight:700!important;margin-bottom:15px!important;text-align:left!important}.stpd_consent_wrapper{display:flex!important;flex-direction:column!important;margin-left:40px!important;min-width:300px!important}.stpd_button_wrapper{box-shadow:none!important}.stpd_purposes_list{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important}.stpd_purposes_list>div{width:49%!important}.stpd_purposes_list>div>li{display:flex!important;flex-direction:column!important;min-height:297px!important}.stpd_purposes_list>p{width:100%!important}.stpd_purposes_list>div>li.stpd_sm_list_items{min-height:172px!important}.stpd_inner{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important}.stpd_inner>div{width:49%!important}.stpd_inner>div>li{display:flex;flex-direction:column;min-height:195px!important}@media screen and (max-height:630px) and (max-width:900px){.stpd_cmp .stpd_cmp_form{height:90%!important}}",Cn=".stpd_cmp_form{background-color:#fff!important;border-top-left-radius:2rem!important;border-top-right-radius:2rem!important;bottom:0!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;display:flex!important;gap:20px!important;height:250px!important;margin:auto!important;padding:50px 20px 20px!important;position:fixed!important;vertical-align:middle!important;width:100%!important;z-index:10001!important}.stpd_value_title{font-size:18px!important;font-weight:700!important;margin-bottom:15px!important;text-align:left!important}.stpd_consent_wrapper{display:flex!important;flex-direction:column!important;margin-left:40px!important;min-width:300px!important}.stpd_button_wrapper{box-shadow:none!important}.stpd_purposes_list{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important}.stpd_purposes_list>div{width:49%!important}.stpd_purposes_list>div>li{display:flex!important;flex-direction:column!important;min-height:297px!important}.stpd_purposes_list>p{width:100%!important}.stpd_purposes_list>div>li.stpd_sm_list_items{min-height:172px!important}.stpd_inner{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important}.stpd_inner>div{width:49%!important}.stpd_inner>div>li{display:flex;flex-direction:column;min-height:195px!important}@media screen and (max-height:630px) and (max-width:900px){.stpd_cmp .stpd_cmp_form{height:90%!important}}",Sn=".stpd_cmp_form{background-color:#fff!important;border-radius:2rem!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;display:inline-block!important;height:620px!important;left:0!important;margin:auto!important;padding:45px 40px 127px!important;position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;vertical-align:middle!important;width:450px!important;z-index:10001!important}.stpd_cmp .stpd_value_title{text-align:center!important}@media screen and (max-height:630px){.stpd_cmp .stpd_cmp_form{height:90%!important}}";const En=[JSON.stringify(bn),JSON.stringify(Sn),JSON.stringify(xn),JSON.stringify(yn),JSON.stringify(wn),JSON.stringify(Cn)];var In=t=>{const[e,n]=Y(Jt.landingScreen),[s,r]=Y(!0),[o,i]=Y({}),[a,p]=Y({}),[l,d]=Y({}),[c,u]=Y({}),[_,m]=Y({}),[h,g]=Y(0),[v,b]=Y({}),[y,x]=Y({}),[w,C]=Y({}),[S,E]=Y({}),[I,k]=Y({}),[L,T]=Y({}),[V,O]=Y({}),[A,P]=Y(!0),[N,R]=Y(),[D,F]=Y({}),[U,M]=Y(!0),[j,H]=Y(!0),[z,G]=Y(""),[B,$]=Y(["stpd_cmp"]),[W,Q]=Y(!1),[J,q]=Y(!0),[K,tt]=Y({}),[et,nt]=Y({}),[st,rt]=Y([]),[ot,it]=Y([]),[at,pt]=Y(null),[lt,dt]=Y(null),ct=Z(N);function ut(t){pn.baseUrl="https://cmp.setupcmp.com/cmp/gvl-v3/";const e=new pn;e.readyPromise.then((()=>{if(t.defaultVendorIds){let n=t.defaultVendorIds;t.enabledVendorIds&&(n=n.concat(t.enabledVendorIds)),t.disabledVendorIds&&(n=n.filter((e=>!t.disabledVendorIds.includes(e)))),e.narrowVendorsTo(n)}_t(e),t?.language&&"EN"!==t.language?e.changeLanguage(t.language.toLowerCase()).then((()=>{rt(e),fetch("https://cmp.setupcmp.com/cmp/gvl/google-atp-list.json").then((t=>{if(!t.ok)throw new Error("HTTP error "+t.status);return t.json()})).then((t=>{it(t),mt(t),H(!1)})).catch((t=>{H(!0),at.update(null)}))})):(rt(e),fetch("https://cmp.setupcmp.com/cmp/gvl/google-atp-list.json").then((t=>{if(!t.ok)throw new Error("HTTP error "+t.status);return t.json()})).then((t=>{it(t),mt(t),H(!1)})).catch((t=>{at.update(null),H(!0)})))}))}function _t(t,e){const n={},s={},r=[1,3,4,5,6];Object.keys(t.purposes).forEach((t=>{const o=parseInt(t);e?(n[o]=e.purposeConsents.has(o),1!==o&&(s[o]=e.purposeLegitimateInterests.has(o))):(n[o]=!1,r.includes(o)||(s[o]=!0))})),i(n),p(s),x(n),C(s);const o={};Object.keys(t.specialFeatures).forEach((t=>{const n=parseInt(t);o[n]=!!e&&e.specialFeatureOptins.has(n)})),d(o),E(o);const a={},l={};Object.keys(t.vendors).forEach((n=>{const s=parseInt(n);e?(a[s]=e.vendorConsents.has(s),0!==t.vendors[s].legIntPurposes.length&&(l[s]=e.vendorLegitimateInterests.has(s))):(a[s]=!1,0!==t.vendors[s].legIntPurposes.length&&(l[s]=!0))})),u(a),m(l),k(a),T(l),P(!0),g(Object.keys(a).length)}function mt(t,e){const n={};Object.keys(t).forEach((s=>{const r=parseInt(s),o=parseInt(t[r].provider_id);e&&e.includes(o)?n[o]=!0:n[o]=!1})),b(n),O(n)}X((()=>{try{if(localStorage.getItem("additional-consent")){let t=localStorage.getItem("additional-consent");R(t)}else{let t=yt("stpd-addtlconsent");t&&R(wt(t))}}catch(t){let e=yt("stpd-addtlconsent");e&&R(wt(e)),q(!1)}F(window?.stpdCmpGlobals)}),[]),X((()=>{ct.current=N,at?ht&&at.update(ht,!1):(pt(new vn(379,1,!0,{getTCData:(t,e,n)=>{"boolean"!=typeof e&&(e.addtlConsent=ct.current),t(e,n)}})),dt(!0))}),[N]),X((()=>{if(at){if(!D||0===Object.keys(D).length)return at.update(null),void console.error("Cmp config file is empty!");if(!document.getElementById("stpd-cmp-style-css"))return at.update(null),void console.error("Cmp style did not load properly!");let t=!1;if(!["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB"].includes(D.requestCountry))return void at.update(null);!0===D.darkMode&&(Q(!0),$("stpd_cmp stpd_dark")),D?.language&&"EN"!==D.language&&fetch(`https://cmp.setupcmp.com/cmp/language/cmp-lang-${D.language.toLowerCase()}.json`).then((t=>t.json())).then((t=>nt(t))).catch((t=>{console.error(t)})),tt(!!D?.customText&&D.customText),function(e){if(yt("lastCmpSurfaceDate")){(vt()-yt("lastCmpSurfaceDate"))/864e5>=7*e&&(t=!0)}else t=!0}(D.resurfaceTime),function(e){if(yt("euconsent-v2")&&!t){let t=yt("euconsent-v2");if(379!=dn.decode(t).cmpId)document.cookie="euconsent-v2= ; expires = Thu, 01 Jan 1970 00:00:00 GMT",at.update("",!0),r(!0),ut(e);else try{at.update(t,!1),r(!0),r(!1)}catch(t){t(t),console.error("The existing euconsent-v2 cookie was invalid!"),at.update("",!0),r(!0),ut(e)}}else at.update("",!0),r(!0),ut(e)}(D),M(!1)}}),[lt]),window.manualCmpPreview=function(t,e,s,o,i,a,p,l,d){let c={language:i,enabledVendorIds:l,disabledVendorIds:d,defaultVendorIds:window?.stpdCmpGlobals?.defaultVendorIds};const u=a&&a<=5?a:1,_=document.getElementById("stpd-cmp-style-css");_&&_.remove();let m=En[0].substring(1,En[0].length-1).replace(/\\n/g,"").replace(/\/\*[^*]*\*+([^/][^*]*\*+)*\//g,"").replace(/\\/g,"");m+=En[u].substring(1,En[0].length-1).replace(/\\n/g,"").replace(/\/\*[^*]*\*+([^/][^*]*\*+)*\//g,"").replace(/\\/g,"");const h=document.createElement("style");h.id="stpd-cmp-style-css",h.innerHTML=m;(document.head||document.getElementsByTagName("head")[0]).appendChild(h),t&&0===st.length?(M(!1),r(!0),ut(c),n(Jt.landingScreen),St(!1),It(!1)):t&&0!==st.length?(ut(c),r(!0),P(!0),H(!1),n(Jt.landingScreen),St(!1),It(!1)):r(!1),(e||s||o)&&(F({companyName:e,isoCode:"EN",resurfaceTime:"4",darkMode:s,resurfacePlacement:o,language:i||"EN",singleParentCookie:!1,rejectConsentBtn:p||!1,enabledVendorIds:l,disabledVendorIds:d}),s?(Q(!0),$("stpd_cmp stpd_dark")):(Q(!1),$("stpd_cmp")),i&&"EN"!==i?fetch(`https://cmp.setupcmp.com/cmp/language/cmp-lang-${i.toLowerCase()}.json`).then((t=>t.json())).then((t=>nt(t))).catch((t=>{console.error(t)})):nt(!1))},window.manualCmpResurface=function(){kt()};const[ht,ft]=Y(!1),gt=(t,e,n,s,i,p,d)=>{t.preventDefault(),n=n||a,s=s||l,i=i||c,p=p||_,d=d||v,x(e=e||o),C(n),E(s),k(i),T(p),O(d);const u=new ln(new pn(st.vendorListVersion));u.cmpId=379,u.cmpVersion=3,u.consentScreen=D.layout||1,u.consentLanguage=D.language||"EN",u.gvl.lang_=D.language||"EN",u.isServiceSpecific=1,u.publisherCountryCode=D.isoCode,u.gvl.readyPromise.then((()=>{Object.keys(e).forEach((t=>{const n=parseInt(t);e[n]?u.purposeConsents.set(n):u.purposeConsents.unset(n)})),Object.keys(n).forEach((t=>{const e=parseInt(t);n[e]?u.purposeLegitimateInterests.set(e):u.purposeLegitimateInterests.unset(e)})),Object.keys(s).forEach((t=>{const e=parseInt(t);s[e]?u.specialFeatureOptins.set(e):u.specialFeatureOptins.unset(e)})),Object.keys(i).forEach((t=>{const e=parseInt(t);i[e]?u.vendorConsents.set(e):u.vendorConsents.unset(e)})),Object.keys(p).forEach((t=>{const e=parseInt(t);p[e]?u.vendorLegitimateInterests.set(e):u.vendorLegitimateInterests.unset(e)}));var t="1~",r=!0;Object.keys(d).forEach(((e,n)=>{const s=parseInt(e);parseInt(n);d[s]&&(r?(t+=s,r=!1):t+="."+s)}));const o=dn.encode(u);bt("euconsent-v2","",-1,!0,D?.singleParentDomainCookie),bt("euconsent-v2",o,365,!1,D?.singleParentDomainCookie),bt("lastCmpSurfaceDate","",-1,!0,D?.singleParentDomainCookie),bt("lastCmpSurfaceDate",vt(),30,!1,D?.singleParentDomainCookie),bt("stpd-addtlconsent","",-1,!0,D?.singleParentDomainCookie),J&&!D?.singleParentDomainCookie?localStorage.setItem("additional-consent",t):bt("stpd-addtlconsent",xt(t),30,!1,D?.singleParentDomainCookie),ft(o),t!==N?R(t):at.update(o,!1)})),r(!1),P(!1)};function vt(){return(new Date).getTime()}function bt(t,e,n,s,r){let o=escape(e);if(n){let t=new Date;t.setDate(t.getDate()+n),o+=`; expires=${t.toUTCString()}`}const i=window.location.hostname.split(".");if(s&&(document.cookie=`${t}=${o};path=/;secure;SameSite=lax;`,i.length>=2)){var a=i[i.length-2]+"."+i[i.length-1];document.cookie=`${t}=${o};path=/;secure;SameSite=lax;domain=.${a};`}if(r&&i.length>=2){const e=i[i.length-2]+"."+i[i.length-1];document.cookie=`${t}=${o};path=/;secure;SameSite=lax;domain=.${e};`}else document.cookie=`${t}=${o};path=/;secure;SameSite=lax;`}function yt(t){let e,n,s,r=document.cookie.split(";");for(e=0;e{const e=t.split("~")[1].split(".").map(Number),n=[e[0]];for(let t=1;t{const e=t.split("~")[1].split(".");let n=0;const s=[];for(let t=0;t{if(yt("euconsent-v2")&&!ht){let t=yt("euconsent-v2");G(t),at.update(t,!0);const e=dn.decode(t);r(!0),St(!0),It(!0),n(Jt.purposes),2===e.policyVersion_?pn.baseUrl="https://cmp.setupcmp.com/cmp/gvl/":pn.baseUrl="https://cmp.setupcmp.com/cmp/gvl-v3/",pn.versionedFilename="vendor-list-v[VERSION].json";const s=new pn(e.vendorListVersion);s.readyPromise.then((()=>{if(D.defaultVendorIds){let t=D.defaultVendorIds;D.enabledVendorIds&&(t=t.concat(D.enabledVendorIds)),D.disabledVendorIds&&(t=t.filter((t=>!D.disabledVendorIds.includes(t)))),s.narrowVendorsTo(t)}_t(s,e),D.language&&"EN"!==D.language?s.changeLanguage(D.language.toLowerCase()).then((()=>{rt(s),ot.length||fetch("https://cmp.setupcmp.com/cmp/gvl/google-atp-list.json").then((t=>{if(!t.ok)throw new Error("HTTP error "+t.status);return t.json()})).then((t=>{let e;if(it(t),e=J?localStorage.getItem("additional-consent"):wt(yt("stpd-addtlconsent")),e){const n=e.match(/[0-9][0-9]+/g),s=[];n&&n.forEach((t=>{s.push(Number(t))})),mt(t,s)}else mt(t);H(!1)})).catch((function(){H(!0)}))})):(rt(s),ot.length||fetch("https://cmp.setupcmp.com/cmp/gvl/google-atp-list.json").then((t=>{if(!t.ok)throw new Error("HTTP error "+t.status);return t.json()})).then((t=>{let e;if(it(t),e=J?localStorage.getItem("additional-consent"):wt(yt("stpd-addtlconsent")),e){const n=e.match(/[0-9][0-9]+/g),s=[];n&&n.forEach((t=>{s.push(Number(t))})),mt(t,s)}else mt(t);H(!1)})).catch((function(){H(!0)})))}))}else ht?(r(!0),St(!0),It(!0),P(!0),n(Jt.purposes),at.update(ht,!0)):(at.update("",!0),r(!0),ut(D))};return Wt(f,{children:!U&&Wt("div",{className:B,children:[s&&!j&&A&&Wt("div",{class:"stpd_cmp_wrapper notranslate",children:Wt("div",{class:"stpd_cmp_form",children:[Wt(Qt,{showCloseButton:Ct,setShowCloseButton:St,setShowUi:r,cmpApi:at,encodedTcString:z,setPurposesConsent:i,setPurposesLegitimate:p,setSpecialFeatures:d,setVendorConsent:u,setVendorLegitimate:m,setNonGvlConsent:b,basePurposesConsent:y,basePurposesLegitimate:w,baseSpecialFeatures:S,baseVendorConsent:I,baseVendorLegitimate:L,baseNonGvlConsent:V,setResurfaceDataUpdate:P}),Wt(Yt,{modalType:e,setModalType:n,resurface:Et}),Wt(we,{modalType:e,setModalType:n,handleChangeConsentValues:t=>{const e=Object.keys(t),n=Object.keys(t[e]);"purposesConsent"==e?i((s=>({...s,[n]:t[e][n]}))):"purposesLegitimate"==e?p((s=>({...s,[n]:t[e][n]}))):"specialFeatures"==e?d((s=>({...s,[n]:t[e][n]}))):"vendorConsent"==e?u((s=>({...s,[n]:t[e][n]}))):"vendorLegitimate"==e?m((s=>({...s,[n]:t[e][n]}))):"nonGvlConsent"==e&&b((s=>({...s,[n]:t[e][n]})))},purposesConsent:o,purposesLegitimate:a,specialFeatures:l,vendorConsent:c,vendorLegitimate:_,data:st,nonGvlConsent:v,nonGvlData:ot,websiteName:D.companyName,translation:et,translationLanguage:D.language||"en",customText:K,vendorCount:h}),Wt(Ce,{setModalType:n,handleConsentSubmit:gt,consentAll:t=>{const e={},n={},s=[1,3,4,5,6];Object.keys(st.purposes).forEach((t=>{const r=parseInt(t);e[r]=!0,s.includes(r)||(n[r]=!0)})),i(e),p(n);const r={};Object.keys(st.specialFeatures).forEach((t=>{const e=parseInt(t);r[e]=!0})),d(r);const o={},a={};Object.keys(st.vendors).forEach((t=>{const e=parseInt(t);o[e]=!0,0!==st.vendors[e].legIntPurposes.length&&(a[e]=!0)})),u(o),m(a);const l={};Object.keys(ot).forEach((t=>{const e=parseInt(t),n=parseInt(ot[e].provider_id);l[n]=!0})),b(l),gt(t,e,n,r,o,a,l)},rejectConsentBtn:D.rejectConsentBtn,resurface:Et,withdrawConsent:t=>e=>{const n={},s={},r=[1,3,4,5,6];Object.keys(st.purposes).forEach((e=>{const o=parseInt(e);n[o]=!1,r.includes(o)||(s[o]=t)})),i(n),p(s);const o={};Object.keys(st.specialFeatures).forEach((t=>{const e=parseInt(t);o[e]=!1})),d(o);const a={},l={};Object.keys(st.vendors).forEach((e=>{const n=parseInt(e);a[n]=!1,0!==st.vendors[n].legIntPurposes.length&&(l[n]=t)})),u(a),m(l);const c={};Object.keys(ot).forEach((t=>{const e=parseInt(t),n=parseInt(ot[e].provider_id);c[n]=!1})),b(c),gt(e,n,s,o,a,l,c)},modalType:e,darkMode:W,translation:et.Consent})]})}),!s&&D.resurfacePlacement-1>0&&D.resurfacePlacement-1<6&&Wt("div",{className:"stpd_manual_resurface notranslate "+qt[D.resurfacePlacement-1],children:[Wt("button",{type:"button",onClick:kt,children:Wt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",fill:"currentColor",class:"bi bi-gear-fill",viewBox:"0 0 16 16",children:Wt("path",{d:"M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"})})}),Wt("span",{className:1==D.resurfacePlacement||3==D.resurfacePlacement||5==D.resurfacePlacement?"stpd_tooltiptext stpd_tooltiptext_l":"stpd_tooltiptext stpd_tooltiptext_r ",children:Wt(Kt,{text:et?.pp_settings??0,children:"Privacy Policy settings"})})]})]})})},kn={};Object.defineProperty(kn,"__esModule",{value:!0}),kn.default=function(t){return t.replace(/\n/g,"").replace(/\s\s+/g," ")};let Ln=[JSON.stringify(bn),JSON.stringify(Sn),JSON.stringify(xn),JSON.stringify(yn),JSON.stringify(wn),JSON.stringify(Cn)];async function Tn(t,e){try{const n=await fetch(t);if(!n.ok)throw new Error("HTTP error "+n.status);const s=await n.json();window.stpdCmpGlobals||(window.stpdCmpGlobals={}),e?window.stpdCmpGlobals.defaultVendorIds=s.map(Number):(window.stpdCmpGlobals=s,window.stpdCmpGlobals.requestCountry=n.headers.get("country"))}catch(t){console.error(t)}}!async function(){const e=document.currentScript.getAttribute("data-prop-stpd-cmp-id")??document.currentScript.getAttribute("data-prop-id");await Tn(`https://cmp.setupcmp.com/cmp/config/${e}.json`,!1),await Tn("https://cmp.setupcmp.com/cmp/gvl/default-vendors.json",!0);const n=window?.stpdCmpGlobals?.layout&&window?.stpdCmpGlobals?.layout<=5?window.stpdCmpGlobals.layout:1;let s=Ln[0].substring(1,Ln[0].length-1).replace(/\\n/g,"").replace(/\/\*[^*]*\*+([^/][^*]*\*+)*\//g,"").replace(/\\/g,"");s+=Ln[n].substring(1,Ln[0].length-1).replace(/\\n/g,"").replace(/\/\*[^*]*\*+([^/][^*]*\*+)*\//g,"").replace(/\\/g,""),document.head.insertAdjacentHTML("beforeend",``);Bt(In).render({selector:"body"})}()})();