@volcengine/veplayer-plugin 2.12.0-rc.1 → 2.12.0-rc.2
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/esm/index.development.js +24327 -22451
- package/esm/index.production.js +6 -6
- package/esm/veplayer.plugin.abr.production.js +1 -1
- package/esm/veplayer.plugin.drm.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +2 -2
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +1 -1
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.hlsjs.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +1 -1
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +290 -150
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.shaka.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.abr.production.js +1 -1
- package/umd/veplayer.plugin.drm.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +2 -2
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +1 -1
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.hlsjs.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +1 -1
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +290 -150
- package/umd/veplayer.plugin.rtm.production.js +1 -1
- package/umd/veplayer.plugin.shaka.production.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).__VEPLAYER_PLUGIN_DRM__={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||e||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},a=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=a,u=Function.prototype,s=u.apply,f=u.call,l="object"==typeof Reflect&&Reflect.apply||(c?f.bind(s):function(){return f.apply(s,arguments)}),p=a,y=Function.prototype,h=y.call,v=p&&y.bind.bind(h,h),d=p?v:function(t){return function(){return h.apply(t,arguments)}},g=d,m=g({}.toString),b=g("".slice),w=function(t){return b(m(t),8,-1)},S=w,E=d,O=function(t){if("Function"===S(t))return E(t)},A="object"==typeof document&&document.all,T={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},k=T.all,x=T.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},P={},j=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=a,_=Function.prototype.call,R=C?_.bind(_):function(){return _.apply(_,arguments)},L={},N={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,M=I&&!N.call({1:2},1);L.f=M?function(t){var e=I(this,t);return!!e&&e.enumerable}:N;var F,D,K=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},U=i,q=w,B=Object,H=d("".split),G=U((function(){return!B("z").propertyIsEnumerable(0)}))?function(t){return"String"==q(t)?H(t,""):B(t)}:B,Y=function(t){return null==t},V=Y,X=TypeError,z=function(t){if(V(t))throw X("Can't call method on "+t);return t},W=G,$=z,J=function(t){return W($(t))},Q=x,Z=T.all,tt=T.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Q(t)||t===Z}:function(t){return"object"==typeof t?null!==t:Q(t)},et={},rt=et,nt=o,ot=x,it=function(t){return ot(t)?t:void 0},at=function(t,e){return arguments.length<2?it(rt[t])||it(nt[t]):rt[t]&&rt[t][e]||nt[t]&&nt[t][e]},ct=d({}.isPrototypeOf),ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=o,ft=ut,lt=st.process,pt=st.Deno,yt=lt&<.versions||pt&&pt.version,ht=yt&&yt.v8;ht&&(D=(F=ht.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!D&&ft&&(!(F=ft.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=ft.match(/Chrome\/(\d+)/))&&(D=+F[1]);var vt=D,dt=vt,gt=i,mt=o.String,bt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol();return!mt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&dt&&dt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=at,Et=x,Ot=ct,At=Object,Tt=wt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Et(e)&&Ot(e.prototype,At(t))},kt=String,xt=function(t){try{return kt(t)}catch(e){return"Object"}},Pt=x,jt=xt,Ct=TypeError,_t=function(t){if(Pt(t))return t;throw Ct(jt(t)+" is not a function")},Rt=_t,Lt=Y,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:Rt(r)},It=R,Mt=x,Ft=tt,Dt=TypeError,Kt={exports:{}},Ut=o,qt=Object.defineProperty,Bt=function(t,e){try{qt(Ut,t,{value:e,configurable:!0,writable:!0})}catch(r){Ut[t]=e}return e},Ht="__core-js_shared__",Gt=o[Ht]||Bt(Ht,{}),Yt=Gt;(Kt.exports=function(t,e){return Yt[t]||(Yt[t]=void 0!==e?e:{})})("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 Vt=Kt.exports,Xt=z,zt=Object,Wt=function(t){return zt(Xt(t))},$t=Wt,Jt=d({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Jt($t(t),e)},Zt=d,te=0,ee=Math.random(),re=Zt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},oe=Vt,ie=Qt,ae=ne,ce=bt,ue=wt,se=o.Symbol,fe=oe("wks"),le=ue?se.for||se:se&&se.withoutSetter||ae,pe=function(t){return ie(fe,t)||(fe[t]=ce&&ie(se,t)?se[t]:le("Symbol."+t)),fe[t]},ye=R,he=tt,ve=Tt,de=Nt,ge=function(t,e){var r,n;if("string"===e&&Mt(r=t.toString)&&!Ft(n=It(r,t)))return n;if(Mt(r=t.valueOf)&&!Ft(n=It(r,t)))return n;if("string"!==e&&Mt(r=t.toString)&&!Ft(n=It(r,t)))return n;throw Dt("Can't convert object to primitive value")},me=TypeError,be=pe("toPrimitive"),we=function(t,e){if(!he(t)||ve(t))return t;var r,n=de(t,be);if(n){if(void 0===e&&(e="default"),r=ye(n,t,e),!he(r)||ve(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),ge(t,e)},Se=Tt,Ee=function(t){var e=we(t,"string");return Se(e)?e:e+""},Oe=tt,Ae=o.document,Te=Oe(Ae)&&Oe(Ae.createElement),ke=function(t){return Te?Ae.createElement(t):{}},xe=ke,Pe=!j&&!i((function(){return 7!=Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),je=j,Ce=R,_e=L,Re=K,Le=J,Ne=Ee,Ie=Qt,Me=Pe,Fe=Object.getOwnPropertyDescriptor;P.f=je?Fe:function(t,e){if(t=Le(t),e=Ne(e),Me)try{return Fe(t,e)}catch(r){}if(Ie(t,e))return Re(!Ce(_e.f,t,e),t[e])};var De=i,Ke=x,Ue=/#|\.prototype\./,qe=function(t,e){var r=He[Be(t)];return r==Ye||r!=Ge&&(Ke(e)?De(e):!!e)},Be=qe.normalize=function(t){return String(t).replace(Ue,".").toLowerCase()},He=qe.data={},Ge=qe.NATIVE="N",Ye=qe.POLYFILL="P",Ve=qe,Xe=_t,ze=a,We=O(O.bind),$e=function(t,e){return Xe(t),void 0===e?t:ze?We(t,e):function(){return t.apply(e,arguments)}},Je={},Qe=j&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=tt,tr=String,er=TypeError,rr=function(t){if(Ze(t))return t;throw er(tr(t)+" is not an object")},nr=j,or=Pe,ir=Qe,ar=rr,cr=Ee,ur=TypeError,sr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,lr="enumerable",pr="configurable",yr="writable";Je.f=nr?ir?function(t,e,r){if(ar(t),e=cr(e),ar(r),"function"==typeof t&&"prototype"===e&&"value"in r&&yr in r&&!r[yr]){var n=fr(t,e);n&&n[yr]&&(t[e]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return sr(t,e,r)}:sr:function(t,e,r){if(ar(t),e=cr(e),ar(r),or)try{return sr(t,e,r)}catch(n){}if("get"in r||"set"in r)throw ur("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var hr=Je,vr=K,dr=j?function(t,e,r){return hr.f(t,e,vr(1,r))}:function(t,e,r){return t[e]=r,t},gr=o,mr=l,br=O,wr=x,Sr=P.f,Er=Ve,Or=et,Ar=$e,Tr=dr,kr=Qt,xr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return mr(t,this,arguments)};return e.prototype=t.prototype,e},Pr=function(t,e){var r,n,o,i,a,c,u,s,f,l=t.target,p=t.global,y=t.stat,h=t.proto,v=p?gr:y?gr[l]:(gr[l]||{}).prototype,d=p?Or:Or[l]||Tr(Or,l,{})[l],g=d.prototype;for(i in e)n=!(r=Er(p?i:l+(y?".":"#")+i,t.forced))&&v&&kr(v,i),c=d[i],n&&(u=t.dontCallGetSet?(f=Sr(v,i))&&f.value:v[i]),a=n&&u?u:e[i],n&&typeof c==typeof a||(s=t.bind&&n?Ar(a,gr):t.wrap&&n?xr(a):h&&wr(a)?br(a):a,(t.sham||a&&a.sham||c&&c.sham)&&Tr(s,"sham",!0),Tr(d,i,s),h&&(kr(Or,o=l+"Prototype")||Tr(Or,o,{}),Tr(Or[o],i,a),t.real&&g&&(r||!g[i])&&Tr(g,i,a)))},jr=w,Cr=Array.isArray||function(t){return"Array"==jr(t)},_r=Math.ceil,Rr=Math.floor,Lr=Math.trunc||function(t){var e=+t;return(e>0?Rr:_r)(e)},Nr=function(t){var e=+t;return e!=e||0===e?0:Lr(e)},Ir=Nr,Mr=Math.min,Fr=function(t){return t>0?Mr(Ir(t),9007199254740991):0},Dr=Fr,Kr=function(t){return Dr(t.length)},Ur=TypeError,qr=function(t){if(t>9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Br=Ee,Hr=Je,Gr=K,Yr=function(t,e,r){var n=Br(e);n in t?Hr.f(t,n,Gr(0,r)):t[n]=r},Vr={};Vr[pe("toStringTag")]="z";var Xr="[object z]"===String(Vr),zr=Xr,Wr=x,$r=w,Jr=pe("toStringTag"),Qr=Object,Zr="Arguments"==$r(function(){return arguments}()),tn=zr?$r:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=Qr(t),Jr))?r:Zr?$r(e):"Object"==(n=$r(e))&&Wr(e.callee)?"Arguments":n},en=x,rn=Gt,nn=d(Function.toString);en(rn.inspectSource)||(rn.inspectSource=function(t){return nn(t)});var on=rn.inspectSource,an=d,cn=i,un=x,sn=tn,fn=on,ln=function(){},pn=[],yn=at("Reflect","construct"),hn=/^\s*(?:class|function)\b/,vn=an(hn.exec),dn=!hn.exec(ln),gn=function(t){if(!un(t))return!1;try{return yn(ln,pn,t),!0}catch(e){return!1}},mn=function(t){if(!un(t))return!1;switch(sn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return dn||!!vn(hn,fn(t))}catch(e){return!0}};mn.sham=!0;var bn=!yn||cn((function(){var t;return gn(gn.call)||!gn(Object)||!gn((function(){t=!0}))||t}))?mn:gn,wn=Cr,Sn=bn,En=tt,On=pe("species"),An=Array,Tn=function(t){var e;return wn(t)&&(e=t.constructor,(Sn(e)&&(e===An||wn(e.prototype))||En(e)&&null===(e=e[On]))&&(e=void 0)),void 0===e?An:e},kn=function(t,e){return new(Tn(t))(0===e?0:e)},xn=i,Pn=vt,jn=pe("species"),Cn=function(t){return Pn>=51||!xn((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_n=Pr,Rn=i,Ln=Cr,Nn=tt,In=Wt,Mn=Kr,Fn=qr,Dn=Yr,Kn=kn,Un=Cn,qn=vt,Bn=pe("isConcatSpreadable"),Hn=qn>=51||!Rn((function(){var t=[];return t[Bn]=!1,t.concat()[0]!==t})),Gn=function(t){if(!Nn(t))return!1;var e=t[Bn];return void 0!==e?!!e:Ln(t)};_n({target:"Array",proto:!0,arity:1,forced:!Hn||!Un("concat")},{concat:function(t){var e,r,n,o,i,a=In(this),c=Kn(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Gn(i=-1===e?a:arguments[e]))for(o=Mn(i),Fn(u+o),r=0;r<o;r++,u++)r in i&&Dn(c,u,i[r]);else Fn(u+1),Dn(c,u++,i);return c.length=u,c}});var Yn=tn,Vn=String,Xn=function(t){if("Symbol"===Yn(t))throw TypeError("Cannot convert a Symbol value to a string");return Vn(t)},zn={},Wn=Nr,$n=Math.max,Jn=Math.min,Qn=function(t,e){var r=Wn(t);return r<0?$n(r+e,0):Jn(r,e)},Zn=J,to=Qn,eo=Kr,ro=function(t){return function(e,r,n){var o,i=Zn(e),a=eo(i),c=to(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},no={includes:ro(!0),indexOf:ro(!1)},oo={},io=Qt,ao=J,co=no.indexOf,uo=oo,so=d([].push),fo=function(t,e){var r,n=ao(t),o=0,i=[];for(r in n)!io(uo,r)&&io(n,r)&&so(i,r);for(;e.length>o;)io(n,r=e[o++])&&(~co(i,r)||so(i,r));return i},lo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],po=fo,yo=lo,ho=Object.keys||function(t){return po(t,yo)},vo=j,go=Qe,mo=Je,bo=rr,wo=J,So=ho;zn.f=vo&&!go?Object.defineProperties:function(t,e){bo(t);for(var r,n=wo(e),o=So(e),i=o.length,a=0;i>a;)mo.f(t,r=o[a++],n[r]);return t};var Eo,Oo=at("document","documentElement"),Ao=ne,To=Vt("keys"),ko=function(t){return To[t]||(To[t]=Ao(t))},xo=rr,Po=zn,jo=lo,Co=oo,_o=Oo,Ro=ke,Lo="prototype",No="script",Io=ko("IE_PROTO"),Mo=function(){},Fo=function(t){return"<"+No+">"+t+"</"+No+">"},Do=function(t){t.write(Fo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ko=function(){try{Eo=new ActiveXObject("htmlfile")}catch(o){}var t,e,r;Ko="undefined"!=typeof document?document.domain&&Eo?Do(Eo):(e=Ro("iframe"),r="java"+No+":",e.style.display="none",_o.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Fo("document.F=Object")),t.close(),t.F):Do(Eo);for(var n=jo.length;n--;)delete Ko[Lo][jo[n]];return Ko()};Co[Io]=!0;var Uo=Object.create||function(t,e){var r;return null!==t?(Mo[Lo]=xo(t),r=new Mo,Mo[Lo]=null,r[Io]=t):r=Ko(),void 0===e?r:Po.f(r,e)},qo={},Bo=fo,Ho=lo.concat("length","prototype");qo.f=Object.getOwnPropertyNames||function(t){return Bo(t,Ho)};var Go={},Yo=Qn,Vo=Kr,Xo=Yr,zo=Array,Wo=Math.max,$o=function(t,e,r){for(var n=Vo(t),o=Yo(e,n),i=Yo(void 0===r?n:r,n),a=zo(Wo(i-o,0)),c=0;o<i;o++,c++)Xo(a,c,t[o]);return a.length=c,a},Jo=w,Qo=J,Zo=qo.f,ti=$o,ei="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Go.f=function(t){return ei&&"Window"==Jo(t)?function(t){try{return Zo(t)}catch(e){return ti(ei)}}(t):Zo(Qo(t))};var ri={};ri.f=Object.getOwnPropertySymbols;var ni=dr,oi=function(t,e,r,n){return n&&n.enumerable?t[e]=r:ni(t,e,r),t},ii=Je,ai=function(t,e,r){return ii.f(t,e,r)},ci={},ui=pe;ci.f=ui;var si,fi,li,pi=et,yi=Qt,hi=ci,vi=Je.f,di=function(t){var e=pi.Symbol||(pi.Symbol={});yi(e,t)||vi(e,t,{value:hi.f(t)})},gi=R,mi=at,bi=pe,wi=oi,Si=function(){var t=mi("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=bi("toPrimitive");e&&!e[n]&&wi(e,n,(function(t){return gi(r,this)}),{arity:1})},Ei=tn,Oi=Xr?{}.toString:function(){return"[object "+Ei(this)+"]"},Ai=Xr,Ti=Je.f,ki=dr,xi=Qt,Pi=Oi,ji=pe("toStringTag"),Ci=function(t,e,r,n){if(t){var o=r?t:t.prototype;xi(o,ji)||Ti(o,ji,{configurable:!0,value:e}),n&&!Ai&&ki(o,"toString",Pi)}},_i=x,Ri=o.WeakMap,Li=_i(Ri)&&/native code/.test(String(Ri)),Ni=o,Ii=tt,Mi=dr,Fi=Qt,Di=Gt,Ki=ko,Ui=oo,qi="Object already initialized",Bi=Ni.TypeError,Hi=Ni.WeakMap;if(Li||Di.state){var Gi=Di.state||(Di.state=new Hi);Gi.get=Gi.get,Gi.has=Gi.has,Gi.set=Gi.set,si=function(t,e){if(Gi.has(t))throw Bi(qi);return e.facade=t,Gi.set(t,e),e},fi=function(t){return Gi.get(t)||{}},li=function(t){return Gi.has(t)}}else{var Yi=Ki("state");Ui[Yi]=!0,si=function(t,e){if(Fi(t,Yi))throw Bi(qi);return e.facade=t,Mi(t,Yi,e),e},fi=function(t){return Fi(t,Yi)?t[Yi]:{}},li=function(t){return Fi(t,Yi)}}var Vi={set:si,get:fi,has:li,enforce:function(t){return li(t)?fi(t):si(t,{})},getterFor:function(t){return function(e){var r;if(!Ii(e)||(r=fi(e)).type!==t)throw Bi("Incompatible receiver, "+t+" required");return r}}},Xi=$e,zi=G,Wi=Wt,$i=Kr,Ji=kn,Qi=d([].push),Zi=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var p,y,h=Wi(u),v=zi(h),d=Xi(s,f),g=$i(v),m=0,b=l||Ji,w=e?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((c||m in v)&&(y=d(p=v[m],m,h),t))if(e)w[m]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Qi(w,p)}else switch(t){case 4:return!1;case 7:Qi(w,p)}return i?-1:n||o?o:w}},ta={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},ea=Pr,ra=o,na=R,oa=d,ia=j,aa=bt,ca=i,ua=Qt,sa=ct,fa=rr,la=J,pa=Ee,ya=Xn,ha=K,va=Uo,da=ho,ga=qo,ma=Go,ba=ri,wa=P,Sa=Je,Ea=zn,Oa=L,Aa=oi,Ta=ai,ka=Vt,xa=oo,Pa=ne,ja=pe,Ca=ci,_a=di,Ra=Si,La=Ci,Na=Vi,Ia=ta.forEach,Ma=ko("hidden"),Fa="Symbol",Da="prototype",Ka=Na.set,Ua=Na.getterFor(Fa),qa=Object[Da],Ba=ra.Symbol,Ha=Ba&&Ba[Da],Ga=ra.TypeError,Ya=ra.QObject,Va=wa.f,Xa=Sa.f,za=ma.f,Wa=Oa.f,$a=oa([].push),Ja=ka("symbols"),Qa=ka("op-symbols"),Za=ka("wks"),tc=!Ya||!Ya[Da]||!Ya[Da].findChild,ec=ia&&ca((function(){return 7!=va(Xa({},"a",{get:function(){return Xa(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Va(qa,e);n&&delete qa[e],Xa(t,e,r),n&&t!==qa&&Xa(qa,e,n)}:Xa,rc=function(t,e){var r=Ja[t]=va(Ha);return Ka(r,{type:Fa,tag:t,description:e}),ia||(r.description=e),r},nc=function(t,e,r){t===qa&&nc(Qa,e,r),fa(t);var n=pa(e);return fa(r),ua(Ja,n)?(r.enumerable?(ua(t,Ma)&&t[Ma][n]&&(t[Ma][n]=!1),r=va(r,{enumerable:ha(0,!1)})):(ua(t,Ma)||Xa(t,Ma,ha(1,{})),t[Ma][n]=!0),ec(t,n,r)):Xa(t,n,r)},oc=function(t,e){fa(t);var r=la(e),n=da(r).concat(uc(r));return Ia(n,(function(e){ia&&!na(ic,r,e)||nc(t,e,r[e])})),t},ic=function(t){var e=pa(t),r=na(Wa,this,e);return!(this===qa&&ua(Ja,e)&&!ua(Qa,e))&&(!(r||!ua(this,e)||!ua(Ja,e)||ua(this,Ma)&&this[Ma][e])||r)},ac=function(t,e){var r=la(t),n=pa(e);if(r!==qa||!ua(Ja,n)||ua(Qa,n)){var o=Va(r,n);return!o||!ua(Ja,n)||ua(r,Ma)&&r[Ma][n]||(o.enumerable=!0),o}},cc=function(t){var e=za(la(t)),r=[];return Ia(e,(function(t){ua(Ja,t)||ua(xa,t)||$a(r,t)})),r},uc=function(t){var e=t===qa,r=za(e?Qa:la(t)),n=[];return Ia(r,(function(t){!ua(Ja,t)||e&&!ua(qa,t)||$a(n,Ja[t])})),n};aa||(Ba=function(){if(sa(Ha,this))throw Ga("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ya(arguments[0]):void 0,e=Pa(t),r=function(t){this===qa&&na(r,Qa,t),ua(this,Ma)&&ua(this[Ma],e)&&(this[Ma][e]=!1),ec(this,e,ha(1,t))};return ia&&tc&&ec(qa,e,{configurable:!0,set:r}),rc(e,t)},Aa(Ha=Ba[Da],"toString",(function(){return Ua(this).tag})),Aa(Ba,"withoutSetter",(function(t){return rc(Pa(t),t)})),Oa.f=ic,Sa.f=nc,Ea.f=oc,wa.f=ac,ga.f=ma.f=cc,ba.f=uc,Ca.f=function(t){return rc(ja(t),t)},ia&&Ta(Ha,"description",{configurable:!0,get:function(){return Ua(this).description}})),ea({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ba}),Ia(da(Za),(function(t){_a(t)})),ea({target:Fa,stat:!0,forced:!aa},{useSetter:function(){tc=!0},useSimple:function(){tc=!1}}),ea({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:function(t,e){return void 0===e?va(t):oc(va(t),e)},defineProperty:nc,defineProperties:oc,getOwnPropertyDescriptor:ac}),ea({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:cc}),Ra(),La(Ba,Fa),xa[Ma]=!0;var sc=bt&&!!Symbol.for&&!!Symbol.keyFor,fc=Pr,lc=at,pc=Qt,yc=Xn,hc=Vt,vc=sc,dc=hc("string-to-symbol-registry"),gc=hc("symbol-to-string-registry");fc({target:"Symbol",stat:!0,forced:!vc},{for:function(t){var e=yc(t);if(pc(dc,e))return dc[e];var r=lc("Symbol")(e);return dc[e]=r,gc[r]=e,r}});var mc=Pr,bc=Qt,wc=Tt,Sc=xt,Ec=sc,Oc=Vt("symbol-to-string-registry");mc({target:"Symbol",stat:!0,forced:!Ec},{keyFor:function(t){if(!wc(t))throw TypeError(Sc(t)+" is not a symbol");if(bc(Oc,t))return Oc[t]}});var Ac=d([].slice),Tc=Cr,kc=x,xc=w,Pc=Xn,jc=d([].push),Cc=Pr,_c=at,Rc=l,Lc=R,Nc=d,Ic=i,Mc=x,Fc=Tt,Dc=Ac,Kc=function(t){if(kc(t))return t;if(Tc(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?jc(r,o):"number"!=typeof o&&"Number"!=xc(o)&&"String"!=xc(o)||jc(r,Pc(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Tc(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},Uc=bt,qc=String,Bc=_c("JSON","stringify"),Hc=Nc(/./.exec),Gc=Nc("".charAt),Yc=Nc("".charCodeAt),Vc=Nc("".replace),Xc=Nc(1..toString),zc=/[\uD800-\uDFFF]/g,Wc=/^[\uD800-\uDBFF]$/,$c=/^[\uDC00-\uDFFF]$/,Jc=!Uc||Ic((function(){var t=_c("Symbol")();return"[null]"!=Bc([t])||"{}"!=Bc({a:t})||"{}"!=Bc(Object(t))})),Qc=Ic((function(){return'"\\udf06\\ud834"'!==Bc("\udf06\ud834")||'"\\udead"'!==Bc("\udead")})),Zc=function(t,e){var r=Dc(arguments),n=Kc(e);if(Mc(n)||void 0!==t&&!Fc(t))return r[1]=function(t,e){if(Mc(n)&&(e=Lc(n,this,qc(t),e)),!Fc(e))return e},Rc(Bc,null,r)},tu=function(t,e,r){var n=Gc(r,e-1),o=Gc(r,e+1);return Hc(Wc,t)&&!Hc($c,o)||Hc($c,t)&&!Hc(Wc,n)?"\\u"+Xc(Yc(t,0),16):t};Bc&&Cc({target:"JSON",stat:!0,arity:3,forced:Jc||Qc},{stringify:function(t,e,r){var n=Dc(arguments),o=Rc(Jc?Zc:Bc,null,n);return Qc&&"string"==typeof o?Vc(o,zc,tu):o}});var eu=ri,ru=Wt;Pr({target:"Object",stat:!0,forced:!bt||i((function(){eu.f(1)}))},{getOwnPropertySymbols:function(t){var e=eu.f;return e?e(ru(t)):[]}}),di("asyncIterator"),di("hasInstance"),di("isConcatSpreadable"),di("iterator"),di("match"),di("matchAll"),di("replace"),di("search"),di("species"),di("split");var nu=Si;di("toPrimitive"),nu();var ou=at,iu=Ci;di("toStringTag"),iu(ou("Symbol"),"Symbol"),di("unscopables"),Ci(o.JSON,"JSON",!0);var au,cu,uu,su=et.Symbol,fu={},lu=j,pu=Qt,yu=Function.prototype,hu=lu&&Object.getOwnPropertyDescriptor,vu=pu(yu,"name"),du={EXISTS:vu,PROPER:vu&&"something"===function(){}.name,CONFIGURABLE:vu&&(!lu||lu&&hu(yu,"name").configurable)},gu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),mu=Qt,bu=x,wu=Wt,Su=gu,Eu=ko("IE_PROTO"),Ou=Object,Au=Ou.prototype,Tu=Su?Ou.getPrototypeOf:function(t){var e=wu(t);if(mu(e,Eu))return e[Eu];var r=e.constructor;return bu(r)&&e instanceof r?r.prototype:e instanceof Ou?Au:null},ku=i,xu=x,Pu=tt,ju=Uo,Cu=Tu,_u=oi,Ru=pe("iterator"),Lu=!1;[].keys&&("next"in(uu=[].keys())?(cu=Cu(Cu(uu)))!==Object.prototype&&(au=cu):Lu=!0);var Nu=!Pu(au)||ku((function(){var t={};return au[Ru].call(t)!==t}));xu((au=Nu?{}:ju(au))[Ru])||_u(au,Ru,(function(){return this}));var Iu={IteratorPrototype:au,BUGGY_SAFARI_ITERATORS:Lu},Mu=Iu.IteratorPrototype,Fu=Uo,Du=K,Ku=Ci,Uu=fu,qu=function(){return this},Bu=d,Hu=_t,Gu=x,Yu=String,Vu=TypeError,Xu=function(t,e,r){try{return Bu(Hu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(n){}},zu=rr,Wu=function(t){if("object"==typeof t||Gu(t))return t;throw Vu("Can't set "+Yu(t)+" as a prototype")},$u=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Xu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return zu(r),Wu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ju=Pr,Qu=R,Zu=du,ts=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Fu(Mu,{next:Du(+!n,r)}),Ku(t,o,!1,!0),Uu[o]=qu,t},es=Tu,rs=Ci,ns=oi,os=fu,is=Iu,as=Zu.PROPER,cs=is.BUGGY_SAFARI_ITERATORS,us=pe("iterator"),ss="keys",fs="values",ls="entries",ps=function(){return this},ys=function(t,e,r,n,o,i,a){ts(r,e,n);var c,u,s,f=function(t){if(t===o&&v)return v;if(!cs&&t in y)return y[t];switch(t){case ss:case fs:case ls:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,y=t.prototype,h=y[us]||y["@@iterator"]||o&&y[o],v=!cs&&h||f(o),d="Array"==e&&y.entries||h;if(d&&(c=es(d.call(new t)))!==Object.prototype&&c.next&&(rs(c,l,!0,!0),os[l]=ps),as&&o==fs&&h&&h.name!==fs&&(p=!0,v=function(){return Qu(h,this)}),o)if(u={values:f(fs),keys:i?v:f(ss),entries:f(ls)},a)for(s in u)(cs||p||!(s in y))&&ns(y,s,u[s]);else Ju({target:e,proto:!0,forced:cs||p},u);return a&&y[us]!==v&&ns(y,us,v,{name:o}),os[e]=v,u},hs=function(t,e){return{value:t,done:e}},vs=J,ds=fu,gs=Vi;Je.f;var ms=ys,bs=hs,ws="Array Iterator",Ss=gs.set,Es=gs.getterFor(ws);ms(Array,"Array",(function(t,e){Ss(this,{type:ws,target:vs(t),index:0,kind:e})}),(function(){var t=Es(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,bs(void 0,!0)):bs("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),ds.Arguments=ds.Array;var Os={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},As=o,Ts=tn,ks=dr,xs=fu,Ps=pe("toStringTag");for(var js in Os){var Cs=As[js],_s=Cs&&Cs.prototype;_s&&Ts(_s)!==Ps&&ks(_s,Ps,js),xs[js]=xs.Array}var Rs=su;di("dispose");var Ls=Rs;di("asyncDispose");var Ns=Pr,Is=d,Ms=at("Symbol"),Fs=Ms.keyFor,Ds=Is(Ms.prototype.valueOf);Ns({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Fs(Ds(t))}catch(e){return!1}}});for(var Ks=Pr,Us=Vt,qs=at,Bs=d,Hs=Tt,Gs=pe,Ys=qs("Symbol"),Vs=Ys.isWellKnown,Xs=qs("Object","getOwnPropertyNames"),zs=Bs(Ys.prototype.valueOf),Ws=Us("wks"),$s=0,Js=Xs(Ys),Qs=Js.length;$s<Qs;$s++)try{var Zs=Js[$s];Hs(Ys[Zs])&&Gs(Zs)}catch(zE){}Ks({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Vs&&Vs(t))return!0;try{for(var e=zs(t),r=0,n=Xs(Ws),o=n.length;r<o;r++)if(Ws[n[r]]==e)return!0}catch(zE){}return!1}}),di("matcher"),di("metadataKey"),di("observable"),di("metadata"),di("patternMatch"),di("replaceAll");var tf=Ls,ef=r(tf),rf=d,nf=Nr,of=Xn,af=z,cf=rf("".charAt),uf=rf("".charCodeAt),sf=rf("".slice),ff=function(t){return function(e,r){var n,o,i=of(af(e)),a=nf(r),c=i.length;return a<0||a>=c?t?"":void 0:(n=uf(i,a))<55296||n>56319||a+1===c||(o=uf(i,a+1))<56320||o>57343?t?cf(i,a):n:t?sf(i,a,a+2):o-56320+(n-55296<<10)+65536}},lf={codeAt:ff(!1),charAt:ff(!0)}.charAt,pf=Xn,yf=Vi,hf=ys,vf=hs,df="String Iterator",gf=yf.set,mf=yf.getterFor(df);hf(String,"String",(function(t){gf(this,{type:df,string:pf(t),index:0})}),(function(){var t,e=mf(this),r=e.string,n=e.index;return n>=r.length?vf(void 0,!0):(t=lf(r,n),e.index+=t.length,vf(t,!1))}));var bf=ci.f("iterator"),wf=r(bf);function Sf(t){return(Sf="function"==typeof ef&&"symbol"==typeof wf?function(t){return typeof t}:function(t){return t&&"function"==typeof ef&&t.constructor===ef&&t!==ef.prototype?"symbol":typeof t})(t)}var Ef={exports:{}},Of=Pr,Af=j,Tf=Je.f;Of({target:"Object",stat:!0,forced:Object.defineProperty!==Tf,sham:!Af},{defineProperty:Tf});var kf=et.Object,xf=Ef.exports=function(t,e,r){return kf.defineProperty(t,e,r)};kf.defineProperty.sham&&(xf.sham=!0);var Pf=Ef.exports,jf=r(Pf);Pr({target:"Object",stat:!0,sham:!j},{create:Uo});var Cf=et.Object,_f=r((function(t,e){return Cf.create(t,e)})),Rf=Wt,Lf=Tu,Nf=gu;Pr({target:"Object",stat:!0,forced:i((function(){Lf(1)})),sham:!Nf},{getPrototypeOf:function(t){return Lf(Rf(t))}});var If=r(et.Object.getPrototypeOf),Mf=i,Ff=function(t,e){var r=[][t];return!!r&&Mf((function(){r.call(null,e||function(){return 1},1)}))},Df=ta.forEach,Kf=Ff("forEach")?[].forEach:function(t){return Df(this,t,arguments.length>1?arguments[1]:void 0)};Pr({target:"Array",proto:!0,forced:[].forEach!=Kf},{forEach:Kf});var Uf=et,qf=function(t){return Uf[t+"Prototype"]},Bf=qf("Array").forEach,Hf=tn,Gf=Qt,Yf=ct,Vf=Bf,Xf=Array.prototype,zf={DOMTokenList:!0,NodeList:!0},Wf=function(t){var e=t.forEach;return t===Xf||Yf(Xf,t)&&e===Xf.forEach||Gf(zf,Hf(t))?Vf:e},$f=r(Wf),Jf=j,Qf=Cr,Zf=TypeError,tl=Object.getOwnPropertyDescriptor,el=Jf&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(zE){return zE instanceof TypeError}}()?function(t,e){if(Qf(t)&&!tl(t,"length").writable)throw Zf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rl=Wt,nl=Kr,ol=el,il=qr;Pr({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(zE){return zE instanceof TypeError}}()},{push:function(t){var e=rl(this),r=nl(e),n=arguments.length;il(r+n);for(var o=0;o<n;o++)e[r]=arguments[o],r++;return ol(e,r),r}});var al=qf("Array").push,cl=ct,ul=al,sl=Array.prototype,fl=r((function(t){var e=t.push;return t===sl||cl(sl,t)&&e===sl.push?ul:e}));Pr({target:"Object",stat:!0},{setPrototypeOf:$u});var ll=r(et.Object.setPrototypeOf),pl=at,yl=qo,hl=ri,vl=rr,dl=d([].concat),gl=pl("Reflect","ownKeys")||function(t){var e=yl.f(vl(t)),r=hl.f;return r?dl(e,r(t)):e},ml=Qt,bl=gl,wl=P,Sl=Je,El=tt,Ol=dr,Al=Error,Tl=d("".replace),kl=String(Al("zxcasd").stack),xl=/\n\s*at [^:]*:[^\n]*/,Pl=xl.test(kl),jl=K,Cl=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",jl(1,7)),7!==t.stack)})),_l=dr,Rl=function(t,e){if(Pl&&"string"==typeof t&&!Al.prepareStackTrace)for(;e--;)t=Tl(t,xl,"");return t},Ll=Cl,Nl=Error.captureStackTrace,Il=fu,Ml=pe("iterator"),Fl=Array.prototype,Dl=function(t){return void 0!==t&&(Il.Array===t||Fl[Ml]===t)},Kl=tn,Ul=Nt,ql=Y,Bl=fu,Hl=pe("iterator"),Gl=function(t){if(!ql(t))return Ul(t,Hl)||Ul(t,"@@iterator")||Bl[Kl(t)]},Yl=R,Vl=_t,Xl=rr,zl=xt,Wl=Gl,$l=TypeError,Jl=function(t,e){var r=arguments.length<2?Wl(t):e;if(Vl(r))return Xl(Yl(r,t));throw $l(zl(t)+" is not iterable")},Ql=R,Zl=rr,tp=Nt,ep=function(t,e,r){var n,o;Zl(t);try{if(!(n=tp(t,"return"))){if("throw"===e)throw r;return r}n=Ql(n,t)}catch(zE){o=!0,n=zE}if("throw"===e)throw r;if(o)throw n;return Zl(n),r},rp=$e,np=R,op=rr,ip=xt,ap=Dl,cp=Kr,up=ct,sp=Jl,fp=Gl,lp=ep,pp=TypeError,yp=function(t,e){this.stopped=t,this.result=e},hp=yp.prototype,vp=function(t,e,r){var n,o,i,a,c,u,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),y=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=rp(e,f),d=function(t){return n&&lp(n,"normal",t),new yp(!0,t)},g=function(t){return l?(op(t),h?v(t[0],t[1],d):v(t[0],t[1])):h?v(t,d):v(t)};if(p)n=t.iterator;else if(y)n=t;else{if(!(o=fp(t)))throw pp(ip(t)+" is not iterable");if(ap(o)){for(i=0,a=cp(t);a>i;i++)if((c=g(t[i]))&&up(hp,c))return c;return new yp(!1)}n=sp(t,o)}for(u=p?t.next:n.next;!(s=np(u,n)).done;){try{c=g(s.value)}catch(zE){lp(n,"throw",zE)}if("object"==typeof c&&c&&up(hp,c))return c}return new yp(!1)},dp=Xn,gp=Pr,mp=ct,bp=Tu,wp=$u,Sp=function(t,e,r){for(var n=bl(e),o=Sl.f,i=wl.f,a=0;a<n.length;a++){var c=n[a];ml(t,c)||r&&ml(r,c)||o(t,c,i(e,c))}},Ep=Uo,Op=dr,Ap=K,Tp=function(t,e){El(e)&&"cause"in e&&Ol(t,"cause",e.cause)},kp=function(t,e,r,n){Ll&&(Nl?Nl(t,e):_l(t,"stack",Rl(r,n)))},xp=vp,Pp=function(t,e){return void 0===t?arguments.length<2?"":e:dp(t)},jp=pe("toStringTag"),Cp=Error,_p=[].push,Rp=function(t,e){var r,n=mp(Lp,this);wp?r=wp(Cp(),n?bp(this):Lp):(r=n?this:Ep(Lp),Op(r,jp,"Error")),void 0!==e&&Op(r,"message",Pp(e)),kp(r,Rp,r.stack,1),arguments.length>2&&Tp(r,arguments[2]);var o=[];return xp(t,_p,{that:o}),Op(r,"errors",o),r};wp?wp(Rp,Cp):Sp(Rp,Cp,{name:!0});var Lp=Rp.prototype=Ep(Cp.prototype,{constructor:Ap(1,Rp),message:Ap(1,""),name:Ap(1,"AggregateError")});gp({global:!0,constructor:!0,arity:2},{AggregateError:Rp});var Np,Ip,Mp,Fp,Dp="undefined"!=typeof process&&"process"==w(process),Kp=at,Up=ai,qp=j,Bp=pe("species"),Hp=ct,Gp=TypeError,Yp=bn,Vp=xt,Xp=TypeError,zp=function(t){if(Yp(t))return t;throw Xp(Vp(t)+" is not a constructor")},Wp=rr,$p=zp,Jp=Y,Qp=pe("species"),Zp=function(t,e){var r,n=Wp(t).constructor;return void 0===n||Jp(r=Wp(n)[Qp])?e:$p(r)},ty=TypeError,ey=function(t,e){if(t<e)throw ty("Not enough arguments");return t},ry=/(?:ipad|iphone|ipod).*applewebkit/i.test(ut),ny=o,oy=l,iy=$e,ay=x,cy=Qt,uy=i,sy=Oo,fy=Ac,ly=ke,py=ey,yy=ry,hy=Dp,vy=ny.setImmediate,dy=ny.clearImmediate,gy=ny.process,my=ny.Dispatch,by=ny.Function,wy=ny.MessageChannel,Sy=ny.String,Ey=0,Oy={},Ay="onreadystatechange";uy((function(){Np=ny.location}));var Ty=function(t){if(cy(Oy,t)){var e=Oy[t];delete Oy[t],e()}},ky=function(t){return function(){Ty(t)}},xy=function(t){Ty(t.data)},Py=function(t){ny.postMessage(Sy(t),Np.protocol+"//"+Np.host)};vy&&dy||(vy=function(t){py(arguments.length,1);var e=ay(t)?t:by(t),r=fy(arguments,1);return Oy[++Ey]=function(){oy(e,void 0,r)},Ip(Ey),Ey},dy=function(t){delete Oy[t]},hy?Ip=function(t){gy.nextTick(ky(t))}:my&&my.now?Ip=function(t){my.now(ky(t))}:wy&&!yy?(Fp=(Mp=new wy).port2,Mp.port1.onmessage=xy,Ip=iy(Fp.postMessage,Fp)):ny.addEventListener&&ay(ny.postMessage)&&!ny.importScripts&&Np&&"file:"!==Np.protocol&&!uy(Py)?(Ip=Py,ny.addEventListener("message",xy,!1)):Ip=Ay in ly("script")?function(t){sy.appendChild(ly("script"))[Ay]=function(){sy.removeChild(this),Ty(t)}}:function(t){setTimeout(ky(t),0)});var jy={set:vy,clear:dy},Cy=function(){this.head=null,this.tail=null};Cy.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var _y,Ry,Ly,Ny,Iy,My=Cy,Fy=/ipad|iphone|ipod/i.test(ut)&&"undefined"!=typeof Pebble,Dy=/web0s(?!.*chrome)/i.test(ut),Ky=o,Uy=$e,qy=P.f,By=jy.set,Hy=My,Gy=ry,Yy=Fy,Vy=Dy,Xy=Dp,zy=Ky.MutationObserver||Ky.WebKitMutationObserver,Wy=Ky.document,$y=Ky.process,Jy=Ky.Promise,Qy=qy(Ky,"queueMicrotask"),Zy=Qy&&Qy.value;if(!Zy){var th=new Hy,eh=function(){var t,e;for(Xy&&(t=$y.domain)&&t.exit();e=th.get();)try{e()}catch(zE){throw th.head&&_y(),zE}t&&t.enter()};Gy||Xy||Vy||!zy||!Wy?!Yy&&Jy&&Jy.resolve?((Ny=Jy.resolve(void 0)).constructor=Jy,Iy=Uy(Ny.then,Ny),_y=function(){Iy(eh)}):Xy?_y=function(){$y.nextTick(eh)}:(By=Uy(By,Ky),_y=function(){By(eh)}):(Ry=!0,Ly=Wy.createTextNode(""),new zy(eh).observe(Ly,{characterData:!0}),_y=function(){Ly.data=Ry=!Ry}),Zy=function(t){th.head||_y(),th.add(t)}}var rh=Zy,nh=function(t){try{return{error:!1,value:t()}}catch(zE){return{error:!0,value:zE}}},oh=o.Promise,ih="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ah=!ih&&!Dp&&"object"==typeof window&&"object"==typeof document,ch=o,uh=oh,sh=x,fh=Ve,lh=on,ph=pe,yh=ah,hh=ih,vh=vt,dh=uh&&uh.prototype,gh=ph("species"),mh=!1,bh=sh(ch.PromiseRejectionEvent),wh={CONSTRUCTOR:fh("Promise",(function(){var t=lh(uh),e=t!==String(uh);if(!e&&66===vh)return!0;if(!dh.catch||!dh.finally)return!0;if(!vh||vh<51||!/native code/.test(t)){var r=new uh((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[gh]=n,!(mh=r.then((function(){}))instanceof n))return!0}return!e&&(yh||hh)&&!bh})),REJECTION_EVENT:bh,SUBCLASSING:mh},Sh={},Eh=_t,Oh=TypeError,Ah=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw Oh("Bad Promise constructor");e=t,r=n})),this.resolve=Eh(e),this.reject=Eh(r)};Sh.f=function(t){return new Ah(t)};var Th,kh,xh=Pr,Ph=Dp,jh=o,Ch=R,_h=oi,Rh=Ci,Lh=function(t){var e=Kp(t);qp&&e&&!e[Bp]&&Up(e,Bp,{configurable:!0,get:function(){return this}})},Nh=_t,Ih=x,Mh=tt,Fh=function(t,e){if(Hp(e,t))return t;throw Gp("Incorrect invocation")},Dh=Zp,Kh=jy.set,Uh=rh,qh=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(zE){}},Bh=nh,Hh=My,Gh=Vi,Yh=oh,Vh=wh,Xh=Sh,zh="Promise",Wh=Vh.CONSTRUCTOR,$h=Vh.REJECTION_EVENT,Jh=Gh.getterFor(zh),Qh=Gh.set,Zh=Yh&&Yh.prototype,tv=Yh,ev=Zh,rv=jh.TypeError,nv=jh.document,ov=jh.process,iv=Xh.f,av=iv,cv=!!(nv&&nv.createEvent&&jh.dispatchEvent),uv="unhandledrejection",sv=function(t){var e;return!(!Mh(t)||!Ih(e=t.then))&&e},fv=function(t,e){var r,n,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&vv(e),e.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(rv("Promise-chain cycle")):(n=sv(r))?Ch(n,r,u,s):u(r)):s(i)}catch(zE){f&&!o&&f.exit(),s(zE)}},lv=function(t,e){t.notified||(t.notified=!0,Uh((function(){for(var r,n=t.reactions;r=n.get();)fv(r,t);t.notified=!1,e&&!t.rejection&&yv(t)})))},pv=function(t,e,r){var n,o;cv?((n=nv.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),jh.dispatchEvent(n)):n={promise:e,reason:r},!$h&&(o=jh["on"+t])?o(n):t===uv&&qh("Unhandled promise rejection",r)},yv=function(t){Ch(Kh,jh,(function(){var e,r=t.facade,n=t.value;if(hv(t)&&(e=Bh((function(){Ph?ov.emit("unhandledRejection",n,r):pv(uv,r,n)})),t.rejection=Ph||hv(t)?2:1,e.error))throw e.value}))},hv=function(t){return 1!==t.rejection&&!t.parent},vv=function(t){Ch(Kh,jh,(function(){var e=t.facade;Ph?ov.emit("rejectionHandled",e):pv("rejectionhandled",e,t.value)}))},dv=function(t,e,r){return function(n){t(e,n,r)}},gv=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,lv(t,!0))},mv=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw rv("Promise can't be resolved itself");var n=sv(e);n?Uh((function(){var r={done:!1};try{Ch(n,e,dv(mv,r,t),dv(gv,r,t))}catch(zE){gv(r,zE,t)}})):(t.value=e,t.state=1,lv(t,!1))}catch(zE){gv({done:!1},zE,t)}}};Wh&&(ev=(tv=function(t){Fh(this,ev),Nh(t),Ch(Th,this);var e=Jh(this);try{t(dv(mv,e),dv(gv,e))}catch(zE){gv(e,zE)}}).prototype,(Th=function(t){Qh(this,{type:zh,done:!1,notified:!1,parent:!1,reactions:new Hh,rejection:!1,state:0,value:void 0})}).prototype=_h(ev,"then",(function(t,e){var r=Jh(this),n=iv(Dh(this,tv));return r.parent=!0,n.ok=!Ih(t)||t,n.fail=Ih(e)&&e,n.domain=Ph?ov.domain:void 0,0==r.state?r.reactions.add(n):Uh((function(){fv(n,r)})),n.promise})),kh=function(){var t=new Th,e=Jh(t);this.promise=t,this.resolve=dv(mv,e),this.reject=dv(gv,e)},Xh.f=iv=function(t){return t===tv||undefined===t?new kh(t):av(t)}),xh({global:!0,constructor:!0,wrap:!0,forced:Wh},{Promise:tv}),Rh(tv,zh,!1,!0),Lh(zh);var bv=pe("iterator"),wv=!1;try{var Sv=0,Ev={next:function(){return{done:!!Sv++}},return:function(){wv=!0}};Ev[bv]=function(){return this},Array.from(Ev,(function(){throw 2}))}catch(zE){}var Ov=function(t,e){if(!e&&!wv)return!1;var r=!1;try{var n={};n[bv]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(zE){}return r},Av=oh,Tv=wh.CONSTRUCTOR||!Ov((function(t){Av.all(t).then(void 0,(function(){}))})),kv=R,xv=_t,Pv=Sh,jv=nh,Cv=vp;Pr({target:"Promise",stat:!0,forced:Tv},{all:function(t){var e=this,r=Pv.f(e),n=r.resolve,o=r.reject,i=jv((function(){var r=xv(e.resolve),i=[],a=0,c=1;Cv(t,(function(t){var u=a++,s=!1;c++,kv(r,e,t).then((function(t){s||(s=!0,i[u]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise}});var _v=Pr,Rv=wh.CONSTRUCTOR;oh&&oh.prototype,_v({target:"Promise",proto:!0,forced:Rv,real:!0},{catch:function(t){return this.then(void 0,t)}});var Lv=R,Nv=_t,Iv=Sh,Mv=nh,Fv=vp;Pr({target:"Promise",stat:!0,forced:Tv},{race:function(t){var e=this,r=Iv.f(e),n=r.reject,o=Mv((function(){var o=Nv(e.resolve);Fv(t,(function(t){Lv(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Dv=R,Kv=Sh;Pr({target:"Promise",stat:!0,forced:wh.CONSTRUCTOR},{reject:function(t){var e=Kv.f(this);return Dv(e.reject,void 0,t),e.promise}});var Uv=rr,qv=tt,Bv=Sh,Hv=function(t,e){if(Uv(t),qv(e)&&e.constructor===t)return e;var r=Bv.f(t);return(0,r.resolve)(e),r.promise},Gv=Pr,Yv=oh,Vv=wh.CONSTRUCTOR,Xv=Hv,zv=at("Promise"),Wv=!Vv;Gv({target:"Promise",stat:!0,forced:true},{resolve:function(t){return Xv(Wv&&this===zv?Yv:this,t)}});var $v=R,Jv=_t,Qv=Sh,Zv=nh,td=vp;Pr({target:"Promise",stat:!0,forced:Tv},{allSettled:function(t){var e=this,r=Qv.f(e),n=r.resolve,o=r.reject,i=Zv((function(){var r=Jv(e.resolve),o=[],i=0,a=1;td(t,(function(t){var c=i++,u=!1;a++,$v(r,e,t).then((function(t){u||(u=!0,o[c]={status:"fulfilled",value:t},--a||n(o))}),(function(t){u||(u=!0,o[c]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var ed=R,rd=_t,nd=at,od=Sh,id=nh,ad=vp,cd="No one promise resolved";Pr({target:"Promise",stat:!0,forced:Tv},{any:function(t){var e=this,r=nd("AggregateError"),n=od.f(e),o=n.resolve,i=n.reject,a=id((function(){var n=rd(e.resolve),a=[],c=0,u=1,s=!1;ad(t,(function(t){var f=c++,l=!1;u++,ed(n,e,t).then((function(t){l||s||(s=!0,o(t))}),(function(t){l||s||(l=!0,a[f]=t,--u||i(new r(a,cd)))}))})),--u||i(new r(a,cd))}));return a.error&&i(a.value),n.promise}});var ud=Pr,sd=oh,fd=i,ld=at,pd=x,yd=Zp,hd=Hv,vd=sd&&sd.prototype;ud({target:"Promise",proto:!0,real:!0,forced:!!sd&&fd((function(){vd.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=yd(this,ld("Promise")),r=pd(t);return this.then(r?function(r){return hd(e,t()).then((function(){return r}))}:t,r?function(r){return hd(e,t()).then((function(){throw r}))}:t)}});var dd=et.Promise,gd=Sh,md=nh;Pr({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=gd.f(this),r=md(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var bd=dd,wd=r(bd),Sd=Pr,Ed=Cr,Od=d([].reverse),Ad=[1,2];Sd({target:"Array",proto:!0,forced:String(Ad)===String(Ad.reverse())},{reverse:function(){return Ed(this)&&(this.length=this.length),Od(this)}});var Td=qf("Array").reverse,kd=ct,xd=Td,Pd=Array.prototype,jd=r((function(t){var e=t.reverse;return t===Pd||kd(Pd,t)&&e===Pd.reverse?xd:e})),Cd=Pr,_d=Cr,Rd=bn,Ld=tt,Nd=Qn,Id=Kr,Md=J,Fd=Yr,Dd=pe,Kd=Ac,Ud=Cn("slice"),qd=Dd("species"),Bd=Array,Hd=Math.max;Cd({target:"Array",proto:!0,forced:!Ud},{slice:function(t,e){var r,n,o,i=Md(this),a=Id(i),c=Nd(t,a),u=Nd(void 0===e?a:e,a);if(_d(i)&&(r=i.constructor,(Rd(r)&&(r===Bd||_d(r.prototype))||Ld(r)&&null===(r=r[qd]))&&(r=void 0),r===Bd||void 0===r))return Kd(i,c,u);for(n=new(void 0===r?Bd:r)(Hd(u-c,0)),o=0;c<u;c++,o++)c in i&&Fd(n,o,i[c]);return n.length=o,n}});var Gd=qf("Array").slice,Yd=ct,Vd=Gd,Xd=Array.prototype,zd=function(t){var e=t.slice;return t===Xd||Yd(Xd,t)&&e===Xd.slice?Vd:e},Wd=r(zd);function $d(){$d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=jf||function(t,e,r){t[e]=r.value},o="function"==typeof ef?ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return jf(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(x){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=_f(i.prototype),c=new A(o||[]);return n(a,"_invoke",{value:w(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(x){return{type:"throw",arg:x}}}t.wrap=s;var l={};function p(){}function y(){}function h(){}var v={};u(v,i,(function(){return this}));var d=If&&If(If(T([])));d&&d!==e&&r.call(d,i)&&(v=d);var g=h.prototype=p.prototype=_f(v);function m(t){var e;$f(e=["next","throw","return"]).call(e,(function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(n,i,a,c){var u=f(t[n],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==Sf(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function w(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===l)continue;return c}}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=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),l;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,l;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e,r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),fl(e=this.tryEntries).call(e,r)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],$f(t).call(t,E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return y.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:y,configurable:!0}),y.displayName=u(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return ll?ll(t,h):(t.__proto__=h,u(t,c,"GeneratorFunction")),t.prototype=_f(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=wd);var a=new b(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)fl(r).call(r,n);return jd(r).call(r),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=T,A.prototype={constructor:A,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,$f(e=this.tryEntries).call(e,O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Wd(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.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 c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Jd(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(zE){return void r(zE)}c.done?e(u):wd.resolve(u).then(n,o)}function Qd(t){return function(){var e=this,r=arguments;return new wd((function(n,o){var i=t.apply(e,r);function a(t){Jd(i,n,o,a,c,"next",t)}function c(t){Jd(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Zd=ci.f("toPrimitive"),tg=r(Zd);function eg(t){var e=function(t,e){if("object"!==Sf(t)||null===t)return t;var r=t[tg];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sf(e)?e:String(e)}function rg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),jf(t,eg(n.key),n)}}var ng=d,og=_t,ig=tt,ag=Qt,cg=Ac,ug=a,sg=Function,fg=ng([].concat),lg=ng([].join),pg={},yg=ug?sg.bind:function(t){var e=og(this),r=e.prototype,n=cg(arguments,1),o=function(){var r=fg(n,cg(arguments));return this instanceof o?function(t,e,r){if(!ag(pg,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";pg[e]=sg("C,a","return new C("+lg(n,",")+")")}return pg[e](t,r)}(e,r.length,r):e.apply(t,r)};return ig(r)&&(o.prototype=r),o},hg=yg;Pr({target:"Function",proto:!0,forced:Function.bind!==hg},{bind:hg});var vg=qf("Function").bind,dg=ct,gg=vg,mg=Function.prototype,bg=function(t){var e=t.bind;return t===mg||dg(mg,t)&&e===mg.bind?gg:e},wg=r(bg);function Sg(t,e){var r;return(Sg=ll?wg(r=ll).call(r):function(t,e){return t.__proto__=e,t})(t,e)}var Eg=Pr,Og=l,Ag=yg,Tg=zp,kg=rr,xg=tt,Pg=Uo,jg=i,Cg=at("Reflect","construct"),_g=Object.prototype,Rg=[].push,Lg=jg((function(){function t(){}return!(Cg((function(){}),[],t)instanceof t)})),Ng=!jg((function(){Cg((function(){}))})),Ig=Lg||Ng;Eg({target:"Reflect",stat:!0,forced:Ig,sham:Ig},{construct:function(t,e){Tg(t),kg(e);var r=arguments.length<3?t:Tg(arguments[2]);if(Ng&&!Lg)return Cg(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return Og(Rg,n,e),new(Og(Ag,t,n))}var o=r.prototype,i=Pg(xg(o)?o:_g),a=Og(t,i,e);return xg(a)?a:i}});var Mg=r(et.Reflect.construct);function Fg(t){var e;return(Fg=ll?wg(e=If).call(e):function(t){return t.__proto__||If(t)})(t)}function Dg(t,e){if(e&&("object"===Sf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Kg(t){var e=function(){if("undefined"==typeof Reflect||!Mg)return!1;if(Mg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Mg(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Fg(t);if(e){var o=Fg(this).constructor;r=Mg(n,arguments,o)}else r=n.apply(this,arguments);return Dg(this,r)}}var Ug=qf("Array").concat,qg=ct,Bg=Ug,Hg=Array.prototype,Gg=r((function(t){var e=t.concat;return t===Hg||qg(Hg,t)&&e===Hg.concat?Bg:e})),Yg=j,Vg=d,Xg=R,zg=i,Wg=ho,$g=ri,Jg=L,Qg=Wt,Zg=G,tm=Object.assign,em=Object.defineProperty,rm=Vg([].concat),nm=!tm||zg((function(){if(Yg&&1!==tm({b:1},tm(em({},"a",{enumerable:!0,get:function(){em(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=tm({},t)[r]||Wg(tm({},e)).join("")!=n}))?function(t,e){for(var r=Qg(t),n=arguments.length,o=1,i=$g.f,a=Jg.f;n>o;)for(var c,u=Zg(arguments[o++]),s=i?rm(Wg(u),i(u)):Wg(u),f=s.length,l=0;f>l;)c=s[l++],Yg&&!Xg(a,u,c)||(r[c]=u[c]);return r}:tm,om=nm;Pr({target:"Object",stat:!0,arity:2,forced:Object.assign!==om},{assign:om});var im=r(et.Object.assign),am=o;Pr({global:!0,forced:am.globalThis!==am},{globalThis:am});var cm=r(o),um=Pr,sm=no.indexOf,fm=Ff,lm=O([].indexOf),pm=!!lm&&1/lm([1],1,-0)<0;um({target:"Array",proto:!0,forced:pm||!fm("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return pm?lm(this,t,e)||0:sm(this,t,e)}});var ym=qf("Array").indexOf,hm=ct,vm=ym,dm=Array.prototype,gm=r((function(t){var e=t.indexOf;return t===dm||hm(dm,t)&&e===dm.indexOf?vm:e})),mm=r(Wf),bm=Wt,wm=ho;Pr({target:"Object",stat:!0,forced:i((function(){wm(1)}))},{keys:function(t){return wm(bm(t))}});var Sm=r(et.Object.keys),Em=r(zd),Om=xt,Am=TypeError,Tm=function(t,e){if(!delete t[e])throw Am("Cannot delete property "+Om(e)+" of "+Om(t))},km=Pr,xm=Wt,Pm=Qn,jm=Nr,Cm=Kr,_m=el,Rm=qr,Lm=kn,Nm=Yr,Im=Tm,Mm=Cn("splice"),Fm=Math.max,Dm=Math.min;km({target:"Array",proto:!0,forced:!Mm},{splice:function(t,e){var r,n,o,i,a,c,u=xm(this),s=Cm(u),f=Pm(t,s),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=s-f):(r=l-2,n=Dm(Fm(jm(e),0),s-f)),Rm(s+r-n),o=Lm(u,n),i=0;i<n;i++)(a=f+i)in u&&Nm(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<s-n;i++)c=i+r,(a=i+n)in u?u[c]=u[a]:Im(u,c);for(i=s;i>s-n+r;i--)Im(u,i-1)}else if(r>n)for(i=s-n;i>f;i--)c=i+r-1,(a=i+n-1)in u?u[c]=u[a]:Im(u,c);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return _m(u,s-n+r),o}});var Km=qf("Array").splice,Um=ct,qm=Km,Bm=Array.prototype,Hm=r((function(t){var e=t.splice;return t===Bm||Um(Bm,t)&&e===Bm.splice?qm:e})),Gm=r(bd),Ym="\t\n\v\f\r \u2028\u2029\ufeff",Vm=z,Xm=Xn,zm=Ym,Wm=d("".replace),$m=RegExp("^["+zm+"]+"),Jm=RegExp("(^|[^"+zm+"])["+zm+"]+$"),Qm=function(t){return function(e){var r=Xm(Vm(e));return 1&t&&(r=Wm(r,$m,"")),2&t&&(r=Wm(r,Jm,"$1")),r}},Zm={start:Qm(1),end:Qm(2),trim:Qm(3)},tb=o,eb=i,rb=d,nb=Xn,ob=Zm.trim,ib=Ym,ab=tb.parseInt,cb=tb.Symbol,ub=cb&&cb.iterator,sb=/^[+-]?0x/i,fb=rb(sb.exec),lb=8!==ab(ib+"08")||22!==ab(ib+"0x16")||ub&&!eb((function(){ab(Object(ub))}))?function(t,e){var r=ob(nb(t));return ab(r,e>>>0||(fb(sb,r)?16:10))}:ab;Pr({global:!0,forced:parseInt!=lb},{parseInt:lb});var pb=r(et.parseInt),yb=ta.map;Pr({target:"Array",proto:!0,forced:!Cn("map")},{map:function(t){return yb(this,t,arguments.length>1?arguments[1]:void 0)}});var hb=qf("Array").map,vb=ct,db=hb,gb=Array.prototype,mb=r((function(t){var e=t.map;return t===gb||vb(gb,t)&&e===gb.map?db:e}));Pr({target:"Array",stat:!0},{isArray:Cr});var bb=r(et.Array.isArray),wb=ta.filter;Pr({target:"Array",proto:!0,forced:!Cn("filter")},{filter:function(t){return wb(this,t,arguments.length>1?arguments[1]:void 0)}});var Sb=qf("Array").filter,Eb=ct,Ob=Sb,Ab=Array.prototype,Tb=r((function(t){var e=t.filter;return t===Ab||Eb(Ab,t)&&e===Ab.filter?Ob:e})),kb=r(tf),xb=r(Gl),Pb=r(et.Object.getOwnPropertySymbols),jb={exports:{}},Cb=Pr,_b=i,Rb=J,Lb=P.f,Nb=j;Cb({target:"Object",stat:!0,forced:!Nb||_b((function(){Lb(1)})),sham:!Nb},{getOwnPropertyDescriptor:function(t,e){return Lb(Rb(t),e)}});var Ib=et.Object,Mb=jb.exports=function(t,e){return Ib.getOwnPropertyDescriptor(t,e)};Ib.getOwnPropertyDescriptor.sham&&(Mb.sham=!0);var Fb=r(jb.exports),Db=gl,Kb=J,Ub=P,qb=Yr;Pr({target:"Object",stat:!0,sham:!j},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Kb(t),o=Ub.f,i=Db(n),a={},c=0;i.length>c;)void 0!==(r=o(n,e=i[c++]))&&qb(a,e,r);return a}});var Bb=r(et.Object.getOwnPropertyDescriptors),Hb={exports:{}},Gb=Pr,Yb=j,Vb=zn.f;Gb({target:"Object",stat:!0,forced:Object.defineProperties!==Vb,sham:!Yb},{defineProperties:Vb});var Xb=et.Object,zb=Hb.exports=function(t,e){return Xb.defineProperties(t,e)};Xb.defineProperties.sham&&(zb.sham=!0);var Wb=r(Hb.exports),$b=r(Pf),Jb=r(bf),Qb=r(bg),Zb=rr,tw=ep,ew=$e,rw=R,nw=Wt,ow=function(t,e,r,n){try{return n?e(Zb(r)[0],r[1]):e(r)}catch(zE){tw(t,"throw",zE)}},iw=Dl,aw=bn,cw=Kr,uw=Yr,sw=Jl,fw=Gl,lw=Array,pw=function(t){var e=nw(t),r=aw(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ew(o,n>2?arguments[2]:void 0));var a,c,u,s,f,l,p=fw(e),y=0;if(!p||this===lw&&iw(p))for(a=cw(e),c=r?new this(a):lw(a);a>y;y++)l=i?o(e[y],y):e[y],uw(c,y,l);else for(f=(s=sw(e,p)).next,c=r?new this:[];!(u=rw(f,s)).done;y++)l=i?ow(s,o,[u.value,y],!0):u.value,uw(c,y,l);return c.length=y,c};Pr({target:"Array",stat:!0,forced:!Ov((function(t){Array.from(t)}))},{from:pw});var yw=r(et.Array.from),hw=r(Zd);function vw(t,e){var r=Sm(t);if(Pb){var n=Pb(t);e&&(n=Tb(n).call(n,(function(e){return Fb(t,e).enumerable}))),r.push.apply(r,n)}return r}function dw(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?mm(r=vw(Object(o),!0)).call(r,(function(e){Sw(t,e,o[e])})):Bb?Wb(t,Bb(o)):mm(n=vw(Object(o))).call(n,(function(e){$b(t,e,Fb(o,e))}))}return t}function gw(t){return(gw="function"==typeof kb&&"symbol"==typeof Jb?function(t){return typeof t}:function(t){return t&&"function"==typeof kb&&t.constructor===kb&&t!==kb.prototype?"symbol":typeof t})(t)}function mw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),$b(t,Aw(n.key),n)}}function ww(t,e,r){return e&&bw(t.prototype,e),r&&bw(t,r),$b(t,"prototype",{writable:!1}),t}function Sw(t,e,r){return(e=Aw(e))in t?$b(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ew(t){return function(t){if(bb(t))return Ow(t)}(t)||function(t){if(void 0!==kb&&null!=xb(t)||null!=t["@@iterator"])return yw(t)}(t)||function(t,e){var r;if(!t)return;if("string"==typeof t)return Ow(t,e);var n=Em(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return yw(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ow(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ow(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Aw(t){var e=function(t,e){if("object"!==Sf(t)||null===t)return t;var r=t[hw];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sf(e)?e:String(e)}var Tw=ta.some;Pr({target:"Array",proto:!0,forced:!Ff("some")},{some:function(t){return Tw(this,t,arguments.length>1?arguments[1]:void 0)}});var kw=qf("Array").some,xw=ct,Pw=kw,jw=Array.prototype,Cw=r((function(t){var e=t.some;return t===jw||xw(jw,t)&&e===jw.some?Pw:e})),_w=Nr,Rw=Xn,Lw=z,Nw=RangeError,Iw=d,Mw=Fr,Fw=Xn,Dw=z,Kw=Iw((function(t){var e=Rw(Lw(this)),r="",n=_w(t);if(n<0||n==1/0)throw Nw("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),Uw=Iw("".slice),qw=Math.ceil,Bw=function(t){return function(e,r,n){var o,i,a=Fw(Dw(e)),c=Mw(r),u=a.length,s=void 0===n?" ":Fw(n);return c<=u||""==s?a:((i=Kw(s,qw((o=c-u)/s.length))).length>o&&(i=Uw(i,0,o)),t?a+i:i+a)}},Hw={start:Bw(!1),end:Bw(!0)},Gw=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(ut),Yw=Hw.start;Pr({target:"String",proto:!0,forced:Gw},{padStart:function(t){return Yw(this,t,arguments.length>1?arguments[1]:void 0)}});var Vw,Xw=qf("String").padStart,zw=ct,Ww=Xw,$w=String.prototype,Jw=r((function(t){var e=t.padStart;return"string"==typeof t||t===$w||zw($w,t)&&e===$w.padStart?Ww:e})),Qw="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Zw=o,tS=l,eS=x,rS=Qw,nS=ut,oS=Ac,iS=ey,aS=Zw.Function,cS=/MSIE .\./.test(nS)||rS&&((Vw=Zw.Bun.version.split(".")).length<3||0==Vw[0]&&(Vw[1]<3||3==Vw[1]&&0==Vw[2])),uS=function(t,e){var r=e?2:1;return cS?function(n,o){var i=iS(arguments.length,1)>r,a=eS(n)?n:aS(n),c=i?oS(arguments,r):[],u=i?function(){tS(a,this,c)}:a;return e?t(u,o):t(u)}:t},sS=Pr,fS=o,lS=uS(fS.setInterval,!0);sS({global:!0,bind:!0,forced:fS.setInterval!==lS},{setInterval:lS});var pS=Pr,yS=o,hS=uS(yS.setTimeout,!0);pS({global:!0,bind:!0,forced:yS.setTimeout!==hS},{setTimeout:hS});var vS=r(et.setInterval),dS=r(et.setTimeout),gS=ta.every;Pr({target:"Array",proto:!0,forced:!Ff("every")},{every:function(t){return gS(this,t,arguments.length>1?arguments[1]:void 0)}});var mS=qf("Array").every,bS=ct,wS=mS,SS=Array.prototype,ES=r((function(t){var e=t.every;return t===SS||bS(SS,t)&&e===SS.every?wS:e})),OS=o,AS=i,TS=Xn,kS=Zm.trim,xS=Ym,PS=d("".charAt),jS=OS.parseFloat,CS=OS.Symbol,_S=CS&&CS.iterator,RS=1/jS(xS+"-0")!=-1/0||_S&&!AS((function(){jS(Object(_S))}))?function(t){var e=kS(TS(t)),r=jS(e);return 0===r&&"-"==PS(e,0)?-0:r}:jS;Pr({global:!0,forced:parseFloat!=RS},{parseFloat:RS});var LS=r(et.parseFloat),NS=du.PROPER,IS=i,MS=Ym,FS=Zm.trim;Pr({target:"String",proto:!0,forced:function(t){return IS((function(){return!!MS[t]()||"
"!=="
"[t]()||NS&&MS[t].name!==t}))}("trim")},{trim:function(){return FS(this)}});var DS=qf("String").trim,KS=ct,US=DS,qS=String.prototype,BS=r((function(t){var e=t.trim;return"string"==typeof t||t===qS||KS(qS,t)&&e===qS.trim?US:e})),HS=$o,GS=Math.floor,YS=function(t,e){var r=t.length,n=GS(r/2);return r<8?VS(t,e):XS(t,YS(HS(t,0,n),e),YS(HS(t,n),e),e)},VS=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},XS=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,c=0;a<o||c<i;)t[a+c]=a<o&&c<i?n(e[a],r[c])<=0?e[a++]:r[c++]:a<o?e[a++]:r[c++];return t},zS=YS,WS=ut.match(/firefox\/(\d+)/i),$S=!!WS&&+WS[1],JS=/MSIE|Trident/.test(ut),QS=ut.match(/AppleWebKit\/(\d+)\./),ZS=!!QS&&+QS[1],tE=Pr,eE=d,rE=_t,nE=Wt,oE=Kr,iE=Tm,aE=Xn,cE=i,uE=zS,sE=Ff,fE=$S,lE=JS,pE=vt,yE=ZS,hE=[],vE=eE(hE.sort),dE=eE(hE.push),gE=cE((function(){hE.sort(void 0)})),mE=cE((function(){hE.sort(null)})),bE=sE("sort"),wE=!cE((function(){if(pE)return pE<70;if(!(fE&&fE>3)){if(lE)return!0;if(yE)return yE<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){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++)hE.push({k:e+n,v:r})}for(hE.sort((function(t,e){return e.v-t.v})),n=0;n<hE.length;n++)e=hE[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));tE({target:"Array",proto:!0,forced:gE||!mE||!bE||!wE},{sort:function(t){void 0!==t&&rE(t);var e=nE(this);if(wE)return void 0===t?vE(e):vE(e,t);var r,n,o=[],i=oE(e);for(n=0;n<i;n++)n in e&&dE(o,e[n]);for(uE(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:aE(e)>aE(r)?1:-1}}(t)),r=oE(o),n=0;n<r;)e[n]=o[n++];for(;n<i;)iE(e,n++);return e}});var SE,EE=qf("Array").sort,OE=ct,AE=EE,TE=Array.prototype,kE=r((function(t){var e=t.sort;return t===TE||OE(TE,t)&&e===TE.sort?AE:e})),xE="undefined"!=typeof window&&window.location&&gm(SE=window.location.href).call(SE,"xgplayerdebugger=1")>-1,PE="color: #525252; background-color: #90ee90;",jE="color: #525252; background-color: red;",CE="color: #525252; background-color: yellow; ",_E="%c[xgplayer]",RE={config:{debug:xE?3:0},logInfo:function(t){for(var e,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,Gg(e=[_E,PE,t]).call(e,o))},logWarn:function(t){for(var e,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,Gg(e=[_E,CE,t]).call(e,o))},logError:function(t){var e,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,Gg(e=[_E,jE,t]).call(e,i))}}},LE=function(){function t(e){mw(this,t),this.bufferedList=e}return ww(t,[{key:"start",value:function(t){return this.bufferedList[t].start}},{key:"end",value:function(t){return this.bufferedList[t].end}},{key:"length",get:function(){return this.bufferedList.length}}]),t}(),NE={};function IE(t,e,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 c,u=e.call.apply(e,Gg(n=[t]).call(n,i));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var e,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.call.apply(r,Gg(e=[t]).call(e,o))})):r.call.apply(r,Gg(c=[t]).call(c,i)))}function ME(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[t]&&(this.__hooks[t]=null),Qb(r=function(){var r,o=arguments,i=this;if(n.pre)try{var a,c;(c=n.pre).call.apply(c,Gg(a=[this]).call(a,Em(Array.prototype).call(arguments)))}catch(d){var u,s;throw d.message=Gg(u=Gg(s="[pluginName: ".concat(this.pluginName,":")).call(s,t,":pre error] >> ")).call(u,d.message),d}if(this.__hooks&&this.__hooks[t])try{var f,l,p=UE.apply(void 0,Gg(f=[this,t,e]).call(f,Em(Array.prototype).call(arguments)));if(p)if(p.then)p.then((function(t){var r;!1!==t&&IE.apply(void 0,Gg(r=[i,e,n.next]).call(r,Ew(o)))})).catch((function(t){throw t}));else IE.apply(void 0,Gg(l=[this,e,n.next]).call(l,Em(Array.prototype).call(arguments)));else if(void 0===p){var y;IE.apply(void 0,Gg(y=[this,e,n.next]).call(y,Em(Array.prototype).call(arguments)))}}catch(d){var h,v;throw d.message=Gg(h=Gg(v="[pluginName: ".concat(this.pluginName,":")).call(v,t,"] >> ")).call(h,d.message),d}else IE.apply(void 0,Gg(r=[this,e,n.next]).call(r,Em(Array.prototype).call(arguments)))}).call(r,this)}function FE(t,e){var r=this.__hooks;if(!r||!bb(r[t]))return-1;for(var n=r[t],o=0;o<n.length;o++)if(n[o]===e)return o;return-1}function DE(t,e){var r=this.__hooks;if(r)return r.hasOwnProperty(t)?(bb(r[t])||(r[t]=[]),-1===FE.call(this,t,e)&&r[t].push(e),!0):(console.warn("has no supported hook which name [".concat(t,"]")),!1)}function KE(t,e){var r=this.__hooks;if(r)if(bb(r[t])){var n=r[t],o=FE.call(this,t,e);-1!==o&&Hm(n).call(n,o,1)}else r[t]&&(r[t]=null)}function UE(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];if(t.__hooks&&bb(t.__hooks[e])){var a,c=t.__hooks[e],u=-1;return function t(e,r,n){for(var o,i,a=arguments.length,s=new Array(a>3?a-3:0),f=3;f<a;f++)s[f-3]=arguments[f];if(u++,0===c.length||u===c.length)return n.call.apply(n,Gg(i=[e,e]).call(i,s));var l,p=c[u],y=p.call.apply(p,Gg(o=[e,e]).call(o,s));return y&&y.then?y.then((function(o){var i;return!1===o?null:t.apply(void 0,Gg(i=[e,r,n]).call(i,s))})).catch((function(t){console.warn("[runHooks]".concat(r," reject"),t.message)})):!1!==y?t.apply(void 0,Gg(l=[e,r,n]).call(l,s)):!1!==y&&void 0}.apply(void 0,Gg(a=[t,e,r]).call(a,o))}var s;return r.call.apply(r,Gg(s=[t,t]).call(s,o))}function qE(t,e){var r;RE.logError(Gg(r="[".concat(t,"] event or callback cant be undefined or null when call ")).call(r,e))}NE.createDom=function(){var t,e=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(e);return i.className=o,i.innerHTML=r,mm(t=Sm(n)).call(t,(function(t){var r=t,o=n[t];"video"===e||"audio"===e||"live-video"===e?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},NE.createDomFromHtml=function(t){var e=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=t;var o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&NE.addClass(o,r),e)mm(i=Sm(e)).call(i,(function(t){o.setAttribute(t,e[t])}));return o}return null}catch(a){return RE.logError("util.createDomFromHtml",a),null}},NE.hasClass=function(t,e){if(!t||!e)return!1;try{return Cw(Array.prototype).call(t.classList,(function(t){return t===e}))}catch(n){var r=t.className&&"object"===gw(t.className)?t.getAttribute("class"):t.className;return r&&!!r.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}},NE.addClass=function(t,e){if(t&&e)try{var r;mm(r=e.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(e){e&&t.classList.add(e)}))}catch(n){NE.hasClass(t,e)||(t.className&&"object"===gw(t.className)?t.setAttribute("class",t.getAttribute("class")+" "+e):t.className+=" "+e)}},NE.removeClass=function(t,e){if(t&&e)try{var r;mm(r=e.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(e){e&&t.classList.remove(e)}))}catch(o){var n;if(NE.hasClass(t,e))mm(n=e.split(/\s+/g)).call(n,(function(e){var r=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className&&"object"===gw(t.className)?t.setAttribute("class",t.getAttribute("class").replace(r," ")):t.className=t.className.replace(r," ")}))}},NE.toggleClass=function(t,e){var r;t&&mm(r=e.split(/\s+/g)).call(r,(function(e){NE.hasClass(t,e)?NE.removeClass(t,e):NE.addClass(t,e)}))},NE.classNames=function(){for(var t=arguments,e=[],r=function(r){if("String"===NE.typeOf(t[r]))e.push(t[r]);else if("Object"===NE.typeOf(t[r])){var n;mb(n=Sm(t[r])).call(n,(function(n){t[r][n]&&e.push(n)}))}},n=0;n<arguments.length;n++)r(n);return e.join(" ")},NE.findDom=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{t=e.querySelector(r)}catch(n){RE.logError("util.findDom",n),0===gm(r).call(r,"#")&&(t=e.getElementById(Em(r).call(r,1)))}return t},NE.getCss=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,!1)[e]},NE.padStart=function(t,e,r){for(var n=String(r),o=e>>0,i=Math.ceil(o/n.length),a=[],c=String(t);i--;)a.push(n);return a.join("").substring(0,o-c.length)+c},NE.format=function(t){if(window.isNaN(t))return"";t=Math.round(t);var e=Jw(NE).call(NE,Math.floor(t/3600),2,0),r=Jw(NE).call(NE,Math.floor((t-3600*e)/60),2,0),n=Jw(NE).call(NE,Math.floor(t-3600*e-60*r),2,0);return("00"===e?[r,n]:[e,r,n]).join(":")},NE.event=function(t){if(t.touches){var e=t.touches[0]||t.changedTouches[0];t.clientX=e.clientX||0,t.clientY=e.clientY||0,t.offsetX=e.pageX-e.target.offsetLeft,t.offsetY=e.pageY-e.target.offsetTop}t._target=t.target||t.srcElement},NE.typeOf=function(t){return Object.prototype.toString.call(t).match(/([^\s.*]+)(?=]$)/g)[0]},NE.deepCopy=function(t,e){var r;if("Object"===NE.typeOf(e)&&"Object"===NE.typeOf(t))return mm(r=Sm(e)).call(r,(function(r){if("Object"!==NE.typeOf(e[r])||e[r]instanceof Node)if("Array"===NE.typeOf(e[r])){var n;t[r]="Array"===NE.typeOf(t[r])?Gg(n=t[r]).call(n,e[r]):e[r]}else t[r]=e[r];else void 0===t[r]||void 0===t[r]?t[r]=e[r]:NE.deepCopy(t[r],e[r])})),t},NE.deepMerge=function(t,e){var r;return mb(r=Sm(e)).call(r,(function(r){var n;"Array"===NE.typeOf(e[r])&&"Array"===NE.typeOf(t[r])?"Array"===NE.typeOf(t[r])&&(n=t[r]).push.apply(n,Ew(e[r])):NE.typeOf(t[r])!==NE.typeOf(e[r])||null===t[r]||"Object"!==NE.typeOf(t[r])||e[r]instanceof window.Node?null!==e[r]&&(t[r]=e[r]):NE.deepMerge(t[r],e[r])})),t},NE.getBgImage=function(t){var e=(t.currentStyle||window.getComputedStyle(t,null)).backgroundImage;if(!e||"none"===e)return"";var r=document.createElement("a");return r.href=e.replace(/url\("|"\)/g,""),r.href},NE.copyDom=function(t){if(t&&1===t.nodeType){var e=document.createElement(t.tagName);return mm(Array.prototype).call(t.attributes,(function(t){e.setAttribute(t.name,t.value)})),t.innerHTML&&(e.innerHTML=t.innerHTML),e}return""},NE.setInterval=function(t,e,r,n){t._interval[e]||(t._interval[e]=vS(Qb(r).call(r,t),n))},NE.clearInterval=function(t,e){clearInterval(t._interval[e]),t._interval[e]=null},NE.setTimeout=function(t,e,r){t._timers||(t._timers=[]);var n=dS((function(){e(),NE.clearTimeout(t,n)}),r);return t._timers.push(n),n},NE.clearTimeout=function(t,e){var r=t._timers;if("Array"===NE.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===e){Hm(r).call(r,n,1),clearTimeout(e);break}}else clearTimeout(e)},NE.clearAllTimers=function(t){var e=t._timers;"Array"===NE.typeOf(e)&&(mb(e).call(e,(function(t){clearTimeout(t)})),t._timerIds=[])},NE.createImgBtn=function(t,e,r,n){var o,i,a,c,u,s,f,l,p,y,h,v,d=NE.createDom("xg-".concat(t),"",{},"xgplayer-".concat(t,"-img"));(d.style.backgroundImage='url("'.concat(e,'")'),r&&n)&&(ES(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(t){var e,o;return!(gm(r).call(r,t)>-1&&gm(n).call(n,t)>-1)||(f=LS(BS(e=Em(r).call(r,0,gm(r).call(r,t))).call(e)),l=LS(BS(o=Em(n).call(n,0,gm(n).call(n,t))).call(o)),p=t,!1)})),d.style.width=Gg(i="".concat(f)).call(i,p),d.style.height=Gg(a="".concat(l)).call(a,p),d.style.backgroundSize=Gg(c=Gg(u=Gg(s="".concat(f)).call(s,p," ")).call(u,l)).call(c,p),d.style.margin="start"===t?Gg(y=Gg(h=Gg(v="-".concat(l/2)).call(v,p," auto auto -")).call(h,f/2)).call(y,p):"auto 5px auto 5px");return d},NE.Hex2RGBA=function(t,e){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(t)){var o="#";t.replace(/[0-9A-F]/gi,(function(t){o+=t+t})),t=o}return/^#[0-9A-F]{6}$/i.test(t)?(t.replace(/[0-9A-F]{2}/gi,(function(t){n.push(pb(t,16))})),Gg(r="rgba(".concat(n.join(","),", ")).call(r,e,")")):"rgba(255, 255, 255, 0.1)"},NE.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},NE.checkIsFunction=function(t){return t&&"function"==typeof t},NE.checkIsObject=function(t){return null!==t&&"object"===gw(t)},NE.hide=function(t){t.style.display="none"},NE.show=function(t,e){t.style.display=e||"block"},NE.isUndefined=function(t){if(null==t)return!0},NE.isNotNull=function(t){return!(null==t)},NE.setStyleFromCsstext=function(t,e){if(e)if("String"===NE.typeOf(e)){var r=e.replace(/\s+/g,"").split(";");mb(r).call(r,(function(e){if(e){var r=e.split(":");r.length>1&&(t.style[r[0]]=r[1])}}))}else{var n;mb(n=Sm(e)).call(n,(function(r){t.style[r]=e[r]}))}},NE.filterStyleFromText=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=t.style.cssText;if(!n)return{};var o=n.replace(/\s+/g,"").split(";"),i={},a={};return mb(o).call(o,(function(t){if(t){var e=t.split(":");e.length>1&&(!function(t,e){for(var r=0,n=e.length;r<n;r++)if(gm(t).call(t,e[r])>-1)return!0;return!1}(e[0],r)?a[e[0]]=e[1]:i[e[0]]=e[1])}})),t.setAttribute("style",""),mb(e=Sm(a)).call(e,(function(e){t.style[e]=a[e]})),i},NE.getStyleFromCsstext=function(t){var e=t.style.cssText;if(!e)return{};var r=e.replace(/\s+/g,"").split(";"),n={};return mb(r).call(r,(function(t){if(t){var e=t.split(":");e.length>1&&(n[e[0]]=e[1])}})),n},NE.preloadImg=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(t){var n=new window.Image;n.onload=function(t){n=null,e&&e(t)},n.onerror=function(t){n=null,r&&r(t)},n.src=t}},NE.stopPropagation=function(t){t&&t.stopPropagation()},NE.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},NE.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},NE.checkTouchSupport=function(){return"ontouchstart"in window},NE.getBuffered2=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<t.length;n++)r.push({start:t.start(n)<.5?0:t.start(n),end:t.end(n)});kE(r).call(r,(function(t,e){var r=t.start-e.start;return r||e.end-t.end}));var o=[];if(e)for(var i=0;i<r.length;i++){var a=o.length;if(a){var c=o[a-1].end;r[i].start-c<e?r[i].end>c&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new LE(o)},NE.getEventPos=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.touches&&t.touches.length>0&&(t=t.touches[0]),{x:t.x/e,y:t.y/e,clientX:t.clientX/e,clientY:t.clientY/e,offsetX:t.offsetX/e,offsetY:t.offsetY/e,pageX:t.pageX/e,pageY:t.pageY/e}},NE.requestAnimationFrame=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(e)return e(t)},NE.getHostFromUrl=function(t){if("String"!==NE.typeOf(t))return"";var e=t.split("/"),r="";return e.length>3&&e[2]&&(r=e[2]),r},NE.cancelAnimationFrame=function(t){var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;e&&e(t)},NE.isMSE=function(t){return t.media&&(t=t.media),!!(t&&t instanceof HTMLMediaElement)&&(/^blob/.test(t.currentSrc)||/^blob/.test(t.src))},NE.isBlob=function(t){return"string"==typeof t&&/^blob/.test(t)},NE.generateSessionId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=(new Date).getTime();try{t=pb(t)}catch(r){t=0}return e+=t,window.performance&&"function"==typeof window.performance.now&&(e+=pb(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)}))},NE.createEvent=function(t){var e;return"function"==typeof window.Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),e},NE.adjustTimeByDuration=function(t,e,r){return e&&t&&(t>e||r&&t<e)?e:t},NE.createPositionBar=function(t,e){var r=NE.createDom("xg-bar","",{"data-index":-1},t);return e.appendChild(r),r},NE.getTransformStyle=function(){var t,e=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(e.scale||1),translate:Gg(t="".concat(e.x||0,"%, ")).call(t,e.y||0,"%"),rotate:"".concat(e.rotate||0,"deg")},o=Sm(n);return mm(o).call(o,(function(t){var e,o=new RegExp("".concat(t,"\\([^\\(]+\\)"),"g"),i=Gg(e="".concat(t,"(")).call(e,n[t],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},NE.convertDeg=function(t){return Math.abs(t)<=1?360*t:t%360},NE.getIndexByTime=function(t,e){var r=e.length,n=-1;if(r<1)return n;if(t<=e[0].end||r<2)n=0;else if(t>e[r-1].end)n=r-1;else for(var o=1;o<r;o++)if(t>e[o-1].end&&t<=e[o].end){n=o;break}return n},NE.getOffsetCurrentTime=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=-1;if((n=r>=0&&r<e.length?r:NE.getIndexByTime(t,e))<0)return-1;var o=e.length,i=e[n],a=i.start,c=i.end,u=i.cTime,s=i.offset;return t<a?u:t>=a&&t<=c?t-s:t>c&&n>=o-1?c:-1},NE.getCurrentTimeByOffset=function(t,e){var r=-1;if(!e||e.length<0)return t;for(var n=0;n<e.length;n++)if(t<=e[n].duration){r=n;break}if(-1!==r){var o=e[r].start;return r-1<0?o+t:o+(t-e[r-1].duration)}return t};var BE=function(){function t(e){mw(this,t),NE.checkIsFunction(this.beforeCreate)&&this.beforeCreate(e),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.__hooks={},e&&mb(e).call(e,(function(e){t.__hooks[e]=null})),$b(t,"hooks",{get:function(){var e;return t.__hooks&&mb(e=Sm(t.__hooks)).call(e,(function(e){if(t.__hooks[e])return e}))}})}(this),this.__args=e,this.__events={},this.__onceEvents={},this.config=e.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(e)}return ww(t,[{key:"beforeCreate",value:function(t){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(t){this.player=t.player,this.playerConfig=t.player&&t.player.config,this.pluginName=t.pluginName?t.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=t.player&&t.player.logger}},{key:"updateLang",value:function(t){t||(t=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 t=NE.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(t=this.playerConfig.domEventType),t}},{key:"on",value:function(t,e){var r=this;t&&e&&this.player?"string"==typeof t?(this.__events[t]=e,this.player.on(t,e)):bb(t)&&mm(t).call(t,(function(t){r.__events[t]=e,r.player.on(t,e)})):qE(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(t,e){var r=this;t&&e&&this.player?"string"==typeof t?(this.__onceEvents[t]=e,this.player.once(t,e)):bb(t)&&mm(t).call(t,(function(n){r.__onceEvents[n]=e,r.player.once(t,e)})):qE(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(t,e){var r=this;t&&e&&this.player?"string"==typeof t?(delete this.__events[t],this.player.off(t,e)):bb(t)&&mm(t).call(t,(function(n){delete r.__events[t],r.player.off(n,e)})):qE(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var t,e=this;mm(t=["__events","__onceEvents"]).call(t,(function(t){var r;mm(r=Sm(e[t])).call(r,(function(r){e[t][r]&&e.off(r,e[t][r]),r&&delete e[t][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(t){var e,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,Gg(e=[t]).call(e,o))}}},{key:"emitUserAction",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=dw(dw({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(t,e,n)}}},{key:"hook",value:function(t,e){var r;return ME.call.apply(ME,Gg(r=[this]).call(r,Em(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(t,e){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 DE.call.apply(DE,Gg(r=[this]).call(r,Em(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(t,e){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 KE.call.apply(KE,Gg(r=[this]).call(r,Em(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(e.pluginName=r),this.player.registerPlugin({plugin:t,options:e})}},{key:"getPlugin",value:function(t){return this.player?this.player.getPlugin(t):null}},{key:"__destroy",value:function(){var t,e=this,r=this.player,n=this.pluginName;this.offAll(),NE.clearAllTimers(this),NE.checkIsFunction(this.destroy)&&this.destroy(),mb(t=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(t,(function(t){e[t]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&$b(t,r,e[r])}},{key:"defineMethod",value:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&"function"==typeof e[r]&&$b(t,r,{configurable:!0,value:e[r]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),t}(),HE=function(t){return t.widevine="com.widevine.alpha",t.fairplay="com.apple.fps.1_0",t.playready="com.microsoft.playready",t}(HE||{}),GE=function(t){return t[t.UNSUPPORTED=7101]="UNSUPPORTED",t[t.RECORD=7102]="RECORD",t[t.NOMEDIAKEY=7103]="NOMEDIAKEY",t[t.NOKEYSESSION=7104]="NOKEYSESSION",t[t.GENERATEREQUESTFAIL=7105]="GENERATEREQUESTFAIL",t[t.LACKSERVERCERTIFICATEPATH=7106]="LACKSERVERCERTIFICATEPATH",t[t.LACKSERVERPROCESSSPCPATH=7107]="LACKSERVERPROCESSSPCPATH",t[t.LICENSEFAIL=7108]="LICENSEFAIL",t[t.KEYERROR=7109]="KEYERROR",t[t.CERTFAIL=7110]="CERTFAIL",t}(GE||{});function YE(t){var e=[{initDataTypes:["keyids","webm"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"'}],videoCapabilities:t?[{contentType:t}]:[{contentType:'video/mp4; codecs="avc1.42c01e"'},{contentType:'video/mp4; codecs="hev1.1.6.L120.90"'},{contentType:'video/webm; codecs="vp8"'}]}];return new Gm((function(t,r){navigator.requestMediaKeySystemAccess(HE.fairplay,e).then((function(e){t({access:e,system:HE.fairplay,systemName:"fairplay"})})).catch((function(){cm.WebKitMediaKeys&&cm.WebKitMediaKeys.isTypeSupported(HE.fairplay,"video/mp4")?t({access:null,system:HE.fairplay,systemName:"fairplay"}):navigator.requestMediaKeySystemAccess(HE.widevine,e).then((function(e){t({access:e,system:HE.widevine,systemName:"widevine"})})).catch((function(){navigator.requestMediaKeySystemAccess(HE.playready,e).then((function(e){t({access:e,system:HE.playready,systemName:"playready"})})).catch((function(e){cm.MSMediaKeys&&cm.MSMediaKeys.isTypeSupported(HE.playready,"video/mp4")?t({access:null,system:HE.playready,systemName:"playready"}):r(e)}))}))}))}))}var VE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=_f(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),jf(t,"prototype",{writable:!1}),e&&Sg(t,e)}(c,t);var e,r,n,o,i,a=Kg(c);function c(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this,t)).unsupported=!1,e.unRecord=!0,e.needKeyed=!1,e.onNeedKey=function(t){if(!e.needKeyed&&!e.unsupported){e.needKeyed=!0,t.target;var r,n=t.initData,o=t.initDataType;e.keySystem===HE.fairplay&&(r=e.extractContentId(n)),e.afterInitDate(n,r,o)}},e.licenseRequestReady=function(t){if(e.serverProcessSPCPath){var r=t.message,n=new XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("load",e.licenseRequestLoaded,!1),n.addEventListener("error",e.licenseRequestFailed(t),!1);var o=new Uint8Array(r);n.open("POST",e.serverProcessSPCPath,!0),e.config.ignoreLicenseHeader||(e.keySystem===HE.playready?n.setRequestHeader("Content-type","text/xml; charset=utf-8"):n.setRequestHeader("Content-type","application/octet-stream")),n.send(o)}else e.emitError(GE.LACKSERVERPROCESSSPCPATH,"lack serverProcessSPCPath")},e.licenseRequestLoaded=function(t){var r,n=t.target.response;(r=new Uint8Array(n))?e.keySession.update(r):e.emitError(GE.LICENSEFAIL,"The license response no array buffer, license: ".concat(r))},e.licenseRequestFailed=function(t){return function(r){if(e.licenseRetryTime>0)e.licenseRequestReady(t),e.licenseRetryTime--;else{var n,o=r.target;e.emitError(GE.LICENSEFAIL,Gg(n="The license request fail, status: ".concat(o.status,", statusText: ")).call(n,o.statusText))}}},e.onKeyError=function(){e.emitError(GE.KEYERROR,"A decryption key error was encountered")},e.loadCertificate=function(){if(e.serverCertificatePath){var t=new XMLHttpRequest;t.responseType="arraybuffer",t.addEventListener("load",e.onCertificateLoaded,!1),t.addEventListener("error",e.onCertificateError,!1),t.open("GET",e.serverCertificatePath,!0),t.send()}else e.emitError(GE.LACKSERVERCERTIFICATEPATH,"lack serverCertificatePath")},e.emitError=function(t,r){e.emit("error",{errorCode:t,message:r,drm_sdk_version:"0.0.0-alpha.13"})},e.onCertificateLoaded=function(t){var r=t.target;e.certificate=new Uint8Array(r.response),e.loadSource()},e.onCertificateError=function(t){if(e.certRetryTime>0)e.loadCertificate(),e.certRetryTime--;else{var r,n=t.target;e.emitError(GE.CERTFAIL,Gg(r="get cert fail, status: ".concat(n.status,", statusText: ")).call(r,n.statusText))}},e.restart=function(){e.reset()},e.reset();var r=t.config||{};return e.config=r,e.contentType=e.config.contentType,"boolean"==typeof r.unRecord&&(e.unRecord=r.unRecord),e.checkUnrecord(),e.player.handleSource=!1,e}return e=c,r=[{key:"serverCertificatePath",get:function(){return this._serverCertificatePath},set:function(t){t&&this._serverCertificatePath!==t&&(this._serverCertificatePath=t,this.keySystem===HE.fairplay&&(this.certificate=void 0,this.loadCertificate()))}},{key:"afterCreate",value:function(){this.media=this.player.video,this.media.addEventListener("webkitneedkey",this.onNeedKey,!1),this.media.addEventListener("msneedkey",this.onNeedKey,!1),this.media.addEventListener("needkey",this.onNeedKey,!1),this.media.addEventListener("encrypted",this.onNeedKey),this.player.on("urlchange",this.restart),this.player.on("reset",this.restart)}},{key:"checkUnrecord",value:(i=Qd($d().mark((function t(){var e,r,n=this;return $d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.unRecord){t.next=13;break}return t.prev=1,t.next=4,navigator.mediaCapabilities.decodingInfo({type:"file",video:{contentType:'video/mp4; codecs="avc1.42c01e"',width:426,height:238,bitrate:1e3,framerate:30}});case 4:e=t.sent,r=e.powerEfficient,this.unsupported=!r,t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),this.emitError(GE.RECORD,"check powerEfficient failed, ".concat(t.t0.message)),this.unsupported=!0;case 13:if(!this.unsupported){t.next=15;break}return t.abrupt("return");case 15:YE(this.contentType).then((function(t){var e=t.access,r=t.system,o=t.systemName;n.keySystem=r,n.systemName=o,n.setRequestUrl(o),r===HE.fairplay?n.loadCertificate():n.loadSource(),e&&(n.keySystemAccess=e)})).catch((function(t){n.emitError(GE.UNSUPPORTED,t.message),n.unsupported=!0}));case 16:case"end":return t.stop()}}),t,this,[[1,9]])}))),function(){return i.apply(this,arguments)})},{key:"loadSource",value:function(){this.player.retry()}},{key:"setRequestUrl",value:function(t){var e=this.config[t]||this.config;this.serverCertificatePath=e.serverCertificatePath,this.serverProcessSPCPath=e.serverProcessSPCPath}},{key:"updateConfig",value:(o=Qd($d().mark((function t(e){return $d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(im(this.config,e),!this.config.unRecord||this.contentType===this.config.contentType){t.next=5;break}return this.contentType=this.config.contentType,t.next=5,this.checkUnrecord();case 5:this.setRequestUrl(this.systemName);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"afterInitDate",value:function(t,e,r){var n=this;if(this.keySystemAccess)this.keySystemAccess.createMediaKeys().then((function(e){if(n.media.setMediaKeys(e),n.media.mediaKeys)n.emitError(GE.NOMEDIAKEY,"Could not create MediaKeys");else{var o=e.createSession();n.keySession=o,o?(o.addEventListener("message",n.licenseRequestReady),o.generateRequest(r||n.config.initDataType,t).catch((function(t){var e;n.emitError(GE.GENERATEREQUESTFAIL,Gg(e="generateRequest failed, code: ".concat(t.errorCode,", message: ")).call(e,t.message))}))):n.emitError(GE.NOKEYSESSION,"Could not create key session")}})).catch((function(){throw"Could not create MediaKeys"}));else if(this.keySystem===HE.fairplay){var o=new cm.WebKitMediaKeys(this.keySystem);if(this.media.webkitSetMediaKeys(o),!this.media.webkitKeys)return void this.emitError(GE.NOMEDIAKEY,"Could not create MediaKeys");var i=o.createSession("video/mp4",this.concatInitDataIdAndCertificate(t,e));if(this.keySession=i,!i)return void this.emitError(GE.NOKEYSESSION,"Could not create key session");i.addEventListener("webkitkeymessage",this.licenseRequestReady),i.addEventListener("webkitkeyerror",this.onKeyError)}else if(this.keySystem===HE.playready){var a=new cm.MSMediaKeys(this.keySystem);this.media.msSetMediaKeys(a);var c=a.createSession("video/mp4",new Uint8Array(t),null);if(this.keySession=c,!c)return void this.emitError(GE.NOKEYSESSION,"Could not create key session");c.addEventListener("mskeymessage",this.licenseRequestReady),c.addEventListener("mskeyerror",this.onKeyError)}}},{key:"parseServerResponse",value:function(t){var e="http://schemas.xmlsoap.org/soap/envelope/";if(DOMParser){var r=this.uintToString(t),n=(new DOMParser).parseFromString(r,"text/xml"),o=n?n.getElementsByTagNameNS(e,"Envelope")[0]:null,i=o?o.getElementsByTagNameNS(e,"Body")[0]:null;if(i&&i.getElementsByTagNameNS(e,"Fault")[0])return null}return t}},{key:"uintToString",value:function(t){var e=String.fromCharCode.apply(null,new Uint8Array(t));return decodeURIComponent(escape(e))}},{key:"extractContentId",value:function(t){var e,r=(e=new Uint16Array(t.buffer),String.fromCharCode.apply(null,e)),n=document.createElement("a");return n.href=r,n.hostname}},{key:"concatInitDataIdAndCertificate",value:function(t,e){"string"==typeof e&&(e=function(t){for(var e=new ArrayBuffer(2*t.length),r=new Uint16Array(e),n=0,o=t.length;n<o;n++)r[n]=t.charCodeAt(n);return r}(e));var r,n=0,o=this.certificate;r=o?new ArrayBuffer(t.byteLength+4+e.byteLength+4+o.byteLength):new ArrayBuffer(t.byteLength+4+e.byteLength);var i=new DataView(r);new Uint8Array(r,n,t.byteLength).set(t),n+=t.byteLength,i.setUint32(n,e.byteLength,!0),n+=4;var a=new Uint16Array(r,n,e.length);return a.set(e),n+=a.byteLength,o&&(i.setUint32(n,o.byteLength,!0),n+=4,new Uint8Array(r,n,o.byteLength).set(o)),new Uint8Array(r,0,r.byteLength)}},{key:"reset",value:function(){if(this.certRetryTime=2,this.licenseRetryTime=2,this.suspend=void 0,this.keySession=void 0,this.needKeyed=!1,this.media)try{this.media.src="",this.keySystem===HE.fairplay?this.media.webkitSetMediaKeys(null):this.keySystem===HE.playready?this.media.msSetMediaKeys(null):this.media.setMediaKeys(null)}catch(zE){}}},{key:"destroy",value:function(){this.player.off("urlchange",this.restart),this.player.off("reset",this.restart),this.media.removeEventListener("webkitneedkey",this.onNeedKey,!1),this.media.removeEventListener("msneedkey",this.onNeedKey,!1),this.media.removeEventListener("needkey",this.onNeedKey,!1),this.media.removeEventListener("encrypted",this.onNeedKey)}}],n=[{key:"pluginName",get:function(){return"drm"}}],r&&rg(e.prototype,r),n&&rg(e,n),jf(e,"prototype",{writable:!1}),c}(BE),XE=window.VePlayer.DynamicModule;VePlayer.registerPlugin(XE.PluginDrm,{DrmPlugin:VE}),t.DrmPlugin=VE}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).__VEPLAYER_PLUGIN_DRM__={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||e||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},a=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=a,u=Function.prototype,s=u.apply,f=u.call,l="object"==typeof Reflect&&Reflect.apply||(c?f.bind(s):function(){return f.apply(s,arguments)}),p=a,y=Function.prototype,h=y.call,v=p&&y.bind.bind(h,h),d=p?v:function(t){return function(){return h.apply(t,arguments)}},g=d,m=g({}.toString),b=g("".slice),w=function(t){return b(m(t),8,-1)},S=w,E=d,O=function(t){if("Function"===S(t))return E(t)},A="object"==typeof document&&document.all,T={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},k=T.all,x=T.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},P={},j=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=a,_=Function.prototype.call,R=C?_.bind(_):function(){return _.apply(_,arguments)},L={},N={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,M=I&&!N.call({1:2},1);L.f=M?function(t){var e=I(this,t);return!!e&&e.enumerable}:N;var F,D,K=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},U=i,q=w,B=Object,H=d("".split),G=U((function(){return!B("z").propertyIsEnumerable(0)}))?function(t){return"String"==q(t)?H(t,""):B(t)}:B,Y=function(t){return null==t},V=Y,X=TypeError,z=function(t){if(V(t))throw X("Can't call method on "+t);return t},W=G,$=z,J=function(t){return W($(t))},Q=x,Z=T.all,tt=T.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Q(t)||t===Z}:function(t){return"object"==typeof t?null!==t:Q(t)},et={},rt=et,nt=o,ot=x,it=function(t){return ot(t)?t:void 0},at=function(t,e){return arguments.length<2?it(rt[t])||it(nt[t]):rt[t]&&rt[t][e]||nt[t]&&nt[t][e]},ct=d({}.isPrototypeOf),ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=o,ft=ut,lt=st.process,pt=st.Deno,yt=lt&<.versions||pt&&pt.version,ht=yt&&yt.v8;ht&&(D=(F=ht.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!D&&ft&&(!(F=ft.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=ft.match(/Chrome\/(\d+)/))&&(D=+F[1]);var vt=D,dt=vt,gt=i,mt=o.String,bt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol();return!mt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&dt&&dt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=at,Et=x,Ot=ct,At=Object,Tt=wt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Et(e)&&Ot(e.prototype,At(t))},kt=String,xt=function(t){try{return kt(t)}catch(e){return"Object"}},Pt=x,jt=xt,Ct=TypeError,_t=function(t){if(Pt(t))return t;throw Ct(jt(t)+" is not a function")},Rt=_t,Lt=Y,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:Rt(r)},It=R,Mt=x,Ft=tt,Dt=TypeError,Kt={exports:{}},Ut=o,qt=Object.defineProperty,Bt=function(t,e){try{qt(Ut,t,{value:e,configurable:!0,writable:!0})}catch(r){Ut[t]=e}return e},Ht="__core-js_shared__",Gt=o[Ht]||Bt(Ht,{}),Yt=Gt;(Kt.exports=function(t,e){return Yt[t]||(Yt[t]=void 0!==e?e:{})})("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 Vt=Kt.exports,Xt=z,zt=Object,Wt=function(t){return zt(Xt(t))},$t=Wt,Jt=d({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Jt($t(t),e)},Zt=d,te=0,ee=Math.random(),re=Zt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},oe=Vt,ie=Qt,ae=ne,ce=bt,ue=wt,se=o.Symbol,fe=oe("wks"),le=ue?se.for||se:se&&se.withoutSetter||ae,pe=function(t){return ie(fe,t)||(fe[t]=ce&&ie(se,t)?se[t]:le("Symbol."+t)),fe[t]},ye=R,he=tt,ve=Tt,de=Nt,ge=function(t,e){var r,n;if("string"===e&&Mt(r=t.toString)&&!Ft(n=It(r,t)))return n;if(Mt(r=t.valueOf)&&!Ft(n=It(r,t)))return n;if("string"!==e&&Mt(r=t.toString)&&!Ft(n=It(r,t)))return n;throw Dt("Can't convert object to primitive value")},me=TypeError,be=pe("toPrimitive"),we=function(t,e){if(!he(t)||ve(t))return t;var r,n=de(t,be);if(n){if(void 0===e&&(e="default"),r=ye(n,t,e),!he(r)||ve(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),ge(t,e)},Se=Tt,Ee=function(t){var e=we(t,"string");return Se(e)?e:e+""},Oe=tt,Ae=o.document,Te=Oe(Ae)&&Oe(Ae.createElement),ke=function(t){return Te?Ae.createElement(t):{}},xe=ke,Pe=!j&&!i((function(){return 7!=Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),je=j,Ce=R,_e=L,Re=K,Le=J,Ne=Ee,Ie=Qt,Me=Pe,Fe=Object.getOwnPropertyDescriptor;P.f=je?Fe:function(t,e){if(t=Le(t),e=Ne(e),Me)try{return Fe(t,e)}catch(r){}if(Ie(t,e))return Re(!Ce(_e.f,t,e),t[e])};var De=i,Ke=x,Ue=/#|\.prototype\./,qe=function(t,e){var r=He[Be(t)];return r==Ye||r!=Ge&&(Ke(e)?De(e):!!e)},Be=qe.normalize=function(t){return String(t).replace(Ue,".").toLowerCase()},He=qe.data={},Ge=qe.NATIVE="N",Ye=qe.POLYFILL="P",Ve=qe,Xe=_t,ze=a,We=O(O.bind),$e=function(t,e){return Xe(t),void 0===e?t:ze?We(t,e):function(){return t.apply(e,arguments)}},Je={},Qe=j&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=tt,tr=String,er=TypeError,rr=function(t){if(Ze(t))return t;throw er(tr(t)+" is not an object")},nr=j,or=Pe,ir=Qe,ar=rr,cr=Ee,ur=TypeError,sr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,lr="enumerable",pr="configurable",yr="writable";Je.f=nr?ir?function(t,e,r){if(ar(t),e=cr(e),ar(r),"function"==typeof t&&"prototype"===e&&"value"in r&&yr in r&&!r[yr]){var n=fr(t,e);n&&n[yr]&&(t[e]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return sr(t,e,r)}:sr:function(t,e,r){if(ar(t),e=cr(e),ar(r),or)try{return sr(t,e,r)}catch(n){}if("get"in r||"set"in r)throw ur("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var hr=Je,vr=K,dr=j?function(t,e,r){return hr.f(t,e,vr(1,r))}:function(t,e,r){return t[e]=r,t},gr=o,mr=l,br=O,wr=x,Sr=P.f,Er=Ve,Or=et,Ar=$e,Tr=dr,kr=Qt,xr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return mr(t,this,arguments)};return e.prototype=t.prototype,e},Pr=function(t,e){var r,n,o,i,a,c,u,s,f,l=t.target,p=t.global,y=t.stat,h=t.proto,v=p?gr:y?gr[l]:(gr[l]||{}).prototype,d=p?Or:Or[l]||Tr(Or,l,{})[l],g=d.prototype;for(i in e)n=!(r=Er(p?i:l+(y?".":"#")+i,t.forced))&&v&&kr(v,i),c=d[i],n&&(u=t.dontCallGetSet?(f=Sr(v,i))&&f.value:v[i]),a=n&&u?u:e[i],n&&typeof c==typeof a||(s=t.bind&&n?Ar(a,gr):t.wrap&&n?xr(a):h&&wr(a)?br(a):a,(t.sham||a&&a.sham||c&&c.sham)&&Tr(s,"sham",!0),Tr(d,i,s),h&&(kr(Or,o=l+"Prototype")||Tr(Or,o,{}),Tr(Or[o],i,a),t.real&&g&&(r||!g[i])&&Tr(g,i,a)))},jr=w,Cr=Array.isArray||function(t){return"Array"==jr(t)},_r=Math.ceil,Rr=Math.floor,Lr=Math.trunc||function(t){var e=+t;return(e>0?Rr:_r)(e)},Nr=function(t){var e=+t;return e!=e||0===e?0:Lr(e)},Ir=Nr,Mr=Math.min,Fr=function(t){return t>0?Mr(Ir(t),9007199254740991):0},Dr=Fr,Kr=function(t){return Dr(t.length)},Ur=TypeError,qr=function(t){if(t>9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Br=Ee,Hr=Je,Gr=K,Yr=function(t,e,r){var n=Br(e);n in t?Hr.f(t,n,Gr(0,r)):t[n]=r},Vr={};Vr[pe("toStringTag")]="z";var Xr="[object z]"===String(Vr),zr=Xr,Wr=x,$r=w,Jr=pe("toStringTag"),Qr=Object,Zr="Arguments"==$r(function(){return arguments}()),tn=zr?$r:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=Qr(t),Jr))?r:Zr?$r(e):"Object"==(n=$r(e))&&Wr(e.callee)?"Arguments":n},en=x,rn=Gt,nn=d(Function.toString);en(rn.inspectSource)||(rn.inspectSource=function(t){return nn(t)});var on=rn.inspectSource,an=d,cn=i,un=x,sn=tn,fn=on,ln=function(){},pn=[],yn=at("Reflect","construct"),hn=/^\s*(?:class|function)\b/,vn=an(hn.exec),dn=!hn.exec(ln),gn=function(t){if(!un(t))return!1;try{return yn(ln,pn,t),!0}catch(e){return!1}},mn=function(t){if(!un(t))return!1;switch(sn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return dn||!!vn(hn,fn(t))}catch(e){return!0}};mn.sham=!0;var bn=!yn||cn((function(){var t;return gn(gn.call)||!gn(Object)||!gn((function(){t=!0}))||t}))?mn:gn,wn=Cr,Sn=bn,En=tt,On=pe("species"),An=Array,Tn=function(t){var e;return wn(t)&&(e=t.constructor,(Sn(e)&&(e===An||wn(e.prototype))||En(e)&&null===(e=e[On]))&&(e=void 0)),void 0===e?An:e},kn=function(t,e){return new(Tn(t))(0===e?0:e)},xn=i,Pn=vt,jn=pe("species"),Cn=function(t){return Pn>=51||!xn((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_n=Pr,Rn=i,Ln=Cr,Nn=tt,In=Wt,Mn=Kr,Fn=qr,Dn=Yr,Kn=kn,Un=Cn,qn=vt,Bn=pe("isConcatSpreadable"),Hn=qn>=51||!Rn((function(){var t=[];return t[Bn]=!1,t.concat()[0]!==t})),Gn=function(t){if(!Nn(t))return!1;var e=t[Bn];return void 0!==e?!!e:Ln(t)};_n({target:"Array",proto:!0,arity:1,forced:!Hn||!Un("concat")},{concat:function(t){var e,r,n,o,i,a=In(this),c=Kn(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Gn(i=-1===e?a:arguments[e]))for(o=Mn(i),Fn(u+o),r=0;r<o;r++,u++)r in i&&Dn(c,u,i[r]);else Fn(u+1),Dn(c,u++,i);return c.length=u,c}});var Yn=tn,Vn=String,Xn=function(t){if("Symbol"===Yn(t))throw TypeError("Cannot convert a Symbol value to a string");return Vn(t)},zn={},Wn=Nr,$n=Math.max,Jn=Math.min,Qn=function(t,e){var r=Wn(t);return r<0?$n(r+e,0):Jn(r,e)},Zn=J,to=Qn,eo=Kr,ro=function(t){return function(e,r,n){var o,i=Zn(e),a=eo(i),c=to(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},no={includes:ro(!0),indexOf:ro(!1)},oo={},io=Qt,ao=J,co=no.indexOf,uo=oo,so=d([].push),fo=function(t,e){var r,n=ao(t),o=0,i=[];for(r in n)!io(uo,r)&&io(n,r)&&so(i,r);for(;e.length>o;)io(n,r=e[o++])&&(~co(i,r)||so(i,r));return i},lo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],po=fo,yo=lo,ho=Object.keys||function(t){return po(t,yo)},vo=j,go=Qe,mo=Je,bo=rr,wo=J,So=ho;zn.f=vo&&!go?Object.defineProperties:function(t,e){bo(t);for(var r,n=wo(e),o=So(e),i=o.length,a=0;i>a;)mo.f(t,r=o[a++],n[r]);return t};var Eo,Oo=at("document","documentElement"),Ao=ne,To=Vt("keys"),ko=function(t){return To[t]||(To[t]=Ao(t))},xo=rr,Po=zn,jo=lo,Co=oo,_o=Oo,Ro=ke,Lo="prototype",No="script",Io=ko("IE_PROTO"),Mo=function(){},Fo=function(t){return"<"+No+">"+t+"</"+No+">"},Do=function(t){t.write(Fo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ko=function(){try{Eo=new ActiveXObject("htmlfile")}catch(o){}var t,e,r;Ko="undefined"!=typeof document?document.domain&&Eo?Do(Eo):(e=Ro("iframe"),r="java"+No+":",e.style.display="none",_o.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Fo("document.F=Object")),t.close(),t.F):Do(Eo);for(var n=jo.length;n--;)delete Ko[Lo][jo[n]];return Ko()};Co[Io]=!0;var Uo=Object.create||function(t,e){var r;return null!==t?(Mo[Lo]=xo(t),r=new Mo,Mo[Lo]=null,r[Io]=t):r=Ko(),void 0===e?r:Po.f(r,e)},qo={},Bo=fo,Ho=lo.concat("length","prototype");qo.f=Object.getOwnPropertyNames||function(t){return Bo(t,Ho)};var Go={},Yo=Qn,Vo=Kr,Xo=Yr,zo=Array,Wo=Math.max,$o=function(t,e,r){for(var n=Vo(t),o=Yo(e,n),i=Yo(void 0===r?n:r,n),a=zo(Wo(i-o,0)),c=0;o<i;o++,c++)Xo(a,c,t[o]);return a.length=c,a},Jo=w,Qo=J,Zo=qo.f,ti=$o,ei="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Go.f=function(t){return ei&&"Window"==Jo(t)?function(t){try{return Zo(t)}catch(e){return ti(ei)}}(t):Zo(Qo(t))};var ri={};ri.f=Object.getOwnPropertySymbols;var ni=dr,oi=function(t,e,r,n){return n&&n.enumerable?t[e]=r:ni(t,e,r),t},ii=Je,ai=function(t,e,r){return ii.f(t,e,r)},ci={},ui=pe;ci.f=ui;var si,fi,li,pi=et,yi=Qt,hi=ci,vi=Je.f,di=function(t){var e=pi.Symbol||(pi.Symbol={});yi(e,t)||vi(e,t,{value:hi.f(t)})},gi=R,mi=at,bi=pe,wi=oi,Si=function(){var t=mi("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=bi("toPrimitive");e&&!e[n]&&wi(e,n,(function(t){return gi(r,this)}),{arity:1})},Ei=tn,Oi=Xr?{}.toString:function(){return"[object "+Ei(this)+"]"},Ai=Xr,Ti=Je.f,ki=dr,xi=Qt,Pi=Oi,ji=pe("toStringTag"),Ci=function(t,e,r,n){if(t){var o=r?t:t.prototype;xi(o,ji)||Ti(o,ji,{configurable:!0,value:e}),n&&!Ai&&ki(o,"toString",Pi)}},_i=x,Ri=o.WeakMap,Li=_i(Ri)&&/native code/.test(String(Ri)),Ni=o,Ii=tt,Mi=dr,Fi=Qt,Di=Gt,Ki=ko,Ui=oo,qi="Object already initialized",Bi=Ni.TypeError,Hi=Ni.WeakMap;if(Li||Di.state){var Gi=Di.state||(Di.state=new Hi);Gi.get=Gi.get,Gi.has=Gi.has,Gi.set=Gi.set,si=function(t,e){if(Gi.has(t))throw Bi(qi);return e.facade=t,Gi.set(t,e),e},fi=function(t){return Gi.get(t)||{}},li=function(t){return Gi.has(t)}}else{var Yi=Ki("state");Ui[Yi]=!0,si=function(t,e){if(Fi(t,Yi))throw Bi(qi);return e.facade=t,Mi(t,Yi,e),e},fi=function(t){return Fi(t,Yi)?t[Yi]:{}},li=function(t){return Fi(t,Yi)}}var Vi={set:si,get:fi,has:li,enforce:function(t){return li(t)?fi(t):si(t,{})},getterFor:function(t){return function(e){var r;if(!Ii(e)||(r=fi(e)).type!==t)throw Bi("Incompatible receiver, "+t+" required");return r}}},Xi=$e,zi=G,Wi=Wt,$i=Kr,Ji=kn,Qi=d([].push),Zi=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var p,y,h=Wi(u),v=zi(h),d=Xi(s,f),g=$i(v),m=0,b=l||Ji,w=e?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((c||m in v)&&(y=d(p=v[m],m,h),t))if(e)w[m]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Qi(w,p)}else switch(t){case 4:return!1;case 7:Qi(w,p)}return i?-1:n||o?o:w}},ta={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},ea=Pr,ra=o,na=R,oa=d,ia=j,aa=bt,ca=i,ua=Qt,sa=ct,fa=rr,la=J,pa=Ee,ya=Xn,ha=K,va=Uo,da=ho,ga=qo,ma=Go,ba=ri,wa=P,Sa=Je,Ea=zn,Oa=L,Aa=oi,Ta=ai,ka=Vt,xa=oo,Pa=ne,ja=pe,Ca=ci,_a=di,Ra=Si,La=Ci,Na=Vi,Ia=ta.forEach,Ma=ko("hidden"),Fa="Symbol",Da="prototype",Ka=Na.set,Ua=Na.getterFor(Fa),qa=Object[Da],Ba=ra.Symbol,Ha=Ba&&Ba[Da],Ga=ra.TypeError,Ya=ra.QObject,Va=wa.f,Xa=Sa.f,za=ma.f,Wa=Oa.f,$a=oa([].push),Ja=ka("symbols"),Qa=ka("op-symbols"),Za=ka("wks"),tc=!Ya||!Ya[Da]||!Ya[Da].findChild,ec=ia&&ca((function(){return 7!=va(Xa({},"a",{get:function(){return Xa(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Va(qa,e);n&&delete qa[e],Xa(t,e,r),n&&t!==qa&&Xa(qa,e,n)}:Xa,rc=function(t,e){var r=Ja[t]=va(Ha);return Ka(r,{type:Fa,tag:t,description:e}),ia||(r.description=e),r},nc=function(t,e,r){t===qa&&nc(Qa,e,r),fa(t);var n=pa(e);return fa(r),ua(Ja,n)?(r.enumerable?(ua(t,Ma)&&t[Ma][n]&&(t[Ma][n]=!1),r=va(r,{enumerable:ha(0,!1)})):(ua(t,Ma)||Xa(t,Ma,ha(1,{})),t[Ma][n]=!0),ec(t,n,r)):Xa(t,n,r)},oc=function(t,e){fa(t);var r=la(e),n=da(r).concat(uc(r));return Ia(n,(function(e){ia&&!na(ic,r,e)||nc(t,e,r[e])})),t},ic=function(t){var e=pa(t),r=na(Wa,this,e);return!(this===qa&&ua(Ja,e)&&!ua(Qa,e))&&(!(r||!ua(this,e)||!ua(Ja,e)||ua(this,Ma)&&this[Ma][e])||r)},ac=function(t,e){var r=la(t),n=pa(e);if(r!==qa||!ua(Ja,n)||ua(Qa,n)){var o=Va(r,n);return!o||!ua(Ja,n)||ua(r,Ma)&&r[Ma][n]||(o.enumerable=!0),o}},cc=function(t){var e=za(la(t)),r=[];return Ia(e,(function(t){ua(Ja,t)||ua(xa,t)||$a(r,t)})),r},uc=function(t){var e=t===qa,r=za(e?Qa:la(t)),n=[];return Ia(r,(function(t){!ua(Ja,t)||e&&!ua(qa,t)||$a(n,Ja[t])})),n};aa||(Ba=function(){if(sa(Ha,this))throw Ga("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ya(arguments[0]):void 0,e=Pa(t),r=function(t){this===qa&&na(r,Qa,t),ua(this,Ma)&&ua(this[Ma],e)&&(this[Ma][e]=!1),ec(this,e,ha(1,t))};return ia&&tc&&ec(qa,e,{configurable:!0,set:r}),rc(e,t)},Aa(Ha=Ba[Da],"toString",(function(){return Ua(this).tag})),Aa(Ba,"withoutSetter",(function(t){return rc(Pa(t),t)})),Oa.f=ic,Sa.f=nc,Ea.f=oc,wa.f=ac,ga.f=ma.f=cc,ba.f=uc,Ca.f=function(t){return rc(ja(t),t)},ia&&Ta(Ha,"description",{configurable:!0,get:function(){return Ua(this).description}})),ea({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ba}),Ia(da(Za),(function(t){_a(t)})),ea({target:Fa,stat:!0,forced:!aa},{useSetter:function(){tc=!0},useSimple:function(){tc=!1}}),ea({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:function(t,e){return void 0===e?va(t):oc(va(t),e)},defineProperty:nc,defineProperties:oc,getOwnPropertyDescriptor:ac}),ea({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:cc}),Ra(),La(Ba,Fa),xa[Ma]=!0;var sc=bt&&!!Symbol.for&&!!Symbol.keyFor,fc=Pr,lc=at,pc=Qt,yc=Xn,hc=Vt,vc=sc,dc=hc("string-to-symbol-registry"),gc=hc("symbol-to-string-registry");fc({target:"Symbol",stat:!0,forced:!vc},{for:function(t){var e=yc(t);if(pc(dc,e))return dc[e];var r=lc("Symbol")(e);return dc[e]=r,gc[r]=e,r}});var mc=Pr,bc=Qt,wc=Tt,Sc=xt,Ec=sc,Oc=Vt("symbol-to-string-registry");mc({target:"Symbol",stat:!0,forced:!Ec},{keyFor:function(t){if(!wc(t))throw TypeError(Sc(t)+" is not a symbol");if(bc(Oc,t))return Oc[t]}});var Ac=d([].slice),Tc=Cr,kc=x,xc=w,Pc=Xn,jc=d([].push),Cc=Pr,_c=at,Rc=l,Lc=R,Nc=d,Ic=i,Mc=x,Fc=Tt,Dc=Ac,Kc=function(t){if(kc(t))return t;if(Tc(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?jc(r,o):"number"!=typeof o&&"Number"!=xc(o)&&"String"!=xc(o)||jc(r,Pc(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Tc(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},Uc=bt,qc=String,Bc=_c("JSON","stringify"),Hc=Nc(/./.exec),Gc=Nc("".charAt),Yc=Nc("".charCodeAt),Vc=Nc("".replace),Xc=Nc(1..toString),zc=/[\uD800-\uDFFF]/g,Wc=/^[\uD800-\uDBFF]$/,$c=/^[\uDC00-\uDFFF]$/,Jc=!Uc||Ic((function(){var t=_c("Symbol")();return"[null]"!=Bc([t])||"{}"!=Bc({a:t})||"{}"!=Bc(Object(t))})),Qc=Ic((function(){return'"\\udf06\\ud834"'!==Bc("\udf06\ud834")||'"\\udead"'!==Bc("\udead")})),Zc=function(t,e){var r=Dc(arguments),n=Kc(e);if(Mc(n)||void 0!==t&&!Fc(t))return r[1]=function(t,e){if(Mc(n)&&(e=Lc(n,this,qc(t),e)),!Fc(e))return e},Rc(Bc,null,r)},tu=function(t,e,r){var n=Gc(r,e-1),o=Gc(r,e+1);return Hc(Wc,t)&&!Hc($c,o)||Hc($c,t)&&!Hc(Wc,n)?"\\u"+Xc(Yc(t,0),16):t};Bc&&Cc({target:"JSON",stat:!0,arity:3,forced:Jc||Qc},{stringify:function(t,e,r){var n=Dc(arguments),o=Rc(Jc?Zc:Bc,null,n);return Qc&&"string"==typeof o?Vc(o,zc,tu):o}});var eu=ri,ru=Wt;Pr({target:"Object",stat:!0,forced:!bt||i((function(){eu.f(1)}))},{getOwnPropertySymbols:function(t){var e=eu.f;return e?e(ru(t)):[]}}),di("asyncIterator"),di("hasInstance"),di("isConcatSpreadable"),di("iterator"),di("match"),di("matchAll"),di("replace"),di("search"),di("species"),di("split");var nu=Si;di("toPrimitive"),nu();var ou=at,iu=Ci;di("toStringTag"),iu(ou("Symbol"),"Symbol"),di("unscopables"),Ci(o.JSON,"JSON",!0);var au,cu,uu,su=et.Symbol,fu={},lu=j,pu=Qt,yu=Function.prototype,hu=lu&&Object.getOwnPropertyDescriptor,vu=pu(yu,"name"),du={EXISTS:vu,PROPER:vu&&"something"===function(){}.name,CONFIGURABLE:vu&&(!lu||lu&&hu(yu,"name").configurable)},gu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),mu=Qt,bu=x,wu=Wt,Su=gu,Eu=ko("IE_PROTO"),Ou=Object,Au=Ou.prototype,Tu=Su?Ou.getPrototypeOf:function(t){var e=wu(t);if(mu(e,Eu))return e[Eu];var r=e.constructor;return bu(r)&&e instanceof r?r.prototype:e instanceof Ou?Au:null},ku=i,xu=x,Pu=tt,ju=Uo,Cu=Tu,_u=oi,Ru=pe("iterator"),Lu=!1;[].keys&&("next"in(uu=[].keys())?(cu=Cu(Cu(uu)))!==Object.prototype&&(au=cu):Lu=!0);var Nu=!Pu(au)||ku((function(){var t={};return au[Ru].call(t)!==t}));xu((au=Nu?{}:ju(au))[Ru])||_u(au,Ru,(function(){return this}));var Iu={IteratorPrototype:au,BUGGY_SAFARI_ITERATORS:Lu},Mu=Iu.IteratorPrototype,Fu=Uo,Du=K,Ku=Ci,Uu=fu,qu=function(){return this},Bu=d,Hu=_t,Gu=x,Yu=String,Vu=TypeError,Xu=function(t,e,r){try{return Bu(Hu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(n){}},zu=rr,Wu=function(t){if("object"==typeof t||Gu(t))return t;throw Vu("Can't set "+Yu(t)+" as a prototype")},$u=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Xu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return zu(r),Wu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ju=Pr,Qu=R,Zu=du,ts=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Fu(Mu,{next:Du(+!n,r)}),Ku(t,o,!1,!0),Uu[o]=qu,t},es=Tu,rs=Ci,ns=oi,os=fu,is=Iu,as=Zu.PROPER,cs=is.BUGGY_SAFARI_ITERATORS,us=pe("iterator"),ss="keys",fs="values",ls="entries",ps=function(){return this},ys=function(t,e,r,n,o,i,a){ts(r,e,n);var c,u,s,f=function(t){if(t===o&&v)return v;if(!cs&&t in y)return y[t];switch(t){case ss:case fs:case ls:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,y=t.prototype,h=y[us]||y["@@iterator"]||o&&y[o],v=!cs&&h||f(o),d="Array"==e&&y.entries||h;if(d&&(c=es(d.call(new t)))!==Object.prototype&&c.next&&(rs(c,l,!0,!0),os[l]=ps),as&&o==fs&&h&&h.name!==fs&&(p=!0,v=function(){return Qu(h,this)}),o)if(u={values:f(fs),keys:i?v:f(ss),entries:f(ls)},a)for(s in u)(cs||p||!(s in y))&&ns(y,s,u[s]);else Ju({target:e,proto:!0,forced:cs||p},u);return a&&y[us]!==v&&ns(y,us,v,{name:o}),os[e]=v,u},hs=function(t,e){return{value:t,done:e}},vs=J,ds=fu,gs=Vi;Je.f;var ms=ys,bs=hs,ws="Array Iterator",Ss=gs.set,Es=gs.getterFor(ws);ms(Array,"Array",(function(t,e){Ss(this,{type:ws,target:vs(t),index:0,kind:e})}),(function(){var t=Es(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,bs(void 0,!0)):bs("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),ds.Arguments=ds.Array;var Os={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},As=o,Ts=tn,ks=dr,xs=fu,Ps=pe("toStringTag");for(var js in Os){var Cs=As[js],_s=Cs&&Cs.prototype;_s&&Ts(_s)!==Ps&&ks(_s,Ps,js),xs[js]=xs.Array}var Rs=su;di("dispose");var Ls=Rs;di("asyncDispose");var Ns=Pr,Is=d,Ms=at("Symbol"),Fs=Ms.keyFor,Ds=Is(Ms.prototype.valueOf);Ns({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Fs(Ds(t))}catch(e){return!1}}});for(var Ks=Pr,Us=Vt,qs=at,Bs=d,Hs=Tt,Gs=pe,Ys=qs("Symbol"),Vs=Ys.isWellKnown,Xs=qs("Object","getOwnPropertyNames"),zs=Bs(Ys.prototype.valueOf),Ws=Us("wks"),$s=0,Js=Xs(Ys),Qs=Js.length;$s<Qs;$s++)try{var Zs=Js[$s];Hs(Ys[Zs])&&Gs(Zs)}catch(zE){}Ks({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Vs&&Vs(t))return!0;try{for(var e=zs(t),r=0,n=Xs(Ws),o=n.length;r<o;r++)if(Ws[n[r]]==e)return!0}catch(zE){}return!1}}),di("matcher"),di("metadataKey"),di("observable"),di("metadata"),di("patternMatch"),di("replaceAll");var tf=Ls,ef=r(tf),rf=d,nf=Nr,of=Xn,af=z,cf=rf("".charAt),uf=rf("".charCodeAt),sf=rf("".slice),ff=function(t){return function(e,r){var n,o,i=of(af(e)),a=nf(r),c=i.length;return a<0||a>=c?t?"":void 0:(n=uf(i,a))<55296||n>56319||a+1===c||(o=uf(i,a+1))<56320||o>57343?t?cf(i,a):n:t?sf(i,a,a+2):o-56320+(n-55296<<10)+65536}},lf={codeAt:ff(!1),charAt:ff(!0)}.charAt,pf=Xn,yf=Vi,hf=ys,vf=hs,df="String Iterator",gf=yf.set,mf=yf.getterFor(df);hf(String,"String",(function(t){gf(this,{type:df,string:pf(t),index:0})}),(function(){var t,e=mf(this),r=e.string,n=e.index;return n>=r.length?vf(void 0,!0):(t=lf(r,n),e.index+=t.length,vf(t,!1))}));var bf=ci.f("iterator"),wf=r(bf);function Sf(t){return(Sf="function"==typeof ef&&"symbol"==typeof wf?function(t){return typeof t}:function(t){return t&&"function"==typeof ef&&t.constructor===ef&&t!==ef.prototype?"symbol":typeof t})(t)}var Ef={exports:{}},Of=Pr,Af=j,Tf=Je.f;Of({target:"Object",stat:!0,forced:Object.defineProperty!==Tf,sham:!Af},{defineProperty:Tf});var kf=et.Object,xf=Ef.exports=function(t,e,r){return kf.defineProperty(t,e,r)};kf.defineProperty.sham&&(xf.sham=!0);var Pf=Ef.exports,jf=r(Pf);Pr({target:"Object",stat:!0,sham:!j},{create:Uo});var Cf=et.Object,_f=r((function(t,e){return Cf.create(t,e)})),Rf=Wt,Lf=Tu,Nf=gu;Pr({target:"Object",stat:!0,forced:i((function(){Lf(1)})),sham:!Nf},{getPrototypeOf:function(t){return Lf(Rf(t))}});var If=r(et.Object.getPrototypeOf),Mf=i,Ff=function(t,e){var r=[][t];return!!r&&Mf((function(){r.call(null,e||function(){return 1},1)}))},Df=ta.forEach,Kf=Ff("forEach")?[].forEach:function(t){return Df(this,t,arguments.length>1?arguments[1]:void 0)};Pr({target:"Array",proto:!0,forced:[].forEach!=Kf},{forEach:Kf});var Uf=et,qf=function(t){return Uf[t+"Prototype"]},Bf=qf("Array").forEach,Hf=tn,Gf=Qt,Yf=ct,Vf=Bf,Xf=Array.prototype,zf={DOMTokenList:!0,NodeList:!0},Wf=function(t){var e=t.forEach;return t===Xf||Yf(Xf,t)&&e===Xf.forEach||Gf(zf,Hf(t))?Vf:e},$f=r(Wf),Jf=j,Qf=Cr,Zf=TypeError,tl=Object.getOwnPropertyDescriptor,el=Jf&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(zE){return zE instanceof TypeError}}()?function(t,e){if(Qf(t)&&!tl(t,"length").writable)throw Zf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rl=Wt,nl=Kr,ol=el,il=qr;Pr({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(zE){return zE instanceof TypeError}}()},{push:function(t){var e=rl(this),r=nl(e),n=arguments.length;il(r+n);for(var o=0;o<n;o++)e[r]=arguments[o],r++;return ol(e,r),r}});var al=qf("Array").push,cl=ct,ul=al,sl=Array.prototype,fl=r((function(t){var e=t.push;return t===sl||cl(sl,t)&&e===sl.push?ul:e}));Pr({target:"Object",stat:!0},{setPrototypeOf:$u});var ll=r(et.Object.setPrototypeOf),pl=at,yl=qo,hl=ri,vl=rr,dl=d([].concat),gl=pl("Reflect","ownKeys")||function(t){var e=yl.f(vl(t)),r=hl.f;return r?dl(e,r(t)):e},ml=Qt,bl=gl,wl=P,Sl=Je,El=tt,Ol=dr,Al=Error,Tl=d("".replace),kl=String(Al("zxcasd").stack),xl=/\n\s*at [^:]*:[^\n]*/,Pl=xl.test(kl),jl=K,Cl=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",jl(1,7)),7!==t.stack)})),_l=dr,Rl=function(t,e){if(Pl&&"string"==typeof t&&!Al.prepareStackTrace)for(;e--;)t=Tl(t,xl,"");return t},Ll=Cl,Nl=Error.captureStackTrace,Il=fu,Ml=pe("iterator"),Fl=Array.prototype,Dl=function(t){return void 0!==t&&(Il.Array===t||Fl[Ml]===t)},Kl=tn,Ul=Nt,ql=Y,Bl=fu,Hl=pe("iterator"),Gl=function(t){if(!ql(t))return Ul(t,Hl)||Ul(t,"@@iterator")||Bl[Kl(t)]},Yl=R,Vl=_t,Xl=rr,zl=xt,Wl=Gl,$l=TypeError,Jl=function(t,e){var r=arguments.length<2?Wl(t):e;if(Vl(r))return Xl(Yl(r,t));throw $l(zl(t)+" is not iterable")},Ql=R,Zl=rr,tp=Nt,ep=function(t,e,r){var n,o;Zl(t);try{if(!(n=tp(t,"return"))){if("throw"===e)throw r;return r}n=Ql(n,t)}catch(zE){o=!0,n=zE}if("throw"===e)throw r;if(o)throw n;return Zl(n),r},rp=$e,np=R,op=rr,ip=xt,ap=Dl,cp=Kr,up=ct,sp=Jl,fp=Gl,lp=ep,pp=TypeError,yp=function(t,e){this.stopped=t,this.result=e},hp=yp.prototype,vp=function(t,e,r){var n,o,i,a,c,u,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),y=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=rp(e,f),d=function(t){return n&&lp(n,"normal",t),new yp(!0,t)},g=function(t){return l?(op(t),h?v(t[0],t[1],d):v(t[0],t[1])):h?v(t,d):v(t)};if(p)n=t.iterator;else if(y)n=t;else{if(!(o=fp(t)))throw pp(ip(t)+" is not iterable");if(ap(o)){for(i=0,a=cp(t);a>i;i++)if((c=g(t[i]))&&up(hp,c))return c;return new yp(!1)}n=sp(t,o)}for(u=p?t.next:n.next;!(s=np(u,n)).done;){try{c=g(s.value)}catch(zE){lp(n,"throw",zE)}if("object"==typeof c&&c&&up(hp,c))return c}return new yp(!1)},dp=Xn,gp=Pr,mp=ct,bp=Tu,wp=$u,Sp=function(t,e,r){for(var n=bl(e),o=Sl.f,i=wl.f,a=0;a<n.length;a++){var c=n[a];ml(t,c)||r&&ml(r,c)||o(t,c,i(e,c))}},Ep=Uo,Op=dr,Ap=K,Tp=function(t,e){El(e)&&"cause"in e&&Ol(t,"cause",e.cause)},kp=function(t,e,r,n){Ll&&(Nl?Nl(t,e):_l(t,"stack",Rl(r,n)))},xp=vp,Pp=function(t,e){return void 0===t?arguments.length<2?"":e:dp(t)},jp=pe("toStringTag"),Cp=Error,_p=[].push,Rp=function(t,e){var r,n=mp(Lp,this);wp?r=wp(Cp(),n?bp(this):Lp):(r=n?this:Ep(Lp),Op(r,jp,"Error")),void 0!==e&&Op(r,"message",Pp(e)),kp(r,Rp,r.stack,1),arguments.length>2&&Tp(r,arguments[2]);var o=[];return xp(t,_p,{that:o}),Op(r,"errors",o),r};wp?wp(Rp,Cp):Sp(Rp,Cp,{name:!0});var Lp=Rp.prototype=Ep(Cp.prototype,{constructor:Ap(1,Rp),message:Ap(1,""),name:Ap(1,"AggregateError")});gp({global:!0,constructor:!0,arity:2},{AggregateError:Rp});var Np,Ip,Mp,Fp,Dp="undefined"!=typeof process&&"process"==w(process),Kp=at,Up=ai,qp=j,Bp=pe("species"),Hp=ct,Gp=TypeError,Yp=bn,Vp=xt,Xp=TypeError,zp=function(t){if(Yp(t))return t;throw Xp(Vp(t)+" is not a constructor")},Wp=rr,$p=zp,Jp=Y,Qp=pe("species"),Zp=function(t,e){var r,n=Wp(t).constructor;return void 0===n||Jp(r=Wp(n)[Qp])?e:$p(r)},ty=TypeError,ey=function(t,e){if(t<e)throw ty("Not enough arguments");return t},ry=/(?:ipad|iphone|ipod).*applewebkit/i.test(ut),ny=o,oy=l,iy=$e,ay=x,cy=Qt,uy=i,sy=Oo,fy=Ac,ly=ke,py=ey,yy=ry,hy=Dp,vy=ny.setImmediate,dy=ny.clearImmediate,gy=ny.process,my=ny.Dispatch,by=ny.Function,wy=ny.MessageChannel,Sy=ny.String,Ey=0,Oy={},Ay="onreadystatechange";uy((function(){Np=ny.location}));var Ty=function(t){if(cy(Oy,t)){var e=Oy[t];delete Oy[t],e()}},ky=function(t){return function(){Ty(t)}},xy=function(t){Ty(t.data)},Py=function(t){ny.postMessage(Sy(t),Np.protocol+"//"+Np.host)};vy&&dy||(vy=function(t){py(arguments.length,1);var e=ay(t)?t:by(t),r=fy(arguments,1);return Oy[++Ey]=function(){oy(e,void 0,r)},Ip(Ey),Ey},dy=function(t){delete Oy[t]},hy?Ip=function(t){gy.nextTick(ky(t))}:my&&my.now?Ip=function(t){my.now(ky(t))}:wy&&!yy?(Fp=(Mp=new wy).port2,Mp.port1.onmessage=xy,Ip=iy(Fp.postMessage,Fp)):ny.addEventListener&&ay(ny.postMessage)&&!ny.importScripts&&Np&&"file:"!==Np.protocol&&!uy(Py)?(Ip=Py,ny.addEventListener("message",xy,!1)):Ip=Ay in ly("script")?function(t){sy.appendChild(ly("script"))[Ay]=function(){sy.removeChild(this),Ty(t)}}:function(t){setTimeout(ky(t),0)});var jy={set:vy,clear:dy},Cy=function(){this.head=null,this.tail=null};Cy.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var _y,Ry,Ly,Ny,Iy,My=Cy,Fy=/ipad|iphone|ipod/i.test(ut)&&"undefined"!=typeof Pebble,Dy=/web0s(?!.*chrome)/i.test(ut),Ky=o,Uy=$e,qy=P.f,By=jy.set,Hy=My,Gy=ry,Yy=Fy,Vy=Dy,Xy=Dp,zy=Ky.MutationObserver||Ky.WebKitMutationObserver,Wy=Ky.document,$y=Ky.process,Jy=Ky.Promise,Qy=qy(Ky,"queueMicrotask"),Zy=Qy&&Qy.value;if(!Zy){var th=new Hy,eh=function(){var t,e;for(Xy&&(t=$y.domain)&&t.exit();e=th.get();)try{e()}catch(zE){throw th.head&&_y(),zE}t&&t.enter()};Gy||Xy||Vy||!zy||!Wy?!Yy&&Jy&&Jy.resolve?((Ny=Jy.resolve(void 0)).constructor=Jy,Iy=Uy(Ny.then,Ny),_y=function(){Iy(eh)}):Xy?_y=function(){$y.nextTick(eh)}:(By=Uy(By,Ky),_y=function(){By(eh)}):(Ry=!0,Ly=Wy.createTextNode(""),new zy(eh).observe(Ly,{characterData:!0}),_y=function(){Ly.data=Ry=!Ry}),Zy=function(t){th.head||_y(),th.add(t)}}var rh=Zy,nh=function(t){try{return{error:!1,value:t()}}catch(zE){return{error:!0,value:zE}}},oh=o.Promise,ih="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ah=!ih&&!Dp&&"object"==typeof window&&"object"==typeof document,ch=o,uh=oh,sh=x,fh=Ve,lh=on,ph=pe,yh=ah,hh=ih,vh=vt,dh=uh&&uh.prototype,gh=ph("species"),mh=!1,bh=sh(ch.PromiseRejectionEvent),wh={CONSTRUCTOR:fh("Promise",(function(){var t=lh(uh),e=t!==String(uh);if(!e&&66===vh)return!0;if(!dh.catch||!dh.finally)return!0;if(!vh||vh<51||!/native code/.test(t)){var r=new uh((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[gh]=n,!(mh=r.then((function(){}))instanceof n))return!0}return!e&&(yh||hh)&&!bh})),REJECTION_EVENT:bh,SUBCLASSING:mh},Sh={},Eh=_t,Oh=TypeError,Ah=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw Oh("Bad Promise constructor");e=t,r=n})),this.resolve=Eh(e),this.reject=Eh(r)};Sh.f=function(t){return new Ah(t)};var Th,kh,xh=Pr,Ph=Dp,jh=o,Ch=R,_h=oi,Rh=Ci,Lh=function(t){var e=Kp(t);qp&&e&&!e[Bp]&&Up(e,Bp,{configurable:!0,get:function(){return this}})},Nh=_t,Ih=x,Mh=tt,Fh=function(t,e){if(Hp(e,t))return t;throw Gp("Incorrect invocation")},Dh=Zp,Kh=jy.set,Uh=rh,qh=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(zE){}},Bh=nh,Hh=My,Gh=Vi,Yh=oh,Vh=wh,Xh=Sh,zh="Promise",Wh=Vh.CONSTRUCTOR,$h=Vh.REJECTION_EVENT,Jh=Gh.getterFor(zh),Qh=Gh.set,Zh=Yh&&Yh.prototype,tv=Yh,ev=Zh,rv=jh.TypeError,nv=jh.document,ov=jh.process,iv=Xh.f,av=iv,cv=!!(nv&&nv.createEvent&&jh.dispatchEvent),uv="unhandledrejection",sv=function(t){var e;return!(!Mh(t)||!Ih(e=t.then))&&e},fv=function(t,e){var r,n,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&vv(e),e.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(rv("Promise-chain cycle")):(n=sv(r))?Ch(n,r,u,s):u(r)):s(i)}catch(zE){f&&!o&&f.exit(),s(zE)}},lv=function(t,e){t.notified||(t.notified=!0,Uh((function(){for(var r,n=t.reactions;r=n.get();)fv(r,t);t.notified=!1,e&&!t.rejection&&yv(t)})))},pv=function(t,e,r){var n,o;cv?((n=nv.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),jh.dispatchEvent(n)):n={promise:e,reason:r},!$h&&(o=jh["on"+t])?o(n):t===uv&&qh("Unhandled promise rejection",r)},yv=function(t){Ch(Kh,jh,(function(){var e,r=t.facade,n=t.value;if(hv(t)&&(e=Bh((function(){Ph?ov.emit("unhandledRejection",n,r):pv(uv,r,n)})),t.rejection=Ph||hv(t)?2:1,e.error))throw e.value}))},hv=function(t){return 1!==t.rejection&&!t.parent},vv=function(t){Ch(Kh,jh,(function(){var e=t.facade;Ph?ov.emit("rejectionHandled",e):pv("rejectionhandled",e,t.value)}))},dv=function(t,e,r){return function(n){t(e,n,r)}},gv=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,lv(t,!0))},mv=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw rv("Promise can't be resolved itself");var n=sv(e);n?Uh((function(){var r={done:!1};try{Ch(n,e,dv(mv,r,t),dv(gv,r,t))}catch(zE){gv(r,zE,t)}})):(t.value=e,t.state=1,lv(t,!1))}catch(zE){gv({done:!1},zE,t)}}};Wh&&(ev=(tv=function(t){Fh(this,ev),Nh(t),Ch(Th,this);var e=Jh(this);try{t(dv(mv,e),dv(gv,e))}catch(zE){gv(e,zE)}}).prototype,(Th=function(t){Qh(this,{type:zh,done:!1,notified:!1,parent:!1,reactions:new Hh,rejection:!1,state:0,value:void 0})}).prototype=_h(ev,"then",(function(t,e){var r=Jh(this),n=iv(Dh(this,tv));return r.parent=!0,n.ok=!Ih(t)||t,n.fail=Ih(e)&&e,n.domain=Ph?ov.domain:void 0,0==r.state?r.reactions.add(n):Uh((function(){fv(n,r)})),n.promise})),kh=function(){var t=new Th,e=Jh(t);this.promise=t,this.resolve=dv(mv,e),this.reject=dv(gv,e)},Xh.f=iv=function(t){return t===tv||undefined===t?new kh(t):av(t)}),xh({global:!0,constructor:!0,wrap:!0,forced:Wh},{Promise:tv}),Rh(tv,zh,!1,!0),Lh(zh);var bv=pe("iterator"),wv=!1;try{var Sv=0,Ev={next:function(){return{done:!!Sv++}},return:function(){wv=!0}};Ev[bv]=function(){return this},Array.from(Ev,(function(){throw 2}))}catch(zE){}var Ov=function(t,e){if(!e&&!wv)return!1;var r=!1;try{var n={};n[bv]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(zE){}return r},Av=oh,Tv=wh.CONSTRUCTOR||!Ov((function(t){Av.all(t).then(void 0,(function(){}))})),kv=R,xv=_t,Pv=Sh,jv=nh,Cv=vp;Pr({target:"Promise",stat:!0,forced:Tv},{all:function(t){var e=this,r=Pv.f(e),n=r.resolve,o=r.reject,i=jv((function(){var r=xv(e.resolve),i=[],a=0,c=1;Cv(t,(function(t){var u=a++,s=!1;c++,kv(r,e,t).then((function(t){s||(s=!0,i[u]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise}});var _v=Pr,Rv=wh.CONSTRUCTOR;oh&&oh.prototype,_v({target:"Promise",proto:!0,forced:Rv,real:!0},{catch:function(t){return this.then(void 0,t)}});var Lv=R,Nv=_t,Iv=Sh,Mv=nh,Fv=vp;Pr({target:"Promise",stat:!0,forced:Tv},{race:function(t){var e=this,r=Iv.f(e),n=r.reject,o=Mv((function(){var o=Nv(e.resolve);Fv(t,(function(t){Lv(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Dv=R,Kv=Sh;Pr({target:"Promise",stat:!0,forced:wh.CONSTRUCTOR},{reject:function(t){var e=Kv.f(this);return Dv(e.reject,void 0,t),e.promise}});var Uv=rr,qv=tt,Bv=Sh,Hv=function(t,e){if(Uv(t),qv(e)&&e.constructor===t)return e;var r=Bv.f(t);return(0,r.resolve)(e),r.promise},Gv=Pr,Yv=oh,Vv=wh.CONSTRUCTOR,Xv=Hv,zv=at("Promise"),Wv=!Vv;Gv({target:"Promise",stat:!0,forced:true},{resolve:function(t){return Xv(Wv&&this===zv?Yv:this,t)}});var $v=R,Jv=_t,Qv=Sh,Zv=nh,td=vp;Pr({target:"Promise",stat:!0,forced:Tv},{allSettled:function(t){var e=this,r=Qv.f(e),n=r.resolve,o=r.reject,i=Zv((function(){var r=Jv(e.resolve),o=[],i=0,a=1;td(t,(function(t){var c=i++,u=!1;a++,$v(r,e,t).then((function(t){u||(u=!0,o[c]={status:"fulfilled",value:t},--a||n(o))}),(function(t){u||(u=!0,o[c]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var ed=R,rd=_t,nd=at,od=Sh,id=nh,ad=vp,cd="No one promise resolved";Pr({target:"Promise",stat:!0,forced:Tv},{any:function(t){var e=this,r=nd("AggregateError"),n=od.f(e),o=n.resolve,i=n.reject,a=id((function(){var n=rd(e.resolve),a=[],c=0,u=1,s=!1;ad(t,(function(t){var f=c++,l=!1;u++,ed(n,e,t).then((function(t){l||s||(s=!0,o(t))}),(function(t){l||s||(l=!0,a[f]=t,--u||i(new r(a,cd)))}))})),--u||i(new r(a,cd))}));return a.error&&i(a.value),n.promise}});var ud=Pr,sd=oh,fd=i,ld=at,pd=x,yd=Zp,hd=Hv,vd=sd&&sd.prototype;ud({target:"Promise",proto:!0,real:!0,forced:!!sd&&fd((function(){vd.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=yd(this,ld("Promise")),r=pd(t);return this.then(r?function(r){return hd(e,t()).then((function(){return r}))}:t,r?function(r){return hd(e,t()).then((function(){throw r}))}:t)}});var dd=et.Promise,gd=Sh,md=nh;Pr({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=gd.f(this),r=md(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var bd=dd,wd=r(bd),Sd=Pr,Ed=Cr,Od=d([].reverse),Ad=[1,2];Sd({target:"Array",proto:!0,forced:String(Ad)===String(Ad.reverse())},{reverse:function(){return Ed(this)&&(this.length=this.length),Od(this)}});var Td=qf("Array").reverse,kd=ct,xd=Td,Pd=Array.prototype,jd=r((function(t){var e=t.reverse;return t===Pd||kd(Pd,t)&&e===Pd.reverse?xd:e})),Cd=Pr,_d=Cr,Rd=bn,Ld=tt,Nd=Qn,Id=Kr,Md=J,Fd=Yr,Dd=pe,Kd=Ac,Ud=Cn("slice"),qd=Dd("species"),Bd=Array,Hd=Math.max;Cd({target:"Array",proto:!0,forced:!Ud},{slice:function(t,e){var r,n,o,i=Md(this),a=Id(i),c=Nd(t,a),u=Nd(void 0===e?a:e,a);if(_d(i)&&(r=i.constructor,(Rd(r)&&(r===Bd||_d(r.prototype))||Ld(r)&&null===(r=r[qd]))&&(r=void 0),r===Bd||void 0===r))return Kd(i,c,u);for(n=new(void 0===r?Bd:r)(Hd(u-c,0)),o=0;c<u;c++,o++)c in i&&Fd(n,o,i[c]);return n.length=o,n}});var Gd=qf("Array").slice,Yd=ct,Vd=Gd,Xd=Array.prototype,zd=function(t){var e=t.slice;return t===Xd||Yd(Xd,t)&&e===Xd.slice?Vd:e},Wd=r(zd);function $d(){$d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=jf||function(t,e,r){t[e]=r.value},o="function"==typeof ef?ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return jf(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(x){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=_f(i.prototype),c=new A(o||[]);return n(a,"_invoke",{value:w(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(x){return{type:"throw",arg:x}}}t.wrap=s;var l={};function p(){}function y(){}function h(){}var v={};u(v,i,(function(){return this}));var d=If&&If(If(T([])));d&&d!==e&&r.call(d,i)&&(v=d);var g=h.prototype=p.prototype=_f(v);function m(t){var e;$f(e=["next","throw","return"]).call(e,(function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(n,i,a,c){var u=f(t[n],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==Sf(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function w(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===l)continue;return c}}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=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),l;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,l;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e,r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),fl(e=this.tryEntries).call(e,r)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],$f(t).call(t,E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return y.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:y,configurable:!0}),y.displayName=u(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return ll?ll(t,h):(t.__proto__=h,u(t,c,"GeneratorFunction")),t.prototype=_f(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=wd);var a=new b(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)fl(r).call(r,n);return jd(r).call(r),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=T,A.prototype={constructor:A,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,$f(e=this.tryEntries).call(e,O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Wd(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.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 c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Jd(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(zE){return void r(zE)}c.done?e(u):wd.resolve(u).then(n,o)}function Qd(t){return function(){var e=this,r=arguments;return new wd((function(n,o){var i=t.apply(e,r);function a(t){Jd(i,n,o,a,c,"next",t)}function c(t){Jd(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Zd=ci.f("toPrimitive"),tg=r(Zd);function eg(t){var e=function(t,e){if("object"!==Sf(t)||null===t)return t;var r=t[tg];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sf(e)?e:String(e)}function rg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),jf(t,eg(n.key),n)}}var ng=d,og=_t,ig=tt,ag=Qt,cg=Ac,ug=a,sg=Function,fg=ng([].concat),lg=ng([].join),pg={},yg=ug?sg.bind:function(t){var e=og(this),r=e.prototype,n=cg(arguments,1),o=function(){var r=fg(n,cg(arguments));return this instanceof o?function(t,e,r){if(!ag(pg,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";pg[e]=sg("C,a","return new C("+lg(n,",")+")")}return pg[e](t,r)}(e,r.length,r):e.apply(t,r)};return ig(r)&&(o.prototype=r),o},hg=yg;Pr({target:"Function",proto:!0,forced:Function.bind!==hg},{bind:hg});var vg=qf("Function").bind,dg=ct,gg=vg,mg=Function.prototype,bg=function(t){var e=t.bind;return t===mg||dg(mg,t)&&e===mg.bind?gg:e},wg=r(bg);function Sg(t,e){var r;return(Sg=ll?wg(r=ll).call(r):function(t,e){return t.__proto__=e,t})(t,e)}var Eg=Pr,Og=l,Ag=yg,Tg=zp,kg=rr,xg=tt,Pg=Uo,jg=i,Cg=at("Reflect","construct"),_g=Object.prototype,Rg=[].push,Lg=jg((function(){function t(){}return!(Cg((function(){}),[],t)instanceof t)})),Ng=!jg((function(){Cg((function(){}))})),Ig=Lg||Ng;Eg({target:"Reflect",stat:!0,forced:Ig,sham:Ig},{construct:function(t,e){Tg(t),kg(e);var r=arguments.length<3?t:Tg(arguments[2]);if(Ng&&!Lg)return Cg(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return Og(Rg,n,e),new(Og(Ag,t,n))}var o=r.prototype,i=Pg(xg(o)?o:_g),a=Og(t,i,e);return xg(a)?a:i}});var Mg=r(et.Reflect.construct);function Fg(t){var e;return(Fg=ll?wg(e=If).call(e):function(t){return t.__proto__||If(t)})(t)}function Dg(t,e){if(e&&("object"===Sf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Kg(t){var e=function(){if("undefined"==typeof Reflect||!Mg)return!1;if(Mg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Mg(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Fg(t);if(e){var o=Fg(this).constructor;r=Mg(n,arguments,o)}else r=n.apply(this,arguments);return Dg(this,r)}}var Ug=qf("Array").concat,qg=ct,Bg=Ug,Hg=Array.prototype,Gg=r((function(t){var e=t.concat;return t===Hg||qg(Hg,t)&&e===Hg.concat?Bg:e})),Yg=j,Vg=d,Xg=R,zg=i,Wg=ho,$g=ri,Jg=L,Qg=Wt,Zg=G,tm=Object.assign,em=Object.defineProperty,rm=Vg([].concat),nm=!tm||zg((function(){if(Yg&&1!==tm({b:1},tm(em({},"a",{enumerable:!0,get:function(){em(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=tm({},t)[r]||Wg(tm({},e)).join("")!=n}))?function(t,e){for(var r=Qg(t),n=arguments.length,o=1,i=$g.f,a=Jg.f;n>o;)for(var c,u=Zg(arguments[o++]),s=i?rm(Wg(u),i(u)):Wg(u),f=s.length,l=0;f>l;)c=s[l++],Yg&&!Xg(a,u,c)||(r[c]=u[c]);return r}:tm,om=nm;Pr({target:"Object",stat:!0,arity:2,forced:Object.assign!==om},{assign:om});var im=r(et.Object.assign),am=o;Pr({global:!0,forced:am.globalThis!==am},{globalThis:am});var cm=r(o),um=Pr,sm=no.indexOf,fm=Ff,lm=O([].indexOf),pm=!!lm&&1/lm([1],1,-0)<0;um({target:"Array",proto:!0,forced:pm||!fm("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return pm?lm(this,t,e)||0:sm(this,t,e)}});var ym=qf("Array").indexOf,hm=ct,vm=ym,dm=Array.prototype,gm=r((function(t){var e=t.indexOf;return t===dm||hm(dm,t)&&e===dm.indexOf?vm:e}));Pr({target:"Array",stat:!0},{isArray:Cr});var mm=r(et.Array.isArray),bm=r(Wf),wm=Wt,Sm=ho;Pr({target:"Object",stat:!0,forced:i((function(){Sm(1)}))},{keys:function(t){return Sm(wm(t))}});var Em=r(et.Object.keys),Om=r(zd),Am=xt,Tm=TypeError,km=function(t,e){if(!delete t[e])throw Tm("Cannot delete property "+Am(e)+" of "+Am(t))},xm=Pr,Pm=Wt,jm=Qn,Cm=Nr,_m=Kr,Rm=el,Lm=qr,Nm=kn,Im=Yr,Mm=km,Fm=Cn("splice"),Dm=Math.max,Km=Math.min;xm({target:"Array",proto:!0,forced:!Fm},{splice:function(t,e){var r,n,o,i,a,c,u=Pm(this),s=_m(u),f=jm(t,s),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=s-f):(r=l-2,n=Km(Dm(Cm(e),0),s-f)),Lm(s+r-n),o=Nm(u,n),i=0;i<n;i++)(a=f+i)in u&&Im(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<s-n;i++)c=i+r,(a=i+n)in u?u[c]=u[a]:Mm(u,c);for(i=s;i>s-n+r;i--)Mm(u,i-1)}else if(r>n)for(i=s-n;i>f;i--)c=i+r-1,(a=i+n-1)in u?u[c]=u[a]:Mm(u,c);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return Rm(u,s-n+r),o}});var Um=qf("Array").splice,qm=ct,Bm=Um,Hm=Array.prototype,Gm=r((function(t){var e=t.splice;return t===Hm||qm(Hm,t)&&e===Hm.splice?Bm:e})),Ym=r(bd),Vm="\t\n\v\f\r \u2028\u2029\ufeff",Xm=z,zm=Xn,Wm=Vm,$m=d("".replace),Jm=RegExp("^["+Wm+"]+"),Qm=RegExp("(^|[^"+Wm+"])["+Wm+"]+$"),Zm=function(t){return function(e){var r=zm(Xm(e));return 1&t&&(r=$m(r,Jm,"")),2&t&&(r=$m(r,Qm,"$1")),r}},tb={start:Zm(1),end:Zm(2),trim:Zm(3)},eb=o,rb=i,nb=d,ob=Xn,ib=tb.trim,ab=Vm,cb=eb.parseInt,ub=eb.Symbol,sb=ub&&ub.iterator,fb=/^[+-]?0x/i,lb=nb(fb.exec),pb=8!==cb(ab+"08")||22!==cb(ab+"0x16")||sb&&!rb((function(){cb(Object(sb))}))?function(t,e){var r=ib(ob(t));return cb(r,e>>>0||(lb(fb,r)?16:10))}:cb;Pr({global:!0,forced:parseInt!=pb},{parseInt:pb});var yb=r(et.parseInt),hb=ta.map;Pr({target:"Array",proto:!0,forced:!Cn("map")},{map:function(t){return hb(this,t,arguments.length>1?arguments[1]:void 0)}});var vb=qf("Array").map,db=ct,gb=vb,mb=Array.prototype,bb=r((function(t){var e=t.map;return t===mb||db(mb,t)&&e===mb.map?gb:e})),wb=ta.filter;Pr({target:"Array",proto:!0,forced:!Cn("filter")},{filter:function(t){return wb(this,t,arguments.length>1?arguments[1]:void 0)}});var Sb=qf("Array").filter,Eb=ct,Ob=Sb,Ab=Array.prototype,Tb=r((function(t){var e=t.filter;return t===Ab||Eb(Ab,t)&&e===Ab.filter?Ob:e})),kb=r(tf),xb=r(Gl),Pb=r(et.Object.getOwnPropertySymbols),jb={exports:{}},Cb=Pr,_b=i,Rb=J,Lb=P.f,Nb=j;Cb({target:"Object",stat:!0,forced:!Nb||_b((function(){Lb(1)})),sham:!Nb},{getOwnPropertyDescriptor:function(t,e){return Lb(Rb(t),e)}});var Ib=et.Object,Mb=jb.exports=function(t,e){return Ib.getOwnPropertyDescriptor(t,e)};Ib.getOwnPropertyDescriptor.sham&&(Mb.sham=!0);var Fb=r(jb.exports),Db=gl,Kb=J,Ub=P,qb=Yr;Pr({target:"Object",stat:!0,sham:!j},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Kb(t),o=Ub.f,i=Db(n),a={},c=0;i.length>c;)void 0!==(r=o(n,e=i[c++]))&&qb(a,e,r);return a}});var Bb=r(et.Object.getOwnPropertyDescriptors),Hb={exports:{}},Gb=Pr,Yb=j,Vb=zn.f;Gb({target:"Object",stat:!0,forced:Object.defineProperties!==Vb,sham:!Yb},{defineProperties:Vb});var Xb=et.Object,zb=Hb.exports=function(t,e){return Xb.defineProperties(t,e)};Xb.defineProperties.sham&&(zb.sham=!0);var Wb=r(Hb.exports),$b=r(Pf),Jb=r(bf),Qb=r(bg),Zb=rr,tw=ep,ew=$e,rw=R,nw=Wt,ow=function(t,e,r,n){try{return n?e(Zb(r)[0],r[1]):e(r)}catch(zE){tw(t,"throw",zE)}},iw=Dl,aw=bn,cw=Kr,uw=Yr,sw=Jl,fw=Gl,lw=Array,pw=function(t){var e=nw(t),r=aw(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ew(o,n>2?arguments[2]:void 0));var a,c,u,s,f,l,p=fw(e),y=0;if(!p||this===lw&&iw(p))for(a=cw(e),c=r?new this(a):lw(a);a>y;y++)l=i?o(e[y],y):e[y],uw(c,y,l);else for(f=(s=sw(e,p)).next,c=r?new this:[];!(u=rw(f,s)).done;y++)l=i?ow(s,o,[u.value,y],!0):u.value,uw(c,y,l);return c.length=y,c};Pr({target:"Array",stat:!0,forced:!Ov((function(t){Array.from(t)}))},{from:pw});var yw=r(et.Array.from),hw=r(Zd);function vw(t,e){var r=Em(t);if(Pb){var n=Pb(t);e&&(n=Tb(n).call(n,(function(e){return Fb(t,e).enumerable}))),r.push.apply(r,n)}return r}function dw(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?bm(r=vw(Object(o),!0)).call(r,(function(e){Sw(t,e,o[e])})):Bb?Wb(t,Bb(o)):bm(n=vw(Object(o))).call(n,(function(e){$b(t,e,Fb(o,e))}))}return t}function gw(t){return(gw="function"==typeof kb&&"symbol"==typeof Jb?function(t){return typeof t}:function(t){return t&&"function"==typeof kb&&t.constructor===kb&&t!==kb.prototype?"symbol":typeof t})(t)}function mw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),$b(t,Aw(n.key),n)}}function ww(t,e,r){return e&&bw(t.prototype,e),r&&bw(t,r),$b(t,"prototype",{writable:!1}),t}function Sw(t,e,r){return(e=Aw(e))in t?$b(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ew(t){return function(t){if(mm(t))return Ow(t)}(t)||function(t){if(void 0!==kb&&null!=xb(t)||null!=t["@@iterator"])return yw(t)}(t)||function(t,e){var r;if(!t)return;if("string"==typeof t)return Ow(t,e);var n=Om(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return yw(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ow(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ow(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Aw(t){var e=function(t,e){if("object"!==Sf(t)||null===t)return t;var r=t[hw];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sf(e)?e:String(e)}var Tw=ta.some;Pr({target:"Array",proto:!0,forced:!Ff("some")},{some:function(t){return Tw(this,t,arguments.length>1?arguments[1]:void 0)}});var kw=qf("Array").some,xw=ct,Pw=kw,jw=Array.prototype,Cw=r((function(t){var e=t.some;return t===jw||xw(jw,t)&&e===jw.some?Pw:e})),_w=Nr,Rw=Xn,Lw=z,Nw=RangeError,Iw=d,Mw=Fr,Fw=Xn,Dw=z,Kw=Iw((function(t){var e=Rw(Lw(this)),r="",n=_w(t);if(n<0||n==1/0)throw Nw("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),Uw=Iw("".slice),qw=Math.ceil,Bw=function(t){return function(e,r,n){var o,i,a=Fw(Dw(e)),c=Mw(r),u=a.length,s=void 0===n?" ":Fw(n);return c<=u||""==s?a:((i=Kw(s,qw((o=c-u)/s.length))).length>o&&(i=Uw(i,0,o)),t?a+i:i+a)}},Hw={start:Bw(!1),end:Bw(!0)},Gw=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(ut),Yw=Hw.start;Pr({target:"String",proto:!0,forced:Gw},{padStart:function(t){return Yw(this,t,arguments.length>1?arguments[1]:void 0)}});var Vw,Xw=qf("String").padStart,zw=ct,Ww=Xw,$w=String.prototype,Jw=r((function(t){var e=t.padStart;return"string"==typeof t||t===$w||zw($w,t)&&e===$w.padStart?Ww:e})),Qw="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Zw=o,tS=l,eS=x,rS=Qw,nS=ut,oS=Ac,iS=ey,aS=Zw.Function,cS=/MSIE .\./.test(nS)||rS&&((Vw=Zw.Bun.version.split(".")).length<3||0==Vw[0]&&(Vw[1]<3||3==Vw[1]&&0==Vw[2])),uS=function(t,e){var r=e?2:1;return cS?function(n,o){var i=iS(arguments.length,1)>r,a=eS(n)?n:aS(n),c=i?oS(arguments,r):[],u=i?function(){tS(a,this,c)}:a;return e?t(u,o):t(u)}:t},sS=Pr,fS=o,lS=uS(fS.setInterval,!0);sS({global:!0,bind:!0,forced:fS.setInterval!==lS},{setInterval:lS});var pS=Pr,yS=o,hS=uS(yS.setTimeout,!0);pS({global:!0,bind:!0,forced:yS.setTimeout!==hS},{setTimeout:hS});var vS=r(et.setInterval),dS=r(et.setTimeout),gS=ta.every;Pr({target:"Array",proto:!0,forced:!Ff("every")},{every:function(t){return gS(this,t,arguments.length>1?arguments[1]:void 0)}});var mS=qf("Array").every,bS=ct,wS=mS,SS=Array.prototype,ES=r((function(t){var e=t.every;return t===SS||bS(SS,t)&&e===SS.every?wS:e})),OS=o,AS=i,TS=Xn,kS=tb.trim,xS=Vm,PS=d("".charAt),jS=OS.parseFloat,CS=OS.Symbol,_S=CS&&CS.iterator,RS=1/jS(xS+"-0")!=-1/0||_S&&!AS((function(){jS(Object(_S))}))?function(t){var e=kS(TS(t)),r=jS(e);return 0===r&&"-"==PS(e,0)?-0:r}:jS;Pr({global:!0,forced:parseFloat!=RS},{parseFloat:RS});var LS=r(et.parseFloat),NS=du.PROPER,IS=i,MS=Vm,FS=tb.trim;Pr({target:"String",proto:!0,forced:function(t){return IS((function(){return!!MS[t]()||"
"!=="
"[t]()||NS&&MS[t].name!==t}))}("trim")},{trim:function(){return FS(this)}});var DS=qf("String").trim,KS=ct,US=DS,qS=String.prototype,BS=r((function(t){var e=t.trim;return"string"==typeof t||t===qS||KS(qS,t)&&e===qS.trim?US:e})),HS=$o,GS=Math.floor,YS=function(t,e){var r=t.length,n=GS(r/2);return r<8?VS(t,e):XS(t,YS(HS(t,0,n),e),YS(HS(t,n),e),e)},VS=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},XS=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,c=0;a<o||c<i;)t[a+c]=a<o&&c<i?n(e[a],r[c])<=0?e[a++]:r[c++]:a<o?e[a++]:r[c++];return t},zS=YS,WS=ut.match(/firefox\/(\d+)/i),$S=!!WS&&+WS[1],JS=/MSIE|Trident/.test(ut),QS=ut.match(/AppleWebKit\/(\d+)\./),ZS=!!QS&&+QS[1],tE=Pr,eE=d,rE=_t,nE=Wt,oE=Kr,iE=km,aE=Xn,cE=i,uE=zS,sE=Ff,fE=$S,lE=JS,pE=vt,yE=ZS,hE=[],vE=eE(hE.sort),dE=eE(hE.push),gE=cE((function(){hE.sort(void 0)})),mE=cE((function(){hE.sort(null)})),bE=sE("sort"),wE=!cE((function(){if(pE)return pE<70;if(!(fE&&fE>3)){if(lE)return!0;if(yE)return yE<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){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++)hE.push({k:e+n,v:r})}for(hE.sort((function(t,e){return e.v-t.v})),n=0;n<hE.length;n++)e=hE[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));tE({target:"Array",proto:!0,forced:gE||!mE||!bE||!wE},{sort:function(t){void 0!==t&&rE(t);var e=nE(this);if(wE)return void 0===t?vE(e):vE(e,t);var r,n,o=[],i=oE(e);for(n=0;n<i;n++)n in e&&dE(o,e[n]);for(uE(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:aE(e)>aE(r)?1:-1}}(t)),r=oE(o),n=0;n<r;)e[n]=o[n++];for(;n<i;)iE(e,n++);return e}});var SE,EE=qf("Array").sort,OE=ct,AE=EE,TE=Array.prototype,kE=r((function(t){var e=t.sort;return t===TE||OE(TE,t)&&e===TE.sort?AE:e})),xE="undefined"!=typeof window&&window.location&&gm(SE=window.location.href).call(SE,"xgplayerdebugger=1")>-1,PE="color: #525252; background-color: #90ee90;",jE="color: #525252; background-color: red;",CE="color: #525252; background-color: yellow; ",_E="%c[xgplayer]",RE={config:{debug:xE?3:0},logInfo:function(t){for(var e,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,Gg(e=[_E,PE,t]).call(e,o))},logWarn:function(t){for(var e,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,Gg(e=[_E,CE,t]).call(e,o))},logError:function(t){var e,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,Gg(e=[_E,jE,t]).call(e,i))}}},LE=function(){function t(e){mw(this,t),this.bufferedList=e}return ww(t,[{key:"start",value:function(t){return this.bufferedList[t].start}},{key:"end",value:function(t){return this.bufferedList[t].end}},{key:"length",get:function(){return this.bufferedList.length}}]),t}(),NE={};function IE(t,e,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 c,u=e.call.apply(e,Gg(n=[t]).call(n,i));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var e,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.call.apply(r,Gg(e=[t]).call(e,o))})):r.call.apply(r,Gg(c=[t]).call(c,i)))}function ME(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[t]&&(this.__hooks[t]=null),Qb(r=function(){var r,o=arguments,i=this;if(n.pre)try{var a,c;(c=n.pre).call.apply(c,Gg(a=[this]).call(a,Om(Array.prototype).call(arguments)))}catch(d){var u,s;throw d.message=Gg(u=Gg(s="[pluginName: ".concat(this.pluginName,":")).call(s,t,":pre error] >> ")).call(u,d.message),d}if(this.__hooks&&this.__hooks[t])try{var f,l,p=UE.apply(void 0,Gg(f=[this,t,e]).call(f,Om(Array.prototype).call(arguments)));if(p)if(p.then)p.then((function(t){var r;!1!==t&&IE.apply(void 0,Gg(r=[i,e,n.next]).call(r,Ew(o)))})).catch((function(t){throw t}));else IE.apply(void 0,Gg(l=[this,e,n.next]).call(l,Om(Array.prototype).call(arguments)));else if(void 0===p){var y;IE.apply(void 0,Gg(y=[this,e,n.next]).call(y,Om(Array.prototype).call(arguments)))}}catch(d){var h,v;throw d.message=Gg(h=Gg(v="[pluginName: ".concat(this.pluginName,":")).call(v,t,"] >> ")).call(h,d.message),d}else IE.apply(void 0,Gg(r=[this,e,n.next]).call(r,Om(Array.prototype).call(arguments)))}).call(r,this)}function FE(t,e){var r=this.__hooks;if(!r||!mm(r[t]))return-1;for(var n=r[t],o=0;o<n.length;o++)if(n[o]===e)return o;return-1}function DE(t,e){var r=this.__hooks;if(r)return r.hasOwnProperty(t)?(mm(r[t])||(r[t]=[]),-1===FE.call(this,t,e)&&r[t].push(e),!0):(console.warn("has no supported hook which name [".concat(t,"]")),!1)}function KE(t,e){var r=this.__hooks;if(r)if(mm(r[t])){var n=r[t],o=FE.call(this,t,e);-1!==o&&Gm(n).call(n,o,1)}else r[t]&&(r[t]=null)}function UE(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];if(t.__hooks&&mm(t.__hooks[e])){var a,c=t.__hooks[e],u=-1;return function t(e,r,n){for(var o,i,a=arguments.length,s=new Array(a>3?a-3:0),f=3;f<a;f++)s[f-3]=arguments[f];if(u++,0===c.length||u===c.length)return n.call.apply(n,Gg(i=[e,e]).call(i,s));var l,p=c[u],y=p.call.apply(p,Gg(o=[e,e]).call(o,s));return y&&y.then?y.then((function(o){var i;return!1===o?null:t.apply(void 0,Gg(i=[e,r,n]).call(i,s))})).catch((function(t){console.warn("[runHooks]".concat(r," reject"),t.message)})):!1!==y?t.apply(void 0,Gg(l=[e,r,n]).call(l,s)):!1!==y&&void 0}.apply(void 0,Gg(a=[t,e,r]).call(a,o))}var s;return r.call.apply(r,Gg(s=[t,t]).call(s,o))}function qE(t,e){var r;RE.logError(Gg(r="[".concat(t,"] event or callback cant be undefined or null when call ")).call(r,e))}NE.createDom=function(){var t,e=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(e);return i.className=o,i.innerHTML=r,bm(t=Em(n)).call(t,(function(t){var r=t,o=n[t];"video"===e||"audio"===e||"live-video"===e?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},NE.createDomFromHtml=function(t){var e=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=t;var o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&NE.addClass(o,r),e)bm(i=Em(e)).call(i,(function(t){o.setAttribute(t,e[t])}));return o}return null}catch(a){return RE.logError("util.createDomFromHtml",a),null}},NE.hasClass=function(t,e){if(!t||!e)return!1;try{return Cw(Array.prototype).call(t.classList,(function(t){return t===e}))}catch(n){var r=t.className&&"object"===gw(t.className)?t.getAttribute("class"):t.className;return r&&!!r.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}},NE.addClass=function(t,e){if(t&&e)try{var r;bm(r=e.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(e){e&&t.classList.add(e)}))}catch(n){NE.hasClass(t,e)||(t.className&&"object"===gw(t.className)?t.setAttribute("class",t.getAttribute("class")+" "+e):t.className+=" "+e)}},NE.removeClass=function(t,e){if(t&&e)try{var r;bm(r=e.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(e){e&&t.classList.remove(e)}))}catch(o){var n;if(NE.hasClass(t,e))bm(n=e.split(/\s+/g)).call(n,(function(e){var r=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className&&"object"===gw(t.className)?t.setAttribute("class",t.getAttribute("class").replace(r," ")):t.className=t.className.replace(r," ")}))}},NE.toggleClass=function(t,e){var r;t&&bm(r=e.split(/\s+/g)).call(r,(function(e){NE.hasClass(t,e)?NE.removeClass(t,e):NE.addClass(t,e)}))},NE.classNames=function(){for(var t=arguments,e=[],r=function(r){if("String"===NE.typeOf(t[r]))e.push(t[r]);else if("Object"===NE.typeOf(t[r])){var n;bb(n=Em(t[r])).call(n,(function(n){t[r][n]&&e.push(n)}))}},n=0;n<arguments.length;n++)r(n);return e.join(" ")},NE.findDom=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{t=e.querySelector(r)}catch(n){RE.logError("util.findDom",n),0===gm(r).call(r,"#")&&(t=e.getElementById(Om(r).call(r,1)))}return t},NE.getCss=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,!1)[e]},NE.padStart=function(t,e,r){for(var n=String(r),o=e>>0,i=Math.ceil(o/n.length),a=[],c=String(t);i--;)a.push(n);return a.join("").substring(0,o-c.length)+c},NE.format=function(t){if(window.isNaN(t))return"";t=Math.round(t);var e=Jw(NE).call(NE,Math.floor(t/3600),2,0),r=Jw(NE).call(NE,Math.floor((t-3600*e)/60),2,0),n=Jw(NE).call(NE,Math.floor(t-3600*e-60*r),2,0);return("00"===e?[r,n]:[e,r,n]).join(":")},NE.event=function(t){if(t.touches){var e=t.touches[0]||t.changedTouches[0];t.clientX=e.clientX||0,t.clientY=e.clientY||0,t.offsetX=e.pageX-e.target.offsetLeft,t.offsetY=e.pageY-e.target.offsetTop}t._target=t.target||t.srcElement},NE.typeOf=function(t){return Object.prototype.toString.call(t).match(/([^\s.*]+)(?=]$)/g)[0]},NE.deepCopy=function(t,e){var r;if("Object"===NE.typeOf(e)&&"Object"===NE.typeOf(t))return bm(r=Em(e)).call(r,(function(r){if("Object"!==NE.typeOf(e[r])||e[r]instanceof Node)if("Array"===NE.typeOf(e[r])){var n;t[r]="Array"===NE.typeOf(t[r])?Gg(n=t[r]).call(n,e[r]):e[r]}else t[r]=e[r];else void 0===t[r]||void 0===t[r]?t[r]=e[r]:NE.deepCopy(t[r],e[r])})),t},NE.deepMerge=function(t,e){var r;return bb(r=Em(e)).call(r,(function(r){var n;"Array"===NE.typeOf(e[r])&&"Array"===NE.typeOf(t[r])?"Array"===NE.typeOf(t[r])&&(n=t[r]).push.apply(n,Ew(e[r])):NE.typeOf(t[r])!==NE.typeOf(e[r])||null===t[r]||"Object"!==NE.typeOf(t[r])||e[r]instanceof window.Node?null!==e[r]&&(t[r]=e[r]):NE.deepMerge(t[r],e[r])})),t},NE.getBgImage=function(t){var e=(t.currentStyle||window.getComputedStyle(t,null)).backgroundImage;if(!e||"none"===e)return"";var r=document.createElement("a");return r.href=e.replace(/url\("|"\)/g,""),r.href},NE.copyDom=function(t){if(t&&1===t.nodeType){var e=document.createElement(t.tagName);return bm(Array.prototype).call(t.attributes,(function(t){e.setAttribute(t.name,t.value)})),t.innerHTML&&(e.innerHTML=t.innerHTML),e}return""},NE.setInterval=function(t,e,r,n){t._interval[e]||(t._interval[e]=vS(Qb(r).call(r,t),n))},NE.clearInterval=function(t,e){clearInterval(t._interval[e]),t._interval[e]=null},NE.setTimeout=function(t,e,r){t._timers||(t._timers=[]);var n=dS((function(){e(),NE.clearTimeout(t,n)}),r);return t._timers.push(n),n},NE.clearTimeout=function(t,e){var r=t._timers;if("Array"===NE.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===e){Gm(r).call(r,n,1),clearTimeout(e);break}}else clearTimeout(e)},NE.clearAllTimers=function(t){var e=t._timers;"Array"===NE.typeOf(e)&&(bb(e).call(e,(function(t){clearTimeout(t)})),t._timerIds=[])},NE.createImgBtn=function(t,e,r,n){var o,i,a,c,u,s,f,l,p,y,h,v,d=NE.createDom("xg-".concat(t),"",{},"xgplayer-".concat(t,"-img"));(d.style.backgroundImage='url("'.concat(e,'")'),r&&n)&&(ES(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(t){var e,o;return!(gm(r).call(r,t)>-1&&gm(n).call(n,t)>-1)||(f=LS(BS(e=Om(r).call(r,0,gm(r).call(r,t))).call(e)),l=LS(BS(o=Om(n).call(n,0,gm(n).call(n,t))).call(o)),p=t,!1)})),d.style.width=Gg(i="".concat(f)).call(i,p),d.style.height=Gg(a="".concat(l)).call(a,p),d.style.backgroundSize=Gg(c=Gg(u=Gg(s="".concat(f)).call(s,p," ")).call(u,l)).call(c,p),d.style.margin="start"===t?Gg(y=Gg(h=Gg(v="-".concat(l/2)).call(v,p," auto auto -")).call(h,f/2)).call(y,p):"auto 5px auto 5px");return d},NE.Hex2RGBA=function(t,e){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(t)){var o="#";t.replace(/[0-9A-F]/gi,(function(t){o+=t+t})),t=o}return/^#[0-9A-F]{6}$/i.test(t)?(t.replace(/[0-9A-F]{2}/gi,(function(t){n.push(yb(t,16))})),Gg(r="rgba(".concat(n.join(","),", ")).call(r,e,")")):"rgba(255, 255, 255, 0.1)"},NE.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},NE.checkIsFunction=function(t){return t&&"function"==typeof t},NE.checkIsObject=function(t){return null!==t&&"object"===gw(t)},NE.hide=function(t){t.style.display="none"},NE.show=function(t,e){t.style.display=e||"block"},NE.isUndefined=function(t){if(null==t)return!0},NE.isNotNull=function(t){return!(null==t)},NE.setStyleFromCsstext=function(t,e){if(e)if("String"===NE.typeOf(e)){var r=e.replace(/\s+/g,"").split(";");bb(r).call(r,(function(e){if(e){var r=e.split(":");r.length>1&&(t.style[r[0]]=r[1])}}))}else{var n;bb(n=Em(e)).call(n,(function(r){t.style[r]=e[r]}))}},NE.filterStyleFromText=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=t.style.cssText;if(!n)return{};var o=n.replace(/\s+/g,"").split(";"),i={},a={};return bb(o).call(o,(function(t){if(t){var e=t.split(":");e.length>1&&(!function(t,e){for(var r=0,n=e.length;r<n;r++)if(gm(t).call(t,e[r])>-1)return!0;return!1}(e[0],r)?a[e[0]]=e[1]:i[e[0]]=e[1])}})),t.setAttribute("style",""),bb(e=Em(a)).call(e,(function(e){t.style[e]=a[e]})),i},NE.getStyleFromCsstext=function(t){var e=t.style.cssText;if(!e)return{};var r=e.replace(/\s+/g,"").split(";"),n={};return bb(r).call(r,(function(t){if(t){var e=t.split(":");e.length>1&&(n[e[0]]=e[1])}})),n},NE.preloadImg=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(t){var n=new window.Image;n.onload=function(t){n=null,e&&e(t)},n.onerror=function(t){n=null,r&&r(t)},n.src=t}},NE.stopPropagation=function(t){t&&t.stopPropagation()},NE.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},NE.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},NE.checkTouchSupport=function(){return"ontouchstart"in window},NE.getBuffered2=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<t.length;n++)r.push({start:t.start(n)<.5?0:t.start(n),end:t.end(n)});kE(r).call(r,(function(t,e){var r=t.start-e.start;return r||e.end-t.end}));var o=[];if(e)for(var i=0;i<r.length;i++){var a=o.length;if(a){var c=o[a-1].end;r[i].start-c<e?r[i].end>c&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new LE(o)},NE.getEventPos=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.touches&&t.touches.length>0&&(t=t.touches[0]),{x:t.x/e,y:t.y/e,clientX:t.clientX/e,clientY:t.clientY/e,offsetX:t.offsetX/e,offsetY:t.offsetY/e,pageX:t.pageX/e,pageY:t.pageY/e}},NE.requestAnimationFrame=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(e)return e(t)},NE.getHostFromUrl=function(t){if("String"!==NE.typeOf(t))return"";var e=t.split("/"),r="";return e.length>3&&e[2]&&(r=e[2]),r},NE.cancelAnimationFrame=function(t){var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;e&&e(t)},NE.isMSE=function(t){return t.media&&(t=t.media),!!(t&&t instanceof HTMLMediaElement)&&(/^blob/.test(t.currentSrc)||/^blob/.test(t.src))},NE.isBlob=function(t){return"string"==typeof t&&/^blob/.test(t)},NE.generateSessionId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=(new Date).getTime();try{t=yb(t)}catch(r){t=0}return e+=t,window.performance&&"function"==typeof window.performance.now&&(e+=yb(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)}))},NE.createEvent=function(t){var e;return"function"==typeof window.Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),e},NE.adjustTimeByDuration=function(t,e,r){return e&&t&&(t>e||r&&t<e)?e:t},NE.createPositionBar=function(t,e){var r=NE.createDom("xg-bar","",{"data-index":-1},t);return e.appendChild(r),r},NE.getTransformStyle=function(){var t,e=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(e.scale||1),translate:Gg(t="".concat(e.x||0,"%, ")).call(t,e.y||0,"%"),rotate:"".concat(e.rotate||0,"deg")},o=Em(n);return bm(o).call(o,(function(t){var e,o=new RegExp("".concat(t,"\\([^\\(]+\\)"),"g"),i=Gg(e="".concat(t,"(")).call(e,n[t],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},NE.convertDeg=function(t){return Math.abs(t)<=1?360*t:t%360},NE.getIndexByTime=function(t,e){var r=e.length,n=-1;if(r<1)return n;if(t<=e[0].end||r<2)n=0;else if(t>e[r-1].end)n=r-1;else for(var o=1;o<r;o++)if(t>e[o-1].end&&t<=e[o].end){n=o;break}return n},NE.getOffsetCurrentTime=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=-1;if((n=r>=0&&r<e.length?r:NE.getIndexByTime(t,e))<0)return-1;var o=e.length,i=e[n],a=i.start,c=i.end,u=i.cTime,s=i.offset;return t<a?u:t>=a&&t<=c?t-s:t>c&&n>=o-1?c:-1},NE.getCurrentTimeByOffset=function(t,e){var r=-1;if(!e||e.length<0)return t;for(var n=0;n<e.length;n++)if(t<=e[n].duration){r=n;break}if(-1!==r){var o=e[r].start;return r-1<0?o+t:o+(t-e[r-1].duration)}return t};var BE=function(){function t(e){mw(this,t),NE.checkIsFunction(this.beforeCreate)&&this.beforeCreate(e),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.__hooks={},e&&bb(e).call(e,(function(e){t.__hooks[e]=null})),$b(t,"hooks",{get:function(){var e;return t.__hooks&&bb(e=Em(t.__hooks)).call(e,(function(e){if(t.__hooks[e])return e}))}})}(this),this.__args=e,this.__events={},this.__onceEvents={},this.config=e.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(e)}return ww(t,[{key:"beforeCreate",value:function(t){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(t){this.player=t.player,this.playerConfig=t.player&&t.player.config,this.pluginName=t.pluginName?t.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=t.player&&t.player.logger}},{key:"updateLang",value:function(t){t||(t=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 t=NE.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(t=this.playerConfig.domEventType),t}},{key:"on",value:function(t,e){var r=this;t&&e&&this.player?"string"==typeof t?(this.__events[t]=e,this.player.on(t,e)):mm(t)&&bm(t).call(t,(function(t){r.__events[t]=e,r.player.on(t,e)})):qE(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(t,e){var r=this;t&&e&&this.player?"string"==typeof t?(this.__onceEvents[t]=e,this.player.once(t,e)):mm(t)&&bm(t).call(t,(function(n){r.__onceEvents[n]=e,r.player.once(t,e)})):qE(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(t,e){var r=this;t&&e&&this.player?"string"==typeof t?(delete this.__events[t],this.player.off(t,e)):mm(t)&&bm(t).call(t,(function(n){delete r.__events[t],r.player.off(n,e)})):qE(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var t,e=this;bm(t=["__events","__onceEvents"]).call(t,(function(t){var r;bm(r=Em(e[t])).call(r,(function(r){e[t][r]&&e.off(r,e[t][r]),r&&delete e[t][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(t){var e,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,Gg(e=[t]).call(e,o))}}},{key:"emitUserAction",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=dw(dw({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(t,e,n)}}},{key:"hook",value:function(t,e){var r;return ME.call.apply(ME,Gg(r=[this]).call(r,Om(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(t,e){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 DE.call.apply(DE,Gg(r=[this]).call(r,Om(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(t,e){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 KE.call.apply(KE,Gg(r=[this]).call(r,Om(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(e.pluginName=r),this.player.registerPlugin({plugin:t,options:e})}},{key:"getPlugin",value:function(t){return this.player?this.player.getPlugin(t):null}},{key:"__destroy",value:function(){var t,e=this,r=this.player,n=this.pluginName;this.offAll(),NE.clearAllTimers(this),NE.checkIsFunction(this.destroy)&&this.destroy(),bb(t=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(t,(function(t){e[t]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&$b(t,r,e[r])}},{key:"defineMethod",value:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&"function"==typeof e[r]&&$b(t,r,{configurable:!0,value:e[r]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),t}(),HE=function(t){return t.widevine="com.widevine.alpha",t.fairplay="com.apple.fps.1_0",t.playready="com.microsoft.playready",t}(HE||{}),GE=function(t){return t[t.UNSUPPORTED=7101]="UNSUPPORTED",t[t.RECORD=7102]="RECORD",t[t.NOMEDIAKEY=7103]="NOMEDIAKEY",t[t.NOKEYSESSION=7104]="NOKEYSESSION",t[t.GENERATEREQUESTFAIL=7105]="GENERATEREQUESTFAIL",t[t.LACKSERVERCERTIFICATEPATH=7106]="LACKSERVERCERTIFICATEPATH",t[t.LACKSERVERPROCESSSPCPATH=7107]="LACKSERVERPROCESSSPCPATH",t[t.LICENSEFAIL=7108]="LICENSEFAIL",t[t.KEYERROR=7109]="KEYERROR",t[t.CERTFAIL=7110]="CERTFAIL",t}(GE||{});function YE(t){var e=[{initDataTypes:["keyids","webm"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"'}],videoCapabilities:t?[{contentType:t}]:[{contentType:'video/mp4; codecs="avc1.42c01e"'},{contentType:'video/mp4; codecs="hev1.1.6.L120.90"'},{contentType:'video/webm; codecs="vp8"'}]}];return new Ym((function(t,r){navigator.requestMediaKeySystemAccess(HE.fairplay,e).then((function(e){t({access:e,system:HE.fairplay,systemName:"fairplay"})})).catch((function(){cm.WebKitMediaKeys&&cm.WebKitMediaKeys.isTypeSupported(HE.fairplay,"video/mp4")?t({access:null,system:HE.fairplay,systemName:"fairplay"}):navigator.requestMediaKeySystemAccess(HE.widevine,e).then((function(e){t({access:e,system:HE.widevine,systemName:"widevine"})})).catch((function(){navigator.requestMediaKeySystemAccess(HE.playready,e).then((function(e){t({access:e,system:HE.playready,systemName:"playready"})})).catch((function(e){cm.MSMediaKeys&&cm.MSMediaKeys.isTypeSupported(HE.playready,"video/mp4")?t({access:null,system:HE.playready,systemName:"playready"}):r(e)}))}))}))}))}var VE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=_f(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),jf(t,"prototype",{writable:!1}),e&&Sg(t,e)}(c,t);var e,r,n,o,i,a=Kg(c);function c(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this,t)).unsupported=!1,e.unRecord=!0,e.needKeyed=!1,e.onNeedKey=function(t){if(!e.needKeyed&&!e.unsupported){e.needKeyed=!0,t.target;var r,n=t.initData,o=t.initDataType;e.keySystem===HE.fairplay&&(r=e.extractContentId(n)),e.afterInitDate(n,r,o)}},e.licenseRequestReady=function(t){if(e.serverProcessSPCPath){var r=t.message,n=new XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("load",e.licenseRequestLoaded,!1),n.addEventListener("error",e.licenseRequestFailed(t),!1);var o=new Uint8Array(r);n.open("POST",e.serverProcessSPCPath,!0),e.config.ignoreLicenseHeader||(e.keySystem===HE.playready?n.setRequestHeader("Content-type","text/xml; charset=utf-8"):n.setRequestHeader("Content-type","application/octet-stream")),n.send(o)}else e.emitError(GE.LACKSERVERPROCESSSPCPATH,"lack serverProcessSPCPath")},e.licenseRequestLoaded=function(t){var r,n=t.target.response;(r=new Uint8Array(n))?e.keySession.update(r):e.emitError(GE.LICENSEFAIL,"The license response no array buffer, license: ".concat(r))},e.licenseRequestFailed=function(t){return function(r){if(e.licenseRetryTime>0)e.licenseRequestReady(t),e.licenseRetryTime--;else{var n,o=r.target;e.emitError(GE.LICENSEFAIL,Gg(n="The license request fail, status: ".concat(o.status,", statusText: ")).call(n,o.statusText))}}},e.onKeyError=function(){e.emitError(GE.KEYERROR,"A decryption key error was encountered")},e.loadCertificate=function(){if(e.serverCertificatePath){var t=new XMLHttpRequest;t.responseType="arraybuffer",t.addEventListener("load",e.onCertificateLoaded,!1),t.addEventListener("error",e.onCertificateError,!1),t.open("GET",e.serverCertificatePath,!0),t.send()}else e.emitError(GE.LACKSERVERCERTIFICATEPATH,"lack serverCertificatePath")},e.emitError=function(t,r){e.emit("error",{errorCode:t,message:r,drm_sdk_version:"0.0.0-alpha.13"})},e.onCertificateLoaded=function(t){var r=t.target;e.certificate=new Uint8Array(r.response),e.loadSource()},e.onCertificateError=function(t){if(e.certRetryTime>0)e.loadCertificate(),e.certRetryTime--;else{var r,n=t.target;e.emitError(GE.CERTFAIL,Gg(r="get cert fail, status: ".concat(n.status,", statusText: ")).call(r,n.statusText))}},e.restart=function(){e.reset()},e.reset();var r=t.config||{};return e.config=r,e.contentType=e.config.contentType,"boolean"==typeof r.unRecord&&(e.unRecord=r.unRecord),e.checkUnrecord(),e.player.handleSource=!1,e}return e=c,r=[{key:"serverCertificatePath",get:function(){return this._serverCertificatePath},set:function(t){t&&this._serverCertificatePath!==t&&(this._serverCertificatePath=t,this.keySystem===HE.fairplay&&(this.certificate=void 0,this.loadCertificate()))}},{key:"afterCreate",value:function(){this.media=this.player.video,this.media.addEventListener("webkitneedkey",this.onNeedKey,!1),this.media.addEventListener("msneedkey",this.onNeedKey,!1),this.media.addEventListener("needkey",this.onNeedKey,!1),this.media.addEventListener("encrypted",this.onNeedKey),this.player.on("urlchange",this.restart),this.player.on("reset",this.restart)}},{key:"checkUnrecord",value:(i=Qd($d().mark((function t(){var e,r,n=this;return $d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.unRecord){t.next=13;break}return t.prev=1,t.next=4,navigator.mediaCapabilities.decodingInfo({type:"file",video:{contentType:'video/mp4; codecs="avc1.42c01e"',width:426,height:238,bitrate:1e3,framerate:30}});case 4:e=t.sent,r=e.powerEfficient,this.unsupported=!r,t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),this.emitError(GE.RECORD,"check powerEfficient failed, ".concat(t.t0.message)),this.unsupported=!0;case 13:if(!this.unsupported){t.next=15;break}return t.abrupt("return");case 15:YE(this.contentType).then((function(t){var e=t.access,r=t.system,o=t.systemName;n.keySystem=r,n.systemName=o,n.setRequestUrl(o),r===HE.fairplay?n.loadCertificate():n.loadSource(),e&&(n.keySystemAccess=e)})).catch((function(t){n.emitError(GE.UNSUPPORTED,t.message),n.unsupported=!0}));case 16:case"end":return t.stop()}}),t,this,[[1,9]])}))),function(){return i.apply(this,arguments)})},{key:"loadSource",value:function(){this.player.retry()}},{key:"setRequestUrl",value:function(t){var e=this.config[t]||this.config;this.serverCertificatePath=e.serverCertificatePath,this.serverProcessSPCPath=e.serverProcessSPCPath}},{key:"updateConfig",value:(o=Qd($d().mark((function t(e){return $d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(im(this.config,e),!this.config.unRecord||this.contentType===this.config.contentType){t.next=5;break}return this.contentType=this.config.contentType,t.next=5,this.checkUnrecord();case 5:this.setRequestUrl(this.systemName);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"afterInitDate",value:function(t,e,r){var n=this;if(this.keySystemAccess)this.keySystemAccess.createMediaKeys().then((function(e){if(n.media.setMediaKeys(e),n.media.mediaKeys)n.emitError(GE.NOMEDIAKEY,"Could not create MediaKeys");else{var o=e.createSession();n.keySession=o,o?(o.addEventListener("message",n.licenseRequestReady),o.generateRequest(r||n.config.initDataType,t).catch((function(t){var e;n.emitError(GE.GENERATEREQUESTFAIL,Gg(e="generateRequest failed, code: ".concat(t.errorCode,", message: ")).call(e,t.message))}))):n.emitError(GE.NOKEYSESSION,"Could not create key session")}})).catch((function(){throw"Could not create MediaKeys"}));else if(this.keySystem===HE.fairplay){var o=new cm.WebKitMediaKeys(this.keySystem);if(this.media.webkitSetMediaKeys(o),!this.media.webkitKeys)return void this.emitError(GE.NOMEDIAKEY,"Could not create MediaKeys");var i=o.createSession("video/mp4",this.concatInitDataIdAndCertificate(t,e));if(this.keySession=i,!i)return void this.emitError(GE.NOKEYSESSION,"Could not create key session");i.addEventListener("webkitkeymessage",this.licenseRequestReady),i.addEventListener("webkitkeyerror",this.onKeyError)}else if(this.keySystem===HE.playready){var a=new cm.MSMediaKeys(this.keySystem);this.media.msSetMediaKeys(a);var c=a.createSession("video/mp4",new Uint8Array(t),null);if(this.keySession=c,!c)return void this.emitError(GE.NOKEYSESSION,"Could not create key session");c.addEventListener("mskeymessage",this.licenseRequestReady),c.addEventListener("mskeyerror",this.onKeyError)}}},{key:"parseServerResponse",value:function(t){var e="http://schemas.xmlsoap.org/soap/envelope/";if(DOMParser){var r=this.uintToString(t),n=(new DOMParser).parseFromString(r,"text/xml"),o=n?n.getElementsByTagNameNS(e,"Envelope")[0]:null,i=o?o.getElementsByTagNameNS(e,"Body")[0]:null;if(i&&i.getElementsByTagNameNS(e,"Fault")[0])return null}return t}},{key:"uintToString",value:function(t){var e=String.fromCharCode.apply(null,new Uint8Array(t));return decodeURIComponent(escape(e))}},{key:"extractContentId",value:function(t){var e,r=(e=new Uint16Array(t.buffer),String.fromCharCode.apply(null,e)),n=document.createElement("a");return n.href=r,n.hostname}},{key:"concatInitDataIdAndCertificate",value:function(t,e){"string"==typeof e&&(e=function(t){for(var e=new ArrayBuffer(2*t.length),r=new Uint16Array(e),n=0,o=t.length;n<o;n++)r[n]=t.charCodeAt(n);return r}(e));var r,n=0,o=this.certificate;r=o?new ArrayBuffer(t.byteLength+4+e.byteLength+4+o.byteLength):new ArrayBuffer(t.byteLength+4+e.byteLength);var i=new DataView(r);new Uint8Array(r,n,t.byteLength).set(t),n+=t.byteLength,i.setUint32(n,e.byteLength,!0),n+=4;var a=new Uint16Array(r,n,e.length);return a.set(e),n+=a.byteLength,o&&(i.setUint32(n,o.byteLength,!0),n+=4,new Uint8Array(r,n,o.byteLength).set(o)),new Uint8Array(r,0,r.byteLength)}},{key:"reset",value:function(){if(this.certRetryTime=2,this.licenseRetryTime=2,this.suspend=void 0,this.keySession=void 0,this.needKeyed=!1,this.media)try{this.media.src="",this.keySystem===HE.fairplay?this.media.webkitSetMediaKeys(null):this.keySystem===HE.playready?this.media.msSetMediaKeys(null):this.media.setMediaKeys(null)}catch(zE){}}},{key:"destroy",value:function(){this.player.off("urlchange",this.restart),this.player.off("reset",this.restart),this.media.removeEventListener("webkitneedkey",this.onNeedKey,!1),this.media.removeEventListener("msneedkey",this.onNeedKey,!1),this.media.removeEventListener("needkey",this.onNeedKey,!1),this.media.removeEventListener("encrypted",this.onNeedKey)}}],n=[{key:"pluginName",get:function(){return"drm"}}],r&&rg(e.prototype,r),n&&rg(e,n),jf(e,"prototype",{writable:!1}),c}(BE),XE=window.VePlayer.DynamicModule;VePlayer.registerPlugin(XE.PluginDrm,{DrmPlugin:VE}),t.DrmPlugin=VE}));
|
|
@@ -1548,7 +1548,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
return offsetTime;
|
|
1550
1550
|
};
|
|
1551
|
-
var version = "3.0.24-rc.
|
|
1551
|
+
var version = "3.0.24-rc.6";
|
|
1552
1552
|
var ERROR_MAP = {
|
|
1553
1553
|
1: 5101,
|
|
1554
1554
|
2: 5102,
|
|
@@ -11032,7 +11032,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11032
11032
|
_createClass$4(Flv2, [{
|
|
11033
11033
|
key: "version",
|
|
11034
11034
|
get: function get() {
|
|
11035
|
-
return "3.0.24-rc.
|
|
11035
|
+
return "3.0.24-rc.6";
|
|
11036
11036
|
}
|
|
11037
11037
|
}, {
|
|
11038
11038
|
key: "isLive",
|