UNPKG

@meta-track/core

Version:
6 lines 215 kB
(function(S){"use strict";function cr(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function bc(e){if(Array.isArray(e))return e}function yc(e){if(Array.isArray(e))return cr(e)}function Na(e,n,t,r,a,i,c){try{var s=e[i](c),l=s.value}catch(o){return void t(o)}s.done?n(l):Promise.resolve(l).then(r,a)}function _c(e){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=e.apply(n,t);function c(l){Na(i,r,a,c,s,"next",l)}function s(l){Na(i,r,a,c,s,"throw",l)}c(void 0)})}}function me(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Da(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Za(r.key),r)}}function ve(e,n,t){return n&&Da(e.prototype,n),t&&Da(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lr(e,n){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=dr(e))||n&&e&&typeof e.length=="number"){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,c=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return c=l.done,l},e:function(l){s=!0,i=l},f:function(){try{c||t.return==null||t.return()}finally{if(s)throw i}}}}function k(e,n,t){return(n=Za(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ic(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wc(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r,a,i,c,s=[],l=!0,o=!1;try{if(i=(t=t.call(e)).next,n===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(u){o=!0,a=u}finally{try{if(!l&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(o)throw a}}return s}}function Cc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ba(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Ba(Object(t),!0).forEach(function(r){k(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ba(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function ur(){ur=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(g,v,E,O){Object.defineProperty(g,v,{value:E,enumerable:!O,configurable:!O,writable:!O})}try{l({},"")}catch{l=function(v,E,O){return v[E]=O}}function o(g,v,E,O){var A=v&&v.prototype instanceof h?v:h,B=Object.create(A.prototype);return l(B,"_invoke",function(H,ne,Z){var q=1;return function(ee,le){if(q===3)throw Error("Generator is already running");if(q===4){if(ee==="throw")throw le;return{value:e,done:!0}}for(Z.method=ee,Z.arg=le;;){var te=Z.delegate;if(te){var qe=R(te,Z);if(qe){if(qe===d)continue;return qe}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(q===1)throw q=4,Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);q=3;var ge=u(H,ne,Z);if(ge.type==="normal"){if(q=Z.done?4:2,ge.arg===d)continue;return{value:ge.arg,done:Z.done}}ge.type==="throw"&&(q=4,Z.method="throw",Z.arg=ge.arg)}}}(g,E,new x(O||[])),!0),B}function u(g,v,E){try{return{type:"normal",arg:g.call(v,E)}}catch(O){return{type:"throw",arg:O}}}n.wrap=o;var d={};function h(){}function f(){}function p(){}var I={};l(I,i,function(){return this});var w=Object.getPrototypeOf,m=w&&w(w(L([])));m&&m!==t&&r.call(m,i)&&(I=m);var b=p.prototype=h.prototype=Object.create(I);function _(g){["next","throw","return"].forEach(function(v){l(g,v,function(E){return this._invoke(v,E)})})}function y(g,v){function E(A,B,H,ne){var Z=u(g[A],g,B);if(Z.type!=="throw"){var q=Z.arg,ee=q.value;return ee&&typeof ee=="object"&&r.call(ee,"__await")?v.resolve(ee.__await).then(function(le){E("next",le,H,ne)},function(le){E("throw",le,H,ne)}):v.resolve(ee).then(function(le){q.value=le,H(q)},function(le){return E("throw",le,H,ne)})}ne(Z.arg)}var O;l(this,"_invoke",function(A,B){function H(){return new v(function(ne,Z){E(A,B,ne,Z)})}return O=O?O.then(H,H):H()},!0)}function R(g,v){var E=v.method,O=g.i[E];if(O===e)return v.delegate=null,E==="throw"&&g.i.return&&(v.method="return",v.arg=e,R(g,v),v.method==="throw")||E!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+E+"' method")),d;var A=u(O,g.i,v.arg);if(A.type==="throw")return v.method="throw",v.arg=A.arg,v.delegate=null,d;var B=A.arg;return B?B.done?(v[g.r]=B.value,v.next=g.n,v.method!=="return"&&(v.method="next",v.arg=e),v.delegate=null,d):B:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,d)}function M(g){this.tryEntries.push(g)}function C(g){var v=g[4]||{};v.type="normal",v.arg=e,g[4]=v}function x(g){this.tryEntries=[[-1]],g.forEach(M,this),this.reset(!0)}function L(g){if(g!=null){var v=g[i];if(v)return v.call(g);if(typeof g.next=="function")return g;if(!isNaN(g.length)){var E=-1,O=function A(){for(;++E<g.length;)if(r.call(g,E))return A.value=g[E],A.done=!1,A;return A.value=e,A.done=!0,A};return O.next=O}}throw new TypeError(typeof g+" is not iterable")}return f.prototype=p,l(b,"constructor",p),l(p,"constructor",f),l(p,s,f.displayName="GeneratorFunction"),n.isGeneratorFunction=function(g){var v=typeof g=="function"&&g.constructor;return!!v&&(v===f||(v.displayName||v.name)==="GeneratorFunction")},n.mark=function(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,p):(g.__proto__=p,l(g,s,"GeneratorFunction")),g.prototype=Object.create(b),g},n.awrap=function(g){return{__await:g}},_(y.prototype),l(y.prototype,c,function(){return this}),n.AsyncIterator=y,n.async=function(g,v,E,O,A){A===void 0&&(A=Promise);var B=new y(o(g,v,E,O),A);return n.isGeneratorFunction(v)?B:B.next().then(function(H){return H.done?H.value:B.next()})},_(b),l(b,s,"Generator"),l(b,i,function(){return this}),l(b,"toString",function(){return"[object Generator]"}),n.keys=function(g){var v=Object(g),E=[];for(var O in v)E.unshift(O);return function A(){for(;E.length;)if((O=E.pop())in v)return A.value=O,A.done=!1,A;return A.done=!0,A}},n.values=L,x.prototype={constructor:x,reset:function(g){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!g)for(var v in this)v.charAt(0)==="t"&&r.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=e)},stop:function(){this.done=!0;var g=this.tryEntries[0][4];if(g.type==="throw")throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var v=this;function E(q){B.type="throw",B.arg=g,v.next=q}for(var O=v.tryEntries.length-1;O>=0;--O){var A=this.tryEntries[O],B=A[4],H=this.prev,ne=A[1],Z=A[2];if(A[0]===-1)return E("end"),!1;if(!ne&&!Z)throw Error("try statement without catch or finally");if(A[0]!=null&&A[0]<=H){if(H<ne)return this.method="next",this.arg=e,E(ne),!0;if(H<Z)return E(Z),!1}}},abrupt:function(g,v){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O[0]>-1&&O[0]<=this.prev&&this.prev<O[2]){var A=O;break}}A&&(g==="break"||g==="continue")&&A[0]<=v&&v<=A[2]&&(A=null);var B=A?A[4]:{};return B.type=g,B.arg=v,A?(this.method="next",this.next=A[2],d):this.complete(B)},complete:function(g,v){if(g.type==="throw")throw g.arg;return g.type==="break"||g.type==="continue"?this.next=g.arg:g.type==="return"?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):g.type==="normal"&&v&&(this.next=v),d},finish:function(g){for(var v=this.tryEntries.length-1;v>=0;--v){var E=this.tryEntries[v];if(E[2]===g)return this.complete(E[4],E[3]),C(E),d}},catch:function(g){for(var v=this.tryEntries.length-1;v>=0;--v){var E=this.tryEntries[v];if(E[0]===g){var O=E[4];if(O.type==="throw"){var A=O.arg;C(E)}return A}}throw Error("illegal catch attempt")},delegateYield:function(g,v,E){return this.delegate={i:L(g),r:v,n:E},this.method==="next"&&(this.arg=e),d}},n}function Ac(e,n){return bc(e)||wc(e,n)||dr(e,n)||Cc()}function An(e){return yc(e)||Ic(e)||dr(e)||Sc()}function kc(e,n){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Za(e){var n=kc(e,"string");return typeof n=="symbol"?n:n+""}function Fe(e){return Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fe(e)}function dr(e,n){if(e){if(typeof e=="string")return cr(e,n);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?cr(e,n):void 0}}function ot(e){return function(n){return Object.prototype.toString.call(n)==="[object ".concat(e,"]")}}var fr=ot("RegExp"),Ec=ot("Number"),xc=ot("String"),Rc=ot("Boolean"),Tc=ot("Function"),kn=ot("Array"),Lc=ot("Window"),hr=function(n){return Rc(n)&&String(n)==="false"};function Oc(e){return xc(e)&&e.trim()===""||e===void 0||e===null}var pr,gr,mr,Mc=Lc(typeof window<"u"?window:0),Fc=!!((pr=window)!==null&&pr!==void 0&&(gr=pr.process)!==null&&gr!==void 0&&(mr=gr.versions)!==null&&mr!==void 0&&mr.electron),vr=typeof navigator<"u"&&navigator.userAgent.includes("jsdom")||typeof window<"u"&&window.jsdom;function Ua(){return Mc||Fc||vr?window:{}}function Nc(){return N.__metaTrack__=N.__metaTrack__||{},N.__metaTrack__}function Dc(){return!!N.__metaTrackInit__}var N=Ua(),Ce=Nc(),st=function(){function e(){me(this,e),k(this,"subs",new Set)}return ve(e,[{key:"addSub",value:function(){e.target&&this.subs.add(e.target)}},{key:"notify",value:function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];this.subs.forEach(function(i){i.proxy.dirty=!0,i.update.apply(i,r)})}}])}();k(st,"target",void 0);var br="__metatrackobserver__";function Bc(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Zc=function(){function e(n){me(this,e),k(this,"target",void 0),this.target=n}return ve(e,[{key:"defineReactive",value:function(){var t=new st,r=Uc(function(){t.addSub()},function(a){t.notify(a)});return new Proxy(this.target,r)}}])}();function Uc(e,n){var t=new WeakMap,r={get:function(i,c,s){var l=Reflect.get(i,c,s);if(e&&e(),Fe(l)==="object"&&l!==null&&!Bc(l)){var o=t.get(l);return o||(o=new Proxy(l,r),t.set(l,o)),o}return l},set:function(i,c,s,l){var o=Reflect.get(i,c,l);if(o===s)return o;var u=JSON.parse(JSON.stringify(i)),d=Reflect.set(i,c,s,l);return n&&n(u),d}};return r}var zc=new WeakMap;function Wc(e){var n={value:e};n[br]=!0;var t=new Zc(n),r=t.defineReactive();return zc.set(t,r),r}function Pc(e){return!!e[br]}var za=[];function Wa(e){st.target&&za.push(st.target),st.target=e}function Pa(){st.target=za.pop()}var Ga=function(){function e(n,t,r){me(this,e),k(this,"vm",void 0),k(this,"computed",void 0),k(this,"watch",void 0),k(this,"proxy",void 0),k(this,"dep",void 0),k(this,"getter",void 0),k(this,"callback",void 0);var a=t.computed,i=t.watch,c=t.callback;this.getter=r,this.computed=a||!1,this.watch=i||!1,this.callback=c,this.proxy={value:"",dirty:!0},this.vm=n,a?this.dep=new st:i?this.watchGet():this.get()}return ve(e,[{key:"update",value:function(t){this.computed?this.dep.notify():this.watch?t!==this.proxy.value&&this.callback&&this.callback(this.proxy.value,t):this.get()}},{key:"get",value:function(){Wa(this);var t=this.computed?Va.get(this.vm).call(this.vm):"";return t!==this.proxy.value&&(this.proxy.dirty=!1,this.proxy.value=t),Pa(),t}},{key:"watchGet",value:function(){Wa(this),this.proxy.dirty=!1,this.getter&&(this.proxy.value=this.getter()),Pa()}},{key:"depend",value:function(){this.dep.addSub()}}])}(),Gc=function(){function e(n){me(this,e),k(this,"target",void 0),this.target=n}return ve(e,[{key:"defineReactive",value:function(){var t=new Ga(this,{computed:!0}),r={get:function(){return t.proxy.dirty?(t.depend(),t.get()):(t.depend(),t.proxy.value)}};return new Proxy(this.target,r)}}])}(),Va=new WeakMap;function Vc(e){var n={value:0};n[br]=!0;var t=new Gc(n),r=t.defineReactive();return Va.set(t,e),r}function Hc(e,n){new Ga("",{watch:!0,callback:e},n)}function jc(e,n){Pc(e)&&Hc(function(t,r){n(t,r)},function(){return e.value})}function yr(){return!!window.Proxy}function Xc(e){return yr()?Wc(e):{value:e}}function Ha(e){return yr()?Vc(e):{value:e()}}function Yc(e,n){return yr()?jc(e,n):function(){return{}}}var Kc=function(){function e(n){me(this,e),k(this,"dsn",""),k(this,"appName",""),k(this,"appCode",""),k(this,"appVersion",""),k(this,"userUuid",""),k(this,"sdkUserUuid",""),k(this,"debug",!1),k(this,"pv",{core:!1}),k(this,"performance",{core:!1,firstResource:!1,server:!1}),k(this,"error",{core:!1,server:!1}),k(this,"event",{core:!1}),k(this,"recordScreen",!0),k(this,"ext",{}),k(this,"tracesSampleRate",1),k(this,"cacheMaxLength",5),k(this,"cacheWatingTime",5e3),k(this,"ignoreErrors",[]),k(this,"ignoreRequest",[]),k(this,"scopeError",!1),k(this,"localization",!1),k(this,"sendTypeByXmlBody",!1),k(this,"beforePushEventList",[]),k(this,"beforeSendData",[]),k(this,"afterSendData",[]),k(this,"localizationOverFlow",function(){});var t=this.transitionOptions(n);t.ignoreRequest.push(new RegExp(t.dsn)),En(this,t)}return ve(e,[{key:"transitionOptions",value:function(t){var r=En({},this,t),a=t.beforePushEventList,i=t.beforeSendData,c=t.afterSendData,s=r.pv,l=r.performance,o=r.error,u=r.event;return typeof s=="boolean"&&(r.pv={core:s}),typeof l=="boolean"&&(r.performance={core:l,firstResource:l,server:l}),typeof o=="boolean"&&(r.error={core:o,server:o}),typeof u=="boolean"&&(r.event={core:u}),a&&(r.beforePushEventList=[a]),i&&(r.beforeSendData=[i]),c&&(r.afterSendData=[c]),r}}])}();function Jc(e){var n=e.dsn,t=e.appName,r=e.appCode,a=e.appVersion,i=e.userUuid,c=e.debug,s=e.recordScreen,l=e.pv,o=e.performance,u=e.error,d=e.event,h=e.ext,f=e.tracesSampleRate,p=e.cacheMaxLength,I=e.cacheWatingTime,w=e.ignoreErrors,m=e.ignoreRequest,b=e.scopeError,_=e.localization,y=e.sendTypeByXmlBody,R=e.beforePushEventList,M=e.beforeSendData,C=[];l&&Fe(l)==="object"?C.push(Y(l.core,"pv.core","boolean")):C.push(Y(l,"pv","boolean")),o&&Fe(o)==="object"?C.push(Y(o.core,"performance.core","boolean"),Y(o.firstResource,"performance.firstResource","boolean"),Y(o.server,"performance.server","boolean")):C.push(Y(o,"performance","boolean")),u&&Fe(u)==="object"?C.push(Y(u.core,"error.core","boolean"),Y(u.server,"error.server","boolean")):C.push(Y(u,"error","boolean")),d&&Fe(d)==="object"?C.push(Y(d.core,"event.core","boolean")):C.push(Y(d,"event","boolean"));var x=[Y(n,"dsn","string"),Y(t,"appName","string"),Y(r,"appCode","string"),Y(a,"appVersion","string"),Y(i,"userUuid","string"),Y(c,"debug","boolean"),Y(s,"recordScreen","boolean"),Y(h,"ext","object"),Y(f,"tracesSampleRate","number"),Y(p,"cacheMaxLength","number"),Y(I,"cacheWatingTime","number"),Y(w,"ignoreErrors","array"),Xa(w,"ignoreErrors",["string","regexp"]),Y(m,"ignoreRequest","array"),Xa(m,"ignoreRequest",["string","regexp"]),Y(b,"scopeError","boolean"),Y(_,"localization","boolean"),Y(y,"sendTypeByXmlBody","boolean"),Y(R,"beforePushEventList","function"),Y(M,"beforeSendData","function")];return x.every(function(L){return!!L})}function qc(e){var n=[ja(e.appName,"appName"),ja(e.dsn,"dsn")];return n.every(function(t){return!!t})}function ja(e,n){return Oc(e)?(ct("\u3010".concat(n,"\u3011\u53C2\u6570\u5FC5\u586B")),!1):!0}function Y(e,n,t){return!e||wt(e)===t?!0:(ct("TypeError:\u3010".concat(n,"\u3011\u671F\u671B\u4F20\u5165").concat(t,"\u7C7B\u578B\uFF0C\u76EE\u524D\u662F").concat(wt(e),"\u7C7B\u578B")),!1)}function Xa(e,n,t){if(!e)return!0;var r=!0;return e.forEach(function(a){t.includes(wt(a))||(ct("TypeError:\u3010".concat(n,"\u3011\u6570\u7EC4\u5185\u7684\u503C\u671F\u671B\u4F20\u5165").concat(t.join("|"),"\u7C7B\u578B\uFF0C\u76EE\u524D\u503C").concat(a,"\u662F").concat(wt(a),"\u7C7B\u578B")),r=!1)}),r}S.options=void 0;function Qc(e){return!qc(e)||!Jc(e)?!1:(S.options=Xc(new Kc(e)),Ce.options=S.options,!0)}function _t(){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];S.options.value.debug&&(e=console).log.apply(e,["@meta-track: "].concat(t))}function ct(){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];(e=console).error.apply(e,["@meta-track: "].concat(t))}function Te(e,n,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(n,t,r)}function It(e,n,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e!==void 0&&(n in e||r)){var a=e[n],i=t(a);Tc(i)&&(e[n]=i)}}function Xt(e){return Object.keys(e).forEach(function(n){var t=e[n];Ec(t)&&(e[n]=t===0?void 0:parseFloat(t.toFixed(2)))}),e}function Ae(){return typeof document>"u"||document.location==null?"":document.location.href}function K(){return Date.now()}function Ya(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=null,a;return function(){for(var i=this,c=arguments.length,s=new Array(c),l=0;l<c;l++)s[l]=arguments[l];a=s,r===null&&(t&&e.apply(this,a),r=setTimeout(function(){r=null,e.apply(i,a)},n))}}function $c(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=null;return function(){for(var a=this,i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];t&&(e.call.apply(e,[this].concat(c)),t=!1),r&&clearTimeout(r),r=setTimeout(function(){e.call.apply(e,[a].concat(c))},n)}}function _r(e){for(var n=new Map,t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];var i=lr(e),c;try{var s=function(){var o=c.value,u=r.filter(function(d){return o[d]}).map(function(d){return o[d]}).join(":");n.has(u)||n.set(u,[]),n.get(u).push(o)};for(i.s();!(c=i.n()).done;)s()}catch(l){i.e(l)}finally{i.f()}return Array.from(n.values())}function En(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return t.forEach(function(a){for(var i in a)a[i]!==null&&fr(a[i])?e[i]=a[i]:a[i]!==null&&Fe(a[i])==="object"?e[i]=En(e[i]||(kn(a[i])?[]:{}),a[i]):e[i]=a[i]}),e}function fe(e){return Dc()?!0:(ct("".concat(e," \u9700\u8981\u5728SDK\u521D\u59CB\u5316\u4E4B\u540E\u4F7F\u7528")),!1)}function wt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ct(e,n){return e in n}function el(e){return Math.random()<=e}function St(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);if(r.length<n){for(var a=r,i=0;i<n-r.length;i+=1)a=t+a;return a}return r}function tl(e){return e.split("?")[0]}function Ir(){for(var e=new Date,n=parseInt("".concat(e.getFullYear()).concat(St(e.getMonth()+1,2)).concat(St(e.getDate(),2)),10).toString(16),t=parseInt("".concat(St(e.getHours(),2)).concat(St(e.getMinutes(),2)).concat(St(e.getSeconds(),2)).concat(St(e.getMilliseconds(),3)),10).toString(16),r=n+t.length+t;r.length<32;)r+=Math.floor(Math.random()*16).toString(16);return"".concat(r.slice(0,8),"-").concat(r.slice(8,16),"-").concat(r.slice(16))}function wr(e){var n=document.cookie.match(new RegExp("".concat(e,"=([^;]+)(;|$)")));return n?n[1]:void 0}function nl(e,n){return navigator.sendBeacon(e,JSON.stringify(n))}var xn=[];function rl(e,n){return new Promise(function(t){var r=new Image;r.src="".concat(e,"?v=").concat(encodeURIComponent(JSON.stringify(n))),xn.push(r),r.onload=function(){t()},r.onerror=function(){t()}})}function al(e,n){return new Promise(function(t){var r=new XMLHttpRequest;r.open("post",e),r.setRequestHeader("content-type","application/json"),r.send(JSON.stringify(n)),r.onreadystatechange=function(){r.readyState===4&&t()}})}function Rn(e,n,t){if(e.length===0)return t;for(var r=void 0,a=0;a<e.length;a++){var i=e[a];a===0||n?r=i(t):r=i(r)}return r}function Cr(e){return kn(e)?e:[e]}var il=Array.prototype.map||function(n){for(var t=[],r=0;r<this.length;r+=1)t.push(n(this[r],r,this));return t};function Ka(e,n){return il.call(e,n)}var ol=Array.prototype.filter||function(n){for(var t=[],r=0;r<this.length;r+=1)n(this[r],r,this)&&t.push(this[r]);return t};function sl(e,n){return ol.call(e,n)}var cl=window.requestIdleCallback||window.requestAnimationFrame||function(e){return setTimeout(e,17)};function Ja(e,n){var t=JSON.stringify(e),r=new TextEncoder().encode(t).length,a=r/1024;return a>n}function Sr(e){var n={},t=e.split("?")[1];if(t){var r=t.split("&"),a=lr(r),i;try{for(a.s();!(i=a.n()).done;){var c=i.value,s=c.split("="),l=Ac(s,2),o=l[0],u=l[1];n[decodeURIComponent(o)]=decodeURIComponent(u)}}catch(d){a.e(d)}finally{a.f()}}return n}function Ar(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map;if(e!==null&&Fe(e)==="object"){var t=n.get(e);return t||(e instanceof Array?(t=[],n.set(e,t),e.forEach(function(r,a){t[a]=Ar(r,n)})):(t={},n.set(e,t),Object.keys(e).forEach(function(r){Ct(r,e)&&(t[r]=Ar(e[r],n))})),t)}return e}function ie(e){if(!e)return"";var n=new Date(e),t=function(u){return u.toString().padStart(2,"0")},r=n.getFullYear(),a=t(n.getMonth()+1),i=t(n.getDate()),c=t(n.getHours()),s=t(n.getMinutes()),l=t(n.getSeconds());return"".concat(r,"-").concat(a,"-").concat(i," ").concat(c,":").concat(s,":").concat(l)}var ll="1.0.4",qa="_meta_track_device_id",kr="_meta_track_session_id",ul=18e5,Er="_meta_track_localization_key",dl=ll,T=function(e){return e.ERROR="error",e.CONSOLEERROR="consoleError",e.UNHANDLEDREJECTION="unhandledrejection",e.CLICK="click",e.LOAD="load",e.BEFOREUNLOAD="beforeunload",e.FETCH="fetch",e.XHROPEN="xhr-open",e.XHRSEND="xhr-send",e.HASHCHANGE="hashchange",e.HISTORYPUSHSTATE="history-pushState",e.HISTORYREPLACESTATE="history-replaceState",e.POPSTATE="popstate",e.READYSTATECHANGE="readystatechange",e.ONLINE="online",e.OFFLINE="offline",e}(T||{}),ke=function(e){return e.PV="pv",e.PVDURATION="pv-duration",e.ERROR="error",e.PERFORMANCE="performance",e.CLICK="click",e.DWELL="dwell",e.CUSTOM="custom",e.INTERSECTION="intersection",e}(ke||{}),oe=function(e){return e.PAGE="page",e.RESOURCE="resource",e.SERVER="server",e.CODE="code",e.REJECT="reject",e.CONSOLEERROR="console.error",e}(oe||{}),fl={0:"navigate",1:"reload",2:"back_forward",255:"reserved"},hl=function(){function e(){me(this,e),k(this,"handlers",void 0),this.handlers={}}return ve(e,[{key:"addEvent",value:function(t){!this.handlers[t.type]&&(this.handlers[t.type]=[]);var r=this._getCallbackIndex(t);if(r===-1){var a;(a=this.handlers[t.type])===null||a===void 0||a.push(t.callback)}}},{key:"delEvent",value:function(t){var r=this._getCallbackIndex(t);if(r!==-1){var a;(a=this.handlers[t.type])===null||a===void 0||a.splice(r,1)}}},{key:"changeEvent",value:function(t,r){var a=this._getCallbackIndex(t);if(a!==-1){var i;(i=this.handlers[t.type])===null||i===void 0||i.splice(a,1,r)}}},{key:"getEvent",value:function(t){return this.handlers[t]||[]}},{key:"runEvent",value:function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];var c=this.getEvent(t);c.forEach(function(s){s.apply(void 0,a)})}},{key:"_getCallbackIndex",value:function(t){if(this.handlers[t.type]){var r=this.handlers[t.type];return r?r.findIndex(function(a){return a===t.callback}):-1}else return-1}}])}(),U=Ce.eventBus||(Ce.eventBus=new hl);function pl(){for(var e in T)Ct(e,T)&&gl(e)}function gl(e){if(Ct(e,T)){var n=T[e];switch(n){case T.ERROR:ml(T.ERROR);break;case T.UNHANDLEDREJECTION:vl(T.UNHANDLEDREJECTION);break;case T.CONSOLEERROR:bl(T.CONSOLEERROR);break;case T.CLICK:yl(T.CLICK);break;case T.LOAD:_l(T.LOAD);break;case T.BEFOREUNLOAD:Il(T.BEFOREUNLOAD);break;case T.XHROPEN:wl(T.XHROPEN);break;case T.XHRSEND:Cl(T.XHRSEND);break;case T.FETCH:Sl(T.FETCH);break;case T.HASHCHANGE:Al(T.HASHCHANGE);break;case T.HISTORYPUSHSTATE:El(T.HISTORYPUSHSTATE);break;case T.HISTORYREPLACESTATE:kl(T.HISTORYREPLACESTATE);break;case T.POPSTATE:xl(T.POPSTATE);break;case T.OFFLINE:Rl(T.OFFLINE);break;case T.ONLINE:Tl(T.ONLINE);break}}}function ml(e){Te(N,"error",function(n){U.runEvent(e,n)},!0)}function vl(e){Te(N,"unhandledrejection",function(n){U.runEvent(e,n)})}function bl(e){It(console,"error",function(n){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];r[0]&&r[0].slice&&r[0].slice(0,12)==="@web-tracing"||U.runEvent(e,r),n.apply(this,r)}})}function yl(e){if("document"in N){var n=Ya(U.runEvent,100,!0);Te(N.document,"click",function(t){n.call(U,e,t)},!0)}}function _l(e){Te(N,"load",function(n){U.runEvent(e,n)},!0)}function Il(e){Te(N,"beforeunload",function(n){U.runEvent(e,n)},!1)}function wl(e){"XMLHttpRequest"in N&&It(XMLHttpRequest.prototype,"open",function(n){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];U.runEvent.apply(U,[e].concat(r)),n.apply(this,r)}})}function Cl(e){"XMLHttpRequest"in N&&It(XMLHttpRequest.prototype,"send",function(n){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];U.runEvent.apply(U,[e,this].concat(r)),n.apply(this,r)}})}function Sl(e){"fetch"in N&&It(N,"fetch",function(n){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var i=K(),c={};return n.apply(N,r).then(function(s){return U.runEvent(e,r[0],r[1],s,i,c),s})}})}function Al(e){Te(N,"hashchange",function(n){U.runEvent(e,n)})}function kl(e){"history"in N&&"pushState"in N.history&&It(N.history,"replaceState",function(n){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];U.runEvent.apply(U,[e].concat(r)),n.apply(this,r)}})}function El(e){"history"in N&&"pushState"in N.history&&It(N.history,"pushState",function(n){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];U.runEvent.apply(U,[e].concat(r)),n.apply(this,r)}})}function xl(e){Te(N,"popstate",function(n){U.runEvent(e,n)})}function Rl(e){Te(N,"offline",function(n){U.runEvent(e,n)},!0)}function Tl(e){Te(N,"online",function(n){U.runEvent(e,n)},!0)}var xr=function(){return xr=Object.assign||function(n){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},xr.apply(this,arguments)};function He(e,n,t,r){return new(t||(t=Promise))(function(a,i){function c(o){try{l(r.next(o))}catch(u){i(u)}}function s(o){try{l(r.throw(o))}catch(u){i(u)}}function l(o){var u;o.done?a(o.value):(u=o.value,u instanceof t?u:new t(function(d){d(u)})).then(c,s)}l((r=r.apply(e,n||[])).next())})}function Ze(e,n){var t,r,a,i,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(o){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(c=0)),c;)try{if(t=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,r=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(a=c.trys,!((a=a.length>0&&a[a.length-1])||u[0]!==6&&u[0]!==2)){c=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){c.label=u[1];break}if(u[0]===6&&c.label<a[1]){c.label=a[1],a=u;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(u);break}a[2]&&c.ops.pop(),c.trys.pop();continue}u=n.call(e,c)}catch(d){u=[6,d],r=0}finally{t=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([l,o])}}}function At(e,n,t){if(t||arguments.length===2)for(var r,a=0,i=n.length;a<i;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}function je(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function Qa(e){return!!e&&typeof e.then=="function"}function $a(e,n){try{var t=e();Qa(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(r){n(!1,r)}}function ei(e,n,t){return t===void 0&&(t=16),He(this,void 0,void 0,function(){var r,a,i;return Ze(this,function(c){switch(c.label){case 0:r=Date.now(),a=0,c.label=1;case 1:return a<e.length?(n(e[a],a),(i=Date.now())>=r+t?(r=i,[4,je(0)]):[3,3]):[3,4];case 2:c.sent(),c.label=3;case 3:return++a,[3,1];case 4:return[2]}})})}function Tn(e){e.then(void 0,function(){})}function Qe(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];var t=[0,0,0,0];return t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]+n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function Le(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];var t=[0,0,0,0];return t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=65535,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function kt(e,n){return(n%=64)===32?[e[1],e[0]]:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function Ee(e,n){return(n%=64)===0?e:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function Q(e,n){return[e[0]^n[0],e[1]^n[1]]}function ti(e){return e=Q(e,[0,e[0]>>>1]),e=Q(e=Le(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=Q(e=Le(e,[3301882366,444984403]),[0,e[0]>>>1])}function Ll(e,n){n=n||0;var t,r=(e=e||"").length%16,a=e.length-r,i=[0,n],c=[0,n],s=[0,0],l=[0,0],o=[2277735313,289559509],u=[1291169091,658871167];for(t=0;t<a;t+=16)s=[255&e.charCodeAt(t+4)|(255&e.charCodeAt(t+5))<<8|(255&e.charCodeAt(t+6))<<16|(255&e.charCodeAt(t+7))<<24,255&e.charCodeAt(t)|(255&e.charCodeAt(t+1))<<8|(255&e.charCodeAt(t+2))<<16|(255&e.charCodeAt(t+3))<<24],l=[255&e.charCodeAt(t+12)|(255&e.charCodeAt(t+13))<<8|(255&e.charCodeAt(t+14))<<16|(255&e.charCodeAt(t+15))<<24,255&e.charCodeAt(t+8)|(255&e.charCodeAt(t+9))<<8|(255&e.charCodeAt(t+10))<<16|(255&e.charCodeAt(t+11))<<24],s=kt(s=Le(s,o),31),i=Qe(i=kt(i=Q(i,s=Le(s,u)),27),c),i=Qe(Le(i,[0,5]),[0,1390208809]),l=kt(l=Le(l,u),33),c=Qe(c=kt(c=Q(c,l=Le(l,o)),31),i),c=Qe(Le(c,[0,5]),[0,944331445]);switch(s=[0,0],l=[0,0],r){case 15:l=Q(l,Ee([0,e.charCodeAt(t+14)],48));case 14:l=Q(l,Ee([0,e.charCodeAt(t+13)],40));case 13:l=Q(l,Ee([0,e.charCodeAt(t+12)],32));case 12:l=Q(l,Ee([0,e.charCodeAt(t+11)],24));case 11:l=Q(l,Ee([0,e.charCodeAt(t+10)],16));case 10:l=Q(l,Ee([0,e.charCodeAt(t+9)],8));case 9:l=Le(l=Q(l,[0,e.charCodeAt(t+8)]),u),c=Q(c,l=Le(l=kt(l,33),o));case 8:s=Q(s,Ee([0,e.charCodeAt(t+7)],56));case 7:s=Q(s,Ee([0,e.charCodeAt(t+6)],48));case 6:s=Q(s,Ee([0,e.charCodeAt(t+5)],40));case 5:s=Q(s,Ee([0,e.charCodeAt(t+4)],32));case 4:s=Q(s,Ee([0,e.charCodeAt(t+3)],24));case 3:s=Q(s,Ee([0,e.charCodeAt(t+2)],16));case 2:s=Q(s,Ee([0,e.charCodeAt(t+1)],8));case 1:s=Le(s=Q(s,[0,e.charCodeAt(t)]),o),i=Q(i,s=Le(s=kt(s,31),u))}return i=Qe(i=Q(i,[0,e.length]),c=Q(c,[0,e.length])),c=Qe(c,i),i=Qe(i=ti(i),c=ti(c)),c=Qe(c,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function Rr(e){return parseInt(e)}function Ne(e){return parseFloat(e)}function Xe(e,n){return typeof e=="number"&&isNaN(e)?n:e}function De(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function ni(e,n){if(n===void 0&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function ri(e){return e&&Fe(e)=="object"&&"message"in e?e:{message:e}}function Ol(e){return typeof e!="function"}function Ml(e,n,t){var r=Object.keys(e).filter(function(i){return!function(c,s){for(var l=0,o=c.length;l<o;++l)if(c[l]===s)return!0;return!1}(t,i)}),a=Array(r.length);return ei(r,function(i,c){a[c]=function(s,l){var o=new Promise(function(u){var d=Date.now();$a(s.bind(null,l),function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];var p=Date.now()-d;if(!h[0])return u(function(){return{error:ri(h[1]),duration:p}});var I=h[1];if(Ol(I))return u(function(){return{value:I,duration:p}});u(function(){return new Promise(function(w){var m=Date.now();$a(I,function(){for(var b=[],_=0;_<arguments.length;_++)b[_]=arguments[_];var y=p+Date.now()-m;if(!b[0])return w({error:ri(b[1]),duration:y});w({value:b[1],duration:y})})})})})});return Tn(o),function(){return o.then(function(u){return u()})}}(e[i],n)}),function(){return He(this,void 0,void 0,function(){var i,c,s,l,o,u;return Ze(this,function(d){switch(d.label){case 0:for(i={},c=0,s=r;c<s.length;c++)l=s[c],i[l]=void 0;o=Array(r.length),u=function(){var f;return Ze(this,function(p){switch(p.label){case 0:return f=!0,[4,ei(r,function(I,w){if(!o[w])if(a[w]){var m=a[w]().then(function(b){return i[I]=b});Tn(m),o[w]=m}else f=!1})];case 1:return p.sent(),f?[2,"break"]:[4,je(1)];case 2:return p.sent(),[2]}})},d.label=1;case 1:return[5,u()];case 2:if(d.sent()==="break")return[3,4];d.label=3;case 3:return[3,1];case 4:return[4,Promise.all(o)];case 5:return d.sent(),[2,i]}})})}}function ai(){var e=window,n=navigator;return De(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function Fl(){var e=window,n=navigator;return De(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!ai()}function Tr(){var e=window,n=navigator;return De(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,n.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Yt(){var e=window,n=navigator;return De(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,n.vendor.indexOf("Apple")===0,"getStorageUpdates"in n,"WebKitMediaKeys"in e])>=4}function Lr(){var e=window;return De(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function Nl(){var e,n,t=window;return De(["buildID"in navigator,"MozAppearance"in((n=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&n!==void 0?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function Dl(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function ii(){var e=Tr(),n=Nl();if(!e&&!n)return!1;var t=window;return De(["onorientationchange"in t,"orientation"in t,e&&!("SharedWorker"in t),n&&/android/i.test(navigator.appVersion)])>=2}function oi(e){var n=new Error(e);return n.name=e,n}function si(e,n,t){var r,a,i;return t===void 0&&(t=50),He(this,void 0,void 0,function(){var c,s;return Ze(this,function(l){switch(l.label){case 0:c=document,l.label=1;case 1:return c.body?[3,3]:[4,je(t)];case 2:return l.sent(),[3,1];case 3:s=c.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise(function(o,u){var d=!1,h=function(){d=!0,o()};s.onload=h,s.onerror=function(I){d=!0,u(I)};var f=s.style;f.setProperty("display","block","important"),f.position="absolute",f.top="0",f.left="0",f.visibility="hidden",n&&"srcdoc"in s?s.srcdoc=n:s.src="about:blank",c.body.appendChild(s);var p=function(){var w,m;d||(((m=(w=s.contentWindow)===null||w===void 0?void 0:w.document)===null||m===void 0?void 0:m.readyState)==="complete"?h():setTimeout(p,10))};p()})];case 5:l.sent(),l.label=6;case 6:return!((a=(r=s.contentWindow)===null||r===void 0?void 0:r.document)===null||a===void 0)&&a.body?[3,8]:[4,je(t)];case 7:return l.sent(),[3,6];case 8:return[4,e(s,s.contentWindow)];case 9:return[2,l.sent()];case 10:return(i=s.parentNode)===null||i===void 0||i.removeChild(s),[7];case 11:return[2]}})})}function Bl(e){for(var n=function(o){for(var u,d,h="Unexpected syntax '".concat(o,"'"),f=/^\s*([a-z-]*)(.*)$/i.exec(o),p=f[1]||void 0,I={},w=/([.:#][\w-]+|\[.+?\])/gi,m=function(M,C){I[M]=I[M]||[],I[M].push(C)};;){var b=w.exec(f[2]);if(!b)break;var _=b[0];switch(_[0]){case".":m("class",_.slice(1));break;case"#":m("id",_.slice(1));break;case"[":var y=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(_);if(!y)throw new Error(h);m(y[1],(d=(u=y[4])!==null&&u!==void 0?u:y[5])!==null&&d!==void 0?d:"");break;default:throw new Error(h)}}return[p,I]}(e),t=n[0],r=n[1],a=document.createElement(t??"div"),i=0,c=Object.keys(r);i<c.length;i++){var s=c[i],l=r[s].join(" ");s==="style"?Zl(a.style,l):a.setAttribute(s,l)}return a}function Zl(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var a=r[t],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(a);if(i){var c=i[1],s=i[2],l=i[4];e.setProperty(c,s,l||"")}}}var Et=["monospace","sans-serif","serif"],ci=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Or(e){return e.toDataURL()}var Ln,Mr;function Ul(){var e=this;return function(){if(Mr===void 0){var n=function(){var r=Fr();Nr(r)?Mr=setTimeout(n,2500):(Ln=r,Mr=void 0)};n()}}(),function(){return He(e,void 0,void 0,function(){var n;return Ze(this,function(t){switch(t.label){case 0:return Nr(n=Fr())?Ln?[2,At([],Ln,!0)]:Dl()?[4,(r=document,(r.exitFullscreen||r.msExitFullscreen||r.mozCancelFullScreen||r.webkitExitFullscreen).call(r))]:[3,2]:[3,2];case 1:t.sent(),n=Fr(),t.label=2;case 2:return Nr(n)||(Ln=n),[2,n]}var r})})}}function Fr(){var e=screen;return[Xe(Ne(e.availTop),null),Xe(Ne(e.width)-Ne(e.availWidth)-Xe(Ne(e.availLeft),0),null),Xe(Ne(e.height)-Ne(e.availHeight)-Xe(Ne(e.availTop),0),null),Xe(Ne(e.availLeft),null)]}function Nr(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function zl(e){var n;return He(this,void 0,void 0,function(){var t,r,a,i,c,s,l;return Ze(this,function(o){switch(o.label){case 0:for(t=document,r=t.createElement("div"),a=new Array(e.length),i={},li(r),l=0;l<e.length;++l)c=Bl(e[l]),li(s=t.createElement("div")),s.appendChild(c),r.appendChild(s),a[l]=c;o.label=1;case 1:return t.body?[3,3]:[4,je(50)];case 2:return o.sent(),[3,1];case 3:t.body.appendChild(r);try{for(l=0;l<e.length;++l)a[l].offsetParent||(i[e[l]]=!0)}finally{(n=r.parentNode)===null||n===void 0||n.removeChild(r)}return[2,i]}})})}function li(e){e.style.setProperty("display","block","important")}function ui(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function di(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function xt(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function fi(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function hi(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var V=Math,be=function(){return 0},Dr={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Wl={fonts:function(){return si(function(n,t){var r=t.document,a=r.body;a.style.fontSize="48px";var i=r.createElement("div"),c={},s={},l=function(f){var p=r.createElement("span"),I=p.style;return I.position="absolute",I.top="0",I.left="0",I.fontFamily=f,p.textContent="mmMwWLliI0O&1",i.appendChild(p),p},o=Et.map(l),u=function(){for(var h={},f=function(m){h[m]=Et.map(function(b){return function(_,y){return l("'".concat(_,"',").concat(y))}(m,b)})},p=0,I=ci;p<I.length;p++)f(I[p]);return h}();a.appendChild(i);for(var d=0;d<Et.length;d++)c[Et[d]]=o[d].offsetWidth,s[Et[d]]=o[d].offsetHeight;return ci.filter(function(h){return t=u[h],Et.some(function(f,p){return t[p].offsetWidth!==c[f]||t[p].offsetHeight!==s[f]})})})},domBlockers:function(n){var t=(n===void 0?{}:n).debug;return He(this,void 0,void 0,function(){var r,a,i,c,s;return Ze(this,function(l){switch(l.label){case 0:return Yt()||ii()?(o=atob,r={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",o("YVt0aXRsZT0iN25hZ2EgcG9rZXIiIGld"),'[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",o("Lmlvc0Fkc2lvc0Fkcy1sYXlvdXQ="),".quangcao",o("W2hyZWZePSJodHRwczovL3I4OC52bi8iXQ=="),o("W2hyZWZePSJodHRwczovL3piZXQudm4vIl0=")],adBlockFinland:[".mainostila",o("LnNwb25zb3JpdA=="),".ylamainos",o("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",o("I2FkMl9pbmxpbmU=")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",o("LmhlYWRlci1ibG9ja2VkLWFk"),o("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:[".BetterJsPopOverlay",o("I2FkXzMwMFgyNTA="),o("I2Jhbm5lcmZsb2F0MjI="),o("I2FkLWJhbm5lcg=="),o("I2NhbXBhaWduLWJhbm5lcg==")],adGuardChinese:[o("LlppX2FkX2FfSA=="),o("YVtocmVmKj0iL29kMDA1LmNvbSJd"),o("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),".qq_nr_lad","#widget-quan"],adGuardFrench:[o("I2Jsb2NrLXZpZXdzLWFkcy1zaWRlYmFyLWJsb2NrLWJsb2Nr"),"#pavePub",o("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv"],adGuardGerman:[o("LmJhbm5lcml0ZW13ZXJidW5nX2hlYWRfMQ=="),o("LmJveHN0YXJ0d2VyYnVuZw=="),o("LndlcmJ1bmcz"),o("YVtocmVmXj0iaHR0cDovL3d3dy5laXMuZGUvaW5kZXgucGh0bWw/cmVmaWQ9Il0="),o("YVtocmVmXj0iaHR0cHM6Ly93d3cudGlwaWNvLmNvbS8/YWZmaWxpYXRlSWQ9Il0=")],adGuardJapanese:["#kauli_yad_1",o("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),o("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),o("LmFkZ29vZ2xl"),o("LmFkX3JlZ3VsYXIz")],adGuardMobile:[o("YW1wLWF1dG8tYWRz"),o("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",o("I2FkX2ludmlld19hcmVh")],adGuardRussian:[o("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),o("LnJlY2xhbWE="),'div[id^="smi2adblock"]',o("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),o("I2FkX3NxdWFyZQ==")],adGuardSocial:[o("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),o("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",o("W2hyZWZePSJodHRwOi8vYWRzLmdsaXNwYS5jb20vIl0=")],adGuardTrackingProtection:["#qoo-counter",o("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),o("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),o("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",o("I3Jla2xhbWk="),o("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),o("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),o("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[o("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers",o("I25ld0Fk")],easyList:[o("I0FEX0NPTlRST0xfMjg="),o("LnNlY29uZC1wb3N0LWFkcy13cmFwcGVy"),".universalboxADVBOX03",o("LmFkdmVydGlzZW1lbnQtNzI4eDkw"),o("LnNxdWFyZV9hZHM=")],easyListChina:[o("YVtocmVmKj0iLndlbnNpeHVldGFuZy5jb20vIl0="),o("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),o("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box"],easyListCookie:["#AdaCompliance.app-notice",".text-center.rgpd",".panel--cookie",".js-cookies-andromeda",".elxtr-consent"],easyListCzechSlovak:["#onlajny-stickers",o("I3Jla2xhbW5pLWJveA=="),o("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",o("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[o("I2FkdmVydGVudGll"),o("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",o("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:[o("I0FkX1dpbjJkYXk="),o("I3dlcmJ1bmdzYm94MzAw"),o("YVtocmVmXj0iaHR0cDovL3d3dy5yb3RsaWNodGthcnRlaS5jb20vP3NjPSJd"),o("I3dlcmJ1bmdfd2lkZXNreXNjcmFwZXJfc2NyZWVu"),o("YVtocmVmXj0iaHR0cDovL2xhbmRpbmcucGFya3BsYXR6a2FydGVpLmNvbS8/YWc9Il0=")],easyListItaly:[o("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",o("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[o("LnJla2xhbW9zX3RhcnBhcw=="),o("LnJla2xhbW9zX251b3JvZG9z"),o("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),o("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),o("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[o("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#feedback-tab","#taboola-below-article",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:[o("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),o("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",o("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[o("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),o("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),o("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",o("LmFkX19tYWlu"),o("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:[o("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[o("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),o("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[o("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),o("I2xpdmVyZUFkV3JhcHBlcg=="),o("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),o("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[o("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",o("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),o("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),o("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[o("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),o("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),o("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",o("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),o("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),o("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),o("ZGl2I3NrYXBpZWNfYWQ=")],ro:[o("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),'a[href^="/magazin/"]',o("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),o("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd")],ruAd:[o("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),o("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),o("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",o("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),o("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",o("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},a=Object.keys(r),[4,zl((s=[]).concat.apply(s,a.map(function(u){return r[u]})))]):[2,void 0];case 1:return i=l.sent(),t&&function(u,d){for(var h="DOM blockers debug:\n```",f=0,p=Object.keys(u);f<p.length;f++){var I=p[f];h+=` `.concat(I,":");for(var w=0,m=u[I];w<m.length;w++){var b=m[w];h+=` `.concat(d[b]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(b)}}console.log("".concat(h,"\n```"))}(r,i),(c=a.filter(function(u){var d=r[u];return De(d.map(function(h){return i[h]}))>.6*d.length})).sort(),[2,c]}var o})})},fontPreferences:function(){return function(n,t){return t===void 0&&(t=4e3),si(function(r,a){var i=a.document,c=i.body,s=c.style;s.width="".concat(t,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",Tr()?c.style.zoom="".concat(1/a.devicePixelRatio):Yt()&&(c.style.zoom="reset");var l=i.createElement("div");retu