Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

68publishers-cookie-consent

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

68publishers-cookie-consent - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

LICENSE.md

2

dist/cookie-consent.min.js

@@ -1,1 +0,1 @@

var CookieConsentWrapper;(()=>{var n={10:(e,t,n)=>{"use strict";const o=n(336);e.exports=function(){const e=new o;return e.create()}()},868:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"merge",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}}])&&i(t.prototype,n),o&&i(t,o),e}()},2:(e,t,n)=>{"use strict";function r(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function i(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){var t,n;t=o,e=i[n=e],n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=n(406),c=n(76),l=n(990),n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pluginOptions=new s,this.consentModalOptions=new c,this.settingsModalOptions=new c,this.uiOptions=new l,this.consentModalOptions.merge({layout:"box",position:"bottom center"}),this.settingsModalOptions.merge({layout:"box"})}var t,n,o;return t=e,(n=[{key:"buildCookieConsentConfig",value:function(){return i(i({},this.pluginOptions),{},{gui_options:{consent_modal:i({},this.consentModalOptions),settings_modal:i({},this.settingsModalOptions)}})}}])&&a(t.prototype,n),o&&a(t,o),e}();e.exports=n},76:(e,t,o)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,o?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(n,o(868));var t=a(n);function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=t.call(this)).layout=void 0,e.position=void 0,e.transition="zoom",e}return n}();e.exports=n},406:(e,t,o)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,o?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(n,o(868));var t=a(n);function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=t.call(this)).autorun=!0,e.delay=0,e.cookie_name="cc-settings",e.cookie_expiration=182,e.cookie_path="/",e.cookie_domain=window.location.hostname,e.cookie_same_site="Lax",e.use_rfc_cookie=!1,e.force_consent=!1,e.revision=0,e.current_lang="en",e.auto_language="document",e.autoclear_cookies=!1,e.page_scripts=!1,e.script_selector="data-cookiecategory",e.remove_cookie_tables=!1,e.hide_from_bots=!1,e}return n}();e.exports=n},990:(e,t,r)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,o?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(i,r(868));var e,t,n,o=c(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).include_default_stylesheets=!0,e.external_stylesheets=[],e.internal_stylesheets=[],e.modal_trigger_selector=null,e}return e=i,(t=[{key:"defaultStylesheets",get:function(){return!0===this.include_default_stylesheets?["https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.0-rc3/dist/cookieconsent.css"]:[]}}])&&a(e.prototype,t),n&&a(e,n),i}();e.exports=n},857:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function o(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._cookieConsent=e,this._storagePool=t,this._gtag=n}var e,t,n;return e=o,(t=[{key:"onAccept",value:function(){this._updateConsent()}},{key:"onChange",value:function(){this._updateConsent()}},{key:"_updateConsent",value:function(){var e,t,n,o=this._storagePool.all(),i={},r=[];for(e in o)o.hasOwnProperty(e)&&(n=null!==(t=o[e]).syncConsentWith?t.syncConsentWith:t.name,n=this._cookieConsent.allowedCategory(n)?"granted":"denied","granted"!=(i[t.name]=n)||null===t.eventTrigger||t.eventTrigger.invoked||r.push(t.eventTrigger));this._gtag("consent","update",i);var a,s,c=[];for(a in r)r.hasOwnProperty(a)&&(s=r[a],-1===c.indexOf(s.name)&&(this._gtag("event",s.name,{}),c.push(s.name)),s.invoked=!0)}}])&&i(e.prototype,t),n&&i(e,n),o}()},229:(e,t,i)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}i(686);var a=i(2),s=i(903),c=i(914),l=i(857),u=i(619),d=i(683),p=i(217),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._initialized=!1,this._gtag=e,this._config=new a,this._storagePool=new c,this._dictionary=new u,this._cookieConsent=null}var e,n,o;return e=t,(n=[{key:"setPluginOptions",value:function(e){this._config.pluginOptions.merge(e||{})}},{key:"setConsentModalOptions",value:function(e){this._config.consentModalOptions.merge(e||{})}},{key:"setSettingsModalOptions",value:function(e){this._config.settingsModalOptions.merge(e||{})}},{key:"setUiOptions",value:function(e){this._config.uiOptions.merge(e||{})}},{key:"addStorage",value:function(e){this._storagePool.add(new s(e||{}))}},{key:"addTranslations",value:function(e,t){this._dictionary.addTranslations(e,t||{})}},{key:"loadTranslations",value:function(e){var t;try{t=i(470)("./".concat(e,".js"))}catch(e){t={}}this.addTranslations(e,t)}},{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:"init",value:function(e,t){var n,o;this._initialized||(n=this,t&&(o=function(){d.loadFromConfig(t,n._config.uiOptions),t&&"string"==typeof n._config.uiOptions.modal_trigger_selector&&new p(t,n._dictionary).create(n._config.uiOptions.modal_trigger_selector,t.documentElement.lang)},"loading"!==t.readyState?o():t.addEventListener("DOMContentLoaded",o)),e.addEventListener("load",function(){n._cookieConsent=initCookieConsent();var e=new l(n._cookieConsent,n._storagePool,n._gtag),t=n._config.buildCookieConsentConfig();t.onAccept=function(){return e.onAccept()},t.onChange=function(){return e.onChange()},t.languages=n._dictionary.build(n._storagePool),n._cookieConsent.run(t)}),this._initialized=!0)}}])&&r(e.prototype,n),o&&r(e,o),t}();e.exports=n},336:(e,t,n)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=n(229);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"create",value:function(){if(void 0===window)throw new Error("the window is not accessible.");var e=new a(this._createGtagFunction());return this._setupPluginOptions(e),this._setupConsentModalOptions(e),this._setupSettingsModalOptions(e),this._setupUiOptions(e),this._setupStoragePool(e),this._setupLocales(e),this._setupTranslations(e),e.init(window,document),e}},{key:"_createGtagFunction",value:function(){var e=window.gtag;return e||(window.dataLayer=window.dataLayer||[],e=function(){dataLayer.push(arguments)}),e}},{key:"_setupPluginOptions",value:function(e){window.cc_plugin_options&&"object"===i(window.cc_plugin_options)&&e.setPluginOptions(window.cc_plugin_options)}},{key:"_setupConsentModalOptions",value:function(e){window.cc_consent_modal_options&&"object"===i(window.cc_consent_modal_options)&&e.setConsentModalOptions(window.cc_consent_modal_options)}},{key:"_setupSettingsModalOptions",value:function(e){window.cc_settings_modal_options&&"object"===i(window.cc_settings_modal_options)&&e.setSettingsModalOptions(window.cc_settings_modal_options)}},{key:"_setupUiOptions",value:function(e){window.cc_ui_options&&"object"===i(window.cc_ui_options)&&e.setUiOptions(window.cc_ui_options)}},{key:"_setupStoragePool",value:function(e){if(window.cc_storage_pool&&Array.isArray(window.cc_storage_pool)){var t,n=window.cc_storage_pool;for(t in n)n.hasOwnProperty(t)&&e.addStorage(n[t]||{})}}},{key:"_setupLocales",value:function(e){if(window.cc_locales&&Array.isArray(window.cc_locales)){var t,n=window.cc_locales;for(t in n)n.hasOwnProperty(t)&&e.loadTranslations(n[t])}}},{key:"_setupTranslations",value:function(e){if(window.cc_translations&&"object"===i(window.cc_translations)){var t,n=window.cc_translations;for(t in n)n.hasOwnProperty(t)&&e.addTranslations(t,n[t]||{})}}}])&&r(t.prototype,n),o&&r(t,o),e}()},745:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._name=e,this.invoked=t}var e,t,o;return e=n,(t=[{key:"name",get:function(){return this._name}}])&&i(e.prototype,t),o&&i(e,o),n}()},903:(e,t,n)=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=n(196),a=n(745),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._config=new r(e),this._eventTrigger="string"==typeof this._config.event_trigger?new a(this._config.event_trigger,this._config.event_trigger_invoked):null}var e,n,o;return e=t,(n=[{key:"name",get:function(){return this._config.name}},{key:"enabledByDefault",get:function(){return this._config.enabled_by_default}},{key:"displayInWidget",get:function(){return this._config.display_in_widget}},{key:"readonly",get:function(){return this._config.readonly}},{key:"syncConsentWith",get:function(){return this._config.sync_consent_with}},{key:"eventTrigger",get:function(){return this._eventTrigger}}])&&i(e.prototype,n),o&&i(e,o),t}();e.exports=n},196:e=>{"use strict";e.exports=function e(t){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t.hasOwnProperty("name")||""===t.name)throw new Error('Missing required property "name".');this.name=t.name,this.enabled_by_default=t.enabled_by_default||!1,this.display_in_widget=t.display_in_widget||!1,this.readonly=t.readonly||!1,this.sync_consent_with=t.sync_consent_with||null,this.event_trigger=t.event_trigger||null,this.event_trigger_invoked=t.event_trigger_invoked||!1}},914:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._items=[]}var t,n,o;return t=e,(n=[{key:"add",value:function(e){this._items[e.name]=e}},{key:"has",value:function(e){return this._items.hasOwnProperty(e)}},{key:"get",value:function(e){if(!this.has(e))throw new Error('Missing storage "'.concat(e,'".'));return this._items[e]}},{key:"all",value:function(){return this._items}}])&&i(t.prototype,n),o&&i(t,o),e}()},106:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._locale=e,this.modal_trigger_title="",this.consent_modal_title="",this.consent_modal_description="",this.consent_modal_revision_message="",this.consent_modal_primary_btn="",this.consent_modal_secondary_btn="",this.settings_modal_title="",this.settings_modal_save_settings_btn="",this.settings_modal_accept_all_btn="",this.settings_modal_reject_all_btn="",this.settings_modal_close_btn_label="",this.settings_modal_before_consent_title="",this.settings_modal_before_consent_description="",this.settings_modal_after_consent_title="",this.settings_modal_after_consent_description="",this.functionality_storage_title="",this.functionality_storage_description="",this.personalization_storage_title="",this.personalization_storage_description="",this.security_storage_title="",this.security_storage_description="",this.ad_storage_title="",this.ad_storage_description="",this.analytics_storage_title="",this.analytics_storage_description=""}var e,n,o;return e=t,(n=[{key:"locale",get:function(){return this._locale}},{key:"translate",value:function(e){return this.hasOwnProperty(e)?this[e]:e}},{key:"merge",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}},{key:"build",value:function(e){var t=[];""===this.settings_modal_before_consent_title&&""===this.settings_modal_before_consent_description||t.push({title:this.settings_modal_before_consent_title,description:this.settings_modal_before_consent_description});var n,o,i=e.all();for(o in i)i.hasOwnProperty(o)&&(n=i[o]).displayInWidget&&this.hasOwnProperty(n.name+"_title")&&t.push({title:this[n.name+"_title"],description:this[n.name+"_description"],toggle:{value:n.name,enabled:n.enabledByDefault,readonly:n.readonly}});return""===this.settings_modal_after_consent_title&&""===this.settings_modal_after_consent_description||t.push({title:this.settings_modal_after_consent_title,description:this.settings_modal_after_consent_description}),{consent_modal:{title:this.consent_modal_title,description:this.consent_modal_description,primary_btn:{text:this.consent_modal_primary_btn,role:"accept_all"},secondary_btn:{text:this.consent_modal_secondary_btn,role:"settings"}},settings_modal:{title:this.settings_modal_title,save_settings_btn:this.settings_modal_save_settings_btn,accept_all_btn:this.settings_modal_accept_all_btn,reject_all_btn:this.settings_modal_reject_all_btn,close_btn_label:this.settings_modal_close_btn_label,blocks:t}}}}])&&i(e.prototype,n),o&&i(e,o),t}()},619:(e,t,n)=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=n(106);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._catalogues={}}var t,n,o;return t=e,(n=[{key:"addTranslations",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this._catalogues.hasOwnProperty(e)?t=this._catalogues[e]:(t=new r(e),this._catalogues[e]=t),t.merge(n)}},{key:"translate",value:function(e,t){return this._catalogues.hasOwnProperty(e)?this._catalogues[e].translate(t):t}},{key:"build",value:function(e){var t,n,o={};for(t in this._catalogues)this._catalogues.hasOwnProperty(t)&&(o[(n=this._catalogues[t]).locale]=n.build(e));return o}}])&&i(t.prototype,n),o&&i(t,o),e}()},217:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._document=e,this._dictionary=t}var e,t,o;return e=n,(t=[{key:"create",value:function(e,t){var n,o,i=this._document.querySelectorAll(e),r=i.length?i[i.length-1]:void 0;r?((i="A"===(n=r.cloneNode(!0)).nodeName?n:n.getElementsByTagName("a")[0]||void 0)||(i=this._document.createElement("a"),(o=(o=n.querySelectorAll("*")).length?o[o.length-1]:n).innerHTML="",o.appendChild(i)),((o=i.querySelectorAll("*")).length?o[o.length-1]:i).innerHTML=this._dictionary.translate(t,"modal_trigger_title"),i.setAttribute("data-cc","c-settings"),i.setAttribute("href","#cookie-settings"),r.parentNode.appendChild(n)):console.log("HTML element with selector ".concat(e," not found."))}}])&&i(e.prototype,t),o&&i(e,o),n}()},683:e=>{"use strict";function s(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this._document=e}var e,t,n;return e=a,n=[{key:"loadFromConfig",value:function(e,t){var n,o=new a(e),i=t.internal_stylesheets,r=t.defaultStylesheets;for(n in r=[].concat(s(r),s(t.external_stylesheets)))r.hasOwnProperty(n)&&o.loadExternal(r[n]);for(n in i)i.hasOwnProperty(n)&&o.loadInternal(i[n])}}],(t=[{key:"loadExternal",value:function(e){var t=this._document.createElement("link");t.rel="stylesheet",t.href=e,this._appendStylesheet(t)}},{key:"loadInternal",value:function(e){var t=this._document.createElement("style");t.innerText=e,this._appendStylesheet(t)}},{key:"_appendStylesheet",value:function(e){this._document.getElementsByTagName("head")[0].appendChild(e)}}])&&i(e.prototype,t),n&&i(e,n),a}()},216:e=>{"use strict";e.exports={modal_trigger_title:"Nastavení cookies",consent_modal_title:"🍪 Používáme cookies!",consent_modal_description:"Na našich webových stránkách používáme soubory cookies. Některé z nich jsou nezbytné, zatímco jiné nám pomáhají vylepšít tento web a váš uživatelský zážitek.",consent_modal_primary_btn:"Souhlasím a pokračovat",consent_modal_secondary_btn:"Přizpůsobit",settings_modal_title:"📢 Nastavení cookies",settings_modal_save_settings_btn:"Uložit nastavení",settings_modal_accept_all_btn:"Souhlasím a pokračovat",settings_modal_reject_all_btn:"Zakázat vše",settings_modal_close_btn_label:"Zavřít",settings_modal_before_consent_title:"Použití cookies 📢",settings_modal_before_consent_description:"Soubory cookie používáme k zajištění základních funkcí webu a ke zlepšení vašeho uživatelského zážitku. Souhlas pro každou kategorii můžete kdykoliv změnit.",settings_modal_after_consent_title:"Vice informací",settings_modal_after_consent_description:"Máte-li jakékoli dotazy týkající se používání souborů cookie a vašich voleb, kontaktujte nás prosím.",functionality_storage_title:"Functionality cookies",functionality_storage_description:"Popis functionality cookies.",personalization_storage_title:"Personalization cookies",personalization_storage_description:"Popis personalization cookies.",security_storage_title:"Security cookies",security_storage_description:"Popis security cookies.",ad_storage_title:"Ad cookies",ad_storage_description:"Popis ad cookies.",analytics_storage_title:"Analytics cookies",analytics_storage_description:"Popis analytics cookies."}},302:e=>{"use strict";e.exports={modal_trigger_title:"Cookie settings",consent_modal_title:"🍪 We use cookies!",consent_modal_description:"This website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent.",consent_modal_primary_btn:"Accept all",consent_modal_secondary_btn:"Customize",settings_modal_title:"📢 Cookie settings",settings_modal_save_settings_btn:"Save settings",settings_modal_accept_all_btn:"Accept all",settings_modal_reject_all_btn:"Reject all",settings_modal_close_btn_label:"Close",settings_modal_before_consent_title:"Cookie usage 📢",settings_modal_before_consent_description:"We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want.",settings_modal_after_consent_title:"More information",settings_modal_after_consent_description:"For any queries in relation to my policy on cookies and your choices, please contact us.",functionality_storage_title:"Functionality cookies",functionality_storage_description:"Functionality cookies description.",personalization_storage_title:"Personalization cookies",personalization_storage_description:"Personalization cookies description.",security_storage_title:"Security cookies",security_storage_description:"Security cookies description.",ad_storage_title:"Ad cookies",ad_storage_description:"Ad cookies description.",analytics_storage_title:"Analytics cookies",analytics_storage_description:"Analytics cookies description."}},686:()=>{"function"!=typeof window.initCookieConsent&&(window.initCookieConsent=function(P){function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:0<Y(t).length?Object.prototype.hasOwnProperty.call(t,B.current_lang)?B.current_lang:Y(t)[0]:void 0}function a(){function e(t,e){var n=!1,o=!1;try{for(var i,r=t.querySelectorAll(c.join(':not([tabindex="-1"]), ')),a=r.length,s=0;s<a;)i=r[s].getAttribute("data-focus"),o||"1"!==i?"0"===i&&(n=r[s],o||"0"===r[s+1].getAttribute("data-focus")||(o=r[s+1])):o=r[s],s++}catch(e){return t.querySelectorAll(c.join(", "))}e[0]=r[0],e[1]=r[r.length-1],e[2]=n,e[3]=o}var c=["[href]","button","input","details",'[tabindex="0"]'];e(R,i),U&&e(L,o)}function s(e,t){(M=x("div")).id="cc--main",M.style.position="fixed",M.style.zIndex="1000000",M.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e';var u=M.children[0],d=B.current_lang,p="string"==typeof K.textContent?"textContent":"innerText";D=t,H=function(e){!0===e.force_consent&&Q(K,"force--consent");var t,n,o,i,r,a,s,c,l=e.languages[d].consent_modal.description;W&&(l=J?l.replace("{{revision_message}}",""):l.replace("{{revision_message}}",Z||e.languages[d].consent_modal.revision_message||"")),L?I.innerHTML=l:(L=x("div"),t=x("div"),n=x("div"),o=x("div"),I=x("div"),i=x("div"),r=x("button"),a=x("button"),s=x("div"),L.id="cm",t.id="c-inr",n.id="c-inr-i",o.id="c-ttl",I.id="c-txt",i.id="c-bns",r.id="c-p-bn",a.id="c-s-bn",s.id="cm-ov",r.className="c-bn",a.className="c-bn c_link",o.setAttribute("role","heading"),o.setAttribute("aria-level","2"),L.setAttribute("role","dialog"),L.setAttribute("aria-modal","true"),L.setAttribute("aria-hidden","false"),L.setAttribute("aria-labelledby","c-ttl"),L.setAttribute("aria-describedby","c-txt"),L.style.visibility=s.style.visibility="hidden",s.style.opacity=0,o.insertAdjacentHTML("beforeend",e.languages[d].consent_modal.title),I.insertAdjacentHTML("beforeend",l),r[p]=e.languages[d].consent_modal.primary_btn.text,a[p]=e.languages[d].consent_modal.secondary_btn.text,"accept_all"===e.languages[d].consent_modal.primary_btn.role&&(c="all"),X(r,"click",function(){q.hide(),q.accept(c)}),"accept_necessary"===e.languages[d].consent_modal.secondary_btn.role?X(a,"click",function(){q.hide(),q.accept([])}):X(a,"click",function(){q.showSettings(0)}),n.appendChild(o),n.appendChild(I),i.appendChild(r),i.appendChild(a),t.appendChild(n),t.appendChild(i),L.appendChild(t),u.appendChild(L),u.appendChild(s),U=!0)},e||H(t),z=x("div");var n=x("div"),o=x("div"),i=x("div");R=x("div");var r=x("div"),a=x("div"),s=x("button"),c=x("div"),l=x("div"),f=x("div");z.id="s-cnt",n.id="c-vln",i.id="c-s-in",o.id="cs",r.id="s-ttl",R.id="s-inr",a.id="s-hdr",l.id="s-bl",s.id="s-c-bn",f.id="cs-ov",c.id="s-c-bnc",s.className="c-bn",s.setAttribute("aria-label",t.languages[d].settings_modal.close_btn_label||"Close"),z.setAttribute("role","dialog"),z.setAttribute("aria-modal","true"),z.setAttribute("aria-hidden","true"),z.setAttribute("aria-labelledby","s-ttl"),r.setAttribute("role","heading"),z.style.visibility=f.style.visibility="hidden",f.style.opacity=0,c.appendChild(s),X(n,"keydown",function(e){27===(e=e||window.event).keyCode&&q.hideSettings(0)},!0),X(s,"click",function(){q.hideSettings(0)}),N=t.languages[B.current_lang].settings_modal.blocks,E=t.languages[B.current_lang].settings_modal.cookie_table_headers,s=N.length,r.insertAdjacentHTML("beforeend",t.languages[B.current_lang].settings_modal.title);for(var _=0;_<s;++_){var h,g,y,m,b,v,k,w,O,C=x("div"),j=x("div"),S=x("div"),A=x("div");if(C.className="c-bl",j.className="desc",S.className="p",A.className="title",S.insertAdjacentHTML("beforeend",N[_].description),void 0!==N[_].toggle?(h="c-ac-"+_,g=x("button"),y=x("label"),m=x("input"),b=x("span"),v=x("span"),k=x("span"),w=x("span"),g.className="b-tl",y.className="b-tg",m.className="c-tgl",k.className="on-i",w.className="off-i",b.className="c-tg",v.className="t-lb",g.setAttribute("aria-expanded","false"),g.setAttribute("aria-controls",h),m.type="checkbox",b.setAttribute("aria-hidden","true"),O=N[_].toggle.value,m.value=O,v[p]=N[_].title,g.insertAdjacentHTML("beforeend",N[_].title),A.appendChild(g),b.appendChild(k),b.appendChild(w),e?-1<T(F.level,O)?(m.checked=!0,G.push(!0)):G.push(!1):N[_].toggle.enabled?(m.checked=!0,G.push(!0)):G.push(!1),V.push(O),N[_].toggle.readonly?(m.disabled=!0,Q(b,"c-ro"),$.push(!0)):$.push(!1),Q(j,"b-acc"),Q(A,"b-bn"),Q(C,"b-ex"),j.id=h,j.setAttribute("aria-hidden","true"),y.appendChild(m),y.appendChild(b),y.appendChild(v),A.appendChild(y),function(e,t,n){X(g,"click",function(){te(t,"act")?(ee(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(Q(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))},!1)}(j,C,g)):((h=x("div")).className="b-tl",h.setAttribute("role","heading"),h.setAttribute("aria-level","3"),h.insertAdjacentHTML("beforeend",N[_].title),A.appendChild(h)),C.appendChild(A),j.appendChild(S),!0!==t.remove_cookie_tables&&void 0!==N[_].cookie_table){for(h=document.createDocumentFragment(),y=0;y<E.length;++y)m=x("th"),S=E[y],m.setAttribute("scope","col"),S&&(A=S&&Y(S)[0],m[p]=E[y][A],h.appendChild(m));for((S=x("tr")).appendChild(h),(A=x("thead")).appendChild(S),(h=x("table")).appendChild(A),y=document.createDocumentFragment(),m=0;m<N[_].cookie_table.length;m++){for(b=x("tr"),v=0;v<E.length;++v)(S=E[v])&&(A=Y(S)[0],(k=x("td")).insertAdjacentHTML("beforeend",N[_].cookie_table[m][A]),k.setAttribute("data-column",S[A]),b.appendChild(k));y.appendChild(b)}(S=x("tbody")).appendChild(y),h.appendChild(S),j.appendChild(h)}C.appendChild(j),l.appendChild(C)}e=x("div"),s=x("button"),_=x("button"),e.id="s-bns",s.id="s-sv-bn",_.id="s-all-bn",s.className="c-bn",_.className="c-bn",s.insertAdjacentHTML("beforeend",t.languages[B.current_lang].settings_modal.save_settings_btn),_.insertAdjacentHTML("beforeend",t.languages[B.current_lang].settings_modal.accept_all_btn),e.appendChild(_),(t=t.languages[B.current_lang].settings_modal.reject_all_btn)&&((C=x("button")).id="s-rall-bn",C.className="c-bn",C.insertAdjacentHTML("beforeend",t),X(C,"click",function(){q.hideSettings(),q.hide(),q.accept([])}),R.className="bns-t",e.appendChild(C)),e.appendChild(s),X(s,"click",function(){q.hideSettings(),q.hide(),q.accept()}),X(_,"click",function(){q.hideSettings(),q.hide(),q.accept("all")}),a.appendChild(r),a.appendChild(c),R.appendChild(a),R.appendChild(l),R.appendChild(e),i.appendChild(R),o.appendChild(i),n.appendChild(o),z.appendChild(n),u.appendChild(z),u.appendChild(f),(P||document.body).appendChild(M)}function T(e,t){for(var n=e.length,o=0;o<n;o++)if(e[o]===t)return o;return-1}function x(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t}function c(e,t){function n(e,t,n,o,i,r,a){if(r=r&&r.split(" ")||[],-1<T(t,i)&&(Q(e,i),("bar"!==i||"middle"!==r[0])&&-1<T(n,r[0])))for(t=0;t<r.length;t++)Q(e,r[t]);-1<T(o,a)&&Q(e,a)}var o;"object"==typeof e&&(o=e.consent_modal,e=e.settings_modal,U&&o&&n(L,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],o.layout,o.position,o.transition),!t&&e&&n(z,["bar"],["left","right"],["zoom","slide"],e.layout,e.position,e.transition))}var l,E,N,m,b,t,n,M,L,z,R,D,H,I,B={current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},q={},F={},U=!1,v=!1,u=!1,d=!1,p=!1,J=!0,W=!1,k=null,f=!1,o=[],i=[],G=[],V=[],$=[],K=document.documentElement,Z="";q.allowedCategory=function(e){return-1<T(JSON.parse(C(B.cookie_name,"one",!0)||"{}").level||[],e)},q.run=function(e){var t,n,o,i;!document.getElementById("cc_div")&&(function(e){"number"==typeof e.cookie_expiration&&(B.cookie_expiration=e.cookie_expiration),"boolean"==typeof e.autorun&&(B.autorun=e.autorun),"string"==typeof e.cookie_domain&&(B.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(B.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(B.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(B.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(m=e.onAccept),"function"==typeof e.onChange&&(b=e.onChange),"number"==typeof e.revision&&(-1<e.revision&&(B.revision=e.revision),W=!0),!0===e.autoclear_cookies&&(B.autoclear_cookies=!0),!0===e.use_rfc_cookie&&(B.use_rfc_cookie=!0),!0===e.hide_from_bots&&(f=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),B.page_scripts=!0===e.page_scripts,B.page_scripts_order=!1!==e.page_scripts_order,"browser"===e.auto_language||!0===e.auto_language?B.auto_language="browser":"document"===e.auto_language&&(B.auto_language="document");var t=e.languages;e=e.current_lang,t="browser"===B.auto_language?(e=(e=2<(e=navigator.language||navigator.browserLanguage).length?e[0]+e[1]:e).toLowerCase(),r(e,t)):"document"===B.auto_language?r(document.documentElement.lang,t):"string"==typeof e?B.current_lang=r(e,t):B.current_lang,B.current_lang=t}(e),!f&&(F=JSON.parse(C(B.cookie_name,"one",!0)||"{}"),v=void 0!==F.level,k=void 0!==F.data?F.data:null,J="number"!=typeof e.revision||(!v||(!(-1<e.revision)||F.revision===B.revision)),s(!(U=!v||!J),e),t=e.theme_css,n=function(){a(),c(e.gui_options),function(){for(var e=document.querySelectorAll('a[data-cc="c-settings"], button[data-cc="c-settings"]'),t=0;t<e.length;t++)e[t].setAttribute("aria-haspopup","dialog"),X(e[t],"click",function(e){q.showSettings(0),e.preventDefault?e.preventDefault():e.returnValue=!1})}(),B.autorun&&U&&q.show(e.delay||0),setTimeout(function(){Q(M,"c--anim")},30),setTimeout(function(){var t,n;n=t=!1,X(document,"keydown",function(e){"Tab"===(e=e||window.event).key&&(l&&(e.shiftKey?document.activeElement===l[0]&&(l[1].focus(),e.preventDefault()):document.activeElement===l[1]&&(l[0].focus(),e.preventDefault()),n||p||(n=!0,t||e.preventDefault(),(e.shiftKey?l[3]?l[2]||l[0]:l[1]:l[3]||l[0]).focus())),n||(t=!0))}),document.contains&&X(M,"click",function(e){e=e||window.event,d?p=!!R.contains(e.target)||(q.hideSettings(0),!1):u&&L.contains(e.target)&&(p=!0)},!0)},100)},"string"!=typeof t||""===t||document.getElementById("cc--style")?n():((o=x("style")).id="cc--style",(i=new XMLHttpRequest).onreadystatechange=function(){4===this.readyState&&200===this.status&&(o.setAttribute("type","text/css"),o.styleSheet?o.styleSheet.cssText=this.responseText:o.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(o),n())},i.open("GET",t),i.send()),v&&J))&&("boolean"==typeof F.rfc_cookie&&F.rfc_cookie===B.use_rfc_cookie||(F.rfc_cookie=B.use_rfc_cookie,O(B.cookie_name,JSON.stringify(F))),w(),"function"==typeof e.onAccept&&e.onAccept(F))},q.showSettings=function(e){setTimeout(function(){Q(K,"show--settings"),z.setAttribute("aria-hidden","false"),d=!0,setTimeout(function(){u?n=document.activeElement:t=document.activeElement,0!==i.length&&((i[3]||i[0]).focus(),l=i)},200)},0<e?e:0)};var w=function(){var e,i,a,s;B.page_scripts&&(e=document.querySelectorAll("script["+B.script_selector+"]"),i=B.page_scripts_order,a=F.level||[],(s=function(e,t){if(t<e.length){var r=e[t],n=r.getAttribute(B.script_selector);if(-1<T(a,n)){r.type="text/javascript",r.removeAttribute(B.script_selector);var n=r.getAttribute("data-src"),o=x("script");if(o.textContent=r.innerHTML,function(e,t){for(var n=r.attributes,o=n.length,i=0;i<o;i++)t=n[i],e.setAttribute(t.nodeName,t.nodeValue)}(o),n?o.src=n:n=r.src,n&&(i?o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,s(e,++t))}:o.onload=function(){o.onload=null,s(e,++t)}:n=!1),r.parentNode.replaceChild(o,r),n)return}s(e,++t)}})(e,0))};q.set=function(e,t){switch(e){case"data":e=t.value;var n=!1;if("update"===t.mode)if((t=typeof(k=q.get("data"))==typeof e)&&"object"==typeof k)for(var o in k=k||{},e)k[o]!==e[o]&&(k[o]=e[o],n=!0);else!t&&k||k===e||(k=e,n=!0);else k=e,n=!0;return n&&(F.data=k,O(B.cookie_name,JSON.stringify(F))),n;case"revision":return o=t.value,e=t.prompt_consent,t=t.message,t=!(!M||"number"!=typeof o||F.revision===o)&&(Z=t,J=!(W=!0),B.revision=o,!0===e?(H(D),c(D.gui_options,!0),a(),q.show()):q.accept(),!0);default:return!1}},q.get=function(e,t){return JSON.parse(C(t||B.cookie_name,"one",!0)||"{}")[e]},q.getConfig=function(e){return B[e]},q.loadScript=function(e,t,n){var o="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))o&&t();else{var i=x("script");if(n&&0<n.length)for(var r=0;r<n.length;++r)n[r]&&i.setAttribute(n[r].name,n[r].value);o&&(i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,t())}:i.onload=t),i.src=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}},q.updateScripts=function(){w()},q.show=function(e){U&&setTimeout(function(){Q(K,"show--consent"),L.setAttribute("aria-hidden","false"),u=!0,setTimeout(function(){t=document.activeElement,l=o},200)},0<e?e:0)},q.hide=function(){U&&(ee(K,"show--consent"),L.setAttribute("aria-hidden","true"),u=!1,setTimeout(function(){t.focus(),l=null},200))},q.hideSettings=function(){ee(K,"show--settings"),d=!1,z.setAttribute("aria-hidden","true"),setTimeout(function(){l=u?(n&&n.focus(),o):(t.focus(),null),p=!1},200)},q.accept=function(e,t){var n=t||[];t=[];if(e=e||void 0)if("object"==typeof e&&"number"==typeof e.length)for(var o=0;o<e.length;o++)-1!==T(V,e[o])&&t.push(e[o]);else"string"==typeof e&&("all"===e?t=V.slice():-1!==T(V,e)&&t.push(e));else t=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(1<=n.length)for(o=0;o<n.length;o++)t=t.filter(function(e){return e!==n[o]});for(o=0;o<V.length;o++)!0===$[o]&&-1===T(t,V[o])&&t.push(V[o]);!function(e){var t=[],n=!1;if(0<(r=document.querySelectorAll(".c-tgl")||[]).length){for(var o=0;o<r.length;o++)-1!==T(e,V[o])?(r[o].checked=!0,G[o]||(t.push(V[o]),G[o]=!0)):(r[o].checked=!1,G[o]&&(t.push(V[o]),G[o]=!1));if(B.autoclear_cookies&&v&&0<t.length){var i,r=N.length,o=-1,a=C("","all"),s=[B.cookie_domain,"."+B.cookie_domain];for("www."===B.cookie_domain.slice(0,4)&&(i=B.cookie_domain.substr(4),s.push(i),s.push("."+i)),i=0;i<r;i++){var c=N[i];if(Object.prototype.hasOwnProperty.call(c,"toggle")&&!G[++o]&&Object.prototype.hasOwnProperty.call(c,"cookie_table")&&-1<T(t,c.toggle.value)){var l=c.cookie_table,u=Y(E[0])[0],d=l.length;"on_disable"===c.toggle.reload&&(n=!0);for(var p=0;p<d;p++){var f=[],_=(y=l[p])[u],h=y.is_regex||!1,g=y.domain||null,y=y.path||!1;if(g&&(s=[g,"."+g]),h)for(h=0;h<a.length;h++)a[h].match(_)&&f.push(a[h]);else-1<(_=T(a,_))&&f.push(a[_]);0<f.length&&(j(f,y,s),"on_clear"===c.toggle.reload&&(n=!0))}}}}}if(F={level:e,revision:B.revision,data:k,rfc_cookie:B.use_rfc_cookie},v&&!(0<t.length)&&J||(J=!0,O(B.cookie_name,JSON.stringify(F)),w()),"function"==typeof m&&!v)return v=!0,m(F);"function"==typeof b&&0<t.length&&b(F,t),n&&window.location.reload()}(t)},q.eraseCookies=function(e,t,n){var o=[];if(n=n?[n,"."+n]:[B.cookie_domain,"."+B.cookie_domain],"object"==typeof e&&0<e.length)for(var i=0;i<e.length;i++)this.validCookie(e[i])&&o.push(e[i]);else this.validCookie(e)&&o.push(e);j(o,t,n)};var O=function(e,t){t=B.use_rfc_cookie?encodeURIComponent(t):t;var n=new Date;n.setTime(n.getTime()+864e5*B.cookie_expiration),e=e+"="+(t||"")+(n="; expires="+n.toUTCString())+"; Path="+B.cookie_path+";",e+=" SameSite="+B.cookie_same_site+";",-1<window.location.hostname.indexOf(".")&&(e+=" Domain="+B.cookie_domain+";"),"https:"===window.location.protocol&&(e+=" Secure;"),document.cookie=e},C=function(e,t,n){var o;if("one"===t){if((o=(o=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?o.pop():e:"")&&e===B.cookie_name){try{o=JSON.parse(o)}catch(e){try{o=JSON.parse(decodeURIComponent(o))}catch(e){o={}}}o=JSON.stringify(o)}}else if("all"===t)for(e=document.cookie.split(/;\s*/),o=[],t=0;t<e.length;t++)o.push(e[t].split("=")[0]);return o},j=function(e,t,n){t=t||"/";for(var o=0;o<e.length;o++)for(var i=0;i<n.length;i++)document.cookie=e[o]+"=; path="+t+(-1<n[i].indexOf(".")?"; domain="+n[i]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};q.validCookie=function(e){return""!==C(e,"one",!0)};var X=function(e,t,n,o){e.addEventListener?!0===o?e.addEventListener(t,n,{passive:!0}):e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},Y=function(e){if("object"==typeof e){var t=[],n=0;for(t[n++]in e);return t}},Q=function(e,t){e.classList?e.classList.add(t):te(e,t)||(e.className+=" "+t)},ee=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ")},te=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))};return q})},470:(e,t,n)=>{var o={"./cs.js":216,"./en.js":302};function i(e){e=r(e);return n(e)}function r(e){if(n.o(o,e))return o[e];e=new Error("Cannot find module '"+e+"'");throw e.code="MODULE_NOT_FOUND",e}i.keys=function(){return Object.keys(o)},i.resolve=r,(e.exports=i).id=470}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;t=o[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var e=i(10);CookieConsentWrapper=e})();
var CookieConsentWrapper;(()=>{var n={10:(e,t,n)=>{"use strict";const o=n(336);e.exports=function(){const e=new o;return e.create()}()},868:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"merge",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}}])&&i(t.prototype,n),o&&i(t,o),e}()},2:(e,t,n)=>{"use strict";function r(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function i(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){var t,n;t=o,e=i[n=e],n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=n(406),c=n(76),l=n(990),n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pluginOptions=new s,this.consentModalOptions=new c,this.settingsModalOptions=new c,this.uiOptions=new l,this.consentModalOptions.merge({layout:"box",position:"bottom center"}),this.settingsModalOptions.merge({layout:"box"})}var t,n,o;return t=e,(n=[{key:"buildCookieConsentConfig",value:function(){return i(i({},this.pluginOptions),{},{gui_options:{consent_modal:i({},this.consentModalOptions),settings_modal:i({},this.settingsModalOptions)}})}}])&&a(t.prototype,n),o&&a(t,o),e}();e.exports=n},76:(e,t,o)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,o?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(n,o(868));var t=a(n);function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=t.call(this)).layout=void 0,e.position=void 0,e.transition="zoom",e}return n}();e.exports=n},406:(e,t,o)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,o?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(n,o(868));var t=a(n);function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=t.call(this)).autorun=!0,e.delay=0,e.cookie_name="cc-settings",e.cookie_expiration=182,e.cookie_path="/",e.cookie_domain=window.location.hostname,e.cookie_same_site="Lax",e.use_rfc_cookie=!1,e.force_consent=!1,e.revision=0,e.current_lang="en",e.auto_language="document",e.autoclear_cookies=!1,e.page_scripts=!1,e.script_selector="data-cookiecategory",e.remove_cookie_tables=!1,e.hide_from_bots=!1,e}return n}();e.exports=n},990:(e,t,r)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,o?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(i,r(868));var e,t,n,o=c(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).include_default_stylesheets=!0,e.external_stylesheets=[],e.internal_stylesheets=[],e.modal_trigger_selector=null,e}return e=i,(t=[{key:"defaultStylesheets",get:function(){return!0===this.include_default_stylesheets?["https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.0/dist/cookieconsent.css"]:[]}}])&&a(e.prototype,t),n&&a(e,n),i}();e.exports=n},857:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function o(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._cookieConsent=e,this._storagePool=t,this._gtag=n}var e,t,n;return e=o,(t=[{key:"onAccept",value:function(){this._updateConsent()}},{key:"onChange",value:function(){this._updateConsent()}},{key:"_updateConsent",value:function(){var e,t,n,o=this._storagePool.all(),i={},r=[];for(e in o)o.hasOwnProperty(e)&&(n=null!==(t=o[e]).syncConsentWith?t.syncConsentWith:t.name,n=this._cookieConsent.allowedCategory(n)?"granted":"denied","granted"!=(i[t.name]=n)||null===t.eventTrigger||t.eventTrigger.invoked||r.push(t.eventTrigger));this._gtag("consent","update",i);var a,s,c=[];for(a in r)r.hasOwnProperty(a)&&(s=r[a],-1===c.indexOf(s.name)&&(this._gtag("event",s.name,{}),c.push(s.name)),s.invoked=!0)}}])&&i(e.prototype,t),n&&i(e,n),o}()},229:(e,t,i)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}i(686);var a=i(2),s=i(903),c=i(914),l=i(857),u=i(619),d=i(683),p=i(217),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._initialized=!1,this._gtag=e,this._config=new a,this._storagePool=new c,this._dictionary=new u,this._cookieConsent=null}var e,n,o;return e=t,(n=[{key:"setPluginOptions",value:function(e){this._config.pluginOptions.merge(e||{})}},{key:"setConsentModalOptions",value:function(e){this._config.consentModalOptions.merge(e||{})}},{key:"setSettingsModalOptions",value:function(e){this._config.settingsModalOptions.merge(e||{})}},{key:"setUiOptions",value:function(e){this._config.uiOptions.merge(e||{})}},{key:"addStorage",value:function(e){this._storagePool.add(new s(e||{}))}},{key:"addTranslations",value:function(e,t){this._dictionary.addTranslations(e,t||{})}},{key:"loadTranslations",value:function(e){var t;try{t=i(598)("./".concat(e))}catch(e){t={}}this.addTranslations(e,t)}},{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:"init",value:function(e,t){var n,o;this._initialized||(n=this,t&&(o=function(){d.loadFromConfig(t,n._config.uiOptions),t&&"string"==typeof n._config.uiOptions.modal_trigger_selector&&new p(t,n._dictionary).create(n._config.uiOptions.modal_trigger_selector,t.documentElement.lang)},"loading"!==t.readyState?o():t.addEventListener("DOMContentLoaded",o)),e.addEventListener("load",function(){n._cookieConsent=initCookieConsent();var e=new l(n._cookieConsent,n._storagePool,n._gtag),t=n._config.buildCookieConsentConfig();t.onAccept=function(){return e.onAccept()},t.onChange=function(){return e.onChange()},t.languages=n._dictionary.build(n._storagePool),n._cookieConsent.run(t)}),this._initialized=!0)}}])&&r(e.prototype,n),o&&r(e,o),t}();e.exports=n},336:(e,t,n)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=n(229);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"create",value:function(){if(void 0===window)throw new Error("the window is not accessible.");var e=new a(this._createGtagFunction());return this._setupPluginOptions(e),this._setupConsentModalOptions(e),this._setupSettingsModalOptions(e),this._setupUiOptions(e),this._setupStoragePool(e),this._setupLocales(e),this._setupTranslations(e),e.init(window,document),e}},{key:"_createGtagFunction",value:function(){var e=window.gtag;return e||(window.dataLayer=window.dataLayer||[],e=function(){dataLayer.push(arguments)}),e}},{key:"_setupPluginOptions",value:function(e){window.cc_plugin_options&&"object"===i(window.cc_plugin_options)&&e.setPluginOptions(window.cc_plugin_options)}},{key:"_setupConsentModalOptions",value:function(e){window.cc_consent_modal_options&&"object"===i(window.cc_consent_modal_options)&&e.setConsentModalOptions(window.cc_consent_modal_options)}},{key:"_setupSettingsModalOptions",value:function(e){window.cc_settings_modal_options&&"object"===i(window.cc_settings_modal_options)&&e.setSettingsModalOptions(window.cc_settings_modal_options)}},{key:"_setupUiOptions",value:function(e){window.cc_ui_options&&"object"===i(window.cc_ui_options)&&e.setUiOptions(window.cc_ui_options)}},{key:"_setupStoragePool",value:function(e){if(window.cc_storage_pool&&Array.isArray(window.cc_storage_pool)){var t,n=window.cc_storage_pool;for(t in n)n.hasOwnProperty(t)&&e.addStorage(n[t]||{})}}},{key:"_setupLocales",value:function(e){if(window.cc_locales&&Array.isArray(window.cc_locales)){var t,n=window.cc_locales;for(t in n)n.hasOwnProperty(t)&&e.loadTranslations(n[t])}}},{key:"_setupTranslations",value:function(e){if(window.cc_translations&&"object"===i(window.cc_translations)){var t,n=window.cc_translations;for(t in n)n.hasOwnProperty(t)&&e.addTranslations(t,n[t]||{})}}}])&&r(t.prototype,n),o&&r(t,o),e}()},745:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._name=e,this.invoked=t}var e,t,o;return e=n,(t=[{key:"name",get:function(){return this._name}}])&&i(e.prototype,t),o&&i(e,o),n}()},903:(e,t,n)=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=n(196),a=n(745),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._config=new r(e),this._eventTrigger="string"==typeof this._config.event_trigger?new a(this._config.event_trigger,this._config.event_trigger_invoked):null}var e,n,o;return e=t,(n=[{key:"name",get:function(){return this._config.name}},{key:"enabledByDefault",get:function(){return this._config.enabled_by_default}},{key:"displayInWidget",get:function(){return this._config.display_in_widget}},{key:"readonly",get:function(){return this._config.readonly}},{key:"syncConsentWith",get:function(){return this._config.sync_consent_with}},{key:"eventTrigger",get:function(){return this._eventTrigger}}])&&i(e.prototype,n),o&&i(e,o),t}();e.exports=n},196:e=>{"use strict";e.exports=function e(t){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t.hasOwnProperty("name")||""===t.name)throw new Error('Missing required property "name".');this.name=t.name,this.enabled_by_default=t.enabled_by_default||!1,this.display_in_widget=t.display_in_widget||!1,this.readonly=t.readonly||!1,this.sync_consent_with=t.sync_consent_with||null,this.event_trigger=t.event_trigger||null,this.event_trigger_invoked=t.event_trigger_invoked||!1}},914:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._items=[]}var t,n,o;return t=e,(n=[{key:"add",value:function(e){this._items[e.name]=e}},{key:"has",value:function(e){return this._items.hasOwnProperty(e)}},{key:"get",value:function(e){if(!this.has(e))throw new Error('Missing storage "'.concat(e,'".'));return this._items[e]}},{key:"all",value:function(){return this._items}}])&&i(t.prototype,n),o&&i(t,o),e}()},106:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._locale=e,this.modal_trigger_title="",this.consent_modal_title="",this.consent_modal_description="",this.consent_modal_revision_message="",this.consent_modal_primary_btn="",this.consent_modal_secondary_btn="",this.settings_modal_title="",this.settings_modal_save_settings_btn="",this.settings_modal_accept_all_btn="",this.settings_modal_reject_all_btn="",this.settings_modal_close_btn_label="",this.settings_modal_before_consent_title="",this.settings_modal_before_consent_description="",this.settings_modal_after_consent_title="",this.settings_modal_after_consent_description="",this.functionality_storage_title="",this.functionality_storage_description="",this.personalization_storage_title="",this.personalization_storage_description="",this.security_storage_title="",this.security_storage_description="",this.ad_storage_title="",this.ad_storage_description="",this.analytics_storage_title="",this.analytics_storage_description=""}var e,n,o;return e=t,(n=[{key:"locale",get:function(){return this._locale}},{key:"translate",value:function(e){return this.hasOwnProperty(e)?this[e]:e}},{key:"merge",value:function(e){for(var t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}},{key:"build",value:function(e){var t=[];""===this.settings_modal_before_consent_title&&""===this.settings_modal_before_consent_description||t.push({title:this.settings_modal_before_consent_title,description:this.settings_modal_before_consent_description});var n,o,i=e.all();for(o in i)i.hasOwnProperty(o)&&(n=i[o]).displayInWidget&&this.hasOwnProperty(n.name+"_title")&&t.push({title:this[n.name+"_title"],description:this[n.name+"_description"],toggle:{value:n.name,enabled:n.enabledByDefault,readonly:n.readonly}});return""===this.settings_modal_after_consent_title&&""===this.settings_modal_after_consent_description||t.push({title:this.settings_modal_after_consent_title,description:this.settings_modal_after_consent_description}),{consent_modal:{title:this.consent_modal_title,description:this.consent_modal_description,primary_btn:{text:this.consent_modal_primary_btn,role:"accept_all"},secondary_btn:{text:this.consent_modal_secondary_btn,role:"settings"}},settings_modal:{title:this.settings_modal_title,save_settings_btn:this.settings_modal_save_settings_btn,accept_all_btn:this.settings_modal_accept_all_btn,reject_all_btn:this.settings_modal_reject_all_btn,close_btn_label:this.settings_modal_close_btn_label,blocks:t}}}}])&&i(e.prototype,n),o&&i(e,o),t}()},619:(e,t,n)=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=n(106);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._catalogues={}}var t,n,o;return t=e,(n=[{key:"addTranslations",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this._catalogues.hasOwnProperty(e)?t=this._catalogues[e]:(t=new r(e),this._catalogues[e]=t),t.merge(n)}},{key:"translate",value:function(e,t){return this._catalogues.hasOwnProperty(e)?this._catalogues[e].translate(t):t}},{key:"build",value:function(e){var t,n,o={};for(t in this._catalogues)this._catalogues.hasOwnProperty(t)&&(o[(n=this._catalogues[t]).locale]=n.build(e));return o}}])&&i(t.prototype,n),o&&i(t,o),e}()},217:e=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._document=e,this._dictionary=t}var e,t,o;return e=n,(t=[{key:"create",value:function(e,t){var n,o,i=this._document.querySelectorAll(e),r=i.length?i[i.length-1]:void 0;r?((i="A"===(n=r.cloneNode(!0)).nodeName?n:n.getElementsByTagName("a")[0]||void 0)||(i=this._document.createElement("a"),(o=(o=n.querySelectorAll("*")).length?o[o.length-1]:n).innerHTML="",o.appendChild(i)),((o=i.querySelectorAll("*")).length?o[o.length-1]:i).innerHTML=this._dictionary.translate(t,"modal_trigger_title"),i.setAttribute("data-cc","c-settings"),i.setAttribute("href","#cookie-settings"),r.parentNode.appendChild(n)):console.log("HTML element with selector ".concat(e," not found."))}}])&&i(e.prototype,t),o&&i(e,o),n}()},683:e=>{"use strict";function s(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this._document=e}var e,t,n;return e=a,n=[{key:"loadFromConfig",value:function(e,t){var n,o=new a(e),i=t.internal_stylesheets,r=t.defaultStylesheets;for(n in r=[].concat(s(r),s(t.external_stylesheets)))r.hasOwnProperty(n)&&o.loadExternal(r[n]);for(n in i)i.hasOwnProperty(n)&&o.loadInternal(i[n])}}],(t=[{key:"loadExternal",value:function(e){var t=this._document.createElement("link");t.rel="stylesheet",t.href=e,this._appendStylesheet(t)}},{key:"loadInternal",value:function(e){var t=this._document.createElement("style");t.innerText=e.replace(/\s/g,""),this._appendStylesheet(t)}},{key:"_appendStylesheet",value:function(e){this._document.getElementsByTagName("head")[0].appendChild(e)}}])&&i(e.prototype,t),n&&i(e,n),a}()},686:()=>{"function"!=typeof window.initCookieConsent&&(window.initCookieConsent=function(L){function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:0<ie(t).length?Object.prototype.hasOwnProperty.call(t,G.current_lang)?G.current_lang:ie(t)[0]:void 0}function a(){function e(t,e){var n=!1,o=!1;try{for(var i,r=t.querySelectorAll(c.join(':not([tabindex="-1"]), ')),a=r.length,s=0;s<a;)i=r[s].getAttribute("data-focus"),o||"1"!==i?"0"===i&&(n=r[s],o||"0"===r[s+1].getAttribute("data-focus")||(o=r[s+1])):o=r[s],s++}catch(e){return t.querySelectorAll(c.join(", "))}e[0]=r[0],e[1]=r[r.length-1],e[2]=n,e[3]=o}var c=["[href]","button","input","details",'[tabindex="0"]'];e(F,g),K&&e(B,o)}function s(e,t){(I=R("div")).id="cc--main",I.style.position="fixed",I.style.zIndex="1000000",I.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e';var d=I.children[0],p=G.current_lang,f="string"==typeof te.textContent?"textContent":"innerText";U=t,J=function(e){!0===e.force_consent&&re(te,"force--consent");var t,n,o,i,r,a,s,c,l,u=e.languages[p].consent_modal.description;X&&(u=Z?u.replace("{{revision_message}}",""):u.replace("{{revision_message}}",ne||e.languages[p].consent_modal.revision_message||"")),B?W.innerHTML=u:(B=R("div"),t=R("div"),n=R("div"),W=R("div"),o=R("div"),i=R("div"),B.id="cm",t.id="c-inr",n.id="c-inr-i",W.id="c-txt",o.id="c-bns",i.id="cm-ov",B.setAttribute("role","dialog"),B.setAttribute("aria-modal","true"),B.setAttribute("aria-hidden","false"),B.setAttribute("aria-labelledby","c-ttl"),B.setAttribute("aria-describedby","c-txt"),B.style.visibility=i.style.visibility="hidden",i.style.opacity=0,(r=e.languages[p].consent_modal.title)&&((a=R("div")).id="c-ttl",a.setAttribute("role","heading"),a.setAttribute("aria-level","2"),a.insertAdjacentHTML("beforeend",r),n.appendChild(a)),W.insertAdjacentHTML("beforeend",u),n.appendChild(W),u=e.languages[p].consent_modal.primary_btn,r=e.languages[p].consent_modal.secondary_btn,u&&((s=R("button")).id="c-p-bn",s.className="c-bn",s[f]=e.languages[p].consent_modal.primary_btn.text,"accept_all"===u.role&&(c="all"),oe(s,"click",function(){V.hide(),V.accept(c)})),r&&((l=R("button")).id="c-s-bn",l.className="c-bn c_link",l[f]=e.languages[p].consent_modal.secondary_btn.text,"accept_necessary"===r.role?oe(l,"click",function(){V.hide(),V.accept([])}):oe(l,"click",function(){V.showSettings(0)})),(e=e.gui_options)&&e.consent_modal&&!0===e.consent_modal.swap_buttons?(r&&o.appendChild(l),u&&o.appendChild(s),o.className="swap"):(u&&o.appendChild(s),r&&o.appendChild(l)),t.appendChild(n),(u||r)&&t.appendChild(o),B.appendChild(t),d.appendChild(B),d.appendChild(i),K=!0)},e||J(t),q=R("div");var n=R("div"),o=R("div"),i=R("div");F=R("div");var r=R("div"),a=R("div"),s=R("button"),c=R("div"),l=R("div"),u=R("div");q.id="s-cnt",n.id="c-vln",i.id="c-s-in",o.id="cs",r.id="s-ttl",F.id="s-inr",a.id="s-hdr",l.id="s-bl",s.id="s-c-bn",u.id="cs-ov",c.id="s-c-bnc",s.className="c-bn",s.setAttribute("aria-label",t.languages[p].settings_modal.close_btn_label||"Close"),q.setAttribute("role","dialog"),q.setAttribute("aria-modal","true"),q.setAttribute("aria-hidden","true"),q.setAttribute("aria-labelledby","s-ttl"),r.setAttribute("role","heading"),q.style.visibility=u.style.visibility="hidden",u.style.opacity=0,c.appendChild(s),oe(n,"keydown",function(e){27===(e=e||window.event).keyCode&&V.hideSettings(0)},!0),oe(s,"click",function(){V.hideSettings(0)}),H=t.languages[G.current_lang].settings_modal.blocks,D=t.languages[G.current_lang].settings_modal.cookie_table_headers,s=H.length,r.insertAdjacentHTML("beforeend",t.languages[G.current_lang].settings_modal.title);for(var _=0;_<s;++_){var h,g=H[_].title,y=H[_].description,m=H[_].toggle,b=H[_].cookie_table,v=!0===t.remove_cookie_tables,k=(y||!v&&b)&&"truthy",w=R("div"),O=R("div");y&&((h=R("div")).className="p",h.insertAdjacentHTML("beforeend",y));var C,S,j,A,P,x,T,E,N,M=R("div");if(M.className="title",w.className="c-bl",O.className="desc",g&&void 0!==m?(C="c-ac-"+_,S=R(k?"button":"div"),j=R("label"),A=R("input"),P=R("span"),x=R("span"),T=R("span"),E=R("span"),S.className=k?"b-tl exp":"b-tl",j.className="b-tg",A.className="c-tgl",T.className="on-i",E.className="off-i",P.className="c-tg",x.className="t-lb",k&&(S.setAttribute("aria-expanded","false"),S.setAttribute("aria-controls",C)),A.type="checkbox",P.setAttribute("aria-hidden","true"),N=m.value,A.value=N,x[f]=g,S.insertAdjacentHTML("beforeend",g),M.appendChild(S),P.appendChild(T),P.appendChild(E),e?-1<z($.level,N)?(A.checked=!0,Y.push(!0)):Y.push(!1):m.enabled?(A.checked=!0,Y.push(!0)):Y.push(!1),Q.push(N),m.readonly?(A.disabled=!0,re(P,"c-ro"),ee.push(!0)):ee.push(!1),re(O,"b-acc"),re(M,"b-bn"),re(w,"b-ex"),O.id=C,O.setAttribute("aria-hidden","true"),j.appendChild(A),j.appendChild(P),j.appendChild(x),M.appendChild(j),k&&function(e,t,n){oe(S,"click",function(){se(t,"act")?(ae(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(re(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))},!1)}(O,w,S)):g&&((k=R("div")).className="b-tl",k.setAttribute("role","heading"),k.setAttribute("aria-level","3"),k.insertAdjacentHTML("beforeend",g),M.appendChild(k)),g&&w.appendChild(M),y&&O.appendChild(h),!v&&void 0!==b){for(k=document.createDocumentFragment(),C=0;C<D.length;++C)j=R("th"),v=D[C],j.setAttribute("scope","col"),v&&(M=v&&ie(v)[0],j[f]=D[C][M],k.appendChild(j));for((v=R("tr")).appendChild(k),(M=R("thead")).appendChild(v),(k=R("table")).appendChild(M),C=document.createDocumentFragment(),j=0;j<b.length;j++){for(A=R("tr"),P=0;P<D.length;++P)(v=D[P])&&(M=ie(v)[0],(x=R("td")).insertAdjacentHTML("beforeend",b[j][M]),x.setAttribute("data-column",v[M]),A.appendChild(x));C.appendChild(A)}(b=R("tbody")).appendChild(C),k.appendChild(b),O.appendChild(k)}(m&&g||!m&&(g||y))&&(w.appendChild(O),l.appendChild(w))}e=R("div"),h=R("button"),s=R("button"),e.id="s-bns",h.id="s-sv-bn",s.id="s-all-bn",h.className="c-bn",s.className="c-bn",h.insertAdjacentHTML("beforeend",t.languages[G.current_lang].settings_modal.save_settings_btn),s.insertAdjacentHTML("beforeend",t.languages[G.current_lang].settings_modal.accept_all_btn),e.appendChild(s),(t=t.languages[G.current_lang].settings_modal.reject_all_btn)&&((_=R("button")).id="s-rall-bn",_.className="c-bn",_.insertAdjacentHTML("beforeend",t),oe(_,"click",function(){V.hideSettings(),V.hide(),V.accept([])}),F.className="bns-t",e.appendChild(_)),e.appendChild(h),oe(h,"click",function(){V.hideSettings(),V.hide(),V.accept()}),oe(s,"click",function(){V.hideSettings(),V.hide(),V.accept("all")}),a.appendChild(r),a.appendChild(c),F.appendChild(a),F.appendChild(l),F.appendChild(e),i.appendChild(F),o.appendChild(i),n.appendChild(o),q.appendChild(n),d.appendChild(q),d.appendChild(u),(L||document.body).appendChild(I)}function z(e,t){for(var n=e.length,o=0;o<n;o++)if(e[o]===t)return o;return-1}function R(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t}function c(e,t){function n(e,t,n,o,i,r,a){if(r=r&&r.split(" ")||[],-1<z(t,i)&&(re(e,i),("bar"!==i||"middle"!==r[0])&&-1<z(n,r[0])))for(t=0;t<r.length;t++)re(e,r[t]);-1<z(o,a)&&re(e,a)}var o;"object"==typeof e&&(o=e.consent_modal,e=e.settings_modal,K&&o&&n(B,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],o.layout,o.position,o.transition),!t&&e&&n(q,["bar"],["left","right"],["zoom","slide"],e.layout,e.position,e.transition))}var l,D,H,m,b,v,i,t,n,I,B,q,F,U,J,W,G={current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},V={},$={},K=!1,k=!1,u=!1,d=!1,p=!1,Z=!0,X=!1,w=null,f=[],_=[],h=!1,o=[],g=[],Y=[],Q=[],ee=[],te=document.documentElement,ne="";V.allowedCategory=function(e){return-1<z(JSON.parse(S(G.cookie_name,"one",!0)||"{}").level||[],e)},V.run=function(e){var t,n,o,i;!document.getElementById("cc_div")&&(function(e){"number"==typeof e.cookie_expiration&&(G.cookie_expiration=e.cookie_expiration),"number"==typeof e.cookie_necessary_only_expiration&&(G.cookie_necessary_only_expiration=e.cookie_necessary_only_expiration),"boolean"==typeof e.autorun&&(G.autorun=e.autorun),"string"==typeof e.cookie_domain&&(G.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(G.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(G.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(G.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(m=e.onAccept),"function"==typeof e.onFirstAction&&(v=e.onFirstAction),"function"==typeof e.onChange&&(b=e.onChange),"number"==typeof e.revision&&(-1<e.revision&&(G.revision=e.revision),X=!0),!0===e.autoclear_cookies&&(G.autoclear_cookies=!0),!0===e.use_rfc_cookie&&(G.use_rfc_cookie=!0),!0===e.hide_from_bots&&(h=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),G.page_scripts=!0===e.page_scripts,G.page_scripts_order=!1!==e.page_scripts_order,"browser"===e.auto_language||!0===e.auto_language?G.auto_language="browser":"document"===e.auto_language&&(G.auto_language="document");var t=e.languages;e=e.current_lang,t="browser"===G.auto_language?(e=(e=2<(e=navigator.language||navigator.browserLanguage).length?e[0]+e[1]:e).toLowerCase(),r(e,t)):"document"===G.auto_language?r(document.documentElement.lang,t):"string"==typeof e?G.current_lang=r(e,t):G.current_lang,G.current_lang=t}(e),!h&&($=JSON.parse(S(G.cookie_name,"one",!0)||"{}"),k=void 0!==$.level,w=void 0!==$.data?$.data:null,Z="number"!=typeof e.revision||(!k||(!(-1<e.revision)||$.revision===G.revision)),s(!(K=!k||!Z),e),t=e.theme_css,n=function(){a(),c(e.gui_options),function(){for(var e=document.querySelectorAll('a[data-cc="c-settings"], button[data-cc="c-settings"]'),t=0;t<e.length;t++)e[t].setAttribute("aria-haspopup","dialog"),oe(e[t],"click",function(e){V.showSettings(0),e.preventDefault?e.preventDefault():e.returnValue=!1})}(),G.autorun&&K&&V.show(e.delay||0),setTimeout(function(){re(I,"c--anim")},30),setTimeout(function(){var t,n;n=t=!1,oe(document,"keydown",function(e){"Tab"===(e=e||window.event).key&&(l&&(e.shiftKey?document.activeElement===l[0]&&(l[1].focus(),e.preventDefault()):document.activeElement===l[1]&&(l[0].focus(),e.preventDefault()),n||p||(n=!0,t||e.preventDefault(),(e.shiftKey?l[3]?l[2]||l[0]:l[1]:l[3]||l[0]).focus())),n||(t=!0))}),document.contains&&oe(I,"click",function(e){e=e||window.event,d?p=!!F.contains(e.target)||(V.hideSettings(0),!1):u&&B.contains(e.target)&&(p=!0)},!0)},100)},"string"!=typeof t||""===t||document.getElementById("cc--style")?n():((o=R("style")).id="cc--style",(i=new XMLHttpRequest).onreadystatechange=function(){4===this.readyState&&200===this.status&&(o.setAttribute("type","text/css"),o.styleSheet?o.styleSheet.cssText=this.responseText:o.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(o),n())},i.open("GET",t),i.send()),k&&Z))&&("boolean"==typeof $.rfc_cookie&&$.rfc_cookie===G.use_rfc_cookie||($.rfc_cookie=G.use_rfc_cookie,C(G.cookie_name,JSON.stringify($))),O(),"function"==typeof e.onAccept&&e.onAccept($))},V.showSettings=function(e){setTimeout(function(){re(te,"show--settings"),q.setAttribute("aria-hidden","false"),d=!0,setTimeout(function(){u?n=document.activeElement:t=document.activeElement,0!==g.length&&((g[3]||g[0]).focus(),l=g)},200)},0<e?e:0)};var O=function(){var e,i,a,s;G.page_scripts&&(e=document.querySelectorAll("script["+G.script_selector+"]"),i=G.page_scripts_order,a=$.level||[],(s=function(e,t){if(t<e.length){var r=e[t],n=r.getAttribute(G.script_selector);if(-1<z(a,n)){r.type="text/javascript",r.removeAttribute(G.script_selector);var n=r.getAttribute("data-src"),o=R("script");if(o.textContent=r.innerHTML,function(e,t){for(var n=r.attributes,o=n.length,i=0;i<o;i++)t=n[i],e.setAttribute(t.nodeName,t.nodeValue)}(o),n?o.src=n:n=r.src,n&&(i?o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,s(e,++t))}:o.onload=function(){o.onload=null,s(e,++t)}:n=!1),r.parentNode.replaceChild(o,r),n)return}s(e,++t)}})(e,0))};V.set=function(e,t){switch(e){case"data":e=t.value;var n=!1;if("update"===t.mode)if((t=typeof(w=V.get("data"))==typeof e)&&"object"==typeof w)for(var o in w=w||{},e)w[o]!==e[o]&&(w[o]=e[o],n=!0);else!t&&w||w===e||(w=e,n=!0);else w=e,n=!0;return n&&($.data=w,C(G.cookie_name,JSON.stringify($))),n;case"revision":return o=t.value,e=t.prompt_consent,t=t.message,t=!(!I||"number"!=typeof o||$.revision===o)&&(ne=t,Z=!(X=!0),G.revision=o,!0===e?(J(U),c(U.gui_options,!0),a(),V.show()):V.accept(),!0);default:return!1}},V.get=function(e,t){return JSON.parse(S(t||G.cookie_name,"one",!0)||"{}")[e]},V.getConfig=function(e){return G[e]},V.getUserPreferences=function(){return{accept_type:i,accepted_categories:f,rejected_categories:_}},V.loadScript=function(e,t,n){var o="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))o&&t();else{var i=R("script");if(n&&0<n.length)for(var r=0;r<n.length;++r)n[r]&&i.setAttribute(n[r].name,n[r].value);o&&(i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,t())}:i.onload=t),i.src=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}},V.updateScripts=function(){O()},V.show=function(e){K&&setTimeout(function(){re(te,"show--consent"),B.setAttribute("aria-hidden","false"),u=!0,setTimeout(function(){t=document.activeElement,l=o},200)},0<e?e:0)},V.hide=function(){K&&(ae(te,"show--consent"),B.setAttribute("aria-hidden","true"),u=!1,setTimeout(function(){t.focus(),l=null},200))},V.hideSettings=function(){ae(te,"show--settings"),d=!1,q.setAttribute("aria-hidden","true"),setTimeout(function(){l=u?(n&&n.focus(),o):(t.focus(),null),p=!1},200)},V.accept=function(e,t){var n=t||[];t=[];if(e=e||void 0)if("object"==typeof e&&"number"==typeof e.length)for(var o=0;o<e.length;o++)-1!==z(Q,e[o])&&t.push(e[o]);else"string"==typeof e&&("all"===e?t=Q.slice():-1!==z(Q,e)&&t.push(e));else t=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(1<=n.length)for(o=0;o<n.length;o++)t=t.filter(function(e){return e!==n[o]});for(o=0;o<Q.length;o++)!0===ee[o]&&-1===z(t,Q[o])&&t.push(Q[o]);f=t,e=ee.filter(function(e){return!0===e}).length,_=Q.filter(function(e){return-1===z(f,e)}),i=f.length===Q.length?"all":0<=_.length&&f.length===e?"necessary":"custom",function(e){var t=[],n=!1;if(0<(r=document.querySelectorAll(".c-tgl")||[]).length){for(var o=0;o<r.length;o++)-1!==z(e,Q[o])?(r[o].checked=!0,Y[o]||(t.push(Q[o]),Y[o]=!0)):(r[o].checked=!1,Y[o]&&(t.push(Q[o]),Y[o]=!1));if(G.autoclear_cookies&&k&&0<t.length){var i,r=H.length,o=-1,a=S("","all"),s=[G.cookie_domain,"."+G.cookie_domain];for("www."===G.cookie_domain.slice(0,4)&&(i=G.cookie_domain.substr(4),s.push(i),s.push("."+i)),i=0;i<r;i++){var c=H[i];if(Object.prototype.hasOwnProperty.call(c,"toggle")&&!Y[++o]&&Object.prototype.hasOwnProperty.call(c,"cookie_table")&&-1<z(t,c.toggle.value)){var l=c.cookie_table,u=ie(D[0])[0],d=l.length;"on_disable"===c.toggle.reload&&(n=!0);for(var p=0;p<d;p++){var f=[],_=(y=l[p])[u],h=y.is_regex||!1,g=y.domain||null,y=y.path||!1;if(g&&(s=[g,"."+g]),h)for(h=0;h<a.length;h++)a[h].match(_)&&f.push(a[h]);else-1<(_=z(a,_))&&f.push(a[_]);0<f.length&&(j(f,y,s),"on_clear"===c.toggle.reload&&(n=!0))}}}}}$={level:e,revision:G.revision,data:w,rfc_cookie:G.use_rfc_cookie},k&&!(0<t.length)&&Z||(Z=!0,C(G.cookie_name,JSON.stringify($)),O()),k?("function"==typeof b&&0<t.length&&b($,t),n&&window.location.reload()):("function"==typeof v&&v(V.getUserPreferences()),"function"==typeof m&&m($),k=!0)}(t)},V.eraseCookies=function(e,t,n){var o=[];if(n=n?[n,"."+n]:[G.cookie_domain,"."+G.cookie_domain],"object"==typeof e&&0<e.length)for(var i=0;i<e.length;i++)this.validCookie(e[i])&&o.push(e[i]);else this.validCookie(e)&&o.push(e);j(o,t,n)};var C=function(e,t){var n=G.cookie_expiration;"number"==typeof G.cookie_necessary_only_expiration&&"necessary"===i&&(n=G.cookie_necessary_only_expiration),t=G.use_rfc_cookie?encodeURIComponent(t):t;var o=new Date;o.setTime(o.getTime()+864e5*n),e=e+"="+(t||"")+(n="; expires="+o.toUTCString())+"; Path="+G.cookie_path+";",e+=" SameSite="+G.cookie_same_site+";",-1<window.location.hostname.indexOf(".")&&(e+=" Domain="+G.cookie_domain+";"),"https:"===window.location.protocol&&(e+=" Secure;"),document.cookie=e},S=function(e,t,n){var o;if("one"===t){if((o=(o=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?o.pop():e:"")&&e===G.cookie_name){try{o=JSON.parse(o)}catch(e){try{o=JSON.parse(decodeURIComponent(o))}catch(e){o={}}}o=JSON.stringify(o)}}else if("all"===t)for(e=document.cookie.split(/;\s*/),o=[],t=0;t<e.length;t++)o.push(e[t].split("=")[0]);return o},j=function(e,t,n){t=t||"/";for(var o=0;o<e.length;o++)for(var i=0;i<n.length;i++)document.cookie=e[o]+"=; path="+t+(-1<n[i].indexOf(".")?"; domain="+n[i]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};V.validCookie=function(e){return""!==S(e,"one",!0)};var oe=function(e,t,n,o){e.addEventListener?!0===o?e.addEventListener(t,n,{passive:!0}):e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},ie=function(e){if("object"==typeof e){var t=[],n=0;for(t[n++]in e);return t}},re=function(e,t){e.classList?e.classList.add(t):se(e,t)||(e.className+=" "+t)},ae=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ")},se=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))};return V})},598:(e,t,n)=>{var o={"./cs":247,"./cs.json":247,"./en":453,"./en.json":453};function i(e){e=r(e);return n(e)}function r(e){if(n.o(o,e))return o[e];e=new Error("Cannot find module '"+e+"'");throw e.code="MODULE_NOT_FOUND",e}i.keys=function(){return Object.keys(o)},i.resolve=r,(e.exports=i).id=598},247:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Nastavení cookies","consent_modal_title":"🍪 Používáme cookies!","consent_modal_description":"Na našich webových stránkách používáme soubory cookies. Některé z nich jsou nezbytné, zatímco jiné nám pomáhají vylepšít tento web a váš uživatelský zážitek.","consent_modal_primary_btn":"Souhlasím a pokračovat","consent_modal_secondary_btn":"Přizpůsobit","settings_modal_title":"📢 Nastavení cookies","settings_modal_save_settings_btn":"Uložit nastavení","settings_modal_accept_all_btn":"Souhlasím a pokračovat","settings_modal_reject_all_btn":"Zakázat vše","settings_modal_close_btn_label":"Zavřít","settings_modal_before_consent_title":"Použití cookies 📢","settings_modal_before_consent_description":"Soubory cookie používáme k zajištění základních funkcí webu a ke zlepšení vašeho uživatelského zážitku. Souhlas pro každou kategorii můžete kdykoliv změnit.","settings_modal_after_consent_title":"Vice informací","settings_modal_after_consent_description":"Máte-li jakékoli dotazy týkající se používání souborů cookie a vašich voleb, kontaktujte nás prosím.","functionality_storage_title":"Functionality cookies","functionality_storage_description":"Popis functionality cookies.","personalization_storage_title":"Personalization cookies","personalization_storage_description":"Popis personalization cookies.","security_storage_title":"Security cookies","security_storage_description":"Popis security cookies.","ad_storage_title":"Ad cookies","ad_storage_description":"Popis ad cookies.","analytics_storage_title":"Analytics cookies","analytics_storage_description":"Popis analytics cookies."}')},453:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Cookie settings","consent_modal_title":"🍪 We use cookies!","consent_modal_description":"This website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent.","consent_modal_primary_btn":"Accept all","consent_modal_secondary_btn":"Customize","settings_modal_title":"📢 Cookie settings","settings_modal_save_settings_btn":"Save settings","settings_modal_accept_all_btn":"Accept all","settings_modal_reject_all_btn":"Reject all","settings_modal_close_btn_label":"Close","settings_modal_before_consent_title":"Cookie usage 📢","settings_modal_before_consent_description":"We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want.","settings_modal_after_consent_title":"More information","settings_modal_after_consent_description":"For any queries in relation to my policy on cookies and your choices, please contact us.","functionality_storage_title":"Functionality cookies","functionality_storage_description":"Functionality cookies description.","personalization_storage_title":"Personalization cookies","personalization_storage_description":"Personalization cookies description.","security_storage_title":"Security cookies","security_storage_description":"Security cookies description.","ad_storage_title":"Ad cookies","ad_storage_description":"Ad cookies description.","analytics_storage_title":"Analytics cookies","analytics_storage_description":"Analytics cookies description."}')}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;t=o[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var e=i(10);CookieConsentWrapper=e})();
{
"name": "68publishers-cookie-consent",
"version": "0.1.1",
"version": "0.1.2",
"description": "Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.",

@@ -19,8 +19,8 @@ "homepage": "http://www.68publishers.io/",

"68publishers",
"cookie",
"consent",
"cookieconsent"
"cookieconsent",
"cookie-consent"
],
"author": "68publishers",
"license": "ISC",
"license": "MIT",
"devDependencies": {

@@ -38,3 +38,3 @@ "@babel/core": "^7.16.0",

"dependencies": {
"vanilla-cookieconsent": "^2.7.0-rc3"
"vanilla-cookieconsent": "^2.7.0"
},

@@ -41,0 +41,0 @@ "files": [

@@ -1,1 +0,194 @@

# Cookie Consent
<div align="center" style="text-align: center; margin-bottom: 50px">
<img src="docs/images/logo.png" alt="Cookie consent tag" width="75" height="75" align="center">
<h1 align="center">Cookie Consent</h1>
A wrapper over a plugin [orestbida/cookieconsent](https://github.com/orestbida/cookieconsent) with integration into the Google Tag Manager.
</div>
## Table of contents
* [Integration into the GTM](#integration-into-the-gtm)
* [Configuration](#configuration)
* [Settings modal trigger](#settings-modal-trigger)
* [Triggering tags based on the consent](#triggering-tags-based-on-the-consent)
* [Development](#development)
* [License](#license)
## Integration into the GTM
Open Google Tag Manager [web administration](https://tagmanager.google.com) and select a container for your website.
Next, go through the `Templates` link in the left navigation and click on the button `New` inside a section `Tag Templates`.
All you need is a file `gtm_template.tpl` from the root directory of this package. Download the file and import it in the Template editor:
<img src="docs/images/import-template.png" alt="Right dropdown" width="150">
After successful import click on the button `Save`, leave the Template editor, and go through the `Tags` link in the left navigation.
Then create the new tag with the imported Template, as trigger set an option `Consent Initialization - All Pages` and save it.
<img src="docs/images/cookie-consent-tag.png" alt="Cookie consent tag" width="600">
Now you can open a preview of the website and as you can see the cookie widget is here! But let's configure it a bit.
## Configuration
The plugin is configurable using fields inside the tag definition.
### Basic options
| Field | Description |
| ------ | ------ |
| Package version | Version of the package `68publishers/cookie-consent`. Valid inputs are `latest` or a version in format `x.x.x` |
| Make consent required | The page will be blocked until a user action |
| Show the widget as soon as possible | The widget will be displayed automatically on the page load. You must trigger the widget manually with calling `CookieConsentWrapper.unwrap().show()` if the option is disabled. |
| Cookie name | The name of the cookie that contains the user's consents |
| Cookie expiration | Expiration of the cookie in days |
| Revision | Revision number of your terms of use of cookies. More information [here](https://github.com/orestbida/cookieconsent#how-to-enablemanage-revisions) |
| Delay | Number of milliseconds before showing the consent modal |
| Settings modal trigger selector | CSS selector for automatic creation of trigger button that opens the settings modal. More information [here](#settings-modal-trigger) |
### Consent & Setting modal options
Both sections contain these fields: `Layout`, `Position`, `Transition`. These settings affect where modals appear and what shape they take.
For more information follow this [link](https://github.com/orestbida/cookieconsent#layout-options--customization).
### Storage options
Five types of storage are available:
- Functionality storage
- Security storage
- Personalization storage
- Ad storage
- Analytics storage
Each storage defines the name of a trigger that will be invoked if the user provides consent. It is not necessary to use or display each storage in the widget. Also, the consent for the storage can be synchronized with the consent of another storage.
| Field | Description |
| ------ | ------ |
| Enabled by default | A storage has `granted` consent by default if the option is checked. Triggers will be invoked as soon as possible. |
| Display in the widget | A storage will be displayed inside the settings modal if the option is checked. |
| Readonly | A toggle button for storage inside the settings modal will be disabled if the option is checked. Commonly used for functionality storage. The option is available only if the option `Display in the widget` is checked. |
| Synchronize consent with | The consent can be synchronized with another storage. The option is available only if the option `Display in the widget` is not checked. |
| Event trigger name | The name of an event trigger that will be invoked on `granted` consent with storage. The name may not be unique for each storage (unique triggers are invoked only). No trigger is invoked if the option has an empty value. |
### Translation settings
The package comes with the default translations for following languages:
- [en](src/resources/translations/en.json)
- [cs](src/resources/translations/cs.json)
Translations that will be loaded and accessible for the widget are taken from the field `Locales`. Locale codes are in the format `ISO 639-1` and each locale must be defined on a new line.
If you want to rewrite default translations or you want to add translations for a new locale then you can define them in a table `Translations`.
### Stylesheets
| Field | Description |
| ------ | ------ |
| Include default stylesheets | The default stylesheet for the widget will be loaded into the page if the option is checked. We recommend keeping the option checked and adding custom stylesheets through the next options. |
| External stylesheets | The list of custom CSS stylesheets. One URL per line |
| Internal stylesheet | Custom CSS rules that will be injected into the page after default stylesheets and other external stylesheets. |
## Settings modal trigger
When the user dismisses the consent modal then the modal is not displayed until the consent cookie expires. But you want to give the ability to change preferences later.
This can be done automatically with the configuration field `Settings modal trigger selector`. For example, if you have this HTML code on your website:
```html
<footer>
<div class="footer-container">
<div class="footer-item">
<a href="/terms-of-use">
<span class="footer-item-text">Terms of use</span>
</a>
</div>
<div class="footer-item">
<a href="/faq">FAQ</a>
</div>
<div class="footer-item">
<a href="/contact">
<span class="footer-item-text">Contact</span>
</a>
</div>
</div>
</footer>
```
And the field `Settings modal trigger selector` is configured like this:
<img src="docs/images/settings-modal-trigger-selector-field.png" alt="Settings modal trigger selector field" height="100" align="center">
Then the plugin injects a new item into the footer automatically:
```html
<footer>
<div class="footer-container">
<div class="footer-item">
<a href="/terms-of-use">
<span class="footer-item-text">Terms of use</span>
</a>
</div>
<div class="footer-item">
<a href="/faq">FAQ</a>
</div>
<div class="footer-item">
<a href="/contact">
<span class="footer-item-text">Contact</span>
</a>
</div>
<div class="footer-item">
<a href="#cookie-settings" data-cc="c-settings">
<span class="footer-item-text">Cookie settings</span>
</a>
</div>
</div>
</footer>
```
But it is not always possible to achieve the right result with this automation (depending on the website layout). In this case, leave the `Settings modal trigger selector` field blank and define the link in your layout manually.
Opening of the settings modal will be triggered automatically to the link.
## Triggering tags based on the consent
Tags are triggered after the consent with event triggers that are defined for each [storage](#storage-options). For example, if you have the `analytics_stroage` configured like this:
<img src="docs/images/analytics-storage-options.png" alt="Analytics storage options" width="300">
Then create a custom trigger with the following options:
<img src="docs/images/analytics-storage-trigger.png" alt="Analytics storage trigger" width="600">
And a tag that is fired with the trigger:
<img src="docs/images/analytics-storage-tag.png" alt="Analytics storage trigger" width="600">
## Development
Firstly download the package:
```sh
$ npm install 68publishers-cookie-consent
```
Use predefined commands for the package build:
```sh
$ npm run build:dev # or prod
```
Paths of output files are:
- `~/build/cookie-consent.js` (dev mode)
- `~/dist/cookie-consent.min.js` (production mode)
A simple demo page without real GTM is located in `~/build/index.html`. To show the demo in your browser run:
```sh
$ npm run start:dev
```
Then visit the page `http://localhost:3000`.
## License
The package is distributed under the MIT License. See [LICENSE](LICENSE.md) for more information.

@@ -17,3 +17,3 @@ 'use strict';

return [
'https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.0-rc3/dist/cookieconsent.css'
'https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.0/dist/cookieconsent.css'
];

@@ -20,0 +20,0 @@ }

@@ -52,3 +52,3 @@ 'use strict';

try {
translations = require(`./resources/translations/${locale}.js`);
translations = require(`./resources/translations/${locale}`);
} catch (e) {

@@ -55,0 +55,0 @@ translations = {};

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc