xgplayer-mp4-loader 0.0.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # MP4Loader
2
+
3
+ MP4Loader 可以自定义加载单个 MP4 文件。
4
+
5
+ ## API
6
+
7
+ ### 参数
8
+
9
+ ```js
10
+ {
11
+ vid: '', // 视频 id,默认为 视频 url
12
+ moovEnd: 8000, // moov 盒子结束
13
+ segmentDuration: 5, // 期望的一个视频分片时长,实际会在该时长附近
14
+ maxDownloadInfoSize: 30, // 最大下载信息数组记录大小
15
+ cache: null, // 自定义 cache 对象
16
+ loaderType: LoaderType.FETCH, // loader 类型,默认 fetch,不支持时会自动降级为 xhr
17
+ retry: 0, // 重试次数
18
+ retryDelay: 0, // ms,每次重试间隔
19
+ timeout: 0, // 请求超时时间,默认不设置
20
+ request: null, // 请求 Request 对象
21
+ onTimeout: undefined, // 超时回调钩子
22
+ onRetryError: undefined, // 单次重试回调钩子
23
+ transformRequest: undefined, // 请求前会调用,可用来修改请求参数
24
+ transformResponse: undefined, // 响应后会调用,可以修改响应对象
25
+ url: '', // mp4 地址
26
+ params: undefined, // url 查询参数,为普通对象
27
+ method: 'GET', // 请求方法
28
+ headers: {}, // 自定义 header
29
+ body: undefined, // post 请求体
30
+ mode: undefined, // 同 fetch
31
+ credentials: undefined, // 同 fetch
32
+ cache: undefined, // 同 fetch
33
+ redirect: undefined, // 同 fetch
34
+ referrer: undefined, // 同 fetch
35
+ referrerPolicy: undefined, // 同 fetch
36
+ integrity: undefined, // 同 fetch
37
+ }
38
+ ```
39
+
40
+ ### 属性
41
+
42
+ ```js
43
+ const loader = new Loader()
44
+
45
+ loader.vid // 视频 vid,用于缓存 key
46
+ loader.meta // 视频元数据
47
+ // {
48
+ // videoCodec, // 视频编码字符串
49
+ // audioCodec, // 音频编码字符串
50
+ // width, // 宽度
51
+ // height, // 高度
52
+ // audioChannelCount, // 音频通道数
53
+ // audioSampleRate, // 音频采样率
54
+ // duration, // 视频时长
55
+ // moov // MP4Parser moov 对象
56
+ // }
57
+ loader.downloadInfo // 网络下载信息数组
58
+ // {
59
+ // startTime, // 开始下载时间戳
60
+ // endTime, // 结束下载时间戳
61
+ // size, // 下载数据大小
62
+ // range // range 范围 [start, end]
63
+ // }
64
+ loader.cache // loader 当前的 cache 对象
65
+ ```
66
+
67
+ ### 方法
68
+
69
+ #### loadMeta
70
+
71
+
72
+
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MP4Loader=e()}(this,(function(){"use strict";function t(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,s,"next",e)}function s(e){t(a,o,i,u,s,"throw",e)}u(void 0)}))}}function r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){return t&&t.Math==Math&&t},c=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof u&&u)||function(){return this}()||Function("return this")(),f={},l=function(t){try{return!!t()}catch(t){return!0}},h=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={},p={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y=v&&!p.call({1:2},1);d.f=y?function(t){var e=v(this,t);return!!e&&e.enumerable}:p;var g,m,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_={}.toString,w=function(t){return _.call(t).slice(8,-1)},x=w,T="".split,S=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?T.call(t,""):Object(t)}:Object,k=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},O=S,A=k,j=function(t){return O(A(t))},E=function(t){return"object"==typeof t?null!==t:"function"==typeof t},C=c,R=function(t){return"function"==typeof t?t:void 0},L=function(t,e){return arguments.length<2?R(C[t]):C[t]&&C[t][e]},P=L("navigator","userAgent")||"",I=c,B=P,M=I.process,D=I.Deno,z=M&&M.versions||D&&D.version,F=z&&z.v8;F?m=(g=F.split("."))[0]<4?1:g[0]+g[1]:B&&(!(g=B.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=B.match(/Chrome\/(\d+)/))&&(m=g[1]);var N=m&&+m,U=N,q=l,Y=!!Object.getOwnPropertySymbols&&!q((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),G=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=L,$=G?function(t){return"symbol"==typeof t}:function(t){var e=V("Symbol");return"function"==typeof e&&Object(t)instanceof e},W=E,K={exports:{}},H=c,Q=function(t,e){try{Object.defineProperty(H,t,{value:e,configurable:!0,writable:!0})}catch(r){H[t]=e}return e},X=Q,J="__core-js_shared__",Z=c[J]||X(J,{}),tt=Z;(K.exports=function(t,e){return tt[t]||(tt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var et=k,rt=function(t){return Object(et(t))},nt=rt,ot={}.hasOwnProperty,it=Object.hasOwn||function(t,e){return ot.call(nt(t),e)},at=0,ut=Math.random(),st=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++at+ut).toString(36)},ct=c,ft=K.exports,lt=it,ht=st,dt=Y,pt=G,vt=ft("wks"),yt=ct.Symbol,gt=pt?yt:yt&&yt.withoutSetter||ht,mt=function(t){return lt(vt,t)&&(dt||"string"==typeof vt[t])||(dt&&lt(yt,t)?vt[t]=yt[t]:vt[t]=gt("Symbol."+t)),vt[t]},bt=E,_t=$,wt=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!W(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!W(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!W(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},xt=mt("toPrimitive"),Tt=function(t,e){if(!bt(t)||_t(t))return t;var r,n=t[xt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!bt(r)||_t(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),wt(t,e)},St=$,kt=function(t){var e=Tt(t,"string");return St(e)?e:String(e)},Ot=E,At=c.document,jt=Ot(At)&&Ot(At.createElement),Et=function(t){return jt?At.createElement(t):{}},Ct=Et,Rt=!h&&!l((function(){return 7!=Object.defineProperty(Ct("div"),"a",{get:function(){return 7}}).a})),Lt=h,Pt=d,It=b,Bt=j,Mt=kt,Dt=it,zt=Rt,Ft=Object.getOwnPropertyDescriptor;f.f=Lt?Ft:function(t,e){if(t=Bt(t),e=Mt(e),zt)try{return Ft(t,e)}catch(t){}if(Dt(t,e))return It(!Pt.f.call(t,e),t[e])};var Nt={},Ut=E,qt=function(t){if(!Ut(t))throw TypeError(String(t)+" is not an object");return t},Yt=h,Gt=Rt,Vt=qt,$t=kt,Wt=Object.defineProperty;Nt.f=Yt?Wt:function(t,e,r){if(Vt(t),e=$t(e),Vt(r),Gt)try{return Wt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Kt=Nt,Ht=b,Qt=h?function(t,e,r){return Kt.f(t,e,Ht(1,r))}:function(t,e,r){return t[e]=r,t},Xt={exports:{}},Jt=Z,Zt=Function.toString;"function"!=typeof Jt.inspectSource&&(Jt.inspectSource=function(t){return Zt.call(t)});var te,ee,re,ne=Jt.inspectSource,oe=ne,ie=c.WeakMap,ae="function"==typeof ie&&/native code/.test(oe(ie)),ue=K.exports,se=st,ce=ue("keys"),fe=function(t){return ce[t]||(ce[t]=se(t))},le={},he=ae,de=E,pe=Qt,ve=it,ye=Z,ge=fe,me=le,be="Object already initialized",_e=c.WeakMap;if(he||ye.state){var we=ye.state||(ye.state=new _e),xe=we.get,Te=we.has,Se=we.set;te=function(t,e){if(Te.call(we,t))throw new TypeError(be);return e.facade=t,Se.call(we,t,e),e},ee=function(t){return xe.call(we,t)||{}},re=function(t){return Te.call(we,t)}}else{var ke=ge("state");me[ke]=!0,te=function(t,e){if(ve(t,ke))throw new TypeError(be);return e.facade=t,pe(t,ke,e),e},ee=function(t){return ve(t,ke)?t[ke]:{}},re=function(t){return ve(t,ke)}}var Oe={set:te,get:ee,has:re,enforce:function(t){return re(t)?ee(t):te(t,{})},getterFor:function(t){return function(e){var r;if(!de(e)||(r=ee(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Ae=c,je=Qt,Ee=it,Ce=Q,Re=ne,Le=Oe.get,Pe=Oe.enforce,Ie=String(String).split("String");(Xt.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Ee(r,"name")||je(r,"name",e),(o=Pe(r)).source||(o.source=Ie.join("string"==typeof e?e:""))),t!==Ae?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:je(t,e,r)):a?t[e]=r:Ce(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Le(this).source||Re(this)}));var Be={},Me=Math.ceil,De=Math.floor,ze=function(t){return isNaN(t=+t)?0:(t>0?De:Me)(t)},Fe=ze,Ne=Math.min,Ue=function(t){return t>0?Ne(Fe(t),9007199254740991):0},qe=ze,Ye=Math.max,Ge=Math.min,Ve=function(t,e){var r=qe(t);return r<0?Ye(r+e,0):Ge(r,e)},$e=j,We=Ue,Ke=Ve,He=function(t){return function(e,r,n){var o,i=$e(e),a=We(i.length),u=Ke(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Qe={includes:He(!0),indexOf:He(!1)},Xe=it,Je=j,Ze=Qe.indexOf,tr=le,er=function(t,e){var r,n=Je(t),o=0,i=[];for(r in n)!Xe(tr,r)&&Xe(n,r)&&i.push(r);for(;e.length>o;)Xe(n,r=e[o++])&&(~Ze(i,r)||i.push(r));return i},rr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nr=er,or=rr.concat("length","prototype");Be.f=Object.getOwnPropertyNames||function(t){return nr(t,or)};var ir={};ir.f=Object.getOwnPropertySymbols;var ar,ur=Be,sr=ir,cr=qt,fr=L("Reflect","ownKeys")||function(t){var e=ur.f(cr(t)),r=sr.f;return r?e.concat(r(t)):e},lr=it,hr=fr,dr=f,pr=Nt,vr=function(t,e){for(var r=hr(e),n=pr.f,o=dr.f,i=0;i<r.length;i++){var a=r[i];lr(t,a)||n(t,a,o(e,a))}},yr=l,gr=/#|\.prototype\./,mr=function(t,e){var r=_r[br(t)];return r==xr||r!=wr&&("function"==typeof e?yr(e):!!e)},br=mr.normalize=function(t){return String(t).replace(gr,".").toLowerCase()},_r=mr.data={},wr=mr.NATIVE="N",xr=mr.POLYFILL="P",Tr=mr,Sr=c,kr=f.f,Or=Qt,Ar=Xt.exports,jr=Q,Er=vr,Cr=Tr,Rr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,c=t.stat;if(r=s?Sr:c?Sr[u]||jr(u,{}):(Sr[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=kr(r,n))&&a.value:r[n],!Cr(s?n:u+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Er(i,o)}(t.sham||o&&o.sham)&&Or(i,"sham",!0),Ar(r,n,i,t)}},Lr=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Pr=Lr,Ir=function(t,e,r){if(Pr(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},Br=w,Mr=Array.isArray||function(t){return"Array"==Br(t)},Dr=E,zr=Mr,Fr=mt("species"),Nr=function(t){var e;return zr(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!zr(e.prototype)?Dr(e)&&null===(e=e[Fr])&&(e=void 0):e=void 0),void 0===e?Array:e},Ur=function(t,e){return new(Nr(t))(0===e?0:e)},qr=Ir,Yr=S,Gr=rt,Vr=Ue,$r=Ur,Wr=[].push,Kr=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(s,c,f,l){for(var h,d,p=Gr(s),v=Yr(p),y=qr(c,f,3),g=Vr(v.length),m=0,b=l||$r,_=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(d=y(h=v[m],m,p),t))if(e)_[m]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Wr.call(_,h)}else switch(t){case 4:return!1;case 7:Wr.call(_,h)}return i?-1:n||o?o:_}},Hr={forEach:Kr(0),map:Kr(1),filter:Kr(2),some:Kr(3),every:Kr(4),find:Kr(5),findIndex:Kr(6),filterReject:Kr(7)},Qr=er,Xr=rr,Jr=Object.keys||function(t){return Qr(t,Xr)},Zr=Nt,tn=qt,en=Jr,rn=h?Object.defineProperties:function(t,e){tn(t);for(var r,n=en(e),o=n.length,i=0;o>i;)Zr.f(t,r=n[i++],e[r]);return t},nn=L("document","documentElement"),on=qt,an=rn,un=rr,sn=le,cn=nn,fn=Et,ln=fe("IE_PROTO"),hn=function(){},dn=function(t){return"<script>"+t+"</"+"script>"},pn=function(t){t.write(dn("")),t.close();var e=t.parentWindow.Object;return t=null,e},vn=function(){try{ar=new ActiveXObject("htmlfile")}catch(t){}var t,e;vn="undefined"!=typeof document?document.domain&&ar?pn(ar):((e=fn("iframe")).style.display="none",cn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(dn("document.F=Object")),t.close(),t.F):pn(ar);for(var r=un.length;r--;)delete vn.prototype[un[r]];return vn()};sn[ln]=!0;var yn=Object.create||function(t,e){var r;return null!==t?(hn.prototype=on(t),r=new hn,hn.prototype=null,r[ln]=t):r=vn(),void 0===e?r:an(r,e)},gn=yn,mn=Nt,bn=mt("unscopables"),_n=Array.prototype;null==_n[bn]&&mn.f(_n,bn,{configurable:!0,value:gn(null)});var wn=function(t){_n[bn][t]=!0},xn=Rr,Tn=Hr.find,Sn=wn,kn="find",On=!0;kn in[]&&Array(1).find((function(){On=!1})),xn({target:"Array",proto:!0,forced:On},{find:function(t){return Tn(this,t,arguments.length>1?arguments[1]:void 0)}}),Sn(kn);var An=kt,jn=Nt,En=b,Cn=function(t,e,r){var n=An(e);n in t?jn.f(t,n,En(0,r)):t[n]=r},Rn=l,Ln=N,Pn=mt("species"),In=function(t){return Ln>=51||!Rn((function(){var e=[];return(e.constructor={})[Pn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Bn=Rr,Mn=E,Dn=Mr,zn=Ve,Fn=Ue,Nn=j,Un=Cn,qn=mt,Yn=In("slice"),Gn=qn("species"),Vn=[].slice,$n=Math.max;Bn({target:"Array",proto:!0,forced:!Yn},{slice:function(t,e){var r,n,o,i=Nn(this),a=Fn(i.length),u=zn(t,a),s=zn(void 0===e?a:e,a);if(Dn(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!Dn(r.prototype)?Mn(r)&&null===(r=r[Gn])&&(r=void 0):r=void 0,r===Array||void 0===r))return Vn.call(i,u,s);for(n=new(void 0===r?Array:r)($n(s-u,0)),o=0;u<s;u++,o++)u in i&&Un(n,o,i[u]);return n.length=o,n}});var Wn=rt,Kn=Jr;Rr({target:"Object",stat:!0,forced:l((function(){Kn(1)}))},{keys:function(t){return Kn(Wn(t))}});var Hn=$,Qn=function(t){if(Hn(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},Xn={},Jn=j,Zn=Be.f,to={}.toString,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Xn.f=function(t){return eo&&"[object Window]"==to.call(t)?function(t){try{return Zn(t)}catch(t){return eo.slice()}}(t):Zn(Jn(t))};var ro={},no=mt;ro.f=no;var oo=c,io=it,ao=ro,uo=Nt.f,so=function(t){var e=oo.Symbol||(oo.Symbol={});io(e,t)||uo(e,t,{value:ao.f(t)})},co=Nt.f,fo=it,lo=mt("toStringTag"),ho=function(t,e,r){t&&!fo(t=r?t:t.prototype,lo)&&co(t,lo,{configurable:!0,value:e})},po=Rr,vo=c,yo=L,go=h,mo=Y,bo=l,_o=it,wo=Mr,xo=E,To=$,So=qt,ko=rt,Oo=j,Ao=kt,jo=Qn,Eo=b,Co=yn,Ro=Jr,Lo=Be,Po=Xn,Io=ir,Bo=f,Mo=Nt,Do=d,zo=Qt,Fo=Xt.exports,No=K.exports,Uo=le,qo=st,Yo=mt,Go=ro,Vo=so,$o=ho,Wo=Oe,Ko=Hr.forEach,Ho=fe("hidden"),Qo="Symbol",Xo=Yo("toPrimitive"),Jo=Wo.set,Zo=Wo.getterFor(Qo),ti=Object.prototype,ei=vo.Symbol,ri=yo("JSON","stringify"),ni=Bo.f,oi=Mo.f,ii=Po.f,ai=Do.f,ui=No("symbols"),si=No("op-symbols"),ci=No("string-to-symbol-registry"),fi=No("symbol-to-string-registry"),li=No("wks"),hi=vo.QObject,di=!hi||!hi.prototype||!hi.prototype.findChild,pi=go&&bo((function(){return 7!=Co(oi({},"a",{get:function(){return oi(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=ni(ti,e);n&&delete ti[e],oi(t,e,r),n&&t!==ti&&oi(ti,e,n)}:oi,vi=function(t,e){var r=ui[t]=Co(ei.prototype);return Jo(r,{type:Qo,tag:t,description:e}),go||(r.description=e),r},yi=function(t,e,r){t===ti&&yi(si,e,r),So(t);var n=Ao(e);return So(r),_o(ui,n)?(r.enumerable?(_o(t,Ho)&&t[Ho][n]&&(t[Ho][n]=!1),r=Co(r,{enumerable:Eo(0,!1)})):(_o(t,Ho)||oi(t,Ho,Eo(1,{})),t[Ho][n]=!0),pi(t,n,r)):oi(t,n,r)},gi=function(t,e){So(t);var r=Oo(e),n=Ro(r).concat(wi(r));return Ko(n,(function(e){go&&!mi.call(r,e)||yi(t,e,r[e])})),t},mi=function(t){var e=Ao(t),r=ai.call(this,e);return!(this===ti&&_o(ui,e)&&!_o(si,e))&&(!(r||!_o(this,e)||!_o(ui,e)||_o(this,Ho)&&this[Ho][e])||r)},bi=function(t,e){var r=Oo(t),n=Ao(e);if(r!==ti||!_o(ui,n)||_o(si,n)){var o=ni(r,n);return!o||!_o(ui,n)||_o(r,Ho)&&r[Ho][n]||(o.enumerable=!0),o}},_i=function(t){var e=ii(Oo(t)),r=[];return Ko(e,(function(t){_o(ui,t)||_o(Uo,t)||r.push(t)})),r},wi=function(t){var e=t===ti,r=ii(e?si:Oo(t)),n=[];return Ko(r,(function(t){!_o(ui,t)||e&&!_o(ti,t)||n.push(ui[t])})),n};(mo||(Fo((ei=function(){if(this instanceof ei)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?jo(arguments[0]):void 0,e=qo(t),r=function(t){this===ti&&r.call(si,t),_o(this,Ho)&&_o(this[Ho],e)&&(this[Ho][e]=!1),pi(this,e,Eo(1,t))};return go&&di&&pi(ti,e,{configurable:!0,set:r}),vi(e,t)}).prototype,"toString",(function(){return Zo(this).tag})),Fo(ei,"withoutSetter",(function(t){return vi(qo(t),t)})),Do.f=mi,Mo.f=yi,Bo.f=bi,Lo.f=Po.f=_i,Io.f=wi,Go.f=function(t){return vi(Yo(t),t)},go&&(oi(ei.prototype,"description",{configurable:!0,get:function(){return Zo(this).description}}),Fo(ti,"propertyIsEnumerable",mi,{unsafe:!0}))),po({global:!0,wrap:!0,forced:!mo,sham:!mo},{Symbol:ei}),Ko(Ro(li),(function(t){Vo(t)})),po({target:Qo,stat:!0,forced:!mo},{for:function(t){var e=jo(t);if(_o(ci,e))return ci[e];var r=ei(e);return ci[e]=r,fi[r]=e,r},keyFor:function(t){if(!To(t))throw TypeError(t+" is not a symbol");if(_o(fi,t))return fi[t]},useSetter:function(){di=!0},useSimple:function(){di=!1}}),po({target:"Object",stat:!0,forced:!mo,sham:!go},{create:function(t,e){return void 0===e?Co(t):gi(Co(t),e)},defineProperty:yi,defineProperties:gi,getOwnPropertyDescriptor:bi}),po({target:"Object",stat:!0,forced:!mo},{getOwnPropertyNames:_i,getOwnPropertySymbols:wi}),po({target:"Object",stat:!0,forced:bo((function(){Io.f(1)}))},{getOwnPropertySymbols:function(t){return Io.f(ko(t))}}),ri)&&po({target:"JSON",stat:!0,forced:!mo||bo((function(){var t=ei();return"[null]"!=ri([t])||"{}"!=ri({a:t})||"{}"!=ri(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(xo(e)||void 0!==t)&&!To(t))return wo(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!To(e))return e}),o[1]=e,ri.apply(null,o)}});ei.prototype[Xo]||zo(ei.prototype,Xo,ei.prototype.valueOf),$o(ei,Qo),Uo[Ho]=!0;var xi=Hr.filter;Rr({target:"Array",proto:!0,forced:!In("filter")},{filter:function(t){return xi(this,t,arguments.length>1?arguments[1]:void 0)}});var Ti=Rr,Si=l,ki=j,Oi=f.f,Ai=h,ji=Si((function(){Oi(1)}));Ti({target:"Object",stat:!0,forced:!Ai||ji,sham:!Ai},{getOwnPropertyDescriptor:function(t,e){return Oi(ki(t),e)}});var Ei={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},Ci=l,Ri=function(t,e){var r=[][t];return!!r&&Ci((function(){r.call(null,e||function(){throw 1},1)}))},Li=Hr.forEach,Pi=c,Ii=Ei,Bi=Ri("forEach")?[].forEach:function(t){return Li(this,t,arguments.length>1?arguments[1]:void 0)},Mi=Qt;for(var Di in Ii){var zi=Pi[Di],Fi=zi&&zi.prototype;if(Fi&&Fi.forEach!==Bi)try{Mi(Fi,"forEach",Bi)}catch(t){Fi.forEach=Bi}}var Ni=fr,Ui=j,qi=f,Yi=Cn;Rr({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Ui(t),o=qi.f,i=Ni(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Yi(a,e,r);return a}});var Gi={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?p:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};b[i]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==r&&n.call(w,i)&&(b=w);var x=m.prototype=y.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function E(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,g.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},T(S.prototype),S.prototype[a]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(x),s(x,u,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},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 r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,v):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),v},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),A(r),v}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(Gi);var Vi=Gi.exports,$i=Lr,Wi=E,Ki=[].slice,Hi={},Qi=function(t,e,r){if(!(e in Hi)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Hi[e]=Function("C,a","return new C("+n.join(",")+")")}return Hi[e](t,r)},Xi=Function.bind||function(t){var e=$i(this),r=Ki.call(arguments,1),n=function(){var o=r.concat(Ki.call(arguments));return this instanceof n?Qi(e,o.length,o):e.apply(t,o)};return Wi(e.prototype)&&(n.prototype=e.prototype),n},Ji=Rr,Zi=Lr,ta=qt,ea=E,ra=yn,na=Xi,oa=l,ia=L("Reflect","construct"),aa=oa((function(){function t(){}return!(ia((function(){}),[],t)instanceof t)})),ua=!oa((function(){ia((function(){}))})),sa=aa||ua;function ca(t,e){return(ca=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fa(t){return(fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function la(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ha(t,e){if(e&&("object"===fa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return la(t)}function da(t){return(da=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function pa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function va(t,e,r){return(va=pa()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&ca(o,r.prototype),o}).apply(null,arguments)}function ya(t){var e="function"==typeof Map?new Map:void 0;return(ya=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return va(t,arguments,da(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ca(n,t)})(t)}Ji({target:"Reflect",stat:!0,forced:sa,sham:sa},{construct:function(t,e){Zi(t),ta(e);var r=arguments.length<3?t:Zi(arguments[2]);if(ua&&!aa)return ia(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 n.push.apply(n,e),new(na.apply(t,n))}var o=r.prototype,i=ra(ea(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return ea(a)?a:i}});var ga,ma,ba,_a={},wa=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xa=it,Ta=rt,Sa=wa,ka=fe("IE_PROTO"),Oa=Object.prototype,Aa=Sa?Object.getPrototypeOf:function(t){return t=Ta(t),xa(t,ka)?t[ka]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Oa:null},ja=l,Ea=Aa,Ca=Qt,Ra=it,La=mt("iterator"),Pa=!1;[].keys&&("next"in(ba=[].keys())?(ma=Ea(Ea(ba)))!==Object.prototype&&(ga=ma):Pa=!0),(null==ga||ja((function(){var t={};return ga[La].call(t)!==t})))&&(ga={}),Ra(ga,La)||Ca(ga,La,(function(){return this}));var Ia={IteratorPrototype:ga,BUGGY_SAFARI_ITERATORS:Pa},Ba=Ia.IteratorPrototype,Ma=yn,Da=b,za=ho,Fa=_a,Na=function(){return this},Ua=E,qa=qt,Ya=function(t){if(!Ua(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Ga=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return qa(r),Ya(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Va=Rr,$a=function(t,e,r){var n=e+" Iterator";return t.prototype=Ma(Ba,{next:Da(1,r)}),za(t,n,!1),Fa[n]=Na,t},Wa=Aa,Ka=Ga,Ha=ho,Qa=Qt,Xa=Xt.exports,Ja=_a,Za=Ia.IteratorPrototype,tu=Ia.BUGGY_SAFARI_ITERATORS,eu=mt("iterator"),ru="keys",nu="values",ou="entries",iu=function(){return this},au=function(t,e,r,n,o,i,a){$a(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!tu&&t in d)return d[t];switch(t){case ru:case nu:case ou:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,d=t.prototype,p=d[eu]||d["@@iterator"]||o&&d[o],v=!tu&&p||f(o),y="Array"==e&&d.entries||p;if(y&&(u=Wa(y.call(new t)),Za!==Object.prototype&&u.next&&(Wa(u)!==Za&&(Ka?Ka(u,Za):"function"!=typeof u[eu]&&Qa(u,eu,iu)),Ha(u,l,!0))),o==nu&&p&&p.name!==nu&&(h=!0,v=function(){return p.call(this)}),d[eu]!==v&&Qa(d,eu,v),Ja[e]=v,o)if(s={values:f(nu),keys:i?v:f(ru),entries:f(ou)},a)for(c in s)(tu||h||!(c in d))&&Xa(d,c,s[c]);else Va({target:e,proto:!0,forced:tu||h},s);return s},uu=j,su=wn,cu=_a,fu=Oe,lu=au,hu="Array Iterator",du=fu.set,pu=fu.getterFor(hu),vu=lu(Array,"Array",(function(t,e){du(this,{type:hu,target:uu(t),index:0,kind:e})}),(function(){var t=pu(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");cu.Arguments=cu.Array,su("keys"),su("values"),su("entries");var yu={};yu[mt("toStringTag")]="z";var gu="[object z]"===String(yu),mu=gu,bu=w,_u=mt("toStringTag"),wu="Arguments"==bu(function(){return arguments}()),xu=mu?bu: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(t){}}(e=Object(t),_u))?r:wu?bu(e):"Object"==(n=bu(e))&&"function"==typeof e.callee?"Arguments":n},Tu=xu,Su=gu?{}.toString:function(){return"[object "+Tu(this)+"]"},ku=gu,Ou=Xt.exports,Au=Su;ku||Ou(Object.prototype,"toString",Au,{unsafe:!0});var ju=ze,Eu=Qn,Cu=k,Ru=function(t){return function(e,r){var n,o,i=Eu(Cu(e)),a=ju(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Lu={codeAt:Ru(!1),charAt:Ru(!0)},Pu=Lu.charAt,Iu=Qn,Bu=Oe,Mu=au,Du="String Iterator",zu=Bu.set,Fu=Bu.getterFor(Du);Mu(String,"String",(function(t){zu(this,{type:Du,string:Iu(t),index:0})}),(function(){var t,e=Fu(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Pu(r,n),e.index+=t.length,{value:t,done:!1})}));var Nu=c,Uu=Ei,qu=vu,Yu=Qt,Gu=mt,Vu=Gu("iterator"),$u=Gu("toStringTag"),Wu=qu.values;for(var Ku in Uu){var Hu=Nu[Ku],Qu=Hu&&Hu.prototype;if(Qu){if(Qu[Vu]!==Wu)try{Yu(Qu,Vu,Wu)}catch(t){Qu[Vu]=Wu}if(Qu[$u]||Yu(Qu,$u,Ku),Uu[Ku])for(var Xu in qu)if(Qu[Xu]!==qu[Xu])try{Yu(Qu,Xu,qu[Xu])}catch(t){Qu[Xu]=qu[Xu]}}}var Ju=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Zu=h,ts=l,es=Jr,rs=ir,ns=d,os=rt,is=S,as=Object.assign,us=Object.defineProperty,ss=!as||ts((function(){if(Zu&&1!==as({b:1},as(us({},"a",{enumerable:!0,get:function(){us(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=as({},t)[r]||es(as({},e)).join("")!=n}))?function(t,e){for(var r=os(t),n=arguments.length,o=1,i=rs.f,a=ns.f;n>o;)for(var u,s=is(arguments[o++]),c=i?es(s).concat(i(s)):es(s),f=c.length,l=0;f>l;)u=c[l++],Zu&&!a.call(s,u)||(r[u]=s[u]);return r}:as,cs=qt,fs=function(t){var e=t.return;if(void 0!==e)return cs(e.call(t)).value},ls=qt,hs=fs,ds=_a,ps=mt("iterator"),vs=Array.prototype,ys=function(t){return void 0!==t&&(ds.Array===t||vs[ps]===t)},gs=xu,ms=_a,bs=mt("iterator"),_s=function(t){if(null!=t)return t[bs]||t["@@iterator"]||ms[gs(t)]},ws=Ir,xs=rt,Ts=function(t,e,r,n){try{return n?e(ls(r)[0],r[1]):e(r)}catch(e){throw hs(t),e}},Ss=ys,ks=Ue,Os=Cn,As=_s,js=Xt.exports,Es=function(t,e,r){for(var n in e)js(t,n,e[n],r);return t},Cs=c.Promise,Rs=L,Ls=Nt,Ps=h,Is=mt("species"),Bs=function(t){var e=Rs(t),r=Ls.f;Ps&&e&&!e[Is]&&r(e,Is,{configurable:!0,get:function(){return this}})},Ms=qt,Ds=ys,zs=Ue,Fs=Ir,Ns=_s,Us=fs,qs=function(t,e){this.stopped=t,this.result=e},Ys=mt("iterator"),Gs=!1;try{var Vs=0,$s={next:function(){return{done:!!Vs++}},return:function(){Gs=!0}};$s[Ys]=function(){return this},Array.from($s,(function(){throw 2}))}catch(t){}var Ws,Ks,Hs,Qs,Xs=function(t,e){if(!e&&!Gs)return!1;var r=!1;try{var n={};n[Ys]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Js=qt,Zs=Lr,tc=mt("species"),ec=function(t,e){var r,n=Js(t).constructor;return void 0===n||null==(r=Js(n)[tc])?e:Zs(r)},rc=/(?:ipad|iphone|ipod).*applewebkit/i.test(P),nc="process"==w(c.process),oc=c,ic=l,ac=Ir,uc=nn,sc=Et,cc=rc,fc=nc,lc=oc.setImmediate,hc=oc.clearImmediate,dc=oc.process,pc=oc.MessageChannel,vc=oc.Dispatch,yc=0,gc={},mc="onreadystatechange";try{Ws=oc.location}catch(t){}var bc=function(t){if(gc.hasOwnProperty(t)){var e=gc[t];delete gc[t],e()}},_c=function(t){return function(){bc(t)}},wc=function(t){bc(t.data)},xc=function(t){oc.postMessage(String(t),Ws.protocol+"//"+Ws.host)};lc&&hc||(lc=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return gc[++yc]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Ks(yc),yc},hc=function(t){delete gc[t]},fc?Ks=function(t){dc.nextTick(_c(t))}:vc&&vc.now?Ks=function(t){vc.now(_c(t))}:pc&&!cc?(Qs=(Hs=new pc).port2,Hs.port1.onmessage=wc,Ks=ac(Qs.postMessage,Qs,1)):oc.addEventListener&&"function"==typeof postMessage&&!oc.importScripts&&Ws&&"file:"!==Ws.protocol&&!ic(xc)?(Ks=xc,oc.addEventListener("message",wc,!1)):Ks=mc in sc("script")?function(t){uc.appendChild(sc("script")).onreadystatechange=function(){uc.removeChild(this),bc(t)}}:function(t){setTimeout(_c(t),0)});var Tc,Sc,kc,Oc,Ac,jc,Ec,Cc,Rc={set:lc,clear:hc},Lc=c,Pc=/ipad|iphone|ipod/i.test(P)&&void 0!==Lc.Pebble,Ic=/web0s(?!.*chrome)/i.test(P),Bc=c,Mc=f.f,Dc=Rc.set,zc=rc,Fc=Pc,Nc=Ic,Uc=nc,qc=Bc.MutationObserver||Bc.WebKitMutationObserver,Yc=Bc.document,Gc=Bc.process,Vc=Bc.Promise,$c=Mc(Bc,"queueMicrotask"),Wc=$c&&$c.value;Wc||(Tc=function(){var t,e;for(Uc&&(t=Gc.domain)&&t.exit();Sc;){e=Sc.fn,Sc=Sc.next;try{e()}catch(t){throw Sc?Oc():kc=void 0,t}}kc=void 0,t&&t.enter()},zc||Uc||Nc||!qc||!Yc?!Fc&&Vc&&Vc.resolve?((Ec=Vc.resolve(void 0)).constructor=Vc,Cc=Ec.then,Oc=function(){Cc.call(Ec,Tc)}):Oc=Uc?function(){Gc.nextTick(Tc)}:function(){Dc.call(Bc,Tc)}:(Ac=!0,jc=Yc.createTextNode(""),new qc(Tc).observe(jc,{characterData:!0}),Oc=function(){jc.data=Ac=!Ac}));var Kc=Wc||function(t){var e={fn:t,next:void 0};kc&&(kc.next=e),Sc||(Sc=e,Oc()),kc=e},Hc={},Qc=Lr,Xc=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Qc(e),this.reject=Qc(r)};Hc.f=function(t){return new Xc(t)};var Jc,Zc,tf,ef,rf=qt,nf=E,of=Hc,af=function(t,e){if(rf(t),nf(e)&&e.constructor===t)return e;var r=of.f(t);return(0,r.resolve)(e),r.promise},uf=c,sf="object"==typeof window,cf=Rr,ff=c,lf=L,hf=Cs,df=Xt.exports,pf=Es,vf=Ga,yf=ho,gf=Bs,mf=E,bf=Lr,_f=Ju,wf=ne,xf=function(t,e,r){var n,o,i,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),p=Fs(e,f,1+l+d),v=function(t){return n&&Us(n),new qs(!0,t)},y=function(t){return l?(Ms(t),d?p(t[0],t[1],v):p(t[0],t[1])):d?p(t,v):p(t)};if(h)n=t;else{if("function"!=typeof(o=Ns(t)))throw TypeError("Target is not iterable");if(Ds(o)){for(i=0,a=zs(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof qs)return u;return new qs(!1)}n=o.call(t)}for(s=n.next;!(c=s.call(n)).done;){try{u=y(c.value)}catch(t){throw Us(n),t}if("object"==typeof u&&u&&u instanceof qs)return u}return new qs(!1)},Tf=Xs,Sf=ec,kf=Rc.set,Of=Kc,Af=af,jf=function(t,e){var r=uf.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))},Ef=Hc,Cf=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Rf=Oe,Lf=Tr,Pf=sf,If=nc,Bf=N,Mf=mt("species"),Df="Promise",zf=Rf.get,Ff=Rf.set,Nf=Rf.getterFor(Df),Uf=hf&&hf.prototype,qf=hf,Yf=Uf,Gf=ff.TypeError,Vf=ff.document,$f=ff.process,Wf=Ef.f,Kf=Wf,Hf=!!(Vf&&Vf.createEvent&&ff.dispatchEvent),Qf="function"==typeof PromiseRejectionEvent,Xf="unhandledrejection",Jf=!1,Zf=Lf(Df,(function(){var t=wf(qf),e=t!==String(qf);if(!e&&66===Bf)return!0;if(Bf>=51&&/native code/.test(t))return!1;var r=new qf((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Mf]=n,!(Jf=r.then((function(){}))instanceof n)||!e&&Pf&&!Qf})),tl=Zf||!Tf((function(t){qf.all(t).catch((function(){}))})),el=function(t){var e;return!(!mf(t)||"function"!=typeof(e=t.then))&&e},rl=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;Of((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,s,c=r[i++],f=o?c.ok:c.fail,l=c.resolve,h=c.reject,d=c.domain;try{f?(o||(2===t.rejection&&al(t),t.rejection=1),!0===f?a=n:(d&&d.enter(),a=f(n),d&&(d.exit(),s=!0)),a===c.promise?h(Gf("Promise-chain cycle")):(u=el(a))?u.call(a,l,h):l(a)):h(n)}catch(t){d&&!s&&d.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ol(t)}))}},nl=function(t,e,r){var n,o;Hf?((n=Vf.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),ff.dispatchEvent(n)):n={promise:e,reason:r},!Qf&&(o=ff["on"+t])?o(n):t===Xf&&jf("Unhandled promise rejection",r)},ol=function(t){kf.call(ff,(function(){var e,r=t.facade,n=t.value;if(il(t)&&(e=Cf((function(){If?$f.emit("unhandledRejection",n,r):nl(Xf,r,n)})),t.rejection=If||il(t)?2:1,e.error))throw e.value}))},il=function(t){return 1!==t.rejection&&!t.parent},al=function(t){kf.call(ff,(function(){var e=t.facade;If?$f.emit("rejectionHandled",e):nl("rejectionhandled",e,t.value)}))},ul=function(t,e,r){return function(n){t(e,n,r)}},sl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,rl(t,!0))},cl=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Gf("Promise can't be resolved itself");var n=el(e);n?Of((function(){var r={done:!1};try{n.call(e,ul(cl,r,t),ul(sl,r,t))}catch(e){sl(r,e,t)}})):(t.value=e,t.state=1,rl(t,!1))}catch(e){sl({done:!1},e,t)}}};if(Zf&&(Yf=(qf=function(t){_f(this,qf,Df),bf(t),Jc.call(this);var e=zf(this);try{t(ul(cl,e),ul(sl,e))}catch(t){sl(e,t)}}).prototype,(Jc=function(t){Ff(this,{type:Df,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=pf(Yf,{then:function(t,e){var r=Nf(this),n=Wf(Sf(this,qf));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=If?$f.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&rl(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Zc=function(){var t=new Jc,e=zf(t);this.promise=t,this.resolve=ul(cl,e),this.reject=ul(sl,e)},Ef.f=Wf=function(t){return t===qf||t===tf?new Zc(t):Kf(t)},"function"==typeof hf&&Uf!==Object.prototype)){ef=Uf.then,Jf||(df(Uf,"then",(function(t,e){var r=this;return new qf((function(t,e){ef.call(r,t,e)})).then(t,e)}),{unsafe:!0}),df(Uf,"catch",Yf.catch,{unsafe:!0}));try{delete Uf.constructor}catch(t){}vf&&vf(Uf,Yf)}cf({global:!0,wrap:!0,forced:Zf},{Promise:qf}),yf(qf,Df,!1),gf(Df),tf=lf(Df),cf({target:Df,stat:!0,forced:Zf},{reject:function(t){var e=Wf(this);return e.reject.call(void 0,t),e.promise}}),cf({target:Df,stat:!0,forced:Zf},{resolve:function(t){return Af(this,t)}}),cf({target:Df,stat:!0,forced:tl},{all:function(t){var e=this,r=Wf(e),n=r.resolve,o=r.reject,i=Cf((function(){var r=bf(e.resolve),i=[],a=0,u=1;xf(t,(function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Wf(e),n=r.reject,o=Cf((function(){var o=bf(e.resolve);xf(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var fl=qt,ll=function(){var t=fl(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},hl={},dl=l,pl=c.RegExp;hl.UNSUPPORTED_Y=dl((function(){var t=pl("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),hl.BROKEN_CARET=dl((function(){var t=pl("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var vl,yl,gl=l,ml=c.RegExp,bl=gl((function(){var t=ml(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_l=l,wl=c.RegExp,xl=_l((function(){var t=wl("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Tl=Qn,Sl=ll,kl=hl,Ol=K.exports,Al=yn,jl=Oe.get,El=bl,Cl=xl,Rl=RegExp.prototype.exec,Ll=Ol("native-string-replace",String.prototype.replace),Pl=Rl,Il=(vl=/a/,yl=/b*/g,Rl.call(vl,"a"),Rl.call(yl,"a"),0!==vl.lastIndex||0!==yl.lastIndex),Bl=kl.UNSUPPORTED_Y||kl.BROKEN_CARET,Ml=void 0!==/()??/.exec("")[1];(Il||Ml||Bl||El||Cl)&&(Pl=function(t){var e,r,n,o,i,a,u,s=this,c=jl(s),f=Tl(t),l=c.raw;if(l)return l.lastIndex=s.lastIndex,e=Pl.call(l,f),s.lastIndex=l.lastIndex,e;var h=c.groups,d=Bl&&s.sticky,p=Sl.call(s),v=s.source,y=0,g=f;if(d&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=f.slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==f.charAt(s.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",p)),Ml&&(r=new RegExp("^"+v+"$(?!\\s)",p)),Il&&(n=s.lastIndex),o=Rl.call(d?r:s,g),d?o?(o.input=o.input.slice(y),o[0]=o[0].slice(y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Il&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Ml&&o&&o.length>1&&Ll.call(o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=Al(null),i=0;i<h.length;i++)a[(u=h[i])[0]]=o[u[1]];return o});var Dl=Pl;Rr({target:"RegExp",proto:!0,forced:/./.exec!==Dl},{exec:Dl});var zl=ss;Rr({target:"Object",stat:!0,forced:Object.assign!==zl},{assign:zl});var Fl=Rr,Nl=l,Ul=Mr,ql=E,Yl=rt,Gl=Ue,Vl=Cn,$l=Ur,Wl=In,Kl=N,Hl=mt("isConcatSpreadable"),Ql=9007199254740991,Xl="Maximum allowed index exceeded",Jl=Kl>=51||!Nl((function(){var t=[];return t[Hl]=!1,t.concat()[0]!==t})),Zl=Wl("concat"),th=function(t){if(!ql(t))return!1;var e=t[Hl];return void 0!==e?!!e:Ul(t)};Fl({target:"Array",proto:!0,forced:!Jl||!Zl},{concat:function(t){var e,r,n,o,i,a=Yl(this),u=$l(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(th(i=-1===e?a:arguments[e])){if(s+(o=Gl(i.length))>Ql)throw TypeError(Xl);for(r=0;r<o;r++,s++)r in i&&Vl(u,s,i[r])}else{if(s>=Ql)throw TypeError(Xl);Vl(u,s++,i)}return u.length=s,u}});var eh=Hr.map;Rr({target:"Array",proto:!0,forced:!In("map")},{map:function(t){return eh(this,t,arguments.length>1?arguments[1]:void 0)}});var rh=Rr,nh=Cs,oh=l,ih=L,ah=ec,uh=af,sh=Xt.exports;if(rh({target:"Promise",proto:!0,real:!0,forced:!!nh&&oh((function(){nh.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=ah(this,ih("Promise")),r="function"==typeof t;return this.then(r?function(r){return uh(e,t()).then((function(){return r}))}:t,r?function(r){return uh(e,t()).then((function(){throw r}))}:t)}}),"function"==typeof nh){var ch=ih("Promise").prototype.finally;nh.prototype.finally!==ch&&sh(nh.prototype,"finally",ch,{unsafe:!0})}var fh,lh,hh,dh={exports:{}},ph="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,vh=ph,yh=h,gh=c,mh=E,bh=it,_h=xu,wh=Qt,xh=Xt.exports,Th=Nt.f,Sh=Aa,kh=Ga,Oh=mt,Ah=st,jh=gh.Int8Array,Eh=jh&&jh.prototype,Ch=gh.Uint8ClampedArray,Rh=Ch&&Ch.prototype,Lh=jh&&Sh(jh),Ph=Eh&&Sh(Eh),Ih=Object.prototype,Bh=Ih.isPrototypeOf,Mh=Oh("toStringTag"),Dh=Ah("TYPED_ARRAY_TAG"),zh=Ah("TYPED_ARRAY_CONSTRUCTOR"),Fh=vh&&!!kh&&"Opera"!==_h(gh.opera),Nh=!1,Uh={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},qh={BigInt64Array:8,BigUint64Array:8},Yh=function(t){if(!mh(t))return!1;var e=_h(t);return bh(Uh,e)||bh(qh,e)};for(fh in Uh)(hh=(lh=gh[fh])&&lh.prototype)?wh(hh,zh,lh):Fh=!1;for(fh in qh)(hh=(lh=gh[fh])&&lh.prototype)&&wh(hh,zh,lh);if((!Fh||"function"!=typeof Lh||Lh===Function.prototype)&&(Lh=function(){throw TypeError("Incorrect invocation")},Fh))for(fh in Uh)gh[fh]&&kh(gh[fh],Lh);if((!Fh||!Ph||Ph===Ih)&&(Ph=Lh.prototype,Fh))for(fh in Uh)gh[fh]&&kh(gh[fh].prototype,Ph);if(Fh&&Sh(Rh)!==Ph&&kh(Rh,Ph),yh&&!bh(Ph,Mh))for(fh in Nh=!0,Th(Ph,Mh,{get:function(){return mh(this)?this[Dh]:void 0}}),Uh)gh[fh]&&wh(gh[fh],Dh,fh);var Gh={NATIVE_ARRAY_BUFFER_VIEWS:Fh,TYPED_ARRAY_CONSTRUCTOR:zh,TYPED_ARRAY_TAG:Nh&&Dh,aTypedArray:function(t){if(Yh(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(kh&&!Bh.call(Lh,t))throw TypeError("Target is not a typed array constructor");return t},exportTypedArrayMethod:function(t,e,r){if(yh){if(r)for(var n in Uh){var o=gh[n];if(o&&bh(o.prototype,t))try{delete o.prototype[t]}catch(t){}}Ph[t]&&!r||xh(Ph,t,r?e:Fh&&Eh[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(yh){if(kh){if(r)for(n in Uh)if((o=gh[n])&&bh(o,t))try{delete o[t]}catch(t){}if(Lh[t]&&!r)return;try{return xh(Lh,t,r?e:Fh&&Lh[t]||e)}catch(t){}}for(n in Uh)!(o=gh[n])||o[t]&&!r||xh(o,t,e)}},isView:function(t){if(!mh(t))return!1;var e=_h(t);return"DataView"===e||bh(Uh,e)||bh(qh,e)},isTypedArray:Yh,TypedArray:Lh,TypedArrayPrototype:Ph},Vh=c,$h=l,Wh=Xs,Kh=Gh.NATIVE_ARRAY_BUFFER_VIEWS,Hh=Vh.ArrayBuffer,Qh=Vh.Int8Array,Xh=!Kh||!$h((function(){Qh(1)}))||!$h((function(){new Qh(-1)}))||!Wh((function(t){new Qh,new Qh(null),new Qh(1.5),new Qh(t)}),!0)||$h((function(){return 1!==new Qh(new Hh(2),1,void 0).length})),Jh=ze,Zh=Ue,td=function(t){if(void 0===t)return 0;var e=Jh(t),r=Zh(e);if(e!==r)throw RangeError("Wrong length or index");return r},ed=Math.abs,rd=Math.pow,nd=Math.floor,od=Math.log,id=Math.LN2,ad=rt,ud=Ve,sd=Ue,cd=function(t){for(var e=ad(this),r=sd(e.length),n=arguments.length,o=ud(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:ud(i,r);a>o;)e[o++]=t;return e},fd=c,ld=h,hd=ph,dd=Qt,pd=Es,vd=l,yd=Ju,gd=ze,md=Ue,bd=td,_d={pack:function(t,e,r){var n,o,i,a=new Array(r),u=8*r-e-1,s=(1<<u)-1,c=s>>1,f=23===e?rd(2,-24)-rd(2,-77):0,l=t<0||0===t&&1/t<0?1:0,h=0;for((t=ed(t))!=t||t===1/0?(o=t!=t?1:0,n=s):(n=nd(od(t)/id),t*(i=rd(2,-n))<1&&(n--,i*=2),(t+=n+c>=1?f/i:f*rd(2,1-c))*i>=2&&(n++,i/=2),n+c>=s?(o=0,n=s):n+c>=1?(o=(t*i-1)*rd(2,e),n+=c):(o=t*rd(2,c-1)*rd(2,e),n=0));e>=8;a[h++]=255&o,o/=256,e-=8);for(n=n<<e|o,u+=e;u>0;a[h++]=255&n,n/=256,u-=8);return a[--h]|=128*l,a},unpack:function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,s=n-1,c=t[s--],f=127&c;for(c>>=7;u>0;f=256*f+t[s],s--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;r=256*r+t[s],s--,u-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:c?-1/0:1/0;r+=rd(2,e),f-=a}return(c?-1:1)*r*rd(2,f-e)}},wd=Aa,xd=Ga,Td=Be.f,Sd=Nt.f,kd=cd,Od=ho,Ad=Oe.get,jd=Oe.set,Ed="ArrayBuffer",Cd="DataView",Rd="Wrong index",Ld=fd.ArrayBuffer,Pd=Ld,Id=fd.DataView,Bd=Id&&Id.prototype,Md=Object.prototype,Dd=fd.RangeError,zd=_d.pack,Fd=_d.unpack,Nd=function(t){return[255&t]},Ud=function(t){return[255&t,t>>8&255]},qd=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Yd=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Gd=function(t){return zd(t,23,4)},Vd=function(t){return zd(t,52,8)},$d=function(t,e){Sd(t.prototype,e,{get:function(){return Ad(this)[e]}})},Wd=function(t,e,r,n){var o=bd(r),i=Ad(t);if(o+e>i.byteLength)throw Dd(Rd);var a=Ad(i.buffer).bytes,u=o+i.byteOffset,s=a.slice(u,u+e);return n?s:s.reverse()},Kd=function(t,e,r,n,o,i){var a=bd(r),u=Ad(t);if(a+e>u.byteLength)throw Dd(Rd);for(var s=Ad(u.buffer).bytes,c=a+u.byteOffset,f=n(+o),l=0;l<e;l++)s[c+l]=f[i?l:e-l-1]};if(hd){if(!vd((function(){Ld(1)}))||!vd((function(){new Ld(-1)}))||vd((function(){return new Ld,new Ld(1.5),new Ld(NaN),Ld.name!=Ed}))){for(var Hd,Qd=(Pd=function(t){return yd(this,Pd),new Ld(bd(t))}).prototype=Ld.prototype,Xd=Td(Ld),Jd=0;Xd.length>Jd;)(Hd=Xd[Jd++])in Pd||dd(Pd,Hd,Ld[Hd]);Qd.constructor=Pd}xd&&wd(Bd)!==Md&&xd(Bd,Md);var Zd=new Id(new Pd(2)),tp=Bd.setInt8;Zd.setInt8(0,2147483648),Zd.setInt8(1,2147483649),!Zd.getInt8(0)&&Zd.getInt8(1)||pd(Bd,{setInt8:function(t,e){tp.call(this,t,e<<24>>24)},setUint8:function(t,e){tp.call(this,t,e<<24>>24)}},{unsafe:!0})}else Pd=function(t){yd(this,Pd,Ed);var e=bd(t);jd(this,{bytes:kd.call(new Array(e),0),byteLength:e}),ld||(this.byteLength=e)},Id=function(t,e,r){yd(this,Id,Cd),yd(t,Pd,Cd);var n=Ad(t).byteLength,o=gd(e);if(o<0||o>n)throw Dd("Wrong offset");if(o+(r=void 0===r?n-o:md(r))>n)throw Dd("Wrong length");jd(this,{buffer:t,byteLength:r,byteOffset:o}),ld||(this.buffer=t,this.byteLength=r,this.byteOffset=o)},ld&&($d(Pd,"byteLength"),$d(Id,"buffer"),$d(Id,"byteLength"),$d(Id,"byteOffset")),pd(Id.prototype,{getInt8:function(t){return Wd(this,1,t)[0]<<24>>24},getUint8:function(t){return Wd(this,1,t)[0]},getInt16:function(t){var e=Wd(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Wd(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Yd(Wd(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Yd(Wd(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Fd(Wd(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Fd(Wd(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Kd(this,1,t,Nd,e)},setUint8:function(t,e){Kd(this,1,t,Nd,e)},setInt16:function(t,e){Kd(this,2,t,Ud,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Kd(this,2,t,Ud,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Kd(this,4,t,qd,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Kd(this,4,t,qd,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Kd(this,4,t,Gd,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Kd(this,8,t,Vd,e,arguments.length>2?arguments[2]:void 0)}});Od(Pd,Ed),Od(Id,Cd);var ep={ArrayBuffer:Pd,DataView:Id},rp=E,np=Math.floor,op=ze,ip=function(t){var e=op(t);if(e<0)throw RangeError("The argument can't be less than 0");return e},ap=function(t,e){var r=ip(t);if(r%e)throw RangeError("Wrong offset");return r},up=rt,sp=Ue,cp=_s,fp=ys,lp=Ir,hp=Gh.aTypedArrayConstructor,dp=E,pp=Ga,vp=Rr,yp=c,gp=h,mp=Xh,bp=Gh,_p=ep,wp=Ju,xp=b,Tp=Qt,Sp=function(t){return!rp(t)&&isFinite(t)&&np(t)===t},kp=Ue,Op=td,Ap=ap,jp=kt,Ep=it,Cp=xu,Rp=E,Lp=$,Pp=yn,Ip=Ga,Bp=Be.f,Mp=function(t){var e,r,n,o,i,a,u=up(t),s=arguments.length,c=s>1?arguments[1]:void 0,f=void 0!==c,l=cp(u);if(null!=l&&!fp(l))for(a=(i=l.call(u)).next,u=[];!(o=a.call(i)).done;)u.push(o.value);for(f&&s>2&&(c=lp(c,arguments[2],2)),r=sp(u.length),n=new(hp(this))(r),e=0;r>e;e++)n[e]=f?c(u[e],e):u[e];return n},Dp=Hr.forEach,zp=Bs,Fp=Nt,Np=f,Up=function(t,e,r){var n,o;return pp&&"function"==typeof(n=e.constructor)&&n!==r&&dp(o=n.prototype)&&o!==r.prototype&&pp(t,o),t},qp=Oe.get,Yp=Oe.set,Gp=Fp.f,Vp=Np.f,$p=Math.round,Wp=yp.RangeError,Kp=_p.ArrayBuffer,Hp=_p.DataView,Qp=bp.NATIVE_ARRAY_BUFFER_VIEWS,Xp=bp.TYPED_ARRAY_CONSTRUCTOR,Jp=bp.TYPED_ARRAY_TAG,Zp=bp.TypedArray,tv=bp.TypedArrayPrototype,ev=bp.aTypedArrayConstructor,rv=bp.isTypedArray,nv="BYTES_PER_ELEMENT",ov="Wrong length",iv=function(t,e){for(var r=0,n=e.length,o=new(ev(t))(n);n>r;)o[r]=e[r++];return o},av=function(t,e){Gp(t,e,{get:function(){return qp(this)[e]}})},uv=function(t){var e;return t instanceof Kp||"ArrayBuffer"==(e=Cp(t))||"SharedArrayBuffer"==e},sv=function(t,e){return rv(t)&&!Lp(e)&&e in t&&Sp(+e)&&e>=0},cv=function(t,e){return e=jp(e),sv(t,e)?xp(2,t[e]):Vp(t,e)},fv=function(t,e,r){return e=jp(e),!(sv(t,e)&&Rp(r)&&Ep(r,"value"))||Ep(r,"get")||Ep(r,"set")||r.configurable||Ep(r,"writable")&&!r.writable||Ep(r,"enumerable")&&!r.enumerable?Gp(t,e,r):(t[e]=r.value,t)};gp?(Qp||(Np.f=cv,Fp.f=fv,av(tv,"buffer"),av(tv,"byteOffset"),av(tv,"byteLength"),av(tv,"length")),vp({target:"Object",stat:!0,forced:!Qp},{getOwnPropertyDescriptor:cv,defineProperty:fv}),dh.exports=function(t,e,r){var n=t.match(/\d+$/)[0]/8,o=t+(r?"Clamped":"")+"Array",i="get"+t,a="set"+t,u=yp[o],s=u,c=s&&s.prototype,f={},l=function(t,e){Gp(t,e,{get:function(){return function(t,e){var r=qp(t);return r.view[i](e*n+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,o){var i=qp(t);r&&(o=(o=$p(o))<0?0:o>255?255:255&o),i.view[a](e*n+i.byteOffset,o,!0)}(this,e,t)},enumerable:!0})};Qp?mp&&(s=e((function(t,e,r,i){return wp(t,s,o),Up(Rp(e)?uv(e)?void 0!==i?new u(e,Ap(r,n),i):void 0!==r?new u(e,Ap(r,n)):new u(e):rv(e)?iv(s,e):Mp.call(s,e):new u(Op(e)),t,s)})),Ip&&Ip(s,Zp),Dp(Bp(u),(function(t){t in s||Tp(s,t,u[t])})),s.prototype=c):(s=e((function(t,e,r,i){wp(t,s,o);var a,u,c,f=0,h=0;if(Rp(e)){if(!uv(e))return rv(e)?iv(s,e):Mp.call(s,e);a=e,h=Ap(r,n);var d=e.byteLength;if(void 0===i){if(d%n)throw Wp(ov);if((u=d-h)<0)throw Wp(ov)}else if((u=kp(i)*n)+h>d)throw Wp(ov);c=u/n}else c=Op(e),a=new Kp(u=c*n);for(Yp(t,{buffer:a,byteOffset:h,byteLength:u,length:c,view:new Hp(a)});f<c;)l(t,f++)})),Ip&&Ip(s,Zp),c=s.prototype=Pp(tv)),c.constructor!==s&&Tp(c,"constructor",s),Tp(c,Xp,s),Jp&&Tp(c,Jp,o),f[o]=s,vp({global:!0,forced:s!=u,sham:!Qp},f),nv in s||Tp(s,nv,n),nv in c||Tp(c,nv,n),zp(o)}):dh.exports=function(){},(0,dh.exports)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}));var lv=rt,hv=Ve,dv=Ue,pv=Math.min,vv=[].copyWithin||function(t,e){var r=lv(this),n=dv(r.length),o=hv(t,n),i=hv(e,n),a=arguments.length>2?arguments[2]:void 0,u=pv((void 0===a?n:hv(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},yv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("copyWithin",(function(t,e){return vv.call(yv(this),t,e,arguments.length>2?arguments[2]:void 0)}));var gv=Hr.every,mv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("every",(function(t){return gv(mv(this),t,arguments.length>1?arguments[1]:void 0)}));var bv=cd,_v=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("fill",(function(t){return bv.apply(_v(this),arguments)}));var wv=ec,xv=Gh.TYPED_ARRAY_CONSTRUCTOR,Tv=Gh.aTypedArrayConstructor,Sv=function(t){return Tv(wv(t,t[xv]))},kv=function(t,e){for(var r=0,n=e.length,o=new t(n);n>r;)o[r]=e[r++];return o},Ov=Sv,Av=Hr.filter,jv=function(t,e){return kv(Ov(t),e)},Ev=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("filter",(function(t){var e=Av(Ev(this),t,arguments.length>1?arguments[1]:void 0);return jv(this,e)}));var Cv=Hr.find,Rv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("find",(function(t){return Cv(Rv(this),t,arguments.length>1?arguments[1]:void 0)}));var Lv=Hr.findIndex,Pv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("findIndex",(function(t){return Lv(Pv(this),t,arguments.length>1?arguments[1]:void 0)}));var Iv=Hr.forEach,Bv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("forEach",(function(t){Iv(Bv(this),t,arguments.length>1?arguments[1]:void 0)}));var Mv=Qe.includes,Dv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("includes",(function(t){return Mv(Dv(this),t,arguments.length>1?arguments[1]:void 0)}));var zv=Qe.indexOf,Fv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("indexOf",(function(t){return zv(Fv(this),t,arguments.length>1?arguments[1]:void 0)}));var Nv=c,Uv=Gh,qv=vu,Yv=mt("iterator"),Gv=Nv.Uint8Array,Vv=qv.values,$v=qv.keys,Wv=qv.entries,Kv=Uv.aTypedArray,Hv=Uv.exportTypedArrayMethod,Qv=Gv&&Gv.prototype[Yv],Xv=!!Qv&&("values"==Qv.name||null==Qv.name),Jv=function(){return Vv.call(Kv(this))};Hv("entries",(function(){return Wv.call(Kv(this))})),Hv("keys",(function(){return $v.call(Kv(this))})),Hv("values",Jv,!Xv),Hv(Yv,Jv,!Xv);var Zv=Gh.aTypedArray,ty=[].join;(0,Gh.exportTypedArrayMethod)("join",(function(t){return ty.apply(Zv(this),arguments)}));var ey=j,ry=ze,ny=Ue,oy=Ri,iy=Math.min,ay=[].lastIndexOf,uy=!!ay&&1/[1].lastIndexOf(1,-0)<0,sy=oy("lastIndexOf"),cy=uy||!sy?function(t){if(uy)return ay.apply(this,arguments)||0;var e=ey(this),r=ny(e.length),n=r-1;for(arguments.length>1&&(n=iy(n,ry(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:ay,fy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("lastIndexOf",(function(t){return cy.apply(fy(this),arguments)}));var ly=Hr.map,hy=Sv,dy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("map",(function(t){return ly(dy(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(hy(t))(e)}))}));var py=Lr,vy=rt,yy=S,gy=Ue,my=function(t){return function(e,r,n,o){py(r);var i=vy(e),a=yy(i),u=gy(i.length),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw TypeError("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},by={left:my(!1),right:my(!0)},_y=by.left,wy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduce",(function(t){return _y(wy(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var xy=by.right,Ty=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduceRight",(function(t){return xy(Ty(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Sy=Gh.aTypedArray,ky=Gh.exportTypedArrayMethod,Oy=Math.floor;ky("reverse",(function(){for(var t,e=this,r=Sy(e).length,n=Oy(r/2),o=0;o<n;)t=e[o],e[o++]=e[--r],e[r]=t;return e}));var Ay=Ue,jy=ap,Ey=rt,Cy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("set",(function(t){Cy(this);var e=jy(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=Ey(t),o=Ay(n.length),i=0;if(o+e>r)throw RangeError("Wrong length");for(;i<o;)this[e+i]=n[i++]}),l((function(){new Int8Array(1).set({})})));var Ry=Sv,Ly=Gh.aTypedArray,Py=[].slice;(0,Gh.exportTypedArrayMethod)("slice",(function(t,e){for(var r=Py.call(Ly(this),t,e),n=Ry(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),l((function(){new Int8Array(1).slice()})));var Iy=Hr.some,By=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("some",(function(t){return Iy(By(this),t,arguments.length>1?arguments[1]:void 0)}));var My=Math.floor,Dy=function(t,e){var r=t.length,n=My(r/2);return r<8?zy(t,e):Fy(Dy(t.slice(0,n),e),Dy(t.slice(n),e),e)},zy=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},Fy=function(t,e,r){for(var n=t.length,o=e.length,i=0,a=0,u=[];i<n||a<o;)i<n&&a<o?u.push(r(t[i],e[a])<=0?t[i++]:e[a++]):u.push(i<n?t[i++]:e[a++]);return u},Ny=Dy,Uy=P.match(/firefox\/(\d+)/i),qy=!!Uy&&+Uy[1],Yy=/MSIE|Trident/.test(P),Gy=P.match(/AppleWebKit\/(\d+)\./),Vy=!!Gy&&+Gy[1],$y=l,Wy=Lr,Ky=Ue,Hy=Ny,Qy=qy,Xy=Yy,Jy=N,Zy=Vy,tg=Gh.aTypedArray,eg=Gh.exportTypedArrayMethod,rg=c.Uint16Array,ng=rg&&rg.prototype.sort,og=!!ng&&!$y((function(){var t=new rg(2);t.sort(null),t.sort({})})),ig=!!ng&&!$y((function(){if(Jy)return Jy<74;if(Qy)return Qy<67;if(Xy)return!0;if(Zy)return Zy<602;var t,e,r=new rg(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(r.sort((function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));eg("sort",(function(t){var e=this;if(void 0!==t&&Wy(t),ig)return ng.call(e,t);tg(e);var r,n=Ky(e.length),o=Array(n);for(r=0;r<n;r++)o[r]=e[r];for(o=Hy(e,function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t)),r=0;r<n;r++)e[r]=o[r];return e}),!ig||og);var ag=Ue,ug=Ve,sg=Sv,cg=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("subarray",(function(t,e){var r=cg(this),n=r.length,o=ug(t,n);return new(sg(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,ag((void 0===e?n:ug(e,n))-o))}));var fg=Gh,lg=l,hg=c.Int8Array,dg=fg.aTypedArray,pg=fg.exportTypedArrayMethod,vg=[].toLocaleString,yg=[].slice,gg=!!hg&&lg((function(){vg.call(new hg(1))}));pg("toLocaleString",(function(){return vg.apply(gg?yg.call(dg(this)):dg(this),arguments)}),lg((function(){return[1,2].toLocaleString()!=new hg([1,2]).toLocaleString()}))||!lg((function(){hg.prototype.toLocaleString.call([1,2])})));var mg=Gh.exportTypedArrayMethod,bg=l,_g=c.Uint8Array,wg=_g&&_g.prototype||{},xg=[].toString,Tg=[].join;bg((function(){xg.call({})}))&&(xg=function(){return Tg.call(this)});var Sg=wg.toString!=xg;mg("toString",xg,Sg);var kg="fetch",Og="xhr",Ag="arraybuffer",jg="text",Eg="json";function Cg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=da(t);if(e){var o=da(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ha(this,r)}}var Rg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ca(t,e)}(r,t);var e=Cg(r);function r(t,o,i,u){var s;return n(this,r),a(la(s=e.call(this,u)),"retryCount",0),a(la(s),"isTimeout",!1),a(la(s),"loaderType",kg),a(la(s),"startTime",0),a(la(s),"endTime",0),s.url=t,s.request=o,s.response=i,s}return r}(ya(Error)),Lg=Xt.exports,Pg=Dl,Ig=l,Bg=mt,Mg=Qt,Dg=Bg("species"),zg=RegExp.prototype,Fg=function(t,e,r,n){var o=Bg(t),i=!Ig((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!Ig((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Dg]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=/./[o],s=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===Pg||a===zg.exec?i&&!o?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));Lg(String.prototype,t,s[0]),Lg(zg,o,s[1])}n&&Mg(zg[o],"sham",!0)},Ng=Lu.charAt,Ug=function(t,e,r){return e+(r?Ng(t,e).length:1)},qg=rt,Yg=Math.floor,Gg="".replace,Vg=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$g=/\$([$&'`]|\d{1,2})/g,Wg=w,Kg=Dl,Hg=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Wg(t))throw TypeError("RegExp#exec called on incompatible receiver");return Kg.call(t,e)},Qg=Fg,Xg=l,Jg=qt,Zg=ze,tm=Ue,em=Qn,rm=k,nm=Ug,om=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=$g;return void 0!==o&&(o=qg(o),s=Vg),Gg.call(i,s,(function(i,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":c=o[s.slice(1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=Yg(f/10);return 0===l?i:l<=u?void 0===n[l-1]?s.charAt(1):n[l-1]+s.charAt(1):i}c=n[f-1]}return void 0===c?"":c}))},im=Hg,am=mt("replace"),um=Math.max,sm=Math.min,cm="$0"==="a".replace(/./,"$0"),fm=!!/./[am]&&""===/./[am]("a","$0");Qg("replace",(function(t,e,r){var n=fm?"$":"$0";return[function(t,r){var n=rm(this),o=null==t?void 0:t[am];return void 0!==o?o.call(t,n,r):e.call(em(n),t,r)},function(t,o){var i=Jg(this),a=em(t);if("string"==typeof o&&-1===o.indexOf(n)&&-1===o.indexOf("$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s="function"==typeof o;s||(o=em(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=im(i,a);if(null===h)break;if(l.push(h),!c)break;""===em(h[0])&&(i.lastIndex=nm(a,tm(i.lastIndex),f))}for(var d,p="",v=0,y=0;y<l.length;y++){h=l[y];for(var g=em(h[0]),m=um(sm(Zg(h.index),a.length),0),b=[],_=1;_<h.length;_++)b.push(void 0===(d=h[_])?d:String(d));var w=h.groups;if(s){var x=[g].concat(b,m,a);void 0!==w&&x.push(w);var T=em(o.apply(void 0,x))}else T=om(g,a,m,b,w,o);m>=v&&(p+=a.slice(v,m)+T,v=m+g.length)}return p+a.slice(v)}]}),!!Xg((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!cm||fm);var lm=Rr,hm=j,dm=[].join,pm=S!=Object,vm=Ri("join",",");lm({target:"Array",proto:!0,forced:pm||!vm},{join:function(t){return dm.call(hm(this),void 0===t?",":t)}});var ym=rt,gm=Aa,mm=wa;Rr({target:"Object",stat:!0,forced:l((function(){gm(1)})),sham:!mm},{getPrototypeOf:function(t){return gm(ym(t))}});var bm=Object.prototype.toString;function _m(t){if("[object Object]"!==bm.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function wm(t){if(t&&null!=t[0]&&(0!==t[0]||null!=t[1])){var e="bytes="+t[0]+"-";return t[1]&&(e+=t[1]),e}}function xm(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tm(t,e){if(t){if(!e)return t;var r,n=Object.keys(e).map((function(t){if(null!=(r=e[t]))return Array.isArray(r)?t+="[]":r=[r],r.map((function(e){var r;return r=e,"[object Date]"===bm.call(r)?e=e.toISOString():function(t){return null!==t&&"object"===fa(t)}(e)&&(e=JSON.stringify(e)),"".concat(xm(t),"=").concat(xm(e))})).join("&")})).filter(Boolean).join("&");if(n){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}}function Sm(t,e,r,n,o,i,a,u,s){return o=null!=o?parseFloat(o):null,n=parseInt(n||"0",10),isNaN(n)&&(n=0),{data:t,done:e,option:{range:s,index:u,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:Date.now()},response:r}}var km=function(){function t(){n(this,t),a(this,"_abortController",null),a(this,"_timeoutTimer",null),a(this,"_reader",null),a(this,"_response",null),a(this,"_aborted",!1),a(this,"_index",-1),a(this,"_range",null),a(this,"_receivedLength",0),a(this,"_running",!1),a(this,"_logger",null)}var r;return i(t,[{key:"load",value:function(t){var r=this,n=t.url,o=t.timeout,i=t.responseType,a=t.onProgress,u=t.index,s=t.onTimeout,c=t.range,f=t.transformResponse,l=t.request,h=t.params,d=t.logger,p=t.method,v=t.headers,y=t.body,g=t.mode,m=t.credentials,b=t.cache,_=t.redirect,w=t.referrer,x=t.referrerPolicy,T=t.integrity;this._logger=d,this._aborted=!1,this._running=!0,this._abortController=new AbortController,this._index=u,this._range=c||[0,0],this._logger.debug("【fetchLoader task】, range",this._range);var S={method:p,headers:v,body:y,mode:g,credentials:m,cache:b,redirect:_,referrer:w,referrerPolicy:x,integrity:T,signal:this._abortController.signal},k=!1;clearTimeout(this._timeoutTimer),n=Tm(n,h);var O=wm(c);O&&((v=l?l.headers:S.headers=S.headers||new Headers)instanceof Headers?v.append("Range",O):v.Range=O),o&&(this._timeoutTimer=setTimeout((function(){if(k=!0,r.cancel(),s){var t=new Rg(n,S);t.isTimeout=!0,s(t)}}),o));var A=Date.now();return fetch(l||n,l?void 0:S).then(function(){var t=e(Vi.mark((function t(e){var o,s;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=e,!r._aborted){t.next=4;break}return t.abrupt("return");case 4:if(f&&(e=f(e,n)||e),e.ok){t.next=7;break}throw new Rg(n,S,e,"bad network response");case 7:if(o=Date.now(),i!==jg){t.next=14;break}return t.next=11,e.text();case 11:s=t.sent,t.next=28;break;case 14:if(i!==Eg){t.next=20;break}return t.next=17,e.json();case 17:s=t.sent,t.next=28;break;case 20:if(!a){t.next=24;break}r._loadChunk(e,a),t.next=28;break;case 24:return t.next=26,e.arrayBuffer();case 26:s=t.sent,s=new Uint8Array(s);case 28:return r._running=!1,t.abrupt("return",Sm(s,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),A,o,u,c));case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){if(clearTimeout(r._timeoutTimer),r._running=!1,!r._aborted||k)throw(t=t instanceof Rg?t:new Rg(n,S)).startTime=A,t.endTime=Date.now(),t.isTimeout=k,t}))}},{key:"cancel",value:(r=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._aborted){t.next=2;break}return t.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){t.next=16;break}return t.prev=5,t.next=8,this._response.body.cancel();case 8:if(!this._reader){t.next=11;break}return t.next=11,this._reader.cancel();case 11:t.next=15;break;case 13:t.prev=13,t.t0=t.catch(5);case 15:this._response=this._reader=null;case 16:if(this._abortController){try{this._abortController.abort()}catch(t){}this._abortController=null}case 17:case"end":return t.stop()}}),t,this,[[5,13]])}))),function(){return r.apply(this,arguments)})},{key:"_loadChunk",value:function(t,r){var n,o,i,a=this,u=this._reader=t.body.getReader(),s=function(){var c=e(Vi.mark((function e(){var c;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Date.now(),e.prev=1,e.next=4,u.read();case 4:n=e.sent,i=Date.now(),e.next=13;break;case 8:return e.prev=8,e.t0=e.catch(1),i=Date.now(),r(void 0,!0,{range:a._range,index:a._index,startTime:o,endTime:i},t),e.abrupt("return");case 13:if(!a._aborted){e.next=16;break}return r(void 0,!0,{range:a._range,index:a._index,startTime:o,endTime:i},t),e.abrupt("return");case 16:c=a._range[0]+a._receivedLength,a._receivedLength+=n.value?n.value.byteLength:0,a._logger.debug("【fetchLoader,onProgress call】,task,",a._range,", start,",c,", end,",a._range[0]+a._receivedLength,", done,",n.done),a._running=n.done,r(n.value,n.done,{range:[c,a._range[0]+a._receivedLength],index:a._index,startTime:o,endTime:i},t),n.done?a._logger.debug("【fetchLoader,onProgress call】,task,",a._range,",done,",n.done):s();case 22:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return c.apply(this,arguments)}}();s()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(t){this._running=t}}],[{key:"isSupported",value:function(){if("undefined"==typeof ReadableStream)return!1;try{new ReadableStream({})}catch(t){return!1}return!("undefined"==typeof fetch||"undefined"==typeof AbortController)}}]),t}();function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Am(t){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Om(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({loaderType:kg,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:jg,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0},t)}var jm=h,Em=Nt.f,Cm=Function.prototype,Rm=Cm.toString,Lm=/^\s*function ([^ (]*)/,Pm="name";jm&&!(Pm in Cm)&&Em(Cm,Pm,{configurable:!0,get:function(){try{return Rm.call(this).match(Lm)[1]}catch(t){return""}}});var Im=function(t){var e,r,n,o,i,a,u=xs(t),s="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=As(u),d=0;if(l&&(f=ws(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&Ss(h))for(r=new s(e=ks(u.length));e>d;d++)a=l?f(u[d],d):u[d],Os(r,d,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;d++)a=l?Ts(o,f,[n.value,d],!0):n.value,Os(r,d,a);return r.length=d,r};Rr({target:"Array",stat:!0,forced:!Xs((function(t){Array.from(t)}))},{from:Im});var Bm=Rr,Mm=h,Dm=c,zm=it,Fm=E,Nm=Nt.f,Um=vr,qm=Dm.Symbol;if(Mm&&"function"==typeof qm&&(!("description"in qm.prototype)||void 0!==qm().description)){var Ym={},Gm=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Gm?new qm(t):void 0===t?qm():qm(t);return""===t&&(Ym[e]=!0),e};Um(Gm,qm);var Vm=Gm.prototype=qm.prototype;Vm.constructor=Gm;var $m=Vm.toString,Wm="Symbol(test)"==String(qm("test")),Km=/^Symbol\((.*)\)[^)]+$/;Nm(Vm,"description",{configurable:!0,get:function(){var t=Fm(this)?this.valueOf():this,e=$m.call(t);if(zm(Ym,t))return"";var r=Wm?e.slice(7,-1):e.replace(Km,"$1");return""===r?void 0:r}}),Bm({global:!0,forced:!0},{Symbol:Gm})}so("iterator");var Hm=E,Qm=w,Xm=mt("match"),Jm=function(t){var e;return Hm(t)&&(void 0!==(e=t[Xm])?!!e:"RegExp"==Qm(t))},Zm=Fg,tb=Jm,eb=qt,rb=k,nb=ec,ob=Ug,ib=Ue,ab=Qn,ub=Hg,sb=Dl,cb=l,fb=hl.UNSUPPORTED_Y,lb=[].push,hb=Math.min,db=4294967295;Zm("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=ab(rb(this)),o=void 0===r?db:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!tb(t))return e.call(n,t,o);for(var i,a,u,s=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,c+"g");(i=sb.call(l,n))&&!((a=l.lastIndex)>f&&(s.push(n.slice(f,i.index)),i.length>1&&i.index<n.length&&lb.apply(s,i.slice(1)),u=i[0].length,f=a,s.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!u&&l.test("")||s.push(""):s.push(n.slice(f)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=rb(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(ab(o),e,r)},function(t,o){var i=eb(this),a=ab(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var s=nb(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(fb?"g":"y"),l=new s(fb?"^(?:"+i.source+")":i,f),h=void 0===o?db:o>>>0;if(0===h)return[];if(0===a.length)return null===ub(l,a)?[a]:[];for(var d=0,p=0,v=[];p<a.length;){l.lastIndex=fb?0:p;var y,g=ub(l,fb?a.slice(p):a);if(null===g||(y=hb(ib(l.lastIndex+(fb?p:0)),a.length))===d)p=ob(a,p,c);else{if(v.push(a.slice(d,p)),v.length===h)return v;for(var m=1;m<=g.length-1;m++)if(v.push(g[m]),v.length===h)return v;p=d=y}}return v.push(a.slice(d)),v}]}),!!cb((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),fb);var pb="\t\n\v\f\r                 \u2028\u2029\ufeff",vb=k,yb=Qn,gb="[\t\n\v\f\r                 \u2028\u2029\ufeff]",mb=RegExp("^"+gb+gb+"*"),bb=RegExp(gb+gb+"*$"),_b=function(t){return function(e){var r=yb(vb(e));return 1&t&&(r=r.replace(mb,"")),2&t&&(r=r.replace(bb,"")),r}},wb={start:_b(1),end:_b(2),trim:_b(3)},xb=l,Tb=pb,Sb=wb.trim;Rr({target:"String",proto:!0,forced:function(t){return xb((function(){return!!Tb[t]()||"​…᠎"!="​…᠎"[t]()||Tb[t].name!==t}))}("trim")},{trim:function(){return Sb(this)}});var kb=function(){function t(){n(this,t),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return i(t,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(t){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=t,this._totalBytes+=t):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=t,this._totalBytes+=t):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=t,this._totalBytes+=t,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var t=(this._now()-this._lastCheckpoint)/1e3;return 0==t&&(t=1),this._intervalBytes/t/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var t=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/t/1024}}]),t}();function Ob(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Ab(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ab(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Ab(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}var jb=function(){function t(){n(this,t),a(this,"_xhr",null),a(this,"_aborted",!1),a(this,"_timeoutTimer",null),a(this,"_range",null),a(this,"_receivedLength",0),a(this,"_url",null),a(this,"_onProgress",null),a(this,"_index",-1),a(this,"_headers",null),a(this,"_chunkSizeKBList",[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192]),a(this,"_currentChunkSizeKB",384),a(this,"_currentSpeedNormalized",0),a(this,"_zeroSpeedChunkCount",0),a(this,"_timeout",null),a(this,"_xhr",null),a(this,"_withCredentials",null),a(this,"_startTime",-1),a(this,"_firstByteTime",-1),a(this,"_speedSampler",new kb),a(this,"_loadCompleteResolve",null),a(this,"_loadCompleteReject",null),a(this,"_runing",!1),a(this,"_logger",!1)}return i(t,[{key:"load",value:function(t){var e=this;clearTimeout(this._timeoutTimer),this._logger=t.logger,this._range=t.range||[0,0],this._onProgress=t.onProgress,this._index=t.index,this._headers=t.headers,this._withCredentials="include"===t.credentials||"same-origin"===t.credentials,this._logger.debug("【xhrLoader task】, range",this._range);var r=t.url,n=t.params,o=t.timeout,i=t.responseType,a=t.onTimeout,u=t.transformResponse,s=t.onProgress,c=t.method,f=t.credentials,l=t.body,h=t.index,d=t.range,p=t.request,v=!1;this._timeout=o||null,this._runing=!0,this._url=Tm(r,n);var y=Date.now();return this._onProgress&&d.length>1&&d[1]&&d[1]-d[0]>1024*this._currentChunkSizeKB?(this._logger.debug("【xhrLoader】, task",this._range,", need to sub range"),this._openSubRange(),new Promise((function(t,r){e._loadCompleteResolve=t,e._loadCompleteReject=r}))):new Promise((function(t,n){var g=e._xhr=new XMLHttpRequest;g.open(c||"GET",r,!0),g.responseType=i,g.withCredentials="include"===f||"same-origin"===f;var m=wm(d),b=null;m&&((b=e._headers||{}).Range=m),b&&Object.keys(b).forEach((function(t){g.setRequestHeader(t,b[t])})),o&&(e._timeoutTimer=setTimeout((function(){if(v=!0,e.cancel(),a){var t=new Rg(r,p);t.isTimeout=!0,a(t)}}),o)),g.onerror=function(t){return n(t)},g.onreadystatechange=function(){if(g.readyState>=2){clearTimeout(e._timeoutTimer);var o=Date.now();if(4===g.readyState){if(g.onreadystatechange=null,e._aborted)return;var i=g.status,a={ok:i>=200&&i<300,status:i,statusText:g.statusText,url:g.responseURL,headers:e._getHeaders(g),body:g.response};if(u&&(a=u(a,r)||a),!a.ok)return n(new Rg(r,p,a,"bad network response"));var c=g.responseType===Ag,f=c?new Uint8Array(g.response):g.response;s&&s(c?f:void 0,!0,{range:e._range,index:e._index,startTime:y,endTime:Date.now()},a),e._runing=!1,t(Sm(f,!0,a,a.headers["content-length"],a.headers.age,y,o,h,e._range))}}},g.send(l)})).catch((function(t){if(clearTimeout(e._timeoutTimer),e._runing=!1,!e._aborted||v)throw(t=t instanceof Rg?t:new Rg(r,p)).startTime=y,t.endTime=Date.now(),t.isTimeout=v,t}))}},{key:"_openSubRange",value:function(){var t=1024*this._currentChunkSizeKB,e=this._range[0]+this._receivedLength;this._logger.debug("[xhr_loader->] ,tast: ",this._range,",subRangeFrom ",e,", currentReceivedLength, ",this._receivedLength);var r=this._range[1];t<this._range[1]-e&&(r=e+t);var n=[e,r];this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",n),this._internalOpen(this._url,n)}},{key:"_internalOpen",value:function(t,e){var r=this;this._startTime=Date.now();var n=this._xhr=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",this._timeout&&(n.timeout=this._timeout),n.withCredentials=this._withCredentials,n.onload=this._onLoad.bind(this),n.onerror=function(t){r._running=!1,r._loadCompleteReject(t)},n.ontimeout=function(t){r._running=!1,r._loadCompleteReject(t)};var o=wm(e),i=null;o&&((i=this._headers||{}).Range=o),i&&Object.keys(i).forEach((function(t){n.setRequestHeader(t,i[t])})),this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),n.send()}},{key:"_onLoad",value:function(t){var e=t.target.status;(e<200||e>299)&&this._loadCompleteReject(new Rg(url,null,t.target.response,"bad response,status:"+e));var r=this._speedSampler.lastSecondKBps;if(0===r&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(r=this._speedSampler.currentKBps)),0!==r){var n=this._normalizeSpeed(r);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var o=t.target.response;this._firstByteTime&&(this._firstByteTime=Date.now());var i,a=this._range[0]+this._receivedLength;if(this._receivedLength+=o.byteLength,this._logger.debug("[xhr load done->], tast :",this._range,", from",a,"end ",this._range[0]+this._receivedLength,",dataLen,",o.byteLength,",receivedLength",this._receivedLength),i=!(this._range.length>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._onProgress&&(this._logger.debug("[xhr onDataArrivalCall],tast :",this._range,",start, ",a,",end, ",this._range[0]+this._receivedLength,",index,",this._index),this._onProgress(o,i,{index:this._index,range:[a,this._range[0]+this._receivedLength],startTime:this._startTime,endTime:Date.now()},null)),i){this._runing=!1;var u={ok:e>=200&&e<300,status:e,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._loadCompleteResolve&&this._loadCompleteResolve(Sm(null,!0,u,u.headers["content-length"],u.headers.age,this._startTime,this._firstByteTime,this._index,this._range))}else this._openSubRange()}},{key:"_normalizeSpeed",value:function(t){var e=this._chunkSizeKBList,r=e.length-1,n=0,o=0,i=r;if(t<e[0])return e[0];for(;o<=i;){if((n=o+Math.floor((i-o)/2))===r||t>=e[n]&&t<e[n+1])return e[n];e[n]<t?o=n+1:i=n-1}}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(t){this._running=t}},{key:"_getHeaders",value:function(t){var e,r={},n=Ob(t.getAllResponseHeaders().trim().split("\r\n"));try{for(n.s();!(e=n.n()).done;){var o=e.value.split(": ");r[o[0].toLowerCase()]=o.slice(1).join(": ")}}catch(t){n.e(t)}finally{n.f()}return r}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),t}(),Eb=["retry","retryDelay","onRetryError","transformError"],Cb=localStorage.getItem("type"),Rb=function(){function t(e,r){n(this,t),this.promise=function(){var t,e,r=new Promise((function(r,n){t=r,e=n}));return r.used=!1,r.resolve=function(){return r.used=!0,t.apply(void 0,arguments)},r.reject=function(){return r.used=!0,e.apply(void 0,arguments)},r}(),this.alive=!!r.onProgress,this._loaderType=e,this._loader=e!==kg||Cb?new jb:new km,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._logger=r.logger}var o;return i(t,[{key:"exec",value:function(){var t=this,n=this._config,o=n.retry,i=n.retryDelay,a=n.onRetryError,u=n.transformError,s=r(n,Eb),c=function(){var r=e(Vi.mark((function e(){var r,n;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t._logger.debug("[task request ready to load]",s.range),e.next=4,t._loader.load(s);case 4:r=e.sent,t._loader.running=!1,t.promise.resolve(r),e.next=27;break;case 9:if(e.prev=9,e.t0=e.catch(0),t._loader.running=!1,t._logger.debug("[task request catch err]",e.t0.errorMessage),!t._canceled){e.next=15;break}return e.abrupt("return");case 15:if(e.t0.loaderType=t._loaderType,e.t0.retryCount=t._retryCount,n=e.t0,u&&(n=u(n)||n),a&&t._retryCount>0&&a(n,t._retryCount,o),t._retryCount++,!(t._retryCount<=o)){e.next=26;break}return clearTimeout(t._retryTimer),t._logger.debug("[task request setTimeout],retry",t._retryCount,",retry range,",s.range),t._retryTimer=setTimeout(c,i),e.abrupt("return");case 26:t.promise.reject(n);case 27:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return r.apply(this,arguments)}}();return this._logger.debug("[task request start]",this._config.range),c(),this.promise}},{key:"cancel",value:(o=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,t.abrupt("return",this._loader.cancel());case 4:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}}]),t}(),Lb=function(){function t(e){n(this,t),a(this,"type",kg),a(this,"_queue",[]),a(this,"_alive",[]),a(this,"_currentTask",null),this._config=Am(e),this._config.loaderType!==Og&&km.isSupported()||(this.type=Og),this.log=e.logger}return i(t,[{key:"isFetch",value:function(){return this.type===kg}},{key:"load",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof t&&t?e=t:e.url=t||e.url||this._config.url,(e=Object.assign({},this._config,e)).params&&(e.params=Object.assign({},e.params)),e.headers&&_m(e.headers)&&(e.headers=Object.assign({},e.headers)),e.body&&_m(e.body)&&(e.body=Object.assign({},e.body)),e.transformRequest&&(e=e.transformRequest(e)||e),e.logger=this.log;var r=new Rb(this.type,e);return this.log.debug("[task add queue]",e.range,", queueLen,",this._queue.length),this._queue.push(r),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),r.promise}},{key:"cancel",value:function(){var t=this._queue.map((function(t){return t.cancel()})).concat(this._alive.map((function(t){return t.cancel()})));return this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],Promise.all(t)}},{key:"_processTask",value:function(){var t=this;this._currentTask=this._queue.shift(),this._currentTask&&(this._currentTask.alive&&this._alive.push(this._currentTask),this.log.debug("[task exec]",this._currentTask._config.range,", queueLen,",this._queue.length),this._currentTask.exec().finally((function(){t._processTask()})))}}],[{key:"isFetchSupport",value:function(){return km.isSupported()}}]),t}();function Pb(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e=e.filter(Boolean);var n=new Uint8Array(e.reduce((function(t,e){return t+e.byteLength}),0)),o=0;return e.forEach((function(t){n.set(t,o),o+=t.byteLength})),n}var Ib=localStorage.getItem("playerlog"),Bb=function(){function t(e){n(this,t),this.name=e||"",this._prefix="[".concat(this.name,"]"),t.disabled=!!Ib}return i(t,[{key:"debug",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).debug.apply(e,[this._prefix].concat(n))}}},{key:"log",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).log.apply(e,[this._prefix].concat(n))}}},{key:"warn",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).warn.apply(e,[this._prefix].concat(n))}}},{key:"error",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).error.apply(e,[this._prefix].concat(n))}}},{key:"table",value:function(){var e;t.disabled||(console.group(this._prefix),(e=console).table.apply(e,arguments),console.groupEnd())}}],[{key:"enable",value:function(){t.disabled=!1}},{key:"disable",value:function(){t.disabled=!0}}]),t}();a(Bb,"disabled",!0);var Mb=Qe.includes,Db=wn;Rr({target:"Array",proto:!0},{includes:function(t){return Mb(this,t,arguments.length>1?arguments[1]:void 0)}}),Db("includes");var zb=Jm,Fb=mt("match"),Nb=function(t){if(zb(t))throw TypeError("The method doesn't accept regular expressions");return t},Ub=k,qb=Qn;Rr({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Fb]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~qb(Ub(this)).indexOf(qb(Nb(t)),arguments.length>1?arguments[1]:void 0)}});var Yb="hevc",Gb=Xt.exports,Vb=qt,$b=Qn,Wb=l,Kb=ll,Hb="toString",Qb=RegExp.prototype,Xb=Qb.toString,Jb=Wb((function(){return"/a/b"!=Xb.call({source:"a",flags:"b"})})),Zb=Xb.name!=Hb;(Jb||Zb)&&Gb(RegExp.prototype,Hb,(function(){var t=Vb(this),e=$b(t.source),r=t.flags;return"/"+e+"/"+$b(void 0===r&&t instanceof RegExp&&!("flags"in Qb)?Kb.call(t):r)}),{unsafe:!0});var t_="undefined"!=typeof window,e_=t_&&navigator.userAgent.toLocaleLowerCase();t_&&/^((?!chrome|android).)*safari/.test(e_);var r_=t_&&e_.includes("firefox"),n_=t_&&e_.includes("android"),o_=Math.pow(2,32);function i_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<8)+(t[e+1]||0)}function a_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<24>>>0)+(t[e+1]<<16)+(t[e+2]<<8)+(t[e+3]||0)}function u_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a_(t,e)*o_+a_(t,e+4)}var s_=function(){function t(){n(this,t)}return i(t,null,[{key:"getRateIndexByRate",value:function(e){return t.FREQ.indexOf(e)}},{key:"parseADTS",value:function(e,r){for(var n=e.length,o=0;o+2<n&&(255!==e[o]||240!=(246&e[o+1]));)o++;if(!(o>=n)){var i=o,a=[],u=(60&e[o+2])>>>2,s=t.FREQ[u];if(!s)throw new Error("Invalid sampling index: ".concat(u));for(var c,f,l=1+((192&e[o+2])>>>6),h=(1&e[o+2])<<2|(192&e[o+3])>>>6,d=t._getConfig(u,h,l),p=d.config,v=d.codec,y=0,g=t.getFrameDuration(s);o+7<n;)if(255===e[o]&&240==(246&e[o+1])){if(n-o<(f=(3&e[o+3])<<11|e[o+4]<<3|(224&e[o+5])>>5))break;c=2*(1&~e[o+1]),a.push({pts:r+y*g,data:e.subarray(o+7+c,o+f)}),y++,o+=f}else o++;return{skip:i,remaining:o>=n?void 0:e.subarray(o),frames:a,samplingFrequencyIndex:u,sampleRate:s,objectType:l,channelCount:h,codec:v,config:p,originCodec:"mp4a.40.".concat(l)}}}},{key:"parseAudioSpecificConfig",value:function(e){if(e.length){var r=e[0]>>>3,n=(7&e[0])<<1|e[1]>>>7,o=(120&e[1])>>>3,i=t.FREQ[n];if(!i)throw new Error("Invalid sampling index: ".concat(n));var a=t._getConfig(n,o,r);return{samplingFrequencyIndex:n,sampleRate:i,objectType:r,channelCount:o,config:a.config,codec:a.codec,originCodec:"mp4a.40.".concat(r)}}}},{key:"getFrameDuration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*e/t}},{key:"_getConfig",value:function(t,e,r){var n,o,i=[];return r_?t>=6?(n=5,o=t-3):(n=2,o=t):n_?(n=2,o=t):(n=r,o=t,t>=6?o=t-3:1===e&&(n=2,o=t)),i[0]=n<<3,i[0]|=(14&t)>>1,i[1]=(1&t)<<7,i[1]|=e<<3,5===n&&(i[1]|=(14&o)>>1,i[2]=(1&o)<<7,i[2]|=8,i[3]=0),{config:i,codec:"mp4a.40.".concat(n)}}},{key:"getSilentFrame",value:function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}]),t}();function c_(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 f_(t){return function(t){if(Array.isArray(t))return c_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c_(t,e):void 0}}(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.")}()}a(s_,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var l_=ze,h_=Qn,d_=k,p_=Ue,v_=Qn,y_=function(t){var e=h_(d_(this)),r="",n=l_(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},g_=k,m_=Math.ceil,b_=function(t){return function(e,r,n){var o,i,a=v_(g_(e)),u=a.length,s=void 0===n?" ":v_(n),c=p_(r);return c<=u||""==s?a:(o=c-u,(i=y_.call(s,m_(o/s.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},__={start:b_(!1),end:b_(!0)},w_=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(P),x_=__.start;Rr({target:"String",proto:!0,forced:w_},{padStart:function(t){return x_(this,t,arguments.length>1?arguments[1]:void 0)}});var T_=Nt,S_=ll;h&&l((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&T_.f(RegExp.prototype,"flags",{configurable:!0,get:S_});var k_=function(){function t(){n(this,t)}return i(t,null,[{key:"findBox",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[];if(!e)return o;for(var i=0,a="",u=0;e.length>7;){if(i=a_(e),a=String.fromCharCode.apply(null,e.subarray(4,8)),u=8,1===i?(i=u_(e,8),u+=8):i||(i=e.length),!r[0]||a===r[0]){var s=e.subarray(0,i);if(!(r.length<2))return t.findBox(s.subarray(u),r.slice(1),n+u);o.push({start:n,size:i,headerSize:u,type:a,data:s})}n+=i,e=e.subarray(i)}return o}},{key:"moov",value:function(e){return j_(e,!1,(function(e,r,n){e.mvhd=t.mvhd(t.findBox(r,["mvhd"],n)[0]),e.trak=t.findBox(r,["trak"],n).map((function(e){return t.trak(e)}))}))}},{key:"mvhd",value:function(t){return j_(t,!0,(function(t,e){var r=0;1===t.version?(t.timescale=a_(e,16),t.duration=u_(e,20),r+=28):(t.timescale=a_(e,8),t.duration=a_(e,12),r+=16),t.nextTrackId=a_(e,r+76)}))}},{key:"trak",value:function(e){return j_(e,!1,(function(e,r,n){e.tkhd=t.tkhd(t.findBox(r,["tkhd"],n)[0]),e.mdia=t.mdia(t.findBox(r,["mdia"],n)[0])}))}},{key:"tkhd",value:function(t){return j_(t,!0,(function(t,e){var r=0;1===t.version?(t.trackId=a_(e,16),t.duration=u_(e,24),r+=32):(t.trackId=a_(e,8),t.duration=a_(e,16),r+=20),t.width=a_(e,r+52),t.height=a_(e,r+56)}))}},{key:"mdia",value:function(e){return j_(e,!1,(function(e,r,n){e.mdhd=t.mdhd(t.findBox(r,["mdhd"],n)[0]),e.hdlr=t.hdlr(t.findBox(r,["hdlr"],n)[0]),e.minf=t.minf(t.findBox(r,["minf"],n)[0])}))}},{key:"mdhd",value:function(t){return j_(t,!0,(function(t,e){var r=0;1===t.version?(t.timescale=a_(e,16),t.duration=u_(e,20),r+=28):(t.timescale=a_(e,8),t.duration=a_(e,12),r+=16);var n=i_(e,r);t.language=String.fromCharCode(96+(n>>10&31),96+(n>>5&31),96+(31&n))}))}},{key:"hdlr",value:function(t){return j_(t,!0,(function(t,e){0===t.version&&(t.handlerType=String.fromCharCode.apply(null,e.subarray(4,8)))}))}},{key:"minf",value:function(e){return j_(e,!1,(function(e,r,n){e.vmhd=t.vmhd(t.findBox(r,["vmhd"],n)[0]),e.smhd=t.smhd(t.findBox(r,["smhd"],n)[0]),e.stbl=t.stbl(t.findBox(r,["stbl"],n)[0])}))}},{key:"vmhd",value:function(t){return j_(t,!0,(function(t,e){t.graphicsmode=i_(e),t.opcolor=[i_(e,2),i_(e,4),i_(e,6)]}))}},{key:"smhd",value:function(t){return j_(t,!0,(function(t,e){t.balance=i_(e)}))}},{key:"stbl",value:function(e){return j_(e,!1,(function(e,r,n){e.stsd=t.stsd(t.findBox(r,["stsd"],n)[0]),e.stts=t.stts(t.findBox(r,["stts"],n)[0]),e.ctts=t.ctts(t.findBox(r,["ctts"],n)[0]),e.stsc=t.stsc(t.findBox(r,["stsc"],n)[0]),e.stsz=t.stsz(t.findBox(r,["stsz"],n)[0]),e.stco=t.stco(t.findBox(r,["stco"],n)[0]),e.stss=t.stss(t.findBox(r,["stss"],n)[0])}))}},{key:"stsd",value:function(e){return j_(e,!0,(function(e,r,n){e.entryCount=a_(r),e.entries=t.findBox(r.subarray(4),[],n+4).map((function(e){switch(e.type){case"avc1":case"avc2":case"avc3":case"avc4":return t.avc1(e);case"hvc1":case"hev1":return t.hvc1(e);case"mp4a":return t.mp4a(e)}})).filter(Boolean)}))}},{key:"avc1",value:function(e){return j_(e,!1,(function(e,r,n){var o=A_(e,r),i=r.subarray(o);n+=o,e.avcC=t.avcC(t.findBox(i,["avcC"],n)[0]),e.pasp=t.pasp(t.findBox(i,["pasp"],n)[0])}))}},{key:"avcC",value:function(t){return j_(t,!1,(function(t,e){t.configurationVersion=e[0],t.AVCProfileIndication=e[1],t.profileCompatibility=e[2],t.AVCLevelIndication=e[3],t.codec=function(t){for(var e,r="avc1.",n=0;n<3;n++)(e=t[n].toString(16)).length<2&&(e="0".concat(e)),r+=e;return r}([e[1],e[2],e[3]]),t.lengthSizeMinusOne=3&e[4],t.spsLength=31&e[5],t.sps=[];for(var r=6,n=0;n<t.spsLength;n++){var o=i_(e,r);r+=2,t.sps.push(e.subarray(r,r+o)),r+=o}t.ppsLength=e[r],r+=1,t.pps=[];for(var i=0;i<t.ppsLength;i++){var a=i_(e,r);r+=2,t.pps.push(e.subarray(r,r+=a)),r+=a}}))}},{key:"hvc1",value:function(e){return j_(e,!1,(function(e,r,n){var o=A_(e,r),i=r.subarray(o);n+=o,e.hvcC=t.hvcC(t.findBox(i,["hvcC"],n)[0]),e.pasp=t.pasp(t.findBox(i,["pasp"],n)[0])}))}},{key:"hvcC",value:function(t){return j_(t,!1,(function(e,r){e.data=t.data,e.codec="hev1.1.6.L93.B0",e.configurationVersion=r[0];var n=r[1];e.generalProfileSpace=n>>6,e.generalTierFlag=(32&n)>>5,e.generalProfileIdc=31&n,e.generalProfileCompatibility=a_(r,2),e.generalConstraintIndicatorFlags=r.subarray(6,12),e.generalLevelIdc=r[12],e.avgFrameRate=i_(r,19),e.numOfArrays=r[22],e.vps=[],e.sps=[],e.pps=[];for(var o=23,i=0,a=0,u=0,s=0;s<e.numOfArrays;s++){i=63&r[o],a=i_(r,o+1),o+=3;for(var c,f=[],l=0;l<a;l++)u=i_(r,o),o+=2,f.push(r.subarray(o,o+u)),o+=u;if(32===i)(c=e.vps).push.apply(c,f);else if(33===i){var h;(h=e.sps).push.apply(h,f)}else if(34===i){var d;(d=e.pps).push.apply(d,f)}}}))}},{key:"pasp",value:function(t){return j_(t,!1,(function(t,e){t.hSpacing=a_(e),t.vSpacing=a_(e,4)}))}},{key:"mp4a",value:function(e){return j_(e,!1,(function(e,r,n){var o=function(t,e){return t.dataReferenceIndex=i_(e,6),t.channelCount=i_(e,16),t.sampleSize=i_(e,18),t.sampleRate=a_(e,24)/65536,28}(e,r);e.esds=t.esds(t.findBox(r.subarray(o),["esds"],n+o)[0])}))}},{key:"esds",value:function(t){return j_(t,!0,(function(t,e){t.codec="mp4a.";for(var r=0,n=0,o=0,i=0;e.length;){for(i=e[r=0],n=e[r+1],r+=2;128&n;)o=(127&n)<<7,n=e[r],r+=1;if(o+=127&n,3===i)e=e.subarray(r+3);else{if(4!==i){if(5===i){var a=t.config=e.subarray(r,r+o),u=(248&a[0])>>3;return 31===u&&a.length>=2&&(u=32+((7&a[0])<<3)+((224&a[1])>>5)),t.objectType=u,void(t.codec+=u.toString(16))}return}t.codec+=(e[r].toString(16)+".").padStart(3,"0"),e=e.subarray(r+13)}}}))}},{key:"stts",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push({count:a_(e,o),delta:a_(e,o+4)}),o+=8;t.entryCount=r,t.entries=n}))}},{key:"ctts",value:function(t){return j_(t,!0,(function(t,e){var r=a_(e),n=[],o=4;if(1===t.version)for(var i=0;i<r;i++)n.push({count:a_(e,o),offset:a_(e,o+4)}),o+=8;else for(var a=0;a<r;a++)n.push({count:a_(e,o),offset:-(1+~a_(e,o+4))}),o+=8;t.entryCount=r,t.entries=n}))}},{key:"stsc",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push({firstChunk:a_(e,o),samplesPerChunk:a_(e,o+4),sampleDescriptionIndex:a_(e,o+8)}),o+=12;t.entryCount=r,t.entries=n}))}},{key:"stsz",value:function(t){return j_(t,!0,(function(t,e){var r=a_(e),n=a_(e,4),o=[];if(!r)for(var i=8,a=0;a<n;a++)o.push(a_(e,i)),i+=4;t.sampleSize=r,t.sampleCount=n,t.entrySizes=o}))}},{key:"stco",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push(a_(e,o)),o+=4;t.entryCount=r,t.entries=n}))}},{key:"stss",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push(a_(e,o)),o+=4;t.entryCount=r,t.entries=n}))}},{key:"moovToTrack",value:function(t,e,r){var n=t.trak;if(n&&n.length){var o=n.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),i=n.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(o&&e){var a=e;a.timescale=a.formatTimescale=o.mdia.mdhd.timescale,a.duration=o.mdia.mdhd.duration;var u=o.mdia.minf.stbl.stsd.entries[0];if(a.width=u.width,a.height=u.height,u.pasp&&(a.sarRatio=[u.pasp.hSpacing,u.pasp.vSpacing]),u.hvcC)a.codecType=Yb,a.codec=u.hvcC.codec,a.vps=u.hvcC.vps,a.sps=u.hvcC.sps,a.pps=u.hvcC.pps,a.hvcC=u.hvcC.data;else{if(!u.avcC)throw new Error("unknown video stsd entry");a.codec=u.avcC.codec,a.sps=u.avcC.sps,a.pps=u.avcC.pps}a.present=!0}if(i&&r){var s,c,f=r;f.timescale=f.formatTimescale=i.mdia.mdhd.timescale,f.duration=i.mdia.mdhd.duration;var l=i.mdia.minf.stbl.stsd.entries[0];f.sampleSize=l.sampleSize,f.sampleRate=l.sampleRate,f.channelCount=l.channelCount,f.sampleDuration=s_.getFrameDuration(f.sampleRate,f.timescale),f.objectType=(null===(s=l.esds)||void 0===s?void 0:s.objectType)||2,l.esds&&(f.config=Array.from(l.esds.config)),f.codec=(null===(c=l.esds)||void 0===c?void 0:c.codec)||"mp4a.40.2",f.sampleRateIndex=s_.getRateIndexByRate(f.sampleRate),f.present=!0}return{videoTrack:e,audioTrack:r}}}},{key:"moovToSamples",value:function(t){var e=t.trak;if(e&&e.length){var r=e.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),n=e.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(r||n){var o,i;if(r){var a,u,s=null===(a=r.mdia)||void 0===a||null===(u=a.minf)||void 0===u?void 0:u.stbl;if(!s)return;var c=s.stts,f=s.stsc,l=s.stsz,h=s.stco,d=s.stss,p=s.ctts;if(!(c&&f&&l&&h&&d))return;o=O_(c,f,l,h,p,d)}if(n){var v,y,g,m=null===(v=n.mdia)||void 0===v||null===(y=v.minf)||void 0===y?void 0:y.stbl;if(!m)return;var b=null===(g=n.mdia.mdhd)||void 0===g?void 0:g.timescale,_=m.stts,w=m.stsc,x=m.stsz,T=m.stco;if(!(b&&_&&w&&x&&T))return;i=O_(_,w,x,T)}return{videoSamples:o,audioSamples:i}}}}}]),t}();function O_(t,e,r,n,o,i){var a,u,s,c=[],f=null==o?void 0:o.entries,l=e.entries,h=n.entries,d=r.entrySizes,p=null==i?void 0:i.entries;p&&(a={},p.forEach((function(t){a[t-1]=!0}))),f&&(u=[],f.forEach((function(t){for(var e=t.count,r=t.offset,n=0;n<e;n++)u.push(r)})));var v=-1,y=0,g=0,m=0,b=0,_=0,w=l[0].samplesPerChunk,x=l[1]?l[1].firstChunk-1:1/0;return t.entries.forEach((function(t){for(var e=t.count,n=t.delta,o=0;o<e;o++)s={dts:y,duration:n,size:d[g]||r.sampleSize,offset:h[m]+_,index:g},p&&(s.keyframe=a[g],s.keyframe&&v++,s.gopId=v),u&&u[g]&&(s.pts=s.dts+u[g]),c.push(s),y+=n,++g<w?_+=s.size:(m++,_=0,m>=x&&(b++,x=l[b+1]?l[b+1].firstChunk-1:1/0),w+=l[b].samplesPerChunk)})),c}function A_(t,e){return t.dataReferenceIndex=i_(e,6),t.width=i_(e,24),t.height=i_(e,26),t.horizresolution=a_(e,28),t.vertresolution=a_(e,32),t.frameCount=i_(e,40),t.depth=i_(e,74),78}function j_(t,e,r){if(t){if(t.size!==t.data.length)throw new Error("box ".concat(t.type," size !== data.length"));var n={start:t.start,size:t.size,headerSize:t.headerSize,type:t.type};return e&&(n.version=t.data[t.headerSize],n.flags=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<16)+(t[e+1]<<8)+(t[e+2]||0)}(t.data,t.headerSize+1),n.headerSize+=4),r(n,t.data.subarray(n.headerSize),n.start+n.headerSize),n}}function E_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E_(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var R_=function t(e,r){n(this,t),this.type="file",this.message=e,this.data=r},L_=function(){function t(){n(this,t),a(this,"_data",Object.create(null))}return i(t,[{key:"set",value:function(t,e){this._data[t]=e}},{key:"get",value:function(t){return this._data[t]}},{key:"clear",value:function(){this._data=Object.create(null)}}]),t}();function P_(t,e){var r=t.trak;if(r&&r.length){var n=r.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),o=r.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(n||o){var i,a=[],u=[];if(n){var s,c,f,l=null===(s=n.mdia)||void 0===s||null===(c=s.minf)||void 0===c?void 0:c.stbl;if(!l)return;var h=null===(f=n.mdia.mdhd)||void 0===f?void 0:f.timescale,d=l.stts,p=l.stsc,v=l.stsz,y=l.stco,g=l.stss;if(!(h&&d&&p&&v&&y&&g))return;i=(a=I_(e,h,d,p,v,y,g)).map((function(t){return t.endTime-t.startTime}))}if(o){var m,b,_,w=null===(m=o.mdia)||void 0===m||null===(b=m.minf)||void 0===b?void 0:b.stbl;if(!w)return;var x=null===(_=o.mdia.mdhd)||void 0===_?void 0:_.timescale,T=w.stts,S=w.stsc,k=w.stsz,O=w.stco;if(!(x&&T&&S&&k&&O))return;u=I_(e,x,T,S,k,O,null,i)}return{videoSegments:a,audioSegments:u}}}}function I_(t,e,r,n,o,i,a,u){var s,c,f,l=[],h=[],d=[],p=n.entries,v=i.entries,y=o.entrySizes,g=null==a?void 0:a.entries;g&&(s={},g.forEach((function(t){s[t-1]=!0})));var m=0,b=0,_=0,w=0,x=0,T=p[0].samplesPerChunk,S=p[1]?p[1].firstChunk-1:1/0;r.entries.forEach((function(t){var r=t.count,n=t.delta;f=n/e;for(var i=0;i<r;i++)c={startTime:m,duration:f,size:y[b]||o.sampleSize,offset:v[_]+x,index:b},g&&(c.keyframe=s[b],c.keyframe?(h.push([c]),d.push(c.duration)):(h[h.length-1].push(c),d[h.length-1]+=c.duration)),l.push(c),m+=f,++b<T?x+=c.size:(_++,x=0,_>=S&&(w++,S=p[w+1]?p[w+1].firstChunk-1:1/0),T+=p[w].samplesPerChunk)}));var k=l.length;if(k&&(!a||l[0].keyframe)){var O,A=[],j=[],E=0,C=function(){var t;O=j[j.length-1],A.push({index:A.length,startTime:(null===(t=A[A.length-1])||void 0===t?void 0:t.endTime)||j[0].startTime,endTime:O.startTime+O.duration,range:[j[0].offset,O.offset+O.size],frames:j}),E=0,j=[]};if(a)for(var R=0,L=0,P=h.length;L<P;L++){var I,B;if(E+=d[L],(I=j).push.apply(I,f_(h[L])),L+1<P){if((R=E+d[L+1])>=t)if(R-t<Math.abs(t-E))(B=j).push.apply(B,f_(h[L+1])),C(),L++;else C()}else C()}else for(var M=(u=u||[])[0]||t,D=0;D<k;D++)j.push(l[D]),E+=l[D].duration,(D+1>=k||E>=M)&&(C(),M=u[A.length]||t);return A}}function B_(t){var e="",r="",n=0,o=0,i=0,a=0,u=0;t.mvhd&&(u=t.mvhd.duration/t.mvhd.timescale);var s=t.trak;if(s){var c,f,l,h,d,p,v,y,g,m=s.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),b=s.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(m)if(c=null===(f=m.mdia)||void 0===f||null===(l=f.minf)||void 0===l||null===(h=l.stbl)||void 0===h?void 0:h.stsd.entries[0])n=c.width,o=c.height,e=null===(d=c.avcC||c.hvcC)||void 0===d?void 0:d.codec;if(b)if(c=null===(p=b.mdia)||void 0===p||null===(v=p.minf)||void 0===v||null===(y=v.stbl)||void 0===y?void 0:y.stsd.entries[0])i=c.channelCount,a=c.sampleRate,r=null===(g=c.esds)||void 0===g?void 0:g.codec}return{videoCodec:e,audioCodec:r,width:n,height:o,audioChannelCount:i,audioSampleRate:a,duration:u,moov:t}}function M_(t){return"number"==typeof t&&!isNaN(t)}var D_=["vid","moovEnd","segmentDuration","cache","maxDownloadInfoSize"];function z_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function F_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z_(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}return function(){function t(e){n(this,t),a(this,"vid",""),a(this,"url",""),a(this,"meta",{}),a(this,"downloadInfo",[]),a(this,"videoSegments",[]),a(this,"audioSegments",[]),a(this,"cache",null),a(this,"_currentSegmentIndex",-1),a(this,"_currentLoadingSegmentIndex",-1),a(this,"_transformError",(function(t){return t.type="network",t})),this._config=C_(C_({vid:"",moovEnd:8e3,segmentDuration:5,maxDownloadInfoSize:30,cache:null},e),{},{responseType:"arraybuffer"});var o=this._config,i=o.vid;o.moovEnd,o.segmentDuration;var u=o.cache;o.maxDownloadInfoSize;var s=r(o,D_);this.cache=u||new L_,this.vid=i||s.url,this.url=s.url,s.transformError=this._transformError,this.logger=new Bb("MP4Loader"),e.openLog&&Bb.enable(),s.logger=this.logger,this._loader=new Lb(s)}var o,u,s,c,f,l,h,d,p,v;return i(t,[{key:"isMetaLoaded",get:function(){return this.videoSegments.length||this.audioSegments.length}},{key:"setCurrentSegment",value:function(t){M_(t)&&(this._currentSegmentIndex=t)}},{key:"isLastSegment",value:function(t){var e,r;return!!M_(t)&&t===((null===(e=this.videoSegments[this.videoSegments.length-1])||void 0===e?void 0:e.index)||(null===(r=this.audioSegments[this.audioSegments.length-1])||void 0===r?void 0:r.index)||0)}},{key:"isSegmentLoading",value:function(t){return t===this._currentLoadingSegmentIndex}},{key:"changeUrl",value:(v=e(Vi.mark((function t(e){var r,n,o=arguments;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:e,n=o.length>2?o[2]:void 0,t.next=4,this.reset();case 4:e&&(this.url=e),r&&(this.vid=r),n&&(this._config.moovEnd=n);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"getOrLoadMeta",value:(p=e(Vi.mark((function t(e){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isMetaLoaded){t.next=3;break}return t.next=3,this.loadMeta(e);case 3:return t.abrupt("return",this.meta);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"loadMeta",value:(d=e(Vi.mark((function t(e,r){var n,o,i,a,u,s,c,f,l;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],t.next=3,this._loadData([0,r||this._config.moovEnd],e);case 3:if(o=t.sent){t.next=6;break}return t.abrupt("return");case 6:if(n.push(o),i=k_.findBox(o.data,["moov"])[0]){t.next=22;break}if(a=k_.findBox(o.data,["mdat"])[0]){t.next=12;break}throw new R_("cannot find moov or mdat box",o.data);case 12:return u=a.start+a.size,t.next=15,this._loadData([u],e);case 15:if(o=t.sent){t.next=18;break}return t.abrupt("return");case 18:if(n.push(o),i=k_.findBox(o.data,["moov"],u)[0]){t.next=22;break}throw new R_("cannot find moov box",o.data);case 22:if(!(i.size>i.data.length)){t.next=30;break}return t.next=25,this._loadData([o.data.length,i.start+i.size-1],e);case 25:if(o=t.sent){t.next=28;break}return t.abrupt("return");case 28:n.push(o),i.data=Pb(i.data,o.data);case 30:if(s=k_.moov(i)){t.next=33;break}throw new R_("cannot parse moov box",i.data);case 33:if(c=P_(s,this._config.segmentDuration)){t.next=36;break}throw new R_("cannot parse segments",i.data);case 36:return this.meta=B_(s),f=c.videoSegments,l=c.audioSegments,this.videoSegments=f,this.audioSegments=l,t.abrupt("return",{meta:this.meta,videoSegments:f,audioSegments:l,responses:n});case 41:case"end":return t.stop()}}),t,this)}))),function(t,e){return d.apply(this,arguments)})},{key:"getSegmentByTime",value:function(t){var e,r;return this.videoSegments.length?(e=this.videoSegments.find((function(e){return e.startTime<=t&&e.endTime>t})))&&(r=this.audioSegments[e.index]):r=this.audioSegments.find((function(e){return e.startTime<=t&&e.endTime>t})),{video:e,audio:r}}},{key:"loadSegmentByTime",value:(h=e(Vi.mark((function t(e,r){var n,o,i,a,u=arguments;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!(u.length>2&&void 0!==u[2])||u[2],this.isMetaLoaded){t.next=4;break}return t.next=4,this.loadMeta(r);case 4:return o=this.getSegmentByTime(e),i=o.video,a=o.audio,t.abrupt("return",this._loadSegment(i,a,r,n));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:"loadNextSegment",value:(l=e(Vi.mark((function t(e){var r,n,o,i=arguments;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!(i.length>1&&void 0!==i[1])||i[1],this.isMetaLoaded){t.next=4;break}return t.next=4,this.loadMeta();case 4:return n=this.videoSegments[this._currentSegmentIndex+1],o=this.audioSegments[this._currentSegmentIndex+1],t.abrupt("return",this._loadSegment(n,o,e,r));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"preload",value:(f=e(Vi.mark((function t(r){var n,o,i,a,u,s,c,f=this;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isMetaLoaded){t.next=3;break}return t.next=3,this.loadMeta(!0);case 3:if(r&&!(r<0)){t.next=5;break}return t.abrupt("return");case 5:if(n=this.getSegmentByTime(r),o=n.video,i=n.audio,a=Math.max((null==o?void 0:o.index)||0,(null==i?void 0:i.index)||0)){t.next=9;break}return t.abrupt("return");case 9:return u=this.videoSegments.slice(0,a),s=this.audioSegments.slice(0,a),c=function(){var t=e(Vi.mark((function t(e){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e>a)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,f._loadSegment(u[e],s[e],!0,!1);case 4:return t.next=6,c(e+1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.next=14,c(0);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"cancel",value:function(){return this._loader.cancel()}},{key:"reset",value:(c=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._loader.cancel();case 2:this.vid=this.url="",this.meta={},this.downloadInfo=[],this.videoSegments=[],this.audioSegments=[],this._currentSegmentIndex=-1,this._currentLoadingSegmentIndex=-1;case 9:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"destroy",value:(s=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.cancel();case 2:this.cache.clear();case 3:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"_loadSegment",value:(u=e(Vi.mark((function t(e,r,n,o){var i,a;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e||r){t.next=2;break}return t.abrupt("return");case 2:return i=(null==e?void 0:e.index)||(null==r?void 0:r.index)||0,this._currentLoadingSegmentIndex=i,t.prev=4,t.next=7,this._loadData([Math.min((null==e?void 0:e.range[0])||1/0,(null==r?void 0:r.range[0])||1/0),Math.max((null==e?void 0:e.range[1])||0,(null==r?void 0:r.range[1])||0)],n);case 7:a=t.sent;case 8:return t.prev=8,this._currentLoadingSegmentIndex=-1,t.finish(8);case 11:if(a){t.next=13;break}return t.abrupt("return");case 13:return o&&(this._currentSegmentIndex=i),a.video=e,a.audio=r,t.abrupt("return",a);case 17:case"end":return t.stop()}}),t,this,[[4,,8,11]])}))),function(t,e,r,n){return u.apply(this,arguments)})},{key:"loadData",value:(o=e(Vi.mark((function t(e,r,n){var o,i,a;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=this._getCacheKey(e),t.next=3,this.cache.get(o);case 3:if(i=t.sent){t.next=10;break}return t.next=7,this._loader.load(this.url,F_({range:e},n));case 7:a=t.sent,t.next=11;break;case 10:a={data:i,state:!0,options:{fromCache:!0,range:e}};case 11:if(a){t.next=13;break}return t.abrupt("return");case 13:return i||(a.data&&this.downloadInfo.push({startTime:a.startTime,endTime:a.endTime,size:a.data.byteLength,range:e}),this.downloadInfo&&this.downloadInfo.length>this._config.maxDownloadInfoSize&&(this.downloadInfo=this.downloadInfo.slice(-this._config.maxDownloadInfoSize))),!i&&r&&this.cache.set(o,a.data),t.abrupt("return",a);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:"_getCacheKey",value:function(t){return(this.vid||this.url)+":"+t}}]),t}()}));
2
+ //# sourceMappingURL=index.min.js.map