@volcengine/veplayer-plugin 2.5.0-rc.0 → 2.5.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.
Files changed (43) hide show
  1. package/esm/index.d.ts +0 -1
  2. package/esm/index.development.css +0 -7
  3. package/esm/index.development.js +47274 -53342
  4. package/esm/index.production.css +1 -1
  5. package/esm/index.production.js +4 -13
  6. package/esm/veplayer.plugin.abr.development.js +12 -0
  7. package/esm/veplayer.plugin.abr.production.js +1 -1
  8. package/esm/veplayer.plugin.drm.development.js +12 -0
  9. package/esm/veplayer.plugin.drm.production.js +1 -1
  10. package/esm/veplayer.plugin.flv.development.js +675 -194
  11. package/esm/veplayer.plugin.flv.production.js +1 -1
  12. package/esm/veplayer.plugin.hls.development.js +1159 -369
  13. package/esm/veplayer.plugin.hls.production.js +1 -1
  14. package/esm/veplayer.plugin.mp4.development.js +13 -1
  15. package/esm/veplayer.plugin.mp4.production.js +1 -1
  16. package/esm/veplayer.plugin.rtm.development.js +167 -51
  17. package/esm/veplayer.plugin.rtm.production.js +1 -1
  18. package/esm/veplayer.plugin.shaka.development.js +12 -0
  19. package/esm/veplayer.plugin.shaka.production.js +1 -1
  20. package/package.json +1 -1
  21. package/umd/index.d.ts +0 -1
  22. package/umd/veplayer.plugin.abr.development.js +12 -0
  23. package/umd/veplayer.plugin.abr.production.js +1 -1
  24. package/umd/veplayer.plugin.drm.development.js +12 -0
  25. package/umd/veplayer.plugin.drm.production.js +1 -1
  26. package/umd/veplayer.plugin.flv.development.js +675 -194
  27. package/umd/veplayer.plugin.flv.production.js +1 -1
  28. package/umd/veplayer.plugin.hls.development.js +1126 -336
  29. package/umd/veplayer.plugin.hls.production.js +1 -1
  30. package/umd/veplayer.plugin.mp4.development.js +13 -1
  31. package/umd/veplayer.plugin.mp4.production.js +1 -1
  32. package/umd/veplayer.plugin.rtm.development.js +167 -51
  33. package/umd/veplayer.plugin.rtm.production.js +1 -1
  34. package/umd/veplayer.plugin.shaka.development.js +12 -0
  35. package/umd/veplayer.plugin.shaka.production.js +1 -1
  36. package/esm/veplayer.plugin.ad.development.css +0 -7
  37. package/esm/veplayer.plugin.ad.development.js +0 -9042
  38. package/esm/veplayer.plugin.ad.production.css +0 -1
  39. package/esm/veplayer.plugin.ad.production.js +0 -4
  40. package/umd/veplayer.plugin.ad.development.css +0 -7
  41. package/umd/veplayer.plugin.ad.development.js +0 -9045
  42. package/umd/veplayer.plugin.ad.production.css +0 -1
  43. package/umd/veplayer.plugin.ad.production.js +0 -1
@@ -1259,6 +1259,18 @@
1259
1259
  }
1260
1260
  }
1261
1261
  }
1262
+ }, {
1263
+ key: "defineMethod",
1264
+ value: function defineMethod(Obj, map) {
1265
+ for (var key in map) {
1266
+ if (Object.prototype.hasOwnProperty.call(map, key) && typeof map[key] === "function") {
1267
+ Object.defineProperty(Obj, key, {
1268
+ configurable: true,
1269
+ value: map[key]
1270
+ });
1271
+ }
1272
+ }
1273
+ }
1262
1274
  }, {
1263
1275
  key: "defaultConfig",
1264
1276
  get: function get() {
@@ -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)}delete r[t]}}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:"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";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)}delete r[t]}}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}));