UNPKG

@meta-track/vue3

Version:
7 lines 231 kB
(function(R){"use strict";function Tn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $s(t){if(Array.isArray(t))return t}function qs(t){if(Array.isArray(t))return Tn(t)}function Ke(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function si(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,il(r.key),r)}}function Je(t,e,n){return e&&si(t.prototype,e),n&&si(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ft(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ln(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},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,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,i=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function el(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,i,o,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(l){c=!0,a=l}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function rl(){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 nl(){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 On(){On=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(p,v,w,A){Object.defineProperty(p,v,{value:w,enumerable:!A,configurable:!A,writable:!A})}try{u({},"")}catch{u=function(v,w,A){return v[w]=A}}function c(p,v,w,A){var C=v&&v.prototype instanceof g?v:g,O=Object.create(C.prototype);return u(O,"_invoke",function(N,G,M){var z=1;return function(X,K){if(z===3)throw Error("Generator is already running");if(z===4){if(X==="throw")throw K;return{value:t,done:!0}}for(M.method=X,M.arg=K;;){var te=M.delegate;if(te){var Se=T(te,M);if(Se){if(Se===d)continue;return Se}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(z===1)throw z=4,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);z=3;var ue=l(N,G,M);if(ue.type==="normal"){if(z=M.done?4:2,ue.arg===d)continue;return{value:ue.arg,done:M.done}}ue.type==="throw"&&(z=4,M.method="throw",M.arg=ue.arg)}}}(p,w,new k(A||[])),!0),O}function l(p,v,w){try{return{type:"normal",arg:p.call(v,w)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var d={};function g(){}function h(){}function f(){}var y={};u(y,i,function(){return this});var S=Object.getPrototypeOf,b=S&&S(S(L([])));b&&b!==n&&r.call(b,i)&&(y=b);var m=f.prototype=g.prototype=Object.create(y);function _(p){["next","throw","return"].forEach(function(v){u(p,v,function(w){return this._invoke(v,w)})})}function I(p,v){function w(C,O,N,G){var M=l(p[C],p,O);if(M.type!=="throw"){var z=M.arg,X=z.value;return X&&typeof X=="object"&&r.call(X,"__await")?v.resolve(X.__await).then(function(K){w("next",K,N,G)},function(K){w("throw",K,N,G)}):v.resolve(X).then(function(K){z.value=K,N(z)},function(K){return w("throw",K,N,G)})}G(M.arg)}var A;u(this,"_invoke",function(C,O){function N(){return new v(function(G,M){w(C,O,G,M)})}return A=A?A.then(N,N):N()},!0)}function T(p,v){var w=v.method,A=p.i[w];if(A===t)return v.delegate=null,w==="throw"&&p.i.return&&(v.method="return",v.arg=t,T(p,v),v.method==="throw")||w!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+w+"' method")),d;var C=l(A,p.i,v.arg);if(C.type==="throw")return v.method="throw",v.arg=C.arg,v.delegate=null,d;var O=C.arg;return O?O.done?(v[p.r]=O.value,v.next=p.n,v.method!=="return"&&(v.method="next",v.arg=t),v.delegate=null,d):O:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,d)}function F(p){this.tryEntries.push(p)}function E(p){var v=p[4]||{};v.type="normal",v.arg=t,p[4]=v}function k(p){this.tryEntries=[[-1]],p.forEach(F,this),this.reset(!0)}function L(p){if(p!=null){var v=p[i];if(v)return v.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var w=-1,A=function C(){for(;++w<p.length;)if(r.call(p,w))return C.value=p[w],C.done=!1,C;return C.value=t,C.done=!0,C};return A.next=A}}throw new TypeError(typeof p+" is not iterable")}return h.prototype=f,u(m,"constructor",f),u(f,"constructor",h),u(f,s,h.displayName="GeneratorFunction"),e.isGeneratorFunction=function(p){var v=typeof p=="function"&&p.constructor;return!!v&&(v===h||(v.displayName||v.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,f):(p.__proto__=f,u(p,s,"GeneratorFunction")),p.prototype=Object.create(m),p},e.awrap=function(p){return{__await:p}},_(I.prototype),u(I.prototype,o,function(){return this}),e.AsyncIterator=I,e.async=function(p,v,w,A,C){C===void 0&&(C=Promise);var O=new I(c(p,v,w,A),C);return e.isGeneratorFunction(v)?O:O.next().then(function(N){return N.done?N.value:O.next()})},_(m),u(m,s,"Generator"),u(m,i,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),e.keys=function(p){var v=Object(p),w=[];for(var A in v)w.unshift(A);return function C(){for(;w.length;)if((A=w.pop())in v)return C.value=A,C.done=!1,C;return C.done=!0,C}},e.values=L,k.prototype={constructor:k,reset:function(p){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!p)for(var v in this)v.charAt(0)==="t"&&r.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=t)},stop:function(){this.done=!0;var p=this.tryEntries[0][4];if(p.type==="throw")throw p.arg;return this.rval},dispatchException:function(p){if(this.done)throw p;var v=this;function w(z){O.type="throw",O.arg=p,v.next=z}for(var A=v.tryEntries.length-1;A>=0;--A){var C=this.tryEntries[A],O=C[4],N=this.prev,G=C[1],M=C[2];if(C[0]===-1)return w("end"),!1;if(!G&&!M)throw Error("try statement without catch or finally");if(C[0]!=null&&C[0]<=N){if(N<G)return this.method="next",this.arg=t,w(G),!0;if(N<M)return w(M),!1}}},abrupt:function(p,v){for(var w=this.tryEntries.length-1;w>=0;--w){var A=this.tryEntries[w];if(A[0]>-1&&A[0]<=this.prev&&this.prev<A[2]){var C=A;break}}C&&(p==="break"||p==="continue")&&C[0]<=v&&v<=C[2]&&(C=null);var O=C?C[4]:{};return O.type=p,O.arg=v,C?(this.method="next",this.next=C[2],d):this.complete(O)},complete:function(p,v){if(p.type==="throw")throw p.arg;return p.type==="break"||p.type==="continue"?this.next=p.arg:p.type==="return"?(this.rval=this.arg=p.arg,this.method="return",this.next="end"):p.type==="normal"&&v&&(this.next=v),d},finish:function(p){for(var v=this.tryEntries.length-1;v>=0;--v){var w=this.tryEntries[v];if(w[2]===p)return this.complete(w[4],w[3]),E(w),d}},catch:function(p){for(var v=this.tryEntries.length-1;v>=0;--v){var w=this.tryEntries[v];if(w[0]===p){var A=w[4];if(A.type==="throw"){var C=A.arg;E(w)}return C}}throw Error("illegal catch attempt")},delegateYield:function(p,v,w){return this.delegate={i:L(p),r:v,n:w},this.method==="next"&&(this.arg=t),d}},e}function li(t,e){return $s(t)||tl(t,e)||Ln(t,e)||rl()}function Tt(t){return qs(t)||el(t)||Ln(t)||nl()}function al(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function il(t){var e=al(t,"string");return typeof e=="symbol"?e:e+""}function We(t){return We=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(t)}function Ln(t,e){if(t){if(typeof t=="string")return Tn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(t,e):void 0}}function Mn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ol(t){if(Array.isArray(t))return t}function ul(t){if(Array.isArray(t))return Mn(t)}function ci(t,e,n,r,a,i,o){try{var s=t[i](o),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,a)}function sl(t){return function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(u){ci(i,r,a,o,s,"next",u)}function s(u){ci(i,r,a,o,s,"throw",u)}o(void 0)})}}function me(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function di(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,hi(r.key),r)}}function ye(t,e,n){return e&&di(t.prototype,e),n&&di(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function xn(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Nn(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},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,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,i=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function x(t,e,n){return(e=hi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ll(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,i,o,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(l){c=!0,a=l}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function dl(){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 fl(){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 fi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fi(Object(n),!0).forEach(function(r){x(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fn(){Fn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(p,v,w,A){Object.defineProperty(p,v,{value:w,enumerable:!A,configurable:!A,writable:!A})}try{u({},"")}catch{u=function(w,A,C){return w[A]=C}}function c(p,v,w,A){var C=v&&v.prototype instanceof g?v:g,O=Object.create(C.prototype);return u(O,"_invoke",function(N,G,M){var z=1;return function(X,K){if(z===3)throw Error("Generator is already running");if(z===4){if(X==="throw")throw K;return{value:t,done:!0}}for(M.method=X,M.arg=K;;){var te=M.delegate;if(te){var Se=T(te,M);if(Se){if(Se===d)continue;return Se}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(z===1)throw z=4,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);z=3;var ue=l(N,G,M);if(ue.type==="normal"){if(z=M.done?4:2,ue.arg===d)continue;return{value:ue.arg,done:M.done}}ue.type==="throw"&&(z=4,M.method="throw",M.arg=ue.arg)}}}(p,w,new k(A||[])),!0),O}function l(p,v,w){try{return{type:"normal",arg:p.call(v,w)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var d={};function g(){}function h(){}function f(){}var y={};u(y,i,function(){return this});var S=Object.getPrototypeOf,b=S&&S(S(L([])));b&&b!==n&&r.call(b,i)&&(y=b);var m=f.prototype=g.prototype=Object.create(y);function _(p){["next","throw","return"].forEach(function(v){u(p,v,function(w){return this._invoke(v,w)})})}function I(p,v){function w(C,O,N,G){var M=l(p[C],p,O);if(M.type!=="throw"){var z=M.arg,X=z.value;return X&&We(X)=="object"&&r.call(X,"__await")?v.resolve(X.__await).then(function(K){w("next",K,N,G)},function(K){w("throw",K,N,G)}):v.resolve(X).then(function(K){z.value=K,N(z)},function(K){return w("throw",K,N,G)})}G(M.arg)}var A;u(this,"_invoke",function(C,O){function N(){return new v(function(G,M){w(C,O,G,M)})}return A=A?A.then(N,N):N()},!0)}function T(p,v){var w=v.method,A=p.i[w];if(A===t)return v.delegate=null,w==="throw"&&p.i.return&&(v.method="return",v.arg=t,T(p,v),v.method==="throw")||w!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+w+"' method")),d;var C=l(A,p.i,v.arg);if(C.type==="throw")return v.method="throw",v.arg=C.arg,v.delegate=null,d;var O=C.arg;return O?O.done?(v[p.r]=O.value,v.next=p.n,v.method!=="return"&&(v.method="next",v.arg=t),v.delegate=null,d):O:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,d)}function F(p){this.tryEntries.push(p)}function E(p){var v=p[4]||{};v.type="normal",v.arg=t,p[4]=v}function k(p){this.tryEntries=[[-1]],p.forEach(F,this),this.reset(!0)}function L(p){if(p!=null){var v=p[i];if(v)return v.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var w=-1,A=function C(){for(;++w<p.length;)if(r.call(p,w))return C.value=p[w],C.done=!1,C;return C.value=t,C.done=!0,C};return A.next=A}}throw new TypeError(We(p)+" is not iterable")}return h.prototype=f,u(m,"constructor",f),u(f,"constructor",h),u(f,s,h.displayName="GeneratorFunction"),e.isGeneratorFunction=function(p){var v=typeof p=="function"&&p.constructor;return!!v&&(v===h||(v.displayName||v.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,f):(p.__proto__=f,u(p,s,"GeneratorFunction")),p.prototype=Object.create(m),p},e.awrap=function(p){return{__await:p}},_(I.prototype),u(I.prototype,o,function(){return this}),e.AsyncIterator=I,e.async=function(p,v,w,A,C){C===void 0&&(C=Promise);var O=new I(c(p,v,w,A),C);return e.isGeneratorFunction(v)?O:O.next().then(function(N){return N.done?N.value:O.next()})},_(m),u(m,s,"Generator"),u(m,i,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),e.keys=function(p){var v=Object(p),w=[];for(var A in v)w.unshift(A);return function C(){for(;w.length;)if((A=w.pop())in v)return C.value=A,C.done=!1,C;return C.done=!0,C}},e.values=L,k.prototype={constructor:k,reset:function(v){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!v)for(var w in this)w.charAt(0)==="t"&&r.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=t)},stop:function(){this.done=!0;var v=this.tryEntries[0][4];if(v.type==="throw")throw v.arg;return this.rval},dispatchException:function(v){if(this.done)throw v;var w=this;function A(X){N.type="throw",N.arg=v,w.next=X}for(var C=w.tryEntries.length-1;C>=0;--C){var O=this.tryEntries[C],N=O[4],G=this.prev,M=O[1],z=O[2];if(O[0]===-1)return A("end"),!1;if(!M&&!z)throw Error("try statement without catch or finally");if(O[0]!=null&&O[0]<=G){if(G<M)return this.method="next",this.arg=t,A(M),!0;if(G<z)return A(z),!1}}},abrupt:function(v,w){for(var A=this.tryEntries.length-1;A>=0;--A){var C=this.tryEntries[A];if(C[0]>-1&&C[0]<=this.prev&&this.prev<C[2]){var O=C;break}}O&&(v==="break"||v==="continue")&&O[0]<=w&&w<=O[2]&&(O=null);var N=O?O[4]:{};return N.type=v,N.arg=w,O?(this.method="next",this.next=O[2],d):this.complete(N)},complete:function(v,w){if(v.type==="throw")throw v.arg;return v.type==="break"||v.type==="continue"?this.next=v.arg:v.type==="return"?(this.rval=this.arg=v.arg,this.method="return",this.next="end"):v.type==="normal"&&w&&(this.next=w),d},finish:function(v){for(var w=this.tryEntries.length-1;w>=0;--w){var A=this.tryEntries[w];if(A[2]===v)return this.complete(A[4],A[3]),E(A),d}},catch:function(v){for(var w=this.tryEntries.length-1;w>=0;--w){var A=this.tryEntries[w];if(A[0]===v){var C=A[4];if(C.type==="throw"){var O=C.arg;E(A)}return O}}throw Error("illegal catch attempt")},delegateYield:function(v,w,A){return this.delegate={i:L(v),r:w,n:A},this.method==="next"&&(this.arg=t),d}},e}function hl(t,e){return ol(t)||cl(t,e)||Nn(t,e)||dl()}function zr(t){return ul(t)||ll(t)||Nn(t)||fl()}function vl(t,e){if(We(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(We(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hi(t){var e=vl(t,"string");return We(e)=="symbol"?e:e+""}function De(t){return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(t)}function Nn(t,e){if(t){if(typeof t=="string")return Mn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mn(t,e):void 0}}function ht(t){return function(e){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}}var Dn=ht("RegExp"),pl=ht("Number"),gl=ht("String"),ml=ht("Boolean"),yl=ht("Function"),Wr=ht("Array"),bl=ht("Window"),Un=function(e){return ml(e)&&String(e)==="false"};function _l(t){return gl(t)&&t.trim()===""||t===void 0||t===null}var Zn,Bn,zn,Il=bl(typeof window<"u"?window:0),wl=!!((Zn=window)!==null&&Zn!==void 0&&(Bn=Zn.process)!==null&&Bn!==void 0&&(zn=Bn.versions)!==null&&zn!==void 0&&zn.electron),Wn=typeof navigator<"u"&&navigator.userAgent.includes("jsdom")||typeof window<"u"&&window.jsdom;function vi(){return Il||wl||Wn?window:{}}function Sl(){return B.__metaTrack__=B.__metaTrack__||{},B.__metaTrack__}function Cl(){return!!B.__metaTrackInit__}var B=vi(),Ce=Sl(),vt=function(){function t(){me(this,t),x(this,"subs",new Set)}return ye(t,[{key:"addSub",value:function(){t.target&&this.subs.add(t.target)}},{key:"notify",value:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];this.subs.forEach(function(i){i.proxy.dirty=!0,i.update.apply(i,r)})}}])}();x(vt,"target",void 0);var Pn="__metatrackobserver__";function Al(t){return Object.prototype.toString.call(t)==="[object RegExp]"}var kl=function(){function t(e){me(this,t),x(this,"target",void 0),this.target=e}return ye(t,[{key:"defineReactive",value:function(){var n=new vt,r=El(function(){n.addSub()},function(a){n.notify(a)});return new Proxy(this.target,r)}}])}();function El(t,e){var n=new WeakMap,r={get:function(i,o,s){var u=Reflect.get(i,o,s);if(t&&t(),De(u)==="object"&&u!==null&&!Al(u)){var c=n.get(u);return c||(c=new Proxy(u,r),n.set(u,c)),c}return u},set:function(i,o,s,u){var c=Reflect.get(i,o,u);if(c===s)return c;var l=JSON.parse(JSON.stringify(i)),d=Reflect.set(i,o,s,u);return e&&e(l),d}};return r}var Rl=new WeakMap;function Tl(t){var e={value:t};e[Pn]=!0;var n=new kl(e),r=n.defineReactive();return Rl.set(n,r),r}function Ol(t){return!!t[Pn]}var pi=[];function gi(t){vt.target&&pi.push(vt.target),vt.target=t}function mi(){vt.target=pi.pop()}var yi=function(){function t(e,n,r){me(this,t),x(this,"vm",void 0),x(this,"computed",void 0),x(this,"watch",void 0),x(this,"proxy",void 0),x(this,"dep",void 0),x(this,"getter",void 0),x(this,"callback",void 0);var a=n.computed,i=n.watch,o=n.callback;this.getter=r,this.computed=a||!1,this.watch=i||!1,this.callback=o,this.proxy={value:"",dirty:!0},this.vm=e,a?this.dep=new vt:i?this.watchGet():this.get()}return ye(t,[{key:"update",value:function(n){this.computed?this.dep.notify():this.watch?n!==this.proxy.value&&this.callback&&this.callback(this.proxy.value,n):this.get()}},{key:"get",value:function(){gi(this);var n=this.computed?bi.get(this.vm).call(this.vm):"";return n!==this.proxy.value&&(this.proxy.dirty=!1,this.proxy.value=n),mi(),n}},{key:"watchGet",value:function(){gi(this),this.proxy.dirty=!1,this.getter&&(this.proxy.value=this.getter()),mi()}},{key:"depend",value:function(){this.dep.addSub()}}])}(),Ll=function(){function t(e){me(this,t),x(this,"target",void 0),this.target=e}return ye(t,[{key:"defineReactive",value:function(){var n=new yi(this,{computed:!0}),r={get:function(){return n.proxy.dirty?(n.depend(),n.get()):(n.depend(),n.proxy.value)}};return new Proxy(this.target,r)}}])}(),bi=new WeakMap;function Ml(t){var e={value:0};e[Pn]=!0;var n=new Ll(e),r=n.defineReactive();return bi.set(n,t),r}function xl(t,e){new yi("",{watch:!0,callback:t},e)}function Fl(t,e){Ol(t)&&xl(function(n,r){e(n,r)},function(){return t.value})}function Gn(){return!!window.Proxy}function Nl(t){return Gn()?Tl(t):{value:t}}function _i(t){return Gn()?Ml(t):{value:t()}}function Dl(t,e){return Gn()?Fl(t,e):function(){return{}}}var Ul=function(){function t(e){me(this,t),x(this,"dsn",""),x(this,"appName",""),x(this,"appCode",""),x(this,"appVersion",""),x(this,"userUuid",""),x(this,"sdkUserUuid",""),x(this,"debug",!1),x(this,"pv",{core:!1}),x(this,"performance",{core:!1,firstResource:!1,server:!1}),x(this,"error",{core:!1,server:!1}),x(this,"event",{core:!1}),x(this,"recordScreen",!0),x(this,"ext",{}),x(this,"tracesSampleRate",1),x(this,"cacheMaxLength",5),x(this,"cacheWatingTime",5e3),x(this,"ignoreErrors",[]),x(this,"ignoreRequest",[]),x(this,"scopeError",!1),x(this,"localization",!1),x(this,"sendTypeByXmlBody",!1),x(this,"beforePushEventList",[]),x(this,"beforeSendData",[]),x(this,"afterSendData",[]),x(this,"localizationOverFlow",function(){});var n=this.transitionOptions(e);n.ignoreRequest.push(new RegExp(n.dsn)),Pr(this,n)}return ye(t,[{key:"transitionOptions",value:function(n){var r=Pr({},this,n),a=n.beforePushEventList,i=n.beforeSendData,o=n.afterSendData,s=r.pv,u=r.performance,c=r.error,l=r.event;return typeof s=="boolean"&&(r.pv={core:s}),typeof u=="boolean"&&(r.performance={core:u,firstResource:u,server:u}),typeof c=="boolean"&&(r.error={core:c,server:c}),typeof l=="boolean"&&(r.event={core:l}),a&&(r.beforePushEventList=[a]),i&&(r.beforeSendData=[i]),o&&(r.afterSendData=[o]),r}}])}();function Zl(t){var e=t.dsn,n=t.appName,r=t.appCode,a=t.appVersion,i=t.userUuid,o=t.debug,s=t.recordScreen,u=t.pv,c=t.performance,l=t.error,d=t.event,g=t.ext,h=t.tracesSampleRate,f=t.cacheMaxLength,y=t.cacheWatingTime,S=t.ignoreErrors,b=t.ignoreRequest,m=t.scopeError,_=t.localization,I=t.sendTypeByXmlBody,T=t.beforePushEventList,F=t.beforeSendData,E=[];u&&De(u)==="object"?E.push($(u.core,"pv.core","boolean")):E.push($(u,"pv","boolean")),c&&De(c)==="object"?E.push($(c.core,"performance.core","boolean"),$(c.firstResource,"performance.firstResource","boolean"),$(c.server,"performance.server","boolean")):E.push($(c,"performance","boolean")),l&&De(l)==="object"?E.push($(l.core,"error.core","boolean"),$(l.server,"error.server","boolean")):E.push($(l,"error","boolean")),d&&De(d)==="object"?E.push($(d.core,"event.core","boolean")):E.push($(d,"event","boolean"));var k=[$(e,"dsn","string"),$(n,"appName","string"),$(r,"appCode","string"),$(a,"appVersion","string"),$(i,"userUuid","string"),$(o,"debug","boolean"),$(s,"recordScreen","boolean"),$(g,"ext","object"),$(h,"tracesSampleRate","number"),$(f,"cacheMaxLength","number"),$(y,"cacheWatingTime","number"),$(S,"ignoreErrors","array"),wi(S,"ignoreErrors",["string","regexp"]),$(b,"ignoreRequest","array"),wi(b,"ignoreRequest",["string","regexp"]),$(m,"scopeError","boolean"),$(_,"localization","boolean"),$(I,"sendTypeByXmlBody","boolean"),$(T,"beforePushEventList","function"),$(F,"beforeSendData","function")];return k.every(function(L){return!!L})}function Bl(t){var e=[Ii(t.appName,"appName"),Ii(t.dsn,"dsn")];return e.every(function(n){return!!n})}function Ii(t,e){return _l(t)?(pt("\u3010".concat(e,"\u3011\u53C2\u6570\u5FC5\u586B")),!1):!0}function $(t,e,n){return!t||Mt(t)===n?!0:(pt("TypeError:\u3010".concat(e,"\u3011\u671F\u671B\u4F20\u5165").concat(n,"\u7C7B\u578B\uFF0C\u76EE\u524D\u662F").concat(Mt(t),"\u7C7B\u578B")),!1)}function wi(t,e,n){if(!t)return!0;var r=!0;return t.forEach(function(a){n.includes(Mt(a))||(pt("TypeError:\u3010".concat(e,"\u3011\u6570\u7EC4\u5185\u7684\u503C\u671F\u671B\u4F20\u5165").concat(n.join("|"),"\u7C7B\u578B\uFF0C\u76EE\u524D\u503C").concat(a,"\u662F").concat(Mt(a),"\u7C7B\u578B")),r=!1)}),r}R.options=void 0;function zl(t){return!Bl(t)||!Zl(t)?!1:(R.options=Nl(new Ul(t)),Ce.options=R.options,!0)}function Ot(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];R.options.value.debug&&(t=console).log.apply(t,["@meta-track: "].concat(n))}function pt(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=console).error.apply(t,["@meta-track: "].concat(n))}function Me(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;t.addEventListener(e,n,r)}function Lt(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t!==void 0&&(e in t||r)){var a=t[e],i=n(a);yl(i)&&(t[e]=i)}}function nr(t){return Object.keys(t).forEach(function(e){var n=t[e];pl(n)&&(t[e]=n===0?void 0:parseFloat(n.toFixed(2)))}),t}function Ee(){return typeof document>"u"||document.location==null?"":document.location.href}function q(){return Date.now()}function Si(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=null,a;return function(){for(var i=this,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];a=s,r===null&&(n&&t.apply(this,a),r=setTimeout(function(){r=null,t.apply(i,a)},e))}}function Wl(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=null;return function(){for(var a=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];n&&(t.call.apply(t,[this].concat(o)),n=!1),r&&clearTimeout(r),r=setTimeout(function(){t.call.apply(t,[a].concat(o))},e)}}function Hn(t){for(var e=new Map,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];var i=xn(t),o;try{var s=function(){var c=o.value,l=r.filter(function(d){return c[d]}).map(function(d){return c[d]}).join(":");e.has(l)||e.set(l,[]),e.get(l).push(c)};for(i.s();!(o=i.n()).done;)s()}catch(u){i.e(u)}finally{i.f()}return Array.from(e.values())}function Pr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach(function(a){for(var i in a)a[i]!==null&&Dn(a[i])?t[i]=a[i]:a[i]!==null&&De(a[i])==="object"?t[i]=Pr(t[i]||(Wr(a[i])?[]:{}),a[i]):t[i]=a[i]}),t}function he(t){return Cl()?!0:(pt("".concat(t," \u9700\u8981\u5728SDK\u521D\u59CB\u5316\u4E4B\u540E\u4F7F\u7528")),!1)}function Mt(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function xt(t,e){return t in e}function Pl(t){return Math.random()<=t}function Ft(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(t);if(r.length<e){for(var a=r,i=0;i<e-r.length;i+=1)a=n+a;return a}return r}function Gl(t){return t.split("?")[0]}function Vn(){for(var t=new Date,e=parseInt("".concat(t.getFullYear()).concat(Ft(t.getMonth()+1,2)).concat(Ft(t.getDate(),2)),10).toString(16),n=parseInt("".concat(Ft(t.getHours(),2)).concat(Ft(t.getMinutes(),2)).concat(Ft(t.getSeconds(),2)).concat(Ft(t.getMilliseconds(),3)),10).toString(16),r=e+n.length+n;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 jn(t){var e=document.cookie.match(new RegExp("".concat(t,"=([^;]+)(;|$)")));return e?e[1]:void 0}function Hl(t,e){return navigator.sendBeacon(t,JSON.stringify(e))}var Gr=[];function Vl(t,e){return new Promise(function(n){var r=new Image;r.src="".concat(t,"?v=").concat(encodeURIComponent(JSON.stringify(e))),Gr.push(r),r.onload=function(){n()},r.onerror=function(){n()}})}function jl(t,e){return new Promise(function(n){var r=new XMLHttpRequest;r.open("post",t),r.setRequestHeader("content-type","application/json"),r.send(JSON.stringify(e)),r.onreadystatechange=function(){r.readyState===4&&n()}})}function Hr(t,e,n){if(t.length===0)return n;for(var r=void 0,a=0;a<t.length;a++){var i=t[a];a===0||e?r=i(n):r=i(r)}return r}function Xn(t){return Wr(t)?t:[t]}var Xl=Array.prototype.map||function(e){for(var n=[],r=0;r<this.length;r+=1)n.push(e(this[r],r,this));return n};function Ci(t,e){return Xl.call(t,e)}var Yl=Array.prototype.filter||function(e){for(var n=[],r=0;r<this.length;r+=1)e(this[r],r,this)&&n.push(this[r]);return n};function Kl(t,e){return Yl.call(t,e)}var Jl=window.requestIdleCallback||window.requestAnimationFrame||function(t){return setTimeout(t,17)};function Ai(t,e){var n=JSON.stringify(t),r=new TextEncoder().encode(n).length,a=r/1024;return a>e}function Yn(t){var e={},n=t.split("?")[1];if(n){var r=n.split("&"),a=xn(r),i;try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.split("="),u=hl(s,2),c=u[0],l=u[1];e[decodeURIComponent(c)]=decodeURIComponent(l)}}catch(d){a.e(d)}finally{a.f()}}return e}function Kn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map;if(t!==null&&De(t)==="object"){var n=e.get(t);return n||(t instanceof Array?(n=[],e.set(t,n),t.forEach(function(r,a){n[a]=Kn(r,e)})):(n={},e.set(t,n),Object.keys(t).forEach(function(r){xt(r,t)&&(n[r]=Kn(t[r],e))})),n)}return t}function se(t){if(!t)return"";var e=new Date(t),n=function(l){return l.toString().padStart(2,"0")},r=e.getFullYear(),a=n(e.getMonth()+1),i=n(e.getDate()),o=n(e.getHours()),s=n(e.getMinutes()),u=n(e.getSeconds());return"".concat(r,"-").concat(a,"-").concat(i," ").concat(o,":").concat(s,":").concat(u)}var Ql="1.0.4",ki="_meta_track_device_id",Jn="_meta_track_session_id",$l=18e5,Qn="_meta_track_localization_key",ql=Ql,D=function(t){return t.ERROR="error",t.CONSOLEERROR="consoleError",t.UNHANDLEDREJECTION="unhandledrejection",t.CLICK="click",t.LOAD="load",t.BEFOREUNLOAD="beforeunload",t.FETCH="fetch",t.XHROPEN="xhr-open",t.XHRSEND="xhr-send",t.HASHCHANGE="hashchange",t.HISTORYPUSHSTATE="history-pushState",t.HISTORYREPLACESTATE="history-replaceState",t.POPSTATE="popstate",t.READYSTATECHANGE="readystatechange",t.ONLINE="online",t.OFFLINE="offline",t}(D||{}),Re=function(t){return t.PV="pv",t.PVDURATION="pv-duration",t.ERROR="error",t.PERFORMANCE="performance",t.CLICK="click",t.DWELL="dwell",t.CUSTOM="custom",t.INTERSECTION="intersection",t}(Re||{}),le=function(t){return t.PAGE="page",t.RESOURCE="resource",t.SERVER="server",t.CODE="code",t.REJECT="reject",t.CONSOLEERROR="console.error",t}(le||{}),ec={0:"navigate",1:"reload",2:"back_forward",255:"reserved"},tc=function(){function t(){me(this,t),x(this,"handlers",void 0),this.handlers={}}return ye(t,[{key:"addEvent",value:function(n){!this.handlers[n.type]&&(this.handlers[n.type]=[]);var r=this._getCallbackIndex(n);if(r===-1){var a;(a=this.handlers[n.type])===null||a===void 0||a.push(n.callback)}}},{key:"delEvent",value:function(n){var r=this._getCallbackIndex(n);if(r!==-1){var a;(a=this.handlers[n.type])===null||a===void 0||a.splice(r,1)}}},{key:"changeEvent",value:function(n,r){var a=this._getCallbackIndex(n);if(a!==-1){var i;(i=this.handlers[n.type])===null||i===void 0||i.splice(a,1,r)}}},{key:"getEvent",value:function(n){return this.handlers[n]||[]}},{key:"runEvent",value:function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];var o=this.getEvent(n);o.forEach(function(s){s.apply(void 0,a)})}},{key:"_getCallbackIndex",value:function(n){if(this.handlers[n.type]){var r=this.handlers[n.type];return r?r.findIndex(function(a){return a===n.callback}):-1}else return-1}}])}(),W=Ce.eventBus||(Ce.eventBus=new tc);function rc(){for(var t in D)xt(t,D)&&nc(t)}function nc(t){if(xt(t,D)){var e=D[t];switch(e){case D.ERROR:ac(D.ERROR);break;case D.UNHANDLEDREJECTION:ic(D.UNHANDLEDREJECTION);break;case D.CONSOLEERROR:oc(D.CONSOLEERROR);break;case D.CLICK:uc(D.CLICK);break;case D.LOAD:sc(D.LOAD);break;case D.BEFOREUNLOAD:lc(D.BEFOREUNLOAD);break;case D.XHROPEN:cc(D.XHROPEN);break;case D.XHRSEND:dc(D.XHRSEND);break;case D.FETCH:fc(D.FETCH);break;case D.HASHCHANGE:hc(D.HASHCHANGE);break;case D.HISTORYPUSHSTATE:pc(D.HISTORYPUSHSTATE);break;case D.HISTORYREPLACESTATE:vc(D.HISTORYREPLACESTATE);break;case D.POPSTATE:gc(D.POPSTATE);break;case D.OFFLINE:mc(D.OFFLINE);break;case D.ONLINE:yc(D.ONLINE);break}}}function ac(t){Me(B,"error",function(e){W.runEvent(t,e)},!0)}function ic(t){Me(B,"unhandledrejection",function(e){W.runEvent(t,e)})}function oc(t){Lt(console,"error",function(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];r[0]&&r[0].slice&&r[0].slice(0,12)==="@web-tracing"||W.runEvent(t,r),e.apply(this,r)}})}function uc(t){if("document"in B){var e=Si(W.runEvent,100,!0);Me(B.document,"click",function(n){e.call(W,t,n)},!0)}}function sc(t){Me(B,"load",function(e){W.runEvent(t,e)},!0)}function lc(t){Me(B,"beforeunload",function(e){W.runEvent(t,e)},!1)}function cc(t){"XMLHttpRequest"in B&&Lt(XMLHttpRequest.prototype,"open",function(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];W.runEvent.apply(W,[t].concat(r)),e.apply(this,r)}})}function dc(t){"XMLHttpRequest"in B&&Lt(XMLHttpRequest.prototype,"send",function(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];W.runEvent.apply(W,[t,this].concat(r)),e.apply(this,r)}})}function fc(t){"fetch"in B&&Lt(B,"fetch",function(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=q(),o={};return e.apply(B,r).then(function(s){return W.runEvent(t,r[0],r[1],s,i,o),s})}})}function hc(t){Me(B,"hashchange",function(e){W.runEvent(t,e)})}function vc(t){"history"in B&&"pushState"in B.history&&Lt(B.history,"replaceState",function(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];W.runEvent.apply(W,[t].concat(r)),e.apply(this,r)}})}function pc(t){"history"in B&&"pushState"in B.history&&Lt(B.history,"pushState",function(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];W.runEvent.apply(W,[t].concat(r)),e.apply(this,r)}})}function gc(t){Me(B,"popstate",function(e){W.runEvent(t,e)})}function mc(t){Me(B,"offline",function(e){W.runEvent(t,e)},!0)}function yc(t){Me(B,"online",function(e){W.runEvent(t,e)},!0)}var $n=function(){return $n=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},$n.apply(this,arguments)};function Qe(t,e,n,r){return new(n||(n=Promise))(function(a,i){function o(c){try{u(r.next(c))}catch(l){i(l)}}function s(c){try{u(r.throw(c))}catch(l){i(l)}}function u(c){var l;c.done?a(c.value):(l=c.value,l instanceof n?l:new n(function(d){d(l)})).then(o,s)}u((r=r.apply(t,e||[])).next())})}function Pe(t,e){var n,r,a,i,o={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(u){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||l[0]!==6&&l[0]!==2)){o=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(l[0]===6&&o.label<a[1]){o.label=a[1],a=l;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=e.call(t,o)}catch(d){l=[6,d],r=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([u,c])}}}function Nt(t,e,n){if(n||arguments.length===2)for(var r,a=0,i=e.length;a<i;a++)!r&&a in e||(r||(r=Array.prototype.slice.call(e,0,a)),r[a]=e[a]);return t.concat(r||Array.prototype.slice.call(e))}function $e(t,e){return new Promise(function(n){return setTimeout(n,t,e)})}function Ei(t){return!!t&&typeof t.then=="function"}function Ri(t,e){try{var n=t();Ei(n)?n.then(function(r){return e(!0,r)},function(r){return e(!1,r)}):e(!0,n)}catch(r){e(!1,r)}}function Ti(t,e,n){return n===void 0&&(n=16),Qe(this,void 0,void 0,function(){var r,a,i;return Pe(this,function(o){switch(o.label){case 0:r=Date.now(),a=0,o.label=1;case 1:return a<t.length?(e(t[a],a),(i=Date.now())>=r+n?(r=i,[4,$e(0)]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++a,[3,1];case 4:return[2]}})})}function Vr(t){t.then(void 0,function(){})}function nt(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]+e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]+e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]+e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]+e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function xe(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]*e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]*e[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=t[3]*e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]*e[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[2]*e[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[3]*e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function Dt(t,e){return(e%=64)===32?[t[1],t[0]]:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e|t[0]>>>32-e]:(e-=32,[t[1]<<e|t[0]>>>32-e,t[0]<<e|t[1]>>>32-e])}function Te(t,e){return(e%=64)===0?t:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e]:[t[1]<<e-32,0]}function ne(t,e){return[t[0]^e[0],t[1]^e[1]]}function Oi(t){return t=ne(t,[0,t[0]>>>1]),t=ne(t=xe(t,[4283543511,3981806797]),[0,t[0]>>>1]),t=ne(t=xe(t,[3301882366,444984403]),[0,t[0]>>>1])}function bc(t,e){e=e||0;var n,r=(t=t||"").length%16,a=t.length-r,i=[0,e],o=[0,e],s=[0,0],u=[0,0],c=[2277735313,289559509],l=[1291169091,658871167];for(n=0;n<a;n+=16)s=[255&t.charCodeAt(n+4)|(255&t.charCodeAt(n+5))<<8|(255&t.charCodeAt(n+6))<<16|(255&t.charCodeAt(n+7))<<24,255&t.charCodeAt(n)|(255&t.charCodeAt(n+1))<<8|(255&t.charCodeAt(n+2))<<16|(255&t.charCodeAt(n+3))<<24],u=[255&t.charCodeAt(n+12)|(255&t.charCodeAt(n+13))<<8|(255&t.charCodeAt(n+14))<<16|(255&t.charCodeAt(n+15))<<24,255&t.charCodeAt(n+8)|(255&t.charCodeAt(n+9))<<8|(255&t.charCodeAt(n+10))<<16|(255&t.charCodeAt(n+11))<<24],s=Dt(s=xe(s,c),31),i=nt(i=Dt(i=ne(i,s=xe(s,l)),27),o),i=nt(xe(i,[0,5]),[0,1390208809]),u=Dt(u=xe(u,l),33),o=nt(o=Dt(o=ne(o,u=xe(u,c)),31),i),o=nt(xe(o,[0,5]),[0,944331445]);switch(s=[0,0],u=[0,0],r){case 15:u=ne(u,Te([0,t.charCodeAt(n+14)],48));case 14:u=ne(u,Te([0,t.charCodeAt(n+13)],40));case 13:u=ne(u,Te([0,t.charCodeAt(n+12)],32));case 12:u=ne(u,Te([0,t.charCodeAt(n+11)],24));case 11:u=ne(u,Te([0,t.charCodeAt(n+10)],16));case 10:u=ne(u,Te([0,t.charCodeAt(n+9)],8));case 9:u=xe(u=ne(u,[0,t.charCodeAt(n+8)]),l),o=ne(o,u=xe(u=Dt(u,33),c));case 8:s=ne(s,Te([0,t.charCodeAt(n+7)],56));case 7:s=ne(s,Te([0,t.charCodeAt(n+6)],48));case 6:s=ne(s,Te([0,t.charCodeAt(n+5)],40));case 5:s=ne(s,Te([0,t.charCodeAt(n+4)],32));case 4:s=ne(s,Te([0,t.charCodeAt(n+3)],24));case 3:s=ne(s,Te([0,t.charCodeAt(n+2)],16));case 2:s=ne(s,Te([0,t.charCodeAt(n+1)],8));case 1:s=xe(s=ne(s,[0,t.charCodeAt(n)]),c),i=ne(i,s=xe(s=Dt(s,31),l))}return i=nt(i=ne(i,[0,t.length]),o=ne(o,[0,t.length])),o=nt(o,i),i=nt(i=Oi(i),o=Oi(o)),o=nt(o,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function qn(t){return parseInt(t)}function Ue(t){return parseFloat(t)}function qe(t,e){return typeof t=="number"&&isNaN(t)?e:t}function Ze(t){return t.reduce(function(e,n){return e+(n?1:0)},0)}function Li(t,e){if(e===void 0&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function Mi(t){return t&&De(t)=="object"&&"message"in t?t:{message:t}}function _c(t){return typeof t!="function"}function Ic(t,e,n){var r=Object.keys(t).filter(function(i){return!function(o,s){for(var u=0,c=o.length;u<c;++u)if(o[u]===s)return!0;return!1}(n,i)}),a=Array(r.length);return Ti(r,function(i,o){a[o]=function(s,u){var c=new Promise(function(l){var d=Date.now();Ri(s.bind(null,u),function(){for(var g=[],h=0;h<arguments.length;h++)g[h]=arguments[h];var f=Date.now()-d;if(!g[0])return l(function(){return{error:Mi(g[1]),duration:f}});var y=g[1];if(_c(y))return l(function(){return{value:y,duration:f}});l(function(){return new Promise(function(S){var b=Date.now();Ri(y,function(){for(var m=[],_=0;_<arguments.length;_++)m[_]=arguments[_];var I=f+Date.now()-b;if(!m[0])return S({error:Mi(m[1]),duration:I});S({value:m[1],duration:I})})})})})});return Vr(c),function(){return c.then(function(l){return l()})}}(t[i],e)}),function(){return Qe(this,void 0,void 0,function(){var i,o,s,u,c,l;return Pe(this,function(d){switch(d.label){case 0:for(i={},o=0,s=r;o<s.length;o++)u=s[o],i[u]=void 0;c=Array(r.length),l=function(){var h;return Pe(this,function(f){switch(f.label){case 0:return h=!0,[4,Ti(r,function(y,S){if(!c[S])if(a[S]){var b=a[S]().then(function(m){return i[y]=m});Vr(b),c[S]=b}else h=!1})];case 1:return f.sent(),h?[2,"break"]:[4,$e(1)];case 2:return f.sent(),[2]}})},d.label=1;case 1:return[5,l()];case 2:if(d.sent()==="break")return[3,4];d.label=3;case 3:return[3,1];case 4:return[4,Promise.all(c)];case 5:return d.sent(),[2,i]}})})}}function xi(){var t=window,e=navigator;return Ze(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function wc(){var t=window,e=navigator;return Ze(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!xi()}function ea(){var t=window,e=navigator;return Ze(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,e.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function ar(){var t=window,e=navigator;return Ze(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,e.vendor.indexOf("Apple")===0,"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function ta(){var t=window;return Ze(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function Sc(){var t,e,n=window;return Ze(["buildID"in navigator,"MozAppearance"in((e=(t=document.documentElement)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Cc(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function Fi(){var t=ea(),e=Sc();if(!t&&!e)return!1;var n=window;return Ze(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function Ni(t){var e=new Error(t);return e.name=t,e}function Di(t,e,n){var r,a,i;return n===void 0&&(n=50),Qe(this,void 0,void 0,function(){var o,s;return Pe(this,function(u){switch(u.label){case 0:o=document,u.label=1;case 1:return o.body?[3,3]:[4,$e(n)];case 2:return u.sent(),[3,1];case 3:s=o.createElement("iframe"),u.label=4;case 4:return u.trys.push([4,,10,11]),[4,new Promise(function(c,l){var d=!1,g=function(){d=!0,c()};s.onload=g,s.onerror=function(y){d=!0,l(y)};var h=s.style;h.setProperty("display","block","important"),h.position="absolute",h.top="0",h.left="0",h.visibility="hidden",e&&"srcdoc"in s?s.srcdoc=e:s.src="about:blank",o.body.appendChild(s);var f=function(){var S,b;d||(((b=(S=s.contentWindow)===null||S===void 0?void 0:S.document)===null||b===void 0?void 0:b.readyState)==="complete"?g():setTimeout(f,10))};f()})];case 5:u.sent(),u.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,$e(n)];case 7:return u.sent(),[3,6];case 8:return[4,t(s,s.contentWindow)];case 9:return[2,u.sent()];case 10:return(i=s.parentNode)===null||i===void 0||i.removeChild(s),[7];case 11:return[2]}})})}function Ac(t){for(var e=function(c){for(var l,d,g="Unexpected syntax '".concat(c,"'"),h=/^\s*([a-z-]*)(.*)$/i.exec(c),f=h[1]||void 0,y={},S=/([.:#][\w-]+|\[.+?\])/gi,b=function(F,E){y[F]=y[F]||[],y[F].push(E)};;){var m=S.exec(h[2]);if(!m)break;var _=m[0];switch(_[0]){case".":b("class",_.slice(1));break;case"#":b("id",_.slice(1));break;case"[":var I=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(_);if(!I)throw new Error(g);b(I[1],(d=(l=I[4])!==null&&l!==void 0?l:I[5])!==null&&d!==void 0?d:"");break;default:throw new Error(g)}}return[f,y]}(t),n=e[0],r=e[1],a=document.createElement(n??"div"),i=0,o=Object.keys(r);i<o.length;i++){var s=o[i],u=r[s].join(" ");s==="style"?kc(a.style,u):a.setAttribute(s,u)}return a}function kc(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var a=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(a);if(i){var o=i[1],s=i[2],u=i[4];t.setProperty(o,s,u||"")}}}var Ut=["monospace","sans-serif","serif"],Ui=["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 ra(t){return t.toDataURL()}var jr,na;function Ec(){var t=this;return function(){if(na===void 0){var e=function(){var r=aa();ia(r)?na=setTimeout(e,2500):(jr=r,na=void 0)};e()}}(),function(){return Qe(t,void 0,void 0,function(){var e;return Pe(this,function(n){switch(n.label){case 0:return ia(e=aa())?jr?[2,Nt([],jr,!0)]:Cc()?[4,(r=document,(r.exitFullscreen||r.msExitFullscreen||r.mozCancelFullScreen||r.webkitExitFullscreen).call(r))]:[3,2]:[3,2];case 1:n.sent(),e=aa(),n.label=2;case 2:return ia(e)||(jr=e),[2,e]}var r})})}}function aa(){var t=screen;return[qe(Ue(t.availTop),null),qe(Ue(t.width)-Ue(t.availWidth)-qe(Ue(t.availLeft),0),null),qe(Ue(t.height)-Ue(t.availHeight)-qe(Ue(t.availTop),0),null),qe(Ue(t.availLeft),null)]}function ia(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function Rc(t){var e;return Qe(this,void 0,void 0,function(){var n,r,a,i,o,s,u;return Pe(this,function(c){switch(c.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(t.length),i={},Zi(r),u=0;u<t.length;++u)o=Ac(t[u]),Zi(s=n.createElement("div")),s.appendChild(o),r.appendChild(s),a[u]=o;c.label=1;case 1:return n.body?[3,3]:[4,$e(50)];case 2:return c.sent(),[3,1];case 3:n.body.appendChild(r);try{for(u=0;u<t.length;++u)a[u].offsetParent||(i[t[u]]=!0)}finally{(e=r.parentNode)===null||e===void 0||e.removeChild(r)}return[2,i]}})})}function Zi(t){t.style.setProperty("display","block","important")}function Bi(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function zi(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function Zt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function Wi(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function Pi(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var Q=Math,be=function(){return 0},oa={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Tc={fonts:function(){return Di(function(e,n){var r=n.document,a=r.body;a.style.fontSize="48px";var i=r.createElement("div"),o={},s={},u=function(h){var f=r.createElement("span"),y=f.style;return y.position="absolute",y.top="0",y.left="0",y.fontFamily=h,f.textContent="mmMwWLliI0O&1",i.appendChild(f),f},c=Ut.map(u),l=function(){for(var g={},h=function(b){g[b]=Ut.map(function(m){return function(_,I){return u("'".concat(_,"',").concat(I))}(b,m)})},f=0,y=Ui;f<y.length;f++)h(y[f]);return g}();a.appendChild(i);for(var d=0;d<Ut.length;d++)o[Ut[d]]=c[d].offsetWidth,s[Ut[d]]=c[d].offsetHeight;return Ui.filter(function(g){return n=l[g],Ut.some(function(h,f){return n[f].offsetWidt