@polyv/live-watch-sdk
Version:
SDK for creating a live stream viewing page using Polyv's services.
1 lines • 1.12 MB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).PolyvLiveWatchSDK=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,i={exports:{}},a={};function o(){if(r)return n;r=1;var t=function(e){return e&&e.Math===Math&&e};return n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}var s,u,c,l,h,f,d,v,p={};function g(){return u?s:(u=1,s=function(e){try{return!!e()}catch(e){return!0}})}function y(){if(l)return c;l=1;var e=g();return c=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function m(){if(f)return h;f=1;var e=g();return h=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function _(){if(v)return d;v=1;var e=m(),t=Function.prototype.call;return d=e?t.bind(t):function(){return t.apply(t,arguments)},d}var k,b,S,C,w,E,I,T,M,P,A,x,L,R,O,D,N,W,U,j,B,F,V,q,z,H,G,Y,Q,K,$,J,X,Z,ee,te,ne,re,ie,ae,oe,se={};function ue(){if(k)return se;k=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return se.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,se}function ce(){return S?b:(S=1,b=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function le(){if(w)return C;w=1;var e=m(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return C=e?r:function(e){return function(){return n.apply(e,arguments)}},C}function he(){if(I)return E;I=1;var e=le(),t=e({}.toString),n=e("".slice);return E=function(e){return n(t(e),8,-1)}}function fe(){if(M)return T;M=1;var e=le(),t=g(),n=he(),r=Object,i=e("".split);return T=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function de(){return A?P:(A=1,P=function(e){return null==e})}function ve(){if(L)return x;L=1;var e=de(),t=TypeError;return x=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function pe(){if(O)return R;O=1;var e=fe(),t=ve();return R=function(n){return e(t(n))}}function ge(){if(N)return D;N=1;var e="object"==typeof document&&document.all;return D=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ye(){if(U)return W;U=1;var e=ge();return W=function(t){return"object"==typeof t?null!==t:e(t)}}function me(){if(B)return j;B=1;var e=o(),t=ge();return j=function(n,r){return arguments.length<2?(i=e[n],t(i)?i:void 0):e[n]&&e[n][r];var i},j}function _e(){if(V)return F;V=1;var e=le();return F=e({}.isPrototypeOf)}function ke(){if(z)return q;z=1;var e=o().navigator,t=e&&e.userAgent;return q=t?String(t):""}function be(){if(G)return H;G=1;var e,t,n=o(),r=ke(),i=n.process,a=n.Deno,s=i&&i.versions||a&&a.version,u=s&&s.v8;return u&&(t=(e=u.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),H=t}function Se(){if(Q)return Y;Q=1;var e=be(),t=g(),n=o().String;return Y=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function Ce(){if($)return K;$=1;var e=Se();return K=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function we(){if(X)return J;X=1;var e=me(),t=ge(),n=_e(),r=Ce(),i=Object;return J=r?function(e){return"symbol"==typeof e}:function(r){var a=e("Symbol");return t(a)&&n(a.prototype,i(r))}}function Ee(){if(ee)return Z;ee=1;var e=String;return Z=function(t){try{return e(t)}catch(e){return"Object"}}}function Ie(){if(ne)return te;ne=1;var e=ge(),t=Ee(),n=TypeError;return te=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Te(){if(ie)return re;ie=1;var e=Ie(),t=de();return re=function(n,r){var i=n[r];return t(i)?void 0:e(i)}}function Me(){if(oe)return ae;oe=1;var e=_(),t=ge(),n=ye(),r=TypeError;return ae=function(i,a){var o,s;if("string"===a&&t(o=i.toString)&&!n(s=e(o,i)))return s;if(t(o=i.valueOf)&&!n(s=e(o,i)))return s;if("string"!==a&&t(o=i.toString)&&!n(s=e(o,i)))return s;throw new r("Can't convert object to primitive value")}}var Pe,Ae,xe,Le,Re,Oe,De,Ne,We,Ue,je,Be,Fe,Ve,qe,ze,He,Ge,Ye,Qe,Ke,$e,Je,Xe,Ze={exports:{}};function et(){return Ae?Pe:(Ae=1,Pe=!1)}function tt(){if(Le)return xe;Le=1;var e=o(),t=Object.defineProperty;return xe=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function nt(){if(Re)return Ze.exports;Re=1;var e=et(),t=o(),n=tt(),r="__core-js_shared__",i=Ze.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Ze.exports}function rt(){if(De)return Oe;De=1;var e=nt();return Oe=function(t,n){return e[t]||(e[t]=n||{})}}function it(){if(We)return Ne;We=1;var e=ve(),t=Object;return Ne=function(n){return t(e(n))}}function at(){if(je)return Ue;je=1;var e=le(),t=it(),n=e({}.hasOwnProperty);return Ue=Object.hasOwn||function(e,r){return n(t(e),r)}}function ot(){if(Fe)return Be;Fe=1;var e=le(),t=0,n=Math.random(),r=e(1..toString);return Be=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function st(){if(qe)return Ve;qe=1;var e=o(),t=rt(),n=at(),r=ot(),i=Se(),a=Ce(),s=e.Symbol,u=t("wks"),c=a?s.for||s:s&&s.withoutSetter||r;return Ve=function(e){return n(u,e)||(u[e]=i&&n(s,e)?s[e]:c("Symbol."+e)),u[e]}}function ut(){if(He)return ze;He=1;var e=_(),t=ye(),n=we(),r=Te(),i=Me(),a=st(),o=TypeError,s=a("toPrimitive");return ze=function(a,u){if(!t(a)||n(a))return a;var c,l=r(a,s);if(l){if(void 0===u&&(u="default"),c=e(l,a,u),!t(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(a,u)}}function ct(){if(Ye)return Ge;Ye=1;var e=ut(),t=we();return Ge=function(n){var r=e(n,"string");return t(r)?r:r+""}}function lt(){if(Ke)return Qe;Ke=1;var e=o(),t=ye(),n=e.document,r=t(n)&&t(n.createElement);return Qe=function(e){return r?n.createElement(e):{}}}function ht(){if(Je)return $e;Je=1;var e=y(),t=g(),n=lt();return $e=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function ft(){if(Xe)return p;Xe=1;var e=y(),t=_(),n=ue(),r=ce(),i=pe(),a=ct(),o=at(),s=ht(),u=Object.getOwnPropertyDescriptor;return p.f=e?u:function(e,c){if(e=i(e),c=a(c),s)try{return u(e,c)}catch(e){}if(o(e,c))return r(!t(n.f,e,c),e[c])},p}var dt,vt,pt,gt,yt,mt,_t,kt={};function bt(){if(vt)return dt;vt=1;var e=y(),t=g();return dt=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function St(){if(gt)return pt;gt=1;var e=ye(),t=String,n=TypeError;return pt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function Ct(){if(yt)return kt;yt=1;var e=y(),t=ht(),n=bt(),r=St(),i=ct(),a=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return kt.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var a=s(e,t);a&&a[l]&&(e[t]=n.value,n={configurable:c in n?n[c]:a[c],enumerable:u in n?n[u]:a[u],writable:!1})}return o(e,t,n)}:o:function(e,n,s){if(r(e),n=i(n),r(s),t)try{return o(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(e[n]=s.value),e},kt}function wt(){if(_t)return mt;_t=1;var e=y(),t=Ct(),n=ce();return mt=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}var Et,It,Tt,Mt,Pt,At,xt,Lt,Rt,Ot,Dt,Nt,Wt,Ut,jt,Bt={exports:{}};function Ft(){if(It)return Et;It=1;var e=y(),t=at(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),a=i&&"something"===function(){}.name,o=i&&(!e||e&&r(n,"name").configurable);return Et={EXISTS:i,PROPER:a,CONFIGURABLE:o}}function Vt(){if(Mt)return Tt;Mt=1;var e=le(),t=ge(),n=nt(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Tt=n.inspectSource}function qt(){if(At)return Pt;At=1;var e=o(),t=ge(),n=e.WeakMap;return Pt=t(n)&&/native code/.test(String(n))}function zt(){if(Lt)return xt;Lt=1;var e=rt(),t=ot(),n=e("keys");return xt=function(e){return n[e]||(n[e]=t(e))}}function Ht(){return Ot?Rt:(Ot=1,Rt={})}function Gt(){if(Nt)return Dt;Nt=1;var e,t,n,r=qt(),i=o(),a=ye(),s=wt(),u=at(),c=nt(),l=zt(),h=Ht(),f="Object already initialized",d=i.TypeError,v=i.WeakMap;if(r||c.state){var p=c.state||(c.state=new v);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new d(f);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},n=function(e){return p.has(e)}}else{var g=l("state");h[g]=!0,e=function(e,t){if(u(e,g))throw new d(f);return t.facade=e,s(e,g,t),t},t=function(e){return u(e,g)?e[g]:{}},n=function(e){return u(e,g)}}return Dt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!a(n)||(r=t(n)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}}function Yt(){if(Wt)return Bt.exports;Wt=1;var e=le(),t=g(),n=ge(),r=at(),i=y(),a=Ft().CONFIGURABLE,o=Vt(),s=Gt(),u=s.enforce,c=s.get,l=String,h=Object.defineProperty,f=e("".slice),d=e("".replace),v=e([].join),p=i&&!t((function(){return 8!==h((function(){}),"length",{value:8}).length})),m=String(String).split("String"),_=Bt.exports=function(e,t,n){"Symbol("===f(l(t),0,7)&&(t="["+d(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||a&&e.name!==t)&&(i?h(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&r(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return r(o,"source")||(o.source=v(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=_((function(){return n(this)&&c(this).source||o(this)}),"toString"),Bt.exports}function Qt(){if(jt)return Ut;jt=1;var e=ge(),t=Ct(),n=Yt(),r=tt();return Ut=function(i,a,o,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:a;if(e(o)&&n(o,c,s),s.global)u?i[a]=o:r(a,o);else{try{s.unsafe?i[a]&&(u=!0):delete i[a]}catch(e){}u?i[a]=o:t.f(i,a,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Kt,$t,Jt,Xt,Zt,en,tn,nn,rn,an,on,sn,un,cn,ln,hn,fn,dn={};function vn(){if($t)return Kt;$t=1;var e=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}function pn(){if(Xt)return Jt;Xt=1;var e=vn();return Jt=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function gn(){if(en)return Zt;en=1;var e=pn(),t=Math.max,n=Math.min;return Zt=function(r,i){var a=e(r);return a<0?t(a+i,0):n(a,i)}}function yn(){if(nn)return tn;nn=1;var e=pn(),t=Math.min;return tn=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function mn(){if(an)return rn;an=1;var e=yn();return rn=function(t){return e(t.length)}}function _n(){if(sn)return on;sn=1;var e=pe(),t=gn(),n=mn(),r=function(r){return function(i,a,o){var s=e(i),u=n(s);if(0===u)return!r&&-1;var c,l=t(o,u);if(r&&a!=a){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((r||l in s)&&s[l]===a)return r||l||0;return!r&&-1}};return on={includes:r(!0),indexOf:r(!1)}}function kn(){if(cn)return un;cn=1;var e=le(),t=at(),n=pe(),r=_n().indexOf,i=Ht(),a=e([].push);return un=function(e,o){var s,u=n(e),c=0,l=[];for(s in u)!t(i,s)&&t(u,s)&&a(l,s);for(;o.length>c;)t(u,s=o[c++])&&(~r(l,s)||a(l,s));return l}}function bn(){return hn?ln:(hn=1,ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Sn(){if(fn)return dn;fn=1;var e=kn(),t=bn().concat("length","prototype");return dn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},dn}var Cn,wn,En,In,Tn,Mn,Pn,An,xn,Ln,Rn,On,Dn,Nn,Wn,Un,jn,Bn,Fn,Vn,qn,zn,Hn,Gn,Yn,Qn,Kn,$n,Jn={};function Xn(){return Cn||(Cn=1,Jn.f=Object.getOwnPropertySymbols),Jn}function Zn(){if(En)return wn;En=1;var e=me(),t=le(),n=Sn(),r=Xn(),i=St(),a=t([].concat);return wn=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),o=r.f;return o?a(t,o(e)):t}}function er(){if(Tn)return In;Tn=1;var e=at(),t=Zn(),n=ft(),r=Ct();return In=function(i,a,o){for(var s=t(a),u=r.f,c=n.f,l=0;l<s.length;l++){var h=s[l];e(i,h)||o&&e(o,h)||u(i,h,c(a,h))}}}function tr(){if(Pn)return Mn;Pn=1;var e=g(),t=ge(),n=/#|\.prototype\./,r=function(n,r){var u=a[i(n)];return u===s||u!==o&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},a=r.data={},o=r.NATIVE="N",s=r.POLYFILL="P";return Mn=r}function nr(){if(xn)return An;xn=1;var e=o(),t=ft().f,n=wt(),r=Qt(),i=tt(),a=er(),s=tr();return An=function(o,u){var c,l,h,f,d,v=o.target,p=o.global,g=o.stat;if(c=p?e:g?e[v]||i(v,{}):e[v]&&e[v].prototype)for(l in u){if(f=u[l],h=o.dontCallGetSet?(d=t(c,l))&&d.value:c[l],!s(p?l:v+(g?".":"#")+l,o.forced)&&void 0!==h){if(typeof f==typeof h)continue;a(f,h)}(o.sham||h&&h.sham)&&n(f,"sham",!0),r(c,l,f,o)}}}function rr(){if(Rn)return Ln;Rn=1;var e=he();return Ln=Array.isArray||function(t){return"Array"===e(t)}}function ir(){if(Dn)return On;Dn=1;var e=TypeError;return On=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function ar(){if(Wn)return Nn;Wn=1;var e=y(),t=Ct(),n=ce();return Nn=function(r,i,a){e?t.f(r,i,n(0,a)):r[i]=a}}function or(){if(jn)return Un;jn=1;var e={};return e[st()("toStringTag")]="z",Un="[object z]"===String(e)}function sr(){if(Fn)return Bn;Fn=1;var e=or(),t=ge(),n=he(),r=st()("toStringTag"),i=Object,a="Arguments"===n(function(){return arguments}());return Bn=e?n:function(e){var o,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(o=i(e),r))?s:a?n(o):"Object"===(u=n(o))&&t(o.callee)?"Arguments":u}}function ur(){if(qn)return Vn;qn=1;var e=le(),t=g(),n=ge(),r=sr(),i=me(),a=Vt(),o=function(){},s=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=e(u.exec),l=!u.test(o),h=function(e){if(!n(e))return!1;try{return s(o,[],e),!0}catch(e){return!1}},f=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,a(e))}catch(e){return!0}};return f.sham=!0,Vn=!s||t((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?f:h}function cr(){if(Hn)return zn;Hn=1;var e=rr(),t=ur(),n=ye(),r=st()("species"),i=Array;return zn=function(a){var o;return e(a)&&(o=a.constructor,(t(o)&&(o===i||e(o.prototype))||n(o)&&null===(o=o[r]))&&(o=void 0)),void 0===o?i:o}}function lr(){if(Yn)return Gn;Yn=1;var e=cr();return Gn=function(t,n){return new(e(t))(0===n?0:n)}}function hr(){if(Kn)return Qn;Kn=1;var e=g(),t=st(),n=be(),r=t("species");return Qn=function(t){return n>=51||!e((function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}}var fr,dr,vr,pr,gr,yr={};function mr(){if(dr)return fr;dr=1;var e=he(),t=le();return fr=function(n){if("Function"===e(n))return t(n)}}function _r(){if(pr)return vr;pr=1;var e=g();return vr=function(t,n){var r=[][t];return!!r&&e((function(){r.call(null,n||function(){return 1},1)}))}}var kr,br,Sr={},Cr={};function wr(){if(br)return kr;br=1;var e=sr(),t=String;return kr=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var Er,Ir,Tr,Mr,Pr,Ar,xr,Lr={};function Rr(){if(Ir)return Er;Ir=1;var e=kn(),t=bn();return Er=Object.keys||function(n){return e(n,t)}}function Or(){if(Tr)return Lr;Tr=1;var e=y(),t=bt(),n=Ct(),r=St(),i=pe(),a=Rr();return Lr.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),u=a(t),c=u.length,l=0;c>l;)n.f(e,o=u[l++],s[o]);return e},Lr}function Dr(){if(Pr)return Mr;Pr=1;var e=me();return Mr=e("document","documentElement")}function Nr(){if(xr)return Ar;xr=1;var e,t=St(),n=Or(),r=bn(),i=Ht(),a=Dr(),o=lt(),s=zt(),u="prototype",c="script",l=s("IE_PROTO"),h=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,i;v="undefined"!=typeof document?document.domain&&e?d(e):(n=o("iframe"),i="java"+c+":",n.style.display="none",a.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete v[u][r[s]];return v()};return i[l]=!0,Ar=Object.create||function(e,r){var i;return null!==e?(h[u]=t(e),i=new h,h[u]=null,i[l]=e):i=v(),void 0===r?i:n.f(i,r)}}var Wr,Ur,jr,Br,Fr,Vr={};function qr(){if(Ur)return Wr;Ur=1;var e=le();return Wr=e([].slice)}function zr(){if(jr)return Vr;jr=1;var e=he(),t=pe(),n=Sn().f,r=qr(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Vr.f=function(a){return i&&"Window"===e(a)?function(e){try{return n(e)}catch(e){return r(i)}}(a):n(t(a))},Vr}function Hr(){if(Fr)return Br;Fr=1;var e=Yt(),t=Ct();return Br=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)}}var Gr,Yr,Qr,Kr,$r,Jr,Xr,Zr,ei,ti,ni,ri,ii,ai,oi={};function si(){if(Gr)return oi;Gr=1;var e=st();return oi.f=e,oi}function ui(){if(Qr)return Yr;Qr=1;var e=o();return Yr=e}function ci(){if($r)return Kr;$r=1;var e=ui(),t=at(),n=si(),r=Ct().f;return Kr=function(i){var a=e.Symbol||(e.Symbol={});t(a,i)||r(a,i,{value:n.f(i)})}}function li(){if(Xr)return Jr;Xr=1;var e=_(),t=me(),n=st(),r=Qt();return Jr=function(){var i=t("Symbol"),a=i&&i.prototype,o=a&&a.valueOf,s=n("toPrimitive");a&&!a[s]&&r(a,s,(function(t){return e(o,this)}),{arity:1})}}function hi(){if(ei)return Zr;ei=1;var e=Ct().f,t=at(),n=st()("toStringTag");return Zr=function(r,i,a){r&&!a&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:i})}}function fi(){if(ni)return ti;ni=1;var e=mr(),t=Ie(),n=m(),r=e(e.bind);return ti=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},ti}function di(){if(ii)return ri;ii=1;var e=fi(),t=le(),n=fe(),r=it(),i=mn(),a=lr(),o=t([].push),s=function(t){var s=1===t,u=2===t,c=3===t,l=4===t,h=6===t,f=7===t,d=5===t||h;return function(v,p,g,y){for(var m,_,k=r(v),b=n(k),S=i(b),C=e(p,g),w=0,E=y||a,I=s?E(v,S):u||f?E(v,0):void 0;S>w;w++)if((d||w in b)&&(_=C(m=b[w],w,k),t))if(s)I[w]=_;else if(_)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:o(I,m)}else switch(t){case 4:return!1;case 7:o(I,m)}return h?-1:c||l?l:I}};return ri={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var vi,pi,gi,yi={};function mi(){if(pi)return vi;pi=1;var e=Se();return vi=e&&!!Symbol.for&&!!Symbol.keyFor}var _i,ki={};var bi,Si,Ci,wi,Ei,Ii={};function Ti(){if(Si)return bi;Si=1;var e=m(),t=Function.prototype,n=t.apply,r=t.call;return bi="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),bi}function Mi(){if(Ei)return Ii;Ei=1;var e=nr(),t=me(),n=Ti(),r=_(),i=le(),a=g(),o=ge(),s=we(),u=qr(),c=function(){if(wi)return Ci;wi=1;var e=le(),t=rr(),n=ge(),r=he(),i=wr(),a=e([].push);return Ci=function(e){if(n(e))return e;if(t(e)){for(var o=e.length,s=[],u=0;u<o;u++){var c=e[u];"string"==typeof c?a(s,c):"number"!=typeof c&&"Number"!==r(c)&&"String"!==r(c)||a(s,i(c))}var l=s.length,h=!0;return function(e,n){if(h)return h=!1,n;if(t(this))return n;for(var r=0;r<l;r++)if(s[r]===e)return n}}}}(),l=Se(),h=String,f=t("JSON","stringify"),d=i(/./.exec),v=i("".charAt),p=i("".charCodeAt),y=i("".replace),m=i(1..toString),k=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,C=!l||a((function(){var e=t("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))})),w=a((function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")})),E=function(e,t){var i=u(arguments),a=c(t);if(o(a)||void 0!==e&&!s(e))return i[1]=function(e,t){if(o(a)&&(t=r(a,this,h(e),t)),!s(t))return t},n(f,null,i)},I=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return d(b,e)&&!d(S,i)||d(S,e)&&!d(b,r)?"\\u"+m(p(e,0),16):e};return f&&e({target:"JSON",stat:!0,arity:3,forced:C||w},{stringify:function(e,t,r){var i=u(arguments),a=n(C?E:f,null,i);return w&&"string"==typeof a?y(a,k,I):a}}),Ii}var Pi,Ai,xi={};function Li(){return Ai||(Ai=1,function(){if(ai)return Cr;ai=1;var e=nr(),t=o(),n=_(),r=le(),i=et(),a=y(),s=Se(),u=g(),c=at(),l=_e(),h=St(),f=pe(),d=ct(),v=wr(),p=ce(),m=Nr(),k=Rr(),b=Sn(),S=zr(),C=Xn(),w=ft(),E=Ct(),I=Or(),T=ue(),M=Qt(),P=Hr(),A=rt(),x=zt(),L=Ht(),R=ot(),O=st(),D=si(),N=ci(),W=li(),U=hi(),j=Gt(),B=di().forEach,F=x("hidden"),V="Symbol",q="prototype",z=j.set,H=j.getterFor(V),G=Object[q],Y=t.Symbol,Q=Y&&Y[q],K=t.RangeError,$=t.TypeError,J=t.QObject,X=w.f,Z=E.f,ee=S.f,te=T.f,ne=r([].push),re=A("symbols"),ie=A("op-symbols"),ae=A("wks"),oe=!J||!J[q]||!J[q].findChild,se=function(e,t,n){var r=X(G,t);r&&delete G[t],Z(e,t,n),r&&e!==G&&Z(G,t,r)},he=a&&u((function(){return 7!==m(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?se:Z,fe=function(e,t){var n=re[e]=m(Q);return z(n,{type:V,tag:e,description:t}),a||(n.description=t),n},de=function(e,t,n){e===G&&de(ie,t,n),h(e);var r=d(t);return h(n),c(re,r)?(n.enumerable?(c(e,F)&&e[F][r]&&(e[F][r]=!1),n=m(n,{enumerable:p(0,!1)})):(c(e,F)||Z(e,F,p(1,m(null))),e[F][r]=!0),he(e,r,n)):Z(e,r,n)},ve=function(e,t){h(e);var r=f(t),i=k(r).concat(ke(r));return B(i,(function(t){a&&!n(ge,r,t)||de(e,t,r[t])})),e},ge=function(e){var t=d(e),r=n(te,this,t);return!(this===G&&c(re,t)&&!c(ie,t))&&(!(r||!c(this,t)||!c(re,t)||c(this,F)&&this[F][t])||r)},ye=function(e,t){var n=f(e),r=d(t);if(n!==G||!c(re,r)||c(ie,r)){var i=X(n,r);return!i||!c(re,r)||c(n,F)&&n[F][r]||(i.enumerable=!0),i}},me=function(e){var t=ee(f(e)),n=[];return B(t,(function(e){c(re,e)||c(L,e)||ne(n,e)})),n},ke=function(e){var t=e===G,n=ee(t?ie:f(e)),r=[];return B(n,(function(e){!c(re,e)||t&&!c(G,e)||ne(r,re[e])})),r};s||(Y=function(){if(l(Q,this))throw new $("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,r=R(e),i=function(e){var a=void 0===this?t:this;a===G&&n(i,ie,e),c(a,F)&&c(a[F],r)&&(a[F][r]=!1);var o=p(1,e);try{he(a,r,o)}catch(e){if(!(e instanceof K))throw e;se(a,r,o)}};return a&&oe&&he(G,r,{configurable:!0,set:i}),fe(r,e)},M(Q=Y[q],"toString",(function(){return H(this).tag})),M(Y,"withoutSetter",(function(e){return fe(R(e),e)})),T.f=ge,E.f=de,I.f=ve,w.f=ye,b.f=S.f=me,C.f=ke,D.f=function(e){return fe(O(e),e)},a&&(P(Q,"description",{configurable:!0,get:function(){return H(this).description}}),i||M(G,"propertyIsEnumerable",ge,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:Y}),B(k(ae),(function(e){N(e)})),e({target:V,stat:!0,forced:!s},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),e({target:"Object",stat:!0,forced:!s,sham:!a},{create:function(e,t){return void 0===t?m(e):ve(m(e),t)},defineProperty:de,defineProperties:ve,getOwnPropertyDescriptor:ye}),e({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:me}),W(),U(Y,V),L[F]=!0}(),function(){if(gi)return yi;gi=1;var e=nr(),t=me(),n=at(),r=wr(),i=rt(),a=mi(),o=i("string-to-symbol-registry"),s=i("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!a},{for:function(e){var i=r(e);if(n(o,i))return o[i];var a=t("Symbol")(i);return o[i]=a,s[a]=i,a}})}(),function(){if(_i)return ki;_i=1;var e=nr(),t=at(),n=we(),r=Ee(),i=rt(),a=mi(),o=i("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!a},{keyFor:function(e){if(!n(e))throw new TypeError(r(e)+" is not a symbol");if(t(o,e))return o[e]}})}(),Mi(),function(){if(Pi)return xi;Pi=1;var e=nr(),t=Se(),n=g(),r=Xn(),i=it();e({target:"Object",stat:!0,forced:!t||n((function(){r.f(1)}))},{getOwnPropertySymbols:function(e){var t=r.f;return t?t(i(e)):[]}})}()),Sr}var Ri,Oi,Di,Ni,Wi,Ui,ji,Bi,Fi,Vi,qi,zi,Hi,Gi,Yi,Qi,Ki,$i,Ji,Xi,Zi,ea,ta,na,ra,ia,aa,oa,sa,ua,ca,la,ha,fa,da,va,pa,ga,ya,ma,_a,ka,ba,Sa,Ca={},wa={};function Ea(){if(Oi)return Ri;Oi=1;var e=o(),t=ke(),n=he(),r=function(e){return t.slice(0,e.length)===e};return Ri=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function Ia(){if(Ni)return Di;Ni=1;var e=Ea();return Di="NODE"===e}function Ta(){if(Bi)return ji;Bi=1;var e=ye();return ji=function(t){return e(t)||null===t}}function Ma(){if(Vi)return Fi;Vi=1;var e=Ta(),t=String,n=TypeError;return Fi=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function Pa(){if(zi)return qi;zi=1;var e=function(){if(Ui)return Wi;Ui=1;var e=le(),t=Ie();return Wi=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}(),t=ye(),n=ve(),r=Ma();return qi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,a=!1,o={};try{(i=e(Object.prototype,"__proto__","set"))(o,[]),a=o instanceof Array}catch(e){}return function(e,o){return n(e),r(o),t(e)?(a?i(e,o):e.__proto__=o,e):e}}():void 0)}function Aa(){if(Gi)return Hi;Gi=1;var e=me(),t=Hr(),n=st(),r=y(),i=n("species");return Hi=function(n){var a=e(n);r&&a&&!a[i]&&t(a,i,{configurable:!0,get:function(){return this}})}}function xa(){if(Qi)return Yi;Qi=1;var e=_e(),t=TypeError;return Yi=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")}}function La(){if($i)return Ki;$i=1;var e=ur(),t=Ee(),n=TypeError;return Ki=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")}}function Ra(){if(Xi)return Ji;Xi=1;var e=St(),t=La(),n=de(),r=st()("species");return Ji=function(i,a){var o,s=e(i).constructor;return void 0===s||n(o=e(s)[r])?a:t(o)}}function Oa(){if(ea)return Zi;ea=1;var e=TypeError;return Zi=function(t,n){if(t<n)throw new e("Not enough arguments");return t}}function Da(){if(na)return ta;na=1;var e=ke();return ta=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)}function Na(){if(ia)return ra;ia=1;var e,t,n,r,i=o(),a=Ti(),s=fi(),u=ge(),c=at(),l=g(),h=Dr(),f=qr(),d=lt(),v=Oa(),p=Da(),y=Ia(),m=i.setImmediate,_=i.clearImmediate,k=i.process,b=i.Dispatch,S=i.Function,C=i.MessageChannel,w=i.String,E=0,I={},T="onreadystatechange";l((function(){e=i.location}));var M=function(e){if(c(I,e)){var t=I[e];delete I[e],t()}},P=function(e){return function(){M(e)}},A=function(e){M(e.data)},x=function(t){i.postMessage(w(t),e.protocol+"//"+e.host)};return m&&_||(m=function(e){v(arguments.length,1);var n=u(e)?e:S(e),r=f(arguments,1);return I[++E]=function(){a(n,void 0,r)},t(E),E},_=function(e){delete I[e]},y?t=function(e){k.nextTick(P(e))}:b&&b.now?t=function(e){b.now(P(e))}:C&&!p?(r=(n=new C).port2,n.port1.onmessage=A,t=s(r.postMessage,r)):i.addEventListener&&u(i.postMessage)&&!i.importScripts&&e&&"file:"!==e.protocol&&!l(x)?(t=x,i.addEventListener("message",A,!1)):t=T in d("script")?function(e){h.appendChild(d("script"))[T]=function(){h.removeChild(this),M(e)}}:function(e){setTimeout(P(e),0)}),ra={set:m,clear:_}}function Wa(){if(oa)return aa;oa=1;var e=o(),t=y(),n=Object.getOwnPropertyDescriptor;return aa=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value}}function Ua(){if(ua)return sa;ua=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},sa=e}function ja(){if(va)return da;va=1;var e,t,n,r,i,a=o(),s=Wa(),u=fi(),c=Na().set,l=Ua(),h=Da(),f=function(){if(la)return ca;la=1;var e=ke();return ca=/ipad|iphone|ipod/i.test(e)&&"undefined"!=typeof Pebble}(),d=function(){if(fa)return ha;fa=1;var e=ke();return ha=/web0s(?!.*chrome)/i.test(e)}(),v=Ia(),p=a.MutationObserver||a.WebKitMutationObserver,g=a.document,y=a.process,m=a.Promise,_=s("queueMicrotask");if(!_){var k=new l,b=function(){var t,n;for(v&&(t=y.domain)&&t.exit();n=k.get();)try{n()}catch(t){throw k.head&&e(),t}t&&t.enter()};h||v||d||!p||!g?!f&&m&&m.resolve?((r=m.resolve(void 0)).constructor=m,i=u(r.then,r),e=function(){i(b)}):v?e=function(){y.nextTick(b)}:(c=u(c,a),e=function(){c(b)}):(t=!0,n=g.createTextNode(""),new p(b).observe(n,{characterData:!0}),e=function(){n.data=t=!t}),_=function(t){k.head||e(),k.add(t)}}return da=_}function Ba(){return ga||(ga=1,pa=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}),pa}function Fa(){return ma?ya:(ma=1,ya=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}})}function Va(){if(ka)return _a;ka=1;var e=o();return _a=e.Promise}function qa(){if(Sa)return ba;Sa=1;var e=o(),t=Va(),n=ge(),r=tr(),i=Vt(),a=st(),s=Ea(),u=et(),c=be(),l=t&&t.prototype,h=a("species"),f=!1,d=n(e.PromiseRejectionEvent),v=r("Promise",(function(){var e=i(t),n=e!==String(t);if(!n&&66===c)return!0;if(u&&(!l.catch||!l.finally))return!0;if(!c||c<51||!/native code/.test(e)){var r=new t((function(e){e(1)})),a=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=a,!(f=r.then((function(){}))instanceof a))return!0}return!(n||"BROWSER"!==s&&"DENO"!==s||d)}));return ba={CONSTRUCTOR:v,REJECTION_EVENT:d,SUBCLASSING:f}}var za,Ha,Ga={};function Ya(){if(za)return Ga;za=1;var e=Ie(),t=TypeError,n=function(n){var r,i;this.promise=new n((function(e,n){if(void 0!==r||void 0!==i)throw new t("Bad Promise constructor");r=e,i=n})),this.resolve=e(r),this.reject=e(i)};return Ga.f=function(e){return new n(e)},Ga}var Qa,Ka,$a,Ja,Xa,Za,eo,to,no,ro,io,ao,oo,so,uo,co,lo,ho={};function fo(){return Ka?Qa:(Ka=1,Qa={})}function vo(){if(Ja)return $a;Ja=1;var e=st(),t=fo(),n=e("iterator"),r=Array.prototype;return $a=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function po(){if(Za)return Xa;Za=1;var e=sr(),t=Te(),n=de(),r=fo(),i=st()("iterator");return Xa=function(a){if(!n(a))return t(a,i)||t(a,"@@iterator")||r[e(a)]}}function go(){if(to)return eo;to=1;var e=_(),t=Ie(),n=St(),r=Ee(),i=po(),a=TypeError;return eo=function(o,s){var u=arguments.length<2?i(o):s;if(t(u))return n(e(u,o));throw new a(r(o)+" is not iterable")},eo}function yo(){if(ro)return no;ro=1;var e=_(),t=St(),n=Te();return no=function(r,i,a){var o,s;t(r);try{if(!(o=n(r,"return"))){if("throw"===i)throw a;return a}o=e(o,r)}catch(e){s=!0,o=e}if("throw"===i)throw a;if(s)throw o;return t(o),a}}function mo(){if(ao)return io;ao=1;var e=fi(),t=_(),n=St(),r=Ee(),i=vo(),a=mn(),o=_e(),s=go(),u=po(),c=yo(),l=TypeError,h=function(e,t){this.stopped=e,this.result=t},f=h.prototype;return io=function(d,v,p){var g,y,m,_,k,b,S,C=p&&p.that,w=!(!p||!p.AS_ENTRIES),E=!(!p||!p.IS_RECORD),I=!(!p||!p.IS_ITERATOR),T=!(!p||!p.INTERRUPTED),M=e(v,C),P=function(e){return g&&c(g,"normal",e),new h(!0,e)},A=function(e){return w?(n(e),T?M(e[0],e[1],P):M(e[0],e[1])):T?M(e,P):M(e)};if(E)g=d.iterator;else if(I)g=d;else{if(!(y=u(d)))throw new l(r(d)+" is not iterable");if(i(y)){for(m=0,_=a(d);_>m;m++)if((k=A(d[m]))&&o(f,k))return k;return new h(!1)}g=s(d,y)}for(b=E?d.next:g.next;!(S=t(b,g)).done;){try{k=A(S.value)}catch(e){c(g,"throw",e)}if("object"==typeof k&&k&&o(f,k))return k}return new h(!1)}}function _o(){if(so)return oo;so=1;var e=st()("iterator"),t=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){t=!0}};r[e]=function(){return this},Array.from(r,(function(){throw 2}))}catch(e){}return oo=function(n,r){try{if(!r&&!t)return!1}catch(e){return!1}var i=!1;try{var a={};a[e]=function(){return{next:function(){return{done:i=!0}}}},n(a)}catch(e){}return i}}function ko(){if(co)return uo;co=1;var e=Va(),t=_o(),n=qa().CONSTRUCTOR;return uo=n||!t((function(t){e.all(t).then(void 0,(function(){}))}))}var bo,So={};var Co,wo={};var Eo,Io={};var To,Mo,Po,Ao,xo={};function Lo(){if(Mo)return To;Mo=1;var e=St(),t=ye(),n=Ya();return To=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var a=n.f(r);return(0,a.resolve)(i),a.promise}}function Ro(){return Ao||(Ao=1,function(){if(Ha)return wa;Ha=1;var e,t,n,r=nr(),i=et(),a=Ia(),s=o(),u=_(),c=Qt(),l=Pa(),h=hi(),f=Aa(),d=Ie(),v=ge(),p=ye(),g=xa(),y=Ra(),m=Na().set,k=ja(),b=Ba(),S=Fa(),C=Ua(),w=Gt(),E=Va(),I=qa(),T=Ya(),M="Promise",P=I.CONSTRUCTOR,A=I.REJECTION_EVENT,x=I.SUBCLASSING,L=w.getterFor(M),R=w.set,O=E&&E.prototype,D=E,N=O,W=s.TypeError,U=s.document,j=s.process,B=T.f,F=B,V=!!(U&&U.createEvent&&s.dispatchEvent),q="unhandledrejection",z=function(e){var t;return!(!p(e)||!v(t=e.then))&&t},H=function(e,t){var n,r,i,a=t.value,o=1===t.state,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,h=e.domain;try{s?(o||(2===t.rejection&&$(t),t.rejection=1),!0===s?n=a:(h&&h.enter(),n=s(a),h&&(h.exit(),i=!0)),n===e.promise?l(new W("Promise-chain cycle")):(r=z(n))?u(r,n,c,l):c(n)):l(a)}catch(e){h&&!i&&h.exit(),l(e)}},G=function(e,t){e.notified||(e.notified=!0,k((function(){for(var n,r=e.reactions;n=r.get();)H(n,e);e.notified=!1,t&&!e.rejection&&Q(e)})))},Y=function(e,t,n){var r,i;V?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!A&&(i=s["on"+e])?i(r):e===q&&b("Unhandled promise rejection",n)},Q=function(e){u(m,s,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=S((function(){a?j.emit("unhandledRejection",r,n):Y(q,n,r)})),e.rejection=a||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},$=function(e){u(m,s,(function(){var t=e.facade;a?j.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(r){e(t,r,n)}},X=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,G(e,!0))},Z=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new W("Promise can't be resolved itself");var r=z(t);r?k((function(){var n={done:!1};try{u(r,t,J(Z,n,e),J(X,n,e))}catch(t){X(n,t,e)}})):(e.value=t,e.state=1,G(e,!1))}catch(t){X({done:!1},t,e)}}};if(P&&(N=(D=function(t){g(this,N),d(t),u(e,this);var n=L(this);try{t(J(Z,n),J(X,n))}catch(e){X(n,e)}}).prototype,(e=function(e){R(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=c(N,"then",(function(e,t){var n=L(this),r=B(y(this,D));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=a?j.domain:void 0,0===n.state?n.reactions.add(r):k((function(){H(r,n)})),r.promise})),t=function(){var t=new e,n=L(t);this.promise=t,this.resolve=J(Z,n),this.reject=J(X,n)},T.f=B=function(e){return e===D||void 0===e?new t(e):F(e)},!i&&v(E)&&O!==Object.prototype)){n=O.then,x||c(O,"then",(function(e,t){var r=this;return new D((function(e,t){u(n,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete O.constructor}catch(e){}l&&l(O,N)}r({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:D}),h(D,M,!1,!0),f(M)}(),function(){if(lo)return ho;lo=1;var e=nr(),t=_(),n=Ie(),r=Ya(),i=Fa(),a=mo();e({target:"Promise",stat:!0,forced:ko()},{all:function(e){var o=this,s=r.f(o),u=s.resolve,c=s.reject,l=i((function(){var r=n(o.resolve),i=[],s=0,l=1;a(e,(function(e){var n=s++,a=!1;l++,t(r,o,e).then((function(e){a||(a=!0,i[n]=e,--l||u(i))}),c)})),--l||u(i)}));return l.error&&c(l.value),s.promise}})}(),function(){if(bo)return So;bo=1;var e=nr(),t=et(),n=qa().CONSTRUCTOR,r=Va(),i=me(),a=ge(),o=Qt(),s=r&&r.prototype;if(e({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&a(r)){var u=i("Promise").prototype.catch;s.catch!==u&&o(s,"catch",u,{unsafe:!0})}}(),function(){if(Co)return wo;Co=1;var e=nr(),t=_(),n=Ie(),r=Ya(),i=Fa(),a=mo();e({target:"Promise",stat:!0,forced:ko()},{race:function(e){var o=this,s=r.f(o),u=s.reject,c=i((function(){var r=n(o.resolve);a(e,(function(e){t(r,o,e).then(s.resolve,u)}))}));return c.error&&u(c.value),s.promise}})}(),function(){if(Eo)return Io;Eo=1;var e=nr(),t=Ya();e({target:"Promise",stat:!0,forced:qa().CONSTRUCTOR},{reject:function(e){var n=t.f(this);return(0,n.reject)(e),n.promise}})}(),function(){if(Po)return xo;Po=1;var e=nr(),t=me(),n=et(),r=Va(),i=qa().CONSTRUCTOR,a=Lo(),o=t("Promise"),s=n&&!i;e({target:"Promise",stat:!0,forced:n||i},{resolve:function(e){return a(s&&this===o?r:this,e)}})}()),Ca}var Oo,Do,No,Wo={};function Uo(){if(No)return Wo;No=1;var e=or(),t=Qt(),n=function(){if(Do)return Oo;Do=1;var e=or(),t=sr();return Oo=e?{}.toString:function(){return"[object "+t(this)+"]"}}();return e||t(Object.prototype,"toString",n,{unsafe:!0}),Wo}var jo,Bo={};var Fo,Vo,qo,zo,Ho,Go,Yo,Qo,Ko,$o,Jo,Xo,Zo,es,ts,ns,rs;function is(){if(qo)return Vo;qo=1;var e=st(),t=Nr(),n=Ct().f,r=e("unscopables"),i=Array.prototype;return void 0===i[r]&&n(i,r,{configurable:!0,value:t(null)}),Vo=function(e){i[r][e]=!0}}function as(){if(Ho)return zo;Ho=1;var e=g();return zo=!e((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))}function os(){if(Yo)return Go;Yo=1;var e=at(),t=ge(),n=it(),r=zt(),i=as(),a=r("IE_PROTO"),o=Object,s=o.prototype;return Go=i?o.getPrototypeOf:function(r){var i=n(r);if(e(i,a))return i[a];var u=i.constructor;return t(u)&&i instanceof u?u.prototype:i instanceof o?s:null}}function ss(){if(Ko)return Qo;Ko=1;var e,t,n,r=g(),i=ge(),a=ye(),o=Nr(),s=os(),u=Qt(),c=st(),l=et(),h=c("iterator"),f=!1;return[].keys&&("next"in(n=[].keys())?(t=s(s(n)))!==Object.prototype&&(e=t):f=!0),!a(e)||r((function(){var t={};return e[h].call(t)!==t}))?e={}:l&&(e=o(e)),i(e[h])||u(e,h,(function(){return this})),Qo={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function us(){if(Jo)return $o;Jo=1;var e=ss().IteratorPrototype,t=Nr(),n=ce(),r=hi(),i=fo(),a=function(){return this};return $o=function(o,s,u,c){var l=s+" Iterator";return o.prototype=t(e,{next:n(+!c,u)}),r(o,l,!1,!0),i[l]=a,o}}function cs(){if(Zo)return Xo;Zo=1;var e=nr(),t=_(),n=et(),r=Ft(),i=ge(),a=us(),o=os(),s=Pa(),u=hi(),c=wt(),l=Qt(),h=st(),f=fo(),d=ss(),v=r.PROPER,p=r.CONFIGURABLE,g=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,m=h("iterator"),k="keys",b="values",S="entries",C=function(){return this};return Xo=function(r,h,d,_,w,E,I){a(d,h,_);var T,M,P,A=function(e){if(e===w&&D)return D;if(!y&&e&&e in R)return R[e];switch(e){case k:case b:case S:return function(){return new d(this,e)}}return function(){return new d(this)}},x=h+" Iterator",L=!1,R=r.prototype,O=R[m]||R["@@iterator"]||w&&R[w],D=!y&&O||A(w),N="Array"===h&&R.entries||O;if(N&&(T=o(N.call(new r)))!==Object.prototype&&T.next&&(n||o(T)===g||(s?s(T,g):i(T[m])||l(T,m,C)),u(T,x,!0,!0),n&&(f[x]=C)),v&&w===b&&O&&O.name!==b&&(!n&&p?c(R,"name",b):(L=!0,D=function(){return t(O,this)})),w)if(M={values:A(b),keys:E?D:A(k),entries:A(S)},I)for(P in M)(y||L||!(P in R))&&l(R,P,M[P]);else e({target:h,proto:!0,forced:y||L},M);return n&&!I||R[m]===D||l(R,m,D,{name:w}),f[h]=D,M}}function ls(){return ts?es:(ts=1,es=function(e,t){return{value:e,done:t}})}function hs(){if(rs)return ns;rs=1;var e=pe(),t=is(),n=fo(),r=Gt(),i=Ct().f,a=cs(),o=ls(),s=et(),u=y(),c="Array Iterator",l=r.set,h=r.getterFor(c);ns=a(Array,"Array",(function(t,n){l(this,{type:c,target:e(t),index:0,kind:n})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,o(void 0,!0);switch(e.kind){case"keys":return o(n,!1);case"values":return o(t[n],!1)}return o([n,t[n]],!1)}),"values");var f=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{i(f,"name",{value:"values"})}catch(e){}return ns}var fs,ds,vs,ps,gs,ys={};function ms(){if(gs)return ys;gs=1;var e=o(),t=ds?fs:(ds=1,fs={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}),n=function(){if(ps)return vs;ps=1;var e=lt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return vs=t===Object.prototype?void 0:t}(),r=hs(),i=wt(),a=hi(),s=st()("iterator"),u=r.values,c=function(e,n){if(e){if(e[s]!==u)try{i(e,s,u)}catch(t){e[s]=u}if(a(e,n,!0),t[n])for(var o in r)if(e[o]!==r[o])try{i(e,o,r[o])}catch(t){e[o]=r[o]}}};for(var l in t)c(e[l]&&e[l].prototype,l);return c(n,"DOMTokenList"),ys}var _s,ks,bs,Ss={};function Cs(){if(ks)return _s;ks=1;var e=le(),t=pn(),n=wr(),r=ve(),i=e("".charAt),a=e("".charCodeAt),o=e("".slice),s=function(e){return function(s,u){var c,l,h=n(r(s)),f=t(u),d=h.length;return f<0||f>=d?e?"":void 0:(c=a(h,f))<55296||c>56319||f+1===d||(l=a(h,f+1))<56320||l>57343?e?i(h,f):c:e?o(h,f,f+2):l-56320+(c-55296<<10)+65536}};return _s={codeAt:s(!1),charAt:s(!0)}}function ws(){if(bs)return Ss;bs=1;var e=Cs().charAt,t=wr(),n=Gt(),r=cs(),i=ls(),a="String Iterator",o=n.set,s=n.getterFor(a);return r(String,"String",(function(e){o(this,{type:a,string:t(e),index:0})}),(function(){var t,n=s(this),r=n.string,a=n.index;return a>=r.length?i(void 0,!0):(t=e(r,a),n.index+=t.length,i(t,!1))})),Ss}var Es;var Is,Ts={};var Ms;var Ps,As,xs,Ls={};function Rs(){if(xs)return Ls;xs=1;var e=nr(),t=function(){if(As)return Ps;As=1;var e=di().forEach,t=_r()("forEach");return Ps=t?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)},Ps}();return e({target:"Array",proto:!0,forced:[].forEach!==t},{forEach:t}),Ls}var Os,Ds,Ns,Ws,Us,js,Bs,Fs,Vs,qs,zs,Hs,Gs,Ys,Qs,Ks,$s,Js={};function Xs(){if(Ds)return Os;Ds=1;var e=ge(),t=ye(),n=Pa();return Os=function(r,i,a){var o,s;return n&&e(o=i.constructor)&&o!==a&&t(s=o.prototype)&&s!==a.prototype&&n(r,s),r}}function Zs(){if(Ws)return Ns;Ws=1;var e=ye(),t=he(),n=st()("match");return Ns=function(r){var i;return e(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===t(r))}}function eu(){if(js)return Us;js=1;var e=St();return Us=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function tu(){if(Fs)return Bs;Fs=1;var e=_(),t=at(),n=_e(),r=eu(),i=RegExp.prototype;return Bs=function(a){var o=a.flags;return void 0!==o||"flags"in i||t(a,"flags")||!n(i,a)?o:e(r,a)}}function nu(){if(qs)return Vs;qs=1;var e=g(),t=o().RegExp,n=e((function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),r=n||e((function(){return!t("a","y").sticky})),i=n||e((function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));return Vs={BROKEN_CARET:i,MISSED_STICKY:r,UNSUPPORTED_Y:n}}function ru(){if(Hs)return zs;Hs=1;var e=Ct().f;return zs=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function iu(){if(Ys)return Gs;Ys=1;var e=g(),t=o().RegExp;return Gs=e((function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))}function au(){if(Ks)return Qs;Ks=1;var e=g(),t=o().RegExp;return Qs=e((function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))}function ou(){if($s)return Js;$s=1;var e=y(),t=o(),n=le(),r=tr(),i=Xs(),a=wt(),s=Nr(),u=Sn().f,c=_e(),l=Zs(),h=wr(),f=tu(),d=nu(),v=ru(),p=Qt(),m=g(),_=at(),k=Gt().enforce,b=Aa(),S=st(),C=iu(),w=au(),E=S("match"),I=t.RegExp,T=I.prototype,M=t.SyntaxError,P=n(T.exec),A=n("".charAt),x=n("".replace),L=n("".indexOf),R=n("".slice),O=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,N=/a/g,W=new I(D)!==D,U=d.MISSED_STICKY,j=d.UNSUPPORTED_Y,B=e&&(!W||U||C||w||m((function(){return N[E]=!1,I(D)!==D||I(N)===N||"/a/i"!==String(I(D,"i"))})));if(r("RegExp",B)){for(var F=function(e,t){var n,r,o,u,d,v,p=c(T,this),g=l(e),y=void 0===t,m=[],b=e;if(!p&&g&&y&&e.constructor===F)return e;if((g||c(T,e))&&(e=e.source,y&&(t=f(b))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),b=e,C&&"dotAll"in D&&(r=!!t&&L(t,"s")>-1)&&(t=x(t,/s/g,"")),n=t,U&&"sticky"in D&&(o=!!t&&L(t,"y")>-1)&&j&&(t=x(t,/y/g,"")),w&&(u=function(e){for(var t,n=e.length,r=0,i="",a=[],o=s(null),u=!1,c=!1,l=0,h="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:if(i+=t,"?:"===R(e,r+1,r+3))continue;P(O,R(e,r+1))&&(r+=2,c=!0),l++;continue;case">"===t&&c:if(""===h||_(o,h))throw new M("Invalid capture group name");o[h]=!0,a[a.length]=[h,l],c=!1,h="";continue}c?h+=t:i+=t}return[i,a]}(e),e=u[0],m=u[1]),d=i(I(e,t),p?this:T,F),(r||o||m.length)&&(v=k(d),r&&(v.dotAll=!0,v.raw=F(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=A(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+A(e,++r);return i}(e),n)),o&&(v.sticky=!0),m.length&&(v.groups=m)),e!==b)try{a(d,"source",""===b?"(?:)":b)}catch(e){}return d},V=u(I),q=0;V.length>q;)v(F,I,V[q++]);T.constructor=F,F.prototype=T,p(t,"RegExp",F,{constructor:!0})}return b("RegExp"),Js}var su,uu,cu,lu={};function hu(){if(uu)return su;uu=1;var e,t,n=_(),r=le(),i=wr(),a=eu(),o=nu(),s=rt(),u=Nr(),c=Gt().get,l=iu(),h=au(),f=s("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,p=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),k=(t=/b*/g,n(d,e=/a/,"a"),n(d,t,"a"),0!==e.lastIndex||0!==t.lastIndex),b=o.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];return(k||S||b||l||h)&&(v=function(e){var t,r,o,s,l,h,_,C=this,w=c(C),E=i(e),I=w.raw;if(I)return I.lastIndex=C.lastIndex,t=n(v,I,E),C.lastIndex=I.lastIndex,t;var T=w.groups,M=b&&C.sticky,P=n(a,C),A=C.source,x=0,L=E;if(M&&(P=y(P,"y",""),-1===g(P,"g")&&(P+="g"),L=m(E,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==p(E,C.lastIndex-1))&&(A="(?: "+A+")",L=" "+L,x++),r=new RegExp("^(?:"+A+")",P)),S&&(r=new RegExp("^"+A+"$(?!\\s)",P)),k&&(o=C.lastIndex),s=n(d,M?r:C,L),M?s?(s.input=m(s.input,x),s[0]=m(s[0],x),s.index=C.lastIndex,C.lastIndex+=s[0].length):C.lastIndex=0:k&&s&&(C.lastIndex=C.global?s.index+s[0].length:o),S&&s&&s.length>1&&n(f,s[0],r,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&T)for(s.groups=h=u(null),l=0;l<T.length;l++)h[(_=T[l])[0]]=s[_[1]];return s}),su=v}function fu(){if(cu)return lu;cu=1;var e=nr(),t=hu();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),lu}var du,vu={};var pu,gu={};var yu,mu,_u,ku,bu,Su,Cu,wu,Eu,Iu={};function Tu(){if(mu)return yu;mu=1,fu();var e=_(),t=Qt(),n=hu(),r=g(),i=st(),a=wt(),o=i("species"),s=RegExp.prototype;return yu=function(u,c,l,h){var f=i(u),d=!r((function(){var e={};return e[f]=function(){return 7},7!==""[u](e)})),v=d&&!r((function(){var e=!1,t=/a/;return"split"===u&&((t={}).constructor={},t.constructor[o]=function(){return t},t.flags="",t[f]=/./[f]),t.exec=function(){return e=!0,null},t[f](""),!e}));if(!d||!v||l){var p=/./[f],g=c(f,""[u],(function(t,r,i,a,o){var u=r.exec;return u===n||u===s.exec?d&&!o?{done:!0,value:e(p,r,i,a)}:{done:!0,value:e(t,i,r,a)}:{done:!1}}));t(String.prototype,u,g[0]),t(s,f,g[1])}h&&a(s[f],"sham",!0)}}function Mu(){if(ku)return _u;ku=1;var e=Cs().charAt;return _u=function(t,n,r){return n+(r?e(t,n).length:1)}}function Pu(){if(Su)return bu;Su=1;var e=le(),t=it(),n=Math.floor,r=e("".charAt),i=e("".replace),a=e("".slice),o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return bu=function(e,u,c,l,h,f){var d=c+e.length,v=l.length,p=s;return void 0!==h&&(h=t(h),p=o),i(f,p,(function(t,i){var o;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return a(u,0,c);case"'":return a(u,d);case"<":o=h[a(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>v){var f=n(s/10);return 0===f?t:f<=v?void 0===l[f-1]?r(i,1):l[f-1]+r(i,1):t}o=l[s-1]}return void 0===o?"":o}))}}function Au(){if(wu)return Cu;wu=1;var e=_(),t=St(),n=ge(),r=he(),i=hu(),a=TypeError;return Cu=function(o,s){var u=o.exec;if(n(u)){var c=e(u,o,s);return null!==c&&t(c),c}if("RegExp"===r(o))return e(i,o,s);throw new a("RegExp#exec called on incompatible receiver")}}var xu,Lu={};var Ru,Ou={};var Du,Nu,Wu,Uu={};function ju(){if(Nu)return Du;Nu=1;var e=le(),t=Ie(),n=ye(),r=at(),i=qr(),a=m(),o=Function,s=e([].concat),u=e([].join),c={};return Du=a?o.bind:function(e){var a=t(this),l=a.prototype,h=i(arguments,1),f=function(){var t=s(h,i(arguments));return this instanceof f?function(e,t,n){if(!r(c,t)){for(var i=[],a=0;a<t;a++)i[a]="a["+a+"]";c[t]=o("C,a","return new C("+u(i,",")+")")}return c[t](e,n)}(a,t.length,t):a.apply(e,t)};return n(l)&&(f.prototype=l),f},Du}var Bu,Fu={};var Vu,qu,zu,Hu={};function Gu(){if(qu)return Vu;qu=1;var e=y(),t=le(),n=_(),r=g(),i=Rr(),a=Xn(),o=ue(),s=it(),u=fe(),c=Object.assign,l=Object.defineProperty,h=t([].concat);return Vu=!c||r((function(){if(e&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),a="abcdefghijklmnopqrst";return t[r]=7,a.split("").forEach((function(e){n[e]=e})),7!==c({},t)[r]||i(c({},n)).join("")!==a}))?function(t,r){for(var c=s(t),l=arguments.length,f=1,d=a.f,v=o.f;l>f;)for(var p,g=u(arguments[f++]),y=d?h(i(g),d(g)):i(g),m=y.length,_=0;m>_;)p=y[_++],e&&!n(v,g,p)||(c[p]=g[p]);return c}:c,Vu}var Yu,Qu={};var Ku,$u={};var Ju,Xu={};var Zu,ec={};var tc,nc,rc,ic,ac,oc,sc,uc={};function cc(){if(nc)return tc;nc=1;var e=le();return tc=e(1..valueOf)}function lc(){return ic?rc:(ic=1,rc="\t\n\v\f\r \u2028\u2029\ufeff")}function hc(){if(oc)return ac;oc=1;var e=le(),t=ve(),n=wr(),r=lc(),i=e("".replace),a=RegExp("^["+r+"]+"),o=RegExp("(^|[^"+r+"])["+r+"]+$"),s=function(e){return function(r){var s=n(t(r));return 1&e&&(s=i(s,a,"")),2&e&&(s=i(s,o,"$1")),s}};return ac={start:s(1),end:s(2),trim:s(3)}}function fc(){if(sc)return uc;sc=