@byteplus/veplayer-plugin 2.10.3-rc.0 → 2.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/ad.d.ts +3 -0
- package/esm/hlsjs.d.ts +3 -0
- package/esm/index.development.js +531 -244
- package/esm/index.production.js +1 -1
- package/esm/time-shift.d.ts +3 -0
- package/esm/veplayer.plugin.abr.development.js +1 -1
- package/esm/veplayer.plugin.abr.production.js +1 -1
- package/esm/veplayer.plugin.drm.development.js +1 -1
- package/esm/veplayer.plugin.drm.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +1 -1
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +1 -1
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.hlsjs.development.js +496 -218
- package/esm/veplayer.plugin.hlsjs.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +37 -28
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.time.shift.development.js +13 -16
- package/esm/veplayer.plugin.time.shift.production.js +1 -1
- package/esm/veplayer.plugin.xgvideo.development.js +1 -1
- package/esm/veplayer.plugin.xgvideo.production.js +1 -1
- package/esm/veplayer.strategy.base.development.js +1 -1
- package/esm/veplayer.strategy.base.production.js +1 -1
- package/esm/veplayer.strategy.rtm.adaptive.buffer.development.js +1 -1
- package/esm/veplayer.strategy.rtm.adaptive.buffer.production.js +1 -1
- package/package.json +106 -2
- package/umd/ad.d.ts +3 -0
- package/umd/hlsjs.d.ts +3 -0
- package/umd/time-shift.d.ts +3 -0
- package/umd/veplayer.plugin.hlsjs.development.js +495 -217
- package/umd/veplayer.plugin.hlsjs.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +36 -27
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var check$1=function(e){return e&&e.Math==Math&&e},global$13=check$1("object"==typeof globalThis&&globalThis)||check$1("object"==typeof window&&window)||check$1("object"==typeof self&&self)||check$1("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||commonjsGlobal||Function("return this")(),fails$1b=function(e){try{return!!e()}catch(e){return!0}},fails$1a=fails$1b,functionBindNative$1=!fails$1a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$8=functionBindNative$1,FunctionPrototype$7=Function.prototype,apply$b=FunctionPrototype$7.apply,call$S=FunctionPrototype$7.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$8?call$S.bind(apply$b):function(){return call$S.apply(apply$b,arguments)}),NATIVE_BIND$7=functionBindNative$1,FunctionPrototype$6=Function.prototype,call$R=FunctionPrototype$6.call,uncurryThisWithBind$1=NATIVE_BIND$7&&FunctionPrototype$6.bind.bind(call$R,call$R),functionUncurryThis$1=NATIVE_BIND$7?uncurryThisWithBind$1:function(e){return function(){return call$R.apply(e,arguments)}},uncurryThis$1c=functionUncurryThis$1,toString$q=uncurryThis$1c({}.toString),stringSlice$b=uncurryThis$1c("".slice),classofRaw$5=function(e){return stringSlice$b(toString$q(e),8,-1)},classofRaw$4=classofRaw$5,uncurryThis$1b=functionUncurryThis$1,functionUncurryThisClause$1=function(e){if("Function"===classofRaw$4(e))return uncurryThis$1b(e)},documentAll$5="object"==typeof document&&document.all,IS_HTMLDDA$1=void 0===documentAll$5&&void 0!==documentAll$5,documentAll_1$1={all:documentAll$5,IS_HTMLDDA:IS_HTMLDDA$1},$documentAll$3=documentAll_1$1,documentAll$4=$documentAll$3.all,isCallable$S=$documentAll$3.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$4}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor$1={},fails$19=fails$1b,descriptors$1=!fails$19((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$6=functionBindNative$1,call$Q=Function.prototype.call,functionCall$1=NATIVE_BIND$6?call$Q.bind(call$Q):function(){return call$Q.apply(call$Q,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$4={}.propertyIsEnumerable,getOwnPropertyDescriptor$h=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$h&&!$propertyIsEnumerable$4.call({1:2},1);objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function(e){var t=getOwnPropertyDescriptor$h(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$4;var match$1,version$1,createPropertyDescriptor$f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$1a=functionUncurryThis$1,fails$18=fails$1b,classof$t=classofRaw$5,$Object$9=Object,split$7=uncurryThis$1a("".split),indexedObject$1=fails$18((function(){return!$Object$9("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$t(e)?split$7(e,""):$Object$9(e)}:$Object$9,isNullOrUndefined$c=function(e){return null==e},isNullOrUndefined$b=isNullOrUndefined$c,$TypeError$C=TypeError,requireObjectCoercible$b=function(e){if(isNullOrUndefined$b(e))throw $TypeError$C("Can't call method on "+e);return e},IndexedObject$9=indexedObject$1,requireObjectCoercible$a=requireObjectCoercible$b,toIndexedObject$n=function(e){return IndexedObject$9(requireObjectCoercible$a(e))},isCallable$R=isCallable$S,$documentAll$2=documentAll_1$1,documentAll$3=$documentAll$2.all,isObject$A=$documentAll$2.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$R(e)||e===documentAll$3}:function(e){return"object"==typeof e?null!==e:isCallable$R(e)},path$w={},path$v=path$w,global$12=global$13,isCallable$Q=isCallable$S,aFunction$1=function(e){return isCallable$Q(e)?e:void 0},getBuiltIn$r=function(e,t){return arguments.length<2?aFunction$1(path$v[e])||aFunction$1(global$12[e]):path$v[e]&&path$v[e][t]||global$12[e]&&global$12[e][t]},uncurryThis$19=functionUncurryThis$1,objectIsPrototypeOf$1=uncurryThis$19({}.isPrototypeOf),engineUserAgent$1="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$11=global$13,userAgent$b=engineUserAgent$1,process$8=global$11.process,Deno$2=global$11.Deno,versions$1=process$8&&process$8.versions||Deno$2&&Deno$2.version,v8$1=versions$1&&versions$1.v8;v8$1&&(version$1=(match$1=v8$1.split("."))[0]>0&&match$1[0]<4?1:+(match$1[0]+match$1[1])),!version$1&&userAgent$b&&(!(match$1=userAgent$b.match(/Edge\/(\d+)/))||match$1[1]>=74)&&(match$1=userAgent$b.match(/Chrome\/(\d+)/))&&(version$1=+match$1[1]);var engineV8Version$1=version$1,V8_VERSION$7=engineV8Version$1,fails$17=fails$1b,global$10=global$13,$String$a=global$10.String,symbolConstructorDetection$1=!!Object.getOwnPropertySymbols&&!fails$17((function(){var e=Symbol();return!$String$a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$7&&V8_VERSION$7<41})),NATIVE_SYMBOL$7=symbolConstructorDetection$1,useSymbolAsUid$1=NATIVE_SYMBOL$7&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$q=getBuiltIn$r,isCallable$P=isCallable$S,isPrototypeOf$s=objectIsPrototypeOf$1,USE_SYMBOL_AS_UID$3=useSymbolAsUid$1,$Object$8=Object,isSymbol$a=USE_SYMBOL_AS_UID$3?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$q("Symbol");return isCallable$P(t)&&isPrototypeOf$s(t.prototype,$Object$8(e))},$String$9=String,tryToString$e=function(e){try{return $String$9(e)}catch(e){return"Object"}},isCallable$O=isCallable$S,tryToString$d=tryToString$e,$TypeError$B=TypeError,aCallable$u=function(e){if(isCallable$O(e))return e;throw $TypeError$B(tryToString$d(e)+" is not a function")},aCallable$t=aCallable$u,isNullOrUndefined$a=isNullOrUndefined$c,getMethod$8=function(e,t){var r=e[t];return isNullOrUndefined$a(r)?void 0:aCallable$t(r)},call$P=functionCall$1,isCallable$N=isCallable$S,isObject$z=isObject$A,$TypeError$A=TypeError,ordinaryToPrimitive$3=function(e,t){var r,n;if("string"===t&&isCallable$N(r=e.toString)&&!isObject$z(n=call$P(r,e)))return n;if(isCallable$N(r=e.valueOf)&&!isObject$z(n=call$P(r,e)))return n;if("string"!==t&&isCallable$N(r=e.toString)&&!isObject$z(n=call$P(r,e)))return n;throw $TypeError$A("Can't convert object to primitive value")},shared$c={exports:{}},isPure$1=!0,global$$=global$13,defineProperty$p=Object.defineProperty,defineGlobalProperty$5=function(e,t){try{defineProperty$p(global$$,e,{value:t,configurable:!0,writable:!0})}catch(r){global$$[e]=t}return t},global$_=global$13,defineGlobalProperty$4=defineGlobalProperty$5,SHARED$1="__core-js_shared__",store$7=global$_[SHARED$1]||defineGlobalProperty$4(SHARED$1,{}),sharedStore$1=store$7,store$6=sharedStore$1;(shared$c.exports=function(e,t){return store$6[e]||(store$6[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedExports$1=shared$c.exports,requireObjectCoercible$9=requireObjectCoercible$b,$Object$7=Object,toObject$t=function(e){return $Object$7(requireObjectCoercible$9(e))},uncurryThis$18=functionUncurryThis$1,toObject$s=toObject$t,hasOwnProperty$1=uncurryThis$18({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function(e,t){return hasOwnProperty$1(toObject$s(e),t)},uncurryThis$17=functionUncurryThis$1,id$2=0,postfix$1=Math.random(),toString$p=uncurryThis$17(1..toString),uid$8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$p(++id$2+postfix$1,36)},global$Z=global$13,shared$b=sharedExports$1,hasOwn$B=hasOwnProperty_1$1,uid$7=uid$8,NATIVE_SYMBOL$6=symbolConstructorDetection$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,Symbol$7=global$Z.Symbol,WellKnownSymbolsStore$3=shared$b("wks"),createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$7.for||Symbol$7:Symbol$7&&Symbol$7.withoutSetter||uid$7,wellKnownSymbol$N=function(e){return hasOwn$B(WellKnownSymbolsStore$3,e)||(WellKnownSymbolsStore$3[e]=NATIVE_SYMBOL$6&&hasOwn$B(Symbol$7,e)?Symbol$7[e]:createWellKnownSymbol$1("Symbol."+e)),WellKnownSymbolsStore$3[e]},call$O=functionCall$1,isObject$y=isObject$A,isSymbol$9=isSymbol$a,getMethod$7=getMethod$8,ordinaryToPrimitive$2=ordinaryToPrimitive$3,wellKnownSymbol$M=wellKnownSymbol$N,$TypeError$z=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$M("toPrimitive"),toPrimitive$5=function(e,t){if(!isObject$y(e)||isSymbol$9(e))return e;var r,n=getMethod$7(e,TO_PRIMITIVE$1);if(n){if(void 0===t&&(t="default"),r=call$O(n,e,t),!isObject$y(r)||isSymbol$9(r))return r;throw $TypeError$z("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive$2(e,t)},toPrimitive$4=toPrimitive$5,isSymbol$8=isSymbol$a,toPropertyKey$9=function(e){var t=toPrimitive$4(e,"string");return isSymbol$8(t)?t:t+""},global$Y=global$13,isObject$x=isObject$A,document$6=global$Y.document,EXISTS$3=isObject$x(document$6)&&isObject$x(document$6.createElement),documentCreateElement$4=function(e){return EXISTS$3?document$6.createElement(e):{}},DESCRIPTORS$G=descriptors$1,fails$16=fails$1b,createElement$3=documentCreateElement$4,ie8DomDefine$1=!DESCRIPTORS$G&&!fails$16((function(){return 7!=Object.defineProperty(createElement$3("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$F=descriptors$1,call$N=functionCall$1,propertyIsEnumerableModule$4=objectPropertyIsEnumerable$1,createPropertyDescriptor$e=createPropertyDescriptor$f,toIndexedObject$m=toIndexedObject$n,toPropertyKey$8=toPropertyKey$9,hasOwn$A=hasOwnProperty_1$1,IE8_DOM_DEFINE$3=ie8DomDefine$1,$getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$F?$getOwnPropertyDescriptor$4:function(e,t){if(e=toIndexedObject$m(e),t=toPropertyKey$8(t),IE8_DOM_DEFINE$3)try{return $getOwnPropertyDescriptor$4(e,t)}catch(e){}if(hasOwn$A(e,t))return createPropertyDescriptor$e(!call$N(propertyIsEnumerableModule$4.f,e,t),e[t])};var fails$15=fails$1b,isCallable$M=isCallable$S,replacement$1=/#|\.prototype\./,isForced$6=function(e,t){var r=data$1[normalize$1(e)];return r==POLYFILL$1||r!=NATIVE$1&&(isCallable$M(t)?fails$15(t):!!t)},normalize$1=isForced$6.normalize=function(e){return String(e).replace(replacement$1,".").toLowerCase()},data$1=isForced$6.data={},NATIVE$1=isForced$6.NATIVE="N",POLYFILL$1=isForced$6.POLYFILL="P",isForced_1$1=isForced$6,uncurryThis$16=functionUncurryThisClause$1,aCallable$s=aCallable$u,NATIVE_BIND$5=functionBindNative$1,bind$C=functionUncurryThisClause$1(functionUncurryThisClause$1.bind),functionBindContext$1=function(e,t){return aCallable$s(e),void 0===t?e:NATIVE_BIND$5?bind$C(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty$1={},DESCRIPTORS$E=descriptors$1,fails$14=fails$1b,v8PrototypeDefineBug$1=DESCRIPTORS$E&&fails$14((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$w=isObject$A,$String$8=String,$TypeError$y=TypeError,anObject$z=function(e){if(isObject$w(e))return e;throw $TypeError$y($String$8(e)+" is not an object")},DESCRIPTORS$D=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$3=v8PrototypeDefineBug$1,anObject$y=anObject$z,toPropertyKey$7=toPropertyKey$9,$TypeError$x=TypeError,$defineProperty$2=Object.defineProperty,$getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$3="configurable",WRITABLE$1="writable";objectDefineProperty$1.f=DESCRIPTORS$D?V8_PROTOTYPE_DEFINE_BUG$3?function(e,t,r){if(anObject$y(e),t=toPropertyKey$7(t),anObject$y(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE$1 in r&&!r[WRITABLE$1]){var n=$getOwnPropertyDescriptor$3(e,t);n&&n[WRITABLE$1]&&(e[t]=r.value,r={configurable:CONFIGURABLE$3 in r?r[CONFIGURABLE$3]:n[CONFIGURABLE$3],enumerable:ENUMERABLE$1 in r?r[ENUMERABLE$1]:n[ENUMERABLE$1],writable:!1})}return $defineProperty$2(e,t,r)}:$defineProperty$2:function(e,t,r){if(anObject$y(e),t=toPropertyKey$7(t),anObject$y(r),IE8_DOM_DEFINE$2)try{return $defineProperty$2(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$x("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$C=descriptors$1,definePropertyModule$b=objectDefineProperty$1,createPropertyDescriptor$d=createPropertyDescriptor$f,createNonEnumerableProperty$j=DESCRIPTORS$C?function(e,t,r){return definePropertyModule$b.f(e,t,createPropertyDescriptor$d(1,r))}:function(e,t,r){return e[t]=r,e},global$X=global$13,apply$a=functionApply$1,uncurryThis$15=functionUncurryThisClause$1,isCallable$L=isCallable$S,getOwnPropertyDescriptor$g=objectGetOwnPropertyDescriptor$1.f,isForced$5=isForced_1$1,path$u=path$w,bind$B=functionBindContext$1,createNonEnumerableProperty$i=createNonEnumerableProperty$j,hasOwn$z=hasOwnProperty_1$1,wrapConstructor=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return apply$a(e,this,arguments)};return t.prototype=e.prototype,t},_export$1=function(e,t){var r,n,o,i,a,s,c,l,u,$=e.target,d=e.global,A=e.stat,p=e.proto,f=d?global$X:A?global$X[$]:(global$X[$]||{}).prototype,h=d?path$u:path$u[$]||createNonEnumerableProperty$i(path$u,$,{})[$],y=h.prototype;for(i in t)n=!(r=isForced$5(d?i:$+(A?".":"#")+i,e.forced))&&f&&hasOwn$z(f,i),s=h[i],n&&(c=e.dontCallGetSet?(u=getOwnPropertyDescriptor$g(f,i))&&u.value:f[i]),a=n&&c?c:t[i],n&&typeof s==typeof a||(l=e.bind&&n?bind$B(a,global$X):e.wrap&&n?wrapConstructor(a):p&&isCallable$L(a)?uncurryThis$15(a):a,(e.sham||a&&a.sham||s&&s.sham)&&createNonEnumerableProperty$i(l,"sham",!0),createNonEnumerableProperty$i(h,i,l),p&&(hasOwn$z(path$u,o=$+"Prototype")||createNonEnumerableProperty$i(path$u,o,{}),createNonEnumerableProperty$i(path$u[o],i,a),e.real&&y&&(r||!y[i])&&createNonEnumerableProperty$i(y,i,a)))},classof$s=classofRaw$5,isArray$i=Array.isArray||function(e){return"Array"==classof$s(e)},ceil$1=Math.ceil,floor$c=Math.floor,mathTrunc$1=Math.trunc||function(e){var t=+e;return(t>0?floor$c:ceil$1)(t)},trunc$1=mathTrunc$1,toIntegerOrInfinity$h=function(e){var t=+e;return t!=t||0===t?0:trunc$1(t)},toIntegerOrInfinity$g=toIntegerOrInfinity$h,min$8=Math.min,toLength$8=function(e){return e>0?min$8(toIntegerOrInfinity$g(e),9007199254740991):0},toLength$7=toLength$8,lengthOfArrayLike$u=function(e){return toLength$7(e.length)},$TypeError$w=TypeError,MAX_SAFE_INTEGER$1=9007199254740991,doesNotExceedSafeInteger$5=function(e){if(e>MAX_SAFE_INTEGER$1)throw $TypeError$w("Maximum allowed index exceeded");return e},toPropertyKey$6=toPropertyKey$9,definePropertyModule$a=objectDefineProperty$1,createPropertyDescriptor$c=createPropertyDescriptor$f,createProperty$c=function(e,t,r){var n=toPropertyKey$6(t);n in e?definePropertyModule$a.f(e,n,createPropertyDescriptor$c(0,r)):e[n]=r},wellKnownSymbol$L=wellKnownSymbol$N,TO_STRING_TAG$9=wellKnownSymbol$L("toStringTag"),test$4={};test$4[TO_STRING_TAG$9]="z";var toStringTagSupport$1="[object z]"===String(test$4),TO_STRING_TAG_SUPPORT$5=toStringTagSupport$1,isCallable$K=isCallable$S,classofRaw$3=classofRaw$5,wellKnownSymbol$K=wellKnownSymbol$N,TO_STRING_TAG$8=wellKnownSymbol$K("toStringTag"),$Object$6=Object,CORRECT_ARGUMENTS$1="Arguments"==classofRaw$3(function(){return arguments}()),tryGet$1=function(e,t){try{return e[t]}catch(e){}},classof$r=TO_STRING_TAG_SUPPORT$5?classofRaw$3:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet$1(t=$Object$6(e),TO_STRING_TAG$8))?r:CORRECT_ARGUMENTS$1?classofRaw$3(t):"Object"==(n=classofRaw$3(t))&&isCallable$K(t.callee)?"Arguments":n},uncurryThis$14=functionUncurryThis$1,isCallable$J=isCallable$S,store$5=sharedStore$1,functionToString$2=uncurryThis$14(Function.toString);isCallable$J(store$5.inspectSource)||(store$5.inspectSource=function(e){return functionToString$2(e)});var inspectSource$6=store$5.inspectSource,uncurryThis$13=functionUncurryThis$1,fails$13=fails$1b,isCallable$I=isCallable$S,classof$q=classof$r,getBuiltIn$p=getBuiltIn$r,inspectSource$5=inspectSource$6,noop$1=function(){},empty$1=[],construct$8=getBuiltIn$p("Reflect","construct"),constructorRegExp$1=/^\s*(?:class|function)\b/,exec$8=uncurryThis$13(constructorRegExp$1.exec),INCORRECT_TO_STRING$1=!constructorRegExp$1.exec(noop$1),isConstructorModern$1=function(e){if(!isCallable$I(e))return!1;try{return construct$8(noop$1,empty$1,e),!0}catch(e){return!1}},isConstructorLegacy$1=function(e){if(!isCallable$I(e))return!1;switch(classof$q(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$1||!!exec$8(constructorRegExp$1,inspectSource$5(e))}catch(e){return!0}};isConstructorLegacy$1.sham=!0;var isConstructor$9=!construct$8||fails$13((function(){var e;return isConstructorModern$1(isConstructorModern$1.call)||!isConstructorModern$1(Object)||!isConstructorModern$1((function(){e=!0}))||e}))?isConstructorLegacy$1:isConstructorModern$1,isArray$h=isArray$i,isConstructor$8=isConstructor$9,isObject$v=isObject$A,wellKnownSymbol$J=wellKnownSymbol$N,SPECIES$c=wellKnownSymbol$J("species"),$Array$8=Array,arraySpeciesConstructor$3=function(e){var t;return isArray$h(e)&&(t=e.constructor,(isConstructor$8(t)&&(t===$Array$8||isArray$h(t.prototype))||isObject$v(t)&&null===(t=t[SPECIES$c]))&&(t=void 0)),void 0===t?$Array$8:t},arraySpeciesConstructor$2=arraySpeciesConstructor$3,arraySpeciesCreate$7=function(e,t){return new(arraySpeciesConstructor$2(e))(0===t?0:t)},fails$12=fails$1b,wellKnownSymbol$I=wellKnownSymbol$N,V8_VERSION$6=engineV8Version$1,SPECIES$b=wellKnownSymbol$I("species"),arrayMethodHasSpeciesSupport$b=function(e){return V8_VERSION$6>=51||!fails$12((function(){var t=[];return(t.constructor={})[SPECIES$b]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$1M=_export$1,fails$11=fails$1b,isArray$g=isArray$i,isObject$u=isObject$A,toObject$r=toObject$t,lengthOfArrayLike$t=lengthOfArrayLike$u,doesNotExceedSafeInteger$4=doesNotExceedSafeInteger$5,createProperty$b=createProperty$c,arraySpeciesCreate$6=arraySpeciesCreate$7,arrayMethodHasSpeciesSupport$a=arrayMethodHasSpeciesSupport$b,wellKnownSymbol$H=wellKnownSymbol$N,V8_VERSION$5=engineV8Version$1,IS_CONCAT_SPREADABLE$1=wellKnownSymbol$H("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT$1=V8_VERSION$5>=51||!fails$11((function(){var e=[];return e[IS_CONCAT_SPREADABLE$1]=!1,e.concat()[0]!==e})),isConcatSpreadable$1=function(e){if(!isObject$u(e))return!1;var t=e[IS_CONCAT_SPREADABLE$1];return void 0!==t?!!t:isArray$g(e)},FORCED$g=!IS_CONCAT_SPREADABLE_SUPPORT$1||!arrayMethodHasSpeciesSupport$a("concat");$$1M({target:"Array",proto:!0,arity:1,forced:FORCED$g},{concat:function(e){var t,r,n,o,i,a=toObject$r(this),s=arraySpeciesCreate$6(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable$1(i=-1===t?a:arguments[t]))for(o=lengthOfArrayLike$t(i),doesNotExceedSafeInteger$4(c+o),r=0;r<o;r++,c++)r in i&&createProperty$b(s,c,i[r]);else doesNotExceedSafeInteger$4(c+1),createProperty$b(s,c++,i);return s.length=c,s}});var classof$p=classof$r,$String$7=String,toString$o=function(e){if("Symbol"===classof$p(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$7(e)},objectDefineProperties$1={},toIntegerOrInfinity$f=toIntegerOrInfinity$h,max$8=Math.max,min$7=Math.min,toAbsoluteIndex$d=function(e,t){var r=toIntegerOrInfinity$f(e);return r<0?max$8(r+t,0):min$7(r,t)},toIndexedObject$l=toIndexedObject$n,toAbsoluteIndex$c=toAbsoluteIndex$d,lengthOfArrayLike$s=lengthOfArrayLike$u,createMethod$c=function(e){return function(t,r,n){var o,i=toIndexedObject$l(t),a=lengthOfArrayLike$s(i),s=toAbsoluteIndex$c(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},arrayIncludes$1={includes:createMethod$c(!0),indexOf:createMethod$c(!1)},hiddenKeys$b={},uncurryThis$12=functionUncurryThis$1,hasOwn$y=hasOwnProperty_1$1,toIndexedObject$k=toIndexedObject$n,indexOf$9=arrayIncludes$1.indexOf,hiddenKeys$a=hiddenKeys$b,push$k=uncurryThis$12([].push),objectKeysInternal$1=function(e,t){var r,n=toIndexedObject$k(e),o=0,i=[];for(r in n)!hasOwn$y(hiddenKeys$a,r)&&hasOwn$y(n,r)&&push$k(i,r);for(;t.length>o;)hasOwn$y(n,r=t[o++])&&(~indexOf$9(i,r)||push$k(i,r));return i},enumBugKeys$7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$3=objectKeysInternal$1,enumBugKeys$6=enumBugKeys$7,objectKeys$8=Object.keys||function(e){return internalObjectKeys$3(e,enumBugKeys$6)},DESCRIPTORS$B=descriptors$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,definePropertyModule$9=objectDefineProperty$1,anObject$x=anObject$z,toIndexedObject$j=toIndexedObject$n,objectKeys$7=objectKeys$8;objectDefineProperties$1.f=DESCRIPTORS$B&&!V8_PROTOTYPE_DEFINE_BUG$2?Object.defineProperties:function(e,t){anObject$x(e);for(var r,n=toIndexedObject$j(t),o=objectKeys$7(t),i=o.length,a=0;i>a;)definePropertyModule$9.f(e,r=o[a++],n[r]);return e};var activeXDocument$1,getBuiltIn$o=getBuiltIn$r,html$5=getBuiltIn$o("document","documentElement"),shared$a=sharedExports$1,uid$6=uid$8,keys$9=shared$a("keys"),sharedKey$8=function(e){return keys$9[e]||(keys$9[e]=uid$6(e))},anObject$w=anObject$z,definePropertiesModule$2=objectDefineProperties$1,enumBugKeys$5=enumBugKeys$7,hiddenKeys$9=hiddenKeys$b,html$4=html$5,documentCreateElement$3=documentCreateElement$4,sharedKey$7=sharedKey$8,GT$1=">",LT$1="<",PROTOTYPE$3="prototype",SCRIPT$1="script",IE_PROTO$3=sharedKey$7("IE_PROTO"),EmptyConstructor$1=function(){},scriptTag$1=function(e){return LT$1+SCRIPT$1+GT$1+e+LT$1+"/"+SCRIPT$1+GT$1},NullProtoObjectViaActiveX$1=function(e){e.write(scriptTag$1("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame$1=function(){var e,t=documentCreateElement$3("iframe"),r="java"+SCRIPT$1+":";return t.style.display="none",html$4.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag$1("document.F=Object")),e.close(),e.F},NullProtoObject$1=function(){try{activeXDocument$1=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject$1="undefined"!=typeof document?document.domain&&activeXDocument$1?NullProtoObjectViaActiveX$1(activeXDocument$1):NullProtoObjectViaIFrame$1():NullProtoObjectViaActiveX$1(activeXDocument$1);for(var e=enumBugKeys$5.length;e--;)delete NullProtoObject$1[PROTOTYPE$3][enumBugKeys$5[e]];return NullProtoObject$1()};hiddenKeys$9[IE_PROTO$3]=!0;var objectCreate$1=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor$1[PROTOTYPE$3]=anObject$w(e),r=new EmptyConstructor$1,EmptyConstructor$1[PROTOTYPE$3]=null,r[IE_PROTO$3]=e):r=NullProtoObject$1(),void 0===t?r:definePropertiesModule$2.f(r,t)},objectGetOwnPropertyNames$1={},internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$4=enumBugKeys$7,hiddenKeys$8=enumBugKeys$4.concat("length","prototype");objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$2(e,hiddenKeys$8)};var objectGetOwnPropertyNamesExternal$1={},toAbsoluteIndex$b=toAbsoluteIndex$d,lengthOfArrayLike$r=lengthOfArrayLike$u,createProperty$a=createProperty$c,$Array$7=Array,max$7=Math.max,arraySliceSimple$1=function(e,t,r){for(var n=lengthOfArrayLike$r(e),o=toAbsoluteIndex$b(t,n),i=toAbsoluteIndex$b(void 0===r?n:r,n),a=$Array$7(max$7(i-o,0)),s=0;o<i;o++,s++)createProperty$a(a,s,e[o]);return a.length=s,a},classof$o=classofRaw$5,toIndexedObject$i=toIndexedObject$n,$getOwnPropertyNames$2=objectGetOwnPropertyNames$1.f,arraySlice$h=arraySliceSimple$1,windowNames$1="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames$1=function(e){try{return $getOwnPropertyNames$2(e)}catch(e){return arraySlice$h(windowNames$1)}};objectGetOwnPropertyNamesExternal$1.f=function(e){return windowNames$1&&"Window"==classof$o(e)?getWindowNames$1(e):$getOwnPropertyNames$2(toIndexedObject$i(e))};var objectGetOwnPropertySymbols$1={};objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$h=createNonEnumerableProperty$j,defineBuiltIn$n=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$h(e,t,r),e},defineProperty$o=objectDefineProperty$1,defineBuiltInAccessor$8=function(e,t,r){return defineProperty$o.f(e,t,r)},wellKnownSymbolWrapped={},wellKnownSymbol$G=wellKnownSymbol$N;wellKnownSymbolWrapped.f=wellKnownSymbol$G;var set$a,get$b,has$3,path$t=path$w,hasOwn$x=hasOwnProperty_1$1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$n=objectDefineProperty$1.f,wellKnownSymbolDefine=function(e){var t=path$t.Symbol||(path$t.Symbol={});hasOwn$x(t,e)||defineProperty$n(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$M=functionCall$1,getBuiltIn$n=getBuiltIn$r,wellKnownSymbol$F=wellKnownSymbol$N,defineBuiltIn$m=defineBuiltIn$n,symbolDefineToPrimitive=function(){var e=getBuiltIn$n("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$F("toPrimitive");t&&!t[n]&&defineBuiltIn$m(t,n,(function(e){return call$M(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$4=toStringTagSupport$1,classof$n=classof$r,objectToString$1=TO_STRING_TAG_SUPPORT$4?{}.toString:function(){return"[object "+classof$n(this)+"]"},TO_STRING_TAG_SUPPORT$3=toStringTagSupport$1,defineProperty$m=objectDefineProperty$1.f,createNonEnumerableProperty$g=createNonEnumerableProperty$j,hasOwn$w=hasOwnProperty_1$1,toString$n=objectToString$1,wellKnownSymbol$E=wellKnownSymbol$N,TO_STRING_TAG$7=wellKnownSymbol$E("toStringTag"),setToStringTag$g=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$w(o,TO_STRING_TAG$7)||defineProperty$m(o,TO_STRING_TAG$7,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT$3&&createNonEnumerableProperty$g(o,"toString",toString$n)}},global$W=global$13,isCallable$H=isCallable$S,WeakMap$3=global$W.WeakMap,weakMapBasicDetection$1=isCallable$H(WeakMap$3)&&/native code/.test(String(WeakMap$3)),NATIVE_WEAK_MAP$1=weakMapBasicDetection$1,global$V=global$13,isObject$t=isObject$A,createNonEnumerableProperty$f=createNonEnumerableProperty$j,hasOwn$v=hasOwnProperty_1$1,shared$9=sharedStore$1,sharedKey$6=sharedKey$8,hiddenKeys$7=hiddenKeys$b,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$b=global$V.TypeError,WeakMap$2=global$V.WeakMap,enforce$1=function(e){return has$3(e)?get$b(e):set$a(e,{})},getterFor$1=function(e){return function(t){var r;if(!isObject$t(t)||(r=get$b(t)).type!==e)throw TypeError$b("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP$1||shared$9.state){var store$4=shared$9.state||(shared$9.state=new WeakMap$2);store$4.get=store$4.get,store$4.has=store$4.has,store$4.set=store$4.set,set$a=function(e,t){if(store$4.has(e))throw TypeError$b(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,store$4.set(e,t),t},get$b=function(e){return store$4.get(e)||{}},has$3=function(e){return store$4.has(e)}}else{var STATE$1=sharedKey$6("state");hiddenKeys$7[STATE$1]=!0,set$a=function(e,t){if(hasOwn$v(e,STATE$1))throw TypeError$b(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,createNonEnumerableProperty$f(e,STATE$1,t),t},get$b=function(e){return hasOwn$v(e,STATE$1)?e[STATE$1]:{}},has$3=function(e){return hasOwn$v(e,STATE$1)}}var internalState$1={set:set$a,get:get$b,has:has$3,enforce:enforce$1,getterFor:getterFor$1},bind$A=functionBindContext$1,uncurryThis$11=functionUncurryThis$1,IndexedObject$8=indexedObject$1,toObject$q=toObject$t,lengthOfArrayLike$q=lengthOfArrayLike$u,arraySpeciesCreate$5=arraySpeciesCreate$7,push$j=uncurryThis$11([].push),createMethod$b=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,$){for(var d,A,p=toObject$q(c),f=IndexedObject$8(p),h=bind$A(l,u),y=lengthOfArrayLike$q(f),_=0,g=$||arraySpeciesCreate$5,m=t?g(c,y):r||a?g(c,0):void 0;y>_;_++)if((s||_ in f)&&(A=h(d=f[_],_,p),e))if(t)m[_]=A;else if(A)switch(e){case 3:return!0;case 5:return d;case 6:return _;case 2:push$j(m,d)}else switch(e){case 4:return!1;case 7:push$j(m,d)}return i?-1:n||o?o:m}},arrayIteration$1={forEach:createMethod$b(0),map:createMethod$b(1),filter:createMethod$b(2),some:createMethod$b(3),every:createMethod$b(4),find:createMethod$b(5),findIndex:createMethod$b(6),filterReject:createMethod$b(7)},$$1L=_export$1,global$U=global$13,call$L=functionCall$1,uncurryThis$10=functionUncurryThis$1,DESCRIPTORS$A=descriptors$1,NATIVE_SYMBOL$5=symbolConstructorDetection$1,fails$10=fails$1b,hasOwn$u=hasOwnProperty_1$1,isPrototypeOf$r=objectIsPrototypeOf$1,anObject$v=anObject$z,toIndexedObject$h=toIndexedObject$n,toPropertyKey$5=toPropertyKey$9,$toString$5=toString$o,createPropertyDescriptor$b=createPropertyDescriptor$f,nativeObjectCreate=objectCreate$1,objectKeys$6=objectKeys$8,getOwnPropertyNamesModule$3=objectGetOwnPropertyNames$1,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal$1,getOwnPropertySymbolsModule$5=objectGetOwnPropertySymbols$1,getOwnPropertyDescriptorModule$5=objectGetOwnPropertyDescriptor$1,definePropertyModule$8=objectDefineProperty$1,definePropertiesModule$1=objectDefineProperties$1,propertyIsEnumerableModule$3=objectPropertyIsEnumerable$1,defineBuiltIn$l=defineBuiltIn$n,defineBuiltInAccessor$7=defineBuiltInAccessor$8,shared$8=sharedExports$1,sharedKey$5=sharedKey$8,hiddenKeys$6=hiddenKeys$b,uid$5=uid$8,wellKnownSymbol$D=wellKnownSymbol$N,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$f=setToStringTag$g,InternalStateModule$g=internalState$1,$forEach$3=arrayIteration$1.forEach,HIDDEN=sharedKey$5("hidden"),SYMBOL="Symbol",PROTOTYPE$2="prototype",setInternalState$e=InternalStateModule$g.set,getInternalState$9=InternalStateModule$g.getterFor(SYMBOL),ObjectPrototype$5=Object[PROTOTYPE$2],$Symbol=global$U.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE$2],TypeError$a=global$U.TypeError,QObject=global$U.QObject,nativeGetOwnPropertyDescriptor$2=getOwnPropertyDescriptorModule$5.f,nativeDefineProperty$1=definePropertyModule$8.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$3.f,push$i=uncurryThis$10([].push),AllSymbols=shared$8("symbols"),ObjectPrototypeSymbols=shared$8("op-symbols"),WellKnownSymbolsStore$2=shared$8("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE$2]||!QObject[PROTOTYPE$2].findChild,setSymbolDescriptor=DESCRIPTORS$A&&fails$10((function(){return 7!=nativeObjectCreate(nativeDefineProperty$1({},"a",{get:function(){return nativeDefineProperty$1(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=nativeGetOwnPropertyDescriptor$2(ObjectPrototype$5,t);n&&delete ObjectPrototype$5[t],nativeDefineProperty$1(e,t,r),n&&e!==ObjectPrototype$5&&nativeDefineProperty$1(ObjectPrototype$5,t,n)}:nativeDefineProperty$1,wrap=function(e,t){var r=AllSymbols[e]=nativeObjectCreate(SymbolPrototype);return setInternalState$e(r,{type:SYMBOL,tag:e,description:t}),DESCRIPTORS$A||(r.description=t),r},$defineProperty$1=function(e,t,r){e===ObjectPrototype$5&&$defineProperty$1(ObjectPrototypeSymbols,t,r),anObject$v(e);var n=toPropertyKey$5(t);return anObject$v(r),hasOwn$u(AllSymbols,n)?(r.enumerable?(hasOwn$u(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$b(0,!1)})):(hasOwn$u(e,HIDDEN)||nativeDefineProperty$1(e,HIDDEN,createPropertyDescriptor$b(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty$1(e,n,r)},$defineProperties=function(e,t){anObject$v(e);var r=toIndexedObject$h(t),n=objectKeys$6(r).concat($getOwnPropertySymbols(r));return $forEach$3(n,(function(t){DESCRIPTORS$A&&!call$L($propertyIsEnumerable$3,r,t)||$defineProperty$1(e,t,r[t])})),e},$create=function(e,t){return void 0===t?nativeObjectCreate(e):$defineProperties(nativeObjectCreate(e),t)},$propertyIsEnumerable$3=function(e){var t=toPropertyKey$5(e),r=call$L(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$5&&hasOwn$u(AllSymbols,t)&&!hasOwn$u(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$u(this,t)||!hasOwn$u(AllSymbols,t)||hasOwn$u(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor$2=function(e,t){var r=toIndexedObject$h(e),n=toPropertyKey$5(t);if(r!==ObjectPrototype$5||!hasOwn$u(AllSymbols,n)||hasOwn$u(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$2(r,n);return!o||!hasOwn$u(AllSymbols,n)||hasOwn$u(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames$1=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$h(e)),r=[];return $forEach$3(t,(function(e){hasOwn$u(AllSymbols,e)||hasOwn$u(hiddenKeys$6,e)||push$i(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$5,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$h(e)),n=[];return $forEach$3(r,(function(e){!hasOwn$u(AllSymbols,e)||t&&!hasOwn$u(ObjectPrototype$5,e)||push$i(n,AllSymbols[e])})),n};NATIVE_SYMBOL$5||(defineBuiltIn$l(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$r(SymbolPrototype,this))throw TypeError$a("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString$5(arguments[0]):void 0,t=uid$5(e),r=function(e){this===ObjectPrototype$5&&call$L(r,ObjectPrototypeSymbols,e),hasOwn$u(this,HIDDEN)&&hasOwn$u(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$b(1,e))};return DESCRIPTORS$A&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$5,t,{configurable:!0,set:r}),wrap(t,e)})[PROTOTYPE$2],"toString",(function(){return getInternalState$9(this).tag})),defineBuiltIn$l($Symbol,"withoutSetter",(function(e){return wrap(uid$5(e),e)})),propertyIsEnumerableModule$3.f=$propertyIsEnumerable$3,definePropertyModule$8.f=$defineProperty$1,definePropertiesModule$1.f=$defineProperties,getOwnPropertyDescriptorModule$5.f=$getOwnPropertyDescriptor$2,getOwnPropertyNamesModule$3.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames$1,getOwnPropertySymbolsModule$5.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(e){return wrap(wellKnownSymbol$D(e),e)},DESCRIPTORS$A&&defineBuiltInAccessor$7(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$9(this).description}})),$$1L({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$5,sham:!NATIVE_SYMBOL$5},{Symbol:$Symbol}),$forEach$3(objectKeys$6(WellKnownSymbolsStore$2),(function(e){defineWellKnownSymbol$l(e)})),$$1L({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$5},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$1L({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$5,sham:!DESCRIPTORS$A},{create:$create,defineProperty:$defineProperty$1,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor$2}),$$1L({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$5},{getOwnPropertyNames:$getOwnPropertyNames$1}),defineSymbolToPrimitive$1(),setToStringTag$f($Symbol,SYMBOL),hiddenKeys$6[HIDDEN]=!0;var NATIVE_SYMBOL$4=symbolConstructorDetection$1,symbolRegistryDetection=NATIVE_SYMBOL$4&&!!Symbol.for&&!!Symbol.keyFor,$$1K=_export$1,getBuiltIn$m=getBuiltIn$r,hasOwn$t=hasOwnProperty_1$1,toString$m=toString$o,shared$7=sharedExports$1,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$7("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$7("symbol-to-string-registry");$$1K({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$m(e);if(hasOwn$t(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$m("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$1J=_export$1,hasOwn$s=hasOwnProperty_1$1,isSymbol$7=isSymbol$a,tryToString$c=tryToString$e,shared$6=sharedExports$1,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$6("symbol-to-string-registry");$$1J({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$7(e))throw TypeError(tryToString$c(e)+" is not a symbol");if(hasOwn$s(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$$=functionUncurryThis$1,arraySlice$g=uncurryThis$$([].slice),uncurryThis$_=functionUncurryThis$1,isArray$f=isArray$i,isCallable$G=isCallable$S,classof$m=classofRaw$5,toString$l=toString$o,push$h=uncurryThis$_([].push),getJsonReplacerFunction=function(e){if(isCallable$G(e))return e;if(isArray$f(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?push$h(r,o):"number"!=typeof o&&"Number"!=classof$m(o)&&"String"!=classof$m(o)||push$h(r,toString$l(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(isArray$f(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},$$1I=_export$1,getBuiltIn$l=getBuiltIn$r,apply$9=functionApply$1,call$K=functionCall$1,uncurryThis$Z=functionUncurryThis$1,fails$$=fails$1b,isCallable$F=isCallable$S,isSymbol$6=isSymbol$a,arraySlice$f=arraySlice$g,getReplacerFunction=getJsonReplacerFunction,NATIVE_SYMBOL$3=symbolConstructorDetection$1,$String$6=String,$stringify=getBuiltIn$l("JSON","stringify"),exec$7=uncurryThis$Z(/./.exec),charAt$d=uncurryThis$Z("".charAt),charCodeAt$5=uncurryThis$Z("".charCodeAt),replace$b=uncurryThis$Z("".replace),numberToString$2=uncurryThis$Z(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$3||fails$$((function(){var e=getBuiltIn$l("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$$((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$f(arguments),n=getReplacerFunction(t);if(isCallable$F(n)||void 0!==e&&!isSymbol$6(e))return r[1]=function(e,t){if(isCallable$F(n)&&(t=call$K(n,this,$String$6(e),t)),!isSymbol$6(t))return t},apply$9($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$d(r,t-1),o=charAt$d(r,t+1);return exec$7(low,e)&&!exec$7(hi,o)||exec$7(hi,e)&&!exec$7(low,n)?"\\u"+numberToString$2(charCodeAt$5(e,0),16):e};$stringify&&$$1I({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$f(arguments),o=apply$9(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$b(o,tester,fixIllFormed):o}});var $$1H=_export$1,NATIVE_SYMBOL$2=symbolConstructorDetection$1,fails$_=fails$1b,getOwnPropertySymbolsModule$4=objectGetOwnPropertySymbols$1,toObject$p=toObject$t,FORCED$f=!NATIVE_SYMBOL$2||fails$_((function(){getOwnPropertySymbolsModule$4.f(1)}));$$1H({target:"Object",stat:!0,forced:FORCED$f},{getOwnPropertySymbols:function(e){var t=getOwnPropertySymbolsModule$4.f;return t?t(toObject$p(e)):[]}});var defineWellKnownSymbol$k=wellKnownSymbolDefine;defineWellKnownSymbol$k("asyncIterator");var defineWellKnownSymbol$j=wellKnownSymbolDefine;defineWellKnownSymbol$j("hasInstance");var defineWellKnownSymbol$i=wellKnownSymbolDefine;defineWellKnownSymbol$i("isConcatSpreadable");var defineWellKnownSymbol$h=wellKnownSymbolDefine;defineWellKnownSymbol$h("iterator");var defineWellKnownSymbol$g=wellKnownSymbolDefine;defineWellKnownSymbol$g("match");var defineWellKnownSymbol$f=wellKnownSymbolDefine;defineWellKnownSymbol$f("matchAll");var defineWellKnownSymbol$e=wellKnownSymbolDefine;defineWellKnownSymbol$e("replace");var defineWellKnownSymbol$d=wellKnownSymbolDefine;defineWellKnownSymbol$d("search");var defineWellKnownSymbol$c=wellKnownSymbolDefine;defineWellKnownSymbol$c("species");var defineWellKnownSymbol$b=wellKnownSymbolDefine;defineWellKnownSymbol$b("split");var defineWellKnownSymbol$a=wellKnownSymbolDefine,defineSymbolToPrimitive=symbolDefineToPrimitive;defineWellKnownSymbol$a("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$k=getBuiltIn$r,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$e=setToStringTag$g;defineWellKnownSymbol$9("toStringTag"),setToStringTag$e(getBuiltIn$k("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$T=global$13,setToStringTag$d=setToStringTag$g;setToStringTag$d(global$T.JSON,"JSON",!0);var IteratorPrototype$4,PrototypeOfArrayIteratorPrototype$1,arrayIterator$1,path$s=path$w,symbol$5=path$s.Symbol,iterators$1={},DESCRIPTORS$z=descriptors$1,hasOwn$r=hasOwnProperty_1$1,FunctionPrototype$5=Function.prototype,getDescriptor$1=DESCRIPTORS$z&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$r(FunctionPrototype$5,"name"),PROPER$1=EXISTS$2&&"something"===function(){}.name,CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$z||DESCRIPTORS$z&&getDescriptor$1(FunctionPrototype$5,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},fails$Z=fails$1b,correctPrototypeGetter$1=!fails$Z((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$q=hasOwnProperty_1$1,isCallable$E=isCallable$S,toObject$o=toObject$t,sharedKey$4=sharedKey$8,CORRECT_PROTOTYPE_GETTER$2=correctPrototypeGetter$1,IE_PROTO$2=sharedKey$4("IE_PROTO"),$Object$5=Object,ObjectPrototype$4=$Object$5.prototype,objectGetPrototypeOf$1=CORRECT_PROTOTYPE_GETTER$2?$Object$5.getPrototypeOf:function(e){var t=toObject$o(e);if(hasOwn$q(t,IE_PROTO$2))return t[IE_PROTO$2];var r=t.constructor;return isCallable$E(r)&&t instanceof r?r.prototype:t instanceof $Object$5?ObjectPrototype$4:null},fails$Y=fails$1b,isCallable$D=isCallable$S,isObject$s=isObject$A,create$h=objectCreate$1,getPrototypeOf$d=objectGetPrototypeOf$1,defineBuiltIn$k=defineBuiltIn$n,wellKnownSymbol$C=wellKnownSymbol$N,ITERATOR$i=wellKnownSymbol$C("iterator"),BUGGY_SAFARI_ITERATORS$3=!1;[].keys&&("next"in(arrayIterator$1=[].keys())?(PrototypeOfArrayIteratorPrototype$1=getPrototypeOf$d(getPrototypeOf$d(arrayIterator$1)))!==Object.prototype&&(IteratorPrototype$4=PrototypeOfArrayIteratorPrototype$1):BUGGY_SAFARI_ITERATORS$3=!0);var NEW_ITERATOR_PROTOTYPE$1=!isObject$s(IteratorPrototype$4)||fails$Y((function(){var e={};return IteratorPrototype$4[ITERATOR$i].call(e)!==e}));isCallable$D((IteratorPrototype$4=NEW_ITERATOR_PROTOTYPE$1?{}:create$h(IteratorPrototype$4))[ITERATOR$i])||defineBuiltIn$k(IteratorPrototype$4,ITERATOR$i,(function(){return this}));var iteratorsCore$1={IteratorPrototype:IteratorPrototype$4,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$3},IteratorPrototype$3=iteratorsCore$1.IteratorPrototype,create$g=objectCreate$1,createPropertyDescriptor$a=createPropertyDescriptor$f,setToStringTag$c=setToStringTag$g,Iterators$a=iterators$1,returnThis$3=function(){return this},iteratorCreateConstructor$1=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$g(IteratorPrototype$3,{next:createPropertyDescriptor$a(+!n,r)}),setToStringTag$c(e,o,!1,!0),Iterators$a[o]=returnThis$3,e},uncurryThis$Y=functionUncurryThis$1,aCallable$r=aCallable$u,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$Y(aCallable$r(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$C=isCallable$S,$String$5=String,$TypeError$v=TypeError,aPossiblePrototype$3=function(e){if("object"==typeof e||isCallable$C(e))return e;throw $TypeError$v("Can't set "+$String$5(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$u=anObject$z,aPossiblePrototype$2=aPossiblePrototype$3,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThisAccessor(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$u(r),aPossiblePrototype$2(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$1G=_export$1,call$J=functionCall$1,FunctionName$2=functionName$1,createIteratorConstructor$3=iteratorCreateConstructor$1,getPrototypeOf$c=objectGetPrototypeOf$1,setToStringTag$b=setToStringTag$g,defineBuiltIn$j=defineBuiltIn$n,wellKnownSymbol$B=wellKnownSymbol$N,Iterators$9=iterators$1,IteratorsCore$1=iteratorsCore$1,PROPER_FUNCTION_NAME$3=FunctionName$2.PROPER;FunctionName$2.CONFIGURABLE,IteratorsCore$1.IteratorPrototype;var BUGGY_SAFARI_ITERATORS$2=IteratorsCore$1.BUGGY_SAFARI_ITERATORS,ITERATOR$h=wellKnownSymbol$B("iterator"),KEYS$1="keys",VALUES$1="values",ENTRIES$1="entries",returnThis$2=function(){return this},iteratorDefine$1=function(e,t,r,n,o,i,a){createIteratorConstructor$3(r,t,n);var s,c,l,u=function(e){if(e===o&&f)return f;if(!BUGGY_SAFARI_ITERATORS$2&&e in A)return A[e];switch(e){case KEYS$1:case VALUES$1:case ENTRIES$1:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",d=!1,A=e.prototype,p=A[ITERATOR$h]||A["@@iterator"]||o&&A[o],f=!BUGGY_SAFARI_ITERATORS$2&&p||u(o),h="Array"==t&&A.entries||p;if(h&&(s=getPrototypeOf$c(h.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$b(s,$,!0,!0),Iterators$9[$]=returnThis$2),PROPER_FUNCTION_NAME$3&&o==VALUES$1&&p&&p.name!==VALUES$1&&(d=!0,f=function(){return call$J(p,this)}),o)if(c={values:u(VALUES$1),keys:i?f:u(KEYS$1),entries:u(ENTRIES$1)},a)for(l in c)(BUGGY_SAFARI_ITERATORS$2||d||!(l in A))&&defineBuiltIn$j(A,l,c[l]);else $$1G({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS$2||d},c);return a&&A[ITERATOR$h]!==f&&defineBuiltIn$j(A,ITERATOR$h,f,{name:o}),Iterators$9[t]=f,c},createIterResultObject$6=function(e,t){return{value:e,done:t}},toIndexedObject$g=toIndexedObject$n,Iterators$8=iterators$1,InternalStateModule$f=internalState$1;objectDefineProperty$1.f;var defineIterator$4=iteratorDefine$1,createIterResultObject$5=createIterResultObject$6,ARRAY_ITERATOR$1="Array Iterator",setInternalState$d=InternalStateModule$f.set,getInternalState$8=InternalStateModule$f.getterFor(ARRAY_ITERATOR$1);defineIterator$4(Array,"Array",(function(e,t){setInternalState$d(this,{type:ARRAY_ITERATOR$1,target:toIndexedObject$g(e),index:0,kind:t})}),(function(){var e=getInternalState$8(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$5(void 0,!0)):createIterResultObject$5("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Iterators$8.Arguments=Iterators$8.Array;var domIterables$1={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},DOMIterables$4=domIterables$1,global$S=global$13,classof$l=classof$r,createNonEnumerableProperty$e=createNonEnumerableProperty$j,Iterators$7=iterators$1,wellKnownSymbol$A=wellKnownSymbol$N,TO_STRING_TAG$6=wellKnownSymbol$A("toStringTag");for(var COLLECTION_NAME$2 in DOMIterables$4){var Collection=global$S[COLLECTION_NAME$2],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$l(CollectionPrototype)!==TO_STRING_TAG$6&&createNonEnumerableProperty$e(CollectionPrototype,TO_STRING_TAG$6,COLLECTION_NAME$2),Iterators$7[COLLECTION_NAME$2]=Iterators$7.Array}var parent$27=symbol$5,symbol$4=parent$27,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("dispose");var parent$26=symbol$4,symbol$3=parent$26,defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("asyncDispose");var $$1F=_export$1,getBuiltIn$j=getBuiltIn$r,uncurryThis$X=functionUncurryThis$1,Symbol$6=getBuiltIn$j("Symbol"),keyFor2=Symbol$6.keyFor,thisSymbolValue$1=uncurryThis$X(Symbol$6.prototype.valueOf);$$1F({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==keyFor2(thisSymbolValue$1(e))}catch(e){return!1}}});for(var $$1E=_export$1,shared$5=sharedExports$1,getBuiltIn$i=getBuiltIn$r,uncurryThis$W=functionUncurryThis$1,isSymbol$5=isSymbol$a,wellKnownSymbol$z=wellKnownSymbol$N,Symbol$5=getBuiltIn$i("Symbol"),$isWellKnown=Symbol$5.isWellKnown,getOwnPropertyNames$b=getBuiltIn$i("Object","getOwnPropertyNames"),thisSymbolValue=uncurryThis$W(Symbol$5.prototype.valueOf),WellKnownSymbolsStore$1=shared$5("wks"),i=0,symbolKeys=getOwnPropertyNames$b(Symbol$5),symbolKeysLength=symbolKeys.length;i<symbolKeysLength;i++)try{var symbolKey=symbolKeys[i];isSymbol$5(Symbol$5[symbolKey])&&wellKnownSymbol$z(symbolKey)}catch(e){}$$1E({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if($isWellKnown&&$isWellKnown(e))return!0;try{for(var t=thisSymbolValue(e),r=0,n=getOwnPropertyNames$b(WellKnownSymbolsStore$1),o=n.length;r<o;r++)if(WellKnownSymbolsStore$1[n[r]]==t)return!0}catch(e){}return!1}});var defineWellKnownSymbol$5=wellKnownSymbolDefine;defineWellKnownSymbol$5("matcher");var defineWellKnownSymbol$4=wellKnownSymbolDefine;defineWellKnownSymbol$4("metadataKey");var defineWellKnownSymbol$3=wellKnownSymbolDefine;defineWellKnownSymbol$3("observable");var defineWellKnownSymbol$2=wellKnownSymbolDefine;defineWellKnownSymbol$2("metadata");var defineWellKnownSymbol$1=wellKnownSymbolDefine;defineWellKnownSymbol$1("patternMatch");var defineWellKnownSymbol=wellKnownSymbolDefine;defineWellKnownSymbol("replaceAll");var parent$25=symbol$3,symbol$2=parent$25,symbol$1=symbol$2,_Symbol$1=getDefaultExportFromCjs(symbol$1),uncurryThis$V=functionUncurryThis$1,toIntegerOrInfinity$e=toIntegerOrInfinity$h,toString$k=toString$o,requireObjectCoercible$8=requireObjectCoercible$b,charAt$c=uncurryThis$V("".charAt),charCodeAt$4=uncurryThis$V("".charCodeAt),stringSlice$a=uncurryThis$V("".slice),createMethod$a=function(e){return function(t,r){var n,o,i=toString$k(requireObjectCoercible$8(t)),a=toIntegerOrInfinity$e(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=charCodeAt$4(i,a))<55296||n>56319||a+1===s||(o=charCodeAt$4(i,a+1))<56320||o>57343?e?charAt$c(i,a):n:e?stringSlice$a(i,a,a+2):o-56320+(n-55296<<10)+65536}},stringMultibyte$1={codeAt:createMethod$a(!1),charAt:createMethod$a(!0)},charAt$b=stringMultibyte$1.charAt,toString$j=toString$o,InternalStateModule$e=internalState$1,defineIterator$3=iteratorDefine$1,createIterResultObject$4=createIterResultObject$6,STRING_ITERATOR$1="String Iterator",setInternalState$c=InternalStateModule$e.set,getInternalState$7=InternalStateModule$e.getterFor(STRING_ITERATOR$1);defineIterator$3(String,"String",(function(e){setInternalState$c(this,{type:STRING_ITERATOR$1,string:toString$j(e),index:0})}),(function(){var e,t=getInternalState$7(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject$4(void 0,!0):(e=charAt$b(r,n),t.index+=e.length,createIterResultObject$4(e,!1))}));var WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,iterator$4=WrappedWellKnownSymbolModule.f("iterator"),parent$24=iterator$4,iterator$3=parent$24,parent$23=iterator$3,iterator$2=parent$23,parent$22=iterator$2,iterator$1=parent$22,iterator=iterator$1,_Symbol$iterator=getDefaultExportFromCjs(iterator);function _typeof(e){return(_typeof="function"==typeof _Symbol$1&&"symbol"==typeof _Symbol$iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof _Symbol$1&&e.constructor===_Symbol$1&&e!==_Symbol$1.prototype?"symbol":typeof e})(e)}var $$1D=_export$1,toObject$n=toObject$t,nativeKeys$1=objectKeys$8,fails$X=fails$1b,FAILS_ON_PRIMITIVES$5=fails$X((function(){nativeKeys$1(1)}));$$1D({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$5},{keys:function(e){return nativeKeys$1(toObject$n(e))}});var path$r=path$w,keys$8=path$r.Object.keys,parent$21=keys$8,keys$7=parent$21,parent$20=keys$7,keys$6=parent$20,parent$1$=keys$6,keys$5=parent$1$,keys$4=keys$5,keys$3=keys$4,_Object$keys=getDefaultExportFromCjs(keys$3),path$q=path$w,getOwnPropertySymbols$5=path$q.Object.getOwnPropertySymbols,parent$1_=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$1_,parent$1Z=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$1Z,parent$1Y=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$1Y,getOwnPropertySymbols$1=getOwnPropertySymbols$2,getOwnPropertySymbols2=getOwnPropertySymbols$1,_Object$getOwnPropertySymbols=getDefaultExportFromCjs(getOwnPropertySymbols2),$$1C=_export$1,$filter$2=arrayIteration$1.filter,arrayMethodHasSpeciesSupport$9=arrayMethodHasSpeciesSupport$b,HAS_SPECIES_SUPPORT$7=arrayMethodHasSpeciesSupport$9("filter");$$1C({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$7},{filter:function(e){return $filter$2(this,e,arguments.length>1?arguments[1]:void 0)}});var path$p=path$w,entryVirtual$f=function(e){return path$p[e+"Prototype"]},entryVirtual$e=entryVirtual$f,filter$6=entryVirtual$e("Array").filter,isPrototypeOf$q=objectIsPrototypeOf$1,method$g=filter$6,ArrayPrototype$g=Array.prototype,filter$5=function(e){var t=e.filter;return e===ArrayPrototype$g||isPrototypeOf$q(ArrayPrototype$g,e)&&t===ArrayPrototype$g.filter?method$g:t},parent$1X=filter$5,filter$4=parent$1X,parent$1W=filter$4,filter$3=parent$1W,parent$1V=filter$3,filter$2=parent$1V,filter$1=filter$2,filter2=filter$1,_filterInstanceProperty=getDefaultExportFromCjs(filter2),getOwnPropertyDescriptor$f={exports:{}},$$1B=_export$1,fails$W=fails$1b,toIndexedObject$f=toIndexedObject$n,nativeGetOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor$1.f,DESCRIPTORS$y=descriptors$1,FORCED$e=!DESCRIPTORS$y||fails$W((function(){nativeGetOwnPropertyDescriptor$1(1)}));$$1B({target:"Object",stat:!0,forced:FORCED$e,sham:!DESCRIPTORS$y},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor$1(toIndexedObject$f(e),t)}});var path$o=path$w,Object$5=path$o.Object,getOwnPropertyDescriptor$e=getOwnPropertyDescriptor$f.exports=function(e,t){return Object$5.getOwnPropertyDescriptor(e,t)};Object$5.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$e.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$f.exports,parent$1U=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor$d=parent$1U,parent$1T=getOwnPropertyDescriptor$d,getOwnPropertyDescriptor$c=parent$1T,parent$1S=getOwnPropertyDescriptor$c,getOwnPropertyDescriptor$b=parent$1S,getOwnPropertyDescriptor$a=getOwnPropertyDescriptor$b,getOwnPropertyDescriptor$9=getOwnPropertyDescriptor$a,_Object$getOwnPropertyDescriptor=getDefaultExportFromCjs(getOwnPropertyDescriptor$9),fails$V=fails$1b,arrayMethodIsStrict$9=function(e,t){var r=[][e];return!!r&&fails$V((function(){r.call(null,t||function(){return 1},1)}))},$forEach$2=arrayIteration$1.forEach,arrayMethodIsStrict$8=arrayMethodIsStrict$9,STRICT_METHOD$5=arrayMethodIsStrict$8("forEach"),arrayForEach$1=STRICT_METHOD$5?[].forEach:function(e){return $forEach$2(this,e,arguments.length>1?arguments[1]:void 0)},$$1A=_export$1,forEach$a=arrayForEach$1;$$1A({target:"Array",proto:!0,forced:[].forEach!=arrayForEach$1},{forEach:arrayForEach$1});var entryVirtual$d=entryVirtual$f,forEach$9=entryVirtual$d("Array").forEach,parent$1R=forEach$9,forEach$8=parent$1R,classof$k=classof$r,hasOwn$p=hasOwnProperty_1$1,isPrototypeOf$p=objectIsPrototypeOf$1,method$f=forEach$8,ArrayPrototype$f=Array.prototype,DOMIterables$3={DOMTokenList:!0,NodeList:!0},forEach$7=function(e){var t=e.forEach;return e===ArrayPrototype$f||isPrototypeOf$p(ArrayPrototype$f,e)&&t===ArrayPrototype$f.forEach||hasOwn$p(DOMIterables$3,classof$k(e))?method$f:t},parent$1Q=forEach$7,forEach$6=parent$1Q,parent$1P=forEach$6,forEach$5=parent$1P,forEach$4=forEach$5,forEach$3=forEach$4,_forEachInstanceProperty=getDefaultExportFromCjs(forEach$3),getBuiltIn$h=getBuiltIn$r,uncurryThis$U=functionUncurryThis$1,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols$1,anObject$t=anObject$z,concat$c=uncurryThis$U([].concat),ownKeys$5=getBuiltIn$h("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$2.f(anObject$t(e)),r=getOwnPropertySymbolsModule$3.f;return r?concat$c(t,r(e)):t},$$1z=_export$1,DESCRIPTORS$x=descriptors$1,ownKeys$4=ownKeys$5,toIndexedObject$e=toIndexedObject$n,getOwnPropertyDescriptorModule$4=objectGetOwnPropertyDescriptor$1,createProperty$9=createProperty$c;$$1z({target:"Object",stat:!0,sham:!DESCRIPTORS$x},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject$e(e),o=getOwnPropertyDescriptorModule$4.f,i=ownKeys$4(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&createProperty$9(a,t,r);return a}});var path$n=path$w,getOwnPropertyDescriptors$5=path$n.Object.getOwnPropertyDescriptors,parent$1O=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$1O,parent$1N=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$1N,parent$1M=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$1M,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,_Object$getOwnPropertyDescriptors=getDefaultExportFromCjs(getOwnPropertyDescriptors2),defineProperties$7={exports:{}},$$1y=_export$1,DESCRIPTORS$w=descriptors$1,defineProperties$6=objectDefineProperties$1.f;$$1y({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$w},{defineProperties:defineProperties$6});var path$m=path$w,Object$4=path$m.Object,defineProperties$5=defineProperties$7.exports=function(e,t){return Object$4.defineProperties(e,t)};Object$4.defineProperties.sham&&(defineProperties$5.sham=!0);var definePropertiesExports=defineProperties$7.exports,parent$1L=definePropertiesExports,defineProperties$4=parent$1L,parent$1K=defineProperties$4,defineProperties$3=parent$1K,parent$1J=defineProperties$3,defineProperties$2=parent$1J,defineProperties$1=defineProperties$2,defineProperties4=defineProperties$1,_Object$defineProperties=getDefaultExportFromCjs(defineProperties4),defineProperty$l={exports:{}},$$1x=_export$1,DESCRIPTORS$v=descriptors$1,defineProperty$k=objectDefineProperty$1.f;$$1x({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$k,sham:!DESCRIPTORS$v},{defineProperty:defineProperty$k});var path$l=path$w,Object$3=path$l.Object,defineProperty$j=defineProperty$l.exports=function(e,t,r){return Object$3.defineProperty(e,t,r)};Object$3.defineProperty.sham&&(defineProperty$j.sham=!0);var definePropertyExports=defineProperty$l.exports,parent$1I=definePropertyExports,defineProperty$i=parent$1I,parent$1H=defineProperty$i,defineProperty$h=parent$1H,parent$1G=defineProperty$h,defineProperty$g=parent$1G,defineProperty$f=defineProperty$g,defineProperty$e=defineProperty$f,_Object$defineProperty=getDefaultExportFromCjs(defineProperty$e),symbol=symbol$1,_Symbol=getDefaultExportFromCjs(symbol),$$1w=_export$1,DESCRIPTORS$u=descriptors$1,create$f=objectCreate$1;$$1w({target:"Object",stat:!0,sham:!DESCRIPTORS$u},{create:create$f});var path$k=path$w,Object$2=path$k.Object,create$e=function(e,t){return Object$2.create(e,t)},parent$1F=create$e,create$d=parent$1F,parent$1E=create$d,create$c=parent$1E,parent$1D=create$c,create$b=parent$1D,create$a=create$b,create$9=create$a,_Object$create=getDefaultExportFromCjs(create$9),$$1v=_export$1,fails$U=fails$1b,toObject$m=toObject$t,nativeGetPrototypeOf=objectGetPrototypeOf$1,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter$1,FAILS_ON_PRIMITIVES$4=fails$U((function(){nativeGetPrototypeOf(1)}));$$1v({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$4,sham:!CORRECT_PROTOTYPE_GETTER$1},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$m(e))}});var path$j=path$w,getPrototypeOf$b=path$j.Object.getPrototypeOf,parent$1C=getPrototypeOf$b,getPrototypeOf$a=parent$1C,parent$1B=getPrototypeOf$a,getPrototypeOf$9=parent$1B,parent$1A=getPrototypeOf$9,getPrototypeOf$8=parent$1A,getPrototypeOf$7=getPrototypeOf$8,getPrototypeOf$6=getPrototypeOf$7,_Object$getPrototypeOf=getDefaultExportFromCjs(getPrototypeOf$6),$$1u=_export$1,setPrototypeOf$d=objectSetPrototypeOf$1;$$1u({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$d});var path$i=path$w,setPrototypeOf$c=path$i.Object.setPrototypeOf,parent$1z=setPrototypeOf$c,setPrototypeOf$b=parent$1z,parent$1y=setPrototypeOf$b,setPrototypeOf$a=parent$1y,parent$1x=setPrototypeOf$a,setPrototypeOf$9=parent$1x,setPrototypeOf$8=setPrototypeOf$9,setPrototypeOf$7=setPrototypeOf$8,_Object$setPrototypeOf=getDefaultExportFromCjs(setPrototypeOf$7),hasOwn$o=hasOwnProperty_1$1,ownKeys$3=ownKeys$5,getOwnPropertyDescriptorModule$3=objectGetOwnPropertyDescriptor$1,definePropertyModule$7=objectDefineProperty$1,copyConstructorProperties$3=function(e,t,r){for(var n=ownKeys$3(t),o=definePropertyModule$7.f,i=getOwnPropertyDescriptorModule$3.f,a=0;a<n.length;a++){var s=n[a];hasOwn$o(e,s)||r&&hasOwn$o(r,s)||o(e,s,i(t,s))}},isObject$r=isObject$A,createNonEnumerableProperty$d=createNonEnumerableProperty$j,installErrorCause$1=function(e,t){isObject$r(t)&&"cause"in t&&createNonEnumerableProperty$d(e,"cause",t.cause)},uncurryThis$T=functionUncurryThis$1,$Error$1=Error,replace$a=uncurryThis$T("".replace),TEST=String($Error$1("zxcasd").stack),V8_OR_CHAKRA_STACK_ENTRY=/\n\s*at [^:]*:[^\n]*/,IS_V8_OR_CHAKRA_STACK=V8_OR_CHAKRA_STACK_ENTRY.test(TEST),errorStackClear=function(e,t){if(IS_V8_OR_CHAKRA_STACK&&"string"==typeof e&&!$Error$1.prepareStackTrace)for(;t--;)e=replace$a(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},fails$T=fails$1b,createPropertyDescriptor$9=createPropertyDescriptor$f,errorStackInstallable=!fails$T((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$9(1,7)),7!==e.stack)})),createNonEnumerableProperty$c=createNonEnumerableProperty$j,clearErrorStack=errorStackClear,ERROR_STACK_INSTALLABLE=errorStackInstallable,captureStackTrace=Error.captureStackTrace,errorStackInstall=function(e,t,r,n){ERROR_STACK_INSTALLABLE&&(captureStackTrace?captureStackTrace(e,t):createNonEnumerableProperty$c(e,"stack",clearErrorStack(r,n)))},wellKnownSymbol$y=wellKnownSymbol$N,Iterators$6=iterators$1,ITERATOR$g=wellKnownSymbol$y("iterator"),ArrayPrototype$e=Array.prototype,isArrayIteratorMethod$6=function(e){return void 0!==e&&(Iterators$6.Array===e||ArrayPrototype$e[ITERATOR$g]===e)},classof$j=classof$r,getMethod$6=getMethod$8,isNullOrUndefined$9=isNullOrUndefined$c,Iterators$5=iterators$1,wellKnownSymbol$x=wellKnownSymbol$N,ITERATOR$f=wellKnownSymbol$x("iterator"),getIteratorMethod$g=function(e){if(!isNullOrUndefined$9(e))return getMethod$6(e,ITERATOR$f)||getMethod$6(e,"@@iterator")||Iterators$5[classof$j(e)]},call$I=functionCall$1,aCallable$q=aCallable$u,anObject$s=anObject$z,tryToString$b=tryToString$e,getIteratorMethod$f=getIteratorMethod$g,$TypeError$u=TypeError,getIterator$8=function(e,t){var r=arguments.length<2?getIteratorMethod$f(e):t;if(aCallable$q(r))return anObject$s(call$I(r,e));throw $TypeError$u(tryToString$b(e)+" is not iterable")},call$H=functionCall$1,anObject$r=anObject$z,getMethod$5=getMethod$8,iteratorClose$5=function(e,t,r){var n,o;anObject$r(e);try{if(!(n=getMethod$5(e,"return"))){if("throw"===t)throw r;return r}n=call$H(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$r(n),r},bind$z=functionBindContext$1,call$G=functionCall$1,anObject$q=anObject$z,tryToString$a=tryToString$e,isArrayIteratorMethod$5=isArrayIteratorMethod$6,lengthOfArrayLike$p=lengthOfArrayLike$u,isPrototypeOf$o=objectIsPrototypeOf$1,getIterator$7=getIterator$8,getIteratorMethod$e=getIteratorMethod$g,iteratorClose$4=iteratorClose$5,$TypeError$t=TypeError,Result$1=function(e,t){this.stopped=e,this.result=t},ResultPrototype$1=Result$1.prototype,iterate$o=function(e,t,r){var n,o,i,a,s,c,l,u=r&&r.that,$=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),f=bind$z(t,u),h=function(e){return n&&iteratorClose$4(n,"normal",e),new Result$1(!0,e)},y=function(e){return $?(anObject$q(e),p?f(e[0],e[1],h):f(e[0],e[1])):p?f(e,h):f(e)};if(d)n=e.iterator;else if(A)n=e;else{if(!(o=getIteratorMethod$e(e)))throw $TypeError$t(tryToString$a(e)+" is not iterable");if(isArrayIteratorMethod$5(o)){for(i=0,a=lengthOfArrayLike$p(e);a>i;i++)if((s=y(e[i]))&&isPrototypeOf$o(ResultPrototype$1,s))return s;return new Result$1(!1)}n=getIterator$7(e,o)}for(c=d?e.next:n.next;!(l=call$G(c,n)).done;){try{s=y(l.value)}catch(e){iteratorClose$4(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$o(ResultPrototype$1,s))return s}return new Result$1(!1)},toString$i=toString$o,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$i(e)},$$1t=_export$1,isPrototypeOf$n=objectIsPrototypeOf$1,getPrototypeOf$5=objectGetPrototypeOf$1,setPrototypeOf$6=objectSetPrototypeOf$1,copyConstructorProperties$2=copyConstructorProperties$3,create$8=objectCreate$1,createNonEnumerableProperty$b=createNonEnumerableProperty$j,createPropertyDescriptor$8=createPropertyDescriptor$f,installErrorCause=installErrorCause$1,installErrorStack=errorStackInstall,iterate$n=iterate$o,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$w=wellKnownSymbol$N,TO_STRING_TAG$5=wellKnownSymbol$w("toStringTag"),$Error=Error,push$g=[].push,$AggregateError=function(e,t){var r,n=isPrototypeOf$n(AggregateErrorPrototype,this);setPrototypeOf$6?r=setPrototypeOf$6($Error(),n?getPrototypeOf$5(this):AggregateErrorPrototype):(r=n?this:create$8(AggregateErrorPrototype),createNonEnumerableProperty$b(r,TO_STRING_TAG$5,"Error")),void 0!==t&&createNonEnumerableProperty$b(r,"message",normalizeStringArgument(t)),installErrorStack(r,$AggregateError,r.stack,1),arguments.length>2&&installErrorCause(r,arguments[2]);var o=[];return iterate$n(e,push$g,{that:o}),createNonEnumerableProperty$b(r,"errors",o),r};setPrototypeOf$6?setPrototypeOf$6($AggregateError,$Error):copyConstructorProperties$2($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$8($Error.prototype,{constructor:createPropertyDescriptor$8(1,$AggregateError),message:createPropertyDescriptor$8(1,""),name:createPropertyDescriptor$8(1,"AggregateError")});$$1t({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location$1,defer$1,channel$1,port$1,classof$i=classofRaw$5,engineIsNode$1="undefined"!=typeof process&&"process"==classof$i(process),getBuiltIn$g=getBuiltIn$r,defineBuiltInAccessor$6=defineBuiltInAccessor$8,wellKnownSymbol$v=wellKnownSymbol$N,DESCRIPTORS$t=descriptors$1,SPECIES$a=wellKnownSymbol$v("species"),setSpecies$6=function(e){var t=getBuiltIn$g(e);DESCRIPTORS$t&&t&&!t[SPECIES$a]&&defineBuiltInAccessor$6(t,SPECIES$a,{configurable:!0,get:function(){return this}})},isPrototypeOf$m=objectIsPrototypeOf$1,$TypeError$s=TypeError,anInstance$b=function(e,t){if(isPrototypeOf$m(t,e))return e;throw $TypeError$s("Incorrect invocation")},isConstructor$7=isConstructor$9,tryToString$9=tryToString$e,$TypeError$r=TypeError,aConstructor$6=function(e){if(isConstructor$7(e))return e;throw $TypeError$r(tryToString$9(e)+" is not a constructor")},anObject$p=anObject$z,aConstructor$5=aConstructor$6,isNullOrUndefined$8=isNullOrUndefined$c,wellKnownSymbol$u=wellKnownSymbol$N,SPECIES$9=wellKnownSymbol$u("species"),speciesConstructor$6=function(e,t){var r,n=anObject$p(e).constructor;return void 0===n||isNullOrUndefined$8(r=anObject$p(n)[SPECIES$9])?t:aConstructor$5(r)},$TypeError$q=TypeError,validateArgumentsLength$9=function(e,t){if(e<t)throw $TypeError$q("Not enough arguments");return e},userAgent$a=engineUserAgent$1,engineIsIos$1=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$a),global$R=global$13,apply$8=functionApply$1,bind$y=functionBindContext$1,isCallable$B=isCallable$S,hasOwn$n=hasOwnProperty_1$1,fails$S=fails$1b,html$3=html$5,arraySlice$e=arraySlice$g,createElement$2=documentCreateElement$4,validateArgumentsLength$8=validateArgumentsLength$9,IS_IOS$3=engineIsIos$1,IS_NODE$8=engineIsNode$1,set$9=global$R.setImmediate,clear$1=global$R.clearImmediate,process$7=global$R.process,Dispatch$1=global$R.Dispatch,Function$3=global$R.Function,MessageChannel$1=global$R.MessageChannel,String$2=global$R.String,counter$1=0,queue$4={},ONREADYSTATECHANGE$1="onreadystatechange";fails$S((function(){$location$1=global$R.location}));var run$1=function(e){if(hasOwn$n(queue$4,e)){var t=queue$4[e];delete queue$4[e],t()}},runner$1=function(e){return function(){run$1(e)}},eventListener=function(e){run$1(e.data)},globalPostMessageDefer=function(e){global$R.postMessage(String$2(e),$location$1.protocol+"//"+$location$1.host)};set$9&&clear$1||(set$9=function(e){validateArgumentsLength$8(arguments.length,1);var t=isCallable$B(e)?e:Function$3(e),r=arraySlice$e(arguments,1);return queue$4[++counter$1]=function(){apply$8(t,void 0,r)},defer$1(counter$1),counter$1},clear$1=function(e){delete queue$4[e]},IS_NODE$8?defer$1=function(e){process$7.nextTick(runner$1(e))}:Dispatch$1&&Dispatch$1.now?defer$1=function(e){Dispatch$1.now(runner$1(e))}:MessageChannel$1&&!IS_IOS$3?(port$1=(channel$1=new MessageChannel$1).port2,channel$1.port1.onmessage=eventListener,defer$1=bind$y(port$1.postMessage,port$1)):global$R.addEventListener&&isCallable$B(global$R.postMessage)&&!global$R.importScripts&&$location$1&&"file:"!==$location$1.protocol&&!fails$S(globalPostMessageDefer)?(defer$1=globalPostMessageDefer,global$R.addEventListener("message",eventListener,!1)):defer$1=ONREADYSTATECHANGE$1 in createElement$2("script")?function(e){html$3.appendChild(createElement$2("script"))[ONREADYSTATECHANGE$1]=function(){html$3.removeChild(this),run$1(e)}}:function(e){setTimeout(runner$1(e),0)});var task$3={set:set$9,clear:clear$1},Queue$4=function(){this.head=null,this.tail=null};Queue$4.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var notify$3,toggle$1,node$1,promise$7,then$1,queue$3=Queue$4,userAgent$9=engineUserAgent$1,engineIsIosPebble$1=/ipad|iphone|ipod/i.test(userAgent$9)&&"undefined"!=typeof Pebble,userAgent$8=engineUserAgent$1,engineIsWebosWebkit$1=/web0s(?!.*chrome)/i.test(userAgent$8),global$Q=global$13,bind$x=functionBindContext$1,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor$1.f,macrotask$1=task$3.set,Queue$3=queue$3,IS_IOS$2=engineIsIos$1,IS_IOS_PEBBLE$1=engineIsIosPebble$1,IS_WEBOS_WEBKIT$1=engineIsWebosWebkit$1,IS_NODE$7=engineIsNode$1,MutationObserver$1=global$Q.MutationObserver||global$Q.WebKitMutationObserver,document$5=global$Q.document,process$6=global$Q.process,Promise$2=global$Q.Promise,queueMicrotaskDescriptor$1=getOwnPropertyDescriptor$8(global$Q,"queueMicrotask"),microtask$3=queueMicrotaskDescriptor$1&&queueMicrotaskDescriptor$1.value;if(!microtask$3){var queue$2=new Queue$3,flush$1=function(){var e,t;for(IS_NODE$7&&(e=process$6.domain)&&e.exit();t=queue$2.get();)try{t()}catch(e){throw queue$2.head&¬ify$3(),e}e&&e.enter()};IS_IOS$2||IS_NODE$7||IS_WEBOS_WEBKIT$1||!MutationObserver$1||!document$5?!IS_IOS_PEBBLE$1&&Promise$2&&Promise$2.resolve?((promise$7=Promise$2.resolve(void 0)).constructor=Promise$2,then$1=bind$x(promise$7.then,promise$7),notify$3=function(){then$1(flush$1)}):IS_NODE$7?notify$3=function(){process$6.nextTick(flush$1)}:(macrotask$1=bind$x(macrotask$1,global$Q),notify$3=function(){macrotask$1(flush$1)}):(toggle$1=!0,node$1=document$5.createTextNode(""),new MutationObserver$1(flush$1).observe(node$1,{characterData:!0}),notify$3=function(){node$1.data=toggle$1=!toggle$1}),microtask$3=function(e){queue$2.head||notify$3(),queue$2.add(e)}}var microtask_1=microtask$3,hostReportErrors$3=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$a=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$P=global$13,promiseNativeConstructor$1=global$P.Promise,engineIsDeno$1="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$3=engineIsDeno$1,IS_NODE$6=engineIsNode$1,engineIsBrowser$1=!IS_DENO$3&&!IS_NODE$6&&"object"==typeof window&&"object"==typeof document,global$O=global$13,NativePromiseConstructor$a=promiseNativeConstructor$1,isCallable$A=isCallable$S,isForced$4=isForced_1$1,inspectSource$4=inspectSource$6,wellKnownSymbol$t=wellKnownSymbol$N,IS_BROWSER$1=engineIsBrowser$1,IS_DENO$2=engineIsDeno$1,V8_VERSION$4=engineV8Version$1,NativePromisePrototype$5=NativePromiseConstructor$a&&NativePromiseConstructor$a.prototype,SPECIES$8=wellKnownSymbol$t("species"),SUBCLASSING$1=!1,NATIVE_PROMISE_REJECTION_EVENT$3=isCallable$A(global$O.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$b=isForced$4("Promise",(function(){var e=inspectSource$4(NativePromiseConstructor$a),t=e!==String(NativePromiseConstructor$a);if(!t&&66===V8_VERSION$4)return!0;if(!NativePromisePrototype$5.catch||!NativePromisePrototype$5.finally)return!0;if(!V8_VERSION$4||V8_VERSION$4<51||!/native code/.test(e)){var r=new NativePromiseConstructor$a((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$8]=n,!(SUBCLASSING$1=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER$1||IS_DENO$2)&&!NATIVE_PROMISE_REJECTION_EVENT$3})),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$b,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$3,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$5={},aCallable$p=aCallable$u,$TypeError$p=TypeError,PromiseCapability$1=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$p("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$p(t),this.reject=aCallable$p(r)};newPromiseCapability$5.f=function(e){return new PromiseCapability$1(e)};var $$1s=_export$1,IS_NODE$5=engineIsNode$1,global$N=global$13,call$F=functionCall$1,defineBuiltIn$i=defineBuiltIn$n,setToStringTag$a=setToStringTag$g,setSpecies$5=setSpecies$6,aCallable$o=aCallable$u,isCallable$z=isCallable$S,isObject$q=isObject$A,anInstance$a=anInstance$b,speciesConstructor$5=speciesConstructor$6,task$2=task$3.set,microtask$2=microtask_1,hostReportErrors$2=hostReportErrors$3,perform$9=perform$a,Queue$2=queue$3,InternalStateModule$d=internalState$1,NativePromiseConstructor$9=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$a=newPromiseCapability$5,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$a=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT;PromiseConstructorDetection$1.SUBCLASSING;var Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,getInternalPromiseState$1=InternalStateModule$d.getterFor(PROMISE$1),setInternalState$b=InternalStateModule$d.set,NativePromisePrototype$4=NativePromiseConstructor$9&&NativePromiseConstructor$9.prototype,PromiseConstructor$1=NativePromiseConstructor$9,PromisePrototype$1=NativePromisePrototype$4,TypeError$9=global$N.TypeError,document$4=global$N.document,process$5=global$N.process,newPromiseCapability$4=newPromiseCapabilityModule$a.f,newGenericPromiseCapability$1=newPromiseCapability$4,DISPATCH_EVENT$1=!!(document$4&&document$4.createEvent&&global$N.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,isThenable$1=function(e){var t;return!(!isObject$q(e)||!isCallable$z(t=e.then))&&t},callReaction$1=function(e,t){var r,n,o,i=t.value,a=t.state==FULFILLED$1,s=a?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED$1&&onHandleUnhandled$1(t),t.rejection=HANDLED$1),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?l(TypeError$9("Promise-chain cycle")):(n=isThenable$1(r))?call$F(n,r,c,l):c(r)):l(i)}catch(e){u&&!o&&u.exit(),l(e)}},notify$2=function(e,t){e.notified||(e.notified=!0,microtask$2((function(){for(var r,n=e.reactions;r=n.get();)callReaction$1(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled$1(e)})))},dispatchEvent$1=function(e,t,r){var n,o;DISPATCH_EVENT$1?((n=document$4.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$N.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT$2&&(o=global$N["on"+e])?o(n):e===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",r)},onUnhandled$1=function(e){call$F(task$2,global$N,(function(){var t,r=e.facade,n=e.value;if(isUnhandled$1(e)&&(t=perform$9((function(){IS_NODE$5?process$5.emit("unhandledRejection",n,r):dispatchEvent$1(UNHANDLED_REJECTION$1,r,n)})),e.rejection=IS_NODE$5||isUnhandled$1(e)?UNHANDLED$1:HANDLED$1,t.error))throw t.value}))},isUnhandled$1=function(e){return e.rejection!==HANDLED$1&&!e.parent},onHandleUnhandled$1=function(e){call$F(task$2,global$N,(function(){var t=e.facade;IS_NODE$5?process$5.emit("rejectionHandled",t):dispatchEvent$1(REJECTION_HANDLED$1,t,e.value)}))},bind$w=function(e,t,r){return function(n){e(t,n,r)}},internalReject$1=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED$1,notify$2(e,!0))},internalResolve$1=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$9("Promise can't be resolved itself");var n=isThenable$1(t);n?microtask$2((function(){var r={done:!1};try{call$F(n,t,bind$w(internalResolve$1,r,e),bind$w(internalReject$1,r,e))}catch(t){internalReject$1(r,t,e)}})):(e.value=t,e.state=FULFILLED$1,notify$2(e,!1))}catch(t){internalReject$1({done:!1},t,e)}}};FORCED_PROMISE_CONSTRUCTOR$a&&(PromisePrototype$1=(PromiseConstructor$1=function(e){anInstance$a(this,PromisePrototype$1),aCallable$o(e),call$F(Internal$1,this);var t=getInternalPromiseState$1(this);try{e(bind$w(internalResolve$1,t),bind$w(internalReject$1,t))}catch(e){internalReject$1(t,e)}}).prototype,(Internal$1=function(e){setInternalState$b(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$2,rejection:!1,state:PENDING$1,value:void 0})}).prototype=defineBuiltIn$i(PromisePrototype$1,"then",(function(e,t){var r=getInternalPromiseState$1(this),n=newPromiseCapability$4(speciesConstructor$5(this,PromiseConstructor$1));return r.parent=!0,n.ok=!isCallable$z(e)||e,n.fail=isCallable$z(t)&&t,n.domain=IS_NODE$5?process$5.domain:void 0,r.state==PENDING$1?r.reactions.add(n):microtask$2((function(){callReaction$1(n,r)})),n.promise})),OwnPromiseCapability$1=function(){var e=new Internal$1,t=getInternalPromiseState$1(e);this.promise=e,this.resolve=bind$w(internalResolve$1,t),this.reject=bind$w(internalReject$1,t)},newPromiseCapabilityModule$a.f=newPromiseCapability$4=function(e){return e===PromiseConstructor$1||e===PromiseWrapper$1?new OwnPromiseCapability$1(e):newGenericPromiseCapability$1(e)}),$$1s({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$a},{Promise:PromiseConstructor$1}),setToStringTag$a(PromiseConstructor$1,PROMISE$1,!1,!0),setSpecies$5(PROMISE$1);var wellKnownSymbol$s=wellKnownSymbol$N,ITERATOR$e=wellKnownSymbol$s("iterator"),SAFE_CLOSING$1=!1;try{var called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}};iteratorWithReturn$1[ITERATOR$e]=function(){return this},Array.from(iteratorWithReturn$1,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$5=function(e,t){if(!t&&!SAFE_CLOSING$1)return!1;var r=!1;try{var n={};n[ITERATOR$e]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$8=promiseNativeConstructor$1,checkCorrectnessOfIteration$4=checkCorrectnessOfIteration$5,FORCED_PROMISE_CONSTRUCTOR$9=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$9||!checkCorrectnessOfIteration$4((function(e){NativePromiseConstructor$8.all(e).then(void 0,(function(){}))})),$$1r=_export$1,call$E=functionCall$1,aCallable$n=aCallable$u,newPromiseCapabilityModule$9=newPromiseCapability$5,perform$8=perform$a,iterate$m=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$5=promiseStaticsIncorrectIteration$1;$$1r({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$5},{all:function(e){var t=this,r=newPromiseCapabilityModule$9.f(t),n=r.resolve,o=r.reject,i=perform$8((function(){var r=aCallable$n(t.resolve),i=[],a=0,s=1;iterate$m(e,(function(e){var c=a++,l=!1;s++,call$E(r,t,e).then((function(e){l||(l=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var $$1q=_export$1,FORCED_PROMISE_CONSTRUCTOR$8=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$7=promiseNativeConstructor$1;promiseNativeConstructor$1&&promiseNativeConstructor$1.prototype,$$1q({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$8,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$1p=_export$1,call$D=functionCall$1,aCallable$m=aCallable$u,newPromiseCapabilityModule$8=newPromiseCapability$5,perform$7=perform$a,iterate$l=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$4=promiseStaticsIncorrectIteration$1;$$1p({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$4},{race:function(e){var t=this,r=newPromiseCapabilityModule$8.f(t),n=r.reject,o=perform$7((function(){var o=aCallable$m(t.resolve);iterate$l(e,(function(e){call$D(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$1o=_export$1,call$C=functionCall$1,newPromiseCapabilityModule$7=newPromiseCapability$5,FORCED_PROMISE_CONSTRUCTOR$7=promiseConstructorDetection$1.CONSTRUCTOR;$$1o({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$7},{reject:function(e){var t=newPromiseCapabilityModule$7.f(this);return call$C(t.reject,void 0,e),t.promise}});var anObject$o=anObject$z,isObject$p=isObject$A,newPromiseCapability$3=newPromiseCapability$5,promiseResolve$5=function(e,t){if(anObject$o(e),isObject$p(t)&&t.constructor===e)return t;var r=newPromiseCapability$3.f(e);return(0,r.resolve)(t),r.promise},$$1n=_export$1,getBuiltIn$f=getBuiltIn$r,IS_PURE$2=isPure$1,NativePromiseConstructor$6=promiseNativeConstructor$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$4=promiseResolve$5,PromiseConstructorWrapper=getBuiltIn$f("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR$6;$$1n({target:"Promise",stat:!0,forced:IS_PURE$2},{resolve:function(e){return promiseResolve$4(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$6:this,e)}});var $$1m=_export$1,call$B=functionCall$1,aCallable$l=aCallable$u,newPromiseCapabilityModule$6=newPromiseCapability$5,perform$6=perform$a,iterate$k=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration$1;$$1m({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$6.f(t),n=r.resolve,o=r.reject,i=perform$6((function(){var r=aCallable$l(t.resolve),o=[],i=0,a=1;iterate$k(e,(function(e){var s=i++,c=!1;a++,call$B(r,t,e).then((function(e){c||(c=!0,o[s]={status:"fulfilled",value:e},--a||n(o))}),(function(e){c||(c=!0,o[s]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var $$1l=_export$1,call$A=functionCall$1,aCallable$k=aCallable$u,getBuiltIn$e=getBuiltIn$r,newPromiseCapabilityModule$5=newPromiseCapability$5,perform$5=perform$a,iterate$j=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration$1,PROMISE_ANY_ERROR="No one promise resolved";$$1l({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{any:function(e){var t=this,r=getBuiltIn$e("AggregateError"),n=newPromiseCapabilityModule$5.f(t),o=n.resolve,i=n.reject,a=perform$5((function(){var n=aCallable$k(t.resolve),a=[],s=0,c=1,l=!1;iterate$j(e,(function(e){var u=s++,$=!1;c++,call$A(n,t,e).then((function(e){$||l||(l=!0,o(e))}),(function(e){$||l||($=!0,a[u]=e,--c||i(new r(a,PROMISE_ANY_ERROR)))}))})),--c||i(new r(a,PROMISE_ANY_ERROR))}));return a.error&&i(a.value),n.promise}});var $$1k=_export$1,NativePromiseConstructor$5=promiseNativeConstructor$1,fails$R=fails$1b,getBuiltIn$d=getBuiltIn$r,isCallable$y=isCallable$S,speciesConstructor$4=speciesConstructor$6,promiseResolve$3=promiseResolve$5,NativePromisePrototype$3=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,NON_GENERIC$1=!!NativePromiseConstructor$5&&fails$R((function(){NativePromisePrototype$3.finally.call({then:function(){}},(function(){}))}));$$1k({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC$1},{finally:function(e){var t=speciesConstructor$4(this,getBuiltIn$d("Promise")),r=isCallable$y(e);return this.then(r?function(r){return promiseResolve$3(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve$3(t,e()).then((function(){throw r}))}:e)}});var path$h=path$w,promise$6=path$h.Promise,parent$1w=promise$6,promise$5=parent$1w,parent$1v=promise$5,promise$4=parent$1v,$$1j=_export$1,newPromiseCapabilityModule$4=newPromiseCapability$5,perform$4=perform$a;$$1j({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=newPromiseCapabilityModule$4.f(this),r=perform$4(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var parent$1u=promise$4,promise$3=parent$1u,promise$2=promise$3,promise$1=promise$2,_Promise=getDefaultExportFromCjs(promise$1),$$1i=_export$1,uncurryThis$S=functionUncurryThis$1,isArray$e=isArray$i,nativeReverse=uncurryThis$S([].reverse),test$3=[1,2];$$1i({target:"Array",proto:!0,forced:String(test$3)===String(test$3.reverse())},{reverse:function(){return isArray$e(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$c=entryVirtual$f,reverse$7=entryVirtual$c("Array").reverse,isPrototypeOf$l=objectIsPrototypeOf$1,method$e=reverse$7,ArrayPrototype$d=Array.prototype,reverse$6=function(e){var t=e.reverse;return e===ArrayPrototype$d||isPrototypeOf$l(ArrayPrototype$d,e)&&t===ArrayPrototype$d.reverse?method$e:t},parent$1t=reverse$6,reverse$5=parent$1t,parent$1s=reverse$5,reverse$4=parent$1s,parent$1r=reverse$4,reverse$3=parent$1r,reverse$2=reverse$3,reverse$1=reverse$2,_reverseInstanceProperty=getDefaultExportFromCjs(reverse$1),$$1h=_export$1,isArray$d=isArray$i,isConstructor$6=isConstructor$9,isObject$o=isObject$A,toAbsoluteIndex$a=toAbsoluteIndex$d,lengthOfArrayLike$o=lengthOfArrayLike$u,toIndexedObject$d=toIndexedObject$n,createProperty$8=createProperty$c,wellKnownSymbol$r=wellKnownSymbol$N,arrayMethodHasSpeciesSupport$8=arrayMethodHasSpeciesSupport$b,nativeSlice$1=arraySlice$g,HAS_SPECIES_SUPPORT$6=arrayMethodHasSpeciesSupport$8("slice"),SPECIES$7=wellKnownSymbol$r("species"),$Array$6=Array,max$6=Math.max;$$1h({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$6},{slice:function(e,t){var r,n,o,i=toIndexedObject$d(this),a=lengthOfArrayLike$o(i),s=toAbsoluteIndex$a(e,a),c=toAbsoluteIndex$a(void 0===t?a:t,a);if(isArray$d(i)&&(r=i.constructor,(isConstructor$6(r)&&(r===$Array$6||isArray$d(r.prototype))||isObject$o(r)&&null===(r=r[SPECIES$7]))&&(r=void 0),r===$Array$6||void 0===r))return nativeSlice$1(i,s,c);for(n=new(void 0===r?$Array$6:r)(max$6(c-s,0)),o=0;s<c;s++,o++)s in i&&createProperty$8(n,o,i[s]);return n.length=o,n}});var entryVirtual$b=entryVirtual$f,slice$8=entryVirtual$b("Array").slice,isPrototypeOf$k=objectIsPrototypeOf$1,method$d=slice$8,ArrayPrototype$c=Array.prototype,slice$7=function(e){var t=e.slice;return e===ArrayPrototype$c||isPrototypeOf$k(ArrayPrototype$c,e)&&t===ArrayPrototype$c.slice?method$d:t},parent$1q=slice$7,slice$6=parent$1q,parent$1p=slice$6,slice$5=parent$1p,parent$1o=slice$5,slice$4=parent$1o,slice$3=slice$4,slice$2=slice$3,_sliceInstanceProperty=getDefaultExportFromCjs(slice$2),uncurryThis$R=functionUncurryThis$1,aCallable$j=aCallable$u,isObject$n=isObject$A,hasOwn$m=hasOwnProperty_1$1,arraySlice$d=arraySlice$g,NATIVE_BIND$4=functionBindNative$1,$Function=Function,concat$b=uncurryThis$R([].concat),join$7=uncurryThis$R([].join),factories={},construct$7=function(e,t,r){if(!hasOwn$m(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join$7(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND$4?$Function.bind:function(e){var t=aCallable$j(this),r=t.prototype,n=arraySlice$d(arguments,1),o=function(){var r=concat$b(n,arraySlice$d(arguments));return this instanceof o?construct$7(t,r.length,r):t.apply(e,r)};return isObject$n(r)&&(o.prototype=r),o},$$1g=_export$1,bind$v=functionBind;$$1g({target:"Function",proto:!0,forced:Function.bind!==bind$v},{bind:bind$v});var entryVirtual$a=entryVirtual$f,bind$u=entryVirtual$a("Function").bind,isPrototypeOf$j=objectIsPrototypeOf$1,method$c=bind$u,FunctionPrototype$4=Function.prototype,bind$t=function(e){var t=e.bind;return e===FunctionPrototype$4||isPrototypeOf$j(FunctionPrototype$4,e)&&t===FunctionPrototype$4.bind?method$c:t},parent$1n=bind$t,bind$s=parent$1n,parent$1m=bind$s,bind$r=parent$1m,parent$1l=bind$r,bind$q=parent$1l,bind$p=bind$q,bind$o=bind$p,_bindInstanceProperty=getDefaultExportFromCjs(bind$o),$$1f=_export$1,getBuiltIn$c=getBuiltIn$r,apply$7=functionApply$1,bind$n=functionBind,aConstructor$4=aConstructor$6,anObject$n=anObject$z,isObject$m=isObject$A,create$7=objectCreate$1,fails$Q=fails$1b,nativeConstruct=getBuiltIn$c("Reflect","construct"),ObjectPrototype$3=Object.prototype,push$f=[].push,NEW_TARGET_BUG=fails$Q((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$Q((function(){nativeConstruct((function(){}))})),FORCED$d=NEW_TARGET_BUG||ARGS_BUG;$$1f({target:"Reflect",stat:!0,forced:FORCED$d,sham:FORCED$d},{construct:function(e,t){aConstructor$4(e),anObject$n(t);var r=arguments.length<3?e:aConstructor$4(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return apply$7(push$f,n,t),new(apply$7(bind$n,e,n))}var o=r.prototype,i=create$7(isObject$m(o)?o:ObjectPrototype$3),a=apply$7(e,i,t);return isObject$m(a)?a:i}});var path$g=path$w,construct$6=path$g.Reflect.construct,parent$1k=construct$6,construct$5=parent$1k,parent$1j=construct$5,construct$4=parent$1j,parent$1i=construct$4,construct$3=parent$1i,construct$2=construct$3,construct$1=construct$2,_Reflect$construct=getDefaultExportFromCjs(construct$1),hasOwn$l=hasOwnProperty_1$1,isDataDescriptor$1=function(e){return void 0!==e&&(hasOwn$l(e,"value")||hasOwn$l(e,"writable"))},$$1e=_export$1,call$z=functionCall$1,isObject$l=isObject$A,anObject$m=anObject$z,isDataDescriptor=isDataDescriptor$1,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor$1,getPrototypeOf$4=objectGetPrototypeOf$1;function get$a(e,t){var r,n,o=arguments.length<3?e:arguments[2];return anObject$m(e)===o?e[t]:(r=getOwnPropertyDescriptorModule$2.f(e,t))?isDataDescriptor(r)?r.value:void 0===r.get?void 0:call$z(r.get,o):isObject$l(n=getPrototypeOf$4(e))?get$a(n,t,o):void 0}$$1e({target:"Reflect",stat:!0},{get:get$a});var path$f=path$w,get$9=path$f.Reflect.get,parent$1h=get$9,get$8=parent$1h,parent$1g=get$8,get$7=parent$1g,parent$1f=get$7,get$6=parent$1f,get$5=get$6,get$4=get$5,_Reflect$get=getDefaultExportFromCjs(get$4),$$1d=_export$1,isArray$c=isArray$i;$$1d({target:"Array",stat:!0},{isArray:isArray$c});var path$e=path$w,isArray$b=path$e.Array.isArray,parent$1e=isArray$b,isArray$a=parent$1e,parent$1d=isArray$a,isArray$9=parent$1d,parent$1c=isArray$9,isArray$8=parent$1c,isArray$7=isArray$8,isArray$6=isArray$7,_Array$isArray=getDefaultExportFromCjs(isArray$6),getIteratorMethod$d=getIteratorMethod$g,getIteratorMethod_1=getIteratorMethod$d,parent$1b=getIteratorMethod_1,getIteratorMethod$c=parent$1b,parent$1a=getIteratorMethod$c,getIteratorMethod$b=parent$1a,parent$19=getIteratorMethod$b,getIteratorMethod$a=parent$19,getIteratorMethod$9=getIteratorMethod$a,getIteratorMethod$8=getIteratorMethod$9,_getIteratorMethod=getDefaultExportFromCjs(getIteratorMethod$8),anObject$l=anObject$z,iteratorClose$3=iteratorClose$5,callWithSafeIterationClosing$3=function(e,t,r,n){try{return n?t(anObject$l(r)[0],r[1]):t(r)}catch(t){iteratorClose$3(e,"throw",t)}},bind$m=functionBindContext$1,call$y=functionCall$1,toObject$l=toObject$t,callWithSafeIterationClosing$2=callWithSafeIterationClosing$3,isArrayIteratorMethod$4=isArrayIteratorMethod$6,isConstructor$5=isConstructor$9,lengthOfArrayLike$n=lengthOfArrayLike$u,createProperty$7=createProperty$c,getIterator$6=getIterator$8,getIteratorMethod$7=getIteratorMethod$g,$Array$5=Array,arrayFrom$3=function(e){var t=toObject$l(e),r=isConstructor$5(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=bind$m(o,n>2?arguments[2]:void 0));var a,s,c,l,u,$,d=getIteratorMethod$7(t),A=0;if(!d||this===$Array$5&&isArrayIteratorMethod$4(d))for(a=lengthOfArrayLike$n(t),s=r?new this(a):$Array$5(a);a>A;A++)$=i?o(t[A],A):t[A],createProperty$7(s,A,$);else for(u=(l=getIterator$6(t,d)).next,s=r?new this:[];!(c=call$y(u,l)).done;A++)$=i?callWithSafeIterationClosing$2(l,o,[c.value,A],!0):c.value,createProperty$7(s,A,$);return s.length=A,s},$$1c=_export$1,from$7=arrayFrom$3,checkCorrectnessOfIteration$3=checkCorrectnessOfIteration$5,INCORRECT_ITERATION=!checkCorrectnessOfIteration$3((function(e){Array.from(e)}));$$1c({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$7});var path$d=path$w,from$6=path$d.Array.from,parent$18=from$6,from$5=parent$18,parent$17=from$5,from$4=parent$17,parent$16=from$4,from$3=parent$16,from$2=from$3,from$1=from$2,_Array$from=getDefaultExportFromCjs(from$1);function ownKeys$2(e,t){var r=_Object$keys(e);if(_Object$getOwnPropertySymbols){var n=_Object$getOwnPropertySymbols(e);t&&(n=_filterInstanceProperty(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?_forEachInstanceProperty(r=ownKeys$2(Object(o),!0)).call(r,(function(t){_defineProperty$2(e,t,o[t])})):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(o)):_forEachInstanceProperty(n=ownKeys$2(Object(o))).call(n,(function(t){_Object$defineProperty(e,t,_Object$getOwnPropertyDescriptor(o,t))}))}return e}function _regeneratorRuntime$1(){_regeneratorRuntime$1=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol?_Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return _Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=_Object$create(i.prototype),s=new v(o||[]);return n(a,"_invoke",{value:m(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var $={};function d(){}function A(){}function p(){}var f={};c(f,i,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(S([])));h&&h!==t&&r.call(h,i)&&(f=h);var y=p.prototype=d.prototype=_Object$create(f);function _(e){var t;_forEachInstanceProperty(t=["next","throw","return"]).call(t,(function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function o(n,i,a,s){var c=u(e[n],e,i);if("throw"!==c.type){var l=c.arg,$=l.value;return $&&"object"==_typeof($)&&r.call($,"__await")?t.resolve($.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve($).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function m(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===$)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===$)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return $;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,$;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,$):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,$)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty(e).call(e,b,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return A.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:A,configurable:!0}),A.displayName=c(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,p):(e.__proto__=p,c(e,s,"GeneratorFunction")),e.prototype=_Object$create(y),e},e.awrap=function(e){return{__await:e}},_(g.prototype),c(g.prototype,a,(function(){return this})),e.AsyncIterator=g,e.async=function(t,r,n,o,i){void 0===i&&(i=_Promise);var a=new g(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(y),c(y,s,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return _reverseInstanceProperty(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=S,v.prototype={constructor:v,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,_forEachInstanceProperty(t=this.tryEntries).call(t,I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,$):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),$},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),$}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),$}},e}function asyncGeneratorStep$1(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):_Promise.resolve(c).then(n,o)}function _asyncToGenerator$1(e){return function(){var t=this,r=arguments;return new _Promise((function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep$1(i,n,o,a,s,"next",e)}function s(e){asyncGeneratorStep$1(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _classCallCheck$2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass$2(e,t,r){return t&&_defineProperties$2(e.prototype,t),r&&_defineProperties$2(e,r),_Object$defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty$2(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=_Object$create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$1(e,t)}function _getPrototypeOf$1(e){var t;return(_getPrototypeOf$1=_Object$setPrototypeOf?_bindInstanceProperty(t=_Object$getPrototypeOf).call(t):function(e){return e.__proto__||_Object$getPrototypeOf(e)})(e)}function _setPrototypeOf$1(e,t){var r;return(_setPrototypeOf$1=_Object$setPrototypeOf?_bindInstanceProperty(r=_Object$setPrototypeOf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct$1(){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(e){return!1}}function _assertThisInitialized$1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn$1(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(e)}function _createSuper$1(e){var t=_isNativeReflectConstruct$1();return function(){var r,n=_getPrototypeOf$1(e);if(t){var o=_getPrototypeOf$1(this).constructor;r=_Reflect$construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn$1(this,r)}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf$1(e)););return e}function _get(){var e;"undefined"!=typeof Reflect&&_Reflect$get?_get=_bindInstanceProperty(e=_Reflect$get).call(e):_get=function(e,t,r){var n=_superPropBase(e,t);if(n){var o=_Object$getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return _get.apply(this,arguments)}function _slicedToArray$1(e,t){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest$1()}function _toConsumableArray$1(e){return _arrayWithoutHoles$1(e)||_iterableToArray$1(e)||_unsupportedIterableToArray$1(e)||_nonIterableSpread$1()}function _arrayWithoutHoles$1(e){if(_Array$isArray(e))return _arrayLikeToArray$1(e)}function _arrayWithHoles$1(e){if(_Array$isArray(e))return e}function _iterableToArray$1(e){if(void 0!==_Symbol&&null!=_getIteratorMethod(e)||null!=e["@@iterator"])return _Array$from(e)}function _iterableToArrayLimit$1(e,t){var r=null==e?null:void 0!==_Symbol&&_getIteratorMethod(e)||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}function _unsupportedIterableToArray$1(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var n=_sliceInstanceProperty(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?_Array$from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var $$1b=_export$1,fails$P=fails$1b,getOwnPropertyNames$a=objectGetOwnPropertyNamesExternal$1.f,FAILS_ON_PRIMITIVES$3=fails$P((function(){return!Object.getOwnPropertyNames(1)}));$$1b({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3},{getOwnPropertyNames:getOwnPropertyNames$a});var path$c=path$w,Object$1=path$c.Object,getOwnPropertyNames$9=function(e){return Object$1.getOwnPropertyNames(e)},parent$15=getOwnPropertyNames$9,getOwnPropertyNames$8=parent$15,parent$14=getOwnPropertyNames$8,getOwnPropertyNames$7=parent$14,parent$13=getOwnPropertyNames$7,getOwnPropertyNames$6=parent$13,getOwnPropertyNames$5=getOwnPropertyNames$6,getOwnPropertyNames$4=getOwnPropertyNames$5,_Object$getOwnPropertyNames=getDefaultExportFromCjs(getOwnPropertyNames$4),whitespaces$6="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$Q=functionUncurryThis$1,requireObjectCoercible$7=requireObjectCoercible$b,toString$h=toString$o,whitespaces$5=whitespaces$6,replace$9=uncurryThis$Q("".replace),ltrim$1=RegExp("^["+whitespaces$5+"]+"),rtrim$1=RegExp("(^|[^"+whitespaces$5+"])["+whitespaces$5+"]+$"),createMethod$9=function(e){return function(t){var r=toString$h(requireObjectCoercible$7(t));return 1&e&&(r=replace$9(r,ltrim$1,"")),2&e&&(r=replace$9(r,rtrim$1,"$1")),r}},stringTrim$1={start:createMethod$9(1),end:createMethod$9(2),trim:createMethod$9(3)},global$M=global$13,fails$O=fails$1b,uncurryThis$P=functionUncurryThis$1,toString$g=toString$o,trim$3=stringTrim$1.trim,whitespaces$4=whitespaces$6,$parseInt$1=global$M.parseInt,Symbol$4=global$M.Symbol,ITERATOR$d=Symbol$4&&Symbol$4.iterator,hex=/^[+-]?0x/i,exec$6=uncurryThis$P(hex.exec),FORCED$c=8!==$parseInt$1(whitespaces$4+"08")||22!==$parseInt$1(whitespaces$4+"0x16")||ITERATOR$d&&!fails$O((function(){$parseInt$1(Object(ITERATOR$d))})),numberParseInt=FORCED$c?function(e,t){var r=trim$3(toString$g(e));return $parseInt$1(r,t>>>0||(exec$6(hex,r)?16:10))}:$parseInt$1,$$1a=_export$1,$parseInt=numberParseInt;$$1a({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});var path$b=path$w,_parseInt$6=path$b.parseInt,parent$12=_parseInt$6,_parseInt$5=parent$12,parent$11=_parseInt$5,_parseInt$4=parent$11,parent$10=_parseInt$4,_parseInt$3=parent$10,_parseInt$2=_parseInt$3,_parseInt=_parseInt$2,_parseInt$1=getDefaultExportFromCjs(_parseInt),entryVirtual$9=entryVirtual$f,concat$a=entryVirtual$9("Array").concat,isPrototypeOf$i=objectIsPrototypeOf$1,method$b=concat$a,ArrayPrototype$b=Array.prototype,concat$9=function(e){var t=e.concat;return e===ArrayPrototype$b||isPrototypeOf$i(ArrayPrototype$b,e)&&t===ArrayPrototype$b.concat?method$b:t},parent$$=concat$9,concat$8=parent$$,parent$_=concat$8,concat$7=parent$_,parent$Z=concat$7,concat$6=parent$Z,concat$5=concat$6,concat$4=concat$5,_concatInstanceProperty=getDefaultExportFromCjs(concat$4),engineIsBun="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,global$L=global$13,apply$6=functionApply$1,isCallable$x=isCallable$S,ENGINE_IS_BUN=engineIsBun,USER_AGENT=engineUserAgent$1,arraySlice$c=arraySlice$g,validateArgumentsLength$7=validateArgumentsLength$9,Function$2=global$L.Function,WRAP=/MSIE .\./.test(USER_AGENT)||ENGINE_IS_BUN&&function(){var e=global$L.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}(),schedulersFix$2=function(e,t){var r=t?2:1;return WRAP?function(n,o){var i=validateArgumentsLength$7(arguments.length,1)>r,a=isCallable$x(n)?n:Function$2(n),s=i?arraySlice$c(arguments,r):[],c=i?function(){apply$6(a,this,s)}:a;return t?e(c,o):e(c)}:e},$$19=_export$1,global$K=global$13,schedulersFix$1=schedulersFix$2,setInterval$5=schedulersFix$1(global$K.setInterval,!0);$$19({global:!0,bind:!0,forced:global$K.setInterval!==setInterval$5},{setInterval:setInterval$5});var $$18=_export$1,global$J=global$13,schedulersFix=schedulersFix$2,setTimeout$6=schedulersFix(global$J.setTimeout,!0);$$18({global:!0,bind:!0,forced:global$J.setTimeout!==setTimeout$6},{setTimeout:setTimeout$6});var path$a=path$w,setTimeout$5=path$a.setTimeout,parent$Y=setTimeout$5,setTimeout$4=parent$Y,parent$X=setTimeout$4,setTimeout$3=parent$X,setTimeout$2=setTimeout$3,setTimeout$1=setTimeout$2,_setTimeout=getDefaultExportFromCjs(setTimeout$1),global$I=global$13,fails$N=fails$1b,uncurryThis$O=functionUncurryThis$1,toString$f=toString$o,trim$2=stringTrim$1.trim,whitespaces$3=whitespaces$6,charAt$a=uncurryThis$O("".charAt),$parseFloat$2=global$I.parseFloat,Symbol$3=global$I.Symbol,ITERATOR$c=Symbol$3&&Symbol$3.iterator,FORCED$b=1/$parseFloat$2(whitespaces$3+"-0")!=-1/0||ITERATOR$c&&!fails$N((function(){$parseFloat$2(Object(ITERATOR$c))})),numberParseFloat$1=FORCED$b?function(e){var t=trim$2(toString$f(e)),r=$parseFloat$2(t);return 0===r&&"-"==charAt$a(t,0)?-0:r}:$parseFloat$2,$$17=_export$1,$parseFloat$1=numberParseFloat$1;$$17({global:!0,forced:parseFloat!=numberParseFloat$1},{parseFloat:numberParseFloat$1});var path$9=path$w,_parseFloat$c=path$9.parseFloat,parent$W=_parseFloat$c,_parseFloat$b=parent$W,parent$V=_parseFloat$b,_parseFloat$a=parent$V,parent$U=_parseFloat$a,_parseFloat$9=parent$U,_parseFloat$8=_parseFloat$9,_parseFloat$6=_parseFloat$8,_parseFloat$7=getDefaultExportFromCjs(_parseFloat$6),$$16=_export$1,parseFloat$2=numberParseFloat$1;$$16({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$2},{parseFloat:parseFloat$2});var path$8=path$w,_parseFloat$5=path$8.Number.parseFloat,parent$T=_parseFloat$5,_parseFloat$4=parent$T,parent$S=_parseFloat$4,_parseFloat$3=parent$S,parent$R=_parseFloat$3,_parseFloat$2=parent$R,_parseFloat$1=_parseFloat$2,_parseFloat=_parseFloat$1,_Number$parseFloat=getDefaultExportFromCjs(_parseFloat),$$15=_export$1;$$15({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var path$7=path$w,isNan$5=path$7.Number.isNaN,parent$Q=isNan$5,isNan$4=parent$Q,parent$P=isNan$4,isNan$3=parent$P,parent$O=isNan$3,isNan$2=parent$O,isNan$1=isNan$2,isNan=isNan$1,_Number$isNaN=getDefaultExportFromCjs(isNan),$$14=_export$1,$map$2=arrayIteration$1.map,arrayMethodHasSpeciesSupport$7=arrayMethodHasSpeciesSupport$b,HAS_SPECIES_SUPPORT$5=arrayMethodHasSpeciesSupport$7("map");$$14({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$5},{map:function(e){return $map$2(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$8=entryVirtual$f,map$c=entryVirtual$8("Array").map,isPrototypeOf$h=objectIsPrototypeOf$1,method$a=map$c,ArrayPrototype$a=Array.prototype,map$b=function(e){var t=e.map;return e===ArrayPrototype$a||isPrototypeOf$h(ArrayPrototype$a,e)&&t===ArrayPrototype$a.map?method$a:t},parent$N=map$b,map$a=parent$N,parent$M=map$a,map$9=parent$M,parent$L=map$9,map$8=parent$L,map$7=map$8,map$6=map$7,_mapInstanceProperty=getDefaultExportFromCjs(map$6),toObject$k=toObject$t,toAbsoluteIndex$9=toAbsoluteIndex$d,lengthOfArrayLike$m=lengthOfArrayLike$u,arrayFill$2=function(e){for(var t=toObject$k(this),r=lengthOfArrayLike$m(t),n=arguments.length,o=toAbsoluteIndex$9(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:toAbsoluteIndex$9(i,r);a>o;)t[o++]=e;return t},$$13=_export$1,fill$9=arrayFill$2;$$13({target:"Array",proto:!0},{fill:fill$9});var entryVirtual$7=entryVirtual$f,fill$8=entryVirtual$7("Array").fill,isPrototypeOf$g=objectIsPrototypeOf$1,method$9=fill$8,ArrayPrototype$9=Array.prototype,fill$7=function(e){var t=e.fill;return e===ArrayPrototype$9||isPrototypeOf$g(ArrayPrototype$9,e)&&t===ArrayPrototype$9.fill?method$9:t},parent$K=fill$7,fill$6=parent$K,parent$J=fill$6,fill$5=parent$J,parent$I=fill$5,fill$4=parent$I,fill$3=fill$4,fill$2=fill$3,_fillInstanceProperty=getDefaultExportFromCjs(fill$2),check=function(e){return e&&e.Math==Math&&e},global$H=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),shared$4={exports:{}},isPure=!1,global$G=global$H,defineProperty$d=Object.defineProperty,defineGlobalProperty$3=function(e,t){try{defineProperty$d(global$G,e,{value:t,configurable:!0,writable:!0})}catch(r){global$G[e]=t}return t},global$F=global$H,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$F[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var match,version,sharedExports=shared$4.exports,fails$M=function(e){try{return!!e()}catch(e){return!0}},fails$L=fails$M,functionBindNative=!fails$L((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$3=functionBindNative,FunctionPrototype$3=Function.prototype,call$x=FunctionPrototype$3.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$3.bind.bind(call$x,call$x),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$x.apply(e,arguments)}},isNullOrUndefined$7=function(e){return null==e},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$o=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$6(e))throw $TypeError$o("Can't call method on "+e);return e},requireObjectCoercible$5=requireObjectCoercible$6,$Object$4=Object,toObject$j=function(e){return $Object$4(requireObjectCoercible$5(e))},uncurryThis$N=functionUncurryThis,toObject$i=toObject$j,hasOwnProperty=uncurryThis$N({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$i(e),t)},uncurryThis$M=functionUncurryThis,id$1=0,postfix=Math.random(),toString$e=uncurryThis$M(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$e(++id$1+postfix,36)},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$w=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},global$E=global$H,isCallable$v=isCallable$w,aFunction=function(e){return isCallable$v(e)?e:void 0},getBuiltIn$b=function(e,t){return arguments.length<2?aFunction(global$E[e]):global$E[e]&&global$E[e][t]},getBuiltIn$a=getBuiltIn$b,engineUserAgent=getBuiltIn$a("navigator","userAgent")||"",global$D=global$H,userAgent$7=engineUserAgent,process$4=global$D.process,Deno$1=global$D.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$7&&(!(match=userAgent$7.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$7.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$K=fails$M,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$K((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41})),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,global$C=global$H,shared$3=sharedExports,hasOwn$k=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID$1=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$C.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID$1?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$3,wellKnownSymbol$q=function(e){if(!hasOwn$k(WellKnownSymbolsStore,e)||!NATIVE_SYMBOL&&"string"!=typeof WellKnownSymbolsStore[e]){var t="Symbol."+e;NATIVE_SYMBOL&&hasOwn$k(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=USE_SYMBOL_AS_UID$1&&symbolFor?symbolFor(t):createWellKnownSymbol(t)}return WellKnownSymbolsStore[e]},wellKnownSymbol$p=wellKnownSymbol$q,TO_STRING_TAG$4=wellKnownSymbol$p("toStringTag"),test$2={};test$2[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$2),objectDefineProperty={},fails$J=fails$M,descriptors=!fails$J((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),isCallable$u=isCallable$w,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$k=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$u(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$u(e)},global$B=global$H,isObject$j=isObject$k,document$3=global$B.document,EXISTS$1=isObject$j(document$3)&&isObject$j(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$s=descriptors,fails$I=fails$M,createElement$1=documentCreateElement$2,ie8DomDefine=!DESCRIPTORS$s&&!fails$I((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$r=descriptors,fails$H=fails$M,v8PrototypeDefineBug=DESCRIPTORS$r&&fails$H((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$i=isObject$k,$String$4=String,$TypeError$n=TypeError,anObject$k=function(e){if(isObject$i(e))return e;throw $TypeError$n($String$4(e)+" is not an object")},NATIVE_BIND$2=functionBindNative,call$w=Function.prototype.call,functionCall=NATIVE_BIND$2?call$w.bind(call$w):function(){return call$w.apply(call$w,arguments)},uncurryThis$L=functionUncurryThis,objectIsPrototypeOf=uncurryThis$L({}.isPrototypeOf),getBuiltIn$9=getBuiltIn$b,isCallable$t=isCallable$w,isPrototypeOf$f=objectIsPrototypeOf,USE_SYMBOL_AS_UID=useSymbolAsUid,$Object$3=Object,isSymbol$4=USE_SYMBOL_AS_UID?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$9("Symbol");return isCallable$t(t)&&isPrototypeOf$f(t.prototype,$Object$3(e))},$String$3=String,tryToString$8=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$s=isCallable$w,tryToString$7=tryToString$8,$TypeError$m=TypeError,aCallable$i=function(e){if(isCallable$s(e))return e;throw $TypeError$m(tryToString$7(e)+" is not a function")},aCallable$h=aCallable$i,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$4=function(e,t){var r=e[t];return isNullOrUndefined$5(r)?void 0:aCallable$h(r)},call$v=functionCall,isCallable$r=isCallable$w,isObject$h=isObject$k,$TypeError$l=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$r(r=e.toString)&&!isObject$h(n=call$v(r,e)))return n;if(isCallable$r(r=e.valueOf)&&!isObject$h(n=call$v(r,e)))return n;if("string"!==t&&isCallable$r(r=e.toString)&&!isObject$h(n=call$v(r,e)))return n;throw $TypeError$l("Can't convert object to primitive value")},call$u=functionCall,isObject$g=isObject$k,isSymbol$3=isSymbol$4,getMethod$3=getMethod$4,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$o=wellKnownSymbol$q,$TypeError$k=TypeError,TO_PRIMITIVE=wellKnownSymbol$o("toPrimitive"),toPrimitive$3=function(e,t){if(!isObject$g(e)||isSymbol$3(e))return e;var r,n=getMethod$3(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$u(n,e,t),!isObject$g(r)||isSymbol$3(r))return r;throw $TypeError$k("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$2=toPrimitive$3,isSymbol$2=isSymbol$4,toPropertyKey$4=function(e){var t=toPrimitive$2(e,"string");return isSymbol$2(t)?t:t+""},DESCRIPTORS$q=descriptors,IE8_DOM_DEFINE$1=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$j=anObject$k,toPropertyKey$3=toPropertyKey$4,$TypeError$j=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$q?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){if(anObject$j(e),t=toPropertyKey$3(t),anObject$j(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]){var n=$getOwnPropertyDescriptor$1(e,t);n&&n[WRITABLE]&&(e[t]=r.value,r={configurable:CONFIGURABLE$1 in r?r[CONFIGURABLE$1]:n[CONFIGURABLE$1],enumerable:ENUMERABLE in r?r[ENUMERABLE]:n[ENUMERABLE],writable:!1})}return $defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$j(e),t=toPropertyKey$3(t),anObject$j(r),IE8_DOM_DEFINE$1)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$j("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var makeBuiltIn$3={exports:{}},DESCRIPTORS$p=descriptors,hasOwn$j=hasOwnProperty_1,FunctionPrototype$2=Function.prototype,getDescriptor=DESCRIPTORS$p&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$j(FunctionPrototype$2,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$p||DESCRIPTORS$p&&getDescriptor(FunctionPrototype$2,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$K=functionUncurryThis,isCallable$q=isCallable$w,store$1=sharedStore,functionToString$1=uncurryThis$K(Function.toString);isCallable$q(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString$1(e)});var set$8,get$3,has$2,inspectSource$3=store$1.inspectSource,global$A=global$H,isCallable$p=isCallable$w,WeakMap$1=global$A.WeakMap,weakMapBasicDetection=isCallable$p(WeakMap$1)&&/native code/.test(String(WeakMap$1)),createPropertyDescriptor$7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},DESCRIPTORS$o=descriptors,definePropertyModule$6=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$7,createNonEnumerableProperty$a=DESCRIPTORS$o?function(e,t,r){return definePropertyModule$6.f(e,t,createPropertyDescriptor$6(1,r))}:function(e,t,r){return e[t]=r,e},shared$2=sharedExports,uid$2=uid$4,keys$2=shared$2("keys"),sharedKey$3=function(e){return keys$2[e]||(keys$2[e]=uid$2(e))},hiddenKeys$5={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$z=global$H,isObject$f=isObject$k,createNonEnumerableProperty$9=createNonEnumerableProperty$a,hasOwn$i=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$4=hiddenKeys$5,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$8=global$z.TypeError,WeakMap=global$z.WeakMap,enforce=function(e){return has$2(e)?get$3(e):set$8(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$f(t)||(r=get$3(t)).type!==e)throw TypeError$8("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$1.state){var store=shared$1.state||(shared$1.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$8=function(e,t){if(store.has(e))throw TypeError$8(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get$3=function(e){return store.get(e)||{}},has$2=function(e){return store.has(e)}}else{var STATE=sharedKey$2("state");hiddenKeys$4[STATE]=!0,set$8=function(e,t){if(hasOwn$i(e,STATE))throw TypeError$8(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$9(e,STATE,t),t},get$3=function(e){return hasOwn$i(e,STATE)?e[STATE]:{}},has$2=function(e){return hasOwn$i(e,STATE)}}var internalState={set:set$8,get:get$3,has:has$2,enforce:enforce,getterFor:getterFor},fails$G=fails$M,isCallable$o=isCallable$w,hasOwn$h=hasOwnProperty_1,DESCRIPTORS$n=descriptors,CONFIGURABLE_FUNCTION_NAME$2=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$c=internalState,enforceInternalState$2=InternalStateModule$c.enforce,getInternalState$6=InternalStateModule$c.get,defineProperty$c=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$n&&!fails$G((function(){return 8!==defineProperty$c((function(){}),"length",{value:8}).length})),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$h(e,"name")||CONFIGURABLE_FUNCTION_NAME$2&&e.name!==t)&&(DESCRIPTORS$n?defineProperty$c(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$h(r,"arity")&&e.length!==r.arity&&defineProperty$c(e,"length",{value:r.arity});try{r&&hasOwn$h(r,"constructor")&&r.constructor?DESCRIPTORS$n&&defineProperty$c(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=enforceInternalState$2(e);return hasOwn$h(n,"source")||(n.source=TEMPLATE.join("string"==typeof t?t:"")),e};Function.prototype.toString=makeBuiltIn$2((function(){return isCallable$o(this)&&getInternalState$6(this).source||inspectSource$2(this)}),"toString");var makeBuiltInExports=makeBuiltIn$3.exports,isCallable$n=isCallable$w,definePropertyModule$5=objectDefineProperty,makeBuiltIn$1=makeBuiltInExports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$h=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(isCallable$n(r)&&makeBuiltIn$1(r,i,n),n.global)o?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:definePropertyModule$5.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},uncurryThis$J=functionUncurryThis,toString$d=uncurryThis$J({}.toString),stringSlice$9=uncurryThis$J("".slice),classofRaw$2=function(e){return stringSlice$9(toString$d(e),8,-1)},TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$m=isCallable$w,classofRaw$1=classofRaw$2,wellKnownSymbol$n=wellKnownSymbol$q,TO_STRING_TAG$3=wellKnownSymbol$n("toStringTag"),$Object$2=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$h=TO_STRING_TAG_SUPPORT$2?classofRaw$1:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=$Object$2(e),TO_STRING_TAG$3))?r:CORRECT_ARGUMENTS?classofRaw$1(t):"Object"==(n=classofRaw$1(t))&&isCallable$m(t.callee)?"Arguments":n},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$g=classof$h,objectToString=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$g(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineBuiltIn$g=defineBuiltIn$h,toString$c=objectToString;TO_STRING_TAG_SUPPORT||defineBuiltIn$g(Object.prototype,"toString",toString$c,{unsafe:!0});var domIterables={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},documentCreateElement$1=documentCreateElement$2,classList=documentCreateElement$1("span").classList,DOMTokenListPrototype$2=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$2===Object.prototype?void 0:DOMTokenListPrototype$2,classofRaw=classofRaw$2,uncurryThis$I=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$I(e)},uncurryThis$H=functionUncurryThisClause,aCallable$g=aCallable$i,NATIVE_BIND$1=functionBindNative,bind$l=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$g(e),void 0===t?e:NATIVE_BIND$1?bind$l(e,t):function(){return e.apply(t,arguments)}},uncurryThis$G=functionUncurryThis,fails$F=fails$M,classof$f=classofRaw$2,$Object$1=Object,split$6=uncurryThis$G("".split),indexedObject=fails$F((function(){return!$Object$1("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$f(e)?split$6(e,""):$Object$1(e)}:$Object$1,ceil=Math.ceil,floor$b=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor$b:ceil)(t)},trunc3=mathTrunc,toIntegerOrInfinity$d=function(e){var t=+e;return t!=t||0===t?0:trunc3(t)},toIntegerOrInfinity$c=toIntegerOrInfinity$d,min$6=Math.min,toLength$6=function(e){return e>0?min$6(toIntegerOrInfinity$c(e),9007199254740991):0},toLength$5=toLength$6,lengthOfArrayLike$l=function(e){return toLength$5(e.length)},classof$e=classofRaw$2,isArray$5=Array.isArray||function(e){return"Array"==classof$e(e)},uncurryThis$F=functionUncurryThis,fails$E=fails$M,isCallable$l=isCallable$w,classof$d=classof$h,getBuiltIn$8=getBuiltIn$b,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct2=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$5=uncurryThis$F(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$l(e))return!1;try{return construct2(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$l(e))return!1;switch(classof$d(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$5(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct2||fails$E((function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){e=!0}))||e}))?isConstructorLegacy:isConstructorModern,isArray$4=isArray$5,isConstructor$3=isConstructor$4,isObject$e=isObject$k,wellKnownSymbol$m=wellKnownSymbol$q,SPECIES$6=wellKnownSymbol$m("species"),$Array$4=Array,arraySpeciesConstructor$1=function(e){var t;return isArray$4(e)&&(t=e.constructor,(isConstructor$3(t)&&(t===$Array$4||isArray$4(t.prototype))||isObject$e(t)&&null===(t=t[SPECIES$6]))&&(t=void 0)),void 0===t?$Array$4:t},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$4=function(e,t){return new(arraySpeciesConstructor(e))(0===t?0:t)},bind$k=functionBindContext,uncurryThis$E=functionUncurryThis,IndexedObject$7=indexedObject,toObject$h=toObject$j,lengthOfArrayLike$k=lengthOfArrayLike$l,arraySpeciesCreate$3=arraySpeciesCreate$4,push$e=uncurryThis$E([].push),createMethod$8=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,$){for(var d,A,p=toObject$h(c),f=IndexedObject$7(p),h=bind$k(l,u),y=lengthOfArrayLike$k(f),_=0,g=$||arraySpeciesCreate$3,m=t?g(c,y):r||a?g(c,0):void 0;y>_;_++)if((s||_ in f)&&(A=h(d=f[_],_,p),e))if(t)m[_]=A;else if(A)switch(e){case 3:return!0;case 5:return d;case 6:return _;case 2:push$e(m,d)}else switch(e){case 4:return!1;case 7:push$e(m,d)}return i?-1:n||o?o:m}},arrayIteration={forEach:createMethod$8(0),map:createMethod$8(1),filter:createMethod$8(2),some:createMethod$8(3),every:createMethod$8(4),find:createMethod$8(5),findIndex:createMethod$8(6),filterReject:createMethod$8(7)},fails$D=fails$M,arrayMethodIsStrict$7=function(e,t){var r=[][e];return!!r&&fails$D((function(){r.call(null,t||function(){return 1},1)}))},$forEach$1=arrayIteration.forEach,arrayMethodIsStrict$6=arrayMethodIsStrict$7,STRICT_METHOD$4=arrayMethodIsStrict$6("forEach"),arrayForEach=STRICT_METHOD$4?[].forEach:function(e){return $forEach$1(this,e,arguments.length>1?arguments[1]:void 0)},global$y=global$H,DOMIterables$2=domIterables,DOMTokenListPrototype$1=domTokenListPrototype,forEach$2=arrayForEach,createNonEnumerableProperty$8=createNonEnumerableProperty$a,handlePrototype$1=function(e){if(e&&e.forEach!==forEach$2)try{createNonEnumerableProperty$8(e,"forEach",forEach$2)}catch(t){e.forEach=forEach$2}};for(var COLLECTION_NAME$1 in DOMIterables$2)DOMIterables$2[COLLECTION_NAME$1]&&handlePrototype$1(global$y[COLLECTION_NAME$1]&&global$y[COLLECTION_NAME$1].prototype);handlePrototype$1(DOMTokenListPrototype$1);var objectGetOwnPropertyDescriptor={},objectPropertyIsEnumerable={},$propertyIsEnumerable$2={}.propertyIsEnumerable,getOwnPropertyDescriptor$7=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$7&&!$propertyIsEnumerable$2.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$7(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$2;var IndexedObject$6=indexedObject,requireObjectCoercible$4=requireObjectCoercible$6,toIndexedObject$c=function(e){return IndexedObject$6(requireObjectCoercible$4(e))},DESCRIPTORS$m=descriptors,call$t=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$5=createPropertyDescriptor$7,toIndexedObject$b=toIndexedObject$c,toPropertyKey$2=toPropertyKey$4,hasOwn$g=hasOwnProperty_1,IE8_DOM_DEFINE=ie8DomDefine,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$m?$getOwnPropertyDescriptor:function(e,t){if(e=toIndexedObject$b(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(e,t)}catch(e){}if(hasOwn$g(e,t))return createPropertyDescriptor$5(!call$t(propertyIsEnumerableModule$2.f,e,t),e[t])};var objectGetOwnPropertyNames={},toIntegerOrInfinity$b=toIntegerOrInfinity$d,max$5=Math.max,min$5=Math.min,toAbsoluteIndex$8=function(e,t){var r=toIntegerOrInfinity$b(e);return r<0?max$5(r+t,0):min$5(r,t)},toIndexedObject$a=toIndexedObject$c,toAbsoluteIndex$7=toAbsoluteIndex$8,lengthOfArrayLike$j=lengthOfArrayLike$l,createMethod$7=function(e){return function(t,r,n){var o,i=toIndexedObject$a(t),a=lengthOfArrayLike$j(i),s=toAbsoluteIndex$7(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},arrayIncludes={includes:createMethod$7(!0),indexOf:createMethod$7(!1)},uncurryThis$D=functionUncurryThis,hasOwn$f=hasOwnProperty_1,toIndexedObject$9=toIndexedObject$c,indexOf$8=arrayIncludes.indexOf,hiddenKeys$3=hiddenKeys$5,push$d=uncurryThis$D([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$9(e),o=0,i=[];for(r in n)!hasOwn$f(hiddenKeys$3,r)&&hasOwn$f(n,r)&&push$d(i,r);for(;t.length>o;)hasOwn$f(n,r=t[o++])&&(~indexOf$8(i,r)||push$d(i,r));return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$2=enumBugKeys$2.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$2)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$7=getBuiltIn$b,uncurryThis$C=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,anObject$i=anObject$k,concat$3=uncurryThis$C([].concat),ownKeys$1=getBuiltIn$7("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$i(e)),r=getOwnPropertySymbolsModule$2.f;return r?concat$3(t,r(e)):t},hasOwn$e=hasOwnProperty_1,ownKeys3=ownKeys$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule$4=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys3(t),o=definePropertyModule$4.f,i=getOwnPropertyDescriptorModule$1.f,a=0;a<n.length;a++){var s=n[a];hasOwn$e(e,s)||r&&hasOwn$e(r,s)||o(e,s,i(t,s))}},fails$C=fails$M,isCallable$k=isCallable$w,replacement=/#|\.prototype\./,isForced$3=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$k(t)?fails$C(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$x=global$H,getOwnPropertyDescriptor$6=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$7=createNonEnumerableProperty$a,defineBuiltIn$f=defineBuiltIn$h,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$2=isForced_1,_export=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?global$x:l?global$x[s]||defineGlobalProperty(s,{}):(global$x[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=getOwnPropertyDescriptor$6(r,n))&&a.value:r[n],!isForced$2(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;copyConstructorProperties(i,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$7(i,"sham",!0),defineBuiltIn$f(r,n,i,e)}},objectGetOwnPropertyNamesExternal={},toPropertyKey$1=toPropertyKey$4,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$4=createPropertyDescriptor$7,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$3.f(e,n,createPropertyDescriptor$4(0,r)):e[n]=r},toAbsoluteIndex$6=toAbsoluteIndex$8,lengthOfArrayLike$i=lengthOfArrayLike$l,createProperty$5=createProperty$6,$Array$3=Array,max$4=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$i(e),o=toAbsoluteIndex$6(t,n),i=toAbsoluteIndex$6(void 0===r?n:r,n),a=$Array$3(max$4(i-o,0)),s=0;o<i;o++,s++)createProperty$5(a,s,e[o]);return a.length=s,a},classof$c=classofRaw$2,toIndexedObject$8=toIndexedObject$c,$getOwnPropertyNames=objectGetOwnPropertyNames.f,arraySlice$b=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames(e)}catch(e){return arraySlice$b(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$c(e)?getWindowNames(e):$getOwnPropertyNames(toIndexedObject$8(e))};var $$12=_export,fails$B=fails$M,getOwnPropertyNames$3=objectGetOwnPropertyNamesExternal.f,FAILS_ON_PRIMITIVES$2=fails$B((function(){return!Object.getOwnPropertyNames(1)}));$$12({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{getOwnPropertyNames:getOwnPropertyNames$3});var classof$b=classof$h,$String$2=String,toString$b=function(e){if("Symbol"===classof$b(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$2(e)},anObject$h=anObject$k,regexpFlags$2=function(){var e=anObject$h(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$A=fails$M,global$w=global$H,$RegExp$2=global$w.RegExp,UNSUPPORTED_Y$1=fails$A((function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),MISSED_STICKY=UNSUPPORTED_Y$1||fails$A((function(){return!$RegExp$2("a","y").sticky})),BROKEN_CARET=UNSUPPORTED_Y$1||fails$A((function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$5=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$l=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$g=anObject$k,toIndexedObject$7=toIndexedObject$c,objectKeys$4=objectKeys$5;objectDefineProperties.f=DESCRIPTORS$l&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$g(e);for(var r,n=toIndexedObject$7(t),o=objectKeys$4(t),i=o.length,a=0;i>a;)definePropertyModule$2.f(e,r=o[a++],n[r]);return e};var activeXDocument,getBuiltIn$6=getBuiltIn$b,html$2=getBuiltIn$6("document","documentElement"),anObject$f=anObject$k,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys$1=hiddenKeys$5,html$1=html$2,documentCreateElement=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html$1.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys[e]];return NullProtoObject()};hiddenKeys$1[IE_PROTO$1]=!0;var objectCreate=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE$1]=anObject$f(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)},fails$z=fails$M,global$v=global$H,$RegExp$1=global$v.RegExp,regexpUnsupportedDotAll=fails$z((function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),fails$y=fails$M,global$u=global$H,$RegExp=global$u.RegExp,regexpUnsupportedNcg=fails$y((function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),call$s=functionCall,uncurryThis$B=functionUncurryThis,toString$a=toString$b,regexpFlags$1=regexpFlags$2,stickyHelpers=regexpStickyHelpers,shared=sharedExports,create$6=objectCreate,getInternalState$5=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$9=uncurryThis$B("".charAt),indexOf$7=uncurryThis$B("".indexOf),replace$8=uncurryThis$B("".replace),stringSlice$8=uncurryThis$B("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$s(nativeExec,e,"a"),call$s(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(e){var t,r,n,o,i,a,s,c=this,l=getInternalState$5(c),u=toString$a(e),$=l.raw;if($)return $.lastIndex=c.lastIndex,t=call$s(patchedExec,$,u),c.lastIndex=$.lastIndex,t;var d=l.groups,A=UNSUPPORTED_Y&&c.sticky,p=call$s(regexpFlags$1,c),f=c.source,h=0,y=u;if(A&&(p=replace$8(p,"y",""),-1===indexOf$7(p,"g")&&(p+="g"),y=stringSlice$8(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==charAt$9(u,c.lastIndex-1))&&(f="(?: "+f+")",y=" "+y,h++),r=new RegExp("^(?:"+f+")",p)),NPCG_INCLUDED&&(r=new RegExp("^"+f+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(n=c.lastIndex),o=call$s(nativeExec,A?r:c,y),A?o?(o.input=stringSlice$8(o.input,h),o[0]=stringSlice$8(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),NPCG_INCLUDED&&o&&o.length>1&&call$s(nativeReplace,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=create$6(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var regexpExec$2=patchedExec,$$11=_export,exec$4=regexpExec$2;$$11({target:"RegExp",proto:!0,forced:/./.exec!==regexpExec$2},{exec:regexpExec$2});var $$10=_export,call$r=functionCall,isCallable$j=isCallable$w,anObject$e=anObject$k,toString$9=toString$b,DELEGATES_TO_EXEC=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),nativeTest=/./.test;$$10({target:"RegExp",proto:!0,forced:!DELEGATES_TO_EXEC},{test:function(e){var t=anObject$e(this),r=toString$9(e),n=t.exec;if(!isCallable$j(n))return call$r(nativeTest,t,r);var o=call$r(n,t,r);return null!==o&&(anObject$e(o),!0)}});var NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,apply$5=FunctionPrototype$1.apply,call$q=FunctionPrototype$1.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call$q.bind(apply$5):function(){return call$q.apply(apply$5,arguments)}),uncurryThis$A=functionUncurryThisClause,defineBuiltIn$e=defineBuiltIn$h,regexpExec$1=regexpExec$2,fails$x=fails$M,wellKnownSymbol$l=wellKnownSymbol$q,createNonEnumerableProperty$6=createNonEnumerableProperty$a,SPECIES$5=wellKnownSymbol$l("species"),RegExpPrototype$5=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(e,t,r,n){var o=wellKnownSymbol$l(e),i=!fails$x((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!fails$x((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[SPECIES$5]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=uncurryThis$A(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=uncurryThis$A(e),c=t.exec;return c===regexpExec$1||c===RegExpPrototype$5.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));defineBuiltIn$e(String.prototype,e,c[0]),defineBuiltIn$e(RegExpPrototype$5,o,c[1])}n&&createNonEnumerableProperty$6(RegExpPrototype$5[o],"sham",!0)},uncurryThis$z=functionUncurryThis,toIntegerOrInfinity$a=toIntegerOrInfinity$d,toString$8=toString$b,requireObjectCoercible$3=requireObjectCoercible$6,charAt$8=uncurryThis$z("".charAt),charCodeAt$3=uncurryThis$z("".charCodeAt),stringSlice$7=uncurryThis$z("".slice),createMethod$6=function(e){return function(t,r){var n,o,i=toString$8(requireObjectCoercible$3(t)),a=toIntegerOrInfinity$a(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=charCodeAt$3(i,a))<55296||n>56319||a+1===s||(o=charCodeAt$3(i,a+1))<56320||o>57343?e?charAt$8(i,a):n:e?stringSlice$7(i,a,a+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$6(!1),charAt:createMethod$6(!0)},charAt$7=stringMultibyte.charAt,advanceStringIndex$1=function(e,t,r){return t+(r?charAt$7(e,t).length:1)},uncurryThis$y=functionUncurryThis,toObject$g=toObject$j,floor$a=Math.floor,charAt$6=uncurryThis$y("".charAt),replace$7=uncurryThis$y("".replace),stringSlice$6=uncurryThis$y("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==o&&(o=toObject$g(o),c=SUBSTITUTION_SYMBOLS),replace$7(i,c,(function(i,c){var l;switch(charAt$6(c,0)){case"$":return"$";case"&":return e;case"`":return stringSlice$6(t,0,r);case"'":return stringSlice$6(t,a);case"<":l=o[stringSlice$6(c,1,-1)];break;default:var u=+c;if(0===u)return i;if(u>s){var $=floor$a(u/10);return 0===$?i:$<=s?void 0===n[$-1]?charAt$6(c,1):n[$-1]+charAt$6(c,1):i}l=n[u-1]}return void 0===l?"":l}))},call$p=functionCall,anObject$d=anObject$k,isCallable$i=isCallable$w,classof$a=classofRaw$2,regexpExec=regexpExec$2,$TypeError$i=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$i(r)){var n=call$p(r,e,t);return null!==n&&anObject$d(n),n}if("RegExp"===classof$a(e))return call$p(regexpExec,e,t);throw $TypeError$i("RegExp#exec called on incompatible receiver")},apply$4=functionApply,call$o=functionCall,uncurryThis$x=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$w=fails$M,anObject$c=anObject$k,isCallable$h=isCallable$w,isNullOrUndefined$4=isNullOrUndefined$7,toIntegerOrInfinity$9=toIntegerOrInfinity$d,toLength$4=toLength$6,toString$7=toString$b,requireObjectCoercible$2=requireObjectCoercible$6,advanceStringIndex=advanceStringIndex$1,getMethod$2=getMethod$4,getSubstitution=getSubstitution$1,regExpExec$1=regexpExecAbstract,wellKnownSymbol$k=wellKnownSymbol$q,REPLACE=wellKnownSymbol$k("replace"),max$3=Math.max,min$4=Math.min,concat$2=uncurryThis$x([].concat),push$c=uncurryThis$x([].push),stringIndexOf=uncurryThis$x("".indexOf),stringSlice$5=uncurryThis$x("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$w((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));fixRegExpWellKnownSymbolLogic("replace",(function(e,t,r){var n=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,r){var n=requireObjectCoercible$2(this),o=isNullOrUndefined$4(e)?void 0:getMethod$2(e,REPLACE);return o?call$o(o,e,n,r):call$o(t,toString$7(n),e,r)},function(e,o){var i=anObject$c(this),a=toString$7(e);if("string"==typeof o&&-1===stringIndexOf(o,n)&&-1===stringIndexOf(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=isCallable$h(o);c||(o=toString$7(o));var l=i.global;if(l){var u=i.unicode;i.lastIndex=0}for(var $=[];;){var d=regExpExec$1(i,a);if(null===d)break;if(push$c($,d),!l)break;""===toString$7(d[0])&&(i.lastIndex=advanceStringIndex(a,toLength$4(i.lastIndex),u))}for(var A="",p=0,f=0;f<$.length;f++){for(var h=toString$7((d=$[f])[0]),y=max$3(min$4(toIntegerOrInfinity$9(d.index),a.length),0),_=[],g=1;g<d.length;g++)push$c(_,maybeToString(d[g]));var m=d.groups;if(c){var E=concat$2([h],_,y,a);void 0!==m&&push$c(E,m);var b=toString$7(apply$4(o,void 0,E))}else b=getSubstitution(h,a,y,_,m,o);y>=p&&(A+=stringSlice$5(a,p,y)+b,p=y+h.length)}return A+stringSlice$5(a,p)}]}),!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);var fails$v=fails$M,wellKnownSymbol$j=wellKnownSymbol$q,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$j("species"),arrayMethodHasSpeciesSupport$6=function(e){return V8_VERSION$2>=51||!fails$v((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$$=_export,$filter$1=arrayIteration.filter,arrayMethodHasSpeciesSupport$5=arrayMethodHasSpeciesSupport$6,HAS_SPECIES_SUPPORT$4=arrayMethodHasSpeciesSupport$5("filter");$$$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$4},{filter:function(e){return $filter$1(this,e,arguments.length>1?arguments[1]:void 0)}});var $location,defer,channel,port,classof$9=classofRaw$2,global$t=global$H,engineIsNode="process"==classof$9(global$t.process),isCallable$g=isCallable$w,$String$1=String,$TypeError$h=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$g(e))return e;throw $TypeError$h("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$w=functionUncurryThis,anObject$b=anObject$k,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThis$w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$b(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),defineProperty$b=objectDefineProperty.f,hasOwn$d=hasOwnProperty_1,wellKnownSymbol$i=wellKnownSymbol$q,TO_STRING_TAG$2=wellKnownSymbol$i("toStringTag"),setToStringTag$9=function(e,t,r){e&&!r&&(e=e.prototype),e&&!hasOwn$d(e,TO_STRING_TAG$2)&&defineProperty$b(e,TO_STRING_TAG$2,{configurable:!0,value:t})},getBuiltIn$5=getBuiltIn$b,definePropertyModule$1=objectDefineProperty,wellKnownSymbol$h=wellKnownSymbol$q,DESCRIPTORS$k=descriptors,SPECIES$3=wellKnownSymbol$h("species"),setSpecies$4=function(e){var t=getBuiltIn$5(e),r=definePropertyModule$1.f;DESCRIPTORS$k&&t&&!t[SPECIES$3]&&r(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$e=objectIsPrototypeOf,$TypeError$g=TypeError,anInstance$9=function(e,t){if(isPrototypeOf$e(t,e))return e;throw $TypeError$g("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$6=tryToString$8,$TypeError$f=TypeError,aConstructor$3=function(e){if(isConstructor$2(e))return e;throw $TypeError$f(tryToString$6(e)+" is not a constructor")},anObject$a=anObject$k,aConstructor$2=aConstructor$3,isNullOrUndefined$3=isNullOrUndefined$7,wellKnownSymbol$g=wellKnownSymbol$q,SPECIES$2=wellKnownSymbol$g("species"),speciesConstructor$3=function(e,t){var r,n=anObject$a(e).constructor;return void 0===n||isNullOrUndefined$3(r=anObject$a(n)[SPECIES$2])?t:aConstructor$2(r)},uncurryThis$v=functionUncurryThis,arraySlice$a=uncurryThis$v([].slice),$TypeError$e=TypeError,validateArgumentsLength$6=function(e,t){if(e<t)throw $TypeError$e("Not enough arguments");return e},userAgent$6=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$6),global$s=global$H,apply$3=functionApply,bind$j=functionBindContext,isCallable$f=isCallable$w,hasOwn$c=hasOwnProperty_1,fails$u=fails$M,html=html$2,arraySlice$9=arraySlice$a,createElement=documentCreateElement$2,validateArgumentsLength$5=validateArgumentsLength$6,IS_IOS$1=engineIsIos,IS_NODE$4=engineIsNode,set$7=global$s.setImmediate,clear=global$s.clearImmediate,process$3=global$s.process,Dispatch=global$s.Dispatch,Function$1=global$s.Function,MessageChannel=global$s.MessageChannel,String$1=global$s.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{$location=global$s.location}catch(e){}var run=function(e){if(hasOwn$c(queue$1,e)){var t=queue$1[e];delete queue$1[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$s.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set$7&&clear||(set$7=function(e){validateArgumentsLength$5(arguments.length,1);var t=isCallable$f(e)?e:Function$1(e),r=arraySlice$9(arguments,1);return queue$1[++counter]=function(){apply$3(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$4?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$j(port.postMessage,port)):global$s.addEventListener&&isCallable$f(global$s.postMessage)&&!global$s.importScripts&&$location&&"file:"!==$location.protocol&&!fails$u(post)?(defer=post,global$s.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var flush,head,last,notify$1,toggle,node,promise,then,task$1={set:set$7,clear:clear},userAgent$5=engineUserAgent,global$r=global$H,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$5)&&void 0!==global$r.Pebble,userAgent$4=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent$4),global$q=global$H,bind$i=functionBindContext,getOwnPropertyDescriptor$5=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$3=engineIsNode,MutationObserver=global$q.MutationObserver||global$q.WebKitMutationObserver,document$2=global$q.document,process$2=global$q.process,Promise$1=global$q.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$5(global$q,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;queueMicrotask||(flush=function(){var e,t;for(IS_NODE$3&&(e=process$2.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},IS_IOS||IS_NODE$3||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$i(promise.then,promise),notify$1=function(){then(flush)}):IS_NODE$3?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$i(macrotask,global$q),notify$1=function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}));var microtask$1=queueMicrotask||function(e){var t={fn:e,next:void 0};last&&(last.next=t),head||(head=t,notify$1()),last=t},global$p=global$H,hostReportErrors$1=function(e,t){var r=global$p.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null};Queue$1.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var queue=Queue$1,global$o=global$H,promiseNativeConstructor=global$o.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$2=engineIsNode,engineIsBrowser=!IS_DENO$1&&!IS_NODE$2&&"object"==typeof window&&"object"==typeof document,global$n=global$H,NativePromiseConstructor$4=promiseNativeConstructor,isCallable$e=isCallable$w,isForced$1=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$f=wellKnownSymbol$q,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION$1=engineV8Version;NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype;var SPECIES$1=wellKnownSymbol$f("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$e(global$n.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced$1("Promise",(function(){var e=inspectSource(NativePromiseConstructor$4),t=e!==String(NativePromiseConstructor$4);if(!t&&66===V8_VERSION$1)return!0;if(!V8_VERSION$1||V8_VERSION$1<51||!/native code/.test(e)){var r=new NativePromiseConstructor$4((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$1]=n,!(SUBCLASSING=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1})),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$f=aCallable$i,$TypeError$d=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$d("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$f(t),this.reject=aCallable$f(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,$$_=_export,IS_NODE$1=engineIsNode,global$m=global$H,call$n=functionCall,defineBuiltIn$d=defineBuiltIn$h,setPrototypeOf$5=objectSetPrototypeOf,setToStringTag$8=setToStringTag$9,setSpecies$3=setSpecies$4,aCallable$e=aCallable$i,isCallable$d=isCallable$w,isObject$d=isObject$k,anInstance$8=anInstance$9,speciesConstructor$2=speciesConstructor$3,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule$b=internalState,NativePromiseConstructor$3=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$b.getterFor(PROMISE),setInternalState$a=InternalStateModule$b.set,NativePromisePrototype$2=NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,PromiseConstructor=NativePromiseConstructor$3,PromisePrototype=NativePromisePrototype$2,TypeError$7=global$m.TypeError,document$1=global$m.document,process$1=global$m.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$m.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$d(e)||!isCallable$d(t=e.then))&&t},callReaction=function(e,t){var r,n,o,i=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?l(TypeError$7("Promise-chain cycle")):(n=isThenable(r))?call$n(n,r,c,l):c(r)):l(i)}catch(e){u&&!o&&u.exit(),l(e)}},notify=function(e,t){e.notified||(e.notified=!0,microtask((function(){for(var r,n=e.reactions;r=n.get();)callReaction(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled(e)})))},dispatchEvent=function(e,t,r){var n,o;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$m.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$m["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$n(task,global$m,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$2((function(){IS_NODE$1?process$1.emit("unhandledRejection",n,r):dispatchEvent(UNHANDLED_REJECTION,r,n)})),e.rejection=IS_NODE$1||isUnhandled(e)?UNHANDLED:HANDLED,t.error))throw t.value}))},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e){call$n(task,global$m,(function(){var t=e.facade;IS_NODE$1?process$1.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$h=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$7("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$n(n,t,bind$h(internalResolve,r,e),bind$h(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=FULFILLED,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$8(this,PromisePrototype),aCallable$e(e),call$n(Internal,this);var t=getInternalPromiseState(this);try{e(bind$h(internalResolve,t),bind$h(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$a(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$d(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$2(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$d(e)||e,n.fail=isCallable$d(t)&&t,n.domain=IS_NODE$1?process$1.domain:void 0,r.state==PENDING?r.reactions.add(n):microtask((function(){callReaction(n,r)})),n.promise})),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$h(internalResolve,t),this.reject=bind$h(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$d(NativePromiseConstructor$3)&&NativePromisePrototype$2!==Object.prototype)){nativeThen=NativePromisePrototype$2.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$d(NativePromisePrototype$2,"then",(function(e,t){var r=this;return new PromiseConstructor((function(e,t){call$n(nativeThen,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete NativePromisePrototype$2.constructor}catch(e){}setPrototypeOf$5&&setPrototypeOf$5(NativePromisePrototype$2,PromisePrototype)}$$_({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$8(PromiseConstructor,PROMISE,!1),setSpecies$3(PROMISE);var iterators={},wellKnownSymbol$e=wellKnownSymbol$q,Iterators$4=iterators,ITERATOR$b=wellKnownSymbol$e("iterator"),ArrayPrototype$8=Array.prototype,isArrayIteratorMethod$3=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$8[ITERATOR$b]===e)},classof$8=classof$h,getMethod$1=getMethod$4,isNullOrUndefined$2=isNullOrUndefined$7,Iterators$3=iterators,wellKnownSymbol$d=wellKnownSymbol$q,ITERATOR$a=wellKnownSymbol$d("iterator"),getIteratorMethod$6=function(e){if(!isNullOrUndefined$2(e))return getMethod$1(e,ITERATOR$a)||getMethod$1(e,"@@iterator")||Iterators$3[classof$8(e)]},call$m=functionCall,aCallable$d=aCallable$i,anObject$9=anObject$k,tryToString$5=tryToString$8,getIteratorMethod$5=getIteratorMethod$6,$TypeError$c=TypeError,getIterator$5=function(e,t){var r=arguments.length<2?getIteratorMethod$5(e):t;if(aCallable$d(r))return anObject$9(call$m(r,e));throw $TypeError$c(tryToString$5(e)+" is not iterable")},call$l=functionCall,anObject$8=anObject$k,getMethod=getMethod$4,iteratorClose$2=function(e,t,r){var n,o;anObject$8(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$l(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$8(n),r},bind$g=functionBindContext,call$k=functionCall,anObject$7=anObject$k,tryToString$4=tryToString$8,isArrayIteratorMethod$2=isArrayIteratorMethod$3,lengthOfArrayLike$h=lengthOfArrayLike$l,isPrototypeOf$d=objectIsPrototypeOf,getIterator$4=getIterator$5,getIteratorMethod$4=getIteratorMethod$6,iteratorClose$1=iteratorClose$2,$TypeError$b=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$i=function(e,t,r){var n,o,i,a,s,c,l,u=r&&r.that,$=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),f=bind$g(t,u),h=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},y=function(e){return $?(anObject$7(e),p?f(e[0],e[1],h):f(e[0],e[1])):p?f(e,h):f(e)};if(d)n=e.iterator;else if(A)n=e;else{if(!(o=getIteratorMethod$4(e)))throw $TypeError$b(tryToString$4(e)+" is not iterable");if(isArrayIteratorMethod$2(o)){for(i=0,a=lengthOfArrayLike$h(e);a>i;i++)if((s=y(e[i]))&&isPrototypeOf$d(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$4(e,o)}for(c=d?e.next:n.next;!(l=call$k(c,n)).done;){try{s=y(l.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$d(ResultPrototype,s))return s}return new Result(!1)},wellKnownSymbol$c=wellKnownSymbol$q,ITERATOR$9=wellKnownSymbol$c("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$9]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$2=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n={};n[ITERATOR$9]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$2=promiseNativeConstructor,checkCorrectnessOfIteration$1=checkCorrectnessOfIteration$2,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$1((function(e){NativePromiseConstructor$2.all(e).then(void 0,(function(){}))})),$$Z=_export,call$j=functionCall,aCallable$c=aCallable$i,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$h=iterate$i,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$Z({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,i=perform$1((function(){var r=aCallable$c(t.resolve),i=[],a=0,s=1;iterate$h(e,(function(e){var c=a++,l=!1;s++,call$j(r,t,e).then((function(e){l||(l=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var $$Y=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$1=promiseNativeConstructor,getBuiltIn$4=getBuiltIn$b,isCallable$c=isCallable$w,defineBuiltIn$c=defineBuiltIn$h,NativePromisePrototype$1=NativePromiseConstructor$1&&NativePromiseConstructor$1.prototype;if($$Y({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$c(NativePromiseConstructor$1)){var method$8=getBuiltIn$4("Promise").prototype.catch;NativePromisePrototype$1.catch!==method$8&&defineBuiltIn$c(NativePromisePrototype$1,"catch",method$8,{unsafe:!0})}var $$X=_export,call$i=functionCall,aCallable$b=aCallable$i,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate$g=iterate$i,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$X({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function(e){var t=this,r=newPromiseCapabilityModule$1.f(t),n=r.reject,o=perform((function(){var o=aCallable$b(t.resolve);iterate$g(e,(function(e){call$i(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$W=_export,call$h=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$W({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call$h(t.reject,void 0,e),t.promise}});var anObject$6=anObject$k,isObject$c=isObject$k,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$6(e),isObject$c(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$V=_export,getBuiltIn$3=getBuiltIn$b,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2;getBuiltIn$3("Promise"),$$V({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve$1(this,e)}});var $TypeError$a=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$3=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$a("Maximum allowed index exceeded");return e},$$U=_export,fails$t=fails$M,isArray$3=isArray$5,isObject$b=isObject$k,toObject$f=toObject$j,lengthOfArrayLike$g=lengthOfArrayLike$l,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$4=createProperty$6,arraySpeciesCreate$2=arraySpeciesCreate$4,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$6,wellKnownSymbol$b=wellKnownSymbol$q,V8_VERSION=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$b("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION>=51||!fails$t((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport$4("concat"),isConcatSpreadable=function(e){if(!isObject$b(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$3(e)},FORCED$a=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;$$U({target:"Array",proto:!0,arity:1,forced:FORCED$a},{concat:function(e){var t,r,n,o,i,a=toObject$f(this),s=arraySpeciesCreate$2(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(i=-1===t?a:arguments[t]))for(o=lengthOfArrayLike$g(i),doesNotExceedSafeInteger$2(c+o),r=0;r<o;r++,c++)r in i&&createProperty$4(s,c,i[r]);else doesNotExceedSafeInteger$2(c+1),createProperty$4(s,c++,i);return s.length=c,s}});var $$T=_export,NativePromiseConstructor=promiseNativeConstructor,fails$s=fails$M,getBuiltIn$2=getBuiltIn$b,isCallable$b=isCallable$w,speciesConstructor$1=speciesConstructor$3,promiseResolve=promiseResolve$2,defineBuiltIn$b=defineBuiltIn$h,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$s((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));if($$T({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor$1(this,getBuiltIn$2("Promise")),r=isCallable$b(e);return this.then(r?function(r){return promiseResolve(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve(t,e()).then((function(){throw r}))}:e)}}),isCallable$b(NativePromiseConstructor)){var method$7=getBuiltIn$2("Promise").prototype.finally;NativePromisePrototype.finally!==method$7&&defineBuiltIn$b(NativePromisePrototype,"finally",method$7,{unsafe:!0})}var isCallable$a=isCallable$w,isObject$a=isObject$k,setPrototypeOf$4=objectSetPrototypeOf,inheritIfRequired$2=function(e,t,r){var n,o;return setPrototypeOf$4&&isCallable$a(n=t.constructor)&&n!==r&&isObject$a(o=n.prototype)&&o!==r.prototype&&setPrototypeOf$4(e,o),e},uncurryThis$u=functionUncurryThis,thisNumberValue$2=uncurryThis$u(1..valueOf),whitespaces$2="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$t=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$6,toString$6=toString$b,whitespaces$1=whitespaces$2,replace$6=uncurryThis$t("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$5=function(e){return function(t){var r=toString$6(requireObjectCoercible$1(t));return 1&e&&(r=replace$6(r,ltrim,"")),2&e&&(r=replace$6(r,rtrim,"")),r}},stringTrim={start:createMethod$5(1),end:createMethod$5(2),trim:createMethod$5(3)},DESCRIPTORS$j=descriptors,global$l=global$H,uncurryThis$s=functionUncurryThis,isForced=isForced_1,defineBuiltIn$a=defineBuiltIn$h,hasOwn$b=hasOwnProperty_1,inheritIfRequired$1=inheritIfRequired$2,isPrototypeOf$c=objectIsPrototypeOf,isSymbol$1=isSymbol$4,toPrimitive$1=toPrimitive$3,fails$r=fails$M,getOwnPropertyNames$2=objectGetOwnPropertyNames.f,getOwnPropertyDescriptor$4=objectGetOwnPropertyDescriptor.f,defineProperty$a=objectDefineProperty.f,thisNumberValue$1=thisNumberValue$2,trim$1=stringTrim.trim,NUMBER="Number",NativeNumber=global$l[NUMBER],NumberPrototype=NativeNumber.prototype,TypeError$6=global$l.TypeError,arraySlice$8=uncurryThis$s("".slice),charCodeAt$2=uncurryThis$s("".charCodeAt),toNumeric=function(e){var t=toPrimitive$1(e,"number");return"bigint"==typeof t?t:toNumber(t)},toNumber=function(e){var t,r,n,o,i,a,s,c,l=toPrimitive$1(e,"number");if(isSymbol$1(l))throw TypeError$6("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=trim$1(l),43===(t=charCodeAt$2(l,0))||45===t){if(88===(r=charCodeAt$2(l,2))||120===r)return NaN}else if(48===t){switch(charCodeAt$2(l,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(a=(i=arraySlice$8(l,2)).length,s=0;s<a;s++)if((c=charCodeAt$2(i,s))<48||c>o)return NaN;return parseInt(i,n)}return+l};if(isForced(NUMBER,!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1"))){for(var key$1,NumberWrapper=function(e){var t=arguments.length<1?0:NativeNumber(toNumeric(e)),r=this;return isPrototypeOf$c(NumberPrototype,r)&&fails$r((function(){thisNumberValue$1(r)}))?inheritIfRequired$1(Object(t),r,NumberWrapper):t},keys$1=DESCRIPTORS$j?getOwnPropertyNames$2(NativeNumber):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j$1=0;keys$1.length>j$1;j$1++)hasOwn$b(NativeNumber,key$1=keys$1[j$1])&&!hasOwn$b(NumberWrapper,key$1)&&defineProperty$a(NumberWrapper,key$1,getOwnPropertyDescriptor$4(NativeNumber,key$1));NumberWrapper.prototype=NumberPrototype,NumberPrototype.constructor=NumberWrapper,defineBuiltIn$a(global$l,NUMBER,NumberWrapper,{constructor:!0})}var global$k=global$H,fails$q=fails$M,uncurryThis$r=functionUncurryThis,toString$5=toString$b,trim=stringTrim.trim,whitespaces=whitespaces$2,charAt$5=uncurryThis$r("".charAt),$parseFloat=global$k.parseFloat,Symbol$1=global$k.Symbol,ITERATOR$8=Symbol$1&&Symbol$1.iterator,FORCED$9=1/$parseFloat(whitespaces+"-0")!=-1/0||ITERATOR$8&&!fails$q((function(){$parseFloat(Object(ITERATOR$8))})),numberParseFloat=FORCED$9?function(e){var t=trim(toString$5(e)),r=$parseFloat(t);return 0===r&&"-"==charAt$5(t,0)?-0:r}:$parseFloat,$$S=_export,parseFloat$1=numberParseFloat;$$S({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$1},{parseFloat:parseFloat$1});var $$R=_export;$$R({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var $$Q=_export,$map$1=arrayIteration.map,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$6,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("map");$$Q({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{map:function(e){return $map$1(this,e,arguments.length>1?arguments[1]:void 0)}});var toObject$e=toObject$j,toAbsoluteIndex$5=toAbsoluteIndex$8,lengthOfArrayLike$f=lengthOfArrayLike$l,arrayFill$1=function(e){for(var t=toObject$e(this),r=lengthOfArrayLike$f(t),n=arguments.length,o=toAbsoluteIndex$5(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:toAbsoluteIndex$5(i,r);a>o;)t[o++]=e;return t},wellKnownSymbol$a=wellKnownSymbol$q,create$5=objectCreate,defineProperty$9=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$a("unscopables"),ArrayPrototype$7=Array.prototype;null==ArrayPrototype$7[UNSCOPABLES]&&defineProperty$9(ArrayPrototype$7,UNSCOPABLES,{configurable:!0,value:create$5(null)});var addToUnscopables$4=function(e){ArrayPrototype$7[UNSCOPABLES][e]=!0},$$P=_export,fill$1=arrayFill$1,addToUnscopables$3=addToUnscopables$4;$$P({target:"Array",proto:!0},{fill:fill$1}),addToUnscopables$3("fill");var ele,path$6=path$w,setInterval$4=path$6.setInterval,parent$H=setInterval$4,setInterval$3=parent$H,parent$G=setInterval$3,setInterval$2=parent$G,setInterval$1=setInterval$2,setInterval=setInterval$1,_setInterval=getDefaultExportFromCjs(setInterval),webm="data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK",mp4="data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw",oldIOS=function(){return"undefined"!=typeof navigator&&_parseFloat$7((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream},nativeWakeLock=function(){return"wakeLock"in navigator},NoSleep=function(){function e(){var t=this;_classCallCheck$2(this,e),this.enabled=!1,nativeWakeLock()?(this._wakeLock=null,this.handleVisibilityChange=function(){null!==t._wakeLock&&t.visible&&t.enable()},document.addEventListener("visibilitychange",this.handleVisibilityChange),document.addEventListener("fullscreenchange",this.handleVisibilityChange)):oldIOS()?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"mp4",mp4),this._addSourceToVideo(this.noSleepVideo,"webm",webm),this.noSleepVideo.addEventListener("loadedmetadata",(function(){t.noSleepVideo&&(t.noSleepVideo.duration<=1?t.noSleepVideo.setAttribute("loop",""):(t.onTimeupdate=function(){t.noSleepVideo.currentTime>.5&&(t.noSleepVideo.currentTime=Math.random())},t.noSleepVideo.addEventListener("timeupdate",t.onTimeupdate)))})))}return _createClass$2(e,[{key:"_addSourceToVideo",value:function(e,t,r){var n=document.createElement("source");n.src=r,n.type="video/".concat(t),e.appendChild(n)}},{key:"visible",get:function(){return"visible"===document.visibilityState}},{key:"isEnabled",get:function(){return this.enabled}},{key:"enable",value:function(){var e,t=this;if(nativeWakeLock()&&this.visible)return navigator.wakeLock.request("screen").then((function(e){t._wakeLock=e,t.enabled=!0,t._wakeLock.addEventListener("release",(function(){}))})).catch((function(){t.enabled=!1}));if(oldIOS())return this.disable(),console.warn("\n NoSleep enabled for older iOS devices. This can interrupt\n active or long-running network requests from completing successfully.\n See https://github.com/richtr/NoSleep.js/issues/15 for more details.\n "),this.noSleepTimer=_setInterval((function(){document.hidden||(window.location.href=window.location.href.split("#")[0],_setTimeout(window.stop,0))}),15e3),this.enabled=!0,_Promise.resolve();if(null!==(e=this.noSleepVideo)&&void 0!==e&&e.paused){var r=this.noSleepVideo.play();return r&&r.then((function(e){return t.enabled=!0,e})).catch((function(e){console.log("noSleep: ",e.message),t.enabled=!1}))}}},{key:"disable",value:function(){nativeWakeLock()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):oldIOS()?this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}},{key:"toPlay",value:function(){if(this.noSleepVideo&&this.noSleepVideo.paused){var e=performance.now();this.lastTs||(this.lastTs=e),e-this.lastTs>1e4&&(this.enable(),this.lastTs=e)}}},{key:"destroy",value:function(){this.disable(),this.handleVisibilityChange&&(document.removeEventListener("visibilitychange",this.handleVisibilityChange),document.removeEventListener("fullscreenchange",this.handleVisibilityChange)),this.onTimeupdate&&this.noSleepVideo.removeEventListener("timeupdate",this.onTimeupdate),this.noSleepVideo=null}}]),e}();function initBgSilenceAudio(){if(!document.querySelector("#hackAudioPP")){var e=document.createElement("div");e.innerHTML="<audio id='hackAudioPP'></audio>",document.body.appendChild(e);var t=e.children.item(0);t.controls=!1,t.preload="auto",t.innerHTML="<source src=".concat("data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAACAAACcQCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA//////////////////////////////////////////////////////////////////8AAABhTEFNRTMuMTAwA8MAAAAAAAAAABQgJAUHQQAB9AAAAnGMHkkIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//sQxAADgnABGiAAQBCqgCRMAAgEAH///////////////7+n/9FTuQsQH//////2NG0jWUGlio5gLQTOtIoeR2WX////X4s9Atb/JRVCbBUpeRUq//////////////////9RUi0f2jn/+xDECgPCjAEQAABN4AAANIAAAAQVTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQ==",' type="audio/mpeg"></source>'),t.muted=!0,t.loop=!0,t.play().catch((function(){}))}}function playSlienceAudio(){var e=ele||(ele=document.querySelector("#hackAudioPP"));e?!1===e.paused&&!1===e.muted||(e.muted=!1,e.play().catch((function(e){console.log("bgAudio: ",e.message)}))):initBgSilenceAudio()}function pauseSlienceAudio(){var e=ele||(ele=document.querySelector("#hackAudioPP"));e&&e.pause()}var $$O=_export$1,uncurryThis$q=functionUncurryThis$1,$Date=Date,thisTimeValue=uncurryThis$q($Date.prototype.getTime);$$O({target:"Date",stat:!0},{now:function(){return thisTimeValue(new $Date)}});var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,path$5=path$w,now$5=path$5.Date.now,parent$F=now$5,now$4=parent$F,parent$E=now$4,now$3=parent$E,parent$D=now$3,now$2=parent$D,now$1=now$2,now2=now$1,_Date$now=getDefaultExportFromCjs(now2),fails$p=fails$M,correctPrototypeGetter=!fails$p((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$a=hasOwnProperty_1,isCallable$9=isCallable$w,toObject$d=toObject$j,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$2=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t=toObject$d(e);if(hasOwn$a(t,IE_PROTO))return t[IE_PROTO];var r=t.constructor;return isCallable$9(r)&&t instanceof r?r.prototype:t instanceof $Object?ObjectPrototype$2:null},fails$o=fails$M,isCallable$8=isCallable$w,isObject$9=isObject$k,getPrototypeOf$3=objectGetPrototypeOf,defineBuiltIn$9=defineBuiltIn$h,wellKnownSymbol$9=wellKnownSymbol$q,ITERATOR$7=wellKnownSymbol$9("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$3(getPrototypeOf$3(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$9(IteratorPrototype$2)||fails$o((function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e}));NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable$8(IteratorPrototype$2[ITERATOR$7])||defineBuiltIn$9(IteratorPrototype$2,ITERATOR$7,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$4=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$7,setToStringTag$7=setToStringTag$9,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$4(IteratorPrototype$1,{next:createPropertyDescriptor$3(+!n,r)}),setToStringTag$7(e,o,!1),Iterators$2[o]=returnThis$1,e},$$N=_export,call$g=functionCall,FunctionName$1=functionName,isCallable$7=isCallable$w,createIteratorConstructor$2=iteratorCreateConstructor,getPrototypeOf$2=objectGetPrototypeOf,setPrototypeOf$3=objectSetPrototypeOf,setToStringTag$6=setToStringTag$9,createNonEnumerableProperty$5=createNonEnumerableProperty$a,defineBuiltIn$8=defineBuiltIn$h,wellKnownSymbol$8=wellKnownSymbol$q,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$2=FunctionName$1.PROPER,CONFIGURABLE_FUNCTION_NAME$1=FunctionName$1.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$8("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,i,a){createIteratorConstructor$2(r,t,n);var s,c,l,u=function(e){if(e===o&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in A)return A[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",d=!1,A=e.prototype,p=A[ITERATOR$6]||A["@@iterator"]||o&&A[o],f=!BUGGY_SAFARI_ITERATORS&&p||u(o),h="Array"==t&&A.entries||p;if(h&&(s=getPrototypeOf$2(h.call(new e)))!==Object.prototype&&s.next&&(getPrototypeOf$2(s)!==IteratorPrototype&&(setPrototypeOf$3?setPrototypeOf$3(s,IteratorPrototype):isCallable$7(s[ITERATOR$6])||defineBuiltIn$8(s,ITERATOR$6,returnThis)),setToStringTag$6(s,$,!0)),PROPER_FUNCTION_NAME$2&&o==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$1?createNonEnumerableProperty$5(A,"name",VALUES):(d=!0,f=function(){return call$g(p,this)})),o)if(c={values:u(VALUES),keys:i?f:u(KEYS),entries:u(ENTRIES)},a)for(l in c)(BUGGY_SAFARI_ITERATORS||d||!(l in A))&&defineBuiltIn$8(A,l,c[l]);else $$N({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||d},c);return A[ITERATOR$6]!==f&&defineBuiltIn$8(A,ITERATOR$6,f,{name:o}),Iterators$1[t]=f,c},createIterResultObject$3=function(e,t){return{value:e,done:t}},toIndexedObject$6=toIndexedObject$c,addToUnscopables$2=addToUnscopables$4,Iterators=iterators,InternalStateModule$a=internalState,defineProperty$8=objectDefineProperty.f,defineIterator$2=iteratorDefine,createIterResultObject$2=createIterResultObject$3,DESCRIPTORS$i=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$9=InternalStateModule$a.set,getInternalState$4=InternalStateModule$a.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$2(Array,"Array",(function(e,t){setInternalState$9(this,{type:ARRAY_ITERATOR,target:toIndexedObject$6(e),index:0,kind:t})}),(function(){var e=getInternalState$4(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$2(void 0,!0)):createIterResultObject$2("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables$2("keys"),addToUnscopables$2("values"),addToUnscopables$2("entries"),DESCRIPTORS$i&&"values"!==values.name)try{defineProperty$8(values,"name",{value:"values"})}catch(e){}var NAME$1,Constructor,Prototype,typedArrayConstructor={exports:{}},arrayBufferBasicDetection="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,NATIVE_ARRAY_BUFFER$1=arrayBufferBasicDetection,DESCRIPTORS$h=descriptors,global$j=global$H,isCallable$6=isCallable$w,isObject$8=isObject$k,hasOwn$9=hasOwnProperty_1,classof$7=classof$h,tryToString$3=tryToString$8,createNonEnumerableProperty$4=createNonEnumerableProperty$a,defineBuiltIn$7=defineBuiltIn$h,defineProperty$7=objectDefineProperty.f,isPrototypeOf$b=objectIsPrototypeOf,getPrototypeOf$1=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf,wellKnownSymbol$7=wellKnownSymbol$q,uid$1=uid$4,InternalStateModule$9=internalState,enforceInternalState$1=InternalStateModule$9.enforce,getInternalState$3=InternalStateModule$9.get,Int8Array$4=global$j.Int8Array,Int8ArrayPrototype$1=Int8Array$4&&Int8Array$4.prototype,Uint8ClampedArray$1=global$j.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray$1&&Uint8ClampedArray$1.prototype,TypedArray$1=Int8Array$4&&getPrototypeOf$1(Int8Array$4),TypedArrayPrototype$2=Int8ArrayPrototype$1&&getPrototypeOf$1(Int8ArrayPrototype$1),ObjectPrototype$1=Object.prototype,TypeError$5=global$j.TypeError,TO_STRING_TAG$1=wellKnownSymbol$7("toStringTag"),TYPED_ARRAY_TAG$1=uid$1("TYPED_ARRAY_TAG"),TYPED_ARRAY_CONSTRUCTOR="TypedArrayConstructor",NATIVE_ARRAY_BUFFER_VIEWS$2=NATIVE_ARRAY_BUFFER$1&&!!setPrototypeOf$2&&"Opera"!==classof$7(global$j.opera),TYPED_ARRAY_TAG_REQUIRED=!1,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},isView=function(e){if(!isObject$8(e))return!1;var t=classof$7(e);return"DataView"===t||hasOwn$9(TypedArrayConstructorsList,t)||hasOwn$9(BigIntArrayConstructorsList,t)},getTypedArrayConstructor$1=function(e){var t=getPrototypeOf$1(e);if(isObject$8(t)){var r=getInternalState$3(t);return r&&hasOwn$9(r,TYPED_ARRAY_CONSTRUCTOR)?r[TYPED_ARRAY_CONSTRUCTOR]:getTypedArrayConstructor$1(t)}},isTypedArray$1=function(e){if(!isObject$8(e))return!1;var t=classof$7(e);return hasOwn$9(TypedArrayConstructorsList,t)||hasOwn$9(BigIntArrayConstructorsList,t)},aTypedArray$p=function(e){if(isTypedArray$1(e))return e;throw TypeError$5("Target is not a typed array")},aTypedArrayConstructor$3=function(e){if(isCallable$6(e)&&(!setPrototypeOf$2||isPrototypeOf$b(TypedArray$1,e)))return e;throw TypeError$5(tryToString$3(e)+" is not a typed array constructor")},exportTypedArrayMethod$q=function(e,t,r,n){if(DESCRIPTORS$h){if(r)for(var o in TypedArrayConstructorsList){var i=global$j[o];if(i&&hasOwn$9(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}TypedArrayPrototype$2[e]&&!r||defineBuiltIn$7(TypedArrayPrototype$2,e,r?t:NATIVE_ARRAY_BUFFER_VIEWS$2&&Int8ArrayPrototype$1[e]||t,n)}},exportTypedArrayStaticMethod=function(e,t,r){var n,o;if(DESCRIPTORS$h){if(setPrototypeOf$2){if(r)for(n in TypedArrayConstructorsList)if((o=global$j[n])&&hasOwn$9(o,e))try{delete o[e]}catch(e){}if(TypedArray$1[e]&&!r)return;try{return defineBuiltIn$7(TypedArray$1,e,r?t:NATIVE_ARRAY_BUFFER_VIEWS$2&&TypedArray$1[e]||t)}catch(e){}}for(n in TypedArrayConstructorsList)!(o=global$j[n])||o[e]&&!r||defineBuiltIn$7(o,e,t)}};for(NAME$1 in TypedArrayConstructorsList)(Prototype=(Constructor=global$j[NAME$1])&&Constructor.prototype)?enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR]=Constructor:NATIVE_ARRAY_BUFFER_VIEWS$2=!1;for(NAME$1 in BigIntArrayConstructorsList)(Prototype=(Constructor=global$j[NAME$1])&&Constructor.prototype)&&(enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR]=Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS$2||!isCallable$6(TypedArray$1)||TypedArray$1===Function.prototype)&&(TypedArray$1=function(){throw TypeError$5("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$2))for(NAME$1 in TypedArrayConstructorsList)global$j[NAME$1]&&setPrototypeOf$2(global$j[NAME$1],TypedArray$1);if((!NATIVE_ARRAY_BUFFER_VIEWS$2||!TypedArrayPrototype$2||TypedArrayPrototype$2===ObjectPrototype$1)&&(TypedArrayPrototype$2=TypedArray$1.prototype,NATIVE_ARRAY_BUFFER_VIEWS$2))for(NAME$1 in TypedArrayConstructorsList)global$j[NAME$1]&&setPrototypeOf$2(global$j[NAME$1].prototype,TypedArrayPrototype$2);if(NATIVE_ARRAY_BUFFER_VIEWS$2&&getPrototypeOf$1(Uint8ClampedArrayPrototype)!==TypedArrayPrototype$2&&setPrototypeOf$2(Uint8ClampedArrayPrototype,TypedArrayPrototype$2),DESCRIPTORS$h&&!hasOwn$9(TypedArrayPrototype$2,TO_STRING_TAG$1))for(NAME$1 in TYPED_ARRAY_TAG_REQUIRED=!0,defineProperty$7(TypedArrayPrototype$2,TO_STRING_TAG$1,{get:function(){return isObject$8(this)?this[TYPED_ARRAY_TAG$1]:void 0}}),TypedArrayConstructorsList)global$j[NAME$1]&&createNonEnumerableProperty$4(global$j[NAME$1],TYPED_ARRAY_TAG$1,NAME$1);var arrayBufferViewCore={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$2,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG$1,aTypedArray:aTypedArray$p,aTypedArrayConstructor:aTypedArrayConstructor$3,exportTypedArrayMethod:exportTypedArrayMethod$q,exportTypedArrayStaticMethod:exportTypedArrayStaticMethod,getTypedArrayConstructor:getTypedArrayConstructor$1,isView:isView,isTypedArray:isTypedArray$1,TypedArray:TypedArray$1,TypedArrayPrototype:TypedArrayPrototype$2},global$i=global$H,fails$n=fails$M,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,NATIVE_ARRAY_BUFFER_VIEWS$1=arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$3=global$i.ArrayBuffer,Int8Array$3=global$i.Int8Array,typedArrayConstructorsRequireWrappers=!NATIVE_ARRAY_BUFFER_VIEWS$1||!fails$n((function(){Int8Array$3(1)}))||!fails$n((function(){new Int8Array$3(-1)}))||!checkCorrectnessOfIteration((function(e){new Int8Array$3,new Int8Array$3(null),new Int8Array$3(1.5),new Int8Array$3(e)}),!0)||fails$n((function(){return 1!==new Int8Array$3(new ArrayBuffer$3(2),1,void 0).length})),defineBuiltIn$6=defineBuiltIn$h,defineBuiltIns$5=function(e,t,r){for(var n in t)defineBuiltIn$6(e,n,t[n],r);return e},toIntegerOrInfinity$8=toIntegerOrInfinity$d,toLength$3=toLength$6,$RangeError$6=RangeError,toIndex$2=function(e){if(void 0===e)return 0;var t=toIntegerOrInfinity$8(e),r=toLength$3(t);if(t!==r)throw $RangeError$6("Wrong length or index");return r},$Array$2=Array,abs=Math.abs,pow$3=Math.pow,floor$9=Math.floor,log$1=Math.log,LN2=Math.LN2,pack=function(e,t,r){var n,o,i,a=$Array$2(r),s=8*r-t-1,c=(1<<s)-1,l=c>>1,u=23===t?pow$3(2,-24)-pow$3(2,-77):0,$=e<0||0===e&&1/e<0?1:0,d=0;for((e=abs(e))!=e||e===1/0?(o=e!=e?1:0,n=c):(n=floor$9(log$1(e)/LN2),e*(i=pow$3(2,-n))<1&&(n--,i*=2),(e+=n+l>=1?u/i:u*pow$3(2,1-l))*i>=2&&(n++,i/=2),n+l>=c?(o=0,n=c):n+l>=1?(o=(e*i-1)*pow$3(2,t),n+=l):(o=e*pow$3(2,l-1)*pow$3(2,t),n=0));t>=8;)a[d++]=255&o,o/=256,t-=8;for(n=n<<t|o,s+=t;s>0;)a[d++]=255&n,n/=256,s-=8;return a[--d]|=128*$,a},unpack=function(e,t){var r,n=e.length,o=8*n-t-1,i=(1<<o)-1,a=i>>1,s=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;s>0;)u=256*u+e[c--],s-=8;for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===u)u=1-a;else{if(u===i)return r?NaN:l?-1/0:1/0;r+=pow$3(2,t),u-=a}return(l?-1:1)*r*pow$3(2,u-t)},ieee754={pack:pack,unpack:unpack},global$h=global$H,uncurryThis$p=functionUncurryThis,DESCRIPTORS$g=descriptors,NATIVE_ARRAY_BUFFER=arrayBufferBasicDetection,FunctionName=functionName,createNonEnumerableProperty$3=createNonEnumerableProperty$a,defineBuiltIns$4=defineBuiltIns$5,fails$m=fails$M,anInstance$7=anInstance$9,toIntegerOrInfinity$7=toIntegerOrInfinity$d,toLength$2=toLength$6,toIndex$1=toIndex$2,IEEE754=ieee754,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,getOwnPropertyNames$1=objectGetOwnPropertyNames.f,defineProperty$6=objectDefineProperty.f,arrayFill=arrayFill$1,arraySlice$7=arraySliceSimple,setToStringTag$5=setToStringTag$9,InternalStateModule$8=internalState,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,getInternalState$2=InternalStateModule$8.get,setInternalState$8=InternalStateModule$8.set,ARRAY_BUFFER$1="ArrayBuffer",DATA_VIEW="DataView",PROTOTYPE="prototype",WRONG_LENGTH$1="Wrong length",WRONG_INDEX="Wrong index",NativeArrayBuffer$1=global$h[ARRAY_BUFFER$1],$ArrayBuffer=NativeArrayBuffer$1,ArrayBufferPrototype$1=$ArrayBuffer&&$ArrayBuffer[PROTOTYPE],$DataView=global$h[DATA_VIEW],DataViewPrototype=$DataView&&$DataView[PROTOTYPE],ObjectPrototype=Object.prototype,Array$1=global$h.Array,RangeError$3=global$h.RangeError,fill3=uncurryThis$p(arrayFill),reverse2=uncurryThis$p([].reverse),packIEEE754=IEEE754.pack,unpackIEEE754=IEEE754.unpack,packInt8=function(e){return[255&e]},packInt16=function(e){return[255&e,e>>8&255]},packInt32=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},unpackInt32=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},packFloat32=function(e){return packIEEE754(e,23,4)},packFloat64=function(e){return packIEEE754(e,52,8)},addGetter$1=function(e,t){defineProperty$6(e[PROTOTYPE],t,{get:function(){return getInternalState$2(this)[t]}})},get$2=function(e,t,r,n){var o=toIndex$1(r),i=getInternalState$2(e);if(o+t>i.byteLength)throw RangeError$3(WRONG_INDEX);var a=getInternalState$2(i.buffer).bytes,s=o+i.byteOffset,c=arraySlice$7(a,s,s+t);return n?c:reverse2(c)},set$6=function(e,t,r,n,o,i){var a=toIndex$1(r),s=getInternalState$2(e);if(a+t>s.byteLength)throw RangeError$3(WRONG_INDEX);for(var c=getInternalState$2(s.buffer).bytes,l=a+s.byteOffset,u=n(+o),$=0;$<t;$++)c[l+$]=u[i?$:t-$-1]};if(NATIVE_ARRAY_BUFFER){var INCORRECT_ARRAY_BUFFER_NAME=PROPER_FUNCTION_NAME$1&&NativeArrayBuffer$1.name!==ARRAY_BUFFER$1;if(fails$m((function(){NativeArrayBuffer$1(1)}))&&fails$m((function(){new NativeArrayBuffer$1(-1)}))&&!fails$m((function(){return new NativeArrayBuffer$1,new NativeArrayBuffer$1(1.5),new NativeArrayBuffer$1(NaN),1!=NativeArrayBuffer$1.length||INCORRECT_ARRAY_BUFFER_NAME&&!CONFIGURABLE_FUNCTION_NAME})))INCORRECT_ARRAY_BUFFER_NAME&&CONFIGURABLE_FUNCTION_NAME&&createNonEnumerableProperty$3(NativeArrayBuffer$1,"name",ARRAY_BUFFER$1);else{($ArrayBuffer=function(e){return anInstance$7(this,ArrayBufferPrototype$1),new NativeArrayBuffer$1(toIndex$1(e))})[PROTOTYPE]=ArrayBufferPrototype$1;for(var key,keys8=getOwnPropertyNames$1(NativeArrayBuffer$1),j=0;keys8.length>j;)(key=keys8[j++])in $ArrayBuffer||createNonEnumerableProperty$3($ArrayBuffer,key,NativeArrayBuffer$1[key]);ArrayBufferPrototype$1.constructor=$ArrayBuffer}setPrototypeOf$1&&getPrototypeOf2(DataViewPrototype)!==ObjectPrototype&&setPrototypeOf$1(DataViewPrototype,ObjectPrototype);var testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis$p(DataViewPrototype.setInt8);testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),!testView.getInt8(0)&&testView.getInt8(1)||defineBuiltIns$4(DataViewPrototype,{setInt8:function(e,t){$setInt8(this,e,t<<24>>24)},setUint8:function(e,t){$setInt8(this,e,t<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype$1=($ArrayBuffer=function(e){anInstance$7(this,ArrayBufferPrototype$1);var t=toIndex$1(e);setInternalState$8(this,{bytes:fill3(Array$1(t),0),byteLength:t}),DESCRIPTORS$g||(this.byteLength=t)})[PROTOTYPE],DataViewPrototype=($DataView=function(e,t,r){anInstance$7(this,DataViewPrototype),anInstance$7(e,ArrayBufferPrototype$1);var n=getInternalState$2(e).byteLength,o=toIntegerOrInfinity$7(t);if(o<0||o>n)throw RangeError$3("Wrong offset");if(o+(r=void 0===r?n-o:toLength$2(r))>n)throw RangeError$3(WRONG_LENGTH$1);setInternalState$8(this,{buffer:e,byteLength:r,byteOffset:o}),DESCRIPTORS$g||(this.buffer=e,this.byteLength=r,this.byteOffset=o)})[PROTOTYPE],DESCRIPTORS$g&&(addGetter$1($ArrayBuffer,"byteLength"),addGetter$1($DataView,"buffer"),addGetter$1($DataView,"byteLength"),addGetter$1($DataView,"byteOffset")),defineBuiltIns$4(DataViewPrototype,{getInt8:function(e){return get$2(this,1,e)[0]<<24>>24},getUint8:function(e){return get$2(this,1,e)[0]},getInt16:function(e){var t=get$2(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=get$2(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return unpackInt32(get$2(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return unpackInt32(get$2(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return unpackIEEE754(get$2(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return unpackIEEE754(get$2(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){set$6(this,1,e,packInt8,t)},setUint8:function(e,t){set$6(this,1,e,packInt8,t)},setInt16:function(e,t){set$6(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){set$6(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){set$6(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){set$6(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){set$6(this,4,e,packFloat32,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){set$6(this,8,e,packFloat64,t,arguments.length>2?arguments[2]:void 0)}});setToStringTag$5($ArrayBuffer,ARRAY_BUFFER$1),setToStringTag$5($DataView,DATA_VIEW);var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},isObject$7=isObject$k,floor$8=Math.floor,isIntegralNumber$1=Number.isInteger||function(e){return!isObject$7(e)&&isFinite(e)&&floor$8(e)===e},toIntegerOrInfinity$6=toIntegerOrInfinity$d,$RangeError$5=RangeError,toPositiveInteger$1=function(e){var t=toIntegerOrInfinity$6(e);if(t<0)throw $RangeError$5("The argument can't be less than 0");return t},toPositiveInteger=toPositiveInteger$1,$RangeError$4=RangeError,toOffset$2=function(e,t){var r=toPositiveInteger(e);if(r%t)throw $RangeError$4("Wrong offset");return r},classof$6=classof$h,uncurryThis$o=functionUncurryThis,slice$1=uncurryThis$o("".slice),isBigIntArray$1=function(e){return"Big"===slice$1(classof$6(e),0,3)},toPrimitive=toPrimitive$3,$TypeError$9=TypeError,toBigInt$2=function(e){var t=toPrimitive(e,"number");if("number"==typeof t)throw $TypeError$9("Can't convert number to bigint");return BigInt(t)},bind$f=functionBindContext,call$f=functionCall,aConstructor$1=aConstructor$3,toObject$c=toObject$j,lengthOfArrayLike$e=lengthOfArrayLike$l,getIterator$3=getIterator$5,getIteratorMethod$3=getIteratorMethod$6,isArrayIteratorMethod$1=isArrayIteratorMethod$3,isBigIntArray=isBigIntArray$1,aTypedArrayConstructor$2=arrayBufferViewCore.aTypedArrayConstructor,toBigInt$1=toBigInt$2,typedArrayFrom$1=function(e){var t,r,n,o,i,a,s,c,l=aConstructor$1(this),u=toObject$c(e),$=arguments.length,d=$>1?arguments[1]:void 0,A=void 0!==d,p=getIteratorMethod$3(u);if(p&&!isArrayIteratorMethod$1(p))for(c=(s=getIterator$3(u,p)).next,u=[];!(a=call$f(c,s)).done;)u.push(a.value);for(A&&$>2&&(d=bind$f(d,arguments[2])),r=lengthOfArrayLike$e(u),n=new(aTypedArrayConstructor$2(l))(r),o=isBigIntArray(n),t=0;r>t;t++)i=A?d(u[t],t):u[t],n[t]=o?toBigInt$1(i):+i;return n},$$M=_export,global$g=global$H,call$e=functionCall,DESCRIPTORS$f=descriptors,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS=typedArrayConstructorsRequireWrappers,ArrayBufferViewCore$q=arrayBufferViewCore,ArrayBufferModule=arrayBuffer,anInstance$6=anInstance$9,createPropertyDescriptor$2=createPropertyDescriptor$7,createNonEnumerableProperty$2=createNonEnumerableProperty$a,isIntegralNumber=isIntegralNumber$1,toLength$1=toLength$6,toIndex=toIndex$2,toOffset$1=toOffset$2,toPropertyKey=toPropertyKey$4,hasOwn$8=hasOwnProperty_1,classof$5=classof$h,isObject$6=isObject$k,isSymbol=isSymbol$4,create$3=objectCreate,isPrototypeOf$a=objectIsPrototypeOf,setPrototypeOf=objectSetPrototypeOf,getOwnPropertyNames7=objectGetOwnPropertyNames.f,typedArrayFrom=typedArrayFrom$1,forEach$1=arrayIteration.forEach,setSpecies$2=setSpecies$4,definePropertyModule=objectDefineProperty,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,InternalStateModule$7=internalState,inheritIfRequired=inheritIfRequired$2,getInternalState$1=InternalStateModule$7.get,setInternalState$7=InternalStateModule$7.set,enforceInternalState=InternalStateModule$7.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,round=Math.round,RangeError$2=global$g.RangeError,ArrayBuffer$2=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer$2.prototype,DataView$1=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore$q.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore$q.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore$q.TypedArray,TypedArrayPrototype$1=ArrayBufferViewCore$q.TypedArrayPrototype,aTypedArrayConstructor$1=ArrayBufferViewCore$q.aTypedArrayConstructor,isTypedArray=ArrayBufferViewCore$q.isTypedArray,BYTES_PER_ELEMENT="BYTES_PER_ELEMENT",WRONG_LENGTH="Wrong length",fromList=function(e,t){aTypedArrayConstructor$1(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},addGetter=function(e,t){nativeDefineProperty(e,t,{get:function(){return getInternalState$1(this)[t]}})},isArrayBuffer=function(e){var t;return isPrototypeOf$a(ArrayBufferPrototype,e)||"ArrayBuffer"==(t=classof$5(e))||"SharedArrayBuffer"==t},isTypedArrayIndex=function(e,t){return isTypedArray(e)&&!isSymbol(t)&&t in e&&isIntegralNumber(+t)&&t>=0},wrappedGetOwnPropertyDescriptor=function(e,t){return t=toPropertyKey(t),isTypedArrayIndex(e,t)?createPropertyDescriptor$2(2,e[t]):nativeGetOwnPropertyDescriptor(e,t)},wrappedDefineProperty=function(e,t,r){return t=toPropertyKey(t),!(isTypedArrayIndex(e,t)&&isObject$6(r)&&hasOwn$8(r,"value"))||hasOwn$8(r,"get")||hasOwn$8(r,"set")||r.configurable||hasOwn$8(r,"writable")&&!r.writable||hasOwn$8(r,"enumerable")&&!r.enumerable?nativeDefineProperty(e,t,r):(e[t]=r.value,e)};DESCRIPTORS$f?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype$1,"buffer"),addGetter(TypedArrayPrototype$1,"byteOffset"),addGetter(TypedArrayPrototype$1,"byteLength"),addGetter(TypedArrayPrototype$1,"length")),$$M({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),typedArrayConstructor.exports=function(e,t,r){var n=e.match(/\d+$/)[0]/8,o=e+(r?"Clamped":"")+"Array",i="get"+e,a="set"+e,s=global$g[o],c=s,l=c&&c.prototype,u={},$=function(e,t){nativeDefineProperty(e,t,{get:function(){return function(e,t){var r=getInternalState$1(e);return r.view[i](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var i=getInternalState$1(e);r&&(o=(o=round(o))<0?0:o>255?255:255&o),i.view[a](t*n+i.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS&&(c=t((function(e,t,r,o){return anInstance$6(e,l),inheritIfRequired(isObject$6(t)?isArrayBuffer(t)?void 0!==o?new s(t,toOffset$1(r,n),o):void 0!==r?new s(t,toOffset$1(r,n)):new s(t):isTypedArray(t)?fromList(c,t):call$e(typedArrayFrom,c,t):new s(toIndex(t)),e,c)})),setPrototypeOf&&setPrototypeOf(c,TypedArray),forEach$1(getOwnPropertyNames7(s),(function(e){e in c||createNonEnumerableProperty$2(c,e,s[e])})),c.prototype=l):(c=t((function(e,t,r,o){anInstance$6(e,l);var i,a,s,u=0,d=0;if(isObject$6(t)){if(!isArrayBuffer(t))return isTypedArray(t)?fromList(c,t):call$e(typedArrayFrom,c,t);i=t,d=toOffset$1(r,n);var A=t.byteLength;if(void 0===o){if(A%n)throw RangeError$2(WRONG_LENGTH);if((a=A-d)<0)throw RangeError$2(WRONG_LENGTH)}else if((a=toLength$1(o)*n)+d>A)throw RangeError$2(WRONG_LENGTH);s=a/n}else s=toIndex(t),i=new ArrayBuffer$2(a=s*n);for(setInternalState$7(e,{buffer:i,byteOffset:d,byteLength:a,length:s,view:new DataView$1(i)});u<s;)$(e,u++)})),setPrototypeOf&&setPrototypeOf(c,TypedArray),l=c.prototype=create$3(TypedArrayPrototype$1)),l.constructor!==c&&createNonEnumerableProperty$2(l,"constructor",c),enforceInternalState(l).TypedArrayConstructor=c,TYPED_ARRAY_TAG&&createNonEnumerableProperty$2(l,TYPED_ARRAY_TAG,o);var d=c!=s;u[o]=c,$$M({global:!0,constructor:!0,forced:d,sham:!NATIVE_ARRAY_BUFFER_VIEWS},u),BYTES_PER_ELEMENT in c||createNonEnumerableProperty$2(c,BYTES_PER_ELEMENT,n),BYTES_PER_ELEMENT in l||createNonEnumerableProperty$2(l,BYTES_PER_ELEMENT,n),setSpecies$2(o)}):typedArrayConstructor.exports=function(){};var typedArrayConstructorExports=typedArrayConstructor.exports,createTypedArrayConstructor$1=typedArrayConstructorExports;createTypedArrayConstructor$1("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var ArrayBufferViewCore$p=arrayBufferViewCore,lengthOfArrayLike$d=lengthOfArrayLike$l,toIntegerOrInfinity$5=toIntegerOrInfinity$d,aTypedArray$o=ArrayBufferViewCore$p.aTypedArray,exportTypedArrayMethod$p=ArrayBufferViewCore$p.exportTypedArrayMethod;exportTypedArrayMethod$p("at",(function(e){var t=aTypedArray$o(this),r=lengthOfArrayLike$d(t),n=toIntegerOrInfinity$5(e),o=n>=0?n:r+n;return o<0||o>=r?void 0:t[o]}));var tryToString$2=tryToString$8,$TypeError$8=TypeError,deletePropertyOrThrow$6=function(e,t){if(!delete e[t])throw $TypeError$8("Cannot delete property "+tryToString$2(t)+" of "+tryToString$2(e))},toObject$b=toObject$j,toAbsoluteIndex$4=toAbsoluteIndex$8,lengthOfArrayLike$c=lengthOfArrayLike$l,deletePropertyOrThrow$5=deletePropertyOrThrow$6,min$3=Math.min,arrayCopyWithin=[].copyWithin||function(e,t){var r=toObject$b(this),n=lengthOfArrayLike$c(r),o=toAbsoluteIndex$4(e,n),i=toAbsoluteIndex$4(t,n),a=arguments.length>2?arguments[2]:void 0,s=min$3((void 0===a?n:toAbsoluteIndex$4(a,n))-i,n-o),c=1;for(i<o&&o<i+s&&(c=-1,i+=s-1,o+=s-1);s-- >0;)i in r?r[o]=r[i]:deletePropertyOrThrow$5(r,o),o+=c,i+=c;return r},uncurryThis$n=functionUncurryThis,ArrayBufferViewCore$o=arrayBufferViewCore,$ArrayCopyWithin=arrayCopyWithin,u$ArrayCopyWithin=uncurryThis$n($ArrayCopyWithin),aTypedArray$n=ArrayBufferViewCore$o.aTypedArray,exportTypedArrayMethod$o=ArrayBufferViewCore$o.exportTypedArrayMethod;exportTypedArrayMethod$o("copyWithin",(function(e,t){return u$ArrayCopyWithin(aTypedArray$n(this),e,t,arguments.length>2?arguments[2]:void 0)}));var ArrayBufferViewCore$n=arrayBufferViewCore,$every=arrayIteration.every,aTypedArray$m=ArrayBufferViewCore$n.aTypedArray,exportTypedArrayMethod$n=ArrayBufferViewCore$n.exportTypedArrayMethod;exportTypedArrayMethod$n("every",(function(e){return $every(aTypedArray$m(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$m=arrayBufferViewCore,$fill=arrayFill$1,toBigInt=toBigInt$2,classof$4=classof$h,call$d=functionCall,uncurryThis$m=functionUncurryThis,fails$l=fails$M,aTypedArray$l=ArrayBufferViewCore$m.aTypedArray,exportTypedArrayMethod$m=ArrayBufferViewCore$m.exportTypedArrayMethod,slice2=uncurryThis$m("".slice),CONVERSION_BUG=fails$l((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));exportTypedArrayMethod$m("fill",(function(e){var t=arguments.length;aTypedArray$l(this);var r="Big"===slice2(classof$4(this),0,3)?toBigInt(e):+e;return call$d($fill,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),CONVERSION_BUG);var lengthOfArrayLike$b=lengthOfArrayLike$l,arrayFromConstructorAndList$1=function(e,t){for(var r=0,n=lengthOfArrayLike$b(t),o=new e(n);n>r;)o[r]=t[r++];return o},ArrayBufferViewCore$l=arrayBufferViewCore,speciesConstructor=speciesConstructor$3,aTypedArrayConstructor=ArrayBufferViewCore$l.aTypedArrayConstructor,getTypedArrayConstructor=ArrayBufferViewCore$l.getTypedArrayConstructor,typedArraySpeciesConstructor$4=function(e){return aTypedArrayConstructor(speciesConstructor(e,getTypedArrayConstructor(e)))},arrayFromConstructorAndList=arrayFromConstructorAndList$1,typedArraySpeciesConstructor$3=typedArraySpeciesConstructor$4,typedArrayFromSpeciesAndList=function(e,t){return arrayFromConstructorAndList(typedArraySpeciesConstructor$3(e),t)},ArrayBufferViewCore$k=arrayBufferViewCore,$filter=arrayIteration.filter,fromSpeciesAndList=typedArrayFromSpeciesAndList,aTypedArray$k=ArrayBufferViewCore$k.aTypedArray,exportTypedArrayMethod$l=ArrayBufferViewCore$k.exportTypedArrayMethod;exportTypedArrayMethod$l("filter",(function(e){var t=$filter(aTypedArray$k(this),e,arguments.length>1?arguments[1]:void 0);return fromSpeciesAndList(this,t)}));var ArrayBufferViewCore$j=arrayBufferViewCore,$find$2=arrayIteration.find,aTypedArray$j=ArrayBufferViewCore$j.aTypedArray,exportTypedArrayMethod$k=ArrayBufferViewCore$j.exportTypedArrayMethod;exportTypedArrayMethod$k("find",(function(e){return $find$2(aTypedArray$j(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$i=arrayBufferViewCore,$findIndex$2=arrayIteration.findIndex,aTypedArray$i=ArrayBufferViewCore$i.aTypedArray,exportTypedArrayMethod$j=ArrayBufferViewCore$i.exportTypedArrayMethod;exportTypedArrayMethod$j("findIndex",(function(e){return $findIndex$2(aTypedArray$i(this),e,arguments.length>1?arguments[1]:void 0)}));var bind$e=functionBindContext,IndexedObject$5=indexedObject,toObject$a=toObject$j,lengthOfArrayLike$a=lengthOfArrayLike$l,createMethod$4=function(e){var t=1==e;return function(r,n,o){for(var i,a=toObject$a(r),s=IndexedObject$5(a),c=bind$e(n,o),l=lengthOfArrayLike$a(s);l-- >0;)if(c(i=s[l],l,a))switch(e){case 0:return i;case 1:return l}return t?-1:void 0}},arrayIterationFromLast={findLast:createMethod$4(0),findLastIndex:createMethod$4(1)},ArrayBufferViewCore$h=arrayBufferViewCore,$findLast=arrayIterationFromLast.findLast,aTypedArray$h=ArrayBufferViewCore$h.aTypedArray,exportTypedArrayMethod$i=ArrayBufferViewCore$h.exportTypedArrayMethod;exportTypedArrayMethod$i("findLast",(function(e){return $findLast(aTypedArray$h(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$g=arrayBufferViewCore,$findLastIndex=arrayIterationFromLast.findLastIndex,aTypedArray$g=ArrayBufferViewCore$g.aTypedArray,exportTypedArrayMethod$h=ArrayBufferViewCore$g.exportTypedArrayMethod;exportTypedArrayMethod$h("findLastIndex",(function(e){return $findLastIndex(aTypedArray$g(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$f=arrayBufferViewCore,$forEach=arrayIteration.forEach,aTypedArray$f=ArrayBufferViewCore$f.aTypedArray,exportTypedArrayMethod$g=ArrayBufferViewCore$f.exportTypedArrayMethod;exportTypedArrayMethod$g("forEach",(function(e){$forEach(aTypedArray$f(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$e=arrayBufferViewCore,$includes=arrayIncludes.includes,aTypedArray$e=ArrayBufferViewCore$e.aTypedArray,exportTypedArrayMethod$f=ArrayBufferViewCore$e.exportTypedArrayMethod;exportTypedArrayMethod$f("includes",(function(e){return $includes(aTypedArray$e(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$d=arrayBufferViewCore,$indexOf$1=arrayIncludes.indexOf,aTypedArray$d=ArrayBufferViewCore$d.aTypedArray,exportTypedArrayMethod$e=ArrayBufferViewCore$d.exportTypedArrayMethod;exportTypedArrayMethod$e("indexOf",(function(e){return $indexOf$1(aTypedArray$d(this),e,arguments.length>1?arguments[1]:void 0)}));var global$f=global$H,fails$k=fails$M,uncurryThis$l=functionUncurryThis,ArrayBufferViewCore$c=arrayBufferViewCore,ArrayIterators=es_array_iterator,wellKnownSymbol$6=wellKnownSymbol$q,ITERATOR$5=wellKnownSymbol$6("iterator"),Uint8Array$2=global$f.Uint8Array,arrayValues=uncurryThis$l(ArrayIterators.values),arrayKeys=uncurryThis$l(ArrayIterators.keys),arrayEntries=uncurryThis$l(ArrayIterators.entries),aTypedArray$c=ArrayBufferViewCore$c.aTypedArray,exportTypedArrayMethod$d=ArrayBufferViewCore$c.exportTypedArrayMethod,TypedArrayPrototype=Uint8Array$2&&Uint8Array$2.prototype,GENERIC=!fails$k((function(){TypedArrayPrototype[ITERATOR$5].call([1])})),ITERATOR_IS_VALUES=!!TypedArrayPrototype&&TypedArrayPrototype.values&&TypedArrayPrototype[ITERATOR$5]===TypedArrayPrototype.values&&"values"===TypedArrayPrototype.values.name,typedArrayValues=function(){return arrayValues(aTypedArray$c(this))};exportTypedArrayMethod$d("entries",(function(){return arrayEntries(aTypedArray$c(this))}),GENERIC),exportTypedArrayMethod$d("keys",(function(){return arrayKeys(aTypedArray$c(this))}),GENERIC),exportTypedArrayMethod$d("values",typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"}),exportTypedArrayMethod$d(ITERATOR$5,typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"});var ArrayBufferViewCore$b=arrayBufferViewCore,uncurryThis$k=functionUncurryThis,aTypedArray$b=ArrayBufferViewCore$b.aTypedArray,exportTypedArrayMethod$c=ArrayBufferViewCore$b.exportTypedArrayMethod,$join=uncurryThis$k([].join);exportTypedArrayMethod$c("join",(function(e){return $join(aTypedArray$b(this),e)}));var apply$2=functionApply,toIndexedObject$5=toIndexedObject$c,toIntegerOrInfinity$4=toIntegerOrInfinity$d,lengthOfArrayLike$9=lengthOfArrayLike$l,arrayMethodIsStrict$5=arrayMethodIsStrict$7,min$2=Math.min,$lastIndexOf$1=[].lastIndexOf,NEGATIVE_ZERO$1=!!$lastIndexOf$1&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD$3=arrayMethodIsStrict$5("lastIndexOf"),FORCED$8=NEGATIVE_ZERO$1||!STRICT_METHOD$3,arrayLastIndexOf=FORCED$8?function(e){if(NEGATIVE_ZERO$1)return apply$2($lastIndexOf$1,this,arguments)||0;var t=toIndexedObject$5(this),r=lengthOfArrayLike$9(t),n=r-1;for(arguments.length>1&&(n=min$2(n,toIntegerOrInfinity$4(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:$lastIndexOf$1,ArrayBufferViewCore$a=arrayBufferViewCore,apply$1=functionApply,$lastIndexOf=arrayLastIndexOf,aTypedArray$a=ArrayBufferViewCore$a.aTypedArray,exportTypedArrayMethod$b=ArrayBufferViewCore$a.exportTypedArrayMethod;exportTypedArrayMethod$b("lastIndexOf",(function(e){var t=arguments.length;return apply$1($lastIndexOf,aTypedArray$a(this),t>1?[e,arguments[1]]:[e])}));var ArrayBufferViewCore$9=arrayBufferViewCore,$map=arrayIteration.map,typedArraySpeciesConstructor$2=typedArraySpeciesConstructor$4,aTypedArray$9=ArrayBufferViewCore$9.aTypedArray,exportTypedArrayMethod$a=ArrayBufferViewCore$9.exportTypedArrayMethod;exportTypedArrayMethod$a("map",(function(e){return $map(aTypedArray$9(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(typedArraySpeciesConstructor$2(e))(t)}))}));var aCallable$a=aCallable$i,toObject$9=toObject$j,IndexedObject$4=indexedObject,lengthOfArrayLike$8=lengthOfArrayLike$l,$TypeError$7=TypeError,createMethod$3=function(e){return function(t,r,n,o){aCallable$a(r);var i=toObject$9(t),a=IndexedObject$4(i),s=lengthOfArrayLike$8(i),c=e?s-1:0,l=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw $TypeError$7("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(o=r(o,a[c],c,i));return o}},arrayReduce$1={left:createMethod$3(!1),right:createMethod$3(!0)},ArrayBufferViewCore$8=arrayBufferViewCore,$reduce$1=arrayReduce$1.left,aTypedArray$8=ArrayBufferViewCore$8.aTypedArray,exportTypedArrayMethod$9=ArrayBufferViewCore$8.exportTypedArrayMethod;exportTypedArrayMethod$9("reduce",(function(e){var t=arguments.length;return $reduce$1(aTypedArray$8(this),e,t,t>1?arguments[1]:void 0)}));var ArrayBufferViewCore$7=arrayBufferViewCore,$reduceRight=arrayReduce$1.right,aTypedArray$7=ArrayBufferViewCore$7.aTypedArray,exportTypedArrayMethod$8=ArrayBufferViewCore$7.exportTypedArrayMethod;exportTypedArrayMethod$8("reduceRight",(function(e){var t=arguments.length;return $reduceRight(aTypedArray$7(this),e,t,t>1?arguments[1]:void 0)}));var ArrayBufferViewCore$6=arrayBufferViewCore,aTypedArray$6=ArrayBufferViewCore$6.aTypedArray,exportTypedArrayMethod$7=ArrayBufferViewCore$6.exportTypedArrayMethod,floor$7=Math.floor;exportTypedArrayMethod$7("reverse",(function(){for(var e,t=this,r=aTypedArray$6(t).length,n=floor$7(r/2),o=0;o<n;)e=t[o],t[o++]=t[--r],t[r]=e;return t}));var global$e=global$H,call$c=functionCall,ArrayBufferViewCore$5=arrayBufferViewCore,lengthOfArrayLike$7=lengthOfArrayLike$l,toOffset=toOffset$2,toIndexedObject$4=toObject$j,fails$j=fails$M,RangeError$1=global$e.RangeError,Int8Array$2=global$e.Int8Array,Int8ArrayPrototype=Int8Array$2&&Int8Array$2.prototype,$set=Int8ArrayPrototype&&Int8ArrayPrototype.set,aTypedArray$5=ArrayBufferViewCore$5.aTypedArray,exportTypedArrayMethod$6=ArrayBufferViewCore$5.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS=!fails$j((function(){var e=new Uint8ClampedArray(2);return call$c($set,e,{length:1,0:3},1),3!==e[1]})),TO_OBJECT_BUG=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS&&ArrayBufferViewCore$5.NATIVE_ARRAY_BUFFER_VIEWS&&fails$j((function(){var e=new Int8Array$2(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));exportTypedArrayMethod$6("set",(function(e){aTypedArray$5(this);var t=toOffset(arguments.length>1?arguments[1]:void 0,1),r=toIndexedObject$4(e);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS)return call$c($set,this,r,t);var n=this.length,o=lengthOfArrayLike$7(r),i=0;if(o+t>n)throw RangeError$1("Wrong length");for(;i<o;)this[t+i]=r[i++]}),!WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS||TO_OBJECT_BUG);var ArrayBufferViewCore$4=arrayBufferViewCore,typedArraySpeciesConstructor$1=typedArraySpeciesConstructor$4,fails$i=fails$M,arraySlice$6=arraySlice$a,aTypedArray$4=ArrayBufferViewCore$4.aTypedArray,exportTypedArrayMethod$5=ArrayBufferViewCore$4.exportTypedArrayMethod,FORCED$7=fails$i((function(){new Int8Array(1).slice()}));exportTypedArrayMethod$5("slice",(function(e,t){for(var r=arraySlice$6(aTypedArray$4(this),e,t),n=typedArraySpeciesConstructor$1(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),FORCED$7);var ArrayBufferViewCore$3=arrayBufferViewCore,$some=arrayIteration.some,aTypedArray$3=ArrayBufferViewCore$3.aTypedArray,exportTypedArrayMethod$4=ArrayBufferViewCore$3.exportTypedArrayMethod;exportTypedArrayMethod$4("some",(function(e){return $some(aTypedArray$3(this),e,arguments.length>1?arguments[1]:void 0)}));var arraySlice$5=arraySliceSimple,floor$6=Math.floor,mergeSort$1=function(e,t){var r=e.length,n=floor$6(r/2);return r<8?insertionSort$1(e,t):merge$1(e,mergeSort$1(arraySlice$5(e,0,n),t),mergeSort$1(arraySlice$5(e,n),t),t)},insertionSort$1=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},merge$1=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},arraySort$3=mergeSort$1,userAgent$3=engineUserAgent,firefox$1=userAgent$3.match(/firefox\/(\d+)/i),engineFfVersion$1=!!firefox$1&&+firefox$1[1],UA$1=engineUserAgent,engineIsIeOrEdge$1=/MSIE|Trident/.test(UA$1),userAgent$2=engineUserAgent,webkit$1=userAgent$2.match(/AppleWebKit\/(\d+)\./),engineWebkitVersion$1=!!webkit$1&&+webkit$1[1],global$d=global$H,uncurryThis$j=functionUncurryThisClause,fails$h=fails$M,aCallable$9=aCallable$i,internalSort$2=arraySort$3,ArrayBufferViewCore$2=arrayBufferViewCore,FF$2=engineFfVersion$1,IE_OR_EDGE$2=engineIsIeOrEdge$1,V8$2=engineV8Version,WEBKIT$2=engineWebkitVersion$1,aTypedArray$2=ArrayBufferViewCore$2.aTypedArray,exportTypedArrayMethod$3=ArrayBufferViewCore$2.exportTypedArrayMethod,Uint16Array=global$d.Uint16Array,nativeSort$2=Uint16Array&&uncurryThis$j(Uint16Array.prototype.sort),ACCEPT_INCORRECT_ARGUMENTS=!(!nativeSort$2||fails$h((function(){nativeSort$2(new Uint16Array(2),null)}))&&fails$h((function(){nativeSort$2(new Uint16Array(2),{})}))),STABLE_SORT$2=!!nativeSort$2&&!fails$h((function(){if(V8$2)return V8$2<74;if(FF$2)return FF$2<67;if(IE_OR_EDGE$2)return!0;if(WEBKIT$2)return WEBKIT$2<602;var e,t,r=new Uint16Array(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(nativeSort$2(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0})),getSortCompare$2=function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}};exportTypedArrayMethod$3("sort",(function(e){return void 0!==e&&aCallable$9(e),STABLE_SORT$2?nativeSort$2(this,e):internalSort$2(aTypedArray$2(this),getSortCompare$2(e))}),!STABLE_SORT$2||ACCEPT_INCORRECT_ARGUMENTS);var ArrayBufferViewCore$1=arrayBufferViewCore,toLength=toLength$6,toAbsoluteIndex$3=toAbsoluteIndex$8,typedArraySpeciesConstructor=typedArraySpeciesConstructor$4,aTypedArray$1=ArrayBufferViewCore$1.aTypedArray,exportTypedArrayMethod$2=ArrayBufferViewCore$1.exportTypedArrayMethod;exportTypedArrayMethod$2("subarray",(function(e,t){var r=aTypedArray$1(this),n=r.length,o=toAbsoluteIndex$3(e,n);return new(typedArraySpeciesConstructor(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,toLength((void 0===t?n:toAbsoluteIndex$3(t,n))-o))}));var global$c=global$H,apply=functionApply,ArrayBufferViewCore=arrayBufferViewCore,fails$g=fails$M,arraySlice$4=arraySlice$a,Int8Array$1=global$c.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod$1=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails$g((function(){$toLocaleString.call(new Int8Array$1(1))})),FORCED$6=fails$g((function(){return[1,2].toLocaleString()!=new Int8Array$1([1,2]).toLocaleString()}))||!fails$g((function(){Int8Array$1.prototype.toLocaleString.call([1,2])}));exportTypedArrayMethod$1("toLocaleString",(function(){return apply($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice$4(aTypedArray(this)):aTypedArray(this),arraySlice$4(arguments))}),FORCED$6);var exportTypedArrayMethod=arrayBufferViewCore.exportTypedArrayMethod,fails$f=fails$M,global$b=global$H,uncurryThis$i=functionUncurryThis,Uint8Array$1=global$b.Uint8Array,Uint8ArrayPrototype=Uint8Array$1&&Uint8Array$1.prototype||{},arrayToString=[].toString,join$6=uncurryThis$i([].join);fails$f((function(){arrayToString.call({})}))&&(arrayToString=function(){return join$6(this)});var IS_NOT_ARRAY_METHOD=Uint8ArrayPrototype.toString!=arrayToString;exportTypedArrayMethod("toString",arrayToString,IS_NOT_ARRAY_METHOD);var DevLogger=function(){function e(){var t,r=this;_classCallCheck$2(this,e);try{var n=/xgd=(\d)/.exec(document.cookie);this._status=!!n,this._level=n&&n[1]}catch(e){this._status=!1}_forEachInstanceProperty(t=["group","groupEnd","log","warn","error"]).call(t,(function(e){r[e]=function(t,n,o,i,a,s,c,l,u,$){var d,A,p;if(r._status){var f=t,h=_filterInstanceProperty(d=[n,o,i,a,s,c,l,u,$]).call(d,(function(e){return void 0!==e}));(p=console)[e].apply(p,_concatInstanceProperty(A=["["+f+"]:"]).call(A,_toConsumableArray$1(h)))}}}))}return _createClass$2(e,[{key:"enable",get:function(){return this._status}},{key:"long",get:function(){return"2"===this._level}}]),e}(),logger=new DevLogger;function debounce(e,t){var r=_Date$now(),n=null,o=!0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var c=_Date$now();o&&(r=_Date$now(),o=!1,e.apply(void 0,a)),c-r>t?(r=c,e.apply(void 0,a)):(n&&window.clearTimeout(n),n=_setTimeout((function(){e.apply(void 0,a)}),t))}}function getAvcc(e,t){if(e&&t){var r=new Uint8Array(e.byteLength+t.byteLength+11);r[0]=1,r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=255,r[5]=225;var n=6;return r.set(new Uint8Array([e.byteLength>>>8&255,255&e.byteLength]),n),n+=2,r.set(e,n),r[n+=e.byteLength]=1,n++,r.set(new Uint8Array([t.byteLength>>>8&255,255&t.byteLength]),n),n+=2,r.set(t,n),r}}function promiseDelayed(){var e,t,r=new _Promise((function(r,n){e=r,t=n}));return r.resolve=e,r.reject=t,r}var DESCRIPTORS$e=descriptors$1,uncurryThis$h=functionUncurryThis$1,call$b=functionCall$1,fails$e=fails$1b,objectKeys$3=objectKeys$8,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$1=objectPropertyIsEnumerable$1,toObject$8=toObject$t,IndexedObject$3=indexedObject$1,$assign$1=Object.assign,defineProperty$5=Object.defineProperty,concat$1=uncurryThis$h([].concat),objectAssign$1=!$assign$1||fails$e((function(){if(DESCRIPTORS$e&&1!==$assign$1({b:1},$assign$1(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign$1({},e)[r]||objectKeys$3($assign$1({},t)).join("")!=n}))?function(e,t){for(var r=toObject$8(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule$1.f,a=propertyIsEnumerableModule$1.f;n>o;)for(var s,c=IndexedObject$3(arguments[o++]),l=i?concat$1(objectKeys$3(c),i(c)):objectKeys$3(c),u=l.length,$=0;u>$;)s=l[$++],DESCRIPTORS$e&&!call$b(a,c,s)||(r[s]=c[s]);return r}:$assign$1,$$L=_export$1,assign$9=objectAssign$1;$$L({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$9},{assign:assign$9});var path$4=path$w,assign$8=path$4.Object.assign,parent$C=assign$8,assign$7=parent$C,parent$B=assign$7,assign$6=parent$B,parent$A=assign$6,assign$5=parent$A,assign$4=assign$5,assign$3=assign$4,_Object$assign=getDefaultExportFromCjs(assign$3),DESCRIPTORS$d=descriptors,uncurryThis$g=functionUncurryThis,call$a=functionCall,fails$d=fails$M,objectKeys$2=objectKeys$5,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$7=toObject$j,IndexedObject$2=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat3=uncurryThis$g([].concat),objectAssign=!$assign||fails$d((function(){if(DESCRIPTORS$d&&1!==$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign({},e)[r]||objectKeys$2($assign({},t)).join("")!=n}))?function(e,t){for(var r=toObject$7(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;n>o;)for(var s,c=IndexedObject$2(arguments[o++]),l=i?concat3(objectKeys$2(c),i(c)):objectKeys$2(c),u=l.length,$=0;u>$;)s=l[$++],DESCRIPTORS$d&&!call$a(a,c,s)||(r[s]=c[s]);return r}:$assign,$$K=_export,assign$2=objectAssign;$$K({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$2},{assign:assign$2});var EleName="xg-video",simdCanused=!1;try{simdCanused=WebAssembly&&WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))}catch(e){}var decodeCapacity={preloadDecoder:!1,reuseWasmDecoder:!0,reuseMseForAudio:!1,preciseSeek:0,h264WithWebcodec:!0,lowDecodeThreshold:100,wasmFallbackToAsm:!1,audioWithMse:!0,canUseThreadMode:!1,disabledWhenErrorOccur:!0,disabledDuration:43200,evaluateVVCount:0,disabledByLowdecodePrecent:.5,maxDecodeOnceWasm:simdCanused?6:8,maxDecodeOnceFirstTime:8,maxDecodeOnceWebcodec:20};function getEleName(){return EleName}function setEleName(e){EleName=e}function setDecodeCapacity(e){decodeCapacity=_Object$assign({},decodeCapacity,e)}function getDecodeCapacaity(){return decodeCapacity}function getDecoderUrls(){var e="undefined"!=typeof customElements&&customElements.get(EleName);return e?{H264_DECODER_URL:e.h264Url,ASM_H264_DECODER_URL:e.h264AsmUrl,H265_DECODER_URL:e.h265Url,H265_THREAD_DECODER_URL:e.h265ThreadUrl,H265_SIMD_DECODER_URL:e.h265SimdUrl,ASM_H265_DECODER_URL:e.h265AsmUrl}:{}}function simdSupported(){if("undefined"==typeof customElements)return!1;var e=customElements.get(EleName);return simdCanused&&!(null==e||!e.h265SimdUrl)}function threadSupported(){if("undefined"==typeof customElements)return!1;var e=customElements.get(EleName);return!!window.SharedArrayBuffer&&!(null==e||!e.h265ThreadUrl)}var _softDecodeSupport=!1;try{var _localStorage,_localStorage$getItem;_softDecodeSupport="1"===(null===(_localStorage=localStorage)||void 0===_localStorage||null===(_localStorage$getItem=_localStorage.getItem)||void 0===_localStorage$getItem?void 0:_localStorage$getItem.call(_localStorage,"_sds"))}catch(e){}function softDecodeSupported(){if("undefined"==typeof customElements)return!1;if(_softDecodeSupport)return!0;var e=!1,t=!1;try{var r=new(window.AudioContext||window.webkitAudioContext);r.close(),r=null,e=!0}catch(e){}try{for(var n=document.createElement("canvas"),o=["webgl","experimental-webgl","moz-webgl","webkit-3d"],i=0;i<o.length;i++){var a=n.getContext(o[i]);if(a){a=null,n=null,t=!0;break}}_softDecodeSupport=e&&t&&!!WebAssembly,localStorage.setItem("_sds",_softDecodeSupport?1:0)}catch(e){}return _softDecodeSupport}function getDeviceCapacity(){return{simd:simdCanused,thread:threadSupported(),nbCpu:navigator.hardwareConcurrency}}var vv=0,lowdecodeVV=0,lowdecodePercent=0,disabledHevc=!1;function updateVV(){vv++}function getVV(){return vv}function updateLowdecodeVV(){lowdecodeVV++}function getLowdecodeVV(){return lowdecodeVV}function getLowdecodePercent(){return lowdecodePercent}function _getDisabledByEvaluateVV(){return!!disabledHevc||0!==getDecodeCapacaity().evaluateVVCount&&(vv===getDecodeCapacaity().evaluateVVCount&&(lowdecodePercent=lowdecodeVV/vv),lowdecodePercent>=getDecodeCapacaity().disabledByLowdecodePrecent&&(disabledHevc=!0),disabledHevc)}function persistenceDisabledStatus(e){localStorage.setItem("xgv_dis",e),2===e&&localStorage.setItem("xgv_dist",(new Date).getTime())}function getDisabledStatus(){if(!0===_getDisabledByEvaluateVV())return!0;var e=localStorage.getItem("xgv_dis");if(!e)return!1;if("1"===e)return!0;if("2"===e){var t=localStorage.getItem("xgv_dist")||0;if(t=Number(t),((new Date).getTime()-t)/1e3<getDecodeCapacaity().disabledDuration)return!0;cleanDisabledStatus()}}function cleanDisabledStatus(){localStorage.removeItem("xgv_dist"),localStorage.removeItem("xgv_dis")}var eventemitter3={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}_Object$create&&(n.prototype=_Object$create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?_sliceInstanceProperty(n).call(n,1):n);return _Object$getOwnPropertySymbols?_concatInstanceProperty(o).call(o,_Object$getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],$=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),$){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(l=1,c=new Array($-1);l<$;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,A=u.length;for(l=0;l<A;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),$){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,o);break;default:if(!c)for(d=1,c=new Array($-1);d<$;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||n&&s[c].context!==n)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(eventemitter3);var eventemitter3Exports=eventemitter3.exports,EventEmitter=getDefaultExportFromCjs(eventemitter3Exports),global$a=global$13,globalIsFinite$1=global$a.isFinite,numberIsFinite$3=Number.isFinite||function(e){return"number"==typeof e&&globalIsFinite$1(e)},$$J=_export$1,numberIsFinite$2=numberIsFinite$3;$$J({target:"Number",stat:!0},{isFinite:numberIsFinite$2});var path$3=path$w,_isFinite$5=path$3.Number.isFinite,parent$z=_isFinite$5,_isFinite$4=parent$z,parent$y=_isFinite$4,_isFinite$3=parent$y,parent$x=_isFinite$3,_isFinite$2=parent$x,_isFinite$1=_isFinite$2,_isFinite=_isFinite$1,_Number$isFinite=getDefaultExportFromCjs(_isFinite),aCallable$8=aCallable$u,toObject$6=toObject$t,IndexedObject$1=indexedObject$1,lengthOfArrayLike$6=lengthOfArrayLike$u,$TypeError$6=TypeError,createMethod$2=function(e){return function(t,r,n,o){aCallable$8(r);var i=toObject$6(t),a=IndexedObject$1(i),s=lengthOfArrayLike$6(i),c=e?s-1:0,l=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw $TypeError$6("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(o=r(o,a[c],c,i));return o}},arrayReduce={left:createMethod$2(!1),right:createMethod$2(!0)},$$I=_export$1,$reduce=arrayReduce.left,arrayMethodIsStrict$4=arrayMethodIsStrict$9,CHROME_VERSION=engineV8Version$1,IS_NODE=engineIsNode$1,CHROME_BUG=!IS_NODE&&engineV8Version$1>79&&engineV8Version$1<83,FORCED$5=CHROME_BUG||!arrayMethodIsStrict$4("reduce");$$I({target:"Array",proto:!0,forced:FORCED$5},{reduce:function(e){var t=arguments.length;return $reduce(this,e,t,t>1?arguments[1]:void 0)}});var entryVirtual$6=entryVirtual$f,reduce$6=entryVirtual$6("Array").reduce,isPrototypeOf$9=objectIsPrototypeOf$1,method$6=reduce$6,ArrayPrototype$6=Array.prototype,reduce$5=function(e){var t=e.reduce;return e===ArrayPrototype$6||isPrototypeOf$9(ArrayPrototype$6,e)&&t===ArrayPrototype$6.reduce?method$6:t},parent$w=reduce$5,reduce$4=parent$w,parent$v=reduce$4,reduce$3=parent$v,parent$u=reduce$3,reduce$2=parent$u,reduce$1=reduce$2,reduce3=reduce$1,_reduceInstanceProperty=getDefaultExportFromCjs(reduce3),global$9=global$H,globalIsFinite=global$9.isFinite,numberIsFinite$1=Number.isFinite||function(e){return"number"==typeof e&&globalIsFinite(e)},$$H=_export,numberIsFinite=numberIsFinite$1;$$H({target:"Number",stat:!0},{isFinite:numberIsFinite});var $$G=_export,isArray$2=isArray$5,isConstructor$1=isConstructor$4,isObject$5=isObject$k,toAbsoluteIndex$2=toAbsoluteIndex$8,lengthOfArrayLike$5=lengthOfArrayLike$l,toIndexedObject$3=toIndexedObject$c,createProperty$3=createProperty$6,wellKnownSymbol$5=wellKnownSymbol$q,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$6,nativeSlice=arraySlice$a,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("slice"),SPECIES=wellKnownSymbol$5("species"),$Array$1=Array,max$2=Math.max;$$G({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$2},{slice:function(e,t){var r,n,o,i=toIndexedObject$3(this),a=lengthOfArrayLike$5(i),s=toAbsoluteIndex$2(e,a),c=toAbsoluteIndex$2(void 0===t?a:t,a);if(isArray$2(i)&&(r=i.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$2(r.prototype))||isObject$5(r)&&null===(r=r[SPECIES]))&&(r=void 0),r===$Array$1||void 0===r))return nativeSlice(i,s,c);for(n=new(void 0===r?$Array$1:r)(max$2(c-s,0)),o=0;s<c;s++,o++)s in i&&createProperty$3(n,o,i[s]);return n.length=o,n}});var VIDEO_EVENTS={WAITING:0,CANPLAY:1,PLAY:2,PLAYING:3,PAUSE:4,SEEKING:5,SEEKED:6,LOADEDDATA:7,LOADEDMETADATA:8,TIMEUPDATE:9,DURATION_CHANGE:10,VOLUME_CHANGE:11,PROGRESS:12,ERROR:13,ENDED:14,RESIZE:15,LOADSTART:16,DECODE_FPS:17,LOW_DECODE:18,LARGE_AV_GAP:19,FIRST_FRAME:20},VIDEO_EVENTS_ARR=["waiting","canplay","play","playing","pause","seeking","seeked","loadeddata","loadedmetadata","timeupdate","durationchange","volumechange","progress","error","ended","resize","loadstart","decodefps","lowdecode","largeavgap","firstframe"],Events={AUDIO:{AUDIO_READY:"audio_ready",AUDIO_NOT_ALLOWED_AUTOPLAY:"audio_not_allowed_autoplay",AUDIO_WAITING:"audio_waiting",AUDIO_SYNC_DTS:"audio_sync_dts"},VIDEO:{VIDEO_DECODER_INIT:"video_decode_init",VIDEO_READY:"video_ready",VIDEO_WAITING:"video_waiting",AUTO_RUN:"auto_run",DECODE_LOW_FPS:"decode_low_fps",UPDATE_VIDEO_FILLTYPE:"update_video_filltype",UPDATE_VIDEO_COVER_POSITION:"update_video_cover_position"},TIMELINE:{PLAY_EVENT:"play_event",SET_METADATA:"set_metadata",APPEND_CHUNKS:"append_chunks",START_RENDER:"start_render",DO_PLAY:"do_play",DO_PAUSE:"do_pause",DO_SEEK:"do_seek",SET_PLAYBACKRATE:"set_playbackrate",SYNC_DTS:"sync_dts",RESET_BASE_DTS:"reset_base_dts",UPDATE_VOLUME:"update_volume",SINGLE_TRACK:"single_track",DESTROY:"destroy",READY:"ready",UPDATE_GL_OPTIONS:"update_gl_options",SET_VIDEO_DURATION:"set_video_duration",SET_PLAY_MODE:"set_play_mode",UPDATE_CAPABILITY_LEVEL:"update_capability_level",INNER_DEGRADE:"inner_degrade",ADJUST_SEEK_TIME:"adjust_seek_time",CHASE_FRAME:"chase_frame",END_OF_STREAM:"end_of_stream",UPDATE_SEGMENT_END:"update_segment_end"},VIDEO_EVENTS:VIDEO_EVENTS,DECODE_EVENTS:{INIT:"init",READY:"decoderready",REMUX:"remux",INIT_FAILED:"initfailed",DATAREADY:"dataReady",PLAY_FAILED:"playfailed",FRAGMENT_END:"fragmentEnd",APPEND_VIDEO:"appendVideo",FIRST_FRAME:"firstFrame",DECODED:"decoded",RENDE_END:"rendeEnd",CHASE_VIDEO_FRAME:"chaseVideoFrame",CHASE_VIDEO_FRAME_END:"chaseVideoFrameEnd",CHASE_AUDIO_FRAME:"chaseAudioFrame",INIT_SEGMENT:"initSegment",MEDIA_SEGMENT:"mediaSegment",FRAME_MAX_COUNY:"frameMaxCount",FRAME_MIN_COUNY:"frameMinCount"}},BaseRender=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e,n){var o;return _classCallCheck$2(this,r),(o=t.call(this))._config=e,o._parent=n,o._meta=null,o._ready=!1,o._isLive=!0,o._innerDegrade=!1,o._singleTrack=-1,o}return _createClass$2(r,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"isLive",get:function(){return this._isLive}},{key:"innerDegrade",get:function(){return this._innerDegrade}},{key:"noAudio",get:function(){return 1===this._singleTrack||2===this._singleTrack}},{key:"noVideo",get:function(){return 3===this._singleTrack}},{key:"duration",get:function(){return this._timeRange.duration},set:function(e){this._timeRange&&(this._timeRange.duration=e)}},{key:"_bindEvents",value:function(){var e,t,r,n,o,i,a,s,c=this;this._parent.on(Events.TIMELINE.APPEND_CHUNKS,_bindInstanceProperty(e=this._appendChunk).call(e,this)),this._parent.on(Events.TIMELINE.RESET_BASE_DTS,_bindInstanceProperty(t=this._resetDts).call(t,this)),this._parent.on(Events.TIMELINE.START_RENDER,_bindInstanceProperty(r=this._startRender).call(r,this)),this._parent.on(Events.TIMELINE.DO_PLAY,_bindInstanceProperty(n=this._doPlay).call(n,this)),this._parent.on(Events.TIMELINE.DO_PAUSE,_bindInstanceProperty(o=this._doPause).call(o,this)),this._parent.on(Events.TIMELINE.DO_SEEK,_bindInstanceProperty(i=this._doSeek).call(i,this)),this._parent.on(Events.TIMELINE.DESTROY,_bindInstanceProperty(a=this._destroy).call(a,this)),this._parent.on(Events.TIMELINE.CHASE_FRAME,_bindInstanceProperty(s=this._doChaseFrame).call(s,this)),this._parent.on(Events.TIMELINE.SINGLE_TRACK,(function(e){c._singleTrack=e})),this._parent.on(Events.TIMELINE.SET_PLAY_MODE,(function(e){c._isLive="LIVE"===e})),this._parent.on(Events.TIMELINE.INNER_DEGRADE,(function(){c._innerDegrade=!0})),this._parent.on(Events.TIMELINE.SET_VIDEO_DURATION,(function(e){c.duration=e}))}}]),r}(),tryToString$1=tryToString$e,$TypeError$5=TypeError,deletePropertyOrThrow$4=function(e,t){if(!delete e[t])throw $TypeError$5("Cannot delete property "+tryToString$1(t)+" of "+tryToString$1(e))},arraySlice$3=arraySliceSimple$1,floor$5=Math.floor,mergeSort=function(e,t){var r=e.length,n=floor$5(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$3(e,0,n),t),mergeSort(arraySlice$3(e,n),t),t)},insertionSort=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},merge=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},arraySort$2=mergeSort,userAgent$1=engineUserAgent$1,firefox=userAgent$1.match(/firefox\/(\d+)/i),engineFfVersion=!!firefox&&+firefox[1],UA=engineUserAgent$1,engineIsIeOrEdge=/MSIE|Trident/.test(UA),userAgent=engineUserAgent$1,webkit=userAgent.match(/AppleWebKit\/(\d+)\./),engineWebkitVersion=!!webkit&&+webkit[1],$$F=_export$1,uncurryThis$f=functionUncurryThis$1,aCallable$7=aCallable$u,toObject$5=toObject$t,lengthOfArrayLike$4=lengthOfArrayLike$u,deletePropertyOrThrow$3=deletePropertyOrThrow$4,toString$4=toString$o,fails$c=fails$1b,internalSort$1=arraySort$2,arrayMethodIsStrict$3=arrayMethodIsStrict$9,FF$1=engineFfVersion,IE_OR_EDGE$1=engineIsIeOrEdge,V8$1=engineV8Version$1,WEBKIT$1=engineWebkitVersion,test$1=[],nativeSort$1=uncurryThis$f(test$1.sort),push$b=uncurryThis$f(test$1.push),FAILS_ON_UNDEFINED$1=fails$c((function(){test$1.sort(void 0)})),FAILS_ON_NULL$1=fails$c((function(){test$1.sort(null)})),STRICT_METHOD$2=arrayMethodIsStrict$3("sort"),STABLE_SORT$1=!fails$c((function(){if(V8$1)return V8$1<70;if(!(FF$1&&FF$1>3)){if(IE_OR_EDGE$1)return!0;if(WEBKIT$1)return WEBKIT$1<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)test$1.push({k:t+n,v:r})}for(test$1.sort((function(e,t){return t.v-e.v})),n=0;n<test$1.length;n++)t=test$1[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),FORCED$4=FAILS_ON_UNDEFINED$1||!FAILS_ON_NULL$1||!STRICT_METHOD$2||!STABLE_SORT$1,getSortCompare$1=function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:toString$4(t)>toString$4(r)?1:-1}};$$F({target:"Array",proto:!0,forced:FORCED$4},{sort:function(e){void 0!==e&&aCallable$7(e);var t=toObject$5(this);if(STABLE_SORT$1)return void 0===e?nativeSort$1(t):nativeSort$1(t,e);var r,n,o=[],i=lengthOfArrayLike$4(t);for(n=0;n<i;n++)n in t&&push$b(o,t[n]);for(internalSort$1(o,getSortCompare$1(e)),r=lengthOfArrayLike$4(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)deletePropertyOrThrow$3(t,n++);return t}});var entryVirtual$5=entryVirtual$f,sort$6=entryVirtual$5("Array").sort,isPrototypeOf$8=objectIsPrototypeOf$1,method$5=sort$6,ArrayPrototype$5=Array.prototype,sort$5=function(e){var t=e.sort;return e===ArrayPrototype$5||isPrototypeOf$8(ArrayPrototype$5,e)&&t===ArrayPrototype$5.sort?method$5:t},parent$t=sort$5,sort$4=parent$t,parent$s=sort$4,sort$3=parent$s,parent$r=sort$3,sort$2=parent$r,sort$1=sort$2,sort3=sort$1,_sortInstanceProperty=getDefaultExportFromCjs(sort3),$$E=_export,uncurryThis$e=functionUncurryThis,aCallable$6=aCallable$i,toObject$4=toObject$j,lengthOfArrayLike$3=lengthOfArrayLike$l,deletePropertyOrThrow$2=deletePropertyOrThrow$6,toString$3=toString$b,fails$b=fails$M,internalSort=arraySort$3,arrayMethodIsStrict$2=arrayMethodIsStrict$7,FF=engineFfVersion$1,IE_OR_EDGE=engineIsIeOrEdge$1,V8=engineV8Version,WEBKIT=engineWebkitVersion$1,test=[],nativeSort=uncurryThis$e(test.sort),push$a=uncurryThis$e(test.push),FAILS_ON_UNDEFINED=fails$b((function(){test.sort(void 0)})),FAILS_ON_NULL=fails$b((function(){test.sort(null)})),STRICT_METHOD$1=arrayMethodIsStrict$2("sort"),STABLE_SORT=!fails$b((function(){if(V8)return V8<70;if(!(FF&&FF>3)){if(IE_OR_EDGE)return!0;if(WEBKIT)return WEBKIT<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)test.push({k:t+n,v:r})}for(test.sort((function(e,t){return t.v-e.v})),n=0;n<test.length;n++)t=test[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),FORCED$3=FAILS_ON_UNDEFINED||!FAILS_ON_NULL||!STRICT_METHOD$1||!STABLE_SORT,getSortCompare=function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:toString$3(t)>toString$3(r)?1:-1}};$$E({target:"Array",proto:!0,forced:FORCED$3},{sort:function(e){void 0!==e&&aCallable$6(e);var t=toObject$4(this);if(STABLE_SORT)return void 0===e?nativeSort(t):nativeSort(t,e);var r,n,o=[],i=lengthOfArrayLike$3(t);for(n=0;n<i;n++)n in t&&push$a(o,t[n]);for(internalSort(o,getSortCompare(e)),r=lengthOfArrayLike$3(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)deletePropertyOrThrow$2(t,n++);return t}});var TOLERANCE$2=.5,AudioTimeRange=function(){function e(t){_classCallCheck$2(this,e),this.TAG="AudioTimeRange",this._parent=t,this._buffers=[],this._duration=0,this._baseDts=0,this._lastBuffer=null}return _createClass$2(e,[{key:"isLive",get:function(){return this._parent.isLive}},{key:"duration",get:function(){return this._duration},set:function(e){this._duration=e}},{key:"buffered",get:function(){var e=this;if(this.isLive)return{length:this._duration?1:0,start:function(){return 0},end:function(){return e._duration}};var t=this._mergeBufferRanges();return{length:t.length,start:function(e){var r=t[e];return r?r.start:0},end:function(e){var r=t[e];return r?r.end:1/0}}}},{key:"resetDts",value:function(e){this._baseDts=e}},{key:"_transitionSamples",value:function(e){for(var t=e.numberOfChannels,r=e.length,n=512,o=0;o<t;o++){for(var i=e.getChannelData(o),a=0;a<n;a++)i[a]=i[a]*a/n;for(var s=r-n;s<r;s++)i[s]=i[s]*(r-s)/n}}},{key:"append",value:function(e,t,r,n){var o,i,a;-1===this._baseDts&&(this._baseDts=r),this._transitionSamples(e);var s=(r-this._baseDts)/1e3,c=s+t,l={start:s,end:c,startDts:r,source:e,duration:t,delay:n};if(logger.log(this.TAG,_concatInstanceProperty(o=_concatInstanceProperty(i="add new buffer range, startDts:".concat(r,", [")).call(i,l.start," , ")).call(o,l.end,"]")),!_filterInstanceProperty(a=this._buffers).call(a,(function(e){return e.start===s})).length)return this._buffers.push(l),this.isLive&&(this._duration=c),l.start;console.error("音频重复")}},{key:"deletePassed",value:function(e){var t;return this._buffers=_filterInstanceProperty(t=this._buffers).call(t,(function(t){return t.start>=e})),this._buffers[0]}},{key:"canSeek",value:function(e){var t=this._buffers[this._buffers.length-1];return!!t&&!(t.start<e)}},{key:"_mergeBufferRanges",value:function(){var e,t,r=_sortInstanceProperty(e=_sliceInstanceProperty(t=this._buffers).call(t)).call(e,(function(e,t){return e.start>t.start?1:-1})),n=r.length,o=[];if(!n)return o;for(var i={start:r[0].start,end:r[0].end},a=1;a<n;a++){var s=r[a];Math.abs(i.end-s.start)<TOLERANCE$2?i.end=s.end:(o.push(i),i={start:s.start,end:s.end})}return o.push(i),o}},{key:"getBuffer",value:function(e){var t,r,n;if(this.isLive)return this._buffers.shift();var o=_filterInstanceProperty(t=this._buffers).call(t,(function(t){return t.start<e+TOLERANCE$2&&t.end>e+TOLERANCE$2}))[0];return logger.log(this.TAG,_concatInstanceProperty(r=_concatInstanceProperty(n="get audio buffer , currentTime:".concat(e," ,buffer:[")).call(n,o&&o.start," , ")).call(r,o&&o.end,"]")),0!==e||o?o:this._buffers[0]}},{key:"hasBuffer",value:function(){var e;return!(null===(e=this._buffers)||void 0===e||!e.length)}}]),e}(),Alaw2lpcm=[-5504,-5248,-6016,-5760,-4480,-4224,-4992,-4736,-7552,-7296,-8064,-7808,-6528,-6272,-7040,-6784,-2752,-2624,-3008,-2880,-2240,-2112,-2496,-2368,-3776,-3648,-4032,-3904,-3264,-3136,-3520,-3392,-22016,-20992,-24064,-23040,-17920,-16896,-19968,-18944,-30208,-29184,-32256,-31232,-26112,-25088,-28160,-27136,-11008,-10496,-12032,-11520,-8960,-8448,-9984,-9472,-15104,-14592,-16128,-15616,-13056,-12544,-14080,-13568,-344,-328,-376,-360,-280,-264,-312,-296,-472,-456,-504,-488,-408,-392,-440,-424,-88,-72,-120,-104,-24,-8,-56,-40,-216,-200,-248,-232,-152,-136,-184,-168,-1376,-1312,-1504,-1440,-1120,-1056,-1248,-1184,-1888,-1824,-2016,-1952,-1632,-1568,-1760,-1696,-688,-656,-752,-720,-560,-528,-624,-592,-944,-912,-1008,-976,-816,-784,-880,-848,5504,5248,6016,5760,4480,4224,4992,4736,7552,7296,8064,7808,6528,6272,7040,6784,2752,2624,3008,2880,2240,2112,2496,2368,3776,3648,4032,3904,3264,3136,3520,3392,22016,20992,24064,23040,17920,16896,19968,18944,30208,29184,32256,31232,26112,25088,28160,27136,11008,10496,12032,11520,8960,8448,9984,9472,15104,14592,16128,15616,13056,12544,14080,13568,344,328,376,360,280,264,312,296,472,456,504,488,408,392,440,424,88,72,120,104,24,8,56,40,216,200,248,232,152,136,184,168,1376,1312,1504,1440,1120,1056,1248,1184,1888,1824,2016,1952,1632,1568,1760,1696,688,656,752,720,560,528,624,592,944,912,1008,976,816,784,880,848],Ulaw2lpcm=[-32124,-31100,-30076,-29052,-28028,-27004,-25980,-24956,-23932,-22908,-21884,-20860,-19836,-18812,-17788,-16764,-15996,-15484,-14972,-14460,-13948,-13436,-12924,-12412,-11900,-11388,-10876,-10364,-9852,-9340,-8828,-8316,-7932,-7676,-7420,-7164,-6908,-6652,-6396,-6140,-5884,-5628,-5372,-5116,-4860,-4604,-4348,-4092,-3900,-3772,-3644,-3516,-3388,-3260,-3132,-3004,-2876,-2748,-2620,-2492,-2364,-2236,-2108,-1980,-1884,-1820,-1756,-1692,-1628,-1564,-1500,-1436,-1372,-1308,-1244,-1180,-1116,-1052,-988,-924,-876,-844,-812,-780,-748,-716,-684,-652,-620,-588,-556,-524,-492,-460,-428,-396,-372,-356,-340,-324,-308,-292,-276,-260,-244,-228,-212,-196,-180,-164,-148,-132,-120,-112,-104,-96,-88,-80,-72,-64,-56,-48,-40,-32,-24,-16,-8,0,32124,31100,30076,29052,28028,27004,25980,24956,23932,22908,21884,20860,19836,18812,17788,16764,15996,15484,14972,14460,13948,13436,12924,12412,11900,11388,10876,10364,9852,9340,8828,8316,7932,7676,7420,7164,6908,6652,6396,6140,5884,5628,5372,5116,4860,4604,4348,4092,3900,3772,3644,3516,3388,3260,3132,3004,2876,2748,2620,2492,2364,2236,2108,1980,1884,1820,1756,1692,1628,1564,1500,1436,1372,1308,1244,1180,1116,1052,988,924,876,844,812,780,748,716,684,652,620,588,556,524,492,460,428,396,372,356,340,324,308,292,276,260,244,228,212,196,180,164,148,132,120,112,104,96,88,80,72,64,56,48,40,32,24,16,8,0],silenceFrame=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]);function _doubleCheckSampleRateIndex(e,t){var r=(7&e[0])<<1|e[1]>>>7;return r!==t?r:t}function _constructAdtsHeader(e,t){var r=e.sampleRateIndex,n=e.channelCount;r=_doubleCheckSampleRateIndex(e.config,r);var o=new Uint8Array(7);o[0]=255,o[1]=240,o[1]=1|o[1],o[2]=64,o[2]=o[2]|60&r<<2,o[2]=o[2]|1&n>>2,o[3]=192&n<<6;var i=t.byteLength+7;return o[3]=o[3]|3&i>>11,o[4]=255&i>>3,o[5]=224&i<<5,o[5]=31|o[5],o[6]=252,o}function packageAACToAdts(e,t){var r=new Uint8Array(t.data.byteLength+7),n=_constructAdtsHeader(e,t.data);return r.set(n),r.set(t.data,7),r}function concatAdts(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0,n=0,o=e.length;n<o;n++)t&&n%t==0||(r+=e[n].byteLength);for(var i=new Uint8Array(r),a=0,s=0,c=e.length;s<c;s++)t&&s%t==0||(i.set(e[s],a),a+=e[s].byteLength);return i}function _decodeAlaw(e){for(var t=new Uint8Array(2*e.length),r=0,n=0;r<e.length;){var o=Alaw2lpcm[e[r]];if(void 0===o)throw new Error("can not decode g711 alaw data!");t[n]=255&o,t[n+1]=o>>8,r+=1,n+=2}return t}function _decodeUlaw(e){for(var t=new Uint8Array(2*e.length),r=0,n=0;r<e.length;){var o=Ulaw2lpcm[e[r]];if(void 0===o)throw new Error("can not decode g711 ulaw data!");t[n]=255&o,t[n+1]=o>>8,r+=1,n+=2}return t}function decodeG711(e,t){if("g7110a"===t)return _decodeAlaw(e);if("g7110m"===t)return _decodeUlaw(e);throw new Error("no supported format=".concat(t," for g711"))}function _getSampleCount(e,t,r){return e/t/r}function _uint16ToFloat32(e){return e>=32768?-(65536-e)/32768:e/32767}function createAudioBufferFromPcm(e,t,r,n,o){for(var i=_getSampleCount(t.byteLength,r,o),a=e.createBuffer(r,i,n),s=new DataView(t),c=0;c<r;c++)for(var l=a.getChannelData(c),u=void 0,$=0;$<i;$++)u=s.getUint16($*(2*r)+2*c,!0),l[$]=_uint16ToFloat32(u);return{audioBuffer:a,duration:i/n}}function checkRefillFrame(e){var t=e[0].dts,r=_filterInstanceProperty(e).call(e,(function(e){return e.dts===t})).length;if(!(r<=1))for(var n=0;n<r;n++)e[n].data=silenceFrame}var AudioHelper={decodeG711:decodeG711,createAudioBufferFromPcm:createAudioBufferFromPcm,packageAACToAdts:packageAACToAdts,concatAdts:concatAdts,checkRefillFrame:checkRefillFrame},MEDIA_ERR_DECODE$1=3,ERROR_MSG={INIT_AUDIO_ERR:"create new AudioContext error",DECODE_ERR:"audio data decode error"},AudioRender=function(e){_inherits$1(o,BaseRender);var t,r,n=_createSuper$1(o);function o(e,t){var r,i;return _classCallCheck$2(this,o),_defineProperty$2(_assertThisInitialized$1(i=n.call(this,e,t)),"doPause",i._doPause),i.TAG="AudioRender",i._timeRange=new AudioTimeRange(_assertThisInitialized$1(i)),i._lastTimeLineTime=0,i._sampleQueue=[],i._source=null,i._audioCanAutoplay=!0,i._lastBuffer=null,i._inDecoding=!1,i._endOfStream=!1,i._delay=0,i._isSourceBufferEnd=-1,i._onSourceBufferEnded=_bindInstanceProperty(r=i._onSourceBufferEnded).call(r,_assertThisInitialized$1(i)),i._initAudioCtx(e.volume||.6),i._bindEvents(),i}return _createClass$2(o,[{key:"baseDts",get:function(){return this._timeRange._baseDts}},{key:"currentTime",get:function(){return this._audioCtx?this._lastTimeLineTime+this._audioCtx.currentTime:0}},{key:"preloadTime",get:function(){return this.isLive?1:0}},{key:"timescale",get:function(){return 1e3}},{key:"buffered",get:function(){return this._timeRange.buffered}},{key:"ctxState",get:function(){return this._audioCtx.state}},{key:"audioCanAutoplay",get:function(){return this._audioCanAutoplay}},{key:"resume",value:function(){if(this._audioCtx&&"suspended"===this._audioCtx.state)return this._audioCtx.resume().catch((function(e){}))}},{key:"canSeek",value:function(e){return this._timeRange.canSeek(e)}},{key:"_assembleErr",value:function(e){var t=new Error(e);return t.code=MEDIA_ERR_DECODE$1,t}},{key:"_emitTimelineEvents",value:function(e,t,r){var n,o;null===(n=this._parent)||void 0===n||null===(o=n.emit)||void 0===o||o.call(n,e,t,r)}},{key:"_initAudioCtx",value:function(e){var t=this;logger.log(this.TAG,"init audioCtx");var r=window.AudioContext||window.webkitAudioContext;return this._audioCtx=new r,this._audioCtx?(this._gainNode=this._audioCtx.createGain(),this._gainNode.gain.value=e,this._gainNode.connect(this._audioCtx.destination),this._audioCanAutoplay="running"===this._audioCtx.state,logger.log(this.TAG,"webAudio state:",this._audioCtx.state),initBgSilenceAudio(),this._bindAudioCtxEvent(),this._audioCtx.suspend()):(logger.warn(this.TAG,"create webaudio error!"),void _setTimeout((function(){t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,t._assembleErr(ERROR_MSG.INIT_AUDIO_ERR))})))}},{key:"_bindAudioCtxEvent",value:function(){var e=this;this._onStateChange=function(){e._audioCtx&&"running"===e._audioCtx.state&&e._ready&&e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PLAYING)},this._audioCtx.addEventListener("statechange",this._onStateChange)}},{key:"_bindEvents",value:function(){var e,t=this;_get(_getPrototypeOf$1(o.prototype),"_bindEvents",this).call(this),this._parent.on(Events.DECODE_EVENTS.CHASE_AUDIO_FRAME,_bindInstanceProperty(e=this._doChaseFrame).call(e,this)),this._parent.on(Events.TIMELINE.UPDATE_VOLUME,(function(e){t._gainNode&&(t._gainNode.gain.value=_Number$isFinite(e)?e:1,t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.VOLUME_CHANGE))})),this._parent.on(Events.TIMELINE.END_OF_STREAM,(function(){var e;t._endOfStream=!0,t.noAudio||null!==(e=t._timeRange)&&void 0!==e&&e.hasBuffer()||null==t||t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED)}))}},{key:"_appendChunk",value:function(e,t){if(!this.noAudio){this._meta||(this._meta=t,logger.warn(this.TAG,"audio set metadata",this._meta));var r,n=t.samples;if(n.length)if(this._sampleQueue=_concatInstanceProperty(r=this._sampleQueue).call(r,n),t.samples=[],"aac"===this._meta.codecType){if(this._inDecoding)return;this._decodeAACWrapper()}else this._decodeG711()}}},{key:"_resetDts",value:function(e,t){"video"!==t&&this._timeRange.resetDts(e)}},{key:"_doPlay",value:function(){this.noAudio||this._parent.seeking||(this._source||!this.currentTime?this.resume():this._startRender())}},{key:"_doPause",value:function(){this.noAudio||this._audioCtx.suspend()}},{key:"_reInitAudioCtx",value:function(e){var t=this;if(this._lastTimeLineTime=e,this._lastBuffer=null,this._lastAudioBufferInfo=null,this._delay=0,!this._ready||!this._audioCtx.currentTime)return _Promise.resolve();var r=this._gainNode.gain.value;return this._audioCtx.close().then((function(){return t._audioCtx.removeEventListener("statechange",t._onStateChange),t._audioCtx=null,t._source&&t._source.removeEventListener("ended",t._onSourceBufferEnded),t._source=null,t._initAudioCtx(r)}))}},{key:"_doSeek",value:function(e){var t=this;this._reInitAudioCtx(e).then((function(){t._getAudioBuffer(!0)})).catch((function(e){}))}},{key:"_doChaseFrame",value:function(e){var t=this,r=e.position,n=this._timeRange.deletePassed(r);n&&(logger.log(this.TAG,"_doChaseFrame","startTime:",n.start,"buffeLength:",this.buffered.end(0)-n.start),this._reInitAudioCtx(n.start).then((function(){t._startRender(),t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE)})).catch((function(e){})))}},{key:"_decodeAACWrapper",value:(r=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(){var t,r,n,o,i,a,s,c,l,u;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._sampleQueue.length,r=this._sampleQueue[0],n=this._sampleQueue[t-1],!((o=(n.dts-r.dts)/this.timescale)<1)){e.next=6;break}return e.abrupt("return");case 6:for(i=_parseInt$1(o/3-1)||1,a=_parseInt$1(t/i),s=[],c=0;c<i;c++){var $,d;c<i-1?s.push(_sliceInstanceProperty($=this._sampleQueue).call($,c*a,(c+1)*a)):s.push(_sliceInstanceProperty(d=this._sampleQueue).call(d,c*a))}return this._sampleQueue=[],this._inDecoding=!0,e.prev=12,e.next=15,this._decodeCycle(s);case 15:this._isLive||(l=this._timeRange._buffers,(u=l[l.length-1])&&this._emitTimelineEvents(Events.TIMELINE.UPDATE_SEGMENT_END,u.end)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr("ERROR_MSG.DECODE_ERR:".concat(e.t0&&e.t0.message)));case 21:this._inDecoding=!1;case 22:case"end":return e.stop()}}),e,this,[[12,18]])}))),function(){return r.apply(this,arguments)})},{key:"_decodeCycle",value:(t=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(t){var r;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.shift()){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._decodeAAC(r);case 5:return e.next=7,this._decodeCycle(t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_decodeAAC",value:function(e){var t=this,r=e[0],n=0;AudioHelper.checkRefillFrame(e);var o=_mapInstanceProperty(e).call(e,(function(e){return AudioHelper.packageAACToAdts(t._meta,e)})),i=AudioHelper.concatAdts(o,0);return new _Promise((function(e,o){var a=t._audioCtx.decodeAudioData(i.buffer,(function(o){if(t._timeRange){if(t._lastAudioBufferInfo&&t.isLive){var i=t._lastAudioBufferInfo,a=i.dts+i.duration;(n=r.dts-a)>1&&(t._timeRange._duration+=n/1e3,logger.log(t.TAG,"_decodeAAC","audio data dts is not continue, last end dts:",a,",now start Dts:",r.dts,"delay:",n))}t._lastAudioBufferInfo={duration:Math.floor(1e3*o.duration),dts:r.dts};var s=t._timeRange.append(o,o.duration,r.dts,n/1e3);if(!t._ready){var c=Math.abs(s+o.duration-t.currentTime)<.5;(t.isLive||!c)&&(t._ready=!0,logger.log(t.TAG,"_decodeAAC","set ready true start=",s),t.emit(Events.AUDIO.AUDIO_READY,s))}t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PROGRESS),t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE),e()}}),o);a.catch&&a.catch(o)}))}},{key:"_decodeG711",value:function(){var e,t,r=this._sampleQueue.length,n=this._sampleQueue[0];if(!((this._sampleQueue[r-1].dts-n.dts)/this.timescale<.5)){var o=_reduceInstanceProperty(e=this._sampleQueue).call(e,(function(e,t){return e+=t.data.byteLength}),0),i=new Uint8Array(o),a=0,s=0;_forEachInstanceProperty(t=this._sampleQueue).call(t,(function(e,t){0===t&&(a=e.dts),i.set(e.data,s),s+=e.data.byteLength})),this._sampleQueue=[];try{var c=this._meta,l=c.codecType,u=c.channelCount,$=c.sampleSize,d=c.sampleRate,A=AudioHelper.decodeG711(i,l),p=AudioHelper.createAudioBufferFromPcm(this._audioCtx,A.buffer,u,d,$/8),f=p.audioBuffer,h=p.duration,y=this._timeRange.append(f,h,a,0);this._ready||(this._ready=!0,logger.log(this.TAG,"_decodeG711","set ready true"),this.emit(Events.AUDIO.AUDIO_READY,y)),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PROGRESS),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE)}catch(e){this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr("ERROR_MSG.DECODE_ERR:".concat(e&&e.message)))}}}},{key:"_onSourceBufferEnded",value:function(){var e;(this._isSourceBufferEnd=!0,logger.long)&&logger.log(this.TAG,_concatInstanceProperty(e="source play end! currentTime:".concat(this.currentTime," , duration:")).call(e,this.duration));this._startRender()}},{key:"_ajustSeekTime",value:function(e){var t=this._timeRange.getBuffer(e,0);t&&(logger.log(this.TAG,"ajust seek time to:",t.start),this._lastTimeLineTime=t.start)}},{key:"_getAudioBuffer",value:function(e){var t=this;if(this._timeRange){var r=this._timeRange.getBuffer(this._lastBuffer?this._lastBuffer.end:this.currentTime,0);return r?e?(this._ajustSeekTime(r.start),void this.emit(Events.AUDIO.AUDIO_READY)):r:(this._endOfStream||!this._isLive)&&this.currentTime-this.duration>-.5?(this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),void this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED)):(this._ready=!1,this._audioCtx.suspend(),this.emit(Events.AUDIO.AUDIO_WAITING),void(e&&(this._onAudioReady||(this._onAudioReady=function(e){t._ajustSeekTime(e)}),this.removeListener(Events.AUDIO.AUDIO_READY,this._onAudioReady),this.once(Events.AUDIO.AUDIO_READY,this._onAudioReady))))}}},{key:"_startRender",value:function(e){if(!this.noAudio){if("video"===e&&this.isLive&&this._ready&&!this._isSourceBufferEnd)return console.log(this.TAG,"_startRender, audio currentTime",this.currentTime,"from:",e,"_isSourceBufferEnd:",this._isSourceBufferEnd,"ready:",this._ready),void this._doPlay();var t=this._getAudioBuffer();if(t){"suspended"===this._audioCtx.state&&(this._audioCtx.resume().catch((function(e){})),playSlienceAudio()),this._lastBuffer=t,this._source=null;var r=this._audioCtx.createBufferSource();r.buffer=t.source,r.loop=!1,this._source=r,r.addEventListener("ended",this._onSourceBufferEnded),r.connect(this._gainNode),t.delay&&t.delay>.001&&(this._delay+=t.delay),this.startDts=t.startDts;try{this._isSourceBufferEnd=!1,r.start()}catch(e){}t.startDts&&this._emitTimelineEvents(Events.TIMELINE.SYNC_DTS,t.startDts)}}}},{key:"_destroy",value:function(){logger.log(this.TAG,"destroy audio..."),this._source&&this._source.removeEventListener("ended",this._onSourceBufferEnded),this._audioCtx&&"closed"!==this.ctxState&&this._audioCtx.close(),this._audioCtx=null,this._sampleQueue=null,this._timeRange=null,this._parent=null,this.removeAllListeners()}}]),o}(),$$D=_export$1,$findIndex$1=arrayIteration$1.findIndex,FIND_INDEX$1="findIndex",SKIPS_HOLES$3=!0;FIND_INDEX$1 in[]&&Array(1)[FIND_INDEX$1]((function(){SKIPS_HOLES$3=!1})),$$D({target:"Array",proto:!0,forced:SKIPS_HOLES$3},{findIndex:function(e){return $findIndex$1(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$f,findIndex$6=entryVirtual$4("Array").findIndex,isPrototypeOf$7=objectIsPrototypeOf$1,method$4=findIndex$6,ArrayPrototype$4=Array.prototype,findIndex$5=function(e){var t=e.findIndex;return e===ArrayPrototype$4||isPrototypeOf$7(ArrayPrototype$4,e)&&t===ArrayPrototype$4.findIndex?method$4:t},parent$q=findIndex$5,findIndex$4=parent$q,parent$p=findIndex$4,findIndex$3=parent$p,parent$o=findIndex$3,findIndex$2=parent$o,findIndex$1=findIndex$2,findIndex3=findIndex$1,_findIndexInstanceProperty=getDefaultExportFromCjs(findIndex3),DESCRIPTORS$c=descriptors$1,isArray$1=isArray$i,$TypeError$4=TypeError,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET$1=DESCRIPTORS$c&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength$1=SILENT_ON_NON_WRITABLE_LENGTH_SET$1?function(e,t){if(isArray$1(e)&&!getOwnPropertyDescriptor$3(e,"length").writable)throw $TypeError$4("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$C=_export$1,toObject$3=toObject$t,toAbsoluteIndex$1=toAbsoluteIndex$d,toIntegerOrInfinity$3=toIntegerOrInfinity$h,lengthOfArrayLike$2=lengthOfArrayLike$u,setArrayLength$1=arraySetLength$1,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$5,arraySpeciesCreate$1=arraySpeciesCreate$7,createProperty$2=createProperty$c,deletePropertyOrThrow$1=deletePropertyOrThrow$4,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$b,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("splice"),max$1=Math.max,min$1=Math.min;$$C({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{splice:function(e,t){var r,n,o,i,a,s,c=toObject$3(this),l=lengthOfArrayLike$2(c),u=toAbsoluteIndex$1(e,l),$=arguments.length;for(0===$?r=n=0:1===$?(r=0,n=l-u):(r=$-2,n=min$1(max$1(toIntegerOrInfinity$3(t),0),l-u)),doesNotExceedSafeInteger$1(l+r-n),o=arraySpeciesCreate$1(c,n),i=0;i<n;i++)(a=u+i)in c&&createProperty$2(o,i,c[a]);if(o.length=n,r<n){for(i=u;i<l-n;i++)s=i+r,(a=i+n)in c?c[s]=c[a]:deletePropertyOrThrow$1(c,s);for(i=l;i>l-n+r;i--)deletePropertyOrThrow$1(c,i-1)}else if(r>n)for(i=l-n;i>u;i--)s=i+r-1,(a=i+n-1)in c?c[s]=c[a]:deletePropertyOrThrow$1(c,s);for(i=0;i<r;i++)c[i+u]=arguments[i+2];return setArrayLength$1(c,l-n+r),o}});var entryVirtual$3=entryVirtual$f,splice$8=entryVirtual$3("Array").splice,isPrototypeOf$6=objectIsPrototypeOf$1,method$3=splice$8,ArrayPrototype$3=Array.prototype,splice$7=function(e){var t=e.splice;return e===ArrayPrototype$3||isPrototypeOf$6(ArrayPrototype$3,e)&&t===ArrayPrototype$3.splice?method$3:t},parent$n=splice$7,splice$6=parent$n,parent$m=splice$6,splice$5=parent$m,parent$l=splice$5,splice$4=parent$l,splice$3=splice$4,splice$2=splice$3,_spliceInstanceProperty=getDefaultExportFromCjs(splice$2),$$B=_export,$findIndex=arrayIteration.findIndex,addToUnscopables$1=addToUnscopables$4,FIND_INDEX="findIndex",SKIPS_HOLES$2=!0;FIND_INDEX in[]&&Array(1)[FIND_INDEX]((function(){SKIPS_HOLES$2=!1})),$$B({target:"Array",proto:!0,forced:SKIPS_HOLES$2},{findIndex:function(e){return $findIndex(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$1(FIND_INDEX);var DESCRIPTORS$b=descriptors,isArray3=isArray$5,$TypeError$3=TypeError,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$b&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(e,t){if(isArray3(e)&&!getOwnPropertyDescriptor$2(e,"length").writable)throw $TypeError$3("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$A=_export,toObject$2=toObject$j,toAbsoluteIndex=toAbsoluteIndex$8,toIntegerOrInfinity$2=toIntegerOrInfinity$d,lengthOfArrayLike$1=lengthOfArrayLike$l,setArrayLength=arraySetLength,doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$4,createProperty$1=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$6,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$6,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("splice"),max=Math.max,min=Math.min;$$A({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{splice:function(e,t){var r,n,o,i,a,s,c=toObject$2(this),l=lengthOfArrayLike$1(c),u=toAbsoluteIndex(e,l),$=arguments.length;for(0===$?r=n=0:1===$?(r=0,n=l-u):(r=$-2,n=min(max(toIntegerOrInfinity$2(t),0),l-u)),doesNotExceedSafeInteger(l+r-n),o=arraySpeciesCreate(c,n),i=0;i<n;i++)(a=u+i)in c&&createProperty$1(o,i,c[a]);if(o.length=n,r<n){for(i=u;i<l-n;i++)s=i+r,(a=i+n)in c?c[s]=c[a]:deletePropertyOrThrow(c,s);for(i=l;i>l-n+r;i--)deletePropertyOrThrow(c,i-1)}else if(r>n)for(i=l-n;i>u;i--)s=i+r-1,(a=i+n-1)in c?c[s]=c[a]:deletePropertyOrThrow(c,s);for(i=0;i<r;i++)c[i+u]=arguments[i+2];return setArrayLength(c,l-n+r),o}});var $$z=_export,toObject$1=toObject$j,nativeKeys=objectKeys$5,fails$a=fails$M,FAILS_ON_PRIMITIVES$1=fails$a((function(){nativeKeys(1)}));$$z({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$1},{keys:function(e){return nativeKeys(toObject$1(e))}});var charAt$4=stringMultibyte.charAt,toString$2=toString$b,InternalStateModule$6=internalState,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$3,STRING_ITERATOR="String Iterator",setInternalState$6=InternalStateModule$6.set,getInternalState=InternalStateModule$6.getterFor(STRING_ITERATOR);defineIterator$1(String,"String",(function(e){setInternalState$6(this,{type:STRING_ITERATOR,string:toString$2(e),index:0})}),(function(){var e,t=getInternalState(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject$1(void 0,!0):(e=charAt$4(r,n),t.index+=e.length,createIterResultObject$1(e,!1))}));var global$8=global$H,DOMIterables$1=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$a,wellKnownSymbol$4=wellKnownSymbol$q,ITERATOR$4=wellKnownSymbol$4("iterator"),TO_STRING_TAG=wellKnownSymbol$4("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR$4]!==ArrayValues)try{createNonEnumerableProperty$1(e,ITERATOR$4,ArrayValues)}catch(t){e[ITERATOR$4]=ArrayValues}if(e[TO_STRING_TAG]||createNonEnumerableProperty$1(e,TO_STRING_TAG,t),DOMIterables$1[t])for(var r in ArrayIteratorMethods)if(e[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(e,r,ArrayIteratorMethods[r])}catch(t){e[r]=ArrayIteratorMethods[r]}}};for(var COLLECTION_NAME in DOMIterables$1)handlePrototype(global$8[COLLECTION_NAME]&&global$8[COLLECTION_NAME].prototype,COLLECTION_NAME);function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass$1(e,t,r){return t&&_defineProperties$1(e.prototype,t),r&&_defineProperties$1(e,r),_Object$defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty$1(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(_Array$isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(_Array$isArray(e))return e}function _iterableToArray(e){if(void 0!==_Symbol&&null!=_getIteratorMethod(e)||null!=e["@@iterator"])return _Array$from(e)}function _iterableToArrayLimit(e,t){var r=null==e?null:void 0!==_Symbol&&_getIteratorMethod(e)||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}function _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=_sliceInstanceProperty(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?_Array$from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}handlePrototype(DOMTokenListPrototype,"DOMTokenList");var TrackType={VIDEO:"video",AUDIO:"audio",METADATA:"metadata"},VideoCodecType={AVC:"avc",HEVC:"hevc"},call$9=functionCall,hasOwn$7=hasOwnProperty_1,isPrototypeOf$5=objectIsPrototypeOf,regExpFlags$2=regexpFlags$2,RegExpPrototype$4=RegExp.prototype,regexpGetFlags$1=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$4||hasOwn$7(e,"flags")||!isPrototypeOf$5(RegExpPrototype$4,e)?t:call$9(regExpFlags$2,e)},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn$5=defineBuiltIn$h,anObject$5=anObject$k,$toString$4=toString$b,fails$9=fails$M,getRegExpFlags$1=regexpGetFlags$1,TO_STRING="toString",RegExpPrototype$3=RegExp.prototype,nativeToString=RegExpPrototype$3[TO_STRING],NOT_GENERIC=fails$9((function(){return"/a/b"!=nativeToString.call({source:"a",flags:"b"})})),INCORRECT_NAME=PROPER_FUNCTION_NAME&&nativeToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$5(RegExp.prototype,TO_STRING,(function(){var e=anObject$5(this);return"/"+$toString$4(e.source)+"/"+$toString$4(getRegExpFlags$1(e))}),{unsafe:!0});var DESCRIPTORS$a=descriptors,FUNCTION_NAME_EXISTS=functionName.EXISTS,uncurryThis$d=functionUncurryThis,defineProperty$3=objectDefineProperty.f,FunctionPrototype=Function.prototype,functionToString=uncurryThis$d(FunctionPrototype.toString),nameRE=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,regExpExec=uncurryThis$d(nameRE.exec),NAME="name";DESCRIPTORS$a&&!FUNCTION_NAME_EXISTS&&defineProperty$3(FunctionPrototype,NAME,{configurable:!0,get:function(){try{return regExpExec(nameRE,functionToString(this))[1]}catch(e){return""}}});var $$y=_export,uncurryThis$c=functionUncurryThis,IndexedObject=indexedObject,toIndexedObject$2=toIndexedObject$c,arrayMethodIsStrict$1=arrayMethodIsStrict$7,nativeJoin=uncurryThis$c([].join),ES3_STRINGS=IndexedObject!=Object,STRICT_METHOD=arrayMethodIsStrict$1("join",",");$$y({target:"Array",proto:!0,forced:ES3_STRINGS||!STRICT_METHOD},{join:function(e){return nativeJoin(toIndexedObject$2(this),void 0===e?",":e)}});var $$x=_export$1,uncurryThis$b=functionUncurryThisClause$1,$indexOf=arrayIncludes$1.indexOf,arrayMethodIsStrict=arrayMethodIsStrict$9,nativeIndexOf=uncurryThis$b([].indexOf),NEGATIVE_ZERO=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED$2=NEGATIVE_ZERO||!arrayMethodIsStrict("indexOf");$$x({target:"Array",proto:!0,forced:FORCED$2},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO?nativeIndexOf(this,e,t)||0:$indexOf(this,e,t)}});var entryVirtual$2=entryVirtual$f,indexOf$6=entryVirtual$2("Array").indexOf,isPrototypeOf$4=objectIsPrototypeOf$1,method$2=indexOf$6,ArrayPrototype$2=Array.prototype,indexOf$5=function(e){var t=e.indexOf;return e===ArrayPrototype$2||isPrototypeOf$4(ArrayPrototype$2,e)&&t===ArrayPrototype$2.indexOf?method$2:t},parent$k=indexOf$5,indexOf$4=parent$k,parent$j=indexOf$4,indexOf$3=parent$j,parent$i=indexOf$3,indexOf$2=parent$i,indexOf$1=indexOf$2,indexOf3=indexOf$1,_indexOfInstanceProperty=getDefaultExportFromCjs(indexOf3);function concatUint8Array(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=_filterInstanceProperty(t).call(t,Boolean);var n=new Uint8Array(_reduceInstanceProperty(t).call(t,(function(e,t){return e+t.byteLength}),0)),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set(e,o),o+=e.byteLength})),n}function parse(e){if(!_Array$isArray(e)){for(var t=[],r="",n=0;n<e.length;n++)n%2&&(r=e[n-1]+e[n],t.push(_parseInt$1(r,16)),r="");return t}return _mapInstanceProperty(e).call(e,(function(e){return _parseInt$1(e,16)}))}var anObject$4=anObject$z,regexpFlags=function(){var e=anObject$4(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},call$8=functionCall$1,hasOwn$6=hasOwnProperty_1$1,isPrototypeOf$3=objectIsPrototypeOf$1,regExpFlags$1=regexpFlags,RegExpPrototype$2=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$2||hasOwn$6(e,"flags")||!isPrototypeOf$3(RegExpPrototype$2,e)?t:call$8(regExpFlags$1,e)},getRegExpFlags=regexpGetFlags,flags$6=getRegExpFlags,isPrototypeOf$2=objectIsPrototypeOf$1,flags$5=flags$6,RegExpPrototype$1=RegExp.prototype,flags_1=function(e){return e===RegExpPrototype$1||isPrototypeOf$2(RegExpPrototype$1,e)?flags$5(e):e.flags},parent$h=flags_1,flags$4=parent$h,parent$g=flags$4,flags$3=parent$g,parent$f=flags$3,flags$2=parent$f,flags$1=flags$2,flags=flags$1,_flagsInstanceProperty=getDefaultExportFromCjs(flags),entryVirtual$1=entryVirtual$f,entries$c=entryVirtual$1("Array").entries,parent$e=entries$c,entries$b=parent$e,classof$3=classof$r,hasOwn$5=hasOwnProperty_1$1,isPrototypeOf$1=objectIsPrototypeOf$1,method$1=entries$b,ArrayPrototype$1=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},entries$a=function(e){var t=e.entries;return e===ArrayPrototype$1||isPrototypeOf$1(ArrayPrototype$1,e)&&t===ArrayPrototype$1.entries||hasOwn$5(DOMIterables,classof$3(e))?method$1:t},parent$d=entries$a,entries$9=parent$d,parent$c=entries$9,entries$8=parent$c,entries$7=entries$8,entries$6=entries$7,_entriesInstanceProperty=getDefaultExportFromCjs(entries$6),$$w=_export$1,$find$1=arrayIteration$1.find,FIND$1="find",SKIPS_HOLES$1=!0;FIND$1 in[]&&Array(1)[FIND$1]((function(){SKIPS_HOLES$1=!1})),$$w({target:"Array",proto:!0,forced:SKIPS_HOLES$1},{find:function(e){return $find$1(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual=entryVirtual$f,find$8=entryVirtual("Array").find,isPrototypeOf=objectIsPrototypeOf$1,method=find$8,ArrayPrototype=Array.prototype,find$7=function(e){var t=e.find;return e===ArrayPrototype||isPrototypeOf(ArrayPrototype,e)&&t===ArrayPrototype.find?method:t},parent$b=find$7,find$6=parent$b,parent$a=find$6,find$5=parent$a,parent$9=find$5,find$4=parent$9,find$3=find$4,find$2=find$3,_findInstanceProperty=getDefaultExportFromCjs(find$2),makeBuiltIn=makeBuiltInExports,defineProperty$2=objectDefineProperty,defineBuiltInAccessor$5=function(e,t,r){return r.get&&makeBuiltIn(r.get,t,{getter:!0}),r.set&&makeBuiltIn(r.set,t,{setter:!0}),defineProperty$2.f(e,t,r)},global$7=global$H,DESCRIPTORS$9=descriptors,defineBuiltInAccessor$4=defineBuiltInAccessor$5,regExpFlags=regexpFlags$2,fails$8=fails$M,RegExp$3=global$7.RegExp,RegExpPrototype=RegExp$3.prototype,FORCED$1=DESCRIPTORS$9&&fails$8((function(){var e=!0;try{RegExp$3(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(RegExpPrototype,"flags").get.call(t)!==n||r!==n}));FORCED$1&&defineBuiltInAccessor$4(RegExpPrototype,"flags",{configurable:!0,get:regExpFlags});var toIntegerOrInfinity$1=toIntegerOrInfinity$d,toString$1=toString$b,requireObjectCoercible=requireObjectCoercible$6,$RangeError$3=RangeError,stringRepeat=function(e){var t=toString$1(requireObjectCoercible(this)),r="",n=toIntegerOrInfinity$1(e);if(n<0||n==1/0)throw $RangeError$3("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},$$v=_export,$find=arrayIteration.find,addToUnscopables=addToUnscopables$4,FIND="find",SKIPS_HOLES=!0;FIND in[]&&Array(1)[FIND]((function(){SKIPS_HOLES=!1})),$$v({target:"Array",proto:!0,forced:SKIPS_HOLES},{find:function(e){return $find(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(FIND);var anObject$3=anObject$k,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$3(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$d=functionBindContext,call$7=functionCall,toObject=toObject$j,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$3,isConstructor5=isConstructor$4,lengthOfArrayLike=lengthOfArrayLike$l,createProperty=createProperty$6,getIterator$2=getIterator$5,getIteratorMethod$2=getIteratorMethod$6,$Array=Array,arrayFrom$2=function(e){var t=toObject(e),r=isConstructor5(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=bind$d(o,n>2?arguments[2]:void 0));var a,s,c,l,u,$,d=getIteratorMethod$2(t),A=0;if(!d||this===$Array&&isArrayIteratorMethod(d))for(a=lengthOfArrayLike(t),s=r?new this(a):$Array(a);a>A;A++)$=i?o(t[A],A):t[A],createProperty(s,A,$);else for(u=(l=getIterator$2(t,d)).next,s=r?new this:[];!(c=call$7(u,l)).done;A++)$=i?callWithSafeIterationClosing(l,o,[c.value,A],!0):c.value,createProperty(s,A,$);return s.length=A,s},$$u=_export,global$6=global$H,arrayBufferModule=arrayBuffer,setSpecies$1=setSpecies$4,ARRAY_BUFFER="ArrayBuffer",ArrayBuffer$1=arrayBufferModule[ARRAY_BUFFER],NativeArrayBuffer=global$6[ARRAY_BUFFER];function Concat(e){for(var t=0,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];_forEachInstanceProperty(n).call(n,(function(e){t+=e.length}));var i=new e(t),a=0;return _forEachInstanceProperty(n).call(n,(function(e){i.set(e,a),a+=e.length})),i}$$u({global:!0,constructor:!0,forced:NativeArrayBuffer!==ArrayBuffer$1},{ArrayBuffer:ArrayBuffer$1}),setSpecies$1(ARRAY_BUFFER);var _context21,Buffer$1=function(){function e(){_classCallCheck$1(this,e),this.buffer=new Uint8Array(0)}return _createClass$1(e,[{key:"write",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];_forEachInstanceProperty(r).call(r,(function(t){t?e.buffer=Concat(Uint8Array,e.buffer,t):window.console.warn(t)}))}}],[{key:"writeUint16",value:function(e){return new Uint8Array([e>>8&255,255&e])}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>24,e>>16&255,e>>8&255,255&e])}}]),e}(),UINT32_MAX=Math.pow(2,32)-1,MP4=function(){function e(){_classCallCheck$1(this,e)}return _createClass$1(e,null,[{key:"box",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r=_filterInstanceProperty(r).call(r,Boolean);var o=8+_reduceInstanceProperty(r).call(r,(function(e,t){return e+t.byteLength}),0),i=new Uint8Array(o);i[0]=o>>24&255,i[1]=o>>16&255,i[2]=o>>8&255,i[3]=255&o,i.set(e,4);var a=8;return _forEachInstanceProperty(r).call(r,(function(e){i.set(e,a),a+=e.byteLength})),i}},{key:"ftyp",value:function(t){return _findInstanceProperty(t).call(t,(function(e){return e.type===TrackType.VIDEO&&e.codecType===VideoCodecType.HEVC}))?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){return concatUint8Array(e.ftyp(t),e.moov(t))}},{key:"pssh",value:function(t){var r,n=new Uint8Array(_concatInstanceProperty(r=[1,0,0,0]).call(r,[16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],parse(t.kid),[0,0,0,0]));return e.box(e.types.pssh,n)}},{key:"moov",value:function(t){if(t[0].useEME&&(t[0].encv||t[0].enca)){var r;t[0].pssh||(t[0].pssh={kid:t[0].kid});var n=this.pssh(t[0].pssh);return e.box.apply(e,_concatInstanceProperty(r=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale),e.mvex(t)]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trak(t)}))),[n]))}var o;return e.box.apply(e,_concatInstanceProperty(o=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)]).call(o,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trak(t)}))),[e.mvex(t)]))}},{key:"mvhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.tkhdDuration||0,t.width,t.height),e.mdia(t))}},{key:"tkhd",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,o>>8&255,255&o,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minf(t))}},{key:"mdhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,85,196,0,0]))}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"minf",value:function(t){return e.box(e.types.minf,t.type===TrackType.VIDEO?e.VMHD:e.SMHD,e.DINF,e.stbl(t))}},{key:"stbl",value:function(t){var r=[];return t&&t.ext&&t.ext.stss&&r.push(e.stss(_entriesInstanceProperty(t.ext.stss))),e.box(e.types.stbl,e.stsd(t),e.STTS,r[0],e.STSC,e.STSZ,e.STCO)}},{key:"stsd",value:function(t){var r;return r="audio"===t.type?t.useEME&&t.enca?e.enca(t):e.mp4a(t):t.useEME&&t.encv?e.encv(t):e.avc1hev1(t),e.box(e.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),r)}},{key:"enca",value:function(t){var r=t.enca.channelCount,n=t.enca.sampleRate,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,r,0,16,0,0,0,0,n>>8&255,255&n,0,0]),i=e.esds(t.config),a=e.sinf(t.enca);return e.box(e.types.enca,o,i,a)}},{key:"encv",value:function(t){var r,n,o,i=t.sps.length>0?t.sps[0]:[],a=t.pps.length>0?t.pps[0]:[],s=t.width,c=t.height,l=t.sarRatio[0],u=t.sarRatio[1],$=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d=new Uint8Array(_concatInstanceProperty(n=_concatInstanceProperty(r=_concatInstanceProperty(o=[1,i[1],i[2],i[3],255,225,i.length>>>8&255,255&i.length]).apply(o,_toConsumableArray(i))).call(r,[1,a.length>>>8&255,255&a.length])).apply(n,_toConsumableArray(a))),A=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),p=e.sinf(t.encv),f=new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,u>>24,u>>16&255,u>>8&255,255&u]);return e.box(e.types.encv,$,e.box(e.types.avcC,d),e.box(e.types.btrt,A),p,e.box(e.types.pasp,f))}},{key:"schi",value:function(t){var r=new Uint8Array([]),n=e.tenc(t);return e.box(e.types.schi,r,n)}},{key:"tenc",value:function(t){var r,n=new Uint8Array(_concatInstanceProperty(r=[0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size]).call(r,parse(t.default_KID)));return e.box(e.types.tenc,n)}},{key:"sinf",value:function(t){var r=new Uint8Array([]),n=new Uint8Array([t.data_format.charCodeAt(0),t.data_format.charCodeAt(1),t.data_format.charCodeAt(2),t.data_format.charCodeAt(3)]),o=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),i=e.schi(t);return e.box(e.types.sinf,r,e.box(e.types.frma,n),e.box(e.types.schm,o),i)}},{key:"avc1hev1",value:function(t){var r,n=t.codecType===VideoCodecType.HEVC,o=n?e.types.hvc1:e.types.avc1,i=n?e.hvcC(t):e.avcC(t),a=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i];return n?a.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&a.push(e.pasp(t.sarRatio)),e.box.apply(e,_concatInstanceProperty(r=[o]).call(r,a))}},{key:"avcC",value:function(t){var r,n,o,i,a,s,c=[],l=[];return _forEachInstanceProperty(r=t.sps).call(r,(function(e){s=e.byteLength,c.push(s>>>8&255),c.push(255&s),c.push.apply(c,_toConsumableArray(e))})),_forEachInstanceProperty(n=t.pps).call(n,(function(e){s=e.byteLength,l.push(s>>>8&255),l.push(255&s),l.push.apply(l,_toConsumableArray(e))})),e.box(e.types.avcC,new Uint8Array(_concatInstanceProperty(i=_concatInstanceProperty(o=_concatInstanceProperty(a=[1,c[3],c[4],c[5],255,224|t.sps.length]).apply(a,c)).call(o,[t.pps.length])).apply(i,l)))}},{key:"hvcC",value:function(t){var r=t.hvcC;if(r instanceof ArrayBuffer||r instanceof Uint8Array)return r;var n,o=t.vps,i=t.sps,a=t.pps;if(r){var s=r.generalProfileCompatibilityFlags,c=r.generalConstraintIndicatorFlags,l=(o.length&&1)+(i.length&&1)+(a.length&&1);n=[1,r.generalProfileSpace<<6|r.generalTierFlag<<5|r.generalProfileIdc,s>>>24,s>>>16,s>>>8,s,c[0],c[1],c[2],c[3],c[4],c[5],r.generalLevelIdc,240,0,252,252|r.chromaFormatIdc,248|r.bitDepthLumaMinus8,248|r.bitDepthChromaMinus8,0,0,r.numTemporalLayers<<3|r.temporalIdNested<<2|3,l];var u=function(e){var t;n.push(e.length>>8,e.length),(t=n).push.apply(t,_toConsumableArray(e))};o.length&&(n.push(160,0,o.length),_forEachInstanceProperty(o).call(o,u)),i.length&&(n.push(161,0,i.length),_forEachInstanceProperty(i).call(i,u)),a.length&&(n.push(162,0,a.length),_forEachInstanceProperty(a).call(a,u))}else n=[1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64];return e.box(e.types.hvcC,new Uint8Array(n))}},{key:"pasp",value:function(t){var r=_slicedToArray(t,2),n=r[0],o=r[1];return e.box(e.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o]))}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),t.config.length?e.esds(t.config):void 0)}},{key:"esds",value:function(t){var r,n,o,i=t.length;return e.box(e.types.esds,new Uint8Array(_concatInstanceProperty(r=_concatInstanceProperty(n=_concatInstanceProperty(o=[0,0,0,0,3,23+i,0,0,0,4,15+i,64,21,0,6,0,0,0,218,192,0,0,218,192,5]).call(o,[i])).call(n,t)).call(r,[6,1,2])))}},{key:"mvex",value:function(t){var r;return e.box.apply(e,_concatInstanceProperty(r=[e.types.mvex]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trex(t.id)})))))}},{key:"trex",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trex1",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,2,0,0,0,0,0,0,1,0,0]))}},{key:"trex2",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,4,0,0,0,0,0,2,0,0,0]))}},{key:"moof",value:function(t){var r;return e.box.apply(e,_concatInstanceProperty(r=[e.types.moof,e.mfhd(t[0].samples?t[0].samples[0].gopId:0)]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.traf(t)})))))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"traf",value:function(t){var r,n=e.tfhd(t.id),o=e.tfdt(t,t.baseMediaDecodeTime),i=0;if(t.isVideo&&t.videoSenc&&(r=t.videoSenc,_forEachInstanceProperty(r).call(r,(function(e){i+=8,e.subsamples&&e.subsamples.length&&(i+=2,i+=6*e.subsamples.length)}))),t.videoSencLength=i,t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)){if(t.isVideoEncryption){if(t.isVideo){var a=e.saiz(t),s=e.saio(t),c=e.trun1(t),l=e.senc(t);return e.box(e.types.traf,n,o,a,s,c,l)}if(t.isAudioEncryption){var u=e.sbgp(),$=e.saiz(t),d=e.saio(t),A=e.senc(t),p=e.trun1(t);return e.box(e.types.traf,n,o,u,$,d,A,p)}var f=e.sbgp(),h=e.trun1(t);return e.box(e.types.traf,n,o,f,h)}if(t.isVideo){var y=e.trun1(t);return e.box(e.types.traf,n,o,y)}var _=e.sbgp(),g=e.saiz(t),m=e.saio(t),E=e.senc(t),b=e.trun1(t);return e.box(e.types.traf,n,o,_,g,m,E,b)}var I=e.sdtp(t);return e.box(e.types.traf,n,o,I,e.trun(t.samples,I.byteLength+76))}},{key:"sdtp",value:function(t){var r,n=new Buffer$1;return _forEachInstanceProperty(r=t.samples).call(r,(function(e){n.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))})),e.box(e.types.sdtp,this.extension(0,0),n.buffer)}},{key:"trun1",value:function(t){var r,n=new Buffer$1,o=Buffer$1.writeUint32(t.samples.length),i=null;if(t.isVideo){var a=t.videoSencLength;i=Buffer$1.writeUint32(16*t.samples.length+a+149),!t.isVideoEncryption&&t.isAudioEncryption&&(i=Buffer$1.writeUint32(16*t.samples.length+92))}else{var s=12*t.samples.length+124;t.isAudioEncryption&&(s=12*t.samples.length+8*t.audioSenc.length+177),i=Buffer$1.writeUint32(s)}return _forEachInstanceProperty(r=t.samples).call(r,(function(e){n.write(Buffer$1.writeUint32(e.duration)),n.write(Buffer$1.writeUint32(e.size)),n.write(Buffer$1.writeUint32(e.keyframe?33554432:65536)),t.isVideo&&n.write(Buffer$1.writeUint32(e.cts?e.cts:0))})),e.box(e.types.trun,this.extension(0,_flagsInstanceProperty(t)),o,i,n.buffer)}},{key:"senc",value:function(t){var r=new Buffer$1,n=t.samples.length,o=t.isVideo?16:8,i=t.isVideo?2:0,a=[],s=0;return t.isVideo?(a=t.videoSenc,s=t.videoSencLength):a=t.audioSenc,s=s||o*n,r.write(Buffer$1.writeUint32(16+s),e.types.senc,this.extension(0,i)),r.write(Buffer$1.writeUint32(n)),_forEachInstanceProperty(a).call(a,(function(e){for(var t=0;t<e.InitializationVector.length;t++)r.write(new Uint8Array([e.InitializationVector[t]]));var n;e.subsamples&&e.subsamples.length&&(r.write(Buffer$1.writeUint16(e.subsamples.length)),_forEachInstanceProperty(n=e.subsamples).call(n,(function(e){r.write(Buffer$1.writeUint16(e.BytesOfClearData)),r.write(Buffer$1.writeUint32(e.BytesOfProtectedData))})))})),r.buffer}},{key:"saio",value:function(t){var r=12*t.samples.length+141;!t.isVideo&&t.isAudioEncryption&&(r=149);var n=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saio,n)}},{key:"saiz",value:function(t){var r=t.samples.length,n=new Uint8Array([0,0,0,0,16,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saiz,n)}},{key:"sbgp",value:function(){var t=new Uint8Array([114,111,108,108,0,0,0,1,0,0,1,25,0,0,0,1]);return e.box(e.types.sbgp,this.extension(0,0),t)}},{key:"extension",value:function(e,t){return new Uint8Array([e,t>>16&255,t>>8&255,255&t])}},{key:"tfhd",value:function(t){return e.box(e.types.tfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"tfdt",value:function(t,r){var n=Math.floor(r/(UINT32_MAX+1)),o=Math.floor(r%(UINT32_MAX+1));return t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)?e.box(e.types.tfdt,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o])):e.box(e.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o]))}},{key:"trun",value:function(t,r){var n=t.length,o=12+16*n;r+=8+o;var i=new Uint8Array(o);i.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0);for(var a=0;a<n;a++){var s=t[a],c=s.duration,l=s.size,u=s.flag,$=void 0===u?{}:u,d=s.cts,A=void 0===d?0:d;i.set([c>>>24&255,c>>>16&255,c>>>8&255,255&c,l>>>24&255,l>>>16&255,l>>>8&255,255&l,$.isLeading<<2|(null===$.dependsOn||void 0===$.dependsOn?1:$.dependsOn),$.isDependedOn<<6|$.hasRedundancy<<4|$.paddingValue<<1|(null===$.isNonSyncSample||void 0===$.isNonSyncSample?1:$.isNonSyncSample),61440&$.degradationPriority,15&$.degradationPriority,A>>>24&255,A>>>16&255,A>>>8&255,255&A],12+16*a)}return e.box(e.types.trun,i)}},{key:"moovMP4",value:function(t){var r;return e.box.apply(e,_concatInstanceProperty(r=[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trackMP4(t)})))))}},{key:"trackMP4",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.duration,t.width,t.height),e.mdiaMP4(t))}},{key:"mdiaMP4",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minfMP4(t))}},{key:"minfMP4",value:function(t){return e.box(e.types.minf,t.type===TrackType.VIDEO?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var r,n=t.ext,o=[e.stsd(t),e.stts(n.stts),e.stsc(n.stsc),e.stsz(n.stsz),e.stco(n.stco)];return n.stss.length&&o.push(e.stss(n.stss)),n.ctts.length&&o.push(e.ctts(n.ctts)),e.box.apply(e,_concatInstanceProperty(r=[e.types.stbl]).call(r,o))}},{key:"stts",value:function(t){var r=t.length,n=new Uint8Array(8*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],o),o+=8})),e.box(e.types.stts,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsc",value:function(t){var r=t.length,n=new Uint8Array(12*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){var t=e.firstChunk,r=e.samplesPerChunk,i=e.sampleDescIndex;n.set([t>>24,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i],o),o+=12})),e.box(e.types.stsc,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsz",value:function(t){var r=t.length,n=new Uint8Array(4*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],o),o+=4})),e.box(e.types.stsz,concatUint8Array(new Uint8Array([0,0,0,0,0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stco",value:function(t){var r=t.length,n=new Uint8Array(4*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],o),o+=4})),e.box(e.types.stco,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stss",value:function(t){var r=t.length,n=new Uint8Array(4*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],o),o+=4})),e.box(e.types.stss,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"ctts",value:function(t){var r=t.length,n=new Uint8Array(8*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],o),o+=8})),e.box(e.types.ctts,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"styp",value:function(){return e.box(e.types.styp,new Uint8Array([109,115,100,104,0,0,0,0,109,115,100,104,109,115,105,120]))}},{key:"sidx",value:function(t){var r,n=t.timescale,o=t.samples[0].duration,i=o*t.samples.length,a=t.samples[0].sampleOffset*o,s=8;_forEachInstanceProperty(r=t.samples).call(r,(function(e){s+=e.size}));var c=0;if(t.isVideo){var l,u=0;t.videoSenc&&(l=t.videoSenc),t.isVideo&&_forEachInstanceProperty(l).call(l,(function(e){u+=8,e.subsamples&&e.subsamples.length&&(u+=2,u+=6*e.subsamples.length)})),t.videoSencLength=u,c=s+141+16*t.samples.length+u,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(c=s+16*t.samples.length+84)}else c=s+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(c=s+169+12*t.samples.length+8*t.audioSenc.length);var $=new Uint8Array([0,0,0,0,0,0,0,255&t.id,n>>24&255,n>>16&255,n>>8&255,255&n,a>>24&255,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,1,0,c>>16&255,c>>8&255,255&c,i>>24&255,i>>16&255,i>>8&255,255&i,144,0,0,0]);return e.box(e.types.sidx,$)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();_defineProperty$1(MP4,"types",_reduceInstanceProperty(_context21=["avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trex","tkhd","vmhd","smhd","ctts","stss","styp","pssh","sidx","sbgp","saiz","saio","senc","trun","encv","enca","sinf","btrt","frma","tenc","schm","schi","mehd","fiel","sdtp"]).call(_context21,(function(e,t){return e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)],e}),_Object$create(null))),_defineProperty$1(MP4,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),_defineProperty$1(MP4,"FTYPAVC1",MP4.box(MP4.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),_defineProperty$1(MP4,"FTYPHEV1",MP4.box(MP4.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),_defineProperty$1(MP4,"DINF",MP4.box(MP4.types.dinf,MP4.box(MP4.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),_defineProperty$1(MP4,"VMHD",MP4.box(MP4.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),_defineProperty$1(MP4,"SMHD",MP4.box(MP4.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),_defineProperty$1(MP4,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),_defineProperty$1(MP4,"STTS",MP4.box(MP4.types.stts,MP4.StblTable)),_defineProperty$1(MP4,"STSC",MP4.box(MP4.types.stsc,MP4.StblTable)),_defineProperty$1(MP4,"STSZ",MP4.box(MP4.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),_defineProperty$1(MP4,"STCO",MP4.box(MP4.types.stco,MP4.StblTable));var Logger$1=function(){function e(t,r){_classCallCheck$1(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=r}return _createClass$1(e,[{key:"debug",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).debug.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"log",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).log.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).warn.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"error",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).error.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();_defineProperty$1(Logger$1,"disabled",!0);var FMP4Remuxer=function(){function e(t,r,n){_classCallCheck$1(this,e),this.videoTrack=t,this.audioTrack=r;var o=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=o&&Number(o[1])<50,this.log=new Logger$1("FMP4Remuxer",!n||!n.openLog||!n.openLog)}return _createClass$1(e,[{key:"remux",value:function(){var e,t,r,n,o,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.videoTrack,c=this.audioTrack,l=s.exist(),u=c.exist(),$=[];return i&&(a&&a.initMerge?(l&&$.push(this.videoTrack),u&&$.push(this.audioTrack),r=MP4.initSegment($)):(l&&(e=MP4.initSegment([this.videoTrack])),u&&(t=MP4.initSegment([this.audioTrack])))),l&&s.hasSample()&&(n=this._remuxVideo()),u&&c.hasSample()&&(o=this._remuxAudio()),s.samples=[],c.samples=[],{initSegment:r,videoInitSegment:e,audioInitSegment:t,videoSegment:n,audioSegment:o}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,r=0;_forEachInstanceProperty(t).call(t,(function(e){var t;r+=_reduceInstanceProperty(t=e.units).call(t,(function(e,t){return e+t.byteLength}),0),r+=4*e.units.length}));for(var n,o=new Uint8Array(r),i=new DataView(o.buffer),a=function(e,r,a,s){var c;s=t[e];var u=0;_forEachInstanceProperty(c=s.units).call(c,(function(e){i.setUint32(a,e.byteLength),a+=4,o.set(e,a),a+=e.byteLength,u+=4+e.byteLength})),s.size=u,l=a,n=s},s=0,c=t.length,l=0;s<c;s++)a(s,0,l,n);var u=MP4.mdat(o);return concatUint8Array(MP4.moof([e]),u)}},{key:"_remuxAudio",value:function(){var e,t,r=this.audioTrack,n=new Uint8Array(_reduceInstanceProperty(e=r.samples).call(e,(function(e,t){return e+t.size}),0));_reduceInstanceProperty(t=r.samples).call(t,(function(e,t){return n.set(t.data,e),e+t.size}),0);var o=MP4.mdat(n);return concatUint8Array(MP4.moof([r]),o)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),MP4Remuxer=function(){function e(t,r){_classCallCheck$1(this,e),this.videoTrack=t,this.audioTrack=r}return _createClass$1(e,[{key:"remux",value:function(e,t){this.videoTrack=e||this.videoTrack,this.audioTrack=t||this.audioTrack;var r,n,o=(null==e?void 0:e.exist())&&(null==e?void 0:e.hasSample()),i=(null==t?void 0:t.exist())&&(null==t?void 0:t.hasSample());return o&&i?r=this._remuxMix(e,t):o?r=this._remuxTrack(e):i&&(n=this._remuxTrack(t)),e&&(e.samples=[]),t&&(t.samples=[]),{videoSegment:r,audioSegment:n}}},{key:"_remuxMix",value:function(e,t){var r=MP4.ftyp([e,t]),n=this._remuxData(e,r.byteLength+8),o=n.mdatData,i=n.chunkOffset,a=this._remuxData(t,i).mdatData,s=MP4.mdat(concatUint8Array(o,a)),c=MP4.moovMP4([e,t]);return e.ext=void 0,t.ext=void 0,e.samples=[],t.samples=[],concatUint8Array(r,s,c)}},{key:"_remuxTrack",value:function(e){var t=MP4.ftyp([e]),r=this._remuxData(e,t.byteLength+8).mdatData,n=MP4.mdat(r),o=MP4.moovMP4([e]);return e.ext=void 0,e.samples=[],concatUint8Array(t,n,o)}},{key:"_remuxData",value:function(e,t){var r=e.type===TrackType.VIDEO,n=e.samples,o=0;r?_forEachInstanceProperty(n).call(n,(function(e){var t;o+=_reduceInstanceProperty(t=e.units).call(t,(function(e,t){return e+t.byteLength}),0),o+=4*e.units.length})):o=_reduceInstanceProperty(n).call(n,(function(e,t){return e+t.size}),0);for(var i,a=new Uint8Array(o),s=new DataView(a.buffer),c=e.ext={stts:[],stsc:[],stsz:[],stco:[],stss:[],ctts:[]},l=0,u=0,$=n.length,d=0;d<$;d++){u+=(i=n[d]).duration;var A,p=r?0:i.size;if(r)_forEachInstanceProperty(A=i.units).call(A,(function(e){s.setUint32(l,e.byteLength),l+=4,a.set(e,l),l+=e.byteLength,p+=4+e.byteLength}));else a.set(i.data,l),l+=p;i.size=p,c.stsz.push(p),r&&this._fillCttsSamples(c.ctts,i.cts),this._fillSttsSamples(c.stts,i,n[d+1]),this._fillStcoSamples(c.stco,d,1,t),t+=p,r&&i.keyframe&&c.stss.push(d+1)}return e.duration=u,this._fillStscSamples(c.stsc,$,1),{mdatData:a,chunkOffset:t}}},{key:"_fillSttsSamples",value:function(e,t,r){var n=e[e.length-1];r?n&&n.value===t.duration?n.count++:e.push({value:t.duration,count:1}):n?n.count++:e.push({value:40,count:1})}},{key:"_fillCttsSamples",value:function(e,t){var r=e[e.length-1];r&&r.value===t?r.count++:e.push({value:t,count:1})}},{key:"_fillStcoSamples",value:function(e,t,r,n){t%r||e.push(n)}},{key:"_fillStscSamples",value:function(e,t,r){if(t<=r)e.push({firstChunk:1,samplesPerChunk:t,sampleDescIndex:1});else{var n=Math.floor(t/r),o=t%r;e.push({firstChunk:1,samplesPerChunk:r,sampleDescIndex:1}),o&&e.push({firstChunk:n+1,samplesPerChunk:o,sampleDescIndex:1})}}}]),e}(),fails$7=fails$1b,wellKnownSymbol$3=wellKnownSymbol$N,DESCRIPTORS$8=descriptors$1,IS_PURE$1=isPure$1,ITERATOR$3=wellKnownSymbol$3("iterator"),urlConstructorDetection$1=!fails$7((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE$1&&!e.toJSON||!t.size&&(IS_PURE$1||!DESCRIPTORS$8)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$3]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),uncurryThis$a=functionUncurryThis$1,maxInt$1=2147483647,base$1=36,tMin$1=1,tMax$1=26,skew$1=38,damp$1=700,initialBias$1=72,initialN$1=128,delimiter$1="-",regexNonASCII$1=/[^\0-\u007E]/,regexSeparators$1=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR$1="Overflow: input needs wider integers to process",baseMinusTMin$1=base$1-tMin$1,$RangeError$2=RangeError,exec$3=uncurryThis$a(regexSeparators$1.exec),floor$4=Math.floor,fromCharCode$1=String.fromCharCode,charCodeAt$1=uncurryThis$a("".charCodeAt),join$5=uncurryThis$a([].join),push$9=uncurryThis$a([].push),replace$5=uncurryThis$a("".replace),split$5=uncurryThis$a("".split),toLowerCase$3=uncurryThis$a("".toLowerCase),ucs2decode$1=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=charCodeAt$1(e,r++);if(o>=55296&&o<=56319&&r<n){var i=charCodeAt$1(e,r++);56320==(64512&i)?push$9(t,((1023&o)<<10)+(1023&i)+65536):(push$9(t,o),r--)}else push$9(t,o)}return t},digitToBasic$1=function(e){return e+22+75*(e<26)},adapt$1=function(e,t,r){var n=0;for(e=r?floor$4(e/damp$1):e>>1,e+=floor$4(e/t);e>baseMinusTMin$1*tMax$1>>1;)e=floor$4(e/baseMinusTMin$1),n+=base$1;return floor$4(n+(baseMinusTMin$1+1)*e/(e+skew$1))},encode$1=function(e){var t,r,n=[],o=(e=ucs2decode$1(e)).length,i=initialN$1,a=0,s=initialBias$1;for(t=0;t<e.length;t++)(r=e[t])<128&&push$9(n,fromCharCode$1(r));var c=n.length,l=c;for(c&&push$9(n,delimiter$1);l<o;){var u=maxInt$1;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<u&&(u=r);var $=l+1;if(u-i>floor$4((maxInt$1-a)/$))throw $RangeError$2(OVERFLOW_ERROR$1);for(a+=(u-i)*$,i=u,t=0;t<e.length;t++){if((r=e[t])<i&&++a>maxInt$1)throw $RangeError$2(OVERFLOW_ERROR$1);if(r==i){for(var d=a,A=base$1;;){var p=A<=s?tMin$1:A>=s+tMax$1?tMax$1:A-s;if(d<p)break;var f=d-p,h=base$1-p;push$9(n,fromCharCode$1(digitToBasic$1(p+f%h))),d=floor$4(f/h),A+=base$1}push$9(n,fromCharCode$1(digitToBasic$1(d))),s=adapt$1(a,$,l==c),a=0,l++}}a++,i++}return join$5(n,"")},stringPunycodeToAscii$1=function(e){var t,r,n=[],o=split$5(replace$5(toLowerCase$3(e),regexSeparators$1,"."),".");for(t=0;t<o.length;t++)r=o[t],push$9(n,exec$3(regexNonASCII$1,r)?"xn--"+encode$1(r):r);return join$5(n,".")},defineBuiltIn$4=defineBuiltIn$n,defineBuiltIns$3=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn$4(e,n,t[n],r);return e},$$t=_export$1,global$5=global$13,call$6=functionCall$1,uncurryThis$9=functionUncurryThis$1,DESCRIPTORS$7=descriptors$1,USE_NATIVE_URL$4=urlConstructorDetection$1,defineBuiltIn$3=defineBuiltIn$n,defineBuiltInAccessor$3=defineBuiltInAccessor$8,defineBuiltIns$2=defineBuiltIns$3,setToStringTag$4=setToStringTag$g,createIteratorConstructor$1=iteratorCreateConstructor$1,InternalStateModule$5=internalState$1,anInstance$5=anInstance$b,isCallable$5=isCallable$S,hasOwn$4=hasOwnProperty_1$1,bind$c=functionBindContext$1,classof$2=classof$r,anObject$2=anObject$z,isObject$4=isObject$A,$toString$3=toString$o,create$2=objectCreate$1,createPropertyDescriptor$1=createPropertyDescriptor$f,getIterator$1=getIterator$8,getIteratorMethod$1=getIteratorMethod$g,validateArgumentsLength$4=validateArgumentsLength$9,wellKnownSymbol$2=wellKnownSymbol$N,arraySort$1=arraySort$2,ITERATOR$2=wellKnownSymbol$2("iterator"),URL_SEARCH_PARAMS$1="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR$1=URL_SEARCH_PARAMS$1+"Iterator",setInternalState$5=InternalStateModule$5.set,getInternalParamsState$1=InternalStateModule$5.getterFor(URL_SEARCH_PARAMS$1),getInternalIteratorState$1=InternalStateModule$5.getterFor(URL_SEARCH_PARAMS_ITERATOR$1),getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,safeGetBuiltIn$1=function(e){if(!DESCRIPTORS$7)return global$5[e];var t=getOwnPropertyDescriptor$1(global$5,e);return t&&t.value},nativeFetch$1=safeGetBuiltIn$1("fetch"),NativeRequest$1=safeGetBuiltIn$1("Request"),Headers$1=safeGetBuiltIn$1("Headers"),RequestPrototype$1=NativeRequest$1&&NativeRequest$1.prototype,HeadersPrototype$1=Headers$1&&Headers$1.prototype,RegExp$2=global$5.RegExp,TypeError$4=global$5.TypeError,decodeURIComponent$1=global$5.decodeURIComponent,encodeURIComponent$2=global$5.encodeURIComponent,charAt$3=uncurryThis$9("".charAt),join$4=uncurryThis$9([].join),push$8=uncurryThis$9([].push),replace$4=uncurryThis$9("".replace),shift$3=uncurryThis$9([].shift),splice$1=uncurryThis$9([].splice),split$4=uncurryThis$9("".split),stringSlice$4=uncurryThis$9("".slice),plus$1=/\+/g,sequences$1=Array(4),percentSequence$1=function(e){return sequences$1[e-1]||(sequences$1[e-1]=RegExp$2("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode$1=function(e){try{return decodeURIComponent$1(e)}catch(t){return e}},deserialize$1=function(e){var t=replace$4(e,plus$1," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace$4(t,percentSequence$1(r--),percentDecode$1);return t}},find$1=/[!'()~]|%20/g,replacements$1={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer$1=function(e){return replacements$1[e]},serialize$1=function(e){return replace$4(encodeURIComponent$2(e),find$1,replacer$1)},URLSearchParamsIterator$1=createIteratorConstructor$1((function(e,t){setInternalState$5(this,{type:URL_SEARCH_PARAMS_ITERATOR$1,iterator:getIterator$1(getInternalParamsState$1(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState$1(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState$1=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$4(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$3(e,0)?stringSlice$4(e,1):e:$toString$3(e)))};URLSearchParamsState$1.prototype={type:URL_SEARCH_PARAMS$1,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=getIteratorMethod$1(e);if(c)for(r=(t=getIterator$1(e,c)).next;!(n=call$6(r,t)).done;){if(i=(o=getIterator$1(anObject$2(n.value))).next,(a=call$6(i,o)).done||(s=call$6(i,o)).done||!call$6(i,o).done)throw TypeError$4("Expected sequence with length 2");push$8(this.entries,{key:$toString$3(a.value),value:$toString$3(s.value)})}else for(var l in e)hasOwn$4(e,l)&&push$8(this.entries,{key:l,value:$toString$3(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=split$4(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split$4(t,"="),push$8(this.entries,{key:deserialize$1(shift$3(r)),value:deserialize$1(join$4(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push$8(r,serialize$1(e.key)+"="+serialize$1(e.value));return join$4(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor$1=function(){anInstance$5(this,URLSearchParamsPrototype$1);var e=setInternalState$5(this,new URLSearchParamsState$1(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$7||(this.length=e.entries.length)},URLSearchParamsPrototype$1=URLSearchParamsConstructor$1.prototype;if(defineBuiltIns$2(URLSearchParamsPrototype$1,{append:function(e,t){validateArgumentsLength$4(arguments.length,2);var r=getInternalParamsState$1(this);push$8(r.entries,{key:$toString$3(e),value:$toString$3(t)}),DESCRIPTORS$7||this.length++,r.updateURL()},delete:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this),r=t.entries,n=$toString$3(e),o=0;o<r.length;)r[o].key===n?splice$1(r,o,1):o++;DESCRIPTORS$7||(this.length=r.length),t.updateURL()},get:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this).entries,r=$toString$3(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this).entries,r=$toString$3(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push$8(n,t[o].value);return n},has:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this).entries,r=$toString$3(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$4(arguments.length,1);for(var r,n=getInternalParamsState$1(this),o=n.entries,i=!1,a=$toString$3(e),s=$toString$3(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?splice$1(o,c--,1):(i=!0,r.value=s));i||push$8(o,{key:a,value:s}),DESCRIPTORS$7||(this.length=o.length),n.updateURL()},sort:function(){var e=getInternalParamsState$1(this);arraySort$1(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState$1(this).entries,n=bind$c(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator$1(this,"keys")},values:function(){return new URLSearchParamsIterator$1(this,"values")},entries:function(){return new URLSearchParamsIterator$1(this,"entries")}},{enumerable:!0}),defineBuiltIn$3(URLSearchParamsPrototype$1,ITERATOR$2,URLSearchParamsPrototype$1.entries,{name:"entries"}),defineBuiltIn$3(URLSearchParamsPrototype$1,"toString",(function(){return getInternalParamsState$1(this).serialize()}),{enumerable:!0}),DESCRIPTORS$7&&defineBuiltInAccessor$3(URLSearchParamsPrototype$1,"size",{get:function(){return getInternalParamsState$1(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag$4(URLSearchParamsConstructor$1,URL_SEARCH_PARAMS$1),$$t({global:!0,constructor:!0,forced:!USE_NATIVE_URL$4},{URLSearchParams:URLSearchParamsConstructor$1}),!USE_NATIVE_URL$4&&isCallable$5(Headers$1)){var headersHas$1=uncurryThis$9(HeadersPrototype$1.has),headersSet$1=uncurryThis$9(HeadersPrototype$1.set),wrapRequestOptions$1=function(e){if(isObject$4(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS$1)return t=e.headers?new Headers$1(e.headers):new Headers$1,headersHas$1(t,"content-type")||headersSet$1(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$2(e,{body:createPropertyDescriptor$1(0,$toString$3(r)),headers:createPropertyDescriptor$1(0,t)})}return e};if(isCallable$5(nativeFetch$1)&&$$t({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch$1(e,arguments.length>1?wrapRequestOptions$1(arguments[1]):{})}}),isCallable$5(NativeRequest$1)){var RequestConstructor$1=function(e){return anInstance$5(this,RequestPrototype$1),new NativeRequest$1(e,arguments.length>1?wrapRequestOptions$1(arguments[1]):{})};RequestPrototype$1.constructor=RequestConstructor$1,RequestConstructor$1.prototype=RequestPrototype$1,$$t({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor$1})}}var EOF$1,web_urlSearchParams_constructor$1={URLSearchParams:URLSearchParamsConstructor$1,getState:getInternalParamsState$1},$$s=_export$1,DESCRIPTORS$6=descriptors$1,USE_NATIVE_URL$3=urlConstructorDetection$1,global$4=global$13,bind$b=functionBindContext$1,uncurryThis$8=functionUncurryThis$1,defineBuiltIn$2=defineBuiltIn$n,defineBuiltInAccessor$2=defineBuiltInAccessor$8,anInstance$4=anInstance$b,hasOwn$3=hasOwnProperty_1$1,assign$1=objectAssign$1,arrayFrom$1=arrayFrom$3,arraySlice$2=arraySliceSimple$1,codeAt$1=stringMultibyte$1.codeAt,toASCII$1=stringPunycodeToAscii$1,$toString$2=toString$o,setToStringTag$3=setToStringTag$g,validateArgumentsLength$3=validateArgumentsLength$9,URLSearchParamsModule$1=web_urlSearchParams_constructor$1,InternalStateModule$4=internalState$1,setInternalState$4=InternalStateModule$4.set,getInternalURLState$1=InternalStateModule$4.getterFor("URL"),URLSearchParams$2=URLSearchParamsModule$1.URLSearchParams,getInternalSearchParamsState$1=URLSearchParamsModule$1.getState,NativeURL$1=global$4.URL,TypeError$3=global$4.TypeError,parseInt$2=global$4.parseInt,floor$3=Math.floor,pow$2=Math.pow,charAt$2=uncurryThis$8("".charAt),exec$2=uncurryThis$8(/./.exec),join$3=uncurryThis$8([].join),numberToString$1=uncurryThis$8(1..toString),pop$1=uncurryThis$8([].pop),push$7=uncurryThis$8([].push),replace$3=uncurryThis$8("".replace),shift$2=uncurryThis$8([].shift),split$3=uncurryThis$8("".split),stringSlice$3=uncurryThis$8("".slice),toLowerCase$2=uncurryThis$8("".toLowerCase),unshift$1=uncurryThis$8([].unshift),INVALID_AUTHORITY$1="Invalid authority",INVALID_SCHEME$1="Invalid scheme",INVALID_HOST$1="Invalid host",INVALID_PORT$1="Invalid port",ALPHA$1=/[a-z]/i,ALPHANUMERIC$1=/[\d+-.a-z]/i,DIGIT$1=/\d/,HEX_START$1=/^0x/i,OCT$1=/^[0-7]+$/,DEC$1=/^\d+$/,HEX$1=/^[\da-f]+$/i,FORBIDDEN_HOST_CODE_POINT$1=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT$1=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+/,TRAILING_C0_CONTROL_OR_SPACE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,TAB_AND_NEW_LINE$1=/[\t\n\r]/g,parseIPv4$1=function(e){var t,r,n,o,i,a,s,c=split$3(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==charAt$2(o,0)&&(i=exec$2(HEX_START$1,o)?16:8,o=stringSlice$3(o,8==i?1:2)),""===o)a=0;else{if(!exec$2(10==i?DEC$1:8==i?OCT$1:HEX$1,o))return e;a=parseInt$2(o,i)}push$7(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=pow$2(256,5-t))return null}else if(a>255)return null;for(s=pop$1(r),n=0;n<r.length;n++)s+=r[n]*pow$2(256,3-n);return s},parseIPv6$1=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,$=0,d=function(){return charAt$2(e,$)};if(":"==d()){if(":"!=charAt$2(e,1))return;$+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=r=0;r<4&&exec$2(HEX$1,d());)t=16*t+parseInt$2(d(),16),$++,r++;if("."==d()){if(0==r)return;if($-=r,l>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;$++}if(!exec$2(DIGIT$1,d()))return;for(;exec$2(DIGIT$1,d());){if(i=parseInt$2(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;$++}c[l]=256*c[l]+o,2!=++n&&4!=n||l++}if(4!=n)return;break}if(":"==d()){if($++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;$++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},findLongestZeroSequence$1=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t},serializeHost$1=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)unshift$1(t,e%256),e=floor$3(e/256);return join$3(t,".")}if("object"==typeof e){for(t="",n=findLongestZeroSequence$1(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=numberToString$1(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},C0ControlPercentEncodeSet$1={},fragmentPercentEncodeSet$1=assign$1({},C0ControlPercentEncodeSet$1,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet$1=assign$1({},fragmentPercentEncodeSet$1,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet$1=assign$1({},pathPercentEncodeSet$1,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode$1=function(e,t){var r=codeAt$1(e,0);return r>32&&r<127&&!hasOwn$3(t,e)?e:encodeURIComponent(e)},specialSchemes$1={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter$1=function(e,t){var r;return 2==e.length&&exec$2(ALPHA$1,charAt$2(e,0))&&(":"==(r=charAt$2(e,1))||!t&&"|"==r)},startsWithWindowsDriveLetter$1=function(e){var t;return e.length>1&&isWindowsDriveLetter$1(stringSlice$3(e,0,2))&&(2==e.length||"/"===(t=charAt$2(e,2))||"\\"===t||"?"===t||"#"===t)},isSingleDot$1=function(e){return"."===e||"%2e"===toLowerCase$2(e)},isDoubleDot$1=function(e){return".."===(e=toLowerCase$2(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},SCHEME_START$1={},SCHEME$1={},NO_SCHEME$1={},SPECIAL_RELATIVE_OR_AUTHORITY$1={},PATH_OR_AUTHORITY$1={},RELATIVE$1={},RELATIVE_SLASH$1={},SPECIAL_AUTHORITY_SLASHES$1={},SPECIAL_AUTHORITY_IGNORE_SLASHES$1={},AUTHORITY$1={},HOST$1={},HOSTNAME$1={},PORT$1={},FILE$1={},FILE_SLASH$1={},FILE_HOST$1={},PATH_START$1={},PATH$1={},CANNOT_BE_A_BASE_URL_PATH$1={},QUERY$1={},FRAGMENT$1={},URLState$1=function(e,t,r){var n,o,i,a=$toString$2(e);if(t){if(o=this.parse(a))throw TypeError$3(o);this.searchParams=null}else{if(void 0!==r&&(n=new URLState$1(r,!0)),o=this.parse(a,null,n))throw TypeError$3(o);(i=getInternalSearchParamsState$1(new URLSearchParams$2)).bindURL(this),this.searchParams=i}};URLState$1.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s=this,c=t||SCHEME_START$1,l=0,u="",$=!1,d=!1,A=!1;for(e=$toString$2(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=replace$3(e,LEADING_C0_CONTROL_OR_SPACE,""),e=replace$3(e,TRAILING_C0_CONTROL_OR_SPACE,"$1")),e=replace$3(e,TAB_AND_NEW_LINE$1,""),n=arrayFrom$1(e);l<=n.length;){switch(o=n[l],c){case SCHEME_START$1:if(!o||!exec$2(ALPHA$1,o)){if(t)return INVALID_SCHEME$1;c=NO_SCHEME$1;continue}u+=toLowerCase$2(o),c=SCHEME$1;break;case SCHEME$1:if(o&&(exec$2(ALPHANUMERIC$1,o)||"+"==o||"-"==o||"."==o))u+=toLowerCase$2(o);else{if(":"!=o){if(t)return INVALID_SCHEME$1;u="",c=NO_SCHEME$1,l=0;continue}if(t&&(s.isSpecial()!=hasOwn$3(specialSchemes$1,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&specialSchemes$1[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?c=FILE$1:s.isSpecial()&&r&&r.scheme==s.scheme?c=SPECIAL_RELATIVE_OR_AUTHORITY$1:s.isSpecial()?c=SPECIAL_AUTHORITY_SLASHES$1:"/"==n[l+1]?(c=PATH_OR_AUTHORITY$1,l++):(s.cannotBeABaseURL=!0,push$7(s.path,""),c=CANNOT_BE_A_BASE_URL_PATH$1)}break;case NO_SCHEME$1:if(!r||r.cannotBeABaseURL&&"#"!=o)return INVALID_SCHEME$1;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=arraySlice$2(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=FRAGMENT$1;break}c="file"==r.scheme?FILE$1:RELATIVE$1;continue;case SPECIAL_RELATIVE_OR_AUTHORITY$1:if("/"!=o||"/"!=n[l+1]){c=RELATIVE$1;continue}c=SPECIAL_AUTHORITY_IGNORE_SLASHES$1,l++;break;case PATH_OR_AUTHORITY$1:if("/"==o){c=AUTHORITY$1;break}c=PATH$1;continue;case RELATIVE$1:if(s.scheme=r.scheme,o==EOF$1)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=RELATIVE_SLASH$1;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.query="",c=QUERY$1;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.path.length--,c=PATH$1;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.query=r.query,s.fragment="",c=FRAGMENT$1}break;case RELATIVE_SLASH$1:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=PATH$1;continue}c=AUTHORITY$1}else c=SPECIAL_AUTHORITY_IGNORE_SLASHES$1;break;case SPECIAL_AUTHORITY_SLASHES$1:if(c=SPECIAL_AUTHORITY_IGNORE_SLASHES$1,"/"!=o||"/"!=charAt$2(u,l+1))continue;l++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES$1:if("/"!=o&&"\\"!=o){c=AUTHORITY$1;continue}break;case AUTHORITY$1:if("@"==o){$&&(u="%40"+u),$=!0,i=arrayFrom$1(u);for(var p=0;p<i.length;p++){var f=i[p];if(":"!=f||A){var h=percentEncode$1(f,userinfoPercentEncodeSet$1);A?s.password+=h:s.username+=h}else A=!0}u=""}else if(o==EOF$1||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if($&&""==u)return INVALID_AUTHORITY$1;l-=arrayFrom$1(u).length+1,u="",c=HOST$1}else u+=o;break;case HOST$1:case HOSTNAME$1:if(t&&"file"==s.scheme){c=FILE_HOST$1;continue}if(":"!=o||d){if(o==EOF$1||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==u)return INVALID_HOST$1;if(t&&""==u&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(u))return a;if(u="",c=PATH_START$1,t)return;continue}"["==o?d=!0:"]"==o&&(d=!1),u+=o}else{if(""==u)return INVALID_HOST$1;if(a=s.parseHost(u))return a;if(u="",c=PORT$1,t==HOSTNAME$1)return}break;case PORT$1:if(!exec$2(DIGIT$1,o)){if(o==EOF$1||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=u){var y=parseInt$2(u,10);if(y>65535)return INVALID_PORT$1;s.port=s.isSpecial()&&y===specialSchemes$1[s.scheme]?null:y,u=""}if(t)return;c=PATH_START$1;continue}return INVALID_PORT$1}u+=o;break;case FILE$1:if(s.scheme="file","/"==o||"\\"==o)c=FILE_SLASH$1;else{if(!r||"file"!=r.scheme){c=PATH$1;continue}if(o==EOF$1)s.host=r.host,s.path=arraySlice$2(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=arraySlice$2(r.path),s.query="",c=QUERY$1;else{if("#"!=o){startsWithWindowsDriveLetter$1(join$3(arraySlice$2(n,l),""))||(s.host=r.host,s.path=arraySlice$2(r.path),s.shortenPath()),c=PATH$1;continue}s.host=r.host,s.path=arraySlice$2(r.path),s.query=r.query,s.fragment="",c=FRAGMENT$1}}break;case FILE_SLASH$1:if("/"==o||"\\"==o){c=FILE_HOST$1;break}r&&"file"==r.scheme&&!startsWithWindowsDriveLetter$1(join$3(arraySlice$2(n,l),""))&&(isWindowsDriveLetter$1(r.path[0],!0)?push$7(s.path,r.path[0]):s.host=r.host),c=PATH$1;continue;case FILE_HOST$1:if(o==EOF$1||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&isWindowsDriveLetter$1(u))c=PATH$1;else if(""==u){if(s.host="",t)return;c=PATH_START$1}else{if(a=s.parseHost(u))return a;if("localhost"==s.host&&(s.host=""),t)return;u="",c=PATH_START$1}continue}u+=o;break;case PATH_START$1:if(s.isSpecial()){if(c=PATH$1,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=EOF$1&&(c=PATH$1,"/"!=o))continue}else s.fragment="",c=FRAGMENT$1;else s.query="",c=QUERY$1;break;case PATH$1:if(o==EOF$1||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(isDoubleDot$1(u)?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||push$7(s.path,"")):isSingleDot$1(u)?"/"==o||"\\"==o&&s.isSpecial()||push$7(s.path,""):("file"==s.scheme&&!s.path.length&&isWindowsDriveLetter$1(u)&&(s.host&&(s.host=""),u=charAt$2(u,0)+":"),push$7(s.path,u)),u="","file"==s.scheme&&(o==EOF$1||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)shift$2(s.path);"?"==o?(s.query="",c=QUERY$1):"#"==o&&(s.fragment="",c=FRAGMENT$1)}else u+=percentEncode$1(o,pathPercentEncodeSet$1);break;case CANNOT_BE_A_BASE_URL_PATH$1:"?"==o?(s.query="",c=QUERY$1):"#"==o?(s.fragment="",c=FRAGMENT$1):o!=EOF$1&&(s.path[0]+=percentEncode$1(o,C0ControlPercentEncodeSet$1));break;case QUERY$1:t||"#"!=o?o!=EOF$1&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":percentEncode$1(o,C0ControlPercentEncodeSet$1)):(s.fragment="",c=FRAGMENT$1);break;case FRAGMENT$1:o!=EOF$1&&(s.fragment+=percentEncode$1(o,fragmentPercentEncodeSet$1))}l++}},parseHost:function(e){var t,r,n;if("["==charAt$2(e,0)){if("]"!=charAt$2(e,e.length-1))return INVALID_HOST$1;if(!(t=parseIPv6$1(stringSlice$3(e,1,-1))))return INVALID_HOST$1;this.host=t}else if(this.isSpecial()){if(e=toASCII$1(e),exec$2(FORBIDDEN_HOST_CODE_POINT$1,e))return INVALID_HOST$1;if(null===(t=parseIPv4$1(e)))return INVALID_HOST$1;this.host=t}else{if(exec$2(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT$1,e))return INVALID_HOST$1;for(t="",r=arrayFrom$1(e),n=0;n<r.length;n++)t+=percentEncode$1(r[n],C0ControlPercentEncodeSet$1);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return hasOwn$3(specialSchemes$1,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&isWindowsDriveLetter$1(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=r+(n?":"+n:"")+"@"),l+=serializeHost$1(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+join$3(a,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw TypeError$3(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new URLConstructor$1(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+serializeHost$1(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse($toString$2(e)+":",SCHEME_START$1)},getUsername:function(){return this.username},setUsername:function(e){var t=arrayFrom$1($toString$2(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=percentEncode$1(t[r],userinfoPercentEncodeSet$1)}},getPassword:function(){return this.password},setPassword:function(e){var t=arrayFrom$1($toString$2(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=percentEncode$1(t[r],userinfoPercentEncodeSet$1)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?serializeHost$1(e):serializeHost$1(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,HOST$1)},getHostname:function(){var e=this.host;return null===e?"":serializeHost$1(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,HOSTNAME$1)},getPort:function(){var e=this.port;return null===e?"":$toString$2(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=$toString$2(e))?this.port=null:this.parse(e,PORT$1))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+join$3(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,PATH_START$1))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=$toString$2(e))?this.query=null:("?"==charAt$2(e,0)&&(e=stringSlice$3(e,1)),this.query="",this.parse(e,QUERY$1)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=$toString$2(e))?("#"==charAt$2(e,0)&&(e=stringSlice$3(e,1)),this.fragment="",this.parse(e,FRAGMENT$1)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor$1=function(e){var t=anInstance$4(this,URLPrototype$1),r=validateArgumentsLength$3(arguments.length,1)>1?arguments[1]:void 0,n=setInternalState$4(t,new URLState$1(e,!1,r));DESCRIPTORS$6||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},URLPrototype$1=URLConstructor$1.prototype,accessorDescriptor$1=function(e,t){return{get:function(){return getInternalURLState$1(this)[e]()},set:t&&function(e){return getInternalURLState$1(this)[t](e)},configurable:!0,enumerable:!0}};if(DESCRIPTORS$6&&(defineBuiltInAccessor$2(URLPrototype$1,"href",accessorDescriptor$1("serialize","setHref")),defineBuiltInAccessor$2(URLPrototype$1,"origin",accessorDescriptor$1("getOrigin")),defineBuiltInAccessor$2(URLPrototype$1,"protocol",accessorDescriptor$1("getProtocol","setProtocol")),defineBuiltInAccessor$2(URLPrototype$1,"username",accessorDescriptor$1("getUsername","setUsername")),defineBuiltInAccessor$2(URLPrototype$1,"password",accessorDescriptor$1("getPassword","setPassword")),defineBuiltInAccessor$2(URLPrototype$1,"host",accessorDescriptor$1("getHost","setHost")),defineBuiltInAccessor$2(URLPrototype$1,"hostname",accessorDescriptor$1("getHostname","setHostname")),defineBuiltInAccessor$2(URLPrototype$1,"port",accessorDescriptor$1("getPort","setPort")),defineBuiltInAccessor$2(URLPrototype$1,"pathname",accessorDescriptor$1("getPathname","setPathname")),defineBuiltInAccessor$2(URLPrototype$1,"search",accessorDescriptor$1("getSearch","setSearch")),defineBuiltInAccessor$2(URLPrototype$1,"searchParams",accessorDescriptor$1("getSearchParams")),defineBuiltInAccessor$2(URLPrototype$1,"hash",accessorDescriptor$1("getHash","setHash"))),defineBuiltIn$2(URLPrototype$1,"toJSON",(function(){return getInternalURLState$1(this).serialize()}),{enumerable:!0}),defineBuiltIn$2(URLPrototype$1,"toString",(function(){return getInternalURLState$1(this).serialize()}),{enumerable:!0}),NativeURL$1){var nativeCreateObjectURL$1=NativeURL$1.createObjectURL,nativeRevokeObjectURL$1=NativeURL$1.revokeObjectURL;nativeCreateObjectURL$1&&defineBuiltIn$2(URLConstructor$1,"createObjectURL",bind$b(nativeCreateObjectURL$1,NativeURL$1)),nativeRevokeObjectURL$1&&defineBuiltIn$2(URLConstructor$1,"revokeObjectURL",bind$b(nativeRevokeObjectURL$1,NativeURL$1))}setToStringTag$3(URLConstructor$1,"URL"),$$s({global:!0,constructor:!0,forced:!USE_NATIVE_URL$3,sham:!DESCRIPTORS$6},{URL:URLConstructor$1});var $$r=_export$1,getBuiltIn$1=getBuiltIn$r,fails$6=fails$1b,validateArgumentsLength$2=validateArgumentsLength$9,toString6=toString$o,USE_NATIVE_URL$2=urlConstructorDetection$1,URL$1=getBuiltIn$1("URL"),THROWS_WITHOUT_ARGUMENTS=USE_NATIVE_URL$2&&fails$6((function(){URL$1.canParse()}));$$r({target:"URL",stat:!0,forced:!THROWS_WITHOUT_ARGUMENTS},{canParse:function(e){var t=validateArgumentsLength$2(arguments.length,1),r=toString6(e),n=t<2||void 0===arguments[1]?void 0:toString6(arguments[1]);try{return!!new URL$1(r,n)}catch(e){return!1}}});var path$2=path$w,url$5=path$2.URL,parent$8=url$5,url$4=parent$8,parent$7=url$4,url$3=parent$7,parent$6=url$3,url$2=parent$6,url$1=url$2,url=url$1,_URL=getDefaultExportFromCjs(url),internalMetadata={exports:{}},fails$5=fails$1b,arrayBufferNonExtensible=fails$5((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$4=fails$1b,isObject$3=isObject$A,classof$1=classofRaw$5,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES=fails$4((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$3(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof$1(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,fails$3=fails$1b,freezing=!fails$3((function(){return Object.isExtensible(Object.preventExtensions({}))})),$$q=_export$1,uncurryThis$7=functionUncurryThis$1,hiddenKeys=hiddenKeys$b,isObject$2=isObject$A,hasOwn$2=hasOwnProperty_1$1,defineProperty$1=objectDefineProperty$1.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames$1,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal$1,isExtensible2=objectIsExtensible,uid=uid$8,FREEZING=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty$1(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey$1=function(e,t){if(!isObject$2(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn$2(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn$2(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze=function(e){return FREEZING&&REQUIRED&&isExtensible2(e)&&!hasOwn$2(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis$7([].splice),r={};r[METADATA]=1,e(r).length&&(getOwnPropertyNamesModule.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===METADATA){t(n,o,1);break}return n},$$q({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey$1,getWeakData:getWeakData,onFreeze:onFreeze};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,$$p=_export$1,global$3=global$13,InternalMetadataModule=internalMetadataExports,fails$2=fails$1b,createNonEnumerableProperty=createNonEnumerableProperty$j,iterate$f=iterate$o,anInstance$3=anInstance$b,isCallable$4=isCallable$S,isObject$1=isObject$A,setToStringTag$2=setToStringTag$g,defineProperty8=objectDefineProperty$1.f,forEach5=arrayIteration$1.forEach,DESCRIPTORS$5=descriptors$1,InternalStateModule$3=internalState$1,setInternalState$3=InternalStateModule$3.set,internalStateGetterFor$1=InternalStateModule$3.getterFor,collection$1=function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=global$3[e],c=s&&s.prototype,l={};if(DESCRIPTORS$5&&isCallable$4(s)&&(i||c.forEach&&!fails$2((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){setInternalState$3(anInstance$3(t,u),{type:e,collection:new s}),null!=r&&iterate$f(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,$=internalStateGetterFor$1(e);forEach5(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in c)||i&&"clear"==e||createNonEnumerableProperty(u,e,(function(r,n){var o=$(this).collection;if(!t&&i&&!isObject$1(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||defineProperty8(u,"size",{configurable:!0,get:function(){return $(this).collection.size}})}else n=r.getConstructor(t,e,o,a),InternalMetadataModule.enable();return setToStringTag$2(n,e,!1,!0),l[e]=n,$$p({global:!0,forced:!0},l),i||r.setStrong(n,e,o),n},create$1=objectCreate$1,defineBuiltInAccessor$1=defineBuiltInAccessor$8,defineBuiltIns$1=defineBuiltIns$3,bind$a=functionBindContext$1,anInstance$2=anInstance$b,isNullOrUndefined$1=isNullOrUndefined$c,iterate$e=iterate$o,defineIterator=iteratorDefine$1,createIterResultObject=createIterResultObject$6,setSpecies=setSpecies$6,DESCRIPTORS$4=descriptors$1,fastKey=internalMetadataExports.fastKey,InternalStateModule$2=internalState$1,setInternalState$2=InternalStateModule$2.set,internalStateGetterFor=InternalStateModule$2.getterFor,collectionStrong$1={getConstructor:function(e,t,r,n){var o=e((function(e,o){anInstance$2(e,i),setInternalState$2(e,{type:t,index:create$1(null),first:void 0,last:void 0,size:0}),DESCRIPTORS$4||(e.size=0),isNullOrUndefined$1(o)||iterate$e(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=internalStateGetterFor(t),s=function(e,t,r){var n,o,i=a(e),s=c(e,t);return s?s.value=r:(i.last=s={index:o=fastKey(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),DESCRIPTORS$4?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},c=function(e,t){var r,n=a(e),o=fastKey(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return defineBuiltIns$1(i,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,DESCRIPTORS$4?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=c(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),DESCRIPTORS$4?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=bind$a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),defineBuiltIns$1(i,r?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),DESCRIPTORS$4&&defineBuiltInAccessor$1(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=internalStateGetterFor(t),i=internalStateGetterFor(n);defineIterator(e,t,(function(e,t){setInternalState$2(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?createIterResultObject("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,createIterResultObject(void 0,!0))}),r?"entries":"values",!r,!0),setSpecies(t)}},collection=collection$1,collectionStrong=collectionStrong$1;collection("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),collectionStrong);var path$1=path$w,map$5=path$1.Map,parent$5=map$5,map$4=parent$5,parent$4=map$4,map$3=parent$4,bind$9=functionBindContext$1,call$5=functionCall$1,aCallable$5=aCallable$u,aConstructor=aConstructor$6,isNullOrUndefined=isNullOrUndefined$c,iterate$d=iterate$o,push$6=[].push,collectionFrom=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return aConstructor(this),(t=void 0!==a)&&aCallable$5(a),isNullOrUndefined(e)?new this:(r=[],t?(n=0,o=bind$9(a,i>2?arguments[2]:void 0),iterate$d(e,(function(e){call$5(push$6,r,o(e,n++))}))):iterate$d(e,push$6,{that:r}),new this(r))},$$o=_export$1,from5=collectionFrom;$$o({target:"Map",stat:!0,forced:!0},{from:from5});var arraySlice$1=arraySlice$g,collectionOf=function(){return new this(arraySlice$1(arguments))},$$n=_export$1,of2=collectionOf;$$n({target:"Map",stat:!0,forced:!0},{of:of2});var tryToString=tryToString$e,aMap$e=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(tryToString(e)+" is not a map")},caller$1=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},getBuiltIn=getBuiltIn$r,caller=caller$1,Map$5=getBuiltIn("Map"),mapHelpers={Map:Map$5,set:caller("set",2),get:caller("get",1),has:caller("has",1),remove:caller("delete",1),proto:Map$5.prototype},$$m=_export$1,aMap$d=aMap$e,remove=mapHelpers.remove;$$m({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=aMap$d(this),r=!0,n=0,o=arguments.length;n<o;n++)e=remove(t,arguments[n]),r=r&&e;return!!r}});var $$l=_export$1,aMap$c=aMap$e,MapHelpers$4=mapHelpers,get$1=MapHelpers$4.get,has$1=MapHelpers$4.has,set$5=MapHelpers$4.set;$$l({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=aMap$c(this);return has$1(o,e)?(r=get$1(o,e),"update"in t&&(r=t.update(r,e,o),set$5(o,e,r)),r):(n=t.insert(e,o),set$5(o,e,n),n)}});var call$4=functionCall$1,iterateSimple$1=function(e,t,r){for(var n,o,i=r||e.next;!(n=call$4(i,e)).done;)if(void 0!==(o=t(n.value)))return o},iterateSimple=iterateSimple$1,mapIterate=function(e,t,r){return r?iterateSimple(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},$$k=_export$1,bind$8=functionBindContext$1,aMap$b=aMap$e,iterate$c=mapIterate;$$k({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=aMap$b(this),r=bind$8(e,arguments.length>1?arguments[1]:void 0);return!1!==iterate$c(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var $$j=_export$1,bind$7=functionBindContext$1,aMap$a=aMap$e,MapHelpers$3=mapHelpers,iterate$b=mapIterate,Map$4=MapHelpers$3.Map,set$4=MapHelpers$3.set;$$j({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=aMap$a(this),r=bind$7(e,arguments.length>1?arguments[1]:void 0),n=new Map$4;return iterate$b(t,(function(e,o){r(e,o,t)&&set$4(n,o,e)})),n}});var $$i=_export$1,bind$6=functionBindContext$1,aMap$9=aMap$e,iterate$a=mapIterate;$$i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=aMap$9(this),r=bind$6(e,arguments.length>1?arguments[1]:void 0),n=iterate$a(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var $$h=_export$1,bind$5=functionBindContext$1,aMap$8=aMap$e,iterate$9=mapIterate;$$h({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=aMap$8(this),r=bind$5(e,arguments.length>1?arguments[1]:void 0),n=iterate$9(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var $$g=_export$1,call$3=functionCall$1,uncurryThis$6=functionUncurryThis$1,isCallable$3=isCallable$S,aCallable$4=aCallable$u,iterate$8=iterate$o,Map$3=mapHelpers.Map,push$5=uncurryThis$6([].push);$$g({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(isCallable$3(this)?this:Map$3);aCallable$4(t);var n=aCallable$4(r.has),o=aCallable$4(r.get),i=aCallable$4(r.set);return iterate$8(e,(function(e){var a=t(e);call$3(n,r,a)?push$5(call$3(o,r,a),e):call$3(i,r,a,[e])})),r}});var sameValueZero$1=function(e,t){return e===t||e!=e&&t!=t},$$f=_export$1,sameValueZero=sameValueZero$1,aMap$7=aMap$e,iterate$7=mapIterate;$$f({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===iterate$7(aMap$7(this),(function(t){if(sameValueZero(t,e))return!0}),!0)}});var $$e=_export$1,call$2=functionCall$1,iterate$6=iterate$o,isCallable$2=isCallable$S,aCallable$3=aCallable$u,Map$2=mapHelpers.Map;$$e({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(isCallable$2(this)?this:Map$2);aCallable$3(t);var n=aCallable$3(r.set);return iterate$6(e,(function(e){call$2(n,r,t(e),e)})),r}});var $$d=_export$1,aMap$6=aMap$e,iterate$5=mapIterate;$$d({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=iterate$5(aMap$6(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var $$c=_export$1,bind$4=functionBindContext$1,aMap$5=aMap$e,MapHelpers$2=mapHelpers,iterate$4=mapIterate,Map$1=MapHelpers$2.Map,set$3=MapHelpers$2.set;$$c({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=aMap$5(this),r=bind$4(e,arguments.length>1?arguments[1]:void 0),n=new Map$1;return iterate$4(t,(function(e,o){set$3(n,r(e,o,t),e)})),n}});var $$b=_export$1,bind$3=functionBindContext$1,aMap$4=aMap$e,MapHelpers$1=mapHelpers,iterate$3=mapIterate,Map=MapHelpers$1.Map,set$2=MapHelpers$1.set;$$b({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=aMap$4(this),r=bind$3(e,arguments.length>1?arguments[1]:void 0),n=new Map;return iterate$3(t,(function(e,o){set$2(n,o,r(e,o,t))})),n}});var $$a=_export$1,aMap$3=aMap$e,iterate$2=iterate$o,set$1=mapHelpers.set;$$a({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=aMap$3(this),r=arguments.length,n=0;n<r;)iterate$2(arguments[n++],(function(e,r){set$1(t,e,r)}),{AS_ENTRIES:!0});return t}});var $$9=_export$1,aCallable$2=aCallable$u,aMap$2=aMap$e,iterate$1=mapIterate,$TypeError$2=TypeError;$$9({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=aMap$2(this),r=arguments.length<2,n=r?void 0:arguments[1];if(aCallable$2(e),iterate$1(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw $TypeError$2("Reduce of empty map with no initial value");return n}});var $$8=_export$1,bind$2=functionBindContext$1,aMap$1=aMap$e,iterate=mapIterate;$$8({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=aMap$1(this),r=bind$2(e,arguments.length>1?arguments[1]:void 0);return!0===iterate(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var $$7=_export$1,aCallable$1=aCallable$u,aMap=aMap$e,MapHelpers=mapHelpers,$TypeError$1=TypeError,get2=MapHelpers.get,has2=MapHelpers.has,set3=MapHelpers.set;$$7({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=aMap(this),n=arguments.length;aCallable$1(t);var o=has2(r,e);if(!o&&n<3)throw $TypeError$1("Updating absent value");var i=o?get2(r,e):aCallable$1(n>2?arguments[2]:void 0)(e,r);return set3(r,e,t(i,e,r)),r}});var call$1=functionCall$1,aCallable=aCallable$u,isCallable$1=isCallable$S,anObject$1=anObject$z,$TypeError=TypeError,mapUpsert=function(e,t){var r,n=anObject$1(this),o=aCallable(n.get),i=aCallable(n.has),a=aCallable(n.set),s=arguments.length>2?arguments[2]:void 0;if(!isCallable$1(t)&&!isCallable$1(s))throw $TypeError("At least one callback required");return call$1(i,n,e)?(r=call$1(o,n,e),isCallable$1(t)&&(r=t(r),call$1(a,n,e,r))):isCallable$1(s)&&(r=s(),call$1(a,n,e,r)),r},$$6=_export$1,upsert$1=mapUpsert;$$6({target:"Map",proto:!0,real:!0,forced:!0},{upsert:upsert$1});var $$5=_export$1,upsert2=mapUpsert;$$5({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:upsert2});var parent$3=map$3,map$2=parent$3,map$1=map$2,map4=map$1,_Map=getDefaultExportFromCjs(map4);function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol?_Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return _Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=_Object$create(i.prototype),s=new v(o||[]);return n(a,"_invoke",{value:m(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var $={};function d(){}function A(){}function p(){}var f={};c(f,i,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(S([])));h&&h!==t&&r.call(h,i)&&(f=h);var y=p.prototype=d.prototype=_Object$create(f);function _(e){var t;_forEachInstanceProperty(t=["next","throw","return"]).call(t,(function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function o(n,i,a,s){var c=u(e[n],e,i);if("throw"!==c.type){var l=c.arg,$=l.value;return $&&"object"==_typeof($)&&r.call($,"__await")?t.resolve($.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve($).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function m(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===$)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===$)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return $;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,$;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,$):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,$)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty(e).call(e,b,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return A.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:A,configurable:!0}),A.displayName=c(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,p):(e.__proto__=p,c(e,s,"GeneratorFunction")),e.prototype=_Object$create(y),e},e.awrap=function(e){return{__await:e}},_(g.prototype),c(g.prototype,a,(function(){return this})),e.AsyncIterator=g,e.async=function(t,r,n,o,i){void 0===i&&(i=_Promise);var a=new g(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(y),c(y,s,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return _reverseInstanceProperty(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=S,v.prototype={constructor:v,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,_forEachInstanceProperty(t=this.tryEntries).call(t,I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,$):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),$},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),$}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),$}},e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):_Promise.resolve(c).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new _Promise((function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,s,"next",e)}function s(e){asyncGeneratorStep(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),_Object$defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=_Object$create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){var t;return(_getPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty(t=_Object$getPrototypeOf).call(t):function(e){return e.__proto__||_Object$getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty(r=_Object$setPrototypeOf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){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(e){return!1}}function _construct(e,t,r){var n;_isNativeReflectConstruct()?_construct=_bindInstanceProperty(n=_Reflect$construct).call(n):_construct=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(_bindInstanceProperty(Function).apply(e,n));return r&&_setPrototypeOf(o,r.prototype),o};return _construct.apply(null,arguments)}function _isNativeFunction(e){var t;return-1!==_indexOfInstanceProperty(t=Function.toString.call(e)).call(t,"[native code]")}function _wrapNativeSuper(e){var t="function"==typeof _Map?new _Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return r.prototype=_Object$create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,e)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=_Reflect$construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}var fails$1=fails$M,wellKnownSymbol$1=wellKnownSymbol$q,IS_PURE=isPure,ITERATOR$1=wellKnownSymbol$1("iterator"),urlConstructorDetection=!fails$1((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$1]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),uncurryThis$5=functionUncurryThis,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,$RangeError$1=RangeError,exec$1=uncurryThis$5(regexSeparators.exec),floor$2=Math.floor,fromCharCode=String.fromCharCode,charCodeAt=uncurryThis$5("".charCodeAt),join$2=uncurryThis$5([].join),push$4=uncurryThis$5([].push),replace$2=uncurryThis$5("".replace),split$2=uncurryThis$5("".split),toLowerCase$1=uncurryThis$5("".toLowerCase),ucs2decode=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=charCodeAt(e,r++);if(o>=55296&&o<=56319&&r<n){var i=charCodeAt(e,r++);56320==(64512&i)?push$4(t,((1023&o)<<10)+(1023&i)+65536):(push$4(t,o),r--)}else push$4(t,o)}return t},digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?floor$2(e/damp):e>>1,e+=floor$2(e/t);e>baseMinusTMin*tMax>>1;)e=floor$2(e/baseMinusTMin),n+=base;return floor$2(n+(baseMinusTMin+1)*e/(e+skew))},encode=function(e){var t,r,n=[],o=(e=ucs2decode(e)).length,i=initialN,a=0,s=initialBias;for(t=0;t<e.length;t++)(r=e[t])<128&&push$4(n,fromCharCode(r));var c=n.length,l=c;for(c&&push$4(n,delimiter);l<o;){var u=maxInt;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<u&&(u=r);var $=l+1;if(u-i>floor$2((maxInt-a)/$))throw $RangeError$1(OVERFLOW_ERROR);for(a+=(u-i)*$,i=u,t=0;t<e.length;t++){if((r=e[t])<i&&++a>maxInt)throw $RangeError$1(OVERFLOW_ERROR);if(r==i){for(var d=a,A=base;;){var p=A<=s?tMin:A>=s+tMax?tMax:A-s;if(d<p)break;var f=d-p,h=base-p;push$4(n,fromCharCode(digitToBasic(p+f%h))),d=floor$2(f/h),A+=base}push$4(n,fromCharCode(digitToBasic(d))),s=adapt(a,$,l==c),a=0,l++}}a++,i++}return join$2(n,"")},stringPunycodeToAscii=function(e){var t,r,n=[],o=split$2(replace$2(toLowerCase$1(e),regexSeparators,"."),".");for(t=0;t<o.length;t++)r=o[t],push$4(n,exec$1(regexNonASCII,r)?"xn--"+encode(r):r);return join$2(n,".")},$$4=_export,global$2=global$H,call=functionCall,uncurryThis$4=functionUncurryThis,DESCRIPTORS$3=descriptors,USE_NATIVE_URL$1=urlConstructorDetection,defineBuiltIn$1=defineBuiltIn$h,defineBuiltIns=defineBuiltIns$5,setToStringTag$1=setToStringTag$9,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule$1=internalState,anInstance$1=anInstance$9,isCallable=isCallable$w,hasOwn$1=hasOwnProperty_1,bind$1=functionBindContext,classof=classof$h,anObject=anObject$k,isObject=isObject$k,$toString$1=toString$b,create5=objectCreate,createPropertyDescriptor=createPropertyDescriptor$7,getIterator=getIterator$5,getIteratorMethod=getIteratorMethod$6,validateArgumentsLength$1=validateArgumentsLength$6,wellKnownSymbol=wellKnownSymbol$q,arraySort=arraySort$3,ITERATOR=wellKnownSymbol("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor7=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){if(!DESCRIPTORS$3)return global$2[e];var t=getOwnPropertyDescriptor7(global$2,e);return t&&t.value},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$2.RegExp,TypeError$2=global$2.TypeError,decodeURIComponent=global$2.decodeURIComponent,encodeURIComponent$1=global$2.encodeURIComponent,charAt$1=uncurryThis$4("".charAt),join$1=uncurryThis$4([].join),push$3=uncurryThis$4([].push),replace$1=uncurryThis$4("".replace),shift$1=uncurryThis$4([].shift),splice3=uncurryThis$4([].splice),split$1=uncurryThis$4("".split),stringSlice$2=uncurryThis$4("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent(e)}catch(t){return e}},deserialize=function(e){var t=replace$1(e,plus," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=replace$1(t,percentSequence(r--),percentDecode);return t}},find5=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace$1(encodeURIComponent$1(e),find5,replacer)},URLSearchParamsIterator=createIteratorConstructor((function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$1(e,0)?stringSlice$2(e,1):e:$toString$1(e)))};URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=getIteratorMethod(e);if(c)for(r=(t=getIterator(e,c)).next;!(n=call(r,t)).done;){if(i=(o=getIterator(anObject(n.value))).next,(a=call(i,o)).done||(s=call(i,o)).done||!call(i,o).done)throw TypeError$2("Expected sequence with length 2");push$3(this.entries,{key:$toString$1(a.value),value:$toString$1(s.value)})}else for(var l in e)hasOwn$1(e,l)&&push$3(this.entries,{key:l,value:$toString$1(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=split$1(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split$1(t,"="),push$3(this.entries,{key:deserialize(shift$1(r)),value:deserialize(join$1(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push$3(r,serialize(e.key)+"="+serialize(e.value));return join$1(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function(){anInstance$1(this,URLSearchParamsPrototype),setInternalState$1(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0))},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$1(arguments.length,2);var r=getInternalParamsState(this);push$3(r.entries,{key:$toString$1(e),value:$toString$1(t)}),r.updateURL()},delete:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,n=$toString$1(e),o=0;o<r.length;)r[o].key===n?splice3(r,o,1):o++;t.updateURL()},get:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push$3(n,t[o].value);return n},has:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$1(arguments.length,1);for(var r,n=getInternalParamsState(this),o=n.entries,i=!1,a=$toString$1(e),s=$toString$1(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?splice3(o,c--,1):(i=!0,r.value=s));i||push$3(o,{key:a,value:s}),n.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,n=bind$1(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$1(URLSearchParamsPrototype,ITERATOR,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$1(URLSearchParamsPrototype,"toString",(function(){return getInternalParamsState(this).serialize()}),{enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$4({global:!0,constructor:!0,forced:!USE_NATIVE_URL$1},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL$1&&isCallable(Headers)){var headersHas=uncurryThis$4(HeadersPrototype.has),headersSet=uncurryThis$4(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject(e)){var t,r=e.body;if(classof(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create5(e,{body:createPropertyDescriptor(0,$toString$1(r)),headers:createPropertyDescriptor(0,t)})}return e};if(isCallable(nativeFetch)&&$$4({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$4({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var EOF,web_urlSearchParams_constructor={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},$$3=_export,DESCRIPTORS$2=descriptors,USE_NATIVE_URL=urlConstructorDetection,global$1=global$H,bind2=functionBindContext,uncurryThis$3=functionUncurryThis,defineBuiltIn=defineBuiltIn$h,defineBuiltInAccessor=defineBuiltInAccessor$5,anInstance=anInstance$9,hasOwn3=hasOwnProperty_1,assign3=objectAssign,arrayFrom=arrayFrom$2,arraySlice=arraySliceSimple,codeAt=stringMultibyte.codeAt,toASCII=stringPunycodeToAscii,$toString=toString$b,setToStringTag=setToStringTag$9,validateArgumentsLength=validateArgumentsLength$6,URLSearchParamsModule=web_urlSearchParams_constructor,InternalStateModule=internalState,setInternalState=InternalStateModule.set,getInternalURLState=InternalStateModule.getterFor("URL"),URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,NativeURL=global$1.URL,TypeError$1=global$1.TypeError,parseInt$1=global$1.parseInt,floor$1=Math.floor,pow$1=Math.pow,charAt=uncurryThis$3("".charAt),exec=uncurryThis$3(/./.exec),join3=uncurryThis$3([].join),numberToString=uncurryThis$3(1..toString),pop=uncurryThis$3([].pop),push$2=uncurryThis$3([].push),replace=uncurryThis$3("".replace),shift=uncurryThis$3([].shift),split=uncurryThis$3("".split),stringSlice$1=uncurryThis$3("".slice),toLowerCase=uncurryThis$3("".toLowerCase),unshift=uncurryThis$3([].unshift),INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[a-z]/i,ALPHANUMERIC=/[\d+-.a-z]/i,DIGIT=/\d/,HEX_START=/^0x/i,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\da-f]+$/i,FORBIDDEN_HOST_CODE_POINT=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,TAB_AND_NEW_LINE=/[\t\n\r]/g,parseIPv4=function(e){var t,r,n,o,i,a,s,c=split(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==charAt(o,0)&&(i=exec(HEX_START,o)?16:8,o=stringSlice$1(o,8==i?1:2)),""===o)a=0;else{if(!exec(10==i?DEC:8==i?OCT:HEX,o))return e;a=parseInt$1(o,i)}push$2(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=pow$1(256,5-t))return null}else if(a>255)return null;for(s=pop(r),n=0;n<r.length;n++)s+=r[n]*pow$1(256,3-n);return s},parseIPv6=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,$=0,d=function(){return charAt(e,$)};if(":"==d()){if(":"!=charAt(e,1))return;$+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=r=0;r<4&&exec(HEX,d());)t=16*t+parseInt$1(d(),16),$++,r++;if("."==d()){if(0==r)return;if($-=r,l>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;$++}if(!exec(DIGIT,d()))return;for(;exec(DIGIT,d());){if(i=parseInt$1(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;$++}c[l]=256*c[l]+o,2!=++n&&4!=n||l++}if(4!=n)return;break}if(":"==d()){if($++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;$++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},findLongestZeroSequence=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t},serializeHost=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)unshift(t,e%256),e=floor$1(e/256);return join3(t,".")}if("object"==typeof e){for(t="",n=findLongestZeroSequence(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=numberToString(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign3({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign3({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign3({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=codeAt(e,0);return r>32&&r<127&&!hasOwn3(t,e)?e:encodeURIComponent(e)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(e,t){var r;return 2==e.length&&exec(ALPHA,charAt(e,0))&&(":"==(r=charAt(e,1))||!t&&"|"==r)},startsWithWindowsDriveLetter=function(e){var t;return e.length>1&&isWindowsDriveLetter(stringSlice$1(e,0,2))&&(2==e.length||"/"===(t=charAt(e,2))||"\\"===t||"?"===t||"#"===t)},isSingleDot=function(e){return"."===e||"%2e"===toLowerCase(e)},isDoubleDot=function(e){return".."===(e=toLowerCase(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},URLState=function(e,t,r){var n,o,i,a=$toString(e);if(t){if(o=this.parse(a))throw TypeError$1(o);this.searchParams=null}else{if(void 0!==r&&(n=new URLState(r,!0)),o=this.parse(a,null,n))throw TypeError$1(o);(i=getInternalSearchParamsState(new URLSearchParams$1)).bindURL(this),this.searchParams=i}};URLState.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s=this,c=t||SCHEME_START,l=0,u="",$=!1,d=!1,A=!1;for(e=$toString(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=replace(e,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,"")),e=replace(e,TAB_AND_NEW_LINE,""),n=arrayFrom(e);l<=n.length;){switch(o=n[l],c){case SCHEME_START:if(!o||!exec(ALPHA,o)){if(t)return INVALID_SCHEME;c=NO_SCHEME;continue}u+=toLowerCase(o),c=SCHEME;break;case SCHEME:if(o&&(exec(ALPHANUMERIC,o)||"+"==o||"-"==o||"."==o))u+=toLowerCase(o);else{if(":"!=o){if(t)return INVALID_SCHEME;u="",c=NO_SCHEME,l=0;continue}if(t&&(s.isSpecial()!=hasOwn3(specialSchemes,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&specialSchemes[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?c=FILE:s.isSpecial()&&r&&r.scheme==s.scheme?c=SPECIAL_RELATIVE_OR_AUTHORITY:s.isSpecial()?c=SPECIAL_AUTHORITY_SLASHES:"/"==n[l+1]?(c=PATH_OR_AUTHORITY,l++):(s.cannotBeABaseURL=!0,push$2(s.path,""),c=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!r||r.cannotBeABaseURL&&"#"!=o)return INVALID_SCHEME;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=FRAGMENT;break}c="file"==r.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!=o||"/"!=n[l+1]){c=RELATIVE;continue}c=SPECIAL_AUTHORITY_IGNORE_SLASHES,l++;break;case PATH_OR_AUTHORITY:if("/"==o){c=AUTHORITY;break}c=PATH;continue;case RELATIVE:if(s.scheme=r.scheme,o==EOF)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=RELATIVE_SLASH;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query="",c=QUERY;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.path.length--,c=PATH;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",c=FRAGMENT}break;case RELATIVE_SLASH:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=PATH;continue}c=AUTHORITY}else c=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(c=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!=o||"/"!=charAt(u,l+1))continue;l++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=o&&"\\"!=o){c=AUTHORITY;continue}break;case AUTHORITY:if("@"==o){$&&(u="%40"+u),$=!0,i=arrayFrom(u);for(var p=0;p<i.length;p++){var f=i[p];if(":"!=f||A){var h=percentEncode(f,userinfoPercentEncodeSet);A?s.password+=h:s.username+=h}else A=!0}u=""}else if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if($&&""==u)return INVALID_AUTHORITY;l-=arrayFrom(u).length+1,u="",c=HOST}else u+=o;break;case HOST:case HOSTNAME:if(t&&"file"==s.scheme){c=FILE_HOST;continue}if(":"!=o||d){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==u)return INVALID_HOST;if(t&&""==u&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(u))return a;if(u="",c=PATH_START,t)return;continue}"["==o?d=!0:"]"==o&&(d=!1),u+=o}else{if(""==u)return INVALID_HOST;if(a=s.parseHost(u))return a;if(u="",c=PORT,t==HOSTNAME)return}break;case PORT:if(!exec(DIGIT,o)){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=u){var y=parseInt$1(u,10);if(y>65535)return INVALID_PORT;s.port=s.isSpecial()&&y===specialSchemes[s.scheme]?null:y,u=""}if(t)return;c=PATH_START;continue}return INVALID_PORT}u+=o;break;case FILE:if(s.scheme="file","/"==o||"\\"==o)c=FILE_SLASH;else{if(!r||"file"!=r.scheme){c=PATH;continue}if(o==EOF)s.host=r.host,s.path=arraySlice(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=arraySlice(r.path),s.query="",c=QUERY;else{if("#"!=o){startsWithWindowsDriveLetter(join3(arraySlice(n,l),""))||(s.host=r.host,s.path=arraySlice(r.path),s.shortenPath()),c=PATH;continue}s.host=r.host,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",c=FRAGMENT}}break;case FILE_SLASH:if("/"==o||"\\"==o){c=FILE_HOST;break}r&&"file"==r.scheme&&!startsWithWindowsDriveLetter(join3(arraySlice(n,l),""))&&(isWindowsDriveLetter(r.path[0],!0)?push$2(s.path,r.path[0]):s.host=r.host),c=PATH;continue;case FILE_HOST:if(o==EOF||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&isWindowsDriveLetter(u))c=PATH;else if(""==u){if(s.host="",t)return;c=PATH_START}else{if(a=s.parseHost(u))return a;if("localhost"==s.host&&(s.host=""),t)return;u="",c=PATH_START}continue}u+=o;break;case PATH_START:if(s.isSpecial()){if(c=PATH,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=EOF&&(c=PATH,"/"!=o))continue}else s.fragment="",c=FRAGMENT;else s.query="",c=QUERY;break;case PATH:if(o==EOF||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(isDoubleDot(u)?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||push$2(s.path,"")):isSingleDot(u)?"/"==o||"\\"==o&&s.isSpecial()||push$2(s.path,""):("file"==s.scheme&&!s.path.length&&isWindowsDriveLetter(u)&&(s.host&&(s.host=""),u=charAt(u,0)+":"),push$2(s.path,u)),u="","file"==s.scheme&&(o==EOF||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)shift(s.path);"?"==o?(s.query="",c=QUERY):"#"==o&&(s.fragment="",c=FRAGMENT)}else u+=percentEncode(o,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==o?(s.query="",c=QUERY):"#"==o?(s.fragment="",c=FRAGMENT):o!=EOF&&(s.path[0]+=percentEncode(o,C0ControlPercentEncodeSet));break;case QUERY:t||"#"!=o?o!=EOF&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":percentEncode(o,C0ControlPercentEncodeSet)):(s.fragment="",c=FRAGMENT);break;case FRAGMENT:o!=EOF&&(s.fragment+=percentEncode(o,fragmentPercentEncodeSet))}l++}},parseHost:function(e){var t,r,n;if("["==charAt(e,0)){if("]"!=charAt(e,e.length-1))return INVALID_HOST;if(!(t=parseIPv6(stringSlice$1(e,1,-1))))return INVALID_HOST;this.host=t}else if(this.isSpecial()){if(e=toASCII(e),exec(FORBIDDEN_HOST_CODE_POINT,e))return INVALID_HOST;if(null===(t=parseIPv4(e)))return INVALID_HOST;this.host=t}else{if(exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT,e))return INVALID_HOST;for(t="",r=arrayFrom(e),n=0;n<r.length;n++)t+=percentEncode(r[n],C0ControlPercentEncodeSet);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return hasOwn3(specialSchemes,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&isWindowsDriveLetter(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=r+(n?":"+n:"")+"@"),l+=serializeHost(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+join3(a,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw TypeError$1(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new URLConstructor(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+serializeHost(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse($toString(e)+":",SCHEME_START)},getUsername:function(){return this.username},setUsername:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=percentEncode(t[r],userinfoPercentEncodeSet)}},getPassword:function(){return this.password},setPassword:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=percentEncode(t[r],userinfoPercentEncodeSet)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?serializeHost(e):serializeHost(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,HOST)},getHostname:function(){var e=this.host;return null===e?"":serializeHost(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,HOSTNAME)},getPort:function(){var e=this.port;return null===e?"":$toString(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=$toString(e))?this.port=null:this.parse(e,PORT))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+join3(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,PATH_START))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=$toString(e))?this.query=null:("?"==charAt(e,0)&&(e=stringSlice$1(e,1)),this.query="",this.parse(e,QUERY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=$toString(e))?("#"==charAt(e,0)&&(e=stringSlice$1(e,1)),this.fragment="",this.parse(e,FRAGMENT)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor=function(e){var t=anInstance(this,URLPrototype),r=validateArgumentsLength(arguments.length,1)>1?arguments[1]:void 0,n=setInternalState(t,new URLState(e,!1,r));DESCRIPTORS$2||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},URLPrototype=URLConstructor.prototype,accessorDescriptor=function(e,t){return{get:function(){return getInternalURLState(this)[e]()},set:t&&function(e){return getInternalURLState(this)[t](e)},configurable:!0,enumerable:!0}};if(DESCRIPTORS$2&&(defineBuiltInAccessor(URLPrototype,"href",accessorDescriptor("serialize","setHref")),defineBuiltInAccessor(URLPrototype,"origin",accessorDescriptor("getOrigin")),defineBuiltInAccessor(URLPrototype,"protocol",accessorDescriptor("getProtocol","setProtocol")),defineBuiltInAccessor(URLPrototype,"username",accessorDescriptor("getUsername","setUsername")),defineBuiltInAccessor(URLPrototype,"password",accessorDescriptor("getPassword","setPassword")),defineBuiltInAccessor(URLPrototype,"host",accessorDescriptor("getHost","setHost")),defineBuiltInAccessor(URLPrototype,"hostname",accessorDescriptor("getHostname","setHostname")),defineBuiltInAccessor(URLPrototype,"port",accessorDescriptor("getPort","setPort")),defineBuiltInAccessor(URLPrototype,"pathname",accessorDescriptor("getPathname","setPathname")),defineBuiltInAccessor(URLPrototype,"search",accessorDescriptor("getSearch","setSearch")),defineBuiltInAccessor(URLPrototype,"searchParams",accessorDescriptor("getSearchParams")),defineBuiltInAccessor(URLPrototype,"hash",accessorDescriptor("getHash","setHash"))),defineBuiltIn(URLPrototype,"toJSON",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),defineBuiltIn(URLPrototype,"toString",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&defineBuiltIn(URLConstructor,"createObjectURL",bind2(nativeCreateObjectURL,NativeURL)),nativeRevokeObjectURL&&defineBuiltIn(URLConstructor,"revokeObjectURL",bind2(nativeRevokeObjectURL,NativeURL))}function createPublicPromise(){var e,t,r=new _Promise((function(r,n){e=r,t=n}));return r.used=!1,r.resolve=function(){return r.used=!0,e.apply(void 0,arguments)},r.reject=function(){return r.used=!0,t.apply(void 0,arguments)},r}function nowTime(){try{return _parseInt$1(performance.now(),10)}catch(e){return(new Date).getTime()}}setToStringTag(URLConstructor,"URL"),$$3({global:!0,constructor:!0,forced:!USE_NATIVE_URL,sham:!DESCRIPTORS$2},{URL:URLConstructor});var _ERR_CODE,Buffer=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"start",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6||1===e.length&&e.start(0)<0?0:e.start(0):0}},{key:"end",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6?0:e.end(e.length-1):0}},{key:"get",value:function(e){if(e)try{return e.buffered}catch(e){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var r=[],n=0,o=e.length;n<o;n++){var i=r.length;if(i&&t){var a=r[i-1],s=a[1];if(e.start(n)-s<=t){var c=e.end(n);c>s&&(a[1]=c)}else r.push([e.start(n),e.end(n)])}else r.push([e.start(n),e.end(n)])}return r}},{key:"totalLength",value:function(e){return e&&e.length?_reduceInstanceProperty(e).call(e,(function(e,t){return e+(t[1]-t[0])}),0):0}},{key:"info",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};for(var o=0,i=0,a=0,s=0,c=0,l=0,u=0,$=e.buffers(t,n),d=0,A=$.length;d<A;d++){var p=$[d];if(r+n>=p[0]&&r<p[1])o=p[0],i=p[1],a=d;else{if(r+n<p[0]){s=p[0],c=p[1];break}r+n>p[1]&&(l=p[0],u=p[1])}}return{start:o,end:i,index:a,buffers:$,nextStart:s,nextEnd:c,prevStart:l,prevEnd:u,currentTime:r,behind:r-o,remaining:i?i-r:0,length:e.totalLength&&e.totalLength($)}}}]),e}(),ERR={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",OPTION:"OPTION"}},ERR_CODE=(_defineProperty(_ERR_CODE={},ERR.MANIFEST,{HLS:1100}),_defineProperty(_ERR_CODE,ERR.NETWORK,2100),_defineProperty(_ERR_CODE,ERR.NETWORK_TIMEOUT,2101),_defineProperty(_ERR_CODE,ERR.DEMUX,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400}),_defineProperty(_ERR_CODE,ERR.REMUX,{FMP4:4100,MP4:4200}),_defineProperty(_ERR_CODE,ERR.MEDIA,{MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203}),_defineProperty(_ERR_CODE,ERR.OTHER,8e3),_ERR_CODE),StreamingError=function(e){_inherits(r,_wrapNativeSuper(Error));var t=_createSuper(r);function r(e,n,o,i,a){var s;return _classCallCheck(this,r),(s=t.call(this,a||(null==o?void 0:o.message))).errorType=e===ERR.NETWORK_TIMEOUT?ERR.NETWORK:e,s.originError=o,s.ext=i,s.errorCode=ERR_CODE[e][n]||ERR_CODE[e],s.errorMessage=s.message,s.errorCode||(s.errorType=ERR.OTHER,s.errorCode=ERR_CODE[s.errorType]),s}return _createClass(r,null,[{key:"create",value:function(e,t,n,o,i){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=ERR.OTHER),new r(e,t,n,o,i))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?ERR.NETWORK_TIMEOUT:ERR.NETWORK,e,null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),r}(),isBrowser="undefined"!=typeof window,Logger=function(){function e(t){_classCallCheck(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return _createClass(e,[{key:"debug",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).debug.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"log",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).log.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).warn.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"error",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).error.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function getMediaSource(){try{return isBrowser?window.MediaSource:null}catch(e){}}_defineProperty(Logger,"disabled",!0);var MediaSource=getMediaSource(),OP_NAME={APPEND:"appendBuffer",REMOVE:"removeBuffer"},MSE=function(){function e(t,r){var n=this;_classCallCheck(this,e),_defineProperty(this,"media",null),_defineProperty(this,"mediaSource",null),_defineProperty(this,"_openPromise",createPublicPromise()),_defineProperty(this,"_queue",_Object$create(null)),_defineProperty(this,"_sourceBuffer",_Object$create(null)),_defineProperty(this,"_mseFullFlag",{}),_defineProperty(this,"_st",0),_defineProperty(this,"_opst",0),_defineProperty(this,"_logger",null),_defineProperty(this,"_config",null),_defineProperty(this,"_url",null),_defineProperty(this,"_onSBUpdateEnd",(function(e){var t=n._queue[e];if(t){var r=t.shift();if(r){var o=nowTime()-n._opst;n._logger.debug("UpdateEnd",r.opName,o,r.context),r.promise.resolve({name:r.opName,context:r.context,costtime:o}),n._startQueue(e)}}})),_defineProperty(this,"_onSBUpdateError",(function(e,t){var r=n._queue[e];if(r){var o=r[0];o&&(n._logger.error("UpdateError",e,o.opName,o.context),o.promise.reject(new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_APPEND_BUFFER,t)))}})),this._config=_Object$assign(e.getDefaultConfig(),r),t&&this.bindMedia(t),this._logger=new Logger("MSE"),this._config.openLog&&Logger.enable()}var t,r,n;return _createClass(e,[{key:"isOpened",get:function(){var e;return"open"===(null===(e=this.mediaSource)||void 0===e?void 0:e.readyState)}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var e;return(null===(e=this.mediaSource)||void 0===e?void 0:e.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"isFull",value:function(t){return t?this._mseFullFlag[t]:this._mseFullFlag[e.VIDEO]}},{key:"updateDuration",value:function(e){var t=this;return this.mediaSource&&this.mediaSource.duration>e?_Promise.resolve():this._enqueueBlockingOp((function(){t.isEnded?t._logger.debug("[debug mse] setDuration ended"):t.mediaSource&&(t.mediaSource.duration=e,t._logger.debug("[debug mse] setDuration"))}),"updateDuration")}},{key:"open",value:function(){var e=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource;t.addEventListener("sourceopen",(function r(){var n=nowTime()-e._st;e._logger.debug("MSE OPEN",n),t.removeEventListener("sourceopen",r),e._openPromise.resolve({costtime:n})})),this._openPromise=createPublicPromise()}return this._openPromise}},{key:"bindMedia",value:(n=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.mediaSource&&!this.media){e.next=3;break}return e.next=3,this.unbindMedia();case 3:if(t&&MediaSource){e.next=5;break}throw new Error("Param media or MediaSource does not exist");case 5:return this.media=t,r=this.mediaSource=new MediaSource,this._st=nowTime(),n=function e(){var n=nowTime()-o._st;o._logger.debug("MSE OPEN"),r.removeEventListener("sourceopen",e),_URL.revokeObjectURL(t.src),o._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",n),this._url=_URL.createObjectURL(r),t.src=this._url,e.abrupt("return",this._openPromise);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"unbindMedia",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource){var i,a;if(_forEachInstanceProperty(i=_Object$keys(this._queue)).call(i,(function(e){var t=o._queue[e];t&&_forEachInstanceProperty(t).call(t,(function(e){return e.promise.resolve}))})),r=!!this.media&&this.media.readyState>=1,n="open"===t.readyState,r&&n)try{t.endOfStream()}catch(e){}_forEachInstanceProperty(a=_Object$keys(this._sourceBuffer)).call(a,(function(e){try{t.removeSourceBuffer(o._sourceBuffer[e])}catch(e){}}))}if(this.media){this.media.removeAttribute("src");try{this.media.load()}catch(e){}this.media=null}this.mediaSource=null,this._openPromise=createPublicPromise(),this._queue=_Object$create(null),this._sourceBuffer=_Object$create(null);case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"createSource",value:function(e,t){var r,n;if(!this._sourceBuffer[e]&&this.mediaSource){var o;try{o=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(e){throw new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_ADD_SB,e)}o.mimeType=t,o.addEventListener("updateend",_bindInstanceProperty(r=this._onSBUpdateEnd).call(r,this,e)),o.addEventListener("error",_bindInstanceProperty(n=this._onSBUpdateError).call(n,this,e))}}},{key:"changeType",value:function(e,t){var r=this,n=this._sourceBuffer[e];return this.mediaSource&&n&&n.mimeType!==t&&"function"==typeof n.changeType?this._enqueueOp(e,(function(){n.changeType(t),n.mimeType=t,r._onSBUpdateEnd(e)})):_Promise.resolve()}},{key:"createOrChangeSource",value:function(e,t){return this.createSource(e,t),this.changeType(e,t)}},{key:"append",value:function(e,t,r){var n=this;return t&&t.byteLength&&this._sourceBuffer[e]?this._enqueueOp(e,(function(){var o;n.mediaSource&&(n._logger.debug("MSE APPEND START",r),n._opst=nowTime(),null===(o=n._sourceBuffer[e])||void 0===o||o.appendBuffer(t))}),OP_NAME.APPEND,r):_Promise.resolve()}},{key:"remove",value:function(e,t,r,n){var o=this,i=!1;return this._mseFullFlag[e]&&(i=!0),this._enqueueOp(e,(function(){if(o.mediaSource){var i=o._sourceBuffer[e];t>=r||!i?o._onSBUpdateEnd(e):(o._opst=nowTime(),o._logger.debug("MSE REMOVE START",e,t,r,n),i.remove(t,r))}}),OP_NAME.REMOVE,n,i)}},{key:"clearBuffer",value:function(e,t){var r,n,o=this;return _forEachInstanceProperty(r=_Object$keys(this._sourceBuffer)).call(r,(function(r){n=o._enqueueOp(r,(function(){if(o.mediaSource){var n=o._sourceBuffer[r];o._logger.debug("MSE clearBuffer START",r,e,t),n.remove(e,t)}}))})),n}},{key:"clearAllBuffer",value:function(){var e,t,r=this;return _forEachInstanceProperty(e=_Object$keys(this._sourceBuffer)).call(e,(function(e){t=r._enqueueOp(e,(function(){if(r.mediaSource){var t=r._sourceBuffer[e];r._logger.debug("MSE clearAllBuffer START",e),t.remove(0,Buffer.end(Buffer.get(t)))}}))})),t}},{key:"clearOpQueues",value:function(e){var t;this._logger.debug("MSE clearOpQueue START");var r=this._queue[e];if(r&&r[e]&&!(r.length<5)){var n=[];_forEachInstanceProperty(r).call(r,(function(e){e.context&&e.context.isinit&&n.push(e)})),this._queue[e]=_sliceInstanceProperty(r).call(r,0,2),n.length>0&&(t=this._queue[e]).push.apply(t,n)}}},{key:"endOfStream",value:function(e){var t=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp((function(){var r=t.mediaSource;r&&"open"===r.readyState&&(t._logger.debug("MSE endOfStream START"),e?r.endOfStream(e):r.endOfStream())}),"endOfStream"):_Promise.resolve()}},{key:"setLiveSeekableRange",value:function(e,t){var r=this.mediaSource;e<0||t<e||null==r||!r.setLiveSeekableRange||"open"!==r.readyState||r.setLiveSeekableRange(e,t)}},{key:"getSourceBuffer",value:function(e){return this._sourceBuffer[e]}},{key:"buffered",value:function(e){return Buffer.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return Buffer.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return Buffer.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,r,n,o){var i=this;if(!this.mediaSource)return _Promise.resolve();var a=this._queue[e]=this._queue[e]||[],s={exec:t,promise:createPublicPromise(),opName:r,context:n};return o?(_spliceInstanceProperty(a).call(a,0,0,s),this._mseFullFlag[e]=!1,this._startQueue(e)):a.push(s),this.isOpened?1===a.length&&this._startQueue(e):this._openPromise.then((function(){1===a.length&&i._startQueue(e)})),s.promise}},{key:"_enqueueBlockingOp",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,o,i=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",_Promise.resolve());case 2:if((n=_Object$keys(this._sourceBuffer)).length){e.next=5;break}return e.abrupt("return",t());case 5:return o=[],_forEachInstanceProperty(n).call(n,(function(e){var t=i._queue[e],n=createPublicPromise();o.push(n),t.push({exec:function(){return n.resolve()},promise:n,opName:r}),1===t.length&&i._startQueue(e)})),e.abrupt("return",_Promise.all(o).then((function(){try{return t()}finally{_forEachInstanceProperty(n).call(n,(function(e){var t=i._queue[e],r=i._sourceBuffer[e];null==t||t.shift(),r&&r.updating||i._startQueue(e)}))}})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"_startQueue",value:function(e){var t=this._queue[e];if(t){var r=t[0];if(r&&!this._mseFullFlag[e])try{r.exec()}catch(o){var n;o&&o.message&&_indexOfInstanceProperty(n=o.message).call(n,"SourceBuffer is full")>=0?(this._mseFullFlag[e]=!0,this._logger.error("[MSE error], context,",r.context," ,name,",r.opName,",err,SourceBuffer is full"),r.promise.reject(new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_FULL,o))):(this._logger.error(o),r.promise.reject(new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_OTHER,o)),t.shift(),this._startQueue(e))}}}},{key:"setTimeoffset",value:function(e,t,r){var n=this;return this._enqueueOp(e,(function(){t<0&&(t+=.001),n._sourceBuffer[e].timestampOffset=t,n._onSBUpdateEnd(e)}),"setTimeoffset",r)}},{key:"abort",value:function(e,t){var r=this;return this.isOpened?this._enqueueOp(e,(function(){r._sourceBuffer[e].abort(),r._onSBUpdateEnd(e)}),"abort",t):_Promise.resolve()}}],[{key:"getDefaultConfig",value:function(){return{openLog:!1}}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(!MediaSource)return!1;try{return MediaSource.isTypeSupported(e)}catch(t){return this._logger.error(e,t),!1}}}]),e}();_defineProperty(MSE,"VIDEO","video"),_defineProperty(MSE,"AUDIO","audio");var AUDIO_ERROR_SUBCODE=3,CODEC_MAP={"mp4a.40.5":1,"mp4a.40.2":2},JUMP_GAP_STEP=.05,MediaCache=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_queue",[]),"undefined"!=typeof document&&(this._tempMedia=document.createElement("video"))}return _createClass$2(e,[{key:"tempMedia",get:function(){return this._tempMedia}},{key:"hasCached",get:function(){var e,t;return-1!==_findIndexInstanceProperty(e=this._queue).call(e,(function(e){return 1===e.codec}))&&-1!==_findIndexInstanceProperty(t=this._queue).call(t,(function(e){return 2===e.codec}))}},{key:"getCachedMedia",value:function(e){var t,r,n=_findIndexInstanceProperty(t=this._queue).call(t,(function(t){return t.codec===e}));return-1!==n?_spliceInstanceProperty(r=this._queue).call(r,n,1)[0]:null}},{key:"cacheMedia",value:function(e){var t,r,n=e.codec,o=e.media,i=e.mse,a=CODEC_MAP[n];if(this._queue=_filterInstanceProperty(t=this._queue).call(t,(function(e){var t;return e.mse&&!e.mse.isOpened&&e.mse.unbindMedia(),null===(t=e.mse)||void 0===t?void 0:t.isOpened})),!n||_filterInstanceProperty(r=this._queue).call(r,(function(e){return e.codec===a})).length>2)return null==i||i.endOfStream(),void(null==i||i.unbindMedia());this._queue.push({codec:a,media:o,mse:i})}}]),e}(),mediaCache=new MediaCache,AudioMseRender=function(e){_inherits$1(i,BaseRender);var t,r,n,o=_createSuper$1(i);function i(e,t){var r;return _classCallCheck$2(this,i),_defineProperty$2(_assertThisInitialized$1(r=o.call(this,e,t)),"_media",void 0),_defineProperty$2(_assertThisInitialized$1(r),"_isTempMedia",!1),_defineProperty$2(_assertThisInitialized$1(r),"_mse",void 0),_defineProperty$2(_assertThisInitialized$1(r),"_remuxer",null),_defineProperty$2(_assertThisInitialized$1(r),"_codec",""),_defineProperty$2(_assertThisInitialized$1(r),"_sourceCreated",!1),_defineProperty$2(_assertThisInitialized$1(r),"_needInitSegment",!0),_defineProperty$2(_assertThisInitialized$1(r),"_seekNoSideEffect",!1),_defineProperty$2(_assertThisInitialized$1(r),"_startRendered",!1),_defineProperty$2(_assertThisInitialized$1(r),"_firstTimeAppendedBuffer",!1),_defineProperty$2(_assertThisInitialized$1(r),"_sampleQueue",[]),_defineProperty$2(_assertThisInitialized$1(r),"_inProcessing",!1),_defineProperty$2(_assertThisInitialized$1(r),"_duration",0),_defineProperty$2(_assertThisInitialized$1(r),"_mediaCache",mediaCache),_defineProperty$2(_assertThisInitialized$1(r),"_resetDts",(function(){})),_defineProperty$2(_assertThisInitialized$1(r),"_onCanplay",(function(){r._ready||(r._ready=!0,r.emit(Events.AUDIO.AUDIO_READY))})),_defineProperty$2(_assertThisInitialized$1(r),"_onPlaying",(function(){r._parent.ready&&(r._audioCanAutoplay=!0,r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PLAYING))})),_defineProperty$2(_assertThisInitialized$1(r),"_onWaiting",(function(){if(!r._seekNoSideEffect){try{for(var e,t=r._media.buffered,n=r._media.currentTime,o=0,i=0,a=t.length;i<a;i++)t.start(i)<n&&t.end(i)>n&&(o=t.end(i)-n);if(Math.abs(o)>.5)return;if(Math.abs(r._media.duration-r._media.currentTime)<.3)return r._reuseMse||r._mse.endOfStream(),void(null===(e=_assertThisInitialized$1(r))||void 0===e||e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED))}catch(e){}r._ready=!1,r.emit(Events.AUDIO.AUDIO_WAITING)}})),_defineProperty$2(_assertThisInitialized$1(r),"_onSeeked",(function(){r._seekNoSideEffect||r._isLive?r._seekNoSideEffect=!1:(logger.log(r.TAG,"seeked"),r._ready||(r._media.pause(),r._ready=!0,r.emit(Events.AUDIO.AUDIO_READY)))})),_defineProperty$2(_assertThisInitialized$1(r),"_onProgress",(function(){if(r._media.readyState<=1){var e=r._getBufferGap();e>0&&e<1&&(r._media.currentTime+=e+JUMP_GAP_STEP,logger.warn(r.TAG,"progress, gap=",e))}r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PROGRESS),r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE)})),_defineProperty$2(_assertThisInitialized$1(r),"_onEnded",(function(){var e;logger.log(r.TAG,"ended!"),null===(e=_assertThisInitialized$1(r))||void 0===e||e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED)})),_defineProperty$2(_assertThisInitialized$1(r),"_onOnceProgress",(function(){if(r._media.buffered.length){var e=r._media.buffered.start(0);e&&(r._media.currentTime=e+JUMP_GAP_STEP,logger.log(r.TAG,"start gap:",e)),r._media.removeEventListener("progress",r._onOnceProgress)}})),_defineProperty$2(_assertThisInitialized$1(r),"_onError",(function(){var e;r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,r._assembleErr("audio error: ".concat(null===(e=r._media.error)||void 0===e?void 0:e.message),AUDIO_ERROR_SUBCODE))})),_defineProperty$2(_assertThisInitialized$1(r),"_appendChunk",(function(e,t){var n;if(!r.noAudio&&t.samples.length){if(r._codec||(2!==t.objectType&&5!==t.objectType?r._codec="mp4a.40.5":r._codec=t.codec,r._isTempMedia&&r._switchMedia(r._codec)),_forEachInstanceProperty(n=t.samples).call(n,(function(e){e.baseMediaDecodeTime=t.baseMediaDecodeTime,r._sampleQueue.push(e)})),t.samples=[],!r._meta)return r._meta=_objectSpread2(_objectSpread2({},t),{},{exist:function(){return!0},hasSample:function(){return!0},samples:[]}),logger.warn(r.TAG,"audio set metadata",r._meta),void r._doAppendWrapper();var o,i;if(r._meta.sampleRate!==t.sampleRate)logger.warn(r.TAG,_concatInstanceProperty(o="discontinue: ".concat(r._meta.sampleRate," -> ")).call(o,t.sampleRate)),r._needInitSegment=!0,_forEachInstanceProperty(i=_Object$keys(t)).call(i,(function(e){r._meta[e]=t[e]}));!r._inProcessing&&r._sampleQueue.length&&r._doAppendWrapper()}})),_defineProperty$2(_assertThisInitialized$1(r),"_doAppend",function(){var e=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(t){var n,o,i;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._remuxer||(r._remuxer=new FMP4Remuxer({samples:[],exist:function(){return!1}},t)),n=t.samples,r._sourceCreated){e.next=12;break}return r.analyse.addAudioMseOpenStart(),e.next=6,r._mse.open();case 6:r._sourceCreated=!0,logger.log(r.TAG,"video/mp4;codecs=".concat(r._codec)),r._mse.createSource(t.type,"video/mp4;codecs=".concat(r._codec)),r.analyse.addAudioMseOpend(),logger.log(r.TAG,"sb created!"),r._checkAutoPlay();case 12:if(o=r._remuxer.remux(r._needInitSegment),!r._needInitSegment||o.audioInitSegment){e.next=15;break}return e.abrupt("return");case 15:return r._needInitSegment=!1,i=[],o.audioInitSegment&&i.push(r._mse.append(t.type,o.audioInitSegment)),o.audioSegment&&i.push(r._mse.append(t.type,o.audioSegment)),e.abrupt("return",_Promise.all(i).then((function(){return n[n.length-1].dts/1e3})).then((function(){r._firstTimeAppendedBuffer||(r._firstTimeAppendedBuffer=!0,r.analyse.addAudioFirstTimeAppended())})));case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),_defineProperty$2(_assertThisInitialized$1(r),"_doPlay",(function(){r._media.play().catch((function(){}))})),_defineProperty$2(_assertThisInitialized$1(r),"_doPause",(function(){r._media.pause()})),_defineProperty$2(_assertThisInitialized$1(r),"_doSeek",(function(e){r._ready=!1,r._media.currentTime=e})),_defineProperty$2(_assertThisInitialized$1(r),"_doChaseFrame",(function(e){var t=e.position;r._seekNoSideEffect=!0,r._media.currentTime=t})),_defineProperty$2(_assertThisInitialized$1(r),"_startRender",(function(){logger.log(r.TAG,"start render"),r._startRendered=!0,r._media.play().catch((function(){}))})),r.TAG="AudioMseRender",r._reuseMse=getDecodeCapacaity().reuseMseForAudio,r._initMedia(),r}return _createClass$2(i,[{key:"isMse",get:function(){return!0}},{key:"media",get:function(){return this._media}},{key:"currentTime",get:function(){return this._media.currentTime}},{key:"buffered",get:function(){return this._media.buffered}},{key:"duration",get:function(){return _Number$isNaN(this._media.duration)?1/0:this._media.duration},set:function(e){this._duration=e,this._updateDuration(e)}},{key:"audioCanAutoplay",get:function(){return this._audioCanAutoplay||this.noAudio}},{key:"_initMedia",value:function(){if(!this._reuseMse||!mediaCache.hasCached)return logger.log(this.TAG,"init media and mse directly"),this._media=document.createElement("video"),this._media.autoplay=!0,this._mse=new MSE,this._bindEvents(),this._bindMediaEvents(),void this._mse.bindMedia(this._media);logger.log(this.TAG,"bind media temporary"),this._media=mediaCache.tempMedia,this._bindEvents(),this._isTempMedia=!0}},{key:"_switchMedia",value:function(e){var t=this._media,r=mediaCache.getCachedMedia(CODEC_MAP[e]);r?(logger.warn(this.TAG,"switch to cached media for audio play! codec=".concat(e)),this._media=r.media,this._mse=r.mse,this._bindMediaEvents(),this._updateDuration(this._duration),this._media.currentTime=JUMP_GAP_STEP,this._sourceCreated=!0,this._audioCanAutoplay=!0,this.analyse.addAudioMseOpend()):this._initMedia(),this._media.volume=t.volume,this._media.playbackRate=t.playbackRate,this._isTempMedia=!1}},{key:"_getBufferGap",value:function(){for(var e=this.buffered,t=0,r=e.length;t<r;t++)if(!(e.end(t)<this.currentTime))return e.start(t)-this.currentTime;return 0}},{key:"canSeek",value:function(){return!0}},{key:"resume",value:function(){return this._media.play()}},{key:"pause",value:function(){return this._media.pause()}},{key:"seekNoSideEffect",value:function(e){this._doChaseFrame(e)}},{key:"dump",value:function(){}},{key:"_emitTimelineEvents",value:function(e,t,r){var n,o;null===(n=this._parent)||void 0===n||null===(o=n.emit)||void 0===o||o.call(n,e,t,r)}},{key:"_assembleErr",value:function(e,t){var r=new Error(e);return r.code=3,r.subCode=t,r}},{key:"_bindEvents",value:function(){var e=this;_get(_getPrototypeOf$1(i.prototype),"_bindEvents",this).call(this),this._parent.on(Events.DECODE_EVENTS.CHASE_AUDIO_FRAME,this._doChaseFrame),this._parent.on(Events.TIMELINE.UPDATE_VOLUME,(function(t){e._media.volume=t,e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.VOLUME_CHANGE)})),this._parent.on(Events.TIMELINE.END_OF_STREAM,(function(){var t;e.reuseMseForAudio||(null===(t=e._mse)||void 0===t||t.endOfStream())})),this._parent.on(Events.TIMELINE.SET_PLAYBACKRATE,(function(t){logger.log(e.TAG,"change playbackrate, ",t),e._media.playbackRate=t}))}},{key:"_bindMediaEvents",value:function(){this._media.addEventListener("canplay",this._onCanplay),this._media.addEventListener("playing",this._onPlaying),this._media.addEventListener("waiting",this._onWaiting),this._media.addEventListener("seeked",this._onSeeked),this._media.addEventListener("progress",this._onProgress),this._media.addEventListener("ended",this._onEnded),this._media.addEventListener("progress",this._onOnceProgress),this._media.addEventListener("error",this._onError)}},{key:"_updateDuration",value:(n=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(t){return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(this._mse.isOpened){e.next=4;break}return e.next=4,this._mse.open();case 4:return e.next=6,this._mse.updateDuration(t);case 6:logger.log(this.TAG,"update duration",t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_doAppendWrapper",value:(r=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(){var t;return _regeneratorRuntime$1().wrap((function(e){for(var r;;)switch(e.prev=e.next){case 0:return this._meta.samples=_sliceInstanceProperty(r=this._sampleQueue).call(r),this._meta.baseMediaDecodeTime=this._meta.samples[0].baseMediaDecodeTime,this._sampleQueue=[],e.prev=3,this._inProcessing=!0,e.next=7,this._doAppend(this._meta);case 7:if(t=e.sent,this.isLive&&this._emitTimelineEvents(Events.TIMELINE.UPDATE_SEGMENT_END,t),this._inProcessing=!1,!this._sampleQueue.length){e.next=13;break}return e.next=13,this._doAppendWrapper();case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr("audio error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message),AUDIO_ERROR_SUBCODE));case 18:case"end":return e.stop()}}),e,this,[[3,15]])}))),function(){return r.apply(this,arguments)})},{key:"_checkAutoPlay",value:function(){var e=this;this._media.addEventListener("canplay",(function t(){var r=e._media.volume;e._media.volume=Math.min(r,.1);var n=e._media.play();(n=n.then?n:_Promise.reject()).then((function(){logger.log(e.TAG,"auto play by checkAutoPlay!"),e._audioCanAutoplay=!0})).catch((function(){logger.warn(e.TAG,"can’t auto play!"),e._audioCanAutoplay=!1,e.emit(Events.AUDIO.AUDIO_NOT_ALLOWED_AUTOPLAY)})).finally((function(){e._media.volume=r,e._startRendered||(e._media.pause(),logger.log(e.TAG,"auto paused by checkAutoPlay!")),e._media.removeEventListener("canplay",t)}))}))}},{key:"_destroy",value:(t=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(){var t,r,n;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(logger.log(this.TAG,"destroy audio render"),this._remuxer=null,this.removeAllListeners(),this._media.removeEventListener("canplay",this._onCanplay),this._media.removeEventListener("playing",this._onPlaying),this._media.removeEventListener("waiting",this._onWaiting),this._media.removeEventListener("seeked",this._onSeeked),this._media.removeEventListener("progress",this._onProgress),this._media.removeEventListener("ended",this._onEnded),this._media.removeEventListener("progress",this._onOnceProgress),this._media.removeEventListener("error",this._onError),this._reuseMse){e.next=17;break}return null===(t=this._mse)||void 0===t||t.endOfStream(),e.next=15,null===(r=this._mse)||void 0===r?void 0:r.unbindMedia();case 15:e.next=20;break;case 17:null===(n=this._mse)||void 0===n||n.clearAllBuffer(),mediaCache.cacheMedia({codec:this._codec,media:this._media,mse:this._mse}),logger.log(this.TAG,"cache media for audio play, codec=",this._codec);case 20:this._meta&&(this._meta.duration=0),this._mse=null,this._media=null;case 23:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"isSupported",value:function(){return getDecodeCapacaity().audioWithMse&&!!window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="mp4a.40.5"')}}]),i}(),TOLERANCE$1=.1,MAX_TOLERANCE=1,VideoTimeRange=function(){function e(t){_classCallCheck$2(this,e),this.TAG="VideoTimeRange",this._parent=t,this._baseDts=0,this._lastDuration=0,this._duration=0,this._bitrate=0,this._totalSize=0,this._buffers=[],this._currentFrameQueue=[],this._frameIndexInQueue=0,this._delayEstimateList=[],this._keyframeQueue=[]}return _createClass$2(e,[{key:"isLive",get:function(){return this._parent.isLive}},{key:"baseDts",get:function(){return this._baseDts}},{key:"duration",get:function(){return this._duration},set:function(e){this._duration=e}},{key:"buffered",get:function(){var e=this;if(this.isLive)return{length:this._duration?1:0,start:function(){return 0},end:function(){return e._duration}};var t=this._mergeBufferRanges();return{length:t.length,start:function(e){var r=t[e];return r?r.start:0},end:function(e){var r=t[e];return r?r.end:1/0}}}},{key:"bufferStart",get:function(){var e;return(null===(e=this._buffers[0])||void 0===e?void 0:e.start)||0}},{key:"frameLength",get:function(){return this._currentFrameQueue.length}},{key:"keyFrameLength",get:function(){return this._keyframeQueue.length}},{key:"totalSize",get:function(){return this._totalSize}},{key:"bitrate",get:function(){return this._bitrate},set:function(e){this._bitrate=e}},{key:"lastDuration",get:function(){return this._lastDuration}},{key:"frames",get:function(){return this._currentFrameQueue}},{key:"getCurrentTime",value:function(e){return this._lastDuration+(e-this._baseDts)/1e3}},{key:"resetDts",value:function(e){this._baseDts=e}},{key:"_mergeBufferRanges",value:function(){var e,t=_sortInstanceProperty(e=this._buffers).call(e,(function(e,t){return e.start>t.start?1:-1})),r=t.length,n=[];if(!r)return n;for(var o={start:t[0].start,end:t[0].end},i=1;i<r;i++){var a=t[i];Math.abs(o.end-a.start)<TOLERANCE$1?o.end=a.end:(n.push(o),o={start:a.start,end:a.end})}return n.push(o),n}},{key:"_caclBaseDts",value:function(e){-1===this._baseDts&&e&&(this._baseDts=e.dts,logger.log(this.TAG,"set baseDts: ",this._baseDts,"frame len:",this._currentFrameQueue.length))}},{key:"_updateDuration",value:function(e){for(var t=e.length,r=e[t-1],n=0;n<t;n++){var o=e[n];if(o&&o.options&&o.options.meta){var i=e[n-1]||this._currentFrameQueue[this._currentFrameQueue.length-1];i?this._lastDuration+=(i.dts-this._baseDts)/1e3:this._lastDuration=this._duration,logger.log(this.TAG,"updateBaseDts,record lastDuration:",this._lastDuration),this._baseDts=o.dts;break}}r&&(this._duration=(r.dts-this._baseDts)/1e3+this._lastDuration)}},{key:"_estimateBitRate",value:function(e){var t=e.length;if(t<=2){var r;if(this._delayEstimateList=_concatInstanceProperty(r=this._delayEstimateList).call(r,e),(t=this._delayEstimateList.length)<=30)return;e=this._delayEstimateList,this._delayEstimateList=[]}for(var n=0,o=0;o<t;o++){var i,a=e[o];n+=a.data?a.data.length:_reduceInstanceProperty(i=a.units).call(i,(function(e,t){return e+t.byteLength}),0)}this._totalSize+=n;var s=n/(e[t-1].dts-e[0].dts);this._bitrate=_parseInt$1(8e3*s)}},{key:"_beforeAppendVodBuffer",value:function(e){var t=this;if(e.length){for(var r=[],n=[],o=0,i=e.length;o<i;o++)e[o].keyframe&&(r.push(n),n=[]),n.push(e[o]);n.length&&r.push(n),_forEachInstanceProperty(r).call(r,(function(e){return t._appendVodBuffer(e)}))}}},{key:"_appendVodBuffer",value:function(e){var t,r;if(e.length){var n,o=e[0],i=e[e.length-1],a=(o.dts-this._baseDts)/1e3,s=(i.dts-this._baseDts)/1e3;if(logger.enable)logger.log(this.TAG,_concatInstanceProperty(n="add new buffer range [".concat(a," , ")).call(n,s,"]"));_filterInstanceProperty(t=this._buffers).call(t,(function(e){return a>=e.start&&s<=e.end})).length||(this._buffers.push({start:a,end:s,duartion:s-a,frames:_sliceInstanceProperty(e).call(e)}),_sortInstanceProperty(r=this._buffers).call(r,(function(e,t){return e.start>t.start?1:-1})),this._afterAppendVodBuffer())}}},{key:"_afterAppendVodBuffer",value:function(){var e;if(_filterInstanceProperty(e=this._buffers).call(e,(function(e){var t;return!(null!==(t=e.frames[0])&&void 0!==t&&t.keyframe)})).length){for(var t=this._buffers,r=this._buffers.length,n=[],o=this._buffers[0],i=1;i<r;i++){var a,s;if(null!==(a=t[i].frames[0])&&void 0!==a&&a.keyframe)n.push(o),o=t[i];else o.frames=_concatInstanceProperty(s=o.frames).call(s,t[i].frames),o.end=t[i].end,o.duartion=o.end-o.start}n.push(o),this._buffers=n}}},{key:"_recordKeyframes",value:function(e){var t,r,n=this;(_forEachInstanceProperty(e).call(e,(function(e){if(e.keyframe){var t=(e.dts-n._baseDts)/1e3;n._keyframeQueue.push({position:t,frame:e})}})),this._keyframeQueue=_sortInstanceProperty(t=this._keyframeQueue).call(t,(function(e,t){return e.position>t.position?1:-1})),this.isLive&&this._keyframeQueue.length>40)&&_spliceInstanceProperty(r=this._keyframeQueue).call(r,0,20)}},{key:"toAnnexBNalu",value:function(e){_forEachInstanceProperty(e).call(e,(function(e){var t=e.units;if(t){var r=_reduceInstanceProperty(t).call(t,(function(e,t){return e+4+t.byteLength}),0),n=new Uint8Array(r),o=0;_forEachInstanceProperty(t).call(t,(function(e){n.set([0,0,0,1],o),o+=4,n.set(e,o),o+=e.byteLength})),e.units=null,e.data=n}}))}},{key:"append",value:function(e,t,r){var n;(r&&this.toAnnexBNalu(e),this._caclBaseDts(e[0]),t&&this._updateDuration(e),this._estimateBitRate(e),this._recordKeyframes(e),this.isLive)?this._currentFrameQueue=_concatInstanceProperty(n=this._currentFrameQueue).call(n,e):this._beforeAppendVodBuffer(e)}},{key:"updateSegmentEnd",value:function(e){var t=this._buffers[this._buffers.length-1];t&&(Math.abs(t.end-e)<.5||(t.end=e,t.duartion=e-t.start,logger.log(this.TAG,"video data lack, reset end:",e)))}},{key:"getFrame",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.isLive)return this._currentFrameQueue.shift();if(!(e=this._currentFrameQueue[this._frameIndexInQueue])){if(!(e=this._currentFrameQueue[--this._frameIndexInQueue]))return;if(!this.switchBuffer((e.dts-this._baseDts)/1e3,this._frameIndexInQueue++,t))return;return this.getFrame(++t)}return this._frameIndexInQueue++,e}},{key:"getFramesForPreciseSeek",value:function(e){var t;return _filterInstanceProperty(t=this._currentFrameQueue).call(t,(function(t){return t.dts<=e}))}},{key:"updateFrameIndexForPreciseSeek",value:function(e){this._frameIndexInQueue=e}},{key:"switchBuffer",value:function(e){var t,r,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)>=20)){e=e||this.bufferStart;var a,s,c,l,u,$,d,A=_filterInstanceProperty(t=this._buffers).call(t,(function(t){return t.start<e+TOLERANCE$1&&t.end>=e+TOLERANCE$1}))[0];if(!A){var p,f,h=_findInstanceProperty(p=this._buffers).call(p,(function(t){return t.start>=e}));return h&&h.start-e<MAX_TOLERANCE?(this._currentFrameQueue=_sliceInstanceProperty(f=h.frames).call(f,0),this._frameIndexInQueue=0,h):void 0}if(A.frames[0].dts>=e)return this._currentFrameQueue=_sliceInstanceProperty(a=A.frames).call(a,0),this._frameIndexInQueue=0,logger.log(this.TAG,_concatInstanceProperty(s=_concatInstanceProperty(c="switch video buffer, time:".concat(e," , buffer:[")).call(c,A.start," , ")).call(s,A.end,"], index=0")),A;if(A.frames.length>i)return this._currentFrameQueue=_sliceInstanceProperty(l=A.frames).call(l,0),logger.log(this.TAG,_concatInstanceProperty(u=_concatInstanceProperty($=_concatInstanceProperty(d="switch video buffer, in the same gop and more frame got, time:".concat(e," , buffer:[")).call(d,A.start," , ")).call($,A.end,"], index=")).call(u,i)),A;logger.log(this.TAG,_concatInstanceProperty(r=_concatInstanceProperty(n=_concatInstanceProperty(o="switch video buffer, in the same gop and no more frame got, time:".concat(e," , buffer:[")).call(o,A.start," , ")).call(n,A.end,"], index=")).call(r,i))}}},{key:"getSeekStartPosition",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(_forEachInstanceProperty(t=this._keyframeQueue).call(t,(function(t){t.position<=e&&(r=t)})),r)return e-r.position<n?r:void 0}},{key:"nextFrame",value:function(){return this._currentFrameQueue[0]}},{key:"deletePassed",value:function(e){var t;this._currentFrameQueue=_filterInstanceProperty(t=this._currentFrameQueue).call(t,(function(t){return t.dts>=e}))}},{key:"getDtsOfTime",value:function(e){var t=e-this._lastDuration;return this._baseDts+1e3*t}},{key:"clean",value:function(){this._currentFrameQueue=[]}},{key:"destroy",value:function(){this._currentFrameQueue=[],this._buffers=[]}}]),e}();function _checkClose(e){var t;(null===(t=e.buffer)||void 0===t?void 0:t.close)&&e.buffer.close()}var FrameQueue=function(){function e(t){_classCallCheck$2(this,e),this.TAG="FrameQueue",this._parent=t,this._lastGopId=0,this._frames=[]}return _createClass$2(e,[{key:"currentTimeDts",get:function(){return this._parent.preciseVideoDts}},{key:"length",get:function(){return this._frames.length}},{key:"frames",get:function(){return this._frames}},{key:"append",value:function(e){e.info?this._frames.push(e):_checkClose(e)}},{key:"appendVodFrame",value:function(e){this._frames.push(e)}},{key:"nextFrame",value:function(){var e,t=this._frames.length;1===this._parent.noAudio&&t>3&&(this._frames=_sliceInstanceProperty(e=this._frames).call(e,t-2));return this._frames[0]}},{key:"shift",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this._frames.shift();return this.deletePassed(e),t}},{key:"deletePassed",value:function(e){var t;this._frames=_filterInstanceProperty(t=this._frames).call(t,(function(t){return!!(t.info&&t.info.dts>e)||(_checkClose(t),!1)}))}},{key:"empty",value:function(){var e;_forEachInstanceProperty(e=this._frames).call(e,(function(e){return _checkClose(e)})),this._frames=[]}},{key:"destroy",value:function(){this.empty(),this._lastGopId=0}}]),e}(),createTypedArrayConstructor=typedArrayConstructorExports;createTypedArrayConstructor("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var FrameRenderCache=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_queue",[]),_defineProperty$2(this,"TAG","FrameRenderCache")}return _createClass$2(e,[{key:"cacheCvs",value:function(e){this._queue.push(e),logger.log(this.TAG,"cache canvas!")}},{key:"getCachedCvs",value:function(){var e=this._queue.pop();return e&&logger.log(this.TAG,"get cached canvas!"),e}}]),e}(),frameRenderCache=new FrameRenderCache,FrameRender=function(){function e(t,r){_classCallCheck$2(this,e),this.TAG="FrameRender",this.configs=_Object$assign({},t),this.parent=r,this.canvas=this.configs.canvas,this.canvas.glInstance=this,this.meta=_Object$assign({},this.configs.meta),this.frameRenderCache=frameRenderCache,this._initMeta(),this._initContextGL(),this.contextGL&&(this._initProgram(),this._initBuffers(),this._initTextures())}return _createClass$2(e,[{key:"_initMeta",value:function(){this.chroma=this.meta.chromaFormat,this.height=this.meta.height,this.width=this.meta.width,this.canvas.width===this.meta.width&&this.canvas.height===this.meta.height||(this.canvas.width=this.meta.width,this.canvas.height=this.meta.height,this.parent.emitResizeEvent())}},{key:"_initContextGL",value:function(){if("2d"!==this.configs.type){for(var e=this.canvas,t=null,r=["webgl","experimental-webgl","moz-webgl","webkit-3d"],n=0;!t&&n<r.length;){var o=r[n];try{t=e.getContext(o,this.configs.glCtxOptions),logger.log("FrameRender","use=",o,this.configs.glCtxOptions);break}catch(e){t=null}t&&"function"==typeof t.getParameter||(t=null),++n}this.contextGL=t}else this.ctx=this.canvas.getContext("2d")}},{key:"_initProgram",value:function(){var e=this.contextGL,t=["attribute vec4 vertexPos;","attribute vec4 texturePos;","attribute vec4 uTexturePos;","attribute vec4 vTexturePos;","varying vec2 textureCoord;","varying vec2 uTextureCoord;","varying vec2 vTextureCoord;","void main()","{"," gl_Position = vertexPos;"," textureCoord = texturePos.xy;"," uTextureCoord = uTexturePos.xy;"," vTextureCoord = vTexturePos.xy;","}"].join("\n"),r=["precision highp float;","varying highp vec2 textureCoord;","varying highp vec2 uTextureCoord;","varying highp vec2 vTextureCoord;","uniform sampler2D ySampler;","uniform sampler2D uSampler;","uniform sampler2D vSampler;","uniform mat4 YUV2RGB;","void main(void) {"," highp float y = texture2D(ySampler, textureCoord).r;"," highp float u = texture2D(uSampler, uTextureCoord).r;"," highp float v = texture2D(vSampler, vTextureCoord).r;"," gl_FragColor = vec4(y, u, v, 1) * YUV2RGB;","}"].join("\n"),n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,t),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)||console.log("Vertex shader failed to compile: "+e.getShaderInfoLog(n));var o=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(o,r),e.compileShader(o),e.getShaderParameter(o,e.COMPILE_STATUS)||console.log("Fragment shader failed to compile: "+e.getShaderInfoLog(o));var i=e.createProgram();e.attachShader(i,n),e.attachShader(i,o),e.linkProgram(i),e.getProgramParameter(i,e.LINK_STATUS)||console.log("Program failed to compile: "+e.getProgramInfoLog(i)),e.useProgram(i);var a=e.getUniformLocation(i,"YUV2RGB");e.uniformMatrix4fv(a,!1,[1.16438,0,1.59603,-.87079,1.16438,-.39176,-.81297,.52959,1.16438,2.01723,0,-1.08139,0,0,0,1]),this.shaderProgram=i}},{key:"_initBuffers",value:function(){var e=this.contextGL,t=this.shaderProgram,r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,1,-1,1,1,-1,-1,-1]),e.STATIC_DRAW);var n=e.getAttribLocation(t,"vertexPos");e.enableVertexAttribArray(n),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0);var o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW);var i=e.getAttribLocation(t,"texturePos");e.enableVertexAttribArray(i),e.vertexAttribPointer(i,2,e.FLOAT,!1,0,0),this.texturePosBuffer=o;var a=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW);var s=e.getAttribLocation(t,"uTexturePos");e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),this.uTexturePosBuffer=a;var c=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,c),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW);var l=e.getAttribLocation(t,"vTexturePos");e.enableVertexAttribArray(l),e.vertexAttribPointer(l,2,e.FLOAT,!1,0,0),this.vTexturePosBuffer=c}},{key:"_initTextures",value:function(){var e=this.contextGL,t=this.shaderProgram,r=this._initTexture(),n=e.getUniformLocation(t,"ySampler");e.uniform1i(n,0),this.yTextureRef=r;var o=this._initTexture(),i=e.getUniformLocation(t,"uSampler");e.uniform1i(i,1),this.uTextureRef=o;var a=this._initTexture(),s=e.getUniformLocation(t,"vSampler");e.uniform1i(s,2),this.vTextureRef=a,e.pixelStorei(e.UNPACK_ALIGNMENT,1)}},{key:"_initTexture",value:function(){var e=this.contextGL,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(e.TEXTURE_2D,null),t}},{key:"_drawPictureGL",value:function(e,t,r,n,o){var i=n*r,a=o*r/2;444!==this.chroma&&422!==this.chroma||(a*=2);var s={yData:(e=new Uint8Array(e)).subarray(0,i),uData:e.subarray(i,i+a),vData:e.subarray(i+a,i+a+a)};this._drawPictureGL420(s,t,r,n,o)}},{key:"_drawPictureGL420",value:function(e,t,r,n,o){var i=this.contextGL,a=this.texturePosBuffer,s=this.uTexturePosBuffer,c=this.vTexturePosBuffer,l=this.yTextureRef,u=this.uTextureRef,$=this.vTextureRef,d=e.yData,A=e.uData,p=e.vData,f=n,h=r,y=o,_=r/2;422!==this.chroma&&444!==this.chroma||(_=r);var g=o,m=_,E=this.canvas.width/this.width,b=this.canvas.height/this.height,I=0,v=0,S=this.canvas.width,T=this.canvas.height;E<b?(T=this.height*this.canvas.width/this.width,v=_parseInt$1((this.canvas.height-this.height*this.canvas.width/this.width)/2)):(S=this.width*this.canvas.height/this.height,I=_parseInt$1((this.canvas.width-this.width*this.canvas.height/this.height)/2)),i.viewport(I,v,S,T);var O=new Float32Array([1,0,0,0,1,1,0,1]);i.bindBuffer(i.ARRAY_BUFFER,a),i.bufferData(i.ARRAY_BUFFER,O,i.DYNAMIC_DRAW);var R=new Float32Array([1,0,0,0,1,1,0,1]);i.bindBuffer(i.ARRAY_BUFFER,s),i.bufferData(i.ARRAY_BUFFER,R,i.DYNAMIC_DRAW);var P=new Float32Array([1,0,0,0,1,1,0,1]);i.bindBuffer(i.ARRAY_BUFFER,c),i.bufferData(i.ARRAY_BUFFER,P,i.DYNAMIC_DRAW),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,l),i.texImage2D(i.TEXTURE_2D,0,i.LUMINANCE,f,h,0,i.LUMINANCE,i.UNSIGNED_BYTE,d),i.activeTexture(i.TEXTURE1),i.bindTexture(i.TEXTURE_2D,u),i.texImage2D(i.TEXTURE_2D,0,i.LUMINANCE,y,_,0,i.LUMINANCE,i.UNSIGNED_BYTE,A),i.activeTexture(i.TEXTURE2),i.bindTexture(i.TEXTURE_2D,$),i.texImage2D(i.TEXTURE_2D,0,i.LUMINANCE,g,m,0,i.LUMINANCE,i.UNSIGNED_BYTE,p),i.drawArrays(i.TRIANGLE_STRIP,0,4)}},{key:"_drawPicture2d",value:function(e){if(e&&this.canvas){this.ctx||(this.ctx=this.canvas.getContext("2d"));var t=e.displayWidth||e.width,r=e.displayHeight||e.height;this.canvas.height===r&&this.canvas.width===t||(this.canvas.height=r,this.canvas.width=t);try{this.ctx.drawImage(e.dom||e,0,0,t,r)}catch(t){console.error(this.TAG,"_drawPicture2d",e,e.dom,t,t.message)}}}},{key:"_resize",value:function(e,t){this.width===e&&this.height===t||(this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.parent.emitResizeEvent())}},{key:"render",value:function(e,t,r,n,o){this._resize(t,r),this.contextGL?this._drawPictureGL(e,t,r,n,o):this._drawPicture2d(e)}},{key:"resetMeta",value:function(e){this.meta=_Object$assign({},e)}},{key:"updateBind",value:function(e,t){this.parent=e,this.resetMeta(t)}},{key:"destroy",value:function(e){this.parent=null,this.canvas.style.display="none",e&&(this.contextGL&&this.contextGL.clear(this.contextGL.DEPTH_BUFFER_BIT|this.contextGL.COLOR_BUFFER_BIT),frameRenderCache.cacheCvs(this.canvas))}}]),e}(),MAX_QUEUE_LENGTH=5,DecodeEstimate=function(){function e(t){_classCallCheck$2(this,e),_defineProperty$2(this,"_lowDecodeThreshold",getDecodeCapacaity().lowDecodeThreshold/MAX_QUEUE_LENGTH),this.TAG="DecodeEstimate",this._needEstimate=!0,this._parent=t,this._lastDecodeDot=0,this._lastDecodeCost=0,this._lastFrameDts=0,this._dtsDeltas=[],this._decodeCosts=[],this._lowDecodeQueue=[],this._fps=0,this._decodeFps=0,this._gopLength=0,this._webcodec=!1}return _createClass$2(e,[{key:"fps",get:function(){return this._fps}},{key:"decodeFps",get:function(){return this._decodeFps}},{key:"decodeCost",get:function(){return this._lastDecodeCost}},{key:"gopLength",get:function(){return this._gopLength}},{key:"webcodec",set:function(e){this._webcodec=e}},{key:"updateGopCount",value:function(){this._gopLength++}},{key:"needEstimateFps",value:function(){this._needEstimate=!0}},{key:"addDecodeInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dts:0};this._estimateDecodeFps(e),this._estimateFps(e)}},{key:"resetDecodeDot",value:function(e){this._lastDecodeDot=e||0}},{key:"reset",value:function(){this._decodeCosts=[],this._lowDecodeQueue=[]}},{key:"_estimateFps",value:function(e){if(this._needEstimate)if(this._lastFrameDts){var t=e.dts-this._lastFrameDts;if(this._lastFrameDts=e.dts,!(Math.abs(t)>200)){this._dtsDeltas.push(t);var r=this._dtsDeltas.length;r<MAX_QUEUE_LENGTH||(this._fps=Math.ceil(1e3/this._avg(this._dtsDeltas,r)),logger.log(this.TAG,"estimate fps:",this._fps),this._needEstimate=!1)}}else this._lastFrameDts=e.dts}},{key:"_estimateDecodeFps",value:function(e){if(this._lastDecodeDot){var t=performance.now(),r=t-this._lastDecodeDot;this._lastDecodeDot=t,e.cost=r,this._lastDecodeCost=r,this._decodeCosts.push(r);var n=this._decodeCosts.length;if(!(n<MAX_QUEUE_LENGTH)){var o=this._avg(this._decodeCosts,n);this._decodeFps=Math.floor(1e3/o),this._decodeCosts=[],this._lowDecodeDetect()}}else this._lastDecodeDot=performance.now()}},{key:"_avg",value:function(e,t){var r=_reduceInstanceProperty(e).call(e,(function(e,t){return e+=t}),0);return Math.floor(r/t)||1}},{key:"_lowDecodeDetect",value:function(){this._decodeFps?(this._decodeFps<this._fps*this._parent.playbackRate+(this.webcodec?0:3)?this._lowDecodeQueue.push(this._decodeFps):this._lowDecodeQueue.pop(),this._lowDecodeQueue.length>this._lowDecodeThreshold&&(this._lowDecodeQueue=[],logger.log(this.TAG,"解码效率过低,应该降级"),this._parent.emit(Events.VIDEO.DECODE_LOW_FPS))):this._parent.emit(Events.VIDEO.DECODE_LOW_FPS)}}]),e}(),shell="\n var timer;\n\n function initTimer (interval) {\n destroy()\n clearInterval(timer);\n timer = setInterval(() => {\n self.postMessage({type: 'NEXT_TICK'});\n }, interval)\n }\n\n function destroy () {\n clearInterval(timer);\n }\n\n self.onmessage = function (e) {\n var {type,interval} = e.data;\n switch (type) {\n case 'START':\n initTimer(interval);\n break;\n case 'DESTROY':\n destroy();\n break;\n }\n }\n",timerWorkerCache=[],TickTimer=function(){function e(t){var r=this;_classCallCheck$2(this,e),_defineProperty$2(this,"_doTask",(function(){var e;null===(e=r._task)||void 0===e||e.call(r)})),this._task=t;var n=new Blob([shell],{type:"application/javascript"});this._worker=timerWorkerCache.pop()||new Worker(_URL.createObjectURL(n)),this._bindEvent()}return _createClass$2(e,[{key:"_bindEvent",value:function(){this._worker.addEventListener("message",this._doTask)}},{key:"start",value:function(e){(e=_parseInt$1(e))<10&&(e=10),e>60?e=60:e>25&&(e=25),this._worker.postMessage({type:"START",interval:e})}},{key:"stop",value:function(){this._worker.postMessage({type:"DESTROY"})}},{key:"destroy",value:function(){this._worker&&(this._worker.postMessage({type:"DESTROY"}),this._worker.removeEventListener("message",this._doTask),timerWorkerCache.push(this._worker),logger.log("TickTimer","unbind timer event"),this._worker=null,this._task=null)}}]),e}(),HAVE_NOTHING=0,HAVE_METADATA=1,HAVE_CURRENT_DATA=2,HAVE_FUTURE_DATA=3,HAVE_ENOUGH_DATA=4,MEDIA_ERR_DECODE=3,VideoBaseRender=function(e){_inherits$1(r,BaseRender);var t=_createSuper$1(r);function r(e,n){var o,i;return _classCallCheck$2(this,r),(i=t.call(this,e,n))._timeRange=new VideoTimeRange(_assertThisInitialized$1(i)),i._decodeEstimate=new DecodeEstimate(_assertThisInitialized$1(i)),i._frameQueue=new FrameQueue(_assertThisInitialized$1(i)),i._lastTimeupdate=0,i._renderCost=0,i._canAutoPlay=!0,i._videoDecode=!1,i._inSeeking=!1,i._frameRender=null,i._configuration=null,i._render=_bindInstanceProperty(o=i._render).call(o,_assertThisInitialized$1(i)),i._tickTimer=new TickTimer(i._render),i._initCanvas(e),i._bindEvents(),i}return _createClass$2(r,[{key:"canAutoPlay",get:function(){return this._canAutoPlay}},{key:"canvas",get:function(){return this._canvas}},{key:"timescale",get:function(){return 1e3}},{key:"fps",get:function(){return this._decodeEstimate.fps||this._meta&&this._meta.fpsNum/this._meta.fpsDen||24}},{key:"decodeFps",get:function(){return this._decodeEstimate.decodeFps}},{key:"decodeCost",get:function(){return this._decodeEstimate.decodeCost}},{key:"renderCost",get:function(){return this._renderCost}},{key:"totalSize",get:function(){return this._timeRange.totalSize}},{key:"bitrate",get:function(){return this._timeRange.bitrate},set:function(e){this._timeRange.bitrate=e}},{key:"gopLength",get:function(){return this._decodeEstimate.gopLength}},{key:"is540p",get:function(){return this._canvas.height<720}},{key:"buffered",get:function(){return this._timeRange.buffered}},{key:"inSeeking",get:function(){return this._inSeeking}},{key:"interval",get:function(){return Math.floor(1e3/this.fps/this.playbackRate)}},{key:"playbackRate",get:function(){return this._playbackRate||1}},{key:"baseDts",get:function(){return this._timeRange.baseDts}},{key:"currentTime",get:function(){return this._timeRange.getCurrentTime(this.preciseVideoDts)}},{key:"timelinePosition",get:function(){return this._parent.timelinePosition}},{key:"lastTimelinePosition",get:function(){return this._lastTimelinePosition||0},set:function(e){this._lastTimelinePosition=e}},{key:"audioSyncDts",get:function(){return this._audioDts||this.baseDts},set:function(e){this._audioDts=e}},{key:"preciseVideoDts",get:function(){return this.audioSyncDts+Math.floor(1e3*(this.timelinePosition-this.lastTimelinePosition))}},{key:"readyState",get:function(){var e=this._frameQueue.length||(this.currentTime?1:0);return e?e>=8?HAVE_ENOUGH_DATA:e>=4?HAVE_FUTURE_DATA:e>=2?HAVE_CURRENT_DATA:HAVE_METADATA:HAVE_NOTHING}},{key:"isHevc",get:function(){return!("hev1.1.6.L93.B0"!==(this._meta||{}).codec)}},{key:"videoDecode",get:function(){return this._videoDecode}},{key:"decoderMode",get:function(){var e;return null===(e=this._decodeController)||void 0===e?void 0:e.decoderMode}},{key:"configuration",get:function(){var e,t;return this._configuration||(this._configuration=this._meta.configuration||getAvcc(null===(e=this._meta)||void 0===e?void 0:e.sps[0],null===(t=this._meta)||void 0===t?void 0:t.pps[0])),this._configuration},set:function(e){this._configuration=e.configuration||getAvcc(e.sps[0],e.pps[0])}},{key:"setSeekingStatus",value:function(e){this._inSeeking=e}},{key:"getDtsOfTime",value:function(e){return this._timeRange.getDtsOfTime(e)}},{key:"updateReady",value:function(){this._whenReady()}},{key:"forceRender",value:function(){this._render(!0)}},{key:"getSeekStartPosition",value:function(e,t){return this._timeRange.getSeekStartPosition(e,t)}},{key:"canSeek",value:function(){throw new Error("need override by children")}},{key:"emitResizeEvent",value:function(){null==this||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.RESIZE)}},{key:"_assembleErr",value:function(e,t){var r=new Error(e);return r.code=MEDIA_ERR_DECODE,r.subCode=t,r}},{key:"_emitTimelineEvents",value:function(e,t,r){var n;null===(n=this._parent)||void 0===n||n.emit(e,t,r)}},{key:"_initCanvas",value:function(e){e.canvas?this._canvas=e.canvas:this._canvas=frameRenderCache.getCachedCvs()||document.createElement("canvas"),this._canvas.style.margin="auto",this._canvas.style.position="absolute",this._canvas.style.pointerEvents="none"}},{key:"_bindEvents",value:function(){var e,t,n=this;_get(_getPrototypeOf$1(r.prototype),"_bindEvents",this).call(this);var o=function(e){var t,r,o,i,a,s,c,l,u=e.width,$=e.height,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,p=n._canvas,f=p.width,h=p.height,y=$*f/h,_=u*h/f,g=u-y,m=$-_,E=g*d+"px",b=m*A+"px";n._canvas.style.left=E,n._canvas.style.top=b,logger.warn(n.TAG,_concatInstanceProperty(t=_concatInstanceProperty(r=_concatInstanceProperty(o="cvsWidth=".concat(f,", cvsHeight=")).call(o,h,", scaleCvsWidth=")).call(r,y,", scaleCvsHeight=")).call(t,_)),logger.warn(n.TAG,_concatInstanceProperty(i=_concatInstanceProperty(a=_concatInstanceProperty(s=_concatInstanceProperty(c=_concatInstanceProperty(l="cover position: deltaX=".concat(g,", deltaY=")).call(l,m,", width=")).call(c,u,", height=")).call(s,$,", pX=")).call(a,E,", pY=")).call(i,b))};this._parent.on(Events.VIDEO.UPDATE_VIDEO_FILLTYPE,(function(e,t){var r=t.width,i=t.height,a=n._canvas,s=a.width,c=a.height,l=!r||r/i>s/c;if(logger.warn(n.TAG,"UPDATE_VIDEO_FILLTYPE isGapX =",l,"type =",e,s,c,r,i),n._canvas.style.maxWidth="initial",n._canvas.style.maxHeight="initial","cover"===e)return l?(n._canvas.style.left=0,n._canvas.style.top=0,n._canvas.style.height="auto",n._canvas.style.width="100%",void o({width:r,height:i},0,.5)):(n._canvas.style.left=0,n._canvas.style.top=0,n._canvas.style.width="auto",n._canvas.style.height="100%",void o({width:r,height:i},.5,0));if("fill"===e)return n._canvas.style.width="100%",void(n._canvas.style.height="100%");(n._canvas.style.top=0,n._canvas.style.bottom=0,n._canvas.style.left=0,n._canvas.style.right=0,n._canvas.style.maxWidth="100%",n._canvas.style.maxHeight="100%",n._canvas.style.width="initial",n._canvas.style.height="initial",s<r&&c<i)&&(s/r>c/i?n._canvas.style.width="100%":n._canvas.style.height="100%")})),this._parent.on(Events.VIDEO.UPDATE_VIDEO_COVER_POSITION,o),this._parent.on(Events.TIMELINE.SYNC_DTS,(function(e){var t,r=n._frameQueue.nextFrame(),o=r&&r.info&&r.info.dts;if(n.lastTimelinePosition=n.timelinePosition,n.noAudio){var i=n._timeRange.nextFrame();e=e||o||i&&i.dts||0}if(n.audioSyncDts=e,o&&o-e>500&&n._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LARGE_AV_GAP,{aDts:e,vDts:o,frameLength:n._frameQueue.length,currentTime:n._parent.currentTime,duration:n._parent.duration}),logger.log(n.TAG,"audio current buffer play finish, next buffer dts=",e,"currentTime:",n._parent.currentTime,"preciseVideoDts:",n.preciseVideoDts,"next video frame dts:",o,"frame length:",n._frameQueue.length),!(n._isLive||null!==(t=n._parent)&&void 0!==t&&t.seeking)){var a=n._timeRange.nextFrame();if(a){var s=(a.dts-a.baseDts)/1e3;n._parent.currentTime-s>1&&(logger.warn(n.TAG,"丢帧!"),n.ajustSeekTime(n._parent.currentTime))}}})),this._parent.on(Events.TIMELINE.UPDATE_GL_OPTIONS,(function(e){n._config.glCtxOptions=e})),this._parent.on(Events.TIMELINE.UPDATE_SEGMENT_END,_bindInstanceProperty(e=this._updateSegmentEnd).call(e,this)),this.on(Events.VIDEO.AUTO_RUN,_bindInstanceProperty(t=this._startRender).call(t,this)),this._parent.on(Events.TIMELINE.SET_PLAYBACKRATE,(function(e){n._playbackRate=e,n._startRender()}))}},{key:"ajustSeekTime",value:function(){throw new Error("need override by children")}},{key:"_resetDts",value:function(e,t){"audio"!==t&&this._timeRange.resetDts(e)}},{key:"_setMetadata",value:function(e,t){if("audio"!==e){logger.warn(this.TAG,"video set metadata"),this._meta=t;var r=t&&t.frameRate&&t.frameRate.fps;r?logger.log(this.TAG,"detect fps:",r):logger.warn(this.TAG,"no detect fps,start estimate"),this._initDecoder()}}},{key:"_initDecoder",value:function(){throw new Error("need override by children")}},{key:"_whenDecoderReady",value:function(){throw new Error("need override by children")}},{key:"_appendChunk",value:function(){throw new Error("need override by children")}},{key:"_startDecode",value:function(){throw new Error("need override by children")}},{key:"_receiveFrame",value:function(e,t){if(this._parent&&this._timeRange){var r=e.info||{};if(this._decodeEstimate.addDecodeInfo(r),!this._isLive&&((r.output||r.keyframe)&&(this.setSeekingStatus(!1),logger.warn(this.TAG,"set seeking status=",!1)),this.inSeeking))return logger.log(this.TAG,"drop frame"),void _checkClose(e);this._isLive?this._frameQueue.append(e):this._frameQueue.appendVodFrame(e),t&&t(),this._ready||this.readyState>=HAVE_METADATA&&this._whenReady()}}},{key:"_startRender",value:function(){logger.log(this.TAG,"start render"),this._tickTimer.start(this.interval)}},{key:"_render",value:function(){throw new Error("need override by children")}},{key:"_updateSegmentEnd",value:function(){throw new Error("need override by children")}},{key:"_whenReady",value:function(){this._ready=!0,this.emit(Events.VIDEO.VIDEO_READY),this.noAudio&&this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PLAYING)}},{key:"_doPlay",value:function(){this._tickTimer.start()}},{key:"_doPause",value:function(){this._tickTimer.stop()}},{key:"_doSeek",value:function(){this._ready=!1,this._frameQueue.destroy()}},{key:"_doChaseFrame",value:function(){throw new Error("need override by children")}},{key:"destroy",value:function(e){var t,r,n,o;null===(t=this._tickTimer)||void 0===t||t.destroy(),null===(r=this._timeRange)||void 0===r||r.destroy(),null===(n=this._frameQueue)||void 0===n||n.destroy(),null===(o=this._frameRender)||void 0===o||o.destroy(e),this._tickTimer=null,this._canvas=null,this._timeRange=null,this._frameQueue=null,this._frameRender=null,this._decodeEstimate=null,this._parent=null,this.removeAllListeners()}}]),r}(),DEFAULT_PLAYBACKRATE=2,CANVAS_COUNT=45,FRAME_DURATION=25,MAX_VIDEO_HEIGHT=720,MAX_FPS=30,MIN_FPS=15,VideoDecoder=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e){var n;return _classCallCheck$2(this,r),(n=t.call(this)).TAG="VideoDecoder",n._video=n._createVideo(),n._IsInDecoding=!1,n._fps=0,n._framId=null,n._screenShotNum=0,n._allPicNum=0,n._currentBlob=null,n._basePTS=0,n._totleTime=0,n._isVideoONRun=!0,n.firstEmit=!1,n.ptsArray=[],n._currentCanvasHeight=0,n._canvasList=[],n._realFrameDuration=FRAME_DURATION,n._maxVideoHeight=e.maxVideoHeight||MAX_VIDEO_HEIGHT,n._minFPSTime=0,n._maxFPSTime=0,n._playFailed=!1,n._isPhoneSafari=!1,n._createCanvasList(),n._bindEvents(),n}return _createClass$2(r,[{key:"_createCanvasList",value:function(){this._canvas=document.createElement("canvas"),this._ctx=this._canvas.getContext("2d",{alpha:!1});for(var e=0;e<CANVAS_COUNT;e++){var t=this._createCanvas(),r=t.dom,n=t.ctx;this._canvasList.push({dom:r,ctx:n})}}},{key:"_createCanvas",value:function(){var e=document.createElement("canvas"),t=e.getContext("2d");return{dom:e,ctx:t}}},{key:"_createVideo",value:function(){var e=document.createElement("video");return e.setAttribute("muted",!0),e.setAttribute("autoplay",!0),e.setAttribute("controls",!0),e.setAttribute("webkit-playsinline",!0),e.setAttribute("playsinline",!0),e.setAttribute("x5-video-player-type","h5"),e.setAttribute("x5-video-player-type","h5-page"),e.style.position="absolute",e}},{key:"_initVideo",value:function(e,t){if(e.blobUrl&&void 0!==e.dts){var r=e.blobUrl;this._currentBlob=r,this._basePTS=e.dts,this._currentDuration=e.duration;try{logger.log(this.TAG,"_initVideo, basePTS:",e.dts),this._setVideoSrc(r,t),this._video.paused&&this._videoPlay("_initVideo")}catch(e){console.error(this.TAG,"_initVideo, load error",e)}}else console.error(this.TAG,"_initVideo","input info is error, blobUrl:",e.blobUrl,"dts:",e.dts)}},{key:"_setVideoSrc",value:function(e,t){try{var r=this._video;r.src=e,r.load(),r.playbackRate=DEFAULT_PLAYBACKRATE}catch(e){console.error(this.TAG,"_setVideoSrc",e)}}},{key:"_videoPlay",value:function(e){var t=this,r=this._video;if(logger.log(this.TAG,"_videoPlay, video is pause:",r.paused,e),r&&r.paused){var n=r.play();void 0!==n&&n.then((function(){t._playFailed=!1,logger.log(t.TAG,"_videoPlay success")})).catch((function(e){console.error(t.TAG,"_videoPlay failed,",e.message),t._playFailed=!0,t.emit(Events.DECODE_EVENTS.PLAY_FAILED,t.firstEmit)}))}}},{key:"_removeEvents",value:function(){var e,t,r,n,o,i=this._video;i.removeEventListener("playing",_bindInstanceProperty(e=this._onPlaying).call(e,this)),i.removeEventListener("ended",_bindInstanceProperty(t=this._onEnded).call(t,this)),i.removeEventListener("error",_bindInstanceProperty(r=this._onError).call(r,this)),i.removeEventListener("loadeddata",_bindInstanceProperty(n=this._onLoadeddata).call(n,this)),i.removeEventListener("timeupdate",_bindInstanceProperty(o=this._onTimeUpdate).call(o,this))}},{key:"_bindEvents",value:function(){var e,t,r,n,o,i,a,s=this,c=this._video;c?(document.addEventListener("visibilitychange",_bindInstanceProperty(e=this._onVisibilityChange).call(e,this)),c.addEventListener("playing",_bindInstanceProperty(t=this._onPlaying).call(t,this)),c.addEventListener("ended",_bindInstanceProperty(r=this._onEnded).call(r,this)),c.addEventListener("error",_bindInstanceProperty(n=this._onError).call(n,this)),c.addEventListener("loadeddata",_bindInstanceProperty(o=this._onLoadeddata).call(o,this)),c.addEventListener("timeupdate",_bindInstanceProperty(i=this._onTimeUpdate).call(i,this)),c.addEventListener("pause",(function(){logger.log("on pause, currentTime, duration:",s._vCurrentTime,s._vDuration)})),this.on("outputresolutionchange",_bindInstanceProperty(a=this._onChange).call(a,this)),this.on("fpsreduce",(function(e){s._adaptFrameDuration(e)}))):console.error(this.TAG,"_bindEvents")}},{key:"_onTimeUpdate",value:function(){this._lastCurrentTime=this._vCurrentTime}},{key:"_onVisibilityChange",value:function(){this._isVideoONRun="visible"===document.visibilityState}},{key:"_onChange",value:function(e,t){this._width=e,this._height=t}},{key:"_onPlaying",value:function(){this._IsInDecoding&&(console.warn(this.TAG,"_onPlaying","last video not correct end"),this._framId&&(window.cancelAnimationFrame(this._framId),this._framId=null)),logger.log(this.TAG,"_onPlaying, video duration:",this._vDuration,"currentTime:",this._vCurrentTime,"_lastPts:",this._lastPts),this._isInDecoding=!0,this._lastCurrentTime=this._vCurrentTime,this.ptsArray=[],this.playingTime||(this.playingTime=!0),this._getFrame()}},{key:"_onEnded",value:function(e,t){logger.log(this.TAG,"_onEnded","current fmp4 duration is:",this._vDuration,"_isInDecoding:",this._isInDecoding,"_lastPts:",this._lastPts,"_realFrameDuration:",this._realFrameDuration,"from:",t),this._isInDecoding&&(this._isInDecoding=!1,this._lastMp4Duration=Math.min(this._vDuration,this._vCurrentTime),this._framId&&(logger.log(this.TAG,"_onEnded","cancelAnimationFrame"),window.cancelAnimationFrame(this._framId),this._framId=null),this._decodeFPS=_parseInt$1(this._screenShotNum/(this._vDuration/1e3)),this.emit("fps",this._screenShotNum,this._totleTime,this._vDuration,this._metaFPS,{height:this._currentCanvasHeight,relHeight:this._video.videoHeight}),logger.log("_timePerFrame",this._totleTime/this._screenShotNum),this._timePerFrame=this._totleTime/this._screenShotNum,this._screenShotNum=0,this._allPicNum=0,this._totleTime=0,this._currentBlob&&(_URL.revokeObjectURL(this._currentBlob),this._currentBlob=null,this._basePTS=0),this.emit(Events.DECODE_EVENTS.FRAGMENT_END,this._decodeFPS,this._video.duration))}},{key:"_onError",value:function(){this._isInDecoding=!1;var e=this._video;console.error("video error:",e.error.code,e.error.message),this.emit("error",e.error,this.firstEmit)}},{key:"_onLoadeddata",value:function(){var e=this,t=this._video;t.currentTime=.001,this.firstEmit||(this._playFailed?(t.style.visibility="hidden",this.emit(Events.DECODE_EVENTS.APPEND_VIDEO,t),_setTimeout((function(){logger.log(e.TAG,"onloadeddata, setTimeout firstEmit:",e.firstEmit),e._getFirstFrame()}),40)):(logger.log(this.TAG,"onloadeddata, firstEmit:",this.firstEmit),this._getFirstFrame()))}},{key:"_getFirstFrame",value:function(){this.firstTime=_Date$now();var e=this._vCurrentTime,t=this._basePTS+e,r=this._getImageData(t).imageData;this.firstEmit=!0,this.emit(Events.DECODE_EVENTS.FIRST_FRAME,r,t)}},{key:"_getFrame",value:function(){var e,t=this._video,r=t.videoWidth,n=t.videoHeight;if(this._allPicNum++,this._isInDecoding){if(r||n){var o,i,a,s=this._vCurrentTime,c=this._basePTS+s;if(this.ptsArray.push(c),this._lastCurrentTime&&this._lastCurrentTime===this._vDuration&&(logger.log(this.TAG,"_getFrame, video ended, lastCurrentTime",this._lastCurrentTime,"duration:",this._vDuration,"isInDecoding:",this._isInDecoding),this._onEnded(null,"getFrame")),this._lastPts)if(c<=this._lastPts)return void(this._framId=window.requestAnimationFrame(_bindInstanceProperty(i=this._getFrame).call(i,this)));if(this._lastPts&&c-this._lastPts<this._realFrameDuration)return void(this._framId=window.requestAnimationFrame(_bindInstanceProperty(a=this._getFrame).call(a,this)));this._screenShotNum++;var l,u=null,$=_Date$now();try{u=(l=this._getImageData(c)).imageData}catch(e){console.error(e,l,this._canvasList.length)}this._lastPts=c;var d=_Date$now()-$;return this._totleTime+=d,this.emit(Events.DECODE_EVENTS.DECODED,u,c),void(this._framId=window.requestAnimationFrame(_bindInstanceProperty(o=this._getFrame).call(o,this)))}this._framId=window.requestAnimationFrame(_bindInstanceProperty(e=this._getFrame).call(e,this))}else this._framId&&(window.cancelAnimationFrame(this._framId),this._framId=null)}},{key:"_getImageData",value:function(){var e,t=this._video,r=t.videoWidth,n=t.videoHeight,o=r,i=n;this._width&&this._height&&(o=this._width,i=this._height),i>this._maxVideoHeight&&(i=this._maxVideoHeight,o=_parseInt$1(i*(r/n))),(e=this._canvasList.shift())||(console.warn(this.TAG,"_getImageData, _canvansList length is 0"),e=this._createCanvas()),e.width=o,e.height=i;var a=e.dom,s=e.ctx;if(this._currentCanvasHeight=i,!a)return{imageData:e};a.width!==o&&(a.width=o,a.height=i);try{n&&r&&o&&i&&s.drawImage(t,0,0,r,n,0,0,o,i)}catch(e){console.error(this.TAG,"_getImageData, drawImage:",e)}return{imageData:e}}},{key:"_adaptFrameDuration",value:function(e){e<MIN_FPS?this._minFPSTime++:this._minFPSTime=0,e>MAX_FPS?this._maxFPSTime++:this._maxFPSTime=0,this._minFPSTime>0&&this._decodeFPS<MIN_FPS&&(this._realFrameDuration-=this._timePerFrame,this._realFrameDuration<15&&(this._realFrameDuration=15),this._minFPSTime=0),this._maxFPSTime>0&&this._decodeFPS>MAX_FPS&&(this._realFrameDuration+=this._timePerFrame,this._maxFPSTime=0)}},{key:"_vDuration",get:function(){return _parseInt$1(1e3*this._video.duration)}},{key:"_vCurrentTime",get:function(){return _parseInt$1(1e3*this._video.currentTime)}},{key:"_reset",value:function(){this._isInDecoding=!1,this._lastPts=0,this._screenShotNum=0,this._allPicNum=0,this._totleTime=0}},{key:"reStartDecode",value:function(){this._video.pause(),this._reset();var e=this._currentBlob,t=this._basePTS;this._framId&&(window.cancelAnimationFrame(this._framId),this._framId=null),this._initVideo({blobUrl:e,dts:t})}},{key:"doSeek",value:function(e){if(this._isInDecoding){if(e<=0)return;var t=this._vCurrentTime/1e3+e>=this._vDuration/1e3?this._vDuration/1e3:this._vCurrentTime/1e3+1;console.error("doSeek",t),this._video.currentTime=t}}},{key:"pause",value:function(){this._isInDecoding&&this._video.pause()}},{key:"play",value:function(){if(this._isInDecoding&&this._video.paused)return logger.log("video play",this._vCurrentTime),this._video.play()}},{key:"startDecode",value:function(e,t,r){this._initVideo(e,r),this._metaFPS=t}},{key:"stopDecode",value:function(){this._video.paused||(this._video.pause(),this._reset())}},{key:"canPlayType",value:function(e){return this._video.canPlayType(e)}},{key:"destroy",value:function(){this._isInDecoding=!1,window.cancelAnimationFrame(this._framId),this._video.pause(),this._removeEvents()}},{key:"videoWidth",get:function(){return this._video?this._video.videoWidth:0}},{key:"videoHeight",get:function(){return this._video?this._video.videoHeight:0}}]),r}(),MAX_FRAMESIZE=40,MIN_FRAMESIZE=25,DEFAULT_FPS=20,LEVELS=[{base:720,level:1},{base:540,level:2},{base:360,level:3},{base:280,level:4}],VideoDecoderController=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e,n){var o,i;return _classCallCheck$2(this,r),(i=t.call(this)).TAG="VideoDecoderController",i._decoder=new VideoDecoder(e),i._remux=new MP4Remuxer,i._bindEvents(),i._isInit=!1,i._isDataReady=!1,i._ready=!1,i._blobURLList=[],i._isInDecoding=!1,i._mediaSegmentReady=!1,i._parent=n,i._isDecodePause=!1,i._playSuccess=!0,i._isVideoOnRun=!0,i._startDts=0,i._fDuration=0,i._minFPSTime=0,i._lastPts=0,i._frameLengthPerFragment=0,i._gopBufferLength=0,i._maxGopDuration=0,i._minGopDuration=0,i._currentLevel=-1,i._endLevel=e.endLevel||2,i.currentFragmentDuration=0,i._handleKeyFrameVideo=_bindInstanceProperty(o=i._handleKeyFrameVideo).call(o,_assertThisInitialized$1(i)),i}return _createClass$2(r,[{key:"_bindEvents",value:function(){var e,t,r,n,o,i,a,s=this;document.addEventListener("visibilitychange",_bindInstanceProperty(e=this._onVisibilityChange).call(e,this)),this._decoder.on(Events.DECODE_EVENTS.APPEND_VIDEO,_bindInstanceProperty(t=this._onAppendVideo).call(t,this)),this._decoder.on(Events.DECODE_EVENTS.PLAY_FAILED,_bindInstanceProperty(r=this._onPlayFailed).call(r,this)),this._decoder.on("error",_bindInstanceProperty(n=this._onError).call(n,this)),this._decoder.on(Events.DECODE_EVENTS.DECODED,_bindInstanceProperty(o=this._onDecoded).call(o,this)),this._decoder.on(Events.DECODE_EVENTS.FIRST_FRAME,_bindInstanceProperty(i=this._onFirstFrame).call(i,this)),this._decoder.on(Events.DECODE_EVENTS.FRAGMENT_END,_bindInstanceProperty(a=this._onFragmentEnd).call(a,this)),this._decoder.on("fps",(function(){for(var e,t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=_concatInstanceProperty(e=[s._metaFPS]).call(e,n,[s._frameLengthPerFragment]);s.emit.apply(s,_concatInstanceProperty(t=["fps"]).call(t,_toConsumableArray$1(i)))})),this.on("keyFrame",this._handleKeyFrameVideo)}},{key:"_onRemuxed",value:function(e){var t={blobUrl:this._createBlobURL(e),dts:this.currentFragmentDts,duration:this.currentFragmentDuration,frameDuration:Math.floor(1e3/this._metaFPS)};this._recordGopDuration(this.currentFragmentDuration),this._pushBlob(t),logger.log(this.TAG,"_onRemuxed","maxgopduration:",this._maxGopDuration,"_gopBufferLength:",this._gopBufferLength),!this._isDataReady&&this._gopBufferLength>=this._maxGopDuration&&this._checkDataReady()}},{key:"_onPlayFailed",value:function(e){this._isInDecoding=!1,this._parent.emit(Events.DECODE_EVENTS.PLAY_FAILED,e)}},{key:"_onAppendVideo",value:function(e){this._parent.emit(Events.DECODE_EVENTS.APPEND_VIDEO,e)}},{key:"_onVisibilityChange",value:function(){this._isVideoOnRun="visible"===document.visibilityState}},{key:"_onDecoded",value:function(e,t){this._frameLengthPerFragment++;var r=this._buildFrameInfo(e,t);this._parent.emit(Events.DECODE_EVENTS.DECODED,r),this._lastPts=t}},{key:"_onFirstFrame",value:function(e,t){var r=this._buildFrameInfo(e,t);this._parent.emit(Events.DECODE_EVENTS.FIRST_FRAME,r)}},{key:"_onFragmentEnd",value:function(e,t){var r=this;logger.log(this.TAG,"_onFragmentEnd ,_isDecodePause:",this._isDecodePause,"decodeFPS:",e),e&&this._reduceResolution(e),this._isInDecoding=!1,this._inDecodeId=-1,this._currentInfo=null,this._frameLengthPerFragment=0,this._getBlobLength()&&!this._isDecodePause?this.startDecode():this.loadNextHandle=_setInterval((function(){r._getBlobLength()&&!r._isDecodePause&&r._isVideoOnRun&&!r._isInDecoding&&(logger.log(r.TAG,"_onFragmentEnd, setInterval start next mp4 decode"),r.startDecode(),clearInterval(r.loadNextHandle))}))}},{key:"_onError",value:function(e,t){this._isInDecoding=!1,this._parent.emit("error",e,t)}},{key:"_checkReady",value:function(){this._isDataReady&&this._isInit&&(this.ready=!0,logger.log(this.TAG,"checkReady trigger ready"),this._parent.emit(Events.DECODE_EVENTS.READY))}},{key:"_checkDataReady",value:function(){this._isDataReady=!0,this._checkReady()}},{key:"_reduceResolution",value:function(e){if(logger.log(this.TAG,"_reduceResolution","currentLevel:",this._currentLevel,"endLevel:",this._endLevel),this._videoHeight>720&&(logger.log(this.TAG,"_reduceResolution","trigger DECODE_LOW_FPS"),this._parent.emit(Events.VIDEO.DECODE_LOW_FPS)),e&&e<DEFAULT_FPS?(this._minFPSTime++,this._decoder.emit("fpsreduce",e)):this._minFPSTime=0,this._currentLevel>=this._endLevel)return logger.log(this.TAG,"_reduceResolution","trigger DECODE_LOW_FPS",this._currentLevel,this._endLevel),void this._parent.emit(Events.VIDEO.DECODE_LOW_FPS);if(this._minFPSTime>2){var t,r=this._videoWidth,n=this._videoHeight;if(t=this._findLevel(n,this._currentLevel)){if(this._currentLevel=t.level,4===this._currentLevel)return logger.log(this.TAG,"_reduceResolution","trigger DECODE_LOW_FPS, _currentLevel: ",this._currentLevel),void this._parent.emit(Events.VIDEO.DECODE_LOW_FPS);this.width=t.base*(r/n),this.height=t.base,this._decoder.emit("outputresolutionchange",this.width,this.height)}this._minFPSTime=0}}},{key:"_findLevel",value:function(e,t){return _findInstanceProperty(LEVELS).call(LEVELS,(function(r){return r.base<e&&r.level>t}))}},{key:"_buildFrameInfo",value:function(e,t){try{var r=e.width,n=e.height;return{msg:"DECODED",width:r,height:n,buffer:e,yLinesize:r,uvLinesize:r/2,info:{baseDts:void 0,dts:t,gopId:0,isGop:void 0,key:!1,pts:t},type:"rgb"}}catch(e){logger.log(this.TAG,e)}}},{key:"_pushBlob",value:function(e){logger.log("push blob",e.dts,e.duration),e&&e.duration&&(this._gopBufferLength+=e.duration),this._blobURLList.push(e)}},{key:"_shiftBlob",value:function(){var e=this._blobURLList.shift();return e&&e.duration&&(this._gopBufferLength-=e.duration),e}},{key:"_filterBlob",value:function(e){var t,r=this;this._blobURLList=_filterInstanceProperty(t=this._blobURLList).call(t,(function(t){return t.dts<e&&(_URL.revokeObjectURL(t.blobUrl),t.duration&&(r._gopBufferLength-=t.duration)),t.dts>=e}))}},{key:"_emptyBlobList",value:function(){this._blobURLList=[],this._gopBufferLength=0}},{key:"_getBlobLength",value:function(){return this._blobURLList.length}},{key:"_handleKeyFrameVideo",value:function(e){try{var t=this._parent._timeRange.frames||[];if(this._parent._timeRange.clean(),!t.length)return;var r=t[0].dts,n=t[t.length-1].dts,o=r-this.endDts;logger.log(this.TAG,"_handleKeyFrameVideo","startDts:",r,"endDts:",n,"samples length:",t.length),this.endDts&&o>Math.floor(1e3/this._metaFPS)+1&&logger.log(this.TAG,"_handleKeyFrame, keyFrame dts:",r,"sample length:",t.length,"endDts:",n,"delay:",o);var i=n-r;if(this._fDuration||(this._fDuration=i),i<1500)return void logger.log(this.TAG,"_handleKeyFrame gopDuration :",i,"sample length:",t.length,"gopStartDts:",r,"gopEndDts:",n);if(this.firstDts||(this.firstDts=t[0].dts),this.currentFragmentDts=t[0].dts,this.currentFragmentDuration=this._getFragmentDuration(t),this.endDts=n,this.currentFragmentDts<this._startDts)return console.warn(this.TAG,"_handleKeyFrameVideo","currentFragmentDts < this._startDts",this.currentFragmentDts,this._startDts),void(t=[]);this.startRemux(t),t=[]}catch(e){console.error(this.TAG,"_handleKeyFrameVideo",e)}}},{key:"_getFragmentDuration",value:function(e){var t=0,r=0;return e[0].keyframe||console.error(this.TAG,"_getFragmentDuration","gop firstFrame is not keyframe"),_forEachInstanceProperty(e).call(e,(function(n,o){n.keyframe&&o&&(t+=e[o-1].dts-e[r].dts,r=o)})),t+=e[e.length-1].dts-e[r].dts}},{key:"_createBlobURL",value:function(e){if(e){var t=new window.Blob([e.buffer],{type:"video/mp4"});return _URL.createObjectURL(t)}}},{key:"_recordGopDuration",value:function(e){var t=e;this._minGopDuration||(this._minGopDuration=t),t>this._maxGopDuration&&(this._maxGopDuration=t),t<this._minGopDuration&&(this._minGopDuration=t)}},{key:"checkMaxFrames",value:function(e){"number"==typeof e&&(this._isDecodePause=e>MAX_FRAMESIZE,this._playSuccess&&this._isDecodePause&&this._decoder.pause())}},{key:"checkMinFrames",value:function(e){var t=this;if("number"==typeof e&&(this._isDecodePause=!(e<MIN_FRAMESIZE),!this._isDecodePause)){var r=this._decoder.play();void 0!==r?r.then((function(){t._playSuccess=!0})).catch((function(){t._playSuccess=!1})):_setTimeout((function(){t._playSuccess=!0}),20)}}},{key:"frameRendend",value:function(e){if(e.dom){if(e.dom.width=0,e.dom.height=0,this._decoder._canvasList.length>MAX_FRAMESIZE)return;this._decoder._canvasList.push(e)}else logger.error(this.TAG,"_onRendend","imageObj. is error",e)}},{key:"checkValidBlob",value:function(e){this._filterBlob(e)}},{key:"chaseVideoFrame",value:function(e){logger.log(this.TAG,e,e.frame.dts,this.currentFragmentDts);var t=e.frame.dts;if(this._startDts=t,t===this.currentFragmentDts){if(logger.log(this.TAG,"_onChaseFrame","_inDecodeId:",this._inDecodeId,"currentFragmentDts:",this.currentFragmentDts),this._inDecodeId>0&&this._inDecodeId<t)return logger.log(this.TAG,"_onChaseFrame, _inDecodeId > 0 && _inDecodeId < startDts, _inDecodeId:",this._inDecodeId,"startDts:",t),this.stopDecode(),this._filterBlob(t),void this.startDecode();if(this._inDecodeId===t)return logger.log(this.TAG,"_onChaseFrame, _inDecodeId === startDts, startDts:",t),this.stopDecode(),void this.reStrartDecode(this._currentInfo);-1===this._inDecodeId&&(logger.log(this.TAG,"_onChaseFrame","_inDecodeId==-1"),this.startDecode())}t>this.currentFragmentDts&&(logger.log(this.TAG,"_onChaseFrame, startDts > currentFragmentDts, startDts:",t,"currentFragmentDts:",this.currentFragmentDts),this.stopDecode(),this._emptyBlobList()),t<this.currentFragmentDts&&(logger.log(this.TAG,"_onChaseFrame, startDts < currentFragmentDts, startDts:",t,"currentFragmentDts:",this.currentFragmentDts),t>this._inDecodeId&&(this._filterBlob(t),this.stopDecode(),this.startDecode()))}},{key:"init",value:function(e){this._isInit||(this._metaFPS=e.fpsNum/e.fpsDen||25,this._videoWidth=e.width,this._videoHeight=e.height,this._width=this._videoWidth,this._height=this._videoHeight,this._frameDuration=_parseInt$1(1e3/this._metaFPS),this._isInit=!0,logger.log("".concat(this.TAG," has inited")),this._isInit=!0,this._checkReady())}},{key:"reStrartDecode",value:function(e){if(e)try{logger.log(this.TAG,"reStrartDecode"),this._isInDecoding=!0,this._inDecodeId=e.dts,this._currentInfo=e,this._decoder.startDecode(e,this._metaFPS,this._startTime),this._startTime=0}catch(e){console.error("load error",e)}}},{key:"stopDecode",value:function(){this._isInDecoding=!1,this._inDecodeId=-1,this._currentInfo=null,this._frameLengthPerFragment=0,this._decoder.stopDecode()}},{key:"startDecode",value:function(){if(this._isInDecoding)logger.log(this.TAG,"startDecode","this decoder is in decoding");else{var e=this._getBlobLength();if(this._decoder&&e){logger.log(this.TAG,"startDecode","blob url length:",e);var t=this._shiftBlob()||{};try{logger.log(this.TAG,"startDecode",t.dts,t.duration),this._isInDecoding=!0,this._inDecodeId=t.dts,this._currentInfo=t,this._decoder.startDecode(t,this._metaFPS)}catch(e){console.error(this.TAG,"startDecode","load error",e)}}}}},{key:"canSeek",value:function(e){var t=e.frame.dts;return!!(this.currentFragmentDts>=t&&this._isInDecoding)&&(this._inDecodeId!==t&&this._inDecodeId<t)}},{key:"startRemux",value:function(e){if(logger.log("startRemux samples length:",e.length),e.length){var t=this._parent._meta;t.samples=e;var r=this._remux.remux(t).videoSegment;this._onRemuxed(r)}else console.error("frame length is 0")}},{key:"canPlayType",value:function(e){if(this._decoder)try{return this._decoder.canPlayType('video/mp4;codecs="'+e.codec+'"')}catch(e){console.error(e)}}},{key:"destroy",value:function(){this._blobURLList=[],this._decoder.destroy()}},{key:"empty",value:function(){if(logger.log("empty"),this._decoder){var e=this._decoder._canvasList;return logger.log(this.TAG,"empty >>>>>>>>>>>>>>>>>>length:",e.length),_forEachInstanceProperty(e).call(e,(function(e){e.dom&&(logger.log("clear >>>>>>>>>>>>>>>>>>"),e.dom.width=0,e.dom.height=0,e.dom=null)})),e.length}}},{key:"isIDLE",get:function(){return logger.log(this.TAG,"isIDEL","blob length:",this._getBlobLength(),"_isInDecoding:",this._isInDecoding,"isVideoOnRun:",this._isVideoOnRun,"_isDecodePause",this._isDecodePause),!this._getBlobLength()&&!this._isInDecoding&&this._isVideoOnRun}},{key:"ready",get:function(){return this._ready},set:function(e){this._ready=e}},{key:"remux",get:function(){return this._remux}},{key:"isInit",get:function(){return this._isInit}}]),r}(),VideoRenderFromVideo=function(e){_inherits$1(r,VideoBaseRender);var t=_createSuper$1(r);function r(e,n){var o;return _classCallCheck$2(this,r),(o=t.call(this,e,n)).TAG="VideoRenderFromVideo",o._videoDecodeController=new VideoDecoderController(e,_assertThisInitialized$1(o)),o._canAutoPlay=!0,o._videoDecode=e.videoDecode,o._chaseToFrame=null,o}return _createClass$2(r,[{key:"videoDecode",get:function(){return this._videoDecode},set:function(e){this._videoDecode=e}},{key:"_bindEvents",value:function(){var e,t,n,o,i,a,s,c,l,u=this;_get(_getPrototypeOf$1(r.prototype),"_bindEvents",this).call(this),this.on("keyFrame",_bindInstanceProperty(e=this._onKeyFrame).call(e,this)),this.on(Events.DECODE_EVENTS.READY,_bindInstanceProperty(t=this._onReady).call(t,this)),this.on(Events.DECODE_EVENTS.DECODED,_bindInstanceProperty(n=this._onDecoded).call(n,this)),this.on(Events.DECODE_EVENTS.PLAY_FAILED,_bindInstanceProperty(o=this._onPlayFailed).call(o,this)),this.on("error",_bindInstanceProperty(i=this._onError).call(i,this)),this.on(Events.DECODE_EVENTS.APPEND_VIDEO,_bindInstanceProperty(a=this._onAppendVideo).call(a,this)),this.on(Events.DECODE_EVENTS.FIRST_FRAME,_bindInstanceProperty(s=this._onFirstFrame).call(s,this)),this._parent.on(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME,_bindInstanceProperty(c=this._onChaseVideoFrame).call(c,this)),this._parent.on(Events.TIMELINE.SYNC_DTS,_bindInstanceProperty(l=this._onTimeLineSyncDTS).call(l,this)),window.addEventListener("unload",(function(){u._empty()}))}},{key:"_onTimeLineSyncDTS",value:function(e){this._videoDecodeController.checkValidBlob(e)}},{key:"_onChaseVideoFrame",value:function(e){this._doChaseVideoFrame(e)}},{key:"_onAppendVideo",value:function(e){try{this._parent._parent.appendChild(e)}catch(e){cosole.error(this.TAG,"onAppendVideo",e)}}},{key:"_onKeyFrame",value:function(){logger.log(this.TAG,"_onKeyFrame, keyframe"),this._videoDecodeController.emit("keyFrame")}},{key:"_onError",value:function(e,t){console.error(this.TAG,"decoder error",e,t),t||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr(e&&e.message))}},{key:"_onReady",value:function(){if(!this._frameRender){var e=_Object$assign(this._config,{meta:this._meta,canvas:this._canvas,type:"2d"});try{this._frameRender=new FrameRender(e,this)}catch(e){this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr(e&&e.message))}}this._startDecode()}},{key:"_onFirstFrame",value:function(e){logger.log(this.TAG,"onFirstFrame"),this._receiveFrame(e),this._firstFrame=!0}},{key:"_onDecoded",value:function(e){var t=this;if(this._inChaseFrame){if(this.chaseFrameAfter++,1===this.chaseFrameAfter&&this._chaseToFrame){if(this._parent.emit(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME_END,this._chaseToFrame),this._frameQueue.length){var r=this._frameQueue.frames;_forEachInstanceProperty(r).call(r,(function(e){t._videoDecodeController.frameRendend(e.buffer)}))}this._frameQueue.empty(),this._videoDecodeController.checkMinFrames(this._frameQueue.length),this._timeRange.deletePassed(this._chaseToFrame.frame.dts),this._inChaseFrame=!1,this._chaseToFrame=null,console.warn(this.TAG,"onDecoded","_inChaseFrame end")}}else this.chaseFrameAfter=0;this._receiveFrame(e)}},{key:"_onPlayFailed",value:function(e){console.warn(this.TAG,"onPlayFailed, this._ready:",this._ready,",firstEmit:",e,",frame length:",this._frameQueue.length),this._ready||e||this._whenReady(),this._canAutoPlay=!1}},{key:"canSeek",value:function(e){return this._videoDecodeController.canSeek(e)}},{key:"_initDecoder",value:function(){this._isInit||(logger.log(this.TAG,"_initDecoder"),this._videoDecodeController.isInit||this._videoDecodeController.init(this._meta),this._isInit=!0)}},{key:"_receiveFrame",value:function(e){_get(_getPrototypeOf$1(r.prototype),"_receiveFrame",this).call(this,e),this._videoDecodeController.checkMaxFrames(this._frameQueue._frames.length)}},{key:"_setMetadata",value:function(e){logger.warn(this.TAG,"video set metadata",e),this._meta=e;var t=e.fpsNum/e.fpsDen;t?logger.log(this.TAG,"detect fps:",t):logger.warn(this.TAG,"no detect fps,start estimate"),this._initDecoder(e)}},{key:"_doChaseVideoFrame",value:function(e){this._inChaseFrame=!0,this._chaseToFrame=e,this._videoDecodeController.chaseVideoFrame(e)}},{key:"_appendChunk",value:function(e){var t;this._meta||this._setMetadata(e);for(var r=_sliceInstanceProperty(t=e.samples).call(t),n=r.length,o=0;o<n;o++){var i=r.shift();i.keyframe&&this.emit("keyFrame"),this._timeRange.append([i],this.noAudio,!1)}}},{key:"_startDecode",value:function(){this._videoDecodeController.startDecode()}},{key:"_checkToDecode",value:function(){this._startDecode()}},{key:"_startRender",value:function(){logger.log(this.TAG,"_startRender interval",this.interval),this._tickTimer.start(this.interval)}},{key:"_render",value:function(e){var t=this,r=this._frameQueue.nextFrame(),n=this.preciseVideoDts;if(r&&this._timeRange){var o=r.info;if(!o)return this._frameQueue.shift(),void console.error("not info");this._renderDts=o.dts;var i=o.dts-n;if(i<-150){this.lastPrecise;var a=this._frameQueue.frames,s=this._getDeleteFrames(a,n),c=s.deleteFrames,l=s.useFrames;return _spliceInstanceProperty(a).call(a,0),_forEachInstanceProperty(l).call(l,(function(e){a.push(e)})),_forEachInstanceProperty(c).call(c,(function(e){t._videoDecodeController.frameRendend(e.buffer)})),this._videoDecodeController.emit("renderDelay",i,this._frameQueue._frames.length),void this._videoDecodeController.checkMinFrames(this._frameQueue.length)}if(!(!e&&i>30&&i<6e4)){var u,$,d,A,p,f;if(Math.abs(this._lastTimeupdate-o.dts)>250&&(this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),this._lastTimeupdate=o.dts),logger.long)logger.log(this.TAG,_concatInstanceProperty(u=_concatInstanceProperty($=_concatInstanceProperty(d=_concatInstanceProperty(A=_concatInstanceProperty(p=_concatInstanceProperty(f="render delay:".concat(i," , timelinePosition:")).call(f,n," , dts:")).call(p,o.dts," , cost:")).call(A,o.cost," , gopID:")).call(d,o.gopId," , rest:")).call($,this._frameQueue.length,", buffer frame:")).call(u,this._timeRange.frameLength));var h=performance.now();this._frameRender.render(r.buffer,r.width,r.height,r.yLinesize,r.uvLinesize),this.hasFirstFrame||e||(this.hasFirstFrame=!0,this._parent.emit(Events.TIMELINE.PLAY_EVENT,"firstframe")),this._videoDecodeController.frameRendend(r.buffer),this._frameQueue.shift(),this._videoDecodeController.checkMinFrames(this._frameQueue.length),this._videoDecodeController.emit("renderDelay",i,this._frameQueue._frames.length),this._renderCost=performance.now()-h,e||(this.lastTime&&(this.lastPrecise,_Date$now(),this.lastTime),this.lastFrameinfo=o.dts,this.lastPrecise=n,this.lastTime=_Date$now(),this.lastAudioTime=this._parent.audioRender.currentTime)}}else{if(this._videoDecodeController.checkMinFrames(this._frameQueue._frames.length),this._parent._paused)return;if(!this._firstFrame)return void logger.log(this.TAG,"_render","not first frame return");var y=this._videoDecodeController;if(logger.log(this.TAG,",lack frame, _inDecoding:",this._videoDecodeController._isInDecoding,this._videoDecodeController._isDecodePause,",_frameQueue.length:",this._frameQueue.length),!this._frameQueue.length&&y.isIDLE){this._ready=!1;var _=this._parent.audioRender;console.warn(this.TAG,"trigger video waiting vdecode, preciseVideoDts:",n,_.currentTime,_.duration,_.buffered.end(0),_.baseDts),this.emit(Events.VIDEO.VIDEO_WAITING)}this._checkToDecode()}}},{key:"_updateSegmentEnd",value:function(){}},{key:"_destroy",value:function(e){this._empty(),_get(_getPrototypeOf$1(r.prototype),"destroy",this).call(this,e),this._videoDecodeController.destroy()}},{key:"_doPause",value:function(){logger.log(this.TAG,">>>>>>>>doPause"),this._tickTimer.stop()}},{key:"_getDeleteFrames",value:function(e,t){var r=[],n=[];return _forEachInstanceProperty(e).call(e,(function(e){e.info&&e.info.dts>t?n.push(e):e.info&&e.info.dts<=t&&r.push(e)})),{deleteFrames:r,useFrames:n}}},{key:"_empty",value:function(){var e;this._videoDecodeController&&(this._videoDecodeController.empty(),_forEachInstanceProperty(e=this._frameQueue.frames).call(e,(function(e){e.buffer&&e.buffer.dom&&(e.buffer.dom.width=0,e.buffer.dom.height=0,e.buffer.dom=null)})))}}]),r}(),DecodeController=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e){var n;return _classCallCheck$2(this,r),_defineProperty$2(_assertThisInitialized$1(n=t.call(this)),"_parent",null),_defineProperty$2(_assertThisInitialized$1(n),"_decoderReady",!1),_defineProperty$2(_assertThisInitialized$1(n),"_inDecoding",!1),_defineProperty$2(_assertThisInitialized$1(n),"_toDecodeFirstframe",!0),_defineProperty$2(_assertThisInitialized$1(n),"_id",(new Date).getMilliseconds()),_defineProperty$2(_assertThisInitialized$1(n),"_workerErrorCallback",null),_defineProperty$2(_assertThisInitialized$1(n),"_workerMessageCallback",null),_defineProperty$2(_assertThisInitialized$1(n),"_decoderWorker",null),n._parent=e,n}return _createClass$2(r,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"inDecoding",get:function(){return this._inDecoding}},{key:"decoderMode",get:function(){return this._decoderMode}},{key:"decoderReady",get:function(){return this._decoderReady}},{key:"needToDecode",get:function(){return this._inDecoding?0:this._continueDecodeThreshold}},{key:"maxDecodeOnce",get:function(){return this._maxDecodeOnce}},{key:"meta",get:function(){var e;return null===(e=this._parent)||void 0===e?void 0:e._meta},set:function(e){this._parent&&(this._parent._meta=e)}},{key:"init",value:function(e,t){this._workerMessageCallback=e,this._workerErrorCallback=t,this._initWorker()}},{key:"_initWorker",value:function(){throw new Error("need override by children")}},{key:"checkToDecode",value:function(e){this.webcodec?e<=this.needToDecode&&this.doDecode():!this._inDecoding&&e<=this.needToDecode&&this.doDecode()}},{key:"doDecode",value:function(){var e=this,t=this._getFramesToDecode();t&&t.length&&this.meta&&(this._toDecodeFirstframe&&(this._toDecodeFirstframe=!1,this.analyse.addFirstFrameToDecode()),this._avccpushed||this._initDecoderWithConfiguration(this._decoderWorker,this.meta),logger.enable&&logger.log(this.TAG,"doDecode ".concat(t.length," frames")),_forEachInstanceProperty(t).call(t,(function(t){e._doDecodeInternal(t)})),this._inDecoding=!0,this._decoderWorker.postMessage({msg:"finish_flag"}))}},{key:"preciseSeek",value:function(e){var t,r,n,o,i=this,a=1e3*e,s=null===(t=this._parent)||void 0===t||null===(r=t._timeRange)||void 0===r?void 0:r.getFramesForPreciseSeek(a),c=s.length;c<this.maxDecodeOnce?this.doDecode():(null===(n=this._parent)||void 0===n||null===(o=n._timeRange)||void 0===o||o.updateFrameIndexForPreciseSeek(c),logger.enable&&logger.log(this.TAG,"doDecode ".concat(s.length," frames for precise seek")),_forEachInstanceProperty(s).call(s,(function(e,t){i._doDecodeInternal(e,!0,t>=c-6)})),this._inDecoding=!0,this._decoderWorker.postMessage({msg:"finish_flag"}))}},{key:"_getFramesToDecode",value:function(){var e=this._parent,t=e._timeRange,r=e._decodeEstimate;if(this._decoderReady&&t){var n=t.frameLength;if(n){var o=this._toDecodeFirstframe?getDecodeCapacaity().maxDecodeOnceFirstTime:this.maxDecodeOnce;1===n&&r.resetDecodeDot(performance.now());for(var i=[];o>0;){var a=t&&t.getFrame();if(!a)break;i.push(a),a.gopId&&a.gopId-1==0&&r.updateGopCount(),o--}return i}}}},{key:"_doDecodeInternal",value:function(e,t,r){var n;null!=e&&e.meta&&(this.meta=e.meta,logger.warn(this.TAG,"detect metadata! flush decoder"),this._initDecoderWithConfiguration(this.__decoderWorker,e.meta));var o={dts:e.dts,pts:e.pts||e.dts+e.cts,keyframe:e.keyframe,gopId:e.gopId,id:this._id};t&&(o.preciseSeek=!0,o.output=r);var i=_sliceInstanceProperty(n=e.data).call(n);this._decoderWorker.postMessage({msg:"decode",data:i,info:o},[i.buffer])}},{key:"_initDecoderWithConfiguration",value:function(){throw new Error("need override by children")}},{key:"flushDecoder",value:function(){this._decoderWorker.postMessage({msg:"flush"})}},{key:"destroy",value:function(){throw new Error("need override by children")}}]),r}(),encodedJs$3="IWZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBlPW51bGwsdD1bXSxzPTAsYT0hMTtzZWxmLmFkZEV2ZW50TGlzdGVuZXIoIm1lc3NhZ2UiLChmdW5jdGlvbihvKXtzd2l0Y2goby5kYXRhLm1zZyl7Y2FzZSJjb25maWd1cmF0aW9uIjplPW5ldyBzZWxmLlZpZGVvRGVjb2Rlcih7b3V0cHV0OmZ1bmN0aW9uKG8pe2E9ITAscyYmY2xlYXJUaW1lb3V0KHMpO3ZhciBuPXQuc2hpZnQoKTtuP3NlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkRFQ09ERUQiLHdpZHRoOm8uZGlzcGxheVdpZHRoLGhlaWdodDpvLmRpc3BsYXlIZWlnaHQsaW5mbzpuLGJ1ZmZlcjpvfSxbb10pOm8uY2xvc2UoKSxlLmRlY29kZVF1ZXVlU2l6ZT09PXQubGVuZ3RoJiZzZWxmLnBvc3RNZXNzYWdlKHt0eXBlOiJCQVRDSF9GSU5JU0hfRkxBRyJ9KX0sZXJyb3I6ZnVuY3Rpb24oZSl7Y29uc29sZS5sb2coIltXZWJjb2RlY1dvcmtlcl06IixlKSwiQ29kZWMgcmVjbGFpbWVkIGR1ZSB0byBpbmFjdGl2aXR5LiIhPT1lLm1lc3NhZ2UmJnNlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkZBSUxFRCIsbWVzc2FnZTplJiZlLm1lc3NhZ2V9KX19KSxzZWxmLlZpZGVvRGVjb2Rlci5pc0NvbmZpZ1N1cHBvcnRlZChvLmRhdGEuZGF0YSkudGhlbigoZnVuY3Rpb24odCl7dC5zdXBwb3J0ZWQmJihlLmNvbmZpZ3VyZShvLmRhdGEuZGF0YSksY29uc29sZS5sb2coIltXZWJjb2RlY1dvcmtlcl06IiwiaXNDb25maWdTdXBwb3J0ZWQiLHQpKX0pKS50aGVuKChmdW5jdGlvbigpe3NlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkRFQ09ERVJfUkVBRFkifSkscz1zZXRUaW1lb3V0KChmdW5jdGlvbigpe2F8fHNlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkZBSUxFRCIsbWVzc2FnZToibm8gZnJhbWUgb3V0cHV0In0pfSksMmUzKX0pKS5jYXRjaCgoZnVuY3Rpb24oZSl7c2VsZi5wb3N0TWVzc2FnZSh7dHlwZToiRkFJTEVEIixtZXNzYWdlOmUmJmUubWVzc2FnZX0pfSkpO2JyZWFrO2Nhc2UiZGVjb2RlIjp2YXIgbj1vLmRhdGEuZGF0YSxpPW8uZGF0YS5pbmZvO3QucHVzaChpKTt2YXIgZD1uLmJ5dGVMZW5ndGgtNCxjPW5ldyBEYXRhVmlldyhuZXcgQXJyYXlCdWZmZXIoNCkpO2Muc2V0VWludDMyKDAsZCwhMSksbi5zZXQobmV3IFVpbnQ4QXJyYXkoYy5idWZmZXIpLDApLGkua2V5ZnJhbWUmJmUuZmx1c2goKTt2YXIgcj1uZXcgc2VsZi5FbmNvZGVkVmlkZW9DaHVuayh7dHlwZTppLmtleWZyYW1lPyJrZXkiOiJkZWx0YSIsdGltZXN0YW1wOmkucHRzLGRhdGE6bn0pO2UuZGVjb2RlKHIpO2JyZWFrO2Nhc2UiZGVzdHJveSI6ZSYmKGUuZmx1c2goKSxlLmNsb3NlKCkpLGNsZWFyVGltZW91dChzKTticmVhaztjYXNlImNoZWNrRGVjb2RlIjpzZWxmLnBvc3RNZXNzYWdlKHt0eXBlOiJDSEVDS19UT19ERUNPREUiLGRhdGE6MD09PU1hdGguYWJzKGUuZGVjb2RlUXVldWVTaXplLXQubGVuZ3RoKX0pfX0pKX0oKTsK",blob$3="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs$3)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper$3(){var e=blob$3&&(_URL||window.webkitURL).createObjectURL(blob$3);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs$3,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var MAX_DECODE_ONCE_DEFAULT$1=getDecodeCapacaity().maxDecodeOnceWebcodec,WebCodecDecodeController=function(e){_inherits$1(r,DecodeController);var t=_createSuper$1(r);function r(){var e,n;_classCallCheck$2(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return _defineProperty$2(_assertThisInitialized$1(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,i))),"TAG","WebCodecController"),_defineProperty$2(_assertThisInitialized$1(n),"_decoderMode",5),_defineProperty$2(_assertThisInitialized$1(n),"_maxDecodeOnce",MAX_DECODE_ONCE_DEFAULT$1),_defineProperty$2(_assertThisInitialized$1(n),"_continueDecodeThreshold",MAX_DECODE_ONCE_DEFAULT$1/2),_defineProperty$2(_assertThisInitialized$1(n),"_avccpushed",!1),n}return _createClass$2(r,[{key:"webcodec",get:function(){return!0}},{key:"needToDecode",get:function(){return this._inDecoding?(this._checkToDecode(),0):this._continueDecodeThreshold}},{key:"_initWorker",value:function(){var e=this;logger.log(this.TAG,"start init webcodec worker");var t=new WorkerWrapper$3;t.onMessage=function(t){var r,n;switch(t.data.type){case"DECODER_READY":logger.log(e.TAG,"webcodec worker ready "),e._decoderReady=!0,e._workerMessageCallback({type:"DECODER_READY"});break;case"DECODED":if(e._inDecoding=!0,(null===(r=t.data)||void 0===r||null===(n=r.info)||void 0===n?void 0:n.id)!==e._id)return;e._workerMessageCallback({type:"RECEIVE_FRAME",data:t.data});break;case"BATCH_FINISH_FLAG":if(e._inDecoding=!1,!e._workerMessageCallback)return;e._workerMessageCallback({type:"BATCH_FINISH"});break;case"CHECK_TO_DECODE":e._inDecoding=t.data.data;break;case"FAILED":e._whenError(t.data.message)}},t.onError=function(t){var r,n,o=null===(r=e._parent)||void 0===r||null===(n=r._parent)||void 0===n?void 0:n._parent;o&&o.removeChild(o.querySelector("canvas")),e._whenError(t.message)},t.addEventListener("message",t.onMessage),t.addEventListener("error",t.onError),this._decoderWorker=t,this._initDecoderWithConfiguration(t,this._parent.configuration)}},{key:"_whenError",value:function(e){r.canUse=!1,this._workerErrorCallback(e)}},{key:"_initDecoderWithConfiguration",value:function(e,t){e.postMessage({msg:"configuration",data:{codec:this._parent._meta.codec,codedHeight:this._parent._meta.height,codedWidth:this._parent._meta.width,description:t}}),this._avccpushed=!0}},{key:"_checkToDecode",value:function(){this._decoderWorker.postMessage({msg:"checkDecode"})}},{key:"destroy",value:function(){var e=this._decoderWorker;e.removeEventListener("message",e.onMessage),e.removeEventListener("error",e.onError),e.postMessage({msg:"destroy"}),e.terminate(),this._decoderWorker=null}}],[{key:"isSupported",value:function(){return getDecodeCapacaity().h264WithWebcodec&&!!window.VideoDecoder&&!1!==r.canUse}}]),r}(),encodedJs$2="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzKHNyYyl7cmV0dXJuIGZldGNoKHNyYykudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUudGV4dCgpfSkpLnRoZW4oKGZ1bmN0aW9uKHRleHQpe3NlbGYuZXhwb3J0cz17fSxldmFsKHRleHQpLHNlbGYubT1leHBvcnRzLm19KSl9dmFyIE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSD0zMTQ1NzI4LGluaXRUcz0wLERlY29kZXI9ZnVuY3Rpb24oZSl7dGhpcy5pbml0ZWQ9ITEsdGhpcy5pbmZvSWQ9MCx0aGlzLnNlbGY9ZSx0aGlzLm1ldGE9dGhpcy5zZWxmLm1ldGEsdGhpcy50cz0wLHRoaXMuaW5mb2xpc3Q9W10sZS5wYXJfYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkPXRoaXMuYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkLmJpbmQodGhpcyksZS5wYXJfYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkPXRoaXMuYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkLmJpbmQodGhpcyl9LGRlY29kZXI7ZnVuY3Rpb24gb25Qb3N0UnVuKCl7KGRlY29kZXI9bmV3IERlY29kZXIodGhpcykpLmluaXQoKX1EZWNvZGVyLnByb3RvdHlwZS50b1U4QXJyYXk9ZnVuY3Rpb24oZSx0KXtyZXR1cm4gTW9kdWxlLkhFQVBVOC5zdWJhcnJheShlLGUrdCl9LERlY29kZXIucHJvdG90eXBlLmluaXQ9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5SW5pdCgwLDEpLHRoaXMub2Zmc2V0PU1vZHVsZS5fYnJvYWR3YXlDcmVhdGVTdHJlYW0oTUFYX1NUUkVBTV9CVUZGRVJfTEVOR1RIKX0sRGVjb2Rlci5wcm90b3R5cGUuYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkPWZ1bmN0aW9uKGUsdCxvLG4saSl7dmFyIHM9dGhpcy5pbmZvbGlzdC5zaGlmdCgpLHI9byxhPW8vMixjPXQsZD10LzI7aWYoIXRoaXMubWV0YXx8NDQ0IT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdCYmNDIyIT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdHx8KGE9byksIXN8fCFzLnByZWNpc2VTZWVrfHxzLm91dHB1dCl7dmFyIGY9dGhpcy50b1U4QXJyYXkoZSxjKnIrZCphKjIpLHU9bmV3IFVpbnQ4QXJyYXkoZi5sZW5ndGgpO3Uuc2V0KGYpO3ZhciBsPXUuYnVmZmVyO3RoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVEIix3aWR0aDp0LGhlaWdodDpvLHlMaW5lc2l6ZTpjLHV2TGluZXNpemU6ZCxpbmZvOnMsYnVmZmVyOmx9LFtsXSl9fSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQ9ZnVuY3Rpb24oKXtpZighdGhpcy5pbml0ZWQpe3RoaXMuaW5pdGVkPSEwO3ZhciBlPTA7aW5pdFRzJiYoZT1wZXJmb3JtYW5jZS5ub3coKS1pbml0VHMpLHRoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVSX1JFQURZIixjb3N0OmV9KX19LERlY29kZXIucHJvdG90eXBlLmRlY29kZT1mdW5jdGlvbihlLHQpe3ZhciBvPXBhcnNlSW50KChuZXcgRGF0ZSkuZ2V0VGltZSgpKSxuPW8tMWU5Kk1hdGguZmxvb3Ioby8xZTkpO3RoaXMuaW5mb2xpc3QucHVzaCh0KSx0JiZ0LmtleWZyYW1lJiYodGhpcy5pbmZvbGlzdD1bdF0sTW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKG4pKSxNb2R1bGUuSEVBUFU4LnNldChlLHRoaXMub2Zmc2V0KSxNb2R1bGUuX2Jyb2Fkd2F5UGxheVN0cmVhbShlLmxlbmd0aCx0aGlzLmluZm9JZCl9LERlY29kZXIucHJvdG90eXBlLmZsdXNoPWZ1bmN0aW9uKCl7TW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKCl9LERlY29kZXIucHJvdG90eXBlLmRlc3Ryb3k9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5RXhpdCgpfSxEZWNvZGVyLnByb3RvdHlwZS51cGRhdGVNZXRhPWZ1bmN0aW9uKGUpe3RoaXMubWV0YT1lfTt2YXIgV0FTTV9DRE5fUEFUSF9QUkVGSVg9IiI7ZnVuY3Rpb24gaW5pdChlKXtXQVNNX0NETl9QQVRIX1BSRUZJWD1lLnNwbGl0KCIvIikuc2xpY2UoMCwtMSkuam9pbigiLyIpLGluaXRUcz1wZXJmb3JtYW5jZS5ub3coKTt2YXIgdD0vYXNtLy50ZXN0KGUpO2RlY29kZXJ8fChzZWxmLmltcG9ydFNjcmlwdHM/bmV3IFByb21pc2UoKGZ1bmN0aW9uKHQsbyl7c2VsZi5jb25zb2xlfHwoc2VsZi5jb25zb2xlPXtsb2c6ZnVuY3Rpb24oKXt9LHdhcm46ZnVuY3Rpb24oKXt9LGluZm86ZnVuY3Rpb24oKXt9LGVycm9yOmZ1bmN0aW9uKCl7fX0pO3RyeXtzZWxmLmltcG9ydFNjcmlwdHMoZSksdCgpfWNhdGNoKG4pe2lmKG4ubWVzc2FnZS5pbmNsdWRlcygiTW9kdWxlIHNjcmlwdHMgZG9uJ3Qgc3VwcG9ydCBpbXBvcnRTY3JpcHRzIikpcmV0dXJuIHQoc2hpbUltcG9ydFNjcmlwdHMoZSkpO28obil9fSkpOnNoaW1JbXBvcnRTY3JpcHRzKGUpKS50aGVuKChmdW5jdGlvbigpe3JldHVybiB0Pyhjb25zb2xlLmxvZygiYXV0byBpbnN0YW5jZSBEZWNvZGVyISIpLG5ldyBQcm9taXNlKChmdW5jdGlvbihlLHQpe3NldFRpbWVvdXQoKGZ1bmN0aW9uKCl7dHJ5e29uUG9zdFJ1bi5jYWxsKHNlbGYpLGUoKX1jYXRjaChvKXt0KG8pfX0pKX0pKSk6c2VsZi5tP3NlbGYubSh7aW5zdGFudGlhdGVXYXNtOmZ1bmN0aW9uKGUsdCl7ZmV0Y2goIiIuY29uY2F0KFdBU01fQ0ROX1BBVEhfUFJFRklYLCIvZGVjb2Rlci53YXNtLmpzIikpLnRoZW4oKGZ1bmN0aW9uKGUpe3JldHVybiBlLmFycmF5QnVmZmVyKCl9KSkudGhlbigoZnVuY3Rpb24odCl7cmV0dXJuIFdlYkFzc2VtYmx5Lmluc3RhbnRpYXRlKHQsZSl9KSkudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIHQoZS5pbnN0YW5jZSl9KSl9fSkudGhlbigoZnVuY3Rpb24oZSl7c2VsZi5Nb2R1bGU9ZSxvblBvc3RSdW4uY2FsbChzZWxmKX0pKTpuZXcgUHJvbWlzZSgoZnVuY3Rpb24oZSx0KXthZGRPblBvc3RSdW4ob25Qb3N0UnVuLmJpbmQoc2VsZikpLE1vZHVsZS5vblJ1bnRpbWVJbml0aWFsaXplZD1mdW5jdGlvbigpe2UoKX0sTW9kdWxlLm9uQWJvcnQ9ZnVuY3Rpb24oZSl7dChlJiZlLm1lc3NhZ2U/ZTpuZXcgRXJyb3IoIndhc20gaW5pdCBlcnJvciIpKX0sc2V0VGltZW91dCgoZnVuY3Rpb24oKXt0KG5ldyBFcnJvcigid2FzbSBsb2FkIHRpbWVvdXQiKSl9KSw2ZTMpfSkpfSkpLmNhdGNoKChmdW5jdGlvbihlKXtzZWxmLnBvc3RNZXNzYWdlKHttc2c6IklOSVRfRkFJTEVEIixsb2c6ZS5tZXNzYWdlfSl9KSl9c2VsZi5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5kYXRhO2lmKHQubXNnKXtpZigiaW5pdCIhPT10Lm1zZyYmInByZWxvYWQiIT09dC5tc2cmJiFkZWNvZGVyKXJldHVybjtzd2l0Y2godC5tc2cpe2Nhc2UicHJlbG9hZCI6aW5pdCh0LnVybCk7YnJlYWs7Y2FzZSJpbml0IjpzZWxmLm1ldGE9dC5tZXRhLGluaXQodC51cmwpO2JyZWFrO2Nhc2UidXBkYXRlbWV0YSI6c2VsZi5tZXRhPXQubWV0YSxkZWNvZGVyLnVwZGF0ZU1ldGEodC5tZXRhKTticmVhaztjYXNlImluaXREZWNvZGVyIjpkZWNvZGVyLmRlY29kZSh0LmRhdGEpO2JyZWFrO2Nhc2UiZGVjb2RlIjpkZWNvZGVyLmRlY29kZSh0LmRhdGEsdC5pbmZvKTticmVhaztjYXNlImZsdXNoIjpkZWNvZGVyLmZsdXNoKCk7YnJlYWs7Y2FzZSJmaW5pc2hfZmxhZyI6c2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJCQVRDSF9GSU5JU0hfRkxBRyJ9KTticmVhaztjYXNlImRlc3RvcnkiOmRlY29kZXIuZGVzdHJveSgpfX1lbHNlIHNlbGYucG9zdE1lc3NhZ2Uoe21zZzoiRVJST1I6aW52YWxpZCBtZXNzYWdlIn0pfX0pKCk7Cg==",blob$2="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs$2)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper$2(){var e=blob$2&&(_URL||window.webkitURL).createObjectURL(blob$2);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs$2,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var encodedJs$1="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzKHNyYyl7cmV0dXJuIGZldGNoKHNyYykudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUudGV4dCgpfSkpLnRoZW4oKGZ1bmN0aW9uKHRleHQpe3NlbGYuZXhwb3J0cz17fSxldmFsKHRleHQpLHNlbGYubT1leHBvcnRzLm19KSl9dmFyIE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSD01MjQyODgwLEJBVENIX0RFQ09ERV9TSVpFPTgsaW5pdFRzPTAsRGVjb2Rlcj1mdW5jdGlvbihlKXt0aGlzLmluaXRlZD0hMSx0aGlzLmluZm9JZD0wLHRoaXMuc2VsZj1lLHRoaXMubWV0YT1lLm1ldGEsdGhpcy50cz0wLHRoaXMuaW5mb2xpc3Q9W10sZS5wYXJfYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkPXRoaXMuYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkLmJpbmQodGhpcyksZS5wYXJfYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkPXRoaXMuYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkLmJpbmQodGhpcyl9LGRlY29kZXI7ZnVuY3Rpb24gb25Qb3N0UnVuKCl7KGRlY29kZXI9bmV3IERlY29kZXIodGhpcykpLmluaXQoKX1EZWNvZGVyLnByb3RvdHlwZS50b1U4QXJyYXk9ZnVuY3Rpb24oZSx0KXtyZXR1cm4gTW9kdWxlLkhFQVBVOC5zdWJhcnJheShlLGUrdCl9LERlY29kZXIucHJvdG90eXBlLmluaXQ9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5SW5pdCgwLDIpLHRoaXMuc3RyZWFtQnVmZmVyUHRyPU1vZHVsZS5fYnJvYWR3YXlDcmVhdGVTdHJlYW0oTUFYX1NUUkVBTV9CVUZGRVJfTEVOR1RIKSx0aGlzLnN0cmVhbUJ1ZmZlcj10aGlzLnRvVThBcnJheSh0aGlzLnN0cmVhbUJ1ZmZlclB0cixNQVhfU1RSRUFNX0JVRkZFUl9MRU5HVEgpLHRoaXMuYnVmZmVyU2l6ZXNQdHI9TW9kdWxlLl9tYWxsb2MoNCpCQVRDSF9ERUNPREVfU0laRSksdGhpcy5idWZmZXJTaXplcz10aGlzLnRvVThBcnJheSh0aGlzLmJ1ZmZlclNpemVzUHRyLDQqQkFUQ0hfREVDT0RFX1NJWkUpLHRoaXMuc3RyZWFtQnVmZmVyT2Zmc2V0PTAsdGhpcy5mcmFtZUxlbnNPZmZzZXQ9MCx0aGlzLmZyYW1lTGVuc0J1ZmZlcj1uZXcgVWludDMyQXJyYXkoQkFUQ0hfREVDT0RFX1NJWkUpfSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uUGljdHVyZURlY29kZWQ9ZnVuY3Rpb24oZSx0LHIpe3ZhciBzPXRoaXMuaW5mb2xpc3Quc2hpZnQoKSxvPXIsaT1yLzIsbj10LGY9dC8yOyF0aGlzLm1ldGF8fDQ0NCE9PXRoaXMubWV0YS5jaHJvbWFGb3JtYXQmJjQyMiE9PXRoaXMubWV0YS5jaHJvbWFGb3JtYXR8fChpPXIpO3ZhciBhPXRoaXMudG9VOEFycmF5KGUsbipvK2YqaSoyKSxjPW5ldyBVaW50OEFycmF5KGEubGVuZ3RoKTtjLnNldChhKTt2YXIgZD1jLmJ1ZmZlcjt0aGlzLnNlbGYucG9zdE1lc3NhZ2Uoe21zZzoiREVDT0RFRCIsd2lkdGg6dCxoZWlnaHQ6cix5TGluZXNpemU6bix1dkxpbmVzaXplOmYsaW5mbzpzLGJ1ZmZlcjpkfSxbZF0pfSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQ9ZnVuY3Rpb24oKXtpZighdGhpcy5pbml0ZWQpe3RoaXMuaW5pdGVkPSEwO3ZhciBlPTA7aW5pdFRzJiYoZT1wZXJmb3JtYW5jZS5ub3coKS1pbml0VHMpLHRoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVSX1JFQURZIixjb3N0OmV9KX19LERlY29kZXIucHJvdG90eXBlLnN0b3JlQnVmZmVyPWZ1bmN0aW9uKGUsdCl7dCYmdC5rZXlmcmFtZSYmdGhpcy5mbHVzaCgpLHRoaXMuaW5mb2xpc3QucHVzaCh0KSx0aGlzLnN0cmVhbUJ1ZmZlci5zZXQoZSx0aGlzLnN0cmVhbUJ1ZmZlck9mZnNldCksdGhpcy5mcmFtZUxlbnNCdWZmZXJbdGhpcy5mcmFtZUxlbnNPZmZzZXRdPWUubGVuZ3RoLHRoaXMuc3RyZWFtQnVmZmVyT2Zmc2V0Kz1lLmxlbmd0aCx0aGlzLmZyYW1lTGVuc09mZnNldCs9MSx0aGlzLmJhdGNoRGVjb2RlKCl9LERlY29kZXIucHJvdG90eXBlLmJhdGNoRGVjb2RlPWZ1bmN0aW9uKGUpeyh0aGlzLmZyYW1lTGVuc09mZnNldD49QkFUQ0hfREVDT0RFX1NJWkV8fGUmJnRoaXMuZnJhbWVMZW5zT2Zmc2V0KSYmKHRoaXMuYnVmZmVyU2l6ZXMuc2V0KG5ldyBVaW50OEFycmF5KHRoaXMuZnJhbWVMZW5zQnVmZmVyLmJ1ZmZlciksMCksTW9kdWxlLl9icm9hZHdheVBsYXlTdHJlYW0xKHRoaXMuYnVmZmVyU2l6ZXNQdHIsdGhpcy5mcmFtZUxlbnNPZmZzZXQpLHRoaXMuZnJhbWVMZW5zT2Zmc2V0PTAsdGhpcy5zdHJlYW1CdWZmZXJPZmZzZXQ9MCl9LERlY29kZXIucHJvdG90eXBlLmRlY29kZT1mdW5jdGlvbihlKXt0aGlzLnN0cmVhbUJ1ZmZlci5zZXQoZSksTW9kdWxlLl9icm9hZHdheVBsYXlTdHJlYW0oZS5sZW5ndGgsMCl9LERlY29kZXIucHJvdG90eXBlLmZsdXNoPWZ1bmN0aW9uKCl7dGhpcy5iYXRjaERlY29kZSghMCksTW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKCl9LERlY29kZXIucHJvdG90eXBlLmRlc3Ryb3k9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5RXhpdCgpfSxEZWNvZGVyLnByb3RvdHlwZS51cGRhdGVNZXRhPWZ1bmN0aW9uKGUpe3RoaXMubWV0YT1lfTt2YXIgV0FTTV9DRE5fUEFUSF9QUkVGSVg9IiI7ZnVuY3Rpb24gaW5pdChlKXsoV0FTTV9DRE5fUEFUSF9QUkVGSVg9ZS5zcGxpdCgiLyIpLnNsaWNlKDAsLTEpLmpvaW4oIi8iKSxpbml0VHM9cGVyZm9ybWFuY2Uubm93KCksZGVjb2Rlcil8fChzZWxmLmltcG9ydFNjcmlwdHM/bmV3IFByb21pc2UoKGZ1bmN0aW9uKHQscil7c2VsZi5jb25zb2xlfHwoc2VsZi5jb25zb2xlPXtsb2c6ZnVuY3Rpb24oKXt9LHdhcm46ZnVuY3Rpb24oKXt9LGluZm86ZnVuY3Rpb24oKXt9LGVycm9yOmZ1bmN0aW9uKCl7fX0pO3RyeXtzZWxmLmltcG9ydFNjcmlwdHMoZSksdCgpfWNhdGNoKHMpe2lmKHMubWVzc2FnZS5pbmNsdWRlcygiTW9kdWxlIHNjcmlwdHMgZG9uJ3Qgc3VwcG9ydCBpbXBvcnRTY3JpcHRzIikpcmV0dXJuIHQoc2hpbUltcG9ydFNjcmlwdHMoZSkpO3Iocyl9fSkpOnNoaW1JbXBvcnRTY3JpcHRzKGUpKS50aGVuKChmdW5jdGlvbigpe3JldHVybiBmZXRjaChXQVNNX0NETl9QQVRIX1BSRUZJWCsiL2RlY29kZXIud29ya2VyLmpzIikudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUuYmxvYigpfSkpLnRoZW4oKGZ1bmN0aW9uKGUpe3JldHVybiBzZWxmLm0oe2xvY2F0ZUZpbGU6ZnVuY3Rpb24odCl7cmV0dXJuL1wud29ya2VyXC5qcyQvLnRlc3QodCk/VVJMLmNyZWF0ZU9iamVjdFVSTChlKTovXC53YXNtJC8udGVzdCh0KT9XQVNNX0NETl9QQVRIX1BSRUZJWCsiL2RlY29kZXIud2FzbSI6L1wubWVtJC8udGVzdCh0KT9XQVNNX0NETl9QQVRIX1BSRUZJWCsiL2RlY29kZXIuanMubWVtIjp2b2lkIDB9LG1haW5TY3JpcHRVcmxPckJsb2I6V0FTTV9DRE5fUEFUSF9QUkVGSVgrIi9kZWNvZGVyLmpzIn0pfSkpLnRoZW4oKGZ1bmN0aW9uKGUpe3NlbGYuTW9kdWxlPWUsb25Qb3N0UnVuLmNhbGwoc2VsZil9KSl9KSkuY2F0Y2goKGZ1bmN0aW9uKGUpe3NlbGYucG9zdE1lc3NhZ2Uoe21zZzoiSU5JVF9GQUlMRUQiLGxvZzplLm1lc3NhZ2V9KX0pKX1zZWxmLm9ubWVzc2FnZT1mdW5jdGlvbihlKXt2YXIgdD1lLmRhdGE7aWYoImluaXQiPT09dC5tc2d8fCJwcmVsb2FkIj09PXQubXNnfHxkZWNvZGVyKXN3aXRjaCh0Lm1zZyl7Y2FzZSJwcmVsb2FkIjppbml0KHQudXJsKSxCQVRDSF9ERUNPREVfU0laRT10LmJhdGNoRGVjb2RlQ291bnQ7YnJlYWs7Y2FzZSJpbml0IjpzZWxmLm1ldGE9dC5tZXRhLEJBVENIX0RFQ09ERV9TSVpFPXQuYmF0Y2hEZWNvZGVDb3VudCxpbml0KHQudXJsKTticmVhaztjYXNlInVwZGF0ZW1ldGEiOnNlbGYubWV0YT10Lm1ldGEsZGVjb2Rlci51cGRhdGVNZXRhKHQubWV0YSk7YnJlYWs7Y2FzZSJpbml0RGVjb2RlciI6ZGVjb2Rlci5mcmFtZUxlbnNPZmZzZXQmJmRlY29kZXIuYmF0Y2hEZWNvZGUoITApLGRlY29kZXIuZmx1c2goKSxkZWNvZGVyLmRlY29kZSh0LmRhdGEpO2JyZWFrO2Nhc2UiZGVjb2RlIjpkZWNvZGVyLnN0b3JlQnVmZmVyKHQuZGF0YSx0LmluZm8pO2JyZWFrO2Nhc2UiZmx1c2giOmRlY29kZXIuZmx1c2goKTticmVhaztjYXNlImZpbmlzaF9mbGFnIjpzZWxmLnBvc3RNZXNzYWdlKHttc2c6IkJBVENIX0ZJTklTSF9GTEFHIn0pO2JyZWFrO2Nhc2UiZGVzdG9yeSI6ZGVjb2Rlci5kZXN0cm95KCl9fX0pKCk7Cg==",blob$1="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs$1)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper$1(){var e=blob$1&&(_URL||window.webkitURL).createObjectURL(blob$1);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs$1,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var encodedJs="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzKHNyYyl7cmV0dXJuIGZldGNoKHNyYykudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUudGV4dCgpfSkpLnRoZW4oKGZ1bmN0aW9uKHRleHQpe3NlbGYuZXhwb3J0cz17fSxldmFsKHRleHQpLHNlbGYubT1leHBvcnRzLm19KSl9dmFyIE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSD0xMDQ4NTc2LGluaXRUcz0wLERlY29kZXI9ZnVuY3Rpb24oZSl7dGhpcy5pbml0ZWQ9ITEsdGhpcy5zZWxmPWUsdGhpcy5tZXRhPWUubWV0YSx0aGlzLmluZm9saXN0PVtdLGUucGFyX2Jyb2Fkd2F5T25Ccm9hZHdheUluaXRlZD10aGlzLmJyb2Fkd2F5T25Ccm9hZHdheUluaXRlZC5iaW5kKHRoaXMpLGUucGFyX2Jyb2Fkd2F5T25QaWN0dXJlRGVjb2RlZD10aGlzLmJyb2Fkd2F5T25QaWN0dXJlRGVjb2RlZC5iaW5kKHRoaXMpfSxkZWNvZGVyO2Z1bmN0aW9uIG9uUG9zdFJ1bigpeyhkZWNvZGVyPW5ldyBEZWNvZGVyKHRoaXMpKS5pbml0KCl9RGVjb2Rlci5wcm90b3R5cGUudG9VOEFycmF5PWZ1bmN0aW9uKGUsdCl7cmV0dXJuIE1vZHVsZS5IRUFQVTguc3ViYXJyYXkoZSxlK3QpfSxEZWNvZGVyLnByb3RvdHlwZS5pbml0PWZ1bmN0aW9uKCl7TW9kdWxlLl9icm9hZHdheUluaXQoKSx0aGlzLnN0cmVhbUJ1ZmZlcj10aGlzLnRvVThBcnJheShNb2R1bGUuX2Jyb2Fkd2F5Q3JlYXRlU3RyZWFtKE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSCwwKSxNQVhfU1RSRUFNX0JVRkZFUl9MRU5HVEgpfSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uUGljdHVyZURlY29kZWQ9ZnVuY3Rpb24oZSx0LG8saSxuLHMscil7dmFyIGE9dGhpcy5pbmZvbGlzdFswXTtpZighYXx8IWEua2V5ZnJhbWV8fHIpe3ZhciBjPU9iamVjdC5hc3NpZ24oe30sdGhpcy5pbmZvbGlzdC5zaGlmdCgpKSxkPW8sZj1vLzI7IXRoaXMubWV0YXx8NDQ0IT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdCYmNDIyIT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdHx8KGY9byk7dmFyIHU9dGhpcy50b1U4QXJyYXkoZSxpKmQrbipmKjIpLGw9bmV3IFVpbnQ4QXJyYXkodS5sZW5ndGgpO2wuc2V0KHUpO3ZhciBtPWwuYnVmZmVyO3RoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVEIix3aWR0aDp0LGhlaWdodDpvLHlMaW5lc2l6ZTppLHV2TGluZXNpemU6bixpbmZvOmMsYnVmZmVyOm19LFttXSl9fSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQ9ZnVuY3Rpb24oKXt0aGlzLmluaXRlZD0hMDt2YXIgZT0wO2luaXRUcyYmKGU9cGVyZm9ybWFuY2Uubm93KCktaW5pdFRzKSx0aGlzLnNlbGYucG9zdE1lc3NhZ2Uoe21zZzoiREVDT0RFUl9SRUFEWSIsY29zdDplfSl9LERlY29kZXIucHJvdG90eXBlLmRlY29kZT1mdW5jdGlvbihlLHQpe3QmJnRoaXMuaW5mb2xpc3QucHVzaCh0KSx0JiZ0LmtleWZyYW1lJiYodGhpcy5pbmZvbGlzdD1bdF0pLHRoaXMuc3RyZWFtQnVmZmVyLnNldChlKSxNb2R1bGUuX2Jyb2Fkd2F5UGxheVN0cmVhbShlLmxlbmd0aCwwKX0sRGVjb2Rlci5wcm90b3R5cGUuZGVzdHJveT1mdW5jdGlvbigpe01vZHVsZS5fYnJvYWR3YXlFeGl0KCl9LERlY29kZXIucHJvdG90eXBlLnVwZGF0ZU1ldGE9ZnVuY3Rpb24oZSl7dGhpcy5tZXRhPWV9O3ZhciBXQVNNX0NETl9QQVRIX1BSRUZJWD0iIjtmdW5jdGlvbiBpbml0KGUpe1dBU01fQ0ROX1BBVEhfUFJFRklYPWUuc3BsaXQoIi8iKS5zbGljZSgwLC0xKS5qb2luKCIvIiksaW5pdFRzPXBlcmZvcm1hbmNlLm5vdygpO3ZhciB0PS9hc20vLnRlc3QoZSk7ZGVjb2Rlcnx8KHNlbGYuaW1wb3J0U2NyaXB0cz9uZXcgUHJvbWlzZSgoZnVuY3Rpb24odCxvKXtzZWxmLmNvbnNvbGV8fChzZWxmLmNvbnNvbGU9e2xvZzpmdW5jdGlvbigpe30sd2FybjpmdW5jdGlvbigpe30saW5mbzpmdW5jdGlvbigpe30sZXJyb3I6ZnVuY3Rpb24oKXt9fSk7dHJ5e3NlbGYuaW1wb3J0U2NyaXB0cyhlKSx0KCl9Y2F0Y2goaSl7aWYoaS5tZXNzYWdlLmluY2x1ZGVzKCJNb2R1bGUgc2NyaXB0cyBkb24ndCBzdXBwb3J0IGltcG9ydFNjcmlwdHMiKSlyZXR1cm4gdChzaGltSW1wb3J0U2NyaXB0cyhlKSk7byhpKX19KSk6c2hpbUltcG9ydFNjcmlwdHMoZSkpLnRoZW4oKGZ1bmN0aW9uKCl7cmV0dXJuIHQ/KGNvbnNvbGUubG9nKCJhdXRvIGluc3RhbmNlIERlY29kZXIhIiksbmV3IFByb21pc2UoKGZ1bmN0aW9uKGUsdCl7c2V0VGltZW91dCgoZnVuY3Rpb24oKXt0cnl7b25Qb3N0UnVuLmNhbGwoc2VsZiksZSgpfWNhdGNoKG8pe3Qobyl9fSkpfSkpKTpzZWxmLm0oe2luc3RhbnRpYXRlV2FzbTpmdW5jdGlvbihlLHQpe2ZldGNoKCIiLmNvbmNhdChXQVNNX0NETl9QQVRIX1BSRUZJWCwiL2RlY29kZXIud2FzbS5qcyIpKS50aGVuKChmdW5jdGlvbihlKXtyZXR1cm4gZS5hcnJheUJ1ZmZlcigpfSkpLnRoZW4oKGZ1bmN0aW9uKHQpe3JldHVybiBXZWJBc3NlbWJseS5pbnN0YW50aWF0ZSh0LGUpfSkpLnRoZW4oKGZ1bmN0aW9uKGUpe3JldHVybiB0KGUuaW5zdGFuY2UpfSkpfX0pLnRoZW4oKGZ1bmN0aW9uKGUpe3NlbGYuTW9kdWxlPWUsb25Qb3N0UnVuLmNhbGwoc2VsZil9KSl9KSkuY2F0Y2goKGZ1bmN0aW9uKGUpe3NlbGYucG9zdE1lc3NhZ2Uoe21zZzoiSU5JVF9GQUlMRUQiLGxvZzplLm1lc3NhZ2V9KX0pKX1zZWxmLm9ubWVzc2FnZT1mdW5jdGlvbihlKXt2YXIgdD1lLmRhdGE7aWYoImluaXQiPT09dC5tc2d8fCJwcmVsb2FkIj09PXQubXNnfHxkZWNvZGVyKXN3aXRjaCh0Lm1zZyl7Y2FzZSJwcmVsb2FkIjppbml0KHQudXJsKTticmVhaztjYXNlImluaXQiOnNlbGYubWV0YT10Lm1ldGEsc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJMT0ciLGxvZzoid29ya2VyIGluaXRlZCJ9KSxpbml0KHQudXJsKTticmVhaztjYXNlInVwZGF0ZW1ldGEiOnNlbGYubWV0YT10Lm1ldGEsZGVjb2Rlci51cGRhdGVNZXRhKHQubWV0YSk7YnJlYWs7Y2FzZSJpbml0RGVjb2RlciI6ZGVjb2Rlci5kZWNvZGUodC5kYXRhKTticmVhaztjYXNlImRlY29kZSI6ZGVjb2Rlci5kZWNvZGUodC5kYXRhLHQuaW5mbyk7YnJlYWs7Y2FzZSJmaW5pc2hfZmxhZyI6c2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJCQVRDSF9GSU5JU0hfRkxBRyJ9KTticmVhaztjYXNlImRlc3RvcnkiOmRlY29kZXIuZGVzdHJveSgpfX19KSgpOwo=",blob="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(){var e=blob&&(_URL||window.webkitURL).createObjectURL(blob);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var DecoderCache=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_queue",[]),_defineProperty$2(this,"_pendingDecoder",null),_defineProperty$2(this,"TAG","DecoderCache")}return _createClass$2(e,[{key:"genDecoder",value:function(e){return this._initDecoder(e)}},{key:"_initDecoder",value:function(e){var t=this,r=getDecodeCapacaity(),n=r.preloadDecoder,o=r.maxDecodeOnceWasm;e=e||n;var i,a,s=getDecoderUrls(),c=s.H264_DECODER_URL,l=s.H265_SIMD_DECODER_URL,u=s.H265_DECODER_URL,$=s.H265_THREAD_DECODER_URL,d=1;if("h265"===e&&(simdSupported()?(i=new WorkerWrapper$2,a=l,d=2):threadSupported()&&getDecodeCapacaity().canUseThreadMode?(i=new WorkerWrapper$1,a=$,d=1):(i=new WorkerWrapper$2,a=u,d=3)),"h264"===e&&(i=new WorkerWrapper,a=c,d=3),!i)return _Promise.resolve();var A=promiseDelayed();i.postMessage({msg:"preload",batchDecodeCount:o,url:a}),this._pendingDecoder=i,i.id=_Date$now()+_parseInt$1(1e3*Math.random()),i.isHevc="h265"===e,i.using=!1,i.ready=!1,logger.log(this.TAG,"start init decoder worker, id=",i.id,"hevc=",i.isHevc,"mode=",d);var p=function e(r){t._pendingDecoder=null;var n=r.data.msg;switch("DECODER_READY"!==n&&"INIT_FAILED"!==n||(i.removeEventListener("message",e),i.removeEventListener("error",f)),n){case"DECODER_READY":logger.log(t.TAG,"decoder worker inited!, id=",i.id,"cost:",r.data.cost),i.ready=!0,i.using||t._queue.push(i),A.resolve();break;case"INIT_FAILED":logger.log(t.TAG,"decoder worker init failed!",r.data.log),A.reject(r.data.log)}},f=function e(t){i.removeEventListener("message",p),i.removeEventListener("error",e),A.reject(null==t?void 0:t.message)};return i.addEventListener("message",p),i.addEventListener("error",f),A}},{key:"cacheDecoder",value:function(e){var t;e.using=!1,e.ready=!0,e.id||(e.id=_Date$now()+_parseInt$1(1e3*Math.random())),this._queue.push(e),logger.log(this.TAG,"cache decoder, id=",e.id),"h265"===getDecodeCapacaity().preloadDecoder&&1===_filterInstanceProperty(t=this._queue).call(t,(function(e){return!e.using&&e.isHevc})).length&&this.genDecoder("h265")}},{key:"getCachedDecoder",value:function(e){var t,r,n,o,i=_findIndexInstanceProperty(t=this._queue).call(t,(function(t){return!t.using&&t.isHevc===e}));-1!==i&&(n=_spliceInstanceProperty(o=this._queue).call(o,i,1)[0]);if(!n&&this._pendingDecoder&&(n=this._pendingDecoder,this._pendingDecoder=null),n)return n.using=!0,logger.warn(this.TAG,_concatInstanceProperty(r="get cached decoder, id=".concat(n.id,", ready=")).call(r,n.ready)),n}}]),e}(),decoderCache=new DecoderCache,MAX_DECODE_ONCE_DEFAULT=getDecodeCapacaity().maxDecodeOnceWasm,WasmDecodeController=function(e){_inherits$1(r,DecodeController);var t=_createSuper$1(r);function r(){var e,n;_classCallCheck$2(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return _defineProperty$2(_assertThisInitialized$1(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,i))),"TAG","WasmController"),_defineProperty$2(_assertThisInitialized$1(n),"_avccpushed",!1),_defineProperty$2(_assertThisInitialized$1(n),"_maxDecodeOnce",MAX_DECODE_ONCE_DEFAULT),_defineProperty$2(_assertThisInitialized$1(n),"_continueDecodeThreshold",MAX_DECODE_ONCE_DEFAULT/2),_defineProperty$2(_assertThisInitialized$1(n),"_wasmInitCost",0),_defineProperty$2(_assertThisInitialized$1(n),"_threadSupported",threadSupported()&&getDecodeCapacaity().canUseThreadMode),_defineProperty$2(_assertThisInitialized$1(n),"_simdSuppported",simdSupported()),_defineProperty$2(_assertThisInitialized$1(n),"_decoderMode",window.WebAssembly?3:4),n}return _createClass$2(r,[{key:"wasmInitCost",get:function(){var e;return null===(e=this._decoderWorker)||void 0===e?void 0:e._wasmInitCost}},{key:"isHevc",get:function(){var e;return null===(e=this._parent)||void 0===e?void 0:e.isHevc}},{key:"_selectDecodeWorker",value:function(){this.analyse.addWasmInit();var e,t=getDecoderUrls(),r=t.H264_DECODER_URL,n=t.H265_DECODER_URL,o=t.H265_THREAD_DECODER_URL,i=t.H265_SIMD_DECODER_URL,a=t.ASM_H264_DECODER_URL,s=t.ASM_H265_DECODER_URL;return logger.log(this.TAG,"start init wasm worker:",performance.now(),"hevc:",this.isHevc,"decoderMode:",this._decoderMode),this.isHevc?(e=1===this._decoderMode?o:2===this._decoderMode?i:3===this._decoderMode?n:s)?{decoder:1===this._decoderMode?new WorkerWrapper$1:new WorkerWrapper$2,url:e}:void this._workerErrorCallback("no found decoder url, decodeMode:".concat(this._decoderMode)):(e=4===this._decoderMode?a:r)?{decoder:new WorkerWrapper,url:e}:void this._workerErrorCallback("no found decoder url, decodeMode:".concat(this._decoderMode))}},{key:"_initWorker",value:function(){this.isHevc&&(this._threadSupported&&(this._decoderMode=1),this._simdSuppported&&(this._decoderMode=2)),this._initDecodeWorkerInternal()}},{key:"_initDecodeWorkerInternal",value:function(){var e=decoderCache.getCachedDecoder(this.isHevc);if(e)return logger.warn(this.TAG,"select decoder from cache"),this.analyse.addWasmInit(),this._avccpushed=!1,this._bindWorkerEvent(e),this._decoderWorker=e,void(e.ready&&(this._decoderReady=!0,this._initDecoderWithConfiguration(e,this.meta),this._workerMessageCallback({type:"DECODER_READY",data:e}),logger.log(this.TAG,"decoder ready!")));var t=this._selectDecodeWorker()||{},r=t.decoder,n=t.url;r&&(this._avccpushed=!1,this._bindWorkerEvent(r),r.isHevc=this.isHevc,r.postMessage({msg:"init",meta:this.meta,batchDecodeCount:MAX_DECODE_ONCE_DEFAULT,url:n}),this._decoderWorker=r)}},{key:"_bindWorkerEvent",value:function(e){var t=this,r=function(r,n){logger.log(t.TAG,"worker failed: ",r,n),t._terminateWorker(e),t._decoderWorker=null,!1===getDecodeCapacaity().wasmFallbackToAsm||4===t._decoderMode?t._workerErrorCallback(r):(t._decoderMode=1===t._decoderMode||2===t._decoderMode?3:4,t._initDecodeWorkerInternal())};e._onMessage=function(n){var o,i;switch(n.data.msg){case"DECODER_READY":if(logger.log(t.TAG,"wasm worker ready!","cost:",n.data.cost),t._decoderReady=!0,e._wasmInitCost=_parseInt$1(n.data.cost),!t.meta)return;t._avccpushed||t._initDecoderWithConfiguration(e,t.meta),t.emit(Events.VIDEO.VIDEO_DECODER_INIT,e),t._workerMessageCallback({type:"DECODER_READY",data:e});break;case"DECODED":if(t._inDecoding=!0,(null===(o=n.data)||void 0===o||null===(i=o.info)||void 0===i?void 0:i.id)!==t._id)return;t._workerMessageCallback({type:"RECEIVE_FRAME",data:n.data});break;case"BATCH_FINISH_FLAG":if(t._inDecoding=!1,!t._workerMessageCallback)return;t._workerMessageCallback({type:"BATCH_FINISH"});break;case"INIT_FAILED":r(n.data.log,1)}},e._onError=function(e){r(e.message,2)},e.addEventListener("message",e._onMessage),e.addEventListener("error",e._onError)}},{key:"_initDecoderWithConfiguration",value:function(e,t){var r;logger.log(this.TAG,"init decoder with configuration"),this._avccpushed=!0,e.postMessage({msg:"updatemeta",meta:t});var n=t.rawVps||t.vps[0],o=t.rawSps||t.sps[0],i=t.rawPps||t.pps[0],a=_filterInstanceProperty(r=[n,o,i]).call(r,Boolean),s=_reduceInstanceProperty(a).call(a,(function(e,t){return e+(t.byteLength+4)}),0),c=new Uint8Array(s),l=0;_forEachInstanceProperty(a).call(a,(function(e){c.set([0,0,0,1],l),l+=4,c.set(e,l),l+=e.byteLength})),e.postMessage({msg:"initDecoder",data:c})}},{key:"destroy",value:function(){if(this._decoderWorker)return getDecodeCapacaity().reuseWasmDecoder?(this._offWorkerBind(this._decoderWorker),void decoderCache.cacheDecoder(this._decoderWorker)):void this._terminateWorker(this._decoderWorker)}},{key:"_offWorkerBind",value:function(e){e.removeEventListener("message",e._onMessage),e.removeEventListener("error",e._onError),e.postMessage({msg:"flush"}),e._onMessage=null,e._onError=null,logger.log(this.TAG,"flush decoder and unbind worker event")}},{key:"_terminateWorker",value:function(e){this._offWorkerBind(e),e.postMessage({msg:"destroy"}),e.terminate(),logger.log(this.TAG,"destroy decoder worker")}}]),r}(),DECODER_ERROR_SUBCODE=1,WEBGL_ERROR_SUBCODE=2,VideoRenderWithDecoder=function(e){_inherits$1(r,VideoBaseRender);var t=_createSuper$1(r);function r(){var e,n;_classCallCheck$2(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return _defineProperty$2(_assertThisInitialized$1(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,i))),"TAG","VideoRenderWithDecoder"),_defineProperty$2(_assertThisInitialized$1(n),"_hideRenderFlag",0),_defineProperty$2(_assertThisInitialized$1(n),"_recentMeta",null),_defineProperty$2(_assertThisInitialized$1(n),"_inChaseFrame",!1),_defineProperty$2(_assertThisInitialized$1(n),"_decoderErrorCallback",(function(e){n._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,n._assembleErr(e,DECODER_ERROR_SUBCODE))})),_defineProperty$2(_assertThisInitialized$1(n),"_decoderMessageCallback",(function(e){var t,r,o,i=e.type,a=e.data;switch(i){case"DECODER_READY":if(n.analyse.addWasmReady(),!n._frameRender){var s=_Object$assign(n._config,{meta:n._meta,canvas:n._canvas,type:n._decodeController.webcodec?"2d":""});try{n._canvas.glInstance?(n._frameRender=n._canvas.glInstance,n._frameRender.updateBind(_assertThisInitialized$1(n),n._meta),logger.warn(n.TAG,"reuse canvas and context")):(n._frameRender=new FrameRender(s,_assertThisInitialized$1(n)),logger.log(n.TAG,"create frameRender with config",s))}catch(e){n._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,n._assembleErr(e&&e.message,WEBGL_ERROR_SUBCODE))}}n._startDecode();break;case"RECEIVE_FRAME":if(n._inChaseFrame&&(null===(t=n._decodeController)||void 0===t||!t.webcodec))return;n._receiveFrame(a);break;case"BATCH_FINISH":null===(r=_assertThisInitialized$1(n))||void 0===r||r._decodeEstimate.resetDecodeDot(),n._inChaseFrame&&(n._inChaseFrame=!1,n._frameQueue.empty()),n._ready||n.inSeeking||null===(o=n._decodeController)||void 0===o||!o.decoderReady||n._startDecode()}})),n}return _createClass$2(r,[{key:"wasmInitCost",get:function(){var e;return null===(e=this._decodeController)||void 0===e?void 0:e.wasmInitCost}},{key:"hevcThread",get:function(){return 1===this.decodeMode}},{key:"lowlatency",get:function(){return this._parent.lowlatency}},{key:"nextFrameTime",get:function(){var e=this._frameQueue.nextFrame();return(e&&e.info&&e.info.dts||0)/1e3}},{key:"ajustSeekTime",value:function(e,t){var r;logger.log(this.TAG,"ajust seek time: ",e),this._frameQueue.empty(),null===(r=this._decodeController)||void 0===r||r.flushDecoder(),this._switchVideoBuffer(e,t)}},{key:"canSeek",value:function(){return!0}},{key:"_appendChunk",value:function(e){var t;if(!this.noVideo&&this._timeRange){if(this._meta){if(this._recentMeta.width!==e.width||this._recentMeta.height!==e.height){var r,n,o;logger.warn(this.TAG,_concatInstanceProperty(r=_concatInstanceProperty(n=_concatInstanceProperty(o="metadata changed! width: ".concat(this._recentMeta.width," -> ")).call(o,e.width,", height: ")).call(n,this._recentMeta.height," -> ")).call(r,e.height));var i=e.samples[0];i&&(this._recentMeta=i.meta=_Object$assign({},e,{samples:null}))}}else{this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LOADEDMETADATA),this._recentMeta=this._meta=_Object$assign({},e,{samples:null}),logger.warn(this.TAG,"video set metadata",this._meta,"configuration:",this.configuration);var a=e.fpsNum/e.fpsDen;a?logger.log(this.TAG,"detect fps:",a):logger.warn(this.TAG,"no detect fps,start estimate"),this._selectDecoder(),this._initDecoder()}if(this._timeRange.append(e.samples,this._isLive&&this.noAudio,!this.videoDecode),e.samples=[],!this.inSeeking){var s;if(this.isLive||this._timeRange.frameLength||this._switchVideoBuffer(this._parent.currentTime),!this._ready&&null!==(t=this._decodeController)&&void 0!==t&&t.decoderReady)!this.noAudio&&null!==(s=this._decodeController)&&void 0!==s&&s.inDecoding||this._startDecode();this.noAudio&&this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE)}}}},{key:"_selectDecoder",value:function(){if(!this.isHevc&&WebCodecDecodeController.isSupported())return this._decodeController=new WebCodecDecodeController(this),void(this._decodeEstimate.webcodec=!0);this._decodeController=new WasmDecodeController(this)}},{key:"_initDecoder",value:function(){var e;null===(e=this._decodeController)||void 0===e||e.init(this._decoderMessageCallback,this._decoderErrorCallback)}},{key:"_startDecode",value:function(){var e;null===(e=this._decodeController)||void 0===e||e.doDecode()}},{key:"_switchVideoBuffer",value:function(e,t){var r=this._timeRange.switchBuffer(e);if(r){var n;if(this.noAudio&&this._parent.emit(Events.TIMELINE.SYNC_DTS,this.getDtsOfTime(r.start)),t)return void(null===(n=this._decodeController)||void 0===n||n.preciseSeek(e));this._startDecode(t)}}},{key:"_checkToDecode",value:function(){var e;this.inSeeking||null===(e=this._decodeController)||void 0===e||e.checkToDecode(this._frameQueue.length)}},{key:"_render",value:function(e){var t;if(!this.noVideo){var r=this._frameQueue&&this._frameQueue.nextFrame();if(r){var n=r.info;if(!n)return this._frameQueue.shift(),void console.error("not info");this._renderDts=n.dts;var o=n.dts-this.preciseVideoDts;if(!(!e&&o>0&&o<6e4)){var i,a,s,c,l,u;if(this._frameQueue.shift(this.preciseVideoDts),Math.abs(this._lastTimeupdate-n.dts)>250&&(this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE,{pts:n.originPts/90}),this._lastTimeupdate=n.dts),logger.long)logger.log(this.TAG,_concatInstanceProperty(i=_concatInstanceProperty(a=_concatInstanceProperty(s=_concatInstanceProperty(c=_concatInstanceProperty(l=_concatInstanceProperty(u="render delay:".concat(o," , timelinePosition:")).call(u,this.preciseVideoDts," , dts:")).call(l,n.dts," , cost:")).call(c,n.cost," , gopID:")).call(s,n.gopId," , rest:")).call(a,this._frameQueue.length,", buffer frame:")).call(i,this._timeRange.frameLength));var $=performance.now();this._hideRenderFlag++,("visible"===document.visibilityState||this._hideRenderFlag%15)&&this._frameRender.render(r.buffer,r.width,r.height,r.yLinesize,r.uvLinesize),null!==(t=this._decodeController)&&void 0!==t&&t.webcodec&&r.buffer.close(),this._renderCost=performance.now()-$,this._checkToDecode()}}else{var d;if(logger.log(this.TAG,"lack frame, ","inDecoding:",null===(d=this._decodeController)||void 0===d?void 0:d.inDecoding),this._checkToDecode(),this.noAudio){var A;if(!this.isLive&&Math.abs(this.currentTime-this.duration)<.5)return null==this||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),null==this||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED),void(null===(A=this._timeRange)||void 0===A||A.clean());this._timeRange.frameLength||(this._ready=!1,this.emit(Events.VIDEO.VIDEO_WAITING))}}}}},{key:"_updateSegmentEnd",value:function(e){var t;null===(t=this._timeRange)||void 0===t||t.updateSegmentEnd(e)}},{key:"_doChaseFrame",value:function(e){var t=e.frame;this._inChaseFrame=!0,this._timeRange.deletePassed(t.dts),this._frameQueue.empty(),this.noAudio&&this._parent.emit(Events.TIMELINE.SYNC_DTS,t.dts)}},{key:"_destroy",value:function(e){var t;logger.log(this.TAG,"destroy video render"),_get(_getPrototypeOf$1(r.prototype),"destroy",this).call(this,e),null===(t=this._decodeController)||void 0===t||t.destroy(),this._decodeController=null}}]),r}(),TOLERANCE=.1,TimeLine=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e,n){var o;return _classCallCheck$2(this,r),(o=t.call(this)).TAG="TimeLine",o._parent=n,o._seeking=!1,o.audioRender=AudioMseRender.isSupported()?new AudioMseRender(e,_assertThisInitialized$1(o)):new AudioRender(e,_assertThisInitialized$1(o)),o.videoRender=new VideoRenderWithDecoder(e,_assertThisInitialized$1(o)),o._readyStatus={audio:!1,video:!1},o._paused=!0,o._switchToMultiWorker=!1,o._lowdecodeEmited=!1,o._startPlayed=!1,o._emitReady=!1,o._lastSeekTime=1e-4,o._singleTrack=-1,o._bindEvent(),o._decodeVideo=e.video,o}return _createClass$2(r,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"ready",get:function(){return this._readyStatus.video&&this._readyStatus.audio}},{key:"played",get:function(){var e=this;return{length:this.currentTime?1:0,start:function(){return 0},end:function(){return e.currentTime}}}},{key:"noAudio",get:function(){return 1===this._singleTrack||2===this._singleTrack}},{key:"isLive",get:function(){return this._parent.live}},{key:"seeking",get:function(){return this._seeking}},{key:"decodeFps",get:function(){return this.videoRender.decodeFps}},{key:"decodeCost",get:function(){return this.videoRender.decodeCost}},{key:"renderCost",get:function(){return this.videoRender.renderCost}},{key:"wasmInitCost",get:function(){return this.videoRender.wasmInitCost}},{key:"fps",get:function(){return this.videoRender.fps}},{key:"totalSize",get:function(){return this.videoRender.totalSize}},{key:"bitrate",get:function(){return this.videoRender.bitrate}},{key:"gopLength",get:function(){return this.videoRender.gopLength}},{key:"currentTime",get:function(){return this.noAudio?this.paused?this.videoRender.nextFrameTime:this.videoRender.currentTime:this.audioRender.currentTime}},{key:"timelinePosition",get:function(){return this.noAudio?performance.now()/1e3:this.audioRender.currentTime}},{key:"canvas",get:function(){return this.videoRender.canvas}},{key:"readyState",get:function(){return this.videoRender.readyState}},{key:"buffered",get:function(){var e=this;return this.noAudio?this.videoRender.buffered:this.isLive?this.audioRender.buffered:{length:this.audioRender.buffered.length,start:function(t){return Math.max(e.audioRender.buffered.start(t),e.videoRender.buffered.start(t))},end:function(t){return Math.min(e.audioRender.buffered.end(t),e.videoRender.buffered.end(t))}}}},{key:"duration",get:function(){return this.noAudio?this.videoRender.duration:this.isLive?this.audioRender.duration:Math.min(this.audioRender.duration,this.videoRender.duration)}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e}},{key:"lowlatency",get:function(){return this._parent.lowlatency}},{key:"decoderMode",get:function(){return this.videoRender.decoderMode}},{key:"currentAudioCanAutoplay",get:function(){return this.audioRender.audioCanAutoplay}},{key:"_getController",value:function(e,t){return e?new VideoRenderFromVideo(t,this):new VideoRenderWithDecoder(t,this)}},{key:"_checkInBuffer",value:function(){for(var e=this.buffered,t=0,r=e.length;t<r;t++)if(e.start(t)<=this.currentTime+TOLERANCE&&e.end(t)>=this.currentTime)return!0;return!1}},{key:"_resetReadyStatus",value:function(){this._readyStatus.audio=!1,this._readyStatus.video=!1}},{key:"_bindEvent",value:function(){var e=this;this.on(Events.DECODE_EVENTS.REMUX,(function(t){e.videoRender.setRemux(t)})),this.on(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME_END,(function(t){e.emit(Events.DECODE_EVENTS.CHASE_AUDIO_FRAME,t)})),this.audioRender.on(Events.AUDIO.AUDIO_READY,(function(){logger.log(e.TAG,"audio ready! seeking=",e._seeking),e._seeking&&_setTimeout((function(){try{var t=e.videoRender.getSeekStartPosition(e.currentTime,1/0);if(e.audioRender.isMse&&t)return getDecodeCapacaity().preciseSeek>e.duration&&e.currentTime>TOLERANCE?(e.audioRender.seekNoSideEffect({position:e.currentTime+TOLERANCE}),void e.videoRender.ajustSeekTime(e.currentTime,!0)):(e.audioRender.seekNoSideEffect({position:t.position+TOLERANCE}),void e.videoRender.ajustSeekTime(t.position));e.videoRender.ajustSeekTime(e.currentTime)}catch(e){}}),10),e._readyStatus.video&&e._startRender(),e._readyStatus.audio=!0,e._startPlayed||e.analyse.addAudioReady()})),this.audioRender.on(Events.AUDIO.AUDIO_NOT_ALLOWED_AUTOPLAY,(function(){e._emitReady&&e.pause()})),this.audioRender.on(Events.AUDIO.AUDIO_WAITING,(function(){!e.noAudio&&e.currentTime&&(logger.warn(e.TAG,"lack data, audio waiting,currentTime:",e.currentTime),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.WAITING),e.emit(Events.TIMELINE.DO_PAUSE),e._readyStatus.audio=!1)})),this.videoRender.on(Events.VIDEO.VIDEO_WAITING,(function(){logger.warn(e.TAG,"lack data, video waiting"),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.WAITING),e.emit(Events.TIMELINE.DO_PAUSE),e._readyStatus.video=!1})),this.videoRender.on(Events.VIDEO.VIDEO_READY,(function(){logger.log(e.TAG,"video ready!"),e._startPlayed||e.analyse.addVideoReady(),e._readyStatus.audio&&e._startRender("video"),e._readyStatus.video=!0})),this.videoRender.on(Events.VIDEO.DECODE_LOW_FPS,(function(){e.currentTime<2||(e.analyse.increaseLowDecodeCount(),e._lowdecodeEmited||(updateLowdecodeVV(),e._lowdecodeEmited=!0),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LOW_DECODE))})),this.on(Events.TIMELINE.SINGLE_TRACK,(function(t){e._singleTrack=t,1!==t&&2!==t||(e._readyStatus.audio=!0),3===t&&(e._readyStatus.video=!0),e.emit(Events.TIMELINE.SYNC_DTS,0)})),this.on(Events.TIMELINE.DESTROY,(function(){e.removeAllListeners(),e.videoRender=null,e.audioRender=null})),this.on(Events.TIMELINE.DO_PLAY,(function(){e.emit(Events.TIMELINE.START_RENDER),e._paused=!1,e._lastSeekTime=1e-4,e.noAudio&&e.emit(Events.TIMELINE.SYNC_DTS,0)}))}},{key:"_startRender",value:function(e){if(!this._parent.error&&this.videoRender){if(this.noAudio&&this.emit(Events.TIMELINE.SYNC_DTS,0),this.videoRender.forceRender(),!this.isLive&&this._paused&&this.seeking&&this._checkInBuffer())return logger.log(this.TAG,"set seeking = false"),this._seeking=!1,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.SEEKED),void logger.groupEnd();this._startPlayed||(this.analyse.addFirstframe(),this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LOADEDDATA),this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.FIRST_FRAME),this._startPlayed=!0),logger.log(this.TAG,"emit canplay"),this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.CANPLAY),this._parent.autoplay?(logger.warn(this.TAG,"startRender: time=",this.currentTime,"paused:",this.paused,"seeking:",this.seeking),this.emit(Events.TIMELINE.START_RENDER,e)):(this._parent.autoplay=!0,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PAUSE)),this.emit(Events.TIMELINE.READY),this._emitReady=!0,this._seeking&&this._checkInBuffer()&&(logger.log(this.TAG,"set seeking = false"),this._seeking=!1,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.SEEKED),logger.groupEnd())}}},{key:"_checkHlsTracks",value:function(e){if(!(null==e?void 0:e.samples[0])){if(!this.buffered.length){var t=new Error("lack video sample");t.code=3,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,t)}return!1}return!0}},{key:"appendBuffer",value:function(e,t){this.emit(Events.TIMELINE.APPEND_CHUNKS,e,t),this.noAudio&&this._seeking&&this.videoRender.ajustSeekTime(this.currentTime)}},{key:"play",value:function(){var e=this;return new _Promise((function(t,r){var n=e.currentAudioCanAutoplay;e.noAudio?n=!0:e.audioRender&&e.audioRender.resume().then((function(){var t;if(logger.log(e.TAG,_concatInstanceProperty(t="audio render resumed, pause status: ".concat(e._paused,", audioCanAutoplay:")).call(t,e.currentAudioCanAutoplay)),e._paused||!e.currentAudioCanAutoplay)return n=!1,void e.emit(Events.TIMELINE.DO_PAUSE);n=!0})).catch((function(){})),_setTimeout((function(){var o;return logger.log(e.TAG,_concatInstanceProperty(o="play() timer done, resumed=".concat(n,", paused=")).call(o,e.paused)),n?e.videoRender&&!e.videoRender.canAutoPlay?(console.warn("video render an't autoplay"),e.pause(),void t()):(e._paused=!1,void t()):e.paused?void 0:(logger.log(e.TAG,"audioCtx can't autoplay"),e.pause(),void r({name:"NotAllowedError"}))}),e.audioRender.isMse?10:60)}))}},{key:"pause",value:function(){this._paused||!this.ready&&!this._seeking||(this.emit(Events.TIMELINE.DO_PAUSE),this._paused=!0,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PAUSE))}},{key:"seek",value:function(e){var t=this;if(this._seeking&&logger.groupEnd(),this.isLive){if(this.currentTime<TOLERANCE||!this.currentAudioCanAutoplay||this.paused)return;var r=this.videoRender.getSeekStartPosition(e,this._parent.preloadTime+1);if(r){if(r.position<this.currentTime)return;var n=this.audioRender.canSeek(r.position),o=this.videoRender.canSeek(r);if(!n||!o)return void logger.log(this.TAG,"seek, !!!!!!!!!can not seek, audioCanSeek:",n,"videoCanSeek:",o);logger.warn(this.TAG,"seek, chase frame to time: ",r.position,"currentTime:",this.currentTime,"duration:",this.duration),this.videoRender.videoDecode?(this.audioRender.doPause(),r.position=r.position-1.5,this.emit(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME,r)):this.emit(Events.TIMELINE.CHASE_FRAME,r)}}else this._lastSeekTime!==e&&(e&&Math.abs(this._lastSeekTime-e)<=.2||(this._lastSeekTime=e,e>=this.duration&&(e=this.duration-1),e<0&&(e=0),logger.group(this.TAG,"start seek to:".concat(e,", set seeking status=true")),this._seeking=!0,this.videoRender.setSeekingStatus(!0),this.noAudio?(this.emit(Events.TIMELINE.SYNC_DTS,this.videoRender.getDtsOfTime(e)),this.videoRender.ajustSeekTime(e)):this._resetReadyStatus(),this.emit(Events.TIMELINE.DO_SEEK,e),new _Promise((function(e){t.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.SEEKING),e()}))))}}]),r}(),DESCRIPTORS$1=descriptors$1,uncurryThis$2=functionUncurryThis$1,objectKeys$1=objectKeys$8,toIndexedObject$1=toIndexedObject$n,$propertyIsEnumerable$1=objectPropertyIsEnumerable$1.f,propertyIsEnumerable$1=uncurryThis$2($propertyIsEnumerable$1),push$1=uncurryThis$2([].push),createMethod$1=function(e){return function(t){for(var r,n=toIndexedObject$1(t),o=objectKeys$1(n),i=o.length,a=0,s=[];i>a;)r=o[a++],DESCRIPTORS$1&&!propertyIsEnumerable$1(n,r)||push$1(s,e?[r,n[r]]:n[r]);return s}},objectToArray$1={entries:createMethod$1(!0),values:createMethod$1(!1)},$$2=_export$1,$entries$1=objectToArray$1.entries;$$2({target:"Object",stat:!0},{entries:function(e){return $entries$1(e)}});var path=path$w,entries$5=path.Object.entries,parent$2=entries$5,entries$4=parent$2,parent$1=entries$4,entries$3=parent$1,parent=entries$3,entries$2=parent,entries$1=entries$2,entries5=entries$1,_Object$entries=getDefaultExportFromCjs(entries5),DESCRIPTORS=descriptors,uncurryThis$1=functionUncurryThis,objectKeys=objectKeys$5,toIndexedObject=toIndexedObject$c,$propertyIsEnumerable=objectPropertyIsEnumerable.f,propertyIsEnumerable4=uncurryThis$1($propertyIsEnumerable),push=uncurryThis$1([].push),createMethod=function(e){return function(t){for(var r,n=toIndexedObject(t),o=objectKeys(n),i=o.length,a=0,s=[];i>a;)r=o[a++],DESCRIPTORS&&!propertyIsEnumerable4(n,r)||push(s,e?[r,n[r]]:n[r]);return s}},objectToArray={entries:createMethod(!0),values:createMethod(!1)},$$1=_export,$entries=objectToArray.entries;$$1({target:"Object",stat:!0},{entries:function(e){return $entries(e)}});var $=_export,uncurryThis=functionUncurryThis,toIntegerOrInfinity=toIntegerOrInfinity$d,thisNumberValue=thisNumberValue$2,$repeat=stringRepeat,fails=fails$M,$RangeError=RangeError,$String=String,floor=Math.floor,repeat2=uncurryThis($repeat),stringSlice=uncurryThis("".slice),nativeToFixed=uncurryThis(1..toFixed),pow=function(e,t,r){return 0===t?r:t%2==1?pow(e,t-1,r*e):pow(e*e,t/2,r)},log=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t},multiply=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=floor(o/1e7)},divide=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=floor(n/t),n=n%t*1e7},dataToString=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=$String(e[t]);r=""===r?n:r+repeat2("0",7-n.length)+n}return r},FORCED=fails((function(){return"0.000"!==nativeToFixed(8e-5,3)||"1"!==nativeToFixed(.9,0)||"1.25"!==nativeToFixed(1.255,2)||"1000000000000000128"!==nativeToFixed(0xde0b6b3a7640080,0)}))||!fails((function(){nativeToFixed({})}));$({target:"Number",proto:!0,forced:FORCED},{toFixed:function(e){var t,r,n,o,i=thisNumberValue(this),a=toIntegerOrInfinity(e),s=[0,0,0,0,0,0],c="",l="0";if(a<0||a>20)throw $RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return $String(i);if(i<0&&(c="-",i=-i),i>1e-21)if(r=(t=log(i*pow(2,69,1))-69)<0?i*pow(2,-t,1):i/pow(2,t,1),r*=4503599627370496,(t=52-t)>0){for(multiply(s,0,r),n=a;n>=7;)multiply(s,1e7,0),n-=7;for(multiply(s,pow(10,n,1),0),n=t-1;n>=23;)divide(s,1<<23),n-=23;divide(s,1<<n),multiply(s,1,1),divide(s,2),l=dataToString(s)}else multiply(s,0,r),multiply(s,1<<-t,0),l=dataToString(s)+repeat2("0",a);return l=a>0?c+((o=l.length)<=a?"0."+repeat2("0",a-o)+l:stringSlice(l,0,o-a)+"."+stringSlice(l,o-a)):c+l}});var AnalyseDots={FIRST_DATA:1,AUDIO_MSE_OPEN_START:2,AUDIO_MSE_OPEND:3,AUDIO_FIRSTTIME_APPENDED:4,AUDIO_READY:5,WASM_WORKER_INIT:6,WASM_WORKER_READY:7,FIRST_FRAME_TODECODE:8,VIDEO_READY:9,FIRST_FRAME:10,WAITIGN:11,SEEKING:12,SEEKED:13},AnalyseDotsFlat=_Object$entries(AnalyseDots),Analyse=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_dot",[]),_defineProperty$2(this,"_currentLowDecodeCount",0)}return _createClass$2(e,[{key:"getBootStats",value:function(){var e,t,r=(null===(t=this._dot[0])||void 0===t?void 0:t.dot)||0;return _mapInstanceProperty(e=this._dot).call(e,(function(e){return{action:_filterInstanceProperty(AnalyseDotsFlat).call(AnalyseDotsFlat,(function(t){return t[1]===e.action}))[0][1],dot:_parseInt$1(e.dot-r)}}))}},{key:"getStats",value:function(e){var t,r=this.getBootStats();return{bootStats:r,bitrate:Math.abs(e.bitrate/1e3),decodeFps:e.decodeFps,fps:e.fps,playbackRate:e.playbackRate,firstframe:null===(t=_filterInstanceProperty(r).call(r,(function(e){return 10===e.action}))[0])||void 0===t?void 0:t.dot,width:e.videoWidth,height:e.videoHeight,decoderMode:e.decoderMode,vv:getVV(),lowdecodeVV:getLowdecodeVV(),h265FailureRate:Number((100*getLowdecodePercent()).toFixed(2)),currentLowDecodeCount:this._currentLowDecodeCount}}},{key:"seekElapses",value:function(){for(var e=this.getBootStats(),t=[],r=0,n=0,o=e.length;n<o;n++){var i=e[n];i.action===AnalyseDots.SEEKING&&(r=i.dot),i.action===AnalyseDots.SEEKED&&t.push(i.dot-r)}return t}},{key:"addFirstData",value:function(){this._dot.push({action:AnalyseDots.FIRST_DATA,dot:this._getTimestap()})}},{key:"addAudioBoundMedia",value:function(){this._dot.push({action:AnalyseDots.AUDIO_BOUND_MEDIA,dot:this._getTimestap()})}},{key:"addAudioMseOpenStart",value:function(){this._dot.push({action:AnalyseDots.AUDIO_MSE_OPEN_START,dot:this._getTimestap()})}},{key:"addAudioMseOpend",value:function(){this._dot.push({action:AnalyseDots.AUDIO_MSE_OPEND,dot:this._getTimestap()})}},{key:"addAudioFirstTimeAppended",value:function(){this._dot.push({action:AnalyseDots.AUDIO_FIRSTTIME_APPENDED,dot:this._getTimestap()})}},{key:"addAudioReady",value:function(){this._dot.push({action:AnalyseDots.AUDIO_READY,dot:this._getTimestap()})}},{key:"addWasmInit",value:function(){this._dot.push({action:AnalyseDots.WASM_WORKER_INIT,dot:this._getTimestap()})}},{key:"addWasmReady",value:function(){this._dot.push({action:AnalyseDots.WASM_WORKER_READY,dot:this._getTimestap()})}},{key:"addFirstFrameToDecode",value:function(){this._dot.push({action:AnalyseDots.FIRST_FRAME_TODECODE,dot:this._getTimestap()})}},{key:"addVideoReady",value:function(){this._dot.push({action:AnalyseDots.VIDEO_READY,dot:this._getTimestap()})}},{key:"addFirstframe",value:function(){this._dot.push({action:AnalyseDots.FIRST_FRAME,dot:this._getTimestap()})}},{key:"addWaiting",value:function(){this._dot.push({action:AnalyseDots.WAITIGN,dot:this._getTimestap()})}},{key:"addSeeking",value:function(){this._dot.push({action:AnalyseDots.SEEKING,dot:this._getTimestap()})}},{key:"addSeeked",value:function(){this._dot.push({action:AnalyseDots.SEEKED,dot:this._getTimestap()})}},{key:"_getTimestap",value:function(){return performance.now()}},{key:"increaseLowDecodeCount",value:function(){this._currentLowDecodeCount++}},{key:"reset",value:function(){this._currentLowDecodeCount=0,this._dot=[]}}]),e}(),VIDEO_DECODE_MODE_VALUE="7",SINGLE_TRACK_TYPE={LOW_LATENCY:1,NO_AUDIO:2,NO_VIDEO:3},Parent="undefined"!=typeof HTMLElement?HTMLElement:function(){},XGVideo=function(e){_inherits$1(r,Parent);var t=_createSuper$1(r);function r(){var e,n,o;return _classCallCheck$2(this,r),(o=t.call(this)).TAG="XGVideo",o._proxyProps(),o._isLive=!0,o._vMeta=null,o._aMeta=null,o._resizeObserver=null,o._eventsBackup=[],o._hevc="h265"===getDecodeCapacaity().preloadDecoder,o._hevc||(o._degradeVideo=document.createElement("video")),o._debounceSeek=debounce(_bindInstanceProperty(e=o._seek).call(e,_assertThisInitialized$1(o)),300),o._onTouchEnd=_bindInstanceProperty(n=o._onTouchEnd).call(n,_assertThisInitialized$1(o)),o.analyse=new Analyse,o}return _createClass$2(r,[{key:"_proxyProps",value:function(){var e,t=this;_forEachInstanceProperty(e=_Object$getOwnPropertyNames(r.prototype)).call(e,(function(e){if(/^__/.test(e)){var r=e.replace("__","");_Object$defineProperty(t,r,{get:function(){try{return this[e]}catch(e){}return 0},set:function(t){try{this[e]=t}catch(e){}}})}}))}},{key:"addEventListener",value:function(e,t,n){_get(_getPrototypeOf$1(r.prototype),"addEventListener",this).call(this,e,t,n),this._degradeVideo&&this._eventsBackup.push([e,t,n])}},{key:"removeEventListener",value:function(e,t,n){var o;(_get(_getPrototypeOf$1(r.prototype),"removeEventListener",this).call(this,e,t,n),this._degradeVideo)&&(this._eventsBackup=_filterInstanceProperty(o=this._eventsBackup).call(o,(function(r){return!(r.eventName===e&&r.handler===t&&r.capture===n)})))}},{key:"setAttribute",value:function(e,t){var n;_get(_getPrototypeOf$1(r.prototype),"setAttribute",this).call(this,e,t),"src"!==e&&(null===(n=this._degradeVideo)||void 0===n||n.setAttribute(e,t))}},{key:"_init",value:function(){this.analyse.reset(),this.timeline=new TimeLine({volume:this.volume,canvas:this.querySelector("canvas"),videoContext:this.videoContext,videoDecode:this.videoDecode,maxVideoHeight:this.getAttribute("maxVideoHeight"),endLevel:_parseInt$1(this.getAttribute("endLevel"))},this),logger.log(this.TAG,"timeline init"),this._noSleep=new NoSleep,this._logFirstFrame=!1,this._playRequest=null,this._degradeVideoUserGestured=!1,this._bindEvents(),this._vMeta&&!this.videoDecode&&this.setVideoMeta(this._vMeta),this._glCtxOptions&&(this.glCtxOptions=this._glCtxOptions),this.timeline&&(this.innerDegrade&&this.timeline.emit(Events.TIMELINE.INNER_DEGRADE),this.timeline.emit(Events.TIMELINE.SET_PLAY_MODE,this._isLive?"LIVE":"VOD"),this.timeline.emit(Events.TIMELINE.SET_PLAYBACKRATE,this.playbackRate),this.muted=this.muted)}},{key:"_bindEvents",value:function(){var e=this;this.timeline.on(Events.TIMELINE.PLAY_EVENT,(function(t,r){var n;t===VIDEO_EVENTS.LOADEDDATA&&(e.querySelector("canvas")||(logger.log(e.TAG,"_bindEvents, appendChild canvas"),e.appendChild(e.canvas)),e.canvas.style.display="block",null===(n=e.timeline)||void 0===n||n.emit(Events.TIMELINE.SET_PLAYBACKRATE,e.playbackRate));if(t!==VIDEO_EVENTS.LOADEDMETADATA&&t!==VIDEO_EVENTS.RESIZE||_Promise.resolve().then((function(){e.updateVideoPostion()})),t===VIDEO_EVENTS.ERROR){if(logger.warn(e.TAG,"detect error:",null==r?void 0:r.message),e.pause(),e._disabled(!0),e.innerDegrade||5===e.decoderMode)return e.degradeInfo={decodeFps:e.decodeFps,bitrate:e.bitrate,wasmInitCost:e.wasmInitCost,fps:e.fps,url:e.src,msg:null==r?void 0:r.message,decoderMode:e.decoderMode},void e._innerDispatchEvent("lowdecode");e._err=r}if(t===VIDEO_EVENTS.LOW_DECODE)return e._disabled(),e.degradeInfo={decodeFps:e.decodeFps,bitrate:e.bitrate,wasmInitCost:e.wasmInitCost,fps:e.fps,url:e.src,decoderMode:e.decoderMode},void e._innerDispatchEvent(VIDEO_EVENTS_ARR[t],e.degradeInfo);if(t===VIDEO_EVENTS.LARGE_AV_GAP&&(e.unsyncInfo=r),t===VIDEO_EVENTS.ENDED){if(e.paused)return;e.pause()}t===VIDEO_EVENTS.PROGRESS&&e._noSleep.toPlay(),t===VIDEO_EVENTS.WAITING&&e.analyse.addWaiting(),t===VIDEO_EVENTS.SEEKING&&e.analyse.addSeeking(),t===VIDEO_EVENTS.SEEKED&&e.analyse.addSeeked(),e._innerDispatchEvent(VIDEO_EVENTS_ARR[t],r)}))}},{key:"_disabled",value:function(e){(this.innerDegrade||e)&&(e?getDecodeCapacaity().disabledWhenErrorOccur&&persistenceDisabledStatus(1):getDecodeCapacaity().evaluateVVCount||(this.decodeFps/this.fps<=.6&&this.bitrate<2e6?persistenceDisabledStatus(1):persistenceDisabledStatus(2)))}},{key:"degrade",value:function(e){var t,n=this;!!this.querySelector("canvas")?this.replaceChild(this._degradeVideo,this.canvas):this.appendChild(this._degradeVideo),this.destroy(),_forEachInstanceProperty(t=this._eventsBackup).call(t,(function(e){var t,o=_slicedToArray$1(e,3),i=o[0],a=o[1],s=o[2];_get(_getPrototypeOf$1(r.prototype),"removeEventListener",n).call(n,i,a,s),null===(t=n._degradeVideo)||void 0===t||t.addEventListener(i,a,s)})),this._eventsBackup=[],e&&(this._degradeVideo.muted=!1,this._degradeVideo.src=e,this._degradeVideo.load())}},{key:"disconnectedCallback",value:function(){logger.log(this.TAG,"video disconnected"),document.removeEventListener("touchend",this._onTouchEnd,!0),this.destroy(!0),this._resizeObserver&&this._resizeObserver.disconnect(this)}},{key:"connectedCallback",value:function(){var e=this;logger.log(this.TAG,"video connected to document",performance.now()),this.timeline||this._init(),this.style.width="100%",this.style.height="100%",this.style.position="absolute",this.style.left="0px",this.style.top="0px",document.addEventListener("touchend",this._onTouchEnd,!0),ResizeObserver&&(this._resizeObserver=new ResizeObserver((function(t){var r;null!==(r=e.timeline)&&void 0!==r&&r.ready&&e.updateVideoPostion()})),this._resizeObserver.observe(this))}},{key:"_onTouchEnd",value:function(){playSlienceAudio(),this._degradeVideoInteract(),this._noSleep&&this._noSleep.enable()}},{key:"_degradeVideoInteract",value:function(){var e=this;if(this._degradeVideo&&(1===this.innerDegrade||3===this.innerDegrade)){if(this._degradeVideoUserGestured)return;var t=this._degradeVideo.play();t&&t.then((function(){e._degradeVideo.pause(),e._degradeVideoUserGestured=!0})).catch((function(e){console.log("degrade video: ",e.message)}))}}},{key:"play",value:function(e){var t,r,n=this;if(this.timeline){logger.log(this.TAG,_concatInstanceProperty(t=_concatInstanceProperty(r="play() called, ready:".concat(this.timeline.ready,", paused:")).call(r,this.timeline.paused,", force:")).call(t,e)),this._degradeVideoInteract();var o=0;if(this.timeline.ready&&this.timeline.paused||e){if(e=e||this._isLive,this._playRequest=null,!e)return this.timeline.emit(Events.TIMELINE.DO_PLAY),this._innerDispatchEvent("play"),_Promise.resolve();this.destroy(),this._init(),o=_setTimeout((function(){try{n._innerDispatchEvent("waiting")}catch(e){}}),300)}return this._playRequest||!this.timeline.ready||this.timeline.paused?(logger.log(this.TAG,"request play!"),this._playRequest=this._playRequest||new _Promise((function(e,t){n.timeline._paused=!1,n._innerDispatchEvent("play"),n._noSleep.enable(),n.timeline.once("ready",(function(){logger.log(n.TAG,"timeline emit ready"),clearTimeout(o),n.timeline.play().then(e).catch(t).finally((function(){n._playRequest=null}))}))})),this.autoplay=!0,this._playRequest):_Promise.resolve()}}},{key:"pause",value:function(){this._playRequest=null,this.timeline&&this.timeline.pause();try{this._noSleep.disable(),pauseSlienceAudio()}catch(e){}}},{key:"load",value:function(){}},{key:"appendBuffer",value:function(e,t){if(this.timeline&&!this._err){if(!this._logFirstFrame){var r=e&&e.samples[0],n=t&&t.samples[0];if(!r&&!n)return;if(r||n){var o,i,a,s=(null==e?void 0:e.duration)/((null==e?void 0:e.formatTimescale)||1/0),c=(null==t?void 0:t.duration)/((null==t?void 0:t.formatTimescale)||1/0);logger.warn(this.TAG,_concatInstanceProperty(o=_concatInstanceProperty(i=_concatInstanceProperty(a="video firstDts:".concat(r&&r.dts," , audio firstDts:")).call(a,n&&n.dts," videoTrack.duration=")).call(i,s,", audioTrack.duration=")).call(o,c)),this._logFirstFrame=!0,(s||c)&&(this.setPlayMode("VOD"),this.timeline.emit(Events.TIMELINE.SET_PLAY_MODE,this._isLive?"LIVE":"VOD"),this.duration=Math.min(s||c,c||s)),this.analyse.addFirstData()}this.lowlatency&&(logger.warn(this.TAG,"single track! type=",SINGLE_TRACK_TYPE.LOW_LATENCY),this.timeline.emit(Events.TIMELINE.SINGLE_TRACK,SINGLE_TRACK_TYPE.LOW_LATENCY)),t.exist()||(logger.warn(this.TAG,"single track! type=",SINGLE_TRACK_TYPE.NO_AUDIO),this.timeline.emit(Events.TIMELINE.SINGLE_TRACK,SINGLE_TRACK_TYPE.NO_AUDIO)),e.exist()||(logger.warn(this.TAG,"single track! type=",SINGLE_TRACK_TYPE.NO_VIDEO),this.timeline.emit(Events.TIMELINE.SINGLE_TRACK,SINGLE_TRACK_TYPE.NO_VIDEO))}var l,u;if(e.formatTimescale)_forEachInstanceProperty(l=e.samples).call(l,(function(t){t.dts=Math.floor(t.dts/e.formatTimescale*1e3),t.pts=Math.floor(t.pts/e.formatTimescale*1e3)}));if(t.formatTimescale)_forEachInstanceProperty(u=t.samples).call(u,(function(e){e.dts=Math.floor(e.dts/t.formatTimescale*1e3),e.pts=Math.floor(e.pts/t.formatTimescale*1e3)}));this.timeline.appendBuffer(e,t)}}},{key:"setAudioMeta",value:function(e){this._aMeta=e,this.timeline.emit(Events.TIMELINE.SET_METADATA,"audio",e)}},{key:"setVideoMeta",value:function(e){!this._isLive&&this._vMeta||(this.timeline.emit(Events.TIMELINE.SET_METADATA,"video",e),this._vMeta=e)}},{key:"setDecodeMode",value:function(e){this.setAttribute("decodeMode",e)}},{key:"setPlayMode",value:function(e){this._isLive="LIVE"===e}},{key:"endOfStream",value:function(){var e;this.currentTime&&(null===(e=this.timeline)||void 0===e||e.emit(Events.TIMELINE.END_OF_STREAM))}},{key:"updateVideoPostion",value:function(){var e;null===(e=this.timeline)||void 0===e||e.emit(Events.VIDEO.UPDATE_VIDEO_FILLTYPE,this.xgfillType,this.containerLayout)}},{key:"_innerDispatchEvent",value:function(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t}))}},{key:"destroy",value:function(e){this.timeline&&(this._noSleep.destroy(),logger.log(this.TAG,"call destroy"),this.timeline.emit(Events.TIMELINE.DESTROY,e),this.querySelector("video")&&this.removeChild(this.querySelector("video")),this.timeline=null,this._err=null,this._noSleep=null,this._eventsBackup=null)}},{key:"updateObjectPosition",value:function(e,t){var r;(this.timeline.emit(Events.VIDEO.UPDATE_VIDEO_COVER_POSITION,this.containerLayout,e,t),this._degradeVideo)&&(this._degradeVideo.style.objectPosition=_concatInstanceProperty(r="".concat(100*e,"% ")).call(r,100*t,"%"))}},{key:"setVideoDecode",value:function(){logger.log(this.TAG,"set videoDecode",this.videoDecode),this.videoDecode&&this.timeline&&this.timeline.videoRender&&(this.timeline.videoRender.videoDecode=this.videoDecode)}},{key:"live",get:function(){return this._isLive}},{key:"lowlatency",get:function(){return"true"===this.getAttribute("lowlatency")},set:function(e){this.setAttribute("lowlatency",e)}},{key:"autoplay",get:function(){return"true"===this.getAttribute("autoplay")},set:function(e){this.setAttribute("autoplay",e)}},{key:"__canvas",get:function(){return this.timeline.canvas}},{key:"__ended",get:function(){return Math.abs(this.currentTime-this.duration)<.5}},{key:"__width",get:function(){return this.getAttribute("width")||this.videoWidth},set:function(e){var t="number"==typeof e?"".concat(e,"px"):e;this.setAttribute("width",t),this.canvas.width=e}},{key:"__height",get:function(){return this.getAttribute("height")},set:function(e){var t="number"==typeof e?"".concat(e,"px"):e;this.setAttribute("height",t),this.canvas.height=e}},{key:"__videoWidth",get:function(){return this.canvas.width}},{key:"__videoHeight",get:function(){return this.canvas.height}},{key:"__volume",get:function(){return Number(this.getAttribute("volume"))},set:function(e){e<=0&&(e=0),e>=1&&(e=1),this.setAttribute("volume",e),this.muted||this.timeline.emit(Events.TIMELINE.UPDATE_VOLUME,e)}},{key:"__muted",get:function(){return"true"===this.getAttribute("muted")},set:function(e){this.setAttribute("muted",e),this._degradeVideoInteract(),this._noSleep.enable(),this.timeline.emit(Events.TIMELINE.UPDATE_VOLUME,e?0:this.volume)}},{key:"__currentTime",get:function(){if(!this.timeline)return 0;var e=this.timeline.currentTime,t=this.timeline.duration;return Math.min(e,t)},set:function(e){this._debounceSeek(e)}},{key:"_seek",value:function(e){this.timeline&&(this.buffered.length||this.play(),this.paused&&!this._isLive&&0===e&&this.play(),this.timeline.seek(Number(e)))}},{key:"__duration",get:function(){return this._isLive?1/0:this.timeline.duration},set:function(e){this.timeline.emit(Events.TIMELINE.SET_VIDEO_DURATION,e),this._innerDispatchEvent("durationchange")}},{key:"__seeking",get:function(){return this.timeline.seeking}},{key:"__paused",get:function(){return this.timeline.paused}},{key:"__fps",get:function(){return this.timeline.fps}},{key:"__decodeFps",get:function(){return this.timeline.decodeFps}},{key:"__decodeCost",get:function(){return _parseInt$1(this.timeline.decodeCost)}},{key:"__renderCost",get:function(){return this.timeline.renderCost}},{key:"__wasmInitCost",get:function(){return this.timeline.wasmInitCost}},{key:"__totalSize",get:function(){return this.timeline.totalSize}},{key:"__bitrate",get:function(){return this.timeline.bitrate}},{key:"__gopLength",get:function(){return this.timeline.gopLength}},{key:"__readyState",get:function(){return this.timeline.readyState}},{key:"__buffered",get:function(){return this.timeline.buffered}},{key:"__decoderMode",get:function(){return this.timeline.decoderMode}},{key:"src",get:function(){return this.getAttribute("src")||""},set:function(e){logger.log(this.TAG,"set src ",e),this.setAttribute("src",e),this._vMeta=null,this.play(!0),this.timeline||this._init(),this._innerDispatchEvent("loadstart"),updateVV()}},{key:"currentSrc",get:function(){return this.getAttribute("src")||""}},{key:"playbackRate",get:function(){return _parseFloat$7(this.getAttribute("playbackrate")||1)},set:function(e){var t;this.setAttribute("playbackrate",e),null===(t=this.timeline)||void 0===t||t.emit(Events.TIMELINE.SET_PLAYBACKRATE,e)}},{key:"networkState",get:function(){return 1}},{key:"preloadTime",get:function(){var e=this.getAttribute("preloadtime");if(e){var t=_Number$parseFloat(e);if(t>0&&!_Number$isNaN(t))return t}return 1/0},set:function(e){e&&Number(e)>0&&this.setAttribute("preloadtime",e)}},{key:"innerDegrade",get:function(){var e=this.getAttribute("innerdegrade");return _parseInt$1(e)}},{key:"__glCtxOptions",set:function(e){this._glCtxOptions=e,this.timeline.emit(Events.TIMELINE.UPDATE_GL_OPTIONS,e)}},{key:"__error",get:function(){return this._err},set:function(e){this.timeline.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,e)}},{key:"degradeVideo",get:function(){return this._degradeVideo}},{key:"degradeInfo",get:function(){return this._deradeInfo},set:function(e){this._deradeInfo=e}},{key:"unsyncInfo",get:function(){return this._unsyncInfo},set:function(e){this._unsyncInfo=e}},{key:"xgfillType",get:function(){return this.parentNode.getAttribute("data-xgfill")}},{key:"containerLayout",get:function(){var e=this.parentNode;return{width:e.clientWidth,height:e.clientHeight}}},{key:"videoDecode",get:function(){return this.getAttribute("decodeMode")===VIDEO_DECODE_MODE_VALUE}},{key:"audioMedia",get:function(){var e,t;return null===(e=this.timeline)||void 0===e||null===(t=e.audioRender)||void 0===t?void 0:t.media}},{key:"getStats",value:function(){return this.analyse.getStats(this)}},{key:"getSeekElapses",value:function(){return this.analyse.seekElapses()}},{key:"dump",value:function(){var e,t,r=this.buffered;return console.log(r),_mapInstanceProperty(e=_fillInstanceProperty(t=new Array(r.length)).call(t,0)).call(e,(function(e,t){return[r.start(t),r.end(t)]}))}}],[{key:"version",get:function(){return"0.1.16"}},{key:"init",value:function(e){var t=e.h264Url,n=e.h264AsmUrl,o=e.h265AsmUrl,i=e.h265Url,a=e.h265ThreadUrl,s=e.h265SimdUrl;r.h264Url=t,r.h265Url=i,r.h265AsmUrl=o,r.h264AsmUrl=n,r.h265ThreadUrl=a,r.h265SimdUrl=s}},{key:"getDecodeCapacity",value:function(){return getDecodeCapacaity()}},{key:"getDeviceCapacity",value:function(){return getDeviceCapacity()}},{key:"setDecodeCapacity",value:function(e){setDecodeCapacity(e),e.preloadDecoder&&decoderCache.genDecoder().catch((function(){}))}},{key:"genDecoder",value:function(e){return decoderCache.genDecoder(e)}},{key:"cleanDisabled",value:function(){cleanDisabledStatus()}},{key:"isSupported",value:function(){return!!softDecodeSupported()&&!1===getDisabledStatus()}}]),r}();_defineProperty$2(XGVideo,"decoderCache",decoderCache);var H264_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/decoder/1.1.1/h264/decoder.js",ASM_H264_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/decoder/1.1.1/h264/decoder_asm.js",H265_SIMD_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/high/decoder_1656041798666.js",H265_THREAD_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/main/decoder.js",H265_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/base/decoder.js",ASM_H265_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/high/decoder_asm.js";XGVideo.init({h264Url:H264_DECODER_URL,h264AsmUrl:ASM_H264_DECODER_URL,h265Url:H265_DECODER_URL,h265SimdUrl:H265_SIMD_DECODER_URL,h265ThreadUrl:H265_THREAD_DECODER_URL,h265AsmUrl:ASM_H265_DECODER_URL}),XGVideo.setEleName=function(e){setEleName(e);var t=function(e){_inherits$1(r,XGVideo);var t=_createSuper$1(r);function r(){return _classCallCheck$2(this,r),t.apply(this,arguments)}return _createClass$2(r)}();customElements.get(getEleName())||customElements.define(getEleName(),t)};try{customElements.get(getEleName())||customElements.define(getEleName(),XGVideo)}catch(e){}var DynamicModule=window.VePlayer.DynamicModule,__PLUGIN_NAME__=DynamicModule.PluginXgvideo;export{XGVideo as XGVideoPlugin,__PLUGIN_NAME__};
|
|
1
|
+
import{DynamicModule}from"@byteplus/veplayer";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var check$1=function(e){return e&&e.Math==Math&&e},global$13=check$1("object"==typeof globalThis&&globalThis)||check$1("object"==typeof window&&window)||check$1("object"==typeof self&&self)||check$1("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||commonjsGlobal||Function("return this")(),fails$1b=function(e){try{return!!e()}catch(e){return!0}},fails$1a=fails$1b,functionBindNative$1=!fails$1a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$8=functionBindNative$1,FunctionPrototype$7=Function.prototype,apply$b=FunctionPrototype$7.apply,call$S=FunctionPrototype$7.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$8?call$S.bind(apply$b):function(){return call$S.apply(apply$b,arguments)}),NATIVE_BIND$7=functionBindNative$1,FunctionPrototype$6=Function.prototype,call$R=FunctionPrototype$6.call,uncurryThisWithBind$1=NATIVE_BIND$7&&FunctionPrototype$6.bind.bind(call$R,call$R),functionUncurryThis$1=NATIVE_BIND$7?uncurryThisWithBind$1:function(e){return function(){return call$R.apply(e,arguments)}},uncurryThis$1c=functionUncurryThis$1,toString$q=uncurryThis$1c({}.toString),stringSlice$b=uncurryThis$1c("".slice),classofRaw$5=function(e){return stringSlice$b(toString$q(e),8,-1)},classofRaw$4=classofRaw$5,uncurryThis$1b=functionUncurryThis$1,functionUncurryThisClause$1=function(e){if("Function"===classofRaw$4(e))return uncurryThis$1b(e)},documentAll$5="object"==typeof document&&document.all,IS_HTMLDDA$1=void 0===documentAll$5&&void 0!==documentAll$5,documentAll_1$1={all:documentAll$5,IS_HTMLDDA:IS_HTMLDDA$1},$documentAll$3=documentAll_1$1,documentAll$4=$documentAll$3.all,isCallable$S=$documentAll$3.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$4}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor$1={},fails$19=fails$1b,descriptors$1=!fails$19((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$6=functionBindNative$1,call$Q=Function.prototype.call,functionCall$1=NATIVE_BIND$6?call$Q.bind(call$Q):function(){return call$Q.apply(call$Q,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$4={}.propertyIsEnumerable,getOwnPropertyDescriptor$h=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$h&&!$propertyIsEnumerable$4.call({1:2},1);objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function(e){var t=getOwnPropertyDescriptor$h(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$4;var match$1,version$1,createPropertyDescriptor$f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$1a=functionUncurryThis$1,fails$18=fails$1b,classof$t=classofRaw$5,$Object$9=Object,split$7=uncurryThis$1a("".split),indexedObject$1=fails$18((function(){return!$Object$9("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$t(e)?split$7(e,""):$Object$9(e)}:$Object$9,isNullOrUndefined$c=function(e){return null==e},isNullOrUndefined$b=isNullOrUndefined$c,$TypeError$C=TypeError,requireObjectCoercible$b=function(e){if(isNullOrUndefined$b(e))throw $TypeError$C("Can't call method on "+e);return e},IndexedObject$9=indexedObject$1,requireObjectCoercible$a=requireObjectCoercible$b,toIndexedObject$n=function(e){return IndexedObject$9(requireObjectCoercible$a(e))},isCallable$R=isCallable$S,$documentAll$2=documentAll_1$1,documentAll$3=$documentAll$2.all,isObject$A=$documentAll$2.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$R(e)||e===documentAll$3}:function(e){return"object"==typeof e?null!==e:isCallable$R(e)},path$w={},path$v=path$w,global$12=global$13,isCallable$Q=isCallable$S,aFunction$1=function(e){return isCallable$Q(e)?e:void 0},getBuiltIn$r=function(e,t){return arguments.length<2?aFunction$1(path$v[e])||aFunction$1(global$12[e]):path$v[e]&&path$v[e][t]||global$12[e]&&global$12[e][t]},uncurryThis$19=functionUncurryThis$1,objectIsPrototypeOf$1=uncurryThis$19({}.isPrototypeOf),engineUserAgent$1="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$11=global$13,userAgent$b=engineUserAgent$1,process$8=global$11.process,Deno$2=global$11.Deno,versions$1=process$8&&process$8.versions||Deno$2&&Deno$2.version,v8$1=versions$1&&versions$1.v8;v8$1&&(version$1=(match$1=v8$1.split("."))[0]>0&&match$1[0]<4?1:+(match$1[0]+match$1[1])),!version$1&&userAgent$b&&(!(match$1=userAgent$b.match(/Edge\/(\d+)/))||match$1[1]>=74)&&(match$1=userAgent$b.match(/Chrome\/(\d+)/))&&(version$1=+match$1[1]);var engineV8Version$1=version$1,V8_VERSION$7=engineV8Version$1,fails$17=fails$1b,global$10=global$13,$String$a=global$10.String,symbolConstructorDetection$1=!!Object.getOwnPropertySymbols&&!fails$17((function(){var e=Symbol();return!$String$a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$7&&V8_VERSION$7<41})),NATIVE_SYMBOL$7=symbolConstructorDetection$1,useSymbolAsUid$1=NATIVE_SYMBOL$7&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$q=getBuiltIn$r,isCallable$P=isCallable$S,isPrototypeOf$s=objectIsPrototypeOf$1,USE_SYMBOL_AS_UID$3=useSymbolAsUid$1,$Object$8=Object,isSymbol$a=USE_SYMBOL_AS_UID$3?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$q("Symbol");return isCallable$P(t)&&isPrototypeOf$s(t.prototype,$Object$8(e))},$String$9=String,tryToString$e=function(e){try{return $String$9(e)}catch(e){return"Object"}},isCallable$O=isCallable$S,tryToString$d=tryToString$e,$TypeError$B=TypeError,aCallable$u=function(e){if(isCallable$O(e))return e;throw $TypeError$B(tryToString$d(e)+" is not a function")},aCallable$t=aCallable$u,isNullOrUndefined$a=isNullOrUndefined$c,getMethod$8=function(e,t){var r=e[t];return isNullOrUndefined$a(r)?void 0:aCallable$t(r)},call$P=functionCall$1,isCallable$N=isCallable$S,isObject$z=isObject$A,$TypeError$A=TypeError,ordinaryToPrimitive$3=function(e,t){var r,n;if("string"===t&&isCallable$N(r=e.toString)&&!isObject$z(n=call$P(r,e)))return n;if(isCallable$N(r=e.valueOf)&&!isObject$z(n=call$P(r,e)))return n;if("string"!==t&&isCallable$N(r=e.toString)&&!isObject$z(n=call$P(r,e)))return n;throw $TypeError$A("Can't convert object to primitive value")},shared$c={exports:{}},isPure$1=!0,global$$=global$13,defineProperty$p=Object.defineProperty,defineGlobalProperty$5=function(e,t){try{defineProperty$p(global$$,e,{value:t,configurable:!0,writable:!0})}catch(r){global$$[e]=t}return t},global$_=global$13,defineGlobalProperty$4=defineGlobalProperty$5,SHARED$1="__core-js_shared__",store$7=global$_[SHARED$1]||defineGlobalProperty$4(SHARED$1,{}),sharedStore$1=store$7,store$6=sharedStore$1;(shared$c.exports=function(e,t){return store$6[e]||(store$6[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedExports$1=shared$c.exports,requireObjectCoercible$9=requireObjectCoercible$b,$Object$7=Object,toObject$t=function(e){return $Object$7(requireObjectCoercible$9(e))},uncurryThis$18=functionUncurryThis$1,toObject$s=toObject$t,hasOwnProperty$1=uncurryThis$18({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function(e,t){return hasOwnProperty$1(toObject$s(e),t)},uncurryThis$17=functionUncurryThis$1,id$2=0,postfix$1=Math.random(),toString$p=uncurryThis$17(1..toString),uid$8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$p(++id$2+postfix$1,36)},global$Z=global$13,shared$b=sharedExports$1,hasOwn$B=hasOwnProperty_1$1,uid$7=uid$8,NATIVE_SYMBOL$6=symbolConstructorDetection$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,Symbol$7=global$Z.Symbol,WellKnownSymbolsStore$3=shared$b("wks"),createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$7.for||Symbol$7:Symbol$7&&Symbol$7.withoutSetter||uid$7,wellKnownSymbol$N=function(e){return hasOwn$B(WellKnownSymbolsStore$3,e)||(WellKnownSymbolsStore$3[e]=NATIVE_SYMBOL$6&&hasOwn$B(Symbol$7,e)?Symbol$7[e]:createWellKnownSymbol$1("Symbol."+e)),WellKnownSymbolsStore$3[e]},call$O=functionCall$1,isObject$y=isObject$A,isSymbol$9=isSymbol$a,getMethod$7=getMethod$8,ordinaryToPrimitive$2=ordinaryToPrimitive$3,wellKnownSymbol$M=wellKnownSymbol$N,$TypeError$z=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$M("toPrimitive"),toPrimitive$5=function(e,t){if(!isObject$y(e)||isSymbol$9(e))return e;var r,n=getMethod$7(e,TO_PRIMITIVE$1);if(n){if(void 0===t&&(t="default"),r=call$O(n,e,t),!isObject$y(r)||isSymbol$9(r))return r;throw $TypeError$z("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive$2(e,t)},toPrimitive$4=toPrimitive$5,isSymbol$8=isSymbol$a,toPropertyKey$9=function(e){var t=toPrimitive$4(e,"string");return isSymbol$8(t)?t:t+""},global$Y=global$13,isObject$x=isObject$A,document$6=global$Y.document,EXISTS$3=isObject$x(document$6)&&isObject$x(document$6.createElement),documentCreateElement$4=function(e){return EXISTS$3?document$6.createElement(e):{}},DESCRIPTORS$G=descriptors$1,fails$16=fails$1b,createElement$3=documentCreateElement$4,ie8DomDefine$1=!DESCRIPTORS$G&&!fails$16((function(){return 7!=Object.defineProperty(createElement$3("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$F=descriptors$1,call$N=functionCall$1,propertyIsEnumerableModule$4=objectPropertyIsEnumerable$1,createPropertyDescriptor$e=createPropertyDescriptor$f,toIndexedObject$m=toIndexedObject$n,toPropertyKey$8=toPropertyKey$9,hasOwn$A=hasOwnProperty_1$1,IE8_DOM_DEFINE$3=ie8DomDefine$1,$getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$F?$getOwnPropertyDescriptor$4:function(e,t){if(e=toIndexedObject$m(e),t=toPropertyKey$8(t),IE8_DOM_DEFINE$3)try{return $getOwnPropertyDescriptor$4(e,t)}catch(e){}if(hasOwn$A(e,t))return createPropertyDescriptor$e(!call$N(propertyIsEnumerableModule$4.f,e,t),e[t])};var fails$15=fails$1b,isCallable$M=isCallable$S,replacement$1=/#|\.prototype\./,isForced$6=function(e,t){var r=data$1[normalize$1(e)];return r==POLYFILL$1||r!=NATIVE$1&&(isCallable$M(t)?fails$15(t):!!t)},normalize$1=isForced$6.normalize=function(e){return String(e).replace(replacement$1,".").toLowerCase()},data$1=isForced$6.data={},NATIVE$1=isForced$6.NATIVE="N",POLYFILL$1=isForced$6.POLYFILL="P",isForced_1$1=isForced$6,uncurryThis$16=functionUncurryThisClause$1,aCallable$s=aCallable$u,NATIVE_BIND$5=functionBindNative$1,bind$C=functionUncurryThisClause$1(functionUncurryThisClause$1.bind),functionBindContext$1=function(e,t){return aCallable$s(e),void 0===t?e:NATIVE_BIND$5?bind$C(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty$1={},DESCRIPTORS$E=descriptors$1,fails$14=fails$1b,v8PrototypeDefineBug$1=DESCRIPTORS$E&&fails$14((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$w=isObject$A,$String$8=String,$TypeError$y=TypeError,anObject$z=function(e){if(isObject$w(e))return e;throw $TypeError$y($String$8(e)+" is not an object")},DESCRIPTORS$D=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$3=v8PrototypeDefineBug$1,anObject$y=anObject$z,toPropertyKey$7=toPropertyKey$9,$TypeError$x=TypeError,$defineProperty$2=Object.defineProperty,$getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$3="configurable",WRITABLE$1="writable";objectDefineProperty$1.f=DESCRIPTORS$D?V8_PROTOTYPE_DEFINE_BUG$3?function(e,t,r){if(anObject$y(e),t=toPropertyKey$7(t),anObject$y(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE$1 in r&&!r[WRITABLE$1]){var n=$getOwnPropertyDescriptor$3(e,t);n&&n[WRITABLE$1]&&(e[t]=r.value,r={configurable:CONFIGURABLE$3 in r?r[CONFIGURABLE$3]:n[CONFIGURABLE$3],enumerable:ENUMERABLE$1 in r?r[ENUMERABLE$1]:n[ENUMERABLE$1],writable:!1})}return $defineProperty$2(e,t,r)}:$defineProperty$2:function(e,t,r){if(anObject$y(e),t=toPropertyKey$7(t),anObject$y(r),IE8_DOM_DEFINE$2)try{return $defineProperty$2(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$x("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$C=descriptors$1,definePropertyModule$b=objectDefineProperty$1,createPropertyDescriptor$d=createPropertyDescriptor$f,createNonEnumerableProperty$j=DESCRIPTORS$C?function(e,t,r){return definePropertyModule$b.f(e,t,createPropertyDescriptor$d(1,r))}:function(e,t,r){return e[t]=r,e},global$X=global$13,apply$a=functionApply$1,uncurryThis$15=functionUncurryThisClause$1,isCallable$L=isCallable$S,getOwnPropertyDescriptor$g=objectGetOwnPropertyDescriptor$1.f,isForced$5=isForced_1$1,path$u=path$w,bind$B=functionBindContext$1,createNonEnumerableProperty$i=createNonEnumerableProperty$j,hasOwn$z=hasOwnProperty_1$1,wrapConstructor=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return apply$a(e,this,arguments)};return t.prototype=e.prototype,t},_export$1=function(e,t){var r,n,o,i,a,s,c,l,u,$=e.target,d=e.global,A=e.stat,p=e.proto,f=d?global$X:A?global$X[$]:(global$X[$]||{}).prototype,h=d?path$u:path$u[$]||createNonEnumerableProperty$i(path$u,$,{})[$],y=h.prototype;for(i in t)n=!(r=isForced$5(d?i:$+(A?".":"#")+i,e.forced))&&f&&hasOwn$z(f,i),s=h[i],n&&(c=e.dontCallGetSet?(u=getOwnPropertyDescriptor$g(f,i))&&u.value:f[i]),a=n&&c?c:t[i],n&&typeof s==typeof a||(l=e.bind&&n?bind$B(a,global$X):e.wrap&&n?wrapConstructor(a):p&&isCallable$L(a)?uncurryThis$15(a):a,(e.sham||a&&a.sham||s&&s.sham)&&createNonEnumerableProperty$i(l,"sham",!0),createNonEnumerableProperty$i(h,i,l),p&&(hasOwn$z(path$u,o=$+"Prototype")||createNonEnumerableProperty$i(path$u,o,{}),createNonEnumerableProperty$i(path$u[o],i,a),e.real&&y&&(r||!y[i])&&createNonEnumerableProperty$i(y,i,a)))},classof$s=classofRaw$5,isArray$i=Array.isArray||function(e){return"Array"==classof$s(e)},ceil$1=Math.ceil,floor$c=Math.floor,mathTrunc$1=Math.trunc||function(e){var t=+e;return(t>0?floor$c:ceil$1)(t)},trunc$1=mathTrunc$1,toIntegerOrInfinity$h=function(e){var t=+e;return t!=t||0===t?0:trunc$1(t)},toIntegerOrInfinity$g=toIntegerOrInfinity$h,min$8=Math.min,toLength$8=function(e){return e>0?min$8(toIntegerOrInfinity$g(e),9007199254740991):0},toLength$7=toLength$8,lengthOfArrayLike$u=function(e){return toLength$7(e.length)},$TypeError$w=TypeError,MAX_SAFE_INTEGER$1=9007199254740991,doesNotExceedSafeInteger$5=function(e){if(e>MAX_SAFE_INTEGER$1)throw $TypeError$w("Maximum allowed index exceeded");return e},toPropertyKey$6=toPropertyKey$9,definePropertyModule$a=objectDefineProperty$1,createPropertyDescriptor$c=createPropertyDescriptor$f,createProperty$c=function(e,t,r){var n=toPropertyKey$6(t);n in e?definePropertyModule$a.f(e,n,createPropertyDescriptor$c(0,r)):e[n]=r},wellKnownSymbol$L=wellKnownSymbol$N,TO_STRING_TAG$9=wellKnownSymbol$L("toStringTag"),test$4={};test$4[TO_STRING_TAG$9]="z";var toStringTagSupport$1="[object z]"===String(test$4),TO_STRING_TAG_SUPPORT$5=toStringTagSupport$1,isCallable$K=isCallable$S,classofRaw$3=classofRaw$5,wellKnownSymbol$K=wellKnownSymbol$N,TO_STRING_TAG$8=wellKnownSymbol$K("toStringTag"),$Object$6=Object,CORRECT_ARGUMENTS$1="Arguments"==classofRaw$3(function(){return arguments}()),tryGet$1=function(e,t){try{return e[t]}catch(e){}},classof$r=TO_STRING_TAG_SUPPORT$5?classofRaw$3:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet$1(t=$Object$6(e),TO_STRING_TAG$8))?r:CORRECT_ARGUMENTS$1?classofRaw$3(t):"Object"==(n=classofRaw$3(t))&&isCallable$K(t.callee)?"Arguments":n},uncurryThis$14=functionUncurryThis$1,isCallable$J=isCallable$S,store$5=sharedStore$1,functionToString$2=uncurryThis$14(Function.toString);isCallable$J(store$5.inspectSource)||(store$5.inspectSource=function(e){return functionToString$2(e)});var inspectSource$6=store$5.inspectSource,uncurryThis$13=functionUncurryThis$1,fails$13=fails$1b,isCallable$I=isCallable$S,classof$q=classof$r,getBuiltIn$p=getBuiltIn$r,inspectSource$5=inspectSource$6,noop$1=function(){},empty$1=[],construct$8=getBuiltIn$p("Reflect","construct"),constructorRegExp$1=/^\s*(?:class|function)\b/,exec$8=uncurryThis$13(constructorRegExp$1.exec),INCORRECT_TO_STRING$1=!constructorRegExp$1.exec(noop$1),isConstructorModern$1=function(e){if(!isCallable$I(e))return!1;try{return construct$8(noop$1,empty$1,e),!0}catch(e){return!1}},isConstructorLegacy$1=function(e){if(!isCallable$I(e))return!1;switch(classof$q(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$1||!!exec$8(constructorRegExp$1,inspectSource$5(e))}catch(e){return!0}};isConstructorLegacy$1.sham=!0;var isConstructor$9=!construct$8||fails$13((function(){var e;return isConstructorModern$1(isConstructorModern$1.call)||!isConstructorModern$1(Object)||!isConstructorModern$1((function(){e=!0}))||e}))?isConstructorLegacy$1:isConstructorModern$1,isArray$h=isArray$i,isConstructor$8=isConstructor$9,isObject$v=isObject$A,wellKnownSymbol$J=wellKnownSymbol$N,SPECIES$c=wellKnownSymbol$J("species"),$Array$8=Array,arraySpeciesConstructor$3=function(e){var t;return isArray$h(e)&&(t=e.constructor,(isConstructor$8(t)&&(t===$Array$8||isArray$h(t.prototype))||isObject$v(t)&&null===(t=t[SPECIES$c]))&&(t=void 0)),void 0===t?$Array$8:t},arraySpeciesConstructor$2=arraySpeciesConstructor$3,arraySpeciesCreate$7=function(e,t){return new(arraySpeciesConstructor$2(e))(0===t?0:t)},fails$12=fails$1b,wellKnownSymbol$I=wellKnownSymbol$N,V8_VERSION$6=engineV8Version$1,SPECIES$b=wellKnownSymbol$I("species"),arrayMethodHasSpeciesSupport$b=function(e){return V8_VERSION$6>=51||!fails$12((function(){var t=[];return(t.constructor={})[SPECIES$b]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$1M=_export$1,fails$11=fails$1b,isArray$g=isArray$i,isObject$u=isObject$A,toObject$r=toObject$t,lengthOfArrayLike$t=lengthOfArrayLike$u,doesNotExceedSafeInteger$4=doesNotExceedSafeInteger$5,createProperty$b=createProperty$c,arraySpeciesCreate$6=arraySpeciesCreate$7,arrayMethodHasSpeciesSupport$a=arrayMethodHasSpeciesSupport$b,wellKnownSymbol$H=wellKnownSymbol$N,V8_VERSION$5=engineV8Version$1,IS_CONCAT_SPREADABLE$1=wellKnownSymbol$H("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT$1=V8_VERSION$5>=51||!fails$11((function(){var e=[];return e[IS_CONCAT_SPREADABLE$1]=!1,e.concat()[0]!==e})),isConcatSpreadable$1=function(e){if(!isObject$u(e))return!1;var t=e[IS_CONCAT_SPREADABLE$1];return void 0!==t?!!t:isArray$g(e)},FORCED$g=!IS_CONCAT_SPREADABLE_SUPPORT$1||!arrayMethodHasSpeciesSupport$a("concat");$$1M({target:"Array",proto:!0,arity:1,forced:FORCED$g},{concat:function(e){var t,r,n,o,i,a=toObject$r(this),s=arraySpeciesCreate$6(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable$1(i=-1===t?a:arguments[t]))for(o=lengthOfArrayLike$t(i),doesNotExceedSafeInteger$4(c+o),r=0;r<o;r++,c++)r in i&&createProperty$b(s,c,i[r]);else doesNotExceedSafeInteger$4(c+1),createProperty$b(s,c++,i);return s.length=c,s}});var classof$p=classof$r,$String$7=String,toString$o=function(e){if("Symbol"===classof$p(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$7(e)},objectDefineProperties$1={},toIntegerOrInfinity$f=toIntegerOrInfinity$h,max$8=Math.max,min$7=Math.min,toAbsoluteIndex$d=function(e,t){var r=toIntegerOrInfinity$f(e);return r<0?max$8(r+t,0):min$7(r,t)},toIndexedObject$l=toIndexedObject$n,toAbsoluteIndex$c=toAbsoluteIndex$d,lengthOfArrayLike$s=lengthOfArrayLike$u,createMethod$c=function(e){return function(t,r,n){var o,i=toIndexedObject$l(t),a=lengthOfArrayLike$s(i),s=toAbsoluteIndex$c(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},arrayIncludes$1={includes:createMethod$c(!0),indexOf:createMethod$c(!1)},hiddenKeys$b={},uncurryThis$12=functionUncurryThis$1,hasOwn$y=hasOwnProperty_1$1,toIndexedObject$k=toIndexedObject$n,indexOf$9=arrayIncludes$1.indexOf,hiddenKeys$a=hiddenKeys$b,push$k=uncurryThis$12([].push),objectKeysInternal$1=function(e,t){var r,n=toIndexedObject$k(e),o=0,i=[];for(r in n)!hasOwn$y(hiddenKeys$a,r)&&hasOwn$y(n,r)&&push$k(i,r);for(;t.length>o;)hasOwn$y(n,r=t[o++])&&(~indexOf$9(i,r)||push$k(i,r));return i},enumBugKeys$7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$3=objectKeysInternal$1,enumBugKeys$6=enumBugKeys$7,objectKeys$8=Object.keys||function(e){return internalObjectKeys$3(e,enumBugKeys$6)},DESCRIPTORS$B=descriptors$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,definePropertyModule$9=objectDefineProperty$1,anObject$x=anObject$z,toIndexedObject$j=toIndexedObject$n,objectKeys$7=objectKeys$8;objectDefineProperties$1.f=DESCRIPTORS$B&&!V8_PROTOTYPE_DEFINE_BUG$2?Object.defineProperties:function(e,t){anObject$x(e);for(var r,n=toIndexedObject$j(t),o=objectKeys$7(t),i=o.length,a=0;i>a;)definePropertyModule$9.f(e,r=o[a++],n[r]);return e};var activeXDocument$1,getBuiltIn$o=getBuiltIn$r,html$5=getBuiltIn$o("document","documentElement"),shared$a=sharedExports$1,uid$6=uid$8,keys$9=shared$a("keys"),sharedKey$8=function(e){return keys$9[e]||(keys$9[e]=uid$6(e))},anObject$w=anObject$z,definePropertiesModule$2=objectDefineProperties$1,enumBugKeys$5=enumBugKeys$7,hiddenKeys$9=hiddenKeys$b,html$4=html$5,documentCreateElement$3=documentCreateElement$4,sharedKey$7=sharedKey$8,GT$1=">",LT$1="<",PROTOTYPE$3="prototype",SCRIPT$1="script",IE_PROTO$3=sharedKey$7("IE_PROTO"),EmptyConstructor$1=function(){},scriptTag$1=function(e){return LT$1+SCRIPT$1+GT$1+e+LT$1+"/"+SCRIPT$1+GT$1},NullProtoObjectViaActiveX$1=function(e){e.write(scriptTag$1("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame$1=function(){var e,t=documentCreateElement$3("iframe"),r="java"+SCRIPT$1+":";return t.style.display="none",html$4.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag$1("document.F=Object")),e.close(),e.F},NullProtoObject$1=function(){try{activeXDocument$1=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject$1="undefined"!=typeof document?document.domain&&activeXDocument$1?NullProtoObjectViaActiveX$1(activeXDocument$1):NullProtoObjectViaIFrame$1():NullProtoObjectViaActiveX$1(activeXDocument$1);for(var e=enumBugKeys$5.length;e--;)delete NullProtoObject$1[PROTOTYPE$3][enumBugKeys$5[e]];return NullProtoObject$1()};hiddenKeys$9[IE_PROTO$3]=!0;var objectCreate$1=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor$1[PROTOTYPE$3]=anObject$w(e),r=new EmptyConstructor$1,EmptyConstructor$1[PROTOTYPE$3]=null,r[IE_PROTO$3]=e):r=NullProtoObject$1(),void 0===t?r:definePropertiesModule$2.f(r,t)},objectGetOwnPropertyNames$1={},internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$4=enumBugKeys$7,hiddenKeys$8=enumBugKeys$4.concat("length","prototype");objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$2(e,hiddenKeys$8)};var objectGetOwnPropertyNamesExternal$1={},toAbsoluteIndex$b=toAbsoluteIndex$d,lengthOfArrayLike$r=lengthOfArrayLike$u,createProperty$a=createProperty$c,$Array$7=Array,max$7=Math.max,arraySliceSimple$1=function(e,t,r){for(var n=lengthOfArrayLike$r(e),o=toAbsoluteIndex$b(t,n),i=toAbsoluteIndex$b(void 0===r?n:r,n),a=$Array$7(max$7(i-o,0)),s=0;o<i;o++,s++)createProperty$a(a,s,e[o]);return a.length=s,a},classof$o=classofRaw$5,toIndexedObject$i=toIndexedObject$n,$getOwnPropertyNames$2=objectGetOwnPropertyNames$1.f,arraySlice$h=arraySliceSimple$1,windowNames$1="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames$1=function(e){try{return $getOwnPropertyNames$2(e)}catch(e){return arraySlice$h(windowNames$1)}};objectGetOwnPropertyNamesExternal$1.f=function(e){return windowNames$1&&"Window"==classof$o(e)?getWindowNames$1(e):$getOwnPropertyNames$2(toIndexedObject$i(e))};var objectGetOwnPropertySymbols$1={};objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$h=createNonEnumerableProperty$j,defineBuiltIn$n=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$h(e,t,r),e},defineProperty$o=objectDefineProperty$1,defineBuiltInAccessor$8=function(e,t,r){return defineProperty$o.f(e,t,r)},wellKnownSymbolWrapped={},wellKnownSymbol$G=wellKnownSymbol$N;wellKnownSymbolWrapped.f=wellKnownSymbol$G;var set$a,get$b,has$3,path$t=path$w,hasOwn$x=hasOwnProperty_1$1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$n=objectDefineProperty$1.f,wellKnownSymbolDefine=function(e){var t=path$t.Symbol||(path$t.Symbol={});hasOwn$x(t,e)||defineProperty$n(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$M=functionCall$1,getBuiltIn$n=getBuiltIn$r,wellKnownSymbol$F=wellKnownSymbol$N,defineBuiltIn$m=defineBuiltIn$n,symbolDefineToPrimitive=function(){var e=getBuiltIn$n("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$F("toPrimitive");t&&!t[n]&&defineBuiltIn$m(t,n,(function(e){return call$M(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$4=toStringTagSupport$1,classof$n=classof$r,objectToString$1=TO_STRING_TAG_SUPPORT$4?{}.toString:function(){return"[object "+classof$n(this)+"]"},TO_STRING_TAG_SUPPORT$3=toStringTagSupport$1,defineProperty$m=objectDefineProperty$1.f,createNonEnumerableProperty$g=createNonEnumerableProperty$j,hasOwn$w=hasOwnProperty_1$1,toString$n=objectToString$1,wellKnownSymbol$E=wellKnownSymbol$N,TO_STRING_TAG$7=wellKnownSymbol$E("toStringTag"),setToStringTag$g=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$w(o,TO_STRING_TAG$7)||defineProperty$m(o,TO_STRING_TAG$7,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT$3&&createNonEnumerableProperty$g(o,"toString",toString$n)}},global$W=global$13,isCallable$H=isCallable$S,WeakMap$3=global$W.WeakMap,weakMapBasicDetection$1=isCallable$H(WeakMap$3)&&/native code/.test(String(WeakMap$3)),NATIVE_WEAK_MAP$1=weakMapBasicDetection$1,global$V=global$13,isObject$t=isObject$A,createNonEnumerableProperty$f=createNonEnumerableProperty$j,hasOwn$v=hasOwnProperty_1$1,shared$9=sharedStore$1,sharedKey$6=sharedKey$8,hiddenKeys$7=hiddenKeys$b,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$b=global$V.TypeError,WeakMap$2=global$V.WeakMap,enforce$1=function(e){return has$3(e)?get$b(e):set$a(e,{})},getterFor$1=function(e){return function(t){var r;if(!isObject$t(t)||(r=get$b(t)).type!==e)throw TypeError$b("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP$1||shared$9.state){var store$4=shared$9.state||(shared$9.state=new WeakMap$2);store$4.get=store$4.get,store$4.has=store$4.has,store$4.set=store$4.set,set$a=function(e,t){if(store$4.has(e))throw TypeError$b(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,store$4.set(e,t),t},get$b=function(e){return store$4.get(e)||{}},has$3=function(e){return store$4.has(e)}}else{var STATE$1=sharedKey$6("state");hiddenKeys$7[STATE$1]=!0,set$a=function(e,t){if(hasOwn$v(e,STATE$1))throw TypeError$b(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,createNonEnumerableProperty$f(e,STATE$1,t),t},get$b=function(e){return hasOwn$v(e,STATE$1)?e[STATE$1]:{}},has$3=function(e){return hasOwn$v(e,STATE$1)}}var internalState$1={set:set$a,get:get$b,has:has$3,enforce:enforce$1,getterFor:getterFor$1},bind$A=functionBindContext$1,uncurryThis$11=functionUncurryThis$1,IndexedObject$8=indexedObject$1,toObject$q=toObject$t,lengthOfArrayLike$q=lengthOfArrayLike$u,arraySpeciesCreate$5=arraySpeciesCreate$7,push$j=uncurryThis$11([].push),createMethod$b=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,$){for(var d,A,p=toObject$q(c),f=IndexedObject$8(p),h=bind$A(l,u),y=lengthOfArrayLike$q(f),_=0,g=$||arraySpeciesCreate$5,m=t?g(c,y):r||a?g(c,0):void 0;y>_;_++)if((s||_ in f)&&(A=h(d=f[_],_,p),e))if(t)m[_]=A;else if(A)switch(e){case 3:return!0;case 5:return d;case 6:return _;case 2:push$j(m,d)}else switch(e){case 4:return!1;case 7:push$j(m,d)}return i?-1:n||o?o:m}},arrayIteration$1={forEach:createMethod$b(0),map:createMethod$b(1),filter:createMethod$b(2),some:createMethod$b(3),every:createMethod$b(4),find:createMethod$b(5),findIndex:createMethod$b(6),filterReject:createMethod$b(7)},$$1L=_export$1,global$U=global$13,call$L=functionCall$1,uncurryThis$10=functionUncurryThis$1,DESCRIPTORS$A=descriptors$1,NATIVE_SYMBOL$5=symbolConstructorDetection$1,fails$10=fails$1b,hasOwn$u=hasOwnProperty_1$1,isPrototypeOf$r=objectIsPrototypeOf$1,anObject$v=anObject$z,toIndexedObject$h=toIndexedObject$n,toPropertyKey$5=toPropertyKey$9,$toString$5=toString$o,createPropertyDescriptor$b=createPropertyDescriptor$f,nativeObjectCreate=objectCreate$1,objectKeys$6=objectKeys$8,getOwnPropertyNamesModule$3=objectGetOwnPropertyNames$1,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal$1,getOwnPropertySymbolsModule$5=objectGetOwnPropertySymbols$1,getOwnPropertyDescriptorModule$5=objectGetOwnPropertyDescriptor$1,definePropertyModule$8=objectDefineProperty$1,definePropertiesModule$1=objectDefineProperties$1,propertyIsEnumerableModule$3=objectPropertyIsEnumerable$1,defineBuiltIn$l=defineBuiltIn$n,defineBuiltInAccessor$7=defineBuiltInAccessor$8,shared$8=sharedExports$1,sharedKey$5=sharedKey$8,hiddenKeys$6=hiddenKeys$b,uid$5=uid$8,wellKnownSymbol$D=wellKnownSymbol$N,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$f=setToStringTag$g,InternalStateModule$g=internalState$1,$forEach$3=arrayIteration$1.forEach,HIDDEN=sharedKey$5("hidden"),SYMBOL="Symbol",PROTOTYPE$2="prototype",setInternalState$e=InternalStateModule$g.set,getInternalState$9=InternalStateModule$g.getterFor(SYMBOL),ObjectPrototype$5=Object[PROTOTYPE$2],$Symbol=global$U.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE$2],TypeError$a=global$U.TypeError,QObject=global$U.QObject,nativeGetOwnPropertyDescriptor$2=getOwnPropertyDescriptorModule$5.f,nativeDefineProperty$1=definePropertyModule$8.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$3.f,push$i=uncurryThis$10([].push),AllSymbols=shared$8("symbols"),ObjectPrototypeSymbols=shared$8("op-symbols"),WellKnownSymbolsStore$2=shared$8("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE$2]||!QObject[PROTOTYPE$2].findChild,setSymbolDescriptor=DESCRIPTORS$A&&fails$10((function(){return 7!=nativeObjectCreate(nativeDefineProperty$1({},"a",{get:function(){return nativeDefineProperty$1(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=nativeGetOwnPropertyDescriptor$2(ObjectPrototype$5,t);n&&delete ObjectPrototype$5[t],nativeDefineProperty$1(e,t,r),n&&e!==ObjectPrototype$5&&nativeDefineProperty$1(ObjectPrototype$5,t,n)}:nativeDefineProperty$1,wrap=function(e,t){var r=AllSymbols[e]=nativeObjectCreate(SymbolPrototype);return setInternalState$e(r,{type:SYMBOL,tag:e,description:t}),DESCRIPTORS$A||(r.description=t),r},$defineProperty$1=function(e,t,r){e===ObjectPrototype$5&&$defineProperty$1(ObjectPrototypeSymbols,t,r),anObject$v(e);var n=toPropertyKey$5(t);return anObject$v(r),hasOwn$u(AllSymbols,n)?(r.enumerable?(hasOwn$u(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$b(0,!1)})):(hasOwn$u(e,HIDDEN)||nativeDefineProperty$1(e,HIDDEN,createPropertyDescriptor$b(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty$1(e,n,r)},$defineProperties=function(e,t){anObject$v(e);var r=toIndexedObject$h(t),n=objectKeys$6(r).concat($getOwnPropertySymbols(r));return $forEach$3(n,(function(t){DESCRIPTORS$A&&!call$L($propertyIsEnumerable$3,r,t)||$defineProperty$1(e,t,r[t])})),e},$create=function(e,t){return void 0===t?nativeObjectCreate(e):$defineProperties(nativeObjectCreate(e),t)},$propertyIsEnumerable$3=function(e){var t=toPropertyKey$5(e),r=call$L(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$5&&hasOwn$u(AllSymbols,t)&&!hasOwn$u(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$u(this,t)||!hasOwn$u(AllSymbols,t)||hasOwn$u(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor$2=function(e,t){var r=toIndexedObject$h(e),n=toPropertyKey$5(t);if(r!==ObjectPrototype$5||!hasOwn$u(AllSymbols,n)||hasOwn$u(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$2(r,n);return!o||!hasOwn$u(AllSymbols,n)||hasOwn$u(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames$1=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$h(e)),r=[];return $forEach$3(t,(function(e){hasOwn$u(AllSymbols,e)||hasOwn$u(hiddenKeys$6,e)||push$i(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$5,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$h(e)),n=[];return $forEach$3(r,(function(e){!hasOwn$u(AllSymbols,e)||t&&!hasOwn$u(ObjectPrototype$5,e)||push$i(n,AllSymbols[e])})),n};NATIVE_SYMBOL$5||(defineBuiltIn$l(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$r(SymbolPrototype,this))throw TypeError$a("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString$5(arguments[0]):void 0,t=uid$5(e),r=function(e){this===ObjectPrototype$5&&call$L(r,ObjectPrototypeSymbols,e),hasOwn$u(this,HIDDEN)&&hasOwn$u(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$b(1,e))};return DESCRIPTORS$A&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$5,t,{configurable:!0,set:r}),wrap(t,e)})[PROTOTYPE$2],"toString",(function(){return getInternalState$9(this).tag})),defineBuiltIn$l($Symbol,"withoutSetter",(function(e){return wrap(uid$5(e),e)})),propertyIsEnumerableModule$3.f=$propertyIsEnumerable$3,definePropertyModule$8.f=$defineProperty$1,definePropertiesModule$1.f=$defineProperties,getOwnPropertyDescriptorModule$5.f=$getOwnPropertyDescriptor$2,getOwnPropertyNamesModule$3.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames$1,getOwnPropertySymbolsModule$5.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(e){return wrap(wellKnownSymbol$D(e),e)},DESCRIPTORS$A&&defineBuiltInAccessor$7(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$9(this).description}})),$$1L({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$5,sham:!NATIVE_SYMBOL$5},{Symbol:$Symbol}),$forEach$3(objectKeys$6(WellKnownSymbolsStore$2),(function(e){defineWellKnownSymbol$l(e)})),$$1L({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$5},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$1L({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$5,sham:!DESCRIPTORS$A},{create:$create,defineProperty:$defineProperty$1,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor$2}),$$1L({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$5},{getOwnPropertyNames:$getOwnPropertyNames$1}),defineSymbolToPrimitive$1(),setToStringTag$f($Symbol,SYMBOL),hiddenKeys$6[HIDDEN]=!0;var NATIVE_SYMBOL$4=symbolConstructorDetection$1,symbolRegistryDetection=NATIVE_SYMBOL$4&&!!Symbol.for&&!!Symbol.keyFor,$$1K=_export$1,getBuiltIn$m=getBuiltIn$r,hasOwn$t=hasOwnProperty_1$1,toString$m=toString$o,shared$7=sharedExports$1,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$7("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$7("symbol-to-string-registry");$$1K({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$m(e);if(hasOwn$t(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$m("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$1J=_export$1,hasOwn$s=hasOwnProperty_1$1,isSymbol$7=isSymbol$a,tryToString$c=tryToString$e,shared$6=sharedExports$1,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$6("symbol-to-string-registry");$$1J({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$7(e))throw TypeError(tryToString$c(e)+" is not a symbol");if(hasOwn$s(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$$=functionUncurryThis$1,arraySlice$g=uncurryThis$$([].slice),uncurryThis$_=functionUncurryThis$1,isArray$f=isArray$i,isCallable$G=isCallable$S,classof$m=classofRaw$5,toString$l=toString$o,push$h=uncurryThis$_([].push),getJsonReplacerFunction=function(e){if(isCallable$G(e))return e;if(isArray$f(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?push$h(r,o):"number"!=typeof o&&"Number"!=classof$m(o)&&"String"!=classof$m(o)||push$h(r,toString$l(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(isArray$f(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},$$1I=_export$1,getBuiltIn$l=getBuiltIn$r,apply$9=functionApply$1,call$K=functionCall$1,uncurryThis$Z=functionUncurryThis$1,fails$$=fails$1b,isCallable$F=isCallable$S,isSymbol$6=isSymbol$a,arraySlice$f=arraySlice$g,getReplacerFunction=getJsonReplacerFunction,NATIVE_SYMBOL$3=symbolConstructorDetection$1,$String$6=String,$stringify=getBuiltIn$l("JSON","stringify"),exec$7=uncurryThis$Z(/./.exec),charAt$d=uncurryThis$Z("".charAt),charCodeAt$5=uncurryThis$Z("".charCodeAt),replace$b=uncurryThis$Z("".replace),numberToString$2=uncurryThis$Z(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$3||fails$$((function(){var e=getBuiltIn$l("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$$((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$f(arguments),n=getReplacerFunction(t);if(isCallable$F(n)||void 0!==e&&!isSymbol$6(e))return r[1]=function(e,t){if(isCallable$F(n)&&(t=call$K(n,this,$String$6(e),t)),!isSymbol$6(t))return t},apply$9($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$d(r,t-1),o=charAt$d(r,t+1);return exec$7(low,e)&&!exec$7(hi,o)||exec$7(hi,e)&&!exec$7(low,n)?"\\u"+numberToString$2(charCodeAt$5(e,0),16):e};$stringify&&$$1I({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$f(arguments),o=apply$9(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$b(o,tester,fixIllFormed):o}});var $$1H=_export$1,NATIVE_SYMBOL$2=symbolConstructorDetection$1,fails$_=fails$1b,getOwnPropertySymbolsModule$4=objectGetOwnPropertySymbols$1,toObject$p=toObject$t,FORCED$f=!NATIVE_SYMBOL$2||fails$_((function(){getOwnPropertySymbolsModule$4.f(1)}));$$1H({target:"Object",stat:!0,forced:FORCED$f},{getOwnPropertySymbols:function(e){var t=getOwnPropertySymbolsModule$4.f;return t?t(toObject$p(e)):[]}});var defineWellKnownSymbol$k=wellKnownSymbolDefine;defineWellKnownSymbol$k("asyncIterator");var defineWellKnownSymbol$j=wellKnownSymbolDefine;defineWellKnownSymbol$j("hasInstance");var defineWellKnownSymbol$i=wellKnownSymbolDefine;defineWellKnownSymbol$i("isConcatSpreadable");var defineWellKnownSymbol$h=wellKnownSymbolDefine;defineWellKnownSymbol$h("iterator");var defineWellKnownSymbol$g=wellKnownSymbolDefine;defineWellKnownSymbol$g("match");var defineWellKnownSymbol$f=wellKnownSymbolDefine;defineWellKnownSymbol$f("matchAll");var defineWellKnownSymbol$e=wellKnownSymbolDefine;defineWellKnownSymbol$e("replace");var defineWellKnownSymbol$d=wellKnownSymbolDefine;defineWellKnownSymbol$d("search");var defineWellKnownSymbol$c=wellKnownSymbolDefine;defineWellKnownSymbol$c("species");var defineWellKnownSymbol$b=wellKnownSymbolDefine;defineWellKnownSymbol$b("split");var defineWellKnownSymbol$a=wellKnownSymbolDefine,defineSymbolToPrimitive=symbolDefineToPrimitive;defineWellKnownSymbol$a("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$k=getBuiltIn$r,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$e=setToStringTag$g;defineWellKnownSymbol$9("toStringTag"),setToStringTag$e(getBuiltIn$k("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$T=global$13,setToStringTag$d=setToStringTag$g;setToStringTag$d(global$T.JSON,"JSON",!0);var IteratorPrototype$4,PrototypeOfArrayIteratorPrototype$1,arrayIterator$1,path$s=path$w,symbol$5=path$s.Symbol,iterators$1={},DESCRIPTORS$z=descriptors$1,hasOwn$r=hasOwnProperty_1$1,FunctionPrototype$5=Function.prototype,getDescriptor$1=DESCRIPTORS$z&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$r(FunctionPrototype$5,"name"),PROPER$1=EXISTS$2&&"something"===function(){}.name,CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$z||DESCRIPTORS$z&&getDescriptor$1(FunctionPrototype$5,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},fails$Z=fails$1b,correctPrototypeGetter$1=!fails$Z((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$q=hasOwnProperty_1$1,isCallable$E=isCallable$S,toObject$o=toObject$t,sharedKey$4=sharedKey$8,CORRECT_PROTOTYPE_GETTER$2=correctPrototypeGetter$1,IE_PROTO$2=sharedKey$4("IE_PROTO"),$Object$5=Object,ObjectPrototype$4=$Object$5.prototype,objectGetPrototypeOf$1=CORRECT_PROTOTYPE_GETTER$2?$Object$5.getPrototypeOf:function(e){var t=toObject$o(e);if(hasOwn$q(t,IE_PROTO$2))return t[IE_PROTO$2];var r=t.constructor;return isCallable$E(r)&&t instanceof r?r.prototype:t instanceof $Object$5?ObjectPrototype$4:null},fails$Y=fails$1b,isCallable$D=isCallable$S,isObject$s=isObject$A,create$h=objectCreate$1,getPrototypeOf$d=objectGetPrototypeOf$1,defineBuiltIn$k=defineBuiltIn$n,wellKnownSymbol$C=wellKnownSymbol$N,ITERATOR$i=wellKnownSymbol$C("iterator"),BUGGY_SAFARI_ITERATORS$3=!1;[].keys&&("next"in(arrayIterator$1=[].keys())?(PrototypeOfArrayIteratorPrototype$1=getPrototypeOf$d(getPrototypeOf$d(arrayIterator$1)))!==Object.prototype&&(IteratorPrototype$4=PrototypeOfArrayIteratorPrototype$1):BUGGY_SAFARI_ITERATORS$3=!0);var NEW_ITERATOR_PROTOTYPE$1=!isObject$s(IteratorPrototype$4)||fails$Y((function(){var e={};return IteratorPrototype$4[ITERATOR$i].call(e)!==e}));isCallable$D((IteratorPrototype$4=NEW_ITERATOR_PROTOTYPE$1?{}:create$h(IteratorPrototype$4))[ITERATOR$i])||defineBuiltIn$k(IteratorPrototype$4,ITERATOR$i,(function(){return this}));var iteratorsCore$1={IteratorPrototype:IteratorPrototype$4,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$3},IteratorPrototype$3=iteratorsCore$1.IteratorPrototype,create$g=objectCreate$1,createPropertyDescriptor$a=createPropertyDescriptor$f,setToStringTag$c=setToStringTag$g,Iterators$a=iterators$1,returnThis$3=function(){return this},iteratorCreateConstructor$1=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$g(IteratorPrototype$3,{next:createPropertyDescriptor$a(+!n,r)}),setToStringTag$c(e,o,!1,!0),Iterators$a[o]=returnThis$3,e},uncurryThis$Y=functionUncurryThis$1,aCallable$r=aCallable$u,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$Y(aCallable$r(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$C=isCallable$S,$String$5=String,$TypeError$v=TypeError,aPossiblePrototype$3=function(e){if("object"==typeof e||isCallable$C(e))return e;throw $TypeError$v("Can't set "+$String$5(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$u=anObject$z,aPossiblePrototype$2=aPossiblePrototype$3,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThisAccessor(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$u(r),aPossiblePrototype$2(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$1G=_export$1,call$J=functionCall$1,FunctionName$2=functionName$1,createIteratorConstructor$3=iteratorCreateConstructor$1,getPrototypeOf$c=objectGetPrototypeOf$1,setToStringTag$b=setToStringTag$g,defineBuiltIn$j=defineBuiltIn$n,wellKnownSymbol$B=wellKnownSymbol$N,Iterators$9=iterators$1,IteratorsCore$1=iteratorsCore$1,PROPER_FUNCTION_NAME$3=FunctionName$2.PROPER;FunctionName$2.CONFIGURABLE,IteratorsCore$1.IteratorPrototype;var BUGGY_SAFARI_ITERATORS$2=IteratorsCore$1.BUGGY_SAFARI_ITERATORS,ITERATOR$h=wellKnownSymbol$B("iterator"),KEYS$1="keys",VALUES$1="values",ENTRIES$1="entries",returnThis$2=function(){return this},iteratorDefine$1=function(e,t,r,n,o,i,a){createIteratorConstructor$3(r,t,n);var s,c,l,u=function(e){if(e===o&&f)return f;if(!BUGGY_SAFARI_ITERATORS$2&&e in A)return A[e];switch(e){case KEYS$1:case VALUES$1:case ENTRIES$1:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",d=!1,A=e.prototype,p=A[ITERATOR$h]||A["@@iterator"]||o&&A[o],f=!BUGGY_SAFARI_ITERATORS$2&&p||u(o),h="Array"==t&&A.entries||p;if(h&&(s=getPrototypeOf$c(h.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$b(s,$,!0,!0),Iterators$9[$]=returnThis$2),PROPER_FUNCTION_NAME$3&&o==VALUES$1&&p&&p.name!==VALUES$1&&(d=!0,f=function(){return call$J(p,this)}),o)if(c={values:u(VALUES$1),keys:i?f:u(KEYS$1),entries:u(ENTRIES$1)},a)for(l in c)(BUGGY_SAFARI_ITERATORS$2||d||!(l in A))&&defineBuiltIn$j(A,l,c[l]);else $$1G({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS$2||d},c);return a&&A[ITERATOR$h]!==f&&defineBuiltIn$j(A,ITERATOR$h,f,{name:o}),Iterators$9[t]=f,c},createIterResultObject$6=function(e,t){return{value:e,done:t}},toIndexedObject$g=toIndexedObject$n,Iterators$8=iterators$1,InternalStateModule$f=internalState$1;objectDefineProperty$1.f;var defineIterator$4=iteratorDefine$1,createIterResultObject$5=createIterResultObject$6,ARRAY_ITERATOR$1="Array Iterator",setInternalState$d=InternalStateModule$f.set,getInternalState$8=InternalStateModule$f.getterFor(ARRAY_ITERATOR$1);defineIterator$4(Array,"Array",(function(e,t){setInternalState$d(this,{type:ARRAY_ITERATOR$1,target:toIndexedObject$g(e),index:0,kind:t})}),(function(){var e=getInternalState$8(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$5(void 0,!0)):createIterResultObject$5("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Iterators$8.Arguments=Iterators$8.Array;var domIterables$1={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},DOMIterables$4=domIterables$1,global$S=global$13,classof$l=classof$r,createNonEnumerableProperty$e=createNonEnumerableProperty$j,Iterators$7=iterators$1,wellKnownSymbol$A=wellKnownSymbol$N,TO_STRING_TAG$6=wellKnownSymbol$A("toStringTag");for(var COLLECTION_NAME$2 in DOMIterables$4){var Collection=global$S[COLLECTION_NAME$2],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$l(CollectionPrototype)!==TO_STRING_TAG$6&&createNonEnumerableProperty$e(CollectionPrototype,TO_STRING_TAG$6,COLLECTION_NAME$2),Iterators$7[COLLECTION_NAME$2]=Iterators$7.Array}var parent$27=symbol$5,symbol$4=parent$27,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("dispose");var parent$26=symbol$4,symbol$3=parent$26,defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("asyncDispose");var $$1F=_export$1,getBuiltIn$j=getBuiltIn$r,uncurryThis$X=functionUncurryThis$1,Symbol$6=getBuiltIn$j("Symbol"),keyFor2=Symbol$6.keyFor,thisSymbolValue$1=uncurryThis$X(Symbol$6.prototype.valueOf);$$1F({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==keyFor2(thisSymbolValue$1(e))}catch(e){return!1}}});for(var $$1E=_export$1,shared$5=sharedExports$1,getBuiltIn$i=getBuiltIn$r,uncurryThis$W=functionUncurryThis$1,isSymbol$5=isSymbol$a,wellKnownSymbol$z=wellKnownSymbol$N,Symbol$5=getBuiltIn$i("Symbol"),$isWellKnown=Symbol$5.isWellKnown,getOwnPropertyNames$b=getBuiltIn$i("Object","getOwnPropertyNames"),thisSymbolValue=uncurryThis$W(Symbol$5.prototype.valueOf),WellKnownSymbolsStore$1=shared$5("wks"),i=0,symbolKeys=getOwnPropertyNames$b(Symbol$5),symbolKeysLength=symbolKeys.length;i<symbolKeysLength;i++)try{var symbolKey=symbolKeys[i];isSymbol$5(Symbol$5[symbolKey])&&wellKnownSymbol$z(symbolKey)}catch(e){}$$1E({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if($isWellKnown&&$isWellKnown(e))return!0;try{for(var t=thisSymbolValue(e),r=0,n=getOwnPropertyNames$b(WellKnownSymbolsStore$1),o=n.length;r<o;r++)if(WellKnownSymbolsStore$1[n[r]]==t)return!0}catch(e){}return!1}});var defineWellKnownSymbol$5=wellKnownSymbolDefine;defineWellKnownSymbol$5("matcher");var defineWellKnownSymbol$4=wellKnownSymbolDefine;defineWellKnownSymbol$4("metadataKey");var defineWellKnownSymbol$3=wellKnownSymbolDefine;defineWellKnownSymbol$3("observable");var defineWellKnownSymbol$2=wellKnownSymbolDefine;defineWellKnownSymbol$2("metadata");var defineWellKnownSymbol$1=wellKnownSymbolDefine;defineWellKnownSymbol$1("patternMatch");var defineWellKnownSymbol=wellKnownSymbolDefine;defineWellKnownSymbol("replaceAll");var parent$25=symbol$3,symbol$2=parent$25,symbol$1=symbol$2,_Symbol$1=getDefaultExportFromCjs(symbol$1),uncurryThis$V=functionUncurryThis$1,toIntegerOrInfinity$e=toIntegerOrInfinity$h,toString$k=toString$o,requireObjectCoercible$8=requireObjectCoercible$b,charAt$c=uncurryThis$V("".charAt),charCodeAt$4=uncurryThis$V("".charCodeAt),stringSlice$a=uncurryThis$V("".slice),createMethod$a=function(e){return function(t,r){var n,o,i=toString$k(requireObjectCoercible$8(t)),a=toIntegerOrInfinity$e(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=charCodeAt$4(i,a))<55296||n>56319||a+1===s||(o=charCodeAt$4(i,a+1))<56320||o>57343?e?charAt$c(i,a):n:e?stringSlice$a(i,a,a+2):o-56320+(n-55296<<10)+65536}},stringMultibyte$1={codeAt:createMethod$a(!1),charAt:createMethod$a(!0)},charAt$b=stringMultibyte$1.charAt,toString$j=toString$o,InternalStateModule$e=internalState$1,defineIterator$3=iteratorDefine$1,createIterResultObject$4=createIterResultObject$6,STRING_ITERATOR$1="String Iterator",setInternalState$c=InternalStateModule$e.set,getInternalState$7=InternalStateModule$e.getterFor(STRING_ITERATOR$1);defineIterator$3(String,"String",(function(e){setInternalState$c(this,{type:STRING_ITERATOR$1,string:toString$j(e),index:0})}),(function(){var e,t=getInternalState$7(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject$4(void 0,!0):(e=charAt$b(r,n),t.index+=e.length,createIterResultObject$4(e,!1))}));var WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,iterator$4=WrappedWellKnownSymbolModule.f("iterator"),parent$24=iterator$4,iterator$3=parent$24,parent$23=iterator$3,iterator$2=parent$23,parent$22=iterator$2,iterator$1=parent$22,iterator=iterator$1,_Symbol$iterator=getDefaultExportFromCjs(iterator);function _typeof(e){return(_typeof="function"==typeof _Symbol$1&&"symbol"==typeof _Symbol$iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof _Symbol$1&&e.constructor===_Symbol$1&&e!==_Symbol$1.prototype?"symbol":typeof e})(e)}var $$1D=_export$1,toObject$n=toObject$t,nativeKeys$1=objectKeys$8,fails$X=fails$1b,FAILS_ON_PRIMITIVES$5=fails$X((function(){nativeKeys$1(1)}));$$1D({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$5},{keys:function(e){return nativeKeys$1(toObject$n(e))}});var path$r=path$w,keys$8=path$r.Object.keys,parent$21=keys$8,keys$7=parent$21,parent$20=keys$7,keys$6=parent$20,parent$1$=keys$6,keys$5=parent$1$,keys$4=keys$5,keys$3=keys$4,_Object$keys=getDefaultExportFromCjs(keys$3),path$q=path$w,getOwnPropertySymbols$5=path$q.Object.getOwnPropertySymbols,parent$1_=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$1_,parent$1Z=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$1Z,parent$1Y=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$1Y,getOwnPropertySymbols$1=getOwnPropertySymbols$2,getOwnPropertySymbols2=getOwnPropertySymbols$1,_Object$getOwnPropertySymbols=getDefaultExportFromCjs(getOwnPropertySymbols2),$$1C=_export$1,$filter$2=arrayIteration$1.filter,arrayMethodHasSpeciesSupport$9=arrayMethodHasSpeciesSupport$b,HAS_SPECIES_SUPPORT$7=arrayMethodHasSpeciesSupport$9("filter");$$1C({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$7},{filter:function(e){return $filter$2(this,e,arguments.length>1?arguments[1]:void 0)}});var path$p=path$w,entryVirtual$f=function(e){return path$p[e+"Prototype"]},entryVirtual$e=entryVirtual$f,filter$6=entryVirtual$e("Array").filter,isPrototypeOf$q=objectIsPrototypeOf$1,method$g=filter$6,ArrayPrototype$g=Array.prototype,filter$5=function(e){var t=e.filter;return e===ArrayPrototype$g||isPrototypeOf$q(ArrayPrototype$g,e)&&t===ArrayPrototype$g.filter?method$g:t},parent$1X=filter$5,filter$4=parent$1X,parent$1W=filter$4,filter$3=parent$1W,parent$1V=filter$3,filter$2=parent$1V,filter$1=filter$2,filter2=filter$1,_filterInstanceProperty=getDefaultExportFromCjs(filter2),getOwnPropertyDescriptor$f={exports:{}},$$1B=_export$1,fails$W=fails$1b,toIndexedObject$f=toIndexedObject$n,nativeGetOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor$1.f,DESCRIPTORS$y=descriptors$1,FORCED$e=!DESCRIPTORS$y||fails$W((function(){nativeGetOwnPropertyDescriptor$1(1)}));$$1B({target:"Object",stat:!0,forced:FORCED$e,sham:!DESCRIPTORS$y},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor$1(toIndexedObject$f(e),t)}});var path$o=path$w,Object$5=path$o.Object,getOwnPropertyDescriptor$e=getOwnPropertyDescriptor$f.exports=function(e,t){return Object$5.getOwnPropertyDescriptor(e,t)};Object$5.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$e.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$f.exports,parent$1U=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor$d=parent$1U,parent$1T=getOwnPropertyDescriptor$d,getOwnPropertyDescriptor$c=parent$1T,parent$1S=getOwnPropertyDescriptor$c,getOwnPropertyDescriptor$b=parent$1S,getOwnPropertyDescriptor$a=getOwnPropertyDescriptor$b,getOwnPropertyDescriptor$9=getOwnPropertyDescriptor$a,_Object$getOwnPropertyDescriptor=getDefaultExportFromCjs(getOwnPropertyDescriptor$9),fails$V=fails$1b,arrayMethodIsStrict$9=function(e,t){var r=[][e];return!!r&&fails$V((function(){r.call(null,t||function(){return 1},1)}))},$forEach$2=arrayIteration$1.forEach,arrayMethodIsStrict$8=arrayMethodIsStrict$9,STRICT_METHOD$5=arrayMethodIsStrict$8("forEach"),arrayForEach$1=STRICT_METHOD$5?[].forEach:function(e){return $forEach$2(this,e,arguments.length>1?arguments[1]:void 0)},$$1A=_export$1,forEach$a=arrayForEach$1;$$1A({target:"Array",proto:!0,forced:[].forEach!=arrayForEach$1},{forEach:arrayForEach$1});var entryVirtual$d=entryVirtual$f,forEach$9=entryVirtual$d("Array").forEach,parent$1R=forEach$9,forEach$8=parent$1R,classof$k=classof$r,hasOwn$p=hasOwnProperty_1$1,isPrototypeOf$p=objectIsPrototypeOf$1,method$f=forEach$8,ArrayPrototype$f=Array.prototype,DOMIterables$3={DOMTokenList:!0,NodeList:!0},forEach$7=function(e){var t=e.forEach;return e===ArrayPrototype$f||isPrototypeOf$p(ArrayPrototype$f,e)&&t===ArrayPrototype$f.forEach||hasOwn$p(DOMIterables$3,classof$k(e))?method$f:t},parent$1Q=forEach$7,forEach$6=parent$1Q,parent$1P=forEach$6,forEach$5=parent$1P,forEach$4=forEach$5,forEach$3=forEach$4,_forEachInstanceProperty=getDefaultExportFromCjs(forEach$3),getBuiltIn$h=getBuiltIn$r,uncurryThis$U=functionUncurryThis$1,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols$1,anObject$t=anObject$z,concat$c=uncurryThis$U([].concat),ownKeys$5=getBuiltIn$h("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$2.f(anObject$t(e)),r=getOwnPropertySymbolsModule$3.f;return r?concat$c(t,r(e)):t},$$1z=_export$1,DESCRIPTORS$x=descriptors$1,ownKeys$4=ownKeys$5,toIndexedObject$e=toIndexedObject$n,getOwnPropertyDescriptorModule$4=objectGetOwnPropertyDescriptor$1,createProperty$9=createProperty$c;$$1z({target:"Object",stat:!0,sham:!DESCRIPTORS$x},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject$e(e),o=getOwnPropertyDescriptorModule$4.f,i=ownKeys$4(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&createProperty$9(a,t,r);return a}});var path$n=path$w,getOwnPropertyDescriptors$5=path$n.Object.getOwnPropertyDescriptors,parent$1O=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$1O,parent$1N=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$1N,parent$1M=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$1M,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,_Object$getOwnPropertyDescriptors=getDefaultExportFromCjs(getOwnPropertyDescriptors2),defineProperties$7={exports:{}},$$1y=_export$1,DESCRIPTORS$w=descriptors$1,defineProperties$6=objectDefineProperties$1.f;$$1y({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$w},{defineProperties:defineProperties$6});var path$m=path$w,Object$4=path$m.Object,defineProperties$5=defineProperties$7.exports=function(e,t){return Object$4.defineProperties(e,t)};Object$4.defineProperties.sham&&(defineProperties$5.sham=!0);var definePropertiesExports=defineProperties$7.exports,parent$1L=definePropertiesExports,defineProperties$4=parent$1L,parent$1K=defineProperties$4,defineProperties$3=parent$1K,parent$1J=defineProperties$3,defineProperties$2=parent$1J,defineProperties$1=defineProperties$2,defineProperties4=defineProperties$1,_Object$defineProperties=getDefaultExportFromCjs(defineProperties4),defineProperty$l={exports:{}},$$1x=_export$1,DESCRIPTORS$v=descriptors$1,defineProperty$k=objectDefineProperty$1.f;$$1x({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$k,sham:!DESCRIPTORS$v},{defineProperty:defineProperty$k});var path$l=path$w,Object$3=path$l.Object,defineProperty$j=defineProperty$l.exports=function(e,t,r){return Object$3.defineProperty(e,t,r)};Object$3.defineProperty.sham&&(defineProperty$j.sham=!0);var definePropertyExports=defineProperty$l.exports,parent$1I=definePropertyExports,defineProperty$i=parent$1I,parent$1H=defineProperty$i,defineProperty$h=parent$1H,parent$1G=defineProperty$h,defineProperty$g=parent$1G,defineProperty$f=defineProperty$g,defineProperty$e=defineProperty$f,_Object$defineProperty=getDefaultExportFromCjs(defineProperty$e),symbol=symbol$1,_Symbol=getDefaultExportFromCjs(symbol),$$1w=_export$1,DESCRIPTORS$u=descriptors$1,create$f=objectCreate$1;$$1w({target:"Object",stat:!0,sham:!DESCRIPTORS$u},{create:create$f});var path$k=path$w,Object$2=path$k.Object,create$e=function(e,t){return Object$2.create(e,t)},parent$1F=create$e,create$d=parent$1F,parent$1E=create$d,create$c=parent$1E,parent$1D=create$c,create$b=parent$1D,create$a=create$b,create$9=create$a,_Object$create=getDefaultExportFromCjs(create$9),$$1v=_export$1,fails$U=fails$1b,toObject$m=toObject$t,nativeGetPrototypeOf=objectGetPrototypeOf$1,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter$1,FAILS_ON_PRIMITIVES$4=fails$U((function(){nativeGetPrototypeOf(1)}));$$1v({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$4,sham:!CORRECT_PROTOTYPE_GETTER$1},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$m(e))}});var path$j=path$w,getPrototypeOf$b=path$j.Object.getPrototypeOf,parent$1C=getPrototypeOf$b,getPrototypeOf$a=parent$1C,parent$1B=getPrototypeOf$a,getPrototypeOf$9=parent$1B,parent$1A=getPrototypeOf$9,getPrototypeOf$8=parent$1A,getPrototypeOf$7=getPrototypeOf$8,getPrototypeOf$6=getPrototypeOf$7,_Object$getPrototypeOf=getDefaultExportFromCjs(getPrototypeOf$6),$$1u=_export$1,setPrototypeOf$d=objectSetPrototypeOf$1;$$1u({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$d});var path$i=path$w,setPrototypeOf$c=path$i.Object.setPrototypeOf,parent$1z=setPrototypeOf$c,setPrototypeOf$b=parent$1z,parent$1y=setPrototypeOf$b,setPrototypeOf$a=parent$1y,parent$1x=setPrototypeOf$a,setPrototypeOf$9=parent$1x,setPrototypeOf$8=setPrototypeOf$9,setPrototypeOf$7=setPrototypeOf$8,_Object$setPrototypeOf=getDefaultExportFromCjs(setPrototypeOf$7),hasOwn$o=hasOwnProperty_1$1,ownKeys$3=ownKeys$5,getOwnPropertyDescriptorModule$3=objectGetOwnPropertyDescriptor$1,definePropertyModule$7=objectDefineProperty$1,copyConstructorProperties$3=function(e,t,r){for(var n=ownKeys$3(t),o=definePropertyModule$7.f,i=getOwnPropertyDescriptorModule$3.f,a=0;a<n.length;a++){var s=n[a];hasOwn$o(e,s)||r&&hasOwn$o(r,s)||o(e,s,i(t,s))}},isObject$r=isObject$A,createNonEnumerableProperty$d=createNonEnumerableProperty$j,installErrorCause$1=function(e,t){isObject$r(t)&&"cause"in t&&createNonEnumerableProperty$d(e,"cause",t.cause)},uncurryThis$T=functionUncurryThis$1,$Error$1=Error,replace$a=uncurryThis$T("".replace),TEST=String($Error$1("zxcasd").stack),V8_OR_CHAKRA_STACK_ENTRY=/\n\s*at [^:]*:[^\n]*/,IS_V8_OR_CHAKRA_STACK=V8_OR_CHAKRA_STACK_ENTRY.test(TEST),errorStackClear=function(e,t){if(IS_V8_OR_CHAKRA_STACK&&"string"==typeof e&&!$Error$1.prepareStackTrace)for(;t--;)e=replace$a(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},fails$T=fails$1b,createPropertyDescriptor$9=createPropertyDescriptor$f,errorStackInstallable=!fails$T((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$9(1,7)),7!==e.stack)})),createNonEnumerableProperty$c=createNonEnumerableProperty$j,clearErrorStack=errorStackClear,ERROR_STACK_INSTALLABLE=errorStackInstallable,captureStackTrace=Error.captureStackTrace,errorStackInstall=function(e,t,r,n){ERROR_STACK_INSTALLABLE&&(captureStackTrace?captureStackTrace(e,t):createNonEnumerableProperty$c(e,"stack",clearErrorStack(r,n)))},wellKnownSymbol$y=wellKnownSymbol$N,Iterators$6=iterators$1,ITERATOR$g=wellKnownSymbol$y("iterator"),ArrayPrototype$e=Array.prototype,isArrayIteratorMethod$6=function(e){return void 0!==e&&(Iterators$6.Array===e||ArrayPrototype$e[ITERATOR$g]===e)},classof$j=classof$r,getMethod$6=getMethod$8,isNullOrUndefined$9=isNullOrUndefined$c,Iterators$5=iterators$1,wellKnownSymbol$x=wellKnownSymbol$N,ITERATOR$f=wellKnownSymbol$x("iterator"),getIteratorMethod$g=function(e){if(!isNullOrUndefined$9(e))return getMethod$6(e,ITERATOR$f)||getMethod$6(e,"@@iterator")||Iterators$5[classof$j(e)]},call$I=functionCall$1,aCallable$q=aCallable$u,anObject$s=anObject$z,tryToString$b=tryToString$e,getIteratorMethod$f=getIteratorMethod$g,$TypeError$u=TypeError,getIterator$8=function(e,t){var r=arguments.length<2?getIteratorMethod$f(e):t;if(aCallable$q(r))return anObject$s(call$I(r,e));throw $TypeError$u(tryToString$b(e)+" is not iterable")},call$H=functionCall$1,anObject$r=anObject$z,getMethod$5=getMethod$8,iteratorClose$5=function(e,t,r){var n,o;anObject$r(e);try{if(!(n=getMethod$5(e,"return"))){if("throw"===t)throw r;return r}n=call$H(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$r(n),r},bind$z=functionBindContext$1,call$G=functionCall$1,anObject$q=anObject$z,tryToString$a=tryToString$e,isArrayIteratorMethod$5=isArrayIteratorMethod$6,lengthOfArrayLike$p=lengthOfArrayLike$u,isPrototypeOf$o=objectIsPrototypeOf$1,getIterator$7=getIterator$8,getIteratorMethod$e=getIteratorMethod$g,iteratorClose$4=iteratorClose$5,$TypeError$t=TypeError,Result$1=function(e,t){this.stopped=e,this.result=t},ResultPrototype$1=Result$1.prototype,iterate$o=function(e,t,r){var n,o,i,a,s,c,l,u=r&&r.that,$=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),f=bind$z(t,u),h=function(e){return n&&iteratorClose$4(n,"normal",e),new Result$1(!0,e)},y=function(e){return $?(anObject$q(e),p?f(e[0],e[1],h):f(e[0],e[1])):p?f(e,h):f(e)};if(d)n=e.iterator;else if(A)n=e;else{if(!(o=getIteratorMethod$e(e)))throw $TypeError$t(tryToString$a(e)+" is not iterable");if(isArrayIteratorMethod$5(o)){for(i=0,a=lengthOfArrayLike$p(e);a>i;i++)if((s=y(e[i]))&&isPrototypeOf$o(ResultPrototype$1,s))return s;return new Result$1(!1)}n=getIterator$7(e,o)}for(c=d?e.next:n.next;!(l=call$G(c,n)).done;){try{s=y(l.value)}catch(e){iteratorClose$4(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$o(ResultPrototype$1,s))return s}return new Result$1(!1)},toString$i=toString$o,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$i(e)},$$1t=_export$1,isPrototypeOf$n=objectIsPrototypeOf$1,getPrototypeOf$5=objectGetPrototypeOf$1,setPrototypeOf$6=objectSetPrototypeOf$1,copyConstructorProperties$2=copyConstructorProperties$3,create$8=objectCreate$1,createNonEnumerableProperty$b=createNonEnumerableProperty$j,createPropertyDescriptor$8=createPropertyDescriptor$f,installErrorCause=installErrorCause$1,installErrorStack=errorStackInstall,iterate$n=iterate$o,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$w=wellKnownSymbol$N,TO_STRING_TAG$5=wellKnownSymbol$w("toStringTag"),$Error=Error,push$g=[].push,$AggregateError=function(e,t){var r,n=isPrototypeOf$n(AggregateErrorPrototype,this);setPrototypeOf$6?r=setPrototypeOf$6($Error(),n?getPrototypeOf$5(this):AggregateErrorPrototype):(r=n?this:create$8(AggregateErrorPrototype),createNonEnumerableProperty$b(r,TO_STRING_TAG$5,"Error")),void 0!==t&&createNonEnumerableProperty$b(r,"message",normalizeStringArgument(t)),installErrorStack(r,$AggregateError,r.stack,1),arguments.length>2&&installErrorCause(r,arguments[2]);var o=[];return iterate$n(e,push$g,{that:o}),createNonEnumerableProperty$b(r,"errors",o),r};setPrototypeOf$6?setPrototypeOf$6($AggregateError,$Error):copyConstructorProperties$2($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$8($Error.prototype,{constructor:createPropertyDescriptor$8(1,$AggregateError),message:createPropertyDescriptor$8(1,""),name:createPropertyDescriptor$8(1,"AggregateError")});$$1t({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location$1,defer$1,channel$1,port$1,classof$i=classofRaw$5,engineIsNode$1="undefined"!=typeof process&&"process"==classof$i(process),getBuiltIn$g=getBuiltIn$r,defineBuiltInAccessor$6=defineBuiltInAccessor$8,wellKnownSymbol$v=wellKnownSymbol$N,DESCRIPTORS$t=descriptors$1,SPECIES$a=wellKnownSymbol$v("species"),setSpecies$6=function(e){var t=getBuiltIn$g(e);DESCRIPTORS$t&&t&&!t[SPECIES$a]&&defineBuiltInAccessor$6(t,SPECIES$a,{configurable:!0,get:function(){return this}})},isPrototypeOf$m=objectIsPrototypeOf$1,$TypeError$s=TypeError,anInstance$b=function(e,t){if(isPrototypeOf$m(t,e))return e;throw $TypeError$s("Incorrect invocation")},isConstructor$7=isConstructor$9,tryToString$9=tryToString$e,$TypeError$r=TypeError,aConstructor$6=function(e){if(isConstructor$7(e))return e;throw $TypeError$r(tryToString$9(e)+" is not a constructor")},anObject$p=anObject$z,aConstructor$5=aConstructor$6,isNullOrUndefined$8=isNullOrUndefined$c,wellKnownSymbol$u=wellKnownSymbol$N,SPECIES$9=wellKnownSymbol$u("species"),speciesConstructor$6=function(e,t){var r,n=anObject$p(e).constructor;return void 0===n||isNullOrUndefined$8(r=anObject$p(n)[SPECIES$9])?t:aConstructor$5(r)},$TypeError$q=TypeError,validateArgumentsLength$9=function(e,t){if(e<t)throw $TypeError$q("Not enough arguments");return e},userAgent$a=engineUserAgent$1,engineIsIos$1=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$a),global$R=global$13,apply$8=functionApply$1,bind$y=functionBindContext$1,isCallable$B=isCallable$S,hasOwn$n=hasOwnProperty_1$1,fails$S=fails$1b,html$3=html$5,arraySlice$e=arraySlice$g,createElement$2=documentCreateElement$4,validateArgumentsLength$8=validateArgumentsLength$9,IS_IOS$3=engineIsIos$1,IS_NODE$8=engineIsNode$1,set$9=global$R.setImmediate,clear$1=global$R.clearImmediate,process$7=global$R.process,Dispatch$1=global$R.Dispatch,Function$3=global$R.Function,MessageChannel$1=global$R.MessageChannel,String$2=global$R.String,counter$1=0,queue$4={},ONREADYSTATECHANGE$1="onreadystatechange";fails$S((function(){$location$1=global$R.location}));var run$1=function(e){if(hasOwn$n(queue$4,e)){var t=queue$4[e];delete queue$4[e],t()}},runner$1=function(e){return function(){run$1(e)}},eventListener=function(e){run$1(e.data)},globalPostMessageDefer=function(e){global$R.postMessage(String$2(e),$location$1.protocol+"//"+$location$1.host)};set$9&&clear$1||(set$9=function(e){validateArgumentsLength$8(arguments.length,1);var t=isCallable$B(e)?e:Function$3(e),r=arraySlice$e(arguments,1);return queue$4[++counter$1]=function(){apply$8(t,void 0,r)},defer$1(counter$1),counter$1},clear$1=function(e){delete queue$4[e]},IS_NODE$8?defer$1=function(e){process$7.nextTick(runner$1(e))}:Dispatch$1&&Dispatch$1.now?defer$1=function(e){Dispatch$1.now(runner$1(e))}:MessageChannel$1&&!IS_IOS$3?(port$1=(channel$1=new MessageChannel$1).port2,channel$1.port1.onmessage=eventListener,defer$1=bind$y(port$1.postMessage,port$1)):global$R.addEventListener&&isCallable$B(global$R.postMessage)&&!global$R.importScripts&&$location$1&&"file:"!==$location$1.protocol&&!fails$S(globalPostMessageDefer)?(defer$1=globalPostMessageDefer,global$R.addEventListener("message",eventListener,!1)):defer$1=ONREADYSTATECHANGE$1 in createElement$2("script")?function(e){html$3.appendChild(createElement$2("script"))[ONREADYSTATECHANGE$1]=function(){html$3.removeChild(this),run$1(e)}}:function(e){setTimeout(runner$1(e),0)});var task$3={set:set$9,clear:clear$1},Queue$4=function(){this.head=null,this.tail=null};Queue$4.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var notify$3,toggle$1,node$1,promise$7,then$1,queue$3=Queue$4,userAgent$9=engineUserAgent$1,engineIsIosPebble$1=/ipad|iphone|ipod/i.test(userAgent$9)&&"undefined"!=typeof Pebble,userAgent$8=engineUserAgent$1,engineIsWebosWebkit$1=/web0s(?!.*chrome)/i.test(userAgent$8),global$Q=global$13,bind$x=functionBindContext$1,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor$1.f,macrotask$1=task$3.set,Queue$3=queue$3,IS_IOS$2=engineIsIos$1,IS_IOS_PEBBLE$1=engineIsIosPebble$1,IS_WEBOS_WEBKIT$1=engineIsWebosWebkit$1,IS_NODE$7=engineIsNode$1,MutationObserver$1=global$Q.MutationObserver||global$Q.WebKitMutationObserver,document$5=global$Q.document,process$6=global$Q.process,Promise$2=global$Q.Promise,queueMicrotaskDescriptor$1=getOwnPropertyDescriptor$8(global$Q,"queueMicrotask"),microtask$3=queueMicrotaskDescriptor$1&&queueMicrotaskDescriptor$1.value;if(!microtask$3){var queue$2=new Queue$3,flush$1=function(){var e,t;for(IS_NODE$7&&(e=process$6.domain)&&e.exit();t=queue$2.get();)try{t()}catch(e){throw queue$2.head&¬ify$3(),e}e&&e.enter()};IS_IOS$2||IS_NODE$7||IS_WEBOS_WEBKIT$1||!MutationObserver$1||!document$5?!IS_IOS_PEBBLE$1&&Promise$2&&Promise$2.resolve?((promise$7=Promise$2.resolve(void 0)).constructor=Promise$2,then$1=bind$x(promise$7.then,promise$7),notify$3=function(){then$1(flush$1)}):IS_NODE$7?notify$3=function(){process$6.nextTick(flush$1)}:(macrotask$1=bind$x(macrotask$1,global$Q),notify$3=function(){macrotask$1(flush$1)}):(toggle$1=!0,node$1=document$5.createTextNode(""),new MutationObserver$1(flush$1).observe(node$1,{characterData:!0}),notify$3=function(){node$1.data=toggle$1=!toggle$1}),microtask$3=function(e){queue$2.head||notify$3(),queue$2.add(e)}}var microtask_1=microtask$3,hostReportErrors$3=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$a=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$P=global$13,promiseNativeConstructor$1=global$P.Promise,engineIsDeno$1="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$3=engineIsDeno$1,IS_NODE$6=engineIsNode$1,engineIsBrowser$1=!IS_DENO$3&&!IS_NODE$6&&"object"==typeof window&&"object"==typeof document,global$O=global$13,NativePromiseConstructor$a=promiseNativeConstructor$1,isCallable$A=isCallable$S,isForced$4=isForced_1$1,inspectSource$4=inspectSource$6,wellKnownSymbol$t=wellKnownSymbol$N,IS_BROWSER$1=engineIsBrowser$1,IS_DENO$2=engineIsDeno$1,V8_VERSION$4=engineV8Version$1,NativePromisePrototype$5=NativePromiseConstructor$a&&NativePromiseConstructor$a.prototype,SPECIES$8=wellKnownSymbol$t("species"),SUBCLASSING$1=!1,NATIVE_PROMISE_REJECTION_EVENT$3=isCallable$A(global$O.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$b=isForced$4("Promise",(function(){var e=inspectSource$4(NativePromiseConstructor$a),t=e!==String(NativePromiseConstructor$a);if(!t&&66===V8_VERSION$4)return!0;if(!NativePromisePrototype$5.catch||!NativePromisePrototype$5.finally)return!0;if(!V8_VERSION$4||V8_VERSION$4<51||!/native code/.test(e)){var r=new NativePromiseConstructor$a((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$8]=n,!(SUBCLASSING$1=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER$1||IS_DENO$2)&&!NATIVE_PROMISE_REJECTION_EVENT$3})),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$b,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$3,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$5={},aCallable$p=aCallable$u,$TypeError$p=TypeError,PromiseCapability$1=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$p("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$p(t),this.reject=aCallable$p(r)};newPromiseCapability$5.f=function(e){return new PromiseCapability$1(e)};var $$1s=_export$1,IS_NODE$5=engineIsNode$1,global$N=global$13,call$F=functionCall$1,defineBuiltIn$i=defineBuiltIn$n,setToStringTag$a=setToStringTag$g,setSpecies$5=setSpecies$6,aCallable$o=aCallable$u,isCallable$z=isCallable$S,isObject$q=isObject$A,anInstance$a=anInstance$b,speciesConstructor$5=speciesConstructor$6,task$2=task$3.set,microtask$2=microtask_1,hostReportErrors$2=hostReportErrors$3,perform$9=perform$a,Queue$2=queue$3,InternalStateModule$d=internalState$1,NativePromiseConstructor$9=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$a=newPromiseCapability$5,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$a=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT;PromiseConstructorDetection$1.SUBCLASSING;var Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,getInternalPromiseState$1=InternalStateModule$d.getterFor(PROMISE$1),setInternalState$b=InternalStateModule$d.set,NativePromisePrototype$4=NativePromiseConstructor$9&&NativePromiseConstructor$9.prototype,PromiseConstructor$1=NativePromiseConstructor$9,PromisePrototype$1=NativePromisePrototype$4,TypeError$9=global$N.TypeError,document$4=global$N.document,process$5=global$N.process,newPromiseCapability$4=newPromiseCapabilityModule$a.f,newGenericPromiseCapability$1=newPromiseCapability$4,DISPATCH_EVENT$1=!!(document$4&&document$4.createEvent&&global$N.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,isThenable$1=function(e){var t;return!(!isObject$q(e)||!isCallable$z(t=e.then))&&t},callReaction$1=function(e,t){var r,n,o,i=t.value,a=t.state==FULFILLED$1,s=a?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED$1&&onHandleUnhandled$1(t),t.rejection=HANDLED$1),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?l(TypeError$9("Promise-chain cycle")):(n=isThenable$1(r))?call$F(n,r,c,l):c(r)):l(i)}catch(e){u&&!o&&u.exit(),l(e)}},notify$2=function(e,t){e.notified||(e.notified=!0,microtask$2((function(){for(var r,n=e.reactions;r=n.get();)callReaction$1(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled$1(e)})))},dispatchEvent$1=function(e,t,r){var n,o;DISPATCH_EVENT$1?((n=document$4.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$N.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT$2&&(o=global$N["on"+e])?o(n):e===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",r)},onUnhandled$1=function(e){call$F(task$2,global$N,(function(){var t,r=e.facade,n=e.value;if(isUnhandled$1(e)&&(t=perform$9((function(){IS_NODE$5?process$5.emit("unhandledRejection",n,r):dispatchEvent$1(UNHANDLED_REJECTION$1,r,n)})),e.rejection=IS_NODE$5||isUnhandled$1(e)?UNHANDLED$1:HANDLED$1,t.error))throw t.value}))},isUnhandled$1=function(e){return e.rejection!==HANDLED$1&&!e.parent},onHandleUnhandled$1=function(e){call$F(task$2,global$N,(function(){var t=e.facade;IS_NODE$5?process$5.emit("rejectionHandled",t):dispatchEvent$1(REJECTION_HANDLED$1,t,e.value)}))},bind$w=function(e,t,r){return function(n){e(t,n,r)}},internalReject$1=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED$1,notify$2(e,!0))},internalResolve$1=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$9("Promise can't be resolved itself");var n=isThenable$1(t);n?microtask$2((function(){var r={done:!1};try{call$F(n,t,bind$w(internalResolve$1,r,e),bind$w(internalReject$1,r,e))}catch(t){internalReject$1(r,t,e)}})):(e.value=t,e.state=FULFILLED$1,notify$2(e,!1))}catch(t){internalReject$1({done:!1},t,e)}}};FORCED_PROMISE_CONSTRUCTOR$a&&(PromisePrototype$1=(PromiseConstructor$1=function(e){anInstance$a(this,PromisePrototype$1),aCallable$o(e),call$F(Internal$1,this);var t=getInternalPromiseState$1(this);try{e(bind$w(internalResolve$1,t),bind$w(internalReject$1,t))}catch(e){internalReject$1(t,e)}}).prototype,(Internal$1=function(e){setInternalState$b(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$2,rejection:!1,state:PENDING$1,value:void 0})}).prototype=defineBuiltIn$i(PromisePrototype$1,"then",(function(e,t){var r=getInternalPromiseState$1(this),n=newPromiseCapability$4(speciesConstructor$5(this,PromiseConstructor$1));return r.parent=!0,n.ok=!isCallable$z(e)||e,n.fail=isCallable$z(t)&&t,n.domain=IS_NODE$5?process$5.domain:void 0,r.state==PENDING$1?r.reactions.add(n):microtask$2((function(){callReaction$1(n,r)})),n.promise})),OwnPromiseCapability$1=function(){var e=new Internal$1,t=getInternalPromiseState$1(e);this.promise=e,this.resolve=bind$w(internalResolve$1,t),this.reject=bind$w(internalReject$1,t)},newPromiseCapabilityModule$a.f=newPromiseCapability$4=function(e){return e===PromiseConstructor$1||e===PromiseWrapper$1?new OwnPromiseCapability$1(e):newGenericPromiseCapability$1(e)}),$$1s({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$a},{Promise:PromiseConstructor$1}),setToStringTag$a(PromiseConstructor$1,PROMISE$1,!1,!0),setSpecies$5(PROMISE$1);var wellKnownSymbol$s=wellKnownSymbol$N,ITERATOR$e=wellKnownSymbol$s("iterator"),SAFE_CLOSING$1=!1;try{var called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}};iteratorWithReturn$1[ITERATOR$e]=function(){return this},Array.from(iteratorWithReturn$1,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$5=function(e,t){if(!t&&!SAFE_CLOSING$1)return!1;var r=!1;try{var n={};n[ITERATOR$e]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$8=promiseNativeConstructor$1,checkCorrectnessOfIteration$4=checkCorrectnessOfIteration$5,FORCED_PROMISE_CONSTRUCTOR$9=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$9||!checkCorrectnessOfIteration$4((function(e){NativePromiseConstructor$8.all(e).then(void 0,(function(){}))})),$$1r=_export$1,call$E=functionCall$1,aCallable$n=aCallable$u,newPromiseCapabilityModule$9=newPromiseCapability$5,perform$8=perform$a,iterate$m=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$5=promiseStaticsIncorrectIteration$1;$$1r({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$5},{all:function(e){var t=this,r=newPromiseCapabilityModule$9.f(t),n=r.resolve,o=r.reject,i=perform$8((function(){var r=aCallable$n(t.resolve),i=[],a=0,s=1;iterate$m(e,(function(e){var c=a++,l=!1;s++,call$E(r,t,e).then((function(e){l||(l=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var $$1q=_export$1,FORCED_PROMISE_CONSTRUCTOR$8=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$7=promiseNativeConstructor$1;promiseNativeConstructor$1&&promiseNativeConstructor$1.prototype,$$1q({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$8,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$1p=_export$1,call$D=functionCall$1,aCallable$m=aCallable$u,newPromiseCapabilityModule$8=newPromiseCapability$5,perform$7=perform$a,iterate$l=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$4=promiseStaticsIncorrectIteration$1;$$1p({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$4},{race:function(e){var t=this,r=newPromiseCapabilityModule$8.f(t),n=r.reject,o=perform$7((function(){var o=aCallable$m(t.resolve);iterate$l(e,(function(e){call$D(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$1o=_export$1,call$C=functionCall$1,newPromiseCapabilityModule$7=newPromiseCapability$5,FORCED_PROMISE_CONSTRUCTOR$7=promiseConstructorDetection$1.CONSTRUCTOR;$$1o({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$7},{reject:function(e){var t=newPromiseCapabilityModule$7.f(this);return call$C(t.reject,void 0,e),t.promise}});var anObject$o=anObject$z,isObject$p=isObject$A,newPromiseCapability$3=newPromiseCapability$5,promiseResolve$5=function(e,t){if(anObject$o(e),isObject$p(t)&&t.constructor===e)return t;var r=newPromiseCapability$3.f(e);return(0,r.resolve)(t),r.promise},$$1n=_export$1,getBuiltIn$f=getBuiltIn$r,IS_PURE$2=isPure$1,NativePromiseConstructor$6=promiseNativeConstructor$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$4=promiseResolve$5,PromiseConstructorWrapper=getBuiltIn$f("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR$6;$$1n({target:"Promise",stat:!0,forced:IS_PURE$2},{resolve:function(e){return promiseResolve$4(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$6:this,e)}});var $$1m=_export$1,call$B=functionCall$1,aCallable$l=aCallable$u,newPromiseCapabilityModule$6=newPromiseCapability$5,perform$6=perform$a,iterate$k=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration$1;$$1m({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$6.f(t),n=r.resolve,o=r.reject,i=perform$6((function(){var r=aCallable$l(t.resolve),o=[],i=0,a=1;iterate$k(e,(function(e){var s=i++,c=!1;a++,call$B(r,t,e).then((function(e){c||(c=!0,o[s]={status:"fulfilled",value:e},--a||n(o))}),(function(e){c||(c=!0,o[s]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var $$1l=_export$1,call$A=functionCall$1,aCallable$k=aCallable$u,getBuiltIn$e=getBuiltIn$r,newPromiseCapabilityModule$5=newPromiseCapability$5,perform$5=perform$a,iterate$j=iterate$o,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration$1,PROMISE_ANY_ERROR="No one promise resolved";$$1l({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{any:function(e){var t=this,r=getBuiltIn$e("AggregateError"),n=newPromiseCapabilityModule$5.f(t),o=n.resolve,i=n.reject,a=perform$5((function(){var n=aCallable$k(t.resolve),a=[],s=0,c=1,l=!1;iterate$j(e,(function(e){var u=s++,$=!1;c++,call$A(n,t,e).then((function(e){$||l||(l=!0,o(e))}),(function(e){$||l||($=!0,a[u]=e,--c||i(new r(a,PROMISE_ANY_ERROR)))}))})),--c||i(new r(a,PROMISE_ANY_ERROR))}));return a.error&&i(a.value),n.promise}});var $$1k=_export$1,NativePromiseConstructor$5=promiseNativeConstructor$1,fails$R=fails$1b,getBuiltIn$d=getBuiltIn$r,isCallable$y=isCallable$S,speciesConstructor$4=speciesConstructor$6,promiseResolve$3=promiseResolve$5,NativePromisePrototype$3=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,NON_GENERIC$1=!!NativePromiseConstructor$5&&fails$R((function(){NativePromisePrototype$3.finally.call({then:function(){}},(function(){}))}));$$1k({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC$1},{finally:function(e){var t=speciesConstructor$4(this,getBuiltIn$d("Promise")),r=isCallable$y(e);return this.then(r?function(r){return promiseResolve$3(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve$3(t,e()).then((function(){throw r}))}:e)}});var path$h=path$w,promise$6=path$h.Promise,parent$1w=promise$6,promise$5=parent$1w,parent$1v=promise$5,promise$4=parent$1v,$$1j=_export$1,newPromiseCapabilityModule$4=newPromiseCapability$5,perform$4=perform$a;$$1j({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=newPromiseCapabilityModule$4.f(this),r=perform$4(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var parent$1u=promise$4,promise$3=parent$1u,promise$2=promise$3,promise$1=promise$2,_Promise=getDefaultExportFromCjs(promise$1),$$1i=_export$1,uncurryThis$S=functionUncurryThis$1,isArray$e=isArray$i,nativeReverse=uncurryThis$S([].reverse),test$3=[1,2];$$1i({target:"Array",proto:!0,forced:String(test$3)===String(test$3.reverse())},{reverse:function(){return isArray$e(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$c=entryVirtual$f,reverse$7=entryVirtual$c("Array").reverse,isPrototypeOf$l=objectIsPrototypeOf$1,method$e=reverse$7,ArrayPrototype$d=Array.prototype,reverse$6=function(e){var t=e.reverse;return e===ArrayPrototype$d||isPrototypeOf$l(ArrayPrototype$d,e)&&t===ArrayPrototype$d.reverse?method$e:t},parent$1t=reverse$6,reverse$5=parent$1t,parent$1s=reverse$5,reverse$4=parent$1s,parent$1r=reverse$4,reverse$3=parent$1r,reverse$2=reverse$3,reverse$1=reverse$2,_reverseInstanceProperty=getDefaultExportFromCjs(reverse$1),$$1h=_export$1,isArray$d=isArray$i,isConstructor$6=isConstructor$9,isObject$o=isObject$A,toAbsoluteIndex$a=toAbsoluteIndex$d,lengthOfArrayLike$o=lengthOfArrayLike$u,toIndexedObject$d=toIndexedObject$n,createProperty$8=createProperty$c,wellKnownSymbol$r=wellKnownSymbol$N,arrayMethodHasSpeciesSupport$8=arrayMethodHasSpeciesSupport$b,nativeSlice$1=arraySlice$g,HAS_SPECIES_SUPPORT$6=arrayMethodHasSpeciesSupport$8("slice"),SPECIES$7=wellKnownSymbol$r("species"),$Array$6=Array,max$6=Math.max;$$1h({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$6},{slice:function(e,t){var r,n,o,i=toIndexedObject$d(this),a=lengthOfArrayLike$o(i),s=toAbsoluteIndex$a(e,a),c=toAbsoluteIndex$a(void 0===t?a:t,a);if(isArray$d(i)&&(r=i.constructor,(isConstructor$6(r)&&(r===$Array$6||isArray$d(r.prototype))||isObject$o(r)&&null===(r=r[SPECIES$7]))&&(r=void 0),r===$Array$6||void 0===r))return nativeSlice$1(i,s,c);for(n=new(void 0===r?$Array$6:r)(max$6(c-s,0)),o=0;s<c;s++,o++)s in i&&createProperty$8(n,o,i[s]);return n.length=o,n}});var entryVirtual$b=entryVirtual$f,slice$8=entryVirtual$b("Array").slice,isPrototypeOf$k=objectIsPrototypeOf$1,method$d=slice$8,ArrayPrototype$c=Array.prototype,slice$7=function(e){var t=e.slice;return e===ArrayPrototype$c||isPrototypeOf$k(ArrayPrototype$c,e)&&t===ArrayPrototype$c.slice?method$d:t},parent$1q=slice$7,slice$6=parent$1q,parent$1p=slice$6,slice$5=parent$1p,parent$1o=slice$5,slice$4=parent$1o,slice$3=slice$4,slice$2=slice$3,_sliceInstanceProperty=getDefaultExportFromCjs(slice$2),uncurryThis$R=functionUncurryThis$1,aCallable$j=aCallable$u,isObject$n=isObject$A,hasOwn$m=hasOwnProperty_1$1,arraySlice$d=arraySlice$g,NATIVE_BIND$4=functionBindNative$1,$Function=Function,concat$b=uncurryThis$R([].concat),join$7=uncurryThis$R([].join),factories={},construct$7=function(e,t,r){if(!hasOwn$m(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join$7(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND$4?$Function.bind:function(e){var t=aCallable$j(this),r=t.prototype,n=arraySlice$d(arguments,1),o=function(){var r=concat$b(n,arraySlice$d(arguments));return this instanceof o?construct$7(t,r.length,r):t.apply(e,r)};return isObject$n(r)&&(o.prototype=r),o},$$1g=_export$1,bind$v=functionBind;$$1g({target:"Function",proto:!0,forced:Function.bind!==bind$v},{bind:bind$v});var entryVirtual$a=entryVirtual$f,bind$u=entryVirtual$a("Function").bind,isPrototypeOf$j=objectIsPrototypeOf$1,method$c=bind$u,FunctionPrototype$4=Function.prototype,bind$t=function(e){var t=e.bind;return e===FunctionPrototype$4||isPrototypeOf$j(FunctionPrototype$4,e)&&t===FunctionPrototype$4.bind?method$c:t},parent$1n=bind$t,bind$s=parent$1n,parent$1m=bind$s,bind$r=parent$1m,parent$1l=bind$r,bind$q=parent$1l,bind$p=bind$q,bind$o=bind$p,_bindInstanceProperty=getDefaultExportFromCjs(bind$o),$$1f=_export$1,getBuiltIn$c=getBuiltIn$r,apply$7=functionApply$1,bind$n=functionBind,aConstructor$4=aConstructor$6,anObject$n=anObject$z,isObject$m=isObject$A,create$7=objectCreate$1,fails$Q=fails$1b,nativeConstruct=getBuiltIn$c("Reflect","construct"),ObjectPrototype$3=Object.prototype,push$f=[].push,NEW_TARGET_BUG=fails$Q((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$Q((function(){nativeConstruct((function(){}))})),FORCED$d=NEW_TARGET_BUG||ARGS_BUG;$$1f({target:"Reflect",stat:!0,forced:FORCED$d,sham:FORCED$d},{construct:function(e,t){aConstructor$4(e),anObject$n(t);var r=arguments.length<3?e:aConstructor$4(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return apply$7(push$f,n,t),new(apply$7(bind$n,e,n))}var o=r.prototype,i=create$7(isObject$m(o)?o:ObjectPrototype$3),a=apply$7(e,i,t);return isObject$m(a)?a:i}});var path$g=path$w,construct$6=path$g.Reflect.construct,parent$1k=construct$6,construct$5=parent$1k,parent$1j=construct$5,construct$4=parent$1j,parent$1i=construct$4,construct$3=parent$1i,construct$2=construct$3,construct$1=construct$2,_Reflect$construct=getDefaultExportFromCjs(construct$1),hasOwn$l=hasOwnProperty_1$1,isDataDescriptor$1=function(e){return void 0!==e&&(hasOwn$l(e,"value")||hasOwn$l(e,"writable"))},$$1e=_export$1,call$z=functionCall$1,isObject$l=isObject$A,anObject$m=anObject$z,isDataDescriptor=isDataDescriptor$1,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor$1,getPrototypeOf$4=objectGetPrototypeOf$1;function get$a(e,t){var r,n,o=arguments.length<3?e:arguments[2];return anObject$m(e)===o?e[t]:(r=getOwnPropertyDescriptorModule$2.f(e,t))?isDataDescriptor(r)?r.value:void 0===r.get?void 0:call$z(r.get,o):isObject$l(n=getPrototypeOf$4(e))?get$a(n,t,o):void 0}$$1e({target:"Reflect",stat:!0},{get:get$a});var path$f=path$w,get$9=path$f.Reflect.get,parent$1h=get$9,get$8=parent$1h,parent$1g=get$8,get$7=parent$1g,parent$1f=get$7,get$6=parent$1f,get$5=get$6,get$4=get$5,_Reflect$get=getDefaultExportFromCjs(get$4),$$1d=_export$1,isArray$c=isArray$i;$$1d({target:"Array",stat:!0},{isArray:isArray$c});var path$e=path$w,isArray$b=path$e.Array.isArray,parent$1e=isArray$b,isArray$a=parent$1e,parent$1d=isArray$a,isArray$9=parent$1d,parent$1c=isArray$9,isArray$8=parent$1c,isArray$7=isArray$8,isArray$6=isArray$7,_Array$isArray=getDefaultExportFromCjs(isArray$6),getIteratorMethod$d=getIteratorMethod$g,getIteratorMethod_1=getIteratorMethod$d,parent$1b=getIteratorMethod_1,getIteratorMethod$c=parent$1b,parent$1a=getIteratorMethod$c,getIteratorMethod$b=parent$1a,parent$19=getIteratorMethod$b,getIteratorMethod$a=parent$19,getIteratorMethod$9=getIteratorMethod$a,getIteratorMethod$8=getIteratorMethod$9,_getIteratorMethod=getDefaultExportFromCjs(getIteratorMethod$8),anObject$l=anObject$z,iteratorClose$3=iteratorClose$5,callWithSafeIterationClosing$3=function(e,t,r,n){try{return n?t(anObject$l(r)[0],r[1]):t(r)}catch(t){iteratorClose$3(e,"throw",t)}},bind$m=functionBindContext$1,call$y=functionCall$1,toObject$l=toObject$t,callWithSafeIterationClosing$2=callWithSafeIterationClosing$3,isArrayIteratorMethod$4=isArrayIteratorMethod$6,isConstructor$5=isConstructor$9,lengthOfArrayLike$n=lengthOfArrayLike$u,createProperty$7=createProperty$c,getIterator$6=getIterator$8,getIteratorMethod$7=getIteratorMethod$g,$Array$5=Array,arrayFrom$3=function(e){var t=toObject$l(e),r=isConstructor$5(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=bind$m(o,n>2?arguments[2]:void 0));var a,s,c,l,u,$,d=getIteratorMethod$7(t),A=0;if(!d||this===$Array$5&&isArrayIteratorMethod$4(d))for(a=lengthOfArrayLike$n(t),s=r?new this(a):$Array$5(a);a>A;A++)$=i?o(t[A],A):t[A],createProperty$7(s,A,$);else for(u=(l=getIterator$6(t,d)).next,s=r?new this:[];!(c=call$y(u,l)).done;A++)$=i?callWithSafeIterationClosing$2(l,o,[c.value,A],!0):c.value,createProperty$7(s,A,$);return s.length=A,s},$$1c=_export$1,from$7=arrayFrom$3,checkCorrectnessOfIteration$3=checkCorrectnessOfIteration$5,INCORRECT_ITERATION=!checkCorrectnessOfIteration$3((function(e){Array.from(e)}));$$1c({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$7});var path$d=path$w,from$6=path$d.Array.from,parent$18=from$6,from$5=parent$18,parent$17=from$5,from$4=parent$17,parent$16=from$4,from$3=parent$16,from$2=from$3,from$1=from$2,_Array$from=getDefaultExportFromCjs(from$1);function ownKeys$2(e,t){var r=_Object$keys(e);if(_Object$getOwnPropertySymbols){var n=_Object$getOwnPropertySymbols(e);t&&(n=_filterInstanceProperty(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?_forEachInstanceProperty(r=ownKeys$2(Object(o),!0)).call(r,(function(t){_defineProperty$2(e,t,o[t])})):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(o)):_forEachInstanceProperty(n=ownKeys$2(Object(o))).call(n,(function(t){_Object$defineProperty(e,t,_Object$getOwnPropertyDescriptor(o,t))}))}return e}function _regeneratorRuntime$1(){_regeneratorRuntime$1=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol?_Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return _Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=_Object$create(i.prototype),s=new v(o||[]);return n(a,"_invoke",{value:m(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var $={};function d(){}function A(){}function p(){}var f={};c(f,i,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(S([])));h&&h!==t&&r.call(h,i)&&(f=h);var y=p.prototype=d.prototype=_Object$create(f);function _(e){var t;_forEachInstanceProperty(t=["next","throw","return"]).call(t,(function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function o(n,i,a,s){var c=u(e[n],e,i);if("throw"!==c.type){var l=c.arg,$=l.value;return $&&"object"==_typeof($)&&r.call($,"__await")?t.resolve($.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve($).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function m(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===$)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===$)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return $;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,$;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,$):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,$)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty(e).call(e,b,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return A.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:A,configurable:!0}),A.displayName=c(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,p):(e.__proto__=p,c(e,s,"GeneratorFunction")),e.prototype=_Object$create(y),e},e.awrap=function(e){return{__await:e}},_(g.prototype),c(g.prototype,a,(function(){return this})),e.AsyncIterator=g,e.async=function(t,r,n,o,i){void 0===i&&(i=_Promise);var a=new g(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(y),c(y,s,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return _reverseInstanceProperty(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=S,v.prototype={constructor:v,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,_forEachInstanceProperty(t=this.tryEntries).call(t,I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,$):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),$},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),$}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),$}},e}function asyncGeneratorStep$1(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):_Promise.resolve(c).then(n,o)}function _asyncToGenerator$1(e){return function(){var t=this,r=arguments;return new _Promise((function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep$1(i,n,o,a,s,"next",e)}function s(e){asyncGeneratorStep$1(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _classCallCheck$2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass$2(e,t,r){return t&&_defineProperties$2(e.prototype,t),r&&_defineProperties$2(e,r),_Object$defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty$2(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=_Object$create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$1(e,t)}function _getPrototypeOf$1(e){var t;return(_getPrototypeOf$1=_Object$setPrototypeOf?_bindInstanceProperty(t=_Object$getPrototypeOf).call(t):function(e){return e.__proto__||_Object$getPrototypeOf(e)})(e)}function _setPrototypeOf$1(e,t){var r;return(_setPrototypeOf$1=_Object$setPrototypeOf?_bindInstanceProperty(r=_Object$setPrototypeOf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct$1(){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(e){return!1}}function _assertThisInitialized$1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn$1(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(e)}function _createSuper$1(e){var t=_isNativeReflectConstruct$1();return function(){var r,n=_getPrototypeOf$1(e);if(t){var o=_getPrototypeOf$1(this).constructor;r=_Reflect$construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn$1(this,r)}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf$1(e)););return e}function _get(){var e;"undefined"!=typeof Reflect&&_Reflect$get?_get=_bindInstanceProperty(e=_Reflect$get).call(e):_get=function(e,t,r){var n=_superPropBase(e,t);if(n){var o=_Object$getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return _get.apply(this,arguments)}function _slicedToArray$1(e,t){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest$1()}function _toConsumableArray$1(e){return _arrayWithoutHoles$1(e)||_iterableToArray$1(e)||_unsupportedIterableToArray$1(e)||_nonIterableSpread$1()}function _arrayWithoutHoles$1(e){if(_Array$isArray(e))return _arrayLikeToArray$1(e)}function _arrayWithHoles$1(e){if(_Array$isArray(e))return e}function _iterableToArray$1(e){if(void 0!==_Symbol&&null!=_getIteratorMethod(e)||null!=e["@@iterator"])return _Array$from(e)}function _iterableToArrayLimit$1(e,t){var r=null==e?null:void 0!==_Symbol&&_getIteratorMethod(e)||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}function _unsupportedIterableToArray$1(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var n=_sliceInstanceProperty(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?_Array$from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var $$1b=_export$1,fails$P=fails$1b,getOwnPropertyNames$a=objectGetOwnPropertyNamesExternal$1.f,FAILS_ON_PRIMITIVES$3=fails$P((function(){return!Object.getOwnPropertyNames(1)}));$$1b({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3},{getOwnPropertyNames:getOwnPropertyNames$a});var path$c=path$w,Object$1=path$c.Object,getOwnPropertyNames$9=function(e){return Object$1.getOwnPropertyNames(e)},parent$15=getOwnPropertyNames$9,getOwnPropertyNames$8=parent$15,parent$14=getOwnPropertyNames$8,getOwnPropertyNames$7=parent$14,parent$13=getOwnPropertyNames$7,getOwnPropertyNames$6=parent$13,getOwnPropertyNames$5=getOwnPropertyNames$6,getOwnPropertyNames$4=getOwnPropertyNames$5,_Object$getOwnPropertyNames=getDefaultExportFromCjs(getOwnPropertyNames$4),whitespaces$6="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$Q=functionUncurryThis$1,requireObjectCoercible$7=requireObjectCoercible$b,toString$h=toString$o,whitespaces$5=whitespaces$6,replace$9=uncurryThis$Q("".replace),ltrim$1=RegExp("^["+whitespaces$5+"]+"),rtrim$1=RegExp("(^|[^"+whitespaces$5+"])["+whitespaces$5+"]+$"),createMethod$9=function(e){return function(t){var r=toString$h(requireObjectCoercible$7(t));return 1&e&&(r=replace$9(r,ltrim$1,"")),2&e&&(r=replace$9(r,rtrim$1,"$1")),r}},stringTrim$1={start:createMethod$9(1),end:createMethod$9(2),trim:createMethod$9(3)},global$M=global$13,fails$O=fails$1b,uncurryThis$P=functionUncurryThis$1,toString$g=toString$o,trim$3=stringTrim$1.trim,whitespaces$4=whitespaces$6,$parseInt$1=global$M.parseInt,Symbol$4=global$M.Symbol,ITERATOR$d=Symbol$4&&Symbol$4.iterator,hex=/^[+-]?0x/i,exec$6=uncurryThis$P(hex.exec),FORCED$c=8!==$parseInt$1(whitespaces$4+"08")||22!==$parseInt$1(whitespaces$4+"0x16")||ITERATOR$d&&!fails$O((function(){$parseInt$1(Object(ITERATOR$d))})),numberParseInt=FORCED$c?function(e,t){var r=trim$3(toString$g(e));return $parseInt$1(r,t>>>0||(exec$6(hex,r)?16:10))}:$parseInt$1,$$1a=_export$1,$parseInt=numberParseInt;$$1a({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});var path$b=path$w,_parseInt$6=path$b.parseInt,parent$12=_parseInt$6,_parseInt$5=parent$12,parent$11=_parseInt$5,_parseInt$4=parent$11,parent$10=_parseInt$4,_parseInt$3=parent$10,_parseInt$2=_parseInt$3,_parseInt=_parseInt$2,_parseInt$1=getDefaultExportFromCjs(_parseInt),entryVirtual$9=entryVirtual$f,concat$a=entryVirtual$9("Array").concat,isPrototypeOf$i=objectIsPrototypeOf$1,method$b=concat$a,ArrayPrototype$b=Array.prototype,concat$9=function(e){var t=e.concat;return e===ArrayPrototype$b||isPrototypeOf$i(ArrayPrototype$b,e)&&t===ArrayPrototype$b.concat?method$b:t},parent$$=concat$9,concat$8=parent$$,parent$_=concat$8,concat$7=parent$_,parent$Z=concat$7,concat$6=parent$Z,concat$5=concat$6,concat$4=concat$5,_concatInstanceProperty=getDefaultExportFromCjs(concat$4),engineIsBun="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,global$L=global$13,apply$6=functionApply$1,isCallable$x=isCallable$S,ENGINE_IS_BUN=engineIsBun,USER_AGENT=engineUserAgent$1,arraySlice$c=arraySlice$g,validateArgumentsLength$7=validateArgumentsLength$9,Function$2=global$L.Function,WRAP=/MSIE .\./.test(USER_AGENT)||ENGINE_IS_BUN&&function(){var e=global$L.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}(),schedulersFix$2=function(e,t){var r=t?2:1;return WRAP?function(n,o){var i=validateArgumentsLength$7(arguments.length,1)>r,a=isCallable$x(n)?n:Function$2(n),s=i?arraySlice$c(arguments,r):[],c=i?function(){apply$6(a,this,s)}:a;return t?e(c,o):e(c)}:e},$$19=_export$1,global$K=global$13,schedulersFix$1=schedulersFix$2,setInterval$5=schedulersFix$1(global$K.setInterval,!0);$$19({global:!0,bind:!0,forced:global$K.setInterval!==setInterval$5},{setInterval:setInterval$5});var $$18=_export$1,global$J=global$13,schedulersFix=schedulersFix$2,setTimeout$6=schedulersFix(global$J.setTimeout,!0);$$18({global:!0,bind:!0,forced:global$J.setTimeout!==setTimeout$6},{setTimeout:setTimeout$6});var path$a=path$w,setTimeout$5=path$a.setTimeout,parent$Y=setTimeout$5,setTimeout$4=parent$Y,parent$X=setTimeout$4,setTimeout$3=parent$X,setTimeout$2=setTimeout$3,setTimeout$1=setTimeout$2,_setTimeout=getDefaultExportFromCjs(setTimeout$1),global$I=global$13,fails$N=fails$1b,uncurryThis$O=functionUncurryThis$1,toString$f=toString$o,trim$2=stringTrim$1.trim,whitespaces$3=whitespaces$6,charAt$a=uncurryThis$O("".charAt),$parseFloat$2=global$I.parseFloat,Symbol$3=global$I.Symbol,ITERATOR$c=Symbol$3&&Symbol$3.iterator,FORCED$b=1/$parseFloat$2(whitespaces$3+"-0")!=-1/0||ITERATOR$c&&!fails$N((function(){$parseFloat$2(Object(ITERATOR$c))})),numberParseFloat$1=FORCED$b?function(e){var t=trim$2(toString$f(e)),r=$parseFloat$2(t);return 0===r&&"-"==charAt$a(t,0)?-0:r}:$parseFloat$2,$$17=_export$1,$parseFloat$1=numberParseFloat$1;$$17({global:!0,forced:parseFloat!=numberParseFloat$1},{parseFloat:numberParseFloat$1});var path$9=path$w,_parseFloat$c=path$9.parseFloat,parent$W=_parseFloat$c,_parseFloat$b=parent$W,parent$V=_parseFloat$b,_parseFloat$a=parent$V,parent$U=_parseFloat$a,_parseFloat$9=parent$U,_parseFloat$8=_parseFloat$9,_parseFloat$6=_parseFloat$8,_parseFloat$7=getDefaultExportFromCjs(_parseFloat$6),$$16=_export$1,parseFloat$2=numberParseFloat$1;$$16({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$2},{parseFloat:parseFloat$2});var path$8=path$w,_parseFloat$5=path$8.Number.parseFloat,parent$T=_parseFloat$5,_parseFloat$4=parent$T,parent$S=_parseFloat$4,_parseFloat$3=parent$S,parent$R=_parseFloat$3,_parseFloat$2=parent$R,_parseFloat$1=_parseFloat$2,_parseFloat=_parseFloat$1,_Number$parseFloat=getDefaultExportFromCjs(_parseFloat),$$15=_export$1;$$15({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var path$7=path$w,isNan$5=path$7.Number.isNaN,parent$Q=isNan$5,isNan$4=parent$Q,parent$P=isNan$4,isNan$3=parent$P,parent$O=isNan$3,isNan$2=parent$O,isNan$1=isNan$2,isNan=isNan$1,_Number$isNaN=getDefaultExportFromCjs(isNan),$$14=_export$1,$map$2=arrayIteration$1.map,arrayMethodHasSpeciesSupport$7=arrayMethodHasSpeciesSupport$b,HAS_SPECIES_SUPPORT$5=arrayMethodHasSpeciesSupport$7("map");$$14({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$5},{map:function(e){return $map$2(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$8=entryVirtual$f,map$c=entryVirtual$8("Array").map,isPrototypeOf$h=objectIsPrototypeOf$1,method$a=map$c,ArrayPrototype$a=Array.prototype,map$b=function(e){var t=e.map;return e===ArrayPrototype$a||isPrototypeOf$h(ArrayPrototype$a,e)&&t===ArrayPrototype$a.map?method$a:t},parent$N=map$b,map$a=parent$N,parent$M=map$a,map$9=parent$M,parent$L=map$9,map$8=parent$L,map$7=map$8,map$6=map$7,_mapInstanceProperty=getDefaultExportFromCjs(map$6),toObject$k=toObject$t,toAbsoluteIndex$9=toAbsoluteIndex$d,lengthOfArrayLike$m=lengthOfArrayLike$u,arrayFill$2=function(e){for(var t=toObject$k(this),r=lengthOfArrayLike$m(t),n=arguments.length,o=toAbsoluteIndex$9(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:toAbsoluteIndex$9(i,r);a>o;)t[o++]=e;return t},$$13=_export$1,fill$9=arrayFill$2;$$13({target:"Array",proto:!0},{fill:fill$9});var entryVirtual$7=entryVirtual$f,fill$8=entryVirtual$7("Array").fill,isPrototypeOf$g=objectIsPrototypeOf$1,method$9=fill$8,ArrayPrototype$9=Array.prototype,fill$7=function(e){var t=e.fill;return e===ArrayPrototype$9||isPrototypeOf$g(ArrayPrototype$9,e)&&t===ArrayPrototype$9.fill?method$9:t},parent$K=fill$7,fill$6=parent$K,parent$J=fill$6,fill$5=parent$J,parent$I=fill$5,fill$4=parent$I,fill$3=fill$4,fill$2=fill$3,_fillInstanceProperty=getDefaultExportFromCjs(fill$2),check=function(e){return e&&e.Math==Math&&e},global$H=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),shared$4={exports:{}},isPure=!1,global$G=global$H,defineProperty$d=Object.defineProperty,defineGlobalProperty$3=function(e,t){try{defineProperty$d(global$G,e,{value:t,configurable:!0,writable:!0})}catch(r){global$G[e]=t}return t},global$F=global$H,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$F[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var match,version,sharedExports=shared$4.exports,fails$M=function(e){try{return!!e()}catch(e){return!0}},fails$L=fails$M,functionBindNative=!fails$L((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$3=functionBindNative,FunctionPrototype$3=Function.prototype,call$x=FunctionPrototype$3.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$3.bind.bind(call$x,call$x),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$x.apply(e,arguments)}},isNullOrUndefined$7=function(e){return null==e},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$o=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$6(e))throw $TypeError$o("Can't call method on "+e);return e},requireObjectCoercible$5=requireObjectCoercible$6,$Object$4=Object,toObject$j=function(e){return $Object$4(requireObjectCoercible$5(e))},uncurryThis$N=functionUncurryThis,toObject$i=toObject$j,hasOwnProperty=uncurryThis$N({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$i(e),t)},uncurryThis$M=functionUncurryThis,id$1=0,postfix=Math.random(),toString$e=uncurryThis$M(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$e(++id$1+postfix,36)},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$w=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},global$E=global$H,isCallable$v=isCallable$w,aFunction=function(e){return isCallable$v(e)?e:void 0},getBuiltIn$b=function(e,t){return arguments.length<2?aFunction(global$E[e]):global$E[e]&&global$E[e][t]},getBuiltIn$a=getBuiltIn$b,engineUserAgent=getBuiltIn$a("navigator","userAgent")||"",global$D=global$H,userAgent$7=engineUserAgent,process$4=global$D.process,Deno$1=global$D.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$7&&(!(match=userAgent$7.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$7.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$K=fails$M,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$K((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41})),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,global$C=global$H,shared$3=sharedExports,hasOwn$k=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID$1=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$C.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID$1?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$3,wellKnownSymbol$q=function(e){if(!hasOwn$k(WellKnownSymbolsStore,e)||!NATIVE_SYMBOL&&"string"!=typeof WellKnownSymbolsStore[e]){var t="Symbol."+e;NATIVE_SYMBOL&&hasOwn$k(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=USE_SYMBOL_AS_UID$1&&symbolFor?symbolFor(t):createWellKnownSymbol(t)}return WellKnownSymbolsStore[e]},wellKnownSymbol$p=wellKnownSymbol$q,TO_STRING_TAG$4=wellKnownSymbol$p("toStringTag"),test$2={};test$2[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$2),objectDefineProperty={},fails$J=fails$M,descriptors=!fails$J((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),isCallable$u=isCallable$w,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$k=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$u(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$u(e)},global$B=global$H,isObject$j=isObject$k,document$3=global$B.document,EXISTS$1=isObject$j(document$3)&&isObject$j(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$s=descriptors,fails$I=fails$M,createElement$1=documentCreateElement$2,ie8DomDefine=!DESCRIPTORS$s&&!fails$I((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$r=descriptors,fails$H=fails$M,v8PrototypeDefineBug=DESCRIPTORS$r&&fails$H((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$i=isObject$k,$String$4=String,$TypeError$n=TypeError,anObject$k=function(e){if(isObject$i(e))return e;throw $TypeError$n($String$4(e)+" is not an object")},NATIVE_BIND$2=functionBindNative,call$w=Function.prototype.call,functionCall=NATIVE_BIND$2?call$w.bind(call$w):function(){return call$w.apply(call$w,arguments)},uncurryThis$L=functionUncurryThis,objectIsPrototypeOf=uncurryThis$L({}.isPrototypeOf),getBuiltIn$9=getBuiltIn$b,isCallable$t=isCallable$w,isPrototypeOf$f=objectIsPrototypeOf,USE_SYMBOL_AS_UID=useSymbolAsUid,$Object$3=Object,isSymbol$4=USE_SYMBOL_AS_UID?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$9("Symbol");return isCallable$t(t)&&isPrototypeOf$f(t.prototype,$Object$3(e))},$String$3=String,tryToString$8=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$s=isCallable$w,tryToString$7=tryToString$8,$TypeError$m=TypeError,aCallable$i=function(e){if(isCallable$s(e))return e;throw $TypeError$m(tryToString$7(e)+" is not a function")},aCallable$h=aCallable$i,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$4=function(e,t){var r=e[t];return isNullOrUndefined$5(r)?void 0:aCallable$h(r)},call$v=functionCall,isCallable$r=isCallable$w,isObject$h=isObject$k,$TypeError$l=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$r(r=e.toString)&&!isObject$h(n=call$v(r,e)))return n;if(isCallable$r(r=e.valueOf)&&!isObject$h(n=call$v(r,e)))return n;if("string"!==t&&isCallable$r(r=e.toString)&&!isObject$h(n=call$v(r,e)))return n;throw $TypeError$l("Can't convert object to primitive value")},call$u=functionCall,isObject$g=isObject$k,isSymbol$3=isSymbol$4,getMethod$3=getMethod$4,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$o=wellKnownSymbol$q,$TypeError$k=TypeError,TO_PRIMITIVE=wellKnownSymbol$o("toPrimitive"),toPrimitive$3=function(e,t){if(!isObject$g(e)||isSymbol$3(e))return e;var r,n=getMethod$3(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$u(n,e,t),!isObject$g(r)||isSymbol$3(r))return r;throw $TypeError$k("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$2=toPrimitive$3,isSymbol$2=isSymbol$4,toPropertyKey$4=function(e){var t=toPrimitive$2(e,"string");return isSymbol$2(t)?t:t+""},DESCRIPTORS$q=descriptors,IE8_DOM_DEFINE$1=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$j=anObject$k,toPropertyKey$3=toPropertyKey$4,$TypeError$j=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$q?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){if(anObject$j(e),t=toPropertyKey$3(t),anObject$j(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]){var n=$getOwnPropertyDescriptor$1(e,t);n&&n[WRITABLE]&&(e[t]=r.value,r={configurable:CONFIGURABLE$1 in r?r[CONFIGURABLE$1]:n[CONFIGURABLE$1],enumerable:ENUMERABLE in r?r[ENUMERABLE]:n[ENUMERABLE],writable:!1})}return $defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$j(e),t=toPropertyKey$3(t),anObject$j(r),IE8_DOM_DEFINE$1)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$j("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var makeBuiltIn$3={exports:{}},DESCRIPTORS$p=descriptors,hasOwn$j=hasOwnProperty_1,FunctionPrototype$2=Function.prototype,getDescriptor=DESCRIPTORS$p&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$j(FunctionPrototype$2,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$p||DESCRIPTORS$p&&getDescriptor(FunctionPrototype$2,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$K=functionUncurryThis,isCallable$q=isCallable$w,store$1=sharedStore,functionToString$1=uncurryThis$K(Function.toString);isCallable$q(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString$1(e)});var set$8,get$3,has$2,inspectSource$3=store$1.inspectSource,global$A=global$H,isCallable$p=isCallable$w,WeakMap$1=global$A.WeakMap,weakMapBasicDetection=isCallable$p(WeakMap$1)&&/native code/.test(String(WeakMap$1)),createPropertyDescriptor$7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},DESCRIPTORS$o=descriptors,definePropertyModule$6=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$7,createNonEnumerableProperty$a=DESCRIPTORS$o?function(e,t,r){return definePropertyModule$6.f(e,t,createPropertyDescriptor$6(1,r))}:function(e,t,r){return e[t]=r,e},shared$2=sharedExports,uid$2=uid$4,keys$2=shared$2("keys"),sharedKey$3=function(e){return keys$2[e]||(keys$2[e]=uid$2(e))},hiddenKeys$5={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$z=global$H,isObject$f=isObject$k,createNonEnumerableProperty$9=createNonEnumerableProperty$a,hasOwn$i=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$4=hiddenKeys$5,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$8=global$z.TypeError,WeakMap=global$z.WeakMap,enforce=function(e){return has$2(e)?get$3(e):set$8(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$f(t)||(r=get$3(t)).type!==e)throw TypeError$8("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$1.state){var store=shared$1.state||(shared$1.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$8=function(e,t){if(store.has(e))throw TypeError$8(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get$3=function(e){return store.get(e)||{}},has$2=function(e){return store.has(e)}}else{var STATE=sharedKey$2("state");hiddenKeys$4[STATE]=!0,set$8=function(e,t){if(hasOwn$i(e,STATE))throw TypeError$8(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$9(e,STATE,t),t},get$3=function(e){return hasOwn$i(e,STATE)?e[STATE]:{}},has$2=function(e){return hasOwn$i(e,STATE)}}var internalState={set:set$8,get:get$3,has:has$2,enforce:enforce,getterFor:getterFor},fails$G=fails$M,isCallable$o=isCallable$w,hasOwn$h=hasOwnProperty_1,DESCRIPTORS$n=descriptors,CONFIGURABLE_FUNCTION_NAME$2=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$c=internalState,enforceInternalState$2=InternalStateModule$c.enforce,getInternalState$6=InternalStateModule$c.get,defineProperty$c=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$n&&!fails$G((function(){return 8!==defineProperty$c((function(){}),"length",{value:8}).length})),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$h(e,"name")||CONFIGURABLE_FUNCTION_NAME$2&&e.name!==t)&&(DESCRIPTORS$n?defineProperty$c(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$h(r,"arity")&&e.length!==r.arity&&defineProperty$c(e,"length",{value:r.arity});try{r&&hasOwn$h(r,"constructor")&&r.constructor?DESCRIPTORS$n&&defineProperty$c(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=enforceInternalState$2(e);return hasOwn$h(n,"source")||(n.source=TEMPLATE.join("string"==typeof t?t:"")),e};Function.prototype.toString=makeBuiltIn$2((function(){return isCallable$o(this)&&getInternalState$6(this).source||inspectSource$2(this)}),"toString");var makeBuiltInExports=makeBuiltIn$3.exports,isCallable$n=isCallable$w,definePropertyModule$5=objectDefineProperty,makeBuiltIn$1=makeBuiltInExports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$h=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(isCallable$n(r)&&makeBuiltIn$1(r,i,n),n.global)o?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:definePropertyModule$5.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},uncurryThis$J=functionUncurryThis,toString$d=uncurryThis$J({}.toString),stringSlice$9=uncurryThis$J("".slice),classofRaw$2=function(e){return stringSlice$9(toString$d(e),8,-1)},TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$m=isCallable$w,classofRaw$1=classofRaw$2,wellKnownSymbol$n=wellKnownSymbol$q,TO_STRING_TAG$3=wellKnownSymbol$n("toStringTag"),$Object$2=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$h=TO_STRING_TAG_SUPPORT$2?classofRaw$1:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=$Object$2(e),TO_STRING_TAG$3))?r:CORRECT_ARGUMENTS?classofRaw$1(t):"Object"==(n=classofRaw$1(t))&&isCallable$m(t.callee)?"Arguments":n},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$g=classof$h,objectToString=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$g(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineBuiltIn$g=defineBuiltIn$h,toString$c=objectToString;TO_STRING_TAG_SUPPORT||defineBuiltIn$g(Object.prototype,"toString",toString$c,{unsafe:!0});var domIterables={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},documentCreateElement$1=documentCreateElement$2,classList=documentCreateElement$1("span").classList,DOMTokenListPrototype$2=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$2===Object.prototype?void 0:DOMTokenListPrototype$2,classofRaw=classofRaw$2,uncurryThis$I=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$I(e)},uncurryThis$H=functionUncurryThisClause,aCallable$g=aCallable$i,NATIVE_BIND$1=functionBindNative,bind$l=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$g(e),void 0===t?e:NATIVE_BIND$1?bind$l(e,t):function(){return e.apply(t,arguments)}},uncurryThis$G=functionUncurryThis,fails$F=fails$M,classof$f=classofRaw$2,$Object$1=Object,split$6=uncurryThis$G("".split),indexedObject=fails$F((function(){return!$Object$1("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$f(e)?split$6(e,""):$Object$1(e)}:$Object$1,ceil=Math.ceil,floor$b=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor$b:ceil)(t)},trunc3=mathTrunc,toIntegerOrInfinity$d=function(e){var t=+e;return t!=t||0===t?0:trunc3(t)},toIntegerOrInfinity$c=toIntegerOrInfinity$d,min$6=Math.min,toLength$6=function(e){return e>0?min$6(toIntegerOrInfinity$c(e),9007199254740991):0},toLength$5=toLength$6,lengthOfArrayLike$l=function(e){return toLength$5(e.length)},classof$e=classofRaw$2,isArray$5=Array.isArray||function(e){return"Array"==classof$e(e)},uncurryThis$F=functionUncurryThis,fails$E=fails$M,isCallable$l=isCallable$w,classof$d=classof$h,getBuiltIn$8=getBuiltIn$b,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct2=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$5=uncurryThis$F(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$l(e))return!1;try{return construct2(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$l(e))return!1;switch(classof$d(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$5(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct2||fails$E((function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){e=!0}))||e}))?isConstructorLegacy:isConstructorModern,isArray$4=isArray$5,isConstructor$3=isConstructor$4,isObject$e=isObject$k,wellKnownSymbol$m=wellKnownSymbol$q,SPECIES$6=wellKnownSymbol$m("species"),$Array$4=Array,arraySpeciesConstructor$1=function(e){var t;return isArray$4(e)&&(t=e.constructor,(isConstructor$3(t)&&(t===$Array$4||isArray$4(t.prototype))||isObject$e(t)&&null===(t=t[SPECIES$6]))&&(t=void 0)),void 0===t?$Array$4:t},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$4=function(e,t){return new(arraySpeciesConstructor(e))(0===t?0:t)},bind$k=functionBindContext,uncurryThis$E=functionUncurryThis,IndexedObject$7=indexedObject,toObject$h=toObject$j,lengthOfArrayLike$k=lengthOfArrayLike$l,arraySpeciesCreate$3=arraySpeciesCreate$4,push$e=uncurryThis$E([].push),createMethod$8=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,$){for(var d,A,p=toObject$h(c),f=IndexedObject$7(p),h=bind$k(l,u),y=lengthOfArrayLike$k(f),_=0,g=$||arraySpeciesCreate$3,m=t?g(c,y):r||a?g(c,0):void 0;y>_;_++)if((s||_ in f)&&(A=h(d=f[_],_,p),e))if(t)m[_]=A;else if(A)switch(e){case 3:return!0;case 5:return d;case 6:return _;case 2:push$e(m,d)}else switch(e){case 4:return!1;case 7:push$e(m,d)}return i?-1:n||o?o:m}},arrayIteration={forEach:createMethod$8(0),map:createMethod$8(1),filter:createMethod$8(2),some:createMethod$8(3),every:createMethod$8(4),find:createMethod$8(5),findIndex:createMethod$8(6),filterReject:createMethod$8(7)},fails$D=fails$M,arrayMethodIsStrict$7=function(e,t){var r=[][e];return!!r&&fails$D((function(){r.call(null,t||function(){return 1},1)}))},$forEach$1=arrayIteration.forEach,arrayMethodIsStrict$6=arrayMethodIsStrict$7,STRICT_METHOD$4=arrayMethodIsStrict$6("forEach"),arrayForEach=STRICT_METHOD$4?[].forEach:function(e){return $forEach$1(this,e,arguments.length>1?arguments[1]:void 0)},global$y=global$H,DOMIterables$2=domIterables,DOMTokenListPrototype$1=domTokenListPrototype,forEach$2=arrayForEach,createNonEnumerableProperty$8=createNonEnumerableProperty$a,handlePrototype$1=function(e){if(e&&e.forEach!==forEach$2)try{createNonEnumerableProperty$8(e,"forEach",forEach$2)}catch(t){e.forEach=forEach$2}};for(var COLLECTION_NAME$1 in DOMIterables$2)DOMIterables$2[COLLECTION_NAME$1]&&handlePrototype$1(global$y[COLLECTION_NAME$1]&&global$y[COLLECTION_NAME$1].prototype);handlePrototype$1(DOMTokenListPrototype$1);var objectGetOwnPropertyDescriptor={},objectPropertyIsEnumerable={},$propertyIsEnumerable$2={}.propertyIsEnumerable,getOwnPropertyDescriptor$7=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$7&&!$propertyIsEnumerable$2.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$7(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$2;var IndexedObject$6=indexedObject,requireObjectCoercible$4=requireObjectCoercible$6,toIndexedObject$c=function(e){return IndexedObject$6(requireObjectCoercible$4(e))},DESCRIPTORS$m=descriptors,call$t=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$5=createPropertyDescriptor$7,toIndexedObject$b=toIndexedObject$c,toPropertyKey$2=toPropertyKey$4,hasOwn$g=hasOwnProperty_1,IE8_DOM_DEFINE=ie8DomDefine,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$m?$getOwnPropertyDescriptor:function(e,t){if(e=toIndexedObject$b(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(e,t)}catch(e){}if(hasOwn$g(e,t))return createPropertyDescriptor$5(!call$t(propertyIsEnumerableModule$2.f,e,t),e[t])};var objectGetOwnPropertyNames={},toIntegerOrInfinity$b=toIntegerOrInfinity$d,max$5=Math.max,min$5=Math.min,toAbsoluteIndex$8=function(e,t){var r=toIntegerOrInfinity$b(e);return r<0?max$5(r+t,0):min$5(r,t)},toIndexedObject$a=toIndexedObject$c,toAbsoluteIndex$7=toAbsoluteIndex$8,lengthOfArrayLike$j=lengthOfArrayLike$l,createMethod$7=function(e){return function(t,r,n){var o,i=toIndexedObject$a(t),a=lengthOfArrayLike$j(i),s=toAbsoluteIndex$7(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},arrayIncludes={includes:createMethod$7(!0),indexOf:createMethod$7(!1)},uncurryThis$D=functionUncurryThis,hasOwn$f=hasOwnProperty_1,toIndexedObject$9=toIndexedObject$c,indexOf$8=arrayIncludes.indexOf,hiddenKeys$3=hiddenKeys$5,push$d=uncurryThis$D([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$9(e),o=0,i=[];for(r in n)!hasOwn$f(hiddenKeys$3,r)&&hasOwn$f(n,r)&&push$d(i,r);for(;t.length>o;)hasOwn$f(n,r=t[o++])&&(~indexOf$8(i,r)||push$d(i,r));return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$2=enumBugKeys$2.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$2)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$7=getBuiltIn$b,uncurryThis$C=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,anObject$i=anObject$k,concat$3=uncurryThis$C([].concat),ownKeys$1=getBuiltIn$7("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$i(e)),r=getOwnPropertySymbolsModule$2.f;return r?concat$3(t,r(e)):t},hasOwn$e=hasOwnProperty_1,ownKeys3=ownKeys$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule$4=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys3(t),o=definePropertyModule$4.f,i=getOwnPropertyDescriptorModule$1.f,a=0;a<n.length;a++){var s=n[a];hasOwn$e(e,s)||r&&hasOwn$e(r,s)||o(e,s,i(t,s))}},fails$C=fails$M,isCallable$k=isCallable$w,replacement=/#|\.prototype\./,isForced$3=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$k(t)?fails$C(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$x=global$H,getOwnPropertyDescriptor$6=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$7=createNonEnumerableProperty$a,defineBuiltIn$f=defineBuiltIn$h,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$2=isForced_1,_export=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?global$x:l?global$x[s]||defineGlobalProperty(s,{}):(global$x[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=getOwnPropertyDescriptor$6(r,n))&&a.value:r[n],!isForced$2(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;copyConstructorProperties(i,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$7(i,"sham",!0),defineBuiltIn$f(r,n,i,e)}},objectGetOwnPropertyNamesExternal={},toPropertyKey$1=toPropertyKey$4,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$4=createPropertyDescriptor$7,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$3.f(e,n,createPropertyDescriptor$4(0,r)):e[n]=r},toAbsoluteIndex$6=toAbsoluteIndex$8,lengthOfArrayLike$i=lengthOfArrayLike$l,createProperty$5=createProperty$6,$Array$3=Array,max$4=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$i(e),o=toAbsoluteIndex$6(t,n),i=toAbsoluteIndex$6(void 0===r?n:r,n),a=$Array$3(max$4(i-o,0)),s=0;o<i;o++,s++)createProperty$5(a,s,e[o]);return a.length=s,a},classof$c=classofRaw$2,toIndexedObject$8=toIndexedObject$c,$getOwnPropertyNames=objectGetOwnPropertyNames.f,arraySlice$b=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames(e)}catch(e){return arraySlice$b(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$c(e)?getWindowNames(e):$getOwnPropertyNames(toIndexedObject$8(e))};var $$12=_export,fails$B=fails$M,getOwnPropertyNames$3=objectGetOwnPropertyNamesExternal.f,FAILS_ON_PRIMITIVES$2=fails$B((function(){return!Object.getOwnPropertyNames(1)}));$$12({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{getOwnPropertyNames:getOwnPropertyNames$3});var classof$b=classof$h,$String$2=String,toString$b=function(e){if("Symbol"===classof$b(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$2(e)},anObject$h=anObject$k,regexpFlags$2=function(){var e=anObject$h(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$A=fails$M,global$w=global$H,$RegExp$2=global$w.RegExp,UNSUPPORTED_Y$1=fails$A((function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),MISSED_STICKY=UNSUPPORTED_Y$1||fails$A((function(){return!$RegExp$2("a","y").sticky})),BROKEN_CARET=UNSUPPORTED_Y$1||fails$A((function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$5=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$l=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$g=anObject$k,toIndexedObject$7=toIndexedObject$c,objectKeys$4=objectKeys$5;objectDefineProperties.f=DESCRIPTORS$l&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$g(e);for(var r,n=toIndexedObject$7(t),o=objectKeys$4(t),i=o.length,a=0;i>a;)definePropertyModule$2.f(e,r=o[a++],n[r]);return e};var activeXDocument,getBuiltIn$6=getBuiltIn$b,html$2=getBuiltIn$6("document","documentElement"),anObject$f=anObject$k,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys$1=hiddenKeys$5,html$1=html$2,documentCreateElement=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html$1.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys[e]];return NullProtoObject()};hiddenKeys$1[IE_PROTO$1]=!0;var objectCreate=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE$1]=anObject$f(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)},fails$z=fails$M,global$v=global$H,$RegExp$1=global$v.RegExp,regexpUnsupportedDotAll=fails$z((function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),fails$y=fails$M,global$u=global$H,$RegExp=global$u.RegExp,regexpUnsupportedNcg=fails$y((function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),call$s=functionCall,uncurryThis$B=functionUncurryThis,toString$a=toString$b,regexpFlags$1=regexpFlags$2,stickyHelpers=regexpStickyHelpers,shared=sharedExports,create$6=objectCreate,getInternalState$5=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$9=uncurryThis$B("".charAt),indexOf$7=uncurryThis$B("".indexOf),replace$8=uncurryThis$B("".replace),stringSlice$8=uncurryThis$B("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$s(nativeExec,e,"a"),call$s(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(e){var t,r,n,o,i,a,s,c=this,l=getInternalState$5(c),u=toString$a(e),$=l.raw;if($)return $.lastIndex=c.lastIndex,t=call$s(patchedExec,$,u),c.lastIndex=$.lastIndex,t;var d=l.groups,A=UNSUPPORTED_Y&&c.sticky,p=call$s(regexpFlags$1,c),f=c.source,h=0,y=u;if(A&&(p=replace$8(p,"y",""),-1===indexOf$7(p,"g")&&(p+="g"),y=stringSlice$8(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==charAt$9(u,c.lastIndex-1))&&(f="(?: "+f+")",y=" "+y,h++),r=new RegExp("^(?:"+f+")",p)),NPCG_INCLUDED&&(r=new RegExp("^"+f+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(n=c.lastIndex),o=call$s(nativeExec,A?r:c,y),A?o?(o.input=stringSlice$8(o.input,h),o[0]=stringSlice$8(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),NPCG_INCLUDED&&o&&o.length>1&&call$s(nativeReplace,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=create$6(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var regexpExec$2=patchedExec,$$11=_export,exec$4=regexpExec$2;$$11({target:"RegExp",proto:!0,forced:/./.exec!==regexpExec$2},{exec:regexpExec$2});var $$10=_export,call$r=functionCall,isCallable$j=isCallable$w,anObject$e=anObject$k,toString$9=toString$b,DELEGATES_TO_EXEC=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),nativeTest=/./.test;$$10({target:"RegExp",proto:!0,forced:!DELEGATES_TO_EXEC},{test:function(e){var t=anObject$e(this),r=toString$9(e),n=t.exec;if(!isCallable$j(n))return call$r(nativeTest,t,r);var o=call$r(n,t,r);return null!==o&&(anObject$e(o),!0)}});var NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,apply$5=FunctionPrototype$1.apply,call$q=FunctionPrototype$1.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call$q.bind(apply$5):function(){return call$q.apply(apply$5,arguments)}),uncurryThis$A=functionUncurryThisClause,defineBuiltIn$e=defineBuiltIn$h,regexpExec$1=regexpExec$2,fails$x=fails$M,wellKnownSymbol$l=wellKnownSymbol$q,createNonEnumerableProperty$6=createNonEnumerableProperty$a,SPECIES$5=wellKnownSymbol$l("species"),RegExpPrototype$5=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(e,t,r,n){var o=wellKnownSymbol$l(e),i=!fails$x((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!fails$x((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[SPECIES$5]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=uncurryThis$A(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=uncurryThis$A(e),c=t.exec;return c===regexpExec$1||c===RegExpPrototype$5.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));defineBuiltIn$e(String.prototype,e,c[0]),defineBuiltIn$e(RegExpPrototype$5,o,c[1])}n&&createNonEnumerableProperty$6(RegExpPrototype$5[o],"sham",!0)},uncurryThis$z=functionUncurryThis,toIntegerOrInfinity$a=toIntegerOrInfinity$d,toString$8=toString$b,requireObjectCoercible$3=requireObjectCoercible$6,charAt$8=uncurryThis$z("".charAt),charCodeAt$3=uncurryThis$z("".charCodeAt),stringSlice$7=uncurryThis$z("".slice),createMethod$6=function(e){return function(t,r){var n,o,i=toString$8(requireObjectCoercible$3(t)),a=toIntegerOrInfinity$a(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=charCodeAt$3(i,a))<55296||n>56319||a+1===s||(o=charCodeAt$3(i,a+1))<56320||o>57343?e?charAt$8(i,a):n:e?stringSlice$7(i,a,a+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$6(!1),charAt:createMethod$6(!0)},charAt$7=stringMultibyte.charAt,advanceStringIndex$1=function(e,t,r){return t+(r?charAt$7(e,t).length:1)},uncurryThis$y=functionUncurryThis,toObject$g=toObject$j,floor$a=Math.floor,charAt$6=uncurryThis$y("".charAt),replace$7=uncurryThis$y("".replace),stringSlice$6=uncurryThis$y("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==o&&(o=toObject$g(o),c=SUBSTITUTION_SYMBOLS),replace$7(i,c,(function(i,c){var l;switch(charAt$6(c,0)){case"$":return"$";case"&":return e;case"`":return stringSlice$6(t,0,r);case"'":return stringSlice$6(t,a);case"<":l=o[stringSlice$6(c,1,-1)];break;default:var u=+c;if(0===u)return i;if(u>s){var $=floor$a(u/10);return 0===$?i:$<=s?void 0===n[$-1]?charAt$6(c,1):n[$-1]+charAt$6(c,1):i}l=n[u-1]}return void 0===l?"":l}))},call$p=functionCall,anObject$d=anObject$k,isCallable$i=isCallable$w,classof$a=classofRaw$2,regexpExec=regexpExec$2,$TypeError$i=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$i(r)){var n=call$p(r,e,t);return null!==n&&anObject$d(n),n}if("RegExp"===classof$a(e))return call$p(regexpExec,e,t);throw $TypeError$i("RegExp#exec called on incompatible receiver")},apply$4=functionApply,call$o=functionCall,uncurryThis$x=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$w=fails$M,anObject$c=anObject$k,isCallable$h=isCallable$w,isNullOrUndefined$4=isNullOrUndefined$7,toIntegerOrInfinity$9=toIntegerOrInfinity$d,toLength$4=toLength$6,toString$7=toString$b,requireObjectCoercible$2=requireObjectCoercible$6,advanceStringIndex=advanceStringIndex$1,getMethod$2=getMethod$4,getSubstitution=getSubstitution$1,regExpExec$1=regexpExecAbstract,wellKnownSymbol$k=wellKnownSymbol$q,REPLACE=wellKnownSymbol$k("replace"),max$3=Math.max,min$4=Math.min,concat$2=uncurryThis$x([].concat),push$c=uncurryThis$x([].push),stringIndexOf=uncurryThis$x("".indexOf),stringSlice$5=uncurryThis$x("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$w((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));fixRegExpWellKnownSymbolLogic("replace",(function(e,t,r){var n=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,r){var n=requireObjectCoercible$2(this),o=isNullOrUndefined$4(e)?void 0:getMethod$2(e,REPLACE);return o?call$o(o,e,n,r):call$o(t,toString$7(n),e,r)},function(e,o){var i=anObject$c(this),a=toString$7(e);if("string"==typeof o&&-1===stringIndexOf(o,n)&&-1===stringIndexOf(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=isCallable$h(o);c||(o=toString$7(o));var l=i.global;if(l){var u=i.unicode;i.lastIndex=0}for(var $=[];;){var d=regExpExec$1(i,a);if(null===d)break;if(push$c($,d),!l)break;""===toString$7(d[0])&&(i.lastIndex=advanceStringIndex(a,toLength$4(i.lastIndex),u))}for(var A="",p=0,f=0;f<$.length;f++){for(var h=toString$7((d=$[f])[0]),y=max$3(min$4(toIntegerOrInfinity$9(d.index),a.length),0),_=[],g=1;g<d.length;g++)push$c(_,maybeToString(d[g]));var m=d.groups;if(c){var E=concat$2([h],_,y,a);void 0!==m&&push$c(E,m);var b=toString$7(apply$4(o,void 0,E))}else b=getSubstitution(h,a,y,_,m,o);y>=p&&(A+=stringSlice$5(a,p,y)+b,p=y+h.length)}return A+stringSlice$5(a,p)}]}),!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);var fails$v=fails$M,wellKnownSymbol$j=wellKnownSymbol$q,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$j("species"),arrayMethodHasSpeciesSupport$6=function(e){return V8_VERSION$2>=51||!fails$v((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$$=_export,$filter$1=arrayIteration.filter,arrayMethodHasSpeciesSupport$5=arrayMethodHasSpeciesSupport$6,HAS_SPECIES_SUPPORT$4=arrayMethodHasSpeciesSupport$5("filter");$$$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$4},{filter:function(e){return $filter$1(this,e,arguments.length>1?arguments[1]:void 0)}});var $location,defer,channel,port,classof$9=classofRaw$2,global$t=global$H,engineIsNode="process"==classof$9(global$t.process),isCallable$g=isCallable$w,$String$1=String,$TypeError$h=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$g(e))return e;throw $TypeError$h("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$w=functionUncurryThis,anObject$b=anObject$k,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThis$w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$b(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),defineProperty$b=objectDefineProperty.f,hasOwn$d=hasOwnProperty_1,wellKnownSymbol$i=wellKnownSymbol$q,TO_STRING_TAG$2=wellKnownSymbol$i("toStringTag"),setToStringTag$9=function(e,t,r){e&&!r&&(e=e.prototype),e&&!hasOwn$d(e,TO_STRING_TAG$2)&&defineProperty$b(e,TO_STRING_TAG$2,{configurable:!0,value:t})},getBuiltIn$5=getBuiltIn$b,definePropertyModule$1=objectDefineProperty,wellKnownSymbol$h=wellKnownSymbol$q,DESCRIPTORS$k=descriptors,SPECIES$3=wellKnownSymbol$h("species"),setSpecies$4=function(e){var t=getBuiltIn$5(e),r=definePropertyModule$1.f;DESCRIPTORS$k&&t&&!t[SPECIES$3]&&r(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$e=objectIsPrototypeOf,$TypeError$g=TypeError,anInstance$9=function(e,t){if(isPrototypeOf$e(t,e))return e;throw $TypeError$g("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$6=tryToString$8,$TypeError$f=TypeError,aConstructor$3=function(e){if(isConstructor$2(e))return e;throw $TypeError$f(tryToString$6(e)+" is not a constructor")},anObject$a=anObject$k,aConstructor$2=aConstructor$3,isNullOrUndefined$3=isNullOrUndefined$7,wellKnownSymbol$g=wellKnownSymbol$q,SPECIES$2=wellKnownSymbol$g("species"),speciesConstructor$3=function(e,t){var r,n=anObject$a(e).constructor;return void 0===n||isNullOrUndefined$3(r=anObject$a(n)[SPECIES$2])?t:aConstructor$2(r)},uncurryThis$v=functionUncurryThis,arraySlice$a=uncurryThis$v([].slice),$TypeError$e=TypeError,validateArgumentsLength$6=function(e,t){if(e<t)throw $TypeError$e("Not enough arguments");return e},userAgent$6=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$6),global$s=global$H,apply$3=functionApply,bind$j=functionBindContext,isCallable$f=isCallable$w,hasOwn$c=hasOwnProperty_1,fails$u=fails$M,html=html$2,arraySlice$9=arraySlice$a,createElement=documentCreateElement$2,validateArgumentsLength$5=validateArgumentsLength$6,IS_IOS$1=engineIsIos,IS_NODE$4=engineIsNode,set$7=global$s.setImmediate,clear=global$s.clearImmediate,process$3=global$s.process,Dispatch=global$s.Dispatch,Function$1=global$s.Function,MessageChannel=global$s.MessageChannel,String$1=global$s.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{$location=global$s.location}catch(e){}var run=function(e){if(hasOwn$c(queue$1,e)){var t=queue$1[e];delete queue$1[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$s.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set$7&&clear||(set$7=function(e){validateArgumentsLength$5(arguments.length,1);var t=isCallable$f(e)?e:Function$1(e),r=arraySlice$9(arguments,1);return queue$1[++counter]=function(){apply$3(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$4?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$j(port.postMessage,port)):global$s.addEventListener&&isCallable$f(global$s.postMessage)&&!global$s.importScripts&&$location&&"file:"!==$location.protocol&&!fails$u(post)?(defer=post,global$s.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var flush,head,last,notify$1,toggle,node,promise,then,task$1={set:set$7,clear:clear},userAgent$5=engineUserAgent,global$r=global$H,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$5)&&void 0!==global$r.Pebble,userAgent$4=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent$4),global$q=global$H,bind$i=functionBindContext,getOwnPropertyDescriptor$5=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$3=engineIsNode,MutationObserver=global$q.MutationObserver||global$q.WebKitMutationObserver,document$2=global$q.document,process$2=global$q.process,Promise$1=global$q.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$5(global$q,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;queueMicrotask||(flush=function(){var e,t;for(IS_NODE$3&&(e=process$2.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},IS_IOS||IS_NODE$3||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$i(promise.then,promise),notify$1=function(){then(flush)}):IS_NODE$3?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$i(macrotask,global$q),notify$1=function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}));var microtask$1=queueMicrotask||function(e){var t={fn:e,next:void 0};last&&(last.next=t),head||(head=t,notify$1()),last=t},global$p=global$H,hostReportErrors$1=function(e,t){var r=global$p.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null};Queue$1.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var queue=Queue$1,global$o=global$H,promiseNativeConstructor=global$o.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$2=engineIsNode,engineIsBrowser=!IS_DENO$1&&!IS_NODE$2&&"object"==typeof window&&"object"==typeof document,global$n=global$H,NativePromiseConstructor$4=promiseNativeConstructor,isCallable$e=isCallable$w,isForced$1=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$f=wellKnownSymbol$q,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION$1=engineV8Version;NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype;var SPECIES$1=wellKnownSymbol$f("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$e(global$n.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced$1("Promise",(function(){var e=inspectSource(NativePromiseConstructor$4),t=e!==String(NativePromiseConstructor$4);if(!t&&66===V8_VERSION$1)return!0;if(!V8_VERSION$1||V8_VERSION$1<51||!/native code/.test(e)){var r=new NativePromiseConstructor$4((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$1]=n,!(SUBCLASSING=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1})),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$f=aCallable$i,$TypeError$d=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$d("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$f(t),this.reject=aCallable$f(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,$$_=_export,IS_NODE$1=engineIsNode,global$m=global$H,call$n=functionCall,defineBuiltIn$d=defineBuiltIn$h,setPrototypeOf$5=objectSetPrototypeOf,setToStringTag$8=setToStringTag$9,setSpecies$3=setSpecies$4,aCallable$e=aCallable$i,isCallable$d=isCallable$w,isObject$d=isObject$k,anInstance$8=anInstance$9,speciesConstructor$2=speciesConstructor$3,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule$b=internalState,NativePromiseConstructor$3=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$b.getterFor(PROMISE),setInternalState$a=InternalStateModule$b.set,NativePromisePrototype$2=NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,PromiseConstructor=NativePromiseConstructor$3,PromisePrototype=NativePromisePrototype$2,TypeError$7=global$m.TypeError,document$1=global$m.document,process$1=global$m.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$m.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$d(e)||!isCallable$d(t=e.then))&&t},callReaction=function(e,t){var r,n,o,i=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?l(TypeError$7("Promise-chain cycle")):(n=isThenable(r))?call$n(n,r,c,l):c(r)):l(i)}catch(e){u&&!o&&u.exit(),l(e)}},notify=function(e,t){e.notified||(e.notified=!0,microtask((function(){for(var r,n=e.reactions;r=n.get();)callReaction(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled(e)})))},dispatchEvent=function(e,t,r){var n,o;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$m.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$m["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$n(task,global$m,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$2((function(){IS_NODE$1?process$1.emit("unhandledRejection",n,r):dispatchEvent(UNHANDLED_REJECTION,r,n)})),e.rejection=IS_NODE$1||isUnhandled(e)?UNHANDLED:HANDLED,t.error))throw t.value}))},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e){call$n(task,global$m,(function(){var t=e.facade;IS_NODE$1?process$1.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$h=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$7("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$n(n,t,bind$h(internalResolve,r,e),bind$h(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=FULFILLED,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$8(this,PromisePrototype),aCallable$e(e),call$n(Internal,this);var t=getInternalPromiseState(this);try{e(bind$h(internalResolve,t),bind$h(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$a(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$d(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$2(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$d(e)||e,n.fail=isCallable$d(t)&&t,n.domain=IS_NODE$1?process$1.domain:void 0,r.state==PENDING?r.reactions.add(n):microtask((function(){callReaction(n,r)})),n.promise})),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$h(internalResolve,t),this.reject=bind$h(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$d(NativePromiseConstructor$3)&&NativePromisePrototype$2!==Object.prototype)){nativeThen=NativePromisePrototype$2.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$d(NativePromisePrototype$2,"then",(function(e,t){var r=this;return new PromiseConstructor((function(e,t){call$n(nativeThen,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete NativePromisePrototype$2.constructor}catch(e){}setPrototypeOf$5&&setPrototypeOf$5(NativePromisePrototype$2,PromisePrototype)}$$_({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$8(PromiseConstructor,PROMISE,!1),setSpecies$3(PROMISE);var iterators={},wellKnownSymbol$e=wellKnownSymbol$q,Iterators$4=iterators,ITERATOR$b=wellKnownSymbol$e("iterator"),ArrayPrototype$8=Array.prototype,isArrayIteratorMethod$3=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$8[ITERATOR$b]===e)},classof$8=classof$h,getMethod$1=getMethod$4,isNullOrUndefined$2=isNullOrUndefined$7,Iterators$3=iterators,wellKnownSymbol$d=wellKnownSymbol$q,ITERATOR$a=wellKnownSymbol$d("iterator"),getIteratorMethod$6=function(e){if(!isNullOrUndefined$2(e))return getMethod$1(e,ITERATOR$a)||getMethod$1(e,"@@iterator")||Iterators$3[classof$8(e)]},call$m=functionCall,aCallable$d=aCallable$i,anObject$9=anObject$k,tryToString$5=tryToString$8,getIteratorMethod$5=getIteratorMethod$6,$TypeError$c=TypeError,getIterator$5=function(e,t){var r=arguments.length<2?getIteratorMethod$5(e):t;if(aCallable$d(r))return anObject$9(call$m(r,e));throw $TypeError$c(tryToString$5(e)+" is not iterable")},call$l=functionCall,anObject$8=anObject$k,getMethod=getMethod$4,iteratorClose$2=function(e,t,r){var n,o;anObject$8(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$l(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$8(n),r},bind$g=functionBindContext,call$k=functionCall,anObject$7=anObject$k,tryToString$4=tryToString$8,isArrayIteratorMethod$2=isArrayIteratorMethod$3,lengthOfArrayLike$h=lengthOfArrayLike$l,isPrototypeOf$d=objectIsPrototypeOf,getIterator$4=getIterator$5,getIteratorMethod$4=getIteratorMethod$6,iteratorClose$1=iteratorClose$2,$TypeError$b=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$i=function(e,t,r){var n,o,i,a,s,c,l,u=r&&r.that,$=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),f=bind$g(t,u),h=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},y=function(e){return $?(anObject$7(e),p?f(e[0],e[1],h):f(e[0],e[1])):p?f(e,h):f(e)};if(d)n=e.iterator;else if(A)n=e;else{if(!(o=getIteratorMethod$4(e)))throw $TypeError$b(tryToString$4(e)+" is not iterable");if(isArrayIteratorMethod$2(o)){for(i=0,a=lengthOfArrayLike$h(e);a>i;i++)if((s=y(e[i]))&&isPrototypeOf$d(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$4(e,o)}for(c=d?e.next:n.next;!(l=call$k(c,n)).done;){try{s=y(l.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$d(ResultPrototype,s))return s}return new Result(!1)},wellKnownSymbol$c=wellKnownSymbol$q,ITERATOR$9=wellKnownSymbol$c("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$9]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$2=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n={};n[ITERATOR$9]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$2=promiseNativeConstructor,checkCorrectnessOfIteration$1=checkCorrectnessOfIteration$2,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$1((function(e){NativePromiseConstructor$2.all(e).then(void 0,(function(){}))})),$$Z=_export,call$j=functionCall,aCallable$c=aCallable$i,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$h=iterate$i,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$Z({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,i=perform$1((function(){var r=aCallable$c(t.resolve),i=[],a=0,s=1;iterate$h(e,(function(e){var c=a++,l=!1;s++,call$j(r,t,e).then((function(e){l||(l=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var $$Y=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$1=promiseNativeConstructor,getBuiltIn$4=getBuiltIn$b,isCallable$c=isCallable$w,defineBuiltIn$c=defineBuiltIn$h,NativePromisePrototype$1=NativePromiseConstructor$1&&NativePromiseConstructor$1.prototype;if($$Y({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$c(NativePromiseConstructor$1)){var method$8=getBuiltIn$4("Promise").prototype.catch;NativePromisePrototype$1.catch!==method$8&&defineBuiltIn$c(NativePromisePrototype$1,"catch",method$8,{unsafe:!0})}var $$X=_export,call$i=functionCall,aCallable$b=aCallable$i,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate$g=iterate$i,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$X({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function(e){var t=this,r=newPromiseCapabilityModule$1.f(t),n=r.reject,o=perform((function(){var o=aCallable$b(t.resolve);iterate$g(e,(function(e){call$i(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$W=_export,call$h=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$W({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call$h(t.reject,void 0,e),t.promise}});var anObject$6=anObject$k,isObject$c=isObject$k,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$6(e),isObject$c(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$V=_export,getBuiltIn$3=getBuiltIn$b,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2;getBuiltIn$3("Promise"),$$V({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve$1(this,e)}});var $TypeError$a=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$3=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$a("Maximum allowed index exceeded");return e},$$U=_export,fails$t=fails$M,isArray$3=isArray$5,isObject$b=isObject$k,toObject$f=toObject$j,lengthOfArrayLike$g=lengthOfArrayLike$l,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$4=createProperty$6,arraySpeciesCreate$2=arraySpeciesCreate$4,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$6,wellKnownSymbol$b=wellKnownSymbol$q,V8_VERSION=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$b("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION>=51||!fails$t((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport$4("concat"),isConcatSpreadable=function(e){if(!isObject$b(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$3(e)},FORCED$a=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;$$U({target:"Array",proto:!0,arity:1,forced:FORCED$a},{concat:function(e){var t,r,n,o,i,a=toObject$f(this),s=arraySpeciesCreate$2(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(i=-1===t?a:arguments[t]))for(o=lengthOfArrayLike$g(i),doesNotExceedSafeInteger$2(c+o),r=0;r<o;r++,c++)r in i&&createProperty$4(s,c,i[r]);else doesNotExceedSafeInteger$2(c+1),createProperty$4(s,c++,i);return s.length=c,s}});var $$T=_export,NativePromiseConstructor=promiseNativeConstructor,fails$s=fails$M,getBuiltIn$2=getBuiltIn$b,isCallable$b=isCallable$w,speciesConstructor$1=speciesConstructor$3,promiseResolve=promiseResolve$2,defineBuiltIn$b=defineBuiltIn$h,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$s((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));if($$T({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor$1(this,getBuiltIn$2("Promise")),r=isCallable$b(e);return this.then(r?function(r){return promiseResolve(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve(t,e()).then((function(){throw r}))}:e)}}),isCallable$b(NativePromiseConstructor)){var method$7=getBuiltIn$2("Promise").prototype.finally;NativePromisePrototype.finally!==method$7&&defineBuiltIn$b(NativePromisePrototype,"finally",method$7,{unsafe:!0})}var isCallable$a=isCallable$w,isObject$a=isObject$k,setPrototypeOf$4=objectSetPrototypeOf,inheritIfRequired$2=function(e,t,r){var n,o;return setPrototypeOf$4&&isCallable$a(n=t.constructor)&&n!==r&&isObject$a(o=n.prototype)&&o!==r.prototype&&setPrototypeOf$4(e,o),e},uncurryThis$u=functionUncurryThis,thisNumberValue$2=uncurryThis$u(1..valueOf),whitespaces$2="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$t=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$6,toString$6=toString$b,whitespaces$1=whitespaces$2,replace$6=uncurryThis$t("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$5=function(e){return function(t){var r=toString$6(requireObjectCoercible$1(t));return 1&e&&(r=replace$6(r,ltrim,"")),2&e&&(r=replace$6(r,rtrim,"")),r}},stringTrim={start:createMethod$5(1),end:createMethod$5(2),trim:createMethod$5(3)},DESCRIPTORS$j=descriptors,global$l=global$H,uncurryThis$s=functionUncurryThis,isForced=isForced_1,defineBuiltIn$a=defineBuiltIn$h,hasOwn$b=hasOwnProperty_1,inheritIfRequired$1=inheritIfRequired$2,isPrototypeOf$c=objectIsPrototypeOf,isSymbol$1=isSymbol$4,toPrimitive$1=toPrimitive$3,fails$r=fails$M,getOwnPropertyNames$2=objectGetOwnPropertyNames.f,getOwnPropertyDescriptor$4=objectGetOwnPropertyDescriptor.f,defineProperty$a=objectDefineProperty.f,thisNumberValue$1=thisNumberValue$2,trim$1=stringTrim.trim,NUMBER="Number",NativeNumber=global$l[NUMBER],NumberPrototype=NativeNumber.prototype,TypeError$6=global$l.TypeError,arraySlice$8=uncurryThis$s("".slice),charCodeAt$2=uncurryThis$s("".charCodeAt),toNumeric=function(e){var t=toPrimitive$1(e,"number");return"bigint"==typeof t?t:toNumber(t)},toNumber=function(e){var t,r,n,o,i,a,s,c,l=toPrimitive$1(e,"number");if(isSymbol$1(l))throw TypeError$6("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=trim$1(l),43===(t=charCodeAt$2(l,0))||45===t){if(88===(r=charCodeAt$2(l,2))||120===r)return NaN}else if(48===t){switch(charCodeAt$2(l,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(a=(i=arraySlice$8(l,2)).length,s=0;s<a;s++)if((c=charCodeAt$2(i,s))<48||c>o)return NaN;return parseInt(i,n)}return+l};if(isForced(NUMBER,!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1"))){for(var key$1,NumberWrapper=function(e){var t=arguments.length<1?0:NativeNumber(toNumeric(e)),r=this;return isPrototypeOf$c(NumberPrototype,r)&&fails$r((function(){thisNumberValue$1(r)}))?inheritIfRequired$1(Object(t),r,NumberWrapper):t},keys$1=DESCRIPTORS$j?getOwnPropertyNames$2(NativeNumber):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j$1=0;keys$1.length>j$1;j$1++)hasOwn$b(NativeNumber,key$1=keys$1[j$1])&&!hasOwn$b(NumberWrapper,key$1)&&defineProperty$a(NumberWrapper,key$1,getOwnPropertyDescriptor$4(NativeNumber,key$1));NumberWrapper.prototype=NumberPrototype,NumberPrototype.constructor=NumberWrapper,defineBuiltIn$a(global$l,NUMBER,NumberWrapper,{constructor:!0})}var global$k=global$H,fails$q=fails$M,uncurryThis$r=functionUncurryThis,toString$5=toString$b,trim=stringTrim.trim,whitespaces=whitespaces$2,charAt$5=uncurryThis$r("".charAt),$parseFloat=global$k.parseFloat,Symbol$1=global$k.Symbol,ITERATOR$8=Symbol$1&&Symbol$1.iterator,FORCED$9=1/$parseFloat(whitespaces+"-0")!=-1/0||ITERATOR$8&&!fails$q((function(){$parseFloat(Object(ITERATOR$8))})),numberParseFloat=FORCED$9?function(e){var t=trim(toString$5(e)),r=$parseFloat(t);return 0===r&&"-"==charAt$5(t,0)?-0:r}:$parseFloat,$$S=_export,parseFloat$1=numberParseFloat;$$S({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$1},{parseFloat:parseFloat$1});var $$R=_export;$$R({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var $$Q=_export,$map$1=arrayIteration.map,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$6,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("map");$$Q({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{map:function(e){return $map$1(this,e,arguments.length>1?arguments[1]:void 0)}});var toObject$e=toObject$j,toAbsoluteIndex$5=toAbsoluteIndex$8,lengthOfArrayLike$f=lengthOfArrayLike$l,arrayFill$1=function(e){for(var t=toObject$e(this),r=lengthOfArrayLike$f(t),n=arguments.length,o=toAbsoluteIndex$5(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:toAbsoluteIndex$5(i,r);a>o;)t[o++]=e;return t},wellKnownSymbol$a=wellKnownSymbol$q,create$5=objectCreate,defineProperty$9=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$a("unscopables"),ArrayPrototype$7=Array.prototype;null==ArrayPrototype$7[UNSCOPABLES]&&defineProperty$9(ArrayPrototype$7,UNSCOPABLES,{configurable:!0,value:create$5(null)});var addToUnscopables$4=function(e){ArrayPrototype$7[UNSCOPABLES][e]=!0},$$P=_export,fill$1=arrayFill$1,addToUnscopables$3=addToUnscopables$4;$$P({target:"Array",proto:!0},{fill:fill$1}),addToUnscopables$3("fill");var ele,path$6=path$w,setInterval$4=path$6.setInterval,parent$H=setInterval$4,setInterval$3=parent$H,parent$G=setInterval$3,setInterval$2=parent$G,setInterval$1=setInterval$2,setInterval=setInterval$1,_setInterval=getDefaultExportFromCjs(setInterval),webm="data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK",mp4="data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw",oldIOS=function(){return"undefined"!=typeof navigator&&_parseFloat$7((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream},nativeWakeLock=function(){return"wakeLock"in navigator},NoSleep=function(){function e(){var t=this;_classCallCheck$2(this,e),this.enabled=!1,nativeWakeLock()?(this._wakeLock=null,this.handleVisibilityChange=function(){null!==t._wakeLock&&t.visible&&t.enable()},document.addEventListener("visibilitychange",this.handleVisibilityChange),document.addEventListener("fullscreenchange",this.handleVisibilityChange)):oldIOS()?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"mp4",mp4),this._addSourceToVideo(this.noSleepVideo,"webm",webm),this.noSleepVideo.addEventListener("loadedmetadata",(function(){t.noSleepVideo&&(t.noSleepVideo.duration<=1?t.noSleepVideo.setAttribute("loop",""):(t.onTimeupdate=function(){t.noSleepVideo.currentTime>.5&&(t.noSleepVideo.currentTime=Math.random())},t.noSleepVideo.addEventListener("timeupdate",t.onTimeupdate)))})))}return _createClass$2(e,[{key:"_addSourceToVideo",value:function(e,t,r){var n=document.createElement("source");n.src=r,n.type="video/".concat(t),e.appendChild(n)}},{key:"visible",get:function(){return"visible"===document.visibilityState}},{key:"isEnabled",get:function(){return this.enabled}},{key:"enable",value:function(){var e,t=this;if(nativeWakeLock()&&this.visible)return navigator.wakeLock.request("screen").then((function(e){t._wakeLock=e,t.enabled=!0,t._wakeLock.addEventListener("release",(function(){}))})).catch((function(){t.enabled=!1}));if(oldIOS())return this.disable(),console.warn("\n NoSleep enabled for older iOS devices. This can interrupt\n active or long-running network requests from completing successfully.\n See https://github.com/richtr/NoSleep.js/issues/15 for more details.\n "),this.noSleepTimer=_setInterval((function(){document.hidden||(window.location.href=window.location.href.split("#")[0],_setTimeout(window.stop,0))}),15e3),this.enabled=!0,_Promise.resolve();if(null!==(e=this.noSleepVideo)&&void 0!==e&&e.paused){var r=this.noSleepVideo.play();return r&&r.then((function(e){return t.enabled=!0,e})).catch((function(e){console.log("noSleep: ",e.message),t.enabled=!1}))}}},{key:"disable",value:function(){nativeWakeLock()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):oldIOS()?this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}},{key:"toPlay",value:function(){if(this.noSleepVideo&&this.noSleepVideo.paused){var e=performance.now();this.lastTs||(this.lastTs=e),e-this.lastTs>1e4&&(this.enable(),this.lastTs=e)}}},{key:"destroy",value:function(){this.disable(),this.handleVisibilityChange&&(document.removeEventListener("visibilitychange",this.handleVisibilityChange),document.removeEventListener("fullscreenchange",this.handleVisibilityChange)),this.onTimeupdate&&this.noSleepVideo.removeEventListener("timeupdate",this.onTimeupdate),this.noSleepVideo=null}}]),e}();function initBgSilenceAudio(){if(!document.querySelector("#hackAudioPP")){var e=document.createElement("div");e.innerHTML="<audio id='hackAudioPP'></audio>",document.body.appendChild(e);var t=e.children.item(0);t.controls=!1,t.preload="auto",t.innerHTML="<source src=".concat("data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAACAAACcQCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA//////////////////////////////////////////////////////////////////8AAABhTEFNRTMuMTAwA8MAAAAAAAAAABQgJAUHQQAB9AAAAnGMHkkIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//sQxAADgnABGiAAQBCqgCRMAAgEAH///////////////7+n/9FTuQsQH//////2NG0jWUGlio5gLQTOtIoeR2WX////X4s9Atb/JRVCbBUpeRUq//////////////////9RUi0f2jn/+xDECgPCjAEQAABN4AAANIAAAAQVTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQ==",' type="audio/mpeg"></source>'),t.muted=!0,t.loop=!0,t.play().catch((function(){}))}}function playSlienceAudio(){var e=ele||(ele=document.querySelector("#hackAudioPP"));e?!1===e.paused&&!1===e.muted||(e.muted=!1,e.play().catch((function(e){console.log("bgAudio: ",e.message)}))):initBgSilenceAudio()}function pauseSlienceAudio(){var e=ele||(ele=document.querySelector("#hackAudioPP"));e&&e.pause()}var $$O=_export$1,uncurryThis$q=functionUncurryThis$1,$Date=Date,thisTimeValue=uncurryThis$q($Date.prototype.getTime);$$O({target:"Date",stat:!0},{now:function(){return thisTimeValue(new $Date)}});var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,path$5=path$w,now$5=path$5.Date.now,parent$F=now$5,now$4=parent$F,parent$E=now$4,now$3=parent$E,parent$D=now$3,now$2=parent$D,now$1=now$2,now2=now$1,_Date$now=getDefaultExportFromCjs(now2),fails$p=fails$M,correctPrototypeGetter=!fails$p((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$a=hasOwnProperty_1,isCallable$9=isCallable$w,toObject$d=toObject$j,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$2=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t=toObject$d(e);if(hasOwn$a(t,IE_PROTO))return t[IE_PROTO];var r=t.constructor;return isCallable$9(r)&&t instanceof r?r.prototype:t instanceof $Object?ObjectPrototype$2:null},fails$o=fails$M,isCallable$8=isCallable$w,isObject$9=isObject$k,getPrototypeOf$3=objectGetPrototypeOf,defineBuiltIn$9=defineBuiltIn$h,wellKnownSymbol$9=wellKnownSymbol$q,ITERATOR$7=wellKnownSymbol$9("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$3(getPrototypeOf$3(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$9(IteratorPrototype$2)||fails$o((function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e}));NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable$8(IteratorPrototype$2[ITERATOR$7])||defineBuiltIn$9(IteratorPrototype$2,ITERATOR$7,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$4=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$7,setToStringTag$7=setToStringTag$9,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$4(IteratorPrototype$1,{next:createPropertyDescriptor$3(+!n,r)}),setToStringTag$7(e,o,!1),Iterators$2[o]=returnThis$1,e},$$N=_export,call$g=functionCall,FunctionName$1=functionName,isCallable$7=isCallable$w,createIteratorConstructor$2=iteratorCreateConstructor,getPrototypeOf$2=objectGetPrototypeOf,setPrototypeOf$3=objectSetPrototypeOf,setToStringTag$6=setToStringTag$9,createNonEnumerableProperty$5=createNonEnumerableProperty$a,defineBuiltIn$8=defineBuiltIn$h,wellKnownSymbol$8=wellKnownSymbol$q,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$2=FunctionName$1.PROPER,CONFIGURABLE_FUNCTION_NAME$1=FunctionName$1.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$8("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,i,a){createIteratorConstructor$2(r,t,n);var s,c,l,u=function(e){if(e===o&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in A)return A[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",d=!1,A=e.prototype,p=A[ITERATOR$6]||A["@@iterator"]||o&&A[o],f=!BUGGY_SAFARI_ITERATORS&&p||u(o),h="Array"==t&&A.entries||p;if(h&&(s=getPrototypeOf$2(h.call(new e)))!==Object.prototype&&s.next&&(getPrototypeOf$2(s)!==IteratorPrototype&&(setPrototypeOf$3?setPrototypeOf$3(s,IteratorPrototype):isCallable$7(s[ITERATOR$6])||defineBuiltIn$8(s,ITERATOR$6,returnThis)),setToStringTag$6(s,$,!0)),PROPER_FUNCTION_NAME$2&&o==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$1?createNonEnumerableProperty$5(A,"name",VALUES):(d=!0,f=function(){return call$g(p,this)})),o)if(c={values:u(VALUES),keys:i?f:u(KEYS),entries:u(ENTRIES)},a)for(l in c)(BUGGY_SAFARI_ITERATORS||d||!(l in A))&&defineBuiltIn$8(A,l,c[l]);else $$N({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||d},c);return A[ITERATOR$6]!==f&&defineBuiltIn$8(A,ITERATOR$6,f,{name:o}),Iterators$1[t]=f,c},createIterResultObject$3=function(e,t){return{value:e,done:t}},toIndexedObject$6=toIndexedObject$c,addToUnscopables$2=addToUnscopables$4,Iterators=iterators,InternalStateModule$a=internalState,defineProperty$8=objectDefineProperty.f,defineIterator$2=iteratorDefine,createIterResultObject$2=createIterResultObject$3,DESCRIPTORS$i=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$9=InternalStateModule$a.set,getInternalState$4=InternalStateModule$a.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$2(Array,"Array",(function(e,t){setInternalState$9(this,{type:ARRAY_ITERATOR,target:toIndexedObject$6(e),index:0,kind:t})}),(function(){var e=getInternalState$4(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$2(void 0,!0)):createIterResultObject$2("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables$2("keys"),addToUnscopables$2("values"),addToUnscopables$2("entries"),DESCRIPTORS$i&&"values"!==values.name)try{defineProperty$8(values,"name",{value:"values"})}catch(e){}var NAME$1,Constructor,Prototype,typedArrayConstructor={exports:{}},arrayBufferBasicDetection="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,NATIVE_ARRAY_BUFFER$1=arrayBufferBasicDetection,DESCRIPTORS$h=descriptors,global$j=global$H,isCallable$6=isCallable$w,isObject$8=isObject$k,hasOwn$9=hasOwnProperty_1,classof$7=classof$h,tryToString$3=tryToString$8,createNonEnumerableProperty$4=createNonEnumerableProperty$a,defineBuiltIn$7=defineBuiltIn$h,defineProperty$7=objectDefineProperty.f,isPrototypeOf$b=objectIsPrototypeOf,getPrototypeOf$1=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf,wellKnownSymbol$7=wellKnownSymbol$q,uid$1=uid$4,InternalStateModule$9=internalState,enforceInternalState$1=InternalStateModule$9.enforce,getInternalState$3=InternalStateModule$9.get,Int8Array$4=global$j.Int8Array,Int8ArrayPrototype$1=Int8Array$4&&Int8Array$4.prototype,Uint8ClampedArray$1=global$j.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray$1&&Uint8ClampedArray$1.prototype,TypedArray$1=Int8Array$4&&getPrototypeOf$1(Int8Array$4),TypedArrayPrototype$2=Int8ArrayPrototype$1&&getPrototypeOf$1(Int8ArrayPrototype$1),ObjectPrototype$1=Object.prototype,TypeError$5=global$j.TypeError,TO_STRING_TAG$1=wellKnownSymbol$7("toStringTag"),TYPED_ARRAY_TAG$1=uid$1("TYPED_ARRAY_TAG"),TYPED_ARRAY_CONSTRUCTOR="TypedArrayConstructor",NATIVE_ARRAY_BUFFER_VIEWS$2=NATIVE_ARRAY_BUFFER$1&&!!setPrototypeOf$2&&"Opera"!==classof$7(global$j.opera),TYPED_ARRAY_TAG_REQUIRED=!1,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},isView=function(e){if(!isObject$8(e))return!1;var t=classof$7(e);return"DataView"===t||hasOwn$9(TypedArrayConstructorsList,t)||hasOwn$9(BigIntArrayConstructorsList,t)},getTypedArrayConstructor$1=function(e){var t=getPrototypeOf$1(e);if(isObject$8(t)){var r=getInternalState$3(t);return r&&hasOwn$9(r,TYPED_ARRAY_CONSTRUCTOR)?r[TYPED_ARRAY_CONSTRUCTOR]:getTypedArrayConstructor$1(t)}},isTypedArray$1=function(e){if(!isObject$8(e))return!1;var t=classof$7(e);return hasOwn$9(TypedArrayConstructorsList,t)||hasOwn$9(BigIntArrayConstructorsList,t)},aTypedArray$p=function(e){if(isTypedArray$1(e))return e;throw TypeError$5("Target is not a typed array")},aTypedArrayConstructor$3=function(e){if(isCallable$6(e)&&(!setPrototypeOf$2||isPrototypeOf$b(TypedArray$1,e)))return e;throw TypeError$5(tryToString$3(e)+" is not a typed array constructor")},exportTypedArrayMethod$q=function(e,t,r,n){if(DESCRIPTORS$h){if(r)for(var o in TypedArrayConstructorsList){var i=global$j[o];if(i&&hasOwn$9(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}TypedArrayPrototype$2[e]&&!r||defineBuiltIn$7(TypedArrayPrototype$2,e,r?t:NATIVE_ARRAY_BUFFER_VIEWS$2&&Int8ArrayPrototype$1[e]||t,n)}},exportTypedArrayStaticMethod=function(e,t,r){var n,o;if(DESCRIPTORS$h){if(setPrototypeOf$2){if(r)for(n in TypedArrayConstructorsList)if((o=global$j[n])&&hasOwn$9(o,e))try{delete o[e]}catch(e){}if(TypedArray$1[e]&&!r)return;try{return defineBuiltIn$7(TypedArray$1,e,r?t:NATIVE_ARRAY_BUFFER_VIEWS$2&&TypedArray$1[e]||t)}catch(e){}}for(n in TypedArrayConstructorsList)!(o=global$j[n])||o[e]&&!r||defineBuiltIn$7(o,e,t)}};for(NAME$1 in TypedArrayConstructorsList)(Prototype=(Constructor=global$j[NAME$1])&&Constructor.prototype)?enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR]=Constructor:NATIVE_ARRAY_BUFFER_VIEWS$2=!1;for(NAME$1 in BigIntArrayConstructorsList)(Prototype=(Constructor=global$j[NAME$1])&&Constructor.prototype)&&(enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR]=Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS$2||!isCallable$6(TypedArray$1)||TypedArray$1===Function.prototype)&&(TypedArray$1=function(){throw TypeError$5("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$2))for(NAME$1 in TypedArrayConstructorsList)global$j[NAME$1]&&setPrototypeOf$2(global$j[NAME$1],TypedArray$1);if((!NATIVE_ARRAY_BUFFER_VIEWS$2||!TypedArrayPrototype$2||TypedArrayPrototype$2===ObjectPrototype$1)&&(TypedArrayPrototype$2=TypedArray$1.prototype,NATIVE_ARRAY_BUFFER_VIEWS$2))for(NAME$1 in TypedArrayConstructorsList)global$j[NAME$1]&&setPrototypeOf$2(global$j[NAME$1].prototype,TypedArrayPrototype$2);if(NATIVE_ARRAY_BUFFER_VIEWS$2&&getPrototypeOf$1(Uint8ClampedArrayPrototype)!==TypedArrayPrototype$2&&setPrototypeOf$2(Uint8ClampedArrayPrototype,TypedArrayPrototype$2),DESCRIPTORS$h&&!hasOwn$9(TypedArrayPrototype$2,TO_STRING_TAG$1))for(NAME$1 in TYPED_ARRAY_TAG_REQUIRED=!0,defineProperty$7(TypedArrayPrototype$2,TO_STRING_TAG$1,{get:function(){return isObject$8(this)?this[TYPED_ARRAY_TAG$1]:void 0}}),TypedArrayConstructorsList)global$j[NAME$1]&&createNonEnumerableProperty$4(global$j[NAME$1],TYPED_ARRAY_TAG$1,NAME$1);var arrayBufferViewCore={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$2,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG$1,aTypedArray:aTypedArray$p,aTypedArrayConstructor:aTypedArrayConstructor$3,exportTypedArrayMethod:exportTypedArrayMethod$q,exportTypedArrayStaticMethod:exportTypedArrayStaticMethod,getTypedArrayConstructor:getTypedArrayConstructor$1,isView:isView,isTypedArray:isTypedArray$1,TypedArray:TypedArray$1,TypedArrayPrototype:TypedArrayPrototype$2},global$i=global$H,fails$n=fails$M,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,NATIVE_ARRAY_BUFFER_VIEWS$1=arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$3=global$i.ArrayBuffer,Int8Array$3=global$i.Int8Array,typedArrayConstructorsRequireWrappers=!NATIVE_ARRAY_BUFFER_VIEWS$1||!fails$n((function(){Int8Array$3(1)}))||!fails$n((function(){new Int8Array$3(-1)}))||!checkCorrectnessOfIteration((function(e){new Int8Array$3,new Int8Array$3(null),new Int8Array$3(1.5),new Int8Array$3(e)}),!0)||fails$n((function(){return 1!==new Int8Array$3(new ArrayBuffer$3(2),1,void 0).length})),defineBuiltIn$6=defineBuiltIn$h,defineBuiltIns$5=function(e,t,r){for(var n in t)defineBuiltIn$6(e,n,t[n],r);return e},toIntegerOrInfinity$8=toIntegerOrInfinity$d,toLength$3=toLength$6,$RangeError$6=RangeError,toIndex$2=function(e){if(void 0===e)return 0;var t=toIntegerOrInfinity$8(e),r=toLength$3(t);if(t!==r)throw $RangeError$6("Wrong length or index");return r},$Array$2=Array,abs=Math.abs,pow$3=Math.pow,floor$9=Math.floor,log$1=Math.log,LN2=Math.LN2,pack=function(e,t,r){var n,o,i,a=$Array$2(r),s=8*r-t-1,c=(1<<s)-1,l=c>>1,u=23===t?pow$3(2,-24)-pow$3(2,-77):0,$=e<0||0===e&&1/e<0?1:0,d=0;for((e=abs(e))!=e||e===1/0?(o=e!=e?1:0,n=c):(n=floor$9(log$1(e)/LN2),e*(i=pow$3(2,-n))<1&&(n--,i*=2),(e+=n+l>=1?u/i:u*pow$3(2,1-l))*i>=2&&(n++,i/=2),n+l>=c?(o=0,n=c):n+l>=1?(o=(e*i-1)*pow$3(2,t),n+=l):(o=e*pow$3(2,l-1)*pow$3(2,t),n=0));t>=8;)a[d++]=255&o,o/=256,t-=8;for(n=n<<t|o,s+=t;s>0;)a[d++]=255&n,n/=256,s-=8;return a[--d]|=128*$,a},unpack=function(e,t){var r,n=e.length,o=8*n-t-1,i=(1<<o)-1,a=i>>1,s=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;s>0;)u=256*u+e[c--],s-=8;for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===u)u=1-a;else{if(u===i)return r?NaN:l?-1/0:1/0;r+=pow$3(2,t),u-=a}return(l?-1:1)*r*pow$3(2,u-t)},ieee754={pack:pack,unpack:unpack},global$h=global$H,uncurryThis$p=functionUncurryThis,DESCRIPTORS$g=descriptors,NATIVE_ARRAY_BUFFER=arrayBufferBasicDetection,FunctionName=functionName,createNonEnumerableProperty$3=createNonEnumerableProperty$a,defineBuiltIns$4=defineBuiltIns$5,fails$m=fails$M,anInstance$7=anInstance$9,toIntegerOrInfinity$7=toIntegerOrInfinity$d,toLength$2=toLength$6,toIndex$1=toIndex$2,IEEE754=ieee754,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,getOwnPropertyNames$1=objectGetOwnPropertyNames.f,defineProperty$6=objectDefineProperty.f,arrayFill=arrayFill$1,arraySlice$7=arraySliceSimple,setToStringTag$5=setToStringTag$9,InternalStateModule$8=internalState,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,getInternalState$2=InternalStateModule$8.get,setInternalState$8=InternalStateModule$8.set,ARRAY_BUFFER$1="ArrayBuffer",DATA_VIEW="DataView",PROTOTYPE="prototype",WRONG_LENGTH$1="Wrong length",WRONG_INDEX="Wrong index",NativeArrayBuffer$1=global$h[ARRAY_BUFFER$1],$ArrayBuffer=NativeArrayBuffer$1,ArrayBufferPrototype$1=$ArrayBuffer&&$ArrayBuffer[PROTOTYPE],$DataView=global$h[DATA_VIEW],DataViewPrototype=$DataView&&$DataView[PROTOTYPE],ObjectPrototype=Object.prototype,Array$1=global$h.Array,RangeError$3=global$h.RangeError,fill3=uncurryThis$p(arrayFill),reverse2=uncurryThis$p([].reverse),packIEEE754=IEEE754.pack,unpackIEEE754=IEEE754.unpack,packInt8=function(e){return[255&e]},packInt16=function(e){return[255&e,e>>8&255]},packInt32=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},unpackInt32=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},packFloat32=function(e){return packIEEE754(e,23,4)},packFloat64=function(e){return packIEEE754(e,52,8)},addGetter$1=function(e,t){defineProperty$6(e[PROTOTYPE],t,{get:function(){return getInternalState$2(this)[t]}})},get$2=function(e,t,r,n){var o=toIndex$1(r),i=getInternalState$2(e);if(o+t>i.byteLength)throw RangeError$3(WRONG_INDEX);var a=getInternalState$2(i.buffer).bytes,s=o+i.byteOffset,c=arraySlice$7(a,s,s+t);return n?c:reverse2(c)},set$6=function(e,t,r,n,o,i){var a=toIndex$1(r),s=getInternalState$2(e);if(a+t>s.byteLength)throw RangeError$3(WRONG_INDEX);for(var c=getInternalState$2(s.buffer).bytes,l=a+s.byteOffset,u=n(+o),$=0;$<t;$++)c[l+$]=u[i?$:t-$-1]};if(NATIVE_ARRAY_BUFFER){var INCORRECT_ARRAY_BUFFER_NAME=PROPER_FUNCTION_NAME$1&&NativeArrayBuffer$1.name!==ARRAY_BUFFER$1;if(fails$m((function(){NativeArrayBuffer$1(1)}))&&fails$m((function(){new NativeArrayBuffer$1(-1)}))&&!fails$m((function(){return new NativeArrayBuffer$1,new NativeArrayBuffer$1(1.5),new NativeArrayBuffer$1(NaN),1!=NativeArrayBuffer$1.length||INCORRECT_ARRAY_BUFFER_NAME&&!CONFIGURABLE_FUNCTION_NAME})))INCORRECT_ARRAY_BUFFER_NAME&&CONFIGURABLE_FUNCTION_NAME&&createNonEnumerableProperty$3(NativeArrayBuffer$1,"name",ARRAY_BUFFER$1);else{($ArrayBuffer=function(e){return anInstance$7(this,ArrayBufferPrototype$1),new NativeArrayBuffer$1(toIndex$1(e))})[PROTOTYPE]=ArrayBufferPrototype$1;for(var key,keys8=getOwnPropertyNames$1(NativeArrayBuffer$1),j=0;keys8.length>j;)(key=keys8[j++])in $ArrayBuffer||createNonEnumerableProperty$3($ArrayBuffer,key,NativeArrayBuffer$1[key]);ArrayBufferPrototype$1.constructor=$ArrayBuffer}setPrototypeOf$1&&getPrototypeOf2(DataViewPrototype)!==ObjectPrototype&&setPrototypeOf$1(DataViewPrototype,ObjectPrototype);var testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis$p(DataViewPrototype.setInt8);testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),!testView.getInt8(0)&&testView.getInt8(1)||defineBuiltIns$4(DataViewPrototype,{setInt8:function(e,t){$setInt8(this,e,t<<24>>24)},setUint8:function(e,t){$setInt8(this,e,t<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype$1=($ArrayBuffer=function(e){anInstance$7(this,ArrayBufferPrototype$1);var t=toIndex$1(e);setInternalState$8(this,{bytes:fill3(Array$1(t),0),byteLength:t}),DESCRIPTORS$g||(this.byteLength=t)})[PROTOTYPE],DataViewPrototype=($DataView=function(e,t,r){anInstance$7(this,DataViewPrototype),anInstance$7(e,ArrayBufferPrototype$1);var n=getInternalState$2(e).byteLength,o=toIntegerOrInfinity$7(t);if(o<0||o>n)throw RangeError$3("Wrong offset");if(o+(r=void 0===r?n-o:toLength$2(r))>n)throw RangeError$3(WRONG_LENGTH$1);setInternalState$8(this,{buffer:e,byteLength:r,byteOffset:o}),DESCRIPTORS$g||(this.buffer=e,this.byteLength=r,this.byteOffset=o)})[PROTOTYPE],DESCRIPTORS$g&&(addGetter$1($ArrayBuffer,"byteLength"),addGetter$1($DataView,"buffer"),addGetter$1($DataView,"byteLength"),addGetter$1($DataView,"byteOffset")),defineBuiltIns$4(DataViewPrototype,{getInt8:function(e){return get$2(this,1,e)[0]<<24>>24},getUint8:function(e){return get$2(this,1,e)[0]},getInt16:function(e){var t=get$2(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=get$2(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return unpackInt32(get$2(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return unpackInt32(get$2(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return unpackIEEE754(get$2(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return unpackIEEE754(get$2(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){set$6(this,1,e,packInt8,t)},setUint8:function(e,t){set$6(this,1,e,packInt8,t)},setInt16:function(e,t){set$6(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){set$6(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){set$6(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){set$6(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){set$6(this,4,e,packFloat32,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){set$6(this,8,e,packFloat64,t,arguments.length>2?arguments[2]:void 0)}});setToStringTag$5($ArrayBuffer,ARRAY_BUFFER$1),setToStringTag$5($DataView,DATA_VIEW);var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},isObject$7=isObject$k,floor$8=Math.floor,isIntegralNumber$1=Number.isInteger||function(e){return!isObject$7(e)&&isFinite(e)&&floor$8(e)===e},toIntegerOrInfinity$6=toIntegerOrInfinity$d,$RangeError$5=RangeError,toPositiveInteger$1=function(e){var t=toIntegerOrInfinity$6(e);if(t<0)throw $RangeError$5("The argument can't be less than 0");return t},toPositiveInteger=toPositiveInteger$1,$RangeError$4=RangeError,toOffset$2=function(e,t){var r=toPositiveInteger(e);if(r%t)throw $RangeError$4("Wrong offset");return r},classof$6=classof$h,uncurryThis$o=functionUncurryThis,slice$1=uncurryThis$o("".slice),isBigIntArray$1=function(e){return"Big"===slice$1(classof$6(e),0,3)},toPrimitive=toPrimitive$3,$TypeError$9=TypeError,toBigInt$2=function(e){var t=toPrimitive(e,"number");if("number"==typeof t)throw $TypeError$9("Can't convert number to bigint");return BigInt(t)},bind$f=functionBindContext,call$f=functionCall,aConstructor$1=aConstructor$3,toObject$c=toObject$j,lengthOfArrayLike$e=lengthOfArrayLike$l,getIterator$3=getIterator$5,getIteratorMethod$3=getIteratorMethod$6,isArrayIteratorMethod$1=isArrayIteratorMethod$3,isBigIntArray=isBigIntArray$1,aTypedArrayConstructor$2=arrayBufferViewCore.aTypedArrayConstructor,toBigInt$1=toBigInt$2,typedArrayFrom$1=function(e){var t,r,n,o,i,a,s,c,l=aConstructor$1(this),u=toObject$c(e),$=arguments.length,d=$>1?arguments[1]:void 0,A=void 0!==d,p=getIteratorMethod$3(u);if(p&&!isArrayIteratorMethod$1(p))for(c=(s=getIterator$3(u,p)).next,u=[];!(a=call$f(c,s)).done;)u.push(a.value);for(A&&$>2&&(d=bind$f(d,arguments[2])),r=lengthOfArrayLike$e(u),n=new(aTypedArrayConstructor$2(l))(r),o=isBigIntArray(n),t=0;r>t;t++)i=A?d(u[t],t):u[t],n[t]=o?toBigInt$1(i):+i;return n},$$M=_export,global$g=global$H,call$e=functionCall,DESCRIPTORS$f=descriptors,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS=typedArrayConstructorsRequireWrappers,ArrayBufferViewCore$q=arrayBufferViewCore,ArrayBufferModule=arrayBuffer,anInstance$6=anInstance$9,createPropertyDescriptor$2=createPropertyDescriptor$7,createNonEnumerableProperty$2=createNonEnumerableProperty$a,isIntegralNumber=isIntegralNumber$1,toLength$1=toLength$6,toIndex=toIndex$2,toOffset$1=toOffset$2,toPropertyKey=toPropertyKey$4,hasOwn$8=hasOwnProperty_1,classof$5=classof$h,isObject$6=isObject$k,isSymbol=isSymbol$4,create$3=objectCreate,isPrototypeOf$a=objectIsPrototypeOf,setPrototypeOf=objectSetPrototypeOf,getOwnPropertyNames7=objectGetOwnPropertyNames.f,typedArrayFrom=typedArrayFrom$1,forEach$1=arrayIteration.forEach,setSpecies$2=setSpecies$4,definePropertyModule=objectDefineProperty,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,InternalStateModule$7=internalState,inheritIfRequired=inheritIfRequired$2,getInternalState$1=InternalStateModule$7.get,setInternalState$7=InternalStateModule$7.set,enforceInternalState=InternalStateModule$7.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,round=Math.round,RangeError$2=global$g.RangeError,ArrayBuffer$2=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer$2.prototype,DataView$1=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore$q.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore$q.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore$q.TypedArray,TypedArrayPrototype$1=ArrayBufferViewCore$q.TypedArrayPrototype,aTypedArrayConstructor$1=ArrayBufferViewCore$q.aTypedArrayConstructor,isTypedArray=ArrayBufferViewCore$q.isTypedArray,BYTES_PER_ELEMENT="BYTES_PER_ELEMENT",WRONG_LENGTH="Wrong length",fromList=function(e,t){aTypedArrayConstructor$1(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},addGetter=function(e,t){nativeDefineProperty(e,t,{get:function(){return getInternalState$1(this)[t]}})},isArrayBuffer=function(e){var t;return isPrototypeOf$a(ArrayBufferPrototype,e)||"ArrayBuffer"==(t=classof$5(e))||"SharedArrayBuffer"==t},isTypedArrayIndex=function(e,t){return isTypedArray(e)&&!isSymbol(t)&&t in e&&isIntegralNumber(+t)&&t>=0},wrappedGetOwnPropertyDescriptor=function(e,t){return t=toPropertyKey(t),isTypedArrayIndex(e,t)?createPropertyDescriptor$2(2,e[t]):nativeGetOwnPropertyDescriptor(e,t)},wrappedDefineProperty=function(e,t,r){return t=toPropertyKey(t),!(isTypedArrayIndex(e,t)&&isObject$6(r)&&hasOwn$8(r,"value"))||hasOwn$8(r,"get")||hasOwn$8(r,"set")||r.configurable||hasOwn$8(r,"writable")&&!r.writable||hasOwn$8(r,"enumerable")&&!r.enumerable?nativeDefineProperty(e,t,r):(e[t]=r.value,e)};DESCRIPTORS$f?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype$1,"buffer"),addGetter(TypedArrayPrototype$1,"byteOffset"),addGetter(TypedArrayPrototype$1,"byteLength"),addGetter(TypedArrayPrototype$1,"length")),$$M({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),typedArrayConstructor.exports=function(e,t,r){var n=e.match(/\d+$/)[0]/8,o=e+(r?"Clamped":"")+"Array",i="get"+e,a="set"+e,s=global$g[o],c=s,l=c&&c.prototype,u={},$=function(e,t){nativeDefineProperty(e,t,{get:function(){return function(e,t){var r=getInternalState$1(e);return r.view[i](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var i=getInternalState$1(e);r&&(o=(o=round(o))<0?0:o>255?255:255&o),i.view[a](t*n+i.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS&&(c=t((function(e,t,r,o){return anInstance$6(e,l),inheritIfRequired(isObject$6(t)?isArrayBuffer(t)?void 0!==o?new s(t,toOffset$1(r,n),o):void 0!==r?new s(t,toOffset$1(r,n)):new s(t):isTypedArray(t)?fromList(c,t):call$e(typedArrayFrom,c,t):new s(toIndex(t)),e,c)})),setPrototypeOf&&setPrototypeOf(c,TypedArray),forEach$1(getOwnPropertyNames7(s),(function(e){e in c||createNonEnumerableProperty$2(c,e,s[e])})),c.prototype=l):(c=t((function(e,t,r,o){anInstance$6(e,l);var i,a,s,u=0,d=0;if(isObject$6(t)){if(!isArrayBuffer(t))return isTypedArray(t)?fromList(c,t):call$e(typedArrayFrom,c,t);i=t,d=toOffset$1(r,n);var A=t.byteLength;if(void 0===o){if(A%n)throw RangeError$2(WRONG_LENGTH);if((a=A-d)<0)throw RangeError$2(WRONG_LENGTH)}else if((a=toLength$1(o)*n)+d>A)throw RangeError$2(WRONG_LENGTH);s=a/n}else s=toIndex(t),i=new ArrayBuffer$2(a=s*n);for(setInternalState$7(e,{buffer:i,byteOffset:d,byteLength:a,length:s,view:new DataView$1(i)});u<s;)$(e,u++)})),setPrototypeOf&&setPrototypeOf(c,TypedArray),l=c.prototype=create$3(TypedArrayPrototype$1)),l.constructor!==c&&createNonEnumerableProperty$2(l,"constructor",c),enforceInternalState(l).TypedArrayConstructor=c,TYPED_ARRAY_TAG&&createNonEnumerableProperty$2(l,TYPED_ARRAY_TAG,o);var d=c!=s;u[o]=c,$$M({global:!0,constructor:!0,forced:d,sham:!NATIVE_ARRAY_BUFFER_VIEWS},u),BYTES_PER_ELEMENT in c||createNonEnumerableProperty$2(c,BYTES_PER_ELEMENT,n),BYTES_PER_ELEMENT in l||createNonEnumerableProperty$2(l,BYTES_PER_ELEMENT,n),setSpecies$2(o)}):typedArrayConstructor.exports=function(){};var typedArrayConstructorExports=typedArrayConstructor.exports,createTypedArrayConstructor$1=typedArrayConstructorExports;createTypedArrayConstructor$1("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var ArrayBufferViewCore$p=arrayBufferViewCore,lengthOfArrayLike$d=lengthOfArrayLike$l,toIntegerOrInfinity$5=toIntegerOrInfinity$d,aTypedArray$o=ArrayBufferViewCore$p.aTypedArray,exportTypedArrayMethod$p=ArrayBufferViewCore$p.exportTypedArrayMethod;exportTypedArrayMethod$p("at",(function(e){var t=aTypedArray$o(this),r=lengthOfArrayLike$d(t),n=toIntegerOrInfinity$5(e),o=n>=0?n:r+n;return o<0||o>=r?void 0:t[o]}));var tryToString$2=tryToString$8,$TypeError$8=TypeError,deletePropertyOrThrow$6=function(e,t){if(!delete e[t])throw $TypeError$8("Cannot delete property "+tryToString$2(t)+" of "+tryToString$2(e))},toObject$b=toObject$j,toAbsoluteIndex$4=toAbsoluteIndex$8,lengthOfArrayLike$c=lengthOfArrayLike$l,deletePropertyOrThrow$5=deletePropertyOrThrow$6,min$3=Math.min,arrayCopyWithin=[].copyWithin||function(e,t){var r=toObject$b(this),n=lengthOfArrayLike$c(r),o=toAbsoluteIndex$4(e,n),i=toAbsoluteIndex$4(t,n),a=arguments.length>2?arguments[2]:void 0,s=min$3((void 0===a?n:toAbsoluteIndex$4(a,n))-i,n-o),c=1;for(i<o&&o<i+s&&(c=-1,i+=s-1,o+=s-1);s-- >0;)i in r?r[o]=r[i]:deletePropertyOrThrow$5(r,o),o+=c,i+=c;return r},uncurryThis$n=functionUncurryThis,ArrayBufferViewCore$o=arrayBufferViewCore,$ArrayCopyWithin=arrayCopyWithin,u$ArrayCopyWithin=uncurryThis$n($ArrayCopyWithin),aTypedArray$n=ArrayBufferViewCore$o.aTypedArray,exportTypedArrayMethod$o=ArrayBufferViewCore$o.exportTypedArrayMethod;exportTypedArrayMethod$o("copyWithin",(function(e,t){return u$ArrayCopyWithin(aTypedArray$n(this),e,t,arguments.length>2?arguments[2]:void 0)}));var ArrayBufferViewCore$n=arrayBufferViewCore,$every=arrayIteration.every,aTypedArray$m=ArrayBufferViewCore$n.aTypedArray,exportTypedArrayMethod$n=ArrayBufferViewCore$n.exportTypedArrayMethod;exportTypedArrayMethod$n("every",(function(e){return $every(aTypedArray$m(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$m=arrayBufferViewCore,$fill=arrayFill$1,toBigInt=toBigInt$2,classof$4=classof$h,call$d=functionCall,uncurryThis$m=functionUncurryThis,fails$l=fails$M,aTypedArray$l=ArrayBufferViewCore$m.aTypedArray,exportTypedArrayMethod$m=ArrayBufferViewCore$m.exportTypedArrayMethod,slice2=uncurryThis$m("".slice),CONVERSION_BUG=fails$l((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));exportTypedArrayMethod$m("fill",(function(e){var t=arguments.length;aTypedArray$l(this);var r="Big"===slice2(classof$4(this),0,3)?toBigInt(e):+e;return call$d($fill,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),CONVERSION_BUG);var lengthOfArrayLike$b=lengthOfArrayLike$l,arrayFromConstructorAndList$1=function(e,t){for(var r=0,n=lengthOfArrayLike$b(t),o=new e(n);n>r;)o[r]=t[r++];return o},ArrayBufferViewCore$l=arrayBufferViewCore,speciesConstructor=speciesConstructor$3,aTypedArrayConstructor=ArrayBufferViewCore$l.aTypedArrayConstructor,getTypedArrayConstructor=ArrayBufferViewCore$l.getTypedArrayConstructor,typedArraySpeciesConstructor$4=function(e){return aTypedArrayConstructor(speciesConstructor(e,getTypedArrayConstructor(e)))},arrayFromConstructorAndList=arrayFromConstructorAndList$1,typedArraySpeciesConstructor$3=typedArraySpeciesConstructor$4,typedArrayFromSpeciesAndList=function(e,t){return arrayFromConstructorAndList(typedArraySpeciesConstructor$3(e),t)},ArrayBufferViewCore$k=arrayBufferViewCore,$filter=arrayIteration.filter,fromSpeciesAndList=typedArrayFromSpeciesAndList,aTypedArray$k=ArrayBufferViewCore$k.aTypedArray,exportTypedArrayMethod$l=ArrayBufferViewCore$k.exportTypedArrayMethod;exportTypedArrayMethod$l("filter",(function(e){var t=$filter(aTypedArray$k(this),e,arguments.length>1?arguments[1]:void 0);return fromSpeciesAndList(this,t)}));var ArrayBufferViewCore$j=arrayBufferViewCore,$find$2=arrayIteration.find,aTypedArray$j=ArrayBufferViewCore$j.aTypedArray,exportTypedArrayMethod$k=ArrayBufferViewCore$j.exportTypedArrayMethod;exportTypedArrayMethod$k("find",(function(e){return $find$2(aTypedArray$j(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$i=arrayBufferViewCore,$findIndex$2=arrayIteration.findIndex,aTypedArray$i=ArrayBufferViewCore$i.aTypedArray,exportTypedArrayMethod$j=ArrayBufferViewCore$i.exportTypedArrayMethod;exportTypedArrayMethod$j("findIndex",(function(e){return $findIndex$2(aTypedArray$i(this),e,arguments.length>1?arguments[1]:void 0)}));var bind$e=functionBindContext,IndexedObject$5=indexedObject,toObject$a=toObject$j,lengthOfArrayLike$a=lengthOfArrayLike$l,createMethod$4=function(e){var t=1==e;return function(r,n,o){for(var i,a=toObject$a(r),s=IndexedObject$5(a),c=bind$e(n,o),l=lengthOfArrayLike$a(s);l-- >0;)if(c(i=s[l],l,a))switch(e){case 0:return i;case 1:return l}return t?-1:void 0}},arrayIterationFromLast={findLast:createMethod$4(0),findLastIndex:createMethod$4(1)},ArrayBufferViewCore$h=arrayBufferViewCore,$findLast=arrayIterationFromLast.findLast,aTypedArray$h=ArrayBufferViewCore$h.aTypedArray,exportTypedArrayMethod$i=ArrayBufferViewCore$h.exportTypedArrayMethod;exportTypedArrayMethod$i("findLast",(function(e){return $findLast(aTypedArray$h(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$g=arrayBufferViewCore,$findLastIndex=arrayIterationFromLast.findLastIndex,aTypedArray$g=ArrayBufferViewCore$g.aTypedArray,exportTypedArrayMethod$h=ArrayBufferViewCore$g.exportTypedArrayMethod;exportTypedArrayMethod$h("findLastIndex",(function(e){return $findLastIndex(aTypedArray$g(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$f=arrayBufferViewCore,$forEach=arrayIteration.forEach,aTypedArray$f=ArrayBufferViewCore$f.aTypedArray,exportTypedArrayMethod$g=ArrayBufferViewCore$f.exportTypedArrayMethod;exportTypedArrayMethod$g("forEach",(function(e){$forEach(aTypedArray$f(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$e=arrayBufferViewCore,$includes=arrayIncludes.includes,aTypedArray$e=ArrayBufferViewCore$e.aTypedArray,exportTypedArrayMethod$f=ArrayBufferViewCore$e.exportTypedArrayMethod;exportTypedArrayMethod$f("includes",(function(e){return $includes(aTypedArray$e(this),e,arguments.length>1?arguments[1]:void 0)}));var ArrayBufferViewCore$d=arrayBufferViewCore,$indexOf$1=arrayIncludes.indexOf,aTypedArray$d=ArrayBufferViewCore$d.aTypedArray,exportTypedArrayMethod$e=ArrayBufferViewCore$d.exportTypedArrayMethod;exportTypedArrayMethod$e("indexOf",(function(e){return $indexOf$1(aTypedArray$d(this),e,arguments.length>1?arguments[1]:void 0)}));var global$f=global$H,fails$k=fails$M,uncurryThis$l=functionUncurryThis,ArrayBufferViewCore$c=arrayBufferViewCore,ArrayIterators=es_array_iterator,wellKnownSymbol$6=wellKnownSymbol$q,ITERATOR$5=wellKnownSymbol$6("iterator"),Uint8Array$2=global$f.Uint8Array,arrayValues=uncurryThis$l(ArrayIterators.values),arrayKeys=uncurryThis$l(ArrayIterators.keys),arrayEntries=uncurryThis$l(ArrayIterators.entries),aTypedArray$c=ArrayBufferViewCore$c.aTypedArray,exportTypedArrayMethod$d=ArrayBufferViewCore$c.exportTypedArrayMethod,TypedArrayPrototype=Uint8Array$2&&Uint8Array$2.prototype,GENERIC=!fails$k((function(){TypedArrayPrototype[ITERATOR$5].call([1])})),ITERATOR_IS_VALUES=!!TypedArrayPrototype&&TypedArrayPrototype.values&&TypedArrayPrototype[ITERATOR$5]===TypedArrayPrototype.values&&"values"===TypedArrayPrototype.values.name,typedArrayValues=function(){return arrayValues(aTypedArray$c(this))};exportTypedArrayMethod$d("entries",(function(){return arrayEntries(aTypedArray$c(this))}),GENERIC),exportTypedArrayMethod$d("keys",(function(){return arrayKeys(aTypedArray$c(this))}),GENERIC),exportTypedArrayMethod$d("values",typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"}),exportTypedArrayMethod$d(ITERATOR$5,typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"});var ArrayBufferViewCore$b=arrayBufferViewCore,uncurryThis$k=functionUncurryThis,aTypedArray$b=ArrayBufferViewCore$b.aTypedArray,exportTypedArrayMethod$c=ArrayBufferViewCore$b.exportTypedArrayMethod,$join=uncurryThis$k([].join);exportTypedArrayMethod$c("join",(function(e){return $join(aTypedArray$b(this),e)}));var apply$2=functionApply,toIndexedObject$5=toIndexedObject$c,toIntegerOrInfinity$4=toIntegerOrInfinity$d,lengthOfArrayLike$9=lengthOfArrayLike$l,arrayMethodIsStrict$5=arrayMethodIsStrict$7,min$2=Math.min,$lastIndexOf$1=[].lastIndexOf,NEGATIVE_ZERO$1=!!$lastIndexOf$1&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD$3=arrayMethodIsStrict$5("lastIndexOf"),FORCED$8=NEGATIVE_ZERO$1||!STRICT_METHOD$3,arrayLastIndexOf=FORCED$8?function(e){if(NEGATIVE_ZERO$1)return apply$2($lastIndexOf$1,this,arguments)||0;var t=toIndexedObject$5(this),r=lengthOfArrayLike$9(t),n=r-1;for(arguments.length>1&&(n=min$2(n,toIntegerOrInfinity$4(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:$lastIndexOf$1,ArrayBufferViewCore$a=arrayBufferViewCore,apply$1=functionApply,$lastIndexOf=arrayLastIndexOf,aTypedArray$a=ArrayBufferViewCore$a.aTypedArray,exportTypedArrayMethod$b=ArrayBufferViewCore$a.exportTypedArrayMethod;exportTypedArrayMethod$b("lastIndexOf",(function(e){var t=arguments.length;return apply$1($lastIndexOf,aTypedArray$a(this),t>1?[e,arguments[1]]:[e])}));var ArrayBufferViewCore$9=arrayBufferViewCore,$map=arrayIteration.map,typedArraySpeciesConstructor$2=typedArraySpeciesConstructor$4,aTypedArray$9=ArrayBufferViewCore$9.aTypedArray,exportTypedArrayMethod$a=ArrayBufferViewCore$9.exportTypedArrayMethod;exportTypedArrayMethod$a("map",(function(e){return $map(aTypedArray$9(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(typedArraySpeciesConstructor$2(e))(t)}))}));var aCallable$a=aCallable$i,toObject$9=toObject$j,IndexedObject$4=indexedObject,lengthOfArrayLike$8=lengthOfArrayLike$l,$TypeError$7=TypeError,createMethod$3=function(e){return function(t,r,n,o){aCallable$a(r);var i=toObject$9(t),a=IndexedObject$4(i),s=lengthOfArrayLike$8(i),c=e?s-1:0,l=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw $TypeError$7("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(o=r(o,a[c],c,i));return o}},arrayReduce$1={left:createMethod$3(!1),right:createMethod$3(!0)},ArrayBufferViewCore$8=arrayBufferViewCore,$reduce$1=arrayReduce$1.left,aTypedArray$8=ArrayBufferViewCore$8.aTypedArray,exportTypedArrayMethod$9=ArrayBufferViewCore$8.exportTypedArrayMethod;exportTypedArrayMethod$9("reduce",(function(e){var t=arguments.length;return $reduce$1(aTypedArray$8(this),e,t,t>1?arguments[1]:void 0)}));var ArrayBufferViewCore$7=arrayBufferViewCore,$reduceRight=arrayReduce$1.right,aTypedArray$7=ArrayBufferViewCore$7.aTypedArray,exportTypedArrayMethod$8=ArrayBufferViewCore$7.exportTypedArrayMethod;exportTypedArrayMethod$8("reduceRight",(function(e){var t=arguments.length;return $reduceRight(aTypedArray$7(this),e,t,t>1?arguments[1]:void 0)}));var ArrayBufferViewCore$6=arrayBufferViewCore,aTypedArray$6=ArrayBufferViewCore$6.aTypedArray,exportTypedArrayMethod$7=ArrayBufferViewCore$6.exportTypedArrayMethod,floor$7=Math.floor;exportTypedArrayMethod$7("reverse",(function(){for(var e,t=this,r=aTypedArray$6(t).length,n=floor$7(r/2),o=0;o<n;)e=t[o],t[o++]=t[--r],t[r]=e;return t}));var global$e=global$H,call$c=functionCall,ArrayBufferViewCore$5=arrayBufferViewCore,lengthOfArrayLike$7=lengthOfArrayLike$l,toOffset=toOffset$2,toIndexedObject$4=toObject$j,fails$j=fails$M,RangeError$1=global$e.RangeError,Int8Array$2=global$e.Int8Array,Int8ArrayPrototype=Int8Array$2&&Int8Array$2.prototype,$set=Int8ArrayPrototype&&Int8ArrayPrototype.set,aTypedArray$5=ArrayBufferViewCore$5.aTypedArray,exportTypedArrayMethod$6=ArrayBufferViewCore$5.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS=!fails$j((function(){var e=new Uint8ClampedArray(2);return call$c($set,e,{length:1,0:3},1),3!==e[1]})),TO_OBJECT_BUG=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS&&ArrayBufferViewCore$5.NATIVE_ARRAY_BUFFER_VIEWS&&fails$j((function(){var e=new Int8Array$2(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));exportTypedArrayMethod$6("set",(function(e){aTypedArray$5(this);var t=toOffset(arguments.length>1?arguments[1]:void 0,1),r=toIndexedObject$4(e);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS)return call$c($set,this,r,t);var n=this.length,o=lengthOfArrayLike$7(r),i=0;if(o+t>n)throw RangeError$1("Wrong length");for(;i<o;)this[t+i]=r[i++]}),!WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS||TO_OBJECT_BUG);var ArrayBufferViewCore$4=arrayBufferViewCore,typedArraySpeciesConstructor$1=typedArraySpeciesConstructor$4,fails$i=fails$M,arraySlice$6=arraySlice$a,aTypedArray$4=ArrayBufferViewCore$4.aTypedArray,exportTypedArrayMethod$5=ArrayBufferViewCore$4.exportTypedArrayMethod,FORCED$7=fails$i((function(){new Int8Array(1).slice()}));exportTypedArrayMethod$5("slice",(function(e,t){for(var r=arraySlice$6(aTypedArray$4(this),e,t),n=typedArraySpeciesConstructor$1(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),FORCED$7);var ArrayBufferViewCore$3=arrayBufferViewCore,$some=arrayIteration.some,aTypedArray$3=ArrayBufferViewCore$3.aTypedArray,exportTypedArrayMethod$4=ArrayBufferViewCore$3.exportTypedArrayMethod;exportTypedArrayMethod$4("some",(function(e){return $some(aTypedArray$3(this),e,arguments.length>1?arguments[1]:void 0)}));var arraySlice$5=arraySliceSimple,floor$6=Math.floor,mergeSort$1=function(e,t){var r=e.length,n=floor$6(r/2);return r<8?insertionSort$1(e,t):merge$1(e,mergeSort$1(arraySlice$5(e,0,n),t),mergeSort$1(arraySlice$5(e,n),t),t)},insertionSort$1=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},merge$1=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},arraySort$3=mergeSort$1,userAgent$3=engineUserAgent,firefox$1=userAgent$3.match(/firefox\/(\d+)/i),engineFfVersion$1=!!firefox$1&&+firefox$1[1],UA$1=engineUserAgent,engineIsIeOrEdge$1=/MSIE|Trident/.test(UA$1),userAgent$2=engineUserAgent,webkit$1=userAgent$2.match(/AppleWebKit\/(\d+)\./),engineWebkitVersion$1=!!webkit$1&&+webkit$1[1],global$d=global$H,uncurryThis$j=functionUncurryThisClause,fails$h=fails$M,aCallable$9=aCallable$i,internalSort$2=arraySort$3,ArrayBufferViewCore$2=arrayBufferViewCore,FF$2=engineFfVersion$1,IE_OR_EDGE$2=engineIsIeOrEdge$1,V8$2=engineV8Version,WEBKIT$2=engineWebkitVersion$1,aTypedArray$2=ArrayBufferViewCore$2.aTypedArray,exportTypedArrayMethod$3=ArrayBufferViewCore$2.exportTypedArrayMethod,Uint16Array=global$d.Uint16Array,nativeSort$2=Uint16Array&&uncurryThis$j(Uint16Array.prototype.sort),ACCEPT_INCORRECT_ARGUMENTS=!(!nativeSort$2||fails$h((function(){nativeSort$2(new Uint16Array(2),null)}))&&fails$h((function(){nativeSort$2(new Uint16Array(2),{})}))),STABLE_SORT$2=!!nativeSort$2&&!fails$h((function(){if(V8$2)return V8$2<74;if(FF$2)return FF$2<67;if(IE_OR_EDGE$2)return!0;if(WEBKIT$2)return WEBKIT$2<602;var e,t,r=new Uint16Array(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(nativeSort$2(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0})),getSortCompare$2=function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}};exportTypedArrayMethod$3("sort",(function(e){return void 0!==e&&aCallable$9(e),STABLE_SORT$2?nativeSort$2(this,e):internalSort$2(aTypedArray$2(this),getSortCompare$2(e))}),!STABLE_SORT$2||ACCEPT_INCORRECT_ARGUMENTS);var ArrayBufferViewCore$1=arrayBufferViewCore,toLength=toLength$6,toAbsoluteIndex$3=toAbsoluteIndex$8,typedArraySpeciesConstructor=typedArraySpeciesConstructor$4,aTypedArray$1=ArrayBufferViewCore$1.aTypedArray,exportTypedArrayMethod$2=ArrayBufferViewCore$1.exportTypedArrayMethod;exportTypedArrayMethod$2("subarray",(function(e,t){var r=aTypedArray$1(this),n=r.length,o=toAbsoluteIndex$3(e,n);return new(typedArraySpeciesConstructor(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,toLength((void 0===t?n:toAbsoluteIndex$3(t,n))-o))}));var global$c=global$H,apply=functionApply,ArrayBufferViewCore=arrayBufferViewCore,fails$g=fails$M,arraySlice$4=arraySlice$a,Int8Array$1=global$c.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod$1=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails$g((function(){$toLocaleString.call(new Int8Array$1(1))})),FORCED$6=fails$g((function(){return[1,2].toLocaleString()!=new Int8Array$1([1,2]).toLocaleString()}))||!fails$g((function(){Int8Array$1.prototype.toLocaleString.call([1,2])}));exportTypedArrayMethod$1("toLocaleString",(function(){return apply($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice$4(aTypedArray(this)):aTypedArray(this),arraySlice$4(arguments))}),FORCED$6);var exportTypedArrayMethod=arrayBufferViewCore.exportTypedArrayMethod,fails$f=fails$M,global$b=global$H,uncurryThis$i=functionUncurryThis,Uint8Array$1=global$b.Uint8Array,Uint8ArrayPrototype=Uint8Array$1&&Uint8Array$1.prototype||{},arrayToString=[].toString,join$6=uncurryThis$i([].join);fails$f((function(){arrayToString.call({})}))&&(arrayToString=function(){return join$6(this)});var IS_NOT_ARRAY_METHOD=Uint8ArrayPrototype.toString!=arrayToString;exportTypedArrayMethod("toString",arrayToString,IS_NOT_ARRAY_METHOD);var DevLogger=function(){function e(){var t,r=this;_classCallCheck$2(this,e);try{var n=/xgd=(\d)/.exec(document.cookie);this._status=!!n,this._level=n&&n[1]}catch(e){this._status=!1}_forEachInstanceProperty(t=["group","groupEnd","log","warn","error"]).call(t,(function(e){r[e]=function(t,n,o,i,a,s,c,l,u,$){var d,A,p;if(r._status){var f=t,h=_filterInstanceProperty(d=[n,o,i,a,s,c,l,u,$]).call(d,(function(e){return void 0!==e}));(p=console)[e].apply(p,_concatInstanceProperty(A=["["+f+"]:"]).call(A,_toConsumableArray$1(h)))}}}))}return _createClass$2(e,[{key:"enable",get:function(){return this._status}},{key:"long",get:function(){return"2"===this._level}}]),e}(),logger=new DevLogger;function debounce(e,t){var r=_Date$now(),n=null,o=!0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var c=_Date$now();o&&(r=_Date$now(),o=!1,e.apply(void 0,a)),c-r>t?(r=c,e.apply(void 0,a)):(n&&window.clearTimeout(n),n=_setTimeout((function(){e.apply(void 0,a)}),t))}}function getAvcc(e,t){if(e&&t){var r=new Uint8Array(e.byteLength+t.byteLength+11);r[0]=1,r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=255,r[5]=225;var n=6;return r.set(new Uint8Array([e.byteLength>>>8&255,255&e.byteLength]),n),n+=2,r.set(e,n),r[n+=e.byteLength]=1,n++,r.set(new Uint8Array([t.byteLength>>>8&255,255&t.byteLength]),n),n+=2,r.set(t,n),r}}function promiseDelayed(){var e,t,r=new _Promise((function(r,n){e=r,t=n}));return r.resolve=e,r.reject=t,r}var DESCRIPTORS$e=descriptors$1,uncurryThis$h=functionUncurryThis$1,call$b=functionCall$1,fails$e=fails$1b,objectKeys$3=objectKeys$8,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$1=objectPropertyIsEnumerable$1,toObject$8=toObject$t,IndexedObject$3=indexedObject$1,$assign$1=Object.assign,defineProperty$5=Object.defineProperty,concat$1=uncurryThis$h([].concat),objectAssign$1=!$assign$1||fails$e((function(){if(DESCRIPTORS$e&&1!==$assign$1({b:1},$assign$1(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign$1({},e)[r]||objectKeys$3($assign$1({},t)).join("")!=n}))?function(e,t){for(var r=toObject$8(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule$1.f,a=propertyIsEnumerableModule$1.f;n>o;)for(var s,c=IndexedObject$3(arguments[o++]),l=i?concat$1(objectKeys$3(c),i(c)):objectKeys$3(c),u=l.length,$=0;u>$;)s=l[$++],DESCRIPTORS$e&&!call$b(a,c,s)||(r[s]=c[s]);return r}:$assign$1,$$L=_export$1,assign$9=objectAssign$1;$$L({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$9},{assign:assign$9});var path$4=path$w,assign$8=path$4.Object.assign,parent$C=assign$8,assign$7=parent$C,parent$B=assign$7,assign$6=parent$B,parent$A=assign$6,assign$5=parent$A,assign$4=assign$5,assign$3=assign$4,_Object$assign=getDefaultExportFromCjs(assign$3),DESCRIPTORS$d=descriptors,uncurryThis$g=functionUncurryThis,call$a=functionCall,fails$d=fails$M,objectKeys$2=objectKeys$5,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$7=toObject$j,IndexedObject$2=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat3=uncurryThis$g([].concat),objectAssign=!$assign||fails$d((function(){if(DESCRIPTORS$d&&1!==$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign({},e)[r]||objectKeys$2($assign({},t)).join("")!=n}))?function(e,t){for(var r=toObject$7(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;n>o;)for(var s,c=IndexedObject$2(arguments[o++]),l=i?concat3(objectKeys$2(c),i(c)):objectKeys$2(c),u=l.length,$=0;u>$;)s=l[$++],DESCRIPTORS$d&&!call$a(a,c,s)||(r[s]=c[s]);return r}:$assign,$$K=_export,assign$2=objectAssign;$$K({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$2},{assign:assign$2});var EleName="xg-video",simdCanused=!1;try{simdCanused=WebAssembly&&WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))}catch(e){}var decodeCapacity={preloadDecoder:!1,reuseWasmDecoder:!0,reuseMseForAudio:!1,preciseSeek:0,h264WithWebcodec:!0,lowDecodeThreshold:100,wasmFallbackToAsm:!1,audioWithMse:!0,canUseThreadMode:!1,disabledWhenErrorOccur:!0,disabledDuration:43200,evaluateVVCount:0,disabledByLowdecodePrecent:.5,maxDecodeOnceWasm:simdCanused?6:8,maxDecodeOnceFirstTime:8,maxDecodeOnceWebcodec:20};function getEleName(){return EleName}function setEleName(e){EleName=e}function setDecodeCapacity(e){decodeCapacity=_Object$assign({},decodeCapacity,e)}function getDecodeCapacaity(){return decodeCapacity}function getDecoderUrls(){var e="undefined"!=typeof customElements&&customElements.get(EleName);return e?{H264_DECODER_URL:e.h264Url,ASM_H264_DECODER_URL:e.h264AsmUrl,H265_DECODER_URL:e.h265Url,H265_THREAD_DECODER_URL:e.h265ThreadUrl,H265_SIMD_DECODER_URL:e.h265SimdUrl,ASM_H265_DECODER_URL:e.h265AsmUrl}:{}}function simdSupported(){if("undefined"==typeof customElements)return!1;var e=customElements.get(EleName);return simdCanused&&!(null==e||!e.h265SimdUrl)}function threadSupported(){if("undefined"==typeof customElements)return!1;var e=customElements.get(EleName);return!!window.SharedArrayBuffer&&!(null==e||!e.h265ThreadUrl)}var _softDecodeSupport=!1;try{var _localStorage,_localStorage$getItem;_softDecodeSupport="1"===(null===(_localStorage=localStorage)||void 0===_localStorage||null===(_localStorage$getItem=_localStorage.getItem)||void 0===_localStorage$getItem?void 0:_localStorage$getItem.call(_localStorage,"_sds"))}catch(e){}function softDecodeSupported(){if("undefined"==typeof customElements)return!1;if(_softDecodeSupport)return!0;var e=!1,t=!1;try{var r=new(window.AudioContext||window.webkitAudioContext);r.close(),r=null,e=!0}catch(e){}try{for(var n=document.createElement("canvas"),o=["webgl","experimental-webgl","moz-webgl","webkit-3d"],i=0;i<o.length;i++){var a=n.getContext(o[i]);if(a){a=null,n=null,t=!0;break}}_softDecodeSupport=e&&t&&!!WebAssembly,localStorage.setItem("_sds",_softDecodeSupport?1:0)}catch(e){}return _softDecodeSupport}function getDeviceCapacity(){return{simd:simdCanused,thread:threadSupported(),nbCpu:navigator.hardwareConcurrency}}var vv=0,lowdecodeVV=0,lowdecodePercent=0,disabledHevc=!1;function updateVV(){vv++}function getVV(){return vv}function updateLowdecodeVV(){lowdecodeVV++}function getLowdecodeVV(){return lowdecodeVV}function getLowdecodePercent(){return lowdecodePercent}function _getDisabledByEvaluateVV(){return!!disabledHevc||0!==getDecodeCapacaity().evaluateVVCount&&(vv===getDecodeCapacaity().evaluateVVCount&&(lowdecodePercent=lowdecodeVV/vv),lowdecodePercent>=getDecodeCapacaity().disabledByLowdecodePrecent&&(disabledHevc=!0),disabledHevc)}function persistenceDisabledStatus(e){localStorage.setItem("xgv_dis",e),2===e&&localStorage.setItem("xgv_dist",(new Date).getTime())}function getDisabledStatus(){if(!0===_getDisabledByEvaluateVV())return!0;var e=localStorage.getItem("xgv_dis");if(!e)return!1;if("1"===e)return!0;if("2"===e){var t=localStorage.getItem("xgv_dist")||0;if(t=Number(t),((new Date).getTime()-t)/1e3<getDecodeCapacaity().disabledDuration)return!0;cleanDisabledStatus()}}function cleanDisabledStatus(){localStorage.removeItem("xgv_dist"),localStorage.removeItem("xgv_dis")}var eventemitter3={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}_Object$create&&(n.prototype=_Object$create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?_sliceInstanceProperty(n).call(n,1):n);return _Object$getOwnPropertySymbols?_concatInstanceProperty(o).call(o,_Object$getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],$=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),$){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(l=1,c=new Array($-1);l<$;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,A=u.length;for(l=0;l<A;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),$){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,o);break;default:if(!c)for(d=1,c=new Array($-1);d<$;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||n&&s[c].context!==n)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(eventemitter3);var eventemitter3Exports=eventemitter3.exports,EventEmitter=getDefaultExportFromCjs(eventemitter3Exports),global$a=global$13,globalIsFinite$1=global$a.isFinite,numberIsFinite$3=Number.isFinite||function(e){return"number"==typeof e&&globalIsFinite$1(e)},$$J=_export$1,numberIsFinite$2=numberIsFinite$3;$$J({target:"Number",stat:!0},{isFinite:numberIsFinite$2});var path$3=path$w,_isFinite$5=path$3.Number.isFinite,parent$z=_isFinite$5,_isFinite$4=parent$z,parent$y=_isFinite$4,_isFinite$3=parent$y,parent$x=_isFinite$3,_isFinite$2=parent$x,_isFinite$1=_isFinite$2,_isFinite=_isFinite$1,_Number$isFinite=getDefaultExportFromCjs(_isFinite),aCallable$8=aCallable$u,toObject$6=toObject$t,IndexedObject$1=indexedObject$1,lengthOfArrayLike$6=lengthOfArrayLike$u,$TypeError$6=TypeError,createMethod$2=function(e){return function(t,r,n,o){aCallable$8(r);var i=toObject$6(t),a=IndexedObject$1(i),s=lengthOfArrayLike$6(i),c=e?s-1:0,l=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw $TypeError$6("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(o=r(o,a[c],c,i));return o}},arrayReduce={left:createMethod$2(!1),right:createMethod$2(!0)},$$I=_export$1,$reduce=arrayReduce.left,arrayMethodIsStrict$4=arrayMethodIsStrict$9,CHROME_VERSION=engineV8Version$1,IS_NODE=engineIsNode$1,CHROME_BUG=!IS_NODE&&engineV8Version$1>79&&engineV8Version$1<83,FORCED$5=CHROME_BUG||!arrayMethodIsStrict$4("reduce");$$I({target:"Array",proto:!0,forced:FORCED$5},{reduce:function(e){var t=arguments.length;return $reduce(this,e,t,t>1?arguments[1]:void 0)}});var entryVirtual$6=entryVirtual$f,reduce$6=entryVirtual$6("Array").reduce,isPrototypeOf$9=objectIsPrototypeOf$1,method$6=reduce$6,ArrayPrototype$6=Array.prototype,reduce$5=function(e){var t=e.reduce;return e===ArrayPrototype$6||isPrototypeOf$9(ArrayPrototype$6,e)&&t===ArrayPrototype$6.reduce?method$6:t},parent$w=reduce$5,reduce$4=parent$w,parent$v=reduce$4,reduce$3=parent$v,parent$u=reduce$3,reduce$2=parent$u,reduce$1=reduce$2,reduce3=reduce$1,_reduceInstanceProperty=getDefaultExportFromCjs(reduce3),global$9=global$H,globalIsFinite=global$9.isFinite,numberIsFinite$1=Number.isFinite||function(e){return"number"==typeof e&&globalIsFinite(e)},$$H=_export,numberIsFinite=numberIsFinite$1;$$H({target:"Number",stat:!0},{isFinite:numberIsFinite});var $$G=_export,isArray$2=isArray$5,isConstructor$1=isConstructor$4,isObject$5=isObject$k,toAbsoluteIndex$2=toAbsoluteIndex$8,lengthOfArrayLike$5=lengthOfArrayLike$l,toIndexedObject$3=toIndexedObject$c,createProperty$3=createProperty$6,wellKnownSymbol$5=wellKnownSymbol$q,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$6,nativeSlice=arraySlice$a,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("slice"),SPECIES=wellKnownSymbol$5("species"),$Array$1=Array,max$2=Math.max;$$G({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$2},{slice:function(e,t){var r,n,o,i=toIndexedObject$3(this),a=lengthOfArrayLike$5(i),s=toAbsoluteIndex$2(e,a),c=toAbsoluteIndex$2(void 0===t?a:t,a);if(isArray$2(i)&&(r=i.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$2(r.prototype))||isObject$5(r)&&null===(r=r[SPECIES]))&&(r=void 0),r===$Array$1||void 0===r))return nativeSlice(i,s,c);for(n=new(void 0===r?$Array$1:r)(max$2(c-s,0)),o=0;s<c;s++,o++)s in i&&createProperty$3(n,o,i[s]);return n.length=o,n}});var VIDEO_EVENTS={WAITING:0,CANPLAY:1,PLAY:2,PLAYING:3,PAUSE:4,SEEKING:5,SEEKED:6,LOADEDDATA:7,LOADEDMETADATA:8,TIMEUPDATE:9,DURATION_CHANGE:10,VOLUME_CHANGE:11,PROGRESS:12,ERROR:13,ENDED:14,RESIZE:15,LOADSTART:16,DECODE_FPS:17,LOW_DECODE:18,LARGE_AV_GAP:19,FIRST_FRAME:20},VIDEO_EVENTS_ARR=["waiting","canplay","play","playing","pause","seeking","seeked","loadeddata","loadedmetadata","timeupdate","durationchange","volumechange","progress","error","ended","resize","loadstart","decodefps","lowdecode","largeavgap","firstframe"],Events={AUDIO:{AUDIO_READY:"audio_ready",AUDIO_NOT_ALLOWED_AUTOPLAY:"audio_not_allowed_autoplay",AUDIO_WAITING:"audio_waiting",AUDIO_SYNC_DTS:"audio_sync_dts"},VIDEO:{VIDEO_DECODER_INIT:"video_decode_init",VIDEO_READY:"video_ready",VIDEO_WAITING:"video_waiting",AUTO_RUN:"auto_run",DECODE_LOW_FPS:"decode_low_fps",UPDATE_VIDEO_FILLTYPE:"update_video_filltype",UPDATE_VIDEO_COVER_POSITION:"update_video_cover_position"},TIMELINE:{PLAY_EVENT:"play_event",SET_METADATA:"set_metadata",APPEND_CHUNKS:"append_chunks",START_RENDER:"start_render",DO_PLAY:"do_play",DO_PAUSE:"do_pause",DO_SEEK:"do_seek",SET_PLAYBACKRATE:"set_playbackrate",SYNC_DTS:"sync_dts",RESET_BASE_DTS:"reset_base_dts",UPDATE_VOLUME:"update_volume",SINGLE_TRACK:"single_track",DESTROY:"destroy",READY:"ready",UPDATE_GL_OPTIONS:"update_gl_options",SET_VIDEO_DURATION:"set_video_duration",SET_PLAY_MODE:"set_play_mode",UPDATE_CAPABILITY_LEVEL:"update_capability_level",INNER_DEGRADE:"inner_degrade",ADJUST_SEEK_TIME:"adjust_seek_time",CHASE_FRAME:"chase_frame",END_OF_STREAM:"end_of_stream",UPDATE_SEGMENT_END:"update_segment_end"},VIDEO_EVENTS:VIDEO_EVENTS,DECODE_EVENTS:{INIT:"init",READY:"decoderready",REMUX:"remux",INIT_FAILED:"initfailed",DATAREADY:"dataReady",PLAY_FAILED:"playfailed",FRAGMENT_END:"fragmentEnd",APPEND_VIDEO:"appendVideo",FIRST_FRAME:"firstFrame",DECODED:"decoded",RENDE_END:"rendeEnd",CHASE_VIDEO_FRAME:"chaseVideoFrame",CHASE_VIDEO_FRAME_END:"chaseVideoFrameEnd",CHASE_AUDIO_FRAME:"chaseAudioFrame",INIT_SEGMENT:"initSegment",MEDIA_SEGMENT:"mediaSegment",FRAME_MAX_COUNY:"frameMaxCount",FRAME_MIN_COUNY:"frameMinCount"}},BaseRender=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e,n){var o;return _classCallCheck$2(this,r),(o=t.call(this))._config=e,o._parent=n,o._meta=null,o._ready=!1,o._isLive=!0,o._innerDegrade=!1,o._singleTrack=-1,o}return _createClass$2(r,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"isLive",get:function(){return this._isLive}},{key:"innerDegrade",get:function(){return this._innerDegrade}},{key:"noAudio",get:function(){return 1===this._singleTrack||2===this._singleTrack}},{key:"noVideo",get:function(){return 3===this._singleTrack}},{key:"duration",get:function(){return this._timeRange.duration},set:function(e){this._timeRange&&(this._timeRange.duration=e)}},{key:"_bindEvents",value:function(){var e,t,r,n,o,i,a,s,c=this;this._parent.on(Events.TIMELINE.APPEND_CHUNKS,_bindInstanceProperty(e=this._appendChunk).call(e,this)),this._parent.on(Events.TIMELINE.RESET_BASE_DTS,_bindInstanceProperty(t=this._resetDts).call(t,this)),this._parent.on(Events.TIMELINE.START_RENDER,_bindInstanceProperty(r=this._startRender).call(r,this)),this._parent.on(Events.TIMELINE.DO_PLAY,_bindInstanceProperty(n=this._doPlay).call(n,this)),this._parent.on(Events.TIMELINE.DO_PAUSE,_bindInstanceProperty(o=this._doPause).call(o,this)),this._parent.on(Events.TIMELINE.DO_SEEK,_bindInstanceProperty(i=this._doSeek).call(i,this)),this._parent.on(Events.TIMELINE.DESTROY,_bindInstanceProperty(a=this._destroy).call(a,this)),this._parent.on(Events.TIMELINE.CHASE_FRAME,_bindInstanceProperty(s=this._doChaseFrame).call(s,this)),this._parent.on(Events.TIMELINE.SINGLE_TRACK,(function(e){c._singleTrack=e})),this._parent.on(Events.TIMELINE.SET_PLAY_MODE,(function(e){c._isLive="LIVE"===e})),this._parent.on(Events.TIMELINE.INNER_DEGRADE,(function(){c._innerDegrade=!0})),this._parent.on(Events.TIMELINE.SET_VIDEO_DURATION,(function(e){c.duration=e}))}}]),r}(),tryToString$1=tryToString$e,$TypeError$5=TypeError,deletePropertyOrThrow$4=function(e,t){if(!delete e[t])throw $TypeError$5("Cannot delete property "+tryToString$1(t)+" of "+tryToString$1(e))},arraySlice$3=arraySliceSimple$1,floor$5=Math.floor,mergeSort=function(e,t){var r=e.length,n=floor$5(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$3(e,0,n),t),mergeSort(arraySlice$3(e,n),t),t)},insertionSort=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},merge=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},arraySort$2=mergeSort,userAgent$1=engineUserAgent$1,firefox=userAgent$1.match(/firefox\/(\d+)/i),engineFfVersion=!!firefox&&+firefox[1],UA=engineUserAgent$1,engineIsIeOrEdge=/MSIE|Trident/.test(UA),userAgent=engineUserAgent$1,webkit=userAgent.match(/AppleWebKit\/(\d+)\./),engineWebkitVersion=!!webkit&&+webkit[1],$$F=_export$1,uncurryThis$f=functionUncurryThis$1,aCallable$7=aCallable$u,toObject$5=toObject$t,lengthOfArrayLike$4=lengthOfArrayLike$u,deletePropertyOrThrow$3=deletePropertyOrThrow$4,toString$4=toString$o,fails$c=fails$1b,internalSort$1=arraySort$2,arrayMethodIsStrict$3=arrayMethodIsStrict$9,FF$1=engineFfVersion,IE_OR_EDGE$1=engineIsIeOrEdge,V8$1=engineV8Version$1,WEBKIT$1=engineWebkitVersion,test$1=[],nativeSort$1=uncurryThis$f(test$1.sort),push$b=uncurryThis$f(test$1.push),FAILS_ON_UNDEFINED$1=fails$c((function(){test$1.sort(void 0)})),FAILS_ON_NULL$1=fails$c((function(){test$1.sort(null)})),STRICT_METHOD$2=arrayMethodIsStrict$3("sort"),STABLE_SORT$1=!fails$c((function(){if(V8$1)return V8$1<70;if(!(FF$1&&FF$1>3)){if(IE_OR_EDGE$1)return!0;if(WEBKIT$1)return WEBKIT$1<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)test$1.push({k:t+n,v:r})}for(test$1.sort((function(e,t){return t.v-e.v})),n=0;n<test$1.length;n++)t=test$1[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),FORCED$4=FAILS_ON_UNDEFINED$1||!FAILS_ON_NULL$1||!STRICT_METHOD$2||!STABLE_SORT$1,getSortCompare$1=function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:toString$4(t)>toString$4(r)?1:-1}};$$F({target:"Array",proto:!0,forced:FORCED$4},{sort:function(e){void 0!==e&&aCallable$7(e);var t=toObject$5(this);if(STABLE_SORT$1)return void 0===e?nativeSort$1(t):nativeSort$1(t,e);var r,n,o=[],i=lengthOfArrayLike$4(t);for(n=0;n<i;n++)n in t&&push$b(o,t[n]);for(internalSort$1(o,getSortCompare$1(e)),r=lengthOfArrayLike$4(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)deletePropertyOrThrow$3(t,n++);return t}});var entryVirtual$5=entryVirtual$f,sort$6=entryVirtual$5("Array").sort,isPrototypeOf$8=objectIsPrototypeOf$1,method$5=sort$6,ArrayPrototype$5=Array.prototype,sort$5=function(e){var t=e.sort;return e===ArrayPrototype$5||isPrototypeOf$8(ArrayPrototype$5,e)&&t===ArrayPrototype$5.sort?method$5:t},parent$t=sort$5,sort$4=parent$t,parent$s=sort$4,sort$3=parent$s,parent$r=sort$3,sort$2=parent$r,sort$1=sort$2,sort3=sort$1,_sortInstanceProperty=getDefaultExportFromCjs(sort3),$$E=_export,uncurryThis$e=functionUncurryThis,aCallable$6=aCallable$i,toObject$4=toObject$j,lengthOfArrayLike$3=lengthOfArrayLike$l,deletePropertyOrThrow$2=deletePropertyOrThrow$6,toString$3=toString$b,fails$b=fails$M,internalSort=arraySort$3,arrayMethodIsStrict$2=arrayMethodIsStrict$7,FF=engineFfVersion$1,IE_OR_EDGE=engineIsIeOrEdge$1,V8=engineV8Version,WEBKIT=engineWebkitVersion$1,test=[],nativeSort=uncurryThis$e(test.sort),push$a=uncurryThis$e(test.push),FAILS_ON_UNDEFINED=fails$b((function(){test.sort(void 0)})),FAILS_ON_NULL=fails$b((function(){test.sort(null)})),STRICT_METHOD$1=arrayMethodIsStrict$2("sort"),STABLE_SORT=!fails$b((function(){if(V8)return V8<70;if(!(FF&&FF>3)){if(IE_OR_EDGE)return!0;if(WEBKIT)return WEBKIT<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)test.push({k:t+n,v:r})}for(test.sort((function(e,t){return t.v-e.v})),n=0;n<test.length;n++)t=test[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),FORCED$3=FAILS_ON_UNDEFINED||!FAILS_ON_NULL||!STRICT_METHOD$1||!STABLE_SORT,getSortCompare=function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:toString$3(t)>toString$3(r)?1:-1}};$$E({target:"Array",proto:!0,forced:FORCED$3},{sort:function(e){void 0!==e&&aCallable$6(e);var t=toObject$4(this);if(STABLE_SORT)return void 0===e?nativeSort(t):nativeSort(t,e);var r,n,o=[],i=lengthOfArrayLike$3(t);for(n=0;n<i;n++)n in t&&push$a(o,t[n]);for(internalSort(o,getSortCompare(e)),r=lengthOfArrayLike$3(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)deletePropertyOrThrow$2(t,n++);return t}});var TOLERANCE$2=.5,AudioTimeRange=function(){function e(t){_classCallCheck$2(this,e),this.TAG="AudioTimeRange",this._parent=t,this._buffers=[],this._duration=0,this._baseDts=0,this._lastBuffer=null}return _createClass$2(e,[{key:"isLive",get:function(){return this._parent.isLive}},{key:"duration",get:function(){return this._duration},set:function(e){this._duration=e}},{key:"buffered",get:function(){var e=this;if(this.isLive)return{length:this._duration?1:0,start:function(){return 0},end:function(){return e._duration}};var t=this._mergeBufferRanges();return{length:t.length,start:function(e){var r=t[e];return r?r.start:0},end:function(e){var r=t[e];return r?r.end:1/0}}}},{key:"resetDts",value:function(e){this._baseDts=e}},{key:"_transitionSamples",value:function(e){for(var t=e.numberOfChannels,r=e.length,n=512,o=0;o<t;o++){for(var i=e.getChannelData(o),a=0;a<n;a++)i[a]=i[a]*a/n;for(var s=r-n;s<r;s++)i[s]=i[s]*(r-s)/n}}},{key:"append",value:function(e,t,r,n){var o,i,a;-1===this._baseDts&&(this._baseDts=r),this._transitionSamples(e);var s=(r-this._baseDts)/1e3,c=s+t,l={start:s,end:c,startDts:r,source:e,duration:t,delay:n};if(logger.log(this.TAG,_concatInstanceProperty(o=_concatInstanceProperty(i="add new buffer range, startDts:".concat(r,", [")).call(i,l.start," , ")).call(o,l.end,"]")),!_filterInstanceProperty(a=this._buffers).call(a,(function(e){return e.start===s})).length)return this._buffers.push(l),this.isLive&&(this._duration=c),l.start;console.error("音频重复")}},{key:"deletePassed",value:function(e){var t;return this._buffers=_filterInstanceProperty(t=this._buffers).call(t,(function(t){return t.start>=e})),this._buffers[0]}},{key:"canSeek",value:function(e){var t=this._buffers[this._buffers.length-1];return!!t&&!(t.start<e)}},{key:"_mergeBufferRanges",value:function(){var e,t,r=_sortInstanceProperty(e=_sliceInstanceProperty(t=this._buffers).call(t)).call(e,(function(e,t){return e.start>t.start?1:-1})),n=r.length,o=[];if(!n)return o;for(var i={start:r[0].start,end:r[0].end},a=1;a<n;a++){var s=r[a];Math.abs(i.end-s.start)<TOLERANCE$2?i.end=s.end:(o.push(i),i={start:s.start,end:s.end})}return o.push(i),o}},{key:"getBuffer",value:function(e){var t,r,n;if(this.isLive)return this._buffers.shift();var o=_filterInstanceProperty(t=this._buffers).call(t,(function(t){return t.start<e+TOLERANCE$2&&t.end>e+TOLERANCE$2}))[0];return logger.log(this.TAG,_concatInstanceProperty(r=_concatInstanceProperty(n="get audio buffer , currentTime:".concat(e," ,buffer:[")).call(n,o&&o.start," , ")).call(r,o&&o.end,"]")),0!==e||o?o:this._buffers[0]}},{key:"hasBuffer",value:function(){var e;return!(null===(e=this._buffers)||void 0===e||!e.length)}}]),e}(),Alaw2lpcm=[-5504,-5248,-6016,-5760,-4480,-4224,-4992,-4736,-7552,-7296,-8064,-7808,-6528,-6272,-7040,-6784,-2752,-2624,-3008,-2880,-2240,-2112,-2496,-2368,-3776,-3648,-4032,-3904,-3264,-3136,-3520,-3392,-22016,-20992,-24064,-23040,-17920,-16896,-19968,-18944,-30208,-29184,-32256,-31232,-26112,-25088,-28160,-27136,-11008,-10496,-12032,-11520,-8960,-8448,-9984,-9472,-15104,-14592,-16128,-15616,-13056,-12544,-14080,-13568,-344,-328,-376,-360,-280,-264,-312,-296,-472,-456,-504,-488,-408,-392,-440,-424,-88,-72,-120,-104,-24,-8,-56,-40,-216,-200,-248,-232,-152,-136,-184,-168,-1376,-1312,-1504,-1440,-1120,-1056,-1248,-1184,-1888,-1824,-2016,-1952,-1632,-1568,-1760,-1696,-688,-656,-752,-720,-560,-528,-624,-592,-944,-912,-1008,-976,-816,-784,-880,-848,5504,5248,6016,5760,4480,4224,4992,4736,7552,7296,8064,7808,6528,6272,7040,6784,2752,2624,3008,2880,2240,2112,2496,2368,3776,3648,4032,3904,3264,3136,3520,3392,22016,20992,24064,23040,17920,16896,19968,18944,30208,29184,32256,31232,26112,25088,28160,27136,11008,10496,12032,11520,8960,8448,9984,9472,15104,14592,16128,15616,13056,12544,14080,13568,344,328,376,360,280,264,312,296,472,456,504,488,408,392,440,424,88,72,120,104,24,8,56,40,216,200,248,232,152,136,184,168,1376,1312,1504,1440,1120,1056,1248,1184,1888,1824,2016,1952,1632,1568,1760,1696,688,656,752,720,560,528,624,592,944,912,1008,976,816,784,880,848],Ulaw2lpcm=[-32124,-31100,-30076,-29052,-28028,-27004,-25980,-24956,-23932,-22908,-21884,-20860,-19836,-18812,-17788,-16764,-15996,-15484,-14972,-14460,-13948,-13436,-12924,-12412,-11900,-11388,-10876,-10364,-9852,-9340,-8828,-8316,-7932,-7676,-7420,-7164,-6908,-6652,-6396,-6140,-5884,-5628,-5372,-5116,-4860,-4604,-4348,-4092,-3900,-3772,-3644,-3516,-3388,-3260,-3132,-3004,-2876,-2748,-2620,-2492,-2364,-2236,-2108,-1980,-1884,-1820,-1756,-1692,-1628,-1564,-1500,-1436,-1372,-1308,-1244,-1180,-1116,-1052,-988,-924,-876,-844,-812,-780,-748,-716,-684,-652,-620,-588,-556,-524,-492,-460,-428,-396,-372,-356,-340,-324,-308,-292,-276,-260,-244,-228,-212,-196,-180,-164,-148,-132,-120,-112,-104,-96,-88,-80,-72,-64,-56,-48,-40,-32,-24,-16,-8,0,32124,31100,30076,29052,28028,27004,25980,24956,23932,22908,21884,20860,19836,18812,17788,16764,15996,15484,14972,14460,13948,13436,12924,12412,11900,11388,10876,10364,9852,9340,8828,8316,7932,7676,7420,7164,6908,6652,6396,6140,5884,5628,5372,5116,4860,4604,4348,4092,3900,3772,3644,3516,3388,3260,3132,3004,2876,2748,2620,2492,2364,2236,2108,1980,1884,1820,1756,1692,1628,1564,1500,1436,1372,1308,1244,1180,1116,1052,988,924,876,844,812,780,748,716,684,652,620,588,556,524,492,460,428,396,372,356,340,324,308,292,276,260,244,228,212,196,180,164,148,132,120,112,104,96,88,80,72,64,56,48,40,32,24,16,8,0],silenceFrame=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]);function _doubleCheckSampleRateIndex(e,t){var r=(7&e[0])<<1|e[1]>>>7;return r!==t?r:t}function _constructAdtsHeader(e,t){var r=e.sampleRateIndex,n=e.channelCount;r=_doubleCheckSampleRateIndex(e.config,r);var o=new Uint8Array(7);o[0]=255,o[1]=240,o[1]=1|o[1],o[2]=64,o[2]=o[2]|60&r<<2,o[2]=o[2]|1&n>>2,o[3]=192&n<<6;var i=t.byteLength+7;return o[3]=o[3]|3&i>>11,o[4]=255&i>>3,o[5]=224&i<<5,o[5]=31|o[5],o[6]=252,o}function packageAACToAdts(e,t){var r=new Uint8Array(t.data.byteLength+7),n=_constructAdtsHeader(e,t.data);return r.set(n),r.set(t.data,7),r}function concatAdts(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0,n=0,o=e.length;n<o;n++)t&&n%t==0||(r+=e[n].byteLength);for(var i=new Uint8Array(r),a=0,s=0,c=e.length;s<c;s++)t&&s%t==0||(i.set(e[s],a),a+=e[s].byteLength);return i}function _decodeAlaw(e){for(var t=new Uint8Array(2*e.length),r=0,n=0;r<e.length;){var o=Alaw2lpcm[e[r]];if(void 0===o)throw new Error("can not decode g711 alaw data!");t[n]=255&o,t[n+1]=o>>8,r+=1,n+=2}return t}function _decodeUlaw(e){for(var t=new Uint8Array(2*e.length),r=0,n=0;r<e.length;){var o=Ulaw2lpcm[e[r]];if(void 0===o)throw new Error("can not decode g711 ulaw data!");t[n]=255&o,t[n+1]=o>>8,r+=1,n+=2}return t}function decodeG711(e,t){if("g7110a"===t)return _decodeAlaw(e);if("g7110m"===t)return _decodeUlaw(e);throw new Error("no supported format=".concat(t," for g711"))}function _getSampleCount(e,t,r){return e/t/r}function _uint16ToFloat32(e){return e>=32768?-(65536-e)/32768:e/32767}function createAudioBufferFromPcm(e,t,r,n,o){for(var i=_getSampleCount(t.byteLength,r,o),a=e.createBuffer(r,i,n),s=new DataView(t),c=0;c<r;c++)for(var l=a.getChannelData(c),u=void 0,$=0;$<i;$++)u=s.getUint16($*(2*r)+2*c,!0),l[$]=_uint16ToFloat32(u);return{audioBuffer:a,duration:i/n}}function checkRefillFrame(e){var t=e[0].dts,r=_filterInstanceProperty(e).call(e,(function(e){return e.dts===t})).length;if(!(r<=1))for(var n=0;n<r;n++)e[n].data=silenceFrame}var AudioHelper={decodeG711:decodeG711,createAudioBufferFromPcm:createAudioBufferFromPcm,packageAACToAdts:packageAACToAdts,concatAdts:concatAdts,checkRefillFrame:checkRefillFrame},MEDIA_ERR_DECODE$1=3,ERROR_MSG={INIT_AUDIO_ERR:"create new AudioContext error",DECODE_ERR:"audio data decode error"},AudioRender=function(e){_inherits$1(o,BaseRender);var t,r,n=_createSuper$1(o);function o(e,t){var r,i;return _classCallCheck$2(this,o),_defineProperty$2(_assertThisInitialized$1(i=n.call(this,e,t)),"doPause",i._doPause),i.TAG="AudioRender",i._timeRange=new AudioTimeRange(_assertThisInitialized$1(i)),i._lastTimeLineTime=0,i._sampleQueue=[],i._source=null,i._audioCanAutoplay=!0,i._lastBuffer=null,i._inDecoding=!1,i._endOfStream=!1,i._delay=0,i._isSourceBufferEnd=-1,i._onSourceBufferEnded=_bindInstanceProperty(r=i._onSourceBufferEnded).call(r,_assertThisInitialized$1(i)),i._initAudioCtx(e.volume||.6),i._bindEvents(),i}return _createClass$2(o,[{key:"baseDts",get:function(){return this._timeRange._baseDts}},{key:"currentTime",get:function(){return this._audioCtx?this._lastTimeLineTime+this._audioCtx.currentTime:0}},{key:"preloadTime",get:function(){return this.isLive?1:0}},{key:"timescale",get:function(){return 1e3}},{key:"buffered",get:function(){return this._timeRange.buffered}},{key:"ctxState",get:function(){return this._audioCtx.state}},{key:"audioCanAutoplay",get:function(){return this._audioCanAutoplay}},{key:"resume",value:function(){if(this._audioCtx&&"suspended"===this._audioCtx.state)return this._audioCtx.resume().catch((function(e){}))}},{key:"canSeek",value:function(e){return this._timeRange.canSeek(e)}},{key:"_assembleErr",value:function(e){var t=new Error(e);return t.code=MEDIA_ERR_DECODE$1,t}},{key:"_emitTimelineEvents",value:function(e,t,r){var n,o;null===(n=this._parent)||void 0===n||null===(o=n.emit)||void 0===o||o.call(n,e,t,r)}},{key:"_initAudioCtx",value:function(e){var t=this;logger.log(this.TAG,"init audioCtx");var r=window.AudioContext||window.webkitAudioContext;return this._audioCtx=new r,this._audioCtx?(this._gainNode=this._audioCtx.createGain(),this._gainNode.gain.value=e,this._gainNode.connect(this._audioCtx.destination),this._audioCanAutoplay="running"===this._audioCtx.state,logger.log(this.TAG,"webAudio state:",this._audioCtx.state),initBgSilenceAudio(),this._bindAudioCtxEvent(),this._audioCtx.suspend()):(logger.warn(this.TAG,"create webaudio error!"),void _setTimeout((function(){t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,t._assembleErr(ERROR_MSG.INIT_AUDIO_ERR))})))}},{key:"_bindAudioCtxEvent",value:function(){var e=this;this._onStateChange=function(){e._audioCtx&&"running"===e._audioCtx.state&&e._ready&&e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PLAYING)},this._audioCtx.addEventListener("statechange",this._onStateChange)}},{key:"_bindEvents",value:function(){var e,t=this;_get(_getPrototypeOf$1(o.prototype),"_bindEvents",this).call(this),this._parent.on(Events.DECODE_EVENTS.CHASE_AUDIO_FRAME,_bindInstanceProperty(e=this._doChaseFrame).call(e,this)),this._parent.on(Events.TIMELINE.UPDATE_VOLUME,(function(e){t._gainNode&&(t._gainNode.gain.value=_Number$isFinite(e)?e:1,t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.VOLUME_CHANGE))})),this._parent.on(Events.TIMELINE.END_OF_STREAM,(function(){var e;t._endOfStream=!0,t.noAudio||null!==(e=t._timeRange)&&void 0!==e&&e.hasBuffer()||null==t||t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED)}))}},{key:"_appendChunk",value:function(e,t){if(!this.noAudio){this._meta||(this._meta=t,logger.warn(this.TAG,"audio set metadata",this._meta));var r,n=t.samples;if(n.length)if(this._sampleQueue=_concatInstanceProperty(r=this._sampleQueue).call(r,n),t.samples=[],"aac"===this._meta.codecType){if(this._inDecoding)return;this._decodeAACWrapper()}else this._decodeG711()}}},{key:"_resetDts",value:function(e,t){"video"!==t&&this._timeRange.resetDts(e)}},{key:"_doPlay",value:function(){this.noAudio||this._parent.seeking||(this._source||!this.currentTime?this.resume():this._startRender())}},{key:"_doPause",value:function(){this.noAudio||this._audioCtx.suspend()}},{key:"_reInitAudioCtx",value:function(e){var t=this;if(this._lastTimeLineTime=e,this._lastBuffer=null,this._lastAudioBufferInfo=null,this._delay=0,!this._ready||!this._audioCtx.currentTime)return _Promise.resolve();var r=this._gainNode.gain.value;return this._audioCtx.close().then((function(){return t._audioCtx.removeEventListener("statechange",t._onStateChange),t._audioCtx=null,t._source&&t._source.removeEventListener("ended",t._onSourceBufferEnded),t._source=null,t._initAudioCtx(r)}))}},{key:"_doSeek",value:function(e){var t=this;this._reInitAudioCtx(e).then((function(){t._getAudioBuffer(!0)})).catch((function(e){}))}},{key:"_doChaseFrame",value:function(e){var t=this,r=e.position,n=this._timeRange.deletePassed(r);n&&(logger.log(this.TAG,"_doChaseFrame","startTime:",n.start,"buffeLength:",this.buffered.end(0)-n.start),this._reInitAudioCtx(n.start).then((function(){t._startRender(),t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE)})).catch((function(e){})))}},{key:"_decodeAACWrapper",value:(r=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(){var t,r,n,o,i,a,s,c,l,u;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._sampleQueue.length,r=this._sampleQueue[0],n=this._sampleQueue[t-1],!((o=(n.dts-r.dts)/this.timescale)<1)){e.next=6;break}return e.abrupt("return");case 6:for(i=_parseInt$1(o/3-1)||1,a=_parseInt$1(t/i),s=[],c=0;c<i;c++){var $,d;c<i-1?s.push(_sliceInstanceProperty($=this._sampleQueue).call($,c*a,(c+1)*a)):s.push(_sliceInstanceProperty(d=this._sampleQueue).call(d,c*a))}return this._sampleQueue=[],this._inDecoding=!0,e.prev=12,e.next=15,this._decodeCycle(s);case 15:this._isLive||(l=this._timeRange._buffers,(u=l[l.length-1])&&this._emitTimelineEvents(Events.TIMELINE.UPDATE_SEGMENT_END,u.end)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr("ERROR_MSG.DECODE_ERR:".concat(e.t0&&e.t0.message)));case 21:this._inDecoding=!1;case 22:case"end":return e.stop()}}),e,this,[[12,18]])}))),function(){return r.apply(this,arguments)})},{key:"_decodeCycle",value:(t=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(t){var r;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.shift()){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._decodeAAC(r);case 5:return e.next=7,this._decodeCycle(t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_decodeAAC",value:function(e){var t=this,r=e[0],n=0;AudioHelper.checkRefillFrame(e);var o=_mapInstanceProperty(e).call(e,(function(e){return AudioHelper.packageAACToAdts(t._meta,e)})),i=AudioHelper.concatAdts(o,0);return new _Promise((function(e,o){var a=t._audioCtx.decodeAudioData(i.buffer,(function(o){if(t._timeRange){if(t._lastAudioBufferInfo&&t.isLive){var i=t._lastAudioBufferInfo,a=i.dts+i.duration;(n=r.dts-a)>1&&(t._timeRange._duration+=n/1e3,logger.log(t.TAG,"_decodeAAC","audio data dts is not continue, last end dts:",a,",now start Dts:",r.dts,"delay:",n))}t._lastAudioBufferInfo={duration:Math.floor(1e3*o.duration),dts:r.dts};var s=t._timeRange.append(o,o.duration,r.dts,n/1e3);if(!t._ready){var c=Math.abs(s+o.duration-t.currentTime)<.5;(t.isLive||!c)&&(t._ready=!0,logger.log(t.TAG,"_decodeAAC","set ready true start=",s),t.emit(Events.AUDIO.AUDIO_READY,s))}t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PROGRESS),t._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE),e()}}),o);a.catch&&a.catch(o)}))}},{key:"_decodeG711",value:function(){var e,t,r=this._sampleQueue.length,n=this._sampleQueue[0];if(!((this._sampleQueue[r-1].dts-n.dts)/this.timescale<.5)){var o=_reduceInstanceProperty(e=this._sampleQueue).call(e,(function(e,t){return e+=t.data.byteLength}),0),i=new Uint8Array(o),a=0,s=0;_forEachInstanceProperty(t=this._sampleQueue).call(t,(function(e,t){0===t&&(a=e.dts),i.set(e.data,s),s+=e.data.byteLength})),this._sampleQueue=[];try{var c=this._meta,l=c.codecType,u=c.channelCount,$=c.sampleSize,d=c.sampleRate,A=AudioHelper.decodeG711(i,l),p=AudioHelper.createAudioBufferFromPcm(this._audioCtx,A.buffer,u,d,$/8),f=p.audioBuffer,h=p.duration,y=this._timeRange.append(f,h,a,0);this._ready||(this._ready=!0,logger.log(this.TAG,"_decodeG711","set ready true"),this.emit(Events.AUDIO.AUDIO_READY,y)),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PROGRESS),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE)}catch(e){this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr("ERROR_MSG.DECODE_ERR:".concat(e&&e.message)))}}}},{key:"_onSourceBufferEnded",value:function(){var e;(this._isSourceBufferEnd=!0,logger.long)&&logger.log(this.TAG,_concatInstanceProperty(e="source play end! currentTime:".concat(this.currentTime," , duration:")).call(e,this.duration));this._startRender()}},{key:"_ajustSeekTime",value:function(e){var t=this._timeRange.getBuffer(e,0);t&&(logger.log(this.TAG,"ajust seek time to:",t.start),this._lastTimeLineTime=t.start)}},{key:"_getAudioBuffer",value:function(e){var t=this;if(this._timeRange){var r=this._timeRange.getBuffer(this._lastBuffer?this._lastBuffer.end:this.currentTime,0);return r?e?(this._ajustSeekTime(r.start),void this.emit(Events.AUDIO.AUDIO_READY)):r:(this._endOfStream||!this._isLive)&&this.currentTime-this.duration>-.5?(this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),void this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED)):(this._ready=!1,this._audioCtx.suspend(),this.emit(Events.AUDIO.AUDIO_WAITING),void(e&&(this._onAudioReady||(this._onAudioReady=function(e){t._ajustSeekTime(e)}),this.removeListener(Events.AUDIO.AUDIO_READY,this._onAudioReady),this.once(Events.AUDIO.AUDIO_READY,this._onAudioReady))))}}},{key:"_startRender",value:function(e){if(!this.noAudio){if("video"===e&&this.isLive&&this._ready&&!this._isSourceBufferEnd)return console.log(this.TAG,"_startRender, audio currentTime",this.currentTime,"from:",e,"_isSourceBufferEnd:",this._isSourceBufferEnd,"ready:",this._ready),void this._doPlay();var t=this._getAudioBuffer();if(t){"suspended"===this._audioCtx.state&&(this._audioCtx.resume().catch((function(e){})),playSlienceAudio()),this._lastBuffer=t,this._source=null;var r=this._audioCtx.createBufferSource();r.buffer=t.source,r.loop=!1,this._source=r,r.addEventListener("ended",this._onSourceBufferEnded),r.connect(this._gainNode),t.delay&&t.delay>.001&&(this._delay+=t.delay),this.startDts=t.startDts;try{this._isSourceBufferEnd=!1,r.start()}catch(e){}t.startDts&&this._emitTimelineEvents(Events.TIMELINE.SYNC_DTS,t.startDts)}}}},{key:"_destroy",value:function(){logger.log(this.TAG,"destroy audio..."),this._source&&this._source.removeEventListener("ended",this._onSourceBufferEnded),this._audioCtx&&"closed"!==this.ctxState&&this._audioCtx.close(),this._audioCtx=null,this._sampleQueue=null,this._timeRange=null,this._parent=null,this.removeAllListeners()}}]),o}(),$$D=_export$1,$findIndex$1=arrayIteration$1.findIndex,FIND_INDEX$1="findIndex",SKIPS_HOLES$3=!0;FIND_INDEX$1 in[]&&Array(1)[FIND_INDEX$1]((function(){SKIPS_HOLES$3=!1})),$$D({target:"Array",proto:!0,forced:SKIPS_HOLES$3},{findIndex:function(e){return $findIndex$1(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$f,findIndex$6=entryVirtual$4("Array").findIndex,isPrototypeOf$7=objectIsPrototypeOf$1,method$4=findIndex$6,ArrayPrototype$4=Array.prototype,findIndex$5=function(e){var t=e.findIndex;return e===ArrayPrototype$4||isPrototypeOf$7(ArrayPrototype$4,e)&&t===ArrayPrototype$4.findIndex?method$4:t},parent$q=findIndex$5,findIndex$4=parent$q,parent$p=findIndex$4,findIndex$3=parent$p,parent$o=findIndex$3,findIndex$2=parent$o,findIndex$1=findIndex$2,findIndex3=findIndex$1,_findIndexInstanceProperty=getDefaultExportFromCjs(findIndex3),DESCRIPTORS$c=descriptors$1,isArray$1=isArray$i,$TypeError$4=TypeError,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET$1=DESCRIPTORS$c&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength$1=SILENT_ON_NON_WRITABLE_LENGTH_SET$1?function(e,t){if(isArray$1(e)&&!getOwnPropertyDescriptor$3(e,"length").writable)throw $TypeError$4("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$C=_export$1,toObject$3=toObject$t,toAbsoluteIndex$1=toAbsoluteIndex$d,toIntegerOrInfinity$3=toIntegerOrInfinity$h,lengthOfArrayLike$2=lengthOfArrayLike$u,setArrayLength$1=arraySetLength$1,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$5,arraySpeciesCreate$1=arraySpeciesCreate$7,createProperty$2=createProperty$c,deletePropertyOrThrow$1=deletePropertyOrThrow$4,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$b,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("splice"),max$1=Math.max,min$1=Math.min;$$C({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{splice:function(e,t){var r,n,o,i,a,s,c=toObject$3(this),l=lengthOfArrayLike$2(c),u=toAbsoluteIndex$1(e,l),$=arguments.length;for(0===$?r=n=0:1===$?(r=0,n=l-u):(r=$-2,n=min$1(max$1(toIntegerOrInfinity$3(t),0),l-u)),doesNotExceedSafeInteger$1(l+r-n),o=arraySpeciesCreate$1(c,n),i=0;i<n;i++)(a=u+i)in c&&createProperty$2(o,i,c[a]);if(o.length=n,r<n){for(i=u;i<l-n;i++)s=i+r,(a=i+n)in c?c[s]=c[a]:deletePropertyOrThrow$1(c,s);for(i=l;i>l-n+r;i--)deletePropertyOrThrow$1(c,i-1)}else if(r>n)for(i=l-n;i>u;i--)s=i+r-1,(a=i+n-1)in c?c[s]=c[a]:deletePropertyOrThrow$1(c,s);for(i=0;i<r;i++)c[i+u]=arguments[i+2];return setArrayLength$1(c,l-n+r),o}});var entryVirtual$3=entryVirtual$f,splice$8=entryVirtual$3("Array").splice,isPrototypeOf$6=objectIsPrototypeOf$1,method$3=splice$8,ArrayPrototype$3=Array.prototype,splice$7=function(e){var t=e.splice;return e===ArrayPrototype$3||isPrototypeOf$6(ArrayPrototype$3,e)&&t===ArrayPrototype$3.splice?method$3:t},parent$n=splice$7,splice$6=parent$n,parent$m=splice$6,splice$5=parent$m,parent$l=splice$5,splice$4=parent$l,splice$3=splice$4,splice$2=splice$3,_spliceInstanceProperty=getDefaultExportFromCjs(splice$2),$$B=_export,$findIndex=arrayIteration.findIndex,addToUnscopables$1=addToUnscopables$4,FIND_INDEX="findIndex",SKIPS_HOLES$2=!0;FIND_INDEX in[]&&Array(1)[FIND_INDEX]((function(){SKIPS_HOLES$2=!1})),$$B({target:"Array",proto:!0,forced:SKIPS_HOLES$2},{findIndex:function(e){return $findIndex(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables$1(FIND_INDEX);var DESCRIPTORS$b=descriptors,isArray3=isArray$5,$TypeError$3=TypeError,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$b&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(e,t){if(isArray3(e)&&!getOwnPropertyDescriptor$2(e,"length").writable)throw $TypeError$3("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$A=_export,toObject$2=toObject$j,toAbsoluteIndex=toAbsoluteIndex$8,toIntegerOrInfinity$2=toIntegerOrInfinity$d,lengthOfArrayLike$1=lengthOfArrayLike$l,setArrayLength=arraySetLength,doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$4,createProperty$1=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$6,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$6,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("splice"),max=Math.max,min=Math.min;$$A({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{splice:function(e,t){var r,n,o,i,a,s,c=toObject$2(this),l=lengthOfArrayLike$1(c),u=toAbsoluteIndex(e,l),$=arguments.length;for(0===$?r=n=0:1===$?(r=0,n=l-u):(r=$-2,n=min(max(toIntegerOrInfinity$2(t),0),l-u)),doesNotExceedSafeInteger(l+r-n),o=arraySpeciesCreate(c,n),i=0;i<n;i++)(a=u+i)in c&&createProperty$1(o,i,c[a]);if(o.length=n,r<n){for(i=u;i<l-n;i++)s=i+r,(a=i+n)in c?c[s]=c[a]:deletePropertyOrThrow(c,s);for(i=l;i>l-n+r;i--)deletePropertyOrThrow(c,i-1)}else if(r>n)for(i=l-n;i>u;i--)s=i+r-1,(a=i+n-1)in c?c[s]=c[a]:deletePropertyOrThrow(c,s);for(i=0;i<r;i++)c[i+u]=arguments[i+2];return setArrayLength(c,l-n+r),o}});var $$z=_export,toObject$1=toObject$j,nativeKeys=objectKeys$5,fails$a=fails$M,FAILS_ON_PRIMITIVES$1=fails$a((function(){nativeKeys(1)}));$$z({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$1},{keys:function(e){return nativeKeys(toObject$1(e))}});var charAt$4=stringMultibyte.charAt,toString$2=toString$b,InternalStateModule$6=internalState,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$3,STRING_ITERATOR="String Iterator",setInternalState$6=InternalStateModule$6.set,getInternalState=InternalStateModule$6.getterFor(STRING_ITERATOR);defineIterator$1(String,"String",(function(e){setInternalState$6(this,{type:STRING_ITERATOR,string:toString$2(e),index:0})}),(function(){var e,t=getInternalState(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject$1(void 0,!0):(e=charAt$4(r,n),t.index+=e.length,createIterResultObject$1(e,!1))}));var global$8=global$H,DOMIterables$1=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$a,wellKnownSymbol$4=wellKnownSymbol$q,ITERATOR$4=wellKnownSymbol$4("iterator"),TO_STRING_TAG=wellKnownSymbol$4("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR$4]!==ArrayValues)try{createNonEnumerableProperty$1(e,ITERATOR$4,ArrayValues)}catch(t){e[ITERATOR$4]=ArrayValues}if(e[TO_STRING_TAG]||createNonEnumerableProperty$1(e,TO_STRING_TAG,t),DOMIterables$1[t])for(var r in ArrayIteratorMethods)if(e[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(e,r,ArrayIteratorMethods[r])}catch(t){e[r]=ArrayIteratorMethods[r]}}};for(var COLLECTION_NAME in DOMIterables$1)handlePrototype(global$8[COLLECTION_NAME]&&global$8[COLLECTION_NAME].prototype,COLLECTION_NAME);function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass$1(e,t,r){return t&&_defineProperties$1(e.prototype,t),r&&_defineProperties$1(e,r),_Object$defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty$1(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(_Array$isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(_Array$isArray(e))return e}function _iterableToArray(e){if(void 0!==_Symbol&&null!=_getIteratorMethod(e)||null!=e["@@iterator"])return _Array$from(e)}function _iterableToArrayLimit(e,t){var r=null==e?null:void 0!==_Symbol&&_getIteratorMethod(e)||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}function _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=_sliceInstanceProperty(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?_Array$from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}handlePrototype(DOMTokenListPrototype,"DOMTokenList");var TrackType={VIDEO:"video",AUDIO:"audio",METADATA:"metadata"},VideoCodecType={AVC:"avc",HEVC:"hevc"},call$9=functionCall,hasOwn$7=hasOwnProperty_1,isPrototypeOf$5=objectIsPrototypeOf,regExpFlags$2=regexpFlags$2,RegExpPrototype$4=RegExp.prototype,regexpGetFlags$1=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$4||hasOwn$7(e,"flags")||!isPrototypeOf$5(RegExpPrototype$4,e)?t:call$9(regExpFlags$2,e)},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn$5=defineBuiltIn$h,anObject$5=anObject$k,$toString$4=toString$b,fails$9=fails$M,getRegExpFlags$1=regexpGetFlags$1,TO_STRING="toString",RegExpPrototype$3=RegExp.prototype,nativeToString=RegExpPrototype$3[TO_STRING],NOT_GENERIC=fails$9((function(){return"/a/b"!=nativeToString.call({source:"a",flags:"b"})})),INCORRECT_NAME=PROPER_FUNCTION_NAME&&nativeToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$5(RegExp.prototype,TO_STRING,(function(){var e=anObject$5(this);return"/"+$toString$4(e.source)+"/"+$toString$4(getRegExpFlags$1(e))}),{unsafe:!0});var DESCRIPTORS$a=descriptors,FUNCTION_NAME_EXISTS=functionName.EXISTS,uncurryThis$d=functionUncurryThis,defineProperty$3=objectDefineProperty.f,FunctionPrototype=Function.prototype,functionToString=uncurryThis$d(FunctionPrototype.toString),nameRE=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,regExpExec=uncurryThis$d(nameRE.exec),NAME="name";DESCRIPTORS$a&&!FUNCTION_NAME_EXISTS&&defineProperty$3(FunctionPrototype,NAME,{configurable:!0,get:function(){try{return regExpExec(nameRE,functionToString(this))[1]}catch(e){return""}}});var $$y=_export,uncurryThis$c=functionUncurryThis,IndexedObject=indexedObject,toIndexedObject$2=toIndexedObject$c,arrayMethodIsStrict$1=arrayMethodIsStrict$7,nativeJoin=uncurryThis$c([].join),ES3_STRINGS=IndexedObject!=Object,STRICT_METHOD=arrayMethodIsStrict$1("join",",");$$y({target:"Array",proto:!0,forced:ES3_STRINGS||!STRICT_METHOD},{join:function(e){return nativeJoin(toIndexedObject$2(this),void 0===e?",":e)}});var $$x=_export$1,uncurryThis$b=functionUncurryThisClause$1,$indexOf=arrayIncludes$1.indexOf,arrayMethodIsStrict=arrayMethodIsStrict$9,nativeIndexOf=uncurryThis$b([].indexOf),NEGATIVE_ZERO=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED$2=NEGATIVE_ZERO||!arrayMethodIsStrict("indexOf");$$x({target:"Array",proto:!0,forced:FORCED$2},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO?nativeIndexOf(this,e,t)||0:$indexOf(this,e,t)}});var entryVirtual$2=entryVirtual$f,indexOf$6=entryVirtual$2("Array").indexOf,isPrototypeOf$4=objectIsPrototypeOf$1,method$2=indexOf$6,ArrayPrototype$2=Array.prototype,indexOf$5=function(e){var t=e.indexOf;return e===ArrayPrototype$2||isPrototypeOf$4(ArrayPrototype$2,e)&&t===ArrayPrototype$2.indexOf?method$2:t},parent$k=indexOf$5,indexOf$4=parent$k,parent$j=indexOf$4,indexOf$3=parent$j,parent$i=indexOf$3,indexOf$2=parent$i,indexOf$1=indexOf$2,indexOf3=indexOf$1,_indexOfInstanceProperty=getDefaultExportFromCjs(indexOf3);function concatUint8Array(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=_filterInstanceProperty(t).call(t,Boolean);var n=new Uint8Array(_reduceInstanceProperty(t).call(t,(function(e,t){return e+t.byteLength}),0)),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set(e,o),o+=e.byteLength})),n}function parse(e){if(!_Array$isArray(e)){for(var t=[],r="",n=0;n<e.length;n++)n%2&&(r=e[n-1]+e[n],t.push(_parseInt$1(r,16)),r="");return t}return _mapInstanceProperty(e).call(e,(function(e){return _parseInt$1(e,16)}))}var anObject$4=anObject$z,regexpFlags=function(){var e=anObject$4(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},call$8=functionCall$1,hasOwn$6=hasOwnProperty_1$1,isPrototypeOf$3=objectIsPrototypeOf$1,regExpFlags$1=regexpFlags,RegExpPrototype$2=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$2||hasOwn$6(e,"flags")||!isPrototypeOf$3(RegExpPrototype$2,e)?t:call$8(regExpFlags$1,e)},getRegExpFlags=regexpGetFlags,flags$6=getRegExpFlags,isPrototypeOf$2=objectIsPrototypeOf$1,flags$5=flags$6,RegExpPrototype$1=RegExp.prototype,flags_1=function(e){return e===RegExpPrototype$1||isPrototypeOf$2(RegExpPrototype$1,e)?flags$5(e):e.flags},parent$h=flags_1,flags$4=parent$h,parent$g=flags$4,flags$3=parent$g,parent$f=flags$3,flags$2=parent$f,flags$1=flags$2,flags=flags$1,_flagsInstanceProperty=getDefaultExportFromCjs(flags),entryVirtual$1=entryVirtual$f,entries$c=entryVirtual$1("Array").entries,parent$e=entries$c,entries$b=parent$e,classof$3=classof$r,hasOwn$5=hasOwnProperty_1$1,isPrototypeOf$1=objectIsPrototypeOf$1,method$1=entries$b,ArrayPrototype$1=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},entries$a=function(e){var t=e.entries;return e===ArrayPrototype$1||isPrototypeOf$1(ArrayPrototype$1,e)&&t===ArrayPrototype$1.entries||hasOwn$5(DOMIterables,classof$3(e))?method$1:t},parent$d=entries$a,entries$9=parent$d,parent$c=entries$9,entries$8=parent$c,entries$7=entries$8,entries$6=entries$7,_entriesInstanceProperty=getDefaultExportFromCjs(entries$6),$$w=_export$1,$find$1=arrayIteration$1.find,FIND$1="find",SKIPS_HOLES$1=!0;FIND$1 in[]&&Array(1)[FIND$1]((function(){SKIPS_HOLES$1=!1})),$$w({target:"Array",proto:!0,forced:SKIPS_HOLES$1},{find:function(e){return $find$1(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual=entryVirtual$f,find$8=entryVirtual("Array").find,isPrototypeOf=objectIsPrototypeOf$1,method=find$8,ArrayPrototype=Array.prototype,find$7=function(e){var t=e.find;return e===ArrayPrototype||isPrototypeOf(ArrayPrototype,e)&&t===ArrayPrototype.find?method:t},parent$b=find$7,find$6=parent$b,parent$a=find$6,find$5=parent$a,parent$9=find$5,find$4=parent$9,find$3=find$4,find$2=find$3,_findInstanceProperty=getDefaultExportFromCjs(find$2),makeBuiltIn=makeBuiltInExports,defineProperty$2=objectDefineProperty,defineBuiltInAccessor$5=function(e,t,r){return r.get&&makeBuiltIn(r.get,t,{getter:!0}),r.set&&makeBuiltIn(r.set,t,{setter:!0}),defineProperty$2.f(e,t,r)},global$7=global$H,DESCRIPTORS$9=descriptors,defineBuiltInAccessor$4=defineBuiltInAccessor$5,regExpFlags=regexpFlags$2,fails$8=fails$M,RegExp$3=global$7.RegExp,RegExpPrototype=RegExp$3.prototype,FORCED$1=DESCRIPTORS$9&&fails$8((function(){var e=!0;try{RegExp$3(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(RegExpPrototype,"flags").get.call(t)!==n||r!==n}));FORCED$1&&defineBuiltInAccessor$4(RegExpPrototype,"flags",{configurable:!0,get:regExpFlags});var toIntegerOrInfinity$1=toIntegerOrInfinity$d,toString$1=toString$b,requireObjectCoercible=requireObjectCoercible$6,$RangeError$3=RangeError,stringRepeat=function(e){var t=toString$1(requireObjectCoercible(this)),r="",n=toIntegerOrInfinity$1(e);if(n<0||n==1/0)throw $RangeError$3("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},$$v=_export,$find=arrayIteration.find,addToUnscopables=addToUnscopables$4,FIND="find",SKIPS_HOLES=!0;FIND in[]&&Array(1)[FIND]((function(){SKIPS_HOLES=!1})),$$v({target:"Array",proto:!0,forced:SKIPS_HOLES},{find:function(e){return $find(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(FIND);var anObject$3=anObject$k,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$3(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$d=functionBindContext,call$7=functionCall,toObject=toObject$j,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$3,isConstructor5=isConstructor$4,lengthOfArrayLike=lengthOfArrayLike$l,createProperty=createProperty$6,getIterator$2=getIterator$5,getIteratorMethod$2=getIteratorMethod$6,$Array=Array,arrayFrom$2=function(e){var t=toObject(e),r=isConstructor5(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=bind$d(o,n>2?arguments[2]:void 0));var a,s,c,l,u,$,d=getIteratorMethod$2(t),A=0;if(!d||this===$Array&&isArrayIteratorMethod(d))for(a=lengthOfArrayLike(t),s=r?new this(a):$Array(a);a>A;A++)$=i?o(t[A],A):t[A],createProperty(s,A,$);else for(u=(l=getIterator$2(t,d)).next,s=r?new this:[];!(c=call$7(u,l)).done;A++)$=i?callWithSafeIterationClosing(l,o,[c.value,A],!0):c.value,createProperty(s,A,$);return s.length=A,s},$$u=_export,global$6=global$H,arrayBufferModule=arrayBuffer,setSpecies$1=setSpecies$4,ARRAY_BUFFER="ArrayBuffer",ArrayBuffer$1=arrayBufferModule[ARRAY_BUFFER],NativeArrayBuffer=global$6[ARRAY_BUFFER];function Concat(e){for(var t=0,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];_forEachInstanceProperty(n).call(n,(function(e){t+=e.length}));var i=new e(t),a=0;return _forEachInstanceProperty(n).call(n,(function(e){i.set(e,a),a+=e.length})),i}$$u({global:!0,constructor:!0,forced:NativeArrayBuffer!==ArrayBuffer$1},{ArrayBuffer:ArrayBuffer$1}),setSpecies$1(ARRAY_BUFFER);var _context21,Buffer$1=function(){function e(){_classCallCheck$1(this,e),this.buffer=new Uint8Array(0)}return _createClass$1(e,[{key:"write",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];_forEachInstanceProperty(r).call(r,(function(t){t?e.buffer=Concat(Uint8Array,e.buffer,t):window.console.warn(t)}))}}],[{key:"writeUint16",value:function(e){return new Uint8Array([e>>8&255,255&e])}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>24,e>>16&255,e>>8&255,255&e])}}]),e}(),UINT32_MAX=Math.pow(2,32)-1,MP4=function(){function e(){_classCallCheck$1(this,e)}return _createClass$1(e,null,[{key:"box",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r=_filterInstanceProperty(r).call(r,Boolean);var o=8+_reduceInstanceProperty(r).call(r,(function(e,t){return e+t.byteLength}),0),i=new Uint8Array(o);i[0]=o>>24&255,i[1]=o>>16&255,i[2]=o>>8&255,i[3]=255&o,i.set(e,4);var a=8;return _forEachInstanceProperty(r).call(r,(function(e){i.set(e,a),a+=e.byteLength})),i}},{key:"ftyp",value:function(t){return _findInstanceProperty(t).call(t,(function(e){return e.type===TrackType.VIDEO&&e.codecType===VideoCodecType.HEVC}))?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){return concatUint8Array(e.ftyp(t),e.moov(t))}},{key:"pssh",value:function(t){var r,n=new Uint8Array(_concatInstanceProperty(r=[1,0,0,0]).call(r,[16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],parse(t.kid),[0,0,0,0]));return e.box(e.types.pssh,n)}},{key:"moov",value:function(t){if(t[0].useEME&&(t[0].encv||t[0].enca)){var r;t[0].pssh||(t[0].pssh={kid:t[0].kid});var n=this.pssh(t[0].pssh);return e.box.apply(e,_concatInstanceProperty(r=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale),e.mvex(t)]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trak(t)}))),[n]))}var o;return e.box.apply(e,_concatInstanceProperty(o=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)]).call(o,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trak(t)}))),[e.mvex(t)]))}},{key:"mvhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.tkhdDuration||0,t.width,t.height),e.mdia(t))}},{key:"tkhd",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,o>>8&255,255&o,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minf(t))}},{key:"mdhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,85,196,0,0]))}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"minf",value:function(t){return e.box(e.types.minf,t.type===TrackType.VIDEO?e.VMHD:e.SMHD,e.DINF,e.stbl(t))}},{key:"stbl",value:function(t){var r=[];return t&&t.ext&&t.ext.stss&&r.push(e.stss(_entriesInstanceProperty(t.ext.stss))),e.box(e.types.stbl,e.stsd(t),e.STTS,r[0],e.STSC,e.STSZ,e.STCO)}},{key:"stsd",value:function(t){var r;return r="audio"===t.type?t.useEME&&t.enca?e.enca(t):e.mp4a(t):t.useEME&&t.encv?e.encv(t):e.avc1hev1(t),e.box(e.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),r)}},{key:"enca",value:function(t){var r=t.enca.channelCount,n=t.enca.sampleRate,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,r,0,16,0,0,0,0,n>>8&255,255&n,0,0]),i=e.esds(t.config),a=e.sinf(t.enca);return e.box(e.types.enca,o,i,a)}},{key:"encv",value:function(t){var r,n,o,i=t.sps.length>0?t.sps[0]:[],a=t.pps.length>0?t.pps[0]:[],s=t.width,c=t.height,l=t.sarRatio[0],u=t.sarRatio[1],$=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d=new Uint8Array(_concatInstanceProperty(n=_concatInstanceProperty(r=_concatInstanceProperty(o=[1,i[1],i[2],i[3],255,225,i.length>>>8&255,255&i.length]).apply(o,_toConsumableArray(i))).call(r,[1,a.length>>>8&255,255&a.length])).apply(n,_toConsumableArray(a))),A=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),p=e.sinf(t.encv),f=new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,u>>24,u>>16&255,u>>8&255,255&u]);return e.box(e.types.encv,$,e.box(e.types.avcC,d),e.box(e.types.btrt,A),p,e.box(e.types.pasp,f))}},{key:"schi",value:function(t){var r=new Uint8Array([]),n=e.tenc(t);return e.box(e.types.schi,r,n)}},{key:"tenc",value:function(t){var r,n=new Uint8Array(_concatInstanceProperty(r=[0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size]).call(r,parse(t.default_KID)));return e.box(e.types.tenc,n)}},{key:"sinf",value:function(t){var r=new Uint8Array([]),n=new Uint8Array([t.data_format.charCodeAt(0),t.data_format.charCodeAt(1),t.data_format.charCodeAt(2),t.data_format.charCodeAt(3)]),o=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),i=e.schi(t);return e.box(e.types.sinf,r,e.box(e.types.frma,n),e.box(e.types.schm,o),i)}},{key:"avc1hev1",value:function(t){var r,n=t.codecType===VideoCodecType.HEVC,o=n?e.types.hvc1:e.types.avc1,i=n?e.hvcC(t):e.avcC(t),a=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i];return n?a.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&a.push(e.pasp(t.sarRatio)),e.box.apply(e,_concatInstanceProperty(r=[o]).call(r,a))}},{key:"avcC",value:function(t){var r,n,o,i,a,s,c=[],l=[];return _forEachInstanceProperty(r=t.sps).call(r,(function(e){s=e.byteLength,c.push(s>>>8&255),c.push(255&s),c.push.apply(c,_toConsumableArray(e))})),_forEachInstanceProperty(n=t.pps).call(n,(function(e){s=e.byteLength,l.push(s>>>8&255),l.push(255&s),l.push.apply(l,_toConsumableArray(e))})),e.box(e.types.avcC,new Uint8Array(_concatInstanceProperty(i=_concatInstanceProperty(o=_concatInstanceProperty(a=[1,c[3],c[4],c[5],255,224|t.sps.length]).apply(a,c)).call(o,[t.pps.length])).apply(i,l)))}},{key:"hvcC",value:function(t){var r=t.hvcC;if(r instanceof ArrayBuffer||r instanceof Uint8Array)return r;var n,o=t.vps,i=t.sps,a=t.pps;if(r){var s=r.generalProfileCompatibilityFlags,c=r.generalConstraintIndicatorFlags,l=(o.length&&1)+(i.length&&1)+(a.length&&1);n=[1,r.generalProfileSpace<<6|r.generalTierFlag<<5|r.generalProfileIdc,s>>>24,s>>>16,s>>>8,s,c[0],c[1],c[2],c[3],c[4],c[5],r.generalLevelIdc,240,0,252,252|r.chromaFormatIdc,248|r.bitDepthLumaMinus8,248|r.bitDepthChromaMinus8,0,0,r.numTemporalLayers<<3|r.temporalIdNested<<2|3,l];var u=function(e){var t;n.push(e.length>>8,e.length),(t=n).push.apply(t,_toConsumableArray(e))};o.length&&(n.push(160,0,o.length),_forEachInstanceProperty(o).call(o,u)),i.length&&(n.push(161,0,i.length),_forEachInstanceProperty(i).call(i,u)),a.length&&(n.push(162,0,a.length),_forEachInstanceProperty(a).call(a,u))}else n=[1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64];return e.box(e.types.hvcC,new Uint8Array(n))}},{key:"pasp",value:function(t){var r=_slicedToArray(t,2),n=r[0],o=r[1];return e.box(e.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o]))}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),t.config.length?e.esds(t.config):void 0)}},{key:"esds",value:function(t){var r,n,o,i=t.length;return e.box(e.types.esds,new Uint8Array(_concatInstanceProperty(r=_concatInstanceProperty(n=_concatInstanceProperty(o=[0,0,0,0,3,23+i,0,0,0,4,15+i,64,21,0,6,0,0,0,218,192,0,0,218,192,5]).call(o,[i])).call(n,t)).call(r,[6,1,2])))}},{key:"mvex",value:function(t){var r;return e.box.apply(e,_concatInstanceProperty(r=[e.types.mvex]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trex(t.id)})))))}},{key:"trex",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trex1",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,2,0,0,0,0,0,0,1,0,0]))}},{key:"trex2",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,4,0,0,0,0,0,2,0,0,0]))}},{key:"moof",value:function(t){var r;return e.box.apply(e,_concatInstanceProperty(r=[e.types.moof,e.mfhd(t[0].samples?t[0].samples[0].gopId:0)]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.traf(t)})))))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"traf",value:function(t){var r,n=e.tfhd(t.id),o=e.tfdt(t,t.baseMediaDecodeTime),i=0;if(t.isVideo&&t.videoSenc&&(r=t.videoSenc,_forEachInstanceProperty(r).call(r,(function(e){i+=8,e.subsamples&&e.subsamples.length&&(i+=2,i+=6*e.subsamples.length)}))),t.videoSencLength=i,t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)){if(t.isVideoEncryption){if(t.isVideo){var a=e.saiz(t),s=e.saio(t),c=e.trun1(t),l=e.senc(t);return e.box(e.types.traf,n,o,a,s,c,l)}if(t.isAudioEncryption){var u=e.sbgp(),$=e.saiz(t),d=e.saio(t),A=e.senc(t),p=e.trun1(t);return e.box(e.types.traf,n,o,u,$,d,A,p)}var f=e.sbgp(),h=e.trun1(t);return e.box(e.types.traf,n,o,f,h)}if(t.isVideo){var y=e.trun1(t);return e.box(e.types.traf,n,o,y)}var _=e.sbgp(),g=e.saiz(t),m=e.saio(t),E=e.senc(t),b=e.trun1(t);return e.box(e.types.traf,n,o,_,g,m,E,b)}var I=e.sdtp(t);return e.box(e.types.traf,n,o,I,e.trun(t.samples,I.byteLength+76))}},{key:"sdtp",value:function(t){var r,n=new Buffer$1;return _forEachInstanceProperty(r=t.samples).call(r,(function(e){n.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))})),e.box(e.types.sdtp,this.extension(0,0),n.buffer)}},{key:"trun1",value:function(t){var r,n=new Buffer$1,o=Buffer$1.writeUint32(t.samples.length),i=null;if(t.isVideo){var a=t.videoSencLength;i=Buffer$1.writeUint32(16*t.samples.length+a+149),!t.isVideoEncryption&&t.isAudioEncryption&&(i=Buffer$1.writeUint32(16*t.samples.length+92))}else{var s=12*t.samples.length+124;t.isAudioEncryption&&(s=12*t.samples.length+8*t.audioSenc.length+177),i=Buffer$1.writeUint32(s)}return _forEachInstanceProperty(r=t.samples).call(r,(function(e){n.write(Buffer$1.writeUint32(e.duration)),n.write(Buffer$1.writeUint32(e.size)),n.write(Buffer$1.writeUint32(e.keyframe?33554432:65536)),t.isVideo&&n.write(Buffer$1.writeUint32(e.cts?e.cts:0))})),e.box(e.types.trun,this.extension(0,_flagsInstanceProperty(t)),o,i,n.buffer)}},{key:"senc",value:function(t){var r=new Buffer$1,n=t.samples.length,o=t.isVideo?16:8,i=t.isVideo?2:0,a=[],s=0;return t.isVideo?(a=t.videoSenc,s=t.videoSencLength):a=t.audioSenc,s=s||o*n,r.write(Buffer$1.writeUint32(16+s),e.types.senc,this.extension(0,i)),r.write(Buffer$1.writeUint32(n)),_forEachInstanceProperty(a).call(a,(function(e){for(var t=0;t<e.InitializationVector.length;t++)r.write(new Uint8Array([e.InitializationVector[t]]));var n;e.subsamples&&e.subsamples.length&&(r.write(Buffer$1.writeUint16(e.subsamples.length)),_forEachInstanceProperty(n=e.subsamples).call(n,(function(e){r.write(Buffer$1.writeUint16(e.BytesOfClearData)),r.write(Buffer$1.writeUint32(e.BytesOfProtectedData))})))})),r.buffer}},{key:"saio",value:function(t){var r=12*t.samples.length+141;!t.isVideo&&t.isAudioEncryption&&(r=149);var n=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saio,n)}},{key:"saiz",value:function(t){var r=t.samples.length,n=new Uint8Array([0,0,0,0,16,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saiz,n)}},{key:"sbgp",value:function(){var t=new Uint8Array([114,111,108,108,0,0,0,1,0,0,1,25,0,0,0,1]);return e.box(e.types.sbgp,this.extension(0,0),t)}},{key:"extension",value:function(e,t){return new Uint8Array([e,t>>16&255,t>>8&255,255&t])}},{key:"tfhd",value:function(t){return e.box(e.types.tfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"tfdt",value:function(t,r){var n=Math.floor(r/(UINT32_MAX+1)),o=Math.floor(r%(UINT32_MAX+1));return t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)?e.box(e.types.tfdt,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o])):e.box(e.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o]))}},{key:"trun",value:function(t,r){var n=t.length,o=12+16*n;r+=8+o;var i=new Uint8Array(o);i.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0);for(var a=0;a<n;a++){var s=t[a],c=s.duration,l=s.size,u=s.flag,$=void 0===u?{}:u,d=s.cts,A=void 0===d?0:d;i.set([c>>>24&255,c>>>16&255,c>>>8&255,255&c,l>>>24&255,l>>>16&255,l>>>8&255,255&l,$.isLeading<<2|(null===$.dependsOn||void 0===$.dependsOn?1:$.dependsOn),$.isDependedOn<<6|$.hasRedundancy<<4|$.paddingValue<<1|(null===$.isNonSyncSample||void 0===$.isNonSyncSample?1:$.isNonSyncSample),61440&$.degradationPriority,15&$.degradationPriority,A>>>24&255,A>>>16&255,A>>>8&255,255&A],12+16*a)}return e.box(e.types.trun,i)}},{key:"moovMP4",value:function(t){var r;return e.box.apply(e,_concatInstanceProperty(r=[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)]).call(r,_toConsumableArray(_mapInstanceProperty(t).call(t,(function(t){return e.trackMP4(t)})))))}},{key:"trackMP4",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.duration,t.width,t.height),e.mdiaMP4(t))}},{key:"mdiaMP4",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minfMP4(t))}},{key:"minfMP4",value:function(t){return e.box(e.types.minf,t.type===TrackType.VIDEO?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var r,n=t.ext,o=[e.stsd(t),e.stts(n.stts),e.stsc(n.stsc),e.stsz(n.stsz),e.stco(n.stco)];return n.stss.length&&o.push(e.stss(n.stss)),n.ctts.length&&o.push(e.ctts(n.ctts)),e.box.apply(e,_concatInstanceProperty(r=[e.types.stbl]).call(r,o))}},{key:"stts",value:function(t){var r=t.length,n=new Uint8Array(8*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],o),o+=8})),e.box(e.types.stts,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsc",value:function(t){var r=t.length,n=new Uint8Array(12*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){var t=e.firstChunk,r=e.samplesPerChunk,i=e.sampleDescIndex;n.set([t>>24,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i],o),o+=12})),e.box(e.types.stsc,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsz",value:function(t){var r=t.length,n=new Uint8Array(4*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],o),o+=4})),e.box(e.types.stsz,concatUint8Array(new Uint8Array([0,0,0,0,0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stco",value:function(t){var r=t.length,n=new Uint8Array(4*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],o),o+=4})),e.box(e.types.stco,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stss",value:function(t){var r=t.length,n=new Uint8Array(4*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],o),o+=4})),e.box(e.types.stss,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"ctts",value:function(t){var r=t.length,n=new Uint8Array(8*r),o=0;return _forEachInstanceProperty(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],o),o+=8})),e.box(e.types.ctts,concatUint8Array(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"styp",value:function(){return e.box(e.types.styp,new Uint8Array([109,115,100,104,0,0,0,0,109,115,100,104,109,115,105,120]))}},{key:"sidx",value:function(t){var r,n=t.timescale,o=t.samples[0].duration,i=o*t.samples.length,a=t.samples[0].sampleOffset*o,s=8;_forEachInstanceProperty(r=t.samples).call(r,(function(e){s+=e.size}));var c=0;if(t.isVideo){var l,u=0;t.videoSenc&&(l=t.videoSenc),t.isVideo&&_forEachInstanceProperty(l).call(l,(function(e){u+=8,e.subsamples&&e.subsamples.length&&(u+=2,u+=6*e.subsamples.length)})),t.videoSencLength=u,c=s+141+16*t.samples.length+u,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(c=s+16*t.samples.length+84)}else c=s+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(c=s+169+12*t.samples.length+8*t.audioSenc.length);var $=new Uint8Array([0,0,0,0,0,0,0,255&t.id,n>>24&255,n>>16&255,n>>8&255,255&n,a>>24&255,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,1,0,c>>16&255,c>>8&255,255&c,i>>24&255,i>>16&255,i>>8&255,255&i,144,0,0,0]);return e.box(e.types.sidx,$)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();_defineProperty$1(MP4,"types",_reduceInstanceProperty(_context21=["avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trex","tkhd","vmhd","smhd","ctts","stss","styp","pssh","sidx","sbgp","saiz","saio","senc","trun","encv","enca","sinf","btrt","frma","tenc","schm","schi","mehd","fiel","sdtp"]).call(_context21,(function(e,t){return e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)],e}),_Object$create(null))),_defineProperty$1(MP4,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),_defineProperty$1(MP4,"FTYPAVC1",MP4.box(MP4.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),_defineProperty$1(MP4,"FTYPHEV1",MP4.box(MP4.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),_defineProperty$1(MP4,"DINF",MP4.box(MP4.types.dinf,MP4.box(MP4.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),_defineProperty$1(MP4,"VMHD",MP4.box(MP4.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),_defineProperty$1(MP4,"SMHD",MP4.box(MP4.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),_defineProperty$1(MP4,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),_defineProperty$1(MP4,"STTS",MP4.box(MP4.types.stts,MP4.StblTable)),_defineProperty$1(MP4,"STSC",MP4.box(MP4.types.stsc,MP4.StblTable)),_defineProperty$1(MP4,"STSZ",MP4.box(MP4.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),_defineProperty$1(MP4,"STCO",MP4.box(MP4.types.stco,MP4.StblTable));var Logger$1=function(){function e(t,r){_classCallCheck$1(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=r}return _createClass$1(e,[{key:"debug",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).debug.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"log",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).log.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).warn.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"error",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).error.apply(r,_concatInstanceProperty(t=[this._prefix]).call(t,o))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();_defineProperty$1(Logger$1,"disabled",!0);var FMP4Remuxer=function(){function e(t,r,n){_classCallCheck$1(this,e),this.videoTrack=t,this.audioTrack=r;var o=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=o&&Number(o[1])<50,this.log=new Logger$1("FMP4Remuxer",!n||!n.openLog||!n.openLog)}return _createClass$1(e,[{key:"remux",value:function(){var e,t,r,n,o,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.videoTrack,c=this.audioTrack,l=s.exist(),u=c.exist(),$=[];return i&&(a&&a.initMerge?(l&&$.push(this.videoTrack),u&&$.push(this.audioTrack),r=MP4.initSegment($)):(l&&(e=MP4.initSegment([this.videoTrack])),u&&(t=MP4.initSegment([this.audioTrack])))),l&&s.hasSample()&&(n=this._remuxVideo()),u&&c.hasSample()&&(o=this._remuxAudio()),s.samples=[],c.samples=[],{initSegment:r,videoInitSegment:e,audioInitSegment:t,videoSegment:n,audioSegment:o}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,r=0;_forEachInstanceProperty(t).call(t,(function(e){var t;r+=_reduceInstanceProperty(t=e.units).call(t,(function(e,t){return e+t.byteLength}),0),r+=4*e.units.length}));for(var n,o=new Uint8Array(r),i=new DataView(o.buffer),a=function(e,r,a,s){var c;s=t[e];var u=0;_forEachInstanceProperty(c=s.units).call(c,(function(e){i.setUint32(a,e.byteLength),a+=4,o.set(e,a),a+=e.byteLength,u+=4+e.byteLength})),s.size=u,l=a,n=s},s=0,c=t.length,l=0;s<c;s++)a(s,0,l,n);var u=MP4.mdat(o);return concatUint8Array(MP4.moof([e]),u)}},{key:"_remuxAudio",value:function(){var e,t,r=this.audioTrack,n=new Uint8Array(_reduceInstanceProperty(e=r.samples).call(e,(function(e,t){return e+t.size}),0));_reduceInstanceProperty(t=r.samples).call(t,(function(e,t){return n.set(t.data,e),e+t.size}),0);var o=MP4.mdat(n);return concatUint8Array(MP4.moof([r]),o)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),MP4Remuxer=function(){function e(t,r){_classCallCheck$1(this,e),this.videoTrack=t,this.audioTrack=r}return _createClass$1(e,[{key:"remux",value:function(e,t){this.videoTrack=e||this.videoTrack,this.audioTrack=t||this.audioTrack;var r,n,o=(null==e?void 0:e.exist())&&(null==e?void 0:e.hasSample()),i=(null==t?void 0:t.exist())&&(null==t?void 0:t.hasSample());return o&&i?r=this._remuxMix(e,t):o?r=this._remuxTrack(e):i&&(n=this._remuxTrack(t)),e&&(e.samples=[]),t&&(t.samples=[]),{videoSegment:r,audioSegment:n}}},{key:"_remuxMix",value:function(e,t){var r=MP4.ftyp([e,t]),n=this._remuxData(e,r.byteLength+8),o=n.mdatData,i=n.chunkOffset,a=this._remuxData(t,i).mdatData,s=MP4.mdat(concatUint8Array(o,a)),c=MP4.moovMP4([e,t]);return e.ext=void 0,t.ext=void 0,e.samples=[],t.samples=[],concatUint8Array(r,s,c)}},{key:"_remuxTrack",value:function(e){var t=MP4.ftyp([e]),r=this._remuxData(e,t.byteLength+8).mdatData,n=MP4.mdat(r),o=MP4.moovMP4([e]);return e.ext=void 0,e.samples=[],concatUint8Array(t,n,o)}},{key:"_remuxData",value:function(e,t){var r=e.type===TrackType.VIDEO,n=e.samples,o=0;r?_forEachInstanceProperty(n).call(n,(function(e){var t;o+=_reduceInstanceProperty(t=e.units).call(t,(function(e,t){return e+t.byteLength}),0),o+=4*e.units.length})):o=_reduceInstanceProperty(n).call(n,(function(e,t){return e+t.size}),0);for(var i,a=new Uint8Array(o),s=new DataView(a.buffer),c=e.ext={stts:[],stsc:[],stsz:[],stco:[],stss:[],ctts:[]},l=0,u=0,$=n.length,d=0;d<$;d++){u+=(i=n[d]).duration;var A,p=r?0:i.size;if(r)_forEachInstanceProperty(A=i.units).call(A,(function(e){s.setUint32(l,e.byteLength),l+=4,a.set(e,l),l+=e.byteLength,p+=4+e.byteLength}));else a.set(i.data,l),l+=p;i.size=p,c.stsz.push(p),r&&this._fillCttsSamples(c.ctts,i.cts),this._fillSttsSamples(c.stts,i,n[d+1]),this._fillStcoSamples(c.stco,d,1,t),t+=p,r&&i.keyframe&&c.stss.push(d+1)}return e.duration=u,this._fillStscSamples(c.stsc,$,1),{mdatData:a,chunkOffset:t}}},{key:"_fillSttsSamples",value:function(e,t,r){var n=e[e.length-1];r?n&&n.value===t.duration?n.count++:e.push({value:t.duration,count:1}):n?n.count++:e.push({value:40,count:1})}},{key:"_fillCttsSamples",value:function(e,t){var r=e[e.length-1];r&&r.value===t?r.count++:e.push({value:t,count:1})}},{key:"_fillStcoSamples",value:function(e,t,r,n){t%r||e.push(n)}},{key:"_fillStscSamples",value:function(e,t,r){if(t<=r)e.push({firstChunk:1,samplesPerChunk:t,sampleDescIndex:1});else{var n=Math.floor(t/r),o=t%r;e.push({firstChunk:1,samplesPerChunk:r,sampleDescIndex:1}),o&&e.push({firstChunk:n+1,samplesPerChunk:o,sampleDescIndex:1})}}}]),e}(),fails$7=fails$1b,wellKnownSymbol$3=wellKnownSymbol$N,DESCRIPTORS$8=descriptors$1,IS_PURE$1=isPure$1,ITERATOR$3=wellKnownSymbol$3("iterator"),urlConstructorDetection$1=!fails$7((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE$1&&!e.toJSON||!t.size&&(IS_PURE$1||!DESCRIPTORS$8)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$3]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),uncurryThis$a=functionUncurryThis$1,maxInt$1=2147483647,base$1=36,tMin$1=1,tMax$1=26,skew$1=38,damp$1=700,initialBias$1=72,initialN$1=128,delimiter$1="-",regexNonASCII$1=/[^\0-\u007E]/,regexSeparators$1=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR$1="Overflow: input needs wider integers to process",baseMinusTMin$1=base$1-tMin$1,$RangeError$2=RangeError,exec$3=uncurryThis$a(regexSeparators$1.exec),floor$4=Math.floor,fromCharCode$1=String.fromCharCode,charCodeAt$1=uncurryThis$a("".charCodeAt),join$5=uncurryThis$a([].join),push$9=uncurryThis$a([].push),replace$5=uncurryThis$a("".replace),split$5=uncurryThis$a("".split),toLowerCase$3=uncurryThis$a("".toLowerCase),ucs2decode$1=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=charCodeAt$1(e,r++);if(o>=55296&&o<=56319&&r<n){var i=charCodeAt$1(e,r++);56320==(64512&i)?push$9(t,((1023&o)<<10)+(1023&i)+65536):(push$9(t,o),r--)}else push$9(t,o)}return t},digitToBasic$1=function(e){return e+22+75*(e<26)},adapt$1=function(e,t,r){var n=0;for(e=r?floor$4(e/damp$1):e>>1,e+=floor$4(e/t);e>baseMinusTMin$1*tMax$1>>1;)e=floor$4(e/baseMinusTMin$1),n+=base$1;return floor$4(n+(baseMinusTMin$1+1)*e/(e+skew$1))},encode$1=function(e){var t,r,n=[],o=(e=ucs2decode$1(e)).length,i=initialN$1,a=0,s=initialBias$1;for(t=0;t<e.length;t++)(r=e[t])<128&&push$9(n,fromCharCode$1(r));var c=n.length,l=c;for(c&&push$9(n,delimiter$1);l<o;){var u=maxInt$1;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<u&&(u=r);var $=l+1;if(u-i>floor$4((maxInt$1-a)/$))throw $RangeError$2(OVERFLOW_ERROR$1);for(a+=(u-i)*$,i=u,t=0;t<e.length;t++){if((r=e[t])<i&&++a>maxInt$1)throw $RangeError$2(OVERFLOW_ERROR$1);if(r==i){for(var d=a,A=base$1;;){var p=A<=s?tMin$1:A>=s+tMax$1?tMax$1:A-s;if(d<p)break;var f=d-p,h=base$1-p;push$9(n,fromCharCode$1(digitToBasic$1(p+f%h))),d=floor$4(f/h),A+=base$1}push$9(n,fromCharCode$1(digitToBasic$1(d))),s=adapt$1(a,$,l==c),a=0,l++}}a++,i++}return join$5(n,"")},stringPunycodeToAscii$1=function(e){var t,r,n=[],o=split$5(replace$5(toLowerCase$3(e),regexSeparators$1,"."),".");for(t=0;t<o.length;t++)r=o[t],push$9(n,exec$3(regexNonASCII$1,r)?"xn--"+encode$1(r):r);return join$5(n,".")},defineBuiltIn$4=defineBuiltIn$n,defineBuiltIns$3=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn$4(e,n,t[n],r);return e},$$t=_export$1,global$5=global$13,call$6=functionCall$1,uncurryThis$9=functionUncurryThis$1,DESCRIPTORS$7=descriptors$1,USE_NATIVE_URL$4=urlConstructorDetection$1,defineBuiltIn$3=defineBuiltIn$n,defineBuiltInAccessor$3=defineBuiltInAccessor$8,defineBuiltIns$2=defineBuiltIns$3,setToStringTag$4=setToStringTag$g,createIteratorConstructor$1=iteratorCreateConstructor$1,InternalStateModule$5=internalState$1,anInstance$5=anInstance$b,isCallable$5=isCallable$S,hasOwn$4=hasOwnProperty_1$1,bind$c=functionBindContext$1,classof$2=classof$r,anObject$2=anObject$z,isObject$4=isObject$A,$toString$3=toString$o,create$2=objectCreate$1,createPropertyDescriptor$1=createPropertyDescriptor$f,getIterator$1=getIterator$8,getIteratorMethod$1=getIteratorMethod$g,validateArgumentsLength$4=validateArgumentsLength$9,wellKnownSymbol$2=wellKnownSymbol$N,arraySort$1=arraySort$2,ITERATOR$2=wellKnownSymbol$2("iterator"),URL_SEARCH_PARAMS$1="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR$1=URL_SEARCH_PARAMS$1+"Iterator",setInternalState$5=InternalStateModule$5.set,getInternalParamsState$1=InternalStateModule$5.getterFor(URL_SEARCH_PARAMS$1),getInternalIteratorState$1=InternalStateModule$5.getterFor(URL_SEARCH_PARAMS_ITERATOR$1),getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,safeGetBuiltIn$1=function(e){if(!DESCRIPTORS$7)return global$5[e];var t=getOwnPropertyDescriptor$1(global$5,e);return t&&t.value},nativeFetch$1=safeGetBuiltIn$1("fetch"),NativeRequest$1=safeGetBuiltIn$1("Request"),Headers$1=safeGetBuiltIn$1("Headers"),RequestPrototype$1=NativeRequest$1&&NativeRequest$1.prototype,HeadersPrototype$1=Headers$1&&Headers$1.prototype,RegExp$2=global$5.RegExp,TypeError$4=global$5.TypeError,decodeURIComponent$1=global$5.decodeURIComponent,encodeURIComponent$2=global$5.encodeURIComponent,charAt$3=uncurryThis$9("".charAt),join$4=uncurryThis$9([].join),push$8=uncurryThis$9([].push),replace$4=uncurryThis$9("".replace),shift$3=uncurryThis$9([].shift),splice$1=uncurryThis$9([].splice),split$4=uncurryThis$9("".split),stringSlice$4=uncurryThis$9("".slice),plus$1=/\+/g,sequences$1=Array(4),percentSequence$1=function(e){return sequences$1[e-1]||(sequences$1[e-1]=RegExp$2("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode$1=function(e){try{return decodeURIComponent$1(e)}catch(t){return e}},deserialize$1=function(e){var t=replace$4(e,plus$1," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace$4(t,percentSequence$1(r--),percentDecode$1);return t}},find$1=/[!'()~]|%20/g,replacements$1={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer$1=function(e){return replacements$1[e]},serialize$1=function(e){return replace$4(encodeURIComponent$2(e),find$1,replacer$1)},URLSearchParamsIterator$1=createIteratorConstructor$1((function(e,t){setInternalState$5(this,{type:URL_SEARCH_PARAMS_ITERATOR$1,iterator:getIterator$1(getInternalParamsState$1(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState$1(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState$1=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$4(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$3(e,0)?stringSlice$4(e,1):e:$toString$3(e)))};URLSearchParamsState$1.prototype={type:URL_SEARCH_PARAMS$1,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=getIteratorMethod$1(e);if(c)for(r=(t=getIterator$1(e,c)).next;!(n=call$6(r,t)).done;){if(i=(o=getIterator$1(anObject$2(n.value))).next,(a=call$6(i,o)).done||(s=call$6(i,o)).done||!call$6(i,o).done)throw TypeError$4("Expected sequence with length 2");push$8(this.entries,{key:$toString$3(a.value),value:$toString$3(s.value)})}else for(var l in e)hasOwn$4(e,l)&&push$8(this.entries,{key:l,value:$toString$3(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=split$4(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split$4(t,"="),push$8(this.entries,{key:deserialize$1(shift$3(r)),value:deserialize$1(join$4(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push$8(r,serialize$1(e.key)+"="+serialize$1(e.value));return join$4(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor$1=function(){anInstance$5(this,URLSearchParamsPrototype$1);var e=setInternalState$5(this,new URLSearchParamsState$1(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$7||(this.length=e.entries.length)},URLSearchParamsPrototype$1=URLSearchParamsConstructor$1.prototype;if(defineBuiltIns$2(URLSearchParamsPrototype$1,{append:function(e,t){validateArgumentsLength$4(arguments.length,2);var r=getInternalParamsState$1(this);push$8(r.entries,{key:$toString$3(e),value:$toString$3(t)}),DESCRIPTORS$7||this.length++,r.updateURL()},delete:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this),r=t.entries,n=$toString$3(e),o=0;o<r.length;)r[o].key===n?splice$1(r,o,1):o++;DESCRIPTORS$7||(this.length=r.length),t.updateURL()},get:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this).entries,r=$toString$3(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this).entries,r=$toString$3(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push$8(n,t[o].value);return n},has:function(e){validateArgumentsLength$4(arguments.length,1);for(var t=getInternalParamsState$1(this).entries,r=$toString$3(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$4(arguments.length,1);for(var r,n=getInternalParamsState$1(this),o=n.entries,i=!1,a=$toString$3(e),s=$toString$3(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?splice$1(o,c--,1):(i=!0,r.value=s));i||push$8(o,{key:a,value:s}),DESCRIPTORS$7||(this.length=o.length),n.updateURL()},sort:function(){var e=getInternalParamsState$1(this);arraySort$1(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState$1(this).entries,n=bind$c(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator$1(this,"keys")},values:function(){return new URLSearchParamsIterator$1(this,"values")},entries:function(){return new URLSearchParamsIterator$1(this,"entries")}},{enumerable:!0}),defineBuiltIn$3(URLSearchParamsPrototype$1,ITERATOR$2,URLSearchParamsPrototype$1.entries,{name:"entries"}),defineBuiltIn$3(URLSearchParamsPrototype$1,"toString",(function(){return getInternalParamsState$1(this).serialize()}),{enumerable:!0}),DESCRIPTORS$7&&defineBuiltInAccessor$3(URLSearchParamsPrototype$1,"size",{get:function(){return getInternalParamsState$1(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag$4(URLSearchParamsConstructor$1,URL_SEARCH_PARAMS$1),$$t({global:!0,constructor:!0,forced:!USE_NATIVE_URL$4},{URLSearchParams:URLSearchParamsConstructor$1}),!USE_NATIVE_URL$4&&isCallable$5(Headers$1)){var headersHas$1=uncurryThis$9(HeadersPrototype$1.has),headersSet$1=uncurryThis$9(HeadersPrototype$1.set),wrapRequestOptions$1=function(e){if(isObject$4(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS$1)return t=e.headers?new Headers$1(e.headers):new Headers$1,headersHas$1(t,"content-type")||headersSet$1(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$2(e,{body:createPropertyDescriptor$1(0,$toString$3(r)),headers:createPropertyDescriptor$1(0,t)})}return e};if(isCallable$5(nativeFetch$1)&&$$t({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch$1(e,arguments.length>1?wrapRequestOptions$1(arguments[1]):{})}}),isCallable$5(NativeRequest$1)){var RequestConstructor$1=function(e){return anInstance$5(this,RequestPrototype$1),new NativeRequest$1(e,arguments.length>1?wrapRequestOptions$1(arguments[1]):{})};RequestPrototype$1.constructor=RequestConstructor$1,RequestConstructor$1.prototype=RequestPrototype$1,$$t({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor$1})}}var EOF$1,web_urlSearchParams_constructor$1={URLSearchParams:URLSearchParamsConstructor$1,getState:getInternalParamsState$1},$$s=_export$1,DESCRIPTORS$6=descriptors$1,USE_NATIVE_URL$3=urlConstructorDetection$1,global$4=global$13,bind$b=functionBindContext$1,uncurryThis$8=functionUncurryThis$1,defineBuiltIn$2=defineBuiltIn$n,defineBuiltInAccessor$2=defineBuiltInAccessor$8,anInstance$4=anInstance$b,hasOwn$3=hasOwnProperty_1$1,assign$1=objectAssign$1,arrayFrom$1=arrayFrom$3,arraySlice$2=arraySliceSimple$1,codeAt$1=stringMultibyte$1.codeAt,toASCII$1=stringPunycodeToAscii$1,$toString$2=toString$o,setToStringTag$3=setToStringTag$g,validateArgumentsLength$3=validateArgumentsLength$9,URLSearchParamsModule$1=web_urlSearchParams_constructor$1,InternalStateModule$4=internalState$1,setInternalState$4=InternalStateModule$4.set,getInternalURLState$1=InternalStateModule$4.getterFor("URL"),URLSearchParams$2=URLSearchParamsModule$1.URLSearchParams,getInternalSearchParamsState$1=URLSearchParamsModule$1.getState,NativeURL$1=global$4.URL,TypeError$3=global$4.TypeError,parseInt$2=global$4.parseInt,floor$3=Math.floor,pow$2=Math.pow,charAt$2=uncurryThis$8("".charAt),exec$2=uncurryThis$8(/./.exec),join$3=uncurryThis$8([].join),numberToString$1=uncurryThis$8(1..toString),pop$1=uncurryThis$8([].pop),push$7=uncurryThis$8([].push),replace$3=uncurryThis$8("".replace),shift$2=uncurryThis$8([].shift),split$3=uncurryThis$8("".split),stringSlice$3=uncurryThis$8("".slice),toLowerCase$2=uncurryThis$8("".toLowerCase),unshift$1=uncurryThis$8([].unshift),INVALID_AUTHORITY$1="Invalid authority",INVALID_SCHEME$1="Invalid scheme",INVALID_HOST$1="Invalid host",INVALID_PORT$1="Invalid port",ALPHA$1=/[a-z]/i,ALPHANUMERIC$1=/[\d+-.a-z]/i,DIGIT$1=/\d/,HEX_START$1=/^0x/i,OCT$1=/^[0-7]+$/,DEC$1=/^\d+$/,HEX$1=/^[\da-f]+$/i,FORBIDDEN_HOST_CODE_POINT$1=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT$1=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+/,TRAILING_C0_CONTROL_OR_SPACE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,TAB_AND_NEW_LINE$1=/[\t\n\r]/g,parseIPv4$1=function(e){var t,r,n,o,i,a,s,c=split$3(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==charAt$2(o,0)&&(i=exec$2(HEX_START$1,o)?16:8,o=stringSlice$3(o,8==i?1:2)),""===o)a=0;else{if(!exec$2(10==i?DEC$1:8==i?OCT$1:HEX$1,o))return e;a=parseInt$2(o,i)}push$7(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=pow$2(256,5-t))return null}else if(a>255)return null;for(s=pop$1(r),n=0;n<r.length;n++)s+=r[n]*pow$2(256,3-n);return s},parseIPv6$1=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,$=0,d=function(){return charAt$2(e,$)};if(":"==d()){if(":"!=charAt$2(e,1))return;$+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=r=0;r<4&&exec$2(HEX$1,d());)t=16*t+parseInt$2(d(),16),$++,r++;if("."==d()){if(0==r)return;if($-=r,l>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;$++}if(!exec$2(DIGIT$1,d()))return;for(;exec$2(DIGIT$1,d());){if(i=parseInt$2(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;$++}c[l]=256*c[l]+o,2!=++n&&4!=n||l++}if(4!=n)return;break}if(":"==d()){if($++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;$++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},findLongestZeroSequence$1=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t},serializeHost$1=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)unshift$1(t,e%256),e=floor$3(e/256);return join$3(t,".")}if("object"==typeof e){for(t="",n=findLongestZeroSequence$1(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=numberToString$1(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},C0ControlPercentEncodeSet$1={},fragmentPercentEncodeSet$1=assign$1({},C0ControlPercentEncodeSet$1,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet$1=assign$1({},fragmentPercentEncodeSet$1,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet$1=assign$1({},pathPercentEncodeSet$1,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode$1=function(e,t){var r=codeAt$1(e,0);return r>32&&r<127&&!hasOwn$3(t,e)?e:encodeURIComponent(e)},specialSchemes$1={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter$1=function(e,t){var r;return 2==e.length&&exec$2(ALPHA$1,charAt$2(e,0))&&(":"==(r=charAt$2(e,1))||!t&&"|"==r)},startsWithWindowsDriveLetter$1=function(e){var t;return e.length>1&&isWindowsDriveLetter$1(stringSlice$3(e,0,2))&&(2==e.length||"/"===(t=charAt$2(e,2))||"\\"===t||"?"===t||"#"===t)},isSingleDot$1=function(e){return"."===e||"%2e"===toLowerCase$2(e)},isDoubleDot$1=function(e){return".."===(e=toLowerCase$2(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},SCHEME_START$1={},SCHEME$1={},NO_SCHEME$1={},SPECIAL_RELATIVE_OR_AUTHORITY$1={},PATH_OR_AUTHORITY$1={},RELATIVE$1={},RELATIVE_SLASH$1={},SPECIAL_AUTHORITY_SLASHES$1={},SPECIAL_AUTHORITY_IGNORE_SLASHES$1={},AUTHORITY$1={},HOST$1={},HOSTNAME$1={},PORT$1={},FILE$1={},FILE_SLASH$1={},FILE_HOST$1={},PATH_START$1={},PATH$1={},CANNOT_BE_A_BASE_URL_PATH$1={},QUERY$1={},FRAGMENT$1={},URLState$1=function(e,t,r){var n,o,i,a=$toString$2(e);if(t){if(o=this.parse(a))throw TypeError$3(o);this.searchParams=null}else{if(void 0!==r&&(n=new URLState$1(r,!0)),o=this.parse(a,null,n))throw TypeError$3(o);(i=getInternalSearchParamsState$1(new URLSearchParams$2)).bindURL(this),this.searchParams=i}};URLState$1.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s=this,c=t||SCHEME_START$1,l=0,u="",$=!1,d=!1,A=!1;for(e=$toString$2(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=replace$3(e,LEADING_C0_CONTROL_OR_SPACE,""),e=replace$3(e,TRAILING_C0_CONTROL_OR_SPACE,"$1")),e=replace$3(e,TAB_AND_NEW_LINE$1,""),n=arrayFrom$1(e);l<=n.length;){switch(o=n[l],c){case SCHEME_START$1:if(!o||!exec$2(ALPHA$1,o)){if(t)return INVALID_SCHEME$1;c=NO_SCHEME$1;continue}u+=toLowerCase$2(o),c=SCHEME$1;break;case SCHEME$1:if(o&&(exec$2(ALPHANUMERIC$1,o)||"+"==o||"-"==o||"."==o))u+=toLowerCase$2(o);else{if(":"!=o){if(t)return INVALID_SCHEME$1;u="",c=NO_SCHEME$1,l=0;continue}if(t&&(s.isSpecial()!=hasOwn$3(specialSchemes$1,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&specialSchemes$1[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?c=FILE$1:s.isSpecial()&&r&&r.scheme==s.scheme?c=SPECIAL_RELATIVE_OR_AUTHORITY$1:s.isSpecial()?c=SPECIAL_AUTHORITY_SLASHES$1:"/"==n[l+1]?(c=PATH_OR_AUTHORITY$1,l++):(s.cannotBeABaseURL=!0,push$7(s.path,""),c=CANNOT_BE_A_BASE_URL_PATH$1)}break;case NO_SCHEME$1:if(!r||r.cannotBeABaseURL&&"#"!=o)return INVALID_SCHEME$1;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=arraySlice$2(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=FRAGMENT$1;break}c="file"==r.scheme?FILE$1:RELATIVE$1;continue;case SPECIAL_RELATIVE_OR_AUTHORITY$1:if("/"!=o||"/"!=n[l+1]){c=RELATIVE$1;continue}c=SPECIAL_AUTHORITY_IGNORE_SLASHES$1,l++;break;case PATH_OR_AUTHORITY$1:if("/"==o){c=AUTHORITY$1;break}c=PATH$1;continue;case RELATIVE$1:if(s.scheme=r.scheme,o==EOF$1)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=RELATIVE_SLASH$1;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.query="",c=QUERY$1;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.path.length--,c=PATH$1;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice$2(r.path),s.query=r.query,s.fragment="",c=FRAGMENT$1}break;case RELATIVE_SLASH$1:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=PATH$1;continue}c=AUTHORITY$1}else c=SPECIAL_AUTHORITY_IGNORE_SLASHES$1;break;case SPECIAL_AUTHORITY_SLASHES$1:if(c=SPECIAL_AUTHORITY_IGNORE_SLASHES$1,"/"!=o||"/"!=charAt$2(u,l+1))continue;l++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES$1:if("/"!=o&&"\\"!=o){c=AUTHORITY$1;continue}break;case AUTHORITY$1:if("@"==o){$&&(u="%40"+u),$=!0,i=arrayFrom$1(u);for(var p=0;p<i.length;p++){var f=i[p];if(":"!=f||A){var h=percentEncode$1(f,userinfoPercentEncodeSet$1);A?s.password+=h:s.username+=h}else A=!0}u=""}else if(o==EOF$1||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if($&&""==u)return INVALID_AUTHORITY$1;l-=arrayFrom$1(u).length+1,u="",c=HOST$1}else u+=o;break;case HOST$1:case HOSTNAME$1:if(t&&"file"==s.scheme){c=FILE_HOST$1;continue}if(":"!=o||d){if(o==EOF$1||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==u)return INVALID_HOST$1;if(t&&""==u&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(u))return a;if(u="",c=PATH_START$1,t)return;continue}"["==o?d=!0:"]"==o&&(d=!1),u+=o}else{if(""==u)return INVALID_HOST$1;if(a=s.parseHost(u))return a;if(u="",c=PORT$1,t==HOSTNAME$1)return}break;case PORT$1:if(!exec$2(DIGIT$1,o)){if(o==EOF$1||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=u){var y=parseInt$2(u,10);if(y>65535)return INVALID_PORT$1;s.port=s.isSpecial()&&y===specialSchemes$1[s.scheme]?null:y,u=""}if(t)return;c=PATH_START$1;continue}return INVALID_PORT$1}u+=o;break;case FILE$1:if(s.scheme="file","/"==o||"\\"==o)c=FILE_SLASH$1;else{if(!r||"file"!=r.scheme){c=PATH$1;continue}if(o==EOF$1)s.host=r.host,s.path=arraySlice$2(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=arraySlice$2(r.path),s.query="",c=QUERY$1;else{if("#"!=o){startsWithWindowsDriveLetter$1(join$3(arraySlice$2(n,l),""))||(s.host=r.host,s.path=arraySlice$2(r.path),s.shortenPath()),c=PATH$1;continue}s.host=r.host,s.path=arraySlice$2(r.path),s.query=r.query,s.fragment="",c=FRAGMENT$1}}break;case FILE_SLASH$1:if("/"==o||"\\"==o){c=FILE_HOST$1;break}r&&"file"==r.scheme&&!startsWithWindowsDriveLetter$1(join$3(arraySlice$2(n,l),""))&&(isWindowsDriveLetter$1(r.path[0],!0)?push$7(s.path,r.path[0]):s.host=r.host),c=PATH$1;continue;case FILE_HOST$1:if(o==EOF$1||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&isWindowsDriveLetter$1(u))c=PATH$1;else if(""==u){if(s.host="",t)return;c=PATH_START$1}else{if(a=s.parseHost(u))return a;if("localhost"==s.host&&(s.host=""),t)return;u="",c=PATH_START$1}continue}u+=o;break;case PATH_START$1:if(s.isSpecial()){if(c=PATH$1,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=EOF$1&&(c=PATH$1,"/"!=o))continue}else s.fragment="",c=FRAGMENT$1;else s.query="",c=QUERY$1;break;case PATH$1:if(o==EOF$1||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(isDoubleDot$1(u)?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||push$7(s.path,"")):isSingleDot$1(u)?"/"==o||"\\"==o&&s.isSpecial()||push$7(s.path,""):("file"==s.scheme&&!s.path.length&&isWindowsDriveLetter$1(u)&&(s.host&&(s.host=""),u=charAt$2(u,0)+":"),push$7(s.path,u)),u="","file"==s.scheme&&(o==EOF$1||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)shift$2(s.path);"?"==o?(s.query="",c=QUERY$1):"#"==o&&(s.fragment="",c=FRAGMENT$1)}else u+=percentEncode$1(o,pathPercentEncodeSet$1);break;case CANNOT_BE_A_BASE_URL_PATH$1:"?"==o?(s.query="",c=QUERY$1):"#"==o?(s.fragment="",c=FRAGMENT$1):o!=EOF$1&&(s.path[0]+=percentEncode$1(o,C0ControlPercentEncodeSet$1));break;case QUERY$1:t||"#"!=o?o!=EOF$1&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":percentEncode$1(o,C0ControlPercentEncodeSet$1)):(s.fragment="",c=FRAGMENT$1);break;case FRAGMENT$1:o!=EOF$1&&(s.fragment+=percentEncode$1(o,fragmentPercentEncodeSet$1))}l++}},parseHost:function(e){var t,r,n;if("["==charAt$2(e,0)){if("]"!=charAt$2(e,e.length-1))return INVALID_HOST$1;if(!(t=parseIPv6$1(stringSlice$3(e,1,-1))))return INVALID_HOST$1;this.host=t}else if(this.isSpecial()){if(e=toASCII$1(e),exec$2(FORBIDDEN_HOST_CODE_POINT$1,e))return INVALID_HOST$1;if(null===(t=parseIPv4$1(e)))return INVALID_HOST$1;this.host=t}else{if(exec$2(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT$1,e))return INVALID_HOST$1;for(t="",r=arrayFrom$1(e),n=0;n<r.length;n++)t+=percentEncode$1(r[n],C0ControlPercentEncodeSet$1);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return hasOwn$3(specialSchemes$1,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&isWindowsDriveLetter$1(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=r+(n?":"+n:"")+"@"),l+=serializeHost$1(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+join$3(a,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw TypeError$3(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new URLConstructor$1(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+serializeHost$1(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse($toString$2(e)+":",SCHEME_START$1)},getUsername:function(){return this.username},setUsername:function(e){var t=arrayFrom$1($toString$2(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=percentEncode$1(t[r],userinfoPercentEncodeSet$1)}},getPassword:function(){return this.password},setPassword:function(e){var t=arrayFrom$1($toString$2(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=percentEncode$1(t[r],userinfoPercentEncodeSet$1)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?serializeHost$1(e):serializeHost$1(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,HOST$1)},getHostname:function(){var e=this.host;return null===e?"":serializeHost$1(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,HOSTNAME$1)},getPort:function(){var e=this.port;return null===e?"":$toString$2(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=$toString$2(e))?this.port=null:this.parse(e,PORT$1))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+join$3(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,PATH_START$1))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=$toString$2(e))?this.query=null:("?"==charAt$2(e,0)&&(e=stringSlice$3(e,1)),this.query="",this.parse(e,QUERY$1)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=$toString$2(e))?("#"==charAt$2(e,0)&&(e=stringSlice$3(e,1)),this.fragment="",this.parse(e,FRAGMENT$1)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor$1=function(e){var t=anInstance$4(this,URLPrototype$1),r=validateArgumentsLength$3(arguments.length,1)>1?arguments[1]:void 0,n=setInternalState$4(t,new URLState$1(e,!1,r));DESCRIPTORS$6||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},URLPrototype$1=URLConstructor$1.prototype,accessorDescriptor$1=function(e,t){return{get:function(){return getInternalURLState$1(this)[e]()},set:t&&function(e){return getInternalURLState$1(this)[t](e)},configurable:!0,enumerable:!0}};if(DESCRIPTORS$6&&(defineBuiltInAccessor$2(URLPrototype$1,"href",accessorDescriptor$1("serialize","setHref")),defineBuiltInAccessor$2(URLPrototype$1,"origin",accessorDescriptor$1("getOrigin")),defineBuiltInAccessor$2(URLPrototype$1,"protocol",accessorDescriptor$1("getProtocol","setProtocol")),defineBuiltInAccessor$2(URLPrototype$1,"username",accessorDescriptor$1("getUsername","setUsername")),defineBuiltInAccessor$2(URLPrototype$1,"password",accessorDescriptor$1("getPassword","setPassword")),defineBuiltInAccessor$2(URLPrototype$1,"host",accessorDescriptor$1("getHost","setHost")),defineBuiltInAccessor$2(URLPrototype$1,"hostname",accessorDescriptor$1("getHostname","setHostname")),defineBuiltInAccessor$2(URLPrototype$1,"port",accessorDescriptor$1("getPort","setPort")),defineBuiltInAccessor$2(URLPrototype$1,"pathname",accessorDescriptor$1("getPathname","setPathname")),defineBuiltInAccessor$2(URLPrototype$1,"search",accessorDescriptor$1("getSearch","setSearch")),defineBuiltInAccessor$2(URLPrototype$1,"searchParams",accessorDescriptor$1("getSearchParams")),defineBuiltInAccessor$2(URLPrototype$1,"hash",accessorDescriptor$1("getHash","setHash"))),defineBuiltIn$2(URLPrototype$1,"toJSON",(function(){return getInternalURLState$1(this).serialize()}),{enumerable:!0}),defineBuiltIn$2(URLPrototype$1,"toString",(function(){return getInternalURLState$1(this).serialize()}),{enumerable:!0}),NativeURL$1){var nativeCreateObjectURL$1=NativeURL$1.createObjectURL,nativeRevokeObjectURL$1=NativeURL$1.revokeObjectURL;nativeCreateObjectURL$1&&defineBuiltIn$2(URLConstructor$1,"createObjectURL",bind$b(nativeCreateObjectURL$1,NativeURL$1)),nativeRevokeObjectURL$1&&defineBuiltIn$2(URLConstructor$1,"revokeObjectURL",bind$b(nativeRevokeObjectURL$1,NativeURL$1))}setToStringTag$3(URLConstructor$1,"URL"),$$s({global:!0,constructor:!0,forced:!USE_NATIVE_URL$3,sham:!DESCRIPTORS$6},{URL:URLConstructor$1});var $$r=_export$1,getBuiltIn$1=getBuiltIn$r,fails$6=fails$1b,validateArgumentsLength$2=validateArgumentsLength$9,toString6=toString$o,USE_NATIVE_URL$2=urlConstructorDetection$1,URL$1=getBuiltIn$1("URL"),THROWS_WITHOUT_ARGUMENTS=USE_NATIVE_URL$2&&fails$6((function(){URL$1.canParse()}));$$r({target:"URL",stat:!0,forced:!THROWS_WITHOUT_ARGUMENTS},{canParse:function(e){var t=validateArgumentsLength$2(arguments.length,1),r=toString6(e),n=t<2||void 0===arguments[1]?void 0:toString6(arguments[1]);try{return!!new URL$1(r,n)}catch(e){return!1}}});var path$2=path$w,url$5=path$2.URL,parent$8=url$5,url$4=parent$8,parent$7=url$4,url$3=parent$7,parent$6=url$3,url$2=parent$6,url$1=url$2,url=url$1,_URL=getDefaultExportFromCjs(url),internalMetadata={exports:{}},fails$5=fails$1b,arrayBufferNonExtensible=fails$5((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$4=fails$1b,isObject$3=isObject$A,classof$1=classofRaw$5,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES=fails$4((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$3(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof$1(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,fails$3=fails$1b,freezing=!fails$3((function(){return Object.isExtensible(Object.preventExtensions({}))})),$$q=_export$1,uncurryThis$7=functionUncurryThis$1,hiddenKeys=hiddenKeys$b,isObject$2=isObject$A,hasOwn$2=hasOwnProperty_1$1,defineProperty$1=objectDefineProperty$1.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames$1,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal$1,isExtensible2=objectIsExtensible,uid=uid$8,FREEZING=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty$1(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey$1=function(e,t){if(!isObject$2(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn$2(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn$2(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze=function(e){return FREEZING&&REQUIRED&&isExtensible2(e)&&!hasOwn$2(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis$7([].splice),r={};r[METADATA]=1,e(r).length&&(getOwnPropertyNamesModule.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===METADATA){t(n,o,1);break}return n},$$q({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey$1,getWeakData:getWeakData,onFreeze:onFreeze};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,$$p=_export$1,global$3=global$13,InternalMetadataModule=internalMetadataExports,fails$2=fails$1b,createNonEnumerableProperty=createNonEnumerableProperty$j,iterate$f=iterate$o,anInstance$3=anInstance$b,isCallable$4=isCallable$S,isObject$1=isObject$A,setToStringTag$2=setToStringTag$g,defineProperty8=objectDefineProperty$1.f,forEach5=arrayIteration$1.forEach,DESCRIPTORS$5=descriptors$1,InternalStateModule$3=internalState$1,setInternalState$3=InternalStateModule$3.set,internalStateGetterFor$1=InternalStateModule$3.getterFor,collection$1=function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=global$3[e],c=s&&s.prototype,l={};if(DESCRIPTORS$5&&isCallable$4(s)&&(i||c.forEach&&!fails$2((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){setInternalState$3(anInstance$3(t,u),{type:e,collection:new s}),null!=r&&iterate$f(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,$=internalStateGetterFor$1(e);forEach5(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in c)||i&&"clear"==e||createNonEnumerableProperty(u,e,(function(r,n){var o=$(this).collection;if(!t&&i&&!isObject$1(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||defineProperty8(u,"size",{configurable:!0,get:function(){return $(this).collection.size}})}else n=r.getConstructor(t,e,o,a),InternalMetadataModule.enable();return setToStringTag$2(n,e,!1,!0),l[e]=n,$$p({global:!0,forced:!0},l),i||r.setStrong(n,e,o),n},create$1=objectCreate$1,defineBuiltInAccessor$1=defineBuiltInAccessor$8,defineBuiltIns$1=defineBuiltIns$3,bind$a=functionBindContext$1,anInstance$2=anInstance$b,isNullOrUndefined$1=isNullOrUndefined$c,iterate$e=iterate$o,defineIterator=iteratorDefine$1,createIterResultObject=createIterResultObject$6,setSpecies=setSpecies$6,DESCRIPTORS$4=descriptors$1,fastKey=internalMetadataExports.fastKey,InternalStateModule$2=internalState$1,setInternalState$2=InternalStateModule$2.set,internalStateGetterFor=InternalStateModule$2.getterFor,collectionStrong$1={getConstructor:function(e,t,r,n){var o=e((function(e,o){anInstance$2(e,i),setInternalState$2(e,{type:t,index:create$1(null),first:void 0,last:void 0,size:0}),DESCRIPTORS$4||(e.size=0),isNullOrUndefined$1(o)||iterate$e(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=internalStateGetterFor(t),s=function(e,t,r){var n,o,i=a(e),s=c(e,t);return s?s.value=r:(i.last=s={index:o=fastKey(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),DESCRIPTORS$4?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},c=function(e,t){var r,n=a(e),o=fastKey(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return defineBuiltIns$1(i,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,DESCRIPTORS$4?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=c(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),DESCRIPTORS$4?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=bind$a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),defineBuiltIns$1(i,r?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),DESCRIPTORS$4&&defineBuiltInAccessor$1(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=internalStateGetterFor(t),i=internalStateGetterFor(n);defineIterator(e,t,(function(e,t){setInternalState$2(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?createIterResultObject("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,createIterResultObject(void 0,!0))}),r?"entries":"values",!r,!0),setSpecies(t)}},collection=collection$1,collectionStrong=collectionStrong$1;collection("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),collectionStrong);var path$1=path$w,map$5=path$1.Map,parent$5=map$5,map$4=parent$5,parent$4=map$4,map$3=parent$4,bind$9=functionBindContext$1,call$5=functionCall$1,aCallable$5=aCallable$u,aConstructor=aConstructor$6,isNullOrUndefined=isNullOrUndefined$c,iterate$d=iterate$o,push$6=[].push,collectionFrom=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return aConstructor(this),(t=void 0!==a)&&aCallable$5(a),isNullOrUndefined(e)?new this:(r=[],t?(n=0,o=bind$9(a,i>2?arguments[2]:void 0),iterate$d(e,(function(e){call$5(push$6,r,o(e,n++))}))):iterate$d(e,push$6,{that:r}),new this(r))},$$o=_export$1,from5=collectionFrom;$$o({target:"Map",stat:!0,forced:!0},{from:from5});var arraySlice$1=arraySlice$g,collectionOf=function(){return new this(arraySlice$1(arguments))},$$n=_export$1,of2=collectionOf;$$n({target:"Map",stat:!0,forced:!0},{of:of2});var tryToString=tryToString$e,aMap$e=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(tryToString(e)+" is not a map")},caller$1=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},getBuiltIn=getBuiltIn$r,caller=caller$1,Map$5=getBuiltIn("Map"),mapHelpers={Map:Map$5,set:caller("set",2),get:caller("get",1),has:caller("has",1),remove:caller("delete",1),proto:Map$5.prototype},$$m=_export$1,aMap$d=aMap$e,remove=mapHelpers.remove;$$m({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=aMap$d(this),r=!0,n=0,o=arguments.length;n<o;n++)e=remove(t,arguments[n]),r=r&&e;return!!r}});var $$l=_export$1,aMap$c=aMap$e,MapHelpers$4=mapHelpers,get$1=MapHelpers$4.get,has$1=MapHelpers$4.has,set$5=MapHelpers$4.set;$$l({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=aMap$c(this);return has$1(o,e)?(r=get$1(o,e),"update"in t&&(r=t.update(r,e,o),set$5(o,e,r)),r):(n=t.insert(e,o),set$5(o,e,n),n)}});var call$4=functionCall$1,iterateSimple$1=function(e,t,r){for(var n,o,i=r||e.next;!(n=call$4(i,e)).done;)if(void 0!==(o=t(n.value)))return o},iterateSimple=iterateSimple$1,mapIterate=function(e,t,r){return r?iterateSimple(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},$$k=_export$1,bind$8=functionBindContext$1,aMap$b=aMap$e,iterate$c=mapIterate;$$k({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=aMap$b(this),r=bind$8(e,arguments.length>1?arguments[1]:void 0);return!1!==iterate$c(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var $$j=_export$1,bind$7=functionBindContext$1,aMap$a=aMap$e,MapHelpers$3=mapHelpers,iterate$b=mapIterate,Map$4=MapHelpers$3.Map,set$4=MapHelpers$3.set;$$j({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=aMap$a(this),r=bind$7(e,arguments.length>1?arguments[1]:void 0),n=new Map$4;return iterate$b(t,(function(e,o){r(e,o,t)&&set$4(n,o,e)})),n}});var $$i=_export$1,bind$6=functionBindContext$1,aMap$9=aMap$e,iterate$a=mapIterate;$$i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=aMap$9(this),r=bind$6(e,arguments.length>1?arguments[1]:void 0),n=iterate$a(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var $$h=_export$1,bind$5=functionBindContext$1,aMap$8=aMap$e,iterate$9=mapIterate;$$h({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=aMap$8(this),r=bind$5(e,arguments.length>1?arguments[1]:void 0),n=iterate$9(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var $$g=_export$1,call$3=functionCall$1,uncurryThis$6=functionUncurryThis$1,isCallable$3=isCallable$S,aCallable$4=aCallable$u,iterate$8=iterate$o,Map$3=mapHelpers.Map,push$5=uncurryThis$6([].push);$$g({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(isCallable$3(this)?this:Map$3);aCallable$4(t);var n=aCallable$4(r.has),o=aCallable$4(r.get),i=aCallable$4(r.set);return iterate$8(e,(function(e){var a=t(e);call$3(n,r,a)?push$5(call$3(o,r,a),e):call$3(i,r,a,[e])})),r}});var sameValueZero$1=function(e,t){return e===t||e!=e&&t!=t},$$f=_export$1,sameValueZero=sameValueZero$1,aMap$7=aMap$e,iterate$7=mapIterate;$$f({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===iterate$7(aMap$7(this),(function(t){if(sameValueZero(t,e))return!0}),!0)}});var $$e=_export$1,call$2=functionCall$1,iterate$6=iterate$o,isCallable$2=isCallable$S,aCallable$3=aCallable$u,Map$2=mapHelpers.Map;$$e({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(isCallable$2(this)?this:Map$2);aCallable$3(t);var n=aCallable$3(r.set);return iterate$6(e,(function(e){call$2(n,r,t(e),e)})),r}});var $$d=_export$1,aMap$6=aMap$e,iterate$5=mapIterate;$$d({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=iterate$5(aMap$6(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var $$c=_export$1,bind$4=functionBindContext$1,aMap$5=aMap$e,MapHelpers$2=mapHelpers,iterate$4=mapIterate,Map$1=MapHelpers$2.Map,set$3=MapHelpers$2.set;$$c({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=aMap$5(this),r=bind$4(e,arguments.length>1?arguments[1]:void 0),n=new Map$1;return iterate$4(t,(function(e,o){set$3(n,r(e,o,t),e)})),n}});var $$b=_export$1,bind$3=functionBindContext$1,aMap$4=aMap$e,MapHelpers$1=mapHelpers,iterate$3=mapIterate,Map=MapHelpers$1.Map,set$2=MapHelpers$1.set;$$b({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=aMap$4(this),r=bind$3(e,arguments.length>1?arguments[1]:void 0),n=new Map;return iterate$3(t,(function(e,o){set$2(n,o,r(e,o,t))})),n}});var $$a=_export$1,aMap$3=aMap$e,iterate$2=iterate$o,set$1=mapHelpers.set;$$a({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=aMap$3(this),r=arguments.length,n=0;n<r;)iterate$2(arguments[n++],(function(e,r){set$1(t,e,r)}),{AS_ENTRIES:!0});return t}});var $$9=_export$1,aCallable$2=aCallable$u,aMap$2=aMap$e,iterate$1=mapIterate,$TypeError$2=TypeError;$$9({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=aMap$2(this),r=arguments.length<2,n=r?void 0:arguments[1];if(aCallable$2(e),iterate$1(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw $TypeError$2("Reduce of empty map with no initial value");return n}});var $$8=_export$1,bind$2=functionBindContext$1,aMap$1=aMap$e,iterate=mapIterate;$$8({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=aMap$1(this),r=bind$2(e,arguments.length>1?arguments[1]:void 0);return!0===iterate(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var $$7=_export$1,aCallable$1=aCallable$u,aMap=aMap$e,MapHelpers=mapHelpers,$TypeError$1=TypeError,get2=MapHelpers.get,has2=MapHelpers.has,set3=MapHelpers.set;$$7({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=aMap(this),n=arguments.length;aCallable$1(t);var o=has2(r,e);if(!o&&n<3)throw $TypeError$1("Updating absent value");var i=o?get2(r,e):aCallable$1(n>2?arguments[2]:void 0)(e,r);return set3(r,e,t(i,e,r)),r}});var call$1=functionCall$1,aCallable=aCallable$u,isCallable$1=isCallable$S,anObject$1=anObject$z,$TypeError=TypeError,mapUpsert=function(e,t){var r,n=anObject$1(this),o=aCallable(n.get),i=aCallable(n.has),a=aCallable(n.set),s=arguments.length>2?arguments[2]:void 0;if(!isCallable$1(t)&&!isCallable$1(s))throw $TypeError("At least one callback required");return call$1(i,n,e)?(r=call$1(o,n,e),isCallable$1(t)&&(r=t(r),call$1(a,n,e,r))):isCallable$1(s)&&(r=s(),call$1(a,n,e,r)),r},$$6=_export$1,upsert$1=mapUpsert;$$6({target:"Map",proto:!0,real:!0,forced:!0},{upsert:upsert$1});var $$5=_export$1,upsert2=mapUpsert;$$5({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:upsert2});var parent$3=map$3,map$2=parent$3,map$1=map$2,map4=map$1,_Map=getDefaultExportFromCjs(map4);function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol?_Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return _Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=_Object$create(i.prototype),s=new v(o||[]);return n(a,"_invoke",{value:m(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var $={};function d(){}function A(){}function p(){}var f={};c(f,i,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(S([])));h&&h!==t&&r.call(h,i)&&(f=h);var y=p.prototype=d.prototype=_Object$create(f);function _(e){var t;_forEachInstanceProperty(t=["next","throw","return"]).call(t,(function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function o(n,i,a,s){var c=u(e[n],e,i);if("throw"!==c.type){var l=c.arg,$=l.value;return $&&"object"==_typeof($)&&r.call($,"__await")?t.resolve($.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve($).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function m(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===$)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===$)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return $;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,$;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,$):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,$)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty(e).call(e,b,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return A.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:A,configurable:!0}),A.displayName=c(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,p):(e.__proto__=p,c(e,s,"GeneratorFunction")),e.prototype=_Object$create(y),e},e.awrap=function(e){return{__await:e}},_(g.prototype),c(g.prototype,a,(function(){return this})),e.AsyncIterator=g,e.async=function(t,r,n,o,i){void 0===i&&(i=_Promise);var a=new g(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(y),c(y,s,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return _reverseInstanceProperty(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=S,v.prototype={constructor:v,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,_forEachInstanceProperty(t=this.tryEntries).call(t,I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,$):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),$},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),$}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),$}},e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):_Promise.resolve(c).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new _Promise((function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,s,"next",e)}function s(e){asyncGeneratorStep(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),_Object$defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=_Object$create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){var t;return(_getPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty(t=_Object$getPrototypeOf).call(t):function(e){return e.__proto__||_Object$getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty(r=_Object$setPrototypeOf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){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(e){return!1}}function _construct(e,t,r){var n;_isNativeReflectConstruct()?_construct=_bindInstanceProperty(n=_Reflect$construct).call(n):_construct=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(_bindInstanceProperty(Function).apply(e,n));return r&&_setPrototypeOf(o,r.prototype),o};return _construct.apply(null,arguments)}function _isNativeFunction(e){var t;return-1!==_indexOfInstanceProperty(t=Function.toString.call(e)).call(t,"[native code]")}function _wrapNativeSuper(e){var t="function"==typeof _Map?new _Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return r.prototype=_Object$create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,e)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=_Reflect$construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}var fails$1=fails$M,wellKnownSymbol$1=wellKnownSymbol$q,IS_PURE=isPure,ITERATOR$1=wellKnownSymbol$1("iterator"),urlConstructorDetection=!fails$1((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$1]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),uncurryThis$5=functionUncurryThis,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,$RangeError$1=RangeError,exec$1=uncurryThis$5(regexSeparators.exec),floor$2=Math.floor,fromCharCode=String.fromCharCode,charCodeAt=uncurryThis$5("".charCodeAt),join$2=uncurryThis$5([].join),push$4=uncurryThis$5([].push),replace$2=uncurryThis$5("".replace),split$2=uncurryThis$5("".split),toLowerCase$1=uncurryThis$5("".toLowerCase),ucs2decode=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=charCodeAt(e,r++);if(o>=55296&&o<=56319&&r<n){var i=charCodeAt(e,r++);56320==(64512&i)?push$4(t,((1023&o)<<10)+(1023&i)+65536):(push$4(t,o),r--)}else push$4(t,o)}return t},digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?floor$2(e/damp):e>>1,e+=floor$2(e/t);e>baseMinusTMin*tMax>>1;)e=floor$2(e/baseMinusTMin),n+=base;return floor$2(n+(baseMinusTMin+1)*e/(e+skew))},encode=function(e){var t,r,n=[],o=(e=ucs2decode(e)).length,i=initialN,a=0,s=initialBias;for(t=0;t<e.length;t++)(r=e[t])<128&&push$4(n,fromCharCode(r));var c=n.length,l=c;for(c&&push$4(n,delimiter);l<o;){var u=maxInt;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<u&&(u=r);var $=l+1;if(u-i>floor$2((maxInt-a)/$))throw $RangeError$1(OVERFLOW_ERROR);for(a+=(u-i)*$,i=u,t=0;t<e.length;t++){if((r=e[t])<i&&++a>maxInt)throw $RangeError$1(OVERFLOW_ERROR);if(r==i){for(var d=a,A=base;;){var p=A<=s?tMin:A>=s+tMax?tMax:A-s;if(d<p)break;var f=d-p,h=base-p;push$4(n,fromCharCode(digitToBasic(p+f%h))),d=floor$2(f/h),A+=base}push$4(n,fromCharCode(digitToBasic(d))),s=adapt(a,$,l==c),a=0,l++}}a++,i++}return join$2(n,"")},stringPunycodeToAscii=function(e){var t,r,n=[],o=split$2(replace$2(toLowerCase$1(e),regexSeparators,"."),".");for(t=0;t<o.length;t++)r=o[t],push$4(n,exec$1(regexNonASCII,r)?"xn--"+encode(r):r);return join$2(n,".")},$$4=_export,global$2=global$H,call=functionCall,uncurryThis$4=functionUncurryThis,DESCRIPTORS$3=descriptors,USE_NATIVE_URL$1=urlConstructorDetection,defineBuiltIn$1=defineBuiltIn$h,defineBuiltIns=defineBuiltIns$5,setToStringTag$1=setToStringTag$9,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule$1=internalState,anInstance$1=anInstance$9,isCallable=isCallable$w,hasOwn$1=hasOwnProperty_1,bind$1=functionBindContext,classof=classof$h,anObject=anObject$k,isObject=isObject$k,$toString$1=toString$b,create5=objectCreate,createPropertyDescriptor=createPropertyDescriptor$7,getIterator=getIterator$5,getIteratorMethod=getIteratorMethod$6,validateArgumentsLength$1=validateArgumentsLength$6,wellKnownSymbol=wellKnownSymbol$q,arraySort=arraySort$3,ITERATOR=wellKnownSymbol("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor7=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){if(!DESCRIPTORS$3)return global$2[e];var t=getOwnPropertyDescriptor7(global$2,e);return t&&t.value},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$2.RegExp,TypeError$2=global$2.TypeError,decodeURIComponent=global$2.decodeURIComponent,encodeURIComponent$1=global$2.encodeURIComponent,charAt$1=uncurryThis$4("".charAt),join$1=uncurryThis$4([].join),push$3=uncurryThis$4([].push),replace$1=uncurryThis$4("".replace),shift$1=uncurryThis$4([].shift),splice3=uncurryThis$4([].splice),split$1=uncurryThis$4("".split),stringSlice$2=uncurryThis$4("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent(e)}catch(t){return e}},deserialize=function(e){var t=replace$1(e,plus," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=replace$1(t,percentSequence(r--),percentDecode);return t}},find5=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace$1(encodeURIComponent$1(e),find5,replacer)},URLSearchParamsIterator=createIteratorConstructor((function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$1(e,0)?stringSlice$2(e,1):e:$toString$1(e)))};URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=getIteratorMethod(e);if(c)for(r=(t=getIterator(e,c)).next;!(n=call(r,t)).done;){if(i=(o=getIterator(anObject(n.value))).next,(a=call(i,o)).done||(s=call(i,o)).done||!call(i,o).done)throw TypeError$2("Expected sequence with length 2");push$3(this.entries,{key:$toString$1(a.value),value:$toString$1(s.value)})}else for(var l in e)hasOwn$1(e,l)&&push$3(this.entries,{key:l,value:$toString$1(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=split$1(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split$1(t,"="),push$3(this.entries,{key:deserialize(shift$1(r)),value:deserialize(join$1(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push$3(r,serialize(e.key)+"="+serialize(e.value));return join$1(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function(){anInstance$1(this,URLSearchParamsPrototype),setInternalState$1(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0))},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$1(arguments.length,2);var r=getInternalParamsState(this);push$3(r.entries,{key:$toString$1(e),value:$toString$1(t)}),r.updateURL()},delete:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,n=$toString$1(e),o=0;o<r.length;)r[o].key===n?splice3(r,o,1):o++;t.updateURL()},get:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push$3(n,t[o].value);return n},has:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString$1(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$1(arguments.length,1);for(var r,n=getInternalParamsState(this),o=n.entries,i=!1,a=$toString$1(e),s=$toString$1(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?splice3(o,c--,1):(i=!0,r.value=s));i||push$3(o,{key:a,value:s}),n.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,n=bind$1(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$1(URLSearchParamsPrototype,ITERATOR,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$1(URLSearchParamsPrototype,"toString",(function(){return getInternalParamsState(this).serialize()}),{enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$4({global:!0,constructor:!0,forced:!USE_NATIVE_URL$1},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL$1&&isCallable(Headers)){var headersHas=uncurryThis$4(HeadersPrototype.has),headersSet=uncurryThis$4(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject(e)){var t,r=e.body;if(classof(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create5(e,{body:createPropertyDescriptor(0,$toString$1(r)),headers:createPropertyDescriptor(0,t)})}return e};if(isCallable(nativeFetch)&&$$4({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$4({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var EOF,web_urlSearchParams_constructor={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},$$3=_export,DESCRIPTORS$2=descriptors,USE_NATIVE_URL=urlConstructorDetection,global$1=global$H,bind2=functionBindContext,uncurryThis$3=functionUncurryThis,defineBuiltIn=defineBuiltIn$h,defineBuiltInAccessor=defineBuiltInAccessor$5,anInstance=anInstance$9,hasOwn3=hasOwnProperty_1,assign3=objectAssign,arrayFrom=arrayFrom$2,arraySlice=arraySliceSimple,codeAt=stringMultibyte.codeAt,toASCII=stringPunycodeToAscii,$toString=toString$b,setToStringTag=setToStringTag$9,validateArgumentsLength=validateArgumentsLength$6,URLSearchParamsModule=web_urlSearchParams_constructor,InternalStateModule=internalState,setInternalState=InternalStateModule.set,getInternalURLState=InternalStateModule.getterFor("URL"),URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,NativeURL=global$1.URL,TypeError$1=global$1.TypeError,parseInt$1=global$1.parseInt,floor$1=Math.floor,pow$1=Math.pow,charAt=uncurryThis$3("".charAt),exec=uncurryThis$3(/./.exec),join3=uncurryThis$3([].join),numberToString=uncurryThis$3(1..toString),pop=uncurryThis$3([].pop),push$2=uncurryThis$3([].push),replace=uncurryThis$3("".replace),shift=uncurryThis$3([].shift),split=uncurryThis$3("".split),stringSlice$1=uncurryThis$3("".slice),toLowerCase=uncurryThis$3("".toLowerCase),unshift=uncurryThis$3([].unshift),INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[a-z]/i,ALPHANUMERIC=/[\d+-.a-z]/i,DIGIT=/\d/,HEX_START=/^0x/i,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\da-f]+$/i,FORBIDDEN_HOST_CODE_POINT=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,TAB_AND_NEW_LINE=/[\t\n\r]/g,parseIPv4=function(e){var t,r,n,o,i,a,s,c=split(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==charAt(o,0)&&(i=exec(HEX_START,o)?16:8,o=stringSlice$1(o,8==i?1:2)),""===o)a=0;else{if(!exec(10==i?DEC:8==i?OCT:HEX,o))return e;a=parseInt$1(o,i)}push$2(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=pow$1(256,5-t))return null}else if(a>255)return null;for(s=pop(r),n=0;n<r.length;n++)s+=r[n]*pow$1(256,3-n);return s},parseIPv6=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,$=0,d=function(){return charAt(e,$)};if(":"==d()){if(":"!=charAt(e,1))return;$+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=r=0;r<4&&exec(HEX,d());)t=16*t+parseInt$1(d(),16),$++,r++;if("."==d()){if(0==r)return;if($-=r,l>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;$++}if(!exec(DIGIT,d()))return;for(;exec(DIGIT,d());){if(i=parseInt$1(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;$++}c[l]=256*c[l]+o,2!=++n&&4!=n||l++}if(4!=n)return;break}if(":"==d()){if($++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;$++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},findLongestZeroSequence=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t},serializeHost=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)unshift(t,e%256),e=floor$1(e/256);return join3(t,".")}if("object"==typeof e){for(t="",n=findLongestZeroSequence(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=numberToString(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign3({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign3({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign3({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=codeAt(e,0);return r>32&&r<127&&!hasOwn3(t,e)?e:encodeURIComponent(e)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(e,t){var r;return 2==e.length&&exec(ALPHA,charAt(e,0))&&(":"==(r=charAt(e,1))||!t&&"|"==r)},startsWithWindowsDriveLetter=function(e){var t;return e.length>1&&isWindowsDriveLetter(stringSlice$1(e,0,2))&&(2==e.length||"/"===(t=charAt(e,2))||"\\"===t||"?"===t||"#"===t)},isSingleDot=function(e){return"."===e||"%2e"===toLowerCase(e)},isDoubleDot=function(e){return".."===(e=toLowerCase(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},URLState=function(e,t,r){var n,o,i,a=$toString(e);if(t){if(o=this.parse(a))throw TypeError$1(o);this.searchParams=null}else{if(void 0!==r&&(n=new URLState(r,!0)),o=this.parse(a,null,n))throw TypeError$1(o);(i=getInternalSearchParamsState(new URLSearchParams$1)).bindURL(this),this.searchParams=i}};URLState.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s=this,c=t||SCHEME_START,l=0,u="",$=!1,d=!1,A=!1;for(e=$toString(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=replace(e,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,"")),e=replace(e,TAB_AND_NEW_LINE,""),n=arrayFrom(e);l<=n.length;){switch(o=n[l],c){case SCHEME_START:if(!o||!exec(ALPHA,o)){if(t)return INVALID_SCHEME;c=NO_SCHEME;continue}u+=toLowerCase(o),c=SCHEME;break;case SCHEME:if(o&&(exec(ALPHANUMERIC,o)||"+"==o||"-"==o||"."==o))u+=toLowerCase(o);else{if(":"!=o){if(t)return INVALID_SCHEME;u="",c=NO_SCHEME,l=0;continue}if(t&&(s.isSpecial()!=hasOwn3(specialSchemes,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&specialSchemes[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?c=FILE:s.isSpecial()&&r&&r.scheme==s.scheme?c=SPECIAL_RELATIVE_OR_AUTHORITY:s.isSpecial()?c=SPECIAL_AUTHORITY_SLASHES:"/"==n[l+1]?(c=PATH_OR_AUTHORITY,l++):(s.cannotBeABaseURL=!0,push$2(s.path,""),c=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!r||r.cannotBeABaseURL&&"#"!=o)return INVALID_SCHEME;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=FRAGMENT;break}c="file"==r.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!=o||"/"!=n[l+1]){c=RELATIVE;continue}c=SPECIAL_AUTHORITY_IGNORE_SLASHES,l++;break;case PATH_OR_AUTHORITY:if("/"==o){c=AUTHORITY;break}c=PATH;continue;case RELATIVE:if(s.scheme=r.scheme,o==EOF)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=RELATIVE_SLASH;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query="",c=QUERY;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.path.length--,c=PATH;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",c=FRAGMENT}break;case RELATIVE_SLASH:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=PATH;continue}c=AUTHORITY}else c=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(c=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!=o||"/"!=charAt(u,l+1))continue;l++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=o&&"\\"!=o){c=AUTHORITY;continue}break;case AUTHORITY:if("@"==o){$&&(u="%40"+u),$=!0,i=arrayFrom(u);for(var p=0;p<i.length;p++){var f=i[p];if(":"!=f||A){var h=percentEncode(f,userinfoPercentEncodeSet);A?s.password+=h:s.username+=h}else A=!0}u=""}else if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if($&&""==u)return INVALID_AUTHORITY;l-=arrayFrom(u).length+1,u="",c=HOST}else u+=o;break;case HOST:case HOSTNAME:if(t&&"file"==s.scheme){c=FILE_HOST;continue}if(":"!=o||d){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==u)return INVALID_HOST;if(t&&""==u&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(u))return a;if(u="",c=PATH_START,t)return;continue}"["==o?d=!0:"]"==o&&(d=!1),u+=o}else{if(""==u)return INVALID_HOST;if(a=s.parseHost(u))return a;if(u="",c=PORT,t==HOSTNAME)return}break;case PORT:if(!exec(DIGIT,o)){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=u){var y=parseInt$1(u,10);if(y>65535)return INVALID_PORT;s.port=s.isSpecial()&&y===specialSchemes[s.scheme]?null:y,u=""}if(t)return;c=PATH_START;continue}return INVALID_PORT}u+=o;break;case FILE:if(s.scheme="file","/"==o||"\\"==o)c=FILE_SLASH;else{if(!r||"file"!=r.scheme){c=PATH;continue}if(o==EOF)s.host=r.host,s.path=arraySlice(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=arraySlice(r.path),s.query="",c=QUERY;else{if("#"!=o){startsWithWindowsDriveLetter(join3(arraySlice(n,l),""))||(s.host=r.host,s.path=arraySlice(r.path),s.shortenPath()),c=PATH;continue}s.host=r.host,s.path=arraySlice(r.path),s.query=r.query,s.fragment="",c=FRAGMENT}}break;case FILE_SLASH:if("/"==o||"\\"==o){c=FILE_HOST;break}r&&"file"==r.scheme&&!startsWithWindowsDriveLetter(join3(arraySlice(n,l),""))&&(isWindowsDriveLetter(r.path[0],!0)?push$2(s.path,r.path[0]):s.host=r.host),c=PATH;continue;case FILE_HOST:if(o==EOF||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&isWindowsDriveLetter(u))c=PATH;else if(""==u){if(s.host="",t)return;c=PATH_START}else{if(a=s.parseHost(u))return a;if("localhost"==s.host&&(s.host=""),t)return;u="",c=PATH_START}continue}u+=o;break;case PATH_START:if(s.isSpecial()){if(c=PATH,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=EOF&&(c=PATH,"/"!=o))continue}else s.fragment="",c=FRAGMENT;else s.query="",c=QUERY;break;case PATH:if(o==EOF||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(isDoubleDot(u)?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||push$2(s.path,"")):isSingleDot(u)?"/"==o||"\\"==o&&s.isSpecial()||push$2(s.path,""):("file"==s.scheme&&!s.path.length&&isWindowsDriveLetter(u)&&(s.host&&(s.host=""),u=charAt(u,0)+":"),push$2(s.path,u)),u="","file"==s.scheme&&(o==EOF||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)shift(s.path);"?"==o?(s.query="",c=QUERY):"#"==o&&(s.fragment="",c=FRAGMENT)}else u+=percentEncode(o,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==o?(s.query="",c=QUERY):"#"==o?(s.fragment="",c=FRAGMENT):o!=EOF&&(s.path[0]+=percentEncode(o,C0ControlPercentEncodeSet));break;case QUERY:t||"#"!=o?o!=EOF&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":percentEncode(o,C0ControlPercentEncodeSet)):(s.fragment="",c=FRAGMENT);break;case FRAGMENT:o!=EOF&&(s.fragment+=percentEncode(o,fragmentPercentEncodeSet))}l++}},parseHost:function(e){var t,r,n;if("["==charAt(e,0)){if("]"!=charAt(e,e.length-1))return INVALID_HOST;if(!(t=parseIPv6(stringSlice$1(e,1,-1))))return INVALID_HOST;this.host=t}else if(this.isSpecial()){if(e=toASCII(e),exec(FORBIDDEN_HOST_CODE_POINT,e))return INVALID_HOST;if(null===(t=parseIPv4(e)))return INVALID_HOST;this.host=t}else{if(exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT,e))return INVALID_HOST;for(t="",r=arrayFrom(e),n=0;n<r.length;n++)t+=percentEncode(r[n],C0ControlPercentEncodeSet);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return hasOwn3(specialSchemes,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&isWindowsDriveLetter(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=r+(n?":"+n:"")+"@"),l+=serializeHost(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+join3(a,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw TypeError$1(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new URLConstructor(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+serializeHost(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse($toString(e)+":",SCHEME_START)},getUsername:function(){return this.username},setUsername:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=percentEncode(t[r],userinfoPercentEncodeSet)}},getPassword:function(){return this.password},setPassword:function(e){var t=arrayFrom($toString(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=percentEncode(t[r],userinfoPercentEncodeSet)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?serializeHost(e):serializeHost(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,HOST)},getHostname:function(){var e=this.host;return null===e?"":serializeHost(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,HOSTNAME)},getPort:function(){var e=this.port;return null===e?"":$toString(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=$toString(e))?this.port=null:this.parse(e,PORT))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+join3(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,PATH_START))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=$toString(e))?this.query=null:("?"==charAt(e,0)&&(e=stringSlice$1(e,1)),this.query="",this.parse(e,QUERY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=$toString(e))?("#"==charAt(e,0)&&(e=stringSlice$1(e,1)),this.fragment="",this.parse(e,FRAGMENT)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor=function(e){var t=anInstance(this,URLPrototype),r=validateArgumentsLength(arguments.length,1)>1?arguments[1]:void 0,n=setInternalState(t,new URLState(e,!1,r));DESCRIPTORS$2||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},URLPrototype=URLConstructor.prototype,accessorDescriptor=function(e,t){return{get:function(){return getInternalURLState(this)[e]()},set:t&&function(e){return getInternalURLState(this)[t](e)},configurable:!0,enumerable:!0}};if(DESCRIPTORS$2&&(defineBuiltInAccessor(URLPrototype,"href",accessorDescriptor("serialize","setHref")),defineBuiltInAccessor(URLPrototype,"origin",accessorDescriptor("getOrigin")),defineBuiltInAccessor(URLPrototype,"protocol",accessorDescriptor("getProtocol","setProtocol")),defineBuiltInAccessor(URLPrototype,"username",accessorDescriptor("getUsername","setUsername")),defineBuiltInAccessor(URLPrototype,"password",accessorDescriptor("getPassword","setPassword")),defineBuiltInAccessor(URLPrototype,"host",accessorDescriptor("getHost","setHost")),defineBuiltInAccessor(URLPrototype,"hostname",accessorDescriptor("getHostname","setHostname")),defineBuiltInAccessor(URLPrototype,"port",accessorDescriptor("getPort","setPort")),defineBuiltInAccessor(URLPrototype,"pathname",accessorDescriptor("getPathname","setPathname")),defineBuiltInAccessor(URLPrototype,"search",accessorDescriptor("getSearch","setSearch")),defineBuiltInAccessor(URLPrototype,"searchParams",accessorDescriptor("getSearchParams")),defineBuiltInAccessor(URLPrototype,"hash",accessorDescriptor("getHash","setHash"))),defineBuiltIn(URLPrototype,"toJSON",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),defineBuiltIn(URLPrototype,"toString",(function(){return getInternalURLState(this).serialize()}),{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&defineBuiltIn(URLConstructor,"createObjectURL",bind2(nativeCreateObjectURL,NativeURL)),nativeRevokeObjectURL&&defineBuiltIn(URLConstructor,"revokeObjectURL",bind2(nativeRevokeObjectURL,NativeURL))}function createPublicPromise(){var e,t,r=new _Promise((function(r,n){e=r,t=n}));return r.used=!1,r.resolve=function(){return r.used=!0,e.apply(void 0,arguments)},r.reject=function(){return r.used=!0,t.apply(void 0,arguments)},r}function nowTime(){try{return _parseInt$1(performance.now(),10)}catch(e){return(new Date).getTime()}}setToStringTag(URLConstructor,"URL"),$$3({global:!0,constructor:!0,forced:!USE_NATIVE_URL,sham:!DESCRIPTORS$2},{URL:URLConstructor});var _ERR_CODE,Buffer=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"start",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6||1===e.length&&e.start(0)<0?0:e.start(0):0}},{key:"end",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6?0:e.end(e.length-1):0}},{key:"get",value:function(e){if(e)try{return e.buffered}catch(e){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var r=[],n=0,o=e.length;n<o;n++){var i=r.length;if(i&&t){var a=r[i-1],s=a[1];if(e.start(n)-s<=t){var c=e.end(n);c>s&&(a[1]=c)}else r.push([e.start(n),e.end(n)])}else r.push([e.start(n),e.end(n)])}return r}},{key:"totalLength",value:function(e){return e&&e.length?_reduceInstanceProperty(e).call(e,(function(e,t){return e+(t[1]-t[0])}),0):0}},{key:"info",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};for(var o=0,i=0,a=0,s=0,c=0,l=0,u=0,$=e.buffers(t,n),d=0,A=$.length;d<A;d++){var p=$[d];if(r+n>=p[0]&&r<p[1])o=p[0],i=p[1],a=d;else{if(r+n<p[0]){s=p[0],c=p[1];break}r+n>p[1]&&(l=p[0],u=p[1])}}return{start:o,end:i,index:a,buffers:$,nextStart:s,nextEnd:c,prevStart:l,prevEnd:u,currentTime:r,behind:r-o,remaining:i?i-r:0,length:e.totalLength&&e.totalLength($)}}}]),e}(),ERR={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",OPTION:"OPTION"}},ERR_CODE=(_defineProperty(_ERR_CODE={},ERR.MANIFEST,{HLS:1100}),_defineProperty(_ERR_CODE,ERR.NETWORK,2100),_defineProperty(_ERR_CODE,ERR.NETWORK_TIMEOUT,2101),_defineProperty(_ERR_CODE,ERR.DEMUX,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400}),_defineProperty(_ERR_CODE,ERR.REMUX,{FMP4:4100,MP4:4200}),_defineProperty(_ERR_CODE,ERR.MEDIA,{MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203}),_defineProperty(_ERR_CODE,ERR.OTHER,8e3),_ERR_CODE),StreamingError=function(e){_inherits(r,_wrapNativeSuper(Error));var t=_createSuper(r);function r(e,n,o,i,a){var s;return _classCallCheck(this,r),(s=t.call(this,a||(null==o?void 0:o.message))).errorType=e===ERR.NETWORK_TIMEOUT?ERR.NETWORK:e,s.originError=o,s.ext=i,s.errorCode=ERR_CODE[e][n]||ERR_CODE[e],s.errorMessage=s.message,s.errorCode||(s.errorType=ERR.OTHER,s.errorCode=ERR_CODE[s.errorType]),s}return _createClass(r,null,[{key:"create",value:function(e,t,n,o,i){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=ERR.OTHER),new r(e,t,n,o,i))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?ERR.NETWORK_TIMEOUT:ERR.NETWORK,e,null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),r}(),isBrowser="undefined"!=typeof window,Logger=function(){function e(t){_classCallCheck(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return _createClass(e,[{key:"debug",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).debug.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"log",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).log.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).warn.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"error",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=console).error.apply(r,_concatInstanceProperty(t=[this._prefix,nowTime()]).call(t,o))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function getMediaSource(){try{return isBrowser?window.MediaSource:null}catch(e){}}_defineProperty(Logger,"disabled",!0);var MediaSource=getMediaSource(),OP_NAME={APPEND:"appendBuffer",REMOVE:"removeBuffer"},MSE=function(){function e(t,r){var n=this;_classCallCheck(this,e),_defineProperty(this,"media",null),_defineProperty(this,"mediaSource",null),_defineProperty(this,"_openPromise",createPublicPromise()),_defineProperty(this,"_queue",_Object$create(null)),_defineProperty(this,"_sourceBuffer",_Object$create(null)),_defineProperty(this,"_mseFullFlag",{}),_defineProperty(this,"_st",0),_defineProperty(this,"_opst",0),_defineProperty(this,"_logger",null),_defineProperty(this,"_config",null),_defineProperty(this,"_url",null),_defineProperty(this,"_onSBUpdateEnd",(function(e){var t=n._queue[e];if(t){var r=t.shift();if(r){var o=nowTime()-n._opst;n._logger.debug("UpdateEnd",r.opName,o,r.context),r.promise.resolve({name:r.opName,context:r.context,costtime:o}),n._startQueue(e)}}})),_defineProperty(this,"_onSBUpdateError",(function(e,t){var r=n._queue[e];if(r){var o=r[0];o&&(n._logger.error("UpdateError",e,o.opName,o.context),o.promise.reject(new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_APPEND_BUFFER,t)))}})),this._config=_Object$assign(e.getDefaultConfig(),r),t&&this.bindMedia(t),this._logger=new Logger("MSE"),this._config.openLog&&Logger.enable()}var t,r,n;return _createClass(e,[{key:"isOpened",get:function(){var e;return"open"===(null===(e=this.mediaSource)||void 0===e?void 0:e.readyState)}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var e;return(null===(e=this.mediaSource)||void 0===e?void 0:e.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"isFull",value:function(t){return t?this._mseFullFlag[t]:this._mseFullFlag[e.VIDEO]}},{key:"updateDuration",value:function(e){var t=this;return this.mediaSource&&this.mediaSource.duration>e?_Promise.resolve():this._enqueueBlockingOp((function(){t.isEnded?t._logger.debug("[debug mse] setDuration ended"):t.mediaSource&&(t.mediaSource.duration=e,t._logger.debug("[debug mse] setDuration"))}),"updateDuration")}},{key:"open",value:function(){var e=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource;t.addEventListener("sourceopen",(function r(){var n=nowTime()-e._st;e._logger.debug("MSE OPEN",n),t.removeEventListener("sourceopen",r),e._openPromise.resolve({costtime:n})})),this._openPromise=createPublicPromise()}return this._openPromise}},{key:"bindMedia",value:(n=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.mediaSource&&!this.media){e.next=3;break}return e.next=3,this.unbindMedia();case 3:if(t&&MediaSource){e.next=5;break}throw new Error("Param media or MediaSource does not exist");case 5:return this.media=t,r=this.mediaSource=new MediaSource,this._st=nowTime(),n=function e(){var n=nowTime()-o._st;o._logger.debug("MSE OPEN"),r.removeEventListener("sourceopen",e),_URL.revokeObjectURL(t.src),o._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",n),this._url=_URL.createObjectURL(r),t.src=this._url,e.abrupt("return",this._openPromise);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"unbindMedia",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource){var i,a;if(_forEachInstanceProperty(i=_Object$keys(this._queue)).call(i,(function(e){var t=o._queue[e];t&&_forEachInstanceProperty(t).call(t,(function(e){return e.promise.resolve}))})),r=!!this.media&&this.media.readyState>=1,n="open"===t.readyState,r&&n)try{t.endOfStream()}catch(e){}_forEachInstanceProperty(a=_Object$keys(this._sourceBuffer)).call(a,(function(e){try{t.removeSourceBuffer(o._sourceBuffer[e])}catch(e){}}))}if(this.media){this.media.removeAttribute("src");try{this.media.load()}catch(e){}this.media=null}this.mediaSource=null,this._openPromise=createPublicPromise(),this._queue=_Object$create(null),this._sourceBuffer=_Object$create(null);case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"createSource",value:function(e,t){var r,n;if(!this._sourceBuffer[e]&&this.mediaSource){var o;try{o=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(e){throw new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_ADD_SB,e)}o.mimeType=t,o.addEventListener("updateend",_bindInstanceProperty(r=this._onSBUpdateEnd).call(r,this,e)),o.addEventListener("error",_bindInstanceProperty(n=this._onSBUpdateError).call(n,this,e))}}},{key:"changeType",value:function(e,t){var r=this,n=this._sourceBuffer[e];return this.mediaSource&&n&&n.mimeType!==t&&"function"==typeof n.changeType?this._enqueueOp(e,(function(){n.changeType(t),n.mimeType=t,r._onSBUpdateEnd(e)})):_Promise.resolve()}},{key:"createOrChangeSource",value:function(e,t){return this.createSource(e,t),this.changeType(e,t)}},{key:"append",value:function(e,t,r){var n=this;return t&&t.byteLength&&this._sourceBuffer[e]?this._enqueueOp(e,(function(){var o;n.mediaSource&&(n._logger.debug("MSE APPEND START",r),n._opst=nowTime(),null===(o=n._sourceBuffer[e])||void 0===o||o.appendBuffer(t))}),OP_NAME.APPEND,r):_Promise.resolve()}},{key:"remove",value:function(e,t,r,n){var o=this,i=!1;return this._mseFullFlag[e]&&(i=!0),this._enqueueOp(e,(function(){if(o.mediaSource){var i=o._sourceBuffer[e];t>=r||!i?o._onSBUpdateEnd(e):(o._opst=nowTime(),o._logger.debug("MSE REMOVE START",e,t,r,n),i.remove(t,r))}}),OP_NAME.REMOVE,n,i)}},{key:"clearBuffer",value:function(e,t){var r,n,o=this;return _forEachInstanceProperty(r=_Object$keys(this._sourceBuffer)).call(r,(function(r){n=o._enqueueOp(r,(function(){if(o.mediaSource){var n=o._sourceBuffer[r];o._logger.debug("MSE clearBuffer START",r,e,t),n.remove(e,t)}}))})),n}},{key:"clearAllBuffer",value:function(){var e,t,r=this;return _forEachInstanceProperty(e=_Object$keys(this._sourceBuffer)).call(e,(function(e){t=r._enqueueOp(e,(function(){if(r.mediaSource){var t=r._sourceBuffer[e];r._logger.debug("MSE clearAllBuffer START",e),t.remove(0,Buffer.end(Buffer.get(t)))}}))})),t}},{key:"clearOpQueues",value:function(e){var t;this._logger.debug("MSE clearOpQueue START");var r=this._queue[e];if(r&&r[e]&&!(r.length<5)){var n=[];_forEachInstanceProperty(r).call(r,(function(e){e.context&&e.context.isinit&&n.push(e)})),this._queue[e]=_sliceInstanceProperty(r).call(r,0,2),n.length>0&&(t=this._queue[e]).push.apply(t,n)}}},{key:"endOfStream",value:function(e){var t=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp((function(){var r=t.mediaSource;r&&"open"===r.readyState&&(t._logger.debug("MSE endOfStream START"),e?r.endOfStream(e):r.endOfStream())}),"endOfStream"):_Promise.resolve()}},{key:"setLiveSeekableRange",value:function(e,t){var r=this.mediaSource;e<0||t<e||null==r||!r.setLiveSeekableRange||"open"!==r.readyState||r.setLiveSeekableRange(e,t)}},{key:"getSourceBuffer",value:function(e){return this._sourceBuffer[e]}},{key:"buffered",value:function(e){return Buffer.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return Buffer.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return Buffer.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,r,n,o){var i=this;if(!this.mediaSource)return _Promise.resolve();var a=this._queue[e]=this._queue[e]||[],s={exec:t,promise:createPublicPromise(),opName:r,context:n};return o?(_spliceInstanceProperty(a).call(a,0,0,s),this._mseFullFlag[e]=!1,this._startQueue(e)):a.push(s),this.isOpened?1===a.length&&this._startQueue(e):this._openPromise.then((function(){1===a.length&&i._startQueue(e)})),s.promise}},{key:"_enqueueBlockingOp",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,o,i=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",_Promise.resolve());case 2:if((n=_Object$keys(this._sourceBuffer)).length){e.next=5;break}return e.abrupt("return",t());case 5:return o=[],_forEachInstanceProperty(n).call(n,(function(e){var t=i._queue[e],n=createPublicPromise();o.push(n),t.push({exec:function(){return n.resolve()},promise:n,opName:r}),1===t.length&&i._startQueue(e)})),e.abrupt("return",_Promise.all(o).then((function(){try{return t()}finally{_forEachInstanceProperty(n).call(n,(function(e){var t=i._queue[e],r=i._sourceBuffer[e];null==t||t.shift(),r&&r.updating||i._startQueue(e)}))}})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"_startQueue",value:function(e){var t=this._queue[e];if(t){var r=t[0];if(r&&!this._mseFullFlag[e])try{r.exec()}catch(o){var n;o&&o.message&&_indexOfInstanceProperty(n=o.message).call(n,"SourceBuffer is full")>=0?(this._mseFullFlag[e]=!0,this._logger.error("[MSE error], context,",r.context," ,name,",r.opName,",err,SourceBuffer is full"),r.promise.reject(new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_FULL,o))):(this._logger.error(o),r.promise.reject(new StreamingError(ERR.MEDIA,ERR.SUB_TYPES.MSE_OTHER,o)),t.shift(),this._startQueue(e))}}}},{key:"setTimeoffset",value:function(e,t,r){var n=this;return this._enqueueOp(e,(function(){t<0&&(t+=.001),n._sourceBuffer[e].timestampOffset=t,n._onSBUpdateEnd(e)}),"setTimeoffset",r)}},{key:"abort",value:function(e,t){var r=this;return this.isOpened?this._enqueueOp(e,(function(){r._sourceBuffer[e].abort(),r._onSBUpdateEnd(e)}),"abort",t):_Promise.resolve()}}],[{key:"getDefaultConfig",value:function(){return{openLog:!1}}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(!MediaSource)return!1;try{return MediaSource.isTypeSupported(e)}catch(t){return this._logger.error(e,t),!1}}}]),e}();_defineProperty(MSE,"VIDEO","video"),_defineProperty(MSE,"AUDIO","audio");var AUDIO_ERROR_SUBCODE=3,CODEC_MAP={"mp4a.40.5":1,"mp4a.40.2":2},JUMP_GAP_STEP=.05,MediaCache=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_queue",[]),"undefined"!=typeof document&&(this._tempMedia=document.createElement("video"))}return _createClass$2(e,[{key:"tempMedia",get:function(){return this._tempMedia}},{key:"hasCached",get:function(){var e,t;return-1!==_findIndexInstanceProperty(e=this._queue).call(e,(function(e){return 1===e.codec}))&&-1!==_findIndexInstanceProperty(t=this._queue).call(t,(function(e){return 2===e.codec}))}},{key:"getCachedMedia",value:function(e){var t,r,n=_findIndexInstanceProperty(t=this._queue).call(t,(function(t){return t.codec===e}));return-1!==n?_spliceInstanceProperty(r=this._queue).call(r,n,1)[0]:null}},{key:"cacheMedia",value:function(e){var t,r,n=e.codec,o=e.media,i=e.mse,a=CODEC_MAP[n];if(this._queue=_filterInstanceProperty(t=this._queue).call(t,(function(e){var t;return e.mse&&!e.mse.isOpened&&e.mse.unbindMedia(),null===(t=e.mse)||void 0===t?void 0:t.isOpened})),!n||_filterInstanceProperty(r=this._queue).call(r,(function(e){return e.codec===a})).length>2)return null==i||i.endOfStream(),void(null==i||i.unbindMedia());this._queue.push({codec:a,media:o,mse:i})}}]),e}(),mediaCache=new MediaCache,AudioMseRender=function(e){_inherits$1(i,BaseRender);var t,r,n,o=_createSuper$1(i);function i(e,t){var r;return _classCallCheck$2(this,i),_defineProperty$2(_assertThisInitialized$1(r=o.call(this,e,t)),"_media",void 0),_defineProperty$2(_assertThisInitialized$1(r),"_isTempMedia",!1),_defineProperty$2(_assertThisInitialized$1(r),"_mse",void 0),_defineProperty$2(_assertThisInitialized$1(r),"_remuxer",null),_defineProperty$2(_assertThisInitialized$1(r),"_codec",""),_defineProperty$2(_assertThisInitialized$1(r),"_sourceCreated",!1),_defineProperty$2(_assertThisInitialized$1(r),"_needInitSegment",!0),_defineProperty$2(_assertThisInitialized$1(r),"_seekNoSideEffect",!1),_defineProperty$2(_assertThisInitialized$1(r),"_startRendered",!1),_defineProperty$2(_assertThisInitialized$1(r),"_firstTimeAppendedBuffer",!1),_defineProperty$2(_assertThisInitialized$1(r),"_sampleQueue",[]),_defineProperty$2(_assertThisInitialized$1(r),"_inProcessing",!1),_defineProperty$2(_assertThisInitialized$1(r),"_duration",0),_defineProperty$2(_assertThisInitialized$1(r),"_mediaCache",mediaCache),_defineProperty$2(_assertThisInitialized$1(r),"_resetDts",(function(){})),_defineProperty$2(_assertThisInitialized$1(r),"_onCanplay",(function(){r._ready||(r._ready=!0,r.emit(Events.AUDIO.AUDIO_READY))})),_defineProperty$2(_assertThisInitialized$1(r),"_onPlaying",(function(){r._parent.ready&&(r._audioCanAutoplay=!0,r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PLAYING))})),_defineProperty$2(_assertThisInitialized$1(r),"_onWaiting",(function(){if(!r._seekNoSideEffect){try{for(var e,t=r._media.buffered,n=r._media.currentTime,o=0,i=0,a=t.length;i<a;i++)t.start(i)<n&&t.end(i)>n&&(o=t.end(i)-n);if(Math.abs(o)>.5)return;if(Math.abs(r._media.duration-r._media.currentTime)<.3)return r._reuseMse||r._mse.endOfStream(),void(null===(e=_assertThisInitialized$1(r))||void 0===e||e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED))}catch(e){}r._ready=!1,r.emit(Events.AUDIO.AUDIO_WAITING)}})),_defineProperty$2(_assertThisInitialized$1(r),"_onSeeked",(function(){r._seekNoSideEffect||r._isLive?r._seekNoSideEffect=!1:(logger.log(r.TAG,"seeked"),r._ready||(r._media.pause(),r._ready=!0,r.emit(Events.AUDIO.AUDIO_READY)))})),_defineProperty$2(_assertThisInitialized$1(r),"_onProgress",(function(){if(r._media.readyState<=1){var e=r._getBufferGap();e>0&&e<1&&(r._media.currentTime+=e+JUMP_GAP_STEP,logger.warn(r.TAG,"progress, gap=",e))}r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PROGRESS),r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE)})),_defineProperty$2(_assertThisInitialized$1(r),"_onEnded",(function(){var e;logger.log(r.TAG,"ended!"),null===(e=_assertThisInitialized$1(r))||void 0===e||e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED)})),_defineProperty$2(_assertThisInitialized$1(r),"_onOnceProgress",(function(){if(r._media.buffered.length){var e=r._media.buffered.start(0);e&&(r._media.currentTime=e+JUMP_GAP_STEP,logger.log(r.TAG,"start gap:",e)),r._media.removeEventListener("progress",r._onOnceProgress)}})),_defineProperty$2(_assertThisInitialized$1(r),"_onError",(function(){var e;r._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,r._assembleErr("audio error: ".concat(null===(e=r._media.error)||void 0===e?void 0:e.message),AUDIO_ERROR_SUBCODE))})),_defineProperty$2(_assertThisInitialized$1(r),"_appendChunk",(function(e,t){var n;if(!r.noAudio&&t.samples.length){if(r._codec||(2!==t.objectType&&5!==t.objectType?r._codec="mp4a.40.5":r._codec=t.codec,r._isTempMedia&&r._switchMedia(r._codec)),_forEachInstanceProperty(n=t.samples).call(n,(function(e){e.baseMediaDecodeTime=t.baseMediaDecodeTime,r._sampleQueue.push(e)})),t.samples=[],!r._meta)return r._meta=_objectSpread2(_objectSpread2({},t),{},{exist:function(){return!0},hasSample:function(){return!0},samples:[]}),logger.warn(r.TAG,"audio set metadata",r._meta),void r._doAppendWrapper();var o,i;if(r._meta.sampleRate!==t.sampleRate)logger.warn(r.TAG,_concatInstanceProperty(o="discontinue: ".concat(r._meta.sampleRate," -> ")).call(o,t.sampleRate)),r._needInitSegment=!0,_forEachInstanceProperty(i=_Object$keys(t)).call(i,(function(e){r._meta[e]=t[e]}));!r._inProcessing&&r._sampleQueue.length&&r._doAppendWrapper()}})),_defineProperty$2(_assertThisInitialized$1(r),"_doAppend",function(){var e=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(t){var n,o,i;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._remuxer||(r._remuxer=new FMP4Remuxer({samples:[],exist:function(){return!1}},t)),n=t.samples,r._sourceCreated){e.next=12;break}return r.analyse.addAudioMseOpenStart(),e.next=6,r._mse.open();case 6:r._sourceCreated=!0,logger.log(r.TAG,"video/mp4;codecs=".concat(r._codec)),r._mse.createSource(t.type,"video/mp4;codecs=".concat(r._codec)),r.analyse.addAudioMseOpend(),logger.log(r.TAG,"sb created!"),r._checkAutoPlay();case 12:if(o=r._remuxer.remux(r._needInitSegment),!r._needInitSegment||o.audioInitSegment){e.next=15;break}return e.abrupt("return");case 15:return r._needInitSegment=!1,i=[],o.audioInitSegment&&i.push(r._mse.append(t.type,o.audioInitSegment)),o.audioSegment&&i.push(r._mse.append(t.type,o.audioSegment)),e.abrupt("return",_Promise.all(i).then((function(){return n[n.length-1].dts/1e3})).then((function(){r._firstTimeAppendedBuffer||(r._firstTimeAppendedBuffer=!0,r.analyse.addAudioFirstTimeAppended())})));case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),_defineProperty$2(_assertThisInitialized$1(r),"_doPlay",(function(){r._media.play().catch((function(){}))})),_defineProperty$2(_assertThisInitialized$1(r),"_doPause",(function(){r._media.pause()})),_defineProperty$2(_assertThisInitialized$1(r),"_doSeek",(function(e){r._ready=!1,r._media.currentTime=e})),_defineProperty$2(_assertThisInitialized$1(r),"_doChaseFrame",(function(e){var t=e.position;r._seekNoSideEffect=!0,r._media.currentTime=t})),_defineProperty$2(_assertThisInitialized$1(r),"_startRender",(function(){logger.log(r.TAG,"start render"),r._startRendered=!0,r._media.play().catch((function(){}))})),r.TAG="AudioMseRender",r._reuseMse=getDecodeCapacaity().reuseMseForAudio,r._initMedia(),r}return _createClass$2(i,[{key:"isMse",get:function(){return!0}},{key:"media",get:function(){return this._media}},{key:"currentTime",get:function(){return this._media.currentTime}},{key:"buffered",get:function(){return this._media.buffered}},{key:"duration",get:function(){return _Number$isNaN(this._media.duration)?1/0:this._media.duration},set:function(e){this._duration=e,this._updateDuration(e)}},{key:"audioCanAutoplay",get:function(){return this._audioCanAutoplay||this.noAudio}},{key:"_initMedia",value:function(){if(!this._reuseMse||!mediaCache.hasCached)return logger.log(this.TAG,"init media and mse directly"),this._media=document.createElement("video"),this._media.autoplay=!0,this._mse=new MSE,this._bindEvents(),this._bindMediaEvents(),void this._mse.bindMedia(this._media);logger.log(this.TAG,"bind media temporary"),this._media=mediaCache.tempMedia,this._bindEvents(),this._isTempMedia=!0}},{key:"_switchMedia",value:function(e){var t=this._media,r=mediaCache.getCachedMedia(CODEC_MAP[e]);r?(logger.warn(this.TAG,"switch to cached media for audio play! codec=".concat(e)),this._media=r.media,this._mse=r.mse,this._bindMediaEvents(),this._updateDuration(this._duration),this._media.currentTime=JUMP_GAP_STEP,this._sourceCreated=!0,this._audioCanAutoplay=!0,this.analyse.addAudioMseOpend()):this._initMedia(),this._media.volume=t.volume,this._media.playbackRate=t.playbackRate,this._isTempMedia=!1}},{key:"_getBufferGap",value:function(){for(var e=this.buffered,t=0,r=e.length;t<r;t++)if(!(e.end(t)<this.currentTime))return e.start(t)-this.currentTime;return 0}},{key:"canSeek",value:function(){return!0}},{key:"resume",value:function(){return this._media.play()}},{key:"pause",value:function(){return this._media.pause()}},{key:"seekNoSideEffect",value:function(e){this._doChaseFrame(e)}},{key:"dump",value:function(){}},{key:"_emitTimelineEvents",value:function(e,t,r){var n,o;null===(n=this._parent)||void 0===n||null===(o=n.emit)||void 0===o||o.call(n,e,t,r)}},{key:"_assembleErr",value:function(e,t){var r=new Error(e);return r.code=3,r.subCode=t,r}},{key:"_bindEvents",value:function(){var e=this;_get(_getPrototypeOf$1(i.prototype),"_bindEvents",this).call(this),this._parent.on(Events.DECODE_EVENTS.CHASE_AUDIO_FRAME,this._doChaseFrame),this._parent.on(Events.TIMELINE.UPDATE_VOLUME,(function(t){e._media.volume=t,e._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.VOLUME_CHANGE)})),this._parent.on(Events.TIMELINE.END_OF_STREAM,(function(){var t;e.reuseMseForAudio||(null===(t=e._mse)||void 0===t||t.endOfStream())})),this._parent.on(Events.TIMELINE.SET_PLAYBACKRATE,(function(t){logger.log(e.TAG,"change playbackrate, ",t),e._media.playbackRate=t}))}},{key:"_bindMediaEvents",value:function(){this._media.addEventListener("canplay",this._onCanplay),this._media.addEventListener("playing",this._onPlaying),this._media.addEventListener("waiting",this._onWaiting),this._media.addEventListener("seeked",this._onSeeked),this._media.addEventListener("progress",this._onProgress),this._media.addEventListener("ended",this._onEnded),this._media.addEventListener("progress",this._onOnceProgress),this._media.addEventListener("error",this._onError)}},{key:"_updateDuration",value:(n=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(t){return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(this._mse.isOpened){e.next=4;break}return e.next=4,this._mse.open();case 4:return e.next=6,this._mse.updateDuration(t);case 6:logger.log(this.TAG,"update duration",t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_doAppendWrapper",value:(r=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(){var t;return _regeneratorRuntime$1().wrap((function(e){for(var r;;)switch(e.prev=e.next){case 0:return this._meta.samples=_sliceInstanceProperty(r=this._sampleQueue).call(r),this._meta.baseMediaDecodeTime=this._meta.samples[0].baseMediaDecodeTime,this._sampleQueue=[],e.prev=3,this._inProcessing=!0,e.next=7,this._doAppend(this._meta);case 7:if(t=e.sent,this.isLive&&this._emitTimelineEvents(Events.TIMELINE.UPDATE_SEGMENT_END,t),this._inProcessing=!1,!this._sampleQueue.length){e.next=13;break}return e.next=13,this._doAppendWrapper();case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr("audio error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message),AUDIO_ERROR_SUBCODE));case 18:case"end":return e.stop()}}),e,this,[[3,15]])}))),function(){return r.apply(this,arguments)})},{key:"_checkAutoPlay",value:function(){var e=this;this._media.addEventListener("canplay",(function t(){var r=e._media.volume;e._media.volume=Math.min(r,.1);var n=e._media.play();(n=n.then?n:_Promise.reject()).then((function(){logger.log(e.TAG,"auto play by checkAutoPlay!"),e._audioCanAutoplay=!0})).catch((function(){logger.warn(e.TAG,"can’t auto play!"),e._audioCanAutoplay=!1,e.emit(Events.AUDIO.AUDIO_NOT_ALLOWED_AUTOPLAY)})).finally((function(){e._media.volume=r,e._startRendered||(e._media.pause(),logger.log(e.TAG,"auto paused by checkAutoPlay!")),e._media.removeEventListener("canplay",t)}))}))}},{key:"_destroy",value:(t=_asyncToGenerator$1(_regeneratorRuntime$1().mark((function e(){var t,r,n;return _regeneratorRuntime$1().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(logger.log(this.TAG,"destroy audio render"),this._remuxer=null,this.removeAllListeners(),this._media.removeEventListener("canplay",this._onCanplay),this._media.removeEventListener("playing",this._onPlaying),this._media.removeEventListener("waiting",this._onWaiting),this._media.removeEventListener("seeked",this._onSeeked),this._media.removeEventListener("progress",this._onProgress),this._media.removeEventListener("ended",this._onEnded),this._media.removeEventListener("progress",this._onOnceProgress),this._media.removeEventListener("error",this._onError),this._reuseMse){e.next=17;break}return null===(t=this._mse)||void 0===t||t.endOfStream(),e.next=15,null===(r=this._mse)||void 0===r?void 0:r.unbindMedia();case 15:e.next=20;break;case 17:null===(n=this._mse)||void 0===n||n.clearAllBuffer(),mediaCache.cacheMedia({codec:this._codec,media:this._media,mse:this._mse}),logger.log(this.TAG,"cache media for audio play, codec=",this._codec);case 20:this._meta&&(this._meta.duration=0),this._mse=null,this._media=null;case 23:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"isSupported",value:function(){return getDecodeCapacaity().audioWithMse&&!!window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="mp4a.40.5"')}}]),i}(),TOLERANCE$1=.1,MAX_TOLERANCE=1,VideoTimeRange=function(){function e(t){_classCallCheck$2(this,e),this.TAG="VideoTimeRange",this._parent=t,this._baseDts=0,this._lastDuration=0,this._duration=0,this._bitrate=0,this._totalSize=0,this._buffers=[],this._currentFrameQueue=[],this._frameIndexInQueue=0,this._delayEstimateList=[],this._keyframeQueue=[]}return _createClass$2(e,[{key:"isLive",get:function(){return this._parent.isLive}},{key:"baseDts",get:function(){return this._baseDts}},{key:"duration",get:function(){return this._duration},set:function(e){this._duration=e}},{key:"buffered",get:function(){var e=this;if(this.isLive)return{length:this._duration?1:0,start:function(){return 0},end:function(){return e._duration}};var t=this._mergeBufferRanges();return{length:t.length,start:function(e){var r=t[e];return r?r.start:0},end:function(e){var r=t[e];return r?r.end:1/0}}}},{key:"bufferStart",get:function(){var e;return(null===(e=this._buffers[0])||void 0===e?void 0:e.start)||0}},{key:"frameLength",get:function(){return this._currentFrameQueue.length}},{key:"keyFrameLength",get:function(){return this._keyframeQueue.length}},{key:"totalSize",get:function(){return this._totalSize}},{key:"bitrate",get:function(){return this._bitrate},set:function(e){this._bitrate=e}},{key:"lastDuration",get:function(){return this._lastDuration}},{key:"frames",get:function(){return this._currentFrameQueue}},{key:"getCurrentTime",value:function(e){return this._lastDuration+(e-this._baseDts)/1e3}},{key:"resetDts",value:function(e){this._baseDts=e}},{key:"_mergeBufferRanges",value:function(){var e,t=_sortInstanceProperty(e=this._buffers).call(e,(function(e,t){return e.start>t.start?1:-1})),r=t.length,n=[];if(!r)return n;for(var o={start:t[0].start,end:t[0].end},i=1;i<r;i++){var a=t[i];Math.abs(o.end-a.start)<TOLERANCE$1?o.end=a.end:(n.push(o),o={start:a.start,end:a.end})}return n.push(o),n}},{key:"_caclBaseDts",value:function(e){-1===this._baseDts&&e&&(this._baseDts=e.dts,logger.log(this.TAG,"set baseDts: ",this._baseDts,"frame len:",this._currentFrameQueue.length))}},{key:"_updateDuration",value:function(e){for(var t=e.length,r=e[t-1],n=0;n<t;n++){var o=e[n];if(o&&o.options&&o.options.meta){var i=e[n-1]||this._currentFrameQueue[this._currentFrameQueue.length-1];i?this._lastDuration+=(i.dts-this._baseDts)/1e3:this._lastDuration=this._duration,logger.log(this.TAG,"updateBaseDts,record lastDuration:",this._lastDuration),this._baseDts=o.dts;break}}r&&(this._duration=(r.dts-this._baseDts)/1e3+this._lastDuration)}},{key:"_estimateBitRate",value:function(e){var t=e.length;if(t<=2){var r;if(this._delayEstimateList=_concatInstanceProperty(r=this._delayEstimateList).call(r,e),(t=this._delayEstimateList.length)<=30)return;e=this._delayEstimateList,this._delayEstimateList=[]}for(var n=0,o=0;o<t;o++){var i,a=e[o];n+=a.data?a.data.length:_reduceInstanceProperty(i=a.units).call(i,(function(e,t){return e+t.byteLength}),0)}this._totalSize+=n;var s=n/(e[t-1].dts-e[0].dts);this._bitrate=_parseInt$1(8e3*s)}},{key:"_beforeAppendVodBuffer",value:function(e){var t=this;if(e.length){for(var r=[],n=[],o=0,i=e.length;o<i;o++)e[o].keyframe&&(r.push(n),n=[]),n.push(e[o]);n.length&&r.push(n),_forEachInstanceProperty(r).call(r,(function(e){return t._appendVodBuffer(e)}))}}},{key:"_appendVodBuffer",value:function(e){var t,r;if(e.length){var n,o=e[0],i=e[e.length-1],a=(o.dts-this._baseDts)/1e3,s=(i.dts-this._baseDts)/1e3;if(logger.enable)logger.log(this.TAG,_concatInstanceProperty(n="add new buffer range [".concat(a," , ")).call(n,s,"]"));_filterInstanceProperty(t=this._buffers).call(t,(function(e){return a>=e.start&&s<=e.end})).length||(this._buffers.push({start:a,end:s,duartion:s-a,frames:_sliceInstanceProperty(e).call(e)}),_sortInstanceProperty(r=this._buffers).call(r,(function(e,t){return e.start>t.start?1:-1})),this._afterAppendVodBuffer())}}},{key:"_afterAppendVodBuffer",value:function(){var e;if(_filterInstanceProperty(e=this._buffers).call(e,(function(e){var t;return!(null!==(t=e.frames[0])&&void 0!==t&&t.keyframe)})).length){for(var t=this._buffers,r=this._buffers.length,n=[],o=this._buffers[0],i=1;i<r;i++){var a,s;if(null!==(a=t[i].frames[0])&&void 0!==a&&a.keyframe)n.push(o),o=t[i];else o.frames=_concatInstanceProperty(s=o.frames).call(s,t[i].frames),o.end=t[i].end,o.duartion=o.end-o.start}n.push(o),this._buffers=n}}},{key:"_recordKeyframes",value:function(e){var t,r,n=this;(_forEachInstanceProperty(e).call(e,(function(e){if(e.keyframe){var t=(e.dts-n._baseDts)/1e3;n._keyframeQueue.push({position:t,frame:e})}})),this._keyframeQueue=_sortInstanceProperty(t=this._keyframeQueue).call(t,(function(e,t){return e.position>t.position?1:-1})),this.isLive&&this._keyframeQueue.length>40)&&_spliceInstanceProperty(r=this._keyframeQueue).call(r,0,20)}},{key:"toAnnexBNalu",value:function(e){_forEachInstanceProperty(e).call(e,(function(e){var t=e.units;if(t){var r=_reduceInstanceProperty(t).call(t,(function(e,t){return e+4+t.byteLength}),0),n=new Uint8Array(r),o=0;_forEachInstanceProperty(t).call(t,(function(e){n.set([0,0,0,1],o),o+=4,n.set(e,o),o+=e.byteLength})),e.units=null,e.data=n}}))}},{key:"append",value:function(e,t,r){var n;(r&&this.toAnnexBNalu(e),this._caclBaseDts(e[0]),t&&this._updateDuration(e),this._estimateBitRate(e),this._recordKeyframes(e),this.isLive)?this._currentFrameQueue=_concatInstanceProperty(n=this._currentFrameQueue).call(n,e):this._beforeAppendVodBuffer(e)}},{key:"updateSegmentEnd",value:function(e){var t=this._buffers[this._buffers.length-1];t&&(Math.abs(t.end-e)<.5||(t.end=e,t.duartion=e-t.start,logger.log(this.TAG,"video data lack, reset end:",e)))}},{key:"getFrame",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.isLive)return this._currentFrameQueue.shift();if(!(e=this._currentFrameQueue[this._frameIndexInQueue])){if(!(e=this._currentFrameQueue[--this._frameIndexInQueue]))return;if(!this.switchBuffer((e.dts-this._baseDts)/1e3,this._frameIndexInQueue++,t))return;return this.getFrame(++t)}return this._frameIndexInQueue++,e}},{key:"getFramesForPreciseSeek",value:function(e){var t;return _filterInstanceProperty(t=this._currentFrameQueue).call(t,(function(t){return t.dts<=e}))}},{key:"updateFrameIndexForPreciseSeek",value:function(e){this._frameIndexInQueue=e}},{key:"switchBuffer",value:function(e){var t,r,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)>=20)){e=e||this.bufferStart;var a,s,c,l,u,$,d,A=_filterInstanceProperty(t=this._buffers).call(t,(function(t){return t.start<e+TOLERANCE$1&&t.end>=e+TOLERANCE$1}))[0];if(!A){var p,f,h=_findInstanceProperty(p=this._buffers).call(p,(function(t){return t.start>=e}));return h&&h.start-e<MAX_TOLERANCE?(this._currentFrameQueue=_sliceInstanceProperty(f=h.frames).call(f,0),this._frameIndexInQueue=0,h):void 0}if(A.frames[0].dts>=e)return this._currentFrameQueue=_sliceInstanceProperty(a=A.frames).call(a,0),this._frameIndexInQueue=0,logger.log(this.TAG,_concatInstanceProperty(s=_concatInstanceProperty(c="switch video buffer, time:".concat(e," , buffer:[")).call(c,A.start," , ")).call(s,A.end,"], index=0")),A;if(A.frames.length>i)return this._currentFrameQueue=_sliceInstanceProperty(l=A.frames).call(l,0),logger.log(this.TAG,_concatInstanceProperty(u=_concatInstanceProperty($=_concatInstanceProperty(d="switch video buffer, in the same gop and more frame got, time:".concat(e," , buffer:[")).call(d,A.start," , ")).call($,A.end,"], index=")).call(u,i)),A;logger.log(this.TAG,_concatInstanceProperty(r=_concatInstanceProperty(n=_concatInstanceProperty(o="switch video buffer, in the same gop and no more frame got, time:".concat(e," , buffer:[")).call(o,A.start," , ")).call(n,A.end,"], index=")).call(r,i))}}},{key:"getSeekStartPosition",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(_forEachInstanceProperty(t=this._keyframeQueue).call(t,(function(t){t.position<=e&&(r=t)})),r)return e-r.position<n?r:void 0}},{key:"nextFrame",value:function(){return this._currentFrameQueue[0]}},{key:"deletePassed",value:function(e){var t;this._currentFrameQueue=_filterInstanceProperty(t=this._currentFrameQueue).call(t,(function(t){return t.dts>=e}))}},{key:"getDtsOfTime",value:function(e){var t=e-this._lastDuration;return this._baseDts+1e3*t}},{key:"clean",value:function(){this._currentFrameQueue=[]}},{key:"destroy",value:function(){this._currentFrameQueue=[],this._buffers=[]}}]),e}();function _checkClose(e){var t;(null===(t=e.buffer)||void 0===t?void 0:t.close)&&e.buffer.close()}var FrameQueue=function(){function e(t){_classCallCheck$2(this,e),this.TAG="FrameQueue",this._parent=t,this._lastGopId=0,this._frames=[]}return _createClass$2(e,[{key:"currentTimeDts",get:function(){return this._parent.preciseVideoDts}},{key:"length",get:function(){return this._frames.length}},{key:"frames",get:function(){return this._frames}},{key:"append",value:function(e){e.info?this._frames.push(e):_checkClose(e)}},{key:"appendVodFrame",value:function(e){this._frames.push(e)}},{key:"nextFrame",value:function(){var e,t=this._frames.length;1===this._parent.noAudio&&t>3&&(this._frames=_sliceInstanceProperty(e=this._frames).call(e,t-2));return this._frames[0]}},{key:"shift",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this._frames.shift();return this.deletePassed(e),t}},{key:"deletePassed",value:function(e){var t;this._frames=_filterInstanceProperty(t=this._frames).call(t,(function(t){return!!(t.info&&t.info.dts>e)||(_checkClose(t),!1)}))}},{key:"empty",value:function(){var e;_forEachInstanceProperty(e=this._frames).call(e,(function(e){return _checkClose(e)})),this._frames=[]}},{key:"destroy",value:function(){this.empty(),this._lastGopId=0}}]),e}(),createTypedArrayConstructor=typedArrayConstructorExports;createTypedArrayConstructor("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var FrameRenderCache=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_queue",[]),_defineProperty$2(this,"TAG","FrameRenderCache")}return _createClass$2(e,[{key:"cacheCvs",value:function(e){this._queue.push(e),logger.log(this.TAG,"cache canvas!")}},{key:"getCachedCvs",value:function(){var e=this._queue.pop();return e&&logger.log(this.TAG,"get cached canvas!"),e}}]),e}(),frameRenderCache=new FrameRenderCache,FrameRender=function(){function e(t,r){_classCallCheck$2(this,e),this.TAG="FrameRender",this.configs=_Object$assign({},t),this.parent=r,this.canvas=this.configs.canvas,this.canvas.glInstance=this,this.meta=_Object$assign({},this.configs.meta),this.frameRenderCache=frameRenderCache,this._initMeta(),this._initContextGL(),this.contextGL&&(this._initProgram(),this._initBuffers(),this._initTextures())}return _createClass$2(e,[{key:"_initMeta",value:function(){this.chroma=this.meta.chromaFormat,this.height=this.meta.height,this.width=this.meta.width,this.canvas.width===this.meta.width&&this.canvas.height===this.meta.height||(this.canvas.width=this.meta.width,this.canvas.height=this.meta.height,this.parent.emitResizeEvent())}},{key:"_initContextGL",value:function(){if("2d"!==this.configs.type){for(var e=this.canvas,t=null,r=["webgl","experimental-webgl","moz-webgl","webkit-3d"],n=0;!t&&n<r.length;){var o=r[n];try{t=e.getContext(o,this.configs.glCtxOptions),logger.log("FrameRender","use=",o,this.configs.glCtxOptions);break}catch(e){t=null}t&&"function"==typeof t.getParameter||(t=null),++n}this.contextGL=t}else this.ctx=this.canvas.getContext("2d")}},{key:"_initProgram",value:function(){var e=this.contextGL,t=["attribute vec4 vertexPos;","attribute vec4 texturePos;","attribute vec4 uTexturePos;","attribute vec4 vTexturePos;","varying vec2 textureCoord;","varying vec2 uTextureCoord;","varying vec2 vTextureCoord;","void main()","{"," gl_Position = vertexPos;"," textureCoord = texturePos.xy;"," uTextureCoord = uTexturePos.xy;"," vTextureCoord = vTexturePos.xy;","}"].join("\n"),r=["precision highp float;","varying highp vec2 textureCoord;","varying highp vec2 uTextureCoord;","varying highp vec2 vTextureCoord;","uniform sampler2D ySampler;","uniform sampler2D uSampler;","uniform sampler2D vSampler;","uniform mat4 YUV2RGB;","void main(void) {"," highp float y = texture2D(ySampler, textureCoord).r;"," highp float u = texture2D(uSampler, uTextureCoord).r;"," highp float v = texture2D(vSampler, vTextureCoord).r;"," gl_FragColor = vec4(y, u, v, 1) * YUV2RGB;","}"].join("\n"),n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,t),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)||console.log("Vertex shader failed to compile: "+e.getShaderInfoLog(n));var o=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(o,r),e.compileShader(o),e.getShaderParameter(o,e.COMPILE_STATUS)||console.log("Fragment shader failed to compile: "+e.getShaderInfoLog(o));var i=e.createProgram();e.attachShader(i,n),e.attachShader(i,o),e.linkProgram(i),e.getProgramParameter(i,e.LINK_STATUS)||console.log("Program failed to compile: "+e.getProgramInfoLog(i)),e.useProgram(i);var a=e.getUniformLocation(i,"YUV2RGB");e.uniformMatrix4fv(a,!1,[1.16438,0,1.59603,-.87079,1.16438,-.39176,-.81297,.52959,1.16438,2.01723,0,-1.08139,0,0,0,1]),this.shaderProgram=i}},{key:"_initBuffers",value:function(){var e=this.contextGL,t=this.shaderProgram,r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,1,-1,1,1,-1,-1,-1]),e.STATIC_DRAW);var n=e.getAttribLocation(t,"vertexPos");e.enableVertexAttribArray(n),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0);var o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW);var i=e.getAttribLocation(t,"texturePos");e.enableVertexAttribArray(i),e.vertexAttribPointer(i,2,e.FLOAT,!1,0,0),this.texturePosBuffer=o;var a=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW);var s=e.getAttribLocation(t,"uTexturePos");e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),this.uTexturePosBuffer=a;var c=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,c),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW);var l=e.getAttribLocation(t,"vTexturePos");e.enableVertexAttribArray(l),e.vertexAttribPointer(l,2,e.FLOAT,!1,0,0),this.vTexturePosBuffer=c}},{key:"_initTextures",value:function(){var e=this.contextGL,t=this.shaderProgram,r=this._initTexture(),n=e.getUniformLocation(t,"ySampler");e.uniform1i(n,0),this.yTextureRef=r;var o=this._initTexture(),i=e.getUniformLocation(t,"uSampler");e.uniform1i(i,1),this.uTextureRef=o;var a=this._initTexture(),s=e.getUniformLocation(t,"vSampler");e.uniform1i(s,2),this.vTextureRef=a,e.pixelStorei(e.UNPACK_ALIGNMENT,1)}},{key:"_initTexture",value:function(){var e=this.contextGL,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(e.TEXTURE_2D,null),t}},{key:"_drawPictureGL",value:function(e,t,r,n,o){var i=n*r,a=o*r/2;444!==this.chroma&&422!==this.chroma||(a*=2);var s={yData:(e=new Uint8Array(e)).subarray(0,i),uData:e.subarray(i,i+a),vData:e.subarray(i+a,i+a+a)};this._drawPictureGL420(s,t,r,n,o)}},{key:"_drawPictureGL420",value:function(e,t,r,n,o){var i=this.contextGL,a=this.texturePosBuffer,s=this.uTexturePosBuffer,c=this.vTexturePosBuffer,l=this.yTextureRef,u=this.uTextureRef,$=this.vTextureRef,d=e.yData,A=e.uData,p=e.vData,f=n,h=r,y=o,_=r/2;422!==this.chroma&&444!==this.chroma||(_=r);var g=o,m=_,E=this.canvas.width/this.width,b=this.canvas.height/this.height,I=0,v=0,S=this.canvas.width,T=this.canvas.height;E<b?(T=this.height*this.canvas.width/this.width,v=_parseInt$1((this.canvas.height-this.height*this.canvas.width/this.width)/2)):(S=this.width*this.canvas.height/this.height,I=_parseInt$1((this.canvas.width-this.width*this.canvas.height/this.height)/2)),i.viewport(I,v,S,T);var O=new Float32Array([1,0,0,0,1,1,0,1]);i.bindBuffer(i.ARRAY_BUFFER,a),i.bufferData(i.ARRAY_BUFFER,O,i.DYNAMIC_DRAW);var R=new Float32Array([1,0,0,0,1,1,0,1]);i.bindBuffer(i.ARRAY_BUFFER,s),i.bufferData(i.ARRAY_BUFFER,R,i.DYNAMIC_DRAW);var P=new Float32Array([1,0,0,0,1,1,0,1]);i.bindBuffer(i.ARRAY_BUFFER,c),i.bufferData(i.ARRAY_BUFFER,P,i.DYNAMIC_DRAW),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,l),i.texImage2D(i.TEXTURE_2D,0,i.LUMINANCE,f,h,0,i.LUMINANCE,i.UNSIGNED_BYTE,d),i.activeTexture(i.TEXTURE1),i.bindTexture(i.TEXTURE_2D,u),i.texImage2D(i.TEXTURE_2D,0,i.LUMINANCE,y,_,0,i.LUMINANCE,i.UNSIGNED_BYTE,A),i.activeTexture(i.TEXTURE2),i.bindTexture(i.TEXTURE_2D,$),i.texImage2D(i.TEXTURE_2D,0,i.LUMINANCE,g,m,0,i.LUMINANCE,i.UNSIGNED_BYTE,p),i.drawArrays(i.TRIANGLE_STRIP,0,4)}},{key:"_drawPicture2d",value:function(e){if(e&&this.canvas){this.ctx||(this.ctx=this.canvas.getContext("2d"));var t=e.displayWidth||e.width,r=e.displayHeight||e.height;this.canvas.height===r&&this.canvas.width===t||(this.canvas.height=r,this.canvas.width=t);try{this.ctx.drawImage(e.dom||e,0,0,t,r)}catch(t){console.error(this.TAG,"_drawPicture2d",e,e.dom,t,t.message)}}}},{key:"_resize",value:function(e,t){this.width===e&&this.height===t||(this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.parent.emitResizeEvent())}},{key:"render",value:function(e,t,r,n,o){this._resize(t,r),this.contextGL?this._drawPictureGL(e,t,r,n,o):this._drawPicture2d(e)}},{key:"resetMeta",value:function(e){this.meta=_Object$assign({},e)}},{key:"updateBind",value:function(e,t){this.parent=e,this.resetMeta(t)}},{key:"destroy",value:function(e){this.parent=null,this.canvas.style.display="none",e&&(this.contextGL&&this.contextGL.clear(this.contextGL.DEPTH_BUFFER_BIT|this.contextGL.COLOR_BUFFER_BIT),frameRenderCache.cacheCvs(this.canvas))}}]),e}(),MAX_QUEUE_LENGTH=5,DecodeEstimate=function(){function e(t){_classCallCheck$2(this,e),_defineProperty$2(this,"_lowDecodeThreshold",getDecodeCapacaity().lowDecodeThreshold/MAX_QUEUE_LENGTH),this.TAG="DecodeEstimate",this._needEstimate=!0,this._parent=t,this._lastDecodeDot=0,this._lastDecodeCost=0,this._lastFrameDts=0,this._dtsDeltas=[],this._decodeCosts=[],this._lowDecodeQueue=[],this._fps=0,this._decodeFps=0,this._gopLength=0,this._webcodec=!1}return _createClass$2(e,[{key:"fps",get:function(){return this._fps}},{key:"decodeFps",get:function(){return this._decodeFps}},{key:"decodeCost",get:function(){return this._lastDecodeCost}},{key:"gopLength",get:function(){return this._gopLength}},{key:"webcodec",set:function(e){this._webcodec=e}},{key:"updateGopCount",value:function(){this._gopLength++}},{key:"needEstimateFps",value:function(){this._needEstimate=!0}},{key:"addDecodeInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dts:0};this._estimateDecodeFps(e),this._estimateFps(e)}},{key:"resetDecodeDot",value:function(e){this._lastDecodeDot=e||0}},{key:"reset",value:function(){this._decodeCosts=[],this._lowDecodeQueue=[]}},{key:"_estimateFps",value:function(e){if(this._needEstimate)if(this._lastFrameDts){var t=e.dts-this._lastFrameDts;if(this._lastFrameDts=e.dts,!(Math.abs(t)>200)){this._dtsDeltas.push(t);var r=this._dtsDeltas.length;r<MAX_QUEUE_LENGTH||(this._fps=Math.ceil(1e3/this._avg(this._dtsDeltas,r)),logger.log(this.TAG,"estimate fps:",this._fps),this._needEstimate=!1)}}else this._lastFrameDts=e.dts}},{key:"_estimateDecodeFps",value:function(e){if(this._lastDecodeDot){var t=performance.now(),r=t-this._lastDecodeDot;this._lastDecodeDot=t,e.cost=r,this._lastDecodeCost=r,this._decodeCosts.push(r);var n=this._decodeCosts.length;if(!(n<MAX_QUEUE_LENGTH)){var o=this._avg(this._decodeCosts,n);this._decodeFps=Math.floor(1e3/o),this._decodeCosts=[],this._lowDecodeDetect()}}else this._lastDecodeDot=performance.now()}},{key:"_avg",value:function(e,t){var r=_reduceInstanceProperty(e).call(e,(function(e,t){return e+=t}),0);return Math.floor(r/t)||1}},{key:"_lowDecodeDetect",value:function(){this._decodeFps?(this._decodeFps<this._fps*this._parent.playbackRate+(this.webcodec?0:3)?this._lowDecodeQueue.push(this._decodeFps):this._lowDecodeQueue.pop(),this._lowDecodeQueue.length>this._lowDecodeThreshold&&(this._lowDecodeQueue=[],logger.log(this.TAG,"解码效率过低,应该降级"),this._parent.emit(Events.VIDEO.DECODE_LOW_FPS))):this._parent.emit(Events.VIDEO.DECODE_LOW_FPS)}}]),e}(),shell="\n var timer;\n\n function initTimer (interval) {\n destroy()\n clearInterval(timer);\n timer = setInterval(() => {\n self.postMessage({type: 'NEXT_TICK'});\n }, interval)\n }\n\n function destroy () {\n clearInterval(timer);\n }\n\n self.onmessage = function (e) {\n var {type,interval} = e.data;\n switch (type) {\n case 'START':\n initTimer(interval);\n break;\n case 'DESTROY':\n destroy();\n break;\n }\n }\n",timerWorkerCache=[],TickTimer=function(){function e(t){var r=this;_classCallCheck$2(this,e),_defineProperty$2(this,"_doTask",(function(){var e;null===(e=r._task)||void 0===e||e.call(r)})),this._task=t;var n=new Blob([shell],{type:"application/javascript"});this._worker=timerWorkerCache.pop()||new Worker(_URL.createObjectURL(n)),this._bindEvent()}return _createClass$2(e,[{key:"_bindEvent",value:function(){this._worker.addEventListener("message",this._doTask)}},{key:"start",value:function(e){(e=_parseInt$1(e))<10&&(e=10),e>60?e=60:e>25&&(e=25),this._worker.postMessage({type:"START",interval:e})}},{key:"stop",value:function(){this._worker.postMessage({type:"DESTROY"})}},{key:"destroy",value:function(){this._worker&&(this._worker.postMessage({type:"DESTROY"}),this._worker.removeEventListener("message",this._doTask),timerWorkerCache.push(this._worker),logger.log("TickTimer","unbind timer event"),this._worker=null,this._task=null)}}]),e}(),HAVE_NOTHING=0,HAVE_METADATA=1,HAVE_CURRENT_DATA=2,HAVE_FUTURE_DATA=3,HAVE_ENOUGH_DATA=4,MEDIA_ERR_DECODE=3,VideoBaseRender=function(e){_inherits$1(r,BaseRender);var t=_createSuper$1(r);function r(e,n){var o,i;return _classCallCheck$2(this,r),(i=t.call(this,e,n))._timeRange=new VideoTimeRange(_assertThisInitialized$1(i)),i._decodeEstimate=new DecodeEstimate(_assertThisInitialized$1(i)),i._frameQueue=new FrameQueue(_assertThisInitialized$1(i)),i._lastTimeupdate=0,i._renderCost=0,i._canAutoPlay=!0,i._videoDecode=!1,i._inSeeking=!1,i._frameRender=null,i._configuration=null,i._render=_bindInstanceProperty(o=i._render).call(o,_assertThisInitialized$1(i)),i._tickTimer=new TickTimer(i._render),i._initCanvas(e),i._bindEvents(),i}return _createClass$2(r,[{key:"canAutoPlay",get:function(){return this._canAutoPlay}},{key:"canvas",get:function(){return this._canvas}},{key:"timescale",get:function(){return 1e3}},{key:"fps",get:function(){return this._decodeEstimate.fps||this._meta&&this._meta.fpsNum/this._meta.fpsDen||24}},{key:"decodeFps",get:function(){return this._decodeEstimate.decodeFps}},{key:"decodeCost",get:function(){return this._decodeEstimate.decodeCost}},{key:"renderCost",get:function(){return this._renderCost}},{key:"totalSize",get:function(){return this._timeRange.totalSize}},{key:"bitrate",get:function(){return this._timeRange.bitrate},set:function(e){this._timeRange.bitrate=e}},{key:"gopLength",get:function(){return this._decodeEstimate.gopLength}},{key:"is540p",get:function(){return this._canvas.height<720}},{key:"buffered",get:function(){return this._timeRange.buffered}},{key:"inSeeking",get:function(){return this._inSeeking}},{key:"interval",get:function(){return Math.floor(1e3/this.fps/this.playbackRate)}},{key:"playbackRate",get:function(){return this._playbackRate||1}},{key:"baseDts",get:function(){return this._timeRange.baseDts}},{key:"currentTime",get:function(){return this._timeRange.getCurrentTime(this.preciseVideoDts)}},{key:"timelinePosition",get:function(){return this._parent.timelinePosition}},{key:"lastTimelinePosition",get:function(){return this._lastTimelinePosition||0},set:function(e){this._lastTimelinePosition=e}},{key:"audioSyncDts",get:function(){return this._audioDts||this.baseDts},set:function(e){this._audioDts=e}},{key:"preciseVideoDts",get:function(){return this.audioSyncDts+Math.floor(1e3*(this.timelinePosition-this.lastTimelinePosition))}},{key:"readyState",get:function(){var e=this._frameQueue.length||(this.currentTime?1:0);return e?e>=8?HAVE_ENOUGH_DATA:e>=4?HAVE_FUTURE_DATA:e>=2?HAVE_CURRENT_DATA:HAVE_METADATA:HAVE_NOTHING}},{key:"isHevc",get:function(){return!("hev1.1.6.L93.B0"!==(this._meta||{}).codec)}},{key:"videoDecode",get:function(){return this._videoDecode}},{key:"decoderMode",get:function(){var e;return null===(e=this._decodeController)||void 0===e?void 0:e.decoderMode}},{key:"configuration",get:function(){var e,t;return this._configuration||(this._configuration=this._meta.configuration||getAvcc(null===(e=this._meta)||void 0===e?void 0:e.sps[0],null===(t=this._meta)||void 0===t?void 0:t.pps[0])),this._configuration},set:function(e){this._configuration=e.configuration||getAvcc(e.sps[0],e.pps[0])}},{key:"setSeekingStatus",value:function(e){this._inSeeking=e}},{key:"getDtsOfTime",value:function(e){return this._timeRange.getDtsOfTime(e)}},{key:"updateReady",value:function(){this._whenReady()}},{key:"forceRender",value:function(){this._render(!0)}},{key:"getSeekStartPosition",value:function(e,t){return this._timeRange.getSeekStartPosition(e,t)}},{key:"canSeek",value:function(){throw new Error("need override by children")}},{key:"emitResizeEvent",value:function(){null==this||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.RESIZE)}},{key:"_assembleErr",value:function(e,t){var r=new Error(e);return r.code=MEDIA_ERR_DECODE,r.subCode=t,r}},{key:"_emitTimelineEvents",value:function(e,t,r){var n;null===(n=this._parent)||void 0===n||n.emit(e,t,r)}},{key:"_initCanvas",value:function(e){e.canvas?this._canvas=e.canvas:this._canvas=frameRenderCache.getCachedCvs()||document.createElement("canvas"),this._canvas.style.margin="auto",this._canvas.style.position="absolute",this._canvas.style.pointerEvents="none"}},{key:"_bindEvents",value:function(){var e,t,n=this;_get(_getPrototypeOf$1(r.prototype),"_bindEvents",this).call(this);var o=function(e){var t,r,o,i,a,s,c,l,u=e.width,$=e.height,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,p=n._canvas,f=p.width,h=p.height,y=$*f/h,_=u*h/f,g=u-y,m=$-_,E=g*d+"px",b=m*A+"px";n._canvas.style.left=E,n._canvas.style.top=b,logger.warn(n.TAG,_concatInstanceProperty(t=_concatInstanceProperty(r=_concatInstanceProperty(o="cvsWidth=".concat(f,", cvsHeight=")).call(o,h,", scaleCvsWidth=")).call(r,y,", scaleCvsHeight=")).call(t,_)),logger.warn(n.TAG,_concatInstanceProperty(i=_concatInstanceProperty(a=_concatInstanceProperty(s=_concatInstanceProperty(c=_concatInstanceProperty(l="cover position: deltaX=".concat(g,", deltaY=")).call(l,m,", width=")).call(c,u,", height=")).call(s,$,", pX=")).call(a,E,", pY=")).call(i,b))};this._parent.on(Events.VIDEO.UPDATE_VIDEO_FILLTYPE,(function(e,t){var r=t.width,i=t.height,a=n._canvas,s=a.width,c=a.height,l=!r||r/i>s/c;if(logger.warn(n.TAG,"UPDATE_VIDEO_FILLTYPE isGapX =",l,"type =",e,s,c,r,i),n._canvas.style.maxWidth="initial",n._canvas.style.maxHeight="initial","cover"===e)return l?(n._canvas.style.left=0,n._canvas.style.top=0,n._canvas.style.height="auto",n._canvas.style.width="100%",void o({width:r,height:i},0,.5)):(n._canvas.style.left=0,n._canvas.style.top=0,n._canvas.style.width="auto",n._canvas.style.height="100%",void o({width:r,height:i},.5,0));if("fill"===e)return n._canvas.style.width="100%",void(n._canvas.style.height="100%");(n._canvas.style.top=0,n._canvas.style.bottom=0,n._canvas.style.left=0,n._canvas.style.right=0,n._canvas.style.maxWidth="100%",n._canvas.style.maxHeight="100%",n._canvas.style.width="initial",n._canvas.style.height="initial",s<r&&c<i)&&(s/r>c/i?n._canvas.style.width="100%":n._canvas.style.height="100%")})),this._parent.on(Events.VIDEO.UPDATE_VIDEO_COVER_POSITION,o),this._parent.on(Events.TIMELINE.SYNC_DTS,(function(e){var t,r=n._frameQueue.nextFrame(),o=r&&r.info&&r.info.dts;if(n.lastTimelinePosition=n.timelinePosition,n.noAudio){var i=n._timeRange.nextFrame();e=e||o||i&&i.dts||0}if(n.audioSyncDts=e,o&&o-e>500&&n._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LARGE_AV_GAP,{aDts:e,vDts:o,frameLength:n._frameQueue.length,currentTime:n._parent.currentTime,duration:n._parent.duration}),logger.log(n.TAG,"audio current buffer play finish, next buffer dts=",e,"currentTime:",n._parent.currentTime,"preciseVideoDts:",n.preciseVideoDts,"next video frame dts:",o,"frame length:",n._frameQueue.length),!(n._isLive||null!==(t=n._parent)&&void 0!==t&&t.seeking)){var a=n._timeRange.nextFrame();if(a){var s=(a.dts-a.baseDts)/1e3;n._parent.currentTime-s>1&&(logger.warn(n.TAG,"丢帧!"),n.ajustSeekTime(n._parent.currentTime))}}})),this._parent.on(Events.TIMELINE.UPDATE_GL_OPTIONS,(function(e){n._config.glCtxOptions=e})),this._parent.on(Events.TIMELINE.UPDATE_SEGMENT_END,_bindInstanceProperty(e=this._updateSegmentEnd).call(e,this)),this.on(Events.VIDEO.AUTO_RUN,_bindInstanceProperty(t=this._startRender).call(t,this)),this._parent.on(Events.TIMELINE.SET_PLAYBACKRATE,(function(e){n._playbackRate=e,n._startRender()}))}},{key:"ajustSeekTime",value:function(){throw new Error("need override by children")}},{key:"_resetDts",value:function(e,t){"audio"!==t&&this._timeRange.resetDts(e)}},{key:"_setMetadata",value:function(e,t){if("audio"!==e){logger.warn(this.TAG,"video set metadata"),this._meta=t;var r=t&&t.frameRate&&t.frameRate.fps;r?logger.log(this.TAG,"detect fps:",r):logger.warn(this.TAG,"no detect fps,start estimate"),this._initDecoder()}}},{key:"_initDecoder",value:function(){throw new Error("need override by children")}},{key:"_whenDecoderReady",value:function(){throw new Error("need override by children")}},{key:"_appendChunk",value:function(){throw new Error("need override by children")}},{key:"_startDecode",value:function(){throw new Error("need override by children")}},{key:"_receiveFrame",value:function(e,t){if(this._parent&&this._timeRange){var r=e.info||{};if(this._decodeEstimate.addDecodeInfo(r),!this._isLive&&((r.output||r.keyframe)&&(this.setSeekingStatus(!1),logger.warn(this.TAG,"set seeking status=",!1)),this.inSeeking))return logger.log(this.TAG,"drop frame"),void _checkClose(e);this._isLive?this._frameQueue.append(e):this._frameQueue.appendVodFrame(e),t&&t(),this._ready||this.readyState>=HAVE_METADATA&&this._whenReady()}}},{key:"_startRender",value:function(){logger.log(this.TAG,"start render"),this._tickTimer.start(this.interval)}},{key:"_render",value:function(){throw new Error("need override by children")}},{key:"_updateSegmentEnd",value:function(){throw new Error("need override by children")}},{key:"_whenReady",value:function(){this._ready=!0,this.emit(Events.VIDEO.VIDEO_READY),this.noAudio&&this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PLAYING)}},{key:"_doPlay",value:function(){this._tickTimer.start()}},{key:"_doPause",value:function(){this._tickTimer.stop()}},{key:"_doSeek",value:function(){this._ready=!1,this._frameQueue.destroy()}},{key:"_doChaseFrame",value:function(){throw new Error("need override by children")}},{key:"destroy",value:function(e){var t,r,n,o;null===(t=this._tickTimer)||void 0===t||t.destroy(),null===(r=this._timeRange)||void 0===r||r.destroy(),null===(n=this._frameQueue)||void 0===n||n.destroy(),null===(o=this._frameRender)||void 0===o||o.destroy(e),this._tickTimer=null,this._canvas=null,this._timeRange=null,this._frameQueue=null,this._frameRender=null,this._decodeEstimate=null,this._parent=null,this.removeAllListeners()}}]),r}(),DEFAULT_PLAYBACKRATE=2,CANVAS_COUNT=45,FRAME_DURATION=25,MAX_VIDEO_HEIGHT=720,MAX_FPS=30,MIN_FPS=15,VideoDecoder=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e){var n;return _classCallCheck$2(this,r),(n=t.call(this)).TAG="VideoDecoder",n._video=n._createVideo(),n._IsInDecoding=!1,n._fps=0,n._framId=null,n._screenShotNum=0,n._allPicNum=0,n._currentBlob=null,n._basePTS=0,n._totleTime=0,n._isVideoONRun=!0,n.firstEmit=!1,n.ptsArray=[],n._currentCanvasHeight=0,n._canvasList=[],n._realFrameDuration=FRAME_DURATION,n._maxVideoHeight=e.maxVideoHeight||MAX_VIDEO_HEIGHT,n._minFPSTime=0,n._maxFPSTime=0,n._playFailed=!1,n._isPhoneSafari=!1,n._createCanvasList(),n._bindEvents(),n}return _createClass$2(r,[{key:"_createCanvasList",value:function(){this._canvas=document.createElement("canvas"),this._ctx=this._canvas.getContext("2d",{alpha:!1});for(var e=0;e<CANVAS_COUNT;e++){var t=this._createCanvas(),r=t.dom,n=t.ctx;this._canvasList.push({dom:r,ctx:n})}}},{key:"_createCanvas",value:function(){var e=document.createElement("canvas"),t=e.getContext("2d");return{dom:e,ctx:t}}},{key:"_createVideo",value:function(){var e=document.createElement("video");return e.setAttribute("muted",!0),e.setAttribute("autoplay",!0),e.setAttribute("controls",!0),e.setAttribute("webkit-playsinline",!0),e.setAttribute("playsinline",!0),e.setAttribute("x5-video-player-type","h5"),e.setAttribute("x5-video-player-type","h5-page"),e.style.position="absolute",e}},{key:"_initVideo",value:function(e,t){if(e.blobUrl&&void 0!==e.dts){var r=e.blobUrl;this._currentBlob=r,this._basePTS=e.dts,this._currentDuration=e.duration;try{logger.log(this.TAG,"_initVideo, basePTS:",e.dts),this._setVideoSrc(r,t),this._video.paused&&this._videoPlay("_initVideo")}catch(e){console.error(this.TAG,"_initVideo, load error",e)}}else console.error(this.TAG,"_initVideo","input info is error, blobUrl:",e.blobUrl,"dts:",e.dts)}},{key:"_setVideoSrc",value:function(e,t){try{var r=this._video;r.src=e,r.load(),r.playbackRate=DEFAULT_PLAYBACKRATE}catch(e){console.error(this.TAG,"_setVideoSrc",e)}}},{key:"_videoPlay",value:function(e){var t=this,r=this._video;if(logger.log(this.TAG,"_videoPlay, video is pause:",r.paused,e),r&&r.paused){var n=r.play();void 0!==n&&n.then((function(){t._playFailed=!1,logger.log(t.TAG,"_videoPlay success")})).catch((function(e){console.error(t.TAG,"_videoPlay failed,",e.message),t._playFailed=!0,t.emit(Events.DECODE_EVENTS.PLAY_FAILED,t.firstEmit)}))}}},{key:"_removeEvents",value:function(){var e,t,r,n,o,i=this._video;i.removeEventListener("playing",_bindInstanceProperty(e=this._onPlaying).call(e,this)),i.removeEventListener("ended",_bindInstanceProperty(t=this._onEnded).call(t,this)),i.removeEventListener("error",_bindInstanceProperty(r=this._onError).call(r,this)),i.removeEventListener("loadeddata",_bindInstanceProperty(n=this._onLoadeddata).call(n,this)),i.removeEventListener("timeupdate",_bindInstanceProperty(o=this._onTimeUpdate).call(o,this))}},{key:"_bindEvents",value:function(){var e,t,r,n,o,i,a,s=this,c=this._video;c?(document.addEventListener("visibilitychange",_bindInstanceProperty(e=this._onVisibilityChange).call(e,this)),c.addEventListener("playing",_bindInstanceProperty(t=this._onPlaying).call(t,this)),c.addEventListener("ended",_bindInstanceProperty(r=this._onEnded).call(r,this)),c.addEventListener("error",_bindInstanceProperty(n=this._onError).call(n,this)),c.addEventListener("loadeddata",_bindInstanceProperty(o=this._onLoadeddata).call(o,this)),c.addEventListener("timeupdate",_bindInstanceProperty(i=this._onTimeUpdate).call(i,this)),c.addEventListener("pause",(function(){logger.log("on pause, currentTime, duration:",s._vCurrentTime,s._vDuration)})),this.on("outputresolutionchange",_bindInstanceProperty(a=this._onChange).call(a,this)),this.on("fpsreduce",(function(e){s._adaptFrameDuration(e)}))):console.error(this.TAG,"_bindEvents")}},{key:"_onTimeUpdate",value:function(){this._lastCurrentTime=this._vCurrentTime}},{key:"_onVisibilityChange",value:function(){this._isVideoONRun="visible"===document.visibilityState}},{key:"_onChange",value:function(e,t){this._width=e,this._height=t}},{key:"_onPlaying",value:function(){this._IsInDecoding&&(console.warn(this.TAG,"_onPlaying","last video not correct end"),this._framId&&(window.cancelAnimationFrame(this._framId),this._framId=null)),logger.log(this.TAG,"_onPlaying, video duration:",this._vDuration,"currentTime:",this._vCurrentTime,"_lastPts:",this._lastPts),this._isInDecoding=!0,this._lastCurrentTime=this._vCurrentTime,this.ptsArray=[],this.playingTime||(this.playingTime=!0),this._getFrame()}},{key:"_onEnded",value:function(e,t){logger.log(this.TAG,"_onEnded","current fmp4 duration is:",this._vDuration,"_isInDecoding:",this._isInDecoding,"_lastPts:",this._lastPts,"_realFrameDuration:",this._realFrameDuration,"from:",t),this._isInDecoding&&(this._isInDecoding=!1,this._lastMp4Duration=Math.min(this._vDuration,this._vCurrentTime),this._framId&&(logger.log(this.TAG,"_onEnded","cancelAnimationFrame"),window.cancelAnimationFrame(this._framId),this._framId=null),this._decodeFPS=_parseInt$1(this._screenShotNum/(this._vDuration/1e3)),this.emit("fps",this._screenShotNum,this._totleTime,this._vDuration,this._metaFPS,{height:this._currentCanvasHeight,relHeight:this._video.videoHeight}),logger.log("_timePerFrame",this._totleTime/this._screenShotNum),this._timePerFrame=this._totleTime/this._screenShotNum,this._screenShotNum=0,this._allPicNum=0,this._totleTime=0,this._currentBlob&&(_URL.revokeObjectURL(this._currentBlob),this._currentBlob=null,this._basePTS=0),this.emit(Events.DECODE_EVENTS.FRAGMENT_END,this._decodeFPS,this._video.duration))}},{key:"_onError",value:function(){this._isInDecoding=!1;var e=this._video;console.error("video error:",e.error.code,e.error.message),this.emit("error",e.error,this.firstEmit)}},{key:"_onLoadeddata",value:function(){var e=this,t=this._video;t.currentTime=.001,this.firstEmit||(this._playFailed?(t.style.visibility="hidden",this.emit(Events.DECODE_EVENTS.APPEND_VIDEO,t),_setTimeout((function(){logger.log(e.TAG,"onloadeddata, setTimeout firstEmit:",e.firstEmit),e._getFirstFrame()}),40)):(logger.log(this.TAG,"onloadeddata, firstEmit:",this.firstEmit),this._getFirstFrame()))}},{key:"_getFirstFrame",value:function(){this.firstTime=_Date$now();var e=this._vCurrentTime,t=this._basePTS+e,r=this._getImageData(t).imageData;this.firstEmit=!0,this.emit(Events.DECODE_EVENTS.FIRST_FRAME,r,t)}},{key:"_getFrame",value:function(){var e,t=this._video,r=t.videoWidth,n=t.videoHeight;if(this._allPicNum++,this._isInDecoding){if(r||n){var o,i,a,s=this._vCurrentTime,c=this._basePTS+s;if(this.ptsArray.push(c),this._lastCurrentTime&&this._lastCurrentTime===this._vDuration&&(logger.log(this.TAG,"_getFrame, video ended, lastCurrentTime",this._lastCurrentTime,"duration:",this._vDuration,"isInDecoding:",this._isInDecoding),this._onEnded(null,"getFrame")),this._lastPts)if(c<=this._lastPts)return void(this._framId=window.requestAnimationFrame(_bindInstanceProperty(i=this._getFrame).call(i,this)));if(this._lastPts&&c-this._lastPts<this._realFrameDuration)return void(this._framId=window.requestAnimationFrame(_bindInstanceProperty(a=this._getFrame).call(a,this)));this._screenShotNum++;var l,u=null,$=_Date$now();try{u=(l=this._getImageData(c)).imageData}catch(e){console.error(e,l,this._canvasList.length)}this._lastPts=c;var d=_Date$now()-$;return this._totleTime+=d,this.emit(Events.DECODE_EVENTS.DECODED,u,c),void(this._framId=window.requestAnimationFrame(_bindInstanceProperty(o=this._getFrame).call(o,this)))}this._framId=window.requestAnimationFrame(_bindInstanceProperty(e=this._getFrame).call(e,this))}else this._framId&&(window.cancelAnimationFrame(this._framId),this._framId=null)}},{key:"_getImageData",value:function(){var e,t=this._video,r=t.videoWidth,n=t.videoHeight,o=r,i=n;this._width&&this._height&&(o=this._width,i=this._height),i>this._maxVideoHeight&&(i=this._maxVideoHeight,o=_parseInt$1(i*(r/n))),(e=this._canvasList.shift())||(console.warn(this.TAG,"_getImageData, _canvansList length is 0"),e=this._createCanvas()),e.width=o,e.height=i;var a=e.dom,s=e.ctx;if(this._currentCanvasHeight=i,!a)return{imageData:e};a.width!==o&&(a.width=o,a.height=i);try{n&&r&&o&&i&&s.drawImage(t,0,0,r,n,0,0,o,i)}catch(e){console.error(this.TAG,"_getImageData, drawImage:",e)}return{imageData:e}}},{key:"_adaptFrameDuration",value:function(e){e<MIN_FPS?this._minFPSTime++:this._minFPSTime=0,e>MAX_FPS?this._maxFPSTime++:this._maxFPSTime=0,this._minFPSTime>0&&this._decodeFPS<MIN_FPS&&(this._realFrameDuration-=this._timePerFrame,this._realFrameDuration<15&&(this._realFrameDuration=15),this._minFPSTime=0),this._maxFPSTime>0&&this._decodeFPS>MAX_FPS&&(this._realFrameDuration+=this._timePerFrame,this._maxFPSTime=0)}},{key:"_vDuration",get:function(){return _parseInt$1(1e3*this._video.duration)}},{key:"_vCurrentTime",get:function(){return _parseInt$1(1e3*this._video.currentTime)}},{key:"_reset",value:function(){this._isInDecoding=!1,this._lastPts=0,this._screenShotNum=0,this._allPicNum=0,this._totleTime=0}},{key:"reStartDecode",value:function(){this._video.pause(),this._reset();var e=this._currentBlob,t=this._basePTS;this._framId&&(window.cancelAnimationFrame(this._framId),this._framId=null),this._initVideo({blobUrl:e,dts:t})}},{key:"doSeek",value:function(e){if(this._isInDecoding){if(e<=0)return;var t=this._vCurrentTime/1e3+e>=this._vDuration/1e3?this._vDuration/1e3:this._vCurrentTime/1e3+1;console.error("doSeek",t),this._video.currentTime=t}}},{key:"pause",value:function(){this._isInDecoding&&this._video.pause()}},{key:"play",value:function(){if(this._isInDecoding&&this._video.paused)return logger.log("video play",this._vCurrentTime),this._video.play()}},{key:"startDecode",value:function(e,t,r){this._initVideo(e,r),this._metaFPS=t}},{key:"stopDecode",value:function(){this._video.paused||(this._video.pause(),this._reset())}},{key:"canPlayType",value:function(e){return this._video.canPlayType(e)}},{key:"destroy",value:function(){this._isInDecoding=!1,window.cancelAnimationFrame(this._framId),this._video.pause(),this._removeEvents()}},{key:"videoWidth",get:function(){return this._video?this._video.videoWidth:0}},{key:"videoHeight",get:function(){return this._video?this._video.videoHeight:0}}]),r}(),MAX_FRAMESIZE=40,MIN_FRAMESIZE=25,DEFAULT_FPS=20,LEVELS=[{base:720,level:1},{base:540,level:2},{base:360,level:3},{base:280,level:4}],VideoDecoderController=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e,n){var o,i;return _classCallCheck$2(this,r),(i=t.call(this)).TAG="VideoDecoderController",i._decoder=new VideoDecoder(e),i._remux=new MP4Remuxer,i._bindEvents(),i._isInit=!1,i._isDataReady=!1,i._ready=!1,i._blobURLList=[],i._isInDecoding=!1,i._mediaSegmentReady=!1,i._parent=n,i._isDecodePause=!1,i._playSuccess=!0,i._isVideoOnRun=!0,i._startDts=0,i._fDuration=0,i._minFPSTime=0,i._lastPts=0,i._frameLengthPerFragment=0,i._gopBufferLength=0,i._maxGopDuration=0,i._minGopDuration=0,i._currentLevel=-1,i._endLevel=e.endLevel||2,i.currentFragmentDuration=0,i._handleKeyFrameVideo=_bindInstanceProperty(o=i._handleKeyFrameVideo).call(o,_assertThisInitialized$1(i)),i}return _createClass$2(r,[{key:"_bindEvents",value:function(){var e,t,r,n,o,i,a,s=this;document.addEventListener("visibilitychange",_bindInstanceProperty(e=this._onVisibilityChange).call(e,this)),this._decoder.on(Events.DECODE_EVENTS.APPEND_VIDEO,_bindInstanceProperty(t=this._onAppendVideo).call(t,this)),this._decoder.on(Events.DECODE_EVENTS.PLAY_FAILED,_bindInstanceProperty(r=this._onPlayFailed).call(r,this)),this._decoder.on("error",_bindInstanceProperty(n=this._onError).call(n,this)),this._decoder.on(Events.DECODE_EVENTS.DECODED,_bindInstanceProperty(o=this._onDecoded).call(o,this)),this._decoder.on(Events.DECODE_EVENTS.FIRST_FRAME,_bindInstanceProperty(i=this._onFirstFrame).call(i,this)),this._decoder.on(Events.DECODE_EVENTS.FRAGMENT_END,_bindInstanceProperty(a=this._onFragmentEnd).call(a,this)),this._decoder.on("fps",(function(){for(var e,t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=_concatInstanceProperty(e=[s._metaFPS]).call(e,n,[s._frameLengthPerFragment]);s.emit.apply(s,_concatInstanceProperty(t=["fps"]).call(t,_toConsumableArray$1(i)))})),this.on("keyFrame",this._handleKeyFrameVideo)}},{key:"_onRemuxed",value:function(e){var t={blobUrl:this._createBlobURL(e),dts:this.currentFragmentDts,duration:this.currentFragmentDuration,frameDuration:Math.floor(1e3/this._metaFPS)};this._recordGopDuration(this.currentFragmentDuration),this._pushBlob(t),logger.log(this.TAG,"_onRemuxed","maxgopduration:",this._maxGopDuration,"_gopBufferLength:",this._gopBufferLength),!this._isDataReady&&this._gopBufferLength>=this._maxGopDuration&&this._checkDataReady()}},{key:"_onPlayFailed",value:function(e){this._isInDecoding=!1,this._parent.emit(Events.DECODE_EVENTS.PLAY_FAILED,e)}},{key:"_onAppendVideo",value:function(e){this._parent.emit(Events.DECODE_EVENTS.APPEND_VIDEO,e)}},{key:"_onVisibilityChange",value:function(){this._isVideoOnRun="visible"===document.visibilityState}},{key:"_onDecoded",value:function(e,t){this._frameLengthPerFragment++;var r=this._buildFrameInfo(e,t);this._parent.emit(Events.DECODE_EVENTS.DECODED,r),this._lastPts=t}},{key:"_onFirstFrame",value:function(e,t){var r=this._buildFrameInfo(e,t);this._parent.emit(Events.DECODE_EVENTS.FIRST_FRAME,r)}},{key:"_onFragmentEnd",value:function(e,t){var r=this;logger.log(this.TAG,"_onFragmentEnd ,_isDecodePause:",this._isDecodePause,"decodeFPS:",e),e&&this._reduceResolution(e),this._isInDecoding=!1,this._inDecodeId=-1,this._currentInfo=null,this._frameLengthPerFragment=0,this._getBlobLength()&&!this._isDecodePause?this.startDecode():this.loadNextHandle=_setInterval((function(){r._getBlobLength()&&!r._isDecodePause&&r._isVideoOnRun&&!r._isInDecoding&&(logger.log(r.TAG,"_onFragmentEnd, setInterval start next mp4 decode"),r.startDecode(),clearInterval(r.loadNextHandle))}))}},{key:"_onError",value:function(e,t){this._isInDecoding=!1,this._parent.emit("error",e,t)}},{key:"_checkReady",value:function(){this._isDataReady&&this._isInit&&(this.ready=!0,logger.log(this.TAG,"checkReady trigger ready"),this._parent.emit(Events.DECODE_EVENTS.READY))}},{key:"_checkDataReady",value:function(){this._isDataReady=!0,this._checkReady()}},{key:"_reduceResolution",value:function(e){if(logger.log(this.TAG,"_reduceResolution","currentLevel:",this._currentLevel,"endLevel:",this._endLevel),this._videoHeight>720&&(logger.log(this.TAG,"_reduceResolution","trigger DECODE_LOW_FPS"),this._parent.emit(Events.VIDEO.DECODE_LOW_FPS)),e&&e<DEFAULT_FPS?(this._minFPSTime++,this._decoder.emit("fpsreduce",e)):this._minFPSTime=0,this._currentLevel>=this._endLevel)return logger.log(this.TAG,"_reduceResolution","trigger DECODE_LOW_FPS",this._currentLevel,this._endLevel),void this._parent.emit(Events.VIDEO.DECODE_LOW_FPS);if(this._minFPSTime>2){var t,r=this._videoWidth,n=this._videoHeight;if(t=this._findLevel(n,this._currentLevel)){if(this._currentLevel=t.level,4===this._currentLevel)return logger.log(this.TAG,"_reduceResolution","trigger DECODE_LOW_FPS, _currentLevel: ",this._currentLevel),void this._parent.emit(Events.VIDEO.DECODE_LOW_FPS);this.width=t.base*(r/n),this.height=t.base,this._decoder.emit("outputresolutionchange",this.width,this.height)}this._minFPSTime=0}}},{key:"_findLevel",value:function(e,t){return _findInstanceProperty(LEVELS).call(LEVELS,(function(r){return r.base<e&&r.level>t}))}},{key:"_buildFrameInfo",value:function(e,t){try{var r=e.width,n=e.height;return{msg:"DECODED",width:r,height:n,buffer:e,yLinesize:r,uvLinesize:r/2,info:{baseDts:void 0,dts:t,gopId:0,isGop:void 0,key:!1,pts:t},type:"rgb"}}catch(e){logger.log(this.TAG,e)}}},{key:"_pushBlob",value:function(e){logger.log("push blob",e.dts,e.duration),e&&e.duration&&(this._gopBufferLength+=e.duration),this._blobURLList.push(e)}},{key:"_shiftBlob",value:function(){var e=this._blobURLList.shift();return e&&e.duration&&(this._gopBufferLength-=e.duration),e}},{key:"_filterBlob",value:function(e){var t,r=this;this._blobURLList=_filterInstanceProperty(t=this._blobURLList).call(t,(function(t){return t.dts<e&&(_URL.revokeObjectURL(t.blobUrl),t.duration&&(r._gopBufferLength-=t.duration)),t.dts>=e}))}},{key:"_emptyBlobList",value:function(){this._blobURLList=[],this._gopBufferLength=0}},{key:"_getBlobLength",value:function(){return this._blobURLList.length}},{key:"_handleKeyFrameVideo",value:function(e){try{var t=this._parent._timeRange.frames||[];if(this._parent._timeRange.clean(),!t.length)return;var r=t[0].dts,n=t[t.length-1].dts,o=r-this.endDts;logger.log(this.TAG,"_handleKeyFrameVideo","startDts:",r,"endDts:",n,"samples length:",t.length),this.endDts&&o>Math.floor(1e3/this._metaFPS)+1&&logger.log(this.TAG,"_handleKeyFrame, keyFrame dts:",r,"sample length:",t.length,"endDts:",n,"delay:",o);var i=n-r;if(this._fDuration||(this._fDuration=i),i<1500)return void logger.log(this.TAG,"_handleKeyFrame gopDuration :",i,"sample length:",t.length,"gopStartDts:",r,"gopEndDts:",n);if(this.firstDts||(this.firstDts=t[0].dts),this.currentFragmentDts=t[0].dts,this.currentFragmentDuration=this._getFragmentDuration(t),this.endDts=n,this.currentFragmentDts<this._startDts)return console.warn(this.TAG,"_handleKeyFrameVideo","currentFragmentDts < this._startDts",this.currentFragmentDts,this._startDts),void(t=[]);this.startRemux(t),t=[]}catch(e){console.error(this.TAG,"_handleKeyFrameVideo",e)}}},{key:"_getFragmentDuration",value:function(e){var t=0,r=0;return e[0].keyframe||console.error(this.TAG,"_getFragmentDuration","gop firstFrame is not keyframe"),_forEachInstanceProperty(e).call(e,(function(n,o){n.keyframe&&o&&(t+=e[o-1].dts-e[r].dts,r=o)})),t+=e[e.length-1].dts-e[r].dts}},{key:"_createBlobURL",value:function(e){if(e){var t=new window.Blob([e.buffer],{type:"video/mp4"});return _URL.createObjectURL(t)}}},{key:"_recordGopDuration",value:function(e){var t=e;this._minGopDuration||(this._minGopDuration=t),t>this._maxGopDuration&&(this._maxGopDuration=t),t<this._minGopDuration&&(this._minGopDuration=t)}},{key:"checkMaxFrames",value:function(e){"number"==typeof e&&(this._isDecodePause=e>MAX_FRAMESIZE,this._playSuccess&&this._isDecodePause&&this._decoder.pause())}},{key:"checkMinFrames",value:function(e){var t=this;if("number"==typeof e&&(this._isDecodePause=!(e<MIN_FRAMESIZE),!this._isDecodePause)){var r=this._decoder.play();void 0!==r?r.then((function(){t._playSuccess=!0})).catch((function(){t._playSuccess=!1})):_setTimeout((function(){t._playSuccess=!0}),20)}}},{key:"frameRendend",value:function(e){if(e.dom){if(e.dom.width=0,e.dom.height=0,this._decoder._canvasList.length>MAX_FRAMESIZE)return;this._decoder._canvasList.push(e)}else logger.error(this.TAG,"_onRendend","imageObj. is error",e)}},{key:"checkValidBlob",value:function(e){this._filterBlob(e)}},{key:"chaseVideoFrame",value:function(e){logger.log(this.TAG,e,e.frame.dts,this.currentFragmentDts);var t=e.frame.dts;if(this._startDts=t,t===this.currentFragmentDts){if(logger.log(this.TAG,"_onChaseFrame","_inDecodeId:",this._inDecodeId,"currentFragmentDts:",this.currentFragmentDts),this._inDecodeId>0&&this._inDecodeId<t)return logger.log(this.TAG,"_onChaseFrame, _inDecodeId > 0 && _inDecodeId < startDts, _inDecodeId:",this._inDecodeId,"startDts:",t),this.stopDecode(),this._filterBlob(t),void this.startDecode();if(this._inDecodeId===t)return logger.log(this.TAG,"_onChaseFrame, _inDecodeId === startDts, startDts:",t),this.stopDecode(),void this.reStrartDecode(this._currentInfo);-1===this._inDecodeId&&(logger.log(this.TAG,"_onChaseFrame","_inDecodeId==-1"),this.startDecode())}t>this.currentFragmentDts&&(logger.log(this.TAG,"_onChaseFrame, startDts > currentFragmentDts, startDts:",t,"currentFragmentDts:",this.currentFragmentDts),this.stopDecode(),this._emptyBlobList()),t<this.currentFragmentDts&&(logger.log(this.TAG,"_onChaseFrame, startDts < currentFragmentDts, startDts:",t,"currentFragmentDts:",this.currentFragmentDts),t>this._inDecodeId&&(this._filterBlob(t),this.stopDecode(),this.startDecode()))}},{key:"init",value:function(e){this._isInit||(this._metaFPS=e.fpsNum/e.fpsDen||25,this._videoWidth=e.width,this._videoHeight=e.height,this._width=this._videoWidth,this._height=this._videoHeight,this._frameDuration=_parseInt$1(1e3/this._metaFPS),this._isInit=!0,logger.log("".concat(this.TAG," has inited")),this._isInit=!0,this._checkReady())}},{key:"reStrartDecode",value:function(e){if(e)try{logger.log(this.TAG,"reStrartDecode"),this._isInDecoding=!0,this._inDecodeId=e.dts,this._currentInfo=e,this._decoder.startDecode(e,this._metaFPS,this._startTime),this._startTime=0}catch(e){console.error("load error",e)}}},{key:"stopDecode",value:function(){this._isInDecoding=!1,this._inDecodeId=-1,this._currentInfo=null,this._frameLengthPerFragment=0,this._decoder.stopDecode()}},{key:"startDecode",value:function(){if(this._isInDecoding)logger.log(this.TAG,"startDecode","this decoder is in decoding");else{var e=this._getBlobLength();if(this._decoder&&e){logger.log(this.TAG,"startDecode","blob url length:",e);var t=this._shiftBlob()||{};try{logger.log(this.TAG,"startDecode",t.dts,t.duration),this._isInDecoding=!0,this._inDecodeId=t.dts,this._currentInfo=t,this._decoder.startDecode(t,this._metaFPS)}catch(e){console.error(this.TAG,"startDecode","load error",e)}}}}},{key:"canSeek",value:function(e){var t=e.frame.dts;return!!(this.currentFragmentDts>=t&&this._isInDecoding)&&(this._inDecodeId!==t&&this._inDecodeId<t)}},{key:"startRemux",value:function(e){if(logger.log("startRemux samples length:",e.length),e.length){var t=this._parent._meta;t.samples=e;var r=this._remux.remux(t).videoSegment;this._onRemuxed(r)}else console.error("frame length is 0")}},{key:"canPlayType",value:function(e){if(this._decoder)try{return this._decoder.canPlayType('video/mp4;codecs="'+e.codec+'"')}catch(e){console.error(e)}}},{key:"destroy",value:function(){this._blobURLList=[],this._decoder.destroy()}},{key:"empty",value:function(){if(logger.log("empty"),this._decoder){var e=this._decoder._canvasList;return logger.log(this.TAG,"empty >>>>>>>>>>>>>>>>>>length:",e.length),_forEachInstanceProperty(e).call(e,(function(e){e.dom&&(logger.log("clear >>>>>>>>>>>>>>>>>>"),e.dom.width=0,e.dom.height=0,e.dom=null)})),e.length}}},{key:"isIDLE",get:function(){return logger.log(this.TAG,"isIDEL","blob length:",this._getBlobLength(),"_isInDecoding:",this._isInDecoding,"isVideoOnRun:",this._isVideoOnRun,"_isDecodePause",this._isDecodePause),!this._getBlobLength()&&!this._isInDecoding&&this._isVideoOnRun}},{key:"ready",get:function(){return this._ready},set:function(e){this._ready=e}},{key:"remux",get:function(){return this._remux}},{key:"isInit",get:function(){return this._isInit}}]),r}(),VideoRenderFromVideo=function(e){_inherits$1(r,VideoBaseRender);var t=_createSuper$1(r);function r(e,n){var o;return _classCallCheck$2(this,r),(o=t.call(this,e,n)).TAG="VideoRenderFromVideo",o._videoDecodeController=new VideoDecoderController(e,_assertThisInitialized$1(o)),o._canAutoPlay=!0,o._videoDecode=e.videoDecode,o._chaseToFrame=null,o}return _createClass$2(r,[{key:"videoDecode",get:function(){return this._videoDecode},set:function(e){this._videoDecode=e}},{key:"_bindEvents",value:function(){var e,t,n,o,i,a,s,c,l,u=this;_get(_getPrototypeOf$1(r.prototype),"_bindEvents",this).call(this),this.on("keyFrame",_bindInstanceProperty(e=this._onKeyFrame).call(e,this)),this.on(Events.DECODE_EVENTS.READY,_bindInstanceProperty(t=this._onReady).call(t,this)),this.on(Events.DECODE_EVENTS.DECODED,_bindInstanceProperty(n=this._onDecoded).call(n,this)),this.on(Events.DECODE_EVENTS.PLAY_FAILED,_bindInstanceProperty(o=this._onPlayFailed).call(o,this)),this.on("error",_bindInstanceProperty(i=this._onError).call(i,this)),this.on(Events.DECODE_EVENTS.APPEND_VIDEO,_bindInstanceProperty(a=this._onAppendVideo).call(a,this)),this.on(Events.DECODE_EVENTS.FIRST_FRAME,_bindInstanceProperty(s=this._onFirstFrame).call(s,this)),this._parent.on(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME,_bindInstanceProperty(c=this._onChaseVideoFrame).call(c,this)),this._parent.on(Events.TIMELINE.SYNC_DTS,_bindInstanceProperty(l=this._onTimeLineSyncDTS).call(l,this)),window.addEventListener("unload",(function(){u._empty()}))}},{key:"_onTimeLineSyncDTS",value:function(e){this._videoDecodeController.checkValidBlob(e)}},{key:"_onChaseVideoFrame",value:function(e){this._doChaseVideoFrame(e)}},{key:"_onAppendVideo",value:function(e){try{this._parent._parent.appendChild(e)}catch(e){cosole.error(this.TAG,"onAppendVideo",e)}}},{key:"_onKeyFrame",value:function(){logger.log(this.TAG,"_onKeyFrame, keyframe"),this._videoDecodeController.emit("keyFrame")}},{key:"_onError",value:function(e,t){console.error(this.TAG,"decoder error",e,t),t||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr(e&&e.message))}},{key:"_onReady",value:function(){if(!this._frameRender){var e=_Object$assign(this._config,{meta:this._meta,canvas:this._canvas,type:"2d"});try{this._frameRender=new FrameRender(e,this)}catch(e){this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,this._assembleErr(e&&e.message))}}this._startDecode()}},{key:"_onFirstFrame",value:function(e){logger.log(this.TAG,"onFirstFrame"),this._receiveFrame(e),this._firstFrame=!0}},{key:"_onDecoded",value:function(e){var t=this;if(this._inChaseFrame){if(this.chaseFrameAfter++,1===this.chaseFrameAfter&&this._chaseToFrame){if(this._parent.emit(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME_END,this._chaseToFrame),this._frameQueue.length){var r=this._frameQueue.frames;_forEachInstanceProperty(r).call(r,(function(e){t._videoDecodeController.frameRendend(e.buffer)}))}this._frameQueue.empty(),this._videoDecodeController.checkMinFrames(this._frameQueue.length),this._timeRange.deletePassed(this._chaseToFrame.frame.dts),this._inChaseFrame=!1,this._chaseToFrame=null,console.warn(this.TAG,"onDecoded","_inChaseFrame end")}}else this.chaseFrameAfter=0;this._receiveFrame(e)}},{key:"_onPlayFailed",value:function(e){console.warn(this.TAG,"onPlayFailed, this._ready:",this._ready,",firstEmit:",e,",frame length:",this._frameQueue.length),this._ready||e||this._whenReady(),this._canAutoPlay=!1}},{key:"canSeek",value:function(e){return this._videoDecodeController.canSeek(e)}},{key:"_initDecoder",value:function(){this._isInit||(logger.log(this.TAG,"_initDecoder"),this._videoDecodeController.isInit||this._videoDecodeController.init(this._meta),this._isInit=!0)}},{key:"_receiveFrame",value:function(e){_get(_getPrototypeOf$1(r.prototype),"_receiveFrame",this).call(this,e),this._videoDecodeController.checkMaxFrames(this._frameQueue._frames.length)}},{key:"_setMetadata",value:function(e){logger.warn(this.TAG,"video set metadata",e),this._meta=e;var t=e.fpsNum/e.fpsDen;t?logger.log(this.TAG,"detect fps:",t):logger.warn(this.TAG,"no detect fps,start estimate"),this._initDecoder(e)}},{key:"_doChaseVideoFrame",value:function(e){this._inChaseFrame=!0,this._chaseToFrame=e,this._videoDecodeController.chaseVideoFrame(e)}},{key:"_appendChunk",value:function(e){var t;this._meta||this._setMetadata(e);for(var r=_sliceInstanceProperty(t=e.samples).call(t),n=r.length,o=0;o<n;o++){var i=r.shift();i.keyframe&&this.emit("keyFrame"),this._timeRange.append([i],this.noAudio,!1)}}},{key:"_startDecode",value:function(){this._videoDecodeController.startDecode()}},{key:"_checkToDecode",value:function(){this._startDecode()}},{key:"_startRender",value:function(){logger.log(this.TAG,"_startRender interval",this.interval),this._tickTimer.start(this.interval)}},{key:"_render",value:function(e){var t=this,r=this._frameQueue.nextFrame(),n=this.preciseVideoDts;if(r&&this._timeRange){var o=r.info;if(!o)return this._frameQueue.shift(),void console.error("not info");this._renderDts=o.dts;var i=o.dts-n;if(i<-150){this.lastPrecise;var a=this._frameQueue.frames,s=this._getDeleteFrames(a,n),c=s.deleteFrames,l=s.useFrames;return _spliceInstanceProperty(a).call(a,0),_forEachInstanceProperty(l).call(l,(function(e){a.push(e)})),_forEachInstanceProperty(c).call(c,(function(e){t._videoDecodeController.frameRendend(e.buffer)})),this._videoDecodeController.emit("renderDelay",i,this._frameQueue._frames.length),void this._videoDecodeController.checkMinFrames(this._frameQueue.length)}if(!(!e&&i>30&&i<6e4)){var u,$,d,A,p,f;if(Math.abs(this._lastTimeupdate-o.dts)>250&&(this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),this._lastTimeupdate=o.dts),logger.long)logger.log(this.TAG,_concatInstanceProperty(u=_concatInstanceProperty($=_concatInstanceProperty(d=_concatInstanceProperty(A=_concatInstanceProperty(p=_concatInstanceProperty(f="render delay:".concat(i," , timelinePosition:")).call(f,n," , dts:")).call(p,o.dts," , cost:")).call(A,o.cost," , gopID:")).call(d,o.gopId," , rest:")).call($,this._frameQueue.length,", buffer frame:")).call(u,this._timeRange.frameLength));var h=performance.now();this._frameRender.render(r.buffer,r.width,r.height,r.yLinesize,r.uvLinesize),this.hasFirstFrame||e||(this.hasFirstFrame=!0,this._parent.emit(Events.TIMELINE.PLAY_EVENT,"firstframe")),this._videoDecodeController.frameRendend(r.buffer),this._frameQueue.shift(),this._videoDecodeController.checkMinFrames(this._frameQueue.length),this._videoDecodeController.emit("renderDelay",i,this._frameQueue._frames.length),this._renderCost=performance.now()-h,e||(this.lastTime&&(this.lastPrecise,_Date$now(),this.lastTime),this.lastFrameinfo=o.dts,this.lastPrecise=n,this.lastTime=_Date$now(),this.lastAudioTime=this._parent.audioRender.currentTime)}}else{if(this._videoDecodeController.checkMinFrames(this._frameQueue._frames.length),this._parent._paused)return;if(!this._firstFrame)return void logger.log(this.TAG,"_render","not first frame return");var y=this._videoDecodeController;if(logger.log(this.TAG,",lack frame, _inDecoding:",this._videoDecodeController._isInDecoding,this._videoDecodeController._isDecodePause,",_frameQueue.length:",this._frameQueue.length),!this._frameQueue.length&&y.isIDLE){this._ready=!1;var _=this._parent.audioRender;console.warn(this.TAG,"trigger video waiting vdecode, preciseVideoDts:",n,_.currentTime,_.duration,_.buffered.end(0),_.baseDts),this.emit(Events.VIDEO.VIDEO_WAITING)}this._checkToDecode()}}},{key:"_updateSegmentEnd",value:function(){}},{key:"_destroy",value:function(e){this._empty(),_get(_getPrototypeOf$1(r.prototype),"destroy",this).call(this,e),this._videoDecodeController.destroy()}},{key:"_doPause",value:function(){logger.log(this.TAG,">>>>>>>>doPause"),this._tickTimer.stop()}},{key:"_getDeleteFrames",value:function(e,t){var r=[],n=[];return _forEachInstanceProperty(e).call(e,(function(e){e.info&&e.info.dts>t?n.push(e):e.info&&e.info.dts<=t&&r.push(e)})),{deleteFrames:r,useFrames:n}}},{key:"_empty",value:function(){var e;this._videoDecodeController&&(this._videoDecodeController.empty(),_forEachInstanceProperty(e=this._frameQueue.frames).call(e,(function(e){e.buffer&&e.buffer.dom&&(e.buffer.dom.width=0,e.buffer.dom.height=0,e.buffer.dom=null)})))}}]),r}(),DecodeController=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e){var n;return _classCallCheck$2(this,r),_defineProperty$2(_assertThisInitialized$1(n=t.call(this)),"_parent",null),_defineProperty$2(_assertThisInitialized$1(n),"_decoderReady",!1),_defineProperty$2(_assertThisInitialized$1(n),"_inDecoding",!1),_defineProperty$2(_assertThisInitialized$1(n),"_toDecodeFirstframe",!0),_defineProperty$2(_assertThisInitialized$1(n),"_id",(new Date).getMilliseconds()),_defineProperty$2(_assertThisInitialized$1(n),"_workerErrorCallback",null),_defineProperty$2(_assertThisInitialized$1(n),"_workerMessageCallback",null),_defineProperty$2(_assertThisInitialized$1(n),"_decoderWorker",null),n._parent=e,n}return _createClass$2(r,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"inDecoding",get:function(){return this._inDecoding}},{key:"decoderMode",get:function(){return this._decoderMode}},{key:"decoderReady",get:function(){return this._decoderReady}},{key:"needToDecode",get:function(){return this._inDecoding?0:this._continueDecodeThreshold}},{key:"maxDecodeOnce",get:function(){return this._maxDecodeOnce}},{key:"meta",get:function(){var e;return null===(e=this._parent)||void 0===e?void 0:e._meta},set:function(e){this._parent&&(this._parent._meta=e)}},{key:"init",value:function(e,t){this._workerMessageCallback=e,this._workerErrorCallback=t,this._initWorker()}},{key:"_initWorker",value:function(){throw new Error("need override by children")}},{key:"checkToDecode",value:function(e){this.webcodec?e<=this.needToDecode&&this.doDecode():!this._inDecoding&&e<=this.needToDecode&&this.doDecode()}},{key:"doDecode",value:function(){var e=this,t=this._getFramesToDecode();t&&t.length&&this.meta&&(this._toDecodeFirstframe&&(this._toDecodeFirstframe=!1,this.analyse.addFirstFrameToDecode()),this._avccpushed||this._initDecoderWithConfiguration(this._decoderWorker,this.meta),logger.enable&&logger.log(this.TAG,"doDecode ".concat(t.length," frames")),_forEachInstanceProperty(t).call(t,(function(t){e._doDecodeInternal(t)})),this._inDecoding=!0,this._decoderWorker.postMessage({msg:"finish_flag"}))}},{key:"preciseSeek",value:function(e){var t,r,n,o,i=this,a=1e3*e,s=null===(t=this._parent)||void 0===t||null===(r=t._timeRange)||void 0===r?void 0:r.getFramesForPreciseSeek(a),c=s.length;c<this.maxDecodeOnce?this.doDecode():(null===(n=this._parent)||void 0===n||null===(o=n._timeRange)||void 0===o||o.updateFrameIndexForPreciseSeek(c),logger.enable&&logger.log(this.TAG,"doDecode ".concat(s.length," frames for precise seek")),_forEachInstanceProperty(s).call(s,(function(e,t){i._doDecodeInternal(e,!0,t>=c-6)})),this._inDecoding=!0,this._decoderWorker.postMessage({msg:"finish_flag"}))}},{key:"_getFramesToDecode",value:function(){var e=this._parent,t=e._timeRange,r=e._decodeEstimate;if(this._decoderReady&&t){var n=t.frameLength;if(n){var o=this._toDecodeFirstframe?getDecodeCapacaity().maxDecodeOnceFirstTime:this.maxDecodeOnce;1===n&&r.resetDecodeDot(performance.now());for(var i=[];o>0;){var a=t&&t.getFrame();if(!a)break;i.push(a),a.gopId&&a.gopId-1==0&&r.updateGopCount(),o--}return i}}}},{key:"_doDecodeInternal",value:function(e,t,r){var n;null!=e&&e.meta&&(this.meta=e.meta,logger.warn(this.TAG,"detect metadata! flush decoder"),this._initDecoderWithConfiguration(this.__decoderWorker,e.meta));var o={dts:e.dts,pts:e.pts||e.dts+e.cts,keyframe:e.keyframe,gopId:e.gopId,id:this._id};t&&(o.preciseSeek=!0,o.output=r);var i=_sliceInstanceProperty(n=e.data).call(n);this._decoderWorker.postMessage({msg:"decode",data:i,info:o},[i.buffer])}},{key:"_initDecoderWithConfiguration",value:function(){throw new Error("need override by children")}},{key:"flushDecoder",value:function(){this._decoderWorker.postMessage({msg:"flush"})}},{key:"destroy",value:function(){throw new Error("need override by children")}}]),r}(),encodedJs$3="IWZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBlPW51bGwsdD1bXSxzPTAsYT0hMTtzZWxmLmFkZEV2ZW50TGlzdGVuZXIoIm1lc3NhZ2UiLChmdW5jdGlvbihvKXtzd2l0Y2goby5kYXRhLm1zZyl7Y2FzZSJjb25maWd1cmF0aW9uIjplPW5ldyBzZWxmLlZpZGVvRGVjb2Rlcih7b3V0cHV0OmZ1bmN0aW9uKG8pe2E9ITAscyYmY2xlYXJUaW1lb3V0KHMpO3ZhciBuPXQuc2hpZnQoKTtuP3NlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkRFQ09ERUQiLHdpZHRoOm8uZGlzcGxheVdpZHRoLGhlaWdodDpvLmRpc3BsYXlIZWlnaHQsaW5mbzpuLGJ1ZmZlcjpvfSxbb10pOm8uY2xvc2UoKSxlLmRlY29kZVF1ZXVlU2l6ZT09PXQubGVuZ3RoJiZzZWxmLnBvc3RNZXNzYWdlKHt0eXBlOiJCQVRDSF9GSU5JU0hfRkxBRyJ9KX0sZXJyb3I6ZnVuY3Rpb24oZSl7Y29uc29sZS5sb2coIltXZWJjb2RlY1dvcmtlcl06IixlKSwiQ29kZWMgcmVjbGFpbWVkIGR1ZSB0byBpbmFjdGl2aXR5LiIhPT1lLm1lc3NhZ2UmJnNlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkZBSUxFRCIsbWVzc2FnZTplJiZlLm1lc3NhZ2V9KX19KSxzZWxmLlZpZGVvRGVjb2Rlci5pc0NvbmZpZ1N1cHBvcnRlZChvLmRhdGEuZGF0YSkudGhlbigoZnVuY3Rpb24odCl7dC5zdXBwb3J0ZWQmJihlLmNvbmZpZ3VyZShvLmRhdGEuZGF0YSksY29uc29sZS5sb2coIltXZWJjb2RlY1dvcmtlcl06IiwiaXNDb25maWdTdXBwb3J0ZWQiLHQpKX0pKS50aGVuKChmdW5jdGlvbigpe3NlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkRFQ09ERVJfUkVBRFkifSkscz1zZXRUaW1lb3V0KChmdW5jdGlvbigpe2F8fHNlbGYucG9zdE1lc3NhZ2Uoe3R5cGU6IkZBSUxFRCIsbWVzc2FnZToibm8gZnJhbWUgb3V0cHV0In0pfSksMmUzKX0pKS5jYXRjaCgoZnVuY3Rpb24oZSl7c2VsZi5wb3N0TWVzc2FnZSh7dHlwZToiRkFJTEVEIixtZXNzYWdlOmUmJmUubWVzc2FnZX0pfSkpO2JyZWFrO2Nhc2UiZGVjb2RlIjp2YXIgbj1vLmRhdGEuZGF0YSxpPW8uZGF0YS5pbmZvO3QucHVzaChpKTt2YXIgZD1uLmJ5dGVMZW5ndGgtNCxjPW5ldyBEYXRhVmlldyhuZXcgQXJyYXlCdWZmZXIoNCkpO2Muc2V0VWludDMyKDAsZCwhMSksbi5zZXQobmV3IFVpbnQ4QXJyYXkoYy5idWZmZXIpLDApLGkua2V5ZnJhbWUmJmUuZmx1c2goKTt2YXIgcj1uZXcgc2VsZi5FbmNvZGVkVmlkZW9DaHVuayh7dHlwZTppLmtleWZyYW1lPyJrZXkiOiJkZWx0YSIsdGltZXN0YW1wOmkucHRzLGRhdGE6bn0pO2UuZGVjb2RlKHIpO2JyZWFrO2Nhc2UiZGVzdHJveSI6ZSYmKGUuZmx1c2goKSxlLmNsb3NlKCkpLGNsZWFyVGltZW91dChzKTticmVhaztjYXNlImNoZWNrRGVjb2RlIjpzZWxmLnBvc3RNZXNzYWdlKHt0eXBlOiJDSEVDS19UT19ERUNPREUiLGRhdGE6MD09PU1hdGguYWJzKGUuZGVjb2RlUXVldWVTaXplLXQubGVuZ3RoKX0pfX0pKX0oKTsK",blob$3="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs$3)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper$3(){var e=blob$3&&(_URL||window.webkitURL).createObjectURL(blob$3);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs$3,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var MAX_DECODE_ONCE_DEFAULT$1=getDecodeCapacaity().maxDecodeOnceWebcodec,WebCodecDecodeController=function(e){_inherits$1(r,DecodeController);var t=_createSuper$1(r);function r(){var e,n;_classCallCheck$2(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return _defineProperty$2(_assertThisInitialized$1(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,i))),"TAG","WebCodecController"),_defineProperty$2(_assertThisInitialized$1(n),"_decoderMode",5),_defineProperty$2(_assertThisInitialized$1(n),"_maxDecodeOnce",MAX_DECODE_ONCE_DEFAULT$1),_defineProperty$2(_assertThisInitialized$1(n),"_continueDecodeThreshold",MAX_DECODE_ONCE_DEFAULT$1/2),_defineProperty$2(_assertThisInitialized$1(n),"_avccpushed",!1),n}return _createClass$2(r,[{key:"webcodec",get:function(){return!0}},{key:"needToDecode",get:function(){return this._inDecoding?(this._checkToDecode(),0):this._continueDecodeThreshold}},{key:"_initWorker",value:function(){var e=this;logger.log(this.TAG,"start init webcodec worker");var t=new WorkerWrapper$3;t.onMessage=function(t){var r,n;switch(t.data.type){case"DECODER_READY":logger.log(e.TAG,"webcodec worker ready "),e._decoderReady=!0,e._workerMessageCallback({type:"DECODER_READY"});break;case"DECODED":if(e._inDecoding=!0,(null===(r=t.data)||void 0===r||null===(n=r.info)||void 0===n?void 0:n.id)!==e._id)return;e._workerMessageCallback({type:"RECEIVE_FRAME",data:t.data});break;case"BATCH_FINISH_FLAG":if(e._inDecoding=!1,!e._workerMessageCallback)return;e._workerMessageCallback({type:"BATCH_FINISH"});break;case"CHECK_TO_DECODE":e._inDecoding=t.data.data;break;case"FAILED":e._whenError(t.data.message)}},t.onError=function(t){var r,n,o=null===(r=e._parent)||void 0===r||null===(n=r._parent)||void 0===n?void 0:n._parent;o&&o.removeChild(o.querySelector("canvas")),e._whenError(t.message)},t.addEventListener("message",t.onMessage),t.addEventListener("error",t.onError),this._decoderWorker=t,this._initDecoderWithConfiguration(t,this._parent.configuration)}},{key:"_whenError",value:function(e){r.canUse=!1,this._workerErrorCallback(e)}},{key:"_initDecoderWithConfiguration",value:function(e,t){e.postMessage({msg:"configuration",data:{codec:this._parent._meta.codec,codedHeight:this._parent._meta.height,codedWidth:this._parent._meta.width,description:t}}),this._avccpushed=!0}},{key:"_checkToDecode",value:function(){this._decoderWorker.postMessage({msg:"checkDecode"})}},{key:"destroy",value:function(){var e=this._decoderWorker;e.removeEventListener("message",e.onMessage),e.removeEventListener("error",e.onError),e.postMessage({msg:"destroy"}),e.terminate(),this._decoderWorker=null}}],[{key:"isSupported",value:function(){return getDecodeCapacaity().h264WithWebcodec&&!!window.VideoDecoder&&!1!==r.canUse}}]),r}(),encodedJs$2="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzKHNyYyl7cmV0dXJuIGZldGNoKHNyYykudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUudGV4dCgpfSkpLnRoZW4oKGZ1bmN0aW9uKHRleHQpe3NlbGYuZXhwb3J0cz17fSxldmFsKHRleHQpLHNlbGYubT1leHBvcnRzLm19KSl9dmFyIE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSD0zMTQ1NzI4LGluaXRUcz0wLERlY29kZXI9ZnVuY3Rpb24oZSl7dGhpcy5pbml0ZWQ9ITEsdGhpcy5pbmZvSWQ9MCx0aGlzLnNlbGY9ZSx0aGlzLm1ldGE9dGhpcy5zZWxmLm1ldGEsdGhpcy50cz0wLHRoaXMuaW5mb2xpc3Q9W10sZS5wYXJfYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkPXRoaXMuYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkLmJpbmQodGhpcyksZS5wYXJfYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkPXRoaXMuYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkLmJpbmQodGhpcyl9LGRlY29kZXI7ZnVuY3Rpb24gb25Qb3N0UnVuKCl7KGRlY29kZXI9bmV3IERlY29kZXIodGhpcykpLmluaXQoKX1EZWNvZGVyLnByb3RvdHlwZS50b1U4QXJyYXk9ZnVuY3Rpb24oZSx0KXtyZXR1cm4gTW9kdWxlLkhFQVBVOC5zdWJhcnJheShlLGUrdCl9LERlY29kZXIucHJvdG90eXBlLmluaXQ9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5SW5pdCgwLDEpLHRoaXMub2Zmc2V0PU1vZHVsZS5fYnJvYWR3YXlDcmVhdGVTdHJlYW0oTUFYX1NUUkVBTV9CVUZGRVJfTEVOR1RIKX0sRGVjb2Rlci5wcm90b3R5cGUuYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkPWZ1bmN0aW9uKGUsdCxvLG4saSl7dmFyIHM9dGhpcy5pbmZvbGlzdC5zaGlmdCgpLHI9byxhPW8vMixjPXQsZD10LzI7aWYoIXRoaXMubWV0YXx8NDQ0IT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdCYmNDIyIT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdHx8KGE9byksIXN8fCFzLnByZWNpc2VTZWVrfHxzLm91dHB1dCl7dmFyIGY9dGhpcy50b1U4QXJyYXkoZSxjKnIrZCphKjIpLHU9bmV3IFVpbnQ4QXJyYXkoZi5sZW5ndGgpO3Uuc2V0KGYpO3ZhciBsPXUuYnVmZmVyO3RoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVEIix3aWR0aDp0LGhlaWdodDpvLHlMaW5lc2l6ZTpjLHV2TGluZXNpemU6ZCxpbmZvOnMsYnVmZmVyOmx9LFtsXSl9fSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQ9ZnVuY3Rpb24oKXtpZighdGhpcy5pbml0ZWQpe3RoaXMuaW5pdGVkPSEwO3ZhciBlPTA7aW5pdFRzJiYoZT1wZXJmb3JtYW5jZS5ub3coKS1pbml0VHMpLHRoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVSX1JFQURZIixjb3N0OmV9KX19LERlY29kZXIucHJvdG90eXBlLmRlY29kZT1mdW5jdGlvbihlLHQpe3ZhciBvPXBhcnNlSW50KChuZXcgRGF0ZSkuZ2V0VGltZSgpKSxuPW8tMWU5Kk1hdGguZmxvb3Ioby8xZTkpO3RoaXMuaW5mb2xpc3QucHVzaCh0KSx0JiZ0LmtleWZyYW1lJiYodGhpcy5pbmZvbGlzdD1bdF0sTW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKG4pKSxNb2R1bGUuSEVBUFU4LnNldChlLHRoaXMub2Zmc2V0KSxNb2R1bGUuX2Jyb2Fkd2F5UGxheVN0cmVhbShlLmxlbmd0aCx0aGlzLmluZm9JZCl9LERlY29kZXIucHJvdG90eXBlLmZsdXNoPWZ1bmN0aW9uKCl7TW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKCl9LERlY29kZXIucHJvdG90eXBlLmRlc3Ryb3k9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5RXhpdCgpfSxEZWNvZGVyLnByb3RvdHlwZS51cGRhdGVNZXRhPWZ1bmN0aW9uKGUpe3RoaXMubWV0YT1lfTt2YXIgV0FTTV9DRE5fUEFUSF9QUkVGSVg9IiI7ZnVuY3Rpb24gaW5pdChlKXtXQVNNX0NETl9QQVRIX1BSRUZJWD1lLnNwbGl0KCIvIikuc2xpY2UoMCwtMSkuam9pbigiLyIpLGluaXRUcz1wZXJmb3JtYW5jZS5ub3coKTt2YXIgdD0vYXNtLy50ZXN0KGUpO2RlY29kZXJ8fChzZWxmLmltcG9ydFNjcmlwdHM/bmV3IFByb21pc2UoKGZ1bmN0aW9uKHQsbyl7c2VsZi5jb25zb2xlfHwoc2VsZi5jb25zb2xlPXtsb2c6ZnVuY3Rpb24oKXt9LHdhcm46ZnVuY3Rpb24oKXt9LGluZm86ZnVuY3Rpb24oKXt9LGVycm9yOmZ1bmN0aW9uKCl7fX0pO3RyeXtzZWxmLmltcG9ydFNjcmlwdHMoZSksdCgpfWNhdGNoKG4pe2lmKG4ubWVzc2FnZS5pbmNsdWRlcygiTW9kdWxlIHNjcmlwdHMgZG9uJ3Qgc3VwcG9ydCBpbXBvcnRTY3JpcHRzIikpcmV0dXJuIHQoc2hpbUltcG9ydFNjcmlwdHMoZSkpO28obil9fSkpOnNoaW1JbXBvcnRTY3JpcHRzKGUpKS50aGVuKChmdW5jdGlvbigpe3JldHVybiB0Pyhjb25zb2xlLmxvZygiYXV0byBpbnN0YW5jZSBEZWNvZGVyISIpLG5ldyBQcm9taXNlKChmdW5jdGlvbihlLHQpe3NldFRpbWVvdXQoKGZ1bmN0aW9uKCl7dHJ5e29uUG9zdFJ1bi5jYWxsKHNlbGYpLGUoKX1jYXRjaChvKXt0KG8pfX0pKX0pKSk6c2VsZi5tP3NlbGYubSh7aW5zdGFudGlhdGVXYXNtOmZ1bmN0aW9uKGUsdCl7ZmV0Y2goIiIuY29uY2F0KFdBU01fQ0ROX1BBVEhfUFJFRklYLCIvZGVjb2Rlci53YXNtLmpzIikpLnRoZW4oKGZ1bmN0aW9uKGUpe3JldHVybiBlLmFycmF5QnVmZmVyKCl9KSkudGhlbigoZnVuY3Rpb24odCl7cmV0dXJuIFdlYkFzc2VtYmx5Lmluc3RhbnRpYXRlKHQsZSl9KSkudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIHQoZS5pbnN0YW5jZSl9KSl9fSkudGhlbigoZnVuY3Rpb24oZSl7c2VsZi5Nb2R1bGU9ZSxvblBvc3RSdW4uY2FsbChzZWxmKX0pKTpuZXcgUHJvbWlzZSgoZnVuY3Rpb24oZSx0KXthZGRPblBvc3RSdW4ob25Qb3N0UnVuLmJpbmQoc2VsZikpLE1vZHVsZS5vblJ1bnRpbWVJbml0aWFsaXplZD1mdW5jdGlvbigpe2UoKX0sTW9kdWxlLm9uQWJvcnQ9ZnVuY3Rpb24oZSl7dChlJiZlLm1lc3NhZ2U/ZTpuZXcgRXJyb3IoIndhc20gaW5pdCBlcnJvciIpKX0sc2V0VGltZW91dCgoZnVuY3Rpb24oKXt0KG5ldyBFcnJvcigid2FzbSBsb2FkIHRpbWVvdXQiKSl9KSw2ZTMpfSkpfSkpLmNhdGNoKChmdW5jdGlvbihlKXtzZWxmLnBvc3RNZXNzYWdlKHttc2c6IklOSVRfRkFJTEVEIixsb2c6ZS5tZXNzYWdlfSl9KSl9c2VsZi5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5kYXRhO2lmKHQubXNnKXtpZigiaW5pdCIhPT10Lm1zZyYmInByZWxvYWQiIT09dC5tc2cmJiFkZWNvZGVyKXJldHVybjtzd2l0Y2godC5tc2cpe2Nhc2UicHJlbG9hZCI6aW5pdCh0LnVybCk7YnJlYWs7Y2FzZSJpbml0IjpzZWxmLm1ldGE9dC5tZXRhLGluaXQodC51cmwpO2JyZWFrO2Nhc2UidXBkYXRlbWV0YSI6c2VsZi5tZXRhPXQubWV0YSxkZWNvZGVyLnVwZGF0ZU1ldGEodC5tZXRhKTticmVhaztjYXNlImluaXREZWNvZGVyIjpkZWNvZGVyLmRlY29kZSh0LmRhdGEpO2JyZWFrO2Nhc2UiZGVjb2RlIjpkZWNvZGVyLmRlY29kZSh0LmRhdGEsdC5pbmZvKTticmVhaztjYXNlImZsdXNoIjpkZWNvZGVyLmZsdXNoKCk7YnJlYWs7Y2FzZSJmaW5pc2hfZmxhZyI6c2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJCQVRDSF9GSU5JU0hfRkxBRyJ9KTticmVhaztjYXNlImRlc3RvcnkiOmRlY29kZXIuZGVzdHJveSgpfX1lbHNlIHNlbGYucG9zdE1lc3NhZ2Uoe21zZzoiRVJST1I6aW52YWxpZCBtZXNzYWdlIn0pfX0pKCk7Cg==",blob$2="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs$2)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper$2(){var e=blob$2&&(_URL||window.webkitURL).createObjectURL(blob$2);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs$2,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var encodedJs$1="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzKHNyYyl7cmV0dXJuIGZldGNoKHNyYykudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUudGV4dCgpfSkpLnRoZW4oKGZ1bmN0aW9uKHRleHQpe3NlbGYuZXhwb3J0cz17fSxldmFsKHRleHQpLHNlbGYubT1leHBvcnRzLm19KSl9dmFyIE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSD01MjQyODgwLEJBVENIX0RFQ09ERV9TSVpFPTgsaW5pdFRzPTAsRGVjb2Rlcj1mdW5jdGlvbihlKXt0aGlzLmluaXRlZD0hMSx0aGlzLmluZm9JZD0wLHRoaXMuc2VsZj1lLHRoaXMubWV0YT1lLm1ldGEsdGhpcy50cz0wLHRoaXMuaW5mb2xpc3Q9W10sZS5wYXJfYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkPXRoaXMuYnJvYWR3YXlPbkJyb2Fkd2F5SW5pdGVkLmJpbmQodGhpcyksZS5wYXJfYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkPXRoaXMuYnJvYWR3YXlPblBpY3R1cmVEZWNvZGVkLmJpbmQodGhpcyl9LGRlY29kZXI7ZnVuY3Rpb24gb25Qb3N0UnVuKCl7KGRlY29kZXI9bmV3IERlY29kZXIodGhpcykpLmluaXQoKX1EZWNvZGVyLnByb3RvdHlwZS50b1U4QXJyYXk9ZnVuY3Rpb24oZSx0KXtyZXR1cm4gTW9kdWxlLkhFQVBVOC5zdWJhcnJheShlLGUrdCl9LERlY29kZXIucHJvdG90eXBlLmluaXQ9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5SW5pdCgwLDIpLHRoaXMuc3RyZWFtQnVmZmVyUHRyPU1vZHVsZS5fYnJvYWR3YXlDcmVhdGVTdHJlYW0oTUFYX1NUUkVBTV9CVUZGRVJfTEVOR1RIKSx0aGlzLnN0cmVhbUJ1ZmZlcj10aGlzLnRvVThBcnJheSh0aGlzLnN0cmVhbUJ1ZmZlclB0cixNQVhfU1RSRUFNX0JVRkZFUl9MRU5HVEgpLHRoaXMuYnVmZmVyU2l6ZXNQdHI9TW9kdWxlLl9tYWxsb2MoNCpCQVRDSF9ERUNPREVfU0laRSksdGhpcy5idWZmZXJTaXplcz10aGlzLnRvVThBcnJheSh0aGlzLmJ1ZmZlclNpemVzUHRyLDQqQkFUQ0hfREVDT0RFX1NJWkUpLHRoaXMuc3RyZWFtQnVmZmVyT2Zmc2V0PTAsdGhpcy5mcmFtZUxlbnNPZmZzZXQ9MCx0aGlzLmZyYW1lTGVuc0J1ZmZlcj1uZXcgVWludDMyQXJyYXkoQkFUQ0hfREVDT0RFX1NJWkUpfSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uUGljdHVyZURlY29kZWQ9ZnVuY3Rpb24oZSx0LHIpe3ZhciBzPXRoaXMuaW5mb2xpc3Quc2hpZnQoKSxvPXIsaT1yLzIsbj10LGY9dC8yOyF0aGlzLm1ldGF8fDQ0NCE9PXRoaXMubWV0YS5jaHJvbWFGb3JtYXQmJjQyMiE9PXRoaXMubWV0YS5jaHJvbWFGb3JtYXR8fChpPXIpO3ZhciBhPXRoaXMudG9VOEFycmF5KGUsbipvK2YqaSoyKSxjPW5ldyBVaW50OEFycmF5KGEubGVuZ3RoKTtjLnNldChhKTt2YXIgZD1jLmJ1ZmZlcjt0aGlzLnNlbGYucG9zdE1lc3NhZ2Uoe21zZzoiREVDT0RFRCIsd2lkdGg6dCxoZWlnaHQ6cix5TGluZXNpemU6bix1dkxpbmVzaXplOmYsaW5mbzpzLGJ1ZmZlcjpkfSxbZF0pfSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQ9ZnVuY3Rpb24oKXtpZighdGhpcy5pbml0ZWQpe3RoaXMuaW5pdGVkPSEwO3ZhciBlPTA7aW5pdFRzJiYoZT1wZXJmb3JtYW5jZS5ub3coKS1pbml0VHMpLHRoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVSX1JFQURZIixjb3N0OmV9KX19LERlY29kZXIucHJvdG90eXBlLnN0b3JlQnVmZmVyPWZ1bmN0aW9uKGUsdCl7dCYmdC5rZXlmcmFtZSYmdGhpcy5mbHVzaCgpLHRoaXMuaW5mb2xpc3QucHVzaCh0KSx0aGlzLnN0cmVhbUJ1ZmZlci5zZXQoZSx0aGlzLnN0cmVhbUJ1ZmZlck9mZnNldCksdGhpcy5mcmFtZUxlbnNCdWZmZXJbdGhpcy5mcmFtZUxlbnNPZmZzZXRdPWUubGVuZ3RoLHRoaXMuc3RyZWFtQnVmZmVyT2Zmc2V0Kz1lLmxlbmd0aCx0aGlzLmZyYW1lTGVuc09mZnNldCs9MSx0aGlzLmJhdGNoRGVjb2RlKCl9LERlY29kZXIucHJvdG90eXBlLmJhdGNoRGVjb2RlPWZ1bmN0aW9uKGUpeyh0aGlzLmZyYW1lTGVuc09mZnNldD49QkFUQ0hfREVDT0RFX1NJWkV8fGUmJnRoaXMuZnJhbWVMZW5zT2Zmc2V0KSYmKHRoaXMuYnVmZmVyU2l6ZXMuc2V0KG5ldyBVaW50OEFycmF5KHRoaXMuZnJhbWVMZW5zQnVmZmVyLmJ1ZmZlciksMCksTW9kdWxlLl9icm9hZHdheVBsYXlTdHJlYW0xKHRoaXMuYnVmZmVyU2l6ZXNQdHIsdGhpcy5mcmFtZUxlbnNPZmZzZXQpLHRoaXMuZnJhbWVMZW5zT2Zmc2V0PTAsdGhpcy5zdHJlYW1CdWZmZXJPZmZzZXQ9MCl9LERlY29kZXIucHJvdG90eXBlLmRlY29kZT1mdW5jdGlvbihlKXt0aGlzLnN0cmVhbUJ1ZmZlci5zZXQoZSksTW9kdWxlLl9icm9hZHdheVBsYXlTdHJlYW0oZS5sZW5ndGgsMCl9LERlY29kZXIucHJvdG90eXBlLmZsdXNoPWZ1bmN0aW9uKCl7dGhpcy5iYXRjaERlY29kZSghMCksTW9kdWxlLl9icm9hZHdheUZsdXNoU3RyZWFtKCl9LERlY29kZXIucHJvdG90eXBlLmRlc3Ryb3k9ZnVuY3Rpb24oKXtNb2R1bGUuX2Jyb2Fkd2F5RXhpdCgpfSxEZWNvZGVyLnByb3RvdHlwZS51cGRhdGVNZXRhPWZ1bmN0aW9uKGUpe3RoaXMubWV0YT1lfTt2YXIgV0FTTV9DRE5fUEFUSF9QUkVGSVg9IiI7ZnVuY3Rpb24gaW5pdChlKXsoV0FTTV9DRE5fUEFUSF9QUkVGSVg9ZS5zcGxpdCgiLyIpLnNsaWNlKDAsLTEpLmpvaW4oIi8iKSxpbml0VHM9cGVyZm9ybWFuY2Uubm93KCksZGVjb2Rlcil8fChzZWxmLmltcG9ydFNjcmlwdHM/bmV3IFByb21pc2UoKGZ1bmN0aW9uKHQscil7c2VsZi5jb25zb2xlfHwoc2VsZi5jb25zb2xlPXtsb2c6ZnVuY3Rpb24oKXt9LHdhcm46ZnVuY3Rpb24oKXt9LGluZm86ZnVuY3Rpb24oKXt9LGVycm9yOmZ1bmN0aW9uKCl7fX0pO3RyeXtzZWxmLmltcG9ydFNjcmlwdHMoZSksdCgpfWNhdGNoKHMpe2lmKHMubWVzc2FnZS5pbmNsdWRlcygiTW9kdWxlIHNjcmlwdHMgZG9uJ3Qgc3VwcG9ydCBpbXBvcnRTY3JpcHRzIikpcmV0dXJuIHQoc2hpbUltcG9ydFNjcmlwdHMoZSkpO3Iocyl9fSkpOnNoaW1JbXBvcnRTY3JpcHRzKGUpKS50aGVuKChmdW5jdGlvbigpe3JldHVybiBmZXRjaChXQVNNX0NETl9QQVRIX1BSRUZJWCsiL2RlY29kZXIud29ya2VyLmpzIikudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUuYmxvYigpfSkpLnRoZW4oKGZ1bmN0aW9uKGUpe3JldHVybiBzZWxmLm0oe2xvY2F0ZUZpbGU6ZnVuY3Rpb24odCl7cmV0dXJuL1wud29ya2VyXC5qcyQvLnRlc3QodCk/VVJMLmNyZWF0ZU9iamVjdFVSTChlKTovXC53YXNtJC8udGVzdCh0KT9XQVNNX0NETl9QQVRIX1BSRUZJWCsiL2RlY29kZXIud2FzbSI6L1wubWVtJC8udGVzdCh0KT9XQVNNX0NETl9QQVRIX1BSRUZJWCsiL2RlY29kZXIuanMubWVtIjp2b2lkIDB9LG1haW5TY3JpcHRVcmxPckJsb2I6V0FTTV9DRE5fUEFUSF9QUkVGSVgrIi9kZWNvZGVyLmpzIn0pfSkpLnRoZW4oKGZ1bmN0aW9uKGUpe3NlbGYuTW9kdWxlPWUsb25Qb3N0UnVuLmNhbGwoc2VsZil9KSl9KSkuY2F0Y2goKGZ1bmN0aW9uKGUpe3NlbGYucG9zdE1lc3NhZ2Uoe21zZzoiSU5JVF9GQUlMRUQiLGxvZzplLm1lc3NhZ2V9KX0pKX1zZWxmLm9ubWVzc2FnZT1mdW5jdGlvbihlKXt2YXIgdD1lLmRhdGE7aWYoImluaXQiPT09dC5tc2d8fCJwcmVsb2FkIj09PXQubXNnfHxkZWNvZGVyKXN3aXRjaCh0Lm1zZyl7Y2FzZSJwcmVsb2FkIjppbml0KHQudXJsKSxCQVRDSF9ERUNPREVfU0laRT10LmJhdGNoRGVjb2RlQ291bnQ7YnJlYWs7Y2FzZSJpbml0IjpzZWxmLm1ldGE9dC5tZXRhLEJBVENIX0RFQ09ERV9TSVpFPXQuYmF0Y2hEZWNvZGVDb3VudCxpbml0KHQudXJsKTticmVhaztjYXNlInVwZGF0ZW1ldGEiOnNlbGYubWV0YT10Lm1ldGEsZGVjb2Rlci51cGRhdGVNZXRhKHQubWV0YSk7YnJlYWs7Y2FzZSJpbml0RGVjb2RlciI6ZGVjb2Rlci5mcmFtZUxlbnNPZmZzZXQmJmRlY29kZXIuYmF0Y2hEZWNvZGUoITApLGRlY29kZXIuZmx1c2goKSxkZWNvZGVyLmRlY29kZSh0LmRhdGEpO2JyZWFrO2Nhc2UiZGVjb2RlIjpkZWNvZGVyLnN0b3JlQnVmZmVyKHQuZGF0YSx0LmluZm8pO2JyZWFrO2Nhc2UiZmx1c2giOmRlY29kZXIuZmx1c2goKTticmVhaztjYXNlImZpbmlzaF9mbGFnIjpzZWxmLnBvc3RNZXNzYWdlKHttc2c6IkJBVENIX0ZJTklTSF9GTEFHIn0pO2JyZWFrO2Nhc2UiZGVzdG9yeSI6ZGVjb2Rlci5kZXN0cm95KCl9fX0pKCk7Cg==",blob$1="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs$1)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper$1(){var e=blob$1&&(_URL||window.webkitURL).createObjectURL(blob$1);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs$1,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var encodedJs="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHNoaW1JbXBvcnRTY3JpcHRzKHNyYyl7cmV0dXJuIGZldGNoKHNyYykudGhlbigoZnVuY3Rpb24oZSl7cmV0dXJuIGUudGV4dCgpfSkpLnRoZW4oKGZ1bmN0aW9uKHRleHQpe3NlbGYuZXhwb3J0cz17fSxldmFsKHRleHQpLHNlbGYubT1leHBvcnRzLm19KSl9dmFyIE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSD0xMDQ4NTc2LGluaXRUcz0wLERlY29kZXI9ZnVuY3Rpb24oZSl7dGhpcy5pbml0ZWQ9ITEsdGhpcy5zZWxmPWUsdGhpcy5tZXRhPWUubWV0YSx0aGlzLmluZm9saXN0PVtdLGUucGFyX2Jyb2Fkd2F5T25Ccm9hZHdheUluaXRlZD10aGlzLmJyb2Fkd2F5T25Ccm9hZHdheUluaXRlZC5iaW5kKHRoaXMpLGUucGFyX2Jyb2Fkd2F5T25QaWN0dXJlRGVjb2RlZD10aGlzLmJyb2Fkd2F5T25QaWN0dXJlRGVjb2RlZC5iaW5kKHRoaXMpfSxkZWNvZGVyO2Z1bmN0aW9uIG9uUG9zdFJ1bigpeyhkZWNvZGVyPW5ldyBEZWNvZGVyKHRoaXMpKS5pbml0KCl9RGVjb2Rlci5wcm90b3R5cGUudG9VOEFycmF5PWZ1bmN0aW9uKGUsdCl7cmV0dXJuIE1vZHVsZS5IRUFQVTguc3ViYXJyYXkoZSxlK3QpfSxEZWNvZGVyLnByb3RvdHlwZS5pbml0PWZ1bmN0aW9uKCl7TW9kdWxlLl9icm9hZHdheUluaXQoKSx0aGlzLnN0cmVhbUJ1ZmZlcj10aGlzLnRvVThBcnJheShNb2R1bGUuX2Jyb2Fkd2F5Q3JlYXRlU3RyZWFtKE1BWF9TVFJFQU1fQlVGRkVSX0xFTkdUSCwwKSxNQVhfU1RSRUFNX0JVRkZFUl9MRU5HVEgpfSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uUGljdHVyZURlY29kZWQ9ZnVuY3Rpb24oZSx0LG8saSxuLHMscil7dmFyIGE9dGhpcy5pbmZvbGlzdFswXTtpZighYXx8IWEua2V5ZnJhbWV8fHIpe3ZhciBjPU9iamVjdC5hc3NpZ24oe30sdGhpcy5pbmZvbGlzdC5zaGlmdCgpKSxkPW8sZj1vLzI7IXRoaXMubWV0YXx8NDQ0IT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdCYmNDIyIT09dGhpcy5tZXRhLmNocm9tYUZvcm1hdHx8KGY9byk7dmFyIHU9dGhpcy50b1U4QXJyYXkoZSxpKmQrbipmKjIpLGw9bmV3IFVpbnQ4QXJyYXkodS5sZW5ndGgpO2wuc2V0KHUpO3ZhciBtPWwuYnVmZmVyO3RoaXMuc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJERUNPREVEIix3aWR0aDp0LGhlaWdodDpvLHlMaW5lc2l6ZTppLHV2TGluZXNpemU6bixpbmZvOmMsYnVmZmVyOm19LFttXSl9fSxEZWNvZGVyLnByb3RvdHlwZS5icm9hZHdheU9uQnJvYWR3YXlJbml0ZWQ9ZnVuY3Rpb24oKXt0aGlzLmluaXRlZD0hMDt2YXIgZT0wO2luaXRUcyYmKGU9cGVyZm9ybWFuY2Uubm93KCktaW5pdFRzKSx0aGlzLnNlbGYucG9zdE1lc3NhZ2Uoe21zZzoiREVDT0RFUl9SRUFEWSIsY29zdDplfSl9LERlY29kZXIucHJvdG90eXBlLmRlY29kZT1mdW5jdGlvbihlLHQpe3QmJnRoaXMuaW5mb2xpc3QucHVzaCh0KSx0JiZ0LmtleWZyYW1lJiYodGhpcy5pbmZvbGlzdD1bdF0pLHRoaXMuc3RyZWFtQnVmZmVyLnNldChlKSxNb2R1bGUuX2Jyb2Fkd2F5UGxheVN0cmVhbShlLmxlbmd0aCwwKX0sRGVjb2Rlci5wcm90b3R5cGUuZGVzdHJveT1mdW5jdGlvbigpe01vZHVsZS5fYnJvYWR3YXlFeGl0KCl9LERlY29kZXIucHJvdG90eXBlLnVwZGF0ZU1ldGE9ZnVuY3Rpb24oZSl7dGhpcy5tZXRhPWV9O3ZhciBXQVNNX0NETl9QQVRIX1BSRUZJWD0iIjtmdW5jdGlvbiBpbml0KGUpe1dBU01fQ0ROX1BBVEhfUFJFRklYPWUuc3BsaXQoIi8iKS5zbGljZSgwLC0xKS5qb2luKCIvIiksaW5pdFRzPXBlcmZvcm1hbmNlLm5vdygpO3ZhciB0PS9hc20vLnRlc3QoZSk7ZGVjb2Rlcnx8KHNlbGYuaW1wb3J0U2NyaXB0cz9uZXcgUHJvbWlzZSgoZnVuY3Rpb24odCxvKXtzZWxmLmNvbnNvbGV8fChzZWxmLmNvbnNvbGU9e2xvZzpmdW5jdGlvbigpe30sd2FybjpmdW5jdGlvbigpe30saW5mbzpmdW5jdGlvbigpe30sZXJyb3I6ZnVuY3Rpb24oKXt9fSk7dHJ5e3NlbGYuaW1wb3J0U2NyaXB0cyhlKSx0KCl9Y2F0Y2goaSl7aWYoaS5tZXNzYWdlLmluY2x1ZGVzKCJNb2R1bGUgc2NyaXB0cyBkb24ndCBzdXBwb3J0IGltcG9ydFNjcmlwdHMiKSlyZXR1cm4gdChzaGltSW1wb3J0U2NyaXB0cyhlKSk7byhpKX19KSk6c2hpbUltcG9ydFNjcmlwdHMoZSkpLnRoZW4oKGZ1bmN0aW9uKCl7cmV0dXJuIHQ/KGNvbnNvbGUubG9nKCJhdXRvIGluc3RhbmNlIERlY29kZXIhIiksbmV3IFByb21pc2UoKGZ1bmN0aW9uKGUsdCl7c2V0VGltZW91dCgoZnVuY3Rpb24oKXt0cnl7b25Qb3N0UnVuLmNhbGwoc2VsZiksZSgpfWNhdGNoKG8pe3Qobyl9fSkpfSkpKTpzZWxmLm0oe2luc3RhbnRpYXRlV2FzbTpmdW5jdGlvbihlLHQpe2ZldGNoKCIiLmNvbmNhdChXQVNNX0NETl9QQVRIX1BSRUZJWCwiL2RlY29kZXIud2FzbS5qcyIpKS50aGVuKChmdW5jdGlvbihlKXtyZXR1cm4gZS5hcnJheUJ1ZmZlcigpfSkpLnRoZW4oKGZ1bmN0aW9uKHQpe3JldHVybiBXZWJBc3NlbWJseS5pbnN0YW50aWF0ZSh0LGUpfSkpLnRoZW4oKGZ1bmN0aW9uKGUpe3JldHVybiB0KGUuaW5zdGFuY2UpfSkpfX0pLnRoZW4oKGZ1bmN0aW9uKGUpe3NlbGYuTW9kdWxlPWUsb25Qb3N0UnVuLmNhbGwoc2VsZil9KSl9KSkuY2F0Y2goKGZ1bmN0aW9uKGUpe3NlbGYucG9zdE1lc3NhZ2Uoe21zZzoiSU5JVF9GQUlMRUQiLGxvZzplLm1lc3NhZ2V9KX0pKX1zZWxmLm9ubWVzc2FnZT1mdW5jdGlvbihlKXt2YXIgdD1lLmRhdGE7aWYoImluaXQiPT09dC5tc2d8fCJwcmVsb2FkIj09PXQubXNnfHxkZWNvZGVyKXN3aXRjaCh0Lm1zZyl7Y2FzZSJwcmVsb2FkIjppbml0KHQudXJsKTticmVhaztjYXNlImluaXQiOnNlbGYubWV0YT10Lm1ldGEsc2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJMT0ciLGxvZzoid29ya2VyIGluaXRlZCJ9KSxpbml0KHQudXJsKTticmVhaztjYXNlInVwZGF0ZW1ldGEiOnNlbGYubWV0YT10Lm1ldGEsZGVjb2Rlci51cGRhdGVNZXRhKHQubWV0YSk7YnJlYWs7Y2FzZSJpbml0RGVjb2RlciI6ZGVjb2Rlci5kZWNvZGUodC5kYXRhKTticmVhaztjYXNlImRlY29kZSI6ZGVjb2Rlci5kZWNvZGUodC5kYXRhLHQuaW5mbyk7YnJlYWs7Y2FzZSJmaW5pc2hfZmxhZyI6c2VsZi5wb3N0TWVzc2FnZSh7bXNnOiJCQVRDSF9GSU5JU0hfRkxBRyJ9KTticmVhaztjYXNlImRlc3RvcnkiOmRlY29kZXIuZGVzdHJveSgpfX19KSgpOwo=",blob="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(){var e=blob&&(_URL||window.webkitURL).createObjectURL(blob);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+encodedJs,{type:"module"})}finally{e&&(_URL||window.webkitURL).revokeObjectURL(e)}}var DecoderCache=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_queue",[]),_defineProperty$2(this,"_pendingDecoder",null),_defineProperty$2(this,"TAG","DecoderCache")}return _createClass$2(e,[{key:"genDecoder",value:function(e){return this._initDecoder(e)}},{key:"_initDecoder",value:function(e){var t=this,r=getDecodeCapacaity(),n=r.preloadDecoder,o=r.maxDecodeOnceWasm;e=e||n;var i,a,s=getDecoderUrls(),c=s.H264_DECODER_URL,l=s.H265_SIMD_DECODER_URL,u=s.H265_DECODER_URL,$=s.H265_THREAD_DECODER_URL,d=1;if("h265"===e&&(simdSupported()?(i=new WorkerWrapper$2,a=l,d=2):threadSupported()&&getDecodeCapacaity().canUseThreadMode?(i=new WorkerWrapper$1,a=$,d=1):(i=new WorkerWrapper$2,a=u,d=3)),"h264"===e&&(i=new WorkerWrapper,a=c,d=3),!i)return _Promise.resolve();var A=promiseDelayed();i.postMessage({msg:"preload",batchDecodeCount:o,url:a}),this._pendingDecoder=i,i.id=_Date$now()+_parseInt$1(1e3*Math.random()),i.isHevc="h265"===e,i.using=!1,i.ready=!1,logger.log(this.TAG,"start init decoder worker, id=",i.id,"hevc=",i.isHevc,"mode=",d);var p=function e(r){t._pendingDecoder=null;var n=r.data.msg;switch("DECODER_READY"!==n&&"INIT_FAILED"!==n||(i.removeEventListener("message",e),i.removeEventListener("error",f)),n){case"DECODER_READY":logger.log(t.TAG,"decoder worker inited!, id=",i.id,"cost:",r.data.cost),i.ready=!0,i.using||t._queue.push(i),A.resolve();break;case"INIT_FAILED":logger.log(t.TAG,"decoder worker init failed!",r.data.log),A.reject(r.data.log)}},f=function e(t){i.removeEventListener("message",p),i.removeEventListener("error",e),A.reject(null==t?void 0:t.message)};return i.addEventListener("message",p),i.addEventListener("error",f),A}},{key:"cacheDecoder",value:function(e){var t;e.using=!1,e.ready=!0,e.id||(e.id=_Date$now()+_parseInt$1(1e3*Math.random())),this._queue.push(e),logger.log(this.TAG,"cache decoder, id=",e.id),"h265"===getDecodeCapacaity().preloadDecoder&&1===_filterInstanceProperty(t=this._queue).call(t,(function(e){return!e.using&&e.isHevc})).length&&this.genDecoder("h265")}},{key:"getCachedDecoder",value:function(e){var t,r,n,o,i=_findIndexInstanceProperty(t=this._queue).call(t,(function(t){return!t.using&&t.isHevc===e}));-1!==i&&(n=_spliceInstanceProperty(o=this._queue).call(o,i,1)[0]);if(!n&&this._pendingDecoder&&(n=this._pendingDecoder,this._pendingDecoder=null),n)return n.using=!0,logger.warn(this.TAG,_concatInstanceProperty(r="get cached decoder, id=".concat(n.id,", ready=")).call(r,n.ready)),n}}]),e}(),decoderCache=new DecoderCache,MAX_DECODE_ONCE_DEFAULT=getDecodeCapacaity().maxDecodeOnceWasm,WasmDecodeController=function(e){_inherits$1(r,DecodeController);var t=_createSuper$1(r);function r(){var e,n;_classCallCheck$2(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return _defineProperty$2(_assertThisInitialized$1(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,i))),"TAG","WasmController"),_defineProperty$2(_assertThisInitialized$1(n),"_avccpushed",!1),_defineProperty$2(_assertThisInitialized$1(n),"_maxDecodeOnce",MAX_DECODE_ONCE_DEFAULT),_defineProperty$2(_assertThisInitialized$1(n),"_continueDecodeThreshold",MAX_DECODE_ONCE_DEFAULT/2),_defineProperty$2(_assertThisInitialized$1(n),"_wasmInitCost",0),_defineProperty$2(_assertThisInitialized$1(n),"_threadSupported",threadSupported()&&getDecodeCapacaity().canUseThreadMode),_defineProperty$2(_assertThisInitialized$1(n),"_simdSuppported",simdSupported()),_defineProperty$2(_assertThisInitialized$1(n),"_decoderMode",window.WebAssembly?3:4),n}return _createClass$2(r,[{key:"wasmInitCost",get:function(){var e;return null===(e=this._decoderWorker)||void 0===e?void 0:e._wasmInitCost}},{key:"isHevc",get:function(){var e;return null===(e=this._parent)||void 0===e?void 0:e.isHevc}},{key:"_selectDecodeWorker",value:function(){this.analyse.addWasmInit();var e,t=getDecoderUrls(),r=t.H264_DECODER_URL,n=t.H265_DECODER_URL,o=t.H265_THREAD_DECODER_URL,i=t.H265_SIMD_DECODER_URL,a=t.ASM_H264_DECODER_URL,s=t.ASM_H265_DECODER_URL;return logger.log(this.TAG,"start init wasm worker:",performance.now(),"hevc:",this.isHevc,"decoderMode:",this._decoderMode),this.isHevc?(e=1===this._decoderMode?o:2===this._decoderMode?i:3===this._decoderMode?n:s)?{decoder:1===this._decoderMode?new WorkerWrapper$1:new WorkerWrapper$2,url:e}:void this._workerErrorCallback("no found decoder url, decodeMode:".concat(this._decoderMode)):(e=4===this._decoderMode?a:r)?{decoder:new WorkerWrapper,url:e}:void this._workerErrorCallback("no found decoder url, decodeMode:".concat(this._decoderMode))}},{key:"_initWorker",value:function(){this.isHevc&&(this._threadSupported&&(this._decoderMode=1),this._simdSuppported&&(this._decoderMode=2)),this._initDecodeWorkerInternal()}},{key:"_initDecodeWorkerInternal",value:function(){var e=decoderCache.getCachedDecoder(this.isHevc);if(e)return logger.warn(this.TAG,"select decoder from cache"),this.analyse.addWasmInit(),this._avccpushed=!1,this._bindWorkerEvent(e),this._decoderWorker=e,void(e.ready&&(this._decoderReady=!0,this._initDecoderWithConfiguration(e,this.meta),this._workerMessageCallback({type:"DECODER_READY",data:e}),logger.log(this.TAG,"decoder ready!")));var t=this._selectDecodeWorker()||{},r=t.decoder,n=t.url;r&&(this._avccpushed=!1,this._bindWorkerEvent(r),r.isHevc=this.isHevc,r.postMessage({msg:"init",meta:this.meta,batchDecodeCount:MAX_DECODE_ONCE_DEFAULT,url:n}),this._decoderWorker=r)}},{key:"_bindWorkerEvent",value:function(e){var t=this,r=function(r,n){logger.log(t.TAG,"worker failed: ",r,n),t._terminateWorker(e),t._decoderWorker=null,!1===getDecodeCapacaity().wasmFallbackToAsm||4===t._decoderMode?t._workerErrorCallback(r):(t._decoderMode=1===t._decoderMode||2===t._decoderMode?3:4,t._initDecodeWorkerInternal())};e._onMessage=function(n){var o,i;switch(n.data.msg){case"DECODER_READY":if(logger.log(t.TAG,"wasm worker ready!","cost:",n.data.cost),t._decoderReady=!0,e._wasmInitCost=_parseInt$1(n.data.cost),!t.meta)return;t._avccpushed||t._initDecoderWithConfiguration(e,t.meta),t.emit(Events.VIDEO.VIDEO_DECODER_INIT,e),t._workerMessageCallback({type:"DECODER_READY",data:e});break;case"DECODED":if(t._inDecoding=!0,(null===(o=n.data)||void 0===o||null===(i=o.info)||void 0===i?void 0:i.id)!==t._id)return;t._workerMessageCallback({type:"RECEIVE_FRAME",data:n.data});break;case"BATCH_FINISH_FLAG":if(t._inDecoding=!1,!t._workerMessageCallback)return;t._workerMessageCallback({type:"BATCH_FINISH"});break;case"INIT_FAILED":r(n.data.log,1)}},e._onError=function(e){r(e.message,2)},e.addEventListener("message",e._onMessage),e.addEventListener("error",e._onError)}},{key:"_initDecoderWithConfiguration",value:function(e,t){var r;logger.log(this.TAG,"init decoder with configuration"),this._avccpushed=!0,e.postMessage({msg:"updatemeta",meta:t});var n=t.rawVps||t.vps[0],o=t.rawSps||t.sps[0],i=t.rawPps||t.pps[0],a=_filterInstanceProperty(r=[n,o,i]).call(r,Boolean),s=_reduceInstanceProperty(a).call(a,(function(e,t){return e+(t.byteLength+4)}),0),c=new Uint8Array(s),l=0;_forEachInstanceProperty(a).call(a,(function(e){c.set([0,0,0,1],l),l+=4,c.set(e,l),l+=e.byteLength})),e.postMessage({msg:"initDecoder",data:c})}},{key:"destroy",value:function(){if(this._decoderWorker)return getDecodeCapacaity().reuseWasmDecoder?(this._offWorkerBind(this._decoderWorker),void decoderCache.cacheDecoder(this._decoderWorker)):void this._terminateWorker(this._decoderWorker)}},{key:"_offWorkerBind",value:function(e){e.removeEventListener("message",e._onMessage),e.removeEventListener("error",e._onError),e.postMessage({msg:"flush"}),e._onMessage=null,e._onError=null,logger.log(this.TAG,"flush decoder and unbind worker event")}},{key:"_terminateWorker",value:function(e){this._offWorkerBind(e),e.postMessage({msg:"destroy"}),e.terminate(),logger.log(this.TAG,"destroy decoder worker")}}]),r}(),DECODER_ERROR_SUBCODE=1,WEBGL_ERROR_SUBCODE=2,VideoRenderWithDecoder=function(e){_inherits$1(r,VideoBaseRender);var t=_createSuper$1(r);function r(){var e,n;_classCallCheck$2(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return _defineProperty$2(_assertThisInitialized$1(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,i))),"TAG","VideoRenderWithDecoder"),_defineProperty$2(_assertThisInitialized$1(n),"_hideRenderFlag",0),_defineProperty$2(_assertThisInitialized$1(n),"_recentMeta",null),_defineProperty$2(_assertThisInitialized$1(n),"_inChaseFrame",!1),_defineProperty$2(_assertThisInitialized$1(n),"_decoderErrorCallback",(function(e){n._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,n._assembleErr(e,DECODER_ERROR_SUBCODE))})),_defineProperty$2(_assertThisInitialized$1(n),"_decoderMessageCallback",(function(e){var t,r,o,i=e.type,a=e.data;switch(i){case"DECODER_READY":if(n.analyse.addWasmReady(),!n._frameRender){var s=_Object$assign(n._config,{meta:n._meta,canvas:n._canvas,type:n._decodeController.webcodec?"2d":""});try{n._canvas.glInstance?(n._frameRender=n._canvas.glInstance,n._frameRender.updateBind(_assertThisInitialized$1(n),n._meta),logger.warn(n.TAG,"reuse canvas and context")):(n._frameRender=new FrameRender(s,_assertThisInitialized$1(n)),logger.log(n.TAG,"create frameRender with config",s))}catch(e){n._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,n._assembleErr(e&&e.message,WEBGL_ERROR_SUBCODE))}}n._startDecode();break;case"RECEIVE_FRAME":if(n._inChaseFrame&&(null===(t=n._decodeController)||void 0===t||!t.webcodec))return;n._receiveFrame(a);break;case"BATCH_FINISH":null===(r=_assertThisInitialized$1(n))||void 0===r||r._decodeEstimate.resetDecodeDot(),n._inChaseFrame&&(n._inChaseFrame=!1,n._frameQueue.empty()),n._ready||n.inSeeking||null===(o=n._decodeController)||void 0===o||!o.decoderReady||n._startDecode()}})),n}return _createClass$2(r,[{key:"wasmInitCost",get:function(){var e;return null===(e=this._decodeController)||void 0===e?void 0:e.wasmInitCost}},{key:"hevcThread",get:function(){return 1===this.decodeMode}},{key:"lowlatency",get:function(){return this._parent.lowlatency}},{key:"nextFrameTime",get:function(){var e=this._frameQueue.nextFrame();return(e&&e.info&&e.info.dts||0)/1e3}},{key:"ajustSeekTime",value:function(e,t){var r;logger.log(this.TAG,"ajust seek time: ",e),this._frameQueue.empty(),null===(r=this._decodeController)||void 0===r||r.flushDecoder(),this._switchVideoBuffer(e,t)}},{key:"canSeek",value:function(){return!0}},{key:"_appendChunk",value:function(e){var t;if(!this.noVideo&&this._timeRange){if(this._meta){if(this._recentMeta.width!==e.width||this._recentMeta.height!==e.height){var r,n,o;logger.warn(this.TAG,_concatInstanceProperty(r=_concatInstanceProperty(n=_concatInstanceProperty(o="metadata changed! width: ".concat(this._recentMeta.width," -> ")).call(o,e.width,", height: ")).call(n,this._recentMeta.height," -> ")).call(r,e.height));var i=e.samples[0];i&&(this._recentMeta=i.meta=_Object$assign({},e,{samples:null}))}}else{this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LOADEDMETADATA),this._recentMeta=this._meta=_Object$assign({},e,{samples:null}),logger.warn(this.TAG,"video set metadata",this._meta,"configuration:",this.configuration);var a=e.fpsNum/e.fpsDen;a?logger.log(this.TAG,"detect fps:",a):logger.warn(this.TAG,"no detect fps,start estimate"),this._selectDecoder(),this._initDecoder()}if(this._timeRange.append(e.samples,this._isLive&&this.noAudio,!this.videoDecode),e.samples=[],!this.inSeeking){var s;if(this.isLive||this._timeRange.frameLength||this._switchVideoBuffer(this._parent.currentTime),!this._ready&&null!==(t=this._decodeController)&&void 0!==t&&t.decoderReady)!this.noAudio&&null!==(s=this._decodeController)&&void 0!==s&&s.inDecoding||this._startDecode();this.noAudio&&this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.DURATION_CHANGE)}}}},{key:"_selectDecoder",value:function(){if(!this.isHevc&&WebCodecDecodeController.isSupported())return this._decodeController=new WebCodecDecodeController(this),void(this._decodeEstimate.webcodec=!0);this._decodeController=new WasmDecodeController(this)}},{key:"_initDecoder",value:function(){var e;null===(e=this._decodeController)||void 0===e||e.init(this._decoderMessageCallback,this._decoderErrorCallback)}},{key:"_startDecode",value:function(){var e;null===(e=this._decodeController)||void 0===e||e.doDecode()}},{key:"_switchVideoBuffer",value:function(e,t){var r=this._timeRange.switchBuffer(e);if(r){var n;if(this.noAudio&&this._parent.emit(Events.TIMELINE.SYNC_DTS,this.getDtsOfTime(r.start)),t)return void(null===(n=this._decodeController)||void 0===n||n.preciseSeek(e));this._startDecode(t)}}},{key:"_checkToDecode",value:function(){var e;this.inSeeking||null===(e=this._decodeController)||void 0===e||e.checkToDecode(this._frameQueue.length)}},{key:"_render",value:function(e){var t;if(!this.noVideo){var r=this._frameQueue&&this._frameQueue.nextFrame();if(r){var n=r.info;if(!n)return this._frameQueue.shift(),void console.error("not info");this._renderDts=n.dts;var o=n.dts-this.preciseVideoDts;if(!(!e&&o>0&&o<6e4)){var i,a,s,c,l,u;if(this._frameQueue.shift(this.preciseVideoDts),Math.abs(this._lastTimeupdate-n.dts)>250&&(this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE,{pts:n.originPts/90}),this._lastTimeupdate=n.dts),logger.long)logger.log(this.TAG,_concatInstanceProperty(i=_concatInstanceProperty(a=_concatInstanceProperty(s=_concatInstanceProperty(c=_concatInstanceProperty(l=_concatInstanceProperty(u="render delay:".concat(o," , timelinePosition:")).call(u,this.preciseVideoDts," , dts:")).call(l,n.dts," , cost:")).call(c,n.cost," , gopID:")).call(s,n.gopId," , rest:")).call(a,this._frameQueue.length,", buffer frame:")).call(i,this._timeRange.frameLength));var $=performance.now();this._hideRenderFlag++,("visible"===document.visibilityState||this._hideRenderFlag%15)&&this._frameRender.render(r.buffer,r.width,r.height,r.yLinesize,r.uvLinesize),null!==(t=this._decodeController)&&void 0!==t&&t.webcodec&&r.buffer.close(),this._renderCost=performance.now()-$,this._checkToDecode()}}else{var d;if(logger.log(this.TAG,"lack frame, ","inDecoding:",null===(d=this._decodeController)||void 0===d?void 0:d.inDecoding),this._checkToDecode(),this.noAudio){var A;if(!this.isLive&&Math.abs(this.currentTime-this.duration)<.5)return null==this||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),null==this||this._emitTimelineEvents(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ENDED),void(null===(A=this._timeRange)||void 0===A||A.clean());this._timeRange.frameLength||(this._ready=!1,this.emit(Events.VIDEO.VIDEO_WAITING))}}}}},{key:"_updateSegmentEnd",value:function(e){var t;null===(t=this._timeRange)||void 0===t||t.updateSegmentEnd(e)}},{key:"_doChaseFrame",value:function(e){var t=e.frame;this._inChaseFrame=!0,this._timeRange.deletePassed(t.dts),this._frameQueue.empty(),this.noAudio&&this._parent.emit(Events.TIMELINE.SYNC_DTS,t.dts)}},{key:"_destroy",value:function(e){var t;logger.log(this.TAG,"destroy video render"),_get(_getPrototypeOf$1(r.prototype),"destroy",this).call(this,e),null===(t=this._decodeController)||void 0===t||t.destroy(),this._decodeController=null}}]),r}(),TOLERANCE=.1,TimeLine=function(e){_inherits$1(r,EventEmitter);var t=_createSuper$1(r);function r(e,n){var o;return _classCallCheck$2(this,r),(o=t.call(this)).TAG="TimeLine",o._parent=n,o._seeking=!1,o.audioRender=AudioMseRender.isSupported()?new AudioMseRender(e,_assertThisInitialized$1(o)):new AudioRender(e,_assertThisInitialized$1(o)),o.videoRender=new VideoRenderWithDecoder(e,_assertThisInitialized$1(o)),o._readyStatus={audio:!1,video:!1},o._paused=!0,o._switchToMultiWorker=!1,o._lowdecodeEmited=!1,o._startPlayed=!1,o._emitReady=!1,o._lastSeekTime=1e-4,o._singleTrack=-1,o._bindEvent(),o._decodeVideo=e.video,o}return _createClass$2(r,[{key:"analyse",get:function(){return this._parent.analyse}},{key:"ready",get:function(){return this._readyStatus.video&&this._readyStatus.audio}},{key:"played",get:function(){var e=this;return{length:this.currentTime?1:0,start:function(){return 0},end:function(){return e.currentTime}}}},{key:"noAudio",get:function(){return 1===this._singleTrack||2===this._singleTrack}},{key:"isLive",get:function(){return this._parent.live}},{key:"seeking",get:function(){return this._seeking}},{key:"decodeFps",get:function(){return this.videoRender.decodeFps}},{key:"decodeCost",get:function(){return this.videoRender.decodeCost}},{key:"renderCost",get:function(){return this.videoRender.renderCost}},{key:"wasmInitCost",get:function(){return this.videoRender.wasmInitCost}},{key:"fps",get:function(){return this.videoRender.fps}},{key:"totalSize",get:function(){return this.videoRender.totalSize}},{key:"bitrate",get:function(){return this.videoRender.bitrate}},{key:"gopLength",get:function(){return this.videoRender.gopLength}},{key:"currentTime",get:function(){return this.noAudio?this.paused?this.videoRender.nextFrameTime:this.videoRender.currentTime:this.audioRender.currentTime}},{key:"timelinePosition",get:function(){return this.noAudio?performance.now()/1e3:this.audioRender.currentTime}},{key:"canvas",get:function(){return this.videoRender.canvas}},{key:"readyState",get:function(){return this.videoRender.readyState}},{key:"buffered",get:function(){var e=this;return this.noAudio?this.videoRender.buffered:this.isLive?this.audioRender.buffered:{length:this.audioRender.buffered.length,start:function(t){return Math.max(e.audioRender.buffered.start(t),e.videoRender.buffered.start(t))},end:function(t){return Math.min(e.audioRender.buffered.end(t),e.videoRender.buffered.end(t))}}}},{key:"duration",get:function(){return this.noAudio?this.videoRender.duration:this.isLive?this.audioRender.duration:Math.min(this.audioRender.duration,this.videoRender.duration)}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e}},{key:"lowlatency",get:function(){return this._parent.lowlatency}},{key:"decoderMode",get:function(){return this.videoRender.decoderMode}},{key:"currentAudioCanAutoplay",get:function(){return this.audioRender.audioCanAutoplay}},{key:"_getController",value:function(e,t){return e?new VideoRenderFromVideo(t,this):new VideoRenderWithDecoder(t,this)}},{key:"_checkInBuffer",value:function(){for(var e=this.buffered,t=0,r=e.length;t<r;t++)if(e.start(t)<=this.currentTime+TOLERANCE&&e.end(t)>=this.currentTime)return!0;return!1}},{key:"_resetReadyStatus",value:function(){this._readyStatus.audio=!1,this._readyStatus.video=!1}},{key:"_bindEvent",value:function(){var e=this;this.on(Events.DECODE_EVENTS.REMUX,(function(t){e.videoRender.setRemux(t)})),this.on(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME_END,(function(t){e.emit(Events.DECODE_EVENTS.CHASE_AUDIO_FRAME,t)})),this.audioRender.on(Events.AUDIO.AUDIO_READY,(function(){logger.log(e.TAG,"audio ready! seeking=",e._seeking),e._seeking&&_setTimeout((function(){try{var t=e.videoRender.getSeekStartPosition(e.currentTime,1/0);if(e.audioRender.isMse&&t)return getDecodeCapacaity().preciseSeek>e.duration&&e.currentTime>TOLERANCE?(e.audioRender.seekNoSideEffect({position:e.currentTime+TOLERANCE}),void e.videoRender.ajustSeekTime(e.currentTime,!0)):(e.audioRender.seekNoSideEffect({position:t.position+TOLERANCE}),void e.videoRender.ajustSeekTime(t.position));e.videoRender.ajustSeekTime(e.currentTime)}catch(e){}}),10),e._readyStatus.video&&e._startRender(),e._readyStatus.audio=!0,e._startPlayed||e.analyse.addAudioReady()})),this.audioRender.on(Events.AUDIO.AUDIO_NOT_ALLOWED_AUTOPLAY,(function(){e._emitReady&&e.pause()})),this.audioRender.on(Events.AUDIO.AUDIO_WAITING,(function(){!e.noAudio&&e.currentTime&&(logger.warn(e.TAG,"lack data, audio waiting,currentTime:",e.currentTime),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.TIMEUPDATE),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.WAITING),e.emit(Events.TIMELINE.DO_PAUSE),e._readyStatus.audio=!1)})),this.videoRender.on(Events.VIDEO.VIDEO_WAITING,(function(){logger.warn(e.TAG,"lack data, video waiting"),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.WAITING),e.emit(Events.TIMELINE.DO_PAUSE),e._readyStatus.video=!1})),this.videoRender.on(Events.VIDEO.VIDEO_READY,(function(){logger.log(e.TAG,"video ready!"),e._startPlayed||e.analyse.addVideoReady(),e._readyStatus.audio&&e._startRender("video"),e._readyStatus.video=!0})),this.videoRender.on(Events.VIDEO.DECODE_LOW_FPS,(function(){e.currentTime<2||(e.analyse.increaseLowDecodeCount(),e._lowdecodeEmited||(updateLowdecodeVV(),e._lowdecodeEmited=!0),e.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LOW_DECODE))})),this.on(Events.TIMELINE.SINGLE_TRACK,(function(t){e._singleTrack=t,1!==t&&2!==t||(e._readyStatus.audio=!0),3===t&&(e._readyStatus.video=!0),e.emit(Events.TIMELINE.SYNC_DTS,0)})),this.on(Events.TIMELINE.DESTROY,(function(){e.removeAllListeners(),e.videoRender=null,e.audioRender=null})),this.on(Events.TIMELINE.DO_PLAY,(function(){e.emit(Events.TIMELINE.START_RENDER),e._paused=!1,e._lastSeekTime=1e-4,e.noAudio&&e.emit(Events.TIMELINE.SYNC_DTS,0)}))}},{key:"_startRender",value:function(e){if(!this._parent.error&&this.videoRender){if(this.noAudio&&this.emit(Events.TIMELINE.SYNC_DTS,0),this.videoRender.forceRender(),!this.isLive&&this._paused&&this.seeking&&this._checkInBuffer())return logger.log(this.TAG,"set seeking = false"),this._seeking=!1,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.SEEKED),void logger.groupEnd();this._startPlayed||(this.analyse.addFirstframe(),this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.LOADEDDATA),this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.FIRST_FRAME),this._startPlayed=!0),logger.log(this.TAG,"emit canplay"),this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.CANPLAY),this._parent.autoplay?(logger.warn(this.TAG,"startRender: time=",this.currentTime,"paused:",this.paused,"seeking:",this.seeking),this.emit(Events.TIMELINE.START_RENDER,e)):(this._parent.autoplay=!0,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PAUSE)),this.emit(Events.TIMELINE.READY),this._emitReady=!0,this._seeking&&this._checkInBuffer()&&(logger.log(this.TAG,"set seeking = false"),this._seeking=!1,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.SEEKED),logger.groupEnd())}}},{key:"_checkHlsTracks",value:function(e){if(!(null==e?void 0:e.samples[0])){if(!this.buffered.length){var t=new Error("lack video sample");t.code=3,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,t)}return!1}return!0}},{key:"appendBuffer",value:function(e,t){this.emit(Events.TIMELINE.APPEND_CHUNKS,e,t),this.noAudio&&this._seeking&&this.videoRender.ajustSeekTime(this.currentTime)}},{key:"play",value:function(){var e=this;return new _Promise((function(t,r){var n=e.currentAudioCanAutoplay;e.noAudio?n=!0:e.audioRender&&e.audioRender.resume().then((function(){var t;if(logger.log(e.TAG,_concatInstanceProperty(t="audio render resumed, pause status: ".concat(e._paused,", audioCanAutoplay:")).call(t,e.currentAudioCanAutoplay)),e._paused||!e.currentAudioCanAutoplay)return n=!1,void e.emit(Events.TIMELINE.DO_PAUSE);n=!0})).catch((function(){})),_setTimeout((function(){var o;return logger.log(e.TAG,_concatInstanceProperty(o="play() timer done, resumed=".concat(n,", paused=")).call(o,e.paused)),n?e.videoRender&&!e.videoRender.canAutoPlay?(console.warn("video render an't autoplay"),e.pause(),void t()):(e._paused=!1,void t()):e.paused?void 0:(logger.log(e.TAG,"audioCtx can't autoplay"),e.pause(),void r({name:"NotAllowedError"}))}),e.audioRender.isMse?10:60)}))}},{key:"pause",value:function(){this._paused||!this.ready&&!this._seeking||(this.emit(Events.TIMELINE.DO_PAUSE),this._paused=!0,this.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.PAUSE))}},{key:"seek",value:function(e){var t=this;if(this._seeking&&logger.groupEnd(),this.isLive){if(this.currentTime<TOLERANCE||!this.currentAudioCanAutoplay||this.paused)return;var r=this.videoRender.getSeekStartPosition(e,this._parent.preloadTime+1);if(r){if(r.position<this.currentTime)return;var n=this.audioRender.canSeek(r.position),o=this.videoRender.canSeek(r);if(!n||!o)return void logger.log(this.TAG,"seek, !!!!!!!!!can not seek, audioCanSeek:",n,"videoCanSeek:",o);logger.warn(this.TAG,"seek, chase frame to time: ",r.position,"currentTime:",this.currentTime,"duration:",this.duration),this.videoRender.videoDecode?(this.audioRender.doPause(),r.position=r.position-1.5,this.emit(Events.DECODE_EVENTS.CHASE_VIDEO_FRAME,r)):this.emit(Events.TIMELINE.CHASE_FRAME,r)}}else this._lastSeekTime!==e&&(e&&Math.abs(this._lastSeekTime-e)<=.2||(this._lastSeekTime=e,e>=this.duration&&(e=this.duration-1),e<0&&(e=0),logger.group(this.TAG,"start seek to:".concat(e,", set seeking status=true")),this._seeking=!0,this.videoRender.setSeekingStatus(!0),this.noAudio?(this.emit(Events.TIMELINE.SYNC_DTS,this.videoRender.getDtsOfTime(e)),this.videoRender.ajustSeekTime(e)):this._resetReadyStatus(),this.emit(Events.TIMELINE.DO_SEEK,e),new _Promise((function(e){t.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.SEEKING),e()}))))}}]),r}(),DESCRIPTORS$1=descriptors$1,uncurryThis$2=functionUncurryThis$1,objectKeys$1=objectKeys$8,toIndexedObject$1=toIndexedObject$n,$propertyIsEnumerable$1=objectPropertyIsEnumerable$1.f,propertyIsEnumerable$1=uncurryThis$2($propertyIsEnumerable$1),push$1=uncurryThis$2([].push),createMethod$1=function(e){return function(t){for(var r,n=toIndexedObject$1(t),o=objectKeys$1(n),i=o.length,a=0,s=[];i>a;)r=o[a++],DESCRIPTORS$1&&!propertyIsEnumerable$1(n,r)||push$1(s,e?[r,n[r]]:n[r]);return s}},objectToArray$1={entries:createMethod$1(!0),values:createMethod$1(!1)},$$2=_export$1,$entries$1=objectToArray$1.entries;$$2({target:"Object",stat:!0},{entries:function(e){return $entries$1(e)}});var path=path$w,entries$5=path.Object.entries,parent$2=entries$5,entries$4=parent$2,parent$1=entries$4,entries$3=parent$1,parent=entries$3,entries$2=parent,entries$1=entries$2,entries5=entries$1,_Object$entries=getDefaultExportFromCjs(entries5),DESCRIPTORS=descriptors,uncurryThis$1=functionUncurryThis,objectKeys=objectKeys$5,toIndexedObject=toIndexedObject$c,$propertyIsEnumerable=objectPropertyIsEnumerable.f,propertyIsEnumerable4=uncurryThis$1($propertyIsEnumerable),push=uncurryThis$1([].push),createMethod=function(e){return function(t){for(var r,n=toIndexedObject(t),o=objectKeys(n),i=o.length,a=0,s=[];i>a;)r=o[a++],DESCRIPTORS&&!propertyIsEnumerable4(n,r)||push(s,e?[r,n[r]]:n[r]);return s}},objectToArray={entries:createMethod(!0),values:createMethod(!1)},$$1=_export,$entries=objectToArray.entries;$$1({target:"Object",stat:!0},{entries:function(e){return $entries(e)}});var $=_export,uncurryThis=functionUncurryThis,toIntegerOrInfinity=toIntegerOrInfinity$d,thisNumberValue=thisNumberValue$2,$repeat=stringRepeat,fails=fails$M,$RangeError=RangeError,$String=String,floor=Math.floor,repeat2=uncurryThis($repeat),stringSlice=uncurryThis("".slice),nativeToFixed=uncurryThis(1..toFixed),pow=function(e,t,r){return 0===t?r:t%2==1?pow(e,t-1,r*e):pow(e*e,t/2,r)},log=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t},multiply=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=floor(o/1e7)},divide=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=floor(n/t),n=n%t*1e7},dataToString=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=$String(e[t]);r=""===r?n:r+repeat2("0",7-n.length)+n}return r},FORCED=fails((function(){return"0.000"!==nativeToFixed(8e-5,3)||"1"!==nativeToFixed(.9,0)||"1.25"!==nativeToFixed(1.255,2)||"1000000000000000128"!==nativeToFixed(0xde0b6b3a7640080,0)}))||!fails((function(){nativeToFixed({})}));$({target:"Number",proto:!0,forced:FORCED},{toFixed:function(e){var t,r,n,o,i=thisNumberValue(this),a=toIntegerOrInfinity(e),s=[0,0,0,0,0,0],c="",l="0";if(a<0||a>20)throw $RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return $String(i);if(i<0&&(c="-",i=-i),i>1e-21)if(r=(t=log(i*pow(2,69,1))-69)<0?i*pow(2,-t,1):i/pow(2,t,1),r*=4503599627370496,(t=52-t)>0){for(multiply(s,0,r),n=a;n>=7;)multiply(s,1e7,0),n-=7;for(multiply(s,pow(10,n,1),0),n=t-1;n>=23;)divide(s,1<<23),n-=23;divide(s,1<<n),multiply(s,1,1),divide(s,2),l=dataToString(s)}else multiply(s,0,r),multiply(s,1<<-t,0),l=dataToString(s)+repeat2("0",a);return l=a>0?c+((o=l.length)<=a?"0."+repeat2("0",a-o)+l:stringSlice(l,0,o-a)+"."+stringSlice(l,o-a)):c+l}});var AnalyseDots={FIRST_DATA:1,AUDIO_MSE_OPEN_START:2,AUDIO_MSE_OPEND:3,AUDIO_FIRSTTIME_APPENDED:4,AUDIO_READY:5,WASM_WORKER_INIT:6,WASM_WORKER_READY:7,FIRST_FRAME_TODECODE:8,VIDEO_READY:9,FIRST_FRAME:10,WAITIGN:11,SEEKING:12,SEEKED:13},AnalyseDotsFlat=_Object$entries(AnalyseDots),Analyse=function(){function e(){_classCallCheck$2(this,e),_defineProperty$2(this,"_dot",[]),_defineProperty$2(this,"_currentLowDecodeCount",0)}return _createClass$2(e,[{key:"getBootStats",value:function(){var e,t,r=(null===(t=this._dot[0])||void 0===t?void 0:t.dot)||0;return _mapInstanceProperty(e=this._dot).call(e,(function(e){return{action:_filterInstanceProperty(AnalyseDotsFlat).call(AnalyseDotsFlat,(function(t){return t[1]===e.action}))[0][1],dot:_parseInt$1(e.dot-r)}}))}},{key:"getStats",value:function(e){var t,r=this.getBootStats();return{bootStats:r,bitrate:Math.abs(e.bitrate/1e3),decodeFps:e.decodeFps,fps:e.fps,playbackRate:e.playbackRate,firstframe:null===(t=_filterInstanceProperty(r).call(r,(function(e){return 10===e.action}))[0])||void 0===t?void 0:t.dot,width:e.videoWidth,height:e.videoHeight,decoderMode:e.decoderMode,vv:getVV(),lowdecodeVV:getLowdecodeVV(),h265FailureRate:Number((100*getLowdecodePercent()).toFixed(2)),currentLowDecodeCount:this._currentLowDecodeCount}}},{key:"seekElapses",value:function(){for(var e=this.getBootStats(),t=[],r=0,n=0,o=e.length;n<o;n++){var i=e[n];i.action===AnalyseDots.SEEKING&&(r=i.dot),i.action===AnalyseDots.SEEKED&&t.push(i.dot-r)}return t}},{key:"addFirstData",value:function(){this._dot.push({action:AnalyseDots.FIRST_DATA,dot:this._getTimestap()})}},{key:"addAudioBoundMedia",value:function(){this._dot.push({action:AnalyseDots.AUDIO_BOUND_MEDIA,dot:this._getTimestap()})}},{key:"addAudioMseOpenStart",value:function(){this._dot.push({action:AnalyseDots.AUDIO_MSE_OPEN_START,dot:this._getTimestap()})}},{key:"addAudioMseOpend",value:function(){this._dot.push({action:AnalyseDots.AUDIO_MSE_OPEND,dot:this._getTimestap()})}},{key:"addAudioFirstTimeAppended",value:function(){this._dot.push({action:AnalyseDots.AUDIO_FIRSTTIME_APPENDED,dot:this._getTimestap()})}},{key:"addAudioReady",value:function(){this._dot.push({action:AnalyseDots.AUDIO_READY,dot:this._getTimestap()})}},{key:"addWasmInit",value:function(){this._dot.push({action:AnalyseDots.WASM_WORKER_INIT,dot:this._getTimestap()})}},{key:"addWasmReady",value:function(){this._dot.push({action:AnalyseDots.WASM_WORKER_READY,dot:this._getTimestap()})}},{key:"addFirstFrameToDecode",value:function(){this._dot.push({action:AnalyseDots.FIRST_FRAME_TODECODE,dot:this._getTimestap()})}},{key:"addVideoReady",value:function(){this._dot.push({action:AnalyseDots.VIDEO_READY,dot:this._getTimestap()})}},{key:"addFirstframe",value:function(){this._dot.push({action:AnalyseDots.FIRST_FRAME,dot:this._getTimestap()})}},{key:"addWaiting",value:function(){this._dot.push({action:AnalyseDots.WAITIGN,dot:this._getTimestap()})}},{key:"addSeeking",value:function(){this._dot.push({action:AnalyseDots.SEEKING,dot:this._getTimestap()})}},{key:"addSeeked",value:function(){this._dot.push({action:AnalyseDots.SEEKED,dot:this._getTimestap()})}},{key:"_getTimestap",value:function(){return performance.now()}},{key:"increaseLowDecodeCount",value:function(){this._currentLowDecodeCount++}},{key:"reset",value:function(){this._currentLowDecodeCount=0,this._dot=[]}}]),e}(),VIDEO_DECODE_MODE_VALUE="7",SINGLE_TRACK_TYPE={LOW_LATENCY:1,NO_AUDIO:2,NO_VIDEO:3},Parent="undefined"!=typeof HTMLElement?HTMLElement:function(){},XGVideo=function(e){_inherits$1(r,Parent);var t=_createSuper$1(r);function r(){var e,n,o;return _classCallCheck$2(this,r),(o=t.call(this)).TAG="XGVideo",o._proxyProps(),o._isLive=!0,o._vMeta=null,o._aMeta=null,o._resizeObserver=null,o._eventsBackup=[],o._hevc="h265"===getDecodeCapacaity().preloadDecoder,o._hevc||(o._degradeVideo=document.createElement("video")),o._debounceSeek=debounce(_bindInstanceProperty(e=o._seek).call(e,_assertThisInitialized$1(o)),300),o._onTouchEnd=_bindInstanceProperty(n=o._onTouchEnd).call(n,_assertThisInitialized$1(o)),o.analyse=new Analyse,o}return _createClass$2(r,[{key:"_proxyProps",value:function(){var e,t=this;_forEachInstanceProperty(e=_Object$getOwnPropertyNames(r.prototype)).call(e,(function(e){if(/^__/.test(e)){var r=e.replace("__","");_Object$defineProperty(t,r,{get:function(){try{return this[e]}catch(e){}return 0},set:function(t){try{this[e]=t}catch(e){}}})}}))}},{key:"addEventListener",value:function(e,t,n){_get(_getPrototypeOf$1(r.prototype),"addEventListener",this).call(this,e,t,n),this._degradeVideo&&this._eventsBackup.push([e,t,n])}},{key:"removeEventListener",value:function(e,t,n){var o;(_get(_getPrototypeOf$1(r.prototype),"removeEventListener",this).call(this,e,t,n),this._degradeVideo)&&(this._eventsBackup=_filterInstanceProperty(o=this._eventsBackup).call(o,(function(r){return!(r.eventName===e&&r.handler===t&&r.capture===n)})))}},{key:"setAttribute",value:function(e,t){var n;_get(_getPrototypeOf$1(r.prototype),"setAttribute",this).call(this,e,t),"src"!==e&&(null===(n=this._degradeVideo)||void 0===n||n.setAttribute(e,t))}},{key:"_init",value:function(){this.analyse.reset(),this.timeline=new TimeLine({volume:this.volume,canvas:this.querySelector("canvas"),videoContext:this.videoContext,videoDecode:this.videoDecode,maxVideoHeight:this.getAttribute("maxVideoHeight"),endLevel:_parseInt$1(this.getAttribute("endLevel"))},this),logger.log(this.TAG,"timeline init"),this._noSleep=new NoSleep,this._logFirstFrame=!1,this._playRequest=null,this._degradeVideoUserGestured=!1,this._bindEvents(),this._vMeta&&!this.videoDecode&&this.setVideoMeta(this._vMeta),this._glCtxOptions&&(this.glCtxOptions=this._glCtxOptions),this.timeline&&(this.innerDegrade&&this.timeline.emit(Events.TIMELINE.INNER_DEGRADE),this.timeline.emit(Events.TIMELINE.SET_PLAY_MODE,this._isLive?"LIVE":"VOD"),this.timeline.emit(Events.TIMELINE.SET_PLAYBACKRATE,this.playbackRate),this.muted=this.muted)}},{key:"_bindEvents",value:function(){var e=this;this.timeline.on(Events.TIMELINE.PLAY_EVENT,(function(t,r){var n;t===VIDEO_EVENTS.LOADEDDATA&&(e.querySelector("canvas")||(logger.log(e.TAG,"_bindEvents, appendChild canvas"),e.appendChild(e.canvas)),e.canvas.style.display="block",null===(n=e.timeline)||void 0===n||n.emit(Events.TIMELINE.SET_PLAYBACKRATE,e.playbackRate));if(t!==VIDEO_EVENTS.LOADEDMETADATA&&t!==VIDEO_EVENTS.RESIZE||_Promise.resolve().then((function(){e.updateVideoPostion()})),t===VIDEO_EVENTS.ERROR){if(logger.warn(e.TAG,"detect error:",null==r?void 0:r.message),e.pause(),e._disabled(!0),e.innerDegrade||5===e.decoderMode)return e.degradeInfo={decodeFps:e.decodeFps,bitrate:e.bitrate,wasmInitCost:e.wasmInitCost,fps:e.fps,url:e.src,msg:null==r?void 0:r.message,decoderMode:e.decoderMode},void e._innerDispatchEvent("lowdecode");e._err=r}if(t===VIDEO_EVENTS.LOW_DECODE)return e._disabled(),e.degradeInfo={decodeFps:e.decodeFps,bitrate:e.bitrate,wasmInitCost:e.wasmInitCost,fps:e.fps,url:e.src,decoderMode:e.decoderMode},void e._innerDispatchEvent(VIDEO_EVENTS_ARR[t],e.degradeInfo);if(t===VIDEO_EVENTS.LARGE_AV_GAP&&(e.unsyncInfo=r),t===VIDEO_EVENTS.ENDED){if(e.paused)return;e.pause()}t===VIDEO_EVENTS.PROGRESS&&e._noSleep.toPlay(),t===VIDEO_EVENTS.WAITING&&e.analyse.addWaiting(),t===VIDEO_EVENTS.SEEKING&&e.analyse.addSeeking(),t===VIDEO_EVENTS.SEEKED&&e.analyse.addSeeked(),e._innerDispatchEvent(VIDEO_EVENTS_ARR[t],r)}))}},{key:"_disabled",value:function(e){(this.innerDegrade||e)&&(e?getDecodeCapacaity().disabledWhenErrorOccur&&persistenceDisabledStatus(1):getDecodeCapacaity().evaluateVVCount||(this.decodeFps/this.fps<=.6&&this.bitrate<2e6?persistenceDisabledStatus(1):persistenceDisabledStatus(2)))}},{key:"degrade",value:function(e){var t,n=this;!!this.querySelector("canvas")?this.replaceChild(this._degradeVideo,this.canvas):this.appendChild(this._degradeVideo),this.destroy(),_forEachInstanceProperty(t=this._eventsBackup).call(t,(function(e){var t,o=_slicedToArray$1(e,3),i=o[0],a=o[1],s=o[2];_get(_getPrototypeOf$1(r.prototype),"removeEventListener",n).call(n,i,a,s),null===(t=n._degradeVideo)||void 0===t||t.addEventListener(i,a,s)})),this._eventsBackup=[],e&&(this._degradeVideo.muted=!1,this._degradeVideo.src=e,this._degradeVideo.load())}},{key:"disconnectedCallback",value:function(){logger.log(this.TAG,"video disconnected"),document.removeEventListener("touchend",this._onTouchEnd,!0),this.destroy(!0),this._resizeObserver&&this._resizeObserver.disconnect(this)}},{key:"connectedCallback",value:function(){var e=this;logger.log(this.TAG,"video connected to document",performance.now()),this.timeline||this._init(),this.style.width="100%",this.style.height="100%",this.style.position="absolute",this.style.left="0px",this.style.top="0px",document.addEventListener("touchend",this._onTouchEnd,!0),ResizeObserver&&(this._resizeObserver=new ResizeObserver((function(t){var r;null!==(r=e.timeline)&&void 0!==r&&r.ready&&e.updateVideoPostion()})),this._resizeObserver.observe(this))}},{key:"_onTouchEnd",value:function(){playSlienceAudio(),this._degradeVideoInteract(),this._noSleep&&this._noSleep.enable()}},{key:"_degradeVideoInteract",value:function(){var e=this;if(this._degradeVideo&&(1===this.innerDegrade||3===this.innerDegrade)){if(this._degradeVideoUserGestured)return;var t=this._degradeVideo.play();t&&t.then((function(){e._degradeVideo.pause(),e._degradeVideoUserGestured=!0})).catch((function(e){console.log("degrade video: ",e.message)}))}}},{key:"play",value:function(e){var t,r,n=this;if(this.timeline){logger.log(this.TAG,_concatInstanceProperty(t=_concatInstanceProperty(r="play() called, ready:".concat(this.timeline.ready,", paused:")).call(r,this.timeline.paused,", force:")).call(t,e)),this._degradeVideoInteract();var o=0;if(this.timeline.ready&&this.timeline.paused||e){if(e=e||this._isLive,this._playRequest=null,!e)return this.timeline.emit(Events.TIMELINE.DO_PLAY),this._innerDispatchEvent("play"),_Promise.resolve();this.destroy(),this._init(),o=_setTimeout((function(){try{n._innerDispatchEvent("waiting")}catch(e){}}),300)}return this._playRequest||!this.timeline.ready||this.timeline.paused?(logger.log(this.TAG,"request play!"),this._playRequest=this._playRequest||new _Promise((function(e,t){n.timeline._paused=!1,n._innerDispatchEvent("play"),n._noSleep.enable(),n.timeline.once("ready",(function(){logger.log(n.TAG,"timeline emit ready"),clearTimeout(o),n.timeline.play().then(e).catch(t).finally((function(){n._playRequest=null}))}))})),this.autoplay=!0,this._playRequest):_Promise.resolve()}}},{key:"pause",value:function(){this._playRequest=null,this.timeline&&this.timeline.pause();try{this._noSleep.disable(),pauseSlienceAudio()}catch(e){}}},{key:"load",value:function(){}},{key:"appendBuffer",value:function(e,t){if(this.timeline&&!this._err){if(!this._logFirstFrame){var r=e&&e.samples[0],n=t&&t.samples[0];if(!r&&!n)return;if(r||n){var o,i,a,s=(null==e?void 0:e.duration)/((null==e?void 0:e.formatTimescale)||1/0),c=(null==t?void 0:t.duration)/((null==t?void 0:t.formatTimescale)||1/0);logger.warn(this.TAG,_concatInstanceProperty(o=_concatInstanceProperty(i=_concatInstanceProperty(a="video firstDts:".concat(r&&r.dts," , audio firstDts:")).call(a,n&&n.dts," videoTrack.duration=")).call(i,s,", audioTrack.duration=")).call(o,c)),this._logFirstFrame=!0,(s||c)&&(this.setPlayMode("VOD"),this.timeline.emit(Events.TIMELINE.SET_PLAY_MODE,this._isLive?"LIVE":"VOD"),this.duration=Math.min(s||c,c||s)),this.analyse.addFirstData()}this.lowlatency&&(logger.warn(this.TAG,"single track! type=",SINGLE_TRACK_TYPE.LOW_LATENCY),this.timeline.emit(Events.TIMELINE.SINGLE_TRACK,SINGLE_TRACK_TYPE.LOW_LATENCY)),t.exist()||(logger.warn(this.TAG,"single track! type=",SINGLE_TRACK_TYPE.NO_AUDIO),this.timeline.emit(Events.TIMELINE.SINGLE_TRACK,SINGLE_TRACK_TYPE.NO_AUDIO)),e.exist()||(logger.warn(this.TAG,"single track! type=",SINGLE_TRACK_TYPE.NO_VIDEO),this.timeline.emit(Events.TIMELINE.SINGLE_TRACK,SINGLE_TRACK_TYPE.NO_VIDEO))}var l,u;if(e.formatTimescale)_forEachInstanceProperty(l=e.samples).call(l,(function(t){t.dts=Math.floor(t.dts/e.formatTimescale*1e3),t.pts=Math.floor(t.pts/e.formatTimescale*1e3)}));if(t.formatTimescale)_forEachInstanceProperty(u=t.samples).call(u,(function(e){e.dts=Math.floor(e.dts/t.formatTimescale*1e3),e.pts=Math.floor(e.pts/t.formatTimescale*1e3)}));this.timeline.appendBuffer(e,t)}}},{key:"setAudioMeta",value:function(e){this._aMeta=e,this.timeline.emit(Events.TIMELINE.SET_METADATA,"audio",e)}},{key:"setVideoMeta",value:function(e){!this._isLive&&this._vMeta||(this.timeline.emit(Events.TIMELINE.SET_METADATA,"video",e),this._vMeta=e)}},{key:"setDecodeMode",value:function(e){this.setAttribute("decodeMode",e)}},{key:"setPlayMode",value:function(e){this._isLive="LIVE"===e}},{key:"endOfStream",value:function(){var e;this.currentTime&&(null===(e=this.timeline)||void 0===e||e.emit(Events.TIMELINE.END_OF_STREAM))}},{key:"updateVideoPostion",value:function(){var e;null===(e=this.timeline)||void 0===e||e.emit(Events.VIDEO.UPDATE_VIDEO_FILLTYPE,this.xgfillType,this.containerLayout)}},{key:"_innerDispatchEvent",value:function(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t}))}},{key:"destroy",value:function(e){this.timeline&&(this._noSleep.destroy(),logger.log(this.TAG,"call destroy"),this.timeline.emit(Events.TIMELINE.DESTROY,e),this.querySelector("video")&&this.removeChild(this.querySelector("video")),this.timeline=null,this._err=null,this._noSleep=null,this._eventsBackup=null)}},{key:"updateObjectPosition",value:function(e,t){var r;(this.timeline.emit(Events.VIDEO.UPDATE_VIDEO_COVER_POSITION,this.containerLayout,e,t),this._degradeVideo)&&(this._degradeVideo.style.objectPosition=_concatInstanceProperty(r="".concat(100*e,"% ")).call(r,100*t,"%"))}},{key:"setVideoDecode",value:function(){logger.log(this.TAG,"set videoDecode",this.videoDecode),this.videoDecode&&this.timeline&&this.timeline.videoRender&&(this.timeline.videoRender.videoDecode=this.videoDecode)}},{key:"live",get:function(){return this._isLive}},{key:"lowlatency",get:function(){return"true"===this.getAttribute("lowlatency")},set:function(e){this.setAttribute("lowlatency",e)}},{key:"autoplay",get:function(){return"true"===this.getAttribute("autoplay")},set:function(e){this.setAttribute("autoplay",e)}},{key:"__canvas",get:function(){return this.timeline.canvas}},{key:"__ended",get:function(){return Math.abs(this.currentTime-this.duration)<.5}},{key:"__width",get:function(){return this.getAttribute("width")||this.videoWidth},set:function(e){var t="number"==typeof e?"".concat(e,"px"):e;this.setAttribute("width",t),this.canvas.width=e}},{key:"__height",get:function(){return this.getAttribute("height")},set:function(e){var t="number"==typeof e?"".concat(e,"px"):e;this.setAttribute("height",t),this.canvas.height=e}},{key:"__videoWidth",get:function(){return this.canvas.width}},{key:"__videoHeight",get:function(){return this.canvas.height}},{key:"__volume",get:function(){return Number(this.getAttribute("volume"))},set:function(e){e<=0&&(e=0),e>=1&&(e=1),this.setAttribute("volume",e),this.muted||this.timeline.emit(Events.TIMELINE.UPDATE_VOLUME,e)}},{key:"__muted",get:function(){return"true"===this.getAttribute("muted")},set:function(e){this.setAttribute("muted",e),this._degradeVideoInteract(),this._noSleep.enable(),this.timeline.emit(Events.TIMELINE.UPDATE_VOLUME,e?0:this.volume)}},{key:"__currentTime",get:function(){if(!this.timeline)return 0;var e=this.timeline.currentTime,t=this.timeline.duration;return Math.min(e,t)},set:function(e){this._debounceSeek(e)}},{key:"_seek",value:function(e){this.timeline&&(this.buffered.length||this.play(),this.paused&&!this._isLive&&0===e&&this.play(),this.timeline.seek(Number(e)))}},{key:"__duration",get:function(){return this._isLive?1/0:this.timeline.duration},set:function(e){this.timeline.emit(Events.TIMELINE.SET_VIDEO_DURATION,e),this._innerDispatchEvent("durationchange")}},{key:"__seeking",get:function(){return this.timeline.seeking}},{key:"__paused",get:function(){return this.timeline.paused}},{key:"__fps",get:function(){return this.timeline.fps}},{key:"__decodeFps",get:function(){return this.timeline.decodeFps}},{key:"__decodeCost",get:function(){return _parseInt$1(this.timeline.decodeCost)}},{key:"__renderCost",get:function(){return this.timeline.renderCost}},{key:"__wasmInitCost",get:function(){return this.timeline.wasmInitCost}},{key:"__totalSize",get:function(){return this.timeline.totalSize}},{key:"__bitrate",get:function(){return this.timeline.bitrate}},{key:"__gopLength",get:function(){return this.timeline.gopLength}},{key:"__readyState",get:function(){return this.timeline.readyState}},{key:"__buffered",get:function(){return this.timeline.buffered}},{key:"__decoderMode",get:function(){return this.timeline.decoderMode}},{key:"src",get:function(){return this.getAttribute("src")||""},set:function(e){logger.log(this.TAG,"set src ",e),this.setAttribute("src",e),this._vMeta=null,this.play(!0),this.timeline||this._init(),this._innerDispatchEvent("loadstart"),updateVV()}},{key:"currentSrc",get:function(){return this.getAttribute("src")||""}},{key:"playbackRate",get:function(){return _parseFloat$7(this.getAttribute("playbackrate")||1)},set:function(e){var t;this.setAttribute("playbackrate",e),null===(t=this.timeline)||void 0===t||t.emit(Events.TIMELINE.SET_PLAYBACKRATE,e)}},{key:"networkState",get:function(){return 1}},{key:"preloadTime",get:function(){var e=this.getAttribute("preloadtime");if(e){var t=_Number$parseFloat(e);if(t>0&&!_Number$isNaN(t))return t}return 1/0},set:function(e){e&&Number(e)>0&&this.setAttribute("preloadtime",e)}},{key:"innerDegrade",get:function(){var e=this.getAttribute("innerdegrade");return _parseInt$1(e)}},{key:"__glCtxOptions",set:function(e){this._glCtxOptions=e,this.timeline.emit(Events.TIMELINE.UPDATE_GL_OPTIONS,e)}},{key:"__error",get:function(){return this._err},set:function(e){this.timeline.emit(Events.TIMELINE.PLAY_EVENT,VIDEO_EVENTS.ERROR,e)}},{key:"degradeVideo",get:function(){return this._degradeVideo}},{key:"degradeInfo",get:function(){return this._deradeInfo},set:function(e){this._deradeInfo=e}},{key:"unsyncInfo",get:function(){return this._unsyncInfo},set:function(e){this._unsyncInfo=e}},{key:"xgfillType",get:function(){return this.parentNode.getAttribute("data-xgfill")}},{key:"containerLayout",get:function(){var e=this.parentNode;return{width:e.clientWidth,height:e.clientHeight}}},{key:"videoDecode",get:function(){return this.getAttribute("decodeMode")===VIDEO_DECODE_MODE_VALUE}},{key:"audioMedia",get:function(){var e,t;return null===(e=this.timeline)||void 0===e||null===(t=e.audioRender)||void 0===t?void 0:t.media}},{key:"getStats",value:function(){return this.analyse.getStats(this)}},{key:"getSeekElapses",value:function(){return this.analyse.seekElapses()}},{key:"dump",value:function(){var e,t,r=this.buffered;return console.log(r),_mapInstanceProperty(e=_fillInstanceProperty(t=new Array(r.length)).call(t,0)).call(e,(function(e,t){return[r.start(t),r.end(t)]}))}}],[{key:"version",get:function(){return"0.1.16"}},{key:"init",value:function(e){var t=e.h264Url,n=e.h264AsmUrl,o=e.h265AsmUrl,i=e.h265Url,a=e.h265ThreadUrl,s=e.h265SimdUrl;r.h264Url=t,r.h265Url=i,r.h265AsmUrl=o,r.h264AsmUrl=n,r.h265ThreadUrl=a,r.h265SimdUrl=s}},{key:"getDecodeCapacity",value:function(){return getDecodeCapacaity()}},{key:"getDeviceCapacity",value:function(){return getDeviceCapacity()}},{key:"setDecodeCapacity",value:function(e){setDecodeCapacity(e),e.preloadDecoder&&decoderCache.genDecoder().catch((function(){}))}},{key:"genDecoder",value:function(e){return decoderCache.genDecoder(e)}},{key:"cleanDisabled",value:function(){cleanDisabledStatus()}},{key:"isSupported",value:function(){return!!softDecodeSupported()&&!1===getDisabledStatus()}}]),r}();_defineProperty$2(XGVideo,"decoderCache",decoderCache);var H264_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/decoder/1.1.1/h264/decoder.js",ASM_H264_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/decoder/1.1.1/h264/decoder_asm.js",H265_SIMD_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/high/decoder_1656041798666.js",H265_THREAD_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/main/decoder.js",H265_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/base/decoder.js",ASM_H265_DECODER_URL="https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/codec/high/decoder_asm.js";XGVideo.init({h264Url:H264_DECODER_URL,h264AsmUrl:ASM_H264_DECODER_URL,h265Url:H265_DECODER_URL,h265SimdUrl:H265_SIMD_DECODER_URL,h265ThreadUrl:H265_THREAD_DECODER_URL,h265AsmUrl:ASM_H265_DECODER_URL}),XGVideo.setEleName=function(e){setEleName(e);var t=function(e){_inherits$1(r,XGVideo);var t=_createSuper$1(r);function r(){return _classCallCheck$2(this,r),t.apply(this,arguments)}return _createClass$2(r)}();customElements.get(getEleName())||customElements.define(getEleName(),t)};try{customElements.get(getEleName())||customElements.define(getEleName(),XGVideo)}catch(e){}var __PLUGIN_NAME__=DynamicModule.PluginXgvideo;export{XGVideo as XGVideoPlugin,__PLUGIN_NAME__};
|
|
2
2
|
//# sourceMappingURL=esm/veplayer.plugin.xgvideo.production.js.map
|