@volcengine/veplayer-plugin 2.8.0-rc.2 → 2.8.1-rc.0

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