1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/iabtcf.BvXAsWC3.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/observer.5V3DaO-P.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/vue.DNABcg60.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/use-iabtcf-purposes.dTuox3QZ.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/use-iabtcf-vendors.BecxeTHa.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/use-special-features.Cw4JHzUC.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/use-iabtcf-legitimate-interests.ONlzmKkH.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/borlabs-cookie-box.B5URxZ4O.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/_plugin-vue_export-helper.DlAUqK2U.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/focus-loop.Ef129W-c.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/base-button.ZZvWBfYs.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "css/base-button.DnTI8xH4.min.css")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "css/borlabs-cookie-box.DV_3K5XT.min.css")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/borlabs-widget.CwDOngWK.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/borlabs-cookie-preferences.CkWvqKZt.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/borlabs-cookie-switch-consent.BeE6kOf6.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/service-item-switch.I68VXugo.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/borlabs-cookie-user-uid.BIG2qsOt.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/borlabs-cookie-service-list.DMsnl2zA.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/service-item-table.CICM8-I3.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/toggle-accordion.DkXv6B-2.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/consent-history-table.so9NoCuE.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/consent-history-table.DXx4RJA3.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/content-blocker-modal.Czo4-RlY.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/modal-manager.BMM5iiW3.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "css/content-blocker-modal.D5Am3Vee.min.css")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "javascript/provider-service-information-table.BjYO3Yce.min.js")(),(() => window.borlabsCookieConfig.settings.pluginUrl + '/assets/' + "css/provider-service-information-table.C_jkFxMy.min.css")()])))=>i.map(i=>d[i]); 2var ce=Object.defineProperty;var G=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var R=(r,e,t)=>e in r?ce(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,N=(r,e)=>{for(var t in e||(e={}))le.call(e,t)&&R(r,t,e[t]);if(G)for(var t of G(e))ue.call(e,t)&&R(r,t,e[t]);return r};var i=(r,e,t)=>R(r,typeof e!="symbol"?e+"":e,t);var S=(r,e,t)=>new Promise((o,n)=>{var s=l=>{try{c(t.next(l))}catch(d){n(d)}},a=l=>{try{c(t.throw(l))}catch(d){n(d)}},c=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,a);c((t=t.apply(r,e)).next())});import{a as u,_ as f,R as H,f as te,g as oe,h as de,i as fe,j as ie,k as P,l as C,m as ge,n as be,o as q,p as K,q as V,r as pe,C as ke,L as he,s as ve,t as Ce,u as me,v as M,D as Se,b as Te,w as _e,c as Ee}from"./observer.5V3DaO-P.min.js";import{A as J,c as j,r as F,B as E,C as O}from"./vue.DNABcg60.min.js";class Oe{setCookie(e,t,o,n,s,a,c){const l=[];let d="";const b=new Date;return s=s===void 0?u.cookieLifetime.value:s,l.push(e+"="+encodeURIComponent(t)),d=this.getCookieDomain(o),this.deleteCookie(e,""),this.deleteCookie(e,location.hostname),l.push("domain="+d),n===void 0||n===!1?l.push("path="+u.cookiePath.value):l.push("path="+n),typeof s=="number"?(b.setTime(b.getTime()+s*24*60*60*1e3),l.push("expires="+b.toUTCString())):l.push("expires="+s),l.push("SameSite="+c),a&&l.push("secure"),document.cookie=l.join(";"),f.info(`Add cookie "${e}".`,l),!0}deleteCookie(e,t,o){let n=!1,s="",a=[];const c=new Date;return s=this.getCookieDomain(t),o=o===!0,c.setTime(c.getTime()-864e5),a=this.findCookie
2s(e,o),a.length&&(a.forEach(function(l){const d=[];d.push(l.name+"="),d.push("domain="+s),d.push("path="+u.cookiePath.value),d.push("expires="+c.toUTCString()),document.cookie=d.join(";"),f.info(`Cookie "${l.name}" deleted.`,d)}),n=!0),n}findCookies(e,t){const o=[];let n=[];return t=t===!0,t&&(e=e.replace("*","")),f.info(`Find cookie "${e}".`,{cookieName:e,imprecise:t}),document.cookie.length&&(n=document.cookie.split(";"),n.forEach(function(s){try{s=decodeURIComponent(s);const a=s.split("="),c=a[0]!==void 0?a[0].trim():"",l=a[1]!==void 0?a[1].trim():"";t?c.indexOf(e)!==-1&&o.push({name:c,value:l}):e===c&&o.push({name:c,value:l})}catch(a){f.error("The cookie is spoiled.",{error:a,cookie:s})}})),o}getCookieDomain(e){let t="";return e===void 0||e===!1?u.cookieDomain.value!==""&&u.automaticCookieDomainAndPath.value===!1&&(t=u.cookieDomain.value):t=e,t}}const U=new Oe;class ye{inArray(e,t){let o=!1;if(typeof t=="object"){for(let n=0,s=t.length;n<s;++n)if(t[n]===e){o=!0;break}}return o}onExist(e,t){const o=this,n=function(){o.objectExists(e)?t(t):window.setTimeout(n,100)};n()}objectExists(e){const t=e.split(".");let o=window;for(const n of t)if(o&&typeof o=="object"&&n in o)o=o[n];else return!1;return o!==void 0}cloneObject(e){let t;if(e===null||typeof e!="object")return e;if(e instanceof Date)return t=new Date,t.setTime(e.getTime()),t;if(e instanceof Array){t=[];for(let o=0,n=e.length;o<n;o++)t[o]=this.cloneObject(e[o]);return t}if(e instanceof Object){t={};for(const o of Object.keys(e))t[o]=this.cloneObject(e[o]);return t}}randomTokens(e){let t="";const o="abcdefhgihjklmnopqrstuvwxyz0123456789";let n=0;if(typeof window.crypto=="object"){const s=new Uint32Array(e);for(window.crypto.getRandomValues(s),n;n<e;++n)t+=o[s[n]%37]}else for(n;n<e;++n)t+=o[Math.floor(Math.random()*o.length)];return t}replaceAll(e,t,o){for(;o.indexOf(e)!==-1;)o=o.replace(e,t);return o}}const y=new ye;class Be{constructor(){i(this,"_serviceGroups",null)}init(e){this._serviceGroups=e}findByServiceGroupId(e){return this._serviceGroups!==null&&e in this._serviceGroups?this._serviceGroups[e]:null}get serviceGroups(){return this._serviceGroups}}const w=new Be,z="anonymous",W="borlabs-cookie";class Ae{constructor(){i(this,"_pluginCookie",{consents:{essential:[]},domainPath:"",expires:"",uid:"",v3:!0,version:0})}init(){this.getPluginCookie(),this._pluginCookie.uid===""&&(this._pluginCookie.uid=this.createUID())}getPluginCookie(){let e=[];
2e=U.findCookies(W);for(let t=0,o=e.length;t<o;++t){const n=e[t];try{const s=JSON.parse(n.value);s.domainPath!==void 0&&s.v3!==void 0?s.domainPath===u.cookieDomain.value+u.cookiePath.value&&(typeof s.version=="string"&&(s.version=parseInt(s.version)),this._pluginCookie={consents:s.consents,domainPath:s.domainPath,expires:s.expires,uid:s.uid,v3:s.v3,version:s.version}):f.warning("No domainPath.",s)}catch(s){f.critical("Invalid JSON in cookie value.",{cookieValue:n.value,error:s})}}return this._pluginCookie}setPluginCookie(e,t){const o={consents:e,domainPath:u.cookieDomain.value+u.cookiePath.value,expires:"",uid:this._pluginCookie.uid,v3:!0,version:u.cookieVersion.value};let n="",s=u.cookieLifetime.value;if(Object.keys(e).length===1&&(s=u.cookieLifetimeEssentialOnly.value),t||!this.isPluginCookieValid()){const a=new Date;a.setTime(a.getTime()+s*24*60*60*1e3),n=a.toUTCString()}else n=this._pluginCookie.expires;o.expires=n,typeof o.consents.essential=="undefined"&&(o.consents.essential=w.findByServiceGroupId("essential").serviceIds),Object.keys(e).length===1&&!u.iabTcfStatus.value?o.uid=z:this._pluginCookie.uid===z&&(o.uid=this.createUID()),U.setCookie(W,JSON.stringify(o),u.automaticCookieDomainAndPath.value?"":u.cookieDomain.value,u.cookiePath.value,n,u.cookieSecure.value,u.cookieSameSite.value),this.getPluginCookie()}isPluginCookieValid(){let e=!1;return this._pluginCookie.version===u.cookieVersion.value&&typeof this._pluginCookie.v3!="undefined"?e=!0:this._pluginCookie.consents={essential:[]},e}createUID(){let e="";return e=y.randomTokens(8)+"-"+y.randomTokens(8)+"-"+y.randomTokens(8)+"-"+y.randomTokens(8),e}get pluginCookie(){return this._pluginCookie}}const g=new Ae,ut=323,dt=3,we="TCF_COOKIE";function De(r){return H("POST","borlabs-cookie/v1/consent/log",{language:u.language.value,consentLog:r}).then(e=>e).catch(e=>{f.error(e)})}class Ie{add(){return S(this,null,function*(){return De({borlabsCookieConsentString:this.transformToServiceGroupConsentListJSONString(g.pluginCookie.consents),iabTcfTCString:window.BorlabsCookie.Adapter.IABTCF().currentTCString,uid:g.pluginCookie.uid,version:g.pluginCookie.version})})}transformToServiceGroupConsentListJSONString(e){const t=Object.entries(e).map(([o,n])=>({id:o,services:n}));return JSON.stringify(t)}}const ne=new Ie;class Le{constructor(){i(this,"_events",{})}register(e,t,o=null){return this._events[e]===void 0?(Object.defineProperty(this._events,e,{value:new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o!=null?o:{}})}),f.info(`Event "${e}" registered. Listener: "${t}".`,{eventId:e,eventName:t}),!0):(f.error(`Event "${e}" already exists.`,{eventId:e,eventName:t}),!1)}dispatch(e,t=null){return this._events[e]!==void 0?(f.info(`Dispatch event "${e}".`,{eventId:e}),typeof t!="undefined"&&t!==null&&t instanceof Element?t.dispatchEvent(this._events[e]):document.dispatchEvent(this._events[e]),!0):(f.error(`Event "${e}" does not exist.`,{eventId:e}),!1)}get events(){return this._events}}const p=new Le,Pe="modulepreload",xe=function(r,e){return new URL(r,e).href},Y={},v=function(e,t,o){let n=Promise.resolve();if(t&&t.length>0){const a=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));n=Promise.allSettled(t.map(d=>{if(d=xe(d,o),d in Y)return;Y[d]=!0;const b=d.endsWith(".css"),T=b?'[rel="stylesheet"]':"";if(!!o)for(let B=a.length-1;B>=0;B--){const D=a[B];if(D.href===d&&(!b||D.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${T}`))return;const m=document.createElement("link");if(m.rel=b?"stylesheet":Pe,b||(m.as="script"),m.crossOrigin="",m.href=d,l&&m.setAttribute("nonce",l),document.head.appendChild(m),b)return new Promise((B,D)=>{m.addEventListener("load",B),m.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return n.then(a=>{for(const c of a||[])c.status==="rejected"&&s(c.reason);return e().catch(s)})};
2class Ue{constructor(){i(this,"_services",null)}init(e){this._services=e}findByServiceId(e){return e in this._services?this._services[e]:null}isValid(e,t){for(const o of Object.values(this._services))if(o.id===e&&o.serviceGroupId===t)return!0;return!1}findByServiceGroupId(e){const t={};for(const o of Object.values(this._services))o.serviceGroupId===e&&(t[o.id]=o);return t}findByProviderId(e){const t={};for(const o of Object.values(this._services))o.providerId===e&&(t[o.id]=o);return t}get services(){return this._services}}const k=new Ue;class He{handle(){const e=k.services;if(e!==null)for(const t of Object.keys(e)){const o=e[t];if(!(o.settings["block-cookies-before-consent"]===void 0||o.settings["block-cookies-before-consent"]!=="1")&&o.cookies.length!==0&&A.hasConsent(t,o.serviceGroupId)!==!0)for(const n of o.cookies)f.info(`Try to block cookie "${n.name}".`,{cookieName:n.name,service:t,serviceGroup:o.serviceGroupId}),U.deleteCookie(n.name,!1,n.name.indexOf("*")!==-1)}}}const Re=new He;function Ne(){return H("GET","borlabs-cookie/v1/dialog/visibility",{language:u.language.value}).then(r=>r).catch(r=>{f.error(r)})}class Ve{constructor(){i(this,"consentRequired",!0);i(this,"ipChecked",!1)}isConsentRequired(){return S(this,null,function*(){var e;if(!u.dialogGeoIpActive.value||window.navigator.userAgent.indexOf("Borlabs-Scanner")!==-1)return!0;if(u.dialogGeoIpActive.value&&!u.dialogGeoIpCachingMode.value&&((e=document.getElementById("BorlabsCookieBox"))==null?void 0:e.getAttribute(te))==="false")return!1;if(!this.ipChecked){let t=yield Ne();this.ipChecked=!0,t&&t.visible===!1&&(this.consentRequired=!1)}return this.consentRequired})}}const Me=new Ve;let h;const se=function(r){h[r]=Object.keys(k.findByServiceGroupId(r))},$e=function(r){re(r)||(h[r]=[])},je=function(r){const e=k.findByServiceId(r);if(e!==null)if(h[e.serviceGroupId]){if(h[e.serviceGroupId].indexOf(r)>-1)return;h[e.serviceGroupId].push(r)}else h[e.serviceGroupId]=[r]},Fe=function(r){const e=k.findByServiceId(r);if(e===null||h[e.serviceGroupId]===void 0)return;const t=h[e.serviceGroupId].indexOf(r);t>-1&&h[e.serviceGroupId].splice(t,1),h[e.serviceGroupId].length===0&&(re(e.serviceGroupId)||delete h[e.serviceGroupId])},Q=j(()=>h),re=function(r){return r==="essential"},ft=function(r){const e=k.findByServiceId(r);return e!==null&&e.serviceGroupId==="essential"},gt=r=>j({get:()=>{var t;const e=(t=k.findByServiceId(r))==null?void 0:t.serviceGroupId;return e in h&&h[e].find(o=>o===r)!==void 0},set:e=>{e?je(r):Fe(r)}}),bt=r=>j({get:()=>{let e=!1;return Object.keys(Q.value).forEach(t=>{r===t&&(e=Q.value[t].length!==0)}),e},set:e=>{e?se(r):$e(r)}});function ae(){g.isPluginCookieValid()?h=J(g.pluginCookie.consents):(h=J({}),Object.keys(k.services).forEach(r=>{const e=k.services[r];w.findByServiceGroupId(e.serviceGroupId).preSelected&&se(e.serviceGroupId)}))}class Ge{constructor(){i(this,"_contentBlockers",null)}init(e){this._contentBlockers=e}findByContentBlockerId(e){return e in this._contentBlockers?this._contentBlockers[e]:null}unblockServices(e){const t=this._contentBlockers[e].serviceId,o=k.findByServiceId(t);o&&(A.addConsent(t,o.serviceGroupId),ae())}hasUnblockAllSettingEnabled(e){return!!(this._contentBlockers[e]&&this._contentBlockers[e].settings&&this._contentBlockers[e].settings.unblockAll==="1")}get contentBlockers(){return this._contentBlockers}}const I=new Ge;class qe{constructor(){i(this,"_allocatedScripts",{});i(this,"_unblockedScriptsStatus",{jsHandle:{},scriptBlockerId:{}})}allocateScriptBlockerToContentBlocker(e,t,o){(o==="scriptBlockerId"||o==="jsHandle")&&(this._allocatedScripts[e]===void 0&&(this._allocatedScripts[e]={scriptBlockerId:[],jsHandle:[]}),this._allocatedScripts[e][o].indexOf(t)===-1&&this._allocatedScripts[e][o].push(t))}get allocatedScripts(){return this._allocatedScripts}blockedScriptsLoaded(e,t){let o=!1;return this._unblockedScriptsStatus[t][e]!==void 0&&this._unblockedScriptsStatus[t][e]===0&&(o=!0),o}canAllocate(e){return document.querySelector(`script[${oe}="${e}"]`)===null?!1:!this.isAllocated(e)}getNumberOfUnblockedScripts(e,t){return this._unblockedScriptsStatus[t][e]}isAllocated(e){let t=!1;for(const o in this._allocatedScripts)if(this._allocatedScripts[o].scriptBlockerId.includes(e)){t=!0;break}return t}updateStatusOfUnblockedScripts(e,t,o){return this._unblockedScriptsStatus[t][e]=o,!0}}const _=new qe;class Ke{constructor(){i(this,"_optInCodesUnblocked",{});i(this,"_optOutCodesUnblocked",{});i(this,"_contentBlockerGlobalCodeExecuted",{});i(this,"_insertedNodes",{})}init(){document.addEventListener("borlabs-cookie-consent-saved",function(){window.BorlabsCookie.Unblock.unblockServiceOptInCode(),window.BorlabsCookie.Unblock.unblockInlineCode("service-group"),window.BorlabsCookie.Unblock.unblockInlineCode("service"),window.BorlabsCookie.Unblock.unblockByContentBlockerServiceConsents()}),document.addEventListener("borlabs-cookie-handle-unblock",function(){var e,t;if((t=(e=u.backwardsCompatibility)==null?void 0:e.value)!=null&&t){y.onExist("BorlabsCookie.BorlabsCookieLegacyBackwardCompatibility",()=>{window.BorlabsCookie.Unblock.unblockServiceOptInCode(),window.BorlabsCookie.Unblock.unblockInlineCode("service-group"),window.BorlabsCookie.Unblock.unblockInlineCode("service"),window.BorlabsCookie.Unblock.unblockByContentBlockerServiceConsents()});return}window.BorlabsCookie.Unblock.unblockServiceOptInCode(),window.BorlabsCookie.Unblock.unblockInlineCode("service-group"),window.BorlabsCookie.Unblock.unblockInlineCode("service"),window.BorlabsCookie.Unblock.unblockByContentBlockerServiceConsents()})}unblockServiceOptInCode(){const e=g.pluginCookie.consents;for(const t of Object.keys(e))for(const o of e[t]){if(w.findByServiceGroupId(t)===null||(this._optInCodesUnblocked[t]===void 0&&(this._optInCodesUnblocked[t]={}),k.findByServiceId(o)===null)||this._optInCodesUnblocked[t][o]!==void 0)continue;this._optInCodesUnblocked[t][o]=!0;const n=k.findByServiceId(o);n.optInCode!==void 0&&this.insertAndExecuteServiceCode(n.optInCode)}f.info("Opt-in codes unblocked.",{consents:e})}unblockServiceOptOutCode(e,t){if(!k.isValid(t,e)||(this._optOutCodesUnblocked[e]===void 0&&(this._optOutCodesUnblocked[e]={}),this._optOutCodesUnblocked[e][t]!==void 0))return;this._optOutCodesUnblocked[e][t]=!0;const o=k.findByServiceId(t);o.optOutCode!==void 0&&(this.insertAndExecuteServiceCode(o.optOutCode),f.info("Opt-out code unblocked.",{serviceGroup:e,service:t}))}unblockInlineCode(e){const t=e==="service"?de:fe;document.querySelectorAll(`[${t}]`).forEach(o=>{var a;if(!(o instanceof HTMLElement))return;const n=o.getAttribute(t),s=o.getAttribute(ie);n!==null&&s===null&&(e==="service-group"&&A.hasConsentForServiceGroup(n)||e==="service"&&A.hasConsent(n))&&(this.embedHtmlElements(this.b64DecodeToUnicode((a=o.getAttribute(P))!=null?a:""),o),o.remove(),f.info('Inline code unblocked of id "${id}".',{id:n,type:e}))})}unblockByContentBlockerServiceConsents(){document.querySelectorAll(`[${C}
2]`).forEach(e=>{e instanceof HTMLElement&&this.unblockContentBlockerIfServiceConsentGiven(e)})}unblockContentBlockerIfServiceConsentGiven(e){var o,n;if(!(e instanceof HTMLElement))return;const t=e.getAttribute(C);t!==null&&A.hasConsent((n=(o=I.findByContentBlockerId(t))==null?void 0:o.serviceId)!=null?n:"")&&this.unblockContentBlockerElement(e)}unblockContentBlockerElement(e){return S(this,null,function*(){var c,l,d;const t=typeof e.getAttribute(P)!="undefined"?e:e.closest(`[${P}}]`);if(t===null)return;this.executeContentBlockerGlobalJavaScriptBeforeUnblocking((c=t.getAttribute(C))!=null?c:"");const o=this.embedHtmlElements(this.b64DecodeToUnicode((l=t.getAttribute(P))!=null?l:""),t);f.info(`Html elements embedded, nodeIndex "${o}".`,{contentBlockerId:t.getAttribute(C)}),yield this.handleContentBlockerJavaScriptExecutionAfterUnblocking((d=t.getAttribute(C))!=null?d:"",o);const n=`contentUnblocked[${t.getAttribute(C)}]`,s=`borlabs-cookie-content-unblocked[${t.getAttribute(C)}]`,a=this.getlastInsertedNode(o);a instanceof Element&&(p.register(n,s),p.dispatch(n,a)),t.remove()})}handleContentBlockerJavaScriptExecutionAfterUnblocking(e,t){return S(this,null,function*(){const o=I.contentBlockers[e],n=()=>S(this,null,function*(){return new Promise(s=>{let a=!0;if(_.allocatedScripts[e]!==void 0){const c=_.allocatedScripts[e];if(c.scriptBlockerId.length)for(const l of c.scriptBlockerId)_.blockedScriptsLoaded(l,"scriptBlockerId")||(a=!1);if(c.jsHandle.length)for(const l of c.jsHandle)_.blockedScriptsLoaded(l,"jsHandle")||(a=!1)}a?(f.info("Blocked scripts loaded.",{id:e}),s(!0)):setTimeout(()=>{n().then(s)},50)})});return n().then(s=>(this.executeContentBlockerGlobalJavaScriptAfterUnblocking(e,o),f.info(`Execute initialization code of Content Blocker id "${e}".`,{code:o.javaScriptInitialization}),this.executeContentBlockerJavaScript(o.javaScriptInitialization,e,t),s))})}executeContentBlockerGlobalJavaScriptBeforeUnblocking(e){if(e){const t=I.contentBlockers[e];t&&t.settings&&t.settings["execute-global-code-before-unblocking"]==="1"&&this._contentBlockerGlobalCodeExecuted[e]===void 0&&(f.info(`Execute global code of Content Blocker id "${e}".`,{code:t.javaScriptGlobal}),this.executeContentBlockerJavaScript(t.javaScriptGlobal,e),this._contentBlockerGlobalCodeExecuted[e]=!0)}}executeContentBlockerGlobalJavaScriptAfterUnblocking(e,t){t.settings&&t.settings["execute-global-code-before-unblocking"]!=="1"&&this._contentBlockerGlobalCodeExecuted[e]===void 0&&(f.info(`Execute global code of Content Blocker id "${e}".`,{code:t.javaScriptGlobal}),this.executeContentBlockerJavaScript(t.javaScriptGlobal,e),this._contentBlockerGlobalCodeExecuted[e]=!0)}insertAndExecuteServiceCode(e){this.embedHtmlElements(this.b64DecodeToUnicode(e),document.querySelector("body").lastElementChild)}executeContentBlockerJavaScript(e,t,o){this.embedHtmlElements('<script type="text/javascript">(function(contentBlockerData, el) { '+this.decodeHTMLEntities(e)+` 3})(window.borlabsCookieConfig.contentBlockers['`+t+"'], "+(o?"window.BorlabsCookie.Unblock.getlastInsertedNode("+o+")":null)+");<\/script>",document.querySelector("body").lastElementChild)}embedHtmlElements(e,t){const o=t.parentElement,n=document.createRange();n.selectNode(o);const s=n.createContextualFragment(e);return t.nextElementSibling?(o.insertBefore(s,t.nextElementSibling),this._insertedNodes[Object.keys(this._insertedNodes).length]=t.nextElementSibling):(o.appendChild(s),this._insertedNodes[Object.keys(this._insertedNodes).length]=o.lastElementChild),Object.keys(this._insertedNodes).length}unblockScriptBlockerId(e){const t=`[${oe}="${e}"]`,o=document.querySelectorAll(t);return o.length>0&&(_.updateStatusOfUnblockedScripts(e,"scriptBlockerId",o.length),f.info(`Unblock script id "${e}".`,{total:o.length}),this.unblockScript(t,e,"scriptBlockerId")),!0}unblockScriptBlockerHandle(e){const t=`[${ge}="${e}"]`,o=document.querySelectorAll(t);return o.length&&(_.updateStatusOfUnblockedScripts(e,"jsHandle",o.length),f.info(`Unblock handle "${e}".`,{total:o.length}),this.unblockScript(t,e,"jsHandle")),!0}unblockScript(e,t,o){var s,a,c,l;const n=document.querySelector(e);
3if(n!==null){const d=document.createElement("script");n.id!==""&&(d.id=n.id),n.className!==""&&(d.className=n.className);for(const L of Object.keys(n.dataset))if(L.indexOf("borlabs")===-1){const m=L.split(/(?=[A-Z])/);m.forEach((B,D)=>{m[D]="-"+B.toLowerCase()}),d.setAttribute("data"+m.join(""),n.dataset[L])}const b=n.getAttribute(be);f.info(`Unblock script of id "${t}".`,{id:t,inlineScript:b===null,remainingBlockedScripts:document.querySelectorAll(e).length-1,selector:e});let T=n.getAttribute("type")==="text/template-module";b!==null?(d.src=b,T&&(d.type="module"),d.onload=()=>{_.updateStatusOfUnblockedScripts(t,o,_.getNumberOfUnblockedScripts(t,o)-1),this.unblockScript(e,t,o)},(s=n.parentNode)==null||s.insertBefore(d,n),(a=n.parentNode)==null||a.removeChild(n)):(d.type=T?"module":"text/javascript",d.innerHTML=n.innerHTML,(c=n.parentNode)==null||c.insertBefore(d,n),(l=n.parentNode)==null||l.removeChild(n),_.updateStatusOfUnblockedScripts(t,o,_.getNumberOfUnblockedScripts(t,o)-1),this.unblockScript(e,t,o))}return!0}unblockStyleBlockerHandle(e){document.querySelectorAll("["+q+'="'+e+'"]').forEach(o=>{o instanceof HTMLElement&&this.unblockLinkElement(o)})}unblockLinkElement(e){const t=e.getAttribute(K),o=e.getAttribute(V);t&&(f.info(`Unblock link tag of id "${o}".`,{href:t,id:o}),e.setAttribute("href",t),e.removeAttribute(q),e.removeAttribute(K),e.removeAttribute(V))}unblockStyleBlockerId(e){document.querySelectorAll("["+V+'="'+e+'"]').forEach(o=>{var n,s;if(o instanceof HTMLElement){if(o.tagName.toLowerCase()==="link")this.unblockLinkElement(o);else if(o.tagName.toLowerCase()==="script"){f.info(`Unblock style tag "${e}".`,{id:e});const a=document.createElement("style");a.textContent=o.innerText,(n=o.parentNode)==null||n.insertBefore(a,o.nextSibling),(s=o.parentNode)==null||s.removeChild(o)}}})}b64DecodeToUnicode(e){return decodeURIComponent(Array.prototype.map.call(window.atob(e),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}decodeHTMLEntities(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}set optInCodesUnblocked(e){this._optInCodesUnblocked=e}getlastInsertedNode(e){return this._insertedNodes[e-1]}}const x=new Ke;
3class Je{constructor(){i(this,"_providers",null)}findByContentBlockerId(e){for(const t of Object.values(this._providers))if(t.contentBlockerIds.includes(e))return t;return null}findByProviderId(e){return e in this._providers?this._providers[e]:null}findByIabVendorId(e){for(const t of Object.values(this._providers))if(t.iabVendorId===e)return t;return null}findByServiceId(e){for(const t of Object.values(this._providers))if(t.serviceIds.includes(e))return t;return null}init(e){this._providers=e}get providers(){return this._providers}}const ze=new Je;function We(){return H("GET","borlabs-cookie/v1/consent/history",{language:u.language.value}).then(r=>r).catch(r=>{f.error(r)})}class Ye{constructor(){i(this,"consentHistory")}unset(){this.consentHistory=void 0}get(){return S(this,null,function*(){this.consentHistory||(this.consentHistory=yield We());const e=[];return typeof this.consentHistory!="undefined"&&Object.entries(this.consentHistory).forEach(([,t])=>{const o={essential:[]};Object.entries(t.consents).forEach(([,n])=>{o[n.key]=n.services}),e.push({consents:o,iabTcfTCString:t.iabTcfTCString,isLatest:!!t.isLatest,stamp:t.stamp,version:t.version})}),e})}}const Qe=new Ye,pt=Symbol("GUIDialog"),Ze=F("Entrance"),$=F(!0),Xe=F(!0);function kt(r){p.dispatch("dialogClosing"),$.value=r,Qe.unset()}function Z(r){Ze.value=r}function X(r){Xe.value=r}class et extends pe{constructor(){super(...arguments);i(this,"_config",{});i(this,"imprintLink");i(this,"privacyLink");i(this,"a11yDialogCloseButton");i(this,"a11yDialogCloseButtonExplained");i(this,"a11yProviderDialogExplained");i(this,"a11yProviderListExplained");i(this,"a11yRegionServices");i(this,"a11yRegionServicesExplained");i(this,"a11yServiceGroupListExplained");i(this,"a11yWidgetButton");i(this,"entranceAcceptAllButton");i(this,"entranceAcceptOnlyEssential");i(this,"entranceDescription");i(this,"entranceHeadline");i(this,"entranceLanguageSwitcherLink");i(this,"entrancePreferencesButton");i(this,"entrancePreferencesLink");i(this,"entranceSaveConsentButton");i(this,"detailsAcceptAllButton");i(this,"detailsAcceptOnlyEssential");i(this,"detailsBackLink");i(this,"detailsDescription");i(this,"detailsDeselectAll");i(this,"detailsHeadline");i(this,"detailsHideMoreInformationLink");i(this,"detailsSaveConsentButton");i(this,"detailsSelectAll");i(this,"detailsShowMoreInformationLink");i(this,"detailsSwitchStatusActive");i(this,"detailsSwitchStatusInactive");i(this,"detailsTabConsentHistory");i(this,"detailsTabProvider");i(this,"detailsTabServices");i(this,"detailsTabServiceGroups");i(this,"legalInformationDescriptionConfirmAge");i(this,"legalInformationDescriptionIndividualSettings");i(this,"legalInformationDescriptionMoreInformation");i(this,"legalInformationDescriptionNonEuDataTransfer");i(this,"legalInformationDescriptionNoObligation");i(this,"legalInformationDescriptionPersonalData");i(this,"legalInformationDescriptionRevoke");i(this,"legalInformationDescriptionTechnology");i(this,"serviceDetailsTableServiceOptions");i(this,"servicePlural");i(this,"serviceSearchPlaceholder");i(this,"serviceSingular");i(this,"providerAddress");i(this,"providerCloseButton");i(this,"providerCookieUrl");i(this,"providerDescription");i(this,"providerInformationTitle");i(this,"providerName");i(this,"providerOptOutUrl");i(this,"providerPartners");i(this,"providerPlural");i(this,"providerPrivacyUrl");i(this,"providerSearchPlaceholder");i(this,"providerSingular");i(this,"consentHistoryLoading");i(this,"consentHistoryNoData");i(this,"consentHistoryTableChoice");i(this,"consentHistoryTableConsentGiven");i(this,"consentHistoryTableConsentWithdrawn");i(this,"consentHistoryTableConsents");i(this,"consentHistoryTableDate");i(this,"consentHistoryTableVersion");i(this,"consentHistoryTableVersionChanges");i(this,"consentHistoryTableVersionChangesAdded");i(this,"consentHistoryTableVersionChangesRemoved");i(this,"iabTcfA11yPurposeListExplained");i(this,"iabTcfA11yRegionTcfVendorConsentHistory");i(this,"iabTcfA11yRegionTcfVendorConsentHistoryExplained");i(this,"iabTcfA11yRegionVendors");i(this,"iabTcfA11yRegionVendorsExplained");i(this,"iabTcfA11yServiceGroupListExplained");i(this,"iabTcfDataRetention");i(this,"iabTcfDataRetentionInDays");i(this,"iabTcfDescriptionCookieInformation");i(this,"iabTcfDescriptionIndiviualSettings");i(this,"iabTcfDescriptionLegInt");i(this,"iabTcfDescriptionMoreInformation");i(this,"iabTcfDescriptionNoCommitment");i(this,"iabTcfDescriptionPersonalData");i(this,"iabTcfDescriptionRevoke");i(this,"iabTcfDescriptionTechnology");i(this,"iabTcfHeadlineConsentHistory");i(this,"iabTcfHeadlineConsentHistoryNonTcfStandard");i(this,"iabTcfHeadlineDataCategories");i(this,"iabTcfHeadlineFeatures");i(this,"iabTcfHeadlineIllustrations");
3i(this,"iabTcfHeadlineLegitimateInterests");i(this,"iabTcfHeadlineNonTcfCategories");i(this,"iabTcfHeadlinePurposes");i(this,"iabTcfHeadlineSpecialFeatures");i(this,"iabTcfHeadlineSpecialPurposes");i(this,"iabTcfHeadlineStandardDataRetention");i(this,"iabTcfHeadlineStorageInformation");i(this,"iabTcfHeadlineVendorAdditionalInformation");i(this,"iabTcfHeadlineVendorConsentHistory");i(this,"iabTcfNonTcf");i(this,"iabTcfShowAllProviders");i(this,"iabTcfShowAllVendors");i(this,"iabTcfStorageInformationCookieRefresh");i(this,"iabTcfStorageInformationDateDay");i(this,"iabTcfStorageInformationDateDays");i(this,"iabTcfStorageInformationDateLessThanADay");i(this,"iabTcfStorageInformationDateMonth");i(this,"iabTcfStorageInformationDateMonths");i(this,"iabTcfStorageInformationDomain");i(this,"iabTcfStorageInformationIdentifier");i(this,"iabTcfStorageInformationMaxAgeSeconds");i(this,"iabTcfStorageInformationPurposes");i(this,"iabTcfStorageInformationStatusNo");i(this,"iabTcfStorageInformationStatusYes");i(this,"iabTcfStorageInformationType");i(this,"iabTcfStorageInformationUsesCookies");i(this,"iabTcfStorageInformationUsesNonCookieAccess");i(this,"iabTcfTabCategories");i(this,"iabTcfTabLegitimateInterest");i(this,"iabTcfTabVendors");i(this,"iabTcfVendorLegitimateInterestClaim");i(this,"iabTcfVendorPlural");i(this,"iabTcfVendorPrivacyPolicy");i(this,"iabTcfVendorSearchPlaceholder");i(this,"iabTcfVendorSingular")}getCookiePurposeValue(t){return{functional:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookiePurposeFunctional,tracking:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookiePurposeTracking}[t]}getCookieTypeValue(t){return{http:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookieTypeHttp,local_storage:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookieTypeLocalStorage,session_storage:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookieTypeSessionStorage}[t]}getServiceDetailsTableLabel(t){return{cookies:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookies,description:window.borlabsCookieConfig.globalStrings.serviceDetailsTableDescription,hosts:window.borlabsCookieConfig.globalStrings.serviceDetailsTableHosts,lifetime:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookieLifetime,name:window.borlabsCookieConfig.globalStrings.serviceDetailsTableName,purpose:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookiePurpose,type:window.borlabsCookieConfig.globalStrings.serviceDetailsTableCookieType}[t]}getServiceOptionLabel(t){return{dataCollection:window.borlabsCookieConfig.globalStrings.serviceDetailsTableServiceOptionDataCollection,dataPurpose:window.borlabsCookieConfig.globalStrings.serviceDetailsTableServiceOptionDataPurpose,distribution:window.borlabsCookieConfig.globalStrings.serviceDetailsTableServiceOptionDistribution,legalBasis:window.borlabsCookieConfig.globalStrings.serviceDetailsTableServiceOptionLegalBasis,processingLocation:window.borlabsCookieConfig.globalStrings.serviceDetailsTableServiceOptionProcessingLocation,technology:window.borlabsCookieConfig.globalStrings.serviceDetailsTableServiceOptionTechnology}[t]}}const tt=new et;class ot{constructor(){i(this,"cookieBoxMounted",!1);i(this,"shortcodesMounted",!1);i(this,"registeredElements",new WeakMap);i(this,"userHasBeenActive",!1);i(this,"waitForUserKeyDownOrScrollEventToMountCookieBoxBoundHandlerFunction",()=>{});i(this,"widgetMounted",!1)}isBot(){return/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())}init(){return S(this,null,function*(){var e;if(window.location.href!=="about:blank"){if(g.init(),ae(),Re.handle(),p.register("afterInit","borlabs-cookie-after-init"),p.register("consentSaved","borlabs-cookie-consent-saved"),p.register("dialogClosing","borlabs-cookie-dialog-closing"),p.register("dialogOpening","borlabs-cookie-dialog-opening"),p.register("handleUnblock","borlabs-cookie-handle-unblock"),x.init(),p.dispatch("afterInit"),g.isPluginCookieValid()&&(!u.iabTcfStatus.value||u.iabTcfStatus.value&&window.BorlabsCookie.Adapter.IABTCF().isTCStringUpToDate()===!0))u.iabTcfStatus.value&&window.BorlabsCookie.Adapter.IABTCF().signalDoNowShowUI(),p.dispatch("handleUnblock");else if(u.dialogShowDialog.value)if(((e=document.getElementById("BorlabsCookieBox"))==null?void 0:e.getAttribute(te))==="true"){if(!this.isPageInHideDialogOnPagesList(`${window.location.origin}${window.location.pathname}`)&&location.search.indexOf("borlabs-cookie-skip-dialog")===-1)if(u.co
3okiesForBots.value&&this.isBot())this.saveConsentAll(),p.dispatch("handleUnblock");else if(u.respectDoNotTrack.value&&typeof navigator.doNotTrack!="undefined"&&navigator.doNotTrack==="1"){const t={essential:Object.keys(k.findByServiceGroupId("essential"))};A.save(t),p.dispatch("handleUnblock")}else(yield Me.isConsentRequired())?this.loadCookieBox():this.saveConsentAll()}else this.saveConsentAll(),p.dispatch("handleUnblock");this.loadWidget(),this.loadShortcodes()}})}saveConsentAll(){return S(this,null,function*(){u.iabTcfStatus.value&&(yield window.BorlabsCookie.Adapter.IABTCF().saveConsentAll());const e={essential:Object.keys(k.findByServiceGroupId("essential"))};for(const t of Object.keys(w.serviceGroups))e[t]=Object.values(w.findByServiceGroupId(t).serviceIds);A.save(e)})}loadIABTCFConsents(){return S(this,null,function*(){const t=(yield v(()=>import("./iabtcf.BvXAsWC3.min.js").then(c=>c.i),__vite__mapDeps([0,1,2]),import.meta.url)).IABTCF,o=yield v(()=>import("./use-iabtcf-purposes.dTuox3QZ.min.js"),__vite__mapDeps([3,4,0,1,2]),import.meta.url),n=yield v(()=>import("./use-special-features.Cw4JHzUC.min.js"),__vite__mapDeps([5,4,0,1,2]),import.meta.url),s=yield v(()=>import("./use-iabtcf-vendors.BecxeTHa.min.js"),__vite__mapDeps([4,0,1,2]),import.meta.url),a=yield v(()=>import("./use-iabtcf-legitimate-interests.ONlzmKkH.min.js"),__vite__mapDeps([6,0,1,2]),import.meta.url);yield t.gvl.readyPromise,t.prepareVendorIds(),t.isTCStringUpToDate()?(u.language.value!=="en"&&(yield t.gvl.changeLanguage(u.language.value)),Object.keys(t.gvl.purposes).forEach(c=>{const l=parseInt(c);t.hasConsentPurpose(l)&&o.activatePurpose(t.gvl.purposes[l]),t.hasConsentLegInt(l)&&a.activateLegitimatePurpose(t.gvl.purposes[l])}),Object.keys(t.gvl.specialFeatures).forEach(c=>{const l=parseInt(c);t.hasConsentSpecialFeature(l)&&n.activateSpecialFeature(t.gvl.specialFeatures[l])}),Object.keys(t.gvl.vendors).forEach(c=>{const l=parseInt(c);t.hasConsentVendor(l)&&s.activateVendor(t.gvl.vendors[l]),t.hasConsentVendorLegInt(l)&&a.activateLegitimateInterestVendor(t.gvl.vendors[l])})):yield a.activateAllLegitimateInterests()})}loadCookieBox(e=!1){return S(this,null,function*(){var t;if(u.iabTcfStatus.value&&(yield this.loadIABTCFConsents()),e||((t=u.dialogShowDialogAfterUserInteraction)==null?void 0:t.value)!==!0){this.mountCookieBox();return}this.waitForUserKeyDownOrScrollEventToMountCookieBoxBoundHandlerFunction=this.waitForUserKeyDownOrScrollEventToMountCookieBox.bind(this),window.addEventListener("keydown",this.waitForUserKeyDownOrScrollEventToMountCookieBoxBoundHandlerFunction,{once:!0}),window.addEventListener("scroll",this.waitForUserKeyDownOrScrollEventToMountCookieBoxBoundHandlerFunction,{once:!0}),requestAnimationFrame(()=>{this.waitForUserActivationToMountCookieBox()})})}waitForUserKeyDownOrScrollEventToMountCookieBox(e){this.userHasBeenActive||(this.userHasBeenActive=!0,this.mountCookieBox(),window.removeEventListener("keydown",this.waitForUserKeyDownOrScrollEventToMountCookieBoxBoundHandlerFunction),window.removeEventListener("scroll",this.waitForUserKeyDownOrScrollEventToMountCookieBoxBoundHandlerFunction))}waitForUserActivationToMountCookieBox(){this.userHasBeenActive||(navigator.userActivation&&navigator.userActivation.isActive?(this.userHasBeenActive=!0,this.mountCookieBox()):requestAnimationFrame(()=>{this.waitForUserActivationToMountCookieBox()}))}mountCookieBox(){p.dispatch("dialogOpening"),this.cookieBoxMounted||(E(O(()=>v(()=>import("./borlabs-cookie-box.B5URxZ4O.min.js").then(e=>e.p),__vite__mapDeps([7,2,1,8,9,4,0,3,5,10,11,6,12]),import.meta.url))).mount("#BorlabsCookieBox"),this.cookieBoxMounted=!0)}loadWidget(){this.widgetMounted||(E(O(()=>v(()=>import("./borlabs-widget.CwDOngWK.min.js"),__vite__mapDeps([13,2,1]),import.meta.url))).mount("#BorlabsCookieWidget"),this.widgetMounted=!0)}loadShortcodes(){this.shortcodesMounted||(document.querySelectorAll(`${ke},${he}`).forEach(e=>{if(!(e instanceof HTMLElement))throw"unexpected type";let t=e.querySelector("a");if(e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement)e.addEventListener("click",o=>
3{o.preventDefault(),this.loadCookieBox(!0),X(!1),Z("Details"),$.value=!0});else if(t!==null)t.addEventListener("click",o=>{o.preventDefault(),this.loadCookieBox(!0),X(!1),Z("Details"),$.value=!0});else{if(typeof e.dataset.borlabsCookieTitle=="undefined"){let o=e.querySelector("a");o!==null?e.dataset.borlabsCookieTitle=o.innerText:e.dataset.borlabsCookieTitle=tt.entrancePreferencesLink.value}E(O(()=>v(()=>import("./borlabs-cookie-preferences.CkWvqKZt.min.js"),__vite__mapDeps([14,10,2,8,11,1]),import.meta.url)),N({},e.dataset)).mount(e)}}),document.querySelectorAll(`[${ie}]`).forEach(e=>{if(!(e instanceof HTMLElement))throw"unexpected type";E(O(()=>v(()=>import("./borlabs-cookie-switch-consent.BeE6kOf6.min.js"),__vite__mapDeps([15,16,1,2,8]),import.meta.url)),N({},e.dataset)).mount(e)}),document.querySelectorAll(`[${ve}]`).forEach(e=>{if(!(e instanceof HTMLElement))throw"unexpected type";E(O(()=>v(()=>import("./borlabs-cookie-user-uid.BIG2qsOt.min.js"),__vite__mapDeps([17,2,8,1]),import.meta.url))).mount(e)}),document.querySelectorAll(`[${Ce}]`).forEach(e=>{if(!(e instanceof HTMLElement))throw"unexpected type";E(O(()=>v(()=>import("./borlabs-cookie-service-list.DMsnl2zA.min.js"),__vite__mapDeps([18,19,1,2,8,16,20]),import.meta.url))).mount(e)}),document.querySelectorAll(`[${me}]`).forEach(e=>{if(!(e instanceof HTMLElement))throw"unexpected type";E(O(()=>v(()=>import("./consent-history-table.so9NoCuE.min.js"),__vite__mapDeps([21,22,1,2]),import.meta.url))).mount(e)}),M("body",`[${C}]`,e=>{this.registerContentBlockerEvents(e),x.unblockContentBlockerIfServiceConsentGiven(e)}),document.querySelectorAll(`[${C}]`).forEach(e=>{if(!(e instanceof HTMLElement))throw"unexpected type";this.registerContentBlockerEvents(e)}),M("body","a",e=>{this.addTCStringToUrl(e)}),M("body","img",e=>{this.addTCStringToUrl(e)}),document.querySelectorAll("a").forEach(e=>{this.addTCStringToUrl(e)}),document.querySelectorAll("img").forEach(e=>{this.addTCStringToUrl(e)}),this.shortcodesMounted=!0)}addTCStringToUrl(e){if(!(!u.iabTcfStatus.value||u.iabTcfHostnamesForConsentAddition.value.length===0)&&!(e instanceof HTMLAnchorElement&&e.href===""||!(e instanceof HTMLImageElement)))try{let t=new URL(e instanceof HTMLAnchorElement?e.href:e.src);if(u.iabTcfHostnamesForConsentAddition.value.indexOf(t.hostname)===-1)return;let o=window.BorlabsCookie.Adapter.IABTCF().currentTCString;if(o.length<=0){typeof __tcfapi=="function"&&__tcfapi("addEventListener",2,(n,s)=>{o=window.BorlabsCookie.Adapter.IABTCF().currentTCString,t.searchParams.has("gdpr")?t.searchParams.set("gdpr",1):t.searchParams.append("gdpr",1),t.searchParams.has("gdpr_consent")?t.searchParams.set("gdpr_consent",o):t.searchParams.append("gdpr_consent",o),e instanceof HTMLAnchorElement?e.href=t.href:e instanceof HTMLImageElement&&(e.src=t.href)});return}t.searchParams.has("gdpr")?t.searchParams.set("gdpr",1):t.searchParams.append("gdpr",1),t.searchParams.has("gdpr_consent")?t.searchParams.set("gdpr_consent",o):t.searchParams.append("gdpr_consent",o),e instanceof HTMLAnchorElement?e.href=t.href:e instanceof HTMLImageElement&&(e.src=t.href)}catch(t){}}registerContentBlockerEvents(e){this.addEventListenerOnce(e,`[${Se}]`,"click",t=>{t.preventDefault();let o=e.getAttribute(C);if(typeof o=="string"){const n=`beforeContentUnblocked[${o}]`,s=`borlabs-cookie-before-content-unblocked[${o}]`;p.register(n,s,{initiator:"accept-service-button"}),p.dispatch(n),I.unblockServices(o)}}),this.addEventListenerOnce(e,`[${Te}]`,"click",t=>{t.preventDefault();let o=e.getAttribute(C);if(typeof o=="string"){const n=`beforeContentUnblocked[${o}]`,s=`borlabs-cookie-before-content-unblocked[${o}]`;p.register(n,s,{initiator:"unblock-button"}),p.dispatch(n)}x.unblockContentBlockerElement(e)}),this.addEventListenerOnce(e,`[${_e}]`,"click",t=>{var d,b;const o=t.currentTarget;t.preventDefault();let n=null,s=()=>{var T;(T=document.querySelector("div.brlbs-cmpnt-cb-card"))==null||T.remove(),o.setAttribute("aria-expanded","false"),n==null||n.unmount()};const a=e.getAttribute(C);if(a===null)return;const c=I.findByContentBlockerId(a),l=document.createElement("div");l.classList.add("brlbs-cmpnt-container","brlbs-cmpnt-content-blocker","brlbs-cmpnt-cb-card"),document.body.appendChild(l),n=E(O(()=>v(()=>import("./content-blocker-modal.Czo4-RlY.min.js"),__vite__mapDeps([23,24,2,1,9,8,25]),import.meta.url)),{contentBlocker:c,contentBlockerInformation:(b=(d=o.parentElement)==null?void 0:d.querySelector("[data-borlabs-cookie-content-blocker-information]"))==null?void 0:b.innerHTML,contentBlockerNode:o.closest(`[${C}]`),onCloseContentBlockerModal:s}),n.mount(l),o.setAttribute("aria-expanded","true")}),this.addEventListenerOnce(e,`[${Ee}]`,"click",t=>{const o=t.currentTarget;t.preventDefault();let n=null,s=()=>{var T;(T=document.querySelector("div.brlbs-cmpnt-cb-provider-card"))==null||T.remove(),o.setAttribute("aria-expanded","fal
3se"),n==null||n.unmount()};const a=e.getAttribute(C);if(a===null)return;const c=I.findByContentBlockerId(a);if(c===null)return;const l=c.providerId,d=ze.findByProviderId(l),b=document.createElement("div");b.classList.add("brlbs-cmpnt-container","brlbs-cmpnt-content-blocker","brlbs-cmpnt-cb-provider-card"),document.body.appendChild(b),n=E(O(()=>v(()=>import("./provider-service-information-table.BjYO3Yce.min.js"),__vite__mapDeps([26,24,2,19,1,8,9,27]),import.meta.url)),{contentBlocker:c,provider:d,onCloseProviderCard:s}),n.mount(b),o.setAttribute("aria-expanded","true")})}isPageInHideDialogOnPagesList(e){for(let t of u.dialogHideDialogOnPages.value)try{if(t=t.replaceAll("/","\\/"),new RegExp(`^${t}$`).test(e))return!0}catch(o){if(t.indexOf(e)!==-1)return!0}return!1}addEventListenerOnce(e,t,o,n){e.querySelectorAll(t).forEach(s=>{if(!(s instanceof HTMLElement))return;let a=this.registeredElements.get(s);a||(a=new Set,this.registeredElements.set(s,a)),a.has(o)||s.addEventListener(o,n)})}}const ee=new ot;function it(r){return H("POST","borlabs-cookie/v1/consent/statistic",{language:u.language.value,consentLog:r}).then(e=>e).catch(e=>{f.error(e)})}class nt{add(){return S(this,null,function*(){return it({borlabsCookieConsentString:ne.transformToServiceGroupConsentListJSONString(g.pluginCookie.consents),iabTcfTCString:window.BorlabsCookie.Adapter.IABTCF().currentTCString,uid:g.pluginCookie.uid,version:g.pluginCookie.version})})}}const st=new nt;class rt{constructor(){i(this,"_optOutTriggered",!1);i(this,"_pauseReload",!1);i(this,"_missingOptOuts",null);i(this,"_waitingToSaveOptOutInBackend",!1)}handle(){u.cookieCrossCookieDomains.value.length&&!ee.isBot()&&u.cookieCrossCookieDomains.value.forEach(function(e){const t=document.createElement("iframe"),o=U.findCookie
3s(we);t.style.display="none",t.src=e+"?__borlabsCookieCrossDomainCookie=1&__borlabsCookieLanguage="+u.language.value+"&__borlabsCookieCookieData="+encodeURIComponent(JSON.stringify(g.pluginCookie))+"&__borlabsCookieTCString="+(o.length>0?o[0].value:"")+"&__borlabsCookieClientTime="+new Date().getTime(),document.body.appendChild(t)})}add(){return ne.add()}save(e){this.optOutTriggered=!1;const t=g.getPluginCookie().consents;let o=!0;for(const s of Object.keys(e))Array.isArray(e[s])&&e[s].length===0&&delete e[s];g.getPluginCookie().version!==0&&(Object.keys(e).length===1||JSON.stringify(e)===JSON.stringify(g.getPluginCookie().consents))&&(o=!1),g.setPluginCookie(e,!1),o&&!ee.isBot()&&st.add();const n=this.add();this.handle(),p.dispatch("consentSaved");for(const s of Object.keys(t))for(const a of t[s])if(e[s]===void 0||e[s].indexOf(a)===-1){const c=k.findByServiceId(a);c.settings["asynchronous-opt-out-code"]!==void 0&&c.settings["asynchronous-opt-out-code"]==="1"&&this.queueOptOut(a)}for(const s of Object.keys(t))for(const a of t[s])(e[s]===void 0||e[s].indexOf(a)===-1)&&(this.optOutTriggered=!0,x.unblockServiceOptOutCode(s,a));n.then(()=>{this.afterConsentsSave()})}addConsent(e,t){let o=!1;const n=y.cloneObject(g.pluginCookie.consents);return this.isValid(e)&&this.isValid(t)&&(k.isValid(e,t)?(n[t]===void 0&&(n[t]=[]),n[t].indexOf(e)===-1&&n[t].push(e),this.save(n),o=!0):f.error(`Service "${e}" in service group "${t}" unknown.`,{service:e,serviceGroup:t})),o}removeConsent(e,t){let o=!1;const n=y.cloneObject(g.pluginCookie.consents);return this.isValid(e)&&this.isValid(t)&&(k.isValid(e,t)?n[t]!==void 0&&n[t].indexOf(e)!==-1?(n[t].splice(n[t].indexOf(e),1),n[t].length===0&&delete n[t],this.save(n),o=!0):f.notice(`No consent for service "${e}" in service group "${t}".`,{service:e,serviceGroup:t}):f.error(`Service "${e}" in service group "${t}" unkown.`,{service:e,serviceGroup:t})),o}hasConsent(e,t){let o=!1;const n=g.pluginCookie.consents;if(this.isValid(e)&&(t!==void 0&&this.isValid(t)||t===void 0)){if(t!==void 0)n[t]!==void 0&&y.inArray(e,n[t])&&(o=!0);else for(const s of Object.keys(n))if(y.inArray(e,n[s])){o=!0;break}}return o}hasConsentForServiceGroup(e){let t=!1;const o=g.pluginCookie.consents;return this.isValid(e)&&o[e]!==void 0&&(t=!0),t}hasAllServicesConsented(e){if(!this.isValid(e)||w.serviceGroups[e]===void 0)return!1;const t=g.pluginCookie.consents;if(t[e]===void 0)return!1;const o=t[e];for(const n of w.serviceGroups[e].serviceIds)if(!o.includes(n))return!1;return!0}isValid(e){let t=!1;return new RegExp(/^[a-z-_]{3,}$/).test(e)?t=!0:f.error(`Service/Service group "${e}" is invalid.`,{id:e}),t}get optOutTriggered(){return this._optOutTriggered}set optOutTriggered(e){this._optOutTriggered=e}get pauseReload(){return this._pauseReload}set pauseReload(e){this._pauseReload=e}get missingOptOuts(){return this._missingOptOuts}set missingOptOuts(e){this._missingOptOuts=e}get waitingToSaveOptOutInBackend(){return this._waitingToSaveOptOutInBackend}set waitingToSaveOptOutInBackend(e){this._waitingToSaveOptOutInBackend=e}queueOptOut(e){this.missingOptOuts===null&&(this.missingOptOuts=[],this.waitingToSaveOptOutInBackend=!0),this.missingOptOuts.push(e)}optOutDone(e){if(this.missingOptOuts===null){console.log("No opt out has been initialized");return}const t=this.missingOptOuts.length;if(this.missingOptOuts=this.missingOptOuts.filter(function(o){return o!==e}),t===this.missingOptOuts.length){console.log('No opt out found for cookie "'+e+'"');return}this.asyncOptOutsDone()&&(this.missingOptOuts=null,u.reloadAfterOptOut.value&&this.reload())}asyncOptOutsDone(){return(this.missingOptOuts===null||this.missingOptOuts.length===0)&&!this.waitingToSaveOptOutInBackend}afterConsentsSave(){this.waitingToSaveOptOutInBackend=!1,u.reloadAfterOptOut.value&&this.optOutTriggered?this.asyncOptOutsDone()&&this.reload():u.reloadAfterOptIn.value&&Object.keys(g.pluginCookie).length>0&&this.reload()}reload(){this.pauseReload||location.reload()}}const A=new rt;export{dt as A,ut as C,pt as S,we as T,A as _,_ as a,y as b,U as c,g as d,ee as e,Z as f,$ as g,x as h,I as i,ze as j,w as k,k as l,tt as m,Qe as n,Q as o,gt as p,se as q,$e as r,X as s,re as t,ft as u,bt as v,Xe as w,v as x,kt as y,Ze as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.