(()=>{var e={9662:(e,t,n)=>{"use strict";var r=n(614),i=n(6330),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},9670:(e,t,n)=>{"use strict";var r=n(111),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},1318:(e,t,n)=>{"use strict";var r=n(5656),i=n(1400),o=n(6244),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3658:(e,t,n)=>{"use strict";var r=n(9781),i=n(3157),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:(e,t,n)=>{"use strict";var r=n(1702),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},648:(e,t,n)=>{"use strict";var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:c?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},9920:(e,t,n)=>{"use strict";var r=n(2597),i=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=i(t),c=a.f,u=o.f,l=0;l{"use strict";var r=n(9781),i=n(3070),o=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7045:(e,t,n)=>{"use strict";var r=n(6339),i=n(3070);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},8052:(e,t,n)=>{"use strict";var r=n(614),i=n(3070),o=n(6339),a=n(3072);e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)c?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},3072:(e,t,n)=>{"use strict";var r=n(7854),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9781:(e,t,n)=>{"use strict";var r=n(7293);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:e=>{"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},317:(e,t,n)=>{"use strict";var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},7207:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},8113:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:(e,t,n)=>{"use strict";var r,i,o=n(7854),a=n(8113),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},748:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,t,n)=>{"use strict";var r=n(7854),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),c=n(9920),u=n(4705);e.exports=function(e,t){var n,l,d,f,h,m=e.target,p=e.global,v=e.stat;if(n=p?r:v?r[m]||s(m,{}):(r[m]||{}).prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(h=i(n,l))&&h.value:n[l],!u(p?l:m+(v?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,l,f,e)}}},7293:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},4374:(e,t,n)=>{"use strict";var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:(e,t,n)=>{"use strict";var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:(e,t,n)=>{"use strict";var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},1702:(e,t,n)=>{"use strict";var r=n(4374),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},5005:(e,t,n)=>{"use strict";var r=n(7854),i=n(614);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},8173:(e,t,n)=>{"use strict";var r=n(9662),i=n(8554);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},7854:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:(e,t,n)=>{"use strict";var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:e=>{"use strict";e.exports={}},4664:(e,t,n)=>{"use strict";var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{"use strict";var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},2788:(e,t,n)=>{"use strict";var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},9909:(e,t,n)=>{"use strict";var r,i,o,a=n(4811),s=n(7854),c=n(111),u=n(8880),l=n(2597),d=n(5465),f=n(6200),h=n(3501),m="Object already initialized",p=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new p(m);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=f("state");h[y]=!0,r=function(e,t){if(l(e,y))throw new p(m);return t.facade=e,u(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},3157:(e,t,n)=>{"use strict";var r=n(4326);e.exports=Array.isArray||function(e){return"Array"===r(e)}},614:(e,t,n)=>{"use strict";var r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},4705:(e,t,n)=>{"use strict";var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n===l||n!==u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},8554:e=>{"use strict";e.exports=function(e){return null==e}},111:(e,t,n)=>{"use strict";var r=n(614),i=n(4154),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{"use strict";e.exports=!1},2190:(e,t,n)=>{"use strict";var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},6244:(e,t,n)=>{"use strict";var r=n(7466);e.exports=function(e){return r(e.length)}},6339:(e,t,n)=>{"use strict";var r=n(1702),i=n(7293),o=n(614),a=n(2597),s=n(9781),c=n(6530).CONFIGURABLE,u=n(2788),l=n(9909),d=l.enforce,f=l.get,h=String,m=Object.defineProperty,p=r("".slice),v=r("".replace),g=r([].join),y=s&&!i((function(){return 8!==m((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===p(h(t),0,7)&&(t="["+v(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?m(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&f(this).source||u(this)}),"toString")},4758:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},3070:(e,t,n)=>{"use strict";var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=l(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:(e,t,n)=>{"use strict";var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),c=n(4948),u=n(2597),l=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},8006:(e,t,n)=>{"use strict";var r=n(6324),i=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7976:(e,t,n)=>{"use strict";var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:(e,t,n)=>{"use strict";var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),c=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);for(;t.length>u;)i(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},5296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2140:(e,t,n)=>{"use strict";var r=n(6916),i=n(614),o=n(111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},3887:(e,t,n)=>{"use strict";var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?c(t,n(e)):t}},4488:(e,t,n)=>{"use strict";var r=n(8554),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},6200:(e,t,n)=>{"use strict";var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:(e,t,n)=>{"use strict";var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:(e,t,n)=>{"use strict";var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:(e,t,n)=>{"use strict";var r=n(7392),i=n(7293),o=n(7854).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:(e,t,n)=>{"use strict";var r=n(9303),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5656:(e,t,n)=>{"use strict";var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:(e,t,n)=>{"use strict";var r=n(4758);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},7466:(e,t,n)=>{"use strict";var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:(e,t,n)=>{"use strict";var r=n(4488),i=Object;e.exports=function(e){return i(r(e))}},7593:(e,t,n)=>{"use strict";var r=n(6916),i=n(111),o=n(2190),a=n(8173),s=n(2140),c=n(5112),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,c=a(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:(e,t,n)=>{"use strict";var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},1694:(e,t,n)=>{"use strict";var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:(e,t,n)=>{"use strict";var r=n(648),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9711:(e,t,n)=>{"use strict";var r=n(1702),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},3307:(e,t,n)=>{"use strict";var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(e,t,n)=>{"use strict";var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e{"use strict";var r=n(7854),i=n(614),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},5112:(e,t,n)=>{"use strict";var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(6293),c=n(3307),u=r.Symbol,l=i("wks"),d=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),l[e]}},7658:(e,t,n)=>{"use strict";var r=n(2109),i=n(7908),o=n(6244),a=n(3658),s=n(7207);r({target:"Array",proto:!0,arity:1,forced:n(7293)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var c=0;c{"use strict";var r=n(8052),i=n(1702),o=n(1340),a=n(8053),s=URLSearchParams,c=s.prototype,u=i(c.append),l=i(c.delete),d=i(c.forEach),f=i([].push),h=new s("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&r(c,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];d(this,(function(e,t){f(r,{key:t,value:e})})),a(t,1);for(var i,s=o(e),c=o(n),h=0,m=0,p=!1,v=r.length;h{"use strict";var r=n(8052),i=n(1702),o=n(1340),a=n(8053),s=URLSearchParams,c=s.prototype,u=i(c.getAll),l=i(c.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||r(c,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=u(this,e);a(t,1);for(var i=o(n),s=0;s{"use strict";var r=n(9781),i=n(1702),o=n(7045),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},3145:(e,t)=>{"use strict";t.r=void 0,t.r=function(){return new Promise((function(e,t){var n,r,i="Unknown";function o(t){e({isPrivate:t,browserName:i})}function a(e){return e===eval.toString().length}void 0!==(r=navigator.vendor)&&0===r.indexOf("Apple")&&a(37)?(i="Safari",void 0!==navigator.maxTouchPoints?function(){var e=String(Math.random());try{window.indexedDB.open(e,1).onupgradeneeded=function(t){var n,r,i=null===(n=t.target)||void 0===n?void 0:n.result;try{i.createObjectStore("test",{autoIncrement:!0}).put(new Blob),o(!1)}catch(e){var a=e;return e instanceof Error&&(a=null!==(r=e.message)&&void 0!==r?r:e),o("string"==typeof a&&/BlobURLs are not yet supported/.test(a))}finally{i.close(),window.indexedDB.deleteDatabase(e)}}}catch(e){return o(!1)}}():function(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return o(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return o(!0)}o(!1)}()):function(){var e=navigator.vendor;return void 0!==e&&0===e.indexOf("Google")&&a(33)}()?(n=navigator.userAgent,i=n.match(/Chrome/)?void 0!==navigator.brave?"Brave":n.match(/Edg/)?"Edge":n.match(/OPR/)?"Opera":"Chrome":"Chromium",void 0!==self.Promise&&void 0!==self.Promise.allSettled?navigator.webkitTemporaryStorage.queryUsageAndQuota((function(e,t){var n;o(Math.round(t/1048576)<2*Math.round((void 0!==(n=window).performance&&void 0!==n.performance.memory&&void 0!==n.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824)/1048576))}),(function(e){t(new Error("detectIncognito somehow failed to query storage quota: "+e.message))})):(0,window.webkitRequestFileSystem)(0,1,(function(){o(!1)}),(function(){o(!0)}))):void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&a(37)?(i="Firefox",o(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&a(39)?(i="Internet Explorer",o(void 0===window.indexedDB)):t(new Error("detectIncognito cannot determine the browser"))}))}},8878:function(e){e.exports=function(){"use strict";function e(){return void 0!==navigator.brave&&void 0!==navigator.brave.isBrave}function t(){return"string"==typeof navigator.userAgent&&navigator.userAgent.match(/Opera|OPR\//)}function n(){return new Promise((function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){4==n.readyState&&e(n)},n.open("GET","https://raw.githubusercontent.com/wmcmurray/just-detect-adblock/master/baits/pagead2.googlesyndication.com",!0),n.send()}))}function r(e){return 200===e.status&&!e.responseText.match(/^thistextshouldbethere(\n|)$/)}function i(e){return 0===e.status&&!e.responseText.match(/^thistextshouldbethere(\n|)$/)}function o(){if(null!==window.document.body.getAttribute("abp"))return!0;var e=function(){var e=document.createElement("div");return e.setAttribute("class","pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links ad-text adSense adBlock adContent adBanner"),e.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),e}();window.document.body.appendChild(e);var t=function(e){if(null===e.offsetParent||0==e.offsetHeight||0==e.offsetLeft||0==e.offsetTop||0==e.offsetWidth||0==e.clientHeight||0==e.clientWidth)return!0;if(void 0!==window.getComputedStyle){var t=window.getComputedStyle(e,null);if(t&&("none"==t.getPropertyValue("display")||"hidden"==t.getPropertyValue("visibility")))return!0}return!1}(e);return window.document.body.removeChild(e),t}var a;return{detectAnyAdblocker:function(){return new Promise((function(a,s){if(o())return a(!0);e()||t()?n().then((function(n){return e()?a(r(n)):t()?a(i(n)):void a(!1)})):a(!1)}))},detectDomAdblocker:(a=o,function(){var e=arguments;return new Promise((function(t,n){t(a.apply(this,e))}))}),detectBraveShields:function(){return new Promise((function(t,i){e()?n().then((function(e){t(r(e))})):t(!1)}))},detectOperaAdblocker:function(){return new Promise((function(e,r){t()?n().then((function(t){e(i(t))})):e(!1)}))},isDetected:function(e,t){return function(){return console.warn("just-detect-adblock : The `isDetected()` method is now deprecated, please use `detectAnyAdblocker()` instead, which returns a Promise and can detect more stuff (like Brave Shields)."),e.apply(this,arguments)}}(o)}}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";n(7658),n(6229),n(7330),n(2062);var e=n(8878);function t(e,t){i(e,t),t.add(e)}function r(e,t,n){i(e,t),t.set(e,n)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,c(e,t,"get"))}function a(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function s(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,c(e,t,"set"),n),n}function c(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var u=new WeakMap,l=new WeakMap,d=new WeakMap,f=new WeakSet,h=new WeakSet,m=new WeakSet;class p{constructor(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t(this,m),t(this,h),t(this,f),r(this,u,{writable:!0,value:0}),r(this,l,{writable:!0,value:void 0}),r(this,d,{writable:!0,value:void 0}),"string"!=typeof e)throw new Error("A string value must be provided for the ID");if(0==e.length)throw new Error("The ID value must not be empty");s(this,l,e),0===n?s(this,u,a(this,f,v).call(this)):this.views=n}setExpireDays(e){s(this,d,e)}increment(){this.views=o(this,u)+1}set views(e){if("number"!=typeof e)throw new Error("Views must provided as a number");if((e=parseInt(e))<0)throw new Error("Views must be greater than or equal to zero");s(this,u,e),o(this,u)!=a(this,f,v).call(this)&&a(this,m,y).call(this)}get views(){return o(this,u)}get id(){return o(this,l)}get expires(){let e;return o(this,d)?(e=a(this,h,g).call(this),e||(e=new Date,e.setDate(e.getDate()+o(this,d)))):(e=new Date,e.setDate(1),e.setMonth(e.getMonth()+1),e.setHours(0),e.setMinutes(0),e.setSeconds(0)),e}toJSON(){return{id:o(this,l),views:o(this,u),expires:this.expires}}}function v(){try{let e=decodeURIComponent(document.cookie).split(/\s*?;\s*/);for(const t of e)if(0===t.indexOf("tncms:meter:assets"+o(this,l))){let e=t.match(/=(\d+)/);if(e)return parseInt(e[1])}}catch(e){}return 0}function g(){try{let e=decodeURIComponent(document.cookie).split(/\s*?;\s*/);for(const t of e)if(0===t.indexOf("tncms:meter:days"+o(this,l))){let e=t.match(/=(.+)/);if(e)return new Date(e[1])}}catch(e){}return null}function y(){document.cookie="tncms:meter:assets"+o(this,l)+"="+o(this,u)+"; expires="+this.expires.toGMTString()+"; path=/; SameSite=Strict",o(this,d)&&(document.cookie="tncms:meter:days"+o(this,l)+"="+this.expires.toGMTString()+"; expires="+this.expires.toGMTString()+"; path=/; SameSite=Strict")}var b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=i+n?(i=a,[4,L(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2,r]}}))}))}function V(e){e.then(void 0,(function(){}))}function j(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function W(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function I(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function P(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=O(e=W(e,[4283543511,3981806797]),[0,e[0]>>>1]),O(e=W(e,[3301882366,444984403]),[0,e[0]>>>1])}function R(e){return parseInt(e)}function T(e){return parseFloat(e)}function Z(e,t){return"number"==typeof e&&isNaN(e)?t:e}function F(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function _(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function G(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function N(e,t,n){var r=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n=4}function X(){var e=window,t=navigator;return F(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Y(){var e=window,t=navigator;return F(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function J(){var e=window;return F(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function H(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function z(){var e=X(),t=function(){var e,t,n=window;return F(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return F(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function B(e){var t=new Error(e);return t.name=e,t}function U(e,t,n){var r,i,o;return void 0===n&&(n=50),w(this,void 0,void 0,(function(){var a,s;return x(this,(function(c){switch(c.label){case 0:a=document,c.label=1;case 1:return a.body?[3,3]:[4,L(n)];case 2:return c.sent(),[3,1];case 3:s=a.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise((function(e,n){var r=!1,i=function(){r=!0,e()};s.onload=i,s.onerror=function(e){r=!0,n(e)};var o=s.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="http://bakad.com.kz/?big=about:blank",a.body.appendChild(s);var c=function(){var e,t;r||("complete"===(null===(t=null===(e=s.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?i():setTimeout(c,10))};c()}))];case 5:c.sent(),c.label=6;case 6:return(null===(i=null===(r=s.contentWindow)||void 0===r?void 0:r.document)||void 0===i?void 0:i.body)?[3,8]:[4,L(n)];case 7:return c.sent(),[3,6];case 8:return[4,e(s,s.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(o=s.parentNode)||void 0===o||o.removeChild(s),[7];case 11:return[2]}}))}))}function q(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,c=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var u=s.exec(i[2]);if(!u)break;var l=u[0];switch(l[0]){case".":c("class",l.slice(1));break;case"#":c("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);c(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[o,a]}(e),n=t[0],r=t[1],i=document.createElement(null!=n?n:"div"),o=0,a=Object.keys(r);o.6*n.length}))).sort(),[2,i]}var s}))}))},fontPreferences:function(){return void 0===e&&(e=4e3),U((function(t,n){var r=n.document,i=r.body,o=i.style;o.width="".concat(e,"px"),o.webkitTextSizeAdjust=o.textSizeAdjust="none",X()?i.style.zoom="".concat(1/n.devicePixelRatio):Y()&&(i.style.zoom="reset");var a=r.createElement("div");return a.textContent=S([],Array(e/20<<0),!0).map((function(){return"word"})).join(" "),i.appendChild(a),function(e,t){for(var n={},r={},i=0,o=Object.keys(me);i');var e},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Y()&&!J()&&!function(){var e=window;return F(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=new t(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,r.connect(i),i.connect(n.destination),r.start(0);var o=function(e){var t=function(){};return[new Promise((function(n,r){var i=!1,o=0,a=0;e.oncomplete=function(e){return n(e.renderedBuffer)};var s=function(){setTimeout((function(){return r(B("timeout"))}),Math.min(500,a+5e3-Date.now()))},c=function(){try{var t=e.startRendering();switch(M(t)&&V(t),e.state){case"running":a=Date.now(),i&&s();break;case"suspended":document.hidden||o++,i&&o>=3?r(B("suspended")):setTimeout(c,500)}}catch(e){r(e)}};c(),t=function(){i||(i=!0,a>0&&s())}})),t]}(n),a=o[0],s=o[1],c=a.then((function(e){return function(e){for(var t=0,n=0;n=3||n.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Z(T(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return Z(R(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return Z(R(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,i=(r=(new Date).getFullYear(),-Math.max(T(new Date(r,0,1).getTimezoneOffset()),T(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(Math.abs(i))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(D()||(e=window,t=navigator,F(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!D())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&Y()&&!J()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return F(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",n=0,r=Object.keys(e).sort();n=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(k,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,we(n)];case 1:return e.sent(),[2,xe(N(pe,{debug:r},[]),r)]}}))}))},hashComponents:be,componentsToDebugString:ye};function ke(e,t){Me(e,t),t.add(e)}function Le(e,t,n){Me(e,t),t.set(e,n)}function Me(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ce(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Ae(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,je(e,t,"get"))}function Ve(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,je(e,t,"set"),n),n}function je(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}let We=()=>{};var Ie=new WeakMap,Pe=new WeakMap,Oe=new WeakMap,Ee=new WeakMap,Re=new WeakMap,Te=new WeakMap,Ze=new WeakMap,Fe=new WeakMap,_e=new WeakSet,Ge=new WeakSet,Ne=new WeakMap,De=new WeakMap,Xe=new WeakSet,Ye=new WeakSet,Je=new WeakSet;class He{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ke(this,Je),ke(this,Ye),ke(this,Xe),Le(this,De,{get:qe,set:Qe}),Le(this,Ne,{get:Ue,set:void 0}),ke(this,Ge),ke(this,_e),Le(this,Ie,{writable:!0,value:!0}),Le(this,Pe,{writable:!0,value:!1}),Le(this,Oe,{writable:!0,value:void 0}),Le(this,Ee,{writable:!0,value:{}}),Le(this,Re,{writable:!0,value:void 0}),Le(this,Te,{writable:!0,value:void 0}),Le(this,Ze,{writable:!0,value:[]}),Le(this,Fe,{writable:!0,value:void 0}),Ve(this,Oe,e.host??null),Ve(this,Ie,e.sync??!1),Ve(this,Pe,e.debug??!1),Ae(this,Pe)&&window?.console?.debug&&(We=console.debug.bind(window.console)),e.meters)for(const t of e.meters)Ae(this,Ee)[t.id]=new p(t.id),t.expire_days&&Ae(this,Ee)[t.id].setExpireDays(t.expire_days);We("Loading list of already viewed assets");let t=sessionStorage.getItem("tncms:meter:assets");t&&Ve(this,Ze,JSON.parse(t)||[]),Ce(this,_e,ze).call(this)||Ve(this,Fe,Ce(this,Ye,$e).call(this))}async ready(){return Ae(this,Fe)&&await Ae(this,Fe),!0}isValidMeter(e){return"Meter"==typeof Ae(this,Ee)[e]}getViews(e){if(Ae(this,Ee)[e])return Ae(this,Ee)[e].views;throw new Error("No such meter: "+e)}updateMeters(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!1;for(const n of e)Ae(this,Ee)[n]&&(Ae(this,Ee)[n].increment(),t=!0);!1!==t?Ce(this,Ye,$e).call(this):We("No meters were changed - sync cancelled")}inAssetList(e){return void 0!==Ae(this,Ze).find((t=>t===e))}saveAssetToList(e){Ae(this,Ze).push(e),sessionStorage.setItem("tncms:meter:assets",JSON.stringify(Ae(this,Ze)))}toJSON(){return{identifiers:{deviceId:Ae(this,Ne),instanceId:Ae(this,De)},meters:Ae(this,Ee)}}}function ze(){if(!Ae(this,Ie))return We("Meter cache not loaded: syncronization disabled"),!1;const e="access-"+Ae(this,De);We("Checking to see if a meter cache is available");let t=sessionStorage.getItem(e);if(t){We("Meter cache detected - unpacking");const e=JSON.parse(t),n=new Date;We("Initializing meters using the meter cache");for(const[t,r]of Object.entries(e.meters))r.views<=0||(new Date(r.expires).getTime()>=n.getTime()?Ce(this,Je,et).call(this,t,r.views):We(`Meter cache for ${t} skipped - expired`));return Ve(this,Re,e.deviceId??null),!0}return We("No meter cache was found"),!1}async function Be(){try{We("Detecting device identifier");const e=await Se.load(),t=await e.get();return We("Device identified as: "+t.visitorId),t.visitorId}catch(e){console.error("Failed to identify device",e)}}function Ue(){return Ae(this,Re)}function qe(){return Ae(this,Te)||(Ve(this,Te,localStorage.getItem("tncms:access:iid")),Ae(this,Te)||(Ve(this,De,Ce(this,Xe,Ke).call(this)),We("Generated new instance ID: %s",Ae(this,Te)))),Ae(this,Te)}function Qe(e){Ve(this,Te,e),localStorage.setItem("tncms:access:iid",e)}function Ke(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}async function $e(){if(!Ae(this,Ie))return;Ae(this,Re)||Ve(this,Re,await Ce(this,Ge,Be).call(this)),We("Exchanging meter metrics with server");const e=await fetch(`https://${Ae(this,Oe)}/tncms/access/meter/`,{method:"POST",credentials:"include",body:JSON.stringify(this)}),t=await e.json();if(!e.ok||t?.code)throw new Error("Failed to sync meters: "+t?.message);if(t.meters){We("Updating local meters based on server state");for(const[e,n]of Object.entries(t.meters))Ce(this,Je,et).call(this,e,n)}We("Updating local meter cache"),sessionStorage.setItem("access-"+Ae(this,De),JSON.stringify({deviceId:Ae(this,Ne),meters:Ae(this,Ee)})),console.debug("Sycnronization complete")}function et(e,t){Ae(this,Ee)[e]?t>Ae(this,Ee)[e].views&&(Ae(this,Ee)[e].views=t):Ae(this,Ee)[e]=new p(e,t)}var tt=n(3145);window.TNCMS=window.TNCMS||{};var nt=window.TNCMS.Access||[];window.TNCMS.Access=function(){let t,n=null,r=null,i=null;var o=null,a=null,s=null,c=!1,u=null,l=null,d={},f={},h=[],m="",p="",v=null,g=null,y="",b=!1,w="",x=null,S=[],k={};function L(e){var t={success:!1,msg:e.msg||"Unknown error occurred",xhrStatus:e.status||"",xhrStatusText:e.statusText||""};M("Error: ",t),"function"==typeof g&&g.call(this,t)}function M(e,t){console&&(void 0!==t?console.debug("TNCMS.Access: "+e,t):console.debug("TNCMS.Access: "+e))}function C(e){let t=document.getElementsByName(e);return t.item(0)?.content??""}async function A(){m||M("Asset ID",m=C("tncms-access-asset-id")),M("Asset app",p=C("tncms-access-asset-app"));let e=C("tncms-access-criteria");e&&(d=JSON.parse(e)),M("Page criteria IDs",d),M("Rule version",y=C("tncms-access-version")),null===o?V.call(this):W.call(this)}function V(){new P({url:"rules/",headers:[{name:"X-TNCMS-Access-Version",value:y}],success:function(e){var n=JSON.parse(e.responseText);0!=n.success?(o=n.rules,s=n.meters||[],l=n.requires_client||[],a=n.offers||{},t=new He({host:document.location.hostname,meters:s,sync:window.tncms_access_control_sync??!1,debug:!0}),M("Rules loaded",o),M("Offers loaded",a),j.call(this)):L(n)},failure:L,scope:this}).send()}function j(e){for(var t=decodeURIComponent(document.cookie).split(";"),r=null,i=0,o=[],a="anonymous";i-1&&(a="loggedin-"+r[1]),(r=t[i].match(/tncms-access-user-version=(.+)/i))&&o.push({name:"X-TNCMS-Access-User-Version",value:r[1]});if(o.push({name:"X-TNCMS-Access-User",value:a}),e=!1,m&&p&&document.location.pathname.match(/\/(.+?)\/tncms\/admin\/action\/main\/preview\/site\//)&&(e={asset_id:m,asset_app:p},sessionStorage.getItem("accessProfile")))try{M("Using test profile",k=JSON.parse(sessionStorage.getItem("accessProfile"))),e.profile=k.id,n=k?.adblock??void 0;let t="";for(t in k)if(k.hasOwnProperty(t)&&"dmp"==t)try{let e=JSON.parse(k[t]);u=[];for(let t=0;t":n>v&&(M("Meter count is greater than views",n),a++);break;case">=":n>=v&&(M("Meter count is greater than or equal to views",n),a++)}}break;case"dmp":M("Processing DMP",u);for(const e of i.data.dmp)if(-1!==u.indexOf(e.abbr)&&1!=i.negate){M("Found audience",e),a++;break}break;case"urlpattern":d=new URL(w||window.location.href),M("Processing urlpattern against",d.pathname);for(const e of i.data.pattern){let t=null;if(t=new RegExp(e.replace("*",".*"),"i").exec(d.pathname),t&&1!=i.negate){M("URL pattern match",e),a++;break}}break;case"hostname":d=new URL(w||window.location.href),M("Processing host name against",d.hostname);for(const e of i.data.host)if(e.toLowerCase()==d.hostname.toLowerCase()&&1!=i.negate){M("Host name match",e),a++;break}break;case"metatag":M("Processing meta tags",S);e:for(const e of S)for(const t of i.data.meta)if(e.name==t.name&&e.content==t.value&&1!=i.negate){M("Meta tag match",e),a++;break e}break;case"referrer":var g=document.referrer.toLowerCase(),y=i.data.referrer,L="";if(b&&(g=x||""),k.referrer&&(M("Using profile referrer",k.referrer),g=k.referrer),M("Processing referrer",g),g&&g.length>0)for(const e of y)if(L=e.name.toLowerCase(),-1!==g.indexOf(L)&&1!=i.negate){M("Found referrer",i),a++;break}break;case"adblock":if("boolean"!=typeof n)if(window?.dataLayer.find((e=>"tncms.ad.blocked"===e?.event)))M("Ad blocking detected by BLOX core"),n=!0;else try{n=await(0,e.detectAnyAdblocker)(),M("Ad blocker detected?",n)}catch(e){M("Failed to detect ad blocking state",e),n=!1}n!=(1==i.negate)&&a++;break;case"incognito":var C=1==i.negate;if("boolean"!=typeof r)try{if(k.incognito)M("Using profile incognito mode",!0),r=!0;else{let e=await(0,tt.r)();r=e.isPrivate,r&&M("Private browsing mode detected")}}catch(e){r=!1,M("Private mode detection failed",e)}r!=C&&a++;break;case"custom":M("Processing custom",i.name);let V=null;try{V=new Function(i.data.javascript)()}catch(e){M("Custom function did not execute properly",e)}"boolean"!=typeof V?M("Custom function did not return a boolean",V):!0===V&&1!=i.negate?(M("Custom JS requires access"),a++):!1===V&&1==i.negate&&(M("Custom JS requires access (negated)"),a++);break;default:f[c.id]&&-1!==f[c.id].indexOf(i.id)&&(M("Criteria matched",i),a++)}if(M("Total criteria processed: ",h),M("Total matching criteria: ",a),h&&h==a){M("Access required"),i=I.call(this,c);break}}i.required&&i.offer_config.redirect_url&&i.offer_config.redirect_url.length&&!(history.state||history.state&&history.state.redirected)&&(history.pushState({redirected:!0},"OfferRedirect"),location=i.offer_config.redirect_url),v.call(this,i)}function I(e){var n={required:!1,access_rule:{},access_methods:[],access_meter:null};let r=[];for(const i of e.methods){if(M("Examining access method",i),"meter"==i.type&&m){const e=s.find((e=>e.id==i.id));if(!e)continue;M("Examining meter",e);const r=t.getViews(i.id);if(M("Meter applies at limit ",e.meter),M("Current count",r),t.inAssetList(m))return n.access_meter=e,M("Asset already viewed, allowing access",n),n.granting_method=i,n;if(r>=e.meter){M("Views exceeded meter limit");continue}return t.updateMeters([e.id]),t.saveAssetToList(m),n.access_meter=e,n.access_meter.count=r+1,M("Access provided by meter",n),n.granting_method=i,n}if(-1!==h.indexOf(i.id))return M("Access provided by method",i),n.granting_method=i,n;if("customjavascript"==i.type)try{let e=new Function(i.metadata.js)();if(e&&e.has_access)return M("Access provided by custom javascript method",i),n.granting_method=i,n;i.hidden||(i.response=e.data||{},r.push(i),M("Added access method",i))}catch(e){M("Custom javascript method did not execute properly",e)}else i.hidden||(r.push(i),M("Added access method",i))}var i={required:!0,access_rule:e,access_methods:r,granting_method:null,offer_config:e.offer_config||{}};return M("Access response",i),i}y=C("tncms-access-version");var P=function(e){if(!e.url||!e.success)throw"Missing URL or handler";function t(e){e.target.status>=400?"function"==typeof this.failure&&this.failure.call(this.scope,this):"function"==typeof this.success&&this.success.call(this.scope,this)}function n(e){"function"==typeof this.failure&&this.failure.call(this.scope,e)}return{send:function(){this.request=new XMLHttpRequest,this.request.success=e.success,this.request.failure=e.failure,this.request.scope=e.scope||this,this.request.addEventListener("load",t),this.request.addEventListener("error",n);var r="",i=document.location.pathname.match(/.+?\/tncms\/admin\/action\/main\/preview\/site\//),o=document.location.hostname;if(i&&(o+=i[0]+"-"),r="https://"+o+"/tncms/access/"+e.url,e.params){var a=[];for(var s in e.params)a.push(s+"="+encodeURIComponent(e.params[s]));r+="?"+a.join("&")}if(this.request.open(e.method||"GET",r,!0),e.headers&&e.headers.length)for(var c=null,u=0;u0?M("Audiences already initialized",u):(u=e||[],M("Setting audiences",e),W.call(this))},initializeExternal:function(e){if(b=!0,e){if(e.referrer&&M("Set external referrer",x=e.referrer),e.metaTags){M("Set external meta tags",S=e.metaTags);for(let e=0;ee.json())).then((e=>{n=e})),n.rules&&n.rules.length)for(;r