scratch-vm
Version:
Virtual Machine for Scratch 3.0
27 lines (24 loc) • 7.4 MB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["VirtualMachine"] = factory();
else
root["VirtualMachine"] = factory();
})(self, () => {
return /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/@vernier/godirect/dist/godirect.min.cjs.js":
/*!*****************************************************************!*\
!*** ./node_modules/@vernier/godirect/dist/godirect.min.cjs.js ***!
\*****************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
"use strict";
/**
* Copyright (c) 2023 Vernier Software. All rights reserved.
* This code may only be used under the BSD 3-Clause license found at
* https://raw.githubusercontent.com/VernierST/godirect-js/main/LICENSE
*/
function t(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)}))}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=a(t);if(e){var o=a(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return c(this,r)}}function f(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof __webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v={exports:{}},d=function(t){return t&&t.Math==Math&&t},y=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof p&&p)||function(){return this}()||Function("return this")(),g=function(t){try{return!!t()}catch(t){return!0}},m=!g((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),b=m,w=Function.prototype,x=w.apply,S=w.call,k="object"==typeof Reflect&&Reflect.apply||(b?S.bind(x):function(){return S.apply(x,arguments)}),E=m,_=Function.prototype,O=_.bind,A=_.call,j=E&&O.bind(A,A),P=E?function(t){return t&&j(t)}:function(t){return t&&function(){return A.apply(t,arguments)}},T=function(t){return"function"==typeof t},M={},L=!g((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=m,I=Function.prototype.call,C=R?I.bind(I):function(){return I.apply(I,arguments)},U={},N={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,F=D&&!N.call({1:2},1);U.f=F?function(t){var e=D(this,t);return!!e&&e.enumerable}:N;var G,V,z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},W=P,B=W({}.toString),Q=W("".slice),H=function(t){return Q(B(t),8,-1)},q=P,K=g,Y=H,J=y.Object,X=q("".split),$=K((function(){return!J("z").propertyIsEnumerable(0)}))?function(t){return"String"==Y(t)?X(t,""):J(t)}:J,Z=y.TypeError,tt=function(t){if(null==t)throw Z("Can't call method on "+t);return t},et=$,rt=tt,nt=function(t){return et(rt(t))},ot=T,it=function(t){return"object"==typeof t?null!==t:ot(t)},at={},ut=at,ct=y,st=T,ft=function(t){return st(t)?t:void 0},lt=function(t,e){return arguments.length<2?ft(ut[t])||ft(ct[t]):ut[t]&&ut[t][e]||ct[t]&&ct[t][e]},pt=P({}.isPrototypeOf),ht=lt("navigator","userAgent")||"",vt=y,dt=ht,yt=vt.process,gt=vt.Deno,mt=yt&&yt.versions||gt&>.version,bt=mt&&mt.v8;bt&&(V=(G=bt.split("."))[0]>0&&G[0]<4?1:+(G[0]+G[1])),!V&&dt&&(!(G=dt.match(/Edge\/(\d+)/))||G[1]>=74)&&(G=dt.match(/Chrome\/(\d+)/))&&(V=+G[1]);var wt=V,xt=wt,St=g,kt=!!Object.getOwnPropertySymbols&&!St((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&xt&&xt<41})),Et=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_t=lt,Ot=T,At=pt,jt=Et,Pt=y.Object,Tt=jt?function(t){return"symbol"==typeof t}:function(t){var e=_t("Symbol");return Ot(e)&&At(e.prototype,Pt(t))},Mt=y.String,Lt=function(t){try{return Mt(t)}catch(t){return"Object"}},Rt=T,It=Lt,Ct=y.TypeError,Ut=function(t){if(Rt(t))return t;throw Ct(It(t)+" is not a function")},Nt=Ut,Dt=function(t,e){var r=t[e];return null==r?void 0:Nt(r)},Ft=C,Gt=T,Vt=it,zt=y.TypeError,Wt={exports:{}},Bt=y,Qt=Object.defineProperty,Ht=function(t,e){try{Qt(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},qt=y["__core-js_shared__"]||Ht("__core-js_shared__",{}),Kt=qt;(Wt.exports=function(t,e){return Kt[t]||(Kt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.0",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Yt=tt,Jt=y.Object,Xt=function(t){return Jt(Yt(t))},$t=Xt,Zt=P({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Zt($t(t),e)},ee=P,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ae=y,ue=Wt.exports,ce=te,se=ie,fe=kt,le=Et,pe=ue("wks"),he=ae.Symbol,ve=he&&he.for,de=le?he:he&&he.withoutSetter||se,ye=function(t){if(!ce(pe,t)||!fe&&"string"!=typeof pe[t]){var e="Symbol."+t;fe&&ce(he,t)?pe[t]=he[t]:pe[t]=le&&ve?ve(e):de(e)}return pe[t]},ge=C,me=it,be=Tt,we=Dt,xe=function(t,e){var r,n;if("string"===e&&Gt(r=t.toString)&&!Vt(n=Ft(r,t)))return n;if(Gt(r=t.valueOf)&&!Vt(n=Ft(r,t)))return n;if("string"!==e&&Gt(r=t.toString)&&!Vt(n=Ft(r,t)))return n;throw zt("Can't convert object to primitive value")},Se=ye,ke=y.TypeError,Ee=Se("toPrimitive"),_e=function(t,e){if(!me(t)||be(t))return t;var r,n=we(t,Ee);if(n){if(void 0===e&&(e="default"),r=ge(n,t,e),!me(r)||be(r))return r;throw ke("Can't convert object to primitive value")}return void 0===e&&(e="number"),xe(t,e)},Oe=Tt,Ae=function(t){var e=_e(t,"string");return Oe(e)?e:e+""},je=it,Pe=y.document,Te=je(Pe)&&je(Pe.createElement),Me=function(t){return Te?Pe.createElement(t):{}},Le=Me,Re=!L&&!g((function(){return 7!=Object.defineProperty(Le("div"),"a",{get:function(){return 7}}).a})),Ie=L,Ce=C,Ue=U,Ne=z,De=nt,Fe=Ae,Ge=te,Ve=Re,ze=Object.getOwnPropertyDescriptor;M.f=Ie?ze:function(t,e){if(t=De(t),e=Fe(e),Ve)try{return ze(t,e)}catch(t){}if(Ge(t,e))return Ne(!Ce(Ue.f,t,e),t[e])};var We=g,Be=T,Qe=/#|\.prototype\./,He=function(t,e){var r=Ke[qe(t)];return r==Je||r!=Ye&&(Be(e)?We(e):!!e)},qe=He.normalize=function(t){return String(t).replace(Qe,".").toLowerCase()},Ke=He.data={},Ye=He.NATIVE="N",Je=He.POLYFILL="P",Xe=He,$e=Ut,Ze=m,tr=P(P.bind),er=function(t,e){return $e(t),void 0===e?t:Ze?tr(t,e):function(){return t.apply(e,arguments)}},rr={},nr=L&&g((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),or=y,ir=it,ar=or.String,ur=or.TypeError,cr=function(t){if(ir(t))return t;throw ur(ar(t)+" is not an object")},sr=L,fr=Re,lr=nr,pr=cr,hr=Ae,vr=y.TypeError,dr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor;rr.f=sr?lr?function(t,e,r){if(pr(t),e=hr(e),pr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=yr(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return dr(t,e,r)}:dr:function(t,e,r){if(pr(t),e=hr(e),pr(r),fr)try{return dr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw vr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var gr=rr,mr=z,br=L?function(t,e,r){return gr.f(t,e,mr(1,r))}:function(t,e,r){return t[e]=r,t},wr=y,xr=k,Sr=P,kr=T,Er=M.f,_r=Xe,Or=at,Ar=er,jr=br,Pr=te,Tr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return xr(t,this,arguments)};return e.prototype=t.prototype,e},Mr=function(t,e){var r,n,o,i,a,u,c,s,f=t.target,l=t.global,p=t.stat,h=t.proto,v=l?wr:p?wr[f]:(wr[f]||{}).prototype,d=l?Or:Or[f]||jr(Or,f,{})[f],y=d.prototype;for(o in e)r=!_r(l?o:f+(p?".":"#")+o,t.forced)&&v&&Pr(v,o),a=d[o],r&&(u=t.noTargetGet?(s=Er(v,o))&&s.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(c=t.bind&&r?Ar(i,wr):t.wrap&&r?Tr(i):h&&kr(i)?Sr(i):i,(t.sham||i&&i.sham||a&&a.sham)&&jr(c,"sham",!0),jr(d,o,c),h&&(Pr(Or,n=f+"Prototype")||jr(Or,n,{}),jr(Or[n],o,i),t.real&&y&&!y[o]&&jr(y,o,i)))},Lr=Wt.exports,Rr=ie,Ir=Lr("keys"),Cr=function(t){return Ir[t]||(Ir[t]=Rr(t))},Ur=!g((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Nr=y,Dr=te,Fr=T,Gr=Xt,Vr=Ur,zr=Cr("IE_PROTO"),Wr=Nr.Object,Br=Wr.prototype,Qr=Vr?Wr.getPrototypeOf:function(t){var e=Gr(t);if(Dr(e,zr))return e[zr];var r=e.constructor;return Fr(r)&&e instanceof r?r.prototype:e instanceof Wr?Br:null},Hr=y,qr=T,Kr=Hr.String,Yr=Hr.TypeError,Jr=P,Xr=cr,$r=function(t){if("object"==typeof t||qr(t))return t;throw Yr("Can't set "+Kr(t)+" as a prototype")},Zr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Jr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Xr(r),$r(n),e?t(r,n):r.__proto__=n,r}}():void 0),tn={},en=Math.ceil,rn=Math.floor,nn=function(t){var e=+t;return e!=e||0===e?0:(e>0?rn:en)(e)},on=nn,an=Math.max,un=Math.min,cn=function(t,e){var r=on(t);return r<0?an(r+e,0):un(r,e)},sn=nn,fn=Math.min,ln=function(t){return t>0?fn(sn(t),9007199254740991):0},pn=ln,hn=function(t){return pn(t.length)},vn=nt,dn=cn,yn=hn,gn=function(t){return function(e,r,n){var o,i=vn(e),a=yn(i),u=dn(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},mn={includes:gn(!0),indexOf:gn(!1)},bn={},wn=te,xn=nt,Sn=mn.indexOf,kn=bn,En=P([].push),_n=function(t,e){var r,n=xn(t),o=0,i=[];for(r in n)!wn(kn,r)&&wn(n,r)&&En(i,r);for(;e.length>o;)wn(n,r=e[o++])&&(~Sn(i,r)||En(i,r));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],An=_n,jn=On.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(t){return An(t,jn)};var Pn={};Pn.f=Object.getOwnPropertySymbols;var Tn=lt,Mn=tn,Ln=Pn,Rn=cr,In=P([].concat),Cn=Tn("Reflect","ownKeys")||function(t){var e=Mn.f(Rn(t)),r=Ln.f;return r?In(e,r(t)):e},Un=te,Nn=Cn,Dn=M,Fn=rr,Gn={},Vn=_n,zn=On,Wn=Object.keys||function(t){return Vn(t,zn)},Bn=L,Qn=nr,Hn=rr,qn=cr,Kn=nt,Yn=Wn;Gn.f=Bn&&!Qn?Object.defineProperties:function(t,e){qn(t);for(var r,n=Kn(e),o=Yn(e),i=o.length,a=0;i>a;)Hn.f(t,r=o[a++],n[r]);return t};var Jn,Xn=lt("document","documentElement"),$n=cr,Zn=Gn,to=On,eo=bn,ro=Xn,no=Me,oo=Cr("IE_PROTO"),io=function(){},ao=function(t){return"<script>"+t+"<\/script>"},uo=function(t){t.write(ao("")),t.close();var e=t.parentWindow.Object;return t=null,e},co=function(){try{Jn=new ActiveXObject("htmlfile")}catch(t){}var t,e;co="undefined"!=typeof document?document.domain&&Jn?uo(Jn):((e=no("iframe")).style.display="none",ro.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ao("document.F=Object")),t.close(),t.F):uo(Jn);for(var r=to.length;r--;)delete co.prototype[to[r]];return co()};eo[oo]=!0;var so=Object.create||function(t,e){var r;return null!==t?(io.prototype=$n(t),r=new io,io.prototype=null,r[oo]=t):r=co(),void 0===e?r:Zn.f(r,e)},fo=P("".replace),lo=String(Error("zxcasd").stack),po=/\n\s*at [^:]*:[^\n]*/,ho=po.test(lo),vo=it,yo=br,go={},mo=go,bo=ye("iterator"),wo=Array.prototype,xo=function(t){return void 0!==t&&(mo.Array===t||wo[bo]===t)},So={};So[ye("toStringTag")]="z";var ko="[object z]"===String(So),Eo=y,_o=ko,Oo=T,Ao=H,jo=ye("toStringTag"),Po=Eo.Object,To="Arguments"==Ao(function(){return arguments}()),Mo=_o?Ao:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Po(t),jo))?r:To?Ao(e):"Object"==(n=Ao(e))&&Oo(e.callee)?"Arguments":n},Lo=Mo,Ro=Dt,Io=go,Co=ye("iterator"),Uo=function(t){if(null!=t)return Ro(t,Co)||Ro(t,"@@iterator")||Io[Lo(t)]},No=C,Do=Ut,Fo=cr,Go=Lt,Vo=Uo,zo=y.TypeError,Wo=function(t,e){var r=arguments.length<2?Vo(t):e;if(Do(r))return Fo(No(r,t));throw zo(Go(t)+" is not iterable")},Bo=C,Qo=cr,Ho=Dt,qo=function(t,e,r){var n,o;Qo(t);try{if(!(n=Ho(t,"return"))){if("throw"===e)throw r;return r}n=Bo(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Qo(n),r},Ko=er,Yo=C,Jo=cr,Xo=Lt,$o=xo,Zo=hn,ti=pt,ei=Wo,ri=Uo,ni=qo,oi=y.TypeError,ii=function(t,e){this.stopped=t,this.result=e},ai=ii.prototype,ui=function(t,e,r){var n,o,i,a,u,c,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=Ko(e,f),d=function(t){return n&&ni(n,"normal",t),new ii(!0,t)},y=function(t){return l?(Jo(t),h?v(t[0],t[1],d):v(t[0],t[1])):h?v(t,d):v(t)};if(p)n=t;else{if(!(o=ri(t)))throw oi(Xo(t)+" is not iterable");if($o(o)){for(i=0,a=Zo(t);a>i;i++)if((u=y(t[i]))&&ti(ai,u))return u;return new ii(!1)}n=ei(t,o)}for(c=n.next;!(s=Yo(c,n)).done;){try{u=y(s.value)}catch(t){ni(n,"throw",t)}if("object"==typeof u&&u&&ti(ai,u))return u}return new ii(!1)},ci=Mo,si=y.String,fi=function(t){if("Symbol"===ci(t))throw TypeError("Cannot convert a Symbol value to a string");return si(t)},li=fi,pi=z,hi=!g((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",pi(1,7)),7!==t.stack)})),vi=Mr,di=y,yi=pt,gi=Qr,mi=Zr,bi=function(t,e,r){for(var n=Nn(e),o=Fn.f,i=Dn.f,a=0;a<n.length;a++){var u=n[a];Un(t,u)||r&&Un(r,u)||o(t,u,i(e,u))}},wi=so,xi=br,Si=z,ki=function(t,e){if(ho&&"string"==typeof t)for(;e--;)t=fo(t,po,"");return t},Ei=function(t,e){vo(e)&&"cause"in e&&yo(t,"cause",e.cause)},_i=ui,Oi=function(t,e){return void 0===t?arguments.length<2?"":e:li(t)},Ai=hi,ji=ye("toStringTag"),Pi=di.Error,Ti=[].push,Mi=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=yi(Li,this);mi?r=mi(new Pi,o?gi(this):Li):(r=o?this:wi(Li),xi(r,ji,"Error")),void 0!==e&&xi(r,"message",Oi(e)),Ai&&xi(r,"stack",ki(r.stack,1)),Ei(r,n);var i=[];return _i(t,Ti,{that:i}),xi(r,"errors",i),r};mi?mi(Mi,Pi):bi(Mi,Pi,{name:!0});var Li=Mi.prototype=wi(Pi.prototype,{constructor:Si(1,Mi),message:Si(1,""),name:Si(1,"AggregateError")});vi({global:!0},{AggregateError:Mi});var Ri=T,Ii=qt,Ci=P(Function.toString);Ri(Ii.inspectSource)||(Ii.inspectSource=function(t){return Ci(t)});var Ui,Ni,Di,Fi=Ii.inspectSource,Gi=T,Vi=Fi,zi=y.WeakMap,Wi=Gi(zi)&&/native code/.test(Vi(zi)),Bi=y,Qi=P,Hi=it,qi=br,Ki=te,Yi=qt,Ji=Cr,Xi=bn,$i=Bi.TypeError,Zi=Bi.WeakMap;if(Wi||Yi.state){var ta=Yi.state||(Yi.state=new Zi),ea=Qi(ta.get),ra=Qi(ta.has),na=Qi(ta.set);Ui=function(t,e){if(ra(ta,t))throw new $i("Object already initialized");return e.facade=t,na(ta,t,e),e},Ni=function(t){return ea(ta,t)||{}},Di=function(t){return ra(ta,t)}}else{var oa=Ji("state");Xi[oa]=!0,Ui=function(t,e){if(Ki(t,oa))throw new $i("Object already initialized");return e.facade=t,qi(t,oa,e),e},Ni=function(t){return Ki(t,oa)?t[oa]:{}},Di=function(t){return Ki(t,oa)}}var ia,aa,ua,ca={set:Ui,get:Ni,has:Di,enforce:function(t){return Di(t)?Ni(t):Ui(t,{})},getterFor:function(t){return function(e){var r;if(!Hi(e)||(r=Ni(e)).type!==t)throw $i("Incompatible receiver, "+t+" required");return r}}},sa=L,fa=te,la=Function.prototype,pa=sa&&Object.getOwnPropertyDescriptor,ha=fa(la,"name"),va={EXISTS:ha,PROPER:ha&&"something"===function(){}.name,CONFIGURABLE:ha&&(!sa||sa&&pa(la,"name").configurable)},da=br,ya=function(t,e,r,n){n&&n.enumerable?t[e]=r:da(t,e,r)},ga=g,ma=T,ba=so,wa=Qr,xa=ya,Sa=ye("iterator"),ka=!1;[].keys&&("next"in(ua=[].keys())?(aa=wa(wa(ua)))!==Object.prototype&&(ia=aa):ka=!0);var Ea=null==ia||ga((function(){var t={};return ia[Sa].call(t)!==t}));ma((ia=Ea?{}:ba(ia))[Sa])||xa(ia,Sa,(function(){return this}));var _a={IteratorPrototype:ia,BUGGY_SAFARI_ITERATORS:ka},Oa=Mo,Aa=ko?{}.toString:function(){return"[object "+Oa(this)+"]"},ja=ko,Pa=rr.f,Ta=br,Ma=te,La=Aa,Ra=ye("toStringTag"),Ia=function(t,e,r,n){if(t){var o=r?t:t.prototype;Ma(o,Ra)||Pa(o,Ra,{configurable:!0,value:e}),n&&!ja&&Ta(o,"toString",La)}},Ca=_a.IteratorPrototype,Ua=so,Na=z,Da=Ia,Fa=go,Ga=function(){return this},Va=Mr,za=C,Wa=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Ua(Ca,{next:Na(+!n,r)}),Da(t,o,!1,!0),Fa[o]=Ga,t},Ba=Qr,Qa=Ia,Ha=ya,qa=go,Ka=va.PROPER,Ya=_a.BUGGY_SAFARI_ITERATORS,Ja=ye("iterator"),Xa=function(){return this},$a=function(t,e,r,n,o,i,a){Wa(r,e,n);var u,c,s,f=function(t){if(t===o&&d)return d;if(!Ya&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,v=h[Ja]||h["@@iterator"]||o&&h[o],d=!Ya&&v||f(o),y="Array"==e&&h.entries||v;if(y&&(u=Ba(y.call(new t)))!==Object.prototype&&u.next&&(Qa(u,l,!0,!0),qa[l]=Xa),Ka&&"values"==o&&v&&"values"!==v.name&&(p=!0,d=function(){return za(v,this)}),o)if(c={values:f("values"),keys:i?d:f("keys"),entries:f("entries")},a)for(s in c)(Ya||p||!(s in h))&&Ha(h,s,c[s]);else Va({target:e,proto:!0,forced:Ya||p},c);return a&&h[Ja]!==d&&Ha(h,Ja,d,{name:o}),qa[e]=d,c},Za=nt,tu=go,eu=ca;rr.f;var ru=$a,nu=eu.set,ou=eu.getterFor("Array Iterator");ru(Array,"Array",(function(t,e){nu(this,{type:"Array Iterator",target:Za(t),index:0,kind:e})}),(function(){var t=ou(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),tu.Arguments=tu.Array;var iu=y.Promise,au=ya,uu=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:au(t,n,e[n],r);return t},cu=lt,su=rr,fu=L,lu=ye("species"),pu=function(t){var e=cu(t),r=su.f;fu&&e&&!e[lu]&&r(e,lu,{configurable:!0,get:function(){return this}})},hu=pt,vu=y.TypeError,du=function(t,e){if(hu(e,t))return t;throw vu("Incorrect invocation")},yu=ye("iterator"),gu=!1;try{var mu=0,bu={next:function(){return{done:!!mu++}},return:function(){gu=!0}};bu[yu]=function(){return this},Array.from(bu,(function(){throw 2}))}catch(t){}var wu=function(t,e){if(!e&&!gu)return!1;var r=!1;try{var n={};n[yu]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},xu=P,Su=g,ku=T,Eu=Mo,_u=Fi,Ou=function(){},Au=[],ju=lt("Reflect","construct"),Pu=/^\s*(?:class|function)\b/,Tu=xu(Pu.exec),Mu=!Pu.exec(Ou),Lu=function(t){if(!ku(t))return!1;try{return ju(Ou,Au,t),!0}catch(t){return!1}},Ru=function(t){if(!ku(t))return!1;switch(Eu(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Mu||!!Tu(Pu,_u(t))}catch(t){return!0}};Ru.sham=!0;var Iu,Cu,Uu,Nu,Du=!ju||Su((function(){var t;return Lu(Lu.call)||!Lu(Object)||!Lu((function(){t=!0}))||t}))?Ru:Lu,Fu=Du,Gu=Lt,Vu=y.TypeError,zu=cr,Wu=function(t){if(Fu(t))return t;throw Vu(Gu(t)+" is not a constructor")},Bu=ye("species"),Qu=function(t,e){var r,n=zu(t).constructor;return void 0===n||null==(r=zu(n)[Bu])?e:Wu(r)},Hu=P([].slice),qu=y.TypeError,Ku=function(t,e){if(t<e)throw qu("Not enough arguments");return t},Yu=/(?:ipad|iphone|ipod).*applewebkit/i.test(ht),Ju="process"==H(y.process),Xu=y,$u=k,Zu=er,tc=T,ec=te,rc=g,nc=Xn,oc=Hu,ic=Me,ac=Ku,uc=Yu,cc=Ju,sc=Xu.setImmediate,fc=Xu.clearImmediate,lc=Xu.process,pc=Xu.Dispatch,hc=Xu.Function,vc=Xu.MessageChannel,dc=Xu.String,yc=0,gc={};try{Iu=Xu.location}catch(t){}var mc=function(t){if(ec(gc,t)){var e=gc[t];delete gc[t],e()}},bc=function(t){return function(){mc(t)}},wc=function(t){mc(t.data)},xc=function(t){Xu.postMessage(dc(t),Iu.protocol+"//"+Iu.host)};sc&&fc||(sc=function(t){ac(arguments.length,1);var e=tc(t)?t:hc(t),r=oc(arguments,1);return gc[++yc]=function(){$u(e,void 0,r)},Cu(yc),yc},fc=function(t){delete gc[t]},cc?Cu=function(t){lc.nextTick(bc(t))}:pc&&pc.now?Cu=function(t){pc.now(bc(t))}:vc&&!uc?(Nu=(Uu=new vc).port2,Uu.port1.onmessage=wc,Cu=Zu(Nu.postMessage,Nu)):Xu.addEventListener&&tc(Xu.postMessage)&&!Xu.importScripts&&Iu&&"file:"!==Iu.protocol&&!rc(xc)?(Cu=xc,Xu.addEventListener("message",wc,!1)):Cu="onreadystatechange"in ic("script")?function(t){nc.appendChild(ic("script")).onreadystatechange=function(){nc.removeChild(this),mc(t)}}:function(t){setTimeout(bc(t),0)});var Sc,kc,Ec,_c,Oc,Ac,jc,Pc,Tc={set:sc,clear:fc},Mc=y,Lc=/ipad|iphone|ipod/i.test(ht)&&void 0!==Mc.Pebble,Rc=/web0s(?!.*chrome)/i.test(ht),Ic=y,Cc=er,Uc=M.f,Nc=Tc.set,Dc=Yu,Fc=Lc,Gc=Rc,Vc=Ju,zc=Ic.MutationObserver||Ic.WebKitMutationObserver,Wc=Ic.document,Bc=Ic.process,Qc=Ic.Promise,Hc=Uc(Ic,"queueMicrotask"),qc=Hc&&Hc.value;qc||(Sc=function(){var t,e;for(Vc&&(t=Bc.domain)&&t.exit();kc;){e=kc.fn,kc=kc.next;try{e()}catch(t){throw kc?_c():Ec=void 0,t}}Ec=void 0,t&&t.enter()},Dc||Vc||Gc||!zc||!Wc?!Fc&&Qc&&Qc.resolve?((jc=Qc.resolve(void 0)).constructor=Qc,Pc=Cc(jc.then,jc),_c=function(){Pc(Sc)}):Vc?_c=function(){Bc.nextTick(Sc)}:(Nc=Cc(Nc,Ic),_c=function(){Nc(Sc)}):(Oc=!0,Ac=Wc.createTextNode(""),new zc(Sc).observe(Ac,{characterData:!0}),_c=function(){Ac.data=Oc=!Oc}));var Kc=qc||function(t){var e={fn:t,next:void 0};Ec&&(Ec.next=e),kc||(kc=e,_c()),Ec=e},Yc={},Jc=Ut,Xc=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Jc(e),this.reject=Jc(r)};Yc.f=function(t){return new Xc(t)};var $c=cr,Zc=it,ts=Yc,es=function(t,e){if($c(t),Zc(e)&&e.constructor===t)return e;var r=ts.f(t);return(0,r.resolve)(e),r.promise},rs=y,ns=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},os=function(){this.head=null,this.tail=null};os.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var is,as,us,cs="object"==typeof window,ss=Mr,fs=y,ls=lt,ps=C,hs=iu,vs=uu,ds=Ia,ys=pu,gs=Ut,ms=T,bs=it,ws=du,xs=Fi,Ss=ui,ks=wu,Es=Qu,_s=Tc.set,Os=Kc,As=es,js=function(t,e){var r=rs.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},Ps=Yc,Ts=ns,Ms=os,Ls=ca,Rs=Xe,Is=cs,Cs=Ju,Us=wt,Ns=ye("species"),Ds="Promise",Fs=Ls.getterFor(Ds),Gs=Ls.set,Vs=Ls.getterFor(Ds),zs=hs&&hs.prototype,Ws=hs,Bs=zs,Qs=fs.TypeError,Hs=fs.document,qs=fs.process,Ks=Ps.f,Ys=Ks,Js=!!(Hs&&Hs.createEvent&&fs.dispatchEvent),Xs=ms(fs.PromiseRejectionEvent),$s=Rs(Ds,(function(){var t=xs(Ws),e=t!==String(Ws);if(!e&&66===Us)return!0;if(!Bs.finally)return!0;if(Us>=51&&/native code/.test(t))return!1;var r=new Ws((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Ns]=n,!(r.then((function(){}))instanceof n)||!e&&Is&&!Xs})),Zs=$s||!ks((function(t){Ws.all(t).catch((function(){}))})),tf=function(t){var e;return!(!bs(t)||!ms(e=t.then))&&e},ef=function(t,e){var r,n,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&uf(e),e.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===t.promise?s(Qs("Promise-chain cycle")):(n=tf(r))?ps(n,r,c,s):c(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},rf=function(t,e){t.notified||(t.notified=!0,Os((function(){for(var r,n=t.reactions;r=n.get();)ef(r,t);t.notified=!1,e&&!t.rejection&&of(t)})))},nf=function(t,e,r){var n,o;Js?((n=Hs.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),fs.dispatchEvent(n)):n={promise:e,reason:r},!Xs&&(o=fs["on"+t])?o(n):"unhandledrejection"===t&&js("Unhandled promise rejection",r)},of=function(t){ps(_s,fs,(function(){var e,r=t.facade,n=t.value;if(af(t)&&(e=Ts((function(){Cs?qs.emit("unhandledRejection",n,r):nf("unhandledrejection",r,n)})),t.rejection=Cs||af(t)?2:1,e.error))throw e.value}))},af=function(t){return 1!==t.rejection&&!t.parent},uf=function(t){ps(_s,fs,(function(){var e=t.facade;Cs?qs.emit("rejectionHandled",e):nf("rejectionhandled",e,t.value)}))},cf=function(t,e,r){return function(n){t(e,n,r)}},sf=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,rf(t,!0))},ff=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Qs("Promise can't be resolved itself");var n=tf(e);n?Os((function(){var r={done:!1};try{ps(n,e,cf(ff,r,t),cf(sf,r,t))}catch(e){sf(r,e,t)}})):(t.value=e,t.state=1,rf(t,!1))}catch(e){sf({done:!1},e,t)}}};$s&&(Bs=(Ws=function(t){ws(this,Bs),gs(t),ps(is,this);var e=Fs(this);try{t(cf(ff,e),cf(sf,e))}catch(t){sf(e,t)}}).prototype,(is=function(t){Gs(this,{type:Ds,done:!1,notified:!1,parent:!1,reactions:new Ms,rejection:!1,state:0,value:void 0})}).prototype=vs(Bs,{then:function(t,e){var r=Vs(this),n=Ks(Es(this,Ws));return r.parent=!0,n.ok=!ms(t)||t,n.fail=ms(e)&&e,n.domain=Cs?qs.domain:void 0,0==r.state?r.reactions.add(n):Os((function(){ef(n,r)})),n.promise},catch:function(t){return this.then(void 0,t)}}),as=function(){var t=new is,e=Fs(t);this.promise=t,this.resolve=cf(ff,e),this.reject=cf(sf,e)},Ps.f=Ks=function(t){return t===Ws||t===us?new as(t):Ys(t)}),ss({global:!0,wrap:!0,forced:$s},{Promise:Ws}),ds(Ws,Ds,!1,!0),ys(Ds),us=ls(Ds),ss({target:Ds,stat:!0,forced:$s},{reject:function(t){var e=Ks(this);return ps(e.reject,void 0,t),e.promise}}),ss({target:Ds,stat:!0,forced:true},{resolve:function(t){return As(this===us?Ws:this,t)}}),ss({target:Ds,stat:!0,forced:Zs},{all:function(t){var e=this,r=Ks(e),n=r.resolve,o=r.reject,i=Ts((function(){var r=gs(e.resolve),i=[],a=0,u=1;Ss(t,(function(t){var c=a++,s=!1;u++,ps(r,e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Ks(e),n=r.reject,o=Ts((function(){var o=gs(e.resolve);Ss(t,(function(t){ps(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var lf=C,pf=Ut,hf=Yc,vf=ns,df=ui;Mr({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=hf.f(e),n=r.resolve,o=r.reject,i=vf((function(){var r=pf(e.resolve),o=[],i=0,a=1;df(t,(function(t){var u=i++,c=!1;a++,lf(r,e,t).then((function(t){c||(c=!0,o[u]={status:"fulfilled",value:t},--a||n(o))}),(function(t){c||(c=!0,o[u]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var yf=Ut,gf=lt,mf=C,bf=Yc,wf=ns,xf=ui;Mr({target:"Promise",stat:!0},{any:function(t){var e=this,r=gf("AggregateError"),n=bf.f(e),o=n.resolve,i=n.reject,a=wf((function(){var n=yf(e.resolve),a=[],u=0,c=1,s=!1;xf(t,(function(t){var f=u++,l=!1;c++,mf(n,e,t).then((function(t){l||s||(s=!0,o(t))}),(function(t){l||s||(l=!0,a[f]=t,--c||i(new r(a,"No one promise resolved")))}))})),--c||i(new r(a,"No one promise resolved"))}));return a.error&&i(a.value),n.promise}});var Sf=iu,kf=lt,Ef=T,_f=Qu,Of=es;Mr({target:"Promise",proto:!0,real:!0,forced:!!Sf&&g((function(){Sf.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=_f(this,kf("Promise")),r=Ef(t);return this.then(r?function(r){return Of(e,t()).then((function(){return r}))}:t,r?function(r){return Of(e,t()).then((function(){throw r}))}:t)}});var Af=P,jf=nn,Pf=fi,Tf=tt,Mf=Af("".charAt),Lf=Af("".charCodeAt),Rf=Af("".slice),If=function(t){return function(e,r){var n,o,i=Pf(Tf(e)),a=jf(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Lf(i,a))<55296||n>56319||a+1===u||(o=Lf(i,a+1))<56320||o>57343?t?Mf(i,a):n:t?Rf(i,a,a+2):o-56320+(n-55296<<10)+65536}},Cf={codeAt:If(!1),charAt:If(!0)}.charAt,Uf=fi,Nf=ca,Df=$a,Ff=Nf.set,Gf=Nf.getterFor("String Iterator");Df(String,"String",(function(t){Ff(this,{type:"String Iterator",string:Uf(t),index:0})}),(function(){var t,e=Gf(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Cf(r,n),e.index+=t.length,{value:t,done:!1})}));var Vf=at.Promise,zf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Wf=y,Bf=Mo,Qf=br,Hf=go,qf=ye("toStringTag");for(var Kf in zf){var Yf=Wf[Kf],Jf=Yf&&Yf.prototype;Jf&&Bf(Jf)!==qf&&Qf(Jf,qf,Kf),Hf[Kf]=Hf.Array}var Xf=Vf,$f=h(v.exports=Xf),Zf={exports:{}},tl={exports:{}},el={exports:{}},rl=H,nl=Array.isArray||function(t){return"Array"==rl(t)},ol=Ae,il=rr,al=z,ul=function(t,e,r){var n=ol(e);n in t?il.f(t,n,al(0,r)):t[n]=r},cl=y,sl=nl,fl=Du,ll=it,pl=ye("species"),hl=cl.Array,vl=function(t){var e;return sl(t)&&(e=t.constructor,(fl(e)&&(e===hl||sl(e.prototype))||ll(e)&&null===(e=e[pl]))&&(e=void 0)),void 0===e?hl:e},dl=function(t,e){return new(vl(t))(0===e?0:e)},yl=g,gl=wt,ml=ye("species"),bl=function(t){return gl>=51||!yl((function(){var e=[];return(e.constructor={})[ml]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},wl=Mr,xl=y,Sl=g,kl=nl,El=it,_l=Xt,Ol=hn,Al=ul,jl=dl,Pl=bl,Tl=wt,Ml=ye("isConcatSpreadable"),Ll=xl.TypeError,Rl=Tl>=51||!Sl((function(){var t=[];return t[Ml]=!1,t.concat()[0]!==t})),Il=Pl("concat"),Cl=function(t){if(!El(t))return!1;var e=t[Ml];return void 0!==e?!!e:kl(t)};wl({target:"Array",proto:!0,forced:!Rl||!Il},{concat:function(t){var e,r,n,o,i,a=_l(this),u=jl(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Cl(i=-1===e?a:arguments[e])){if(c+(o=Ol(i))>9007199254740991)throw Ll("Maximum allowed index exceeded");for(r=0;r<o;r++,c++)r in i&&Al(u,c,i[r])}else{if(c>=9007199254740991)throw Ll("Maximum allowed index exceeded");Al(u,c++,i)}return u.length=c,u}});var Ul={},Nl=cn,Dl=hn,Fl=ul,Gl=y.Array,Vl=Math.max,zl=H,Wl=nt,Bl=tn.f,Ql=function(t,e,r){for(var n=Dl(t),o=Nl(e,n),i=Nl(void 0===r?n:r,n),a=Gl(Vl(i-o,0)),u=0;o<i;o++,u++)Fl(a,u,t[o]);return a.length=u,a},Hl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ul.f=function(t){return Hl&&"Window"==zl(t)?function(t){try{return Bl(t)}catch(t){return Ql(Hl)}}(t):Bl(Wl(t))};var ql={},Kl=ye;ql.f=Kl;var Yl=at,Jl=te,Xl=ql,$l=rr.f,Zl=function(t){var e=Yl.Symbol||(Yl.Symbol={});Jl(e,t)||$l(e,t,{value:Xl.f(t)})},tp=er,ep=$,rp=Xt,np=hn,op=dl,ip=P([].push),ap=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var p,h,v=rp(c),d=ep(v),y=tp(s,f),g=np(d),m=0,b=l||op,w=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in d)&&(h=y(p=d[m],m,v),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:ip(w,p)}else switch(t){case 4:return!1;case 7:ip(w,p)}return i?-1:n||o?o:w}},up={forEach:ap(0),map:ap(1),filter:ap(2),some:ap(3),every:ap(4),find:ap(5),findIndex:ap(6),filterReject:ap(7)},cp=Mr,sp=y,fp=lt,lp=k,pp=C,hp=P,vp=L,dp=kt,yp=g,gp=te,mp=nl,bp=T,wp=it,xp=pt,Sp=Tt,kp=cr,Ep=Xt,_p=nt,Op=Ae,Ap=fi,jp=z,Pp=so,Tp=Wn,Mp=tn,Lp=Ul,Rp=Pn,Ip=M,Cp=rr,Up=Gn,Np=U,Dp=Hu,Fp=ya,Gp=Wt.exports,Vp=bn,zp=ie,Wp=ye,Bp=ql,Qp=Zl,Hp=Ia,qp=ca,Kp=up.forEach,Yp=Cr("hidden"),Jp=Wp("toPrimitive"),Xp=qp.set,$p=qp.getterFor("Symbol"),Zp=Object.prototype,th=sp.Symbol,eh=th&&th.prototype,rh=sp.TypeError,nh=sp.QObject,oh=fp("JSON","stringify"),ih=Ip.f,ah=Cp.f,uh=Lp.f,ch=Np.f,sh=hp([].push),fh=Gp("symbols"),lh=Gp("op-symbols"),ph=Gp("string-to-symbol-registry"),hh=Gp("symbol-to-string-registry"),vh=Gp("wks"),dh=!nh||!nh.prototype||!nh.prototype.findChild,yh=vp&&yp((function(){return 7!=Pp(ah({},"a",{get:function(){return ah(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=ih(Zp,e);n&&delete Zp[e],ah(t,e,r),n&&t!==Zp&&ah(Zp,e,n)}:ah,gh=function(t,e){var r=fh[t]=Pp(eh);return Xp(r,{type:"Symbol",tag:t,description:e}),vp||(r.description=e),r},mh=function(t,e,r){t===Zp&&mh(lh,e,r),kp(t);var n=Op(e);return kp(r),gp(fh,n)?(r.enumerable?(gp(t,Yp)&&t[Yp][n]&&(t[Yp][n]=!1),r=Pp(r,{enumerable:jp(0,!1)})):(gp(t,Yp)||ah(t,Yp,jp(1,{})),t[Yp][n]=!0),yh(t,n,r)):ah(t,n,r)},bh=function(t,e){kp(t);var r=_p(e),n=Tp(r).concat(kh(r));return Kp(n,(function(e){vp&&!pp(wh,r,e)||mh(t,e,r[e])})),t},wh=function(t){var e=Op(t),r=pp(ch,this,e);return!(this===Zp&&gp(fh,e)&&!gp(lh,e))&&(!(r||!gp(this,e)||!gp(fh,e)||gp(this,Yp)&&this[Yp][e])||r)},xh=function(t,e){var r=_p(t),n=Op(e);if(r!==Zp||!gp(fh,n)||gp(lh,n)){var o=ih(r,n);return!o||!gp(fh,n)||gp(r,Yp)&&r[Yp][n]||(o.enumerable=!0),o}},Sh=function(t){var e=uh(_p(t)),r=[];return Kp(e,(function(t){gp(fh,t)||gp(Vp,t)||sh(r,t)})),r},kh=function(t){var e=t===Zp,r=uh(e?lh:_p(t)),n=[];return Kp(r,(function(t){!gp(fh,t)||e&&!gp(Zp,t)||sh(n,fh[t])})),n};if(dp||(Fp(eh=(th=function(){if(xp(eh,this))throw rh("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ap(arguments[0]):void 0,e=zp(t),r=function(t){this===Zp&&pp(r,lh,t),gp(this,Yp)&&gp(this[Yp],e)&&(this[Yp][e]=!1),yh(this,e,jp(1,t))};return vp&&dh&&yh(Zp,e,{configurable:!0,set:r}),gh(e,t)}).prototype,"toString",(function(){return $p(this).tag})),Fp(th,"withoutSetter",(function(t){return gh(zp(t),t)})),Np.f=wh,Cp.f=mh,Up.f=bh,Ip.f=xh,Mp.f=Lp.f=Sh,Rp.f=kh,Bp.f=function(t){return gh(Wp(t),t)},vp&&ah(eh,"description",{configurable:!0,get:function(){return $p(this).description}})),cp({global:!0,wrap:!0,forced:!dp,sham:!dp},{Symbol:th}),Kp(Tp(vh),(function(t){Qp(t)})),cp({target:"Symbol",stat:!0,forced:!dp},{for:function(t){var e=Ap(t);if(gp(ph,e))return ph[e];var r=th(e);return ph[e]=r,hh[r]=e,r},keyFor:function(t){if(!Sp(t))throw rh(t+" is not a symbol");if(gp(hh,t))return hh[t]},useSetter:function(){dh=!0},useSimple:function(){dh=!1}}),cp({target:"Object",stat:!0,forced:!dp,sham:!vp},{create:function(t,e){return void 0===e?Pp(t):bh(Pp(t),e)},defineProperty:mh,defineProperties:bh,getOwnPropertyDescriptor:xh}),cp({target:"Object",stat:!0,forced:!dp},{getOwnPropertyNames:Sh,getOwnPropertySymbols:kh}),cp({target:"Object",stat:!0,forced:yp((function(){Rp.f(1)}))},{getOwnPropertySymbols:function(t){return Rp.f(Ep(t))}}),oh){var Eh=!dp||yp((function(){var t=th();return"[null]"!=oh([t])||"{}"!=oh({a:t})||"{}"!=oh(Object(t))}));cp({target:"JSON",stat:!0,forced:Eh},{stringify:function(t,e,r){var n=Dp(arguments),o=e;if((wp(e)||void 0!==t)&&!Sp(t))return mp(e)||(e=function(t,e){if(bp(o)&&(e=pp(o,this,t,e)),!Sp(e))return e}),n[1]=e,lp(oh,null,n)}})}if(!eh[Jp]){var _h=eh.valueOf;Fp(eh,Jp,(function(t){return pp(_h,this)}))}Hp(th,"Symbol"),Vp[Yp]=!0,Zl("asyncIterator"),Zl("hasInstance"),Zl("isConcatSpreadable"),Zl("iterator"),Zl("match"),Zl("matchAll"),Zl("replace"),Zl("search"),Zl("species"),Zl("split"),Zl("toPrimitive"),Zl("toStringTag"),Zl("unscopables"),Ia(y.JSON,"JSON",!0);var Oh=at.Symbol;Zl("asyncDispose"),Zl("dispose"),Zl("matcher"),Zl("metadata"),Zl("observable"),Zl("patternMatch"),Zl("replaceAll"),el.exports=Oh;var Ah={exports:{}},jh=ql.f("iterator");Ah.exports=jh,function(t){var e=el.exports,r=Ah.exports;function n(o){return t.exports=n="function"==typeof e&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(tl);var Ph={exports:{}},Th={exports:{}},Mh=Mr,Lh=L,Rh=rr.f;Mh({target:"Object",stat:!0,forced:Object.defineProperty!==Rh,sham:!Lh},{defineProperty:Rh});var Ih=at.Object,Ch=Th.exports=function(t,e,r){return Ih.defineProperty(t,e,r)};Ih.defineProperty.sham&&(Ch.sham=!0);var Uh=Th.exports;Ph.exports=Uh;var Nh={exports:{}};Mr({target:"Object",stat:!0,sham:!L},{create:so});var Dh=at.Object;Nh.exports=function(t,e){return Dh.create(t,e)};var Fh={exports:{}},Gh=Xt,Vh=Qr,zh=Ur;Mr({target:"Object",stat:!0,forced:g((function(){Vh(1)})),sham:!zh},{getPrototypeOf:function(t){return Vh(Gh(t))}});var Wh=at.Object.getPrototypeOf;Fh.exports=Wh;var Bh={exports:{}},Qh=g,Hh=function(t,e){var r=[][t];return!!r&&Qh((function(){r.call(null,e||function(){throw 1},1)}))},qh=up.forEach,Kh=Hh("forEach")?[].forEach:function(t){return qh(this,t,arguments.length>1?arguments[1]:void 0)};Mr({target:"Array",proto:!0,forced:[].forEach!=Kh},{forEach:Kh});var Yh=at,Jh=function(t){return Yh[t+"Prototype"]},Xh=Jh("Array").forEach,$h=Mo,Zh=te,tv=pt,ev=Xh,rv=Array.prototype,nv={DOMTokenList:!0,NodeList:!0},ov=function(t){var e=t.forEach;return t===rv||tv(rv,t)&&e===rv.forEach||Zh(nv,$h(t))?ev:e};Bh.exports=ov;var iv={exports:{}};Mr({target:"Object",stat:!0},{setPrototypeOf:Zr});var av=at.Object.setPrototypeOf;iv.exports=av;var uv={exports:{}},cv=Xf,sv=Yc,fv=ns;Mr({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=sv.f(this),r=fv(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}}),uv.exports=cv;var lv={exports:{}},pv=Mr,hv=nl,vv=P([].reverse),dv=[1,2];pv({target:"Array",proto:!0,forced:String(dv)===String(dv.reverse())},{reverse:function(){return hv(this)&&(this.length=this.length),vv(this)}});var yv=Jh("Array").reverse,gv=pt,mv=yv,bv=Array.prototype;lv.exports=function(t){var e=t.reverse;return t===bv||gv(bv,t)&&e===bv.reverse?mv:e};var wv={exports:{}},xv=Mr,Sv=y,kv=nl,Ev=Du,_v=it,Ov=cn,Av=hn,jv=nt,Pv=ul,Tv=ye,Mv=Hu,Lv=bl("slice"),Rv=Tv("species"),Iv=Sv.Array,Cv=Math.max;xv({target:"Array",proto:!0,forced:!Lv},{slice:function(t,e){var r,n,o,i=jv(this),a=Av(i),u=Ov(t,a),c=Ov(void 0===e?a:e,a);if(kv(i)&&(r=i.constructor,(Ev(r)&&(r===Iv||kv(r.prototype))||_v(r)&&null===(r=r[Rv]))&&(r=void 0),r===Iv||void 0===r))return Mv(i,u,c);for(n=new(void 0===r?Iv:r)(Cv(c-u,0)),o=0;u<c;u++,o++)u in i&&Pv(n,o,i[u]);return n.length=o,n}});var Uv=Jh("Array").slice,Nv=pt,Dv=Uv,Fv=Array.prototype,Gv=function(t){var e=t.slice;return t===Fv||Nv(Fv,t)&&e===Fv.slice?Dv:e};wv.exports=Gv,function(t){var e=tl.exports.default,r=el.exports,n=Ph.exports,o=Nh.exports,i=Fh.exports,a=Bh.exports,u=iv.exports,c=uv.exports,s=lv.exports,f=wv.exports;function l(){t.exports=l=function(){return p},t.exports.__esModule=!0,t.exports.default=t.exports;var p={},h=Object.prototype,v=h.hasOwnProperty,d="function"==typeof r?r:{},y=d.iterator||"@@iterator",g=d.asyncIterator||"@@asyncIterator",m=d.toStringTag||"@@toStringTag";function b(t,e,r){return n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{b({},"")}catch(t){b=function(t,e,r){return t[e]=r}}function w(t,e,r,n){var i=e&&e.prototype instanceof k?e:k,a=o(i.prototype),u=new I(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return U()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=M(a,r);if(u){if(u===S)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=x(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===S)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,u),a}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}p.wrap=w;var S={};function k(){}function E(){}function _(){}var O={};b(O,y,(function(){return this}));var A=i&&i(i(C([])));A&&A!==h&&v.call(A,y)&&(O=A);var j=_.prototype=k.prototype=o(O);function P(t){var e;a(e=["next","throw","return"]).call(e,(function(e){b(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,r){function n(o,i,a,u){var c=x(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&v.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}}function M(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,M(t,e),"throw"===e.method))return S;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var n=x(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,S;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,S):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,S)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],a(t).call(t,L,this),this.reset(!0)}function C(t){if(t){var e=t[y];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(v.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:U}}function U(){return{value:void 0,done:!0}}return E.prototype=_,b(j,"constructor",_),b(_,"constructor",E),E.displayName=b(_,m,"GeneratorFunction"),p.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},p.mark=function(t){return u?u(t,_):(t.__proto__=_,b(t,m,"GeneratorFunction")),t.prototype=o(j),t},p.awrap=function(t){return{__await:t}},P(T.prototype),b(T.prototype,g,(function(){return this})),p.AsyncIterator=T,p.async=function(t,e,r,n,o){void 0===o&&(o=c);var i=new T(w(t,e,r,n),o);return p.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},P(j),b(j,m,"Generator"),b(j,y,(function(){return this})),b(j,"toString",(function(){return"[object Generator]"})),p.keys=function(t){var e=[];for(var r in t)e.push(r);return s(e).call(e),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},p.values=C,I.prototype={constructor:I,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,a(e=this.tryEntries).call(e,R),!t)for(var r in this)"t"===r.charAt(0)&&v.call(this,r)&&!isNaN(+f(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=v.call(o,"catchLoc"),u=v.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,S):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),S}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),S}},p}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports}(Zf);var Vv=Zf.exports(),zv=Vv;try{regeneratorRuntime=Vv}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=Vv:Function("r","regeneratorRuntime = r")(Vv)}var Wv={exports:{}},Bv=up.filter;Mr({target:"Array",proto:!0,forced:!bl("filter")},{filter:function(t){return Bv(this,t,arguments.length>1?arguments[1]:void 0)}});var Qv=Jh("Array").filter,Hv=pt,qv=Qv,Kv=Array.prototype,Yv=h(Wv.exports=function(t){var e=t.filter;return t===Kv||Hv(Kv,t)&&e===Kv.filter?qv:e}),Jv={exports:{}},Xv=h(Jv.exports=ov),$v={exports:{}},Zv=Mr,td=up.find,ed=!0;"find"in[]&&Array(1).find((function(){ed=!1})),Zv({target:"Array",proto:!0,forced:ed},{find:function(t){return td(this,t,arguments.length>1?arguments[1]:void 0)}});var rd=Jh("Array").find,nd=pt,od=rd,id=Array.prototype,ad=h($v.exports=function(t){var e=t.find;return t===id||nd(id,t)&&e===id.find?od:e}),ud={exports:{}},cd=Mr,sd=y,fd=k,ld=T,pd=Hu,hd=Ku,vd=/MSIE .\./.test(ht),dd=sd.Function,yd=function(t){return function(e,r){var n=hd(arguments.length,1)>2,o=ld(e)?e:dd(e),i=n?pd(arguments,2):void 0;return t(n?function(){fd(o,this,i)}:o,r)}};cd({global:!0,bind:!0,forced:vd},{setTimeout:yd(sd.setTimeout),setInterval:yd(sd.setInterval)});var gd=h(ud.exports=at.setInterval),md={exports:{}},bd=h(md.exports=Gv),wd={exports:{}},xd=Jh("Array").concat,Sd=pt,kd=xd,Ed=Array.prototype,_d=h(wd.exports=function(t){var e=t.concat;return t===Ed||Sd(Ed,t)&&e===Ed.concat?kd:e}),Od={exports:{}},Ad=h(Od.exports=at.setTimeout),jd=new Uint8Array([88,0,0,0]),Pd=new Uint8Array([26,165,74,6,73,7,72,8,71,9,70,10,69,11,68,12,67,13,66,14,65]),Td=new Uint8Array([24,255,1,0,0,0,0,0,0,0,0,0,0,0,0]),Md=new Uint8Array([25,255,0,255,255,255,255]),Ld=new Uint8Array([27,255,0,0,0,0,0,0,0,0,0]),Rd={HEADER:jd,INIT:Pd,DISCONNECT:new Uint8Array([84]),START_MEASUREMENTS:Td,STOP_MEASUREMENTS:Md,SET_MEASUREMENT_PERIOD:Ld,GET_INFO:new Uint8Array([85]),GET_STATUS:new Uint8Array([16]),GET_SENSOR_IDS:new Uint8Array([81]),GET_SENSOR_INFO:new Uint8Array([80,0]),GET_DEFAULT_SENSORS_MASK:new Uint8Array([86])},Id=6,Cd=7,Ud=10,Nd=8,Dd=9,Fd=11,Gd=12,Vd=13,zd=14,Wd=32,Bd={exports:{}},Qd={exports:{}},Hd=g((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),qd=g,Kd=it,Yd=H,Jd=Hd,Xd=Object.isExtensible,$d=qd((function(){Xd(1)}))||Jd?function(t){return!!Kd(t)&&((!Jd||"ArrayBuffer"!=Yd(t))&&(!Xd||Xd(t)))}:Xd,Zd=!g((function(){return Object.isExtensible(Object.preventExtensions({}))})),ty=Mr,ey=P,ry=bn,ny=it,oy=te,iy=rr.f,ay=tn,uy=Ul,cy=$d,sy=Zd,fy=!1,ly=ie("meta"),py=0,hy=function(t){iy(t,ly,{value:{objectID:"O"+py++,weakData:{}}})},vy=Qd.exports={enable:function(){vy.enable=function(){},fy=!0;var t=ay.f,e=ey([].splice),r={};r[ly]=1,t(r).length&&(ay.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===ly){e(n,o,1);break}return n},ty({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:uy.f}))},fastKey:function(t,e){if(!ny(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!oy(t,ly)){if(!cy(t))return"F";if(!e)return"E";hy(t)}return t[ly].objectID},getWeakData:function(t,e){if(!oy(t,ly)){if(!cy(t))return!0;if(!e)return!1;hy(t)}return t[ly].weakData},onFreeze:function(t){return sy&&fy&&cy(t)&&!oy(t,ly)&&hy(t),t}};ry[ly]=!0;var dy=Mr,yy=y,gy=Qd.exports,my=g,by=br,wy=ui,xy=du,Sy=T,ky=it,Ey=Ia,_y=rr.f,Oy=up.forEach,Ay=L,jy=ca.set,Py=ca.getterFor,Ty=rr.f,My=so,Ly=uu,Ry=er,Iy=du,Cy=ui,Uy=$a,Ny=pu,Dy=L,Fy=Qd.exports.fastKey,Gy=ca.set,Vy=ca.getterFor,zy={getConstructor:function(t,e,r,n){var o=t((function(t,o){Iy(t,i),Gy(t,{type:e,index:My(null),first:void 0,last:void 0,size:0}),Dy||(t.size=0),null!=o&&Cy(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=Vy(e),u=function(t,e,r){var n,o,i=a(t),u=c(t,e);return u?u.value=r:(i.last=u={index:o=Fy(e,!0),key:e,value:r,previous:n=i.last,n