@volcengine/veplayer-plugin 2.0.0-rc.0 → 2.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/esm/index.development.js +45768 -41842
- package/esm/index.production.js +5 -4
- package/esm/veplayer.plugin.flv.development.js +1988 -8535
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +3548 -10507
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +87 -4
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +159 -43
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.shaka.development.js +86 -3
- package/esm/veplayer.plugin.shaka.production.js +1 -1
- package/esm/veplayer.plugin.xgvideo.development.js +226 -225
- package/esm/veplayer.plugin.xgvideo.production.js +1 -1
- package/package.json +2 -1
- package/umd/index.development.js +35422 -31496
- package/umd/index.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +2034 -8580
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +3654 -10614
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +87 -4
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +180 -65
- package/umd/veplayer.plugin.rtm.production.js +1 -1
- package/umd/veplayer.plugin.shaka.development.js +86 -3
- package/umd/veplayer.plugin.shaka.production.js +1 -1
- package/umd/veplayer.plugin.xgvideo.development.js +26 -26
- package/umd/veplayer.plugin.xgvideo.production.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!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).__VEPLAYER_PLUGIN_RTM__=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 r=function(e){return e&&e.Math==Math&&e},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||e||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},i=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=i,s=Function.prototype,u=s.apply,c=s.call,l="object"==typeof Reflect&&Reflect.apply||(a?c.bind(u):function(){return c.apply(u,arguments)}),f=i,p=Function.prototype,h=p.call,d=f&&p.bind.bind(h,h),v=f?d:function(e){return function(){return h.apply(e,arguments)}},g=v,y=g({}.toString),m=g("".slice),_=function(e){return m(y(e),8,-1)},b=_,w=v,x=function(e){if("Function"===b(e))return w(e)},S="object"==typeof document&&document.all,k={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},T=k.all,O=k.IS_HTMLDDA?function(e){return"function"==typeof e||e===T}:function(e){return"function"==typeof e},E={},L=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=i,C=Function.prototype.call,P=R?C.bind(C):function(){return C.apply(C,arguments)},A={},j={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,M=I&&!j.call({1:2},1);A.f=M?function(e){var t=I(this,e);return!!t&&t.enumerable}:j;var N,F,D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},U=o,B=_,H=Object,z=v("".split),q=U((function(){return!H("z").propertyIsEnumerable(0)}))?function(e){return"String"==B(e)?z(e,""):H(e)}:H,G=function(e){return null==e},$=G,V=TypeError,Y=function(e){if($(e))throw V("Can't call method on "+e);return e},W=q,K=Y,X=function(e){return W(K(e))},J=O,Q=k.all,Z=k.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Q}:function(e){return"object"==typeof e?null!==e:J(e)},ee={},te=ee,re=n,ne=O,oe=function(e){return ne(e)?e:void 0},ie=function(e,t){return arguments.length<2?oe(te[e])||oe(re[e]):te[e]&&te[e][t]||re[e]&&re[e][t]},ae=v({}.isPrototypeOf),se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=n,ce=se,le=ue.process,fe=ue.Deno,pe=le&&le.versions||fe&&fe.version,he=pe&&pe.v8;he&&(F=(N=he.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!F&&ce&&(!(N=ce.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=ce.match(/Chrome\/(\d+)/))&&(F=+N[1]);var de=F,ve=de,ge=o,ye=n.String,me=!!Object.getOwnPropertySymbols&&!ge((function(){var e=Symbol();return!ye(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})),_e=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ie,we=O,xe=ae,Se=Object,ke=_e?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return we(t)&&xe(t.prototype,Se(e))},Te=String,Oe=function(e){try{return Te(e)}catch(t){return"Object"}},Ee=O,Le=Oe,Re=TypeError,Ce=function(e){if(Ee(e))return e;throw Re(Le(e)+" is not a function")},Pe=Ce,Ae=G,je=function(e,t){var r=e[t];return Ae(r)?void 0:Pe(r)},Ie=P,Me=O,Ne=Z,Fe=TypeError,De={exports:{}},Ue=n,Be=Object.defineProperty,He=function(e,t){try{Be(Ue,e,{value:t,configurable:!0,writable:!0})}catch(r){Ue[e]=t}return t},ze="__core-js_shared__",qe=n[ze]||He(ze,{}),Ge=qe;(De.exports=function(e,t){return Ge[e]||(Ge[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=De.exports,Ve=Y,Ye=Object,We=function(e){return Ye(Ve(e))},Ke=We,Xe=v({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Xe(Ke(e),t)},Qe=v,Ze=0,et=Math.random(),tt=Qe(1..toString),rt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tt(++Ze+et,36)},nt=$e,ot=Je,it=rt,at=me,st=_e,ut=n.Symbol,ct=nt("wks"),lt=st?ut.for||ut:ut&&ut.withoutSetter||it,ft=function(e){return ot(ct,e)||(ct[e]=at&&ot(ut,e)?ut[e]:lt("Symbol."+e)),ct[e]},pt=P,ht=Z,dt=ke,vt=je,gt=function(e,t){var r,n;if("string"===t&&Me(r=e.toString)&&!Ne(n=Ie(r,e)))return n;if(Me(r=e.valueOf)&&!Ne(n=Ie(r,e)))return n;if("string"!==t&&Me(r=e.toString)&&!Ne(n=Ie(r,e)))return n;throw Fe("Can't convert object to primitive value")},yt=TypeError,mt=ft("toPrimitive"),_t=function(e,t){if(!ht(e)||dt(e))return e;var r,n=vt(e,mt);if(n){if(void 0===t&&(t="default"),r=pt(n,e,t),!ht(r)||dt(r))return r;throw yt("Can't convert object to primitive value")}return void 0===t&&(t="number"),gt(e,t)},bt=ke,wt=function(e){var t=_t(e,"string");return bt(t)?t:t+""},xt=Z,St=n.document,kt=xt(St)&&xt(St.createElement),Tt=function(e){return kt?St.createElement(e):{}},Ot=Tt,Et=!L&&!o((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Lt=L,Rt=P,Ct=A,Pt=D,At=X,jt=wt,It=Je,Mt=Et,Nt=Object.getOwnPropertyDescriptor;E.f=Lt?Nt:function(e,t){if(e=At(e),t=jt(t),Mt)try{return Nt(e,t)}catch(r){}if(It(e,t))return Pt(!Rt(Ct.f,e,t),e[t])};var Ft=o,Dt=O,Ut=/#|\.prototype\./,Bt=function(e,t){var r=zt[Ht(e)];return r==Gt||r!=qt&&(Dt(t)?Ft(t):!!t)},Ht=Bt.normalize=function(e){return String(e).replace(Ut,".").toLowerCase()},zt=Bt.data={},qt=Bt.NATIVE="N",Gt=Bt.POLYFILL="P",$t=Bt,Vt=Ce,Yt=i,Wt=x(x.bind),Kt=function(e,t){return Vt(e),void 0===t?e:Yt?Wt(e,t):function(){return e.apply(t,arguments)}},Xt={},Jt=L&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qt=Z,Zt=String,er=TypeError,tr=function(e){if(Qt(e))return e;throw er(Zt(e)+" is not an object")},rr=L,nr=Et,or=Jt,ir=tr,ar=wt,sr=TypeError,ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr="enumerable",fr="configurable",pr="writable";Xt.f=rr?or?function(e,t,r){if(ir(e),t=ar(t),ir(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r[pr]){var n=cr(e,t);n&&n[pr]&&(e[t]=r.value,r={configurable:fr in r?r[fr]:n[fr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return ur(e,t,r)}:ur:function(e,t,r){if(ir(e),t=ar(t),ir(r),nr)try{return ur(e,t,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var hr=Xt,dr=D,vr=L?function(e,t,r){return hr.f(e,t,dr(1,r))}:function(e,t,r){return e[t]=r,e},gr=n,yr=l,mr=x,_r=O,br=E.f,wr=$t,xr=ee,Sr=Kt,kr=vr,Tr=Je,Or=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return yr(e,this,arguments)};return t.prototype=e.prototype,t},Er=function(e,t){var r,n,o,i,a,s,u,c,l,f=e.target,p=e.global,h=e.stat,d=e.proto,v=p?gr:h?gr[f]:(gr[f]||{}).prototype,g=p?xr:xr[f]||kr(xr,f,{})[f],y=g.prototype;for(i in t)n=!(r=wr(p?i:f+(h?".":"#")+i,e.forced))&&v&&Tr(v,i),s=g[i],n&&(u=e.dontCallGetSet?(l=br(v,i))&&l.value:v[i]),a=n&&u?u:t[i],n&&typeof s==typeof a||(c=e.bind&&n?Sr(a,gr):e.wrap&&n?Or(a):d&&_r(a)?mr(a):a,(e.sham||a&&a.sham||s&&s.sham)&&kr(c,"sham",!0),kr(g,i,c),d&&(Tr(xr,o=f+"Prototype")||kr(xr,o,{}),kr(xr[o],i,a),e.real&&y&&(r||!y[i])&&kr(y,i,a)))},Lr=_,Rr=Array.isArray||function(e){return"Array"==Lr(e)},Cr=Math.ceil,Pr=Math.floor,Ar=Math.trunc||function(e){var t=+e;return(t>0?Pr:Cr)(t)},jr=function(e){var t=+e;return t!=t||0===t?0:Ar(t)},Ir=jr,Mr=Math.min,Nr=function(e){return e>0?Mr(Ir(e),9007199254740991):0},Fr=Nr,Dr=function(e){return Fr(e.length)},Ur=TypeError,Br=function(e){if(e>9007199254740991)throw Ur("Maximum allowed index exceeded");return e},Hr=wt,zr=Xt,qr=D,Gr=function(e,t,r){var n=Hr(t);n in e?zr.f(e,n,qr(0,r)):e[n]=r},$r={};$r[ft("toStringTag")]="z";var Vr="[object z]"===String($r),Yr=Vr,Wr=O,Kr=_,Xr=ft("toStringTag"),Jr=Object,Qr="Arguments"==Kr(function(){return arguments}()),Zr=Yr?Kr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Jr(e),Xr))?r:Qr?Kr(t):"Object"==(n=Kr(t))&&Wr(t.callee)?"Arguments":n},en=O,tn=qe,rn=v(Function.toString);en(tn.inspectSource)||(tn.inspectSource=function(e){return rn(e)});var nn=tn.inspectSource,on=v,an=o,sn=O,un=Zr,cn=nn,ln=function(){},fn=[],pn=ie("Reflect","construct"),hn=/^\s*(?:class|function)\b/,dn=on(hn.exec),vn=!hn.exec(ln),gn=function(e){if(!sn(e))return!1;try{return pn(ln,fn,e),!0}catch(t){return!1}},yn=function(e){if(!sn(e))return!1;switch(un(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vn||!!dn(hn,cn(e))}catch(t){return!0}};yn.sham=!0;var mn=!pn||an((function(){var e;return gn(gn.call)||!gn(Object)||!gn((function(){e=!0}))||e}))?yn:gn,_n=Rr,bn=mn,wn=Z,xn=ft("species"),Sn=Array,kn=function(e){var t;return _n(e)&&(t=e.constructor,(bn(t)&&(t===Sn||_n(t.prototype))||wn(t)&&null===(t=t[xn]))&&(t=void 0)),void 0===t?Sn:t},Tn=function(e,t){return new(kn(e))(0===t?0:t)},On=o,En=de,Ln=ft("species"),Rn=function(e){return En>=51||!On((function(){var t=[];return(t.constructor={})[Ln]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=Er,Pn=o,An=Rr,jn=Z,In=We,Mn=Dr,Nn=Br,Fn=Gr,Dn=Tn,Un=Rn,Bn=de,Hn=ft("isConcatSpreadable"),zn=Bn>=51||!Pn((function(){var e=[];return e[Hn]=!1,e.concat()[0]!==e})),qn=function(e){if(!jn(e))return!1;var t=e[Hn];return void 0!==t?!!t:An(e)};Cn({target:"Array",proto:!0,arity:1,forced:!zn||!Un("concat")},{concat:function(e){var t,r,n,o,i,a=In(this),s=Dn(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(qn(i=-1===t?a:arguments[t]))for(o=Mn(i),Nn(u+o),r=0;r<o;r++,u++)r in i&&Fn(s,u,i[r]);else Nn(u+1),Fn(s,u++,i);return s.length=u,s}});var Gn=Zr,$n=String,Vn=function(e){if("Symbol"===Gn(e))throw TypeError("Cannot convert a Symbol value to a string");return $n(e)},Yn={},Wn=jr,Kn=Math.max,Xn=Math.min,Jn=function(e,t){var r=Wn(e);return r<0?Kn(r+t,0):Xn(r,t)},Qn=X,Zn=Jn,eo=Dr,to=function(e){return function(t,r,n){var o,i=Qn(t),a=eo(i),s=Zn(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},ro={includes:to(!0),indexOf:to(!1)},no={},oo=Je,io=X,ao=ro.indexOf,so=no,uo=v([].push),co=function(e,t){var r,n=io(e),o=0,i=[];for(r in n)!oo(so,r)&&oo(n,r)&&uo(i,r);for(;t.length>o;)oo(n,r=t[o++])&&(~ao(i,r)||uo(i,r));return i},lo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fo=co,po=lo,ho=Object.keys||function(e){return fo(e,po)},vo=L,go=Jt,yo=Xt,mo=tr,_o=X,bo=ho;Yn.f=vo&&!go?Object.defineProperties:function(e,t){mo(e);for(var r,n=_o(t),o=bo(t),i=o.length,a=0;i>a;)yo.f(e,r=o[a++],n[r]);return e};var wo,xo=ie("document","documentElement"),So=rt,ko=$e("keys"),To=function(e){return ko[e]||(ko[e]=So(e))},Oo=tr,Eo=Yn,Lo=lo,Ro=no,Co=xo,Po=Tt,Ao="prototype",jo="script",Io=To("IE_PROTO"),Mo=function(){},No=function(e){return"<"+jo+">"+e+"</"+jo+">"},Fo=function(e){e.write(No("")),e.close();var t=e.parentWindow.Object;return e=null,t},Do=function(){try{wo=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;Do="undefined"!=typeof document?document.domain&&wo?Fo(wo):(t=Po("iframe"),r="java"+jo+":",t.style.display="none",Co.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(No("document.F=Object")),e.close(),e.F):Fo(wo);for(var n=Lo.length;n--;)delete Do[Ao][Lo[n]];return Do()};Ro[Io]=!0;var Uo=Object.create||function(e,t){var r;return null!==e?(Mo[Ao]=Oo(e),r=new Mo,Mo[Ao]=null,r[Io]=e):r=Do(),void 0===t?r:Eo.f(r,t)},Bo={},Ho=co,zo=lo.concat("length","prototype");Bo.f=Object.getOwnPropertyNames||function(e){return Ho(e,zo)};var qo={},Go=Jn,$o=Dr,Vo=Gr,Yo=Array,Wo=Math.max,Ko=function(e,t,r){for(var n=$o(e),o=Go(t,n),i=Go(void 0===r?n:r,n),a=Yo(Wo(i-o,0)),s=0;o<i;o++,s++)Vo(a,s,e[o]);return a.length=s,a},Xo=_,Jo=X,Qo=Bo.f,Zo=Ko,ei="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];qo.f=function(e){return ei&&"Window"==Xo(e)?function(e){try{return Qo(e)}catch(t){return Zo(ei)}}(e):Qo(Jo(e))};var ti={};ti.f=Object.getOwnPropertySymbols;var ri=vr,ni=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ri(e,t,r),e},oi=Xt,ii=function(e,t,r){return oi.f(e,t,r)},ai={},si=ft;ai.f=si;var ui,ci,li,fi=ee,pi=Je,hi=ai,di=Xt.f,vi=function(e){var t=fi.Symbol||(fi.Symbol={});pi(t,e)||di(t,e,{value:hi.f(e)})},gi=P,yi=ie,mi=ft,_i=ni,bi=function(){var e=yi("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=mi("toPrimitive");t&&!t[n]&&_i(t,n,(function(e){return gi(r,this)}),{arity:1})},wi=Zr,xi=Vr?{}.toString:function(){return"[object "+wi(this)+"]"},Si=Vr,ki=Xt.f,Ti=vr,Oi=Je,Ei=xi,Li=ft("toStringTag"),Ri=function(e,t,r,n){if(e){var o=r?e:e.prototype;Oi(o,Li)||ki(o,Li,{configurable:!0,value:t}),n&&!Si&&Ti(o,"toString",Ei)}},Ci=O,Pi=n.WeakMap,Ai=Ci(Pi)&&/native code/.test(String(Pi)),ji=n,Ii=Z,Mi=vr,Ni=Je,Fi=qe,Di=To,Ui=no,Bi="Object already initialized",Hi=ji.TypeError,zi=ji.WeakMap;if(Ai||Fi.state){var qi=Fi.state||(Fi.state=new zi);qi.get=qi.get,qi.has=qi.has,qi.set=qi.set,ui=function(e,t){if(qi.has(e))throw Hi(Bi);return t.facade=e,qi.set(e,t),t},ci=function(e){return qi.get(e)||{}},li=function(e){return qi.has(e)}}else{var Gi=Di("state");Ui[Gi]=!0,ui=function(e,t){if(Ni(e,Gi))throw Hi(Bi);return t.facade=e,Mi(e,Gi,t),t},ci=function(e){return Ni(e,Gi)?e[Gi]:{}},li=function(e){return Ni(e,Gi)}}var $i={set:ui,get:ci,has:li,enforce:function(e){return li(e)?ci(e):ui(e,{})},getterFor:function(e){return function(t){var r;if(!Ii(t)||(r=ci(t)).type!==e)throw Hi("Incompatible receiver, "+e+" required");return r}}},Vi=Kt,Yi=q,Wi=We,Ki=Dr,Xi=Tn,Ji=v([].push),Qi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,c,l,f){for(var p,h,d=Wi(u),v=Yi(d),g=Vi(c,l),y=Ki(v),m=0,_=f||Xi,b=t?_(u,y):r||a?_(u,0):void 0;y>m;m++)if((s||m in v)&&(h=g(p=v[m],m,d),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Ji(b,p)}else switch(e){case 4:return!1;case 7:Ji(b,p)}return i?-1:n||o?o:b}},Zi={forEach:Qi(0),map:Qi(1),filter:Qi(2),some:Qi(3),every:Qi(4),find:Qi(5),findIndex:Qi(6),filterReject:Qi(7)},ea=Er,ta=n,ra=P,na=v,oa=L,ia=me,aa=o,sa=Je,ua=ae,ca=tr,la=X,fa=wt,pa=Vn,ha=D,da=Uo,va=ho,ga=Bo,ya=qo,ma=ti,_a=E,ba=Xt,wa=Yn,xa=A,Sa=ni,ka=ii,Ta=$e,Oa=no,Ea=rt,La=ft,Ra=ai,Ca=vi,Pa=bi,Aa=Ri,ja=$i,Ia=Zi.forEach,Ma=To("hidden"),Na="Symbol",Fa="prototype",Da=ja.set,Ua=ja.getterFor(Na),Ba=Object[Fa],Ha=ta.Symbol,za=Ha&&Ha[Fa],qa=ta.TypeError,Ga=ta.QObject,$a=_a.f,Va=ba.f,Ya=ya.f,Wa=xa.f,Ka=na([].push),Xa=Ta("symbols"),Ja=Ta("op-symbols"),Qa=Ta("wks"),Za=!Ga||!Ga[Fa]||!Ga[Fa].findChild,es=oa&&aa((function(){return 7!=da(Va({},"a",{get:function(){return Va(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=$a(Ba,t);n&&delete Ba[t],Va(e,t,r),n&&e!==Ba&&Va(Ba,t,n)}:Va,ts=function(e,t){var r=Xa[e]=da(za);return Da(r,{type:Na,tag:e,description:t}),oa||(r.description=t),r},rs=function(e,t,r){e===Ba&&rs(Ja,t,r),ca(e);var n=fa(t);return ca(r),sa(Xa,n)?(r.enumerable?(sa(e,Ma)&&e[Ma][n]&&(e[Ma][n]=!1),r=da(r,{enumerable:ha(0,!1)})):(sa(e,Ma)||Va(e,Ma,ha(1,{})),e[Ma][n]=!0),es(e,n,r)):Va(e,n,r)},ns=function(e,t){ca(e);var r=la(t),n=va(r).concat(ss(r));return Ia(n,(function(t){oa&&!ra(os,r,t)||rs(e,t,r[t])})),e},os=function(e){var t=fa(e),r=ra(Wa,this,t);return!(this===Ba&&sa(Xa,t)&&!sa(Ja,t))&&(!(r||!sa(this,t)||!sa(Xa,t)||sa(this,Ma)&&this[Ma][t])||r)},is=function(e,t){var r=la(e),n=fa(t);if(r!==Ba||!sa(Xa,n)||sa(Ja,n)){var o=$a(r,n);return!o||!sa(Xa,n)||sa(r,Ma)&&r[Ma][n]||(o.enumerable=!0),o}},as=function(e){var t=Ya(la(e)),r=[];return Ia(t,(function(e){sa(Xa,e)||sa(Oa,e)||Ka(r,e)})),r},ss=function(e){var t=e===Ba,r=Ya(t?Ja:la(e)),n=[];return Ia(r,(function(e){!sa(Xa,e)||t&&!sa(Ba,e)||Ka(n,Xa[e])})),n};ia||(Ha=function(){if(ua(za,this))throw qa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?pa(arguments[0]):void 0,t=Ea(e),r=function(e){this===Ba&&ra(r,Ja,e),sa(this,Ma)&&sa(this[Ma],t)&&(this[Ma][t]=!1),es(this,t,ha(1,e))};return oa&&Za&&es(Ba,t,{configurable:!0,set:r}),ts(t,e)},Sa(za=Ha[Fa],"toString",(function(){return Ua(this).tag})),Sa(Ha,"withoutSetter",(function(e){return ts(Ea(e),e)})),xa.f=os,ba.f=rs,wa.f=ns,_a.f=is,ga.f=ya.f=as,ma.f=ss,Ra.f=function(e){return ts(La(e),e)},oa&&ka(za,"description",{configurable:!0,get:function(){return Ua(this).description}})),ea({global:!0,constructor:!0,wrap:!0,forced:!ia,sham:!ia},{Symbol:Ha}),Ia(va(Qa),(function(e){Ca(e)})),ea({target:Na,stat:!0,forced:!ia},{useSetter:function(){Za=!0},useSimple:function(){Za=!1}}),ea({target:"Object",stat:!0,forced:!ia,sham:!oa},{create:function(e,t){return void 0===t?da(e):ns(da(e),t)},defineProperty:rs,defineProperties:ns,getOwnPropertyDescriptor:is}),ea({target:"Object",stat:!0,forced:!ia},{getOwnPropertyNames:as}),Pa(),Aa(Ha,Na),Oa[Ma]=!0;var us=me&&!!Symbol.for&&!!Symbol.keyFor,cs=Er,ls=ie,fs=Je,ps=Vn,hs=$e,ds=us,vs=hs("string-to-symbol-registry"),gs=hs("symbol-to-string-registry");cs({target:"Symbol",stat:!0,forced:!ds},{for:function(e){var t=ps(e);if(fs(vs,t))return vs[t];var r=ls("Symbol")(t);return vs[t]=r,gs[r]=t,r}});var ys=Er,ms=Je,_s=ke,bs=Oe,ws=us,xs=$e("symbol-to-string-registry");ys({target:"Symbol",stat:!0,forced:!ws},{keyFor:function(e){if(!_s(e))throw TypeError(bs(e)+" is not a symbol");if(ms(xs,e))return xs[e]}});var Ss=v([].slice),ks=Rr,Ts=O,Os=_,Es=Vn,Ls=v([].push),Rs=Er,Cs=ie,Ps=l,As=P,js=v,Is=o,Ms=O,Ns=ke,Fs=Ss,Ds=function(e){if(Ts(e))return e;if(ks(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Ls(r,o):"number"!=typeof o&&"Number"!=Os(o)&&"String"!=Os(o)||Ls(r,Es(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(ks(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},Us=me,Bs=String,Hs=Cs("JSON","stringify"),zs=js(/./.exec),qs=js("".charAt),Gs=js("".charCodeAt),$s=js("".replace),Vs=js(1..toString),Ys=/[\uD800-\uDFFF]/g,Ws=/^[\uD800-\uDBFF]$/,Ks=/^[\uDC00-\uDFFF]$/,Xs=!Us||Is((function(){var e=Cs("Symbol")();return"[null]"!=Hs([e])||"{}"!=Hs({a:e})||"{}"!=Hs(Object(e))})),Js=Is((function(){return'"\\udf06\\ud834"'!==Hs("\udf06\ud834")||'"\\udead"'!==Hs("\udead")})),Qs=function(e,t){var r=Fs(arguments),n=Ds(t);if(Ms(n)||void 0!==e&&!Ns(e))return r[1]=function(e,t){if(Ms(n)&&(t=As(n,this,Bs(e),t)),!Ns(t))return t},Ps(Hs,null,r)},Zs=function(e,t,r){var n=qs(r,t-1),o=qs(r,t+1);return zs(Ws,e)&&!zs(Ks,o)||zs(Ks,e)&&!zs(Ws,n)?"\\u"+Vs(Gs(e,0),16):e};Hs&&Rs({target:"JSON",stat:!0,arity:3,forced:Xs||Js},{stringify:function(e,t,r){var n=Fs(arguments),o=Ps(Xs?Qs:Hs,null,n);return Js&&"string"==typeof o?$s(o,Ys,Zs):o}});var eu=ti,tu=We;Er({target:"Object",stat:!0,forced:!me||o((function(){eu.f(1)}))},{getOwnPropertySymbols:function(e){var t=eu.f;return t?t(tu(e)):[]}}),vi("asyncIterator"),vi("hasInstance"),vi("isConcatSpreadable"),vi("iterator"),vi("match"),vi("matchAll"),vi("replace"),vi("search"),vi("species"),vi("split");var ru=bi;vi("toPrimitive"),ru();var nu=ie,ou=Ri;vi("toStringTag"),ou(nu("Symbol"),"Symbol"),vi("unscopables"),Ri(n.JSON,"JSON",!0);var iu,au,su,uu=ee.Symbol,cu={},lu=L,fu=Je,pu=Function.prototype,hu=lu&&Object.getOwnPropertyDescriptor,du=fu(pu,"name"),vu={EXISTS:du,PROPER:du&&"something"===function(){}.name,CONFIGURABLE:du&&(!lu||lu&&hu(pu,"name").configurable)},gu=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yu=Je,mu=O,_u=We,bu=gu,wu=To("IE_PROTO"),xu=Object,Su=xu.prototype,ku=bu?xu.getPrototypeOf:function(e){var t=_u(e);if(yu(t,wu))return t[wu];var r=t.constructor;return mu(r)&&t instanceof r?r.prototype:t instanceof xu?Su:null},Tu=o,Ou=O,Eu=Z,Lu=Uo,Ru=ku,Cu=ni,Pu=ft("iterator"),Au=!1;[].keys&&("next"in(su=[].keys())?(au=Ru(Ru(su)))!==Object.prototype&&(iu=au):Au=!0);var ju=!Eu(iu)||Tu((function(){var e={};return iu[Pu].call(e)!==e}));Ou((iu=ju?{}:Lu(iu))[Pu])||Cu(iu,Pu,(function(){return this}));var Iu={IteratorPrototype:iu,BUGGY_SAFARI_ITERATORS:Au},Mu=Iu.IteratorPrototype,Nu=Uo,Fu=D,Du=Ri,Uu=cu,Bu=function(){return this},Hu=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Nu(Mu,{next:Fu(+!n,r)}),Du(e,o,!1,!0),Uu[o]=Bu,e},zu=v,qu=Ce,Gu=O,$u=String,Vu=TypeError,Yu=function(e,t,r){try{return zu(qu(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Wu=tr,Ku=function(e){if("object"==typeof e||Gu(e))return e;throw Vu("Can't set "+$u(e)+" as a prototype")},Xu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Yu(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Wu(r),Ku(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ju=Er,Qu=P,Zu=vu,ec=Hu,tc=ku,rc=Ri,nc=ni,oc=cu,ic=Iu,ac=Zu.PROPER,sc=ic.BUGGY_SAFARI_ITERATORS,uc=ft("iterator"),cc="keys",lc="values",fc="entries",pc=function(){return this},hc=function(e,t,r,n,o,i,a){ec(r,t,n);var s,u,c,l=function(e){if(e===o&&v)return v;if(!sc&&e in h)return h[e];switch(e){case cc:case lc:case fc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[uc]||h["@@iterator"]||o&&h[o],v=!sc&&d||l(o),g="Array"==t&&h.entries||d;if(g&&(s=tc(g.call(new e)))!==Object.prototype&&s.next&&(rc(s,f,!0,!0),oc[f]=pc),ac&&o==lc&&d&&d.name!==lc&&(p=!0,v=function(){return Qu(d,this)}),o)if(u={values:l(lc),keys:i?v:l(cc),entries:l(fc)},a)for(c in u)(sc||p||!(c in h))&&nc(h,c,u[c]);else Ju({target:t,proto:!0,forced:sc||p},u);return a&&h[uc]!==v&&nc(h,uc,v,{name:o}),oc[t]=v,u},dc=function(e,t){return{value:e,done:t}},vc=X,gc=cu,yc=$i;Xt.f;var mc=hc,_c=dc,bc="Array Iterator",wc=yc.set,xc=yc.getterFor(bc);mc(Array,"Array",(function(e,t){wc(this,{type:bc,target:vc(e),index:0,kind:t})}),(function(){var e=xc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,_c(void 0,!0)):_c("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),gc.Arguments=gc.Array;var Sc={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},kc=n,Tc=Zr,Oc=vr,Ec=cu,Lc=ft("toStringTag");for(var Rc in Sc){var Cc=kc[Rc],Pc=Cc&&Cc.prototype;Pc&&Tc(Pc)!==Lc&&Oc(Pc,Lc,Rc),Ec[Rc]=Ec.Array}var Ac=uu;vi("dispose");var jc=Ac;vi("asyncDispose");var Ic=Er,Mc=v,Nc=ie("Symbol"),Fc=Nc.keyFor,Dc=Mc(Nc.prototype.valueOf);Ic({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Fc(Dc(e))}catch(t){return!1}}});for(var Uc=Er,Bc=$e,Hc=ie,zc=v,qc=ke,Gc=ft,$c=Hc("Symbol"),Vc=$c.isWellKnown,Yc=Hc("Object","getOwnPropertyNames"),Wc=zc($c.prototype.valueOf),Kc=Bc("wks"),Xc=0,Jc=Yc($c),Qc=Jc.length;Xc<Qc;Xc++)try{var Zc=Jc[Xc];qc($c[Zc])&&Gc(Zc)}catch(EP){}Uc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Vc&&Vc(e))return!0;try{for(var t=Wc(e),r=0,n=Yc(Kc),o=n.length;r<o;r++)if(Kc[n[r]]==t)return!0}catch(EP){}return!1}}),vi("matcher"),vi("metadataKey"),vi("observable"),vi("metadata"),vi("patternMatch"),vi("replaceAll");var el=jc,tl=t(el),rl=v,nl=jr,ol=Vn,il=Y,al=rl("".charAt),sl=rl("".charCodeAt),ul=rl("".slice),cl=function(e){return function(t,r){var n,o,i=ol(il(t)),a=nl(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=sl(i,a))<55296||n>56319||a+1===s||(o=sl(i,a+1))<56320||o>57343?e?al(i,a):n:e?ul(i,a,a+2):o-56320+(n-55296<<10)+65536}},ll={codeAt:cl(!1),charAt:cl(!0)},fl=ll.charAt,pl=Vn,hl=$i,dl=hc,vl=dc,gl="String Iterator",yl=hl.set,ml=hl.getterFor(gl);dl(String,"String",(function(e){yl(this,{type:gl,string:pl(e),index:0})}),(function(){var e,t=ml(this),r=t.string,n=t.index;return n>=r.length?vl(void 0,!0):(e=fl(r,n),t.index+=e.length,vl(e,!1))}));var _l=ai.f("iterator"),bl=t(_l);function wl(e){return(wl="function"==typeof tl&&"symbol"==typeof bl?function(e){return typeof e}:function(e){return e&&"function"==typeof tl&&e.constructor===tl&&e!==tl.prototype?"symbol":typeof e})(e)}var xl=We,Sl=ho;Er({target:"Object",stat:!0,forced:o((function(){Sl(1)}))},{keys:function(e){return Sl(xl(e))}});var kl=t(ee.Object.keys),Tl=t(ee.Object.getOwnPropertySymbols),Ol=Zi.filter;Er({target:"Array",proto:!0,forced:!Rn("filter")},{filter:function(e){return Ol(this,e,arguments.length>1?arguments[1]:void 0)}});var El=ee,Ll=function(e){return El[e+"Prototype"]},Rl=Ll("Array").filter,Cl=ae,Pl=Rl,Al=Array.prototype,jl=t((function(e){var t=e.filter;return e===Al||Cl(Al,e)&&t===Al.filter?Pl:t})),Il={exports:{}},Ml=Er,Nl=o,Fl=X,Dl=E.f,Ul=L;Ml({target:"Object",stat:!0,forced:!Ul||Nl((function(){Dl(1)})),sham:!Ul},{getOwnPropertyDescriptor:function(e,t){return Dl(Fl(e),t)}});var Bl=ee.Object,Hl=Il.exports=function(e,t){return Bl.getOwnPropertyDescriptor(e,t)};Bl.getOwnPropertyDescriptor.sham&&(Hl.sham=!0);var zl=t(Il.exports),ql=o,Gl=function(e,t){var r=[][e];return!!r&&ql((function(){r.call(null,t||function(){return 1},1)}))},$l=Zi.forEach,Vl=Gl("forEach")?[].forEach:function(e){return $l(this,e,arguments.length>1?arguments[1]:void 0)};Er({target:"Array",proto:!0,forced:[].forEach!=Vl},{forEach:Vl});var Yl=Ll("Array").forEach,Wl=Zr,Kl=Je,Xl=ae,Jl=Yl,Ql=Array.prototype,Zl={DOMTokenList:!0,NodeList:!0},ef=t((function(e){var t=e.forEach;return e===Ql||Xl(Ql,e)&&t===Ql.forEach||Kl(Zl,Wl(e))?Jl:t})),tf=ie,rf=Bo,nf=ti,of=tr,af=v([].concat),sf=tf("Reflect","ownKeys")||function(e){var t=rf.f(of(e)),r=nf.f;return r?af(t,r(e)):t},uf=sf,cf=X,lf=E,ff=Gr;Er({target:"Object",stat:!0,sham:!L},{getOwnPropertyDescriptors:function(e){for(var t,r,n=cf(e),o=lf.f,i=uf(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&ff(a,t,r);return a}});var pf=t(ee.Object.getOwnPropertyDescriptors),hf={exports:{}},df=Er,vf=L,gf=Yn.f;df({target:"Object",stat:!0,forced:Object.defineProperties!==gf,sham:!vf},{defineProperties:gf});var yf=ee.Object,mf=hf.exports=function(e,t){return yf.defineProperties(e,t)};yf.defineProperties.sham&&(mf.sham=!0);var _f=t(hf.exports),bf={exports:{}},wf=Er,xf=L,Sf=Xt.f;wf({target:"Object",stat:!0,forced:Object.defineProperty!==Sf,sham:!xf},{defineProperty:Sf});var kf=ee.Object,Tf=bf.exports=function(e,t,r){return kf.defineProperty(e,t,r)};kf.defineProperty.sham&&(Tf.sham=!0);var Of=t(bf.exports),Ef=t(el);Er({target:"Object",stat:!0,sham:!L},{create:Uo});var Lf=ee.Object,Rf=t((function(e,t){return Lf.create(e,t)})),Cf=We,Pf=ku,Af=gu;Er({target:"Object",stat:!0,forced:o((function(){Pf(1)})),sham:!Af},{getPrototypeOf:function(e){return Pf(Cf(e))}});var jf=t(ee.Object.getPrototypeOf);Er({target:"Object",stat:!0},{setPrototypeOf:Xu});var If=t(ee.Object.setPrototypeOf),Mf=Je,Nf=sf,Ff=E,Df=Xt,Uf=Z,Bf=vr,Hf=Error,zf=v("".replace),qf=String(Hf("zxcasd").stack),Gf=/\n\s*at [^:]*:[^\n]*/,$f=Gf.test(qf),Vf=D,Yf=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Vf(1,7)),7!==e.stack)})),Wf=vr,Kf=function(e,t){if($f&&"string"==typeof e&&!Hf.prepareStackTrace)for(;t--;)e=zf(e,Gf,"");return e},Xf=Yf,Jf=Error.captureStackTrace,Qf=cu,Zf=ft("iterator"),ep=Array.prototype,tp=function(e){return void 0!==e&&(Qf.Array===e||ep[Zf]===e)},rp=Zr,np=je,op=G,ip=cu,ap=ft("iterator"),sp=function(e){if(!op(e))return np(e,ap)||np(e,"@@iterator")||ip[rp(e)]},up=P,cp=Ce,lp=tr,fp=Oe,pp=sp,hp=TypeError,dp=function(e,t){var r=arguments.length<2?pp(e):t;if(cp(r))return lp(up(r,e));throw hp(fp(e)+" is not iterable")},vp=P,gp=tr,yp=je,mp=function(e,t,r){var n,o;gp(e);try{if(!(n=yp(e,"return"))){if("throw"===t)throw r;return r}n=vp(n,e)}catch(EP){o=!0,n=EP}if("throw"===t)throw r;if(o)throw n;return gp(n),r},_p=Kt,bp=P,wp=tr,xp=Oe,Sp=tp,kp=Dr,Tp=ae,Op=dp,Ep=sp,Lp=mp,Rp=TypeError,Cp=function(e,t){this.stopped=e,this.result=t},Pp=Cp.prototype,Ap=function(e,t,r){var n,o,i,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=_p(t,l),g=function(e){return n&&Lp(n,"normal",e),new Cp(!0,e)},y=function(e){return f?(wp(e),d?v(e[0],e[1],g):v(e[0],e[1])):d?v(e,g):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(o=Ep(e)))throw Rp(xp(e)+" is not iterable");if(Sp(o)){for(i=0,a=kp(e);a>i;i++)if((s=y(e[i]))&&Tp(Pp,s))return s;return new Cp(!1)}n=Op(e,o)}for(u=p?e.next:n.next;!(c=bp(u,n)).done;){try{s=y(c.value)}catch(EP){Lp(n,"throw",EP)}if("object"==typeof s&&s&&Tp(Pp,s))return s}return new Cp(!1)},jp=Vn,Ip=Er,Mp=ae,Np=ku,Fp=Xu,Dp=function(e,t,r){for(var n=Nf(t),o=Df.f,i=Ff.f,a=0;a<n.length;a++){var s=n[a];Mf(e,s)||r&&Mf(r,s)||o(e,s,i(t,s))}},Up=Uo,Bp=vr,Hp=D,zp=function(e,t){Uf(t)&&"cause"in t&&Bf(e,"cause",t.cause)},qp=function(e,t,r,n){Xf&&(Jf?Jf(e,t):Wf(e,"stack",Kf(r,n)))},Gp=Ap,$p=function(e,t){return void 0===e?arguments.length<2?"":t:jp(e)},Vp=ft("toStringTag"),Yp=Error,Wp=[].push,Kp=function(e,t){var r,n=Mp(Xp,this);Fp?r=Fp(Yp(),n?Np(this):Xp):(r=n?this:Up(Xp),Bp(r,Vp,"Error")),void 0!==t&&Bp(r,"message",$p(t)),qp(r,Kp,r.stack,1),arguments.length>2&&zp(r,arguments[2]);var o=[];return Gp(e,Wp,{that:o}),Bp(r,"errors",o),r};Fp?Fp(Kp,Yp):Dp(Kp,Yp,{name:!0});var Xp=Kp.prototype=Up(Yp.prototype,{constructor:Hp(1,Kp),message:Hp(1,""),name:Hp(1,"AggregateError")});Ip({global:!0,constructor:!0,arity:2},{AggregateError:Kp});var Jp,Qp,Zp,eh,th="undefined"!=typeof process&&"process"==_(process),rh=ie,nh=ii,oh=L,ih=ft("species"),ah=function(e){var t=rh(e);oh&&t&&!t[ih]&&nh(t,ih,{configurable:!0,get:function(){return this}})},sh=ae,uh=TypeError,ch=function(e,t){if(sh(t,e))return e;throw uh("Incorrect invocation")},lh=mn,fh=Oe,ph=TypeError,hh=function(e){if(lh(e))return e;throw ph(fh(e)+" is not a constructor")},dh=tr,vh=hh,gh=G,yh=ft("species"),mh=function(e,t){var r,n=dh(e).constructor;return void 0===n||gh(r=dh(n)[yh])?t:vh(r)},_h=TypeError,bh=function(e,t){if(e<t)throw _h("Not enough arguments");return e},wh=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),xh=n,Sh=l,kh=Kt,Th=O,Oh=Je,Eh=o,Lh=xo,Rh=Ss,Ch=Tt,Ph=bh,Ah=wh,jh=th,Ih=xh.setImmediate,Mh=xh.clearImmediate,Nh=xh.process,Fh=xh.Dispatch,Dh=xh.Function,Uh=xh.MessageChannel,Bh=xh.String,Hh=0,zh={},qh="onreadystatechange";Eh((function(){Jp=xh.location}));var Gh=function(e){if(Oh(zh,e)){var t=zh[e];delete zh[e],t()}},$h=function(e){return function(){Gh(e)}},Vh=function(e){Gh(e.data)},Yh=function(e){xh.postMessage(Bh(e),Jp.protocol+"//"+Jp.host)};Ih&&Mh||(Ih=function(e){Ph(arguments.length,1);var t=Th(e)?e:Dh(e),r=Rh(arguments,1);return zh[++Hh]=function(){Sh(t,void 0,r)},Qp(Hh),Hh},Mh=function(e){delete zh[e]},jh?Qp=function(e){Nh.nextTick($h(e))}:Fh&&Fh.now?Qp=function(e){Fh.now($h(e))}:Uh&&!Ah?(eh=(Zp=new Uh).port2,Zp.port1.onmessage=Vh,Qp=kh(eh.postMessage,eh)):xh.addEventListener&&Th(xh.postMessage)&&!xh.importScripts&&Jp&&"file:"!==Jp.protocol&&!Eh(Yh)?(Qp=Yh,xh.addEventListener("message",Vh,!1)):Qp=qh in Ch("script")?function(e){Lh.appendChild(Ch("script"))[qh]=function(){Lh.removeChild(this),Gh(e)}}:function(e){setTimeout($h(e),0)});var Wh={set:Ih,clear:Mh},Kh=function(){this.head=null,this.tail=null};Kh.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.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}};var Xh,Jh,Qh,Zh,ed,td=Kh,rd=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,nd=/web0s(?!.*chrome)/i.test(se),od=n,id=Kt,ad=E.f,sd=Wh.set,ud=td,cd=wh,ld=rd,fd=nd,pd=th,hd=od.MutationObserver||od.WebKitMutationObserver,dd=od.document,vd=od.process,gd=od.Promise,yd=ad(od,"queueMicrotask"),md=yd&&yd.value;if(!md){var _d=new ud,bd=function(){var e,t;for(pd&&(e=vd.domain)&&e.exit();t=_d.get();)try{t()}catch(EP){throw _d.head&&Xh(),EP}e&&e.enter()};cd||pd||fd||!hd||!dd?!ld&&gd&&gd.resolve?((Zh=gd.resolve(void 0)).constructor=gd,ed=id(Zh.then,Zh),Xh=function(){ed(bd)}):pd?Xh=function(){vd.nextTick(bd)}:(sd=id(sd,od),Xh=function(){sd(bd)}):(Jh=!0,Qh=dd.createTextNode(""),new hd(bd).observe(Qh,{characterData:!0}),Xh=function(){Qh.data=Jh=!Jh}),md=function(e){_d.head||Xh(),_d.add(e)}}var wd=md,xd=function(e){try{return{error:!1,value:e()}}catch(EP){return{error:!0,value:EP}}},Sd=n.Promise,kd="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Td=!kd&&!th&&"object"==typeof window&&"object"==typeof document,Od=n,Ed=Sd,Ld=O,Rd=$t,Cd=nn,Pd=ft,Ad=Td,jd=kd,Id=de,Md=Ed&&Ed.prototype,Nd=Pd("species"),Fd=!1,Dd=Ld(Od.PromiseRejectionEvent),Ud={CONSTRUCTOR:Rd("Promise",(function(){var e=Cd(Ed),t=e!==String(Ed);if(!t&&66===Id)return!0;if(!Md.catch||!Md.finally)return!0;if(!Id||Id<51||!/native code/.test(e)){var r=new Ed((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Nd]=n,!(Fd=r.then((function(){}))instanceof n))return!0}return!t&&(Ad||jd)&&!Dd})),REJECTION_EVENT:Dd,SUBCLASSING:Fd},Bd={},Hd=Ce,zd=TypeError,qd=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw zd("Bad Promise constructor");t=e,r=n})),this.resolve=Hd(t),this.reject=Hd(r)};Bd.f=function(e){return new qd(e)};var Gd,$d,Vd=Er,Yd=th,Wd=n,Kd=P,Xd=ni,Jd=Ri,Qd=ah,Zd=Ce,ev=O,tv=Z,rv=ch,nv=mh,ov=Wh.set,iv=wd,av=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(EP){}},sv=xd,uv=td,cv=$i,lv=Sd,fv=Ud,pv=Bd,hv="Promise",dv=fv.CONSTRUCTOR,vv=fv.REJECTION_EVENT,gv=cv.getterFor(hv),yv=cv.set,mv=lv&&lv.prototype,_v=lv,bv=mv,wv=Wd.TypeError,xv=Wd.document,Sv=Wd.process,kv=pv.f,Tv=kv,Ov=!!(xv&&xv.createEvent&&Wd.dispatchEvent),Ev="unhandledrejection",Lv=function(e){var t;return!(!tv(e)||!ev(t=e.then))&&t},Rv=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Iv(t),t.rejection=1),!0===s?r=i:(l&&l.enter(),r=s(i),l&&(l.exit(),o=!0)),r===e.promise?c(wv("Promise-chain cycle")):(n=Lv(r))?Kd(n,r,u,c):u(r)):c(i)}catch(EP){l&&!o&&l.exit(),c(EP)}},Cv=function(e,t){e.notified||(e.notified=!0,iv((function(){for(var r,n=e.reactions;r=n.get();)Rv(r,e);e.notified=!1,t&&!e.rejection&&Av(e)})))},Pv=function(e,t,r){var n,o;Ov?((n=xv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Wd.dispatchEvent(n)):n={promise:t,reason:r},!vv&&(o=Wd["on"+e])?o(n):e===Ev&&av("Unhandled promise rejection",r)},Av=function(e){Kd(ov,Wd,(function(){var t,r=e.facade,n=e.value;if(jv(e)&&(t=sv((function(){Yd?Sv.emit("unhandledRejection",n,r):Pv(Ev,r,n)})),e.rejection=Yd||jv(e)?2:1,t.error))throw t.value}))},jv=function(e){return 1!==e.rejection&&!e.parent},Iv=function(e){Kd(ov,Wd,(function(){var t=e.facade;Yd?Sv.emit("rejectionHandled",t):Pv("rejectionhandled",t,e.value)}))},Mv=function(e,t,r){return function(n){e(t,n,r)}},Nv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Cv(e,!0))},Fv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw wv("Promise can't be resolved itself");var n=Lv(t);n?iv((function(){var r={done:!1};try{Kd(n,t,Mv(Fv,r,e),Mv(Nv,r,e))}catch(EP){Nv(r,EP,e)}})):(e.value=t,e.state=1,Cv(e,!1))}catch(EP){Nv({done:!1},EP,e)}}};dv&&(bv=(_v=function(e){rv(this,bv),Zd(e),Kd(Gd,this);var t=gv(this);try{e(Mv(Fv,t),Mv(Nv,t))}catch(EP){Nv(t,EP)}}).prototype,(Gd=function(e){yv(this,{type:hv,done:!1,notified:!1,parent:!1,reactions:new uv,rejection:!1,state:0,value:void 0})}).prototype=Xd(bv,"then",(function(e,t){var r=gv(this),n=kv(nv(this,_v));return r.parent=!0,n.ok=!ev(e)||e,n.fail=ev(t)&&t,n.domain=Yd?Sv.domain:void 0,0==r.state?r.reactions.add(n):iv((function(){Rv(n,r)})),n.promise})),$d=function(){var e=new Gd,t=gv(e);this.promise=e,this.resolve=Mv(Fv,t),this.reject=Mv(Nv,t)},pv.f=kv=function(e){return e===_v||undefined===e?new $d(e):Tv(e)}),Vd({global:!0,constructor:!0,wrap:!0,forced:dv},{Promise:_v}),Jd(_v,hv,!1,!0),Qd(hv);var Dv=ft("iterator"),Uv=!1;try{var Bv=0,Hv={next:function(){return{done:!!Bv++}},return:function(){Uv=!0}};Hv[Dv]=function(){return this},Array.from(Hv,(function(){throw 2}))}catch(EP){}var zv=function(e,t){if(!t&&!Uv)return!1;var r=!1;try{var n={};n[Dv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(EP){}return r},qv=Sd,Gv=Ud.CONSTRUCTOR||!zv((function(e){qv.all(e).then(void 0,(function(){}))})),$v=P,Vv=Ce,Yv=Bd,Wv=xd,Kv=Ap;Er({target:"Promise",stat:!0,forced:Gv},{all:function(e){var t=this,r=Yv.f(t),n=r.resolve,o=r.reject,i=Wv((function(){var r=Vv(t.resolve),i=[],a=0,s=1;Kv(e,(function(e){var u=a++,c=!1;s++,$v(r,t,e).then((function(e){c||(c=!0,i[u]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var Xv=Er,Jv=Ud.CONSTRUCTOR;Sd&&Sd.prototype,Xv({target:"Promise",proto:!0,forced:Jv,real:!0},{catch:function(e){return this.then(void 0,e)}});var Qv=P,Zv=Ce,eg=Bd,tg=xd,rg=Ap;Er({target:"Promise",stat:!0,forced:Gv},{race:function(e){var t=this,r=eg.f(t),n=r.reject,o=tg((function(){var o=Zv(t.resolve);rg(e,(function(e){Qv(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var ng=P,og=Bd;Er({target:"Promise",stat:!0,forced:Ud.CONSTRUCTOR},{reject:function(e){var t=og.f(this);return ng(t.reject,void 0,e),t.promise}});var ig=tr,ag=Z,sg=Bd,ug=function(e,t){if(ig(e),ag(t)&&t.constructor===e)return t;var r=sg.f(e);return(0,r.resolve)(t),r.promise},cg=Er,lg=Sd,fg=Ud.CONSTRUCTOR,pg=ug,hg=ie("Promise"),dg=!fg;cg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return pg(dg&&this===hg?lg:this,e)}});var vg=P,gg=Ce,yg=Bd,mg=xd,_g=Ap;Er({target:"Promise",stat:!0,forced:Gv},{allSettled:function(e){var t=this,r=yg.f(t),n=r.resolve,o=r.reject,i=mg((function(){var r=gg(t.resolve),o=[],i=0,a=1;_g(e,(function(e){var s=i++,u=!1;a++,vg(r,t,e).then((function(e){u||(u=!0,o[s]={status:"fulfilled",value:e},--a||n(o))}),(function(e){u||(u=!0,o[s]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var bg=P,wg=Ce,xg=ie,Sg=Bd,kg=xd,Tg=Ap,Og="No one promise resolved";Er({target:"Promise",stat:!0,forced:Gv},{any:function(e){var t=this,r=xg("AggregateError"),n=Sg.f(t),o=n.resolve,i=n.reject,a=kg((function(){var n=wg(t.resolve),a=[],s=0,u=1,c=!1;Tg(e,(function(e){var l=s++,f=!1;u++,bg(n,t,e).then((function(e){f||c||(c=!0,o(e))}),(function(e){f||c||(f=!0,a[l]=e,--u||i(new r(a,Og)))}))})),--u||i(new r(a,Og))}));return a.error&&i(a.value),n.promise}});var Eg=Er,Lg=Sd,Rg=o,Cg=ie,Pg=O,Ag=mh,jg=ug,Ig=Lg&&Lg.prototype;Eg({target:"Promise",proto:!0,real:!0,forced:!!Lg&&Rg((function(){Ig.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Ag(this,Cg("Promise")),r=Pg(e);return this.then(r?function(r){return jg(t,e()).then((function(){return r}))}:e,r?function(r){return jg(t,e()).then((function(){throw r}))}:e)}});var Mg=ee.Promise,Ng=Bd,Fg=xd;Er({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Ng.f(this),r=Fg(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Dg=t(Mg),Ug=Er,Bg=Rr,Hg=v([].reverse),zg=[1,2];Ug({target:"Array",proto:!0,forced:String(zg)===String(zg.reverse())},{reverse:function(){return Bg(this)&&(this.length=this.length),Hg(this)}});var qg=Ll("Array").reverse,Gg=ae,$g=qg,Vg=Array.prototype,Yg=t((function(e){var t=e.reverse;return e===Vg||Gg(Vg,e)&&t===Vg.reverse?$g:t})),Wg=Er,Kg=Rr,Xg=mn,Jg=Z,Qg=Jn,Zg=Dr,ey=X,ty=Gr,ry=ft,ny=Ss,oy=Rn("slice"),iy=ry("species"),ay=Array,sy=Math.max;Wg({target:"Array",proto:!0,forced:!oy},{slice:function(e,t){var r,n,o,i=ey(this),a=Zg(i),s=Qg(e,a),u=Qg(void 0===t?a:t,a);if(Kg(i)&&(r=i.constructor,(Xg(r)&&(r===ay||Kg(r.prototype))||Jg(r)&&null===(r=r[iy]))&&(r=void 0),r===ay||void 0===r))return ny(i,s,u);for(n=new(void 0===r?ay:r)(sy(u-s,0)),o=0;s<u;s++,o++)s in i&&ty(n,o,i[s]);return n.length=o,n}});var uy=Ll("Array").slice,cy=ae,ly=uy,fy=Array.prototype,py=t((function(e){var t=e.slice;return e===fy||cy(fy,e)&&t===fy.slice?ly:t})),hy=v,dy=Ce,vy=Z,gy=Je,yy=Ss,my=i,_y=Function,by=hy([].concat),wy=hy([].join),xy={},Sy=my?_y.bind:function(e){var t=dy(this),r=t.prototype,n=yy(arguments,1),o=function(){var r=by(n,yy(arguments));return this instanceof o?function(e,t,r){if(!gy(xy,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";xy[t]=_y("C,a","return new C("+wy(n,",")+")")}return xy[t](e,r)}(t,r.length,r):t.apply(e,r)};return vy(r)&&(o.prototype=r),o},ky=Sy;Er({target:"Function",proto:!0,forced:Function.bind!==ky},{bind:ky});var Ty=Ll("Function").bind,Oy=ae,Ey=Ty,Ly=Function.prototype,Ry=t((function(e){var t=e.bind;return e===Ly||Oy(Ly,e)&&t===Ly.bind?Ey:t})),Cy=Er,Py=l,Ay=Sy,jy=hh,Iy=tr,My=Z,Ny=Uo,Fy=o,Dy=ie("Reflect","construct"),Uy=Object.prototype,By=[].push,Hy=Fy((function(){function e(){}return!(Dy((function(){}),[],e)instanceof e)})),zy=!Fy((function(){Dy((function(){}))})),qy=Hy||zy;Cy({target:"Reflect",stat:!0,forced:qy,sham:qy},{construct:function(e,t){jy(e),Iy(t);var r=arguments.length<3?e:jy(arguments[2]);if(zy&&!Hy)return Dy(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return Py(By,n,t),new(Py(Ay,e,n))}var o=r.prototype,i=Ny(My(o)?o:Uy),a=Py(e,i,t);return My(a)?a:i}});var Gy=t(ee.Reflect.construct),$y=t(ai.f("toPrimitive"));function Vy(e,t){var r=kl(e);if(Tl){var n=Tl(e);t&&(n=jl(n).call(n,(function(t){return zl(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yy(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?ef(r=Vy(Object(o),!0)).call(r,(function(t){em(e,t,o[t])})):pf?_f(e,pf(o)):ef(n=Vy(Object(o))).call(n,(function(t){Of(e,t,zl(o,t))}))}return e}function Wy(){Wy=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Of||function(e,t,r){e[t]=r.value},o="function"==typeof Ef?Ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(E){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Rf(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,(function(){return this}));var g=jf&&jf(jf(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=Rf(v);function m(e){var t;ef(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var u=l(e[n],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==wl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],ef(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=u(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return If?If(e,d):(e.__proto__=d,u(e,s,"GeneratorFunction")),e.prototype=Rf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Dg);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),u(y,s,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Yg(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,ef(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+py(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Ky(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(EP){return void r(EP)}s.done?t(u):Dg.resolve(u).then(n,o)}function Xy(e){return function(){var t=this,r=arguments;return new Dg((function(n,o){var i=e.apply(t,r);function a(e){Ky(i,n,o,a,s,"next",e)}function s(e){Ky(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Jy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Of(e,am(n.key),n)}}function Zy(e,t,r){return t&&Qy(e.prototype,t),r&&Qy(e,r),Of(e,"prototype",{writable:!1}),e}function em(e,t,r){return(t=am(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Rf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Of(e,"prototype",{writable:!1}),t&&nm(e,t)}function rm(e){var t;return(rm=If?Ry(t=jf).call(t):function(e){return e.__proto__||jf(e)})(e)}function nm(e,t){var r;return(nm=If?Ry(r=If).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function om(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function im(e){var t=function(){if("undefined"==typeof Reflect||!Gy)return!1;if(Gy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Gy(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=rm(e);if(t){var o=rm(this).constructor;r=Gy(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return om(e)}(this,r)}}function am(e){var t=function(e,t){if("object"!==wl(e)||null===e)return e;var r=e[$y];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wl(t)?t:String(t)}var sm=Ll("Array").concat,um=ae,cm=sm,lm=Array.prototype,fm=t((function(e){var t=e.concat;return e===lm||um(lm,e)&&t===lm.concat?cm:t})),pm=o,hm=ft("iterator"),dm=!pm((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[hm]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),vm=L,gm=v,ym=P,mm=o,_m=ho,bm=ti,wm=A,xm=We,Sm=q,km=Object.assign,Tm=Object.defineProperty,Om=gm([].concat),Em=!km||mm((function(){if(vm&&1!==km({b:1},km(Tm({},"a",{enumerable:!0,get:function(){Tm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=km({},e)[r]||_m(km({},t)).join("")!=n}))?function(e,t){for(var r=xm(e),n=arguments.length,o=1,i=bm.f,a=wm.f;n>o;)for(var s,u=Sm(arguments[o++]),c=i?Om(_m(u),i(u)):_m(u),l=c.length,f=0;l>f;)s=c[f++],vm&&!ym(a,u,s)||(r[s]=u[s]);return r}:km,Lm=tr,Rm=mp,Cm=Kt,Pm=P,Am=We,jm=function(e,t,r,n){try{return n?t(Lm(r)[0],r[1]):t(r)}catch(EP){Rm(e,"throw",EP)}},Im=tp,Mm=mn,Nm=Dr,Fm=Gr,Dm=dp,Um=sp,Bm=Array,Hm=function(e){var t=Am(e),r=Mm(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Cm(o,n>2?arguments[2]:void 0));var a,s,u,c,l,f,p=Um(t),h=0;if(!p||this===Bm&&Im(p))for(a=Nm(t),s=r?new this(a):Bm(a);a>h;h++)f=i?o(t[h],h):t[h],Fm(s,h,f);else for(l=(c=Dm(t,p)).next,s=r?new this:[];!(u=Pm(l,c)).done;h++)f=i?jm(c,o,[u.value,h],!0):u.value,Fm(s,h,f);return s.length=h,s},zm=v,qm=2147483647,Gm=/[^\0-\u007E]/,$m=/[.\u3002\uFF0E\uFF61]/g,Vm="Overflow: input needs wider integers to process",Ym=RangeError,Wm=zm($m.exec),Km=Math.floor,Xm=String.fromCharCode,Jm=zm("".charCodeAt),Qm=zm([].join),Zm=zm([].push),e_=zm("".replace),t_=zm("".split),r_=zm("".toLowerCase),n_=function(e){return e+22+75*(e<26)},o_=function(e,t,r){var n=0;for(e=r?Km(e/700):e>>1,e+=Km(e/t);e>455;)e=Km(e/35),n+=36;return Km(n+36*e/(e+38))},i_=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Jm(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Jm(e,r++);56320==(64512&i)?Zm(t,((1023&o)<<10)+(1023&i)+65536):(Zm(t,o),r--)}else Zm(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&Zm(t,Xm(n));var u=t.length,c=u;for(u&&Zm(t,"-");c<o;){var l=qm;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=c+1;if(l-i>Km((qm-a)/f))throw Ym(Vm);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>qm)throw Ym(Vm);if(n==i){for(var p=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(p<d)break;var v=p-d,g=36-d;Zm(t,Xm(n_(d+v%g))),p=Km(v/g),h+=36}Zm(t,Xm(n_(p))),s=o_(a,f,c==u),a=0,c++}}a++,i++}return Qm(t,"")},a_=ni,s_=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:a_(e,n,t[n],r);return e},u_=Ko,c_=Math.floor,l_=function(e,t){var r=e.length,n=c_(r/2);return r<8?f_(e,t):p_(e,l_(u_(e,0,n),t),l_(u_(e,n),t),t)},f_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},p_=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},h_=l_,d_=Er,v_=n,g_=P,y_=v,m_=L,__=dm,b_=ni,w_=ii,x_=s_,S_=Ri,k_=Hu,T_=$i,O_=ch,E_=O,L_=Je,R_=Kt,C_=Zr,P_=tr,A_=Z,j_=Vn,I_=Uo,M_=D,N_=dp,F_=sp,D_=bh,U_=h_,B_=ft("iterator"),H_="URLSearchParams",z_=H_+"Iterator",q_=T_.set,G_=T_.getterFor(H_),$_=T_.getterFor(z_),V_=Object.getOwnPropertyDescriptor,Y_=function(e){if(!m_)return v_[e];var t=V_(v_,e);return t&&t.value},W_=Y_("fetch"),K_=Y_("Request"),X_=Y_("Headers"),J_=K_&&K_.prototype,Q_=X_&&X_.prototype,Z_=v_.RegExp,eb=v_.TypeError,tb=v_.decodeURIComponent,rb=v_.encodeURIComponent,nb=y_("".charAt),ob=y_([].join),ib=y_([].push),ab=y_("".replace),sb=y_([].shift),ub=y_([].splice),cb=y_("".split),lb=y_("".slice),fb=/\+/g,pb=Array(4),hb=function(e){return pb[e-1]||(pb[e-1]=Z_("((?:%[\\da-f]{2}){"+e+"})","gi"))},db=function(e){try{return tb(e)}catch(EP){return e}},vb=function(e){var t=ab(e,fb," "),r=4;try{return tb(t)}catch(EP){for(;r;)t=ab(t,hb(r--),db);return t}},gb=/[!'()~]|%20/g,yb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},mb=function(e){return yb[e]},_b=function(e){return ab(rb(e),gb,mb)},bb=k_((function(e,t){q_(this,{type:z_,iterator:N_(G_(e).entries),kind:t})}),"Iterator",(function(){var e=$_(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),wb=function(e){this.entries=[],this.url=null,void 0!==e&&(A_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===nb(e,0)?lb(e,1):e:j_(e)))};wb.prototype={type:H_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,u=F_(e);if(u)for(r=(t=N_(e,u)).next;!(n=g_(r,t)).done;){if(i=(o=N_(P_(n.value))).next,(a=g_(i,o)).done||(s=g_(i,o)).done||!g_(i,o).done)throw eb("Expected sequence with length 2");ib(this.entries,{key:j_(a.value),value:j_(s.value)})}else for(var c in e)L_(e,c)&&ib(this.entries,{key:c,value:j_(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=cb(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=cb(t,"="),ib(this.entries,{key:vb(sb(r)),value:vb(ob(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ib(r,_b(e.key)+"="+_b(e.value));return ob(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var xb=function(){O_(this,Sb);var e=q_(this,new wb(arguments.length>0?arguments[0]:void 0));m_||(this.length=e.entries.length)},Sb=xb.prototype;if(x_(Sb,{append:function(e,t){D_(arguments.length,2);var r=G_(this);ib(r.entries,{key:j_(e),value:j_(t)}),m_||this.length++,r.updateURL()},delete:function(e){D_(arguments.length,1);for(var t=G_(this),r=t.entries,n=j_(e),o=0;o<r.length;)r[o].key===n?ub(r,o,1):o++;m_||(this.length=r.length),t.updateURL()},get:function(e){D_(arguments.length,1);for(var t=G_(this).entries,r=j_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){D_(arguments.length,1);for(var t=G_(this).entries,r=j_(e),n=[],o=0;o<t.length;o++)t[o].key===r&&ib(n,t[o].value);return n},has:function(e){D_(arguments.length,1);for(var t=G_(this).entries,r=j_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){D_(arguments.length,1);for(var r,n=G_(this),o=n.entries,i=!1,a=j_(e),s=j_(t),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?ub(o,u--,1):(i=!0,r.value=s));i||ib(o,{key:a,value:s}),m_||(this.length=o.length),n.updateURL()},sort:function(){var e=G_(this);U_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=G_(this).entries,n=R_(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new bb(this,"keys")},values:function(){return new bb(this,"values")},entries:function(){return new bb(this,"entries")}},{enumerable:!0}),b_(Sb,B_,Sb.entries,{name:"entries"}),b_(Sb,"toString",(function(){return G_(this).serialize()}),{enumerable:!0}),m_&&w_(Sb,"size",{get:function(){return G_(this).entries.length},configurable:!0,enumerable:!0}),S_(xb,H_),d_({global:!0,constructor:!0,forced:!__},{URLSearchParams:xb}),!__&&E_(X_)){var kb=y_(Q_.has),Tb=y_(Q_.set),Ob=function(e){if(A_(e)){var t,r=e.body;if(C_(r)===H_)return t=e.headers?new X_(e.headers):new X_,kb(t,"content-type")||Tb(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),I_(e,{body:M_(0,j_(r)),headers:M_(0,t)})}return e};if(E_(W_)&&d_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return W_(e,arguments.length>1?Ob(arguments[1]):{})}}),E_(K_)){var Eb=function(e){return O_(this,J_),new K_(e,arguments.length>1?Ob(arguments[1]):{})};J_.constructor=Eb,Eb.prototype=J_,d_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Eb})}}var Lb,Rb=Er,Cb=L,Pb=dm,Ab=n,jb=Kt,Ib=v,Mb=ni,Nb=ii,Fb=ch,Db=Je,Ub=Em,Bb=Hm,Hb=Ko,zb=ll.codeAt,qb=function(e){var t,r,n=[],o=t_(e_(r_(e),$m,"."),".");for(t=0;t<o.length;t++)r=o[t],Zm(n,Wm(Gm,r)?"xn--"+i_(r):r);return Qm(n,".")},Gb=Vn,$b=Ri,Vb=bh,Yb={URLSearchParams:xb,getState:G_},Wb=$i,Kb=Wb.set,Xb=Wb.getterFor("URL"),Jb=Yb.URLSearchParams,Qb=Yb.getState,Zb=Ab.URL,ew=Ab.TypeError,tw=Ab.parseInt,rw=Math.floor,nw=Math.pow,ow=Ib("".charAt),iw=Ib(/./.exec),aw=Ib([].join),sw=Ib(1..toString),uw=Ib([].pop),cw=Ib([].push),lw=Ib("".replace),fw=Ib([].shift),pw=Ib("".split),hw=Ib("".slice),dw=Ib("".toLowerCase),vw=Ib([].unshift),gw="Invalid scheme",yw="Invalid host",mw="Invalid port",_w=/[a-z]/i,bw=/[\d+-.a-z]/i,ww=/\d/,xw=/^0x/i,Sw=/^[0-7]+$/,kw=/^\d+$/,Tw=/^[\da-f]+$/i,Ow=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Ew=/[\0\t\n\r #/:<>?@[\\\]^|]/,Lw=/^[\u0000-\u0020]+/,Rw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Cw=/[\t\n\r]/g,Pw=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)vw(t,e%256),e=rw(e/256);return aw(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=sw(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Aw={},jw=Ub({},Aw,{" ":1,'"':1,"<":1,">":1,"`":1}),Iw=Ub({},jw,{"#":1,"?":1,"{":1,"}":1}),Mw=Ub({},Iw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Nw=function(e,t){var r=zb(e,0);return r>32&&r<127&&!Db(t,e)?e:encodeURIComponent(e)},Fw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Dw=function(e,t){var r;return 2==e.length&&iw(_w,ow(e,0))&&(":"==(r=ow(e,1))||!t&&"|"==r)},Uw=function(e){var t;return e.length>1&&Dw(hw(e,0,2))&&(2==e.length||"/"===(t=ow(e,2))||"\\"===t||"?"===t||"#"===t)},Bw=function(e){return"."===e||"%2e"===dw(e)},Hw={},zw={},qw={},Gw={},$w={},Vw={},Yw={},Ww={},Kw={},Xw={},Jw={},Qw={},Zw={},ex={},tx={},rx={},nx={},ox={},ix={},ax={},sx={},ux=function(e,t,r){var n,o,i,a=Gb(e);if(t){if(o=this.parse(a))throw ew(o);this.searchParams=null}else{if(void 0!==r&&(n=new ux(r,!0)),o=this.parse(a,null,n))throw ew(o);(i=Qb(new Jb)).bindURL(this),this.searchParams=i}};ux.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,u=this,c=t||Hw,l=0,f="",p=!1,h=!1,d=!1;for(e=Gb(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=lw(e,Lw,""),e=lw(e,Rw,"$1")),e=lw(e,Cw,""),n=Bb(e);l<=n.length;){switch(o=n[l],c){case Hw:if(!o||!iw(_w,o)){if(t)return gw;c=qw;continue}f+=dw(o),c=zw;break;case zw:if(o&&(iw(bw,o)||"+"==o||"-"==o||"."==o))f+=dw(o);else{if(":"!=o){if(t)return gw;f="",c=qw,l=0;continue}if(t&&(u.isSpecial()!=Db(Fw,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&Fw[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=ex:u.isSpecial()&&r&&r.scheme==u.scheme?c=Gw:u.isSpecial()?c=Ww:"/"==n[l+1]?(c=$w,l++):(u.cannotBeABaseURL=!0,cw(u.path,""),c=ix)}break;case qw:if(!r||r.cannotBeABaseURL&&"#"!=o)return gw;if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=Hb(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=sx;break}c="file"==r.scheme?ex:Vw;continue;case Gw:if("/"!=o||"/"!=n[l+1]){c=Vw;continue}c=Kw,l++;break;case $w:if("/"==o){c=Xw;break}c=ox;continue;case Vw:if(u.scheme=r.scheme,o==Lb)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Hb(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())c=Yw;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Hb(r.path),u.query="",c=ax;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Hb(r.path),u.path.length--,c=ox;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Hb(r.path),u.query=r.query,u.fragment="",c=sx}break;case Yw:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=ox;continue}c=Xw}else c=Kw;break;case Ww:if(c=Kw,"/"!=o||"/"!=ow(f,l+1))continue;l++;break;case Kw:if("/"!=o&&"\\"!=o){c=Xw;continue}break;case Xw:if("@"==o){p&&(f="%40"+f),p=!0,i=Bb(f);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||d){var y=Nw(g,Mw);d?u.password+=y:u.username+=y}else d=!0}f=""}else if(o==Lb||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(p&&""==f)return"Invalid authority";l-=Bb(f).length+1,f="",c=Jw}else f+=o;break;case Jw:case Qw:if(t&&"file"==u.scheme){c=rx;continue}if(":"!=o||h){if(o==Lb||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==f)return yw;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",c=nx,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),f+=o}else{if(""==f)return yw;if(a=u.parseHost(f))return a;if(f="",c=Zw,t==Qw)return}break;case Zw:if(!iw(ww,o)){if(o==Lb||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=f){var m=tw(f,10);if(m>65535)return mw;u.port=u.isSpecial()&&m===Fw[u.scheme]?null:m,f=""}if(t)return;c=nx;continue}return mw}f+=o;break;case ex:if(u.scheme="file","/"==o||"\\"==o)c=tx;else{if(!r||"file"!=r.scheme){c=ox;continue}if(o==Lb)u.host=r.host,u.path=Hb(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=Hb(r.path),u.query="",c=ax;else{if("#"!=o){Uw(aw(Hb(n,l),""))||(u.host=r.host,u.path=Hb(r.path),u.shortenPath()),c=ox;continue}u.host=r.host,u.path=Hb(r.path),u.query=r.query,u.fragment="",c=sx}}break;case tx:if("/"==o||"\\"==o){c=rx;break}r&&"file"==r.scheme&&!Uw(aw(Hb(n,l),""))&&(Dw(r.path[0],!0)?cw(u.path,r.path[0]):u.host=r.host),c=ox;continue;case rx:if(o==Lb||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Dw(f))c=ox;else if(""==f){if(u.host="",t)return;c=nx}else{if(a=u.parseHost(f))return a;if("localhost"==u.host&&(u.host=""),t)return;f="",c=nx}continue}f+=o;break;case nx:if(u.isSpecial()){if(c=ox,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Lb&&(c=ox,"/"!=o))continue}else u.fragment="",c=sx;else u.query="",c=ax;break;case ox:if(o==Lb||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=dw(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||cw(u.path,"")):Bw(f)?"/"==o||"\\"==o&&u.isSpecial()||cw(u.path,""):("file"==u.scheme&&!u.path.length&&Dw(f)&&(u.host&&(u.host=""),f=ow(f,0)+":"),cw(u.path,f)),f="","file"==u.scheme&&(o==Lb||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)fw(u.path);"?"==o?(u.query="",c=ax):"#"==o&&(u.fragment="",c=sx)}else f+=Nw(o,Iw);break;case ix:"?"==o?(u.query="",c=ax):"#"==o?(u.fragment="",c=sx):o!=Lb&&(u.path[0]+=Nw(o,Aw));break;case ax:t||"#"!=o?o!=Lb&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":Nw(o,Aw)):(u.fragment="",c=sx);break;case sx:o!=Lb&&(u.fragment+=Nw(o,jw))}l++}},parseHost:function(e){var t,r,n;if("["==ow(e,0)){if("]"!=ow(e,e.length-1))return yw;if(t=function(e){var t,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,p=function(){return ow(e,f)};if(":"==p()){if(":"!=ow(e,1))return;f+=2,l=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&iw(Tw,p());)t=16*t+tw(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!iw(ww,p()))return;for(;iw(ww,p());){if(i=tw(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(hw(e,1,-1)),!t)return yw;this.host=t}else if(this.isSpecial()){if(e=qb(e),iw(Ow,e))return yw;if(t=function(e){var t,r,n,o,i,a,s,u=pw(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(i=10,o.length>1&&"0"==ow(o,0)&&(i=iw(xw,o)?16:8,o=hw(o,8==i?1:2)),""===o)a=0;else{if(!iw(10==i?kw:8==i?Sw:Tw,o))return e;a=tw(o,i)}cw(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=nw(256,5-t))return null}else if(a>255)return null;for(s=uw(r),n=0;n<r.length;n++)s+=r[n]*nw(256,3-n);return s}(e),null===t)return yw;this.host=t}else{if(iw(Ew,e))return yw;for(t="",r=Bb(e),n=0;n<r.length;n++)t+=Nw(r[n],Aw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Db(Fw,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Dw(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Pw(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+aw(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw ew(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new cx(e.path[0]).origin}catch(EP){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Pw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Gb(e)+":",Hw)},getUsername:function(){return this.username},setUsername:function(e){var t=Bb(Gb(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Nw(t[r],Mw)}},getPassword:function(){return this.password},setPassword:function(e){var t=Bb(Gb(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Nw(t[r],Mw)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Pw(e):Pw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Jw)},getHostname:function(){var e=this.host;return null===e?"":Pw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Qw)},getPort:function(){var e=this.port;return null===e?"":Gb(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Gb(e))?this.port=null:this.parse(e,Zw))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+aw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,nx))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Gb(e))?this.query=null:("?"==ow(e,0)&&(e=hw(e,1)),this.query="",this.parse(e,ax)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Gb(e))?("#"==ow(e,0)&&(e=hw(e,1)),this.fragment="",this.parse(e,sx)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var cx=function(e){var t=Fb(this,lx),r=Vb(arguments.length,1)>1?arguments[1]:void 0,n=Kb(t,new ux(e,!1,r));Cb||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},lx=cx.prototype,fx=function(e,t){return{get:function(){return Xb(this)[e]()},set:t&&function(e){return Xb(this)[t](e)},configurable:!0,enumerable:!0}};if(Cb&&(Nb(lx,"href",fx("serialize","setHref")),Nb(lx,"origin",fx("getOrigin")),Nb(lx,"protocol",fx("getProtocol","setProtocol")),Nb(lx,"username",fx("getUsername","setUsername")),Nb(lx,"password",fx("getPassword","setPassword")),Nb(lx,"host",fx("getHost","setHost")),Nb(lx,"hostname",fx("getHostname","setHostname")),Nb(lx,"port",fx("getPort","setPort")),Nb(lx,"pathname",fx("getPathname","setPathname")),Nb(lx,"search",fx("getSearch","setSearch")),Nb(lx,"searchParams",fx("getSearchParams")),Nb(lx,"hash",fx("getHash","setHash"))),Mb(lx,"toJSON",(function(){return Xb(this).serialize()}),{enumerable:!0}),Mb(lx,"toString",(function(){return Xb(this).serialize()}),{enumerable:!0}),Zb){var px=Zb.createObjectURL,hx=Zb.revokeObjectURL;px&&Mb(cx,"createObjectURL",jb(px,Zb)),hx&&Mb(cx,"revokeObjectURL",jb(hx,Zb))}$b(cx,"URL"),Rb({global:!0,constructor:!0,forced:!Pb,sham:!Cb},{URL:cx});var dx=Er,vx=o,gx=bh,yx=Vn,mx=dm,_x=ie("URL");dx({target:"URL",stat:!0,forced:!(mx&&vx((function(){_x.canParse()})))},{canParse:function(e){var t=gx(arguments.length,1),r=yx(e),n=t<2||void 0===arguments[1]?void 0:yx(arguments[1]);try{return!!new _x(r,n)}catch(EP){return!1}}});var bx=t(ee.URL),wx=Er,xx=ro.indexOf,Sx=Gl,kx=x([].indexOf),Tx=!!kx&&1/kx([1],1,-0)<0;wx({target:"Array",proto:!0,forced:Tx||!Sx("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Tx?kx(this,e,t)||0:xx(this,e,t)}});var Ox=Ll("Array").indexOf,Ex=ae,Lx=Ox,Rx=Array.prototype,Cx=t((function(e){var t=e.indexOf;return e===Rx||Ex(Rx,e)&&t===Rx.indexOf?Lx:t})),Px=L,Ax=Rr,jx=TypeError,Ix=Object.getOwnPropertyDescriptor,Mx=Px&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(EP){return EP instanceof TypeError}}(),Nx=Oe,Fx=TypeError,Dx=function(e,t){if(!delete e[t])throw Fx("Cannot delete property "+Nx(t)+" of "+Nx(e))},Ux=Er,Bx=We,Hx=Jn,zx=jr,qx=Dr,Gx=Mx?function(e,t){if(Ax(e)&&!Ix(e,"length").writable)throw jx("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$x=Br,Vx=Tn,Yx=Gr,Wx=Dx,Kx=Rn("splice"),Xx=Math.max,Jx=Math.min;Ux({target:"Array",proto:!0,forced:!Kx},{splice:function(e,t){var r,n,o,i,a,s,u=Bx(this),c=qx(u),l=Hx(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Jx(Xx(zx(t),0),c-l)),$x(c+r-n),o=Vx(u,n),i=0;i<n;i++)(a=l+i)in u&&Yx(o,i,u[a]);if(o.length=n,r<n){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Wx(u,s);for(i=c;i>c-n+r;i--)Wx(u,i-1)}else if(r>n)for(i=c-n;i>l;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Wx(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return Gx(u,c-n+r),o}});var Qx=Ll("Array").splice,Zx=ae,eS=Qx,tS=Array.prototype,rS=t((function(e){var t=e.splice;return e===tS||Zx(tS,e)&&t===tS.splice?eS:t}));Er({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var nS=t(ee.Number.isNaN),oS="\t\n\v\f\r \u2028\u2029\ufeff",iS=Y,aS=Vn,sS=oS,uS=v("".replace),cS=RegExp("^["+sS+"]+"),lS=RegExp("(^|[^"+sS+"])["+sS+"]+$"),fS=function(e){return function(t){var r=aS(iS(t));return 1&e&&(r=uS(r,cS,"")),2&e&&(r=uS(r,lS,"$1")),r}},pS={start:fS(1),end:fS(2),trim:fS(3)},hS=n,dS=o,vS=v,gS=Vn,yS=pS.trim,mS=oS,_S=hS.parseInt,bS=hS.Symbol,wS=bS&&bS.iterator,xS=/^[+-]?0x/i,SS=vS(xS.exec),kS=8!==_S(mS+"08")||22!==_S(mS+"0x16")||wS&&!dS((function(){_S(Object(wS))}))?function(e,t){var r=yS(gS(e));return _S(r,t>>>0||(SS(xS,r)?16:10))}:_S;Er({global:!0,forced:parseInt!=kS},{parseInt:kS});var TS=t(ee.parseInt),OS=Zi.map;Er({target:"Array",proto:!0,forced:!Rn("map")},{map:function(e){return OS(this,e,arguments.length>1?arguments[1]:void 0)}});var ES=Ll("Array").map,LS=ae,RS=ES,CS=Array.prototype,PS=t((function(e){var t=e.map;return e===CS||LS(CS,e)&&t===CS.map?RS:t}));Er({target:"Array",stat:!0},{isArray:Rr});var AS=t(ee.Array.isArray),jS=t(_l),IS=Je,MS=P,NS=Z,FS=tr,DS=function(e){return void 0!==e&&(IS(e,"value")||IS(e,"writable"))},US=E,BS=ku;Er({target:"Reflect",stat:!0},{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return FS(t)===i?t[r]:(n=US.f(t,r))?DS(n)?n.value:void 0===n.get?void 0:MS(n.get,i):NS(o=BS(t))?e(o,r,i):void 0}});var HS=t(ee.Reflect.get),zS=t(sp),qS=Hm;Er({target:"Array",stat:!0,forced:!zv((function(e){Array.from(e)}))},{from:qS});var GS=t(ee.Array.from);function $S(e,t){var r=kl(e);if(Tl){var n=Tl(e);t&&(n=jl(n).call(n,(function(t){return zl(e,t).enumerable}))),r.push.apply(r,n)}return r}function VS(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?ef(r=$S(Object(o),!0)).call(r,(function(t){JS(e,t,o[t])})):pf?_f(e,pf(o)):ef(n=$S(Object(o))).call(n,(function(t){Of(e,t,zl(o,t))}))}return e}function YS(e){return(YS="function"==typeof Ef&&"symbol"==typeof jS?function(e){return typeof e}:function(e){return e&&"function"==typeof Ef&&e.constructor===Ef&&e!==Ef.prototype?"symbol":typeof e})(e)}function WS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Of(e,ek(n.key),n)}}function XS(e,t,r){return t&&KS(e.prototype,t),r&&KS(e,r),Of(e,"prototype",{writable:!1}),e}function JS(e,t,r){return(t=ek(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QS(e){return function(e){if(AS(e))return ZS(e)}(e)||function(e){if(void 0!==Ef&&null!=zS(e)||null!=e["@@iterator"])return GS(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return ZS(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return GS(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ek(e){var t=function(e,t){if("object"!==wl(e)||null===e)return e;var r=e[$y];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wl(t)?t:String(t)}var tk=Em;Er({target:"Object",stat:!0,arity:2,forced:Object.assign!==tk},{assign:tk});var rk=t(ee.Object.assign),nk={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Rf&&(n.prototype=Rf(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?py(n).call(n,1):n);return Tl?fm(o).call(o,Tl(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(nk);var ok=t(nk.exports),ik=Zi.some;Er({target:"Array",proto:!0,forced:!Gl("some")},{some:function(e){return ik(this,e,arguments.length>1?arguments[1]:void 0)}});var ak=Ll("Array").some,sk=ae,uk=ak,ck=Array.prototype,lk=t((function(e){var t=e.some;return e===ck||sk(ck,e)&&t===ck.some?uk:t})),fk=jr,pk=Vn,hk=Y,dk=RangeError,vk=v,gk=Nr,yk=Vn,mk=Y,_k=vk((function(e){var t=pk(hk(this)),r="",n=fk(e);if(n<0||n==1/0)throw dk("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),bk=vk("".slice),wk=Math.ceil,xk=function(e){return function(t,r,n){var o,i,a=yk(mk(t)),s=gk(r),u=a.length,c=void 0===n?" ":yk(n);return s<=u||""==c?a:((i=_k(c,wk((o=s-u)/c.length))).length>o&&(i=bk(i,0,o)),e?a+i:i+a)}},Sk={start:xk(!1),end:xk(!0)},kk=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),Tk=Sk.start;Er({target:"String",proto:!0,forced:kk},{padStart:function(e){return Tk(this,e,arguments.length>1?arguments[1]:void 0)}});var Ok,Ek=Ll("String").padStart,Lk=ae,Rk=Ek,Ck=String.prototype,Pk=t((function(e){var t=e.padStart;return"string"==typeof e||e===Ck||Lk(Ck,e)&&t===Ck.padStart?Rk:t})),Ak="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,jk=n,Ik=l,Mk=O,Nk=Ak,Fk=se,Dk=Ss,Uk=bh,Bk=jk.Function,Hk=/MSIE .\./.test(Fk)||Nk&&((Ok=jk.Bun.version.split(".")).length<3||0==Ok[0]&&(Ok[1]<3||3==Ok[1]&&0==Ok[2])),zk=function(e,t){var r=t?2:1;return Hk?function(n,o){var i=Uk(arguments.length,1)>r,a=Mk(n)?n:Bk(n),s=i?Dk(arguments,r):[],u=i?function(){Ik(a,this,s)}:a;return t?e(u,o):e(u)}:e},qk=Er,Gk=n,$k=zk(Gk.setInterval,!0);qk({global:!0,bind:!0,forced:Gk.setInterval!==$k},{setInterval:$k});var Vk=Er,Yk=n,Wk=zk(Yk.setTimeout,!0);Vk({global:!0,bind:!0,forced:Yk.setTimeout!==Wk},{setTimeout:Wk});var Kk=t(ee.setInterval),Xk=t(ee.setTimeout),Jk=Zi.every;Er({target:"Array",proto:!0,forced:!Gl("every")},{every:function(e){return Jk(this,e,arguments.length>1?arguments[1]:void 0)}});var Qk=Ll("Array").every,Zk=ae,eT=Qk,tT=Array.prototype,rT=t((function(e){var t=e.every;return e===tT||Zk(tT,e)&&t===tT.every?eT:t})),nT=n,oT=o,iT=Vn,aT=pS.trim,sT=oS,uT=v("".charAt),cT=nT.parseFloat,lT=nT.Symbol,fT=lT&&lT.iterator,pT=1/cT(sT+"-0")!=-1/0||fT&&!oT((function(){cT(Object(fT))}))?function(e){var t=aT(iT(e)),r=cT(t);return 0===r&&"-"==uT(t,0)?-0:r}:cT;Er({global:!0,forced:parseFloat!=pT},{parseFloat:pT});var hT=t(ee.parseFloat),dT=vu.PROPER,vT=o,gT=oS,yT=pS.trim;Er({target:"String",proto:!0,forced:function(e){return vT((function(){return!!gT[e]()||"
"!=="
"[e]()||dT&&gT[e].name!==e}))}("trim")},{trim:function(){return yT(this)}});var mT=Ll("String").trim,_T=ae,bT=mT,wT=String.prototype,xT=t((function(e){var t=e.trim;return"string"==typeof e||e===wT||_T(wT,e)&&t===wT.trim?bT:t})),ST=se.match(/firefox\/(\d+)/i),kT=!!ST&&+ST[1],TT=/MSIE|Trident/.test(se),OT=se.match(/AppleWebKit\/(\d+)\./),ET=!!OT&&+OT[1],LT=Er,RT=v,CT=Ce,PT=We,AT=Dr,jT=Dx,IT=Vn,MT=o,NT=h_,FT=Gl,DT=kT,UT=TT,BT=de,HT=ET,zT=[],qT=RT(zT.sort),GT=RT(zT.push),$T=MT((function(){zT.sort(void 0)})),VT=MT((function(){zT.sort(null)})),YT=FT("sort"),WT=!MT((function(){if(BT)return BT<70;if(!(DT&&DT>3)){if(UT)return!0;if(HT)return HT<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)zT.push({k:t+n,v:r})}for(zT.sort((function(e,t){return t.v-e.v})),n=0;n<zT.length;n++)t=zT[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));LT({target:"Array",proto:!0,forced:$T||!VT||!YT||!WT},{sort:function(e){void 0!==e&&CT(e);var t=PT(this);if(WT)return void 0===e?qT(t):qT(t,e);var r,n,o=[],i=AT(t);for(n=0;n<i;n++)n in t&>(o,t[n]);for(NT(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:IT(t)>IT(r)?1:-1}}(e)),r=AT(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)jT(t,n++);return t}});var KT=Ll("Array").sort,XT=ae,JT=KT,QT=Array.prototype,ZT=t((function(e){var t=e.sort;return e===QT||XT(QT,e)&&t===QT.sort?JT:t})),eO=Er,tO=Date,rO=v(tO.prototype.getTime);eO({target:"Date",stat:!0},{now:function(){return rO(new tO)}});var nO,oO=t(ee.Date.now),iO="undefined"!=typeof window&&window.location&&Cx(nO=window.location.href).call(nO,"xgplayerdebugger=1")>-1,aO="color: #525252; background-color: #90ee90;",sO="color: #525252; background-color: red;",uO="color: #525252; background-color: yellow; ",cO="%c[xgplayer]",lO={config:{debug:iO?3:0},logInfo:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,fm(t=[cO,aO,e]).call(t,o))},logWarn:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,fm(t=[cO,uO,e]).call(t,o))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=console)[n].apply(r,fm(t=[cO,sO,e]).call(t,i))}}},fO=function(){function e(t){WS(this,e),this.bufferedList=t}return XS(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),pO={};pO.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(t);return i.className=o,i.innerHTML=r,ef(e=kl(n)).call(e,(function(e){var r=e,o=n[e];"video"===t||"audio"===t||"live-video"===t?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},pO.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&pO.addClass(o,r),t)ef(i=kl(t)).call(i,(function(e){o.setAttribute(e,t[e])}));return o}return null}catch(a){return lO.logError("util.createDomFromHtml",a),null}},pO.hasClass=function(e,t){if(!e||!t)return!1;try{return lk(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===YS(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},pO.addClass=function(e,t){if(e&&t)try{var r;ef(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){pO.hasClass(e,t)||(e.className&&"object"===YS(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},pO.removeClass=function(e,t){if(e&&t)try{var r;ef(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(o){var n;if(pO.hasClass(e,t))ef(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===YS(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},pO.toggleClass=function(e,t){var r;e&&ef(r=t.split(/\s+/g)).call(r,(function(t){pO.hasClass(e,t)?pO.removeClass(e,t):pO.addClass(e,t)}))},pO.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===pO.typeOf(e[r]))t.push(e[r]);else if("Object"===pO.typeOf(e[r])){var n;PS(n=kl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},pO.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(n){lO.logError("util.findDom",n),0===Cx(r).call(r,"#")&&(e=t.getElementById(py(r).call(r,1)))}return e},pO.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},pO.padStart=function(e,t,r){for(var n=String(r),o=t>>0,i=Math.ceil(o/n.length),a=[],s=String(e);i--;)a.push(n);return a.join("").substring(0,o-s.length)+s},pO.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=Pk(pO).call(pO,Math.floor(e/3600),2,0),r=Pk(pO).call(pO,Math.floor((e-3600*t)/60),2,0),n=Pk(pO).call(pO,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},pO.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},pO.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},pO.deepCopy=function(e,t){var r;if("Object"===pO.typeOf(t)&&"Object"===pO.typeOf(e))return ef(r=kl(t)).call(r,(function(r){if("Object"!==pO.typeOf(t[r])||t[r]instanceof Node)if("Array"===pO.typeOf(t[r])){var n;e[r]="Array"===pO.typeOf(e[r])?fm(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:pO.deepCopy(e[r],t[r])})),e},pO.deepMerge=function(e,t){var r;return PS(r=kl(t)).call(r,(function(r){var n;"Array"===pO.typeOf(t[r])&&"Array"===pO.typeOf(e[r])?"Array"===pO.typeOf(e[r])&&(n=e[r]).push.apply(n,QS(t[r])):pO.typeOf(e[r])!==pO.typeOf(t[r])||null===e[r]||"Object"!==pO.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):pO.deepMerge(e[r],t[r])})),e},pO.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},pO.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return ef(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},pO.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=Kk(Ry(r).call(r,e),n))},pO.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},pO.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=Xk((function(){t(),pO.clearTimeout(e,n)}),r);return e._timers.push(n),n},pO.clearTimeout=function(e,t){var r=e._timers;if("Array"===pO.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){rS(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},pO.clearAllTimers=function(e){var t=e._timers;"Array"===pO.typeOf(t)&&(PS(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},pO.createImgBtn=function(e,t,r,n){var o,i,a,s,u,c,l,f,p,h,d,v,g=pO.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(rT(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(e){var t,o;return!(Cx(r).call(r,e)>-1&&Cx(n).call(n,e)>-1)||(l=hT(xT(t=py(r).call(r,0,Cx(r).call(r,e))).call(t)),f=hT(xT(o=py(n).call(n,0,Cx(n).call(n,e))).call(o)),p=e,!1)})),g.style.width=fm(i="".concat(l)).call(i,p),g.style.height=fm(a="".concat(f)).call(a,p),g.style.backgroundSize=fm(s=fm(u=fm(c="".concat(l)).call(c,p," ")).call(u,f)).call(s,p),g.style.margin="start"===e?fm(h=fm(d=fm(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,l/2)).call(h,p):"auto 5px auto 5px");return g},pO.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var o="#";e.replace(/[0-9A-F]/gi,(function(e){o+=e+e})),e=o}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(TS(e,16))})),fm(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},pO.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},pO.checkIsFunction=function(e){return e&&"function"==typeof e},pO.checkIsObject=function(e){return null!==e&&"object"===YS(e)},pO.hide=function(e){e.style.display="none"},pO.show=function(e,t){e.style.display=t||"block"},pO.isUndefined=function(e){if(null==e)return!0},pO.isNotNull=function(e){return!(null==e)},pO.setStyleFromCsstext=function(e,t){if(t)if("String"===pO.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");PS(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;PS(n=kl(t)).call(n,(function(r){e.style[r]=t[r]}))}},pO.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var o=n.replace(/\s+/g,"").split(";"),i={},a={};return PS(o).call(o,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(Cx(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:i[t[0]]=t[1])}})),e.setAttribute("style",""),PS(t=kl(a)).call(t,(function(t){e.style[t]=a[t]})),i},pO.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return PS(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},pO.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},pO.stopPropagation=function(e){e&&e.stopPropagation()},pO.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},pO.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},pO.checkTouchSupport=function(){return"ontouchstart"in window},pO.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});ZT(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var o=[];if(t)for(var i=0;i<r.length;i++){var a=o.length;if(a){var s=o[a-1].end;r[i].start-s<t?r[i].end>s&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new fO(o)},pO.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},pO.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},pO.getHostFromUrl=function(e){if("String"!==pO.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},pO.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},pO.isMSE=function(e){return!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},pO.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=TS(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=TS(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},pO.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},pO.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},pO.createPositionBar=function(e,t){var r=pO.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},pO.getTransformStyle=function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0};return fm(e=fm(t=fm(r="scale(".concat(n.scale||1,") translate(")).call(r,n.x||0,"%, ")).call(t,n.y||0,"%) rotate(")).call(e,n.rotate||0,"deg)")},pO.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360};var hO="3.0.7",dO={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},vO=XS((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};WS(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var o,i=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,s=t.currentTime,u=t.ended,c=t.src,l=t.currentSrc,f=t.media,p=f.readyState,h=f.networkState,d=r.errorCode||i.code;dO[d]&&(d=dO[d]);var v={playerVersion:hO,currentTime:s,duration:a,ended:u,readyState:p,networkState:h,src:c||l,errorType:r.errorType,errorCode:d,message:r.errorMessage||i.message,mediaError:i,originError:r.originError?r.originError.stack:"",host:pO.getHostFromUrl(c||l)};return r.ext&&PS(o=kl(r.ext)).call(o,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:hO,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)g[y[m]]=arguments[m];return g.ex=n?(n[arguments[0]]||{}).msg:"",g}}));function gO(e,t,r){for(var n,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s,u=t.call.apply(t,fm(n=[e]).call(n,i));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.call.apply(r,fm(t=[e]).call(t,o))})):r.call.apply(r,fm(s=[e]).call(s,i)))}function yO(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),Ry(r=function(){var r,o=arguments,i=this;if(n.pre)try{var a,s;(s=n.pre).call.apply(s,fm(a=[this]).call(a,py(Array.prototype).call(arguments)))}catch(y){var u,c;throw y.message=fm(u=fm(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(u,y.message),y}if(this.__hooks&&this.__hooks[e])try{var l,f,p,h=(f=this.__hooks[e]).call.apply(f,fm(l=[this,this]).call(l,py(Array.prototype).call(arguments)));if(h)if(h.then)h.then((function(e){var r;!1!==e&&gO.apply(void 0,fm(r=[i,t,n.next]).call(r,QS(o)))})).catch((function(e){throw e}));else gO.apply(void 0,fm(p=[this,t,n.next]).call(p,py(Array.prototype).call(arguments)));else if(void 0===h){var d;gO.apply(void 0,fm(d=[this,t,n.next]).call(d,py(Array.prototype).call(arguments)))}}catch(y){var v,g;throw y.message=fm(v=fm(g="[pluginName: ".concat(this.pluginName,":")).call(g,e,"] >> ")).call(v,y.message),y}else gO.apply(void 0,fm(r=[this,t,n.next]).call(r,py(Array.prototype).call(arguments)))}).call(r,this)}function mO(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function _O(e,t){var r=this.__hooks;r&&delete r[e]}function bO(e,t){var r;lO.logError(fm(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var wO=function(){function e(t){WS(this,e),pO.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&PS(t).call(t,(function(t){e.__hooks[t]=null})),Of(e,"hooks",{get:function(){var t;return e.__hooks&&PS(t=kl(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return XS(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=pO.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):AS(e)&&ef(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):bO(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):AS(e)&&ef(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):bO(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):AS(e)&&ef(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):bO(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;ef(e=["__events","__onceEvents"]).call(e,(function(e){var r;ef(r=kl(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(r=this.player).emit.apply(r,fm(t=[e]).call(t,o))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=VS(VS({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return yO.call.apply(yO,fm(r=[this]).call(r,py(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return mO.call.apply(mO,fm(r=[this]).call(r,py(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return _O.call.apply(_O,fm(r=[this]).call(r,py(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(t.pluginName=r),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,r=this.player,n=this.pluginName;this.offAll(),pO.clearAllTimers(this),pO.checkIsFunction(this.destroy)&&this.destroy(),PS(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Of(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),xO=ee,SO=l;xO.JSON||(xO.JSON={stringify:JSON.stringify});var kO=function(e,t,r){return SO(xO.JSON.stringify,null,arguments)},TO=t(kO),OO=Z,EO=_,LO=ft("match"),RO=function(e){var t;return OO(e)&&(void 0!==(t=e[LO])?!!t:"RegExp"==EO(e))},CO=TypeError,PO=ft("match"),AO=ro.includes;Er({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return AO(this,e,arguments.length>1?arguments[1]:void 0)}});var jO=Ll("Array").includes,IO=Er,MO=function(e){if(RO(e))throw CO("The method doesn't accept regular expressions");return e},NO=Y,FO=Vn,DO=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[PO]=!1,"/./"[e](t)}catch(n){}}return!1},UO=v("".indexOf);IO({target:"String",proto:!0,forced:!DO("includes")},{includes:function(e){return!!~UO(FO(NO(this)),FO(MO(e)),arguments.length>1?arguments[1]:void 0)}});var BO=Ll("String").includes,HO=ae,zO=jO,qO=BO,GO=Array.prototype,$O=String.prototype,VO=t((function(e){var t=e.includes;return e===GO||HO(GO,e)&&t===GO.includes?zO:"string"==typeof e||e===$O||HO($O,e)&&t===$O.includes?qO:t})),YO={exports:{}},WO=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),KO=o,XO=Z,JO=_,QO=WO,ZO=Object.isExtensible,eE=KO((function(){ZO(1)}))||QO?function(e){return!!XO(e)&&((!QO||"ArrayBuffer"!=JO(e))&&(!ZO||ZO(e)))}:ZO,tE=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),rE=Er,nE=v,oE=no,iE=Z,aE=Je,sE=Xt.f,uE=Bo,cE=qo,lE=eE,fE=tE,pE=!1,hE=rt("meta"),dE=0,vE=function(e){sE(e,hE,{value:{objectID:"O"+dE++,weakData:{}}})},gE=YO.exports={enable:function(){gE.enable=function(){},pE=!0;var e=uE.f,t=nE([].splice),r={};r[hE]=1,e(r).length&&(uE.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===hE){t(n,o,1);break}return n},rE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cE.f}))},fastKey:function(e,t){if(!iE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!aE(e,hE)){if(!lE(e))return"F";if(!t)return"E";vE(e)}return e[hE].objectID},getWeakData:function(e,t){if(!aE(e,hE)){if(!lE(e))return!0;if(!t)return!1;vE(e)}return e[hE].weakData},onFreeze:function(e){return fE&&pE&&lE(e)&&!aE(e,hE)&&vE(e),e}};oE[hE]=!0;var yE=YO.exports,mE=Er,_E=n,bE=yE,wE=o,xE=vr,SE=Ap,kE=ch,TE=O,OE=Z,EE=Ri,LE=Xt.f,RE=Zi.forEach,CE=L,PE=$i.set,AE=$i.getterFor,jE=Uo,IE=ii,ME=s_,NE=Kt,FE=ch,DE=G,UE=Ap,BE=hc,HE=dc,zE=ah,qE=L,GE=yE.fastKey,$E=$i.set,VE=$i.getterFor,YE={getConstructor:function(e,t,r,n){var o=e((function(e,o){FE(e,i),$E(e,{type:t,index:jE(null),first:void 0,last:void 0,size:0}),qE||(e.size=0),DE(o)||UE(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=VE(t),s=function(e,t,r){var n,o,i=a(e),s=u(e,t);return s?s.value=r:(i.last=s={index:o=GE(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),qE?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},u=function(e,t){var r,n=a(e),o=GE(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return ME(i,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,qE?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),qE?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=NE(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),ME(i,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),qE&&IE(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=VE(t),i=VE(n);BE(e,t,(function(e,t){$E(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?HE("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,HE(void 0,!0))}),r?"entries":"values",!r,!0),zE(t)}};(function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=_E[e],u=s&&s.prototype,c={};if(CE&&TE(s)&&(i||u.forEach&&!wE((function(){(new s).entries().next()})))){var l=(n=t((function(t,r){PE(kE(t,l),{type:e,collection:new s}),null!=r&&SE(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,f=AE(e);RE(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||i&&"clear"==e||xE(l,e,(function(r,n){var o=f(this).collection;if(!t&&i&&!OE(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||LE(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,o,a),bE.enable();EE(n,e,!1,!0),c[e]=n,mE({global:!0,forced:!0},c),i||r.setStrong(n,e,o)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),YE);var WE=ee.Map,KE=Kt,XE=P,JE=Ce,QE=hh,ZE=G,eL=Ap,tL=[].push,rL=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return QE(this),(t=void 0!==a)&&JE(a),ZE(e)?new this:(r=[],t?(n=0,o=KE(a,i>2?arguments[2]:void 0),eL(e,(function(e){XE(tL,r,o(e,n++))}))):eL(e,tL,{that:r}),new this(r))};Er({target:"Map",stat:!0,forced:!0},{from:rL});var nL=Ss,oL=function(){return new this(nL(arguments))};Er({target:"Map",stat:!0,forced:!0},{of:oL});var iL=Oe,aL=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(iL(e)+" is not a map")},sL=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},uL=ie("Map"),cL={Map:uL,set:sL("set",2),get:sL("get",1),has:sL("has",1),remove:sL("delete",1),proto:uL.prototype},lL=aL,fL=cL.remove;Er({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=lL(this),r=!0,n=0,o=arguments.length;n<o;n++)e=fL(t,arguments[n]),r=r&&e;return!!r}});var pL=aL,hL=cL.get,dL=cL.has,vL=cL.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=pL(this);return dL(o,e)?(r=hL(o,e),"update"in t&&(r=t.update(r,e,o),vL(o,e,r)),r):(n=t.insert(e,o),vL(o,e,n),n)}});var gL=P,yL=function(e,t,r){for(var n,o,i=r||e.next;!(n=gL(i,e)).done;)if(void 0!==(o=t(n.value)))return o},mL=function(e,t,r){return r?yL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},_L=Kt,bL=aL,wL=mL;Er({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=bL(this),r=_L(e,arguments.length>1?arguments[1]:void 0);return!1!==wL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var xL=Kt,SL=aL,kL=mL,TL=cL.Map,OL=cL.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=SL(this),r=xL(e,arguments.length>1?arguments[1]:void 0),n=new TL;return kL(t,(function(e,o){r(e,o,t)&&OL(n,o,e)})),n}});var EL=Kt,LL=aL,RL=mL;Er({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=LL(this),r=EL(e,arguments.length>1?arguments[1]:void 0),n=RL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var CL=Kt,PL=aL,AL=mL;Er({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=PL(this),r=CL(e,arguments.length>1?arguments[1]:void 0),n=AL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var jL=Er,IL=P,ML=O,NL=Ce,FL=Ap,DL=cL.Map,UL=v([].push);jL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(ML(this)?this:DL);NL(t);var n=NL(r.has),o=NL(r.get),i=NL(r.set);return FL(e,(function(e){var a=t(e);IL(n,r,a)?UL(IL(o,r,a),e):IL(i,r,a,[e])})),r}});var BL=function(e,t){return e===t||e!=e&&t!=t},HL=aL,zL=mL;Er({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===zL(HL(this),(function(t){if(BL(t,e))return!0}),!0)}});var qL=P,GL=Ap,$L=O,VL=Ce,YL=cL.Map;Er({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new($L(this)?this:YL);VL(t);var n=VL(r.set);return GL(e,(function(e){qL(n,r,t(e),e)})),r}});var WL=aL,KL=mL;Er({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=KL(WL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var XL=Kt,JL=aL,QL=mL,ZL=cL.Map,eR=cL.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=JL(this),r=XL(e,arguments.length>1?arguments[1]:void 0),n=new ZL;return QL(t,(function(e,o){eR(n,r(e,o,t),e)})),n}});var tR=Kt,rR=aL,nR=mL,oR=cL.Map,iR=cL.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=rR(this),r=tR(e,arguments.length>1?arguments[1]:void 0),n=new oR;return nR(t,(function(e,o){iR(n,o,r(e,o,t))})),n}});var aR=aL,sR=Ap,uR=cL.set;Er({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=aR(this),r=arguments.length,n=0;n<r;)sR(arguments[n++],(function(e,r){uR(t,e,r)}),{AS_ENTRIES:!0});return t}});var cR=Ce,lR=aL,fR=mL,pR=TypeError;Er({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=lR(this),r=arguments.length<2,n=r?void 0:arguments[1];if(cR(e),fR(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw pR("Reduce of empty map with no initial value");return n}});var hR=Kt,dR=aL,vR=mL;Er({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=dR(this),r=hR(e,arguments.length>1?arguments[1]:void 0);return!0===vR(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var gR=Ce,yR=aL,mR=TypeError,_R=cL.get,bR=cL.has,wR=cL.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=yR(this),n=arguments.length;gR(t);var o=bR(r,e);if(!o&&n<3)throw mR("Updating absent value");var i=o?_R(r,e):gR(n>2?arguments[2]:void 0)(e,r);return wR(r,e,t(i,e,r)),r}});var xR=P,SR=Ce,kR=O,TR=tr,OR=TypeError,ER=function(e,t){var r,n=TR(this),o=SR(n.get),i=SR(n.has),a=SR(n.set),s=arguments.length>2?arguments[2]:void 0;if(!kR(t)&&!kR(s))throw OR("At least one callback required");return xR(i,n,e)?(r=xR(o,n,e),kR(t)&&(r=t(r),xR(a,n,e,r))):kR(s)&&(r=s(),xR(a,n,e,r)),r};Er({target:"Map",proto:!0,real:!0,forced:!0},{upsert:ER}),Er({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:ER});var LR=t(WE);function RR(e,t){var r=kl(e);if(Tl){var n=Tl(e);t&&(n=jl(n).call(n,(function(t){return zl(e,t).enumerable}))),r.push.apply(r,n)}return r}function CR(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?ef(r=RR(Object(o),!0)).call(r,(function(t){DR(e,t,o[t])})):pf?_f(e,pf(o)):ef(n=RR(Object(o))).call(n,(function(t){Of(e,t,zl(o,t))}))}return e}function PR(){PR=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Of||function(e,t,r){e[t]=r.value},o="function"==typeof Ef?Ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(E){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Rf(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,(function(){return this}));var g=jf&&jf(jf(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=Rf(v);function m(e){var t;ef(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var u=l(e[n],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==wl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],ef(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=u(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return If?If(e,d):(e.__proto__=d,u(e,s,"GeneratorFunction")),e.prototype=Rf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Dg);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),u(y,s,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Yg(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,ef(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+py(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function AR(e){return(AR="function"==typeof Ef&&"symbol"==typeof jS?function(e){return typeof e}:function(e){return e&&"function"==typeof Ef&&e.constructor===Ef&&e!==Ef.prototype?"symbol":typeof e})(e)}function jR(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(EP){return void r(EP)}s.done?t(u):Dg.resolve(u).then(n,o)}function IR(e){return function(){var t=this,r=arguments;return new Dg((function(n,o){var i=e.apply(t,r);function a(e){jR(i,n,o,a,s,"next",e)}function s(e){jR(i,n,o,a,s,"throw",e)}a(void 0)}))}}function MR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Of(e,JR(n.key),n)}}function FR(e,t,r){return t&&NR(e.prototype,t),r&&NR(e,r),Of(e,"prototype",{writable:!1}),e}function DR(e,t,r){return(t=JR(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Rf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Of(e,"prototype",{writable:!1}),t&&HR(e,t)}function BR(e){var t;return(BR=If?Ry(t=jf).call(t):function(e){return e.__proto__||jf(e)})(e)}function HR(e,t){var r;return(HR=If?Ry(r=If).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function zR(){if("undefined"==typeof Reflect||!Gy)return!1;if(Gy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Gy(Boolean,[],(function(){}))),!0}catch(e){return!1}}function qR(e,t,r){var n;zR()?qR=Ry(n=Gy).call(n):qR=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Ry(Function).apply(e,n));return r&&HR(o,r.prototype),o};return qR.apply(null,arguments)}function GR(e){var t="function"==typeof LR?new LR:void 0;return GR=function(e){if(null===e||(r=e,-1===Cx(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return qR(e,arguments,BR(this).constructor)}return o.prototype=Rf(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),HR(o,e)},GR(e)}function $R(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=kl(e);for(n=0;n<i.length;n++)r=i[n],Cx(t).call(t,r)>=0||(o[r]=e[r]);return o}(e,t);if(Tl){var i=Tl(e);for(n=0;n<i.length;n++)r=i[n],Cx(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function VR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YR(e){var t=zR();return function(){var r,n=BR(e);if(t){var o=BR(this).constructor;r=Gy(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VR(e)}(this,r)}}function WR(){var e;"undefined"!=typeof Reflect&&HS?WR=Ry(e=HS).call(e):WR=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=BR(e)););return e}(e,t);if(n){var o=zl(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return WR.apply(this,arguments)}function KR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XR(e,t){var r=void 0!==Ef&&zS(e)||e["@@iterator"];if(!r){if(AS(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return KR(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?GS(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KR(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function JR(e){var t=function(e,t){if("object"!==wl(e)||null===e)return e;var r=e[$y];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wl(t)?t:String(t)}var QR=Ce,ZR=We,eC=q,tC=Dr,rC=TypeError,nC=function(e){return function(t,r,n,o){QR(r);var i=ZR(t),a=eC(i),s=tC(i),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw rC("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},oC={left:nC(!1),right:nC(!0)}.left;Er({target:"Array",proto:!0,forced:!th&&de>79&&de<83||!Gl("reduce")},{reduce:function(e){var t=arguments.length;return oC(this,e,t,t>1?arguments[1]:void 0)}});var iC,aC=Ll("Array").reduce,sC=ae,uC=aC,cC=Array.prototype,lC=t((function(e){var t=e.reduce;return e===cC||sC(cC,e)&&t===cC.reduce?uC:t})),fC="network",pC="network_timeout",hC="network_forbidden",dC="network_notfound",vC="network_range_not_satisfiable",gC="demux",yC="remux",mC="media",_C="drm",bC="other",wC="runtime",xC=(DR(iC={},"manifest",{HLS:1100,DASH:1200}),DR(iC,fC,2100),DR(iC,pC,2101),DR(iC,hC,2103),DR(iC,dC,2104),DR(iC,vC,2116),DR(iC,gC,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),DR(iC,yC,{FMP4:4100,MP4:4200}),DR(iC,mC,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,EME_HIJACK:5301}),DR(iC,_C,{LICENSE:7100,CUSTOM_LICENSE:7200}),DR(iC,bC,8e3),DR(iC,wC,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),iC),SC=function(e){UR(r,e);var t=YR(r);function r(e,n,o,i,a){var s;return MR(this,r),(s=t.call(this,a||(null==o?void 0:o.message))).errorType=e===pC?fC:e,s.originError=o,s.ext=i,s.errorCode=xC[e][n]||xC[e],s.errorMessage=s.message,s.errorCode||(s.errorType=bC,s.errorCode=xC[s.errorType]),s}return FR(r,null,[{key:"create",value:function(e,t,n,o,i){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=bC),new r(e,t,n,o,i))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?pC:fC,null,e instanceof Error?e:null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),r}(GR(Error)),kC=1,TC=2,OC=3,EC=4,LC=["Boolean","Number","String","Undefined","Null","Date","Object"],RC=function(){function e(t,r){MR(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=(null==r?void 0:r.disabled)||!0,this.logCacheLevel=(null==r?void 0:r.logCacheLevel)||3,this.logMaxSize=(null==r?void 0:r.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return FR(e,[{key:"debug",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,fm(t=[kC]).call(t,i)),e.disabled||(n=console).debug.apply(n,fm(r=[this._prefix,CC()]).call(r,i))}},{key:"log",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,fm(t=[TC]).call(t,i)),e.disabled||(n=console).log.apply(n,fm(r=[this._prefix,CC()]).call(r,i))}},{key:"warn",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,fm(t=[OC]).call(t,i)),e.disabled||(n=console).warn.apply(n,fm(r=[this._prefix,CC()]).call(r,i))}},{key:"error",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,fm(t=[EC]).call(t,i)),e.disabled||(n=console).error.apply(n,fm(r=[this._prefix,CC()]).call(r,i))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=PS(n).call(n,(function(e){return AC(e)}));t=this._prefix+CC()+TO(i)}catch(s){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function CC(){return(new Date).toLocaleString()}function PC(e){var t;if("object"!==AR(e))return e;var r=py(t=Object.prototype.toString.call(e)).call(t,8,-1);switch(r){case"Array":case"Uint8Array":case"ArrayBuffer":return r+"["+e.length+"]";case"Object":return"{}";default:return r}}function AC(e,t,r){var n;r||(r=1),t||(t=2);var o={};if(!e||"object"!==AR(e))return e;var i=py(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!VO(LC).call(LC,i))return i;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?o[a]=PC(e[a]):"object"===AR(e[a])?o[a]=AC(e[a],t,r+1):o[a]=e[a]);return o}}DR(RC,"disabled",!0);var jC="fetch",IC="xhr",MC="arraybuffer",NC="text",FC="json",DC=function(e){UR(r,e);var t=YR(r);function r(e,n,o,i){var a;return MR(this,r),DR(VR(a=t.call(this,i)),"retryCount",0),DR(VR(a),"isTimeout",!1),DR(VR(a),"loaderType",jC),DR(VR(a),"startTime",0),DR(VR(a),"endTime",0),DR(VR(a),"options",{}),a.url=e,a.request=n,a.response=o,a}return FR(r)}(GR(Error)),UC=Object.prototype.toString;function BC(e){if("[object Object]"!==UC.call(e))return!1;var t=jf(e);return null===t||t===Object.prototype}function HC(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function zC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qC(e,t){var r,n;if(e){if(!t)return e;var o,i=jl(r=PS(n=kl(t)).call(n,(function(e){if(null!=(o=t[e]))return AS(o)?e+="[]":o=[o],PS(o).call(o,(function(t){var r,n;return n=t,"[object Date]"===UC.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===AR(e)}(t)&&(t=TO(t)),fm(r="".concat(zC(e),"=")).call(r,zC(t))})).join("&")}))).call(r,Boolean).join("&");if(i){var a=Cx(e).call(e,"#");-1!==a&&(e=py(e).call(e,0,a)),e+=(-1===Cx(e).call(e,"?")?"?":"&")+i}return e}}function GC(e,t,r,n,o,i,a,s,u,c,l){return o=null!=o?hT(o):null,n=TS(n||"0",10),nS(n)&&(n=0),{data:e,done:t,options:{range:u,vid:c,index:s,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:oO(),priOptions:l},response:r}}function $C(e,t){return Math.round(8*e*1e3/t/1024)}var VC="error",YC="core.ttfb",WC="core.loadstart",KC="core.loadresponseheaders",XC="core.loadcomplete",JC="core.loadretry",QC="core.metadataparsed",ZC="real_time_speed",eP=2097152,tP=function(e){UR(n,e);var t,r=YR(n);function n(){var e;return MR(this,n),DR(VR(e=r.call(this)),"_abortController",null),DR(VR(e),"_timeoutTimer",null),DR(VR(e),"_reader",null),DR(VR(e),"_response",null),DR(VR(e),"_aborted",!1),DR(VR(e),"_index",-1),DR(VR(e),"_range",null),DR(VR(e),"_receivedLength",0),DR(VR(e),"_running",!1),DR(VR(e),"_logger",null),DR(VR(e),"_vid",""),DR(VR(e),"_onProcessMinLen",0),DR(VR(e),"_onCancel",null),DR(VR(e),"_priOptions",null),e}return FR(n,[{key:"load",value:function(e){var t,r=this,n=e.url,o=e.vid,i=e.timeout,a=e.responseType,s=e.onProgress,u=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,p=e.transformResponse,h=e.request,d=e.params,v=e.logger,g=e.method,y=e.headers,m=e.body,_=e.mode,b=e.credentials,w=e.cache,x=e.redirect,S=e.referrer,k=e.referrerPolicy,T=e.onProcessMinLen,O=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=T,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=u,this._range=f||[0,0],this._vid=o||n,this._priOptions=O||{};var E={method:g,headers:y,body:m,mode:_,credentials:b,cache:w,redirect:x,referrer:S,referrerPolicy:k,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},L=!1;clearTimeout(this._timeoutTimer),n=qC(n,d);var R=HC(f);R&&(y=h?h.headers:E.headers=E.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",R):y.Range=R),i&&(this._timeoutTimer=Xk((function(){if(L=!0,r.cancel(),c){var e=new DC(n,E,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),i));var C=oO();return this._logger.debug("[fetch load start], index,",u,",range,",f),new Dg((function(e,t){fetch(h||n,h?void 0:E).then(function(){var o=IR(PR().mark((function o(i){var c,l,h,d;return PR().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=i,!r._aborted&&r._running){o.next=4;break}return o.abrupt("return");case 4:if(p&&(i=p(i,n)||i),i.ok){o.next=7;break}throw new DC(n,E,i,"bad network response");case 7:if(c=oO(),a!==NC){o.next=15;break}return o.next=11,i.text();case 11:l=o.sent,r._running=!1,o.next=37;break;case 15:if(a!==FC){o.next=22;break}return o.next=18,i.json();case 18:l=o.sent,r._running=!1,o.next=37;break;case 22:if(!s){o.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(i,s,C,c),o.abrupt("return");case 29:return o.next=31,i.arrayBuffer();case 31:l=o.sent,l=new Uint8Array(l),r._running=!1,h=oO()-C,d=$C(l.byteLength,h),r.emit(ZC,{speed:d,len:l.byteLength,time:h,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",u,",range,",f),e(GC(l,!0,i,i.headers.get("Content-Length"),i.headers.get("age"),C,c,u,f,r._vid,r._priOptions));case 39:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()).catch((function(e){var o;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!L||((e=e instanceof DC?e:new DC(n,E,null,null===(o=e)||void 0===o?void 0:o.message)).startTime=C,e.endTime=oO(),e.isTimeout=L,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=IR(PR().mark((function e(){return PR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(EP){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var o=this;if(!e.body||!e.body.getReader){this._running=!1;var i=new DC(e.url,"",e,"onProgress of bad response.body.getReader");return i.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(i)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(eP),this._writeIdx=0);var a,s,u,c=this._reader=e.body.getReader(),l=function(){var i=IR(PR().mark((function i(){var f,p,h,d,v,g,y,m;return PR().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=oO(),i.prev=1,i.next=4,c.read();case 4:a=i.sent,u=oO(),i.next=13;break;case 8:return i.prev=8,i.t0=i.catch(1),u=oO(),o._aborted||(o._running=!1,i.t0.options={index:o._index,range:o._range,vid:o._vid,priOptions:o._priOptions},o.reject(i.t0)),i.abrupt("return");case 13:if(p=(null===(f=o._range)||void 0===f?void 0:f.length)>0?o._range[0]:0,h=p+o._receivedLength,!o._aborted){i.next=19;break}return o._running=!1,t(void 0,!1,{range:[h,h],vid:o._vid,index:o._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:o._priOptions},e),i.abrupt("return");case 19:var _;if(d=a.value?a.value.byteLength:0,o._receivedLength+=d,o._logger.debug("【fetchLoader,onProgress call】,task,",o._range,", start,",h,", end,",p+o._receivedLength,", done,",a.done),o._onProcessMinLen>0){if(o._writeIdx+d>=o._onProcessMinLen||a.done)(v=new Uint8Array(o._writeIdx+d)).set(py(_=o._cache).call(_,0,o._writeIdx),0),d>0&&v.set(a.value,o._writeIdx),o._writeIdx=0,o._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",o._writeIdx);else if(d>0&&o._writeIdx+d<eP)o._cache.set(a.value,o._writeIdx),o._writeIdx+=d,o._logger.debug("【fetchLoader,onProgress cache】,len,",d,", writeIdx,",o._writeIdx);else if(d>0){var b;g=new Uint8Array(o._writeIdx+d+2048),o._logger.debug("【fetchLoader,onProgress extra start】,size,",o._writeIdx+d+2048,", datalen,",d,", writeIdx,",o._writeIdx),g.set(py(b=o._cache).call(b,0,o._writeIdx),0),d>0&&g.set(a.value,o._writeIdx),o._writeIdx+=d,delete o._cache,o._cache=g,o._logger.debug("【fetchLoader,onProgress extra end】,len,",d,", writeIdx,",o._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[o._range[0]+o._receivedLength-(v?v.byteLength:0),o._range[0]+o._receivedLength],vid:o._vid,index:o._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:o._priOptions},e),a.done?(y=oO()-r,m=$C(o._receivedLength,y),o.emit(ZC,{speed:m,len:o._receivedLength,time:y,vid:o._vid,index:o._index,range:o._range,priOptions:o._priOptions}),o._running=!1,o._logger.debug("[fetchLoader onProgress end],task,",o._range,",done,",a.done),o.resolve(GC(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,o._index,o._range,o._vid,o._priOptions))):l();case 25:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(){return i.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(ok);var rP=function(e){UR(r,e);var t=YR(r);function r(){var e;return MR(this,r),DR(VR(e=t.call(this)),"_xhr",null),DR(VR(e),"_aborted",!1),DR(VR(e),"_timeoutTimer",null),DR(VR(e),"_range",null),DR(VR(e),"_receivedLength",0),DR(VR(e),"_url",null),DR(VR(e),"_onProgress",null),DR(VR(e),"_index",-1),DR(VR(e),"_headers",null),DR(VR(e),"_currentChunkSizeKB",384),DR(VR(e),"_timeout",null),DR(VR(e),"_xhr",null),DR(VR(e),"_withCredentials",null),DR(VR(e),"_startTime",-1),DR(VR(e),"_loadCompleteResolve",null),DR(VR(e),"_loadCompleteReject",null),DR(VR(e),"_runing",!1),DR(VR(e),"_logger",!1),DR(VR(e),"_vid",""),DR(VR(e),"_responseType",void 0),DR(VR(e),"_credentials",void 0),DR(VR(e),"_method",void 0),DR(VR(e),"_transformResponse",void 0),DR(VR(e),"_firstRtt",void 0),DR(VR(e),"_onCancel",null),DR(VR(e),"_priOptions",null),e}return FR(r,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=qC(e.url,e.params);var r=oO();return new Dg((function(e,r){t._loadCompleteResolve=e,t._loadCompleteReject=r,t._startLoad()})).catch((function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof DC?e:new DC(t._url,t._request)).startTime=r,e.endTime=oO(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===MC&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,r=this._range[0]+this._receivedLength,n=this._range[1];t<this._range[1]-r&&(n=r+t),e=[r,n],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{var r,n;this._startTime=oO();var o=this._xhr=new XMLHttpRequest;o.open(this._method||"GET",this._url,!0),o.responseType=this._responseType,this._timeout&&(o.timeout=this._timeout),o.withCredentials=this._withCredentials,o.onload=Ry(r=this._onLoad).call(r,this),o.onreadystatechange=Ry(n=this._onReadyStatechange).call(n,this),o.onerror=function(e){var r,n,o;t._running=!1;var i=new DC(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(o=e.currentTarget)||void 0===o?void 0:o.statusText));i.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(i)},o.ontimeout=function(e){t.cancel();var r=new DC(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var i,a=this._headers||{},s=HC(e);if(s&&(a.Range=s),a)ef(i=kl(a)).call(i,(function(e){o.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),o.send(this._body)}catch(u){u.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(u)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=oO())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new DC(this._url,null,CR(CR({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var o,i=null,a=!1,s=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===MC){var u,c=new Uint8Array(e.target.response);if(o=s+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=oO()-this._startTime,f=$C(this._receivedLength,l);this.emit(ZC,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[o,s+this._receivedLength],priOptions:this._priOptions})}i=c,a=!((null===(u=this._range)||void 0===u?void 0:u.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",o,"end ",s+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,i=e.target.response;var p={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(p=this._transformResponse(p,this._url)||p),this._onProgress&&this._onProgress(i,a,{index:this._index,vid:this._vid,range:[o,s+this._receivedLength],startTime:this._startTime,endTime:oO(),priOptions:this._priOptions},p),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(GC(this._onProgress?null:i,a,p,p.headers["content-length"],p.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,WR(BR(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},o=XR(xT(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(o.s();!(r=o.n()).done;){var i=r.value.split(": ");n[i[0].toLowerCase()]=py(i).call(i,1).join(": ")}}catch(a){o.e(a)}finally{o.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(ok),nP=["retry","retryDelay","onRetryError","transformError"],oP=function(){function e(t,r){var n,o,i;MR(this,e),this.promise=((i=new Dg((function(e,t){n=e,o=t}))).used=!1,i.resolve=function(){return i.used=!0,n.apply(void 0,arguments)},i.reject=function(){return i.used=!0,o.apply(void 0,arguments)},i),this.alive=!!r.onProgress,!r.logger&&(r.logger=new RC("Loader")),this._loaderType=t,this._loader=t===jC&&window.fetch?new tP:new rP,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return FR(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,o=t.onRetryError,i=t.transformError,a=$R(t,nP),s=function(){var t=IR(PR().mark((function t(){var u,c,l;return PR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:u=t.sent,e.promise.resolve(u),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,i&&(c=i(c)||c),o&&e._retryCount>0&&o(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=Xk(s,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return s(),this.promise}},{key:"cancel",value:(t=IR(PR().mark((function e(){return PR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),e}();function iP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Dg((function(t){return Xk(t,e)}))}var aP,sP=function(e){UR(n,e);var t,r=YR(n);function n(e){var t;return MR(this,n),DR(VR(t=r.call(this,e)),"type",jC),DR(VR(t),"_queue",[]),DR(VR(t),"_alive",[]),DR(VR(t),"_currentTask",null),DR(VR(t),"_config",void 0),t._config=function(e){return CR({loaderType:jC,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:NC,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e)}(e),t._config.loaderType!==IC&&tP.isSupported()||(t.type=IC),t.log=e.logger,t}return FR(n,[{key:"isFetch",value:function(){return this.type===jC}},{key:"load",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?r=e:r.url=e||r.url||this._config.url,(r=rk({},this._config,r)).params&&(r.params=rk({},r.params)),r.headers&&BC(r.headers)&&(r.headers=rk({},r.headers)),r.body&&BC(r.body)&&(r.body=rk({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new oP(this.type,r);return n.loader.on(ZC,(function(e){t.emit(ZC,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=IR(PR().mark((function e(){var t;return PR().wrap((function(e){for(var r,n,o;;)switch(e.prev=e.next){case 0:return t=fm(r=PS(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,PS(o=this._alive).call(o,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Dg.all(t);case 6:return e.next=8,iP();case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch((function(e){}));t&&"function"==typeof t.finally&&t.finally((function(){var t,r,n;null!==(t=e._currentTask)&&void 0!==t&&t.alive&&(null===(r=e._alive)||void 0===r?void 0:r.length)>0&&(e._alive=jl(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return tP.isSupported()}}]),n}(ok),uP="core.rtcstatechange",cP={},lP={},fP={exports:{}},pP=fP.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};ef(aP=kl(pP)).call(aP,(function(e){var t=pP[e];ef(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var hP=fP.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(n.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},o=hP,i=Ry(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},s=[],u=a;return ef(t=jl(r=e.split(/(\r\n|\r|\n)/)).call(r,i)).call(t,(function(e){var t=e[0],r=py(e).call(e,2);"m"===t&&(s.push({rtp:[],fmtp:[]}),u=s[s.length-1]);for(var i=0;i<(o[t]||[]).length;i+=1){var a=o[t][i];if(a.reg.test(r))return n(a,u,r)}})),a.media=s,a};var a=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};e.parseParams=function(e){var t;return lC(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return PS(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],o=PS(t=e.split(" ")).call(t,r),i=0;i<o.length;i+=3)n.push({component:o[i],ip:o[i+1],port:o[i+2]});return n},e.parseImageAttributes=function(e){var t;return PS(t=e.split(" ")).call(t,(function(e){var t;return lC(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return PS(t=e.split(";")).call(t,(function(e){var t;return PS(t=e.split(",")).call(t,(function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}}(lP);var dP=hP,vP=/%[sdv%]/g,gP=function(e){var t=1,r=arguments,n=r.length;return e.replace(vP,(function(e){if(t>=n)return e;var o=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},yP=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var i=t.names[o];t.name?n.push(r[t.name][i]):n.push(r[t.names[o]])}else n.push(r[t.name]);return gP.apply(null,n)},mP=["v","o","s","i","u","e","p","c","b","t","r","z","a"],_P=["i","c","b","a"],bP=lP,wP=function(e,t){var r,n;t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),ef(r=e.media).call(r,(function(e){null==e.payloads&&(e.payloads="")}));var o=t.outerOrder||mP,i=t.innerOrder||_P,a=[];return ef(o).call(o,(function(t){var r;ef(r=dP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(yP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;ef(n=e[r.push]).call(n,(function(e){a.push(yP(t,r,e))}))}}))})),ef(n=e.media).call(n,(function(e){a.push(yP("m",dP.m[0],e)),ef(i).call(i,(function(t){var r;ef(r=dP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(yP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;ef(n=e[r.push]).call(n,(function(e){a.push(yP(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function xP(e){return new Dg((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n;t((n=[],ef(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e)})),PS(n).call(n,(function(e){var t=r.get(e.codecId),n=r.get(e.trackId);return{type:e.mediaType,inboundRtp:e,codec:t,track:n}}))))}))})).catch((function(){}))}cP.write=wP,cP.parse=bP.parse,cP.parseParams=bP.parseParams,cP.parseFmtpConfig=bP.parseFmtpConfig,cP.parsePayloads=bP.parsePayloads,cP.parseRemoteCandidates=bP.parseRemoteCandidates,cP.parseImageAttributes=bP.parseImageAttributes,cP.parseSimulcastStreamList=bP.parseSimulcastStreamList;var SP=new RC("rts"),kP=function(e){tm(o,e);var t,r,n=im(o);function o(e){var t;return Jy(this,o),em(om(t=n.call(this)),"_url",""),em(om(t),"_pc",null),em(om(t),"_audioTransceicer",null),em(om(t),"_videoTransceicer",null),em(om(t),"_mediaStream",null),em(om(t),"_media",null),em(om(t),"_opts",null),em(om(t),"_loader",null),em(om(t),"_retry",0),em(om(t),"_waitingTimer",0),em(om(t),"_rctConnectStartTs",0),em(om(t),"_onTrack",(function(e){if(SP.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track,!t._mediaStream){t._mediaStream=new MediaStream,t._media.srcObject=t._mediaStream;var r=t._media.play();r&&r.catch&&r.catch((function(e){}))}t._mediaStream.addTrack(e.track)})),em(om(t),"_mockWaitingByTimeupdate",(function(){var e,r;"connected"!==(null===(e=t._pc)||void 0===e?void 0:e.connectionState)&&"connected"!==(null===(r=t._pc)||void 0===r?void 0:r.iceConnectionState)||(clearTimeout(t._waitingTimer),t._waitingTimer=Xk((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),em(om(t),"_onLoadedData",(function(){SP.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(QC,{type:"video",elapsed:oO()-t._rctConnectStartTs,meta:e.video}),t.emit(QC,{type:"audio",elapsed:oO()-t._rctConnectStartTs,meta:e.audio})}))})),em(om(t),"_onLoaderRetry",(function(e,r){t.emit(JC,{error:SC.network(e),retryTime:r})})),t._opts=function(e){return Yy({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,delayHint:0},e)}(e),t._media=t._opts.media,t._loader=new sP(Yy(Yy({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:SP})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t}return Zy(o,[{key:"pc",get:function(){return this._pc}},{key:"audioTrack",get:function(){return this._audio}},{key:"videoTack",get:function(){return this._video}},{key:"getStats",value:function(){return xP(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return function(e){var t,r,n,o,i,a,s,u,c,l,f,p,h,d,v,g,y,m,_,b,w,x,S,k,T,O,E,L,R,C=null==e?void 0:jl(e).call(e,(function(e){return"video"===e.type}))[0],P=null==e?void 0:jl(e).call(e,(function(e){return"audio"===e.type}))[0];return{video:C?{codec:null===(t=C.codec)||void 0===t?void 0:t.mimeType,payloadType:null===(r=C.codec)||void 0===r?void 0:r.payloadType,sdpFmtpLine:null===(n=C.codec)||void 0===n?void 0:n.sdpFmtpLine,bytesReceived:null===(o=C.inboundRtp)||void 0===o?void 0:o.bytesReceived,firCount:null===(i=C.inboundRtp)||void 0===i?void 0:i.firCount,pliCount:null===(a=C.inboundRtp)||void 0===a?void 0:a.pliCount,frameHeight:null===(s=C.inboundRtp)||void 0===s?void 0:s.frameHeight,frameWidth:null===(u=C.inboundRtp)||void 0===u?void 0:u.frameWidth,framesDecoded:null===(c=C.inboundRtp)||void 0===c?void 0:c.framesDecoded,framesDropped:null===(l=C.inboundRtp)||void 0===l?void 0:l.framesDropped,framesPerSecond:null===(f=C.inboundRtp)||void 0===f?void 0:f.framesPerSecond,framesReceived:null===(p=C.inboundRtp)||void 0===p?void 0:p.framesReceived,jitter:null===(h=C.inboundRtp)||void 0===h?void 0:h.jitter,jitterBufferDelay:null===(d=C.inboundRtp)||void 0===d?void 0:d.jitterBufferDelay,keyFramesDecoded:null===(v=C.inboundRtp)||void 0===v?void 0:v.keyFramesDecoded,nackCount:null===(g=C.inboundRtp)||void 0===g?void 0:g.nackCount,packetsLost:null===(y=C.inboundRtp)||void 0===y?void 0:y.packetsLost,packetsReceived:null===(m=C.inboundRtp)||void 0===m?void 0:m.packetsReceived}:void 0,audio:P?{codec:null===(_=P.codec)||void 0===_?void 0:_.mimeType,payloadType:null===(b=P.codec)||void 0===b?void 0:b.payloadType,sdpFmtpLine:null===(w=P.codec)||void 0===w?void 0:w.sdpFmtpLine,bytesReceived:null===(x=P.inboundRtp)||void 0===x?void 0:x.bytesReceived,audioLevel:null===(S=P.inboundRtp)||void 0===S?void 0:S.audioLevel,jitter:null===(k=P.inboundRtp)||void 0===k?void 0:k.jitter,jitterBufferDelay:null===(T=P.inboundRtp)||void 0===T?void 0:T.jitterBufferDelay,packetsLost:null===(O=P.inboundRtp)||void 0===O?void 0:O.packetsLost,packetsReceived:null===(E=P.inboundRtp)||void 0===E?void 0:E.packetsReceived,totalSamplesDuration:null===(L=P.inboundRtp)||void 0===L?void 0:L.totalSamplesDuration,totalSamplesReceived:null===(R=P.inboundRtp)||void 0===R?void 0:R.totalSamplesReceived}:void 0}}(e)}))}},{key:"load",value:(r=Xy(Wy().mark((function e(t){var r,n=this;return Wy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._disconnect(),this._url=t,this._retry=this._opts.retryCount,(r=this._pc)&&r.close(),e.prev=5,this._pc=new RTCPeerConnection,this._bindRTCEvents(),e.next=10,this._connect(t);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),Xk((function(){return n._emitError(SC.create(bC,null,e.t0))}));case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(e){return r.apply(this,arguments)})},{key:"switchURL",value:function(e){this.load(e||this._url)}},{key:"_bindRTCEvents",value:function(){var e=this,t=this._pc;t.addEventListener("track",this._onTrack),t.addEventListener("connectionstatechange",(function(){if(SP.warn("onconnectionstatechange:",t.connectionState),e.emit(uP,{state:t.connectionState,url:e._url}),"disconnected"!==t.connectionState&&"failed"!==t.connectionState||e.emit("waiting"),"failed"===t.connectionState){if(0===e._retry)return void e._emitError(SC.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&e.emit(YC,{url:e._url,responseUrl:e._url,elapsed:oO()-e._rctConnectStartTs})}))}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=Xy(Wy().mark((function e(){var t,r,n,o,i,a,s,u,c,l,f,p;return Wy().wrap((function(e){for(var h,d,v,g;;)switch(e.prev=e.next){case 0:if(!(t=this._pc).addTransceiver){e.next=11;break}return this._audioTransceicer=t.addTransceiver("audio",{direction:"recvonly"}),this._videoTransceicer=t.addTransceiver("video",{direction:"recvonly"}),(n=this._opts.delayHint)&&(this._audioTransceicer.receiver.playoutDelayHint=n,this._audioTransceicer.receiver.jitterBufferDelayHint=n,this._videoTransceicer.receiver.playoutDelayHint=n,this._videoTransceicer.receiver.jitterBufferDelayHint=n),e.next=8,t.createOffer();case 8:r=e.sent,e.next=14;break;case 11:return e.next=13,t.createOffer({iceRestart:!0,offerToReceiveAudio:!0,offerToReceiveVideo:!0});case 13:r=e.sent;case 14:return SP.log("local offer"),SP.log(r.sdp),o=cP.parse(r.sdp),ef(h=jl(d=o.media).call(d,(function(e){return"audio"===e.type}))).call(h,(function(e){var t,r,n,o=null===(n=jl(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;o&&ef(r=e.fmtp).call(r,(function(e){e.payload===o&&(e.config="minptime=10;stereo=1;useinbandfec=1")}))})),r.sdp=cP.write(o),SP.log("local offer modified:\n",r.sdp),e.next=22,t.setLocalDescription(r);case 22:return e.prev=22,s=/_?session_id=([^&$]+)/.exec(this._url),u=s?s[1]:oO()+"",this.emit(WC,{url:this._url,offersdp:r.sdp,sessionId:u}),c=oO(),e.next=29,this._loader.load(this._url,{body:TO({sessionId:u,version:"1.0-html",localSdp:r})});case 29:if(l=e.sent,this.emit(KC,{headers:l.response.headers}),200===(null==(f=null==l?void 0:l.data)?void 0:f.code)){e.next=34;break}throw new Error(fm(v="code: ".concat(null==f?void 0:f.code,", message:")).call(v,null==f?void 0:f.message));case 34:return SP.log("answer:"),SP.log(null===(i=f.remoteSdp)||void 0===i?void 0:i.sdp),this.emit(XC,{url:this._url,elapsed:oO()-c,answersdp:null===(a=f.remoteSdp)||void 0===a?void 0:a.sdp}),p=cP.parse(f.remoteSdp.sdp),ef(g=p.media).call(g,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),f.remoteSdp.sdp=cP.write(p),SP.log("answer modified:\n",f.remoteSdp.sdp),this._rctConnectStartTs=oO(),e.next=44,this._pc.setRemoteDescription(f.remoteSdp);case 44:e.next=49;break;case 46:e.prev=46,e.t0=e.catch(22),this._emitError(SC.network(e.t0));case 49:case"end":return e.stop()}}),e,this,[[22,46]])}))),function(){return t.apply(this,arguments)})},{key:"_disconnect",value:function(){var e;null===(e=this._loader)||void 0===e||e.cancel(),this._audioTransceicer=null,this._videoTransceicer=null,this._mediaStream=null}},{key:"_emitError",value:function(e){this.emit(VC,e)}},{key:"destroy",value:function(){var e;this._disconnect(),null===(e=this._media)||void 0===e||e.removeEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media&&(this._media.srcObject=null),this._pc&&this._pc.close(),this._loader=null,this._media=null,this._pc=null}}],[{key:"enableLogger",value:function(){RC.enable()}},{key:"disableLogger",value:function(){RC.disable()}}]),o}(ok);try{localStorage.getItem("xgd")?kP.enableLogger():kP.disableLogger()}catch(EP){}function TP(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var OP=function(e){tm(n,e);var t,r=im(n);function n(){var e,t;Jy(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return em(om(t=r.call.apply(r,fm(e=[this]).call(e,i))),"_rts",null),em(om(t),"_rtsOpts",null),em(om(t),"_init",(function(){var e;null===(e=t._rts)||void 0===e||e.destroy();var r=t.player.config,n=r.rts||{};t._rtsOpts=n,t._rts=new kP(Yy({media:t.player.video},n)),t._rts.load(r.url)})),em(om(t),"_onSwitchURL",(function(e){t._rts&&(t.player.config.url=e,t._rts.switchURL(e))})),t}return Zy(n,[{key:"pc",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.pc}},{key:"videoTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.videoTack}},{key:"audioTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.audioTrack}},{key:"core",get:function(){return this._rts}},{key:"version",get:function(){return"0.2.0-alpha.3"}},{key:"beforePlayerInit",value:function(){var e,t=this;this._init(),this.player.switchURL=this._onSwitchURL,null===(e=this.player)||void 0===e||e.useHooks("replay",(function(){var e;return null===(e=t._rts)||void 0===e?void 0:e.switchURL()})),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),this._transErrorEvent(),this._transCoreEvent(WC),this._transCoreEvent(XC),this._transCoreEvent(YC),this._transCoreEvent(KC),this._transCoreEvent(JC),this._transCoreEvent(QC),this._transCoreEvent(uP);try{wO.defineGetterOrSetter(this.player,{__url:{get:function(){try{return bx.createObjectURL(new MediaSource)}catch(n){var e,r;null!==(e=t.player)&&void 0!==e&&null!==(r=e.video)&&void 0!==r&&r.srcObject||(t.player.video.srcObject=new MediaStream)}}}})}catch(r){}}},{key:"getStats",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStats()}},{key:"getStatsSnapshoot",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStatsSnapshoot()}},{key:"_transErrorEvent",value:function(){var e=this;this._rts.on(VC,(function(t){if(e.player){var r=new vO(e.player,t),n=e._rtsOpts,o=n.backupConstruct,i=n.backupURL;if(i){var a,s=e.player;s.emit("core_event",Yy(Yy({},{url:s.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),s.emit("degrade",{url:s.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),s.unRegisterPlugin("rts"),e._rts=null,s.rts=null,null!==(a=s.video)&&void 0!==a&&a.srcObject&&(s.video.srcObject=null),s.config.url=i,o?s.registerPlugin(o).beforePlayerInit():s.video.src=i}else e.player.emit("error",r)}})),this._rts.on("waiting",(function(){var t;null===(t=e.player)||void 0===t||t.emit("waiting")}))}},{key:"_transCoreEvent",value:function(e){var t=this;this._rts.on(e,(function(r){t.player&&t.player.emit("core_event",Yy(Yy({},r),{},{eventName:e}))}))}},{key:"destroy",value:function(){var e;null===(e=this._rts)||void 0===e||e.destroy()}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return TP()}},{key:"getCapacity",value:function(){return function(){if(!TP())return Dg.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Dg.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,o,i;SP.log(t.sdp);var a=cP.parse(t.sdp),s=null===(r=a.media)||void 0===r?void 0:jl(r).call(r,(function(e){return"video"===e.type}))[0],u=null===(n=a.media)||void 0===n?void 0:jl(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==s||null===(o=s.rtp)||void 0===o?void 0:jl(o).call(o,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==u||null===(i=u.rtp)||void 0===i?void 0:jl(i).call(i,(function(e){return"opus"===e.codec})),f=null==s?void 0:s.fmtp,p=null==u?void 0:u.fmtp;return f&&PS(c).call(c,(function(e){var t;e.config=null===(t=jl(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),p&&PS(l).call(l,(function(e){var t;e.config=null===(t=jl(p).call(p,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),e.close(),{video:c,audio:l}}))}()}},{key:"isSupportedH264",value:(t=Xy(Wy().mark((function e(t){var r,o,i,a,s;return Wy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(o=e.sent,i=null===(r=o.video)||void 0===r?void 0:jl(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Cx(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:s=e.sent,i=null===(a=s.video)||void 0===a?void 0:jl(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Cx(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!i);case 13:return e.prev=13,e.t0=e.catch(0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(e){return t.apply(this,arguments)})}]),n}(wO);return VePlayer.register("plugin:rtm",OP),OP}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_PLUGIN_RTM__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(e){try{return!!e()}catch(t){return!0}},a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=a,s=Function.prototype,c=s.apply,l=s.call,f="object"==typeof Reflect&&Reflect.apply||(u?l.bind(c):function(){return l.apply(c,arguments)}),p=a,h=Function.prototype,d=h.call,v=p&&h.bind.bind(d,d),g=p?v:function(e){return function(){return d.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},w=b,x=g,S=function(e){if("Function"===w(e))return x(e)},k="object"==typeof document&&document.all,T={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},O=T.all,E=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===O}:function(e){return"function"==typeof e},L={},R=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=a,P=Function.prototype.call,A=C?P.bind(P):function(){return P.apply(P,arguments)},j={},I={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,N=M&&!I.call({1:2},1);j.f=N?function(e){var t=M(this,e);return!!t&&t.enumerable}:I;var F,D,U=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=i,H=b,z=Object,q=g("".split),G=B((function(){return!z("z").propertyIsEnumerable(0)}))?function(e){return"String"==H(e)?q(e,""):z(e)}:z,$=function(e){return null==e},V=$,Y=TypeError,W=function(e){if(V(e))throw Y("Can't call method on "+e);return e},K=G,X=W,J=function(e){return K(X(e))},Q=E,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Q(e)},te={},re=te,ne=o,oe=E,ie=function(e){return oe(e)?e:void 0},ae=function(e,t){return arguments.length<2?ie(re[e])||ie(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},ue=g({}.isPrototypeOf),se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=o,le=se,fe=ce.process,pe=ce.Deno,he=fe&&fe.versions||pe&&pe.version,de=he&&he.v8;de&&(D=(F=de.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!D&&le&&(!(F=le.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=le.match(/Chrome\/(\d+)/))&&(D=+F[1]);var ve=D,ge=ve,ye=i,me=o.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,xe=E,Se=ue,ke=Object,Te=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return xe(t)&&Se(t.prototype,ke(e))},Oe=String,Ee=function(e){try{return Oe(e)}catch(t){return"Object"}},Le=E,Re=Ee,Ce=TypeError,Pe=function(e){if(Le(e))return e;throw Ce(Re(e)+" is not a function")},Ae=Pe,je=$,Ie=function(e,t){var r=e[t];return je(r)?void 0:Ae(r)},Me=A,Ne=E,Fe=ee,De=TypeError,Ue={exports:{}},Be=o,He=Object.defineProperty,ze=function(e,t){try{He(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},qe="__core-js_shared__",Ge=o[qe]||ze(qe,{}),$e=Ge;(Ue.exports=function(e,t){return $e[e]||($e[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ve=Ue.exports,Ye=W,We=Object,Ke=function(e){return We(Ye(e))},Xe=Ke,Je=g({}.hasOwnProperty),Qe=Object.hasOwn||function(e,t){return Je(Xe(e),t)},Ze=g,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},ot=Ve,it=Qe,at=nt,ut=_e,st=be,ct=o.Symbol,lt=ot("wks"),ft=st?ct.for||ct:ct&&ct.withoutSetter||at,pt=function(e){return it(lt,e)||(lt[e]=ut&&it(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},ht=A,dt=ee,vt=Te,gt=Ie,yt=function(e,t){var r,n;if("string"===t&&Ne(r=e.toString)&&!Fe(n=Me(r,e)))return n;if(Ne(r=e.valueOf)&&!Fe(n=Me(r,e)))return n;if("string"!==t&&Ne(r=e.toString)&&!Fe(n=Me(r,e)))return n;throw De("Can't convert object to primitive value")},mt=TypeError,_t=pt("toPrimitive"),bt=function(e,t){if(!dt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},wt=Te,xt=function(e){var t=bt(e,"string");return wt(t)?t:t+""},St=ee,kt=o.document,Tt=St(kt)&&St(kt.createElement),Ot=function(e){return Tt?kt.createElement(e):{}},Et=Ot,Lt=!R&&!i((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Rt=R,Ct=A,Pt=j,At=U,jt=J,It=xt,Mt=Qe,Nt=Lt,Ft=Object.getOwnPropertyDescriptor;L.f=Rt?Ft:function(e,t){if(e=jt(e),t=It(t),Nt)try{return Ft(e,t)}catch(r){}if(Mt(e,t))return At(!Ct(Pt.f,e,t),e[t])};var Dt=i,Ut=E,Bt=/#|\.prototype\./,Ht=function(e,t){var r=qt[zt(e)];return r==$t||r!=Gt&&(Ut(t)?Dt(t):!!t)},zt=Ht.normalize=function(e){return String(e).replace(Bt,".").toLowerCase()},qt=Ht.data={},Gt=Ht.NATIVE="N",$t=Ht.POLYFILL="P",Vt=Ht,Yt=Pe,Wt=a,Kt=S(S.bind),Xt=function(e,t){return Yt(e),void 0===t?e:Wt?Kt(e,t):function(){return e.apply(t,arguments)}},Jt={},Qt=R&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=R,or=Lt,ir=Qt,ar=rr,ur=xt,sr=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",hr="writable";Jt.f=nr?ir?function(e,t,r){if(ar(e),t=ur(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=lr(e,t);n&&n[hr]&&(e[t]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=ur(t),ar(r),or)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Jt,vr=U,gr=R?function(e,t,r){return dr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=o,mr=f,_r=S,br=E,wr=L.f,xr=Vt,Sr=te,kr=Xt,Tr=gr,Or=Qe,Er=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Lr=function(e,t){var r,n,o,i,a,u,s,c,l,f=e.target,p=e.global,h=e.stat,d=e.proto,v=p?yr:h?yr[f]:(yr[f]||{}).prototype,g=p?Sr:Sr[f]||Tr(Sr,f,{})[f],y=g.prototype;for(i in t)n=!(r=xr(p?i:f+(h?".":"#")+i,e.forced))&&v&&Or(v,i),u=g[i],n&&(s=e.dontCallGetSet?(l=wr(v,i))&&l.value:v[i]),a=n&&s?s:t[i],n&&typeof u==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Er(a):d&&br(a)?_r(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Tr(c,"sham",!0),Tr(g,i,c),d&&(Or(Sr,o=f+"Prototype")||Tr(Sr,o,{}),Tr(Sr[o],i,a),e.real&&y&&(r||!y[i])&&Tr(y,i,a)))},Rr=b,Cr=Array.isArray||function(e){return"Array"==Rr(e)},Pr=Math.ceil,Ar=Math.floor,jr=Math.trunc||function(e){var t=+e;return(t>0?Ar:Pr)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:jr(t)},Mr=Ir,Nr=Math.min,Fr=function(e){return e>0?Nr(Mr(e),9007199254740991):0},Dr=Fr,Ur=function(e){return Dr(e.length)},Br=TypeError,Hr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},zr=xt,qr=Jt,Gr=U,$r=function(e,t,r){var n=zr(t);n in e?qr.f(e,n,Gr(0,r)):e[n]=r},Vr={};Vr[pt("toStringTag")]="z";var Yr="[object z]"===String(Vr),Wr=Yr,Kr=E,Xr=b,Jr=pt("toStringTag"),Qr=Object,Zr="Arguments"==Xr(function(){return arguments}()),en=Wr?Xr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Qr(e),Jr))?r:Zr?Xr(t):"Object"==(n=Xr(t))&&Kr(t.callee)?"Arguments":n},tn=E,rn=Ge,nn=g(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=g,un=i,sn=E,cn=en,ln=on,fn=function(){},pn=[],hn=ae("Reflect","construct"),dn=/^\s*(?:class|function)\b/,vn=an(dn.exec),gn=!dn.exec(fn),yn=function(e){if(!sn(e))return!1;try{return hn(fn,pn,e),!0}catch(t){return!1}},mn=function(e){if(!sn(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gn||!!vn(dn,ln(e))}catch(t){return!0}};mn.sham=!0;var _n=!hn||un((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,bn=Cr,wn=_n,xn=ee,Sn=pt("species"),kn=Array,Tn=function(e){var t;return bn(e)&&(t=e.constructor,(wn(t)&&(t===kn||bn(t.prototype))||xn(t)&&null===(t=t[Sn]))&&(t=void 0)),void 0===t?kn:t},On=function(e,t){return new(Tn(e))(0===t?0:t)},En=i,Ln=ve,Rn=pt("species"),Cn=function(e){return Ln>=51||!En((function(){var t=[];return(t.constructor={})[Rn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=Lr,An=i,jn=Cr,In=ee,Mn=Ke,Nn=Ur,Fn=Hr,Dn=$r,Un=On,Bn=Cn,Hn=ve,zn=pt("isConcatSpreadable"),qn=Hn>=51||!An((function(){var e=[];return e[zn]=!1,e.concat()[0]!==e})),Gn=function(e){if(!In(e))return!1;var t=e[zn];return void 0!==t?!!t:jn(e)};Pn({target:"Array",proto:!0,arity:1,forced:!qn||!Bn("concat")},{concat:function(e){var t,r,n,o,i,a=Mn(this),u=Un(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Gn(i=-1===t?a:arguments[t]))for(o=Nn(i),Fn(s+o),r=0;r<o;r++,s++)r in i&&Dn(u,s,i[r]);else Fn(s+1),Dn(u,s++,i);return u.length=s,u}});var $n=en,Vn=String,Yn=function(e){if("Symbol"===$n(e))throw TypeError("Cannot convert a Symbol value to a string");return Vn(e)},Wn={},Kn=Ir,Xn=Math.max,Jn=Math.min,Qn=function(e,t){var r=Kn(e);return r<0?Xn(r+t,0):Jn(r,t)},Zn=J,eo=Qn,to=Ur,ro=function(e){return function(t,r,n){var o,i=Zn(t),a=to(i),u=eo(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},no={includes:ro(!0),indexOf:ro(!1)},oo={},io=Qe,ao=J,uo=no.indexOf,so=oo,co=g([].push),lo=function(e,t){var r,n=ao(e),o=0,i=[];for(r in n)!io(so,r)&&io(n,r)&&co(i,r);for(;t.length>o;)io(n,r=t[o++])&&(~uo(i,r)||co(i,r));return i},fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],po=lo,ho=fo,vo=Object.keys||function(e){return po(e,ho)},go=R,yo=Qt,mo=Jt,_o=rr,bo=J,wo=vo;Wn.f=go&&!yo?Object.defineProperties:function(e,t){_o(e);for(var r,n=bo(t),o=wo(t),i=o.length,a=0;i>a;)mo.f(e,r=o[a++],n[r]);return e};var xo,So=ae("document","documentElement"),ko=nt,To=Ve("keys"),Oo=function(e){return To[e]||(To[e]=ko(e))},Eo=rr,Lo=Wn,Ro=fo,Co=oo,Po=So,Ao=Ot,jo="prototype",Io="script",Mo=Oo("IE_PROTO"),No=function(){},Fo=function(e){return"<"+Io+">"+e+"</"+Io+">"},Do=function(e){e.write(Fo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Uo=function(){try{xo=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;Uo="undefined"!=typeof document?document.domain&&xo?Do(xo):(t=Ao("iframe"),r="java"+Io+":",t.style.display="none",Po.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Fo("document.F=Object")),e.close(),e.F):Do(xo);for(var n=Ro.length;n--;)delete Uo[jo][Ro[n]];return Uo()};Co[Mo]=!0;var Bo=Object.create||function(e,t){var r;return null!==e?(No[jo]=Eo(e),r=new No,No[jo]=null,r[Mo]=e):r=Uo(),void 0===t?r:Lo.f(r,t)},Ho={},zo=lo,qo=fo.concat("length","prototype");Ho.f=Object.getOwnPropertyNames||function(e){return zo(e,qo)};var Go={},$o=Qn,Vo=Ur,Yo=$r,Wo=Array,Ko=Math.max,Xo=function(e,t,r){for(var n=Vo(e),o=$o(t,n),i=$o(void 0===r?n:r,n),a=Wo(Ko(i-o,0)),u=0;o<i;o++,u++)Yo(a,u,e[o]);return a.length=u,a},Jo=b,Qo=J,Zo=Ho.f,ei=Xo,ti="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Go.f=function(e){return ti&&"Window"==Jo(e)?function(e){try{return Zo(e)}catch(t){return ei(ti)}}(e):Zo(Qo(e))};var ri={};ri.f=Object.getOwnPropertySymbols;var ni=gr,oi=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ni(e,t,r),e},ii=Jt,ai=function(e,t,r){return ii.f(e,t,r)},ui={},si=pt;ui.f=si;var ci,li,fi,pi=te,hi=Qe,di=ui,vi=Jt.f,gi=function(e){var t=pi.Symbol||(pi.Symbol={});hi(t,e)||vi(t,e,{value:di.f(e)})},yi=A,mi=ae,_i=pt,bi=oi,wi=function(){var e=mi("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_i("toPrimitive");t&&!t[n]&&bi(t,n,(function(e){return yi(r,this)}),{arity:1})},xi=en,Si=Yr?{}.toString:function(){return"[object "+xi(this)+"]"},ki=Yr,Ti=Jt.f,Oi=gr,Ei=Qe,Li=Si,Ri=pt("toStringTag"),Ci=function(e,t,r,n){if(e){var o=r?e:e.prototype;Ei(o,Ri)||Ti(o,Ri,{configurable:!0,value:t}),n&&!ki&&Oi(o,"toString",Li)}},Pi=E,Ai=o.WeakMap,ji=Pi(Ai)&&/native code/.test(String(Ai)),Ii=o,Mi=ee,Ni=gr,Fi=Qe,Di=Ge,Ui=Oo,Bi=oo,Hi="Object already initialized",zi=Ii.TypeError,qi=Ii.WeakMap;if(ji||Di.state){var Gi=Di.state||(Di.state=new qi);Gi.get=Gi.get,Gi.has=Gi.has,Gi.set=Gi.set,ci=function(e,t){if(Gi.has(e))throw zi(Hi);return t.facade=e,Gi.set(e,t),t},li=function(e){return Gi.get(e)||{}},fi=function(e){return Gi.has(e)}}else{var $i=Ui("state");Bi[$i]=!0,ci=function(e,t){if(Fi(e,$i))throw zi(Hi);return t.facade=e,Ni(e,$i,t),t},li=function(e){return Fi(e,$i)?e[$i]:{}},fi=function(e){return Fi(e,$i)}}var Vi={set:ci,get:li,has:fi,enforce:function(e){return fi(e)?li(e):ci(e,{})},getterFor:function(e){return function(t){var r;if(!Mi(t)||(r=li(t)).type!==e)throw zi("Incompatible receiver, "+e+" required");return r}}},Yi=Xt,Wi=G,Ki=Ke,Xi=Ur,Ji=On,Qi=g([].push),Zi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,h,d=Ki(s),v=Wi(d),g=Yi(c,l),y=Xi(v),m=0,_=f||Ji,b=t?_(s,y):r||a?_(s,0):void 0;y>m;m++)if((u||m in v)&&(h=g(p=v[m],m,d),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Qi(b,p)}else switch(e){case 4:return!1;case 7:Qi(b,p)}return i?-1:n||o?o:b}},ea={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},ta=Lr,ra=o,na=A,oa=g,ia=R,aa=_e,ua=i,sa=Qe,ca=ue,la=rr,fa=J,pa=xt,ha=Yn,da=U,va=Bo,ga=vo,ya=Ho,ma=Go,_a=ri,ba=L,wa=Jt,xa=Wn,Sa=j,ka=oi,Ta=ai,Oa=Ve,Ea=oo,La=nt,Ra=pt,Ca=ui,Pa=gi,Aa=wi,ja=Ci,Ia=Vi,Ma=ea.forEach,Na=Oo("hidden"),Fa="Symbol",Da="prototype",Ua=Ia.set,Ba=Ia.getterFor(Fa),Ha=Object[Da],za=ra.Symbol,qa=za&&za[Da],Ga=ra.TypeError,$a=ra.QObject,Va=ba.f,Ya=wa.f,Wa=ma.f,Ka=Sa.f,Xa=oa([].push),Ja=Oa("symbols"),Qa=Oa("op-symbols"),Za=Oa("wks"),eu=!$a||!$a[Da]||!$a[Da].findChild,tu=ia&&ua((function(){return 7!=va(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Va(Ha,t);n&&delete Ha[t],Ya(e,t,r),n&&e!==Ha&&Ya(Ha,t,n)}:Ya,ru=function(e,t){var r=Ja[e]=va(qa);return Ua(r,{type:Fa,tag:e,description:t}),ia||(r.description=t),r},nu=function(e,t,r){e===Ha&&nu(Qa,t,r),la(e);var n=pa(t);return la(r),sa(Ja,n)?(r.enumerable?(sa(e,Na)&&e[Na][n]&&(e[Na][n]=!1),r=va(r,{enumerable:da(0,!1)})):(sa(e,Na)||Ya(e,Na,da(1,{})),e[Na][n]=!0),tu(e,n,r)):Ya(e,n,r)},ou=function(e,t){la(e);var r=fa(t),n=ga(r).concat(su(r));return Ma(n,(function(t){ia&&!na(iu,r,t)||nu(e,t,r[t])})),e},iu=function(e){var t=pa(e),r=na(Ka,this,t);return!(this===Ha&&sa(Ja,t)&&!sa(Qa,t))&&(!(r||!sa(this,t)||!sa(Ja,t)||sa(this,Na)&&this[Na][t])||r)},au=function(e,t){var r=fa(e),n=pa(t);if(r!==Ha||!sa(Ja,n)||sa(Qa,n)){var o=Va(r,n);return!o||!sa(Ja,n)||sa(r,Na)&&r[Na][n]||(o.enumerable=!0),o}},uu=function(e){var t=Wa(fa(e)),r=[];return Ma(t,(function(e){sa(Ja,e)||sa(Ea,e)||Xa(r,e)})),r},su=function(e){var t=e===Ha,r=Wa(t?Qa:fa(e)),n=[];return Ma(r,(function(e){!sa(Ja,e)||t&&!sa(Ha,e)||Xa(n,Ja[e])})),n};aa||(za=function(){if(ca(qa,this))throw Ga("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ha(arguments[0]):void 0,t=La(e),r=function(e){this===Ha&&na(r,Qa,e),sa(this,Na)&&sa(this[Na],t)&&(this[Na][t]=!1),tu(this,t,da(1,e))};return ia&&eu&&tu(Ha,t,{configurable:!0,set:r}),ru(t,e)},ka(qa=za[Da],"toString",(function(){return Ba(this).tag})),ka(za,"withoutSetter",(function(e){return ru(La(e),e)})),Sa.f=iu,wa.f=nu,xa.f=ou,ba.f=au,ya.f=ma.f=uu,_a.f=su,Ca.f=function(e){return ru(Ra(e),e)},ia&&Ta(qa,"description",{configurable:!0,get:function(){return Ba(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:za}),Ma(ga(Za),(function(e){Pa(e)})),ta({target:Fa,stat:!0,forced:!aa},{useSetter:function(){eu=!0},useSimple:function(){eu=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:function(e,t){return void 0===t?va(e):ou(va(e),t)},defineProperty:nu,defineProperties:ou,getOwnPropertyDescriptor:au}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:uu}),Aa(),ja(za,Fa),Ea[Na]=!0;var cu=_e&&!!Symbol.for&&!!Symbol.keyFor,lu=Lr,fu=ae,pu=Qe,hu=Yn,du=Ve,vu=cu,gu=du("string-to-symbol-registry"),yu=du("symbol-to-string-registry");lu({target:"Symbol",stat:!0,forced:!vu},{for:function(e){var t=hu(e);if(pu(gu,t))return gu[t];var r=fu("Symbol")(t);return gu[t]=r,yu[r]=t,r}});var mu=Lr,_u=Qe,bu=Te,wu=Ee,xu=cu,Su=Ve("symbol-to-string-registry");mu({target:"Symbol",stat:!0,forced:!xu},{keyFor:function(e){if(!bu(e))throw TypeError(wu(e)+" is not a symbol");if(_u(Su,e))return Su[e]}});var ku=g([].slice),Tu=Cr,Ou=E,Eu=b,Lu=Yn,Ru=g([].push),Cu=Lr,Pu=ae,Au=f,ju=A,Iu=g,Mu=i,Nu=E,Fu=Te,Du=ku,Uu=function(e){if(Ou(e))return e;if(Tu(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Ru(r,o):"number"!=typeof o&&"Number"!=Eu(o)&&"String"!=Eu(o)||Ru(r,Lu(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Tu(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},Bu=_e,Hu=String,zu=Pu("JSON","stringify"),qu=Iu(/./.exec),Gu=Iu("".charAt),$u=Iu("".charCodeAt),Vu=Iu("".replace),Yu=Iu(1..toString),Wu=/[\uD800-\uDFFF]/g,Ku=/^[\uD800-\uDBFF]$/,Xu=/^[\uDC00-\uDFFF]$/,Ju=!Bu||Mu((function(){var e=Pu("Symbol")();return"[null]"!=zu([e])||"{}"!=zu({a:e})||"{}"!=zu(Object(e))})),Qu=Mu((function(){return'"\\udf06\\ud834"'!==zu("\udf06\ud834")||'"\\udead"'!==zu("\udead")})),Zu=function(e,t){var r=Du(arguments),n=Uu(t);if(Nu(n)||void 0!==e&&!Fu(e))return r[1]=function(e,t){if(Nu(n)&&(t=ju(n,this,Hu(e),t)),!Fu(t))return t},Au(zu,null,r)},es=function(e,t,r){var n=Gu(r,t-1),o=Gu(r,t+1);return qu(Ku,e)&&!qu(Xu,o)||qu(Xu,e)&&!qu(Ku,n)?"\\u"+Yu($u(e,0),16):e};zu&&Cu({target:"JSON",stat:!0,arity:3,forced:Ju||Qu},{stringify:function(e,t,r){var n=Du(arguments),o=Au(Ju?Zu:zu,null,n);return Qu&&"string"==typeof o?Vu(o,Wu,es):o}});var ts=ri,rs=Ke;Lr({target:"Object",stat:!0,forced:!_e||i((function(){ts.f(1)}))},{getOwnPropertySymbols:function(e){var t=ts.f;return t?t(rs(e)):[]}}),gi("asyncIterator"),gi("hasInstance"),gi("isConcatSpreadable"),gi("iterator"),gi("match"),gi("matchAll"),gi("replace"),gi("search"),gi("species"),gi("split");var ns=wi;gi("toPrimitive"),ns();var os=ae,is=Ci;gi("toStringTag"),is(os("Symbol"),"Symbol"),gi("unscopables"),Ci(o.JSON,"JSON",!0);var as,us,ss,cs=te.Symbol,ls={},fs=R,ps=Qe,hs=Function.prototype,ds=fs&&Object.getOwnPropertyDescriptor,vs=ps(hs,"name"),gs={EXISTS:vs,PROPER:vs&&"something"===function(){}.name,CONFIGURABLE:vs&&(!fs||fs&&ds(hs,"name").configurable)},ys=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ms=Qe,_s=E,bs=Ke,ws=ys,xs=Oo("IE_PROTO"),Ss=Object,ks=Ss.prototype,Ts=ws?Ss.getPrototypeOf:function(e){var t=bs(e);if(ms(t,xs))return t[xs];var r=t.constructor;return _s(r)&&t instanceof r?r.prototype:t instanceof Ss?ks:null},Os=i,Es=E,Ls=ee,Rs=Bo,Cs=Ts,Ps=oi,As=pt("iterator"),js=!1;[].keys&&("next"in(ss=[].keys())?(us=Cs(Cs(ss)))!==Object.prototype&&(as=us):js=!0);var Is=!Ls(as)||Os((function(){var e={};return as[As].call(e)!==e}));Es((as=Is?{}:Rs(as))[As])||Ps(as,As,(function(){return this}));var Ms={IteratorPrototype:as,BUGGY_SAFARI_ITERATORS:js},Ns=Ms.IteratorPrototype,Fs=Bo,Ds=U,Us=Ci,Bs=ls,Hs=function(){return this},zs=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Fs(Ns,{next:Ds(+!n,r)}),Us(e,o,!1,!0),Bs[o]=Hs,e},qs=g,Gs=Pe,$s=E,Vs=String,Ys=TypeError,Ws=function(e,t,r){try{return qs(Gs(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Ks=rr,Xs=function(e){if("object"==typeof e||$s(e))return e;throw Ys("Can't set "+Vs(e)+" as a prototype")},Js=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ws(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ks(r),Xs(n),t?e(r,n):r.__proto__=n,r}}():void 0),Qs=Lr,Zs=A,ec=gs,tc=zs,rc=Ts,nc=Ci,oc=oi,ic=ls,ac=Ms,uc=ec.PROPER,sc=ac.BUGGY_SAFARI_ITERATORS,cc=pt("iterator"),lc="keys",fc="values",pc="entries",hc=function(){return this},dc=function(e,t,r,n,o,i,a){tc(r,t,n);var u,s,c,l=function(e){if(e===o&&v)return v;if(!sc&&e in h)return h[e];switch(e){case lc:case fc:case pc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[cc]||h["@@iterator"]||o&&h[o],v=!sc&&d||l(o),g="Array"==t&&h.entries||d;if(g&&(u=rc(g.call(new e)))!==Object.prototype&&u.next&&(nc(u,f,!0,!0),ic[f]=hc),uc&&o==fc&&d&&d.name!==fc&&(p=!0,v=function(){return Zs(d,this)}),o)if(s={values:l(fc),keys:i?v:l(lc),entries:l(pc)},a)for(c in s)(sc||p||!(c in h))&&oc(h,c,s[c]);else Qs({target:t,proto:!0,forced:sc||p},s);return a&&h[cc]!==v&&oc(h,cc,v,{name:o}),ic[t]=v,s},vc=function(e,t){return{value:e,done:t}},gc=J,yc=ls,mc=Vi;Jt.f;var _c=dc,bc=vc,wc="Array Iterator",xc=mc.set,Sc=mc.getterFor(wc);_c(Array,"Array",(function(e,t){xc(this,{type:wc,target:gc(e),index:0,kind:t})}),(function(){var e=Sc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,bc(void 0,!0)):bc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),yc.Arguments=yc.Array;var kc={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},Tc=o,Oc=en,Ec=gr,Lc=ls,Rc=pt("toStringTag");for(var Cc in kc){var Pc=Tc[Cc],Ac=Pc&&Pc.prototype;Ac&&Oc(Ac)!==Rc&&Ec(Ac,Rc,Cc),Lc[Cc]=Lc.Array}var jc=cs;gi("dispose");var Ic=jc;gi("asyncDispose");var Mc=Lr,Nc=g,Fc=ae("Symbol"),Dc=Fc.keyFor,Uc=Nc(Fc.prototype.valueOf);Mc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Dc(Uc(e))}catch(t){return!1}}});for(var Bc=Lr,Hc=Ve,zc=ae,qc=g,Gc=Te,$c=pt,Vc=zc("Symbol"),Yc=Vc.isWellKnown,Wc=zc("Object","getOwnPropertyNames"),Kc=qc(Vc.prototype.valueOf),Xc=Hc("wks"),Jc=0,Qc=Wc(Vc),Zc=Qc.length;Jc<Zc;Jc++)try{var el=Qc[Jc];Gc(Vc[el])&&$c(el)}catch(LP){}Bc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yc&&Yc(e))return!0;try{for(var t=Kc(e),r=0,n=Wc(Xc),o=n.length;r<o;r++)if(Xc[n[r]]==t)return!0}catch(LP){}return!1}}),gi("matcher"),gi("metadataKey"),gi("observable"),gi("metadata"),gi("patternMatch"),gi("replaceAll");var tl=Ic,rl=r(tl),nl=g,ol=Ir,il=Yn,al=W,ul=nl("".charAt),sl=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,o,i=il(al(t)),a=ol(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=sl(i,a))<55296||n>56319||a+1===u||(o=sl(i,a+1))<56320||o>57343?e?ul(i,a):n:e?cl(i,a,a+2):o-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},pl=fl.charAt,hl=Yn,dl=Vi,vl=dc,gl=vc,yl="String Iterator",ml=dl.set,_l=dl.getterFor(yl);vl(String,"String",(function(e){ml(this,{type:yl,string:hl(e),index:0})}),(function(){var e,t=_l(this),r=t.string,n=t.index;return n>=r.length?gl(void 0,!0):(e=pl(r,n),t.index+=e.length,gl(e,!1))}));var bl=ui.f("iterator"),wl=r(bl);function xl(e){return(xl="function"==typeof rl&&"symbol"==typeof wl?function(e){return typeof e}:function(e){return e&&"function"==typeof rl&&e.constructor===rl&&e!==rl.prototype?"symbol":typeof e})(e)}var Sl=Ke,kl=vo;Lr({target:"Object",stat:!0,forced:i((function(){kl(1)}))},{keys:function(e){return kl(Sl(e))}});var Tl=r(te.Object.keys),Ol=r(te.Object.getOwnPropertySymbols),El=ea.filter;Lr({target:"Array",proto:!0,forced:!Cn("filter")},{filter:function(e){return El(this,e,arguments.length>1?arguments[1]:void 0)}});var Ll=te,Rl=function(e){return Ll[e+"Prototype"]},Cl=Rl("Array").filter,Pl=ue,Al=Cl,jl=Array.prototype,Il=r((function(e){var t=e.filter;return e===jl||Pl(jl,e)&&t===jl.filter?Al:t})),Ml={exports:{}},Nl=Lr,Fl=i,Dl=J,Ul=L.f,Bl=R;Nl({target:"Object",stat:!0,forced:!Bl||Fl((function(){Ul(1)})),sham:!Bl},{getOwnPropertyDescriptor:function(e,t){return Ul(Dl(e),t)}});var Hl=te.Object,zl=Ml.exports=function(e,t){return Hl.getOwnPropertyDescriptor(e,t)};Hl.getOwnPropertyDescriptor.sham&&(zl.sham=!0);var ql=r(Ml.exports),Gl=i,$l=function(e,t){var r=[][e];return!!r&&Gl((function(){r.call(null,t||function(){return 1},1)}))},Vl=ea.forEach,Yl=$l("forEach")?[].forEach:function(e){return Vl(this,e,arguments.length>1?arguments[1]:void 0)};Lr({target:"Array",proto:!0,forced:[].forEach!=Yl},{forEach:Yl});var Wl=Rl("Array").forEach,Kl=en,Xl=Qe,Jl=ue,Ql=Wl,Zl=Array.prototype,ef={DOMTokenList:!0,NodeList:!0},tf=r((function(e){var t=e.forEach;return e===Zl||Jl(Zl,e)&&t===Zl.forEach||Xl(ef,Kl(e))?Ql:t})),rf=ae,nf=Ho,of=ri,af=rr,uf=g([].concat),sf=rf("Reflect","ownKeys")||function(e){var t=nf.f(af(e)),r=of.f;return r?uf(t,r(e)):t},cf=sf,lf=J,ff=L,pf=$r;Lr({target:"Object",stat:!0,sham:!R},{getOwnPropertyDescriptors:function(e){for(var t,r,n=lf(e),o=ff.f,i=cf(n),a={},u=0;i.length>u;)void 0!==(r=o(n,t=i[u++]))&&pf(a,t,r);return a}});var hf=r(te.Object.getOwnPropertyDescriptors),df={exports:{}},vf=Lr,gf=R,yf=Wn.f;vf({target:"Object",stat:!0,forced:Object.defineProperties!==yf,sham:!gf},{defineProperties:yf});var mf=te.Object,_f=df.exports=function(e,t){return mf.defineProperties(e,t)};mf.defineProperties.sham&&(_f.sham=!0);var bf=r(df.exports),wf={exports:{}},xf=Lr,Sf=R,kf=Jt.f;xf({target:"Object",stat:!0,forced:Object.defineProperty!==kf,sham:!Sf},{defineProperty:kf});var Tf=te.Object,Of=wf.exports=function(e,t,r){return Tf.defineProperty(e,t,r)};Tf.defineProperty.sham&&(Of.sham=!0);var Ef=r(wf.exports),Lf=r(tl);Lr({target:"Object",stat:!0,sham:!R},{create:Bo});var Rf=te.Object,Cf=r((function(e,t){return Rf.create(e,t)})),Pf=Ke,Af=Ts,jf=ys;Lr({target:"Object",stat:!0,forced:i((function(){Af(1)})),sham:!jf},{getPrototypeOf:function(e){return Af(Pf(e))}});var If=r(te.Object.getPrototypeOf);Lr({target:"Object",stat:!0},{setPrototypeOf:Js});var Mf=r(te.Object.setPrototypeOf),Nf=Qe,Ff=sf,Df=L,Uf=Jt,Bf=ee,Hf=gr,zf=Error,qf=g("".replace),Gf=String(zf("zxcasd").stack),$f=/\n\s*at [^:]*:[^\n]*/,Vf=$f.test(Gf),Yf=U,Wf=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yf(1,7)),7!==e.stack)})),Kf=gr,Xf=function(e,t){if(Vf&&"string"==typeof e&&!zf.prepareStackTrace)for(;t--;)e=qf(e,$f,"");return e},Jf=Wf,Qf=Error.captureStackTrace,Zf=ls,ep=pt("iterator"),tp=Array.prototype,rp=function(e){return void 0!==e&&(Zf.Array===e||tp[ep]===e)},np=en,op=Ie,ip=$,ap=ls,up=pt("iterator"),sp=function(e){if(!ip(e))return op(e,up)||op(e,"@@iterator")||ap[np(e)]},cp=A,lp=Pe,fp=rr,pp=Ee,hp=sp,dp=TypeError,vp=function(e,t){var r=arguments.length<2?hp(e):t;if(lp(r))return fp(cp(r,e));throw dp(pp(e)+" is not iterable")},gp=A,yp=rr,mp=Ie,_p=function(e,t,r){var n,o;yp(e);try{if(!(n=mp(e,"return"))){if("throw"===t)throw r;return r}n=gp(n,e)}catch(LP){o=!0,n=LP}if("throw"===t)throw r;if(o)throw n;return yp(n),r},bp=Xt,wp=A,xp=rr,Sp=Ee,kp=rp,Tp=Ur,Op=ue,Ep=vp,Lp=sp,Rp=_p,Cp=TypeError,Pp=function(e,t){this.stopped=e,this.result=t},Ap=Pp.prototype,jp=function(e,t,r){var n,o,i,a,u,s,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=bp(t,l),g=function(e){return n&&Rp(n,"normal",e),new Pp(!0,e)},y=function(e){return f?(xp(e),d?v(e[0],e[1],g):v(e[0],e[1])):d?v(e,g):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(o=Lp(e)))throw Cp(Sp(e)+" is not iterable");if(kp(o)){for(i=0,a=Tp(e);a>i;i++)if((u=y(e[i]))&&Op(Ap,u))return u;return new Pp(!1)}n=Ep(e,o)}for(s=p?e.next:n.next;!(c=wp(s,n)).done;){try{u=y(c.value)}catch(LP){Rp(n,"throw",LP)}if("object"==typeof u&&u&&Op(Ap,u))return u}return new Pp(!1)},Ip=Yn,Mp=Lr,Np=ue,Fp=Ts,Dp=Js,Up=function(e,t,r){for(var n=Ff(t),o=Uf.f,i=Df.f,a=0;a<n.length;a++){var u=n[a];Nf(e,u)||r&&Nf(r,u)||o(e,u,i(t,u))}},Bp=Bo,Hp=gr,zp=U,qp=function(e,t){Bf(t)&&"cause"in t&&Hf(e,"cause",t.cause)},Gp=function(e,t,r,n){Jf&&(Qf?Qf(e,t):Kf(e,"stack",Xf(r,n)))},$p=jp,Vp=function(e,t){return void 0===e?arguments.length<2?"":t:Ip(e)},Yp=pt("toStringTag"),Wp=Error,Kp=[].push,Xp=function(e,t){var r,n=Np(Jp,this);Dp?r=Dp(Wp(),n?Fp(this):Jp):(r=n?this:Bp(Jp),Hp(r,Yp,"Error")),void 0!==t&&Hp(r,"message",Vp(t)),Gp(r,Xp,r.stack,1),arguments.length>2&&qp(r,arguments[2]);var o=[];return $p(e,Kp,{that:o}),Hp(r,"errors",o),r};Dp?Dp(Xp,Wp):Up(Xp,Wp,{name:!0});var Jp=Xp.prototype=Bp(Wp.prototype,{constructor:zp(1,Xp),message:zp(1,""),name:zp(1,"AggregateError")});Mp({global:!0,constructor:!0,arity:2},{AggregateError:Xp});var Qp,Zp,eh,th,rh="undefined"!=typeof process&&"process"==b(process),nh=ae,oh=ai,ih=R,ah=pt("species"),uh=function(e){var t=nh(e);ih&&t&&!t[ah]&&oh(t,ah,{configurable:!0,get:function(){return this}})},sh=ue,ch=TypeError,lh=function(e,t){if(sh(t,e))return e;throw ch("Incorrect invocation")},fh=_n,ph=Ee,hh=TypeError,dh=function(e){if(fh(e))return e;throw hh(ph(e)+" is not a constructor")},vh=rr,gh=dh,yh=$,mh=pt("species"),_h=function(e,t){var r,n=vh(e).constructor;return void 0===n||yh(r=vh(n)[mh])?t:gh(r)},bh=TypeError,wh=function(e,t){if(e<t)throw bh("Not enough arguments");return e},xh=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),Sh=o,kh=f,Th=Xt,Oh=E,Eh=Qe,Lh=i,Rh=So,Ch=ku,Ph=Ot,Ah=wh,jh=xh,Ih=rh,Mh=Sh.setImmediate,Nh=Sh.clearImmediate,Fh=Sh.process,Dh=Sh.Dispatch,Uh=Sh.Function,Bh=Sh.MessageChannel,Hh=Sh.String,zh=0,qh={},Gh="onreadystatechange";Lh((function(){Qp=Sh.location}));var $h=function(e){if(Eh(qh,e)){var t=qh[e];delete qh[e],t()}},Vh=function(e){return function(){$h(e)}},Yh=function(e){$h(e.data)},Wh=function(e){Sh.postMessage(Hh(e),Qp.protocol+"//"+Qp.host)};Mh&&Nh||(Mh=function(e){Ah(arguments.length,1);var t=Oh(e)?e:Uh(e),r=Ch(arguments,1);return qh[++zh]=function(){kh(t,void 0,r)},Zp(zh),zh},Nh=function(e){delete qh[e]},Ih?Zp=function(e){Fh.nextTick(Vh(e))}:Dh&&Dh.now?Zp=function(e){Dh.now(Vh(e))}:Bh&&!jh?(th=(eh=new Bh).port2,eh.port1.onmessage=Yh,Zp=Th(th.postMessage,th)):Sh.addEventListener&&Oh(Sh.postMessage)&&!Sh.importScripts&&Qp&&"file:"!==Qp.protocol&&!Lh(Wh)?(Zp=Wh,Sh.addEventListener("message",Yh,!1)):Zp=Gh in Ph("script")?function(e){Rh.appendChild(Ph("script"))[Gh]=function(){Rh.removeChild(this),$h(e)}}:function(e){setTimeout(Vh(e),0)});var Kh={set:Mh,clear:Nh},Xh=function(){this.head=null,this.tail=null};Xh.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.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}};var Jh,Qh,Zh,ed,td,rd=Xh,nd=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,od=/web0s(?!.*chrome)/i.test(se),id=o,ad=Xt,ud=L.f,sd=Kh.set,cd=rd,ld=xh,fd=nd,pd=od,hd=rh,dd=id.MutationObserver||id.WebKitMutationObserver,vd=id.document,gd=id.process,yd=id.Promise,md=ud(id,"queueMicrotask"),_d=md&&md.value;if(!_d){var bd=new cd,wd=function(){var e,t;for(hd&&(e=gd.domain)&&e.exit();t=bd.get();)try{t()}catch(LP){throw bd.head&&Jh(),LP}e&&e.enter()};ld||hd||pd||!dd||!vd?!fd&&yd&&yd.resolve?((ed=yd.resolve(void 0)).constructor=yd,td=ad(ed.then,ed),Jh=function(){td(wd)}):hd?Jh=function(){gd.nextTick(wd)}:(sd=ad(sd,id),Jh=function(){sd(wd)}):(Qh=!0,Zh=vd.createTextNode(""),new dd(wd).observe(Zh,{characterData:!0}),Jh=function(){Zh.data=Qh=!Qh}),_d=function(e){bd.head||Jh(),bd.add(e)}}var xd=_d,Sd=function(e){try{return{error:!1,value:e()}}catch(LP){return{error:!0,value:LP}}},kd=o.Promise,Td="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Od=!Td&&!rh&&"object"==typeof window&&"object"==typeof document,Ed=o,Ld=kd,Rd=E,Cd=Vt,Pd=on,Ad=pt,jd=Od,Id=Td,Md=ve,Nd=Ld&&Ld.prototype,Fd=Ad("species"),Dd=!1,Ud=Rd(Ed.PromiseRejectionEvent),Bd={CONSTRUCTOR:Cd("Promise",(function(){var e=Pd(Ld),t=e!==String(Ld);if(!t&&66===Md)return!0;if(!Nd.catch||!Nd.finally)return!0;if(!Md||Md<51||!/native code/.test(e)){var r=new Ld((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Fd]=n,!(Dd=r.then((function(){}))instanceof n))return!0}return!t&&(jd||Id)&&!Ud})),REJECTION_EVENT:Ud,SUBCLASSING:Dd},Hd={},zd=Pe,qd=TypeError,Gd=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw qd("Bad Promise constructor");t=e,r=n})),this.resolve=zd(t),this.reject=zd(r)};Hd.f=function(e){return new Gd(e)};var $d,Vd,Yd=Lr,Wd=rh,Kd=o,Xd=A,Jd=oi,Qd=Ci,Zd=uh,ev=Pe,tv=E,rv=ee,nv=lh,ov=_h,iv=Kh.set,av=xd,uv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(LP){}},sv=Sd,cv=rd,lv=Vi,fv=kd,pv=Bd,hv=Hd,dv="Promise",vv=pv.CONSTRUCTOR,gv=pv.REJECTION_EVENT,yv=lv.getterFor(dv),mv=lv.set,_v=fv&&fv.prototype,bv=fv,wv=_v,xv=Kd.TypeError,Sv=Kd.document,kv=Kd.process,Tv=hv.f,Ov=Tv,Ev=!!(Sv&&Sv.createEvent&&Kd.dispatchEvent),Lv="unhandledrejection",Rv=function(e){var t;return!(!rv(e)||!tv(t=e.then))&&t},Cv=function(e,t){var r,n,o,i=t.value,a=1==t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&Mv(t),t.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===e.promise?c(xv("Promise-chain cycle")):(n=Rv(r))?Xd(n,r,s,c):s(r)):c(i)}catch(LP){l&&!o&&l.exit(),c(LP)}},Pv=function(e,t){e.notified||(e.notified=!0,av((function(){for(var r,n=e.reactions;r=n.get();)Cv(r,e);e.notified=!1,t&&!e.rejection&&jv(e)})))},Av=function(e,t,r){var n,o;Ev?((n=Sv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Kd.dispatchEvent(n)):n={promise:t,reason:r},!gv&&(o=Kd["on"+e])?o(n):e===Lv&&uv("Unhandled promise rejection",r)},jv=function(e){Xd(iv,Kd,(function(){var t,r=e.facade,n=e.value;if(Iv(e)&&(t=sv((function(){Wd?kv.emit("unhandledRejection",n,r):Av(Lv,r,n)})),e.rejection=Wd||Iv(e)?2:1,t.error))throw t.value}))},Iv=function(e){return 1!==e.rejection&&!e.parent},Mv=function(e){Xd(iv,Kd,(function(){var t=e.facade;Wd?kv.emit("rejectionHandled",t):Av("rejectionhandled",t,e.value)}))},Nv=function(e,t,r){return function(n){e(t,n,r)}},Fv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Pv(e,!0))},Dv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw xv("Promise can't be resolved itself");var n=Rv(t);n?av((function(){var r={done:!1};try{Xd(n,t,Nv(Dv,r,e),Nv(Fv,r,e))}catch(LP){Fv(r,LP,e)}})):(e.value=t,e.state=1,Pv(e,!1))}catch(LP){Fv({done:!1},LP,e)}}};vv&&(wv=(bv=function(e){nv(this,wv),ev(e),Xd($d,this);var t=yv(this);try{e(Nv(Dv,t),Nv(Fv,t))}catch(LP){Fv(t,LP)}}).prototype,($d=function(e){mv(this,{type:dv,done:!1,notified:!1,parent:!1,reactions:new cv,rejection:!1,state:0,value:void 0})}).prototype=Jd(wv,"then",(function(e,t){var r=yv(this),n=Tv(ov(this,bv));return r.parent=!0,n.ok=!tv(e)||e,n.fail=tv(t)&&t,n.domain=Wd?kv.domain:void 0,0==r.state?r.reactions.add(n):av((function(){Cv(n,r)})),n.promise})),Vd=function(){var e=new $d,t=yv(e);this.promise=e,this.resolve=Nv(Dv,t),this.reject=Nv(Fv,t)},hv.f=Tv=function(e){return e===bv||undefined===e?new Vd(e):Ov(e)}),Yd({global:!0,constructor:!0,wrap:!0,forced:vv},{Promise:bv}),Qd(bv,dv,!1,!0),Zd(dv);var Uv=pt("iterator"),Bv=!1;try{var Hv=0,zv={next:function(){return{done:!!Hv++}},return:function(){Bv=!0}};zv[Uv]=function(){return this},Array.from(zv,(function(){throw 2}))}catch(LP){}var qv=function(e,t){if(!t&&!Bv)return!1;var r=!1;try{var n={};n[Uv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(LP){}return r},Gv=kd,$v=Bd.CONSTRUCTOR||!qv((function(e){Gv.all(e).then(void 0,(function(){}))})),Vv=A,Yv=Pe,Wv=Hd,Kv=Sd,Xv=jp;Lr({target:"Promise",stat:!0,forced:$v},{all:function(e){var t=this,r=Wv.f(t),n=r.resolve,o=r.reject,i=Kv((function(){var r=Yv(t.resolve),i=[],a=0,u=1;Xv(e,(function(e){var s=a++,c=!1;u++,Vv(r,t,e).then((function(e){c||(c=!0,i[s]=e,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var Jv=Lr,Qv=Bd.CONSTRUCTOR;kd&&kd.prototype,Jv({target:"Promise",proto:!0,forced:Qv,real:!0},{catch:function(e){return this.then(void 0,e)}});var Zv=A,eg=Pe,tg=Hd,rg=Sd,ng=jp;Lr({target:"Promise",stat:!0,forced:$v},{race:function(e){var t=this,r=tg.f(t),n=r.reject,o=rg((function(){var o=eg(t.resolve);ng(e,(function(e){Zv(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var og=A,ig=Hd;Lr({target:"Promise",stat:!0,forced:Bd.CONSTRUCTOR},{reject:function(e){var t=ig.f(this);return og(t.reject,void 0,e),t.promise}});var ag=rr,ug=ee,sg=Hd,cg=function(e,t){if(ag(e),ug(t)&&t.constructor===e)return t;var r=sg.f(e);return(0,r.resolve)(t),r.promise},lg=Lr,fg=kd,pg=Bd.CONSTRUCTOR,hg=cg,dg=ae("Promise"),vg=!pg;lg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return hg(vg&&this===dg?fg:this,e)}});var gg=A,yg=Pe,mg=Hd,_g=Sd,bg=jp;Lr({target:"Promise",stat:!0,forced:$v},{allSettled:function(e){var t=this,r=mg.f(t),n=r.resolve,o=r.reject,i=_g((function(){var r=yg(t.resolve),o=[],i=0,a=1;bg(e,(function(e){var u=i++,s=!1;a++,gg(r,t,e).then((function(e){s||(s=!0,o[u]={status:"fulfilled",value:e},--a||n(o))}),(function(e){s||(s=!0,o[u]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var wg=A,xg=Pe,Sg=ae,kg=Hd,Tg=Sd,Og=jp,Eg="No one promise resolved";Lr({target:"Promise",stat:!0,forced:$v},{any:function(e){var t=this,r=Sg("AggregateError"),n=kg.f(t),o=n.resolve,i=n.reject,a=Tg((function(){var n=xg(t.resolve),a=[],u=0,s=1,c=!1;Og(e,(function(e){var l=u++,f=!1;s++,wg(n,t,e).then((function(e){f||c||(c=!0,o(e))}),(function(e){f||c||(f=!0,a[l]=e,--s||i(new r(a,Eg)))}))})),--s||i(new r(a,Eg))}));return a.error&&i(a.value),n.promise}});var Lg=Lr,Rg=kd,Cg=i,Pg=ae,Ag=E,jg=_h,Ig=cg,Mg=Rg&&Rg.prototype;Lg({target:"Promise",proto:!0,real:!0,forced:!!Rg&&Cg((function(){Mg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=jg(this,Pg("Promise")),r=Ag(e);return this.then(r?function(r){return Ig(t,e()).then((function(){return r}))}:e,r?function(r){return Ig(t,e()).then((function(){throw r}))}:e)}});var Ng=te.Promise,Fg=Hd,Dg=Sd;Lr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Fg.f(this),r=Dg(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Ug=r(Ng),Bg=Lr,Hg=Cr,zg=g([].reverse),qg=[1,2];Bg({target:"Array",proto:!0,forced:String(qg)===String(qg.reverse())},{reverse:function(){return Hg(this)&&(this.length=this.length),zg(this)}});var Gg=Rl("Array").reverse,$g=ue,Vg=Gg,Yg=Array.prototype,Wg=r((function(e){var t=e.reverse;return e===Yg||$g(Yg,e)&&t===Yg.reverse?Vg:t})),Kg=Lr,Xg=Cr,Jg=_n,Qg=ee,Zg=Qn,ey=Ur,ty=J,ry=$r,ny=pt,oy=ku,iy=Cn("slice"),ay=ny("species"),uy=Array,sy=Math.max;Kg({target:"Array",proto:!0,forced:!iy},{slice:function(e,t){var r,n,o,i=ty(this),a=ey(i),u=Zg(e,a),s=Zg(void 0===t?a:t,a);if(Xg(i)&&(r=i.constructor,(Jg(r)&&(r===uy||Xg(r.prototype))||Qg(r)&&null===(r=r[ay]))&&(r=void 0),r===uy||void 0===r))return oy(i,u,s);for(n=new(void 0===r?uy:r)(sy(s-u,0)),o=0;u<s;u++,o++)u in i&&ry(n,o,i[u]);return n.length=o,n}});var cy=Rl("Array").slice,ly=ue,fy=cy,py=Array.prototype,hy=r((function(e){var t=e.slice;return e===py||ly(py,e)&&t===py.slice?fy:t})),dy=g,vy=Pe,gy=ee,yy=Qe,my=ku,_y=a,by=Function,wy=dy([].concat),xy=dy([].join),Sy={},ky=_y?by.bind:function(e){var t=vy(this),r=t.prototype,n=my(arguments,1),o=function(){var r=wy(n,my(arguments));return this instanceof o?function(e,t,r){if(!yy(Sy,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";Sy[t]=by("C,a","return new C("+xy(n,",")+")")}return Sy[t](e,r)}(t,r.length,r):t.apply(e,r)};return gy(r)&&(o.prototype=r),o},Ty=ky;Lr({target:"Function",proto:!0,forced:Function.bind!==Ty},{bind:Ty});var Oy=Rl("Function").bind,Ey=ue,Ly=Oy,Ry=Function.prototype,Cy=r((function(e){var t=e.bind;return e===Ry||Ey(Ry,e)&&t===Ry.bind?Ly:t})),Py=Lr,Ay=f,jy=ky,Iy=dh,My=rr,Ny=ee,Fy=Bo,Dy=i,Uy=ae("Reflect","construct"),By=Object.prototype,Hy=[].push,zy=Dy((function(){function e(){}return!(Uy((function(){}),[],e)instanceof e)})),qy=!Dy((function(){Uy((function(){}))})),Gy=zy||qy;Py({target:"Reflect",stat:!0,forced:Gy,sham:Gy},{construct:function(e,t){Iy(e),My(t);var r=arguments.length<3?e:Iy(arguments[2]);if(qy&&!zy)return Uy(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return Ay(Hy,n,t),new(Ay(jy,e,n))}var o=r.prototype,i=Fy(Ny(o)?o:By),a=Ay(e,i,t);return Ny(a)?a:i}});var $y=r(te.Reflect.construct),Vy=r(ui.f("toPrimitive"));function Yy(e,t){var r=Tl(e);if(Ol){var n=Ol(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wy(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=Yy(Object(o),!0)).call(r,(function(t){tm(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=Yy(Object(o))).call(n,(function(t){Ef(e,t,ql(o,t))}))}return e}function Ky(){Ky=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},o="function"==typeof Lf?Lf:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Cf(i.prototype),u=new k(o||[]);return n(a,"_invoke",{value:b(e,r,u)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=Cf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,u){var s=l(e[n],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==xl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=s(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,d):(e.__proto__=d,s(e,u,"GeneratorFunction")),e.prototype=Cf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Ug);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,tf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Xy(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(LP){return void r(LP)}u.done?t(s):Ug.resolve(s).then(n,o)}function Jy(e){return function(){var t=this,r=arguments;return new Ug((function(n,o){var i=e.apply(t,r);function a(e){Xy(i,n,o,a,u,"next",e)}function u(e){Xy(i,n,o,a,u,"throw",e)}a(void 0)}))}}function Qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ef(e,um(n.key),n)}}function em(e,t,r){return t&&Zy(e.prototype,t),r&&Zy(e,r),Ef(e,"prototype",{writable:!1}),e}function tm(e,t,r){return(t=um(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Cf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ef(e,"prototype",{writable:!1}),t&&om(e,t)}function nm(e){var t;return(nm=Mf?Cy(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function om(e,t){var r;return(om=Mf?Cy(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function im(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function am(e){var t=function(){if("undefined"==typeof Reflect||!$y)return!1;if($y.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call($y(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=nm(e);if(t){var o=nm(this).constructor;r=$y(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return im(e)}(this,r)}}function um(e){var t=function(e,t){if("object"!==xl(e)||null===e)return e;var r=e[Vy];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xl(t)?t:String(t)}var sm=Rl("Array").concat,cm=ue,lm=sm,fm=Array.prototype,pm=r((function(e){var t=e.concat;return e===fm||cm(fm,e)&&t===fm.concat?lm:t})),hm=i,dm=pt("iterator"),vm=!hm((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[dm]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),gm=R,ym=g,mm=A,_m=i,bm=vo,wm=ri,xm=j,Sm=Ke,km=G,Tm=Object.assign,Om=Object.defineProperty,Em=ym([].concat),Lm=!Tm||_m((function(){if(gm&&1!==Tm({b:1},Tm(Om({},"a",{enumerable:!0,get:function(){Om(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Tm({},e)[r]||bm(Tm({},t)).join("")!=n}))?function(e,t){for(var r=Sm(e),n=arguments.length,o=1,i=wm.f,a=xm.f;n>o;)for(var u,s=km(arguments[o++]),c=i?Em(bm(s),i(s)):bm(s),l=c.length,f=0;l>f;)u=c[f++],gm&&!mm(a,s,u)||(r[u]=s[u]);return r}:Tm,Rm=rr,Cm=_p,Pm=Xt,Am=A,jm=Ke,Im=function(e,t,r,n){try{return n?t(Rm(r)[0],r[1]):t(r)}catch(LP){Cm(e,"throw",LP)}},Mm=rp,Nm=_n,Fm=Ur,Dm=$r,Um=vp,Bm=sp,Hm=Array,zm=function(e){var t=jm(e),r=Nm(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Pm(o,n>2?arguments[2]:void 0));var a,u,s,c,l,f,p=Bm(t),h=0;if(!p||this===Hm&&Mm(p))for(a=Fm(t),u=r?new this(a):Hm(a);a>h;h++)f=i?o(t[h],h):t[h],Dm(u,h,f);else for(l=(c=Um(t,p)).next,u=r?new this:[];!(s=Am(l,c)).done;h++)f=i?Im(c,o,[s.value,h],!0):s.value,Dm(u,h,f);return u.length=h,u},qm=g,Gm=2147483647,$m=/[^\0-\u007E]/,Vm=/[.\u3002\uFF0E\uFF61]/g,Ym="Overflow: input needs wider integers to process",Wm=RangeError,Km=qm(Vm.exec),Xm=Math.floor,Jm=String.fromCharCode,Qm=qm("".charCodeAt),Zm=qm([].join),e_=qm([].push),t_=qm("".replace),r_=qm("".split),n_=qm("".toLowerCase),o_=function(e){return e+22+75*(e<26)},i_=function(e,t,r){var n=0;for(e=r?Xm(e/700):e>>1,e+=Xm(e/t);e>455;)e=Xm(e/35),n+=36;return Xm(n+36*e/(e+38))},a_=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Qm(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Qm(e,r++);56320==(64512&i)?e_(t,((1023&o)<<10)+(1023&i)+65536):(e_(t,o),r--)}else e_(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&e_(t,Jm(n));var s=t.length,c=s;for(s&&e_(t,"-");c<o;){var l=Gm;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=c+1;if(l-i>Xm((Gm-a)/f))throw Wm(Ym);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>Gm)throw Wm(Ym);if(n==i){for(var p=a,h=36;;){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,g=36-d;e_(t,Jm(o_(d+v%g))),p=Xm(v/g),h+=36}e_(t,Jm(o_(p))),u=i_(a,f,c==s),a=0,c++}}a++,i++}return Zm(t,"")},u_=oi,s_=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:u_(e,n,t[n],r);return e},c_=Xo,l_=Math.floor,f_=function(e,t){var r=e.length,n=l_(r/2);return r<8?p_(e,t):h_(e,f_(c_(e,0,n),t),f_(c_(e,n),t),t)},p_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},h_=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,u=0;a<o||u<i;)e[a+u]=a<o&&u<i?n(t[a],r[u])<=0?t[a++]:r[u++]:a<o?t[a++]:r[u++];return e},d_=f_,v_=Lr,g_=o,y_=A,m_=g,__=R,b_=vm,w_=oi,x_=ai,S_=s_,k_=Ci,T_=zs,O_=Vi,E_=lh,L_=E,R_=Qe,C_=Xt,P_=en,A_=rr,j_=ee,I_=Yn,M_=Bo,N_=U,F_=vp,D_=sp,U_=wh,B_=d_,H_=pt("iterator"),z_="URLSearchParams",q_=z_+"Iterator",G_=O_.set,$_=O_.getterFor(z_),V_=O_.getterFor(q_),Y_=Object.getOwnPropertyDescriptor,W_=function(e){if(!__)return g_[e];var t=Y_(g_,e);return t&&t.value},K_=W_("fetch"),X_=W_("Request"),J_=W_("Headers"),Q_=X_&&X_.prototype,Z_=J_&&J_.prototype,eb=g_.RegExp,tb=g_.TypeError,rb=g_.decodeURIComponent,nb=g_.encodeURIComponent,ob=m_("".charAt),ib=m_([].join),ab=m_([].push),ub=m_("".replace),sb=m_([].shift),cb=m_([].splice),lb=m_("".split),fb=m_("".slice),pb=/\+/g,hb=Array(4),db=function(e){return hb[e-1]||(hb[e-1]=eb("((?:%[\\da-f]{2}){"+e+"})","gi"))},vb=function(e){try{return rb(e)}catch(LP){return e}},gb=function(e){var t=ub(e,pb," "),r=4;try{return rb(t)}catch(LP){for(;r;)t=ub(t,db(r--),vb);return t}},yb=/[!'()~]|%20/g,mb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_b=function(e){return mb[e]},bb=function(e){return ub(nb(e),yb,_b)},wb=T_((function(e,t){G_(this,{type:q_,iterator:F_($_(e).entries),kind:t})}),"Iterator",(function(){var e=V_(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),xb=function(e){this.entries=[],this.url=null,void 0!==e&&(j_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ob(e,0)?fb(e,1):e:I_(e)))};xb.prototype={type:z_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,u,s=D_(e);if(s)for(r=(t=F_(e,s)).next;!(n=y_(r,t)).done;){if(i=(o=F_(A_(n.value))).next,(a=y_(i,o)).done||(u=y_(i,o)).done||!y_(i,o).done)throw tb("Expected sequence with length 2");ab(this.entries,{key:I_(a.value),value:I_(u.value)})}else for(var c in e)R_(e,c)&&ab(this.entries,{key:c,value:I_(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=lb(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=lb(t,"="),ab(this.entries,{key:gb(sb(r)),value:gb(ib(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ab(r,bb(e.key)+"="+bb(e.value));return ib(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Sb=function(){E_(this,kb);var e=G_(this,new xb(arguments.length>0?arguments[0]:void 0));__||(this.length=e.entries.length)},kb=Sb.prototype;if(S_(kb,{append:function(e,t){U_(arguments.length,2);var r=$_(this);ab(r.entries,{key:I_(e),value:I_(t)}),__||this.length++,r.updateURL()},delete:function(e){U_(arguments.length,1);for(var t=$_(this),r=t.entries,n=I_(e),o=0;o<r.length;)r[o].key===n?cb(r,o,1):o++;__||(this.length=r.length),t.updateURL()},get:function(e){U_(arguments.length,1);for(var t=$_(this).entries,r=I_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){U_(arguments.length,1);for(var t=$_(this).entries,r=I_(e),n=[],o=0;o<t.length;o++)t[o].key===r&&ab(n,t[o].value);return n},has:function(e){U_(arguments.length,1);for(var t=$_(this).entries,r=I_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){U_(arguments.length,1);for(var r,n=$_(this),o=n.entries,i=!1,a=I_(e),u=I_(t),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?cb(o,s--,1):(i=!0,r.value=u));i||ab(o,{key:a,value:u}),__||(this.length=o.length),n.updateURL()},sort:function(){var e=$_(this);B_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=$_(this).entries,n=C_(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new wb(this,"keys")},values:function(){return new wb(this,"values")},entries:function(){return new wb(this,"entries")}},{enumerable:!0}),w_(kb,H_,kb.entries,{name:"entries"}),w_(kb,"toString",(function(){return $_(this).serialize()}),{enumerable:!0}),__&&x_(kb,"size",{get:function(){return $_(this).entries.length},configurable:!0,enumerable:!0}),k_(Sb,z_),v_({global:!0,constructor:!0,forced:!b_},{URLSearchParams:Sb}),!b_&&L_(J_)){var Tb=m_(Z_.has),Ob=m_(Z_.set),Eb=function(e){if(j_(e)){var t,r=e.body;if(P_(r)===z_)return t=e.headers?new J_(e.headers):new J_,Tb(t,"content-type")||Ob(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),M_(e,{body:N_(0,I_(r)),headers:N_(0,t)})}return e};if(L_(K_)&&v_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return K_(e,arguments.length>1?Eb(arguments[1]):{})}}),L_(X_)){var Lb=function(e){return E_(this,Q_),new X_(e,arguments.length>1?Eb(arguments[1]):{})};Q_.constructor=Lb,Lb.prototype=Q_,v_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Lb})}}var Rb,Cb=Lr,Pb=R,Ab=vm,jb=o,Ib=Xt,Mb=g,Nb=oi,Fb=ai,Db=lh,Ub=Qe,Bb=Lm,Hb=zm,zb=Xo,qb=fl.codeAt,Gb=function(e){var t,r,n=[],o=r_(t_(n_(e),Vm,"."),".");for(t=0;t<o.length;t++)r=o[t],e_(n,Km($m,r)?"xn--"+a_(r):r);return Zm(n,".")},$b=Yn,Vb=Ci,Yb=wh,Wb={URLSearchParams:Sb,getState:$_},Kb=Vi,Xb=Kb.set,Jb=Kb.getterFor("URL"),Qb=Wb.URLSearchParams,Zb=Wb.getState,ew=jb.URL,tw=jb.TypeError,rw=jb.parseInt,nw=Math.floor,ow=Math.pow,iw=Mb("".charAt),aw=Mb(/./.exec),uw=Mb([].join),sw=Mb(1..toString),cw=Mb([].pop),lw=Mb([].push),fw=Mb("".replace),pw=Mb([].shift),hw=Mb("".split),dw=Mb("".slice),vw=Mb("".toLowerCase),gw=Mb([].unshift),yw="Invalid scheme",mw="Invalid host",_w="Invalid port",bw=/[a-z]/i,ww=/[\d+-.a-z]/i,xw=/\d/,Sw=/^0x/i,kw=/^[0-7]+$/,Tw=/^\d+$/,Ow=/^[\da-f]+$/i,Ew=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Lw=/[\0\t\n\r #/:<>?@[\\\]^|]/,Rw=/^[\u0000-\u0020]+/,Cw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Pw=/[\t\n\r]/g,Aw=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)gw(t,e%256),e=nw(e/256);return uw(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=sw(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},jw={},Iw=Bb({},jw,{" ":1,'"':1,"<":1,">":1,"`":1}),Mw=Bb({},Iw,{"#":1,"?":1,"{":1,"}":1}),Nw=Bb({},Mw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Fw=function(e,t){var r=qb(e,0);return r>32&&r<127&&!Ub(t,e)?e:encodeURIComponent(e)},Dw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Uw=function(e,t){var r;return 2==e.length&&aw(bw,iw(e,0))&&(":"==(r=iw(e,1))||!t&&"|"==r)},Bw=function(e){var t;return e.length>1&&Uw(dw(e,0,2))&&(2==e.length||"/"===(t=iw(e,2))||"\\"===t||"?"===t||"#"===t)},Hw=function(e){return"."===e||"%2e"===vw(e)},zw={},qw={},Gw={},$w={},Vw={},Yw={},Ww={},Kw={},Xw={},Jw={},Qw={},Zw={},ex={},tx={},rx={},nx={},ox={},ix={},ax={},ux={},sx={},cx=function(e,t,r){var n,o,i,a=$b(e);if(t){if(o=this.parse(a))throw tw(o);this.searchParams=null}else{if(void 0!==r&&(n=new cx(r,!0)),o=this.parse(a,null,n))throw tw(o);(i=Zb(new Qb)).bindURL(this),this.searchParams=i}};cx.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,u,s=this,c=t||zw,l=0,f="",p=!1,h=!1,d=!1;for(e=$b(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=fw(e,Rw,""),e=fw(e,Cw,"$1")),e=fw(e,Pw,""),n=Hb(e);l<=n.length;){switch(o=n[l],c){case zw:if(!o||!aw(bw,o)){if(t)return yw;c=Gw;continue}f+=vw(o),c=qw;break;case qw:if(o&&(aw(ww,o)||"+"==o||"-"==o||"."==o))f+=vw(o);else{if(":"!=o){if(t)return yw;f="",c=Gw,l=0;continue}if(t&&(s.isSpecial()!=Ub(Dw,f)||"file"==f&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=f,t)return void(s.isSpecial()&&Dw[s.scheme]==s.port&&(s.port=null));f="","file"==s.scheme?c=tx:s.isSpecial()&&r&&r.scheme==s.scheme?c=$w:s.isSpecial()?c=Kw:"/"==n[l+1]?(c=Vw,l++):(s.cannotBeABaseURL=!0,lw(s.path,""),c=ax)}break;case Gw:if(!r||r.cannotBeABaseURL&&"#"!=o)return yw;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=zb(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=sx;break}c="file"==r.scheme?tx:Yw;continue;case $w:if("/"!=o||"/"!=n[l+1]){c=Yw;continue}c=Xw,l++;break;case Vw:if("/"==o){c=Jw;break}c=ix;continue;case Yw:if(s.scheme=r.scheme,o==Rb)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=Ww;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.query="",c=ux;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.path.length--,c=ix;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.query=r.query,s.fragment="",c=sx}break;case Ww:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=ix;continue}c=Jw}else c=Xw;break;case Kw:if(c=Xw,"/"!=o||"/"!=iw(f,l+1))continue;l++;break;case Xw:if("/"!=o&&"\\"!=o){c=Jw;continue}break;case Jw:if("@"==o){p&&(f="%40"+f),p=!0,i=Hb(f);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||d){var y=Fw(g,Nw);d?s.password+=y:s.username+=y}else d=!0}f=""}else if(o==Rb||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(p&&""==f)return"Invalid authority";l-=Hb(f).length+1,f="",c=Qw}else f+=o;break;case Qw:case Zw:if(t&&"file"==s.scheme){c=nx;continue}if(":"!=o||h){if(o==Rb||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==f)return mw;if(t&&""==f&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(f))return a;if(f="",c=ox,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),f+=o}else{if(""==f)return mw;if(a=s.parseHost(f))return a;if(f="",c=ex,t==Zw)return}break;case ex:if(!aw(xw,o)){if(o==Rb||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=f){var m=rw(f,10);if(m>65535)return _w;s.port=s.isSpecial()&&m===Dw[s.scheme]?null:m,f=""}if(t)return;c=ox;continue}return _w}f+=o;break;case tx:if(s.scheme="file","/"==o||"\\"==o)c=rx;else{if(!r||"file"!=r.scheme){c=ix;continue}if(o==Rb)s.host=r.host,s.path=zb(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=zb(r.path),s.query="",c=ux;else{if("#"!=o){Bw(uw(zb(n,l),""))||(s.host=r.host,s.path=zb(r.path),s.shortenPath()),c=ix;continue}s.host=r.host,s.path=zb(r.path),s.query=r.query,s.fragment="",c=sx}}break;case rx:if("/"==o||"\\"==o){c=nx;break}r&&"file"==r.scheme&&!Bw(uw(zb(n,l),""))&&(Uw(r.path[0],!0)?lw(s.path,r.path[0]):s.host=r.host),c=ix;continue;case nx:if(o==Rb||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Uw(f))c=ix;else if(""==f){if(s.host="",t)return;c=ox}else{if(a=s.parseHost(f))return a;if("localhost"==s.host&&(s.host=""),t)return;f="",c=ox}continue}f+=o;break;case ox:if(s.isSpecial()){if(c=ix,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Rb&&(c=ix,"/"!=o))continue}else s.fragment="",c=sx;else s.query="",c=ux;break;case ix:if(o==Rb||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(u=vw(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||lw(s.path,"")):Hw(f)?"/"==o||"\\"==o&&s.isSpecial()||lw(s.path,""):("file"==s.scheme&&!s.path.length&&Uw(f)&&(s.host&&(s.host=""),f=iw(f,0)+":"),lw(s.path,f)),f="","file"==s.scheme&&(o==Rb||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)pw(s.path);"?"==o?(s.query="",c=ux):"#"==o&&(s.fragment="",c=sx)}else f+=Fw(o,Mw);break;case ax:"?"==o?(s.query="",c=ux):"#"==o?(s.fragment="",c=sx):o!=Rb&&(s.path[0]+=Fw(o,jw));break;case ux:t||"#"!=o?o!=Rb&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":Fw(o,jw)):(s.fragment="",c=sx);break;case sx:o!=Rb&&(s.fragment+=Fw(o,Iw))}l++}},parseHost:function(e){var t,r,n;if("["==iw(e,0)){if("]"!=iw(e,e.length-1))return mw;if(t=function(e){var t,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,p=function(){return iw(e,f)};if(":"==p()){if(":"!=iw(e,1))return;f+=2,l=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&aw(Ow,p());)t=16*t+rw(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!aw(xw,p()))return;for(;aw(xw,p());){if(i=rw(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!=c)return;return s}(dw(e,1,-1)),!t)return mw;this.host=t}else if(this.isSpecial()){if(e=Gb(e),aw(Ew,e))return mw;if(t=function(e){var t,r,n,o,i,a,u,s=hw(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=s[n]))return e;if(i=10,o.length>1&&"0"==iw(o,0)&&(i=aw(Sw,o)?16:8,o=dw(o,8==i?1:2)),""===o)a=0;else{if(!aw(10==i?Tw:8==i?kw:Ow,o))return e;a=rw(o,i)}lw(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=ow(256,5-t))return null}else if(a>255)return null;for(u=cw(r),n=0;n<r.length;n++)u+=r[n]*ow(256,3-n);return u}(e),null===t)return mw;this.host=t}else{if(aw(Lw,e))return mw;for(t="",r=Hb(e),n=0;n<r.length;n++)t+=Fw(r[n],jw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Ub(Dw,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Uw(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,u=e.query,s=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Aw(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+uw(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(e){var t=this.parse(e);if(t)throw tw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new lx(e.path[0]).origin}catch(LP){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Aw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse($b(e)+":",zw)},getUsername:function(){return this.username},setUsername:function(e){var t=Hb($b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Fw(t[r],Nw)}},getPassword:function(){return this.password},setPassword:function(e){var t=Hb($b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Fw(t[r],Nw)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Aw(e):Aw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Qw)},getHostname:function(){var e=this.host;return null===e?"":Aw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Zw)},getPort:function(){var e=this.port;return null===e?"":$b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=$b(e))?this.port=null:this.parse(e,ex))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+uw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ox))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=$b(e))?this.query=null:("?"==iw(e,0)&&(e=dw(e,1)),this.query="",this.parse(e,ux)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=$b(e))?("#"==iw(e,0)&&(e=dw(e,1)),this.fragment="",this.parse(e,sx)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var lx=function(e){var t=Db(this,fx),r=Yb(arguments.length,1)>1?arguments[1]:void 0,n=Xb(t,new cx(e,!1,r));Pb||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},fx=lx.prototype,px=function(e,t){return{get:function(){return Jb(this)[e]()},set:t&&function(e){return Jb(this)[t](e)},configurable:!0,enumerable:!0}};if(Pb&&(Fb(fx,"href",px("serialize","setHref")),Fb(fx,"origin",px("getOrigin")),Fb(fx,"protocol",px("getProtocol","setProtocol")),Fb(fx,"username",px("getUsername","setUsername")),Fb(fx,"password",px("getPassword","setPassword")),Fb(fx,"host",px("getHost","setHost")),Fb(fx,"hostname",px("getHostname","setHostname")),Fb(fx,"port",px("getPort","setPort")),Fb(fx,"pathname",px("getPathname","setPathname")),Fb(fx,"search",px("getSearch","setSearch")),Fb(fx,"searchParams",px("getSearchParams")),Fb(fx,"hash",px("getHash","setHash"))),Nb(fx,"toJSON",(function(){return Jb(this).serialize()}),{enumerable:!0}),Nb(fx,"toString",(function(){return Jb(this).serialize()}),{enumerable:!0}),ew){var hx=ew.createObjectURL,dx=ew.revokeObjectURL;hx&&Nb(lx,"createObjectURL",Ib(hx,ew)),dx&&Nb(lx,"revokeObjectURL",Ib(dx,ew))}Vb(lx,"URL"),Cb({global:!0,constructor:!0,forced:!Ab,sham:!Pb},{URL:lx});var vx=Lr,gx=i,yx=wh,mx=Yn,_x=vm,bx=ae("URL");vx({target:"URL",stat:!0,forced:!(_x&&gx((function(){bx.canParse()})))},{canParse:function(e){var t=yx(arguments.length,1),r=mx(e),n=t<2||void 0===arguments[1]?void 0:mx(arguments[1]);try{return!!new bx(r,n)}catch(LP){return!1}}});var wx=r(te.URL),xx=Lr,Sx=no.indexOf,kx=$l,Tx=S([].indexOf),Ox=!!Tx&&1/Tx([1],1,-0)<0;xx({target:"Array",proto:!0,forced:Ox||!kx("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Ox?Tx(this,e,t)||0:Sx(this,e,t)}});var Ex=Rl("Array").indexOf,Lx=ue,Rx=Ex,Cx=Array.prototype,Px=r((function(e){var t=e.indexOf;return e===Cx||Lx(Cx,e)&&t===Cx.indexOf?Rx:t})),Ax=R,jx=Cr,Ix=TypeError,Mx=Object.getOwnPropertyDescriptor,Nx=Ax&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(LP){return LP instanceof TypeError}}(),Fx=Ee,Dx=TypeError,Ux=function(e,t){if(!delete e[t])throw Dx("Cannot delete property "+Fx(t)+" of "+Fx(e))},Bx=Lr,Hx=Ke,zx=Qn,qx=Ir,Gx=Ur,$x=Nx?function(e,t){if(jx(e)&&!Mx(e,"length").writable)throw Ix("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Vx=Hr,Yx=On,Wx=$r,Kx=Ux,Xx=Cn("splice"),Jx=Math.max,Qx=Math.min;Bx({target:"Array",proto:!0,forced:!Xx},{splice:function(e,t){var r,n,o,i,a,u,s=Hx(this),c=Gx(s),l=zx(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Qx(Jx(qx(t),0),c-l)),Vx(c+r-n),o=Yx(s,n),i=0;i<n;i++)(a=l+i)in s&&Wx(o,i,s[a]);if(o.length=n,r<n){for(i=l;i<c-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:Kx(s,u);for(i=c;i>c-n+r;i--)Kx(s,i-1)}else if(r>n)for(i=c-n;i>l;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:Kx(s,u);for(i=0;i<r;i++)s[i+l]=arguments[i+2];return $x(s,c-n+r),o}});var Zx=Rl("Array").splice,eS=ue,tS=Zx,rS=Array.prototype,nS=r((function(e){var t=e.splice;return e===rS||eS(rS,e)&&t===rS.splice?tS:t}));Lr({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var oS=r(te.Number.isNaN),iS="\t\n\v\f\r \u2028\u2029\ufeff",aS=W,uS=Yn,sS=iS,cS=g("".replace),lS=RegExp("^["+sS+"]+"),fS=RegExp("(^|[^"+sS+"])["+sS+"]+$"),pS=function(e){return function(t){var r=uS(aS(t));return 1&e&&(r=cS(r,lS,"")),2&e&&(r=cS(r,fS,"$1")),r}},hS={start:pS(1),end:pS(2),trim:pS(3)},dS=o,vS=i,gS=g,yS=Yn,mS=hS.trim,_S=iS,bS=dS.parseInt,wS=dS.Symbol,xS=wS&&wS.iterator,SS=/^[+-]?0x/i,kS=gS(SS.exec),TS=8!==bS(_S+"08")||22!==bS(_S+"0x16")||xS&&!vS((function(){bS(Object(xS))}))?function(e,t){var r=mS(yS(e));return bS(r,t>>>0||(kS(SS,r)?16:10))}:bS;Lr({global:!0,forced:parseInt!=TS},{parseInt:TS});var OS=r(te.parseInt),ES=ea.map;Lr({target:"Array",proto:!0,forced:!Cn("map")},{map:function(e){return ES(this,e,arguments.length>1?arguments[1]:void 0)}});var LS=Rl("Array").map,RS=ue,CS=LS,PS=Array.prototype,AS=r((function(e){var t=e.map;return e===PS||RS(PS,e)&&t===PS.map?CS:t}));Lr({target:"Array",stat:!0},{isArray:Cr});var jS=r(te.Array.isArray),IS=r(bl),MS=Qe,NS=A,FS=ee,DS=rr,US=function(e){return void 0!==e&&(MS(e,"value")||MS(e,"writable"))},BS=L,HS=Ts;Lr({target:"Reflect",stat:!0},{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return DS(t)===i?t[r]:(n=BS.f(t,r))?US(n)?n.value:void 0===n.get?void 0:NS(n.get,i):FS(o=HS(t))?e(o,r,i):void 0}});var zS=r(te.Reflect.get),qS=r(sp),GS=zm;Lr({target:"Array",stat:!0,forced:!qv((function(e){Array.from(e)}))},{from:GS});var $S=r(te.Array.from);function VS(e,t){var r=Tl(e);if(Ol){var n=Ol(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function YS(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=VS(Object(o),!0)).call(r,(function(t){QS(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=VS(Object(o))).call(n,(function(t){Ef(e,t,ql(o,t))}))}return e}function WS(e){return(WS="function"==typeof Lf&&"symbol"==typeof IS?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function KS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ef(e,tk(n.key),n)}}function JS(e,t,r){return t&&XS(e.prototype,t),r&&XS(e,r),Ef(e,"prototype",{writable:!1}),e}function QS(e,t,r){return(t=tk(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZS(e){return function(e){if(jS(e))return ek(e)}(e)||function(e){if(void 0!==Lf&&null!=qS(e)||null!=e["@@iterator"])return $S(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return ek(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return $S(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ek(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ek(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tk(e){var t=function(e,t){if("object"!==xl(e)||null===e)return e;var r=e[Vy];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xl(t)?t:String(t)}var rk=Lm;Lr({target:"Object",stat:!0,arity:2,forced:Object.assign!==rk},{assign:rk});var nk=r(te.Object.assign),ok={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||e,a),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}Cf&&(n.prototype=Cf(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?hy(n).call(n,1):n);return Ol?pm(o).call(o,Ol(e)):o},u.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,o,i,a){var u=r?r+e:e;if(!this._events[u])return!1;var s,c,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var p,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,o);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];l[c].fn.apply(l[c].context,s)}}return!0},u.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==t||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var s=0,c=[],l=u.length;s<l;s++)(u[s].fn!==t||o&&!u[s].once||n&&u[s].context!==n)&&c.push(u[s]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(ok);var ik=r(ok.exports),ak=ea.some;Lr({target:"Array",proto:!0,forced:!$l("some")},{some:function(e){return ak(this,e,arguments.length>1?arguments[1]:void 0)}});var uk=Rl("Array").some,sk=ue,ck=uk,lk=Array.prototype,fk=r((function(e){var t=e.some;return e===lk||sk(lk,e)&&t===lk.some?ck:t})),pk=Ir,hk=Yn,dk=W,vk=RangeError,gk=g,yk=Fr,mk=Yn,_k=W,bk=gk((function(e){var t=hk(dk(this)),r="",n=pk(e);if(n<0||n==1/0)throw vk("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),wk=gk("".slice),xk=Math.ceil,Sk=function(e){return function(t,r,n){var o,i,a=mk(_k(t)),u=yk(r),s=a.length,c=void 0===n?" ":mk(n);return u<=s||""==c?a:((i=bk(c,xk((o=u-s)/c.length))).length>o&&(i=wk(i,0,o)),e?a+i:i+a)}},kk={start:Sk(!1),end:Sk(!0)},Tk=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),Ok=kk.start;Lr({target:"String",proto:!0,forced:Tk},{padStart:function(e){return Ok(this,e,arguments.length>1?arguments[1]:void 0)}});var Ek,Lk=Rl("String").padStart,Rk=ue,Ck=Lk,Pk=String.prototype,Ak=r((function(e){var t=e.padStart;return"string"==typeof e||e===Pk||Rk(Pk,e)&&t===Pk.padStart?Ck:t})),jk="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ik=o,Mk=f,Nk=E,Fk=jk,Dk=se,Uk=ku,Bk=wh,Hk=Ik.Function,zk=/MSIE .\./.test(Dk)||Fk&&((Ek=Ik.Bun.version.split(".")).length<3||0==Ek[0]&&(Ek[1]<3||3==Ek[1]&&0==Ek[2])),qk=function(e,t){var r=t?2:1;return zk?function(n,o){var i=Bk(arguments.length,1)>r,a=Nk(n)?n:Hk(n),u=i?Uk(arguments,r):[],s=i?function(){Mk(a,this,u)}:a;return t?e(s,o):e(s)}:e},Gk=Lr,$k=o,Vk=qk($k.setInterval,!0);Gk({global:!0,bind:!0,forced:$k.setInterval!==Vk},{setInterval:Vk});var Yk=Lr,Wk=o,Kk=qk(Wk.setTimeout,!0);Yk({global:!0,bind:!0,forced:Wk.setTimeout!==Kk},{setTimeout:Kk});var Xk=r(te.setInterval),Jk=r(te.setTimeout),Qk=ea.every;Lr({target:"Array",proto:!0,forced:!$l("every")},{every:function(e){return Qk(this,e,arguments.length>1?arguments[1]:void 0)}});var Zk=Rl("Array").every,eT=ue,tT=Zk,rT=Array.prototype,nT=r((function(e){var t=e.every;return e===rT||eT(rT,e)&&t===rT.every?tT:t})),oT=o,iT=i,aT=Yn,uT=hS.trim,sT=iS,cT=g("".charAt),lT=oT.parseFloat,fT=oT.Symbol,pT=fT&&fT.iterator,hT=1/lT(sT+"-0")!=-1/0||pT&&!iT((function(){lT(Object(pT))}))?function(e){var t=uT(aT(e)),r=lT(t);return 0===r&&"-"==cT(t,0)?-0:r}:lT;Lr({global:!0,forced:parseFloat!=hT},{parseFloat:hT});var dT=r(te.parseFloat),vT=gs.PROPER,gT=i,yT=iS,mT=hS.trim;Lr({target:"String",proto:!0,forced:function(e){return gT((function(){return!!yT[e]()||"
"!=="
"[e]()||vT&&yT[e].name!==e}))}("trim")},{trim:function(){return mT(this)}});var _T=Rl("String").trim,bT=ue,wT=_T,xT=String.prototype,ST=r((function(e){var t=e.trim;return"string"==typeof e||e===xT||bT(xT,e)&&t===xT.trim?wT:t})),kT=se.match(/firefox\/(\d+)/i),TT=!!kT&&+kT[1],OT=/MSIE|Trident/.test(se),ET=se.match(/AppleWebKit\/(\d+)\./),LT=!!ET&&+ET[1],RT=Lr,CT=g,PT=Pe,AT=Ke,jT=Ur,IT=Ux,MT=Yn,NT=i,FT=d_,DT=$l,UT=TT,BT=OT,HT=ve,zT=LT,qT=[],GT=CT(qT.sort),$T=CT(qT.push),VT=NT((function(){qT.sort(void 0)})),YT=NT((function(){qT.sort(null)})),WT=DT("sort"),KT=!NT((function(){if(HT)return HT<70;if(!(UT&&UT>3)){if(BT)return!0;if(zT)return zT<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)qT.push({k:t+n,v:r})}for(qT.sort((function(e,t){return t.v-e.v})),n=0;n<qT.length;n++)t=qT[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));RT({target:"Array",proto:!0,forced:VT||!YT||!WT||!KT},{sort:function(e){void 0!==e&&PT(e);var t=AT(this);if(KT)return void 0===e?GT(t):GT(t,e);var r,n,o=[],i=jT(t);for(n=0;n<i;n++)n in t&&$T(o,t[n]);for(FT(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:MT(t)>MT(r)?1:-1}}(e)),r=jT(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)IT(t,n++);return t}});var XT=Rl("Array").sort,JT=ue,QT=XT,ZT=Array.prototype,eO=r((function(e){var t=e.sort;return e===ZT||JT(ZT,e)&&t===ZT.sort?QT:t})),tO=Lr,rO=Date,nO=g(rO.prototype.getTime);tO({target:"Date",stat:!0},{now:function(){return nO(new rO)}});var oO,iO=r(te.Date.now),aO="undefined"!=typeof window&&window.location&&Px(oO=window.location.href).call(oO,"xgplayerdebugger=1")>-1,uO="color: #525252; background-color: #90ee90;",sO="color: #525252; background-color: red;",cO="color: #525252; background-color: yellow; ",lO="%c[xgplayer]",fO={config:{debug:aO?3:0},logInfo:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,pm(t=[lO,uO,e]).call(t,o))},logWarn:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,pm(t=[lO,cO,e]).call(t,o))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=console)[n].apply(r,pm(t=[lO,sO,e]).call(t,i))}}},pO=function(){function e(t){KS(this,e),this.bufferedList=t}return JS(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),hO={};hO.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(t);return i.className=o,i.innerHTML=r,tf(e=Tl(n)).call(e,(function(e){var r=e,o=n[e];"video"===t||"audio"===t||"live-video"===t?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},hO.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&hO.addClass(o,r),t)tf(i=Tl(t)).call(i,(function(e){o.setAttribute(e,t[e])}));return o}return null}catch(a){return fO.logError("util.createDomFromHtml",a),null}},hO.hasClass=function(e,t){if(!e||!t)return!1;try{return fk(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===WS(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},hO.addClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){hO.hasClass(e,t)||(e.className&&"object"===WS(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},hO.removeClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(o){var n;if(hO.hasClass(e,t))tf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===WS(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},hO.toggleClass=function(e,t){var r;e&&tf(r=t.split(/\s+/g)).call(r,(function(t){hO.hasClass(e,t)?hO.removeClass(e,t):hO.addClass(e,t)}))},hO.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===hO.typeOf(e[r]))t.push(e[r]);else if("Object"===hO.typeOf(e[r])){var n;AS(n=Tl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},hO.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(n){fO.logError("util.findDom",n),0===Px(r).call(r,"#")&&(e=t.getElementById(hy(r).call(r,1)))}return e},hO.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},hO.padStart=function(e,t,r){for(var n=String(r),o=t>>0,i=Math.ceil(o/n.length),a=[],u=String(e);i--;)a.push(n);return a.join("").substring(0,o-u.length)+u},hO.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=Ak(hO).call(hO,Math.floor(e/3600),2,0),r=Ak(hO).call(hO,Math.floor((e-3600*t)/60),2,0),n=Ak(hO).call(hO,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},hO.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},hO.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},hO.deepCopy=function(e,t){var r;if("Object"===hO.typeOf(t)&&"Object"===hO.typeOf(e))return tf(r=Tl(t)).call(r,(function(r){if("Object"!==hO.typeOf(t[r])||t[r]instanceof Node)if("Array"===hO.typeOf(t[r])){var n;e[r]="Array"===hO.typeOf(e[r])?pm(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:hO.deepCopy(e[r],t[r])})),e},hO.deepMerge=function(e,t){var r;return AS(r=Tl(t)).call(r,(function(r){var n;"Array"===hO.typeOf(t[r])&&"Array"===hO.typeOf(e[r])?"Array"===hO.typeOf(e[r])&&(n=e[r]).push.apply(n,ZS(t[r])):hO.typeOf(e[r])!==hO.typeOf(t[r])||null===e[r]||"Object"!==hO.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):hO.deepMerge(e[r],t[r])})),e},hO.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},hO.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return tf(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},hO.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=Xk(Cy(r).call(r,e),n))},hO.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},hO.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=Jk((function(){t(),hO.clearTimeout(e,n)}),r);return e._timers.push(n),n},hO.clearTimeout=function(e,t){var r=e._timers;if("Array"===hO.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){nS(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},hO.clearAllTimers=function(e){var t=e._timers;"Array"===hO.typeOf(t)&&(AS(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},hO.createImgBtn=function(e,t,r,n){var o,i,a,u,s,c,l,f,p,h,d,v,g=hO.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(nT(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(e){var t,o;return!(Px(r).call(r,e)>-1&&Px(n).call(n,e)>-1)||(l=dT(ST(t=hy(r).call(r,0,Px(r).call(r,e))).call(t)),f=dT(ST(o=hy(n).call(n,0,Px(n).call(n,e))).call(o)),p=e,!1)})),g.style.width=pm(i="".concat(l)).call(i,p),g.style.height=pm(a="".concat(f)).call(a,p),g.style.backgroundSize=pm(u=pm(s=pm(c="".concat(l)).call(c,p," ")).call(s,f)).call(u,p),g.style.margin="start"===e?pm(h=pm(d=pm(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,l/2)).call(h,p):"auto 5px auto 5px");return g},hO.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var o="#";e.replace(/[0-9A-F]/gi,(function(e){o+=e+e})),e=o}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(OS(e,16))})),pm(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},hO.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},hO.checkIsFunction=function(e){return e&&"function"==typeof e},hO.checkIsObject=function(e){return null!==e&&"object"===WS(e)},hO.hide=function(e){e.style.display="none"},hO.show=function(e,t){e.style.display=t||"block"},hO.isUndefined=function(e){if(null==e)return!0},hO.isNotNull=function(e){return!(null==e)},hO.setStyleFromCsstext=function(e,t){if(t)if("String"===hO.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");AS(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;AS(n=Tl(t)).call(n,(function(r){e.style[r]=t[r]}))}},hO.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var o=n.replace(/\s+/g,"").split(";"),i={},a={};return AS(o).call(o,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(Px(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:i[t[0]]=t[1])}})),e.setAttribute("style",""),AS(t=Tl(a)).call(t,(function(t){e.style[t]=a[t]})),i},hO.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return AS(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},hO.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},hO.stopPropagation=function(e){e&&e.stopPropagation()},hO.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},hO.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},hO.checkTouchSupport=function(){return"ontouchstart"in window},hO.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});eO(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var o=[];if(t)for(var i=0;i<r.length;i++){var a=o.length;if(a){var u=o[a-1].end;r[i].start-u<t?r[i].end>u&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new pO(o)},hO.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},hO.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},hO.getHostFromUrl=function(e){if("String"!==hO.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},hO.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},hO.isMSE=function(e){return!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},hO.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},hO.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=OS(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=OS(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},hO.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},hO.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},hO.createPositionBar=function(e,t){var r=hO.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},hO.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={scale:"".concat(t.scale||1),translate:pm(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},o=Tl(n);return tf(o).call(o,(function(e){var t,o=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i=pm(t="".concat(e,"(")).call(t,n[e],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},hO.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},hO.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var o=1;o<r;o++)if(e>t[o-1].end&&e<=t[o].end){n=o;break}return n},hO.getOffsetCurrentTime=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=-1;if((n=r>=0&&r<t.length?r:hO.getIndexByTime(e,t))<0)return-1;var o=t.length,i=t[n],a=i.start,u=i.end,s=i.cTime,c=i.offset;return e<a?s:e>=a&&e<=u?e-c:e>u&&n>=o-1?u:-1},hO.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var o=t[r].start;return r-1<0?o+e:o+(e-t[r-1].duration)}return e};var dO="3.0.11-alpha.2",vO={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},gO=JS((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};KS(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var o,i=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,u=t.currentTime,s=t.ended,c=t.src,l=t.currentSrc,f=t.media,p=f.readyState,h=f.networkState,d=r.errorCode||i.code;vO[d]&&(d=vO[d]);var v={playerVersion:dO,currentTime:u,duration:a,ended:s,readyState:p,networkState:h,src:c||l,errorType:r.errorType,errorCode:d,message:r.errorMessage||i.message,mediaError:i,originError:r.originError?r.originError.stack:"",host:hO.getHostFromUrl(c||l)};return r.ext&&AS(o=Tl(r.ext)).call(o,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:dO,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)g[y[m]]=arguments[m];return g.ex=n?(n[arguments[0]]||{}).msg:"",g}}));function yO(e,t,r){for(var n,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u,s=t.call.apply(t,pm(n=[e]).call(n,i));r&&"function"==typeof r&&(s&&s.then?s.then((function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.call.apply(r,pm(t=[e]).call(t,o))})):r.call.apply(r,pm(u=[e]).call(u,i)))}function mO(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),Cy(r=function(){var r,o=arguments,i=this;if(n.pre)try{var a,u;(u=n.pre).call.apply(u,pm(a=[this]).call(a,hy(Array.prototype).call(arguments)))}catch(y){var s,c;throw y.message=pm(s=pm(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(s,y.message),y}if(this.__hooks&&this.__hooks[e])try{var l,f,p,h=(f=this.__hooks[e]).call.apply(f,pm(l=[this,this]).call(l,hy(Array.prototype).call(arguments)));if(h)if(h.then)h.then((function(e){var r;!1!==e&&yO.apply(void 0,pm(r=[i,t,n.next]).call(r,ZS(o)))})).catch((function(e){throw e}));else yO.apply(void 0,pm(p=[this,t,n.next]).call(p,hy(Array.prototype).call(arguments)));else if(void 0===h){var d;yO.apply(void 0,pm(d=[this,t,n.next]).call(d,hy(Array.prototype).call(arguments)))}}catch(y){var v,g;throw y.message=pm(v=pm(g="[pluginName: ".concat(this.pluginName,":")).call(g,e,"] >> ")).call(v,y.message),y}else yO.apply(void 0,pm(r=[this,t,n.next]).call(r,hy(Array.prototype).call(arguments)))}).call(r,this)}function _O(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function bO(e,t){var r=this.__hooks;r&&delete r[e]}function wO(e,t){var r;fO.logError(pm(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var xO=function(){function e(t){KS(this,e),hO.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&AS(t).call(t,(function(t){e.__hooks[t]=null})),Ef(e,"hooks",{get:function(){var t;return e.__hooks&&AS(t=Tl(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return JS(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=hO.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):jS(e)&&tf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):wO(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):jS(e)&&tf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):wO(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):jS(e)&&tf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):wO(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;tf(e=["__events","__onceEvents"]).call(e,(function(e){var r;tf(r=Tl(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(r=this.player).emit.apply(r,pm(t=[e]).call(t,o))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=YS(YS({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return mO.call.apply(mO,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return _O.call.apply(_O,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return bO.call.apply(bO,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(t.pluginName=r),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,r=this.player,n=this.pluginName;this.offAll(),hO.clearAllTimers(this),hO.checkIsFunction(this.destroy)&&this.destroy(),AS(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Ef(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),SO=te,kO=f;SO.JSON||(SO.JSON={stringify:JSON.stringify});var TO=function(e,t,r){return kO(SO.JSON.stringify,null,arguments)},OO=r(TO),EO=ee,LO=b,RO=pt("match"),CO=function(e){var t;return EO(e)&&(void 0!==(t=e[RO])?!!t:"RegExp"==LO(e))},PO=TypeError,AO=pt("match"),jO=no.includes;Lr({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return jO(this,e,arguments.length>1?arguments[1]:void 0)}});var IO=Rl("Array").includes,MO=Lr,NO=function(e){if(CO(e))throw PO("The method doesn't accept regular expressions");return e},FO=W,DO=Yn,UO=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[AO]=!1,"/./"[e](t)}catch(n){}}return!1},BO=g("".indexOf);MO({target:"String",proto:!0,forced:!UO("includes")},{includes:function(e){return!!~BO(DO(FO(this)),DO(NO(e)),arguments.length>1?arguments[1]:void 0)}});var HO=Rl("String").includes,zO=ue,qO=IO,GO=HO,$O=Array.prototype,VO=String.prototype,YO=r((function(e){var t=e.includes;return e===$O||zO($O,e)&&t===$O.includes?qO:"string"==typeof e||e===VO||zO(VO,e)&&t===VO.includes?GO:t})),WO={exports:{}},KO=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),XO=i,JO=ee,QO=b,ZO=KO,eE=Object.isExtensible,tE=XO((function(){eE(1)}))||ZO?function(e){return!!JO(e)&&((!ZO||"ArrayBuffer"!=QO(e))&&(!eE||eE(e)))}:eE,rE=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),nE=Lr,oE=g,iE=oo,aE=ee,uE=Qe,sE=Jt.f,cE=Ho,lE=Go,fE=tE,pE=rE,hE=!1,dE=nt("meta"),vE=0,gE=function(e){sE(e,dE,{value:{objectID:"O"+vE++,weakData:{}}})},yE=WO.exports={enable:function(){yE.enable=function(){},hE=!0;var e=cE.f,t=oE([].splice),r={};r[dE]=1,e(r).length&&(cE.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===dE){t(n,o,1);break}return n},nE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lE.f}))},fastKey:function(e,t){if(!aE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!uE(e,dE)){if(!fE(e))return"F";if(!t)return"E";gE(e)}return e[dE].objectID},getWeakData:function(e,t){if(!uE(e,dE)){if(!fE(e))return!0;if(!t)return!1;gE(e)}return e[dE].weakData},onFreeze:function(e){return pE&&hE&&fE(e)&&!uE(e,dE)&&gE(e),e}};iE[dE]=!0;var mE=WO.exports,_E=Lr,bE=o,wE=mE,xE=i,SE=gr,kE=jp,TE=lh,OE=E,EE=ee,LE=Ci,RE=Jt.f,CE=ea.forEach,PE=R,AE=Vi.set,jE=Vi.getterFor,IE=Bo,ME=ai,NE=s_,FE=Xt,DE=lh,UE=$,BE=jp,HE=dc,zE=vc,qE=uh,GE=R,$E=mE.fastKey,VE=Vi.set,YE=Vi.getterFor,WE={getConstructor:function(e,t,r,n){var o=e((function(e,o){DE(e,i),VE(e,{type:t,index:IE(null),first:void 0,last:void 0,size:0}),GE||(e.size=0),UE(o)||BE(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=YE(t),u=function(e,t,r){var n,o,i=a(e),u=s(e,t);return u?u.value=r:(i.last=u={index:o=$E(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),GE?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var r,n=a(e),o=$E(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return NE(i,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,GE?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=s(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),GE?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=FE(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),NE(i,r?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),GE&&ME(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=YE(t),i=YE(n);HE(e,t,(function(e,t){VE(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?zE("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,zE(void 0,!0))}),r?"entries":"values",!r,!0),qE(t)}};(function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",u=bE[e],s=u&&u.prototype,c={};if(PE&&OE(u)&&(i||s.forEach&&!xE((function(){(new u).entries().next()})))){var l=(n=t((function(t,r){AE(TE(t,l),{type:e,collection:new u}),null!=r&&kE(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,f=jE(e);CE(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in s)||i&&"clear"==e||SE(l,e,(function(r,n){var o=f(this).collection;if(!t&&i&&!EE(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||RE(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,o,a),wE.enable();LE(n,e,!1,!0),c[e]=n,_E({global:!0,forced:!0},c),i||r.setStrong(n,e,o)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),WE);var KE=te.Map,XE=Xt,JE=A,QE=Pe,ZE=dh,eL=$,tL=jp,rL=[].push,nL=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return ZE(this),(t=void 0!==a)&&QE(a),eL(e)?new this:(r=[],t?(n=0,o=XE(a,i>2?arguments[2]:void 0),tL(e,(function(e){JE(rL,r,o(e,n++))}))):tL(e,rL,{that:r}),new this(r))};Lr({target:"Map",stat:!0,forced:!0},{from:nL});var oL=ku,iL=function(){return new this(oL(arguments))};Lr({target:"Map",stat:!0,forced:!0},{of:iL});var aL=Ee,uL=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(aL(e)+" is not a map")},sL=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},cL=ae("Map"),lL={Map:cL,set:sL("set",2),get:sL("get",1),has:sL("has",1),remove:sL("delete",1),proto:cL.prototype},fL=uL,pL=lL.remove;Lr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=fL(this),r=!0,n=0,o=arguments.length;n<o;n++)e=pL(t,arguments[n]),r=r&&e;return!!r}});var hL=uL,dL=lL.get,vL=lL.has,gL=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=hL(this);return vL(o,e)?(r=dL(o,e),"update"in t&&(r=t.update(r,e,o),gL(o,e,r)),r):(n=t.insert(e,o),gL(o,e,n),n)}});var yL=A,mL=function(e,t,r){for(var n,o,i=r||e.next;!(n=yL(i,e)).done;)if(void 0!==(o=t(n.value)))return o},_L=function(e,t,r){return r?mL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},bL=Xt,wL=uL,xL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=wL(this),r=bL(e,arguments.length>1?arguments[1]:void 0);return!1!==xL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var SL=Xt,kL=uL,TL=_L,OL=lL.Map,EL=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=kL(this),r=SL(e,arguments.length>1?arguments[1]:void 0),n=new OL;return TL(t,(function(e,o){r(e,o,t)&&EL(n,o,e)})),n}});var LL=Xt,RL=uL,CL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=RL(this),r=LL(e,arguments.length>1?arguments[1]:void 0),n=CL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var PL=Xt,AL=uL,jL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=AL(this),r=PL(e,arguments.length>1?arguments[1]:void 0),n=jL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var IL=Lr,ML=A,NL=E,FL=Pe,DL=jp,UL=lL.Map,BL=g([].push);IL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(NL(this)?this:UL);FL(t);var n=FL(r.has),o=FL(r.get),i=FL(r.set);return DL(e,(function(e){var a=t(e);ML(n,r,a)?BL(ML(o,r,a),e):ML(i,r,a,[e])})),r}});var HL=function(e,t){return e===t||e!=e&&t!=t},zL=uL,qL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===qL(zL(this),(function(t){if(HL(t,e))return!0}),!0)}});var GL=A,$L=jp,VL=E,YL=Pe,WL=lL.Map;Lr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(VL(this)?this:WL);YL(t);var n=YL(r.set);return $L(e,(function(e){GL(n,r,t(e),e)})),r}});var KL=uL,XL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=XL(KL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var JL=Xt,QL=uL,ZL=_L,eR=lL.Map,tR=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=QL(this),r=JL(e,arguments.length>1?arguments[1]:void 0),n=new eR;return ZL(t,(function(e,o){tR(n,r(e,o,t),e)})),n}});var rR=Xt,nR=uL,oR=_L,iR=lL.Map,aR=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=nR(this),r=rR(e,arguments.length>1?arguments[1]:void 0),n=new iR;return oR(t,(function(e,o){aR(n,o,r(e,o,t))})),n}});var uR=uL,sR=jp,cR=lL.set;Lr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=uR(this),r=arguments.length,n=0;n<r;)sR(arguments[n++],(function(e,r){cR(t,e,r)}),{AS_ENTRIES:!0});return t}});var lR=Pe,fR=uL,pR=_L,hR=TypeError;Lr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=fR(this),r=arguments.length<2,n=r?void 0:arguments[1];if(lR(e),pR(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw hR("Reduce of empty map with no initial value");return n}});var dR=Xt,vR=uL,gR=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=vR(this),r=dR(e,arguments.length>1?arguments[1]:void 0);return!0===gR(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var yR=Pe,mR=uL,_R=TypeError,bR=lL.get,wR=lL.has,xR=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=mR(this),n=arguments.length;yR(t);var o=wR(r,e);if(!o&&n<3)throw _R("Updating absent value");var i=o?bR(r,e):yR(n>2?arguments[2]:void 0)(e,r);return xR(r,e,t(i,e,r)),r}});var SR=A,kR=Pe,TR=E,OR=rr,ER=TypeError,LR=function(e,t){var r,n=OR(this),o=kR(n.get),i=kR(n.has),a=kR(n.set),u=arguments.length>2?arguments[2]:void 0;if(!TR(t)&&!TR(u))throw ER("At least one callback required");return SR(i,n,e)?(r=SR(o,n,e),TR(t)&&(r=t(r),SR(a,n,e,r))):TR(u)&&(r=u(),SR(a,n,e,r)),r};Lr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:LR}),Lr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:LR});var RR=r(KE);function CR(e,t){var r=Tl(e);if(Ol){var n=Ol(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function PR(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=CR(Object(o),!0)).call(r,(function(t){UR(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=CR(Object(o))).call(n,(function(t){Ef(e,t,ql(o,t))}))}return e}function AR(){AR=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},o="function"==typeof Lf?Lf:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Cf(i.prototype),u=new k(o||[]);return n(a,"_invoke",{value:b(e,r,u)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=Cf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,u){var s=l(e[n],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==xl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=s(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,d):(e.__proto__=d,s(e,u,"GeneratorFunction")),e.prototype=Cf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Ug);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,tf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function jR(e){return(jR="function"==typeof Lf&&"symbol"==typeof IS?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function IR(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(LP){return void r(LP)}u.done?t(s):Ug.resolve(s).then(n,o)}function MR(e){return function(){var t=this,r=arguments;return new Ug((function(n,o){var i=e.apply(t,r);function a(e){IR(i,n,o,a,u,"next",e)}function u(e){IR(i,n,o,a,u,"throw",e)}a(void 0)}))}}function NR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ef(e,QR(n.key),n)}}function DR(e,t,r){return t&&FR(e.prototype,t),r&&FR(e,r),Ef(e,"prototype",{writable:!1}),e}function UR(e,t,r){return(t=QR(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Cf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ef(e,"prototype",{writable:!1}),t&&zR(e,t)}function HR(e){var t;return(HR=Mf?Cy(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function zR(e,t){var r;return(zR=Mf?Cy(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function qR(){if("undefined"==typeof Reflect||!$y)return!1;if($y.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call($y(Boolean,[],(function(){}))),!0}catch(e){return!1}}function GR(e,t,r){var n;qR()?GR=Cy(n=$y).call(n):GR=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Cy(Function).apply(e,n));return r&&zR(o,r.prototype),o};return GR.apply(null,arguments)}function $R(e){var t="function"==typeof RR?new RR:void 0;return $R=function(e){if(null===e||(r=e,-1===Px(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return GR(e,arguments,HR(this).constructor)}return o.prototype=Cf(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),zR(o,e)},$R(e)}function VR(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Tl(e);for(n=0;n<i.length;n++)r=i[n],Px(t).call(t,r)>=0||(o[r]=e[r]);return o}(e,t);if(Ol){var i=Ol(e);for(n=0;n<i.length;n++)r=i[n],Px(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function YR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WR(e){var t=qR();return function(){var r,n=HR(e);if(t){var o=HR(this).constructor;r=$y(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}(this,r)}}function KR(){var e;"undefined"!=typeof Reflect&&zS?KR=Cy(e=zS).call(e):KR=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=HR(e)););return e}(e,t);if(n){var o=ql(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return KR.apply(this,arguments)}function XR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JR(e,t){var r=void 0!==Lf&&qS(e)||e["@@iterator"];if(!r){if(jS(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return XR(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?$S(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XR(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function QR(e){var t=function(e,t){if("object"!==xl(e)||null===e)return e;var r=e[Vy];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xl(t)?t:String(t)}var ZR=Pe,eC=Ke,tC=G,rC=Ur,nC=TypeError,oC=function(e){return function(t,r,n,o){ZR(r);var i=eC(t),a=tC(i),u=rC(i),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw nC("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},iC={left:oC(!1),right:oC(!0)}.left;Lr({target:"Array",proto:!0,forced:!rh&&ve>79&&ve<83||!$l("reduce")},{reduce:function(e){var t=arguments.length;return iC(this,e,t,t>1?arguments[1]:void 0)}});var aC,uC=Rl("Array").reduce,sC=ue,cC=uC,lC=Array.prototype,fC=r((function(e){var t=e.reduce;return e===lC||sC(lC,e)&&t===lC.reduce?cC:t})),pC="network",hC="network_timeout",dC="network_forbidden",vC="network_notfound",gC="network_range_not_satisfiable",yC="demux",mC="remux",_C="media",bC="drm",wC="other",xC="runtime",SC=(UR(aC={},"manifest",{HLS:1100,DASH:1200}),UR(aC,pC,2100),UR(aC,hC,2101),UR(aC,dC,2103),UR(aC,vC,2104),UR(aC,gC,2116),UR(aC,yC,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),UR(aC,mC,{FMP4:4100,MP4:4200}),UR(aC,_C,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,EME_HIJACK:5301}),UR(aC,bC,{LICENSE:7100,CUSTOM_LICENSE:7200}),UR(aC,wC,8e3),UR(aC,xC,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),aC),kC=function(e){BR(r,e);var t=WR(r);function r(e,n,o,i,a){var u;return NR(this,r),(u=t.call(this,a||(null==o?void 0:o.message))).errorType=e===hC?pC:e,u.originError=o,u.ext=i,u.errorCode=SC[e][n]||SC[e],u.errorMessage=u.message,u.errorCode||(u.errorType=wC,u.errorCode=SC[u.errorType]),u}return DR(r,null,[{key:"create",value:function(e,t,n,o,i){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=wC),new r(e,t,n,o,i))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?hC:pC,null,e instanceof Error?e:null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),r}($R(Error)),TC=1,OC=2,EC=3,LC=4,RC=["Boolean","Number","String","Undefined","Null","Date","Object"],CC=function(){function e(t,r){NR(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=(null==r?void 0:r.disabled)||!0,this.logCacheLevel=(null==r?void 0:r.logCacheLevel)||3,this.logMaxSize=(null==r?void 0:r.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return DR(e,[{key:"debug",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[TC]).call(t,i)),e.disabled||(n=console).debug.apply(n,pm(r=[this._prefix,PC()]).call(r,i))}},{key:"log",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[OC]).call(t,i)),e.disabled||(n=console).log.apply(n,pm(r=[this._prefix,PC()]).call(r,i))}},{key:"warn",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[EC]).call(t,i)),e.disabled||(n=console).warn.apply(n,pm(r=[this._prefix,PC()]).call(r,i))}},{key:"error",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[LC]).call(t,i)),e.disabled||(n=console).error.apply(n,pm(r=[this._prefix,PC()]).call(r,i))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=AS(n).call(n,(function(e){return jC(e)}));t=this._prefix+PC()+OO(i)}catch(u){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function PC(){return(new Date).toLocaleString()}function AC(e){var t;if("object"!==jR(e))return e;var r=hy(t=Object.prototype.toString.call(e)).call(t,8,-1);switch(r){case"Array":case"Uint8Array":case"ArrayBuffer":return r+"["+e.length+"]";case"Object":return"{}";default:return r}}function jC(e,t,r){var n;r||(r=1),t||(t=2);var o={};if(!e||"object"!==jR(e))return e;var i=hy(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!YO(RC).call(RC,i))return i;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?o[a]=AC(e[a]):"object"===jR(e[a])?o[a]=jC(e[a],t,r+1):o[a]=e[a]);return o}}UR(CC,"disabled",!0);var IC="fetch",MC="xhr",NC="arraybuffer",FC="text",DC="json",UC=function(e){BR(r,e);var t=WR(r);function r(e,n,o,i){var a;return NR(this,r),UR(YR(a=t.call(this,i)),"retryCount",0),UR(YR(a),"isTimeout",!1),UR(YR(a),"loaderType",IC),UR(YR(a),"startTime",0),UR(YR(a),"endTime",0),UR(YR(a),"options",{}),a.url=e,a.request=n,a.response=o,a}return DR(r)}($R(Error)),BC=Object.prototype.toString;function HC(e){if("[object Object]"!==BC.call(e))return!1;var t=If(e);return null===t||t===Object.prototype}function zC(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function qC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GC(e,t){var r,n;if(e){if(!t)return e;var o,i=Il(r=AS(n=Tl(t)).call(n,(function(e){if(null!=(o=t[e]))return jS(o)?e+="[]":o=[o],AS(o).call(o,(function(t){var r,n;return n=t,"[object Date]"===BC.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===jR(e)}(t)&&(t=OO(t)),pm(r="".concat(qC(e),"=")).call(r,qC(t))})).join("&")}))).call(r,Boolean).join("&");if(i){var a=Px(e).call(e,"#");-1!==a&&(e=hy(e).call(e,0,a)),e+=(-1===Px(e).call(e,"?")?"?":"&")+i}return e}}function $C(e,t,r,n,o,i,a,u,s,c,l){return o=null!=o?dT(o):null,n=OS(n||"0",10),oS(n)&&(n=0),{data:e,done:t,options:{range:s,vid:c,index:u,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:iO(),priOptions:l},response:r}}function VC(e,t){return Math.round(8*e*1e3/t/1024)}var YC="error",WC="core.ttfb",KC="core.loadstart",XC="core.loadresponseheaders",JC="core.loadcomplete",QC="core.loadretry",ZC="core.metadataparsed",eP="real_time_speed",tP=2097152,rP=function(e){BR(n,e);var t,r=WR(n);function n(){var e;return NR(this,n),UR(YR(e=r.call(this)),"_abortController",null),UR(YR(e),"_timeoutTimer",null),UR(YR(e),"_reader",null),UR(YR(e),"_response",null),UR(YR(e),"_aborted",!1),UR(YR(e),"_index",-1),UR(YR(e),"_range",null),UR(YR(e),"_receivedLength",0),UR(YR(e),"_running",!1),UR(YR(e),"_logger",null),UR(YR(e),"_vid",""),UR(YR(e),"_onProcessMinLen",0),UR(YR(e),"_onCancel",null),UR(YR(e),"_priOptions",null),e}return DR(n,[{key:"load",value:function(e){var t,r=this,n=e.url,o=e.vid,i=e.timeout,a=e.responseType,u=e.onProgress,s=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,p=e.transformResponse,h=e.request,d=e.params,v=e.logger,g=e.method,y=e.headers,m=e.body,_=e.mode,b=e.credentials,w=e.cache,x=e.redirect,S=e.referrer,k=e.referrerPolicy,T=e.onProcessMinLen,O=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=T,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=s,this._range=f||[0,0],this._vid=o||n,this._priOptions=O||{};var E={method:g,headers:y,body:m,mode:_,credentials:b,cache:w,redirect:x,referrer:S,referrerPolicy:k,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},L=!1;clearTimeout(this._timeoutTimer),n=GC(n,d);var R=zC(f);R&&(y=h?h.headers:E.headers=E.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",R):y.Range=R),i&&(this._timeoutTimer=Jk((function(){if(L=!0,r.cancel(),c){var e=new UC(n,E,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),i));var C=iO();return this._logger.debug("[fetch load start], index,",s,",range,",f),new Ug((function(e,t){fetch(h||n,h?void 0:E).then(function(){var o=MR(AR().mark((function o(i){var c,l,h,d;return AR().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=i,!r._aborted&&r._running){o.next=4;break}return o.abrupt("return");case 4:if(p&&(i=p(i,n)||i),i.ok){o.next=7;break}throw new UC(n,E,i,"bad network response");case 7:if(c=iO(),a!==FC){o.next=15;break}return o.next=11,i.text();case 11:l=o.sent,r._running=!1,o.next=37;break;case 15:if(a!==DC){o.next=22;break}return o.next=18,i.json();case 18:l=o.sent,r._running=!1,o.next=37;break;case 22:if(!u){o.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(i,u,C,c),o.abrupt("return");case 29:return o.next=31,i.arrayBuffer();case 31:l=o.sent,l=new Uint8Array(l),r._running=!1,h=iO()-C,d=VC(l.byteLength,h),r.emit(eP,{speed:d,len:l.byteLength,time:h,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",s,",range,",f),e($C(l,!0,i,i.headers.get("Content-Length"),i.headers.get("age"),C,c,s,f,r._vid,r._priOptions));case 39:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()).catch((function(e){var o;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!L||((e=e instanceof UC?e:new UC(n,E,null,null===(o=e)||void 0===o?void 0:o.message)).startTime=C,e.endTime=iO(),e.isTimeout=L,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=MR(AR().mark((function e(){return AR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(LP){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var o=this;if(!e.body||!e.body.getReader){this._running=!1;var i=new UC(e.url,"",e,"onProgress of bad response.body.getReader");return i.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(i)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(tP),this._writeIdx=0);var a,u,s,c=this._reader=e.body.getReader(),l=function(){var i=MR(AR().mark((function i(){var f,p,h,d,v,g,y,m;return AR().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return u=iO(),i.prev=1,i.next=4,c.read();case 4:a=i.sent,s=iO(),i.next=13;break;case 8:return i.prev=8,i.t0=i.catch(1),s=iO(),o._aborted||(o._running=!1,i.t0.options={index:o._index,range:o._range,vid:o._vid,priOptions:o._priOptions},o.reject(i.t0)),i.abrupt("return");case 13:if(p=(null===(f=o._range)||void 0===f?void 0:f.length)>0?o._range[0]:0,h=p+o._receivedLength,!o._aborted){i.next=19;break}return o._running=!1,t(void 0,!1,{range:[h,h],vid:o._vid,index:o._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:o._priOptions},e),i.abrupt("return");case 19:var _;if(d=a.value?a.value.byteLength:0,o._receivedLength+=d,o._logger.debug("【fetchLoader,onProgress call】,task,",o._range,", start,",h,", end,",p+o._receivedLength,", done,",a.done),o._onProcessMinLen>0){if(o._writeIdx+d>=o._onProcessMinLen||a.done)(v=new Uint8Array(o._writeIdx+d)).set(hy(_=o._cache).call(_,0,o._writeIdx),0),d>0&&v.set(a.value,o._writeIdx),o._writeIdx=0,o._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",o._writeIdx);else if(d>0&&o._writeIdx+d<tP)o._cache.set(a.value,o._writeIdx),o._writeIdx+=d,o._logger.debug("【fetchLoader,onProgress cache】,len,",d,", writeIdx,",o._writeIdx);else if(d>0){var b;g=new Uint8Array(o._writeIdx+d+2048),o._logger.debug("【fetchLoader,onProgress extra start】,size,",o._writeIdx+d+2048,", datalen,",d,", writeIdx,",o._writeIdx),g.set(hy(b=o._cache).call(b,0,o._writeIdx),0),d>0&&g.set(a.value,o._writeIdx),o._writeIdx+=d,delete o._cache,o._cache=g,o._logger.debug("【fetchLoader,onProgress extra end】,len,",d,", writeIdx,",o._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[o._range[0]+o._receivedLength-(v?v.byteLength:0),o._range[0]+o._receivedLength],vid:o._vid,index:o._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:o._priOptions},e),a.done?(y=iO()-r,m=VC(o._receivedLength,y),o.emit(eP,{speed:m,len:o._receivedLength,time:y,vid:o._vid,index:o._index,range:o._range,priOptions:o._priOptions}),o._running=!1,o._logger.debug("[fetchLoader onProgress end],task,",o._range,",done,",a.done),o.resolve($C(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,o._index,o._range,o._vid,o._priOptions))):l();case 25:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(){return i.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(ik);var nP=function(e){BR(r,e);var t=WR(r);function r(){var e;return NR(this,r),UR(YR(e=t.call(this)),"_xhr",null),UR(YR(e),"_aborted",!1),UR(YR(e),"_timeoutTimer",null),UR(YR(e),"_range",null),UR(YR(e),"_receivedLength",0),UR(YR(e),"_url",null),UR(YR(e),"_onProgress",null),UR(YR(e),"_index",-1),UR(YR(e),"_headers",null),UR(YR(e),"_currentChunkSizeKB",384),UR(YR(e),"_timeout",null),UR(YR(e),"_xhr",null),UR(YR(e),"_withCredentials",null),UR(YR(e),"_startTime",-1),UR(YR(e),"_loadCompleteResolve",null),UR(YR(e),"_loadCompleteReject",null),UR(YR(e),"_runing",!1),UR(YR(e),"_logger",!1),UR(YR(e),"_vid",""),UR(YR(e),"_responseType",void 0),UR(YR(e),"_credentials",void 0),UR(YR(e),"_method",void 0),UR(YR(e),"_transformResponse",void 0),UR(YR(e),"_firstRtt",void 0),UR(YR(e),"_onCancel",null),UR(YR(e),"_priOptions",null),e}return DR(r,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=GC(e.url,e.params);var r=iO();return new Ug((function(e,r){t._loadCompleteResolve=e,t._loadCompleteReject=r,t._startLoad()})).catch((function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof UC?e:new UC(t._url,t._request)).startTime=r,e.endTime=iO(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===NC&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,r=this._range[0]+this._receivedLength,n=this._range[1];t<this._range[1]-r&&(n=r+t),e=[r,n],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{var r,n;this._startTime=iO();var o=this._xhr=new XMLHttpRequest;o.open(this._method||"GET",this._url,!0),o.responseType=this._responseType,this._timeout&&(o.timeout=this._timeout),o.withCredentials=this._withCredentials,o.onload=Cy(r=this._onLoad).call(r,this),o.onreadystatechange=Cy(n=this._onReadyStatechange).call(n,this),o.onerror=function(e){var r,n,o;t._running=!1;var i=new UC(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(o=e.currentTarget)||void 0===o?void 0:o.statusText));i.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(i)},o.ontimeout=function(e){t.cancel();var r=new UC(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var i,a=this._headers||{},u=zC(e);if(u&&(a.Range=u),a)tf(i=Tl(a)).call(i,(function(e){o.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),o.send(this._body)}catch(s){s.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(s)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=iO())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new UC(this._url,null,PR(PR({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var o,i=null,a=!1,u=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===NC){var s,c=new Uint8Array(e.target.response);if(o=u+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=iO()-this._startTime,f=VC(this._receivedLength,l);this.emit(eP,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[o,u+this._receivedLength],priOptions:this._priOptions})}i=c,a=!((null===(s=this._range)||void 0===s?void 0:s.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",o,"end ",u+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,i=e.target.response;var p={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(p=this._transformResponse(p,this._url)||p),this._onProgress&&this._onProgress(i,a,{index:this._index,vid:this._vid,range:[o,u+this._receivedLength],startTime:this._startTime,endTime:iO(),priOptions:this._priOptions},p),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve($C(this._onProgress?null:i,a,p,p.headers["content-length"],p.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,KR(HR(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},o=JR(ST(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(o.s();!(r=o.n()).done;){var i=r.value.split(": ");n[i[0].toLowerCase()]=hy(i).call(i,1).join(": ")}}catch(a){o.e(a)}finally{o.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(ik),oP=["retry","retryDelay","onRetryError","transformError"],iP=function(){function e(t,r){var n,o,i;NR(this,e),this.promise=((i=new Ug((function(e,t){n=e,o=t}))).used=!1,i.resolve=function(){return i.used=!0,n.apply(void 0,arguments)},i.reject=function(){return i.used=!0,o.apply(void 0,arguments)},i),this.alive=!!r.onProgress,!r.logger&&(r.logger=new CC("Loader")),this._loaderType=t,this._loader=t===IC&&window.fetch?new rP:new nP,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return DR(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,o=t.onRetryError,i=t.transformError,a=VR(t,oP),u=function(){var t=MR(AR().mark((function t(){var s,c,l;return AR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:s=t.sent,e.promise.resolve(s),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,i&&(c=i(c)||c),o&&e._retryCount>0&&o(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=Jk(u,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return u(),this.promise}},{key:"cancel",value:(t=MR(AR().mark((function e(){return AR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),e}();function aP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Ug((function(t){return Jk(t,e)}))}var uP,sP=function(e){BR(n,e);var t,r=WR(n);function n(e){var t;return NR(this,n),UR(YR(t=r.call(this,e)),"type",IC),UR(YR(t),"_queue",[]),UR(YR(t),"_alive",[]),UR(YR(t),"_currentTask",null),UR(YR(t),"_config",void 0),t._config=function(e){return PR({loaderType:IC,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:FC,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e)}(e),t._config.loaderType!==MC&&rP.isSupported()||(t.type=MC),t.log=e.logger,t}return DR(n,[{key:"isFetch",value:function(){return this.type===IC}},{key:"load",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?r=e:r.url=e||r.url||this._config.url,(r=nk({},this._config,r)).params&&(r.params=nk({},r.params)),r.headers&&HC(r.headers)&&(r.headers=nk({},r.headers)),r.body&&HC(r.body)&&(r.body=nk({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new iP(this.type,r);return n.loader.on(eP,(function(e){t.emit(eP,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=MR(AR().mark((function e(){var t;return AR().wrap((function(e){for(var r,n,o;;)switch(e.prev=e.next){case 0:return t=pm(r=AS(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,AS(o=this._alive).call(o,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Ug.all(t);case 6:return e.next=8,aP();case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch((function(e){}));t&&"function"==typeof t.finally&&t.finally((function(){var t,r,n;null!==(t=e._currentTask)&&void 0!==t&&t.alive&&(null===(r=e._alive)||void 0===r?void 0:r.length)>0&&(e._alive=Il(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return rP.isSupported()}}]),n}(ik),cP="core.rtcstatechange",lP={},fP={},pP={exports:{}},hP=pP.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};tf(uP=Tl(hP)).call(uP,(function(e){var t=hP[e];tf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var dP=pP.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(n.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},o=dP,i=Cy(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},u=[],s=a;return tf(t=Il(r=e.split(/(\r\n|\r|\n)/)).call(r,i)).call(t,(function(e){var t=e[0],r=hy(e).call(e,2);"m"===t&&(u.push({rtp:[],fmtp:[]}),s=u[u.length-1]);for(var i=0;i<(o[t]||[]).length;i+=1){var a=o[t][i];if(a.reg.test(r))return n(a,s,r)}})),a.media=u,a};var a=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};e.parseParams=function(e){var t;return fC(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return AS(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],o=AS(t=e.split(" ")).call(t,r),i=0;i<o.length;i+=3)n.push({component:o[i],ip:o[i+1],port:o[i+2]});return n},e.parseImageAttributes=function(e){var t;return AS(t=e.split(" ")).call(t,(function(e){var t;return fC(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return AS(t=e.split(";")).call(t,(function(e){var t;return AS(t=e.split(",")).call(t,(function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}}(fP);var vP=dP,gP=/%[sdv%]/g,yP=function(e){var t=1,r=arguments,n=r.length;return e.replace(gP,(function(e){if(t>=n)return e;var o=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},mP=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var i=t.names[o];t.name?n.push(r[t.name][i]):n.push(r[t.names[o]])}else n.push(r[t.name]);return yP.apply(null,n)},_P=["v","o","s","i","u","e","p","c","b","t","r","z","a"],bP=["i","c","b","a"],wP=fP,xP=function(e,t){var r,n;t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),tf(r=e.media).call(r,(function(e){null==e.payloads&&(e.payloads="")}));var o=t.outerOrder||_P,i=t.innerOrder||bP,a=[];return tf(o).call(o,(function(t){var r;tf(r=vP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(mP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(mP(t,r,e))}))}}))})),tf(n=e.media).call(n,(function(e){a.push(mP("m",vP.m[0],e)),tf(i).call(i,(function(t){var r;tf(r=vP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(mP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(mP(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function SP(e){return new Ug((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n;t((n=[],tf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e)})),AS(n).call(n,(function(e){var t=r.get(e.codecId),n=r.get(e.trackId);return{type:e.mediaType,inboundRtp:e,codec:t,track:n}}))))}))})).catch((function(){}))}lP.write=xP,lP.parse=wP.parse,lP.parseParams=wP.parseParams,lP.parseFmtpConfig=wP.parseFmtpConfig,lP.parsePayloads=wP.parsePayloads,lP.parseRemoteCandidates=wP.parseRemoteCandidates,lP.parseImageAttributes=wP.parseImageAttributes,lP.parseSimulcastStreamList=wP.parseSimulcastStreamList;var kP=new CC("rts"),TP=function(e){rm(o,e);var t,r,n=am(o);function o(e){var t;return Qy(this,o),tm(im(t=n.call(this)),"_url",""),tm(im(t),"_pc",null),tm(im(t),"_audioTransceicer",null),tm(im(t),"_videoTransceicer",null),tm(im(t),"_mediaStream",null),tm(im(t),"_media",null),tm(im(t),"_opts",null),tm(im(t),"_loader",null),tm(im(t),"_retry",0),tm(im(t),"_waitingTimer",0),tm(im(t),"_rctConnectStartTs",0),tm(im(t),"_onTrack",(function(e){if(kP.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track,!t._mediaStream){t._mediaStream=new MediaStream,t._media.srcObject=t._mediaStream;var r=t._media.play();r&&r.catch&&r.catch((function(e){}))}t._mediaStream.addTrack(e.track)})),tm(im(t),"_mockWaitingByTimeupdate",(function(){var e,r;"connected"!==(null===(e=t._pc)||void 0===e?void 0:e.connectionState)&&"connected"!==(null===(r=t._pc)||void 0===r?void 0:r.iceConnectionState)||(clearTimeout(t._waitingTimer),t._waitingTimer=Jk((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),tm(im(t),"_onLoadedData",(function(){kP.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(ZC,{type:"video",elapsed:iO()-t._rctConnectStartTs,meta:e.video}),t.emit(ZC,{type:"audio",elapsed:iO()-t._rctConnectStartTs,meta:e.audio})}))})),tm(im(t),"_onLoaderRetry",(function(e,r){t.emit(QC,{error:kC.network(e),retryTime:r})})),t._opts=function(e){return Wy({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,delayHint:0},e)}(e),t._media=t._opts.media,t._loader=new sP(Wy(Wy({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:kP})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t}return em(o,[{key:"pc",get:function(){return this._pc}},{key:"audioTrack",get:function(){return this._audio}},{key:"videoTack",get:function(){return this._video}},{key:"loader",get:function(){return this._loader}},{key:"getStats",value:function(){return SP(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return function(e){var t,r,n,o,i,a,u,s,c,l,f,p,h,d,v,g,y,m,_,b,w,x,S,k,T,O,E,L,R,C=null==e?void 0:Il(e).call(e,(function(e){return"video"===e.type}))[0],P=null==e?void 0:Il(e).call(e,(function(e){return"audio"===e.type}))[0];return{video:C?{codec:null===(t=C.codec)||void 0===t?void 0:t.mimeType,payloadType:null===(r=C.codec)||void 0===r?void 0:r.payloadType,sdpFmtpLine:null===(n=C.codec)||void 0===n?void 0:n.sdpFmtpLine,bytesReceived:null===(o=C.inboundRtp)||void 0===o?void 0:o.bytesReceived,firCount:null===(i=C.inboundRtp)||void 0===i?void 0:i.firCount,pliCount:null===(a=C.inboundRtp)||void 0===a?void 0:a.pliCount,frameHeight:null===(u=C.inboundRtp)||void 0===u?void 0:u.frameHeight,frameWidth:null===(s=C.inboundRtp)||void 0===s?void 0:s.frameWidth,framesDecoded:null===(c=C.inboundRtp)||void 0===c?void 0:c.framesDecoded,framesDropped:null===(l=C.inboundRtp)||void 0===l?void 0:l.framesDropped,framesPerSecond:null===(f=C.inboundRtp)||void 0===f?void 0:f.framesPerSecond,framesReceived:null===(p=C.inboundRtp)||void 0===p?void 0:p.framesReceived,jitter:null===(h=C.inboundRtp)||void 0===h?void 0:h.jitter,jitterBufferDelay:null===(d=C.inboundRtp)||void 0===d?void 0:d.jitterBufferDelay,keyFramesDecoded:null===(v=C.inboundRtp)||void 0===v?void 0:v.keyFramesDecoded,nackCount:null===(g=C.inboundRtp)||void 0===g?void 0:g.nackCount,packetsLost:null===(y=C.inboundRtp)||void 0===y?void 0:y.packetsLost,packetsReceived:null===(m=C.inboundRtp)||void 0===m?void 0:m.packetsReceived}:void 0,audio:P?{codec:null===(_=P.codec)||void 0===_?void 0:_.mimeType,payloadType:null===(b=P.codec)||void 0===b?void 0:b.payloadType,sdpFmtpLine:null===(w=P.codec)||void 0===w?void 0:w.sdpFmtpLine,bytesReceived:null===(x=P.inboundRtp)||void 0===x?void 0:x.bytesReceived,audioLevel:null===(S=P.inboundRtp)||void 0===S?void 0:S.audioLevel,jitter:null===(k=P.inboundRtp)||void 0===k?void 0:k.jitter,jitterBufferDelay:null===(T=P.inboundRtp)||void 0===T?void 0:T.jitterBufferDelay,packetsLost:null===(O=P.inboundRtp)||void 0===O?void 0:O.packetsLost,packetsReceived:null===(E=P.inboundRtp)||void 0===E?void 0:E.packetsReceived,totalSamplesDuration:null===(L=P.inboundRtp)||void 0===L?void 0:L.totalSamplesDuration,totalSamplesReceived:null===(R=P.inboundRtp)||void 0===R?void 0:R.totalSamplesReceived}:void 0}}(e)}))}},{key:"load",value:(r=Jy(Ky().mark((function e(t){var r,n=this;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._disconnect(),this._url=t,this._retry=this._opts.retryCount,(r=this._pc)&&r.close(),e.prev=5,this._pc=new RTCPeerConnection,this._bindRTCEvents(),e.next=10,this._connect(t);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),Jk((function(){return n._emitError(kC.create(wC,null,e.t0))}));case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(e){return r.apply(this,arguments)})},{key:"switchURL",value:function(e){this.load(e||this._url)}},{key:"_bindRTCEvents",value:function(){var e=this,t=this._pc;t.addEventListener("track",this._onTrack),t.addEventListener("connectionstatechange",(function(){if(kP.warn("onconnectionstatechange:",t.connectionState),e.emit(cP,{state:t.connectionState,url:e._url}),"disconnected"!==t.connectionState&&"failed"!==t.connectionState||e.emit("waiting"),"failed"===t.connectionState){if(0===e._retry)return void e._emitError(kC.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&e.emit(WC,{url:e._url,responseUrl:e._url,elapsed:iO()-e._rctConnectStartTs})}))}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=Jy(Ky().mark((function e(){var t,r,n,o,i,a,u,s,c,l,f,p,h,d;return Ky().wrap((function(e){for(var v,g,y,m;;)switch(e.prev=e.next){case 0:if(!(t=this._pc).addTransceiver){e.next=11;break}return this._audioTransceicer=t.addTransceiver("audio",{direction:"recvonly"}),this._videoTransceicer=t.addTransceiver("video",{direction:"recvonly"}),(n=this._opts.delayHint)&&(this._audioTransceicer.receiver.playoutDelayHint=n,this._audioTransceicer.receiver.jitterBufferDelayHint=n,this._videoTransceicer.receiver.playoutDelayHint=n,this._videoTransceicer.receiver.jitterBufferDelayHint=n),e.next=8,t.createOffer();case 8:r=e.sent,e.next=14;break;case 11:return e.next=13,t.createOffer({iceRestart:!0,offerToReceiveAudio:!0,offerToReceiveVideo:!0});case 13:r=e.sent;case 14:return kP.log("local offer"),kP.log(r.sdp),o=lP.parse(r.sdp),tf(v=Il(g=o.media).call(g,(function(e){return"audio"===e.type}))).call(v,(function(e){var t,r,n,o=null===(n=Il(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;o&&tf(r=e.fmtp).call(r,(function(e){e.payload===o&&(e.config="minptime=10;stereo=1;useinbandfec=1")}))})),r.sdp=lP.write(o),kP.log("local offer modified:\n",r.sdp),e.next=22,t.setLocalDescription(r);case 22:return i=this._url,e.prev=23,this._opts.preProcessUrl&&(i=this._opts.preProcessUrl(i).url),this._loader.finnalUrl=i,s=/_?session_id=([^&$]+)/.exec(i),c=s?s[1]:iO()+"666",this.emit(KC,{url:i,offersdp:r.sdp,sessionId:c}),l=iO(),e.next=32,this._loader.load(i,{body:OO({sessionId:c,version:"1.0-html",localSdp:r})});case 32:if(f=e.sent,this.emit(XC,{headers:f.response.headers}),404!==(null==(p=null==f?void 0:f.data)?void 0:p.code)&&403!==(null==p?void 0:p.code)){e.next=40;break}return(h=kC.create(404===p.code?vC:dC,null,p)).errorType=pC,this._emitError(h),e.abrupt("return");case 40:if(200===(null==p?void 0:p.code)){e.next=42;break}throw new Error(pm(y="code: ".concat(null==p?void 0:p.code,", message:")).call(y,null==p?void 0:p.message));case 42:return kP.log("answer:"),kP.log(null===(a=p.remoteSdp)||void 0===a?void 0:a.sdp),this.emit(JC,{url:i,elapsed:iO()-l,answersdp:null===(u=p.remoteSdp)||void 0===u?void 0:u.sdp}),d=lP.parse(p.remoteSdp.sdp),tf(m=d.media).call(m,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),p.remoteSdp.sdp=lP.write(d),kP.log("answer modified:\n",p.remoteSdp.sdp),this._rctConnectStartTs=iO(),e.next=52,this._pc.setRemoteDescription(p.remoteSdp);case 52:e.next=57;break;case 54:e.prev=54,e.t0=e.catch(23),this._emitError(kC.network(e.t0));case 57:case"end":return e.stop()}}),e,this,[[23,54]])}))),function(){return t.apply(this,arguments)})},{key:"_disconnect",value:function(){var e;null===(e=this._loader)||void 0===e||e.cancel(),this._audioTransceicer=null,this._videoTransceicer=null,this._mediaStream=null}},{key:"_emitError",value:function(e){this.emit(YC,e)}},{key:"destroy",value:function(){var e;this._disconnect(),null===(e=this._media)||void 0===e||e.removeEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media&&(this._media.srcObject=null),this._pc&&this._pc.close(),this._loader=null,this._media=null,this._pc=null}}],[{key:"enableLogger",value:function(){CC.enable()}},{key:"disableLogger",value:function(){CC.disable()}}]),o}(ik);try{localStorage.getItem("xgd")?TP.enableLogger():TP.disableLogger()}catch(LP){}function OP(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var EP=function(e){rm(n,e);var t,r=am(n);function n(){var e,t;Qy(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return tm(im(t=r.call.apply(r,pm(e=[this]).call(e,i))),"_rts",null),tm(im(t),"_rtsOpts",null),tm(im(t),"_init",(function(){var e;null===(e=t._rts)||void 0===e||e.destroy();var r=t.player.config,n=r.rts||{};t._rtsOpts=n,t._rts=new TP(Wy({media:t.player.video,preProcessUrl:function(e,r){var n,o;return(null===(n=(o=t.player).preProcessUrl)||void 0===n?void 0:n.call(o,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),tm(im(t),"_onSwitchURL",(function(e){t._rts&&(t.player.config.url=e,t._rts.switchURL(e))})),t}return em(n,[{key:"pc",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.pc}},{key:"videoTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.videoTack}},{key:"audioTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.audioTrack}},{key:"core",get:function(){return this._rts}},{key:"loader",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.loader}},{key:"version",get:function(){return"0.2.0-alpha.5"}},{key:"beforePlayerInit",value:function(){var e,t=this;this._init(),this.player.switchURL=this._onSwitchURL,null===(e=this.player)||void 0===e||e.useHooks("replay",(function(){var e;return null===(e=t._rts)||void 0===e?void 0:e.switchURL()})),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),this._transErrorEvent(),this._transCoreEvent(KC),this._transCoreEvent(JC),this._transCoreEvent(WC),this._transCoreEvent(XC),this._transCoreEvent(QC),this._transCoreEvent(ZC),this._transCoreEvent(cP);try{xO.defineGetterOrSetter(this.player,{__url:{get:function(){try{return wx.createObjectURL(new MediaSource)}catch(n){var e,r;null!==(e=t.player)&&void 0!==e&&null!==(r=e.video)&&void 0!==r&&r.srcObject||(t.player.video.srcObject=new MediaStream)}}}})}catch(r){}}},{key:"getStats",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStats()}},{key:"getStatsSnapshoot",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStatsSnapshoot()}},{key:"_transErrorEvent",value:function(){var e=this;this._rts.on(YC,(function(t){if(e.player){var r=new gO(e.player,t),n=e._rtsOpts,o=n.backupConstruct,i=n.backupURL;if(i){var a,u=e.player;u.emit("core_event",Wy(Wy({},{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),u.emit("degrade",{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),u.unRegisterPlugin("rts"),e._rts=null,u.rts=null,null!==(a=u.video)&&void 0!==a&&a.srcObject&&(u.video.srcObject=null),u.config.url=i,o?u.registerPlugin(o).beforePlayerInit():u.video.src=i}else e.player.emit("error",r)}})),this._rts.on("waiting",(function(){var t;null===(t=e.player)||void 0===t||t.emit("waiting")}))}},{key:"_transCoreEvent",value:function(e){var t=this;this._rts.on(e,(function(r){t.player&&t.player.emit("core_event",Wy(Wy({},r),{},{eventName:e}))}))}},{key:"destroy",value:function(){var e;null===(e=this._rts)||void 0===e||e.destroy()}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return OP()}},{key:"getCapacity",value:function(){return function(){if(!OP())return Ug.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Ug.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,o,i;kP.log(t.sdp);var a=lP.parse(t.sdp),u=null===(r=a.media)||void 0===r?void 0:Il(r).call(r,(function(e){return"video"===e.type}))[0],s=null===(n=a.media)||void 0===n?void 0:Il(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==u||null===(o=u.rtp)||void 0===o?void 0:Il(o).call(o,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==s||null===(i=s.rtp)||void 0===i?void 0:Il(i).call(i,(function(e){return"opus"===e.codec})),f=null==u?void 0:u.fmtp,p=null==s?void 0:s.fmtp;return f&&AS(c).call(c,(function(e){var t;e.config=null===(t=Il(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),p&&AS(l).call(l,(function(e){var t;e.config=null===(t=Il(p).call(p,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),e.close(),{video:c,audio:l}}))}()}},{key:"isSupportedH264",value:(t=Jy(Ky().mark((function e(t){var r,o,i,a,u;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(o=e.sent,i=null===(r=o.video)||void 0===r?void 0:Il(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Px(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:u=e.sent,i=null===(a=u.video)||void 0===a?void 0:Il(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Px(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!i);case 13:return e.prev=13,e.t0=e.catch(0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(e){return t.apply(this,arguments)})}]),n}(xO);VePlayer.register("plugin:rtm",{RtmPlugin:EP}),e.RtmPlugin=EP}));
|