var gg = window.gg = window.gg || {};;window.didomiOnReady = window.didomiOnReady || []; window.gdprAppliesGlobally=!0,window.didomiPopUpApplies=window.didomiPopUpApplies??!0;var initDidomi=()=>{!function(e,t,s,n,i){function r(e,s,n,r){if("function"==typeof n){window[t]||(window[t]=[]);var o=!1;i&&(o=i(e,s,n)),o||window[t].push({command:e,parameter:s,callback:n,version:r})}}function o(t){if(window[e]&&!0===window[e].stub&&t.data){var i,r="string"==typeof t.data;try{i=r?JSON.parse(t.data):t.data}catch(e){return}if(i[s]){var o=i[s];window[e](o.command,o.parameter,(function(e,s){var i={};i[n]={returnValue:e,success:s,callId:o.callId},t.source.postMessage(r?JSON.stringify(i):i,"*")}),o.version)}}}r.stub=!0,"function"!=typeof window[e]&&(window[e]=r,window.addEventListener?window.addEventListener("message",o,!1):window.attachEvent("onmessage",o))}("__tcfapi","__tcfapiBuffer","__tcfapiCall","__tcfapiReturn"),function e(t){if(!window.frames[t])if(document.body&&document.body.firstChild){var s=document.body,n=document.createElement("iframe");n.style.display="none",n.name=t,n.title=t,s.insertBefore(n,s.firstChild)}else setTimeout((function(){e(t)}),5)}("__tcfapiLocator"),function(e){var t=document.createElement("script");t.id="spcloader",t.type="text/javascript",t.async=!0,t.src="https://sdk.privacy-center.org/3da070b4-2745-4eb6-8fc9-1fabe5f634e6/loader.js?target="+document.location.hostname,t.charset="utf-8";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}()};window.didomiPopUpApplies&&initDidomi(),gg.didomi=function(){const e="core",t="vendorsDisclosed",s="vendorsAllowed",n="publisherTC",i=1,r=0,o=1,c=2,u="cmpId",d="cmpVersion",a="consentLanguage",h="consentScreen",p="created",l="isServiceSpecific",f="lastUpdated",m="numCustomPurposes",g="policyVersion",v="publisherCountryCode",b="publisherCustomConsents",_="publisherCustomLegitimateInterests",y="publisherLegitimateInterests",w="publisherConsents",S="publisherRestrictions",I="purposeConsents",C="purposeLegitimateInterests",E="purposeOneTreatment",L="specialFeatureOptins",P="useNonStandardTexts",A="vendorConsents",T="vendorLegitimateInterests",O="vendorListVersion",F="vendorsAllowed",V="vendorsDisclosed",U="version";var D={ID_TO_KEY:[e,t,s,n],KEY_TO_ID:{[e]:0,[t]:1,[s]:2,[n]:3}};const R=function(){this[1]={[e]:[U,p,f,u,d,h,a,O,I,A]},this[2]={[e]:[U,p,f,u,d,h,a,O,g,l,P,L,I,C,E,v,A,T,S],[n]:[w,y,m,b,_],[s]:[F],[t]:[V]}},N=function(){this.bitLength=0,this.maxId_=0,this.set_=new Set,this[Symbol.iterator]=function*(){for(var e=1;e<=this.maxId;e++)yield[e,this.has(e)]},this.values=function(){return this.set_.values()},Object.defineProperty(this,"maxId",{get(){return this.maxId_}}),this.has=function(e){return this.set_.has(e)},this.unset=function(e){Array.isArray(e)?e.forEach((function(e){this.unset(e)})):"object"==typeof e?this.unset(Object.keys(e).map((function(e){return Number(e)}))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((function(e){this.maxId_=Math.max(this.maxId,e)}))))},this.isIntMap=function(e){return"object"==typeof e&&Object.keys(e).every((function(t){var s=Number.isInteger(parseInt(t,10));return(s=s&&this.isValidNumber(e[t].id))&&void 0!==e[t].name}))},this.isValidNumber=function(e){return parseInt(e,10)>0},this.isSet=function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t},this.set=function(e){if(Array.isArray(e))e.forEach((function(e){this.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw Error("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}},this.empty=function(){this.set_=new Set},this.forEach=function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)},Object.defineProperty(this,"size",{get(){return this.set_.size}}),this.setAll=function(e){this.set(e)}},x=function(e,t){this.hashSeparator="-",this.purposeId_,this.restrictionType,this.unHash=function(e){let t=e.split(this.hashSeparator),s=new x;if(2!==t.length)throw Error("hash",e);return s.purposeId=parseInt(t[0],10),s.restrictionType=parseInt(t[1],10),s},Object.defineProperty(this,"hash",{get(){if(!this.isValid())throw Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${this.hashSeparator}${this.restrictionType}`}}),Object.defineProperty(this,"purposeId",{get(){return this.purposeId_},set(e){this.purposeId_=e}}),this.isValid=function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===r||this.restrictionType===o||this.restrictionType===c)},this.isSameAs=function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType},void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)},j=function(){this.bitLength=0,this.map=new Map,this.gvl_,this.has=function(e){return this.map.has(e)},this.isOkToHave=function(e,t,s){var n=!0;if(this.gvl&&this.gvl.vendors){let i=this.gvl.vendors[s];if(i)if(e===r)n=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case o:n=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case c:n=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else n=!1;else n=!1}return n},this.add=function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){let s=t.hash;this.has(s)||(this.map.set(s,new Set),this.bitLength=0),this.map.get(s).add(e)}},this.restrictPurposeToLegalBasis=function(e){let t=Array.from(this.gvl.vendorIds),s=e.hash,n=t[t.length-1],i=[...Array(n).keys()].map((function(e){return e+1}));if(this.has(s))for(var r=1;r<=n;r++)this.map.get(s).add(r);else this.map.set(s,new Set(i)),this.bitLength=0},this.getVendors=function(e){var t=[];if(e){let s=e.hash;this.has(s)&&(t=Array.from(this.map.get(s)))}else{let e=new Set;this.map.forEach((function(t){t.forEach((function(t){e.add(t)}))})),t=Array.from(e)}return t.sort((function(e,t){return e-t}))},this.getRestrictionType=function(e,t){var s;return this.getRestrictions(e).forEach((function(e){e.purposeId===t&&(void 0===s||s>e.restrictionType)&&(s=e.restrictionType)})),s},this.vendorHasRestriction=function(e,t){var s=!1;let n=this.getRestrictions(e);for(var i=0;i=2&&2==t.length){if(this.langSet.has(e))return e;if(this.langSet.has(t))return t;let s=t+"-"+t;if(this.langSet.has(s))return s;for(let s of this.langSet)if(-1!==s.indexOf(e)||-1!==s.indexOf(t))return s}throw Error(`unsupported language ${e}`)},this.forEach=function(e){this.langSet.forEach(e)},Object.defineProperty(this,"size",{get(){return this.langSet.size}})},B=function(e){this.consentLanguages=new k,this.isServiceSpecific_=!1,this.supportOOB_=!0,this.useNonStandardTexts_=!1,this.purposeOneTreatment_=!1,this.publisherCountryCode_="AA",this.version_=2,this.consentScreen_=0,this.policyVersion_=4,this.consentLanguage_="EN",this.cmpId_=0,this.cmpVersion_=0,this.vendorListVersion_=0,this.numCustomPurposes_=0,this.gvl_,this.created,this.lastUpdated,this.specialFeatureOptins=new N,this.purposeConsents=new N,this.purposeLegitimateInterests=new N,this.publisherConsents=new N,this.publisherLegitimateInterests=new N,this.publisherCustomConsents=new N,this.publisherCustomLegitimateInterests=new N,this.customPurposes,this.vendorConsents=new N,this.vendorLegitimateInterests=new N,this.vendorsDisclosed=new N,this.vendorsAllowed=new N,this.publisherRestrictions=new j,Object.defineProperty(this,"gvl",{get(){return this.gvl_},set(e){GVL.isInstanceOf(e)||(e=new GVL(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}}),Object.defineProperty(this,"cmpId",{get(){return this.cmpId_},set(e){if(!(Number.isInteger(e=Number(e))&&e>1))throw Error("cmpId",e);this.cmpId_=e}}),Object.defineProperty(this,"cmpVersion",{get(){return this.cmpVersion_},set(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw Error("cmpVersion",e);this.cmpVersion_=e}}),Object.defineProperty(this,"consentScreen",{get(){return this.consentScreen_},set(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw Error("consentScreen",e);this.consentScreen_=e}}),Object.defineProperty(this,"consentLanguage",{get(){return this.consentLanguage_},set(e){this.consentLanguage_=e}}),Object.defineProperty(this,"publisherCountryCode",{get(){return this.publisherCountryCode_},set(e){if(!/^([A-z]){2}$/.test(e))throw Error("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}}),Object.defineProperty(this,"vendorListVersion",{get(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set(e){if((e=Number(e)>>0)<0)throw new TCModelError("vendorListVersion",e);this.vendorListVersion_=e}}),Object.defineProperty(this,"policyVersion",{get(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw Error("policyVersion",e)}}),Object.defineProperty(this,"version",{get(){return this.version_},set(e){this.version_=parseInt(e,10)}}),Object.defineProperty(this,"isServiceSpecific",{get(){return this.isServiceSpecific_},set(e){this.isServiceSpecific_=e}}),Object.defineProperty(this,"useNonStandardTexts",{get(){return this.useNonStandardTexts_},set(e){this.useNonStandardTexts_=e}}),Object.defineProperty(this,"supportOOB",{get(){return this.supportOOB_},set(e){this.supportOOB_=e}}),Object.defineProperty(this,"purposeOneTreatment",{get(){this.purposeOneTreatment_},set(e){this.purposeOneTreatment_=e}}),this.setAllVendorConsents=function(){this.vendorConsents.set(this.gvl.vendors)},this.unsetAllVendorConsents=function(){this.vendorConsents.empty()},this.setAllVendorsDisclosed=function(){this.vendorsDisclosed.set(this.gvl.vendors)},this.unsetAllVendorsDisclosed=function(){this.vendorsDisclosed.empty()},this.setAllVendorsAllowed=function(){this.vendorsAllowed.set(this.gvl.vendors)},this.unsetAllVendorsAllowed=function(){this.vendorsAllowed.empty()},this.setAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.set(this.gvl.vendors)},this.unsetAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.empty()},this.setAllPurposeConsents=function(){this.purposeConsents.set(this.gvl.purposes)},this.unsetAllPurposeConsents=function(){this.purposeConsents.empty()},this.setAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.set(this.gvl.purposes)},this.unsetAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.empty()},this.setAllSpecialFeatureOptins=function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)},this.unsetAllSpecialFeatureOptins=function(){this.specialFeatureOptins.empty()},this.setAll=function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()},this.unsetAll=function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()},Object.defineProperty(this,"numCustomPurposes",{get(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){let t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new rror("numCustomPurposes",e)}}),this.updated=function(){let e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t},e&&(this.gvl=e),this.updated()},z={[u]:12,[d]:12,[a]:12,[h]:6,[p]:36,[l]:1,[f]:36,[g]:6,[v]:12,[y]:24,[w]:24,[I]:24,[C]:24,[E]:1,[L]:12,[P]:1,[O]:12,[U]:6,anyBoolean:1,encodingType:1,maxId:16,numCustomPurposes:6,numEntries:12,numRestrictions:12,purposeId:6,restrictionType:2,segmentType:3,singleOrRange:1,vendorId:16},M=function(){let e=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]]);return{decode:function(t){if(!/^[A-Za-z0-9\-_]+$/.test(t))throw Error("Invalidly encoded Base64URL string");for(var s="",n=0;n\n ¿Ya eres suscriptor? Entra aquí\n \n `);const s=(t=re()).querySelector("span");if(!s)return;s.addEventListener("click",(function(){try{if(e.subscription.rejectIfSubscriber&&Didomi.setUserDisagreeToAll(),e.subscription.url.link)return ev.commons.referrer.save(),void(window.location.href=decodeURIComponent(e.subscription.url.link))}catch(e){}location.reload()}))}}},ce=function(e){e=e||{};const t=document.querySelector(".didomi-popup-notice");t&&t.classList.add("didomi-popup-notice__consent-up-button")},ue=function(e,t){oe(e),t.init({onShown:function(){oe(e)}})},de=function(e,t){ce(e),t.init({onShown:function(){ce(e)}})},ae=function(e,t){e&&(e.innerHTML=t)},he=function(e){try{return("function"!=typeof gg.accounts.getUser().hasActiveSubscription||!gg.accounts.getUser().hasActiveSubscription())&&(pe(e)||le(e))}catch(e){}return!1},pe=function(e){try{if(e){const t=Z.decode(e);return!(t.purposeConsents.has(1)&&t.purposeConsents.has(2)&&t.purposeConsents.has(3)&&t.purposeConsents.has(4)&&t.purposeConsents.has(7)&&t.purposeConsents.has(9)&&t.purposeConsents.has(10))}return!(Didomi.getUserConsentStatusForPurpose("cookies")&&Didomi.getUserConsentStatusForPurpose("select_basic_ads")&&Didomi.getUserConsentStatusForPurpose("create_ads_profile")&&Didomi.getUserConsentStatusForPurpose("select_personalized_ads")&&Didomi.getUserConsentStatusForPurpose("measure_ad_performance")&&Didomi.getUserConsentStatusForPurpose("market_research")&&Didomi.getUserConsentStatusForPurpose("improve_products"))}catch(e){}return!1},le=function(e){try{if(e){return!Z.decode(e).vendorConsents.has(755)}return!Didomi.getUserConsentStatusForVendor("google")}catch(e){}return!1},fe=function(e){const t=this;this.opts=e,this.observer={value:null,init:function(e){if(e=e||{},!t.opts.selector)return;const s=document.getElementById("didomi-host");if(!s)return;this.value&&this.disconnect(),this.value=new MutationObserver((function(s,n){for(var i=0;i0&&ae(e[0],X.subscription.text||Q)}})}}),window.didomiEventListeners.push({event:"preferences.clickclose",listener:function(s){e.observer.disconnect(),Didomi.notice.isVisible()&&he()&&ue(X,t.observer)}}),window.didomiEventListeners.push({event:"preferences.clicksavechoices",listener:function(){se(te.SAVE),t.observer.disconnect(),e.observer.disconnect(),ie(X)}}),window.didomiEventListeners.push({event:"preferences.clickagreetoall",listener:function(){se(te.AGREE_TO_ALL),t.observer.disconnect(),e.observer.disconnect()}}),window.didomiEventListeners.push({event:"preferences.clickdisagreetoall",listener:function(){se(te.REJECT),ie(X)}})}},doWhenConsent:function(e,t,s){window.didomiOnReady.push((function(n){n.isConsentRequired()&&e?n.getObservableOnUserConsentStatusForVendor(t).filter((function(e){return!0===e})).first().subscribe((function(e){s()})):s()}))},onTCLoaded:function(e){var t=function(s,n){(n&&"tcloaded"===s.eventStatus||n&&"useractioncomplete"===s.eventStatus)&&(e(s.purpose.consents),__tcfapi("removeEventListener",2,t,s.listenerId))};__tcfapi("addEventListener",2,t)},getPurposesStatus:function(){var e=[{v2_F1_cookies:""+Didomi.getUserConsentStatusForPurpose("cookies")||!1+"",v2_F2_select_basic_ads:""+Didomi.getUserConsentStatusForPurpose("select_basic_ads")||!1+"",v2_F3_create_ads_profile:""+Didomi.getUserConsentStatusForPurpose("create_ads_profile")||!1+"",v2_F4_select_personalized_ads:""+Didomi.getUserConsentStatusForPurpose("select_personalized_ads")||!1+"",v2_F5_create_content_profile:""+Didomi.getUserConsentStatusForPurpose("create_content_profile")||!1+"",v2_F6_select_personalized_content:""+Didomi.getUserConsentStatusForPurpose("select_personalized_content")||!1+"",v2_F7_measure_ad_performance:""+Didomi.getUserConsentStatusForPurpose("measure_ad_performance")||!1+"",v2_F8_measure_content_performance:""+Didomi.getUserConsentStatusForPurpose("measure_content_performance")||!1+"",v2_F9_market_research:""+Didomi.getUserConsentStatusForPurpose("market_research")||!1+"",v2_F10_improve_products:""+Didomi.getUserConsentStatusForPurpose("improve_products")||!1+"",v2_FP1_data_sharing:""+Didomi.getUserConsentStatusForPurpose("kEeDsLCp")||!1+"",v2_FP2_segment_sharing:""+Didomi.getUserConsentStatusForPurpose("compartir-dpHgJEJa")||!1+""}];return JSON.stringify(e)},getPurposesStatusForTAD:function(){var e=[{v2_F2_select_basic_ads:""+Didomi.getUserConsentStatusForPurpose("select_basic_ads")||!1+"",v2_F7_measure_ad_performance:""+Didomi.getUserConsentStatusForPurpose("measure_ad_performance")||!1+"",v2_F9_market_research:""+Didomi.getUserConsentStatusForPurpose("market_research")||!1+"",v2_F10_improve_products:""+Didomi.getUserConsentStatusForPurpose("improve_products")||!1+""}];return JSON.stringify(e)},isSubscriptionRequired:he,isSubscriptionRequiredByPurposes:pe,isSubscriptionRequiredByVendors:le,getConsentAction:function(){return te},sendEventToAnalytics:se}}();