diff --git a/dist/cookie-consent.min.js b/dist/cookie-consent.min.js index 39b7ddc..8e7d7e7 100644 --- a/dist/cookie-consent.min.js +++ b/dist/cookie-consent.min.js @@ -1 +1 @@ -var CookieConsentWrapper;(()=>{var t={249:function(t,e,n){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(480)}catch(t){}var o=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},c=a.lib={},u=c.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=c.WordArray=u.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var c=0;c>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},p=l.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},y=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},h=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=y.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,c=i/(4*a),u=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*a,l=t.min(4*u,i);if(u){for(var f=0;f>>7)^(h<<14|h>>>18)^h>>>3,v=s[y-2],b=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;s[y]=d+s[y-7]+b+s[y-16]}var g=r&o^r&i^o&i,m=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&f)+u[y]+s[y];p=f,f=l,l=c,c=a+_|0,a=i,i=o,o=r,r=_+(m+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=i._createHelper(l),e.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256)},686:()=>{!function(){"use strict";var t="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[t]&&(window[t]=function(t){var e,n,r,o,i,a,c,u,s,l,f,p,y,h,d,v,b,g,m,_,w,k,S,O,j,E,P,C,T,x,A,L,N,R,I,D={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},B={},M={},W=null,H=!0,F=!1,G=!1,Y=!1,U=!1,z=!0,J=[],q=!1,V=[],$=[],K=[],X=!1,Q=[],Z=[],tt=[],et=[],nt=[],rt=document.documentElement,ot=function(t){"number"==typeof(e=t).cookie_expiration&&(D.cookie_expiration=e.cookie_expiration),"number"==typeof e.cookie_necessary_only_expiration&&(D.cookie_necessary_only_expiration=e.cookie_necessary_only_expiration),"boolean"==typeof e.autorun&&(D.autorun=e.autorun),"string"==typeof e.cookie_domain&&(D.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(D.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(D.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(D.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(f=e.onAccept),"function"==typeof e.onFirstAction&&(y=e.onFirstAction),"function"==typeof e.onChange&&(p=e.onChange),"opt-out"===e.mode&&(D.mode="opt-out"),"number"==typeof e.revision&&(e.revision>-1&&(D.revision=e.revision),U=!0),"boolean"==typeof e.autoclear_cookies&&(D.autoclear_cookies=e.autoclear_cookies),!0===e.use_rfc_cookie&&(D.use_rfc_cookie=!0),"boolean"==typeof e.hide_from_bots&&(D.hide_from_bots=e.hide_from_bots),D.hide_from_bots&&(X=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),D.page_scripts=!0===e.page_scripts,"browser"===e.auto_language||!0===e.auto_language?D.auto_language="browser":"document"===e.auto_language&&(D.auto_language="document"),D.auto_language,D.current_lang=pt(e.languages,e.current_lang)},it=function(t){for(var e="accept-",n=c("c-settings"),r=c(e+"all"),o=c(e+"necessary"),i=c(e+"custom"),a=0;a0?e.hasOwnProperty(D.current_lang)?D.current_lang:wt(e)[0]:void 0},ct=function(t){if(!0===e.force_consent&&kt(rt,"force--consent"),!m){m=ft("div");var n=ft("div"),r=ft("div");m.id="cm",n.id="c-inr-i",r.id="cm-ov",m.tabIndex=-1,m.setAttribute("role","dialog"),m.setAttribute("aria-modal","true"),m.setAttribute("aria-hidden","false"),m.setAttribute("aria-labelledby","c-ttl"),m.setAttribute("aria-describedby","c-txt"),g.appendChild(m),g.appendChild(r),m.style.visibility=r.style.visibility="hidden",r.style.opacity=0}var o=e.languages[t].consent_modal.title;o&&(_||((_=ft("h2")).id="c-ttl",n.appendChild(_)),_.innerHTML=o);var i=e.languages[t].consent_modal.description;U&&(i=z?i.replace("{{revision_message}}",""):i.replace("{{revision_message}}",e.languages[t].consent_modal.revision_message||"")),w||((w=ft("div")).id="c-txt",n.appendChild(w)),w.innerHTML=i;var a,c=e.languages[t].consent_modal.primary_btn,u=e.languages[t].consent_modal.secondary_btn;c&&(k||((k=ft("button")).id="c-p-bn",k.className="c-bn",k.appendChild(jt(1)),"accept_all"===c.role&&(a="all"),_t(k,"click",(function(){B.hide(),B.accept(a)}))),k.firstElementChild.innerHTML=e.languages[t].consent_modal.primary_btn.text),u&&(S||((S=ft("button")).id="c-s-bn",S.className="c-bn c_link",S.appendChild(jt(1)),"accept_necessary"===u.role?_t(S,"click",(function(){B.hide(),B.accept([])})):_t(S,"click",(function(){B.showSettings(0)}))),S.firstElementChild.innerHTML=e.languages[t].consent_modal.secondary_btn.text);var s=e.gui_options;j||((j=ft("div")).id="c-inr",j.appendChild(n)),O||((O=ft("div")).id="c-bns",s&&s.consent_modal&&!0===s.consent_modal.swap_buttons?(u&&O.appendChild(S),c&&O.appendChild(k),O.className="swap"):(c&&O.appendChild(k),u&&O.appendChild(S)),(c||u)&&j.appendChild(O),m.appendChild(j)),F=!0,it(j)},ut=function(t){if(E)(A=ft("div")).id="s-bl";else{(E=ft("div")).tabIndex=-1;var n=ft("div"),r=ft("div"),o=ft("div");P=ft("div"),C=ft("h2");var i=ft("div");(T=ft("button")).appendChild(jt(2));var a=ft("div");x=ft("div");var c=ft("div"),u=!1;_t(E,"mouseup",(function(t){!Y||u||P.contains(t.target)||B.hideSettings()})),_t(E,"mousedown",(function(t){Y&&(u=P.contains(t.target))})),E.id="s-cnt",n.id="c-vln",o.id="c-s-in",r.id="cs",C.id="s-ttl",P.id="s-inr",i.id="s-hdr",x.id="s-bl",T.id="s-c-bn",c.id="cs-ov",a.id="s-c-bnc",T.className="c-bn",E.setAttribute("role","dialog"),E.setAttribute("aria-modal","true"),E.setAttribute("aria-hidden","true"),E.setAttribute("aria-labelledby","s-ttl"),E.style.visibility=c.style.visibility="hidden",c.style.opacity=0,a.appendChild(T),_t(document,"keydown",(function(t){27===t.keyCode&&Y&&B.hideSettings()}),!0),_t(T,"click",(function(){B.hideSettings()}))}var f=e.languages[t].settings_modal;T.setAttribute("aria-label",f.close_btn_label||"Close"),l=f.blocks,s=f.cookie_table_headers;var p=f.cookie_table_caption,y=l.length;C.innerHTML=f.title;for(var h=0;h-1?(G.checked=!0,!A&&tt.push(!0)):!A&&tt.push(!1),!A&&et.push(V),b.readonly&&(G.disabled=!0,kt(U,"c-ro"),!A&&nt.push(V)),kt(S,"b-acc"),kt(j,"b-bn"),kt(k,"b-ex"),S.id=D,S.setAttribute("aria-hidden","true"),F.appendChild(G),F.appendChild(U),F.appendChild(z),j.appendChild(F),w&&function(t,e,n){_t(W,"click",(function(){Ot(e,"act")?(St(e,"act"),n.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true")):(kt(e,"act"),n.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"))}),!1)}(S,k,W)}else if(d){var $=ft("div");$.className="b-tl",$.setAttribute("role","heading"),$.setAttribute("aria-level","3"),$.insertAdjacentHTML("beforeend",d),j.appendChild($)}if(d&&k.appendChild(j),v&&S.appendChild(O),!_&&void 0!==m){for(var X=document.createDocumentFragment(),Q=0;Q-1;if(!tt[++n]&&c.hasOwnProperty("cookie_table")&&(t||u)){var f=c.cookie_table,p=wt(s[0])[0],y=f.length;"on_disable"===c.toggle.reload&&u&&(q=!0);for(var h=0;h-1&&b.push(r[S])}b.length>0&&(mt(b,w,d),"on_clear"===c.toggle.reload&&(q=!0))}}}}},lt=function(t,e){return t.indexOf(e)},ft=function(t){var e=document.createElement(t);return"button"===t&&e.setAttribute("type",t),e},pt=function(t,e){return"browser"===D.auto_language?at(yt(),t):"document"===D.auto_language?at(document.documentElement.lang,t):"string"==typeof e?D.current_lang=at(e,t):(D.current_lang,D.current_lang)},yt=function(){var t=navigator.language||navigator.browserLanguage;return t.length>2&&(t=t[0]+t[1]),t.toLowerCase()};B.allowedCategory=function(t){if(H&&"opt-in"!==D.mode)e=K;else var e=JSON.parse(gt(D.cookie_name,"one",!0)||"{}").categories||[];return lt(e,t)>-1},B.run=function(e){if(!document.getElementById("cc_div")){if(ot(e),X)return;M=JSON.parse(gt(D.cookie_name,"one",!0)||"{}");var c=void 0!==(o=M.consent_uuid);if((n=M.consent_date)&&(n=new Date(n)),(r=M.last_consent_update)&&(r=new Date(r)),W=void 0!==M.data?M.data:null,U&&M.revision!==D.revision&&(z=!1),F=H=!(c&&z&&n&&r&&o),function(){(b=ft("div")).id="cc--main",b.style.position="fixed",b.innerHTML='
',g=b.children[0];var e=D.current_lang;F&&ct(e),ut(e),(t||document.body).appendChild(b)}(),function(){var t=["[href]","button","input","details",'[tabindex="0"]'];function e(e,n){try{var r=e.querySelectorAll(t.join(':not([tabindex="-1"]), '))}catch(n){return e.querySelectorAll(t.join(", "))}n[0]=r[0],n[1]=r[r.length-1]}e(P,Z),F&&e(m,Q)}(),function(t,e){if("object"==typeof t){var n=t.consent_modal,r=t.settings_modal;F&&n&&o(m,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),r&&o(E,["bar"],["left","right"],["zoom","slide"],r.layout,r.position,r.transition)}function o(t,e,n,r,o,i,a){if(i=i&&i.split(" ")||[],lt(e,o)>-1&&(kt(t,o),("bar"!==o||"middle"!==i[0])&<(n,i[0])>-1))for(var c=0;c-1&&kt(t,a)}}(e.gui_options),it(),D.autorun&&F&&B.show(e.delay||0),setTimeout((function(){kt(b,"c--anim")}),30),setTimeout((function(){_t(document,"keydown",(function(t){if("Tab"===t.key&&(G||Y)&&i){var e=Ct();t.shiftKey?e!==i[0]&&a.contains(e)||(t.preventDefault(),Et(i[1])):e!==i[1]&&a.contains(e)||(t.preventDefault(),Et(i[0]))}}))}),100),H)"opt-out"===D.mode&&(D.mode,ht());else{var u="boolean"==typeof M.rfc_cookie;(!u||u&&M.rfc_cookie!==D.use_rfc_cookie)&&(M.rfc_cookie=D.use_rfc_cookie,bt(D.cookie_name,JSON.stringify(M))),h=vt(dt()),ht(),"function"==typeof f&&f(M)}}};var ht=function(){if(D.page_scripts){var t=M.categories||[];H&&"opt-out"===D.mode&&(t=K);var e=document.querySelectorAll("script["+D.script_selector+"]"),n=function(e,r){if(r-1){o.type=o.getAttribute("data-type")||"text/javascript",o.removeAttribute(D.script_selector);var a=o.getAttribute("data-src");a&&o.removeAttribute("data-src");var c=ft("script");if(c.textContent=o.innerHTML,function(t,e){for(var n=e.attributes,r=n.length,o=0;o0)for(var i=0;i0?t:e?30:0))},B.hide=function(){F&&(G=!1,Et(c),m.setAttribute("aria-hidden","true"),St(rt,"show--consent"),Et(d),d=null)},B.showSettings=function(t){Y=!0,E.removeAttribute("aria-hidden"),G?v=Ct():d=Ct(),a=E,i=Z,setTimeout((function(){kt(rt,"show--settings")}),t>0?t:0)},B.hideSettings=function(){Y=!1,Pt(),Et(u),E.setAttribute("aria-hidden","true"),St(rt,"show--settings"),G?(Et(v),v=null,a=m,i=Q):(Et(d),d=null)},B.accept=function(t,e){var i=t||void 0,a=e||[],c=[];if(i)if("object"==typeof i&&"number"==typeof i.length)for(var u=0;u=1)for(u=0;u0)for(var i=0;i0&&st(),n||(n=new Date),o||(o=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){try{return(t^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}catch(t){return""}}))),M={categories:t,level:t,revision:D.revision,data:W,rfc_cookie:D.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:o},(H||J.length>0)&&(z=!0,r=r?new Date:n,M.last_consent_update=r.toISOString(),h=vt(dt()),bt(D.cookie_name,JSON.stringify(M)),ht()),H&&(D.autoclear_cookies&&st(!0),"function"==typeof y&&y(B.getUserPreferences(),M),"function"==typeof f&&f(M),H=!1,"opt-in"===D.mode)||("function"==typeof p&&J.length>0&&p(M,J),q&&location.reload())}(c)},B.eraseCookies=function(t,e,n){var r=[],o=n?[n,"."+n]:[D.cookie_domain,"."+D.cookie_domain];if("object"==typeof t&&t.length>0)for(var i=0;i-1&&D.cookie_domain&&(o+=" Domain="+D.cookie_domain+";"),"https:"===location.protocol&&(o+=" Secure;"),document.cookie=o},gt=function(t,e,n){var r;if("one"===e){if((r=(r=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))?n?r.pop():t:"")&&t===D.cookie_name){try{r=JSON.parse(r)}catch(t){try{r=JSON.parse(decodeURIComponent(r))}catch(t){r={}}}r=JSON.stringify(r)}}else if("all"===e){var o=document.cookie.split(/;\s*/);r=[];for(var i=0;i{}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};(()=>{"use strict";n.d(r,{default:()=>hn});n(686);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n){for(var r=0;r=n.length)){var c;for(c in this._eventTriggers)this._eventTriggers[c].tryInvoke(this._gtag,n)&&delete this._eventTriggers[c];return e}}},{key:"_autoClearCookies",value:function(){if(this._config.autoClearOptions.enabled){var t=this._config.autoClearOptions.strategy;if(M.STRATEGY_COOKIE_TABLES!==t){for(var e=document.cookie.split(/;\s*/),n=[],r=this._config.autoClearOptions.cookie_names||[],o=0;o=r.showModalAgainExpiration)){var i=new Date,a=new Date(t.valueOf());if(a.setDate(a.getDate()+r.showModalAgainExpiration),i>=a)return this._cookieConsent.showSettings(0),void this._updateLastActionDate()}}}else this._updateLastActionDate()}}],n&&ft(e.prototype,n),r&&ft(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function yt(t){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(t)}function ht(){ht=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new x(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="suspendedYield",h="executing",d="completed",v={};function b(){}function g(){}function m(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(A([])));k&&k!==n&&r.call(k,a)&&(_=k);var S=m.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==yt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=P(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?d:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=d,r.method="throw",r.arg=s.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function dt(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function vt(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];if(t in gt(this,mt))return!0;var r,o=t.endsWith(".js")?t:t+".js",i=document.head.querySelector("script[src='".concat(o,"']"));if(i){if(window.cookieConsentWrapperTranslations&&o in window.cookieConsentWrapperTranslations)return this.merge(window.cookieConsentWrapperTranslations[o],n),!0;t=o,r=new Promise((function(t,e){var n=function e(){i.removeEventListener("load",e),i.removeEventListener("error",r),t(window.cookieConsentWrapperTranslations[o])},r=function t(){i.removeEventListener("load",n),i.removeEventListener("error",t),e(new Error("Unable to load script: ".concat(o)))};i.addEventListener("load",n),i.addEventListener("error",r)}))}else r=fetch(t).then((function(t){return t.json()}));return gt(this,mt)[t]=r.then((function(r){return e.merge(r,n),delete gt(e,mt)[t],r})).catch((function(n){console.warn("CookieConsentWrapper: Unable to load translations from ".concat(t),n),delete gt(e,mt)[t]}))}},{key:"translate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t in this))return t;"consent_modal_revision_message"!==t&&(e.revision_message=this.consent_modal_revision_message);var n=this[t];for(var r in e)n=n.replaceAll("[["+r+"]]",e[r]);return n}},{key:"merge",value:function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];for(e in t)e in this&&(n||""===this[e])&&(this[e]=t[e])}},{key:"exportTranslations",value:(o=ht().mark((function t(e,n){var r,o,i,a,c,u,s=arguments;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>2&&void 0!==s[2]?s[2]:{},!(o=Object.values(gt(this,mt))).length){t.next=5;break}return t.next=5,Promise.all(o);case 5:i=[],""===this.settings_modal_before_consent_title&&""===this.settings_modal_before_consent_description||i.push({title:this.translate("settings_modal_before_consent_title",r),description:this.translate("settings_modal_before_consent_description",r)}),a=e.all(),t.t0=ht().keys(a);case 9:if((t.t1=t.t0()).done){t.next=17;break}if(u=t.t1.value,(c=a[u]).displayInWidget&&c.name+"_title"in this){t.next=14;break}return t.abrupt("continue",9);case 14:i.push({title:this.translate(c.name+"_title",r),description:this.translate(c.name+"_description",r),toggle:{value:c.name,enabled:c.enabledByDefault,readonly:c.readonly}}),t.next=9;break;case 17:return""===this.settings_modal_after_consent_title&&""===this.settings_modal_after_consent_description||i.push({title:this.translate("settings_modal_after_consent_title",r),description:this.translate("settings_modal_after_consent_description",r)}),t.abrupt("return",{consent_modal:{title:this.translate("consent_modal_title",r),description:this.translate("consent_modal_description",r),revision_message:this.translate("consent_modal_revision_message",r),primary_btn:{text:this.translate("consent_modal_primary_btn",r),role:n.consentModalOptions.primary_button_role},secondary_btn:{text:this.translate("accept_necessary"===n.consentModalOptions.secondary_button_role?"consent_modal_secondary_btn_accept_necessary":"consent_modal_secondary_btn_settings",r),role:n.consentModalOptions.secondary_button_role}},settings_modal:{title:this.translate("settings_modal_title",r),save_settings_btn:this.translate("settings_modal_save_settings_btn",r),accept_all_btn:this.translate("settings_modal_accept_all_btn",r),reject_all_btn:this.translate("settings_modal_reject_all_btn",r),close_btn_label:this.translate("settings_modal_close_btn_label",r),blocks:i}});case 19:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){dt(i,n,r,a,c,"next",t)}function c(t){dt(i,n,r,a,c,"throw",t)}a(void 0)}))},function(t,e){return i.apply(this,arguments)})}],n&&vt(e.prototype,n),r&&vt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function wt(t){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(t)}function kt(){kt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new x(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="suspendedYield",h="executing",d="completed",v={};function b(){}function g(){}function m(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(A([])));k&&k!==n&&r.call(k,a)&&(_=k);var S=m.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==wt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=P(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?d:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=d,r.method="throw",r.arg=s.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function St(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Ot(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];return t in this._catalogues?n=this._catalogues[t]:(n=new _t(t),this._catalogues[t]=n),n.loadFromUrl(e,r)}},{key:"addTranslations",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t in this._catalogues?e=this._catalogues[t]:(e=new _t(t),this._catalogues[t]=e),e.merge(n)}},{key:"addPlaceholder",value:function(t,e){return this._placeholders[t]=e,this}},{key:"translate",value:function(t,e){return t in this._catalogues?this._catalogues[t].translate(e,this._placeholders):e}},{key:"exportTranslations",value:(o=kt().mark((function t(e,n){var r,o,i;return kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r={},t.t0=kt().keys(this._catalogues);case 2:if((t.t1=t.t0()).done){t.next=10;break}return o=t.t1.value,i=this._catalogues[o],t.next=7,i.exportTranslations(e,n,this._placeholders);case 7:r[i.locale]=t.sent,t.next=2;break;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){St(i,n,r,a,c,"next",t)}function c(t){St(i,n,r,a,c,"throw",t)}a(void 0)}))},function(t,e){return i.apply(this,arguments)})}],n&&Ot(e.prototype,n),r&&Ot(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function Pt(t){return function(t){if(Array.isArray(t))return Ct(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ct(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ct(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:null;if("function"!=typeof e)throw new TypeError("Listener must be of type function.");var r="idx_"+this._generator.getNextIdentifier();return this._listeners[t]=this._listeners[t]||{},this._listeners[t][r]={callback:e,scope:n},function(){t in this._listeners&&r in this._listeners[t]&&delete this._listeners[t][r]}}},{key:"dispatch",value:function(t){for(var e,n,r=this._listeners[t]||{},o=arguments.length,i=new Array(o>1?o-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:t.TYPE_OR;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!Array.isArray(n)){if("string"!=typeof n)throw new TypeError("Invalid argument $storageNames passed, the argument must be string or array of strings.");n=[n]}if(0>=n.length)throw new Error("Storage names can't be an empty array.");if(-1===[t.TYPE_OR,t.TYPE_AND].indexOf(r))throw new Error("Invalid event trigger type ".concat(r,"."));this._name=e,this._type=r,this._storageNames=n}var e,n,r;return e=t,r=[{key:"TYPE_OR",get:function(){return"or"}},{key:"TYPE_AND",get:function(){return"and"}}],(n=[{key:"tryInvoke",value:function(e,n){var r,o=!1;for(r in this._storageNames)if((o=-1!==n.indexOf(this._storageNames[r]))&&t.TYPE_OR===this._type||!o&&t.TYPE_AND===this._type)break;return o&&e("event",this._name,{}),o}}])&&Mt(e.prototype,n),r&&Mt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Ft(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=(Vt[t[e+0]]+Vt[t[e+1]]+Vt[t[e+2]]+Vt[t[e+3]]+"-"+Vt[t[e+4]]+Vt[t[e+5]]+"-"+Vt[t[e+6]]+Vt[t[e+7]]+"-"+Vt[t[e+8]]+Vt[t[e+9]]+"-"+Vt[t[e+10]]+Vt[t[e+11]]+Vt[t[e+12]]+Vt[t[e+13]]+Vt[t[e+14]]+Vt[t[e+15]]).toLowerCase();if(!qt(n))throw TypeError("Stringified UUID is invalid");return n};const Xt=function(t,e,n){var r=(t=t||{}).random||(t.rng||zt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return Kt(r)};function Qt(t){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(t)}function Zt(t,e){for(var n=0;n=t.length)throw new Error("User identity must be non empty string.");return e._id=t,e}return e=i,(n=[{key:"toString",value:function(){return this._id}}])&&fe(e.prototype,n),r&&fe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(Yt);function ve(t){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(t)}function be(t,e){for(var n=0;n=r.header.length))for(var o in n.settings_modal.cookie_table_headers=r.header,n.settings_modal.blocks){var i=n.settings_modal.blocks[o];"toggle"in i&&"value"in i.toggle&&(i.cookie_table=r.getRows(i.toggle.value))}}}}])&&Te(e.prototype,n),r&&Te(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ae(t,e){e.url&&e.resolveProject()&&(!0===e.consent_api_enabled&&function(t,e){var n=function(n){var r=t.user,o=t.configurationExport,i=e.url.replace(new RegExp("/$"),""),a=e.resolveProject(),c={};for(var u in n)if(t._storagePool.has(u)){var s=t._storagePool.get(u);(s.enabledByDefault||s.displayInWidget||s.syncConsentWith)&&(c[u]="granted"===n[u])}fetch("".concat(i,"/api/v").concat(e.version.toString(),"/consent/").concat(a,"/").concat(r.identity.toString()),{method:"put",credentials:"omit",body:JSON.stringify({settingsChecksum:o.checksum,consents:c,attributes:r.attributes,environment:e.environment})}).then((function(t){return t.json()})).then((function(t){if("success"!==t.status)return Promise.reject(t);"data"in t&&"consentSettingsExists"in t.data&&!0!==t.data.consentSettingsExists&&fetch("".concat(i,"/api/v").concat(e.version.toString(),"/consent-settings/").concat(a,"/").concat(o.checksum),{method:"put",body:JSON.stringify(o.configuration)}).then((function(t){return t.json().then((function(t){return"success"===t.status?Promise.resolve(t):Promise.reject(t)}))})).catch((function(t){console.warn("Sending consent settings into CMP failed.",t)}))})).catch((function(t){console.warn("Sending consent into CMP failed.",t)}))};t.on("consent:first-action",(function(t){return n(t)})),t.on("consent:changed",(function(t){return n(t)}))}(t,e),!0===e.cookies_api_enabled&&function(t,e){for(var n={name:function(t){return t.name},purpose:function(t){return t.purpose},processing_time:function(e,n){var r=e.processingTime;return"session"!==r&&"persistent"!==r||(r=t.translate(n,"processing_time_"+r)),r},provider:function(t){return t.cookieProvider.name},type:function(e,n){return t.translate(n,"cookie_type_"+e.cookieProvider.type)},link:function(t){return t.cookieProvider.link.length?'').concat(t.cookieProvider.link,""):""},link_find_out_more:function(e,n){return e.cookieProvider.link.length?'\n \n ').concat(t.translate(n,"find_out_more"),"\n \n "):""},category:function(t){return t.category.name}},r=[],o=0;o=r.length)){var a=[],c=function(t,e){var o={};for(var i in r){var a=r[i],c=n[a]||function(){return""};o[a]=c(t,e)}return o},u=function(n){var o=n||t.unwrap().getConfig("current_lang");if(-1===a.indexOf(o)){a.push(o);var i=e.url.replace(new RegExp("/$"),""),u=e.resolveProject(),s=["locale=".concat(o)];"string"==typeof e.environment&&s.push("environment=".concat(e.environment)),fetch("".concat(i,"/api/v").concat(e.version.toString(),"/cookies/").concat(u,"?").concat(s.join("&")),{method:"get",credentials:"omit"}).then((function(t){return t.json()})).then((function(e){if("success"!==e.status)return Promise.reject(e);if("data"in e&&"cookies"in e.data&&!(0>=e.data.cookies.length)){for(var n=t.cookieTables.getCookieTable(o),i=0;i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ie(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function De(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Wt.TYPE_OR;this._eventTriggers[t]=new Wt(t,e,n)}},{key:"translate",value:function(t,e){return this._dictionary.translate(t,e)}},{key:"addTranslations",value:function(t,e){this._dictionary.addTranslations(t,e||{})}},{key:"loadTranslations",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.startsWith("https://")||t.startsWith("http://")?(n=2<(n=t.split("/").pop().split(".").shift()).length?n[0]+n[1]:n,e=t):(n=2<(n=t).length?n[0]+n[1]:n,e="".concat(this._scriptBasePath,"/translations/").concat(n,".json")),this._dictionary.loadTranslations(n,e,r)}},{key:"unwrap",value:function(){if(null===this._cookieConsent)throw new Error("Cookie consent is not created, please call method CookieConsentWrapper.init().");return this._cookieConsent}},{key:"allowedCategory",value:function(t){return this.unwrap().allowedCategory(t)}},{key:"changeLocale",value:function(t,e){var n=this.unwrap();this._eventBus.dispatch(st.ON_LOCALE_CHANGE,t),n.updateLanguage(t,e)}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return st.ON_INIT===t&&this._initialized&&null!==this._cookieConsent?(e.call(n),function(){}):this._eventBus.subscribe(t,e,n)}},{key:"init",value:function(t,e){if(!this._initializationTriggered){var n=this;if(t.CookieConsentWrapper=n,e){this._initializationTriggered=!0;var r=function(){var r,o=(r=Re().mark((function r(){var o,i,a,c;return Re().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return xt.loadFromConfig(e,n._config.uiOptions),n._cookieConsent=t.initCookieConsent(),o=new pt(n._cookieConsent,n._eventBus,n._config,n._storagePool,Object.values(n._eventTriggers),n._gtag),(i=n._config.exportCookieConsentConfig()).onFirstAction=function(t){return o.onFirstAction(t)},i.onAccept=function(){return o.onAccept()},i.onChange=function(t,e){return o.onChange(t,e)},r.next=9,n._dictionary.addPlaceholder("user_identity",n.user.identity.toString()).exportTranslations(n._storagePool,n._config);case 9:i.languages=r.sent,n._cookieTables.appendCookieTables(i.languages),e&&"string"==typeof n._config.settingsModalOptions.modal_trigger_selector&&(c=new Nt(e,n._dictionary),a=c.create(n._config.settingsModalOptions.modal_trigger_selector,n._config.pluginOptions.current_lang||e.documentElement.lang)),Ae(n,n._config.cmpApiOptions),n._config.consentModalOptions.show_third_button&&n.on(st.ON_INIT,(function(){(new we).append(n,e)})),n._cookieConsent.run(i),a&&a.textElement&&(a.textElement.innerHTML=n.translate(n._cookieConsent.getConfig("current_lang"),"modal_trigger_title")),n._initialized=!0,n._eventBus.dispatch(st.ON_INIT);case 18:case"end":return r.stop()}}),r)})),function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){Ie(i,n,o,a,c,"next",t)}function c(t){Ie(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return o.apply(this,arguments)}}();"loading"!==e.readyState?r():e.addEventListener("DOMContentLoaded",r)}}}}],n&&De(e.prototype,n),r&&De(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Me(t){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Me(t)}function We(t,e){for(var n=0;n{var t={249:function(t,e,n){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(480)}catch(t){}var o=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},c=a.lib={},u=c.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=c.WordArray=u.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var c=0;c>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},p=l.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},y=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},d=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=y.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,c=i/(4*a),u=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*a,l=t.min(4*u,i);if(u){for(var f=0;f>>7)^(d<<14|d>>>18)^d>>>3,v=s[y-2],b=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;s[y]=h+s[y-7]+b+s[y-16]}var g=r&o^r&i^o&i,m=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&f)+u[y]+s[y];p=f,f=l,l=c,c=a+_|0,a=i,i=o,o=r,r=_+(m+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=i._createHelper(l),e.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256)},686:()=>{!function(){"use strict";var t="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[t]&&(window[t]=function(t){var e,n,r,o,i,a,c,u,s,l,f,p,y,d,h,v,b,g,m,_,w,k,S,O,j,E,P,C,T,x,L,A,N,R,I,D={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},B={},M={},W=null,H=!0,F=!1,G=!1,Y=!1,U=!1,z=!0,J=[],q=!1,V=[],$=[],K=[],X=!1,Q=[],Z=[],tt=[],et=[],nt=[],rt=document.documentElement,ot=function(t){"number"==typeof(e=t).cookie_expiration&&(D.cookie_expiration=e.cookie_expiration),"number"==typeof e.cookie_necessary_only_expiration&&(D.cookie_necessary_only_expiration=e.cookie_necessary_only_expiration),"boolean"==typeof e.autorun&&(D.autorun=e.autorun),"string"==typeof e.cookie_domain&&(D.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(D.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(D.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(D.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(f=e.onAccept),"function"==typeof e.onFirstAction&&(y=e.onFirstAction),"function"==typeof e.onChange&&(p=e.onChange),"opt-out"===e.mode&&(D.mode="opt-out"),"number"==typeof e.revision&&(e.revision>-1&&(D.revision=e.revision),U=!0),"boolean"==typeof e.autoclear_cookies&&(D.autoclear_cookies=e.autoclear_cookies),!0===e.use_rfc_cookie&&(D.use_rfc_cookie=!0),"boolean"==typeof e.hide_from_bots&&(D.hide_from_bots=e.hide_from_bots),D.hide_from_bots&&(X=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),D.page_scripts=!0===e.page_scripts,"browser"===e.auto_language||!0===e.auto_language?D.auto_language="browser":"document"===e.auto_language&&(D.auto_language="document"),D.auto_language,D.current_lang=pt(e.languages,e.current_lang)},it=function(t){for(var e="accept-",n=c("c-settings"),r=c(e+"all"),o=c(e+"necessary"),i=c(e+"custom"),a=0;a0?e.hasOwnProperty(D.current_lang)?D.current_lang:wt(e)[0]:void 0},ct=function(t){if(!0===e.force_consent&&kt(rt,"force--consent"),!m){m=ft("div");var n=ft("div"),r=ft("div");m.id="cm",n.id="c-inr-i",r.id="cm-ov",m.tabIndex=-1,m.setAttribute("role","dialog"),m.setAttribute("aria-modal","true"),m.setAttribute("aria-hidden","false"),m.setAttribute("aria-labelledby","c-ttl"),m.setAttribute("aria-describedby","c-txt"),g.appendChild(m),g.appendChild(r),m.style.visibility=r.style.visibility="hidden",r.style.opacity=0}var o=e.languages[t].consent_modal.title;o&&(_||((_=ft("h2")).id="c-ttl",n.appendChild(_)),_.innerHTML=o);var i=e.languages[t].consent_modal.description;U&&(i=z?i.replace("{{revision_message}}",""):i.replace("{{revision_message}}",e.languages[t].consent_modal.revision_message||"")),w||((w=ft("div")).id="c-txt",n.appendChild(w)),w.innerHTML=i;var a,c=e.languages[t].consent_modal.primary_btn,u=e.languages[t].consent_modal.secondary_btn;c&&(k||((k=ft("button")).id="c-p-bn",k.className="c-bn",k.appendChild(jt(1)),"accept_all"===c.role&&(a="all"),_t(k,"click",(function(){B.hide(),B.accept(a)}))),k.firstElementChild.innerHTML=e.languages[t].consent_modal.primary_btn.text),u&&(S||((S=ft("button")).id="c-s-bn",S.className="c-bn c_link",S.appendChild(jt(1)),"accept_necessary"===u.role?_t(S,"click",(function(){B.hide(),B.accept([])})):_t(S,"click",(function(){B.showSettings(0)}))),S.firstElementChild.innerHTML=e.languages[t].consent_modal.secondary_btn.text);var s=e.gui_options;j||((j=ft("div")).id="c-inr",j.appendChild(n)),O||((O=ft("div")).id="c-bns",s&&s.consent_modal&&!0===s.consent_modal.swap_buttons?(u&&O.appendChild(S),c&&O.appendChild(k),O.className="swap"):(c&&O.appendChild(k),u&&O.appendChild(S)),(c||u)&&j.appendChild(O),m.appendChild(j)),F=!0,it(j)},ut=function(t){if(E)(L=ft("div")).id="s-bl";else{(E=ft("div")).tabIndex=-1;var n=ft("div"),r=ft("div"),o=ft("div");P=ft("div"),C=ft("h2");var i=ft("div");(T=ft("button")).appendChild(jt(2));var a=ft("div");x=ft("div");var c=ft("div"),u=!1;_t(E,"mouseup",(function(t){!Y||u||P.contains(t.target)||B.hideSettings()})),_t(E,"mousedown",(function(t){Y&&(u=P.contains(t.target))})),E.id="s-cnt",n.id="c-vln",o.id="c-s-in",r.id="cs",C.id="s-ttl",P.id="s-inr",i.id="s-hdr",x.id="s-bl",T.id="s-c-bn",c.id="cs-ov",a.id="s-c-bnc",T.className="c-bn",E.setAttribute("role","dialog"),E.setAttribute("aria-modal","true"),E.setAttribute("aria-hidden","true"),E.setAttribute("aria-labelledby","s-ttl"),E.style.visibility=c.style.visibility="hidden",c.style.opacity=0,a.appendChild(T),_t(document,"keydown",(function(t){27===t.keyCode&&Y&&B.hideSettings()}),!0),_t(T,"click",(function(){B.hideSettings()}))}var f=e.languages[t].settings_modal;T.setAttribute("aria-label",f.close_btn_label||"Close"),l=f.blocks,s=f.cookie_table_headers;var p=f.cookie_table_caption,y=l.length;C.innerHTML=f.title;for(var d=0;d-1?(G.checked=!0,!L&&tt.push(!0)):!L&&tt.push(!1),!L&&et.push(V),b.readonly&&(G.disabled=!0,kt(U,"c-ro"),!L&&nt.push(V)),kt(S,"b-acc"),kt(j,"b-bn"),kt(k,"b-ex"),S.id=D,S.setAttribute("aria-hidden","true"),F.appendChild(G),F.appendChild(U),F.appendChild(z),j.appendChild(F),w&&function(t,e,n){_t(W,"click",(function(){Ot(e,"act")?(St(e,"act"),n.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true")):(kt(e,"act"),n.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"))}),!1)}(S,k,W)}else if(h){var $=ft("div");$.className="b-tl",$.setAttribute("role","heading"),$.setAttribute("aria-level","3"),$.insertAdjacentHTML("beforeend",h),j.appendChild($)}if(h&&k.appendChild(j),v&&S.appendChild(O),!_&&void 0!==m){for(var X=document.createDocumentFragment(),Q=0;Q-1;if(!tt[++n]&&c.hasOwnProperty("cookie_table")&&(t||u)){var f=c.cookie_table,p=wt(s[0])[0],y=f.length;"on_disable"===c.toggle.reload&&u&&(q=!0);for(var d=0;d-1&&b.push(r[S])}b.length>0&&(mt(b,w,h),"on_clear"===c.toggle.reload&&(q=!0))}}}}},lt=function(t,e){return t.indexOf(e)},ft=function(t){var e=document.createElement(t);return"button"===t&&e.setAttribute("type",t),e},pt=function(t,e){return"browser"===D.auto_language?at(yt(),t):"document"===D.auto_language?at(document.documentElement.lang,t):"string"==typeof e?D.current_lang=at(e,t):(D.current_lang,D.current_lang)},yt=function(){var t=navigator.language||navigator.browserLanguage;return t.length>2&&(t=t[0]+t[1]),t.toLowerCase()};B.allowedCategory=function(t){if(H&&"opt-in"!==D.mode)e=K;else var e=JSON.parse(gt(D.cookie_name,"one",!0)||"{}").categories||[];return lt(e,t)>-1},B.run=function(e){if(!document.getElementById("cc_div")){if(ot(e),X)return;M=JSON.parse(gt(D.cookie_name,"one",!0)||"{}");var c=void 0!==(o=M.consent_uuid);if((n=M.consent_date)&&(n=new Date(n)),(r=M.last_consent_update)&&(r=new Date(r)),W=void 0!==M.data?M.data:null,U&&M.revision!==D.revision&&(z=!1),F=H=!(c&&z&&n&&r&&o),function(){(b=ft("div")).id="cc--main",b.style.position="fixed",b.innerHTML='
',g=b.children[0];var e=D.current_lang;F&&ct(e),ut(e),(t||document.body).appendChild(b)}(),function(){var t=["[href]","button","input","details",'[tabindex="0"]'];function e(e,n){try{var r=e.querySelectorAll(t.join(':not([tabindex="-1"]), '))}catch(n){return e.querySelectorAll(t.join(", "))}n[0]=r[0],n[1]=r[r.length-1]}e(P,Z),F&&e(m,Q)}(),function(t,e){if("object"==typeof t){var n=t.consent_modal,r=t.settings_modal;F&&n&&o(m,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),r&&o(E,["bar"],["left","right"],["zoom","slide"],r.layout,r.position,r.transition)}function o(t,e,n,r,o,i,a){if(i=i&&i.split(" ")||[],lt(e,o)>-1&&(kt(t,o),("bar"!==o||"middle"!==i[0])&<(n,i[0])>-1))for(var c=0;c-1&&kt(t,a)}}(e.gui_options),it(),D.autorun&&F&&B.show(e.delay||0),setTimeout((function(){kt(b,"c--anim")}),30),setTimeout((function(){_t(document,"keydown",(function(t){if("Tab"===t.key&&(G||Y)&&i){var e=Ct();t.shiftKey?e!==i[0]&&a.contains(e)||(t.preventDefault(),Et(i[1])):e!==i[1]&&a.contains(e)||(t.preventDefault(),Et(i[0]))}}))}),100),H)"opt-out"===D.mode&&(D.mode,dt());else{var u="boolean"==typeof M.rfc_cookie;(!u||u&&M.rfc_cookie!==D.use_rfc_cookie)&&(M.rfc_cookie=D.use_rfc_cookie,bt(D.cookie_name,JSON.stringify(M))),d=vt(ht()),dt(),"function"==typeof f&&f(M)}}};var dt=function(){if(D.page_scripts){var t=M.categories||[];H&&"opt-out"===D.mode&&(t=K);var e=document.querySelectorAll("script["+D.script_selector+"]"),n=function(e,r){if(r-1){o.type=o.getAttribute("data-type")||"text/javascript",o.removeAttribute(D.script_selector);var a=o.getAttribute("data-src");a&&o.removeAttribute("data-src");var c=ft("script");if(c.textContent=o.innerHTML,function(t,e){for(var n=e.attributes,r=n.length,o=0;o0)for(var i=0;i0?t:e?30:0))},B.hide=function(){F&&(G=!1,Et(c),m.setAttribute("aria-hidden","true"),St(rt,"show--consent"),Et(h),h=null)},B.showSettings=function(t){Y=!0,E.removeAttribute("aria-hidden"),G?v=Ct():h=Ct(),a=E,i=Z,setTimeout((function(){kt(rt,"show--settings")}),t>0?t:0)},B.hideSettings=function(){Y=!1,Pt(),Et(u),E.setAttribute("aria-hidden","true"),St(rt,"show--settings"),G?(Et(v),v=null,a=m,i=Q):(Et(h),h=null)},B.accept=function(t,e){var i=t||void 0,a=e||[],c=[];if(i)if("object"==typeof i&&"number"==typeof i.length)for(var u=0;u=1)for(u=0;u0)for(var i=0;i0&&st(),n||(n=new Date),o||(o=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){try{return(t^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}catch(t){return""}}))),M={categories:t,level:t,revision:D.revision,data:W,rfc_cookie:D.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:o},(H||J.length>0)&&(z=!0,r=r?new Date:n,M.last_consent_update=r.toISOString(),d=vt(ht()),bt(D.cookie_name,JSON.stringify(M)),dt()),H&&(D.autoclear_cookies&&st(!0),"function"==typeof y&&y(B.getUserPreferences(),M),"function"==typeof f&&f(M),H=!1,"opt-in"===D.mode)||("function"==typeof p&&J.length>0&&p(M,J),q&&location.reload())}(c)},B.eraseCookies=function(t,e,n){var r=[],o=n?[n,"."+n]:[D.cookie_domain,"."+D.cookie_domain];if("object"==typeof t&&t.length>0)for(var i=0;i-1&&D.cookie_domain&&(o+=" Domain="+D.cookie_domain+";"),"https:"===location.protocol&&(o+=" Secure;"),document.cookie=o},gt=function(t,e,n){var r;if("one"===e){if((r=(r=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))?n?r.pop():t:"")&&t===D.cookie_name){try{r=JSON.parse(r)}catch(t){try{r=JSON.parse(decodeURIComponent(r))}catch(t){r={}}}r=JSON.stringify(r)}}else if("all"===e){var o=document.cookie.split(/;\s*/);r=[];for(var i=0;i{}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};(()=>{"use strict";n.d(r,{default:()=>vn});n(686);const t=JSON.parse('{"i8":"1.1.0-beta.0"}');function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function o(t,n){for(var r=0;r=n.length)){var c;for(c in this._eventTriggers)this._eventTriggers[c].tryInvoke(this._gtag,n)&&delete this._eventTriggers[c];return e}}},{key:"_autoClearCookies",value:function(){if(this._config.autoClearOptions.enabled){var t=this._config.autoClearOptions.strategy;if(W.STRATEGY_COOKIE_TABLES!==t){for(var e=document.cookie.split(/;\s*/),n=[],r=this._config.autoClearOptions.cookie_names||[],o=0;o=r.showModalAgainExpiration)){var i=new Date,a=new Date(t.valueOf());if(a.setDate(a.getDate()+r.showModalAgainExpiration),i>=a)return this._cookieConsent.showSettings(0),void this._updateLastActionDate()}}}else this._updateLastActionDate()}}],n&&pt(e.prototype,n),r&&pt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function dt(t){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(t)}function ht(){ht=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new x(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function b(){}function g(){}function m(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(L([])));k&&k!==n&&r.call(k,a)&&(_=k);var S=m.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==dt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=P(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function vt(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function bt(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];if(t in mt(this,_t))return!0;var r,o=t.endsWith(".js")?t:t+".js",i=document.head.querySelector("script[src='".concat(o,"']"));if(i){if(window.cookieConsentWrapperTranslations&&o in window.cookieConsentWrapperTranslations)return this.merge(window.cookieConsentWrapperTranslations[o],n),!0;t=o,r=new Promise((function(t,e){var n=function e(){i.removeEventListener("load",e),i.removeEventListener("error",r),t(window.cookieConsentWrapperTranslations[o])},r=function t(){i.removeEventListener("load",n),i.removeEventListener("error",t),e(new Error("Unable to load script: ".concat(o)))};i.addEventListener("load",n),i.addEventListener("error",r)}))}else r=fetch(t).then((function(t){return t.json()}));return mt(this,_t)[t]=r.then((function(r){return e.merge(r,n),delete mt(e,_t)[t],r})).catch((function(n){console.warn("CookieConsentWrapper: Unable to load translations from ".concat(t),n),delete mt(e,_t)[t]}))}},{key:"translate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t in this))return t;"consent_modal_revision_message"!==t&&(e.revision_message=this.consent_modal_revision_message);var n=this[t];for(var r in e)n=n.replaceAll("[["+r+"]]",e[r]);return n}},{key:"merge",value:function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];for(e in t)e in this&&(n||""===this[e])&&(this[e]=t[e])}},{key:"exportTranslations",value:(o=ht().mark((function t(e,n){var r,o,i,a,c,u,s=arguments;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>2&&void 0!==s[2]?s[2]:{},!(o=Object.values(mt(this,_t))).length){t.next=5;break}return t.next=5,Promise.all(o);case 5:i=[],""===this.settings_modal_before_consent_title&&""===this.settings_modal_before_consent_description||i.push({title:this.translate("settings_modal_before_consent_title",r),description:this.translate("settings_modal_before_consent_description",r)}),a=e.all(),t.t0=ht().keys(a);case 9:if((t.t1=t.t0()).done){t.next=17;break}if(u=t.t1.value,(c=a[u]).displayInWidget&&c.name+"_title"in this){t.next=14;break}return t.abrupt("continue",9);case 14:i.push({title:this.translate(c.name+"_title",r),description:this.translate(c.name+"_description",r),toggle:{value:c.name,enabled:c.enabledByDefault,readonly:c.readonly}}),t.next=9;break;case 17:return""===this.settings_modal_after_consent_title&&""===this.settings_modal_after_consent_description||i.push({title:this.translate("settings_modal_after_consent_title",r),description:this.translate("settings_modal_after_consent_description",r)}),t.abrupt("return",{consent_modal:{title:this.translate("consent_modal_title",r),description:this.translate("consent_modal_description",r),revision_message:this.translate("consent_modal_revision_message",r),primary_btn:{text:this.translate("consent_modal_primary_btn",r),role:n.consentModalOptions.primary_button_role},secondary_btn:{text:this.translate("accept_necessary"===n.consentModalOptions.secondary_button_role?"consent_modal_secondary_btn_accept_necessary":"consent_modal_secondary_btn_settings",r),role:n.consentModalOptions.secondary_button_role}},settings_modal:{title:this.translate("settings_modal_title",r),save_settings_btn:this.translate("settings_modal_save_settings_btn",r),accept_all_btn:this.translate("settings_modal_accept_all_btn",r),reject_all_btn:this.translate("settings_modal_reject_all_btn",r),close_btn_label:this.translate("settings_modal_close_btn_label",r),blocks:i}});case 19:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){vt(i,n,r,a,c,"next",t)}function c(t){vt(i,n,r,a,c,"throw",t)}a(void 0)}))},function(t,e){return i.apply(this,arguments)})}],n&&bt(e.prototype,n),r&&bt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function kt(t){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kt(t)}function St(){St=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new x(r||[]);return o(a,"_invoke",{value:E(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="suspendedYield",d="executing",h="completed",v={};function b(){}function g(){}function m(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(L([])));k&&k!==n&&r.call(k,a)&&(_=k);var S=m.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==kt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=P(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ot(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function jt(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];return t in this._catalogues?n=this._catalogues[t]:(n=new wt(t),this._catalogues[t]=n),n.loadFromUrl(e,r)}},{key:"addTranslations",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t in this._catalogues?e=this._catalogues[t]:(e=new wt(t),this._catalogues[t]=e),e.merge(n)}},{key:"addPlaceholder",value:function(t,e){return this._placeholders[t]=e,this}},{key:"translate",value:function(t,e){return t in this._catalogues?this._catalogues[t].translate(e,this._placeholders):e}},{key:"exportTranslations",value:(o=St().mark((function t(e,n){var r,o,i;return St().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r={},t.t0=St().keys(this._catalogues);case 2:if((t.t1=t.t0()).done){t.next=10;break}return o=t.t1.value,i=this._catalogues[o],t.next=7,i.exportTranslations(e,n,this._placeholders);case 7:r[i.locale]=t.sent,t.next=2;break;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){Ot(i,n,r,a,c,"next",t)}function c(t){Ot(i,n,r,a,c,"throw",t)}a(void 0)}))},function(t,e){return i.apply(this,arguments)})}],n&&jt(e.prototype,n),r&&jt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Ct(t){return function(t){if(Array.isArray(t))return Tt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:null;if("function"!=typeof e)throw new TypeError("Listener must be of type function.");var r="idx_"+this._generator.getNextIdentifier();return this._listeners[t]=this._listeners[t]||{},this._listeners[t][r]={callback:e,scope:n},function(){t in this._listeners&&r in this._listeners[t]&&delete this._listeners[t][r]}}},{key:"dispatch",value:function(t){for(var e,n,r=this._listeners[t]||{},o=arguments.length,i=new Array(o>1?o-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:t.TYPE_OR;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!Array.isArray(n)){if("string"!=typeof n)throw new TypeError("Invalid argument $storageNames passed, the argument must be string or array of strings.");n=[n]}if(0>=n.length)throw new Error("Storage names can't be an empty array.");if(-1===[t.TYPE_OR,t.TYPE_AND].indexOf(r))throw new Error("Invalid event trigger type ".concat(r,"."));this._name=e,this._type=r,this._storageNames=n}var e,n,r;return e=t,r=[{key:"TYPE_OR",get:function(){return"or"}},{key:"TYPE_AND",get:function(){return"and"}}],(n=[{key:"tryInvoke",value:function(e,n){var r,o=!1;for(r in this._storageNames)if((o=-1!==n.indexOf(this._storageNames[r]))&&t.TYPE_OR===this._type||!o&&t.TYPE_AND===this._type)break;return o&&e("event",this._name,{}),o}}])&&Wt(e.prototype,n),r&&Wt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ft(t){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(t)}function Gt(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=($t[t[e+0]]+$t[t[e+1]]+$t[t[e+2]]+$t[t[e+3]]+"-"+$t[t[e+4]]+$t[t[e+5]]+"-"+$t[t[e+6]]+$t[t[e+7]]+"-"+$t[t[e+8]]+$t[t[e+9]]+"-"+$t[t[e+10]]+$t[t[e+11]]+$t[t[e+12]]+$t[t[e+13]]+$t[t[e+14]]+$t[t[e+15]]).toLowerCase();if(!Vt(n))throw TypeError("Stringified UUID is invalid");return n};const Qt=function(t,e,n){var r=(t=t||{}).random||(t.rng||Jt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return Xt(r)};function Zt(t){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt(t)}function te(t,e){for(var n=0;n=t.length)throw new Error("User identity must be non empty string.");return e._id=t,e}return e=i,(n=[{key:"toString",value:function(){return this._id}}])&&pe(e.prototype,n),r&&pe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(Ut);function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}function ge(t,e){for(var n=0;n=r.header.length))for(var o in n.settings_modal.cookie_table_headers=r.header,n.settings_modal.blocks){var i=n.settings_modal.blocks[o];"toggle"in i&&"value"in i.toggle&&(i.cookie_table=r.getRows(i.toggle.value))}}}}])&&xe(e.prototype,n),r&&xe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ae(t,e){e.url&&e.resolveProject()&&(!0===e.consent_api_enabled&&function(t,e){var n=function(n){var r=t.user,o=t.configurationExport,i=e.url.replace(new RegExp("/$"),""),a=e.resolveProject(),c={};for(var u in n)if(t._storagePool.has(u)){var s=t._storagePool.get(u);(s.enabledByDefault||s.displayInWidget||s.syncConsentWith)&&(c[u]="granted"===n[u])}fetch("".concat(i,"/api/v").concat(e.version.toString(),"/consent/").concat(a,"/").concat(r.identity.toString()),{method:"put",credentials:"omit",body:JSON.stringify({settingsChecksum:o.checksum,consents:c,attributes:r.attributes,environment:e.environment})}).then((function(t){return t.json()})).then((function(t){if("success"!==t.status)return Promise.reject(t);"data"in t&&"consentSettingsExists"in t.data&&!0!==t.data.consentSettingsExists&&fetch("".concat(i,"/api/v").concat(e.version.toString(),"/consent-settings/").concat(a,"/").concat(o.checksum),{method:"put",body:JSON.stringify(o.configuration)}).then((function(t){return t.json().then((function(t){return"success"===t.status?Promise.resolve(t):Promise.reject(t)}))})).catch((function(t){console.warn("Sending consent settings into CMP failed.",t)}))})).catch((function(t){console.warn("Sending consent into CMP failed.",t)}))};t.on("consent:first-action",(function(t){return n(t)})),t.on("consent:changed",(function(t){return n(t)}))}(t,e),!0===e.cookies_api_enabled&&function(t,e){for(var n={name:function(t){return t.name},purpose:function(t){return t.purpose},processing_time:function(e,n){var r=e.processingTime;return"session"!==r&&"persistent"!==r||(r=t.translate(n,"processing_time_"+r)),r},provider:function(t){return t.cookieProvider.name},type:function(e,n){return t.translate(n,"cookie_type_"+e.cookieProvider.type)},link:function(t){return t.cookieProvider.link.length?'').concat(t.cookieProvider.link,""):""},link_find_out_more:function(e,n){return e.cookieProvider.link.length?'\n \n ').concat(t.translate(n,"find_out_more"),"\n \n "):""},category:function(t){return t.category.name}},r=[],o=0;o=r.length)){var a=[],c=function(t,e){var o={};for(var i in r){var a=r[i],c=n[a]||function(){return""};o[a]=c(t,e)}return o},u=function(n){var o=n||t.unwrap().getConfig("current_lang");if(-1===a.indexOf(o)){a.push(o);var i=e.url.replace(new RegExp("/$"),""),u=e.resolveProject(),s=["locale=".concat(o)];"string"==typeof e.environment&&s.push("environment=".concat(e.environment)),fetch("".concat(i,"/api/v").concat(e.version.toString(),"/cookies/").concat(u,"?").concat(s.join("&")),{method:"get",credentials:"omit"}).then((function(t){return t.json()})).then((function(e){if("success"!==e.status)return Promise.reject(e);if("data"in e&&"cookies"in e.data&&!(0>=e.data.cookies.length)){for(var n=t.cookieTables.getCookieTable(o),i=0;i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function De(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Be(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Ht.TYPE_OR;this._eventTriggers[t]=new Ht(t,e,n)}},{key:"translate",value:function(t,e){return this._dictionary.translate(t,e)}},{key:"addTranslations",value:function(t,e){this._dictionary.addTranslations(t,e||{})}},{key:"loadTranslations",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.startsWith("https://")||t.startsWith("http://")?(n=2<(n=t.split("/").pop().split(".").shift()).length?n[0]+n[1]:n,e=t):(n=2<(n=t).length?n[0]+n[1]:n,e="".concat(this._scriptBasePath,"/translations/").concat(n,".json")),this._dictionary.loadTranslations(n,e,r)}},{key:"unwrap",value:function(){if(null===this._cookieConsent)throw new Error("Cookie consent is not created, please call method CookieConsentWrapper.init().");return this._cookieConsent}},{key:"allowedCategory",value:function(t){return this.unwrap().allowedCategory(t)}},{key:"changeLocale",value:function(t,e){var n=this.unwrap();this._eventBus.dispatch(lt.ON_LOCALE_CHANGE,t),n.updateLanguage(t,e)}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return lt.ON_INIT===t&&this._initialized&&null!==this._cookieConsent?(e.call(n),function(){}):this._eventBus.subscribe(t,e,n)}},{key:"init",value:function(t,e){if(!this._initializationTriggered){var n=this;if(t.CookieConsentWrapper=n,e){this._initializationTriggered=!0;var r=function(){var r,o=(r=Ie().mark((function r(){var o,i;return Ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Lt.loadFromConfig(e,n._config.uiOptions),n._cookieConsent=t.initCookieConsent(),o=new yt(n._cookieConsent,n._eventBus,n._config,n._storagePool,Object.values(n._eventTriggers),n._gtag),(i=n._config.exportCookieConsentConfig()).onFirstAction=function(t){return o.onFirstAction(t)},i.onAccept=function(){return o.onAccept()},i.onChange=function(t,e){return o.onChange(t,e)},r.next=9,n._dictionary.addPlaceholder("user_identity",n.user.identity.toString()).exportTranslations(n._storagePool,n._config);case 9:i.languages=r.sent,n._cookieTables.appendCookieTables(i.languages),Ae(n,n._config.cmpApiOptions),n._config.consentModalOptions.show_third_button&&n.on(lt.ON_INIT,(function(){(new ke).append(n,e)})),n._cookieConsent.run(i),n._initialized=!0,n._eventBus.dispatch(lt.ON_INIT);case 16:case"end":return r.stop()}}),r)})),function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){De(i,n,o,a,c,"next",t)}function c(t){De(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return o.apply(this,arguments)}}(),o=function(){if(e&&"string"==typeof n._config.settingsModalOptions.modal_trigger_selector){var t=new Rt(e,n._dictionary).create(n._config.settingsModalOptions.modal_trigger_selector,n._config.pluginOptions.current_lang||e.documentElement.lang);t&&t.textElement&&(t.textElement.innerHTML=n.translate(n._cookieConsent.getConfig("current_lang"),"modal_trigger_title"))}},i=null;this._config.pluginOptions.init_after_dom_content_loaded||(i=r()),"loading"!==e.readyState?(null===i&&(i=r()),i.then(o)):e.addEventListener("DOMContentLoaded",(function(){null===i&&(i=r()),i.then(o)}))}}}}],n&&Be(e.prototype,n),r&&Be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function He(t){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(t)}function Fe(t,e){for(var n=0;n