
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mitt")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ConsentManager=t(require("mitt")):e.ConsentManager=t(e.mitt)}(window,(e=>(()=>{"use strict";var t={957:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(11));class s extends n.default{isEnabled(){return!0}setEnabled(e){this.updateCheckboxState(),this.group.consentManagerApi.emitter.emit("optionEnabled",this)}decode(){}isChecked(){return!0}setChecked(e){this.checkbox.checked=!0}}s.type="alwaysEnabled",t.default=s},281:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(218)),s=i(221),a=o(i(596)),r=o(i(396)),d=o(i(651)),h=o(i(630)),c=o(i(191));t.default=class{constructor(){if(this.emitter=(0,n.default)(),this.groups=new Array,this.descriptionContainer=null,this.configurationContainer=null,this.editContainer=null,"undefined"==typeof ConsentManagerConfiguration||!ConsentManagerConfiguration)throw new s.ConfigurationMissingError;r.default.log("Starting to construct the consent manager API.","info",r.default.verbosity.highest);const e=document.querySelector('[data-extension="consent_manager"][data-action="popup"]');if(null===e)throw r.default.log("Popup container missing.","error"),new s.PopupContainerMissingError;if(this.popupContainer=e,this.descriptionContainer=this.popupContainer.querySelector("[data-consent-manager-description]"),this.configurationContainer=this.popupContainer.querySelector("[data-consent-manager-configuration]"),this.editContainer=document.querySelector('[data-extension="consent_manager"][data-action="edit"]'),this.settings=new d.default,this.pageUid=ConsentManagerConfiguration.pageUid,ConsentManagerConfiguration.groups.forEach((e=>{this.groups.push(new c.default(e,this))})),this.groupCheckboxes=this.popupContainer.querySelectorAll("[data-consent-manager-group]"),this.optionCheckboxes=this.popupContainer.querySelectorAll("[data-consent-manager-option]"),0===this.optionsCount()||0===this.groupCheckboxes.length||0===this.optionCheckboxes.length)throw r.default.log("Consent options missing.","warning"),new s.OptionsMissingError;r.default.log("Finished constructing consent manager.","info",r.default.verbosity.highest)}initialize(){r.default.log("Starting to initialize components.","info",r.default.verbosity.highest);let e=!1;!e&&this.settings.isResetRequiredDueToChanges()&&(r.default.log("Reset required to to change of important settings."),this.reset(),e=!0),e||this.settings.popupInteraction||(r.default.log("Popup was not interacted with before. Reset consent manager."),this.reset(),e=!0),this.decodeAll(),this.initializePopupContainer(),this.editContainer&&this.initializeEditContainer(),this.initializeEnableButtons(),this.isCurrentPageExcludedFromPopup()?r.default.log("Current page is excluded from showing the popup."):this.settings.popupInteraction?this.settings.changed.optionsHash.hasChanged&&(r.default.log("Options hash has changed. Showing popup."),this.showPopup()):(r.default.log("Showing popup."),this.showPopup()),r.default.log("Finished initializing components.","info",r.default.verbosity.highest),this.emitter.emit("ready",this)}reset(){this.deleteAllCookies(),this.settings=new d.default,this.emitter.emit("reset",this)}optionsCount(){let e=0;for(const t of this.groups)e+=t.optionsCount;return e}setOptionsEnabled(e){for(const t of this.groups)t.setOptionsEnabled(e)}updateCheckboxStates(){for(const e of this.groups)e.updateOptionCheckboxStates(),e.updateCheckboxState()}getOption(e){for(const t of this.groups)for(const i in t.options){const o=t.options[i];if(e===i)return o}return null}deleteAllCookies(){a.default.delete(d.default.cookieName,this.settings.cookieDomain),this.settings.changed.cookieDomain.hasChanged&&this.settings.changed.cookieDomain.old&&a.default.delete(d.default.cookieName,this.settings.changed.cookieDomain.old);for(const e of this.groups)for(const t in e.options)a.default.delete(t,this.settings.cookieDomain),this.settings.changed.cookieDomain.hasChanged&&this.settings.changed.cookieDomain.old&&a.default.delete(t,this.settings.changed.cookieDomain.old)}initializePopupContainer(){r.default.log("Starting to initialize popup container.","info",r.default.verbosity.highest);const e=this.popupContainer.querySelectorAll('[data-consent-manager-button="acceptAll"]'),t=this.popupContainer.querySelectorAll('[data-consent-manager-button="rejectAll"]'),i=this.popupContainer.querySelectorAll('[data-consent-manager-button="save"]'),o=this.popupContainer.querySelectorAll('[data-consent-manager-button="configure"]'),n=this.popupContainer.querySelectorAll('[data-consent-manager-button="close"]'),s=e=>{if("acceptAll"!==e&&"rejectAll"!==e&&"save"!==e)return;const t=document.querySelector(`div[data-consent-manager-script="${e}"]`);if(!t)return;const i=document.querySelector(`script[data-consent-manager-script="${e}"]`);i&&(r.default.log(`Script for "${e}" already present, deleting before re-injecting script.`,"info",r.default.verbosity.medium),i.remove());const o=document.createElement("script");o.dataset.consentManagerScript=e,o.innerHTML=t.innerHTML,document.body.insertAdjacentElement("beforeend",o),r.default.log(`Injected script for "${e}".`)};e.forEach((e=>{e.addEventListener("click",(()=>{this.setOptionsEnabled(!0),this.settings.popupInteraction=!0,this.settings.save(),this.hidePopup(),s("acceptAll"),this.emitter.emit("acceptAllButtonClicked",e),this.settings.reloadAfterSaving&&window.location.reload()}))})),t.forEach((e=>{e.addEventListener("click",(()=>{this.setOptionsEnabled(!1),this.settings.popupInteraction=!0,this.settings.save(),this.hidePopup(),s("rejectAll"),this.emitter.emit("rejectAllButtonClicked",e),this.settings.reloadAfterSaving&&window.location.reload()}))})),i.forEach((e=>{e.addEventListener("click",(()=>{this.groups.forEach((e=>{e.enableCheckedOptions()})),this.settings.popupInteraction=!0,this.settings.save(),this.hidePopup(),s("save"),this.emitter.emit("saveButtonClicked",e),this.settings.reloadAfterSaving&&window.location.reload()}))})),o.forEach((e=>{e.addEventListener("click",(()=>{this.showConfiguration(),this.emitter.emit("configureButtonClicked",e)}))})),n.forEach((e=>{e.addEventListener("click",(()=>{this.hidePopup(),this.emitter.emit("closeButtonClicked",e)}))})),r.default.log("Finished initializing popup container.","info",r.default.verbosity.highest)}showConfiguration(){this.descriptionContainer&&this.configurationContainer&&(this.descriptionContainer.classList.remove("show"),this.descriptionContainer.classList.add("hide"),this.configurationContainer.classList.remove("hide"),this.configurationContainer.classList.add("show"),this.emitter.emit("configurationShown",this))}showDescription(){this.descriptionContainer&&this.configurationContainer&&(this.descriptionContainer.classList.remove("hide"),this.descriptionContainer.classList.add("show"),this.configurationContainer.classList.remove("show"),this.configurationContainer.classList.add("hide"),this.emitter.emit("descriptionShown",this))}initializeEditContainer(){r.default.log("Starting to initialize edit container.","info",r.default.verbosity.highest),document.querySelectorAll('[data-consent-manager-button="edit"]').forEach((e=>{e.addEventListener("click",(()=>{this.showPopup(),this.emitter.emit("editButtonClicked",e)}))})),r.default.log("Finished initializing edit container.","info",r.default.verbosity.highest)}initializeEnableButtons(){r.default.log("Starting to initialize enable buttons.","info",r.default.verbosity.highest),document.querySelectorAll("[data-consent-manager-enable]").forEach((e=>{const t=e.dataset.consentManagerEnable;if(!t)return r.default.log("Enable button is missing the identifier data attribute.","error"),void r.default.log(e,"error");const i=this.getOption(t);if(!i)return r.default.log(`No consent option exists for a identifier "${t}".`,"error"),void r.default.log(e,"error");e.addEventListener("click",(()=>{i.setEnabled(!0),this.emitter.emit("enableButtonClicked",{button:e,option:i})}))})),r.default.log("Finished initializing enable buttons.","info",r.default.verbosity.highest)}showPopup(){this.emitter.emit("showPopup",this),this.settings.update(),this.updateCheckboxStates(),this.showDescription(),this.popupContainer.classList.add("show")}hidePopup(){this.emitter.emit("hidePopup",this),this.popupContainer.classList.remove("show")}decodeAll(){this.emitter.emit("decodeAll",this),this.groups.forEach((e=>{e.decodeOptions(),this.emitter.emit("decodedAll",this)}))}isCurrentPageExcludedFromPopup(){return-1!==this.settings.pagesExcludedFromPopup.indexOf(this.pageUid)}encode(e,t){this.emitter.emit("encode",e);const i=new FormData;return i.append("string",e),""===t&&(t=h.default.getUrl()),fetch(`${t}/?consent-manager-api%5Bendpoint%5D%5B%5D=encode`,{method:"POST",body:i})}decode(e,t){this.emitter.emit("decode",e);const i=new FormData;return i.append("string",e),""===t&&(t=h.default.getUrl()),fetch(`${t}/?consent-manager-api%5Bendpoint%5D%5B%5D=decode`,{method:"POST",body:i})}}},221:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupContainerMissingError=t.OptionsMissingError=t.ConfigurationMissingError=void 0;class i extends Error{}t.ConfigurationMissingError=i;class o extends Error{}t.OptionsMissingError=o;class n extends Error{}t.PopupContainerMissingError=n},191:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(11)),s=o(i(396)),a=o(i(957));t.default=class{constructor(e,t){this.options={},this.uid=e.uid,s.default.log(`Starting to construct group #${this.uid}.`,"info",s.default.verbosity.highest),this.consentManagerApi=t,this.title=e.title,this.description=e.description,this.onlyHasAlwaysEnabledOptions=e.onlyHasAlwaysEnabledOptions;for(const t in e.options){const i=e.options[t];i.type===a.default.type?this.options[t]=new a.default(i,this):this.options[t]=new n.default(i,this)}this.optionsCount=Object.keys(this.options).length;const i=document.querySelector(`[data-consent-manager-group="${this.uid}"]`);if(null===i)throw new Error(`Checkbox missing for group ${this.uid}.`);this.checkbox=i,this.updateOptionCheckboxStates(),this.updateCheckboxState(),this.checkbox.addEventListener("change",(()=>{this.setOptionsChecked(this.isChecked()),this.consentManagerApi.emitter.emit("groupCheckboxChanged",this)})),this.consentManagerApi.emitter.on("optionCheckboxChanged",(()=>{this.updateCheckboxState()})),s.default.log(`Finished constructing group #${this.uid}.`,"info",s.default.verbosity.highest)}countEnabledOptions(){let e=0;for(const t in this.options)this.options[t].isEnabled()&&e++;return e}setOptionsEnabled(e){if(!this.onlyHasAlwaysEnabledOptions)for(const t in this.options)this.options[t].setEnabled(e)}enableCheckedOptions(){if(!this.onlyHasAlwaysEnabledOptions)for(const e in this.options){const t=this.options[e];t.checkbox.checked?t.setEnabled(!0):t.setEnabled(!1)}}countCheckedOptions(){let e=0;for(const t in this.options)this.options[t].isChecked()&&e++;return e}updateCheckboxState(){if(this.onlyHasAlwaysEnabledOptions)return s.default.log(`All groups of group #${this.uid} are always enabled options.`,"info",s.default.verbosity.high),void this.setChecked(!0);const e=this.optionsCount===this.countCheckedOptions();e?s.default.log(`All options of group #${this.uid} are enabled.`,"info",s.default.verbosity.high):s.default.log(`Not all options of group #${this.uid} are enabled.`,"info",s.default.verbosity.high),this.setChecked(e)}updateOptionCheckboxStates(){if(!this.onlyHasAlwaysEnabledOptions)for(const e in this.options)this.options[e].updateCheckboxState()}isChecked(){return this.checkbox.checked}setChecked(e){e?s.default.log(`Marking group #${this.uid} as "checked".`,"info",s.default.verbosity.low):s.default.log(`Marking group #${this.uid} as "unchecked".`,"info",s.default.verbosity.low),this.checkbox.checked=e}setOptionsChecked(e){for(const t in this.options)this.options[t].setChecked(e)}decodeOptions(){for(const e in this.options)this.options[e].decode()}}},684:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(221),s=o(i(281));let a=null;try{a=new s.default,document.addEventListener("DOMContentLoaded",(()=>{void 0!==a&&a&&a.initialize()}))}catch(e){if(!(e instanceof n.ConfigurationMissingError||e instanceof n.OptionsMissingError||e instanceof n.PopupContainerMissingError))throw e}t.default=a},11:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(596)),s=o(i(396));class a{constructor(e,t){this.isDecoded=!1,this.identifier=e.identifier,s.default.log(`Starting to construct option #${this.identifier}.`,"info",s.default.verbosity.highest),this.uid=e.uid,this.group=t,this.type=e.type,this.title=e.title,this.description=e.description,this.isEnabledOnServerSide=e.isEnabledOnServerSide,this.injectScriptHeadStart=e.injectScriptHeadStart,this.injectScriptHeadEnd=e.injectScriptHeadEnd,this.injectScriptBodyStart=e.injectScriptBodyStart,this.injectScriptBodyEnd=e.injectScriptBodyEnd,this.injectHtmlHeadStart=e.injectHtmlHeadStart,this.injectHtmlHeadEnd=e.injectHtmlHeadEnd,this.injectHtmlBodyStart=e.injectHtmlBodyStart,this.injectHtmlBodyEnd=e.injectHtmlBodyEnd;const i=document.querySelector(`[data-consent-manager-option="${this.uid}"]`);if(null===i)throw new Error(`Checkbox missing for option ${this.uid}.`);this.checkbox=i,this.updateCheckboxState(),this.checkbox.addEventListener("change",(()=>{this.group.consentManagerApi.emitter.emit("optionCheckboxChanged",this)})),s.default.log(`Finished constructing option #${this.identifier}.`,"info",s.default.verbosity.highest)}isEnabled(){let e;return e=this.group.consentManagerApi.settings.cookieForEachOption?n.default.exists(this.identifier):-1!==this.group.consentManagerApi.settings.enabledOptions.indexOf(this.identifier),e?s.default.log(`Option #${this.identifier} is enabled.`,"info",s.default.verbosity.low):s.default.log(`Option #${this.identifier} is not enabled.`,"info",s.default.verbosity.low),e}setEnabled(e){if(e!=this.isEnabled()){if(this.group.consentManagerApi.settings.cookieForEachOption)e?n.default.set(this.identifier,"1",this.group.consentManagerApi.settings.cookieDomain):n.default.delete(this.identifier,this.group.consentManagerApi.settings.cookieDomain);else{const t=this.group.consentManagerApi.settings.enabledOptions;if(e)t.push(this.identifier);else{const e=t.indexOf(this.identifier);-1!==e&&t.splice(e,1)}t.sort(),this.group.consentManagerApi.settings.enabledOptions=t,this.group.consentManagerApi.settings.save()}e?(this.decode(),this.group.consentManagerApi.emitter.emit("optionEnabled",this),s.default.log(`Enabled Option #${this.identifier}.`)):(this.group.consentManagerApi.emitter.emit("optionDisabled",this),s.default.log(`Disabled Option #${this.identifier}.`)),this.updateCheckboxState()}}updateCheckboxState(){s.default.log(`Updating checkbox state of option #${this.identifier} to fit the current enabled state.`,"info",s.default.verbosity.medium),this.isEnabled()?this.setChecked(!0):this.setChecked(!1)}isChecked(){return this.checkbox.checked}setChecked(e){this.checkbox.checked=e,e?(this.group.consentManagerApi.emitter.emit("optionChecked",this),s.default.log(`Marked option #${this.identifier} as "checked".`,"info",s.default.verbosity.medium)):(this.group.consentManagerApi.emitter.emit("optionUnchecked",this),s.default.log(`Marked option #${this.identifier} as "unchecked".`,"info",s.default.verbosity.medium))}decode(){this.isEnabled()?this.isDecoded?s.default.log(`Option #${this.identifier} is already decoded, so nothing to decode again.`,"info",s.default.verbosity.low):(document.querySelectorAll(`[data-consent-manager-placeholder="${this.identifier}"]`).forEach((e=>{s.default.log(`Starting to decode placeholder for option #${this.identifier}.`,"info",s.default.verbosity.high),s.default.log(e,"info",s.default.verbosity.low),this.decodePlaceholder(e),s.default.log(`Finished decoding placeholder for option #${this.identifier}.`,"info",s.default.verbosity.high)})),document.querySelectorAll(`[data-consent-manager-encoded="${this.identifier}"]`).forEach((e=>{s.default.log(`Starting to decode standalone container for option #${this.identifier}.`,"info",s.default.verbosity.high),s.default.log(e,"info",s.default.verbosity.low),this.decodeStandalone(e),s.default.log(`Finished decoding standalone container for option #${this.identifier}.`,"info",s.default.verbosity.high)})),this.isDecoded=!0):s.default.log(`Option #${this.identifier} is not enabled, so nothing to decode.`,"info",s.default.verbosity.low)}decodePlaceholder(e){if(!this.isEnabled())return;const t=e.querySelector(`[data-consent-manager-encoded="${this.identifier}"]`),i=e.querySelector("[data-consent-manager-preview]");t?(delete t.dataset.consentManagerEncoded,this.group.consentManagerApi.emitter.emit("decodePlaceholder",e),this.group.consentManagerApi.emitter.emit("decode",e),this.group.consentManagerApi.decode(t.innerHTML.trim(),this.group.consentManagerApi.settings.baseUrl).then((e=>e.text())).then((o=>{i&&i.remove(),e.insertAdjacentElement("afterend",t),e.remove(),this.injectString(t,o),this.group.consentManagerApi.emitter.emit("decodedPlaceholder",this),this.group.consentManagerApi.emitter.emit("decoded",this)})).catch((e=>{throw new Error(`Decoding container of placeholder for option #${this.identifier} failed: ${e}`)}))):s.default.log(`No encode container found placeholder of option #${this.identifier}, nothing to decode.`)}decodeStandalone(e){this.isEnabled()&&(this.group.consentManagerApi.emitter.emit("decodeStandalone",e),this.group.consentManagerApi.emitter.emit("decode",e),this.group.consentManagerApi.decode(e.innerHTML.trim(),this.group.consentManagerApi.settings.baseUrl).then((e=>e.text())).then((t=>{this.injectString(e,t),this.group.consentManagerApi.emitter.emit("decodedStandalone",this),this.group.consentManagerApi.emitter.emit("decoded",this)})).catch((e=>{throw new Error(`Decoding standalone container for option #${this.identifier} failed: ${e}`)})))}injectString(e,t){if(e.dataset.consentManagerInject&&-1!==["html","script"].indexOf(e.dataset.consentManagerInject)&&e.dataset.consentManagerInjectPosition&&-1!==["headStart","headEnd","bodyStart","bodyEnd"].indexOf(e.dataset.consentManagerInjectPosition))if("script"===e.dataset.consentManagerInject){s.default.log(`Injecting script for option #${this.identifier}.`);const i=document.createElement("script");i.innerHTML=t,this.moveElementToPosition(i,e.dataset.consentManagerInjectPosition)}else{s.default.log(`Injecting HTML for option #${this.identifier}.`),this.moveElementToPosition(e,e.dataset.consentManagerInjectPosition);const i=document.createElement("div");i.innerHTML=t,i.querySelectorAll("script").forEach((e=>{e.dataset.consentManagerEvaluateScript=this.identifier})),e.outerHTML=i.innerHTML,document.querySelectorAll(`[data-consent-manager-evaluate-script="${this.identifier}"]`).forEach((e=>{var t;const i=document.createElement("script");i.innerHTML=e.innerHTML;for(const o of e.getAttributeNames())i.setAttribute(o,null!==(t=e.getAttribute(o))&&void 0!==t?t:"");delete i.dataset.consentManagerEvaluateScript,e.replaceWith(i)}))}else{const i=document.createElement("div");i.innerHTML=t,e.replaceWith(...i.children)}e.remove()}moveElementToPosition(e,t){switch(t){case"headStart":document.head.insertAdjacentElement("afterbegin",e);break;case"headEnd":document.head.insertAdjacentElement("beforeend",e);break;case"bodyStart":document.body.insertAdjacentElement("afterbegin",e);break;case"bodyEnd":document.body.insertAdjacentElement("beforeend",e)}}}a.type="default",t.default=a},651:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(679)),s=o(i(596)),a=o(i(396)),r=o(i(218));class d extends n.default{constructor(){super(),this.emitter=(0,r.default)(),this._version=1,this._popupInteraction=!1,this._enabledOptions=[],this._cookieDomain="",this._baseUrl="",this._reloadAfterSaving=!1,this._cookieForEachOption=!1,this._pagesExcludedFromPopup=[],this._optionsHash="",this.changed={version:{hasChanged:!1,old:null,new:null},popupInteraction:{hasChanged:!1,old:null,new:null},cookieDomain:{hasChanged:!1,old:null,new:null},baseUrl:{hasChanged:!1,old:null,new:null},reloadAfterSaving:{hasChanged:!1,old:null,new:null},cookieForEachOption:{hasChanged:!1,old:null,new:null},pagesExcludedFromPopup:{hasChanged:!1,old:null,new:null},optionsHash:{hasChanged:!1,old:null,new:null}},a.default.log("Starting to construct settings.","info",a.default.verbosity.highest),this.update(),this.save(),a.default.log("Finished constructing settings.","info",a.default.verbosity.highest)}serialize(){return{version:this._version,popupInteraction:this._popupInteraction,enabledOptions:this._enabledOptions,cookieDomain:this._cookieDomain,baseUrl:this._baseUrl,reloadAfterSaving:this._reloadAfterSaving,cookieForEachOption:this._cookieForEachOption,pagesExcludedFromPopup:this._pagesExcludedFromPopup,optionsHash:this._optionsHash}}get version(){return this._version}set version(e){this._version=e,this.emitter.emit("change",{version:e})}get popupInteraction(){return this._popupInteraction}set popupInteraction(e){this._popupInteraction=e,this.emitter.emit("change",{popupInteraction:e})}get enabledOptions(){return this._enabledOptions}set enabledOptions(e){this._enabledOptions=e,this.emitter.emit("change",{enabledOptions:e})}get cookieDomain(){return this._cookieDomain}set cookieDomain(e){this._cookieDomain=e,this.emitter.emit("change",{cookieDomain:e})}get baseUrl(){return this._baseUrl}set baseUrl(e){this._baseUrl=e,this.emitter.emit("change",{baseUrl:e})}get reloadAfterSaving(){return this._reloadAfterSaving}set reloadAfterSaving(e){this._reloadAfterSaving=e,this.emitter.emit("change",{reloadAfterSaving:e})}get cookieForEachOption(){return this._cookieForEachOption}set cookieForEachOption(e){this._cookieForEachOption=e,this.emitter.emit("change",{cookieForEachOption:e})}get pagesExcludedFromPopup(){return this._pagesExcludedFromPopup}set pagesExcludedFromPopup(e){this._pagesExcludedFromPopup=e,this.emitter.emit("change",{pagesExcludedFromPopup:e})}get optionsHash(){return this._optionsHash}set optionsHash(e){this._optionsHash=e,this.emitter.emit("change",{optionsHash:e})}save(){a.default.log("Saving settings.","info",a.default.verbosity.medium),s.default.set(d.cookieName,encodeURIComponent(this.serializeToString()),this.cookieDomain)}load(){const e=s.default.get(d.cookieName);if(null===e)return null;let t=null;try{t=JSON.parse(decodeURIComponent(e))}catch(e){return null}return t}update(){const e=ConsentManagerConfiguration.settings;this._cookieDomain=e.cookieDomain,this._baseUrl=e.baseUrl,this._reloadAfterSaving=e.reloadAfterSaving,this._cookieForEachOption=e.cookieForEachOption,this._pagesExcludedFromPopup=e.pagesExcludedFromPopup,this._optionsHash=e.optionsHash;const t=this.load();t&&(this._popupInteraction=t.popupInteraction,this._enabledOptions=t.enabledOptions,this._version!==t.version&&(this.changed.version={hasChanged:!0,old:this._version,new:t.version},this._version=t.version,a.default.log(`Version has changed. Was "${this.changed.version.old}", now is "${this.changed.version.new}".`)),e.cookieDomain!==t.cookieDomain&&(this.changed.cookieDomain={hasChanged:!0,old:t.cookieDomain,new:e.cookieDomain},this._cookieDomain=e.cookieDomain,a.default.log(`Cookie domain has changed. Was "${this.changed.cookieDomain.old}", now is "${this.changed.cookieDomain.new}".`)),e.baseUrl!==t.baseUrl&&(this.changed.baseUrl={hasChanged:!0,old:t.baseUrl,new:e.baseUrl},this._baseUrl=e.baseUrl,a.default.log(`Base URL has changed. Was "${this.changed.baseUrl.old}", now is "${this.changed.baseUrl.new}".`)),e.reloadAfterSaving!==t.reloadAfterSaving&&(this.changed.reloadAfterSaving={hasChanged:!0,old:t.reloadAfterSaving,new:e.reloadAfterSaving},this._reloadAfterSaving=e.reloadAfterSaving,a.default.log(`Reload after saving has changed. Was "${this.changed.reloadAfterSaving.old}", now is "${this.changed.reloadAfterSaving.new}".`)),e.cookieForEachOption!==t.cookieForEachOption&&(this.changed.cookieForEachOption={hasChanged:!0,old:t.cookieForEachOption,new:e.cookieForEachOption},this._cookieForEachOption=e.cookieForEachOption,a.default.log(`Cookie for each option has changed. Was "${this.changed.cookieForEachOption.old}", now is "${this.changed.cookieForEachOption.new}".`)),this.didPagesExcludedFromPopupChange(e,t)&&(this.changed.pagesExcludedFromPopup={hasChanged:!0,old:t.pagesExcludedFromPopup,new:e.pagesExcludedFromPopup},this._pagesExcludedFromPopup=e.pagesExcludedFromPopup,a.default.log(`Pages exclude from popup has changed. Was "${this.changed.pagesExcludedFromPopup.old}", now is "${this.changed.pagesExcludedFromPopup.new}".`)),e.optionsHash!==t.optionsHash&&(this.changed.optionsHash={hasChanged:!0,old:t.optionsHash,new:e.optionsHash},this._optionsHash=e.optionsHash,a.default.log(`Options hash has changed. Was "${this.changed.optionsHash.old}", now is "${this.changed.optionsHash.new}".`)))}didPagesExcludedFromPopupChange(e,t){if(e.pagesExcludedFromPopup.length!==t.pagesExcludedFromPopup.length)return!0;e.pagesExcludedFromPopup.sort(),t.pagesExcludedFromPopup.sort();for(const i of e.pagesExcludedFromPopup)if(!t.pagesExcludedFromPopup.includes(i))return!0;return!1}isResetRequiredDueToChanges(){return this.changed.version.hasChanged||this.changed.cookieDomain.hasChanged||this.changed.reloadAfterSaving.hasChanged||this.changed.cookieForEachOption.hasChanged||this.changed.optionsHash.hasChanged}}d.cookieName="consent-manager",t.default=d},679:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{serializeToString(){return JSON.stringify(this.serialize())}}},596:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class i{static set(e,t,i="",o=null,n="/",s="lax"){let a=e+"="+t+";";return null===o&&(a+="expires="+(o=new Date((new Date).setFullYear((new Date).getFullYear()+1))).toUTCString()+";"),i&&(a+=`domain=${i};`),a+=`path=${n};SameSite=${s}`,document.cookie=a,a}static get(e){if(!i.exists(e))return null;const t=document.cookie.split(";");for(const i of t){const t=i.split("=");let o=t.shift();if(o){o=o.trim();const i=t.join("=").trim();if(o===e)return i}}return null}static delete(e,t="",o="/",n="lax"){if(!i.exists(e))return!1;let s=e+`=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=${o};SameSite=${n}`;return t&&(s+=`;domain=${t}`),document.cookie=s,!0}static exists(e){return!!e&&document.cookie.indexOf(e+"=")>=0}}t.default=i},630:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static getUrl(){let e=window.location.href;e=e.split("?")[0],e=e.split("#")[0];const t=e.length;return"/"===e.charAt(t-1)&&(e=e.substring(0,t-1)),e}}},396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class i{static log(e,t="info",i=0){if(!ConsentManagerConfiguration.debug)return;let o=ConsentManagerConfiguration.debugVerbosity;(isNaN(o)||o<0)&&(o=0),o>=i&&("info"===t?console.log("[ConsentManager]",e):"warning"===t?console.warn("[ConsentManager]",e):"error"===t&&console.error("[ConsentManager]",e))}static trace(e=""){ConsentManagerConfiguration.debug&&(e&&i.log(e),console.trace())}}i.verbosity={lowest:0,low:10,medium:20,high:30,highest:40},t.default=i},218:t=>{t.exports=e}},i={},o=function e(o){var n=i[o];if(void 0!==n)return n.exports;var s=i[o]={exports:{}};return t[o].call(s.exports,s,s.exports,e),s.exports}(684);return o.default})()));
//# sourceMappingURL=consent-manager.min.js.map
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mitt"),require("moment"),require("joi"),require("GLightbox"),require("canAutoplay"),require("ConsentManager"),require("QrScanner"),require("bootstrap"),require("simpleDatatables")):"function"==typeof define&&define.amd?define([,,,,,,,,],t):"object"==typeof exports?exports.Website=t(require("mitt"),require("moment"),require("joi"),require("GLightbox"),require("canAutoplay"),require("ConsentManager"),require("QrScanner"),require("bootstrap"),require("simpleDatatables")):e.Website=t(e.mitt,e.moment,e.joi,e.GLightbox,e.canAutoplay,e.ConsentManager,e.QrScanner,e.bootstrap,e.simpleDatatables)}(window,((e,t,i,s,n,a,o,r,l)=>(()=>{"use strict";var c={980:(e,t,i)=>{const s=i(916);e.exports=e=>{const t={format:e.alternatives([e.string(),e.array().items(e.string().invalid("iso","javascript","unix"))])};return{type:"date",base:e.date(),coerce:{from:"string",method:function(e,{schema:t}){const i=t.$_getFlag("format");if(!i)return;const n=t.$_getFlag("utc")?s.utc(e,i,!0):s(e,i,!0);return n.isValid()?{value:n.toDate()}:void 0}},rules:{utc:{method:function(e=!0){return this.$_setFlag("utc",e)}}},overrides:{format:function(i){return e.attempt(i,t.format,"Invalid format"),["iso","javascript","unix"].includes(i)?this.$_super.format(i):this.$_setFlag("format",i)}}}},e.exports.default=e.exports},389:(e,t,i)=>{function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function n(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return i.forEach((function(t){return Object.keys(t).forEach((function(i){return e[i]=t[i]}))})),e}i.r(t),i.d(t,{FocusPicker:()=>d,FocusedImage:()=>g});var a={position:"relative",overflow:"hidden"},o={position:"absolute",top:"0",right:"0",bottom:"0",left:"0"},r={display:"block",maxWidth:"100%",touchAction:"none"},l={position:"absolute",cursor:"move",transform:"translate(-50%, -50%)"},c={onChange:function(){},retina:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3e %3cg fill='none' fill-rule='evenodd'%3e %3ccircle id='a' cx='10' cy='10' r='10' fill='black' fill-opacity='.3' /%3e %3ccircle cx='10' cy='10' r='9' stroke='white' stroke-opacity='.8' stroke-width='2'/%3e %3c/g%3e%3c/svg%3e"},d=function(){function e(e,t){var i=this;void 0===t&&(t={}),this._enabled=!1,this.startDragging=function(e){e.preventDefault(),i.isDragging=!0,e instanceof MouseEvent?i.updateCoordinates(e.clientX,e.clientY):i.updateCoordinates(e.touches[0].clientX,e.touches[0].clientY)},this.handleMove=function(e){if(e.preventDefault(),e instanceof MouseEvent)i.updateCoordinates(e.clientX,e.clientY);else{var t=e.touches[0],s=document.elementFromPoint(t.pageX,t.pageY);s!==i.retina&&s!==i.img?i.stopDragging():i.updateCoordinates(t.clientX,t.clientY)}},this.stopDragging=function(){i.isDragging=!1},this.updateRetinaPositionFromFocus=function(){i.updateRetinaPosition(i.calculateOffsetFromFocus())},this.updateRetinaPosition=function(e){i.retina.style.top=e.offsetY+"px",i.retina.style.left=e.offsetX+"px"},this.options=n({},c,t),this.img=e,this.container=e.parentElement,this.img.draggable=!1,n(this.img.style,r),n(this.container.style,a),this.focus=this.getFocus(),this.enable()}var t,i,o=e.prototype;return o.getFocus=function(){return this.options.focus?this.options.focus:{x:parseFloat(this.img.getAttribute("data-focus-x"))||0,y:parseFloat(this.img.getAttribute("data-focus-y"))||0}},o.enable=function(){this._enabled||(this.retina=document.createElement("img"),this.retina.src=this.options.retina,this.retina.draggable=!1,this.container.appendChild(this.retina),n(this.retina.style,l),this.startListening(),this.setFocus(this.focus),this._enabled=!0)},o.disable=function(){this._enabled&&this.retina&&(this.stopListening(),this.container.removeChild(this.retina),this._enabled=!1)},o.startListening=function(){this.container.addEventListener("mousedown",this.startDragging),this.container.addEventListener("mousemove",this.handleMove),this.container.addEventListener("mouseup",this.stopDragging),this.container.addEventListener("mouseleave",this.stopDragging),this.container.addEventListener("touchend",this.stopDragging),this.container.addEventListener("touchstart",this.startDragging,{passive:!0}),this.container.addEventListener("touchmove",this.handleMove,{passive:!0}),this.img.addEventListener("load",this.updateRetinaPositionFromFocus)},o.stopListening=function(){this.container.removeEventListener("mousedown",this.startDragging),this.container.removeEventListener("mousemove",this.handleMove),this.container.removeEventListener("mouseup",this.stopDragging),this.container.removeEventListener("mouseleave",this.stopDragging),this.container.removeEventListener("touchend",this.stopDragging),this.container.removeEventListener("touchstart",this.startDragging),this.container.removeEventListener("touchmove",this.handleMove),this.img.removeEventListener("load",this.updateRetinaPositionFromFocus)},o.setFocus=function(e){this.focus=e,this.img.setAttribute("data-focus-x",e.x.toString()),this.img.setAttribute("data-focus-y",e.y.toString()),this.updateRetinaPositionFromFocus(),this.options.onChange(e)},o.calculateOffsetFromFocus=function(){var e=this.img.getBoundingClientRect(),t=e.width,i=e.height;return{offsetX:t*(this.focus.x/2+.5),offsetY:i*(this.focus.y/-2+.5)}},o.updateCoordinates=function(e,t){if(this.isDragging){var i=this.img.getBoundingClientRect(),s=i.width,n=i.height,a=2*((e-i.left)/s-.5),o=-2*((t-i.top)/n-.5);this.setFocus({x:a,y:o})}},t=e,(i=[{key:"enabled",get:function(){return this._enabled}}])&&s(t.prototype,i),e}(),u={minHeight:"100%",minWidth:"100%"},h={height:"100%",width:"100%",border:"none",opacity:0,zIndex:-1,pointerEvents:"none"},m={debounceTime:17,updateOnWindowResize:!0,updateOnContainerResize:!1,containerPosition:"relative"},g=function(){function e(e,t){var i,s,r,l=this;void 0===t&&(t={}),this.imageNode=e,this.listening=!1,this.setFocus=function(e){l.focus=e,l.img.setAttribute("data-focus-x",e.x.toString()),l.img.setAttribute("data-focus-y",e.y.toString()),l.applyShift()},this.applyShift=function(){var e=l.img,t=e.naturalWidth,i=e.naturalHeight,s=l.container.getBoundingClientRect(),n=s.width,a=s.height,o="0",r="0";if(!(n>0&&a>0&&t>0&&i>0))return!1;var c=t/n,d=i/a;l.img.style.maxHeight=null,l.img.style.maxWidth=null,t>n&&i>a&&(l.img.style[c>d?"maxHeight":"maxWidth"]="100%"),c>d?o=l.calcShift(d,n,t,l.focus.x)+"%":c<d&&(r=l.calcShift(c,a,i,l.focus.y,!0)+"%"),l.img.style.top=r,l.img.style.left=o},this.options=n(m,t),this.img=e,this.container=e.parentElement,this.img.__focused_image_instance__&&(this.img.__focused_image_instance__.stopListening(),this.img.removeEventListener("load",this.applyShift)),this.img.__focused_image_instance__=this,this.img.addEventListener("load",this.applyShift),n(this.container.style,a),this.container.style.position=this.options.containerPosition,n(this.img.style,u,o),this.debounceApplyShift=(i=this.applyShift,s=this.options.debounceTime,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];clearTimeout(r),r=setTimeout((function(){return i.apply(void 0,t)}),s)}),this.focus=this.options.focus?this.options.focus:{x:parseFloat(this.img.getAttribute("data-focus-x"))||0,y:parseFloat(this.img.getAttribute("data-focus-y"))||0},this.startListening(),this.setFocus(this.focus)}var t=e.prototype;return t.startListening=function(){var e=this;if(!this.listening&&(this.listening=!0,this.options.updateOnWindowResize&&window.addEventListener("resize",this.debounceApplyShift),this.options.updateOnContainerResize)){var t=document.createElement("object");n(t.style,h,o),t.addEventListener("load",(function(i){return t.contentDocument.defaultView.addEventListener("resize",(function(){return e.debounceApplyShift()}))})),t.type="text/html",t.setAttribute("aria-hidden","true"),t.tabIndex=-1,this.container.appendChild(t),t.data="about:blank",this.resizeListenerObject=t}},t.stopListening=function(){this.listening&&(this.listening=!1,window.removeEventListener("resize",this.debounceApplyShift),this.resizeListenerObject&&this.resizeListenerObject.contentDocument&&(this.resizeListenerObject.contentDocument.defaultView.removeEventListener("resize",this.debounceApplyShift),this.container.removeChild(this.resizeListenerObject),this.resizeListenerObject=null))},t.calcShift=function(e,t,i,s,n){var a=Math.floor(t/2),o=(s+1)/2,r=Math.floor(i/e),l=Math.floor(o*r);n&&(l=r-l);var c=l-a,d=r-l,u=t-a;return d<u&&(c-=u-d),c<0&&(c=0),-100*c/t},e}()},431:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(596));t.default=class{constructor(){this.initializeContrastToggler()}initializeContrastToggler(){var e;const t=document.getElementById("contrastToggler");t&&(n.default.get("contrast-mode")&&"1"===n.default.get("contrast-mode")&&(t.classList.add("active"),null===(e=document.querySelector("html"))||void 0===e||e.classList.add("contrast")),t.addEventListener("click",(e=>{var i;e.preventDefault(),t.classList.toggle("active"),null===(i=document.querySelector("html"))||void 0===i||i.classList.toggle("contrast"),t.classList.contains("active")?n.default.set("contrast-mode","1"):n.default.set("contrast-mode","0")})))}}},691:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(630)),a=s(i(916)),o=s(i(332));class r{static initializeUnsavedFormsCheck(){document.querySelectorAll('form[data-unsaved-check="1"]').forEach((e=>{const t=e.getAttribute("name");if(!t)return;const i={};e.querySelectorAll("input:not([data-ignore]),select:not([data-ignore]),textarea:not([data-ignore])").forEach((e=>{const t=e.getAttribute("name");if(!t)return;const s=e.value;i[t]=!1,e.addEventListener("input",(()=>{s!==e.value?i[t]=!0:i[t]&&s===e.value&&(i[t]=!1)}))})),r.changedForms[t]=i,e.addEventListener("submit",(()=>{delete r.changedForms[t]}))}))}static checkIfUnsavedFormsPresent(){for(const e in r.changedForms)for(const t in r.changedForms[e])if(r.changedForms[e][t])return!0;return!1}constructor(){this.initializeValidation()}initializeScrollToForms(){const e=window.location.hash;if(!e||-1===e.indexOf("#form-"))return;const t=e.replace("#form-",""),i=document.querySelector("form#"+t);if(i){const e=n.default.getElementPosition(i);window.scrollTo({top:e.top>0?e.top-250:0,behavior:"smooth"})}}initializeDatePickers(){const e=(0,a.default)().startOf("day"),t=e.format("X"),i=e.clone().add(1,"months").startOf("day"),s=i.format("X");document.querySelectorAll(".date-picker:not(.range-from,.range-to)").forEach((e=>{const t=e.dataset.target;if(!t)return;const i=document.querySelector(t);if(i){if(i.value){const t=a.default.unix(parseInt(i.value)).startOf("day");e.value=t.format("YYYY-MM-DD")}e.addEventListener("change",(()=>{if(e.value){const t=(0,a.default)(e.value);t.isValid()?i.value=t.startOf("day").format("X"):i.value=""}else i.value=""}))}})),document.querySelectorAll(".date-range-pickers").forEach((n=>{const o=n.querySelector(".range-from");if(!o)return;const r=n.querySelector(".range-to");if(!r)return;const l=o.dataset.target;if(!l)return;const c=r.dataset.target;if(!c)return;const d=document.querySelector(l);if(!d)return;const u=document.querySelector(c);if(u){if(d.value){const e=a.default.unix(parseInt(d.value)).startOf("day");o.value=e.format("YYYY-MM-DD")}else o.value=e.format("YYYY-MM-DD"),d.value=t;if(u.value){const e=a.default.unix(parseInt(u.value)).startOf("day");r.value=e.format("YYYY-MM-DD")}else r.value=i.format("YYYY-MM-DD"),u.value=s.toString();o.addEventListener("change",(()=>{if(o.value){const e=(0,a.default)(o.value),t=(0,a.default)(r.value);!e.isValid()||t.isValid()&&e>=t?(d.value="",u.value=""):(d.value=e.startOf("day").format("X"),u.value=t.startOf("day").format("X"))}else d.value="",u.value=""})),r.addEventListener("change",(()=>{if(r.value){const e=(0,a.default)(o.value),t=(0,a.default)(r.value);!t.isValid()||e.isValid()&&t<=e?(d.value="",u.value=""):(d.value=e.startOf("day").format("X"),u.value=t.startOf("day").format("X"))}else d.value="",u.value=""}))}}))}initializeDateFields(){const e=(0,a.default)().startOf("day"),t=e.format("X"),i=e.clone().add(1,"months").startOf("day"),s=i.format("X");document.querySelectorAll(".date-field:not(.range-from,.range-to)").forEach((e=>{const t=e.dataset.target;if(!t)return;const i=document.querySelector(t);if(i){if(i.value){const t=a.default.unix(parseInt(i.value)).startOf("day");e.value=t.format("DD.MM.YYYY")}e.addEventListener("change",(()=>{const t=(0,a.default)(e.value,"DD.MM.YYYY");t.isValid()?i.value=t.startOf("day").format("X"):i.value=""}))}})),document.querySelectorAll(".date-range-fields").forEach((n=>{const o=n.querySelector(".range-from");if(!o)return;const r=n.querySelector(".range-to");if(!r)return;const l=o.dataset.target;if(!l)return;const c=r.dataset.target;if(!c)return;const d=document.querySelector(l);if(!d)return;const u=document.querySelector(c);if(u){if(d.value){const e=a.default.unix(parseInt(d.value)).startOf("day");o.value=e.format("DD.MM.YYYY")}else o.value=e.format("DD.MM.YYYY"),d.value=t.toString();if(u.value){const e=a.default.unix(parseInt(u.value)).startOf("day");r.value=e.format("DD.MM.YYYY")}else r.value=i.format("DD.MM.YYYY"),u.value=s;o.addEventListener("change",(()=>{const e=(0,a.default)(o.value,"DD.MM.YYYY"),t=(0,a.default)(r.value,"DD.MM.YYYY");!e.isValid()||t.isValid()&&e>=t?(d.value="",u.value=""):(d.value=e.startOf("day").format("X"),u.value=t.startOf("day").format("X"))})),r.addEventListener("change",(()=>{const e=(0,a.default)(o.value,"DD.MM.YYYY"),t=(0,a.default)(r.value,"DD.MM.YYYY");!t.isValid()||e.isValid()&&t<=e?(d.value="",u.value=""):(d.value=e.startOf("day").format("X"),u.value=t.startOf("day").format("X"))}))}}))}initializeTextareas(){const e=o.default.getLabel("characters");document.querySelectorAll("textarea[maxlength]").forEach((t=>{let i=0;const s=t.getAttribute("maxlength");if(s&&(i=parseInt(s)),i>0){const s=document.createElement("span");s.classList.add("form-text");const n=document.createElement("span");n.classList.add("remaining"),n.textContent=i.toString(),s.append(n),s.insertAdjacentText("beforeend"," / "+i+" "+e),t.insertAdjacentElement("afterend",s),t.addEventListener("keyup",(()=>{const e=i-t.value.length;n.textContent=e.toString()}))}}))}initializeSanitization(){document.querySelectorAll("[data-sanitize]").forEach((e=>{e.dataset.sanitize&&e.addEventListener("blur",(()=>{if(e.value){const t=e.value.trim();"float"===e.dataset.sanitize&&(e.value=function(e){return e.replace(",",".")}(t))}}))}))}initializeValidation(){document.querySelectorAll("form").forEach((e=>{e.addEventListener("submit",(function(t){e.checkValidity()||(t.preventDefault(),t.stopPropagation())}),!1),e.querySelectorAll(".form-control").forEach((e=>{const t=function(){e.value?e.classList.add("has-value"):e.classList.remove("has-value")};t(),"SELECT"===e.nodeName?e.addEventListener("change",t):e.addEventListener("keyup",t)}))}))}}r.changedForms={},t.default=r},322:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(630)),a=s(i(596));t.default=class{constructor(e,t){if(this.muteUnmuteButton=null,this.muteUnmuteText=null,this.muteIcon=null,this.unmuteIcon=null,this.cookieExpirationDate=null,this.isInitialized=!1,this.videoObject=e,this.container=t,!this.videoObject||!this.container)return;const i=this.container.querySelector("video");if(!i)return;this.video=i;const s=this.container.querySelector(".btn-pause-play");if(!s)throw new Error("Play/Pause button is missing.");this.playPauseButton=s;const n=this.playPauseButton.querySelector(".visually-hidden");if(!n)throw new Error("Play/Pause text is missing.");this.playPauseText=n;const a=this.playPauseButton.querySelector(".pause");if(!a)throw new Error("Pause icon is missing.");this.pauseIcon=a;const o=this.playPauseButton.querySelector(".play");if(!o)throw new Error("Play icon is missing.");this.playIcon=o,this.muteUnmuteButton=this.container.querySelector(".btn-mute-unmute"),this.muteUnmuteButton&&(this.muteUnmuteText=this.muteUnmuteButton.querySelector(".visually-hidden"),this.muteIcon=this.muteUnmuteButton.querySelector(".mute"),this.unmuteIcon=this.muteUnmuteButton.querySelector(".unmute")),this.cookieExpirationDate=new Date((new Date).setFullYear((new Date).getFullYear()+1)),this.video.addEventListener("play",(()=>{this.isInitialized||(this.isInitialized=!0,this.initialize())})),3!==this.video.readyState&&4!==this.video.readyState||this.isInitialized||(this.isInitialized=!0,this.initialize())}initialize(){n.default.setVideoSourceByDeviceOrientation(this.video,!1),this.initializeUserPreferences(),this.initializeControls(),"1"===a.default.get("fullscreen-video-paused")?this.pause(!0):this.play(),window.addEventListener("scroll",(()=>{this.playInView()}),{capture:!1,passive:!0}),window.addEventListener("scroll",(()=>{this.playInView()}),{capture:!1,passive:!0}),window.addEventListener("resize",(()=>{n.default.setVideoSourceByDeviceOrientation(this.video,!1),"1"===a.default.get("fullscreen-video-paused")?this.pause(!0):this.play()}),{capture:!1,passive:!0})}initializeUserPreferences(){if(this.videoObject&&this.videoObject.canAutoplayAudio){const e=a.default.get("fullscreen-video-muted");null===e?(this.video.muted=!0,a.default.set("fullscreen-video-muted","1")):this.video.muted="1"==e}else a.default.delete("fullscreen-video-muted");null!==a.default.get("fullscreen-video-paused")&&this.video.pause()}initializeControls(){const e=this;this.playPauseButton.classList.remove("d-none"),this.video.paused?this.pause(!1):this.play(),this.playPauseButton.addEventListener("click",(function(){e.video.paused?e.play():e.pause(!0)})),this.muteUnmuteButton&&(this.muteUnmuteButton.classList.remove("d-none"),this.video.muted?this.mute():this.unmute(),this.muteUnmuteButton.addEventListener("click",(function(){e.video.muted?e.unmute():e.mute()})))}play(){a.default.delete("fullscreen-video-paused"),this.video.play().catch((function(){})),this.pauseIcon.classList.remove("d-inline-block","d-none"),this.pauseIcon.classList.add("d-inline-block"),this.playIcon.classList.remove("d-inline-block","d-none"),this.playIcon.classList.add("d-none"),this.playPauseText.innerHTML="Pause"}pause(e){void 0===e&&(e=!0),e&&a.default.set("fullscreen-video-paused","1",this.cookieExpirationDate,"/"),this.video&&this.video.pause(),this.pauseIcon&&(this.pauseIcon.classList.remove("d-inline-block","d-none"),this.pauseIcon.classList.add("d-none")),this.playIcon&&(this.playIcon.classList.remove("d-inline-block","d-none"),this.playIcon.classList.add("d-inline-block")),this.playPauseText&&(this.playPauseText.innerHTML="Play")}playPauseToggle(){this.video.paused?this.play():this.pause(!0)}mute(){var e,t,i,s;this.videoObject&&this.videoObject.canAutoplayAudio&&a.default.set("fullscreen-video-muted","1",this.cookieExpirationDate,"/"),this.video.muted=!0,this.muteUnmuteButton&&(null===(e=this.muteIcon)||void 0===e||e.classList.remove("d-inline-block","d-none"),null===(t=this.muteIcon)||void 0===t||t.classList.add("d-none"),null===(i=this.unmuteIcon)||void 0===i||i.classList.remove("d-inline-block","d-none"),null===(s=this.unmuteIcon)||void 0===s||s.classList.add("d-inline-block"),this.muteUnmuteText&&(this.muteUnmuteText.innerHTML="Unmute"))}unmute(){var e,t,i,s;this.video&&this.videoObject&&(this.videoObject.canAutoplayAudio&&a.default.set("fullscreen-video-muted","0",this.cookieExpirationDate,"/"),this.video.muted=!1,this.muteUnmuteButton&&(null===(e=this.muteIcon)||void 0===e||e.classList.remove("d-inline-block","d-none"),null===(t=this.muteIcon)||void 0===t||t.classList.add("d-inline-block"),null===(i=this.unmuteIcon)||void 0===i||i.classList.remove("d-inline-block","d-none"),null===(s=this.unmuteIcon)||void 0===s||s.classList.add("d-none"),this.muteUnmuteText&&(this.muteUnmuteText.innerHTML="Mute")))}toggleMuteUnmute(){this.video&&(this.video.muted?this.unmute():this.mute())}playInView(){if(null!==a.default.get("fullscreen-video-paused"))return;const e=n.default.getScrollPosition(),t=this.video.getBoundingClientRect(),i=n.default.getElementPosition(this.video),s=i.top+.75*t.height,o=i.top+.25*t.height;e.top+n.default.getWindowDimensions().height>s&&e.top<o?this.video.paused&&this.play():(e.top,this.video.paused||this.pause(!1))}}},147:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(630)),a=s(i(212)),o=s(i(980)),r=s(i(218)),l=a.default.extend(o.default);class c{static getJoiMessages(){return{"string.base":"Kein gültiger Text.","string.empty":"Dieses Feld muss ausgefüllt werden.","string.min":"Der Text muss mindestens {#limit} Zeichen enthalten.","string.max":"Der Text darf maximal {#limit} Zeichen enthalten.","string.uri":'Der angegebene Wert ist keine gültige URL (URL muss mit "http://" oder "https://" beginnen).',"string.email":"Der angegebene Wert ist keine gültige E-Mail Adresse.","number.base":"Keine gültige Zahl.","number.empty":"Dieses Feld muss ausgefüllt werden.","number.min":"Die Zahl muss mindestens {#limit} sein.","number.max":"Die Zahl darf maximal {#limit} sein.","number.integer":"Die Zahl muss eine ganzzahlige Zahl sein.","checkbox.checked":"Die Checkbox muss aktiviert sein.","date.base":"Kein gültiges Datum. Datum muss im Format TT.MM.JJJJ eingegeben werden.","date.empty":"Dieses Feld muss ausgefüllt werden.","date.min":"Das Datum muss mindestens {#limit} sein.","date.max":"Das Datum darf maximal {#limit} sein.","date.less":"Das Datum muss kleiner als {#limit} sein.","date.greater":"Das Datum muss größer als {#limit} sein.","date.format":"Datum muss im Format TT.MM.JJJJ eingegeben werden.","any.ref":'Feld ist von "{#ref}" abhängig.',"any.only":"Wert stimmt nicht überein.","any.required":"Dieses Feld muss ausgefüllt werden."}}static getJoiSchema(e){return l.object(e).messages(c.getJoiMessages())}static initializeDataAttributeValidation(){document.querySelectorAll('form[data-validate="1"]').forEach((e=>{const t={};e.querySelectorAll('[data-validate="1"]').forEach((e=>{const i=c.getJoiSchemaForField(e),s=e.getAttribute("id");s&&(t[s]=i)})),new c(e,t)}))}static getJoiSchemaForField(e){if(!e.getAttribute("id"))throw new Error("Field has no ID set.");if(!e.dataset.validate||"1"!==e.dataset.validate)throw new Error('Field has no data-validate="1" set.');const t=e.getAttribute("id");let i;switch(e.dataset.validateType){case"string":default:i=a.default.string();break;case"float":i=a.default.number();break;case"integer":i=a.default.number().integer();break;case"zip":i=a.default.number().integer().min(1e3).max(9999);break;case"email":i=a.default.string().email({tlds:{allow:!1}});break;case"uri":i=a.default.string().uri();break;case"checkboxChecked":i=a.default.string().custom(((t,i)=>e.checked?t:i.error("checkbox.checked")));break;case"date":i=l.date().format("DD.MM.YYYY");break;case"dateFrom":i=l.date().format("DD.MM.YYYY"),e.dataset.validateLessField&&(i=i.less(l.ref(e.dataset.validateLessField)));break;case"dateTo":i=l.date().format("DD.MM.YYYY"),e.dataset.validateGreaterField&&(i=i.greater(l.ref(e.dataset.validateGreaterField)));break;case"password":i=a.default.string().min(4).max(255);break;case"passwordRepeat":if(!e.dataset.validatePasswordField)throw new Error(`Field "${t}": Password repeat needs to have data-validate-password`);return a.default.ref(e.dataset.validatePasswordField)}if(e.dataset.validateMin){const s=parseFloat(e.dataset.validateMin);if(isNaN(s))throw new Error(`Field "${t}": Cannot cast min-value to a number.`);i=i.min(s)}if(e.dataset.validateMax){const s=parseFloat(e.dataset.validateMax);if(isNaN(s))throw new Error(`Field "${t}": Cannot cast max-value to a number.`);i=i.max(s)}return i=e.dataset.validateRequired&&"1"===e.dataset.validateRequired?i.required():i.allow("",null),i}constructor(e,t){this._emitter=(0,r.default)(),this.form=e,this.schema=t,this.joiSchema=c.getJoiSchema(t),this.form.addEventListener("submit",(e=>{this.handleSubmit(e)}))}get emitter(){return this._emitter}set emitter(e){this._emitter=e}handleSubmit(e){this.resetAllErrorMessages();const t=this.getValues(),i=this.joiSchema.validate(t,{abortEarly:!1,allowUnknown:!0});if(i.error){let t=0;for(let e=0;e<i.error.details.length;e++){const s=i.error.details[e],a=this.form.querySelector("#"+s.path[0]);if(a){this.showErrorMessage(a,s);const e=n.default.getElementPosition(a);(0===t||e.top<t)&&(t=e.top)}}if(t>0){const e=t-100;window.scrollTo({top:e>0?e:0,behavior:"smooth"})}return this.emitter.emit("error",i),e.preventDefault(),!1}return!0}getValues(){const e={};for(const t of Object.keys(this.schema)){const i=this.form.querySelector("#"+t);e[t]=i?i.value:null}return e}resetAllErrorMessages(){this.form.querySelectorAll(".invalid-feedback").forEach((e=>{e.remove()})),this.form.querySelectorAll(".is-invalid").forEach((e=>{e.classList.remove("is-invalid")}))}resetErrorMessage(e){e.classList.remove("is-invalid");const t=e.nextElementSibling;t.classList.contains("invalid-feedback")&&t.remove()}showErrorMessage(e,t){let i=t.message;e.dataset.validateErrorMessage&&(i=e.dataset.validateErrorMessage);let s,n=null;switch(t.type){case"date.less":case"date.greater":s=this.resolveReference(i),n=this.form.querySelector("#"+s),n&&(i=i.replace("ref:"+s,n.value));break;case"any.ref":if(s=this.resolveReference(i),n=this.form.querySelector("#"+s),n){const e=this.form.querySelector('[for="'+s+'"]');if(e&&e.textContent&&e.textContent.trim())i=i.replace("ref:"+s,e.textContent.trim());else{const e=n.getAttribute("id");e&&(i=i.replace("ref:"+s,e))}}}e.classList.add("is-invalid");const a=document.createElement("div");a.classList.add("invalid-feedback"),a.textContent=i,e.insertAdjacentElement("afterend",a)}resolveReference(e){const t=new RegExp(/^.*ref:([\w\-_.]+).*$/,"i").exec(e);return t&&2===t.length?t[1]:""}}t.default=c},62:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(630)),a=s(i(322)),o=s(i(331));t.default=class{constructor(){this.canAutoplayAudio=!0,this.canAutoplayVideo=!0,this.fullscreenContainer=document.querySelector(".section-fullscreen"),this.teaserContainers=document.querySelectorAll(".teaser:not(.play-in-view)"),this.playInViewContainers=document.querySelectorAll(".play-in-view"),this.playInViewOnScrollingVideos=[],o.default.audio().then((e=>(this.canAutoplayAudio=e.result,o.default.video()))).then((e=>{this.canAutoplayVideo=e.result})).then((()=>{this.initializeTeasers(),this.initializePlayInView(),this.initializeFullScreen(),window.addEventListener("scroll",(()=>{for(let e=0;e<this.playInViewOnScrollingVideos.length;e++){const t=this.playInViewOnScrollingVideos[e];this.playInView(t)}}),{capture:!1,passive:!0})}))}initializeFullScreen(){this.fullscreenContainer&&new a.default(this,this.fullscreenContainer)}initializeTeasers(){n.default.isTouch()||this.teaserContainers.forEach((e=>{const t=e.querySelector("video");t&&e.classList.contains("play-on-hover")&&(e.addEventListener("mouseenter",(()=>{t.play().catch((function(){}))})),e.addEventListener("mouseleave",(()=>{t.pause()})))}))}initializePlayInView(){this.playInViewContainers.forEach((e=>{const t=e.querySelector("video");t&&(this.playInViewOnScrollingVideos.push(t),t.addEventListener("loadeddata",(()=>{this.playInView(t)}),!1))}))}playInView(e){const t=n.default.getScrollPosition(),i=e.getBoundingClientRect(),s=n.default.getElementPosition(e),a=s.top+.75*i.height,o=s.top+.25*i.height;t.top+n.default.getWindowDimensions().height>a&&t.top<o?e.paused&&e.play().catch((()=>{})):(t.top,e.paused||e.pause())}}},866:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(){document.addEventListener("keydown",(e=>{"Tab"===e.key?document.body.classList.add("is-tabbing"):document.body.classList.remove("is-tabbing")})),document.addEventListener("mousedown",(()=>{document.body.classList.remove("is-tabbing")})),this.initializeMainNavigation(),this.initializeModal()}initializeModal(){document.querySelectorAll(".modal").forEach((e=>{e.addEventListener("shown.bs.modal",(()=>{const t=e.querySelector(".close");t&&t.addEventListener("keydown",(e=>{"Tab"===e.key&&e.shiftKey&&e.preventDefault()}));const i=e.querySelector(".btn");i&&i.addEventListener("keydown",(e=>{"Tab"===e.key&&(e.preventDefault(),t&&t.focus())}))}))}))}initializeMainNavigation(){document.querySelectorAll(".navbar-nav > .nav-item").forEach((e=>{const t=e.querySelector(".nav-link");t&&(t.addEventListener("focus",(()=>{document.body.classList.contains("is-tabbing")&&e.classList.add("hover")})),t.addEventListener("keydown",(t=>{"Tab"===t.key&&t.shiftKey&&e.classList.remove("hover")})));const i=e.querySelectorAll(".sub-nav .nav-item .nav-link");if(i&&i.length>0){const t=i[0],s=i[i.length-1];i.forEach((i=>{i.addEventListener("keydown",(n=>{e.classList.add("hover"),"Tab"===n.key&&(i===t&&n.shiftKey&&e.classList.remove("hover"),i!==s||n.shiftKey||e.classList.remove("hover"))}))}))}}))}}},640:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(729)),a=s(i(601)),o=s(i(537));class r extends a.default{constructor(e){super(e),this.mapContainer=null,this.map=null;const t=()=>{var e;if(this.mapContainer=this.container.querySelector(".map"),!this.mapContainer||!this.mapContainer.dataset.latitude||!this.mapContainer.dataset.longitude)return;const t=parseFloat(this.mapContainer.dataset.longitude),i=parseFloat(this.mapContainer.dataset.latitude);if(isNaN(t)||isNaN(i))throw new Error("Latitude or longitude is not a valid number.");this.map=new google.maps.Map(this.mapContainer,{zoom:15,center:{lat:i,lng:t}});const s=new google.maps.Marker({map:this.map,position:{lat:i,lng:t},title:null!==(e=this.mapContainer.dataset.title)&&void 0!==e?e:""});new google.maps.InfoWindow({content:this.getInfoWindowContent(this.mapContainer)}).open({map:this.map,anchor:s}),r.emitter.emit("ready",this)};null===o.default||void 0===o.default||o.default.emitter.on("decoded",(e=>{"googlemaps"===e.identifier&&n.default.api.then((()=>t()))}))}getInfoWindowContent(e){let t="";e.dataset.title&&(t+=`<strong>${e.dataset.title}</strong>`);const i=[];return e.dataset.address&&i.push(`${e.dataset.address}`),e.dataset.zip&&i.push(`${e.dataset.zip}`),e.dataset.city&&i.push(`${e.dataset.city}`),e.dataset.country&&i.push(`${e.dataset.country}`),i.length>0&&(t+="<p>"+i.join("<br>")+"</p>"),t}}t.default=r},601:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(218));class a{static get emitter(){return this._emitter}constructor(e){this._container=e}get container(){return this._container}}a._emitter=(0,n.default)(),t.default=a},684:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(407)),a=s(i(630)),o=s(i(284)),r=s(i(691)),l=s(i(332));document.addEventListener("DOMContentLoaded",(()=>{let e=a.default.getDeviceOrientation();document.body.classList.add(e);let t="";window.addEventListener("resize",(()=>{a.default.browserEmitter.emit("resize",a.default.getWindowDimensions()),e=a.default.getDeviceOrientation(),e!==t&&(t&&document.body.classList.remove(t),e&&(document.body.classList.add(e),a.default.browserEmitter.emit("orientation",e))),t=e}),{capture:!1,passive:!0});let i=0,s=0;window.addEventListener("scroll",(()=>{const e=window.scrollY,t=window.scrollX,n={previousScrollY:i,scrollY:e,previousScrollX:s,scrollX:t};a.default.browserEmitter.emit("scroll",n),i=e,s=t}),{capture:!1,passive:!0}),r.default.initializeUnsavedFormsCheck(),window.addEventListener("beforeunload",(e=>{if(r.default.checkIfUnsavedFormsPresent()){const t=l.default.getLabel("formsChanged");return(e||window.event).returnValue=t,t}})),new n.default})),window.addEventListener("beforeunload",(()=>{const e=Math.floor((new Date).getTime()/1e3);Math.floor(o.default.getInstance().get().timestamp/1e3)<e-3600&&o.default.getInstance().reset()}))},407:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(691)),a=s(i(630)),o=s(i(147)),r=s(i(402)),l=s(i(596)),c=s(i(866)),d=s(i(62)),u=s(i(431)),h=i(389),m=s(i(640)),g=s(i(145));t.default=class{constructor(){this.initializeSkipLinks(),this.initializeButtons(),this.initializeLightbox(),this.initializeImageFocus(),this.initializeMainNavigation(),this.initializeMain(),this.initializeBreakingNews(),this.initializeExtensions(),this.initializePlugins(),this.initializeMask(),this.initializeContent(),new n.default,new c.default,new d.default,new u.default,o.default.initializeDataAttributeValidation(),a.default.isTouch()?document.body.classList.add("is-touch"):document.body.classList.add("no-touch"),this.fixViewHeight(),a.default.browserEmitter.on("scroll",(e=>{this.fixViewHeight(),this.adjustMainNavigationOnScrolling(e.previousScrollY)})),this.adjustDeviceOrientation(a.default.getDeviceOrientation()),a.default.browserEmitter.on("orientation",(e=>{this.fixViewHeight(),this.adjustDeviceOrientation(e)}))}fixViewHeight(){const e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",e+"px")}adjustDeviceOrientation(e){"landscape"===e?(document.body.classList.add("landscape"),document.body.classList.remove("portrait")):(document.body.classList.remove("landscape"),document.body.classList.add("portrait"))}initializeSkipLinks(){document.querySelectorAll("#skiplinks a").forEach((e=>{const t=e.getAttribute("href");if(t&&!document.querySelector(t)){const t=e.closest("li");t&&t.remove()}}))}initializeButtons(){const e=document.querySelector(".btn-scrollto-top");e&&e.addEventListener("click",(()=>{(window.document.scrollingElement||window.document.body||window.document.documentElement).scrollIntoView({block:"start",behavior:"smooth"})}));const t=document.querySelectorAll(".search-toggle");t&&t.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault(),e.classList.toggle("active");const i=document.querySelector("#searchForm");if(i){i.classList.toggle("open");const e=document.querySelector("#inputSearch");e&&e.focus()}}))}));const i=document.querySelector("#searchForm");if(i){const e=i.querySelector(".close");e&&e.addEventListener("click",(e=>{e.preventDefault(),i.classList.remove("open");const t=document.querySelectorAll(".search-toggle");t&&t.forEach((e=>{e.classList.remove("active")}))}))}}initializeLightbox(){new r.default({selector:"*[data-lightbox]"})}initializeImageFocus(){document.querySelectorAll("img[data-focus-x]").forEach((e=>{var t,i;const s=null===(t=e.dataset)||void 0===t?void 0:t.focusX,n=null===(i=e.dataset)||void 0===i?void 0:i.focusY;if(s&&n&&e.classList.contains("focus-point")){const t=parseFloat(s),i=parseFloat(n);isNaN(t)||isNaN(i)||new h.FocusedImage(e)}}))}initializeMainNavigation(){const e=document.querySelector(".navbar-nav"),t=document.querySelector(".navbar-toggler");if(!e||!t)return;const i=document.querySelector("header");if(i&&t.addEventListener("click",(()=>{document.body.classList.toggle("main-nav-open"),t.classList.toggle("toggled")})),window.innerWidth>991){const t=e.querySelector(".toggle-active");t&&t.classList.remove("toggle-active")}const s=document.querySelector("main");if(i&&s){const e=i.querySelectorAll(".navbar-nav > .nav-item-sub > .sub-toggle");e.forEach((t=>{t.addEventListener("click",(()=>{document.body.classList.contains("no-touch")||(e.forEach((e=>{e!==t&&e.parentElement&&e.parentElement.classList.remove("toggle-active")})),t.parentElement&&t.parentElement.classList.toggle("toggle-active"))}))}));const t=i.querySelectorAll(".sub-nav .nav-item-sub > .sub-toggle");t.forEach((e=>{e.addEventListener("click",(()=>{document.body.classList.contains("no-touch")||(t.forEach((t=>{t!==e&&t.parentElement&&t.parentElement.classList.remove("toggle-active")})),e.parentElement&&e.parentElement.classList.toggle("toggle-active"))}))})),document.body.classList.contains("no-touch")&&i.querySelectorAll(".navbar-nav > .nav-item-sub .sub-toggle").forEach((e=>{e.addEventListener("click",(()=>{var t;const i=e.previousElementSibling;if(i){let e=null!==(t=i.getAttribute("target"))&&void 0!==t?t:"";i.getAttribute("target")||(e="_top");const s=i.getAttribute("href");s&&window.open(s,e)}}))}));const n=s.querySelectorAll(".sidebar .nav .nav-item-sub > .sub-toggle");n.forEach((e=>{e.addEventListener("click",(()=>{n.forEach((t=>{t!==e&&t.parentElement&&t.parentElement.classList.remove("toggle-active")})),e.parentElement&&e.parentElement.classList.toggle("toggle-active")}))}));const a=i.querySelectorAll(".section-inside-navigation .card-header");a.forEach((e=>{e.addEventListener("click",(()=>{a.forEach((t=>{t!==e&&t.classList.remove("toggle-active")})),e.classList.toggle("toggle-active")}))}));const o=s.querySelectorAll(".section-inside-navigation .card-header");o.forEach((e=>{e.addEventListener("click",(()=>{o.forEach((t=>{t!==e&&t.classList.remove("toggle-active")})),e.classList.toggle("toggle-active")}))}))}}adjustMainNavigationOnScrolling(e){const t=document.querySelector("#header");if(!t)return;const i=t.clientHeight;window.innerHeight,e>window.scrollY?(t.classList.add("header-out","header-in"),0===window.scrollY&&t.classList.remove("header-fixed","header-out","header-in")):window.scrollY>i&&(t.classList.add("header-fixed"),t.classList.remove("header-in"))}initializeMain(){const e=document.querySelector("main");if(!e)return;const t=e.querySelectorAll(".nav-tabs-align-center");this.initializeTabsAlignment(t),t.forEach((function(e){const t=e.querySelector("img");t&&(t.onload=()=>{if(t&&e){const i=t.height-52.5,s=e.querySelector(".nav-tabs");s&&s.setAttribute("style","top:"+i+"px")}})}));const i=e.querySelectorAll(".teaser");setTimeout((()=>this.initializeTeasers(i)),500),a.default.browserEmitter.on("resize",(()=>{this.initializeTabsAlignment(t),this.initializeTeasers(i)}))}initializeTabsAlignment(e){let t,i;e.forEach((e=>{if(i=e.querySelector(".tab-pane.active img"),!i)return;t=i.height-52.5;const s=e.querySelector(".nav-tabs");s&&s.setAttribute("style","top:"+t+"px")}))}initializeTeasers(e){0!==e.length&&e.forEach((e=>{if(document.body.classList.contains("is-touch")&&!e.classList.contains("force-no-touch"))return;const t=e.querySelector(".overlay-content");if(!t)return;const i=e.querySelector(".overlay-text");if(i){const e=i.offsetHeight;t.style.setProperty("--translateY",e+"px")}t.classList.add("overlay-initialized")}))}initializeBreakingNews(){let e=[];if(l.default.exists("discardedBreakingNews")){const t=l.default.get("discardedBreakingNews");if(null!==t)try{e=JSON.parse(t)}catch(t){e=[]}Array.isArray(e)||(e=[])}document.querySelectorAll(".breaking-news").forEach((t=>{const i=t.dataset.id;i&&(e.includes(i)||t.classList.remove("d-none"),t.addEventListener("closed.bs.alert",(()=>{e.push(i);const t=new Date;t.setFullYear(t.getFullYear()+1),l.default.set("discardedBreakingNews",JSON.stringify(e),t)})))}))}initializeExtensions(){document.querySelectorAll('[data-list-type="sfeventmgt_pieventdetail"]').forEach((e=>{new m.default(e)}))}initializePlugins(){document.querySelectorAll('[data-ctype="sitepackage_scanqrcode"] [data-action="scanQrCode"]').forEach((e=>{new g.default(e)}))}initializeMask(){}initializeContent(){document.querySelectorAll("p").forEach((e=>{const t=e.textContent;e.parentNode&&t&&""===t.trim()&&e.parentNode.removeChild(e)})),document.querySelectorAll("table.table").forEach((e=>{if(e.parentNode){const t=document.createElement("div");t.classList.add("table-responsive"),e.parentNode.insertBefore(t,e),t.appendChild(e)}}));const e=document.querySelector("body");e&&(e.classList.contains("page-article1col")||e.classList.contains("career"))&&document.querySelectorAll("section .col-lg-9").forEach((e=>{e.parentElement&&e.parentElement.classList.add("justify-content-center")}))}}},145:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(655)),a=s(i(143)),o=s(i(630)),r=i(744),l=s(i(332)),c=s(i(10));class d extends n.default{constructor(e){if(super(e),this.stopScanning=!1,this.stopScanningTimeout=1e4,this.registrationsDataTable=null,!e.dataset.eventUid||isNaN(parseInt(e.dataset.eventUid)))throw new Error("Event UID missing.");this.eventUid=parseInt(e.dataset.eventUid);const t=this.container.querySelector("video"),i=this.container.querySelector(".spinner"),s=this.container.querySelector(".registrations-wrapper"),n=this.container.querySelector("#registrationsTable"),o=this.container.querySelector(".registrations-spinner"),l=this.container.querySelector("#manualScan"),c=this.container.querySelector("#manualQrCode"),u=this.createModalContainer();if(document.body.append(u),!(t&&i&&s&&n&&o&&l&&c&&u))throw new Error("Necessary elements missing.");this.video=t,this.spinner=i,this.registrationsWrapper=s,this.registrationsTable=n,this.registrationsDataTable=null,this.registrationsSpinner=o,this.manualScanButton=l,this.manualQrCodeField=c,this.modalContainer=u;const h=r.Modal.getOrCreateInstance(u),m=u.querySelector(".modal-title"),g=u.querySelector(".modal-text"),f=u.querySelector(".modal-button");if(!(h&&m&&g&&f))throw new Error("Necessary elements missing.");this.modal=h,this.modalTitle=m,this.modalText=g,this.modalButton=f,this.qrScanner=new a.default(this.video,(e=>{this.stopScanning||(this.checkQrCode(e.data),setTimeout((()=>{this.stopScanning=!1}),this.stopScanningTimeout)),this.stopScanning=!0}),{maxScansPerSecond:1,highlightScanRegion:!0,highlightCodeOutline:!0}),this.modalContainer.addEventListener("hidden.bs.modal",(()=>{this.startScanner()})),this.initializeManualScanning(),this.initializeRegistrations(),this.updateRegistrations(),d.emitter.emit("ready",this)}initializeManualScanning(){this.startScanner(),this.manualScanButton.addEventListener("click",(()=>{const e=this.manualQrCodeField.value;e&&(this.stopScanner(),this.checkQrCode(e))}))}createModalContainer(){const e=`\n<div class="modal-dialog modal-dialog-centered">\n    <div class="modal-content">\n        <div class="modal-header">\n            <h5 class="modal-title"></h5>\n            <button\n                    type="button"\n                    class="btn close"\n                    data-bs-dismiss="modal"\n                    aria-label="${l.default.getLabel("close")}"\n            ></button>\n        </div>\n        <div class="modal-body">\n            <p class="modal-text my-2"></p>\n        </div>\n        <div class="modal-footer">\n            <button\n                    type="button"\n                    class="modal-button btn"\n                    data-bs-dismiss="modal">\n                ${l.default.getLabel("close")}\n            </button>\n        </div>\n    </div>\n</div>\n        `,t=document.createElement("div");return t.id="scan-qr-code-modal",t.classList.add("modal"),t.tabIndex=-1,t.innerHTML=e,t}stopScanner(){this.qrScanner.stop(),this.video.classList.add("d-none"),this.spinner.classList.remove("d-none")}startScanner(){this.qrScanner.start(),this.video.classList.remove("d-none"),this.spinner.classList.add("d-none")}checkQrCode(e){this.stopScanner(),fetch(o.default.getUrl()+"/?sitepackage-api[endpoint][]=checkQrCode",{method:"POST",body:JSON.stringify({data:e,type:"event"})}).then((e=>e.json())).then((e=>{0===e.status?this.qrCodeOk(e):this.qrCodeNok(e),this.updateRegistrations()})).catch((e=>{this.error()}))}qrCodeOk(e){this.modalTitle.classList.add("text-success"),this.modalTitle.classList.remove("text-danger"),this.modalTitle.textContent="✅ "+e.reason,this.modalText.textContent=e.description,this.modalButton.classList.remove("btn-danger"),this.modalButton.classList.add("btn-success"),this.modal.show()}qrCodeNok(e){this.modalTitle.classList.remove("text-success"),this.modalTitle.classList.add("text-danger"),this.modalTitle.textContent="❌ "+e.reason,this.modalText.textContent=e.description,this.modalButton.classList.remove("btn-success"),this.modalButton.classList.add("btn-danger"),this.modal.show()}error(){this.modalTitle.classList.remove("text-success"),this.modalTitle.classList.add("text-danger"),this.modalTitle.textContent="❌ "+l.default.getLabel("plugin.scanQrCode.error.title"),this.modalText.textContent=l.default.getLabel("plugin.scanQrCode.error.description"),this.modalButton.classList.remove("btn-success"),this.modalButton.classList.add("btn-danger"),this.modal.show()}initializeRegistrations(){}updateRegistrations(){this.registrationsSpinner.classList.remove("d-none"),this.registrationsSpinner.classList.add("d-flex"),fetch(o.default.getUrl()+"/?sitepackage-api[endpoint][]=eventRegistration&eventUid="+this.eventUid).then((e=>e.json())).then((e=>{this.registrationsDataTable&&this.registrationsDataTable.destroy(),this.registrationsDataTable=c.default.createDatatableInstance(this.registrationsTable,e),this.registrationsSpinner.classList.remove("d-flex"),this.registrationsSpinner.classList.add("d-none")})).catch((e=>{throw console.error(e),new Error("An error occurred while trying to fetch the registrations:"+e)}))}}t.default=d},655:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(218));class a{static get emitter(){return this._emitter}constructor(e){this._settings={},this._labels={},this._container=e}get container(){return this._container}get settings(){return this._settings}get labels(){return this._labels}}a._emitter=(0,n.default)(),t.default=a},596:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class i{static set(e,t,i=null,s="/",n="lax"){let a=e+"="+t;return null!==i&&(a+=";expires="+i.toUTCString()),a+=`;path=${s};SameSite=${n}`,document.cookie=a,a}static get(e){if(!i.exists(e))return null;const t=document.cookie.split(";");for(const i of t){const t=i.split("=");let s=t.shift();if(s){s=s.trim();const i=t.join("=").trim();if(s===e)return i}}return null}static delete(e){return!!i.exists(e)&&(document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/",!0)}static exists(e){return!!e&&document.cookie.indexOf(e+"=")>=0}}t.default=i},630:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(218));class a{static getGlobalProperty(e){if(void 0===Globals||!Globals)throw new Error("Globals are missing.");if(void 0===Globals[e]||!Globals[e]||!Globals.hasOwnProperty(e))throw new Error("Property "+e+" not found in globals.");return Globals[e]}static get pageUid(){return void 0===this._pageUid&&(this._pageUid=parseInt(a.getGlobalProperty("pageUid"))),this._pageUid}static get pages(){return void 0===this._pages&&(this._pages=a.getGlobalProperty("pages"),Object.keys(this._pages).forEach((e=>{this._pages[e]=parseInt(this._pages[e].toString())}))),this._pages}static get rootline(){return void 0===this._rootline&&(this._rootline=a.getGlobalProperty("rootline")),this._rootline}static get browserEmitter(){return this._browserEmitter}static getUrl(){let e=window.location.href;e=e.split("?")[0],e=e.split("#")[0];const t=e.length;return"/"===e.charAt(t-1)&&(e=e.substring(0,t-1)),e}static isTouch(){let e;if("maxTouchPoints"in navigator)e=navigator.maxTouchPoints>0;else if("msMaxTouchPoints"in navigator)e=navigator.msMaxTouchPoints>0;else{const t=void 0!==window.matchMedia&&window.matchMedia("(pointer:coarse)");if(t&&"(pointer:coarse)"===t.media)e=!!t.matches;else if("orientation"in window)e=!0;else{const t=navigator.userAgent;e=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(t)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(t)}}return e}static getDeviceOrientation(){return window.innerHeight>window.innerWidth?"portrait":"landscape"}static getWindowDimensions(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}static getScrollPosition(){return{top:document.documentElement.scrollTop||document.body.scrollTop,left:document.documentElement.scrollLeft||document.body.scrollLeft}}static getElementPosition(e){const t=e.getBoundingClientRect(),i=a.getScrollPosition();return{top:t.top+i.top,left:t.left+i.left}}static addTimedClass(e,t,i=1e3){e.classList.add(t),setTimeout((()=>{e.classList.remove(t)}),i)}static debouncedSearch(e,t,i=500,s=null){void 0===i&&(i=500);let n=!1,a=null;e.addEventListener("keyup",(o=>{var r;r=o.keyCode,(-1!==[8,13,16,17,32,46,106,109,173,110,188,59,192,222].indexOf(r)||r>=48&&r<=57||r>=96&&r<=105||r>=65&&r<=90)&&!n&&(null!==a&&clearTimeout(a),a=setTimeout((()=>{let i=e.value;i=s?s(i):i.toLowerCase().trim(),t(i),n=!1}),i),n=!0)}))}static copyToClipboard(e){if(navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.style.top="0",t.style.left="0",t.style.position="fixed",t.value=e,document.body.appendChild(t),t.focus(),t.select();try{if(!document.execCommand("copy"))throw new Error("Copying to clipboard failed.")}catch(e){throw new Error("Browser does not support clipboard interaction.")}t.remove()}}static setVideoSourceByDeviceOrientation(e,t){let i="",s="";if(e){if(window.outerWidth/window.outerHeight>1?(void 0!==e.dataset.sourceLandscape&&e.dataset.sourceLandscape&&(i=e.dataset.sourceLandscape),void 0!==e.dataset.posterLandscape&&e.dataset.posterLandscape&&(s=e.dataset.posterLandscape)):(void 0!==e.dataset.sourcePortrait&&e.dataset.sourcePortrait&&(i=e.dataset.sourcePortrait),void 0!==e.dataset.posterPortrait&&e.dataset.posterPortrait&&(s=e.dataset.posterPortrait)),s&&e.setAttribute("poster",s),""===i)return;void 0!==t&&t&&e.pause(),e.src="";let n=e.querySelector("source");n&&n.remove(),n=document.createElement("source"),n.setAttribute("type","video/mp4"),n.setAttribute("src",i),e.append(n),e.src=i}}}a._browserEmitter=(0,n.default)(),t.default=a},332:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(630));t.default=class{static get language(){return void 0===this._language&&(this._language=n.default.getGlobalProperty("language")),this._language}static get languageId(){return void 0===this._languageId&&(this._languageId=parseInt(n.default.getGlobalProperty("languageId"))),this._languageId}static get labels(){return void 0===this._labels&&(this._labels=n.default.getGlobalProperty("labels")),this._labels}static getLabel(e){return this.labels.hasOwnProperty(e)?this.labels[e]:""}}},729:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(869);class n{static get loader(){return null===n._loader&&(n._loader=new s.Loader({apiKey:Globals.google.mapsApiKey,version:"weekly"})),n._loader}static get api(){return null===n._api?n.loader.load().then((e=>(n._api=e,e))).catch((e=>{throw new Error("Could not load Google Maps API: "+e)})):new Promise((e=>n._api))}}n._loader=null,n._api=null,t.default=n},10:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(259),a=s(i(332));class o{static createDatatableInstance(e,t={}){return new n.DataTable(e,{data:t,labels:{placeholder:a.default.getLabel("simpleDatatables.labels.placeholder"),searchTitle:a.default.getLabel("simpleDatatables.labels.searchTitle"),pageTitle:a.default.getLabel("simpleDatatables.labels.pageTitle"),perPage:a.default.getLabel("simpleDatatables.labels.perPage"),noRows:a.default.getLabel("simpleDatatables.labels.noRows"),info:a.default.getLabel("simpleDatatables.labels.info"),noResults:a.default.getLabel("simpleDatatables.labels.noResults")},tableRender:(e,t,i)=>{if(!t.attributes||!t.attributes.id)return;const s=document.querySelector("#"+t.attributes.id);if(!s)return;const n=s.closest(".datatable-wrapper");if(!n)return;const a=n.querySelector(".datatable-dropdown");if(a){const e=n.querySelector(".datatable-selector"),t=n.querySelector(".datatable-top label");e&&t&&(e.classList.add("form-control","form-control-sm"),a.append(e))}const o=n.querySelector(".datatable-input");o&&o.classList.add("form-control","form-control-sm")}})}}o.downloadCsv=function(e){const t={download:!1,lineDelimiter:"\n",columnDelimiter:";"},i=(0,n.exportCSV)(e,t);if(!i)return!1;const s=`${t.lineDelimiter}${i}${t.lineDelimiter}`,a=document.createElement("a");a.href=encodeURI(`data:text/csv;charset=utf-8,${s}`),a.download="export.csv",document.body.appendChild(a),a.click(),document.body.removeChild(a)},t.default=o},284:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(218));class a{static getInstance(){return void 0===a._instance&&(a._instance=new a),a._instance}constructor(){this._storageKey="sitepackage",this._settings=null,this._changeEvent=(0,n.default)(),this.settings=this.get()}get storageKey(){return this._storageKey}get settings(){return this._settings}set settings(e){this._settings=e}get changeEvent(){return this._changeEvent}get(){let e=null;const t=localStorage.getItem(this.storageKey);if(t)try{t&&(e=JSON.parse(t)),null===e||e.hasOwnProperty("version")||(e=this.reset())}catch(t){e=this.reset()}else e=this.reset();if(null===e)throw new Error("Could not fetch settings.");return e.version!==a.VERSION&&(e=this.reset()),e}set(e){void 0!==localStorage.getItem(this.storageKey)&&localStorage.getItem(this.storageKey)||this.reset(),localStorage.setItem(this.storageKey,JSON.stringify(e)),this.settings=e,this.changeEvent.emit("change",this.settings)}getDefaultSettings(){return{version:a.VERSION,timestamp:(new Date).getTime(),settings:{}}}reset(){const e=this.getDefaultSettings();return localStorage.setItem(this.storageKey,JSON.stringify(e)),this.settings=e,this.changeEvent.emit("change",this.settings),e}delete(){const e=this.getDefaultSettings();return localStorage.removeItem(this.storageKey),this.settings=this.getDefaultSettings(),this.changeEvent.emit("change",this.settings),e}}a.VERSION=1,t.default=a},537:e=>{e.exports=a},402:e=>{e.exports=s},143:e=>{e.exports=o},744:e=>{e.exports=r},331:e=>{e.exports=n},212:e=>{e.exports=i},218:t=>{t.exports=e},916:e=>{e.exports=t},259:e=>{e.exports=l},869:(e,t,i)=>{function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i.r(t),i.d(t,{DEFAULT_ID:()=>a,Loader:()=>r,LoaderStatus:()=>o}),"function"==typeof SuppressedError&&SuppressedError;var n=s((function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var s,n,a;if(Array.isArray(t)){if((s=t.length)!=i.length)return!1;for(n=s;0!=n--;)if(!e(t[n],i[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if((s=(a=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(n=s;0!=n--;)if(!Object.prototype.hasOwnProperty.call(i,a[n]))return!1;for(n=s;0!=n--;){var o=a[n];if(!e(t[o],i[o]))return!1}return!0}return t!=t&&i!=i}));const a="__googleMapsScriptId";var o;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(o||(o={}));class r{constructor({apiKey:e,authReferrerPolicy:t,channel:i,client:s,id:o=a,language:l,libraries:c=[],mapIds:d,nonce:u,region:h,retries:m=3,url:g="https://maps.googleapis.com/maps/api/js",version:f}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=i,this.client=s,this.id=o||a,this.language=l,this.libraries=c,this.mapIds=d,this.nonce=u,this.region=h,this.retries=m,this.url=g,this.version=f,r.instance){if(!n(this.options,r.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(r.instance.options)}`);return r.instance}r.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?o.FAILURE:this.done?o.SUCCESS:this.loading?o.LOADING:o.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((i=>{i?t(i.error):e(window.google)}))}))}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id))return void this.callback();const i={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(i).forEach((e=>!i[e]&&delete i[e])),(null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,i,s,n="The Google Maps JavaScript API",a="google",o="importLibrary",r="__ib__",l=document,c=window;c=c[a]||(c[a]={});const d=c.maps||(c.maps={}),u=new Set,h=new URLSearchParams,m=()=>t||(t=new Promise(((o,c)=>{return m=this,g=void 0,p=function*(){var m;for(s in yield i=l.createElement("script"),i.id=this.id,h.set("libraries",[...u]+""),e)h.set(s.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase())),e[s]);h.set("callback",a+".maps."+r),i.src=this.url+"?"+h,d[r]=o,i.onerror=()=>t=c(Error(n+" could not load.")),i.nonce=this.nonce||(null===(m=l.querySelector("script[nonce]"))||void 0===m?void 0:m.nonce)||"",l.head.append(i)},new((f=void 0)||(f=Promise))((function(e,t){function i(e){try{n(p.next(e))}catch(e){t(e)}}function s(e){try{n(p.throw(e))}catch(e){t(e)}}function n(t){var n;t.done?e(t.value):(n=t.value,n instanceof f?n:new f((function(e){e(n)}))).then(i,s)}n((p=p.apply(m,g||[])).next())}));var m,g,f,p})));d[o]?console.warn(n+" only loads once. Ignoring:",e):d[o]=(e,...t)=>u.add(e)&&m().then((()=>d[o](e,...t)))})(i);const s=this.libraries.map((e=>this.importLibrary(e)));s.length||s.push(this.importLibrary("core")),Promise.all(s).then((()=>this.callback()),(e=>{const t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading=!0,this.setScript()}}}}},d={};function u(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return c[e].call(i.exports,i,i.exports,u),i.exports}return u.d=(e,t)=>{for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u(684)})()));
//# sourceMappingURL=website.min.js.map