vendor: 4,687 bytes, line 1
1function _typeof(e){return(_typeof="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)}var _Cookiemonster,_Cookiemonster_brand;function _createForOfIteratorHelper(e,t){var r,n,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){o=!0,r=e},f:function(){try{n||null==a.return||a.return()}finally{if(o)throw r}}};if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _regenerator(){var h,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",r=e.toStringTag||"@@toStringTag";function n(e,t,r,n){var o,i,a,s,c,u,l,f,d,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(o=e,i=r,l=n||[],f=!1,d={p:u=0,n:0,v:h,a:p,f:p.bind(h,4),d:function(e,t){return a=e,s=0,c=h,d.n=t,g}},function(e,t,r){if(1<u)throw TypeError("Generator is already running");for(f&&1===t&&p(t,r),s=t,c=r;(v=s<2?h:c)||!f;){a||(s?s<3?(1<s&&(d.n=-1),p(s,c)):d.n=c:d.v=c);try{if(u=2,a){if(v=a[e=s?e:"next"]){if(!(v=v.call(a,c)))throw TypeError("iterator result is not an object");if(!v.done)return v;c=v.value,s<2&&(s=0)}else 1===s&&(v=a.return)&&v.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+e+"' method"),s=1);a=h}else if((v=(f=d.n<0)?c:o.call(i,d))!==g)break}catch(e){a=h,s=1,c=e}finally{u=1}}return{value:v,done:f}}),!0),t;function p(e,t){for(s=e,c=t,v=0;!f&&u&&!r&&v<l.length;v++){var r,n=l[v],o=d.p,i=n[2];3<e?(r=i===t)&&(c=n[(s=n[4])?5:s=3],n[4]=n[5]=h):n[0]<=o&&((r=e<2&&o<n[1])?(s=0,d.v=t,d.n=n[1]):o<i&&(r=e<3||n[0]>t||i<t)&&(n[4]=e,n[5]=t,d.n=i,s=0))}if(r||1<e)return g;throw f=!0,t}}var g={};function y(){}function o(){}function i(){}var v=Object.getPrototypeOf,e=[][t]?v(v([][t]())):(_regeneratorDefine2(v={},t,function(){return this}),v),a=i.prototype=y.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,_regeneratorDefine2(e,r,"GeneratorFunction")),e.prototype=Object.create(a),e}return _regeneratorDefine2(a,"constructor",o.prototype=i),_regeneratorDefine2(i,"constructor",o),_regeneratorDefine2(i,r,o.displayName="GeneratorFunction"),_regeneratorDefine2(a),_regeneratorDefine2(a,r,"Generator"),_regeneratorDefine2(a,t,function(){return this}),_regeneratorDefine2(a,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:s}})()}function _regeneratorDefine2(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,t,r,n){function o(t,r){_regeneratorDefine2(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))})(e,t,r,n)}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function _asyncToGenerator(s){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=s.apply(e,a);function o(e){asyncGeneratorStep(n,t,r,o,i,"next",e)}function i(e){asyncGeneratorStep(n,t,r,o,i,"throw",e)}o(void 0)})}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
1finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _assertClassBrand(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function _loadBrowserCookie(){var e,t=_createForOfIteratorHelper(document.cookie.split(";"));try{for(t.s();!(e=t.n()).done;){for(var r,n=e.value;" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf("".concat(this.cookie.name,"=")))return(r=n.substring("".concat(this.cookie.name,"=").length,n.length))?JSON.parse(r):null}}catch(e){t.e(e)}finally{t.f()}return null}MJS.Namespace("Plugins").export("Cookiemonster",(_Cookiemonster_brand=new WeakSet,_Cookiemonster=(()=>{function s(){_classCallCheck(this,s),_classPrivateMethodInitSpec(this,_Cookiemonster_brand),_defineProperty(this,"cookie",{name:"Cookiemonster",days:365}),_defineProperty(this,"classes",{bar:"cookie-bar",bar_description:"cookie-bar-description",dialog:"cookie-dialog",settings:"cookie-settings",button_settings:"cookie-settings-open",button_accept:"cookie-settings-accept",button_decline:"cookie-settings-decline",button_save:"cookie-settings-save"}),_defineProperty(this,"attributes",{consent:"data-consent",control:"data-consent-control",ignore:"data-consent-ignore",src:"data-src",accepted:"data-accepted",open:"cookiemonster-open"}),_defineProperty(this,"identifiers",{bar:"cookie-bar",settings:"cookie-settings",settings_open:"cookie-settings-open",settings_close:"cookie-settings-close",settings_option:"cookie-settings-option",settings_save:"cookie-settings-save",settings_accept:"cookie-settings-accept",settings_decline:"cookie-settings-decline",consent:"data-consent"}),_defineProperty(this,"options",{functional:!0,analytical:!0,tracking:!0}),_defineProperty(this,"Fetch",MJS.Namespace("Core").import("Fetch"))}return _createClass(s,[{key:"__init",value:function(){var t=this,e=MJS.Node.getNodes("["+this.attributes.open+"]"),e=(e.length&&e.foreach(function(e){return e.Events.set("click",function(){return t.openBar()})}),_assertClassBrand(_Cookiemonster_brand,this,_loadBrowserCookie).call(this));if(e)for(var r=0,n=Object.entries(e);r<n.length;r++){var o=_slicedToArray(n[r],2),i=o[0];this.setPreference(i,o[1])}else if(this.isIosPwa()){for(var a=0,s=Object.keys(this.options);a<s.length;a++){var c=s[a];this.options[c]=!0}this.saveBrowserCookie()}else this.openBar()}},{key:"setPreference",value:function(){var t=this,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=MJS.Node.getNodes("[".concat(this.identifiers.consent,'="').concat(r,'"]:not([').concat(this.attributes.ignore,"])"));e.length&&(e.foreach(function(e){switch(n){case!0:e.Properties.set("accepted",!0),e.Attributes.set(t.attributes.accepted,!0),e.Attributes.has("data-src")&&e.Attributes.set("src",e.Attributes.get("data-src")),"NOSCRIPT"===e.Properties.get("tagName")&&new MJS.Node("script",{attributes:{"data-consent-script":r},properties:{innerHTML:e.Properties.get("innerHTML")}}).moveToNode(e,"after");break;case!1:e.Properties.set("accepted",!1),e.Attributes.set(t.attributes.accepted,!1),e.Attributes.has("src")&&e.Attributes.remove("src"),"NOSCRIPT"===e.Properties.get("tagName")&&MJS.Node.getNode('[data-consent-script="'.concat(r,'"]'))&&MJS.Node.getNode('[data-consent-script="'.concat(r,'"]')).remove()}}),this.options[r]=n)}},{key:"openBar",value:(t=_asyncToGenerator(_regenerator().m(function e(){var t,r,n,o,i,a=this;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return this.closeBar(),this.closeSettingsDialog(),r=MJS.Node,n=[this.classes.bar],o={"data-identifier":this.identifiers.bar},e.n=1,new this.Fetch(["".concat(s.configuration.base,"\\json\\controllers\\bar")]).then();case 1:i=e.v,i=new r("div",{classes:n,attributes:o,properties:{innerHTML:i}}),(t=i.childNodes('[data-identifier="'.concat(this.identifiers.settings_open,'"]'))).length&&t.foreach(function(e){return e.Events.set("click",function(){return a.openSettingsDialog()})}),(t=i.childNodes('[data-identifier="'.concat(this.identifiers.settings_accept,'"]'))).length&&t.foreach(function(e){return e.Events.set("click",function(){a.saveBrowserCookie(),a.closeBar()})}),(t=i.childNodes('[data-identifier="'.concat(this.identifiers.settings_decline,'"]'))).length&&t.foreach(function(e){return e.Events.set("click",function(){for(var e=0,t=Object.entries(a.options);e<t.length;e++){var r=_slicedToArray(t[e],2),r=r[0];"functional"!==r&&(a.options[r]=!1)}a.saveBrowserCookie(),a.closeBar()})}),MJS.Node.getNode("body").insertNode(i);case 2:return e.a(2)}},e,this)})),function(){return t.apply(this,arguments)})},{key:"closeBar",value:function(){var e=MJS.Node.getNode('[data-identifier="'.concat(this.identifiers.bar,'"]'));e&&e.remove()}},{key:"openSettingsDialog",value:(e=_asyncToGenerator(_regenerator().m(function e(){var t,r,n,o,i=this;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return this.closeSettingsDialog(),this.closeBar(),t=new MJS.Node("div",{classes:[this.classes.dialog,this.classes.settings],attributes:{"data-identifier":this.identifiers.settings}}),r=MJS.Node,n=["dialog-content"],e.n=1,new this.Fetch(["".concat(s.configuration.base,"\\json\\controllers\\dialog")]).then();case 1:o=e.v,o=new r("div",{classes:n,properties:{innerHTML:o}}
1),t.insertNode(o),MJS.Node.getNode("body").insertNode(t),__(o.getElement()).setUtils(),t.childNodes('[data-identifier="'.concat(this.identifiers.settings_close,'"]')).foreach(function(e){return e.Events.set("click",function(){return i.openBar()})}),t.childNodes('[data-identifier="'.concat(this.identifiers.settings_save,'"]')).foreach(function(e){return e.Events.set("click",function(){i.saveBrowserCookie(),i.closeSettingsDialog()})}),t.childNodes('[data-identifier="data-option"],[data-identifier="toggle-input"]').foreach(function(e){e.Events.set("change",function(){return i.options[e.Attributes.get("data-option")]=e.Properties.get("checked")})}),t.getElement().style.background="#F0F0F0",t.getElement().style.padding="2rem";case 2:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"closeSettingsDialog",value:function(){var e=MJS.Node.getNode('[data-identifier="'.concat(this.identifiers.settings,'"]'));e&&e.remove()}},{key:"saveBrowserCookie",value:function(){for(var e=0,t=Object.entries(this.options);e<t.length;e++){var r=_slicedToArray(t[e],2),n=r[0];this.setPreference(n,r[1])}var o=new Date;o.setTime(o.getTime()+24*this.cookie.days*60*60*1e3),document.cookie="".concat(this.cookie.name,"=").concat(JSON.stringify(this.options),";SameSite=Lax;expires=").concat(o.toUTCString(),";path=/")}},{key:"removeBrowserCookie",value:function(){document.cookie="".concat(this.cookie.name,"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/")}},{key:"isIosPwa",value:function(){var e=navigator.userAgent||"",e=/iP(hone|ad|od)/.test(e),t=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches;return e&&(navigator.standalone||t)}}]);var e,t})(),_defineProperty(_Cookiemonster,"configuration",{global:!0,version:"1.0",base:"plugins\\cookiemonster\\v1_0"}),_Cookiemonster));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.