1 line
112 KiB
JavaScript
1 line
112 KiB
JavaScript
!function e(t,n,r){function s(o,a){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};t[o][0].call(u.exports,(function(e){return s(t[o][1][e]||e)}),u,u.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(e,t,n){var r=e("../internals/is-callable"),s=e("../internals/try-to-string"),i=TypeError;t.exports=function(e){if(r(e))return e;throw i(s(e)+" is not a function")}},{"../internals/is-callable":67,"../internals/try-to-string":120}],2:[function(e,t,n){var r=e("../internals/is-constructor"),s=e("../internals/try-to-string"),i=TypeError;t.exports=function(e){if(r(e))return e;throw i(s(e)+" is not a constructor")}},{"../internals/is-constructor":68,"../internals/try-to-string":120}],3:[function(e,t,n){var r=e("../internals/is-callable"),s=String,i=TypeError;t.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},{"../internals/is-callable":67}],4:[function(e,t,n){var r=e("../internals/well-known-symbol"),s=e("../internals/object-create"),i=e("../internals/object-define-property").f,o=r("unscopables"),a=Array.prototype;null==a[o]&&i(a,o,{configurable:!0,value:s(null)}),t.exports=function(e){a[o][e]=!0}},{"../internals/object-create":81,"../internals/object-define-property":83,"../internals/well-known-symbol":127}],5:[function(e,t,n){"use strict";var r=e("../internals/string-multibyte").charAt;t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"../internals/string-multibyte":107}],6:[function(e,t,n){var r=e("../internals/object-is-prototype-of"),s=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw s("Incorrect invocation")}},{"../internals/object-is-prototype-of":88}],7:[function(e,t,n){var r=e("../internals/is-object"),s=String,i=TypeError;t.exports=function(e){if(r(e))return e;throw i(s(e)+" is not an object")}},{"../internals/is-object":71}],8:[function(e,t,n){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},{}],9:[function(e,t,n){"use strict";var r,s,i,o=e("../internals/array-buffer-native"),a=e("../internals/descriptors"),l=e("../internals/global"),c=e("../internals/is-callable"),u=e("../internals/is-object"),f=e("../internals/has-own-property"),d=e("../internals/classof"),p=e("../internals/try-to-string"),h=e("../internals/create-non-enumerable-property"),y=e("../internals/define-built-in"),m=e("../internals/object-define-property").f,b=e("../internals/object-is-prototype-of"),g=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),w=e("../internals/well-known-symbol"),x=e("../internals/uid"),j=e("../internals/internal-state"),k=j.enforce,M=j.get,P=l.Int8Array,S=P&&P.prototype,_=l.Uint8ClampedArray,I=_&&_.prototype,A=P&&g(P),E=S&&g(S),O=Object.prototype,C=l.TypeError,T=w("toStringTag"),R=x("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",F=o&&!!v&&"Opera"!==d(l.opera),L=!1,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=g(e);if(u(t)){var n=M(t);return n&&f(n,D)?n.TypedArrayConstructor:U(t)}},N=function(e){if(!u(e))return!1;var t=d(e);return f(W,t)||f(z,t)};for(r in W)(i=(s=l[r])&&s.prototype)?k(i).TypedArrayConstructor=s:F=!1;for(r in z)(i=(s=l[r])&&s.prototype)&&(k(i).TypedArrayConstructor=s);if((!F||!c(A)||A===Function.prototype)&&(A=function(){throw C("Incorrect invocation")},F))for(r in W)l[r]&&v(l[r],A);if((!F||!E||E===O)&&(E=A.prototype,F))for(r in W)l[r]&&v(l[r].prototype,E);if(F&&g(I)!==E&&v(I,E),a&&!f(E,T))for(r in L=!0,m(E,T,{get:function(){return u(this)?this[R]:void 0}}),W)l[r]&&h(l[r],R,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:L&&R,aTypedArray:function(e){if(N(e))return e;throw C("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!v||b(A,e)))return e;throw C(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(a){if(n)for(var s in W){var i=l[s];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}E[e]&&!n||y(E,e,n?t:F&&S[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,s;if(a){if(v){if(n)for(r in W)if((s=l[r])&&f(s,e))try{delete s[e]}catch(e){}if(A[e]&&!n)return;try{return y(A,e,n?t:F&&A[e]||t)}catch(e){}}for(r in W)!(s=l[r])||s[e]&&!n||y(s,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!u(e))return!1;var t=d(e);return"DataView"===t||f(W,t)||f(z,t)},isTypedArray:N,TypedArray:A,TypedArrayPrototype:E}},{"../internals/array-buffer-native":8,"../internals/classof":20,"../internals/create-non-enumerable-property":24,"../internals/define-built-in":27,"../internals/descriptors":31,"../internals/global":55,"../internals/has-own-property":56,"../internals/internal-state":64,"../internals/is-callable":67,"../internals/is-object":71,"../internals/object-define-property":83,"../internals/object-get-prototype-of":87,"../internals/object-is-prototype-of":88,"../internals/object-set-prototype-of":92,"../internals/try-to-string":120,"../internals/uid":124,"../internals/well-known-symbol":127}],10:[function(e,t,n){"use strict";var r=e("../internals/global"),s=e("../internals/function-uncurry-this"),i=e("../internals/descriptors"),o=e("../internals/array-buffer-native"),a=e("../internals/function-name"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/define-built-ins"),u=e("../internals/fails"),f=e("../internals/an-instance"),d=e("../internals/to-integer-or-infinity"),p=e("../internals/to-length"),h=e("../internals/to-index"),y=e("../internals/ieee754"),m=e("../internals/object-get-prototype-of"),b=e("../internals/object-set-prototype-of"),g=e("../internals/object-get-own-property-names").f,v=e("../internals/object-define-property").f,w=e("../internals/array-fill"),x=e("../internals/array-slice-simple"),j=e("../internals/set-to-string-tag"),k=e("../internals/internal-state"),M=a.PROPER,P=a.CONFIGURABLE,S=k.get,_=k.set,I="ArrayBuffer",A="DataView",E="Wrong index",O=r.ArrayBuffer,C=O,T=C&&C.prototype,R=r.DataView,D=R&&R.prototype,F=Object.prototype,L=r.Array,W=r.RangeError,z=s(w),U=s([].reverse),N=y.pack,q=y.unpack,B=function(e){return[255&e]},V=function(e){return[255&e,e>>8&255]},H=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return N(e,23,4)},K=function(e){return N(e,52,8)},$=function(e,t){v(e.prototype,t,{get:function(){return S(this)[t]}})},J=function(e,t,n,r){var s=h(n),i=S(e);if(s+t>i.byteLength)throw W(E);var o=S(i.buffer).bytes,a=s+i.byteOffset,l=x(o,a,a+t);return r?l:U(l)},Q=function(e,t,n,r,s,i){var o=h(n),a=S(e);if(o+t>a.byteLength)throw W(E);for(var l=S(a.buffer).bytes,c=o+a.byteOffset,u=r(+s),f=0;f<t;f++)l[c+f]=u[i?f:t-f-1]};if(o){var X=M&&O.name!==I;if(u((function(){O(1)}))&&u((function(){new O(-1)}))&&!u((function(){return new O,new O(1.5),new O(NaN),X&&!P})))X&&P&&l(O,"name",I);else{(C=function(e){return f(this,T),new O(h(e))}).prototype=T;for(var Z,ee=g(O),te=0;ee.length>te;)(Z=ee[te++])in C||l(C,Z,O[Z]);T.constructor=C}b&&m(D)!==F&&b(D,F);var ne=new R(new C(2)),re=s(D.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),!ne.getInt8(0)&&ne.getInt8(1)||c(D,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else T=(C=function(e){f(this,T);var t=h(e);_(this,{bytes:z(L(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,D=(R=function(e,t,n){f(this,D),f(e,T);var r=S(e).byteLength,s=d(t);if(s<0||s>r)throw W("Wrong offset");if(s+(n=void 0===n?r-s:p(n))>r)throw W("Wrong length");_(this,{buffer:e,byteLength:n,byteOffset:s}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=s)}).prototype,i&&($(C,"byteLength"),$(R,"buffer"),$(R,"byteLength"),$(R,"byteOffset")),c(D,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return G(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return G(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return q(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return q(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,B,t)},setUint8:function(e,t){Q(this,1,e,B,t)},setInt16:function(e,t){Q(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,K,t,arguments.length>2?arguments[2]:void 0)}});j(C,I),j(R,A),t.exports={ArrayBuffer:C,DataView:R}},{"../internals/an-instance":6,"../internals/array-buffer-native":8,"../internals/array-fill":11,"../internals/array-slice-simple":14,"../internals/create-non-enumerable-property":24,"../internals/define-built-ins":28,"../internals/descriptors":31,"../internals/fails":42,"../internals/function-name":48,"../internals/function-uncurry-this":49,"../internals/global":55,"../internals/ieee754":60,"../internals/internal-state":64,"../internals/object-define-property":83,"../internals/object-get-own-property-names":85,"../internals/object-get-prototype-of":87,"../internals/object-set-prototype-of":92,"../internals/set-to-string-tag":103,"../internals/to-index":109,"../internals/to-integer-or-infinity":111,"../internals/to-length":112}],11:[function(e,t,n){"use strict";var r=e("../internals/to-object"),s=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like");t.exports=function(e){for(var t=r(this),n=i(t),o=arguments.length,a=s(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,c=void 0===l?n:s(l,n);c>a;)t[a++]=e;return t}},{"../internals/length-of-array-like":76,"../internals/to-absolute-index":108,"../internals/to-object":113}],12:[function(e,t,n){var r=e("../internals/to-indexed-object"),s=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),o=function(e){return function(t,n,o){var a,l=r(t),c=i(l),u=s(o,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":76,"../internals/to-absolute-index":108,"../internals/to-indexed-object":110}],13:[function(e,t,n){var r=e("../internals/function-bind-context"),s=e("../internals/function-uncurry-this"),i=e("../internals/indexed-object"),o=e("../internals/to-object"),a=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),c=s([].push),u=function(e){var t=1==e,n=2==e,s=3==e,u=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,y,m,b){for(var g,v,w=o(h),x=i(w),j=r(y,m),k=a(x),M=0,P=b||l,S=t?P(h,k):n||d?P(h,0):void 0;k>M;M++)if((p||M in x)&&(v=j(g=x[M],M,w),e))if(t)S[M]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return M;case 2:c(S,g)}else switch(e){case 4:return!1;case 7:c(S,g)}return f?-1:s||u?u:S}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":17,"../internals/function-bind-context":45,"../internals/function-uncurry-this":49,"../internals/indexed-object":61,"../internals/length-of-array-like":76,"../internals/to-object":113}],14:[function(e,t,n){var r=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),i=e("../internals/create-property"),o=Array,a=Math.max;t.exports=function(e,t,n){for(var l=s(e),c=r(t,l),u=r(void 0===n?l:n,l),f=o(a(u-c,0)),d=0;c<u;c++,d++)i(f,d,e[c]);return f.length=d,f}},{"../internals/create-property":26,"../internals/length-of-array-like":76,"../internals/to-absolute-index":108}],15:[function(e,t,n){var r=e("../internals/array-slice-simple"),s=Math.floor,i=function(e,t){var n=e.length,l=s(n/2);return n<8?o(e,t):a(e,i(r(e,0,l),t),i(r(e,l),t),t)},o=function(e,t){for(var n,r,s=e.length,i=1;i<s;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},a=function(e,t,n,r){for(var s=t.length,i=n.length,o=0,a=0;o<s||a<i;)e[o+a]=o<s&&a<i?r(t[o],n[a])<=0?t[o++]:n[a++]:o<s?t[o++]:n[a++];return e};t.exports=i},{"../internals/array-slice-simple":14}],16:[function(e,t,n){var r=e("../internals/is-array"),s=e("../internals/is-constructor"),i=e("../internals/is-object"),o=e("../internals/well-known-symbol")("species"),a=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(s(t)&&(t===a||r(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},{"../internals/is-array":66,"../internals/is-constructor":68,"../internals/is-object":71,"../internals/well-known-symbol":127}],17:[function(e,t,n){var r=e("../internals/array-species-constructor");t.exports=function(e,t){return new(r(e))(0===t?0:t)}},{"../internals/array-species-constructor":16}],18:[function(e,t,n){var r=e("../internals/well-known-symbol")("iterator"),s=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){s=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},{"../internals/well-known-symbol":127}],19:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=r({}.toString),i=r("".slice);t.exports=function(e){return i(s(e),8,-1)}},{"../internals/function-uncurry-this":49}],20:[function(e,t,n){var r=e("../internals/to-string-tag-support"),s=e("../internals/is-callable"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("toStringTag"),a=Object,l="Arguments"==i(function(){return arguments}());t.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:l?i(t):"Object"==(r=i(t))&&s(t.callee)?"Arguments":r}},{"../internals/classof-raw":19,"../internals/is-callable":67,"../internals/to-string-tag-support":118,"../internals/well-known-symbol":127}],21:[function(e,t,n){var r=e("../internals/has-own-property"),s=e("../internals/own-keys"),i=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,n){for(var a=s(t),l=o.f,c=i.f,u=0;u<a.length;u++){var f=a[u];r(e,f)||n&&r(n,f)||l(e,f,c(t,f))}}},{"../internals/has-own-property":56,"../internals/object-define-property":83,"../internals/object-get-own-property-descriptor":84,"../internals/own-keys":94}],22:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":42}],23:[function(e,t,n){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,s=e("../internals/object-create"),i=e("../internals/create-property-descriptor"),o=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=s(r,{next:i(+!c,n)}),o(e,u,!1,!0),a[u]=l,e}},{"../internals/create-property-descriptor":25,"../internals/iterators":75,"../internals/iterators-core":74,"../internals/object-create":81,"../internals/set-to-string-tag":103}],24:[function(e,t,n){var r=e("../internals/descriptors"),s=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":25,"../internals/descriptors":31,"../internals/object-define-property":83}],25:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],26:[function(e,t,n){"use strict";var r=e("../internals/to-property-key"),s=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var o=r(t);o in e?s.f(e,o,i(0,n)):e[o]=n}},{"../internals/create-property-descriptor":25,"../internals/object-define-property":83,"../internals/to-property-key":117}],27:[function(e,t,n){var r=e("../internals/is-callable"),s=e("../internals/object-define-property"),i=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(r(n)&&i(n,c,a),a.global)l?e[t]=n:o(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:s.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":29,"../internals/is-callable":67,"../internals/make-built-in":77,"../internals/object-define-property":83}],28:[function(e,t,n){var r=e("../internals/define-built-in");t.exports=function(e,t,n){for(var s in t)r(e,s,t[s],n);return e}},{"../internals/define-built-in":27}],29:[function(e,t,n){var r=e("../internals/global"),s=Object.defineProperty;t.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":55}],30:[function(e,t,n){"use strict";var r=e("../internals/export"),s=e("../internals/function-call"),i=e("../internals/is-pure"),o=e("../internals/function-name"),a=e("../internals/is-callable"),l=e("../internals/create-iterator-constructor"),c=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),d=e("../internals/create-non-enumerable-property"),p=e("../internals/define-built-in"),h=e("../internals/well-known-symbol"),y=e("../internals/iterators"),m=e("../internals/iterators-core"),b=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=h("iterator"),j="keys",k="values",M="entries",P=function(){return this};t.exports=function(e,t,n,o,h,m,S){l(n,t,o);var _,I,A,E=function(e){if(e===h&&D)return D;if(!w&&e in T)return T[e];switch(e){case j:case k:case M:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",C=!1,T=e.prototype,R=T[x]||T["@@iterator"]||h&&T[h],D=!w&&R||E(h),F="Array"==t&&T.entries||R;if(F&&(_=c(F.call(new e)))!==Object.prototype&&_.next&&(i||c(_)===v||(u?u(_,v):a(_[x])||p(_,x,P)),f(_,O,!0,!0),i&&(y[O]=P)),b&&h==k&&R&&R.name!==k&&(!i&&g?d(T,"name",k):(C=!0,D=function(){return s(R,this)})),h)if(I={values:E(k),keys:m?D:E(j),entries:E(M)},S)for(A in I)(w||C||!(A in T))&&p(T,A,I[A]);else r({target:t,proto:!0,forced:w||C},I);return i&&!S||T[x]===D||p(T,x,D,{name:h}),y[t]=D,I}},{"../internals/create-iterator-constructor":23,"../internals/create-non-enumerable-property":24,"../internals/define-built-in":27,"../internals/export":41,"../internals/function-call":47,"../internals/function-name":48,"../internals/is-callable":67,"../internals/is-pure":72,"../internals/iterators":75,"../internals/iterators-core":74,"../internals/object-get-prototype-of":87,"../internals/object-set-prototype-of":92,"../internals/set-to-string-tag":103,"../internals/well-known-symbol":127}],31:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":42}],32:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/is-object"),i=r.document,o=s(i)&&s(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"../internals/global":55,"../internals/is-object":71}],33:[function(e,t,n){t.exports={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}},{}],34:[function(e,t,n){var r=e("../internals/document-create-element")("span").classList,s=r&&r.constructor&&r.constructor.prototype;t.exports=s===Object.prototype?void 0:s},{"../internals/document-create-element":32}],35:[function(e,t,n){var r=e("../internals/engine-user-agent").match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},{"../internals/engine-user-agent":37}],36:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/MSIE|Trident/.test(r)},{"../internals/engine-user-agent":37}],37:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("navigator","userAgent")||""},{"../internals/get-built-in":50}],38:[function(e,t,n){var r,s,i=e("../internals/global"),o=e("../internals/engine-user-agent"),a=i.process,l=i.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(s=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),t.exports=s},{"../internals/engine-user-agent":37,"../internals/global":55}],39:[function(e,t,n){var r=e("../internals/engine-user-agent").match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},{"../internals/engine-user-agent":37}],40:[function(e,t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],41:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/object-get-own-property-descriptor").f,i=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),a=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var n,u,f,d,p,h=e.target,y=e.global,m=e.stat;if(n=y?r:m?r[h]||a(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],f=e.dontCallGetSet?(p=s(n,u))&&p.value:n[u],!c(y?u:h+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),o(n,u,d,e)}}},{"../internals/copy-constructor-properties":21,"../internals/create-non-enumerable-property":24,"../internals/define-built-in":27,"../internals/define-global-property":29,"../internals/global":55,"../internals/is-forced":69,"../internals/object-get-own-property-descriptor":84}],42:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],43:[function(e,t,n){"use strict";e("../modules/es.regexp.exec");var r=e("../internals/function-uncurry-this"),s=e("../internals/define-built-in"),i=e("../internals/regexp-exec"),o=e("../internals/fails"),a=e("../internals/well-known-symbol"),l=e("../internals/create-non-enumerable-property"),c=a("species"),u=RegExp.prototype;t.exports=function(e,t,n,f){var d=a(e),p=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var y=r(/./[d]),m=t(d,""[e],(function(e,t,n,s,o){var a=r(e),l=t.exec;return l===i||l===u.exec?p&&!o?{done:!0,value:y(t,n,s)}:{done:!0,value:a(n,t,s)}:{done:!1}}));s(String.prototype,e,m[0]),s(u,d,m[1])}f&&l(u[d],"sham",!0)}},{"../internals/create-non-enumerable-property":24,"../internals/define-built-in":27,"../internals/fails":42,"../internals/function-uncurry-this":49,"../internals/regexp-exec":96,"../internals/well-known-symbol":127,"../modules/es.regexp.exec":129}],44:[function(e,t,n){var r=e("../internals/function-bind-native"),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},{"../internals/function-bind-native":46}],45:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/a-callable"),i=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":1,"../internals/function-bind-native":46,"../internals/function-uncurry-this":49}],46:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":42}],47:[function(e,t,n){var r=e("../internals/function-bind-native"),s=Function.prototype.call;t.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},{"../internals/function-bind-native":46}],48:[function(e,t,n){var r=e("../internals/descriptors"),s=e("../internals/has-own-property"),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":31,"../internals/has-own-property":56}],49:[function(e,t,n){var r=e("../internals/function-bind-native"),s=Function.prototype,i=s.bind,o=s.call,a=r&&i.bind(o,o);t.exports=r?function(e){return e&&a(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},{"../internals/function-bind-native":46}],50:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/is-callable"),i=function(e){return s(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},{"../internals/global":55,"../internals/is-callable":67}],51:[function(e,t,n){var r=e("../internals/classof"),s=e("../internals/get-method"),i=e("../internals/iterators"),o=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return s(e,o)||s(e,"@@iterator")||i[r(e)]}},{"../internals/classof":20,"../internals/get-method":53,"../internals/iterators":75,"../internals/well-known-symbol":127}],52:[function(e,t,n){var r=e("../internals/function-call"),s=e("../internals/a-callable"),i=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw l(o(e)+" is not iterable")}},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/function-call":47,"../internals/get-iterator-method":51,"../internals/try-to-string":120}],53:[function(e,t,n){var r=e("../internals/a-callable");t.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},{"../internals/a-callable":1}],54:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/to-object"),i=Math.floor,o=r("".charAt),a=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,y=u;return void 0!==f&&(f=s(f),y=c),a(d,y,(function(s,a){var c;switch(o(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":c=f[l(a,1,-1)];break;default:var u=+a;if(0===u)return s;if(u>h){var d=i(u/10);return 0===d?s:d<=h?void 0===r[d-1]?o(a,1):r[d-1]+o(a,1):s}c=r[u-1]}return void 0===c?"":c}))}},{"../internals/function-uncurry-this":49,"../internals/to-object":113}],55:[function(e,t,n){(function(e){(function(){var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],56:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/to-object"),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},{"../internals/function-uncurry-this":49,"../internals/to-object":113}],57:[function(e,t,n){t.exports={}},{}],58:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":50}],59:[function(e,t,n){var r=e("../internals/descriptors"),s=e("../internals/fails"),i=e("../internals/document-create-element");t.exports=!r&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":31,"../internals/document-create-element":32,"../internals/fails":42}],60:[function(e,t,n){var r=Array,s=Math.abs,i=Math.pow,o=Math.floor,a=Math.log,l=Math.LN2;t.exports={pack:function(e,t,n){var c,u,f,d=r(n),p=8*n-t-1,h=(1<<p)-1,y=h>>1,m=23===t?i(2,-24)-i(2,-77):0,b=e<0||0===e&&1/e<0?1:0,g=0;for((e=s(e))!=e||e===1/0?(u=e!=e?1:0,c=h):(c=o(a(e)/l),e*(f=i(2,-c))<1&&(c--,f*=2),(e+=c+y>=1?m/f:m*i(2,1-y))*f>=2&&(c++,f/=2),c+y>=h?(u=0,c=h):c+y>=1?(u=(e*f-1)*i(2,t),c+=y):(u=e*i(2,y-1)*i(2,t),c=0));t>=8;)d[g++]=255&u,u/=256,t-=8;for(c=c<<t|u,p+=t;p>0;)d[g++]=255&c,c/=256,p-=8;return d[--g]|=128*b,d},unpack:function(e,t){var n,r=e.length,s=8*r-t-1,o=(1<<s)-1,a=o>>1,l=s-7,c=r-1,u=e[c--],f=127&u;for(u>>=7;l>0;)f=256*f+e[c--],l-=8;for(n=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===f)f=1-a;else{if(f===o)return n?NaN:u?-1/0:1/0;n+=i(2,t),f-=a}return(u?-1:1)*n*i(2,f-t)}}},{}],61:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/fails"),i=e("../internals/classof-raw"),o=Object,a=r("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},{"../internals/classof-raw":19,"../internals/fails":42,"../internals/function-uncurry-this":49}],62:[function(e,t,n){var r=e("../internals/is-callable"),s=e("../internals/is-object"),i=e("../internals/object-set-prototype-of");t.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},{"../internals/is-callable":67,"../internals/is-object":71,"../internals/object-set-prototype-of":92}],63:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/is-callable"),i=e("../internals/shared-store"),o=r(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),t.exports=i.inspectSource},{"../internals/function-uncurry-this":49,"../internals/is-callable":67,"../internals/shared-store":105}],64:[function(e,t,n){var r,s,i,o=e("../internals/native-weak-map"),a=e("../internals/global"),l=e("../internals/function-uncurry-this"),c=e("../internals/is-object"),u=e("../internals/create-non-enumerable-property"),f=e("../internals/has-own-property"),d=e("../internals/shared-store"),p=e("../internals/shared-key"),h=e("../internals/hidden-keys"),y="Object already initialized",m=a.TypeError,b=a.WeakMap;if(o||d.state){var g=d.state||(d.state=new b),v=l(g.get),w=l(g.has),x=l(g.set);r=function(e,t){if(w(g,e))throw new m(y);return t.facade=e,x(g,e,t),t},s=function(e){return v(g,e)||{}},i=function(e){return w(g,e)}}else{var j=p("state");h[j]=!0,r=function(e,t){if(f(e,j))throw new m(y);return t.facade=e,u(e,j,t),t},s=function(e){return f(e,j)?e[j]:{}},i=function(e){return f(e,j)}}t.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":24,"../internals/function-uncurry-this":49,"../internals/global":55,"../internals/has-own-property":56,"../internals/hidden-keys":57,"../internals/is-object":71,"../internals/native-weak-map":80,"../internals/shared-key":104,"../internals/shared-store":105}],65:[function(e,t,n){var r=e("../internals/well-known-symbol"),s=e("../internals/iterators"),i=r("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},{"../internals/iterators":75,"../internals/well-known-symbol":127}],66:[function(e,t,n){var r=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"../internals/classof-raw":19}],67:[function(e,t,n){t.exports=function(e){return"function"==typeof e}},{}],68:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/fails"),i=e("../internals/is-callable"),o=e("../internals/classof"),a=e("../internals/get-built-in"),l=e("../internals/inspect-source"),c=function(){},u=[],f=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(c),y=function(e){if(!i(e))return!1;try{return f(c,u,e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,l(e))}catch(e){return!0}};m.sham=!0,t.exports=!f||s((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?m:y},{"../internals/classof":20,"../internals/fails":42,"../internals/function-uncurry-this":49,"../internals/get-built-in":50,"../internals/inspect-source":63,"../internals/is-callable":67}],69:[function(e,t,n){var r=e("../internals/fails"),s=e("../internals/is-callable"),i=/#|\.prototype\./,o=function(e,t){var n=l[a(e)];return n==u||n!=c&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},{"../internals/fails":42,"../internals/is-callable":67}],70:[function(e,t,n){var r=e("../internals/is-object"),s=Math.floor;t.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&s(e)===e}},{"../internals/is-object":71}],71:[function(e,t,n){var r=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/is-callable":67}],72:[function(e,t,n){t.exports=!1},{}],73:[function(e,t,n){var r=e("../internals/get-built-in"),s=e("../internals/is-callable"),i=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),a=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},{"../internals/get-built-in":50,"../internals/is-callable":67,"../internals/object-is-prototype-of":88,"../internals/use-symbol-as-uid":125}],74:[function(e,t,n){"use strict";var r,s,i,o=e("../internals/fails"),a=e("../internals/is-callable"),l=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),u=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),d=e("../internals/is-pure"),p=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(s=c(c(i)))!==Object.prototype&&(r=s):h=!0),null==r||o((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=l(r)),a(r[p])||u(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},{"../internals/define-built-in":27,"../internals/fails":42,"../internals/is-callable":67,"../internals/is-pure":72,"../internals/object-create":81,"../internals/object-get-prototype-of":87,"../internals/well-known-symbol":127}],75:[function(e,t,n){arguments[4][57][0].apply(n,arguments)},{dup:57}],76:[function(e,t,n){var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":112}],77:[function(e,t,n){var r=e("../internals/fails"),s=e("../internals/is-callable"),i=e("../internals/has-own-property"),o=e("../internals/descriptors"),a=e("../internals/function-name").CONFIGURABLE,l=e("../internals/inspect-source"),c=e("../internals/internal-state"),u=c.enforce,f=c.get,d=Object.defineProperty,p=o&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=t.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=u(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return s(this)&&f(this).source||l(this)}),"toString")},{"../internals/descriptors":31,"../internals/fails":42,"../internals/function-name":48,"../internals/has-own-property":56,"../internals/inspect-source":63,"../internals/internal-state":64,"../internals/is-callable":67}],78:[function(e,t,n){var r=Math.ceil,s=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?s:r)(t)}},{}],79:[function(e,t,n){var r=e("../internals/engine-v8-version"),s=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":38,"../internals/fails":42}],80:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/is-callable"),i=e("../internals/inspect-source"),o=r.WeakMap;t.exports=s(o)&&/native code/.test(i(o))},{"../internals/global":55,"../internals/inspect-source":63,"../internals/is-callable":67}],81:[function(e,t,n){var r,s=e("../internals/an-object"),i=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),f=u("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"!=typeof document?document.domain&&r?h(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=o.length;n--;)delete y.prototype[o[n]];return y()};a[f]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=s(e),n=new d,d.prototype=null,n[f]=e):n=y(),void 0===t?n:i.f(n,t)}},{"../internals/an-object":7,"../internals/document-create-element":32,"../internals/enum-bug-keys":40,"../internals/hidden-keys":57,"../internals/html":58,"../internals/object-define-properties":82,"../internals/shared-key":104}],82:[function(e,t,n){var r=e("../internals/descriptors"),s=e("../internals/v8-prototype-define-bug"),i=e("../internals/object-define-property"),o=e("../internals/an-object"),a=e("../internals/to-indexed-object"),l=e("../internals/object-keys");n.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=l(t),c=s.length,u=0;c>u;)i.f(e,n=s[u++],r[n]);return e}},{"../internals/an-object":7,"../internals/descriptors":31,"../internals/object-define-property":83,"../internals/object-keys":90,"../internals/to-indexed-object":110,"../internals/v8-prototype-define-bug":126}],83:[function(e,t,n){var r=e("../internals/descriptors"),s=e("../internals/ie8-dom-define"),i=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),a=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";n.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:d in n?n.configurable:r.configurable,enumerable:f in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":7,"../internals/descriptors":31,"../internals/ie8-dom-define":59,"../internals/to-property-key":117,"../internals/v8-prototype-define-bug":126}],84:[function(e,t,n){var r=e("../internals/descriptors"),s=e("../internals/function-call"),i=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(e,t){if(e=a(e),t=l(t),u)try{return f(e,t)}catch(e){}if(c(e,t))return o(!s(i.f,e,t),e[t])}},{"../internals/create-property-descriptor":25,"../internals/descriptors":31,"../internals/function-call":47,"../internals/has-own-property":56,"../internals/ie8-dom-define":59,"../internals/object-property-is-enumerable":91,"../internals/to-indexed-object":110,"../internals/to-property-key":117}],85:[function(e,t,n){var r=e("../internals/object-keys-internal"),s=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},{"../internals/enum-bug-keys":40,"../internals/object-keys-internal":89}],86:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],87:[function(e,t,n){var r=e("../internals/has-own-property"),s=e("../internals/is-callable"),i=e("../internals/to-object"),o=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),l=o("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":22,"../internals/has-own-property":56,"../internals/is-callable":67,"../internals/shared-key":104,"../internals/to-object":113}],88:[function(e,t,n){var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":49}],89:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/has-own-property"),i=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),l=r([].push);t.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!s(a,n)&&s(r,n)&&l(u,n);for(;t.length>c;)s(r,n=t[c++])&&(~o(u,n)||l(u,n));return u}},{"../internals/array-includes":12,"../internals/function-uncurry-this":49,"../internals/has-own-property":56,"../internals/hidden-keys":57,"../internals/to-indexed-object":110}],90:[function(e,t,n){var r=e("../internals/object-keys-internal"),s=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,s)}},{"../internals/enum-bug-keys":40,"../internals/object-keys-internal":89}],91:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!r.call({1:2},1);n.f=i?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},{}],92:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/an-object"),i=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},{"../internals/a-possible-prototype":3,"../internals/an-object":7,"../internals/function-uncurry-this":49}],93:[function(e,t,n){var r=e("../internals/function-call"),s=e("../internals/is-callable"),i=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw o("Can't convert object to primitive value")}},{"../internals/function-call":47,"../internals/is-callable":67,"../internals/is-object":71}],94:[function(e,t,n){var r=e("../internals/get-built-in"),s=e("../internals/function-uncurry-this"),i=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),l=s([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?l(t,n(e)):t}},{"../internals/an-object":7,"../internals/function-uncurry-this":49,"../internals/get-built-in":50,"../internals/object-get-own-property-names":85,"../internals/object-get-own-property-symbols":86}],95:[function(e,t,n){var r=e("../internals/function-call"),s=e("../internals/an-object"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),a=e("../internals/regexp-exec"),l=TypeError;t.exports=function(e,t){var n=e.exec;if(i(n)){var c=r(n,e,t);return null!==c&&s(c),c}if("RegExp"===o(e))return r(a,e,t);throw l("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":7,"../internals/classof-raw":19,"../internals/function-call":47,"../internals/is-callable":67,"../internals/regexp-exec":96}],96:[function(e,t,n){"use strict";var r,s,i=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),a=e("../internals/to-string"),l=e("../internals/regexp-flags"),c=e("../internals/regexp-sticky-helpers"),u=e("../internals/shared"),f=e("../internals/object-create"),d=e("../internals/internal-state").get,p=e("../internals/regexp-unsupported-dot-all"),h=e("../internals/regexp-unsupported-ncg"),y=u("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,b=m,g=o("".charAt),v=o("".indexOf),w=o("".replace),x=o("".slice),j=(s=/b*/g,i(m,r=/a/,"a"),i(m,s,"a"),0!==r.lastIndex||0!==s.lastIndex),k=c.BROKEN_CARET,M=void 0!==/()??/.exec("")[1];(j||M||k||p||h)&&(b=function(e){var t,n,r,s,o,c,u,p=this,h=d(p),P=a(e),S=h.raw;if(S)return S.lastIndex=p.lastIndex,t=i(b,S,P),p.lastIndex=S.lastIndex,t;var _=h.groups,I=k&&p.sticky,A=i(l,p),E=p.source,O=0,C=P;if(I&&(A=w(A,"y",""),-1===v(A,"g")&&(A+="g"),C=x(P,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(P,p.lastIndex-1))&&(E="(?: "+E+")",C=" "+C,O++),n=new RegExp("^(?:"+E+")",A)),M&&(n=new RegExp("^"+E+"$(?!\\s)",A)),j&&(r=p.lastIndex),s=i(m,I?n:p,C),I?s?(s.input=x(s.input,O),s[0]=x(s[0],O),s.index=p.lastIndex,p.lastIndex+=s[0].length):p.lastIndex=0:j&&s&&(p.lastIndex=p.global?s.index+s[0].length:r),M&&s&&s.length>1&&i(y,s[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(s[o]=void 0)})),s&&_)for(s.groups=c=f(null),o=0;o<_.length;o++)c[(u=_[o])[0]]=s[u[1]];return s}),t.exports=b},{"../internals/function-call":47,"../internals/function-uncurry-this":49,"../internals/internal-state":64,"../internals/object-create":81,"../internals/regexp-flags":97,"../internals/regexp-sticky-helpers":98,"../internals/regexp-unsupported-dot-all":99,"../internals/regexp-unsupported-ncg":100,"../internals/shared":106,"../internals/to-string":119}],97:[function(e,t,n){"use strict";var r=e("../internals/an-object");t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},{"../internals/an-object":7}],98:[function(e,t,n){var r=e("../internals/fails"),s=e("../internals/global").RegExp,i=r((function(){var e=s("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),o=i||r((function(){return!s("a","y").sticky})),a=i||r((function(){var e=s("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:i}},{"../internals/fails":42,"../internals/global":55}],99:[function(e,t,n){var r=e("../internals/fails"),s=e("../internals/global").RegExp;t.exports=r((function(){var e=s(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},{"../internals/fails":42,"../internals/global":55}],100:[function(e,t,n){var r=e("../internals/fails"),s=e("../internals/global").RegExp;t.exports=r((function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},{"../internals/fails":42,"../internals/global":55}],101:[function(e,t,n){var r=TypeError;t.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},{}],102:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),s=e("../internals/object-define-property"),i=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),a=i("species");t.exports=function(e){var t=r(e),n=s.f;o&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":31,"../internals/get-built-in":50,"../internals/object-define-property":83,"../internals/well-known-symbol":127}],103:[function(e,t,n){var r=e("../internals/object-define-property").f,s=e("../internals/has-own-property"),i=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!s(e,i)&&r(e,i,{configurable:!0,value:t})}},{"../internals/has-own-property":56,"../internals/object-define-property":83,"../internals/well-known-symbol":127}],104:[function(e,t,n){var r=e("../internals/shared"),s=e("../internals/uid"),i=r("keys");t.exports=function(e){return i[e]||(i[e]=s(e))}},{"../internals/shared":106,"../internals/uid":124}],105:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/define-global-property"),i="__core-js_shared__",o=r[i]||s(i,{});t.exports=o},{"../internals/define-global-property":29,"../internals/global":55}],106:[function(e,t,n){var r=e("../internals/is-pure"),s=e("../internals/shared-store");(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.4",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":72,"../internals/shared-store":105}],107:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=e("../internals/to-integer-or-infinity"),i=e("../internals/to-string"),o=e("../internals/require-object-coercible"),a=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,f=i(o(t)),d=s(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=l(f,d))<55296||r>56319||d+1===p||(u=l(f,d+1))<56320||u>57343?e?a(f,d):r:e?c(f,d,d+2):u-56320+(r-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},{"../internals/function-uncurry-this":49,"../internals/require-object-coercible":101,"../internals/to-integer-or-infinity":111,"../internals/to-string":119}],108:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),s=Math.max,i=Math.min;t.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},{"../internals/to-integer-or-infinity":111}],109:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),s=e("../internals/to-length"),i=RangeError;t.exports=function(e){if(void 0===e)return 0;var t=r(e),n=s(t);if(t!==n)throw i("Wrong length or index");return n}},{"../internals/to-integer-or-infinity":111,"../internals/to-length":112}],110:[function(e,t,n){var r=e("../internals/indexed-object"),s=e("../internals/require-object-coercible");t.exports=function(e){return r(s(e))}},{"../internals/indexed-object":61,"../internals/require-object-coercible":101}],111:[function(e,t,n){var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":78}],112:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),s=Math.min;t.exports=function(e){return e>0?s(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":111}],113:[function(e,t,n){var r=e("../internals/require-object-coercible"),s=Object;t.exports=function(e){return s(r(e))}},{"../internals/require-object-coercible":101}],114:[function(e,t,n){var r=e("../internals/to-positive-integer"),s=RangeError;t.exports=function(e,t){var n=r(e);if(n%t)throw s("Wrong offset");return n}},{"../internals/to-positive-integer":115}],115:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),s=RangeError;t.exports=function(e){var t=r(e);if(t<0)throw s("The argument can't be less than 0");return t}},{"../internals/to-integer-or-infinity":111}],116:[function(e,t,n){var r=e("../internals/function-call"),s=e("../internals/is-object"),i=e("../internals/is-symbol"),o=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!s(e)||i(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!s(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":47,"../internals/get-method":53,"../internals/is-object":71,"../internals/is-symbol":73,"../internals/ordinary-to-primitive":93,"../internals/well-known-symbol":127}],117:[function(e,t,n){var r=e("../internals/to-primitive"),s=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},{"../internals/is-symbol":73,"../internals/to-primitive":116}],118:[function(e,t,n){var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":127}],119:[function(e,t,n){var r=e("../internals/classof"),s=String;t.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},{"../internals/classof":20}],120:[function(e,t,n){var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],121:[function(e,t,n){"use strict";var r=e("../internals/export"),s=e("../internals/global"),i=e("../internals/function-call"),o=e("../internals/descriptors"),a=e("../internals/typed-array-constructors-require-wrappers"),l=e("../internals/array-buffer-view-core"),c=e("../internals/array-buffer"),u=e("../internals/an-instance"),f=e("../internals/create-property-descriptor"),d=e("../internals/create-non-enumerable-property"),p=e("../internals/is-integral-number"),h=e("../internals/to-length"),y=e("../internals/to-index"),m=e("../internals/to-offset"),b=e("../internals/to-property-key"),g=e("../internals/has-own-property"),v=e("../internals/classof"),w=e("../internals/is-object"),x=e("../internals/is-symbol"),j=e("../internals/object-create"),k=e("../internals/object-is-prototype-of"),M=e("../internals/object-set-prototype-of"),P=e("../internals/object-get-own-property-names").f,S=e("../internals/typed-array-from"),_=e("../internals/array-iteration").forEach,I=e("../internals/set-species"),A=e("../internals/object-define-property"),E=e("../internals/object-get-own-property-descriptor"),O=e("../internals/internal-state"),C=e("../internals/inherit-if-required"),T=O.get,R=O.set,D=O.enforce,F=A.f,L=E.f,W=Math.round,z=s.RangeError,U=c.ArrayBuffer,N=U.prototype,q=c.DataView,B=l.NATIVE_ARRAY_BUFFER_VIEWS,V=l.TYPED_ARRAY_TAG,H=l.TypedArray,G=l.TypedArrayPrototype,Y=l.aTypedArrayConstructor,K=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){Y(e);for(var n=0,r=t.length,s=new e(r);r>n;)s[n]=t[n++];return s},X=function(e,t){F(e,t,{get:function(){return T(this)[t]}})},Z=function(e){var t;return k(N,e)||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},ee=function(e,t){return K(e)&&!x(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=b(t),ee(e,t)?f(2,e[t]):L(e,t)},ne=function(e,t,n){return t=b(t),!(ee(e,t)&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?F(e,t,n):(e[t]=n.value,e)};o?(B||(E.f=te,A.f=ne,X(G,"buffer"),X(G,"byteOffset"),X(G,"byteLength"),X(G,"length")),r({target:"Object",stat:!0,forced:!B},{getOwnPropertyDescriptor:te,defineProperty:ne}),t.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,f="set"+e,p=s[l],b=p,g=b&&b.prototype,v={},x=function(e,t){F(e,t,{get:function(){return function(e,t){var n=T(e);return n.view[c](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var s=T(e);n&&(r=(r=W(r))<0?0:r>255?255:255&r),s.view[f](t*o+s.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};B?a&&(b=t((function(e,t,n,r){return u(e,g),C(w(t)?Z(t)?void 0!==r?new p(t,m(n,o),r):void 0!==n?new p(t,m(n,o)):new p(t):K(t)?Q(b,t):i(S,b,t):new p(y(t)),e,b)})),M&&M(b,H),_(P(p),(function(e){e in b||d(b,e,p[e])})),b.prototype=g):(b=t((function(e,t,n,r){u(e,g);var s,a,l,c=0,f=0;if(w(t)){if(!Z(t))return K(t)?Q(b,t):i(S,b,t);s=t,f=m(n,o);var d=t.byteLength;if(void 0===r){if(d%o)throw z(J);if((a=d-f)<0)throw z(J)}else if((a=h(r)*o)+f>d)throw z(J);l=a/o}else l=y(t),s=new U(a=l*o);for(R(e,{buffer:s,byteOffset:f,byteLength:a,length:l,view:new q(s)});c<l;)x(e,c++)})),M&&M(b,H),g=b.prototype=j(G)),g.constructor!==b&&d(g,"constructor",b),D(g).TypedArrayConstructor=b,V&&d(g,V,l);var k=b!=p;v[l]=b,r({global:!0,constructor:!0,forced:k,sham:!B},v),$ in b||d(b,$,o),$ in g||d(g,$,o),I(l)}):t.exports=function(){}},{"../internals/an-instance":6,"../internals/array-buffer":10,"../internals/array-buffer-view-core":9,"../internals/array-iteration":13,"../internals/classof":20,"../internals/create-non-enumerable-property":24,"../internals/create-property-descriptor":25,"../internals/descriptors":31,"../internals/export":41,"../internals/function-call":47,"../internals/global":55,"../internals/has-own-property":56,"../internals/inherit-if-required":62,"../internals/internal-state":64,"../internals/is-integral-number":70,"../internals/is-object":71,"../internals/is-symbol":73,"../internals/object-create":81,"../internals/object-define-property":83,"../internals/object-get-own-property-descriptor":84,"../internals/object-get-own-property-names":85,"../internals/object-is-prototype-of":88,"../internals/object-set-prototype-of":92,"../internals/set-species":102,"../internals/to-index":109,"../internals/to-length":112,"../internals/to-offset":114,"../internals/to-property-key":117,"../internals/typed-array-constructors-require-wrappers":122,"../internals/typed-array-from":123}],122:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/fails"),i=e("../internals/check-correctness-of-iteration"),o=e("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,l=r.Int8Array;t.exports=!o||!s((function(){l(1)}))||!s((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||s((function(){return 1!==new l(new a(2),1,void 0).length}))},{"../internals/array-buffer-view-core":9,"../internals/check-correctness-of-iteration":18,"../internals/fails":42,"../internals/global":55}],123:[function(e,t,n){var r=e("../internals/function-bind-context"),s=e("../internals/function-call"),i=e("../internals/a-constructor"),o=e("../internals/to-object"),a=e("../internals/length-of-array-like"),l=e("../internals/get-iterator"),c=e("../internals/get-iterator-method"),u=e("../internals/is-array-iterator-method"),f=e("../internals/array-buffer-view-core").aTypedArrayConstructor;t.exports=function(e){var t,n,d,p,h,y,m=i(this),b=o(e),g=arguments.length,v=g>1?arguments[1]:void 0,w=void 0!==v,x=c(b);if(x&&!u(x))for(y=(h=l(b,x)).next,b=[];!(p=s(y,h)).done;)b.push(p.value);for(w&&g>2&&(v=r(v,arguments[2])),n=a(b),d=new(f(m))(n),t=0;n>t;t++)d[t]=w?v(b[t],t):b[t];return d}},{"../internals/a-constructor":2,"../internals/array-buffer-view-core":9,"../internals/function-bind-context":45,"../internals/function-call":47,"../internals/get-iterator":52,"../internals/get-iterator-method":51,"../internals/is-array-iterator-method":65,"../internals/length-of-array-like":76,"../internals/to-object":113}],124:[function(e,t,n){var r=e("../internals/function-uncurry-this"),s=0,i=Math.random(),o=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},{"../internals/function-uncurry-this":49}],125:[function(e,t,n){var r=e("../internals/native-symbol");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":79}],126:[function(e,t,n){var r=e("../internals/descriptors"),s=e("../internals/fails");t.exports=r&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":31,"../internals/fails":42}],127:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/shared"),i=e("../internals/has-own-property"),o=e("../internals/uid"),a=e("../internals/native-symbol"),l=e("../internals/use-symbol-as-uid"),c=s("wks"),u=r.Symbol,f=u&&u.for,d=l?u:u&&u.withoutSetter||o;t.exports=function(e){if(!i(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&i(u,e)?c[e]=u[e]:c[e]=l&&f?f(t):d(t)}return c[e]}},{"../internals/global":55,"../internals/has-own-property":56,"../internals/native-symbol":79,"../internals/shared":106,"../internals/uid":124,"../internals/use-symbol-as-uid":125}],128:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),s=e("../internals/add-to-unscopables"),i=e("../internals/iterators"),o=e("../internals/internal-state"),a=e("../internals/object-define-property").f,l=e("../internals/define-iterator"),c=e("../internals/is-pure"),u=e("../internals/descriptors"),f="Array Iterator",d=o.set,p=o.getterFor(f);t.exports=l(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var h=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!c&&u&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":4,"../internals/define-iterator":30,"../internals/descriptors":31,"../internals/internal-state":64,"../internals/is-pure":72,"../internals/iterators":75,"../internals/object-define-property":83,"../internals/to-indexed-object":110}],129:[function(e,t,n){"use strict";var r=e("../internals/export"),s=e("../internals/regexp-exec");r({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},{"../internals/export":41,"../internals/regexp-exec":96}],130:[function(e,t,n){"use strict";var r=e("../internals/function-apply"),s=e("../internals/function-call"),i=e("../internals/function-uncurry-this"),o=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/fails"),l=e("../internals/an-object"),c=e("../internals/is-callable"),u=e("../internals/to-integer-or-infinity"),f=e("../internals/to-length"),d=e("../internals/to-string"),p=e("../internals/require-object-coercible"),h=e("../internals/advance-string-index"),y=e("../internals/get-method"),m=e("../internals/get-substitution"),b=e("../internals/regexp-exec-abstract"),g=e("../internals/well-known-symbol")("replace"),v=Math.max,w=Math.min,x=i([].concat),j=i([].push),k=i("".indexOf),M=i("".slice),P="$0"==="a".replace(/./,"$0"),S=!!/./[g]&&""===/./[g]("a","$0");o("replace",(function(e,t,n){var i=S?"$":"$0";return[function(e,n){var r=p(this),i=null==e?void 0:y(e,g);return i?s(i,e,r,n):s(t,d(r),e,n)},function(e,s){var o=l(this),a=d(e);if("string"==typeof s&&-1===k(s,i)&&-1===k(s,"$<")){var p=n(t,o,a,s);if(p.done)return p.value}var y=c(s);y||(s=d(s));var g=o.global;if(g){var P=o.unicode;o.lastIndex=0}for(var S=[];;){var _=b(o,a);if(null===_)break;if(j(S,_),!g)break;""===d(_[0])&&(o.lastIndex=h(a,f(o.lastIndex),P))}for(var I,A="",E=0,O=0;O<S.length;O++){for(var C=d((_=S[O])[0]),T=v(w(u(_.index),a.length),0),R=[],D=1;D<_.length;D++)j(R,void 0===(I=_[D])?I:String(I));var F=_.groups;if(y){var L=x([C],R,T,a);void 0!==F&&j(L,F);var W=d(r(s,void 0,L))}else W=m(C,a,T,R,F,s);T>=E&&(A+=M(a,E,T)+W,E=T+C.length)}return A+M(a,E)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!P||S)},{"../internals/advance-string-index":5,"../internals/an-object":7,"../internals/fails":42,"../internals/fix-regexp-well-known-symbol-logic":43,"../internals/function-apply":44,"../internals/function-call":47,"../internals/function-uncurry-this":49,"../internals/get-method":53,"../internals/get-substitution":54,"../internals/is-callable":67,"../internals/regexp-exec-abstract":95,"../internals/require-object-coercible":101,"../internals/to-integer-or-infinity":111,"../internals/to-length":112,"../internals/to-string":119,"../internals/well-known-symbol":127}],131:[function(e,t,n){e("../internals/typed-array-constructor")("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"../internals/typed-array-constructor":121}],132:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),s=e("../internals/typed-array-constructors-require-wrappers"),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),s)},{"../internals/array-buffer-view-core":9,"../internals/typed-array-constructors-require-wrappers":122}],133:[function(e,t,n){"use strict";var r=e("../internals/global"),s=e("../internals/function-call"),i=e("../internals/array-buffer-view-core"),o=e("../internals/length-of-array-like"),a=e("../internals/to-offset"),l=e("../internals/to-object"),c=e("../internals/fails"),u=r.RangeError,f=r.Int8Array,d=f&&f.prototype,p=d&&d.set,h=i.aTypedArray,y=i.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return s(p,e,{length:1,0:3},1),3!==e[1]})),b=m&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));y("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(m)return s(p,this,n,t);var r=this.length,i=o(n),c=0;if(i+t>r)throw u("Wrong length");for(;c<i;)this[t+c]=n[c++]}),!m||b)},{"../internals/array-buffer-view-core":9,"../internals/fails":42,"../internals/function-call":47,"../internals/global":55,"../internals/length-of-array-like":76,"../internals/to-object":113,"../internals/to-offset":114}],134:[function(e,t,n){"use strict";var r=e("../internals/global"),s=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/a-callable"),a=e("../internals/array-sort"),l=e("../internals/array-buffer-view-core"),c=e("../internals/engine-ff-version"),u=e("../internals/engine-is-ie-or-edge"),f=e("../internals/engine-v8-version"),d=e("../internals/engine-webkit-version"),p=l.aTypedArray,h=l.exportTypedArrayMethod,y=r.Uint16Array,m=y&&s(y.prototype.sort),b=!(!m||i((function(){m(new y(2),null)}))&&i((function(){m(new y(2),{})}))),g=!!m&&!i((function(){if(f)return f<74;if(c)return c<67;if(u)return!0;if(d)return d<602;var e,t,n=new y(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&o(e),g?m(this,e):a(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!g||b)},{"../internals/a-callable":1,"../internals/array-buffer-view-core":9,"../internals/array-sort":15,"../internals/engine-ff-version":35,"../internals/engine-is-ie-or-edge":36,"../internals/engine-v8-version":38,"../internals/engine-webkit-version":39,"../internals/fails":42,"../internals/function-uncurry-this":49,"../internals/global":55}],135:[function(e,t,n){e("../internals/typed-array-constructor")("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"../internals/typed-array-constructor":121}],136:[function(e,t,n){e("../internals/typed-array-constructor")("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},{"../internals/typed-array-constructor":121}],137:[function(e,t,n){var r=e("../internals/global"),s=e("../internals/dom-iterables"),i=e("../internals/dom-token-list-prototype"),o=e("../modules/es.array.iterator"),a=e("../internals/create-non-enumerable-property"),l=e("../internals/well-known-symbol"),c=l("iterator"),u=l("toStringTag"),f=o.values,d=function(e,t){if(e){if(e[c]!==f)try{a(e,c,f)}catch(t){e[c]=f}if(e[u]||a(e,u,t),s[t])for(var n in o)if(e[n]!==o[n])try{a(e,n,o[n])}catch(t){e[n]=o[n]}}};for(var p in s)d(r[p]&&r[p].prototype,p);d(i,"DOMTokenList")},{"../internals/create-non-enumerable-property":24,"../internals/dom-iterables":33,"../internals/dom-token-list-prototype":34,"../internals/global":55,"../internals/well-known-symbol":127,"../modules/es.array.iterator":128}],138:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Build=void 0,n.Build={version:"0.73.8 (e9fa466fc3c6e8f31a7c83d97c78518a)",buildSeed:1665757807348,"wdosbox.wasm":{size:1462485,gzSize:499437},"wdosbox.js":{size:124967,gzSize:32625},"wlibzip.wasm":{size:110726,gzSize:51367},"wlibzip.js":{size:77090,gzSize:19985}}},{}],139:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.sort.js");var s=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const i=e("./dos-conf"),o=s(e("../../libzip/libzip")),a=e("../../http");n.default=class{constructor(e){r(this,"config",void 0),r(this,"sources",void 0),r(this,"libzipWasm",void 0),this.config=(0,i.createDosConfig)(),this.sources=[],this.libzipWasm=e}autoexec(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.config.autoexec.options.script.value=t.join("\n"),this}cycles(e){return this.config.cpu.options.cycles.value=e,this}extract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"zip";return this.extractAll([{url:e,path:t,type:n}])}extractAll(e){return this.sources.push(...e),this}async toUint8Array(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t={};await this.libzipWasm.instantiate(t);const n=new o.default(t,"/home/web_user"),r=await(0,i.toDosboxConf)(this.config),s=[];for(const e of this.sources){if("zip"!==e.type)throw new Error("Only Zip is supported");const t=(0,a.httpRequest)(e.url,{responseType:"arraybuffer"}).then((t=>({source:e,data:new Uint8Array(t)})));s.push(t)}e||(await n.writeFile(".jsdos/dosbox.conf",r),await n.writeFile(".jsdos/readme.txt",l),await n.writeFile(".jsdos/jsdos.json",JSON.stringify(this.config,null,2)));const c=await Promise.all(s);for(const e of c)n.zipToFs(e.data,e.source.path);e&&(await n.writeFile(".jsdos/dosbox.conf",r),await n.writeFile(".jsdos/readme.txt",l),await n.writeFile(".jsdos/jsdos.json",JSON.stringify(this.config,null,2)));const u=await n.zipFromFs();return n.destroy(),u}};const l="\nPlease visit our website:\n\n _ __\n (_)____ ____/ /___ _____ _________ ____ ___\n / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ `__ \\\n / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /\n __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/\n /___/\n"},{"../../http":144,"../../libzip/libzip":149,"./dos-conf":140,"core-js/modules/es.typed-array.set.js":133,"core-js/modules/es.typed-array.sort.js":134,"core-js/modules/es.typed-array.uint8-array.js":135,"core-js/modules/web.dom-collections.iterator.js":137}],140:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.toDosboxConf=n.createDosConfig=n.AutoexecCategory=n.MixerCategory=n.CpuCategory=n.DosboxCategory=n.OutputCategory=void 0;class s{constructor(){r(this,"name","sdl"),r(this,"description","This section contains all of the low level system settings for how DOSBox interacts with your real hardware. You can define what resolutions are emulated, how DOSBox should treat errors or listen to your keyboard and mouse. You can often achieve a fair level of optimization by working with these setting, though for the most part leaving them at their default settings will create the best experience. These settings are passed on to the SDL Library which handles low level things like input and thread priority."),r(this,"options",{autolock:{name:"autolock",description:"Mouse will automatically lock, if you click on the screen.",value:!1,allowedValues:[!0,!1]}})}}n.OutputCategory=s;class i{constructor(){r(this,"name","dosbox"),r(this,"description","The [dosbox] section contains various settings that do not pertain to any other section (e.g. setting the language used in DOSBox help texts, where to store screen captures, etc.)"),r(this,"options",{machine:{name:"machine",description:"The type of machine tries to emulate.",value:"svga_s3",allowedValues:["hercules","cga","tandy","pcjr","ega","vgaonly","svga_s3","svga_et3000","svga_et4000","svga_paradise","vesa_nolfb","vesa_oldvbe"]}})}}n.DosboxCategory=i;class o{constructor(){r(this,"name","cpu"),r(this,"description","The CPU section controls how DOSBox tries to emulate the CPU, how fast the emulation should be, and to adjust it. DOSBox offers 4 different methods of CPU emulation."),r(this,"options",{core:{name:"core",description:"CPU Core used in emulation. auto will switch to dynamic if available and appropriate.",value:"auto",allowedValues:["auto","normal","simple"]},cputype:{name:"cputype",description:"CPU Type used in emulation. auto is the fastest choice.",value:"auto",allowedValues:["auto","386","386_slow","486_slow","pentium_slow","386_prefetch"]},cycles:{name:"cycles",description:"Amount of instructions DOSBox tries to emulate each millisecond. Setting this value too high results in sound dropouts and lags.\nCycles can be set in 3 ways:\n'auto' tries to guess what a game needs.\n It usually works, but can fail for certain games.\n'fixed #number' will set a fixed amount of cycles. This is what you usually need if 'auto' fails.\n (Example: fixed 4000).\n'max' will allocate as much cycles as your computer is able to handle.\n",value:"auto",allowedValues:["auto","fixed","max"]}})}}n.CpuCategory=o;class a{constructor(){r(this,"name","mixer"),r(this,"description","Here you can define the quality of emulated audio."),r(this,"options",{rate:{name:"rate",description:"Frequency rate of sound",value:44100,allowedValues:[]},nosound:{name:"nosound",description:"Enable silent mode, sound is still emulated though.",value:!1,allowedValues:[!0,!1]}})}}n.MixerCategory=a;class l{constructor(){r(this,"name","autoexec"),r(this,"description","Lines in this section will be run at startup"),r(this,"options",{script:{name:"lines",description:"Use \\n to separate lines",value:"",allowedValues:[]}})}}function c(){return{output:new s,dosbox:new i,cpu:new o,mixer:new a,autoexec:new l}}function u(e,t){const n="sdl"===t.name?"output":t.name;return new Promise(((r,s)=>{if(e)if(e.name===t.name){for(const r of Object.keys(e.options)){const i=e.options[r],o=t.options[r];if(void 0===o)return void s(new Error("Unknown option '"+(i.name||r)+"' in '"+e.name+"'"));if(o.allowedValues.length>0){const t=i.value,a=o.allowedValues.find((e=>e===t));if("cpu"===n&&"cycles"===i.name&&(t+"").startsWith("fixed ")){const e=Number.parseInt(t.substr("fixed ".length),10);if(isNaN(e))return void s(new Error("Fixed value should conatain number"))}else if(void 0===a)return void s(new Error("Incorrect value '"+t+"' ("+typeof t+") for '"+e.name+"."+(i.name||r)+"' allowed is "+JSON.stringify(o.allowedValues)))}}for(const r of Object.keys(t.options))if(!(r in e.options))return void s(new Error("Option '"+r+"' is missed in '"+n+"'"));r()}else s(new Error("Incorrect category name '"+e.name+"' should be '"+t.name+"'"));else s(new Error("Category '"+n+"' is missed"))}))}async function f(e,t){if(void 0!==e)for(const n of Object.keys(e.options||{})){const r=e.options[n];if("string"==typeof r||"number"==typeof r||Array.isArray(r)){const s=t.options[n];if(!s)continue;const i=r;e.options[n]={...s},e.options[n].value=i}}}function d(e){let t="";t+="[".concat(e.name,"]\n");for(const n of Object.keys(e.options).sort()){const r=e.options[n];t+="".concat(r.name,"=").concat(r.value,"\n")}return t}n.AutoexecCategory=l,n.createDosConfig=c,n.toDosboxConf=async function(e){await async function(e){const t=c();for(const n of Object.keys(t))await f(e[n],t[n])}(e),await async function(e){const t=c();for(const n of Object.keys(t))await u(e[n],t[n])}(e);const t=d(e.output)+"\nfullscreen=false\nfulldouble=false\nfullresolution=original\nwindowresolution=original\noutput=surface\nsensitivity=100\nwaitonerror=true\npriority=higher,normal\nmapperfile=mapper-jsdos.map\nusescancodes=true\nvsync=false\n"+d(e.dosbox)+"\nlanguage=\ncaptures=capture\nmemsize=16\n"+d(e.cpu)+"\ncycleup=10\ncycledown=20\n"+d(e.mixer)+"\nblocksize=1024\nprebuffer=20\n\n[render]\n# frameskip: How many frames DOSBox skips before drawing one.\n# aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!.\n# scaler: Scaler used to enlarge/enhance low resolution modes.\n# If 'forced' is appended, then the scaler will be used even if the result might not be desired.\n# Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.\n\nframeskip=0\naspect=false\nscaler=none\n\n[midi]\n# mpu401: Type of MPU-401 to emulate.\n# Possible values: intelligent, uart, none.\n# mididevice: Device that will receive the MIDI data from MPU-401.\n# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.\n# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.\n# See the README/Manual for more details.\n\nmpu401=intelligent\nmididevice=default\nmidiconfig=\n\n[sblaster]\n# sbtype: Type of Soundblaster to emulate. gb is Gameblaster.\n# Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.\n# sbbase: The IO address of the soundblaster.\n# Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.\n# irq: The IRQ number of the soundblaster.\n# Possible values: 7, 5, 3, 9, 10, 11, 12.\n# dma: The DMA number of the soundblaster.\n# Possible values: 1, 5, 0, 3, 6, 7.\n# hdma: The High DMA number of the soundblaster.\n# Possible values: 1, 5, 0, 3, 6, 7.\n# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.\n# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.\n# Possible values: auto, cms, opl2, dualopl2, opl3, none.\n# oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).\n# Possible values: default, compat, fast.\n# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).\n# Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.\n\nsbtype=sb16\nsbbase=220\nirq=7\ndma=1\nhdma=5\nsbmixer=true\noplmode=auto\noplemu=default\noplrate=44100\n\n[gus]\n# gus: Enable the Gravis Ultrasound emulation.\n# gusrate: Sample rate of Ultrasound emulation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# gusbase: The IO base address of the Gravis Ultrasound.\n# Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.\n# gusirq: The IRQ number of the Gravis Ultrasound.\n# Possible values: 5, 3, 7, 9, 10, 11, 12.\n# gusdma: The DMA channel of the Gravis Ultrasound.\n# Possible values: 3, 0, 1, 5, 6, 7.\n# ultradir: Path to Ultrasound directory. In this directory\n# there should be a MIDI directory that contains\n# the patch files for GUS playback. Patch sets used\n# with Timidity should work fine.\n\ngus=false\ngusrate=44100\ngusbase=240\ngusirq=5\ngusdma=3\nultradir=C:\\ULTRASND\n\n[speaker]\n# pcspeaker: Enable PC-Speaker emulation.\n# pcrate: Sample rate of the PC-Speaker sound generation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.\n# Possible values: auto, on, off.\n# tandyrate: Sample rate of the Tandy 3-Voice generation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).\n\npcspeaker=true\npcrate=44100\ntandy=auto\ntandyrate=44100\ndisney=true\n\n[joystick]\n# joysticktype: Type of joystick to emulate: auto (default), none,\n# 2axis (supports two joysticks),\n# 4axis (supports one joystick, first joystick used),\n# 4axis_2 (supports one joystick, second joystick used),\n# fcs (Thrustmaster), ch (CH Flightstick).\n# none disables joystick emulation.\n# auto chooses emulation depending on real joystick(s).\n# (Remember to reset dosbox's mapperfile if you saved it earlier)\n# Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.\n# timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).\n# autofire: continuously fires as long as you keep the button pressed.\n# swap34: swap the 3rd and the 4th axis. can be useful for certain joysticks.\n# buttonwrap: enable button wrapping at the number of emulated buttons.\n\njoysticktype=auto\ntimed=true\nautofire=false\nswap34=false\nbuttonwrap=false\n\n[serial]\n# serial1: set type of device connected to com port.\n# Can be disabled, dummy, modem, nullmodem, directserial.\n# Additional parameters must be in the same line in the form of\n# parameter:value. Parameter for all types is irq (optional).\n# for directserial: realport (required), rxdelay (optional).\n# (realport:COM1 realport:ttyS0).\n# for modem: listenport (optional).\n# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,\n# transparent, port, inhsocket (all optional).\n# Example: serial1=modem listenport:5000\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial2: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial3: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial4: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n\nserial1=dummy\nserial2=dummy\nserial3=disabled\nserial4=disabled\n\n[dos]\n# xms: Enable XMS support.\n# ems: Enable EMS support.\n# umb: Enable UMB support.\n# keyboardlayout: Language code of the keyboard layout (or none).\n\nxms=true\nems=true\numb=true\nkeyboardlayout=auto\n\n[ipx]\n# ipx: Enable ipx over UDP/IP emulation.\n\nipx=true\n"+(n=e.autoexec,"[autoexec]\necho off\nmount c .\nc:\n\ntype jsdos~1/readme.txt\necho on\n\n".concat(n.options.script.value,"\n\n# Generated using https://js-dos.com\n# █▀▀▀▀▀█ █ ▄▄▄▀▀█ █▀▀▀▀▀█\n# █ ███ █ ██▄ █ ▀ ▄ █ ███ █\n# █ ▀▀▀ █ ▄██ ▀ ▀▀█ █ ▀▀▀ █\n# ▀▀▀▀▀▀▀ ▀ █▄▀▄▀ █ ▀▀▀▀▀▀▀\n# █▀▄▄█▀▀▄▄ ▀ ▀█▄▄▄▄ ▀▄█▀█▀\n# █▀ ▀ ▀▀▄ █▀ ▄ ▄▀▀▀▄ █▀█▄\n# ▄ ▄▄ █▀▀▄ ▄▀▄▀▀█ ▀▀▄▀▀█▀\n# ▄▀▀█▀▀ █▀█▀█▀▀▄ ▀██▀█▄\n# ▀▀▀ ▀ ▀ █▄█ ▀█▄▄█▀▀▀█▀▀\n# █▀▀▀▀▀█ ▄▄▄ ▄ ▄ █ ▀ █▄▄▄▄\n# █ ███ █ ▀█▀▀▄▀▀▄████▀▀█▄█\n# █ ▀▀▀ █ ▄▀▀█▀█▀▄ ▀▀▄▄█▄█\n# ▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀ ▀▀▀\n"));var n;return Promise.resolve(t)}},{"core-js/modules/web.dom-collections.iterator.js":137}],141:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dosDirect=void 0;const r=e("../../../protocol/messages-queue");n.dosDirect=async function(e,t){const n=new r.MessagesQueue;let s=n.handler.bind(n);const i={postMessage:(e,t)=>{s(e,t)}},o=e=>{const n=e.data;"ws-sync-sleep"===(null==n?void 0:n.name)&&n.props.sessionId===t&&postMessage({name:"wc-sync-sleep",props:n.props},"*")},a={sessionId:t,sendMessageToServer:(e,t)=>{i.messageHandler({data:{name:e,props:t}})},initMessageHandler:e=>{s=e,n.sendTo(s)},exit:()=>{"undefined"!=typeof window&&window.removeEventListener("message",o)}};return a.module=i,"undefined"!=typeof window&&window.addEventListener("message",o,{passive:!0}),await e.instantiate(i),i.callMain([t]),a}},{"../../../protocol/messages-queue":150}],142:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dosWorker=void 0;const r=e("../../../protocol/messages-queue");n.dosWorker=async function(e,t,n){const s=new r.MessagesQueue;let i=s.handler.bind(s);const o=new Worker(e);o.onerror=e=>{i("ws-err",{type:e.type,filename:e.filename,message:e.message})},o.onmessage=e=>{const t=e.data;void 0!==(null==t?void 0:t.name)&&i(t.name,t.props)},await t.instantiate({});const a={sessionId:n,sendMessageToServer:(e,t)=>{o.postMessage({name:e,props:t})},initMessageHandler:e=>{i=e,s.sendTo(i)},exit:()=>{o.terminate()}};try{a.sendMessageToServer("wc-install",{module:t.wasmModule,sessionId:n})}catch(e){a.sendMessageToServer("wc-install",{sessionId:n})}return a}},{"../../../protocol/messages-queue":150}],143:[function(e,t,n){(function(t){(function(){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.NetworkType=void 0;const s=r(e("./impl/emulators-impl"));!function(e){e[e.NETWORK_DOSBOX_IPX=0]="NETWORK_DOSBOX_IPX"}(n.NetworkType||(n.NetworkType={})),"undefined"!=typeof window&&(window.emulators=s.default),void 0!==t&&(t.emulators=s.default)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./impl/emulators-impl":146}],144:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(n,"__esModule",{value:!0}),n.httpRequest=void 0,n.httpRequest=function(e,t){return new Promise(((n,r)=>{new s(e,{...t,success:n,fail:e=>{r(new Error(e))}})}))};class s{constructor(e,t){if(r(this,"resource",void 0),r(this,"options",void 0),r(this,"xhr",null),r(this,"total",0),r(this,"loaded",0),this.resource=e,this.options=t,this.options.method=t.method||"GET","GET"!==this.options.method)throw new Error("Method "+this.options.method+" is not supported");this.makeHttpRequest()}makeHttpRequest(){let e,t;this.xhr=new XMLHttpRequest,this.xhr.open(this.options.method||"GET",this.resource,!0),"POST"===this.options.method&&this.xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),this.xhr.overrideMimeType("text/plain; charset=x-user-defined"),"function"==typeof(e=this.xhr).addEventListener&&e.addEventListener("progress",(e=>{if(this.total=e.total,this.loaded=e.loaded,this.options.progress)return this.options.progress(e.total,e.loaded)})),"function"==typeof(t=this.xhr).addEventListener&&t.addEventListener("error",(()=>{if(this.options.fail)return this.options.fail("Unalbe to download '"+this.resource+"', code: "+this.xhr.status),delete this.options.fail})),this.xhr.onreadystatechange=()=>this.onReadyStateChange(),this.options.responseType&&(this.xhr.responseType=this.options.responseType),this.xhr.send(this.options.data)}onReadyStateChange(){const e=this.xhr;if(4===e.readyState)if(200===e.status){if(this.options.success){const t=Math.max(this.total,this.loaded);return void 0!==this.options.progress&&this.options.progress(t,t),this.options.success(e.response)}}else if(this.options.fail)return this.options.fail("Unable to download '"+this.resource+"', code: "+e.status),delete this.options.fail}}},{}],145:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.CommandInterfaceEventsImpl=void 0;n.CommandInterfaceEventsImpl=class{constructor(){var e=this;r(this,"onStdoutConsumers",[]),r(this,"delayedStdout",[]),r(this,"onFrameSizeConsumers",[]),r(this,"onFrameConsumers",[]),r(this,"onSoundPushConsumers",[]),r(this,"onExitConsumers",[]),r(this,"onMessageConsumers",[]),r(this,"delayedMessages",[]),r(this,"onNetworkConnectedConsumers",[]),r(this,"onNetworkDisconnectedConsumers",[]),r(this,"onStdout",(e=>{if(this.onStdoutConsumers.push(e),1===this.onStdoutConsumers.length){for(const e of this.delayedStdout)this.fireStdout(e);this.delayedStdout=[]}})),r(this,"onFrameSize",(e=>{this.onFrameSizeConsumers.push(e)})),r(this,"onFrame",(e=>{this.onFrameConsumers.push(e)})),r(this,"onSoundPush",(e=>{this.onSoundPushConsumers.push(e)})),r(this,"onExit",(e=>{this.onExitConsumers.push(e)})),r(this,"onMessage",(e=>{if(this.onMessageConsumers.push(e),1===this.onMessageConsumers.length){for(const t of this.delayedMessages)e(t.msgType,...t.args);this.delayedMessages=[]}})),r(this,"fireStdout",(e=>{if(0!==this.onStdoutConsumers.length)for(const t of this.onStdoutConsumers)t(e);else this.delayedStdout.push(e)})),r(this,"fireFrameSize",((e,t)=>{for(const n of this.onFrameSizeConsumers)n(e,t)})),r(this,"fireFrame",((e,t)=>{for(const n of this.onFrameConsumers)n(e,t)})),r(this,"fireSoundPush",(e=>{for(const t of this.onSoundPushConsumers)t(e)})),r(this,"fireExit",(()=>{for(const e of this.onExitConsumers)e();this.onStdoutConsumers=[],this.onFrameSizeConsumers=[],this.onFrameConsumers=[],this.onSoundPushConsumers=[],this.onExitConsumers=[],this.onMessageConsumers=[]})),r(this,"fireMessage",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];if(0!==e.onMessageConsumers.length)for(const n of e.onMessageConsumers)n(t,...r);else e.delayedMessages.push({msgType:t,args:r})})),r(this,"fireNetworkConnected",((e,t,n)=>{for(const r of this.onNetworkConnectedConsumers)r(e,t,n)})),r(this,"fireNetworkDisconnected",(e=>{for(const t of this.onNetworkDisconnectedConsumers)t(e)}))}onNetworkConnected(e){this.onNetworkConnectedConsumers.push(e)}onNetworkDisconnected(e){this.onNetworkDisconnectedConsumers.push(e)}}},{"core-js/modules/web.dom-collections.iterator.js":137}],146:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const i=e("../build"),o=e("./modules"),a=s(e("../dos/bundle/dos-bundle")),l=e("../dos/dosbox/ts/direct"),c=e("../dos/dosbox/ts/worker"),u=s(e("../janus/janus-impl")),f=e("../protocol/protocol");const d=new class{constructor(){r(this,"pathPrefix",""),r(this,"version",i.Build.version),r(this,"wdosboxJs","wdosbox.js"),r(this,"wasmModulesPromise",void 0)}async dosBundle(){const e=await this.wasmModules(),t=await e.libzip();return new a.default(t)}async dosboxNode(e,t){return this.dosboxDirect(e,t)}async dosboxDirect(e,t){const n=await this.wasmModules(),r=await n.dosbox(),s=await(0,l.dosDirect)(r,"session-"+Date.now());return this.backend(e,s,t)}async dosboxWorker(e,t){const n=await this.wasmModules(),r=await n.dosbox(),s=await(0,c.dosWorker)(this.pathPrefix+this.wdosboxJs,r,"session-"+Date.now());return this.backend(e,s,t)}async janus(e){return(0,u.default)(e)}async backend(e,t,n){return new Promise(((r,s)=>{const i=new f.CommandInterfaceOverTransportLayer(Array.isArray(e)?e:[e],t,(e=>{null!==e?s(e):setTimeout((()=>r(i)),4)}),n||{})}))}wasmModules(){if(void 0!==this.wasmModulesPromise)return this.wasmModulesPromise;return this.wasmModulesPromise=(async()=>new o.WasmModulesImpl(this.pathPrefix,this.wdosboxJs))(),this.wasmModulesPromise}async dosDirect(e){return this.dosboxDirect(e)}async dosWorker(e){return this.dosboxWorker(e)}};n.default=d},{"../build":138,"../dos/bundle/dos-bundle":139,"../dos/dosbox/ts/direct":141,"../dos/dosbox/ts/worker":142,"../janus/janus-impl":148,"../protocol/protocol":151,"./modules":147}],147:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/es.typed-array.of.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.loadWasmModule=n.WasmModulesImpl=n.host=void 0;const s=e("../http");n.host=new class{constructor(){if(r(this,"wasmSupported",!1),r(this,"globals",void 0),this.globals="undefined"==typeof window?{}:window,this.globals.exports||(this.globals.exports={}),this.globals.compiled||(this.globals.compiled={}),"object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate&&"function"==typeof WebAssembly.compile){const e=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));e instanceof WebAssembly.Module&&(this.wasmSupported=new WebAssembly.Instance(e)instanceof WebAssembly.Instance)}Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){const n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16)|0}),Math.imul=Math.imul,Math.fround||(Math.fround=function(e){return e}),Math.fround=Math.fround,Math.clz32||(Math.clz32=function(e){e>>>=0;for(let t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.clz32=Math.clz32,Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Math.trunc=Math.trunc}};function i(t,r,i){return"undefined"==typeof XMLHttpRequest?function(t,r,s){if(void 0!==n.host.globals.compiled[r])return n.host.globals.compiled[r];const i=e(t),a=Promise.resolve(new o(i));r&&(n.host.globals.compiled[r]=a);return a}(t,r):function(e,t,r){if(void 0!==n.host.globals.compiled[t])return n.host.globals.compiled[t];async function i(){const i=e.lastIndexOf("/"),o=e.indexOf("w",i),l=o===i+1&&o>=0;if(!n.host.wasmSupported||!l)throw new Error("Starting from js-dos 6.22.60 js environment is not supported");const c=e.substr(0,e.lastIndexOf(".js"))+".wasm",u=(0,s.httpRequest)(c,{responseType:"arraybuffer",progress:(t,n)=>{r("Resolving DosBox ("+e+")",t,n)}}),f=(0,s.httpRequest)(e,{progress:(e,t)=>{r("Resolving DosBox",e,t)}}),[d,p]=await Promise.all([u,f]),h=await WebAssembly.compile(d),y=(e,t)=>{e.env=e.env||{},WebAssembly.instantiate(h,e).then((e=>t(e,h)))};return eval.call(window,p),new a(h,n.host.globals.exports[t],y)}const o=i();t&&(n.host.globals.compiled[t]=o);return o}(t,r,i)}n.WasmModulesImpl=class{constructor(e,t){r(this,"pathPrefix",void 0),r(this,"wdosboxJs",void 0),r(this,"libzipPromise",void 0),r(this,"dosboxPromise",void 0),r(this,"wasmSupported",!1),e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.pathPrefix=e,this.wdosboxJs=t}libzip(){return void 0!==this.libzipPromise||(this.libzipPromise=this.loadModule(this.pathPrefix+"wlibzip.js","WLIBZIP")),this.libzipPromise}dosbox(){return void 0!==this.dosboxPromise||(this.dosboxPromise=this.loadModule(this.pathPrefix+this.wdosboxJs,"WDOSBOX")),this.dosboxPromise}loadModule(e,t){return i(e,t,(()=>{}))}},n.loadWasmModule=i;class o{constructor(e){r(this,"emModule",void 0),this.emModule=e}instantiate(e){return new Promise((t=>{e.onRuntimeInitialized=()=>{t()},new this.emModule(e)}))}}class a{constructor(e,t,n){r(this,"wasmModule",void 0),r(this,"module",void 0),r(this,"instantiateWasm",void 0),this.wasmModule=e,this.module=t,this.instantiateWasm=n}instantiate(e){return new Promise((t=>{e.instantiateWasm=this.instantiateWasm,e.onRuntimeInitialized=()=>{t()},new this.module(e)}))}}},{"../http":144,"core-js/modules/es.typed-array.of.js":132,"core-js/modules/es.typed-array.set.js":133,"core-js/modules/es.typed-array.sort.js":134,"core-js/modules/es.typed-array.uint8-array.js":135,"core-js/modules/web.dom-collections.iterator.js":137}],148:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.sort.js"),Object.defineProperty(n,"__esModule",{value:!0});const s=e("../impl/ci-impl");function i(e,t){let n="";const r=s=>{const i=s.indexOf("\n");if(-1===i)n+=s;else{const o=n+s.substr(0,i);n="";try{e(function(e){const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<n.length;e++)n[e]=t.charCodeAt(e);return(new TextDecoder).decode(n)}(o))}catch(e){t(e)}r(s.substr(i+1))}};return r}class o{constructor(e,t){r(this,"live",!0),r(this,"startedAt",Date.now()),r(this,"janus",void 0),r(this,"eventsImpl",void 0),r(this,"exitPromise",void 0),r(this,"exitResolveFn",(()=>{})),r(this,"configPromise",void 0),r(this,"configResolveFn",(()=>{})),r(this,"opaqueId",void 0),r(this,"handle",void 0),r(this,"handlePromise",void 0),r(this,"handleResolveFn",(()=>{})),r(this,"keyMatrix",{}),r(this,"frameWidth",0),r(this,"frameHeight",0),r(this,"eventQueue",""),r(this,"eventIntervalId",-1),r(this,"rttIntervalId",-1),r(this,"logIntervalId",-1),r(this,"logColor","not set"),r(this,"logWhiteMs",0),r(this,"logRedMs",0),r(this,"logYellowMs",0),r(this,"onDataMessage",(e=>{if(e.startsWith("config="))this.configResolveFn(JSON.parse(e.substr("config=".length)));else if(e.startsWith("frame=")){const[t,n]=e.substr("frame=".length).split("x");this.frameWidth=Number.parseInt(t,10)||0,this.frameHeight=Number.parseInt(n,10)||0}else if(e.startsWith("rtt=")){var t;const[n,r,s]=e.substr("rtt=".length).split(" "),i=Number.parseInt(r,10),o=Number.parseInt(s,10),a=Date.now(),l=(null===(t=this.handle)||void 0===t?void 0:t.getBitrate())||"0 kbits/sec",c=Number.parseInt(l.split(" ")[0],10);this.sendPipeMessage("rtt-data",Date.now(),i,o,a,c),n===this.opaqueId&&this.eventsImpl.fireStdout("rtt-data="+(a-i)+" "+c)}else if(e.startsWith("log-visual-"))switch(e){case"log-visual-white":this.eventsImpl.fireStdout("yellow-frame:"+(Date.now()-this.logYellowMs));break;case"log-visual-red":this.eventsImpl.fireStdout("white-frame:"+(Date.now()-this.logWhiteMs));break;case"log-visual-yellow":this.eventsImpl.fireStdout("red-frame:"+(Date.now()-this.logRedMs))}else if(e.startsWith("log-command-"))switch(e){case"log-command-white":this.eventsImpl.fireStdout("yellow-pipe:"+(Date.now()-this.logYellowMs));break;case"log-command-red":this.eventsImpl.fireStdout("white-pipe:"+(Date.now()-this.logWhiteMs));break;case"log-command-yellow":this.eventsImpl.fireStdout("red-pipe:"+(Date.now()-this.logRedMs))}else this.eventsImpl.fireStdout(e)})),r(this,"onJanusMessage",((e,t,n)=>{null!=n&&e.createAnswer({jsep:n,media:{audioSend:!1,videoSend:!1,data:!0},success:t=>{this.fireMessage("started"),e.send({message:{request:"start"},jsep:t})},error:this.onError})})),r(this,"onError",(e=>{this.fireMessage("error",e)})),this.eventsImpl=new s.CommandInterfaceEventsImpl,this.janus=e,this.opaqueId=t,this.exitPromise=new Promise((e=>{this.exitResolveFn=e})),this.configPromise=new Promise((e=>{this.configResolveFn=e})),this.handlePromise=new Promise(((e,t)=>{this.handleResolveFn=n=>{this.handle=n,this.live?(setTimeout((()=>{this.live&&n.data({text:"pipe "+this.opaqueId+" config"})}),1e3),this.config().then((()=>{this.live&&(this.eventIntervalId=setInterval((()=>{this.sendEventsData(n)}),8),this.rttIntervalId=setInterval((()=>{this.sendPipeMessage("rtt",Date.now())}),1e3))})),e(n)):t(new Error("exit() was called"))}})),this.attach()}fireMessage(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.eventsImpl.fireMessage(e,...n)}attach(){let e;this.janus.attach({plugin:"janus.plugin.streaming",opaqueId:this.opaqueId,error:this.onError,success:t=>{e=t,this.fireMessage("attached"),t.send({message:{request:"watch",id:1}})},onmessage:(t,n)=>{this.onJanusMessage(e,t,n)},onremotestream:e=>{this.fireMessage("onremotestream",e)},ondataopen:()=>this.handleResolveFn(e),ondata:i(this.onDataMessage,this.onError)})}onDestroyed(){this.fireMessage("destroyed"),this.exitResolveFn()}async config(){return this.configPromise}width(){return this.frameWidth}height(){return this.frameHeight}soundFrequency(){return 44100}screenshot(){return Promise.reject(new Error("Not supported"))}simulateKeyPress(){const e=Date.now()-this.startedAt;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((t=>this.addKey(t,!0,e))),n.forEach((t=>this.addKey(t,!1,e+16)))}sendKeyEvent(e,t){this.addKey(e,t,Date.now()-this.startedAt)}addKey(e,t,n){if(!0===this.keyMatrix[e]!==t&&(this.keyMatrix[e]=t,this.sendPipeMessage("k"+(t?"down":"up"),e,n),-1!==this.logIntervalId&&t))switch(this.logColor){case"white":this.logWhiteMs=Date.now();break;case"red":this.logRedMs=Date.now();break;case"yellow":this.logYellowMs=Date.now()}}sendMouseMotion(e,t){this.sendPipeMessage("mmove",e,t,Date.now()-this.startedAt)}sendMouseRelativeMotion(e,t){throw new Error("not implemented")}sendMouseButton(e,t){this.sendPipeMessage("m"+(t?"down":"up"),e,Date.now()-this.startedAt)}sendMouseSync(){this.sendPipeMessage("msync",Date.now()-this.startedAt)}logVisual(e){this.sendPipeMessage("log-visual-on");const t=document.createElement("canvas"),n=t.getContext("2d");t.width=1,t.height=1,this.logIntervalId=setInterval((async()=>{var t;const r=Date.now();null==n||n.drawImage(e,0,0,1,1,0,0,1,1);const s=null==n||null===(t=n.getImageData(0,0,1,1))||void 0===t?void 0:t.data,i=Date.now()-r;let o="not set";if(s[0]>200&&s[1]>200&&s[2]>200?o="white":s[0]>200&&s[1]<200&&s[2]<200?o="red":s[0]>200&&s[1]>200&&s[2]<200&&(o="yellow"),o!==this.logColor){switch(o){case"white":this.eventsImpl.fireStdout("yellow-stream:"+(Date.now()-this.logYellowMs-i));break;case"red":this.eventsImpl.fireStdout("white-stream:"+(Date.now()-this.logWhiteMs-i));break;case"yellow":this.eventsImpl.fireStdout("red-stream:"+(Date.now()-this.logRedMs-i))}this.logColor=o}}),16)}sendPipeMessage(){this.eventQueue+="pipe "+this.opaqueId;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t)this.eventQueue+=" "+e;this.eventQueue+="\n"}async sendEventsData(e){0!==this.eventQueue.length&&(e.data({text:this.eventQueue}),this.eventQueue="")}persist(){return Promise.reject(new Error("Not supported"))}pause(){console.warn("pause/resume is not implemented")}resume(){}mute(){console.warn("mute/unmute is not implemented")}unmute(){}exit(){return this.live=!1,clearInterval(this.logIntervalId),this.logIntervalId=-1,clearInterval(this.eventIntervalId),this.eventIntervalId=-1,clearInterval(this.rttIntervalId),this.rttIntervalId=-1,this.janus.destroy(),this.exitPromise}events(){return this.eventsImpl}networkConnect(e,t,n){return Promise.reject("Not supported")}networkDisconnect(e){return Promise.reject("Not supported")}}n.default=function(e,t){const n=t||window.Janus;return void 0===n?Promise.reject(new Error("Janus is not defined, you should load janus.js before this")):n.isWebrtcSupported()?new Promise(((t,r)=>{let s=null;const i={error:e=>{null===s?r(e):s.onError(e)},destroyed:()=>{null!==s&&s.onDestroyed()}},a={server:e,success:()=>{s=new o(l,"js-dos-"+n.randomString(12)),t(s)},error:i.error,destroyed:i.destroyed,destroyOnUnload:!0},l=new n(a)})):Promise.reject(new Error("WebRTC not supported"))}},{"../impl/ci-impl":145,"core-js/modules/es.typed-array.set.js":133,"core-js/modules/es.typed-array.sort.js":134,"core-js/modules/es.typed-array.uint8-array.js":135,"core-js/modules/web.dom-collections.iterator.js":137}],149:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(n,"__esModule",{value:!0});n.default=class{constructor(e,t){r(this,"module",void 0),r(this,"home",void 0),this.module=e,this.home=t,this.module.callMain([]),this.chdirToHome()}zipFromFs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.chdirToHome();const t=this.module._zip_from_fs(e);if(0===t)return Promise.reject(new Error("Can't create zip, see more info in logs"));const n=this.module.HEAPU32[t/4],r=this.module.HEAPU8.slice(t+4,t+4+n);return this.module._free(t),Promise.resolve(r)}zipToFs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";t=this.normalizeFilename(t);const n=this.normalizeFilename(t).split("/");this.createPath(n,0,n.length),this.chdir(t);const r=new Uint8Array(e),s=this.module._malloc(r.length);this.module.HEAPU8.set(r,s);const i=this.module._zip_to_fs(s,r.length);return this.module._free(s),this.chdirToHome(),0===i?Promise.resolve():Promise.reject(new Error("Can't extract zip, retcode "+i+", see more info in logs"))}writeFile(e,t){e=this.normalizeFilename(e),t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=e.split("/");if(0===n.length)throw new Error("Can't create file '"+e+"', because it's not valid file path");const r=n[n.length-1].trim();if(0===r.length)throw new Error("Can't create file '"+e+"', because file name is empty");const s=this.createPath(n,0,n.length-1);this.module.FS.writeFile(s+"/"+r,t)}async readFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";return e=this.normalizeFilename(e),this.module.FS.readFile(e,{encoding:t})}exists(e){e=this.normalizeFilename(e);try{return this.module.FS.lookupPath(e),!0}catch(e){return!1}}destroy(){try{this.module._libzip_destroy()}catch(e){return e}}normalizeFilename(e){for(e=e.replace(new RegExp("^[a-zA-z]+:"),"").replace(new RegExp("\\\\","g"),"/");"/"===e[0];)e=e.substr(1);return e}createPath(e,t,n){let r=".";for(let s=t;s<n;++s){const t=e[s].trim();0!==t.length&&(this.module.FS.createPath(r,t,!0,!0),r=r+"/"+t)}return r}chdirToHome(){this.module.FS.chdir(this.home)}chdir(e){this.module.FS.chdir(this.home+"/"+e)}}},{"core-js/modules/es.string.replace.js":130,"core-js/modules/es.typed-array.set.js":133,"core-js/modules/es.typed-array.sort.js":134,"core-js/modules/es.typed-array.uint8-array.js":135}],150:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.MessagesQueue=void 0;n.MessagesQueue=class{constructor(){var e,t,n;n=[],(t="messages")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}handler(e,t){this.messages.push({name:e,props:t})}sendTo(e){for(const t of this.messages)e(t.name,t.props);this.messages=[]}}},{"core-js/modules/web.dom-collections.iterator.js":137}],151:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.typed-array.float32-array.js"),e("core-js/modules/es.typed-array.uint8-clamped-array.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.CommandInterfaceOverTransportLayer=void 0;const s=e("../impl/ci-impl");n.CommandInterfaceOverTransportLayer=class{constructor(e,t,n,i){r(this,"startedAt",Date.now()),r(this,"frameWidth",0),r(this,"frameHeight",0),r(this,"rgb",null),r(this,"rgba",null),r(this,"freq",0),r(this,"bundles",void 0),r(this,"transport",void 0),r(this,"ready",void 0),r(this,"persistPromise",void 0),r(this,"persistResolve",void 0),r(this,"exitPromise",void 0),r(this,"exitResolve",void 0),r(this,"eventsImpl",new s.CommandInterfaceEventsImpl),r(this,"keyMatrix",{}),r(this,"configPromise",void 0),r(this,"configResolve",(()=>{})),r(this,"panicMessages",[]),r(this,"connectPromise",null),r(this,"connectResolve",(()=>{})),r(this,"connectReject",(()=>{})),r(this,"disconnectPromise",null),r(this,"disconnectResolve",(()=>{})),r(this,"sharedMemory",void 0),r(this,"directSound",void 0),r(this,"options",void 0),this.options=i,this.bundles=e,this.transport=t,this.ready=n,this.configPromise=new Promise((e=>this.configResolve=e)),this.transport.initMessageHandler(this.onServerMessage.bind(this))}sendClientMessage(e,t){(t=t||{}).sessionId=t.sessionId||this.transport.sessionId,this.transport.sendMessageToServer(e,t)}onServerMessage(e,t){if(!(void 0===e||e.length<3||"w"!==e[0]||"s"!==e[1]||"-"!==e[2])&&void 0!==t&&t.sessionId===this.transport.sessionId)switch(e){case"ws-ready":this.sharedMemory=t.sharedMemory,this.sendClientMessage("wc-run",{bundles:this.bundles}),delete this.bundles;break;case"ws-server-ready":this.panicMessages.length>0?(void 0!==this.transport.exit&&this.transport.exit(),this.ready(new Error(JSON.stringify(this.panicMessages)))):this.ready(null),delete this.ready;break;case"ws-frame-set-size":this.onFrameSize(t.width,t.height);break;case"ws-update-lines":this.onFrameLines(t.lines,t.rgba);break;case"ws-exit":this.onExit();break;case"ws-log":this.onLog(t.tag,t.message);break;case"ws-warn":this.onWarn(t.tag,t.message);break;case"ws-err":this.onErr(t.tag,t.message);break;case"ws-stdout":this.onStdout(t.message);break;case"ws-persist":this.onPersist(t.bundle);break;case"ws-sound-init":this.onSoundInit(t.freq,t.directSound);break;case"ws-sound-push":this.onSoundPush(t.samples);break;case"ws-config":this.onConfig(JSON.parse(t.content));break;case"ws-sync-sleep":this.sendClientMessage("wc-sync-sleep",t);break;case"ws-connected":this.connectResolve(),this.connectPromise=null,this.connectResolve=()=>{},this.connectReject=()=>{},this.eventsImpl.fireNetworkConnected(t.networkType,t.address,t.port);break;case"ws-disconnected":null!==this.connectPromise?(this.connectReject(),this.connectPromise=null,this.connectResolve=()=>{},this.connectReject=()=>{}):(this.disconnectResolve(),this.disconnectPromise=null,this.disconnectResolve=()=>{}),this.eventsImpl.fireNetworkDisconnected(t.networkType);break;case"ws-extract-progress":this.options.onExtractProgress&&this.options.onExtractProgress(t.index,t.file,t.extracted,t.count);break;default:console.log("Unknown server message (ws):",e)}}onConfig(e){this.configResolve(e)}onFrameSize(e,t){this.frameWidth===e&&this.frameHeight===t||(this.frameWidth=e,this.frameHeight=t,void 0===this.sharedMemory&&(this.rgb=new Uint8Array(e*t*3)),this.eventsImpl.fireFrameSize(e,t))}onFrameLines(e,t){if(void 0!==this.sharedMemory)this.rgba=new Uint8Array(this.sharedMemory,t,this.frameWidth*this.frameHeight*4);else for(const t of e)this.rgb.set(t.heapu8,t.start*this.frameWidth*3);this.eventsImpl.fireFrame(this.rgb,this.rgba)}onSoundInit(e,t){if(this.freq=e,this.directSound=t,void 0!==this.directSound)for(let e=0;e<this.directSound.ringSize;++e)this.directSound.buffer[e]=new Float32Array(this.directSound.buffer[e])}onSoundPush(e){this.eventsImpl.fireSoundPush(e)}onLog(e,t){this.eventsImpl.fireMessage("log","["+e+"]"+t)}onWarn(e,t){this.eventsImpl.fireMessage("warn","["+e+"]"+t)}onErr(e,t){"panic"===e&&(this.panicMessages.push(t),console.error("["+e+"]"+t)),this.eventsImpl.fireMessage("error","["+e+"]"+t)}onStdout(e){this.eventsImpl.fireStdout(e)}config(){return this.configPromise}width(){return this.frameWidth}height(){return this.frameHeight}soundFrequency(){return this.freq}screenshot(){if(null!==this.rgb||null!==this.rgba){const e=new Uint8ClampedArray(this.frameWidth*this.frameHeight*4),t=null!==this.rgb?this.rgb:this.rgba;let n=0,r=0;for(;r<e.length;)e[r++]=t[n++],e[r++]=t[n++],e[r++]=t[n++],e[r++]=255,t.length===e.length&&n++;return Promise.resolve(new ImageData(e,this.frameWidth,this.frameHeight))}return Promise.reject(new Error("No frame received"))}simulateKeyPress(){const e=Date.now()-this.startedAt;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((t=>this.addKey(t,!0,e))),n.forEach((t=>this.addKey(t,!1,e+16)))}sendKeyEvent(e,t){this.addKey(e,t,Date.now()-this.startedAt)}addKey(e,t,n){!0===this.keyMatrix[e]!==t&&(this.keyMatrix[e]=t,this.sendClientMessage("wc-add-key",{key:e,pressed:t,timeMs:n}))}sendMouseMotion(e,t){this.sendClientMessage("wc-mouse-move",{x:e,y:t,relative:!1,timeMs:Date.now()-this.startedAt})}sendMouseRelativeMotion(e,t){this.sendClientMessage("wc-mouse-move",{x:e,y:t,relative:!0,timeMs:Date.now()-this.startedAt})}sendMouseButton(e,t){this.sendClientMessage("wc-mouse-button",{button:e,pressed:t,timeMs:Date.now()-this.startedAt})}sendMouseSync(){this.sendClientMessage("wc-mouse-sync",{timeMs:Date.now()-this.startedAt})}persist(){if(void 0!==this.persistPromise)return this.persistPromise;const e=new Promise((e=>this.persistResolve=e));return this.persistPromise=e,this.sendClientMessage("wc-pack-fs-to-bundle"),e}onPersist(e){this.persistResolve&&(this.persistResolve(e),delete this.persistPromise,delete this.persistResolve)}pause(){this.sendClientMessage("wc-pause")}resume(){this.sendClientMessage("wc-resume")}mute(){this.sendClientMessage("wc-mute")}unmute(){this.sendClientMessage("wc-unmute")}exit(){return void 0!==this.exitPromise||(this.exitPromise=new Promise((e=>this.exitResolve=e)),this.exitPromise.then((()=>{this.events().fireExit()})),this.resume(),this.sendClientMessage("wc-exit")),this.exitPromise}onExit(){void 0!==this.transport.exit&&this.transport.exit(),this.exitResolve&&(this.exitResolve(),delete this.exitPromise,delete this.exitResolve)}events(){return this.eventsImpl}networkConnect(e,t,n){return null!==this.connectPromise||null!==this.disconnectPromise?Promise.reject(new Error("Already prefoming connection or disconnection...")):(this.connectPromise=new Promise(((r,s)=>{t.startsWith("wss://")||t.startsWith("ws://")||(t=("http:"===window.location.protocol?"ws://":"wss://")+t),this.connectResolve=r,this.connectReject=s,this.sendClientMessage("wc-connect",{networkType:e,address:t,port:n})})),this.connectPromise)}networkDisconnect(e){return null!==this.connectPromise||null!==this.disconnectPromise?Promise.reject(new Error("Already prefoming connection or disconnection...")):(this.disconnectPromise=new Promise((t=>{this.disconnectResolve=t,this.sendClientMessage("wc-disconnect",{networkType:e})})),this.disconnectPromise)}}},{"../impl/ci-impl":145,"core-js/modules/es.typed-array.float32-array.js":131,"core-js/modules/es.typed-array.set.js":133,"core-js/modules/es.typed-array.sort.js":134,"core-js/modules/es.typed-array.uint8-array.js":135,"core-js/modules/es.typed-array.uint8-clamped-array.js":136,"core-js/modules/web.dom-collections.iterator.js":137}]},{},[143]); |