@volcengine/veplayer-plugin 2.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +1 -0
  2. package/esm/flv.d.ts +3 -0
  3. package/esm/hls.d.ts +3 -0
  4. package/esm/index.d.ts +6 -0
  5. package/esm/index.development.css +63 -0
  6. package/esm/index.development.js +83150 -0
  7. package/esm/index.production.css +1 -0
  8. package/esm/index.production.js +26 -0
  9. package/esm/mp4.d.ts +3 -0
  10. package/esm/rtm.d.ts +3 -0
  11. package/esm/shaka.d.ts +3 -0
  12. package/esm/veplayer.plugin.flv.development.js +17622 -0
  13. package/esm/veplayer.plugin.flv.production.js +2 -0
  14. package/esm/veplayer.plugin.hls.development.js +21398 -0
  15. package/esm/veplayer.plugin.hls.production.js +2 -0
  16. package/esm/veplayer.plugin.mp4.development.js +33148 -0
  17. package/esm/veplayer.plugin.mp4.production.js +2 -0
  18. package/esm/veplayer.plugin.rtm.development.js +5469 -0
  19. package/esm/veplayer.plugin.rtm.production.js +2 -0
  20. package/esm/veplayer.plugin.shaka.development.js +15890 -0
  21. package/esm/veplayer.plugin.shaka.production.js +20 -0
  22. package/esm/veplayer.plugin.time.shift.development.css +63 -0
  23. package/esm/veplayer.plugin.time.shift.development.js +339 -0
  24. package/esm/veplayer.plugin.time.shift.production.css +1 -0
  25. package/esm/veplayer.plugin.time.shift.production.js +2 -0
  26. package/esm/veplayer.plugin.xgvideo.development.js +19094 -0
  27. package/esm/veplayer.plugin.xgvideo.production.js +2 -0
  28. package/esm/xgvideo.d.ts +3 -0
  29. package/package.json +155 -0
  30. package/umd/flv.d.ts +3 -0
  31. package/umd/hls.d.ts +3 -0
  32. package/umd/index.d.ts +6 -0
  33. package/umd/index.development.js +82776 -0
  34. package/umd/index.production.js +1 -0
  35. package/umd/mp4.d.ts +3 -0
  36. package/umd/rtm.d.ts +3 -0
  37. package/umd/shaka.d.ts +3 -0
  38. package/umd/veplayer.plugin.flv.development.js +17625 -0
  39. package/umd/veplayer.plugin.flv.production.js +1 -0
  40. package/umd/veplayer.plugin.hls.development.js +21402 -0
  41. package/umd/veplayer.plugin.hls.production.js +1 -0
  42. package/umd/veplayer.plugin.mp4.development.js +33152 -0
  43. package/umd/veplayer.plugin.mp4.production.js +1 -0
  44. package/umd/veplayer.plugin.rtm.development.js +5473 -0
  45. package/umd/veplayer.plugin.rtm.production.js +1 -0
  46. package/umd/veplayer.plugin.shaka.development.js +15894 -0
  47. package/umd/veplayer.plugin.shaka.production.js +1 -0
  48. package/umd/veplayer.plugin.time.shift.development.css +63 -0
  49. package/umd/veplayer.plugin.time.shift.development.js +342 -0
  50. package/umd/veplayer.plugin.time.shift.production.css +1 -0
  51. package/umd/veplayer.plugin.time.shift.production.js +1 -0
  52. package/umd/veplayer.plugin.xgvideo.development.js +19098 -0
  53. package/umd/veplayer.plugin.xgvideo.production.js +1 -0
  54. package/umd/xgvideo.d.ts +3 -0
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_PLUGIN_HLS__=t()}(this,(function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(){r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=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(L){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),s=new T(n||[]);return i(a,"_invoke",{value:w(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l;var h={};function d(){}function p(){}function v(){}var y={};c(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(A([])));m&&m!==t&&n.call(m,a)&&(y=m);var b=v.prototype=d.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,o,a,s){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function w(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=k(a,r);if(s){if(s===h)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 u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.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,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function x(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(b),c(b,u,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),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=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):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),h},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),E(r),h}},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 i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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,b(n.key),n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(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&&h(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(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 d(e)}(this,r)}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(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 b(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w=function(e){return e&&e.Math==Math&&e},k=w("object"==typeof globalThis&&globalThis)||w("object"==typeof window&&window)||w("object"==typeof self&&self)||w("object"==typeof _&&_)||function(){return this}()||Function("return this")(),x={},E=function(e){try{return!!e()}catch(t){return!0}},T=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=!E((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),O=A,L=Function.prototype.call,P=O?L.bind(L):function(){return L.apply(L,arguments)},C={},R={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,D=I&&!R.call({1:2},1);C.f=D?function(e){var t=I(this,e);return!!t&&t.enumerable}:R;var U,j,M=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=A,N=Function.prototype,F=N.call,V=B&&N.bind.bind(F,F),z=B?V:function(e){return function(){return F.apply(e,arguments)}},G=z,H=G({}.toString),q=G("".slice),Y=function(e){return q(H(e),8,-1)},W=E,K=Y,$=Object,X=z("".split),Q=W((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==K(e)?X(e,""):$(e)}:$,J=function(e){return null==e},Z=J,ee=TypeError,te=function(e){if(Z(e))throw ee("Can't call method on "+e);return e},re=Q,ne=te,ie=function(e){return re(ne(e))},oe="object"==typeof document&&document.all,ae={all:oe,IS_HTMLDDA:void 0===oe&&void 0!==oe},se=ae.all,ue=ae.IS_HTMLDDA?function(e){return"function"==typeof e||e===se}:function(e){return"function"==typeof e},ce=ue,le=ae.all,fe=ae.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:ce(e)||e===le}:function(e){return"object"==typeof e?null!==e:ce(e)},he=k,de=ue,pe=function(e,t){return arguments.length<2?(r=he[e],de(r)?r:void 0):he[e]&&he[e][t];var r},ve=z({}.isPrototypeOf),ye=pe("navigator","userAgent")||"",ge=k,me=ye,be=ge.process,_e=ge.Deno,Se=be&&be.versions||_e&&_e.version,we=Se&&Se.v8;we&&(j=(U=we.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!j&&me&&(!(U=me.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=me.match(/Chrome\/(\d+)/))&&(j=+U[1]);var ke=j,xe=ke,Ee=E,Te=!!Object.getOwnPropertySymbols&&!Ee((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xe&&xe<41})),Ae=Te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Oe=pe,Le=ue,Pe=ve,Ce=Object,Re=Ae?function(e){return"symbol"==typeof e}:function(e){var t=Oe("Symbol");return Le(t)&&Pe(t.prototype,Ce(e))},Ie=String,De=function(e){try{return Ie(e)}catch(t){return"Object"}},Ue=ue,je=De,Me=TypeError,Be=function(e){if(Ue(e))return e;throw Me(je(e)+" is not a function")},Ne=Be,Fe=J,Ve=function(e,t){var r=e[t];return Fe(r)?void 0:Ne(r)},ze=P,Ge=ue,He=fe,qe=TypeError,Ye={exports:{}},We=k,Ke=Object.defineProperty,$e=function(e,t){try{Ke(We,e,{value:t,configurable:!0,writable:!0})}catch(r){We[e]=t}return t},Xe=$e,Qe="__core-js_shared__",Je=k[Qe]||Xe(Qe,{}),Ze=Je;(Ye.exports=function(e,t){return Ze[e]||(Ze[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 et=Ye.exports,tt=te,rt=Object,nt=function(e){return rt(tt(e))},it=nt,ot=z({}.hasOwnProperty),at=Object.hasOwn||function(e,t){return ot(it(e),t)},st=z,ut=0,ct=Math.random(),lt=st(1..toString),ft=function(e){return"Symbol("+(void 0===e?"":e)+")_"+lt(++ut+ct,36)},ht=k,dt=at,pt=ft,vt=Te,yt=Ae,gt=et("wks"),mt=ht.Symbol,bt=mt&&mt.for,_t=yt?mt:mt&&mt.withoutSetter||pt,St=function(e){if(!dt(gt,e)||!vt&&"string"!=typeof gt[e]){var t="Symbol."+e;vt&&dt(mt,e)?gt[e]=mt[e]:gt[e]=yt&&bt?bt(t):_t(t)}return gt[e]},wt=P,kt=fe,xt=Re,Et=Ve,Tt=function(e,t){var r,n;if("string"===t&&Ge(r=e.toString)&&!He(n=ze(r,e)))return n;if(Ge(r=e.valueOf)&&!He(n=ze(r,e)))return n;if("string"!==t&&Ge(r=e.toString)&&!He(n=ze(r,e)))return n;throw qe("Can't convert object to primitive value")},At=TypeError,Ot=St("toPrimitive"),Lt=function(e,t){if(!kt(e)||xt(e))return e;var r,n=Et(e,Ot);if(n){if(void 0===t&&(t="default"),r=wt(n,e,t),!kt(r)||xt(r))return r;throw At("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tt(e,t)},Pt=Lt,Ct=Re,Rt=function(e){var t=Pt(e,"string");return Ct(t)?t:t+""},It=fe,Dt=k.document,Ut=It(Dt)&&It(Dt.createElement),jt=function(e){return Ut?Dt.createElement(e):{}},Mt=jt,Bt=!T&&!E((function(){return 7!=Object.defineProperty(Mt("div"),"a",{get:function(){return 7}}).a})),Nt=T,Ft=P,Vt=C,zt=M,Gt=ie,Ht=Rt,qt=at,Yt=Bt,Wt=Object.getOwnPropertyDescriptor;x.f=Nt?Wt:function(e,t){if(e=Gt(e),t=Ht(t),Yt)try{return Wt(e,t)}catch(r){}if(qt(e,t))return zt(!Ft(Vt.f,e,t),e[t])};var Kt={},$t=T&&E((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Xt=fe,Qt=String,Jt=TypeError,Zt=function(e){if(Xt(e))return e;throw Jt(Qt(e)+" is not an object")},er=T,tr=Bt,rr=$t,nr=Zt,ir=Rt,or=TypeError,ar=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ur="enumerable",cr="configurable",lr="writable";Kt.f=er?rr?function(e,t,r){if(nr(e),t=ir(t),nr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&lr in r&&!r[lr]){var n=sr(e,t);n&&n[lr]&&(e[t]=r.value,r={configurable:cr in r?r[cr]:n[cr],enumerable:ur in r?r[ur]:n[ur],writable:!1})}return ar(e,t,r)}:ar:function(e,t,r){if(nr(e),t=ir(t),nr(r),tr)try{return ar(e,t,r)}catch(n){}if("get"in r||"set"in r)throw or("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var fr=Kt,hr=M,dr=T?function(e,t,r){return fr.f(e,t,hr(1,r))}:function(e,t,r){return e[t]=r,e},pr={exports:{}},vr=T,yr=at,gr=Function.prototype,mr=vr&&Object.getOwnPropertyDescriptor,br=yr(gr,"name"),_r={EXISTS:br,PROPER:br&&"something"===function(){}.name,CONFIGURABLE:br&&(!vr||vr&&mr(gr,"name").configurable)},Sr=ue,wr=Je,kr=z(Function.toString);Sr(wr.inspectSource)||(wr.inspectSource=function(e){return kr(e)});var xr,Er,Tr,Ar=wr.inspectSource,Or=ue,Lr=k.WeakMap,Pr=Or(Lr)&&/native code/.test(String(Lr)),Cr=ft,Rr=et("keys"),Ir=function(e){return Rr[e]||(Rr[e]=Cr(e))},Dr={},Ur=Pr,jr=k,Mr=fe,Br=dr,Nr=at,Fr=Je,Vr=Ir,zr=Dr,Gr="Object already initialized",Hr=jr.TypeError,qr=jr.WeakMap;if(Ur||Fr.state){var Yr=Fr.state||(Fr.state=new qr);Yr.get=Yr.get,Yr.has=Yr.has,Yr.set=Yr.set,xr=function(e,t){if(Yr.has(e))throw Hr(Gr);return t.facade=e,Yr.set(e,t),t},Er=function(e){return Yr.get(e)||{}},Tr=function(e){return Yr.has(e)}}else{var Wr=Vr("state");zr[Wr]=!0,xr=function(e,t){if(Nr(e,Wr))throw Hr(Gr);return t.facade=e,Br(e,Wr,t),t},Er=function(e){return Nr(e,Wr)?e[Wr]:{}},Tr=function(e){return Nr(e,Wr)}}var Kr={set:xr,get:Er,has:Tr,enforce:function(e){return Tr(e)?Er(e):xr(e,{})},getterFor:function(e){return function(t){var r;if(!Mr(t)||(r=Er(t)).type!==e)throw Hr("Incompatible receiver, "+e+" required");return r}}},$r=E,Xr=ue,Qr=at,Jr=T,Zr=_r.CONFIGURABLE,en=Ar,tn=Kr.enforce,rn=Kr.get,nn=Object.defineProperty,on=Jr&&!$r((function(){return 8!==nn((function(){}),"length",{value:8}).length})),an=String(String).split("String"),sn=pr.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),(!Qr(e,"name")||Zr&&e.name!==t)&&(Jr?nn(e,"name",{value:t,configurable:!0}):e.name=t),on&&r&&Qr(r,"arity")&&e.length!==r.arity&&nn(e,"length",{value:r.arity});try{r&&Qr(r,"constructor")&&r.constructor?Jr&&nn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=tn(e);return Qr(n,"source")||(n.source=an.join("string"==typeof t?t:"")),e};Function.prototype.toString=sn((function(){return Xr(this)&&rn(this).source||en(this)}),"toString");var un=pr.exports,cn=ue,ln=Kt,fn=un,hn=$e,dn=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(cn(r)&&fn(r,o,n),n.global)i?e[t]=r:hn(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(a){}i?e[t]=r:ln.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},pn={},vn=Math.ceil,yn=Math.floor,gn=Math.trunc||function(e){var t=+e;return(t>0?yn:vn)(t)},mn=function(e){var t=+e;return t!=t||0===t?0:gn(t)},bn=mn,_n=Math.max,Sn=Math.min,wn=function(e,t){var r=bn(e);return r<0?_n(r+t,0):Sn(r,t)},kn=mn,xn=Math.min,En=function(e){return e>0?xn(kn(e),9007199254740991):0},Tn=En,An=function(e){return Tn(e.length)},On=ie,Ln=wn,Pn=An,Cn=function(e){return function(t,r,n){var i,o=On(t),a=Pn(o),s=Ln(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},Rn={includes:Cn(!0),indexOf:Cn(!1)},In=at,Dn=ie,Un=Rn.indexOf,jn=Dr,Mn=z([].push),Bn=function(e,t){var r,n=Dn(e),i=0,o=[];for(r in n)!In(jn,r)&&In(n,r)&&Mn(o,r);for(;t.length>i;)In(n,r=t[i++])&&(~Un(o,r)||Mn(o,r));return o},Nn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fn=Bn,Vn=Nn.concat("length","prototype");pn.f=Object.getOwnPropertyNames||function(e){return Fn(e,Vn)};var zn={};zn.f=Object.getOwnPropertySymbols;var Gn=pe,Hn=pn,qn=zn,Yn=Zt,Wn=z([].concat),Kn=Gn("Reflect","ownKeys")||function(e){var t=Hn.f(Yn(e)),r=qn.f;return r?Wn(t,r(e)):t},$n=at,Xn=Kn,Qn=x,Jn=Kt,Zn=E,ei=ue,ti=/#|\.prototype\./,ri=function(e,t){var r=ii[ni(e)];return r==ai||r!=oi&&(ei(t)?Zn(t):!!t)},ni=ri.normalize=function(e){return String(e).replace(ti,".").toLowerCase()},ii=ri.data={},oi=ri.NATIVE="N",ai=ri.POLYFILL="P",si=ri,ui=k,ci=x.f,li=dr,fi=dn,hi=$e,di=function(e,t,r){for(var n=Xn(t),i=Jn.f,o=Qn.f,a=0;a<n.length;a++){var s=n[a];$n(e,s)||r&&$n(r,s)||i(e,s,o(t,s))}},pi=si,vi=function(e,t){var r,n,i,o,a,s=e.target,u=e.global,c=e.stat;if(r=u?ui:c?ui[s]||hi(s,{}):(ui[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=ci(r,n))&&a.value:r[n],!pi(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;di(o,i)}(e.sham||i&&i.sham)&&li(o,"sham",!0),fi(r,n,o,e)}},yi=Bn,gi=Nn,mi=Object.keys||function(e){return yi(e,gi)},bi=T,_i=z,Si=P,wi=E,ki=mi,xi=zn,Ei=C,Ti=nt,Ai=Q,Oi=Object.assign,Li=Object.defineProperty,Pi=_i([].concat),Ci=!Oi||wi((function(){if(bi&&1!==Oi({b:1},Oi(Li({},"a",{enumerable:!0,get:function(){Li(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!=Oi({},e)[r]||ki(Oi({},t)).join("")!=n}))?function(e,t){for(var r=Ti(e),n=arguments.length,i=1,o=xi.f,a=Ei.f;n>i;)for(var s,u=Ai(arguments[i++]),c=o?Pi(ki(u),o(u)):ki(u),l=c.length,f=0;l>f;)s=c[f++],bi&&!Si(a,u,s)||(r[s]=u[s]);return r}:Oi,Ri=Ci;vi({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ri},{assign:Ri});var Ii=Y,Di=Array.isArray||function(e){return"Array"==Ii(e)},Ui=TypeError,ji=function(e){if(e>9007199254740991)throw Ui("Maximum allowed index exceeded");return e},Mi=Rt,Bi=Kt,Ni=M,Fi=function(e,t,r){var n=Mi(t);n in e?Bi.f(e,n,Ni(0,r)):e[n]=r},Vi={};Vi[St("toStringTag")]="z";var zi="[object z]"===String(Vi),Gi=zi,Hi=ue,qi=Y,Yi=St("toStringTag"),Wi=Object,Ki="Arguments"==qi(function(){return arguments}()),$i=Gi?qi:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Wi(e),Yi))?r:Ki?qi(t):"Object"==(n=qi(t))&&Hi(t.callee)?"Arguments":n},Xi=z,Qi=E,Ji=ue,Zi=$i,eo=Ar,to=function(){},ro=[],no=pe("Reflect","construct"),io=/^\s*(?:class|function)\b/,oo=Xi(io.exec),ao=!io.exec(to),so=function(e){if(!Ji(e))return!1;try{return no(to,ro,e),!0}catch(t){return!1}},uo=function(e){if(!Ji(e))return!1;switch(Zi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ao||!!oo(io,eo(e))}catch(t){return!0}};uo.sham=!0;var co=!no||Qi((function(){var e;return so(so.call)||!so(Object)||!so((function(){e=!0}))||e}))?uo:so,lo=Di,fo=co,ho=fe,po=St("species"),vo=Array,yo=function(e){var t;return lo(e)&&(t=e.constructor,(fo(t)&&(t===vo||lo(t.prototype))||ho(t)&&null===(t=t[po]))&&(t=void 0)),void 0===t?vo:t},go=function(e,t){return new(yo(e))(0===t?0:t)},mo=E,bo=ke,_o=St("species"),So=function(e){return bo>=51||!mo((function(){var t=[];return(t.constructor={})[_o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},wo=vi,ko=E,xo=Di,Eo=fe,To=nt,Ao=An,Oo=ji,Lo=Fi,Po=go,Co=So,Ro=ke,Io=St("isConcatSpreadable"),Do=Ro>=51||!ko((function(){var e=[];return e[Io]=!1,e.concat()[0]!==e})),Uo=Co("concat"),jo=function(e){if(!Eo(e))return!1;var t=e[Io];return void 0!==t?!!t:xo(e)};wo({target:"Array",proto:!0,arity:1,forced:!Do||!Uo},{concat:function(e){var t,r,n,i,o,a=To(this),s=Po(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(jo(o=-1===t?a:arguments[t]))for(i=Ao(o),Oo(u+i),r=0;r<i;r++,u++)r in o&&Lo(s,u,o[r]);else Oo(u+1),Lo(s,u++,o);return s.length=u,s}});var Mo=$i,Bo=zi?{}.toString:function(){return"[object "+Mo(this)+"]"};zi||dn(Object.prototype,"toString",Bo,{unsafe:!0});var No,Fo,Vo,zo,Go="process"==Y(k.process),Ho=ue,qo=String,Yo=TypeError,Wo=z,Ko=Zt,$o=function(e){if("object"==typeof e||Ho(e))return e;throw Yo("Can't set "+qo(e)+" as a prototype")},Xo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Wo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ko(r),$o(n),t?e(r,n):r.__proto__=n,r}}():void 0),Qo=Kt.f,Jo=at,Zo=St("toStringTag"),ea=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Jo(e,Zo)&&Qo(e,Zo,{configurable:!0,value:t})},ta=pe,ra=Kt,na=T,ia=St("species"),oa=function(e){var t=ta(e),r=ra.f;na&&t&&!t[ia]&&r(t,ia,{configurable:!0,get:function(){return this}})},aa=ve,sa=TypeError,ua=function(e,t){if(aa(t,e))return e;throw sa("Incorrect invocation")},ca=co,la=De,fa=TypeError,ha=function(e){if(ca(e))return e;throw fa(la(e)+" is not a constructor")},da=Zt,pa=ha,va=J,ya=St("species"),ga=function(e,t){var r,n=da(e).constructor;return void 0===n||va(r=da(n)[ya])?t:pa(r)},ma=A,ba=Function.prototype,_a=ba.apply,Sa=ba.call,wa="object"==typeof Reflect&&Reflect.apply||(ma?Sa.bind(_a):function(){return Sa.apply(_a,arguments)}),ka=Y,xa=z,Ea=function(e){if("Function"===ka(e))return xa(e)},Ta=Be,Aa=A,Oa=Ea(Ea.bind),La=function(e,t){return Ta(e),void 0===t?e:Aa?Oa(e,t):function(){return e.apply(t,arguments)}},Pa=pe("document","documentElement"),Ca=z([].slice),Ra=TypeError,Ia=function(e,t){if(e<t)throw Ra("Not enough arguments");return e},Da=/(?:ipad|iphone|ipod).*applewebkit/i.test(ye),Ua=k,ja=wa,Ma=La,Ba=ue,Na=at,Fa=E,Va=Pa,za=Ca,Ga=jt,Ha=Ia,qa=Da,Ya=Go,Wa=Ua.setImmediate,Ka=Ua.clearImmediate,$a=Ua.process,Xa=Ua.Dispatch,Qa=Ua.Function,Ja=Ua.MessageChannel,Za=Ua.String,es=0,ts={},rs="onreadystatechange";try{No=Ua.location}catch(vie){}var ns=function(e){if(Na(ts,e)){var t=ts[e];delete ts[e],t()}},is=function(e){return function(){ns(e)}},os=function(e){ns(e.data)},as=function(e){Ua.postMessage(Za(e),No.protocol+"//"+No.host)};Wa&&Ka||(Wa=function(e){Ha(arguments.length,1);var t=Ba(e)?e:Qa(e),r=za(arguments,1);return ts[++es]=function(){ja(t,void 0,r)},Fo(es),es},Ka=function(e){delete ts[e]},Ya?Fo=function(e){$a.nextTick(is(e))}:Xa&&Xa.now?Fo=function(e){Xa.now(is(e))}:Ja&&!qa?(zo=(Vo=new Ja).port2,Vo.port1.onmessage=os,Fo=Ma(zo.postMessage,zo)):Ua.addEventListener&&Ba(Ua.postMessage)&&!Ua.importScripts&&No&&"file:"!==No.protocol&&!Fa(as)?(Fo=as,Ua.addEventListener("message",os,!1)):Fo=rs in Ga("script")?function(e){Va.appendChild(Ga("script"))[rs]=function(){Va.removeChild(this),ns(e)}}:function(e){setTimeout(is(e),0)});var ss,us,cs,ls,fs,hs,ds,ps,vs={set:Wa,clear:Ka},ys=k,gs=/ipad|iphone|ipod/i.test(ye)&&void 0!==ys.Pebble,ms=/web0s(?!.*chrome)/i.test(ye),bs=k,_s=La,Ss=x.f,ws=vs.set,ks=Da,xs=gs,Es=ms,Ts=Go,As=bs.MutationObserver||bs.WebKitMutationObserver,Os=bs.document,Ls=bs.process,Ps=bs.Promise,Cs=Ss(bs,"queueMicrotask"),Rs=Cs&&Cs.value;Rs||(ss=function(){var e,t;for(Ts&&(e=Ls.domain)&&e.exit();us;){t=us.fn,us=us.next;try{t()}catch(vie){throw us?ls():cs=void 0,vie}}cs=void 0,e&&e.enter()},ks||Ts||Es||!As||!Os?!xs&&Ps&&Ps.resolve?((ds=Ps.resolve(void 0)).constructor=Ps,ps=_s(ds.then,ds),ls=function(){ps(ss)}):Ts?ls=function(){Ls.nextTick(ss)}:(ws=_s(ws,bs),ls=function(){ws(ss)}):(fs=!0,hs=Os.createTextNode(""),new As(ss).observe(hs,{characterData:!0}),ls=function(){hs.data=fs=!fs}));var Is=Rs||function(e){var t={fn:e,next:void 0};cs&&(cs.next=t),us||(us=t,ls()),cs=t},Ds=k,Us=function(e){try{return{error:!1,value:e()}}catch(vie){return{error:!0,value:vie}}},js=function(){this.head=null,this.tail=null};js.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 Ms=js,Bs=k.Promise,Ns="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Fs=!Ns&&!Go&&"object"==typeof window&&"object"==typeof document,Vs=k,zs=Bs,Gs=ue,Hs=si,qs=Ar,Ys=St,Ws=Fs,Ks=Ns,$s=ke;zs&&zs.prototype;var Xs=Ys("species"),Qs=!1,Js=Gs(Vs.PromiseRejectionEvent),Zs={CONSTRUCTOR:Hs("Promise",(function(){var e=qs(zs),t=e!==String(zs);if(!t&&66===$s)return!0;if(!$s||$s<51||!/native code/.test(e)){var r=new zs((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Xs]=n,!(Qs=r.then((function(){}))instanceof n))return!0}return!t&&(Ws||Ks)&&!Js})),REJECTION_EVENT:Js,SUBCLASSING:Qs},eu={},tu=Be,ru=TypeError,nu=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw ru("Bad Promise constructor");t=e,r=n})),this.resolve=tu(t),this.reject=tu(r)};eu.f=function(e){return new nu(e)};var iu,ou,au,su=vi,uu=Go,cu=k,lu=P,fu=dn,hu=Xo,du=ea,pu=oa,vu=Be,yu=ue,gu=fe,mu=ua,bu=ga,_u=vs.set,Su=Is,wu=function(e,t){var r=Ds.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},ku=Us,xu=Ms,Eu=Kr,Tu=Bs,Au=eu,Ou="Promise",Lu=Zs.CONSTRUCTOR,Pu=Zs.REJECTION_EVENT,Cu=Zs.SUBCLASSING,Ru=Eu.getterFor(Ou),Iu=Eu.set,Du=Tu&&Tu.prototype,Uu=Tu,ju=Du,Mu=cu.TypeError,Bu=cu.document,Nu=cu.process,Fu=Au.f,Vu=Fu,zu=!!(Bu&&Bu.createEvent&&cu.dispatchEvent),Gu="unhandledrejection",Hu=function(e){var t;return!(!gu(e)||!yu(t=e.then))&&t},qu=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Xu(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?c(Mu("Promise-chain cycle")):(n=Hu(r))?lu(n,r,u,c):u(r)):c(o)}catch(vie){l&&!i&&l.exit(),c(vie)}},Yu=function(e,t){e.notified||(e.notified=!0,Su((function(){for(var r,n=e.reactions;r=n.get();)qu(r,e);e.notified=!1,t&&!e.rejection&&Ku(e)})))},Wu=function(e,t,r){var n,i;zu?((n=Bu.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),cu.dispatchEvent(n)):n={promise:t,reason:r},!Pu&&(i=cu["on"+e])?i(n):e===Gu&&wu("Unhandled promise rejection",r)},Ku=function(e){lu(_u,cu,(function(){var t,r=e.facade,n=e.value;if($u(e)&&(t=ku((function(){uu?Nu.emit("unhandledRejection",n,r):Wu(Gu,r,n)})),e.rejection=uu||$u(e)?2:1,t.error))throw t.value}))},$u=function(e){return 1!==e.rejection&&!e.parent},Xu=function(e){lu(_u,cu,(function(){var t=e.facade;uu?Nu.emit("rejectionHandled",t):Wu("rejectionhandled",t,e.value)}))},Qu=function(e,t,r){return function(n){e(t,n,r)}},Ju=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Yu(e,!0))},Zu=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Mu("Promise can't be resolved itself");var n=Hu(t);n?Su((function(){var r={done:!1};try{lu(n,t,Qu(Zu,r,e),Qu(Ju,r,e))}catch(vie){Ju(r,vie,e)}})):(e.value=t,e.state=1,Yu(e,!1))}catch(vie){Ju({done:!1},vie,e)}}};if(Lu&&(ju=(Uu=function(e){mu(this,ju),vu(e),lu(iu,this);var t=Ru(this);try{e(Qu(Zu,t),Qu(Ju,t))}catch(vie){Ju(t,vie)}}).prototype,(iu=function(e){Iu(this,{type:Ou,done:!1,notified:!1,parent:!1,reactions:new xu,rejection:!1,state:0,value:void 0})}).prototype=fu(ju,"then",(function(e,t){var r=Ru(this),n=Fu(bu(this,Uu));return r.parent=!0,n.ok=!yu(e)||e,n.fail=yu(t)&&t,n.domain=uu?Nu.domain:void 0,0==r.state?r.reactions.add(n):Su((function(){qu(n,r)})),n.promise})),ou=function(){var e=new iu,t=Ru(e);this.promise=e,this.resolve=Qu(Zu,t),this.reject=Qu(Ju,t)},Au.f=Fu=function(e){return e===Uu||undefined===e?new ou(e):Vu(e)},yu(Tu)&&Du!==Object.prototype)){au=Du.then,Cu||fu(Du,"then",(function(e,t){var r=this;return new Uu((function(e,t){lu(au,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Du.constructor}catch(vie){}hu&&hu(Du,ju)}su({global:!0,constructor:!0,wrap:!0,forced:Lu},{Promise:Uu}),du(Uu,Ou,!1),pu(Ou);var ec={},tc=ec,rc=St("iterator"),nc=Array.prototype,ic=function(e){return void 0!==e&&(tc.Array===e||nc[rc]===e)},oc=$i,ac=Ve,sc=J,uc=ec,cc=St("iterator"),lc=function(e){if(!sc(e))return ac(e,cc)||ac(e,"@@iterator")||uc[oc(e)]},fc=P,hc=Be,dc=Zt,pc=De,vc=lc,yc=TypeError,gc=function(e,t){var r=arguments.length<2?vc(e):t;if(hc(r))return dc(fc(r,e));throw yc(pc(e)+" is not iterable")},mc=P,bc=Zt,_c=Ve,Sc=function(e,t,r){var n,i;bc(e);try{if(!(n=_c(e,"return"))){if("throw"===t)throw r;return r}n=mc(n,e)}catch(vie){i=!0,n=vie}if("throw"===t)throw r;if(i)throw n;return bc(n),r},wc=La,kc=P,xc=Zt,Ec=De,Tc=ic,Ac=An,Oc=ve,Lc=gc,Pc=lc,Cc=Sc,Rc=TypeError,Ic=function(e,t){this.stopped=e,this.result=t},Dc=Ic.prototype,Uc=function(e,t,r){var n,i,o,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=wc(t,l),y=function(e){return n&&Cc(n,"normal",e),new Ic(!0,e)},g=function(e){return f?(xc(e),p?v(e[0],e[1],y):v(e[0],e[1])):p?v(e,y):v(e)};if(h)n=e.iterator;else if(d)n=e;else{if(!(i=Pc(e)))throw Rc(Ec(e)+" is not iterable");if(Tc(i)){for(o=0,a=Ac(e);a>o;o++)if((s=g(e[o]))&&Oc(Dc,s))return s;return new Ic(!1)}n=Lc(e,i)}for(u=h?e.next:n.next;!(c=kc(u,n)).done;){try{s=g(c.value)}catch(vie){Cc(n,"throw",vie)}if("object"==typeof s&&s&&Oc(Dc,s))return s}return new Ic(!1)},jc=St("iterator"),Mc=!1;try{var Bc=0,Nc={next:function(){return{done:!!Bc++}},return:function(){Mc=!0}};Nc[jc]=function(){return this},Array.from(Nc,(function(){throw 2}))}catch(vie){}var Fc=function(e,t){if(!t&&!Mc)return!1;var r=!1;try{var n={};n[jc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(vie){}return r},Vc=Bs,zc=Zs.CONSTRUCTOR||!Fc((function(e){Vc.all(e).then(void 0,(function(){}))})),Gc=P,Hc=Be,qc=eu,Yc=Us,Wc=Uc;vi({target:"Promise",stat:!0,forced:zc},{all:function(e){var t=this,r=qc.f(t),n=r.resolve,i=r.reject,o=Yc((function(){var r=Hc(t.resolve),o=[],a=0,s=1;Wc(e,(function(e){var u=a++,c=!1;s++,Gc(r,t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var Kc=vi,$c=Zs.CONSTRUCTOR,Xc=Bs,Qc=pe,Jc=ue,Zc=dn,el=Xc&&Xc.prototype;if(Kc({target:"Promise",proto:!0,forced:$c,real:!0},{catch:function(e){return this.then(void 0,e)}}),Jc(Xc)){var tl=Qc("Promise").prototype.catch;el.catch!==tl&&Zc(el,"catch",tl,{unsafe:!0})}var rl=P,nl=Be,il=eu,ol=Us,al=Uc;vi({target:"Promise",stat:!0,forced:zc},{race:function(e){var t=this,r=il.f(t),n=r.reject,i=ol((function(){var i=nl(t.resolve);al(e,(function(e){rl(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var sl=P,ul=eu;vi({target:"Promise",stat:!0,forced:Zs.CONSTRUCTOR},{reject:function(e){var t=ul.f(this);return sl(t.reject,void 0,e),t.promise}});var cl=Zt,ll=fe,fl=eu,hl=function(e,t){if(cl(e),ll(t)&&t.constructor===e)return t;var r=fl.f(e);return(0,r.resolve)(t),r.promise},dl=vi,pl=Zs.CONSTRUCTOR,vl=hl;pe("Promise"),dl({target:"Promise",stat:!0,forced:pl},{resolve:function(e){return vl(this,e)}});var yl=vi,gl=Di,ml=co,bl=fe,_l=wn,Sl=An,wl=ie,kl=Fi,xl=St,El=Ca,Tl=So("slice"),Al=xl("species"),Ol=Array,Ll=Math.max;yl({target:"Array",proto:!0,forced:!Tl},{slice:function(e,t){var r,n,i,o=wl(this),a=Sl(o),s=_l(e,a),u=_l(void 0===t?a:t,a);if(gl(o)&&(r=o.constructor,(ml(r)&&(r===Ol||gl(r.prototype))||bl(r)&&null===(r=r[Al]))&&(r=void 0),r===Ol||void 0===r))return El(o,s,u);for(n=new(void 0===r?Ol:r)(Ll(u-s,0)),i=0;s<u;s++,i++)s in o&&kl(n,i,o[s]);return n.length=i,n}});var Pl=E,Cl=function(e,t){var r=[][e];return!!r&&Pl((function(){r.call(null,t||function(){return 1},1)}))},Rl=vi,Il=Q,Dl=ie,Ul=Cl,jl=z([].join),Ml=Il!=Object,Bl=Ul("join",",");Rl({target:"Array",proto:!0,forced:Ml||!Bl},{join:function(e){return jl(Dl(this),void 0===e?",":e)}});var Nl=La,Fl=Q,Vl=nt,zl=An,Gl=go,Hl=z([].push),ql=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,l,f){for(var h,d,p=Vl(u),v=Fl(p),y=Nl(c,l),g=zl(v),m=0,b=f||Gl,_=t?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((s||m in v)&&(d=y(h=v[m],m,p),e))if(t)_[m]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:Hl(_,h)}else switch(e){case 4:return!1;case 7:Hl(_,h)}return o?-1:n||i?i:_}},Yl={forEach:ql(0),map:ql(1),filter:ql(2),some:ql(3),every:ql(4),find:ql(5),findIndex:ql(6),filterReject:ql(7)},Wl=Yl.map;vi({target:"Array",proto:!0,forced:!So("map")},{map:function(e){return Wl(this,e,arguments.length>1?arguments[1]:void 0)}});var Kl=Zt,$l=Sc,Xl=La,Ql=P,Jl=nt,Zl=function(e,t,r,n){try{return n?t(Kl(r)[0],r[1]):t(r)}catch(vie){$l(e,"throw",vie)}},ef=ic,tf=co,rf=An,nf=Fi,of=gc,af=lc,sf=Array,uf=function(e){var t=Jl(e),r=tf(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Xl(i,n>2?arguments[2]:void 0));var a,s,u,c,l,f,h=af(t),d=0;if(!h||this===sf&&ef(h))for(a=rf(t),s=r?new this(a):sf(a);a>d;d++)f=o?i(t[d],d):t[d],nf(s,d,f);else for(l=(c=of(t,h)).next,s=r?new this:[];!(u=Ql(l,c)).done;d++)f=o?Zl(c,i,[u.value,d],!0):u.value,nf(s,d,f);return s.length=d,s},cf=uf;vi({target:"Array",stat:!0,forced:!Fc((function(e){Array.from(e)}))},{from:cf});var lf=$i,ff=String,hf=function(e){if("Symbol"===lf(e))throw TypeError("Cannot convert a Symbol value to a string");return ff(e)},df=z,pf=mn,vf=hf,yf=te,gf=df("".charAt),mf=df("".charCodeAt),bf=df("".slice),_f=function(e){return function(t,r){var n,i,o=vf(yf(t)),a=pf(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=mf(o,a))<55296||n>56319||a+1===s||(i=mf(o,a+1))<56320||i>57343?e?gf(o,a):n:e?bf(o,a,a+2):i-56320+(n-55296<<10)+65536}},Sf={codeAt:_f(!1),charAt:_f(!0)},wf={},kf=T,xf=$t,Ef=Kt,Tf=Zt,Af=ie,Of=mi;wf.f=kf&&!xf?Object.defineProperties:function(e,t){Tf(e);for(var r,n=Af(t),i=Of(t),o=i.length,a=0;o>a;)Ef.f(e,r=i[a++],n[r]);return e};var Lf,Pf=Zt,Cf=wf,Rf=Nn,If=Dr,Df=Pa,Uf=jt,jf="prototype",Mf="script",Bf=Ir("IE_PROTO"),Nf=function(){},Ff=function(e){return"<"+Mf+">"+e+"</"+Mf+">"},Vf=function(e){e.write(Ff("")),e.close();var t=e.parentWindow.Object;return e=null,t},zf=function(){try{Lf=new ActiveXObject("htmlfile")}catch(vie){}var e,t,r;zf="undefined"!=typeof document?document.domain&&Lf?Vf(Lf):(t=Uf("iframe"),r="java"+Mf+":",t.style.display="none",Df.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Ff("document.F=Object")),e.close(),e.F):Vf(Lf);for(var n=Rf.length;n--;)delete zf[jf][Rf[n]];return zf()};If[Bf]=!0;var Gf,Hf,qf,Yf=Object.create||function(e,t){var r;return null!==e?(Nf[jf]=Pf(e),r=new Nf,Nf[jf]=null,r[Bf]=e):r=zf(),void 0===t?r:Cf.f(r,t)},Wf=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Kf=at,$f=ue,Xf=nt,Qf=Wf,Jf=Ir("IE_PROTO"),Zf=Object,eh=Zf.prototype,th=Qf?Zf.getPrototypeOf:function(e){var t=Xf(e);if(Kf(t,Jf))return t[Jf];var r=t.constructor;return $f(r)&&t instanceof r?r.prototype:t instanceof Zf?eh:null},rh=E,nh=ue,ih=fe,oh=th,ah=dn,sh=St("iterator"),uh=!1;[].keys&&("next"in(qf=[].keys())?(Hf=oh(oh(qf)))!==Object.prototype&&(Gf=Hf):uh=!0),(!ih(Gf)||rh((function(){var e={};return Gf[sh].call(e)!==e})))&&(Gf={}),nh(Gf[sh])||ah(Gf,sh,(function(){return this}));var ch={IteratorPrototype:Gf,BUGGY_SAFARI_ITERATORS:uh},lh=ch.IteratorPrototype,fh=Yf,hh=M,dh=ea,ph=ec,vh=function(){return this},yh=function(e,t,r,n){var i=t+" Iterator";return e.prototype=fh(lh,{next:hh(+!n,r)}),dh(e,i,!1),ph[i]=vh,e},gh=vi,mh=P,bh=ue,_h=yh,Sh=th,wh=Xo,kh=ea,xh=dr,Eh=dn,Th=ec,Ah=_r.PROPER,Oh=_r.CONFIGURABLE,Lh=ch.IteratorPrototype,Ph=ch.BUGGY_SAFARI_ITERATORS,Ch=St("iterator"),Rh="keys",Ih="values",Dh="entries",Uh=function(){return this},jh=function(e,t,r,n,i,o,a){_h(r,t,n);var s,u,c,l=function(e){if(e===i&&v)return v;if(!Ph&&e in d)return d[e];switch(e){case Rh:case Ih:case Dh:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[Ch]||d["@@iterator"]||i&&d[i],v=!Ph&&p||l(i),y="Array"==t&&d.entries||p;if(y&&(s=Sh(y.call(new e)))!==Object.prototype&&s.next&&(Sh(s)!==Lh&&(wh?wh(s,Lh):bh(s[Ch])||Eh(s,Ch,Uh)),kh(s,f,!0)),Ah&&i==Ih&&p&&p.name!==Ih&&(Oh?xh(d,"name",Ih):(h=!0,v=function(){return mh(p,this)})),i)if(u={values:l(Ih),keys:o?v:l(Rh),entries:l(Dh)},a)for(c in u)(Ph||h||!(c in d))&&Eh(d,c,u[c]);else gh({target:t,proto:!0,forced:Ph||h},u);return d[Ch]!==v&&Eh(d,Ch,v,{name:i}),Th[t]=v,u},Mh=function(e,t){return{value:e,done:t}},Bh=Sf.charAt,Nh=hf,Fh=Kr,Vh=jh,zh=Mh,Gh="String Iterator",Hh=Fh.set,qh=Fh.getterFor(Gh);Vh(String,"String",(function(e){Hh(this,{type:Gh,string:Nh(e),index:0})}),(function(){var e,t=qh(this),r=t.string,n=t.index;return n>=r.length?zh(void 0,!0):(e=Bh(r,n),t.index+=e.length,zh(e,!1))}));var Yh=function(e){try{return!!e()}catch(vie){return!0}},Wh=!Yh((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Kh=Wh,$h=Function.prototype,Xh=$h.call,Qh=Kh&&$h.bind.bind(Xh,Xh),Jh=Kh?Qh:function(e){return function(){return Xh.apply(e,arguments)}},Zh=Jh({}.isPrototypeOf),ed=function(e){return e&&e.Math==Math&&e},td=ed("object"==typeof globalThis&&globalThis)||ed("object"==typeof window&&window)||ed("object"==typeof self&&self)||ed("object"==typeof _&&_)||function(){return this}()||_||Function("return this")(),rd=Wh,nd=Function.prototype,id=nd.apply,od=nd.call,ad="object"==typeof Reflect&&Reflect.apply||(rd?od.bind(id):function(){return od.apply(id,arguments)}),sd=Jh,ud=sd({}.toString),cd=sd("".slice),ld=function(e){return cd(ud(e),8,-1)},fd=ld,hd=Jh,dd=function(e){if("Function"===fd(e))return hd(e)},pd="object"==typeof document&&document.all,vd={all:pd,IS_HTMLDDA:void 0===pd&&void 0!==pd},yd=vd.all,gd=vd.IS_HTMLDDA?function(e){return"function"==typeof e||e===yd}:function(e){return"function"==typeof e},md={},bd=!Yh((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_d=Wh,Sd=Function.prototype.call,wd=_d?Sd.bind(Sd):function(){return Sd.apply(Sd,arguments)},kd={},xd={}.propertyIsEnumerable,Ed=Object.getOwnPropertyDescriptor,Td=Ed&&!xd.call({1:2},1);kd.f=Td?function(e){var t=Ed(this,e);return!!t&&t.enumerable}:xd;var Ad,Od,Ld=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pd=Yh,Cd=ld,Rd=Object,Id=Jh("".split),Dd=Pd((function(){return!Rd("z").propertyIsEnumerable(0)}))?function(e){return"String"==Cd(e)?Id(e,""):Rd(e)}:Rd,Ud=function(e){return null==e},jd=Ud,Md=TypeError,Bd=function(e){if(jd(e))throw Md("Can't call method on "+e);return e},Nd=Dd,Fd=Bd,Vd=function(e){return Nd(Fd(e))},zd=gd,Gd=vd.all,Hd=vd.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:zd(e)||e===Gd}:function(e){return"object"==typeof e?null!==e:zd(e)},qd={},Yd=qd,Wd=td,Kd=gd,$d=function(e){return Kd(e)?e:void 0},Xd=function(e,t){return arguments.length<2?$d(Yd[e])||$d(Wd[e]):Yd[e]&&Yd[e][t]||Wd[e]&&Wd[e][t]},Qd="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Jd=td,Zd=Qd,ep=Jd.process,tp=Jd.Deno,rp=ep&&ep.versions||tp&&tp.version,np=rp&&rp.v8;np&&(Od=(Ad=np.split("."))[0]>0&&Ad[0]<4?1:+(Ad[0]+Ad[1])),!Od&&Zd&&(!(Ad=Zd.match(/Edge\/(\d+)/))||Ad[1]>=74)&&(Ad=Zd.match(/Chrome\/(\d+)/))&&(Od=+Ad[1]);var ip=Od,op=ip,ap=Yh,sp=td.String,up=!!Object.getOwnPropertySymbols&&!ap((function(){var e=Symbol();return!sp(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&op&&op<41})),cp=up&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lp=Xd,fp=gd,hp=Zh,dp=Object,pp=cp?function(e){return"symbol"==typeof e}:function(e){var t=lp("Symbol");return fp(t)&&hp(t.prototype,dp(e))},vp=String,yp=function(e){try{return vp(e)}catch(vie){return"Object"}},gp=gd,mp=yp,bp=TypeError,_p=function(e){if(gp(e))return e;throw bp(mp(e)+" is not a function")},Sp=_p,wp=Ud,kp=function(e,t){var r=e[t];return wp(r)?void 0:Sp(r)},xp=wd,Ep=gd,Tp=Hd,Ap=TypeError,Op={exports:{}},Lp=td,Pp=Object.defineProperty,Cp=function(e,t){try{Pp(Lp,e,{value:t,configurable:!0,writable:!0})}catch(vie){Lp[e]=t}return t},Rp="__core-js_shared__",Ip=td[Rp]||Cp(Rp,{}),Dp=Ip;(Op.exports=function(e,t){return Dp[e]||(Dp[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 Up=Op.exports,jp=Bd,Mp=Object,Bp=function(e){return Mp(jp(e))},Np=Bp,Fp=Jh({}.hasOwnProperty),Vp=Object.hasOwn||function(e,t){return Fp(Np(e),t)},zp=Jh,Gp=0,Hp=Math.random(),qp=zp(1..toString),Yp=function(e){return"Symbol("+(void 0===e?"":e)+")_"+qp(++Gp+Hp,36)},Wp=Up,Kp=Vp,$p=Yp,Xp=up,Qp=cp,Jp=td.Symbol,Zp=Wp("wks"),ev=Qp?Jp.for||Jp:Jp&&Jp.withoutSetter||$p,tv=function(e){return Kp(Zp,e)||(Zp[e]=Xp&&Kp(Jp,e)?Jp[e]:ev("Symbol."+e)),Zp[e]},rv=wd,nv=Hd,iv=pp,ov=kp,av=function(e,t){var r,n;if("string"===t&&Ep(r=e.toString)&&!Tp(n=xp(r,e)))return n;if(Ep(r=e.valueOf)&&!Tp(n=xp(r,e)))return n;if("string"!==t&&Ep(r=e.toString)&&!Tp(n=xp(r,e)))return n;throw Ap("Can't convert object to primitive value")},sv=TypeError,uv=tv("toPrimitive"),cv=function(e,t){if(!nv(e)||iv(e))return e;var r,n=ov(e,uv);if(n){if(void 0===t&&(t="default"),r=rv(n,e,t),!nv(r)||iv(r))return r;throw sv("Can't convert object to primitive value")}return void 0===t&&(t="number"),av(e,t)},lv=pp,fv=function(e){var t=cv(e,"string");return lv(t)?t:t+""},hv=Hd,dv=td.document,pv=hv(dv)&&hv(dv.createElement),vv=function(e){return pv?dv.createElement(e):{}},yv=vv,gv=!bd&&!Yh((function(){return 7!=Object.defineProperty(yv("div"),"a",{get:function(){return 7}}).a})),mv=bd,bv=wd,_v=kd,Sv=Ld,wv=Vd,kv=fv,xv=Vp,Ev=gv,Tv=Object.getOwnPropertyDescriptor;md.f=mv?Tv:function(e,t){if(e=wv(e),t=kv(t),Ev)try{return Tv(e,t)}catch(vie){}if(xv(e,t))return Sv(!bv(_v.f,e,t),e[t])};var Av=Yh,Ov=gd,Lv=/#|\.prototype\./,Pv=function(e,t){var r=Rv[Cv(e)];return r==Dv||r!=Iv&&(Ov(t)?Av(t):!!t)},Cv=Pv.normalize=function(e){return String(e).replace(Lv,".").toLowerCase()},Rv=Pv.data={},Iv=Pv.NATIVE="N",Dv=Pv.POLYFILL="P",Uv=Pv,jv=_p,Mv=Wh,Bv=dd(dd.bind),Nv=function(e,t){return jv(e),void 0===t?e:Mv?Bv(e,t):function(){return e.apply(t,arguments)}},Fv={},Vv=bd&&Yh((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zv=Hd,Gv=String,Hv=TypeError,qv=function(e){if(zv(e))return e;throw Hv(Gv(e)+" is not an object")},Yv=bd,Wv=gv,Kv=Vv,$v=qv,Xv=fv,Qv=TypeError,Jv=Object.defineProperty,Zv=Object.getOwnPropertyDescriptor,ey="enumerable",ty="configurable",ry="writable";Fv.f=Yv?Kv?function(e,t,r){if($v(e),t=Xv(t),$v(r),"function"==typeof e&&"prototype"===t&&"value"in r&&ry in r&&!r[ry]){var n=Zv(e,t);n&&n[ry]&&(e[t]=r.value,r={configurable:ty in r?r[ty]:n[ty],enumerable:ey in r?r[ey]:n[ey],writable:!1})}return Jv(e,t,r)}:Jv:function(e,t,r){if($v(e),t=Xv(t),$v(r),Wv)try{return Jv(e,t,r)}catch(vie){}if("get"in r||"set"in r)throw Qv("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var ny=Fv,iy=Ld,oy=bd?function(e,t,r){return ny.f(e,t,iy(1,r))}:function(e,t,r){return e[t]=r,e},ay=td,sy=ad,uy=dd,cy=gd,ly=md.f,fy=Uv,hy=qd,dy=Nv,py=oy,vy=Vp,yy=function(e){var t=function(r,n,i){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,i)}return sy(e,this,arguments)};return t.prototype=e.prototype,t},gy=function(e,t){var r,n,i,o,a,s,u,c,l,f=e.target,h=e.global,d=e.stat,p=e.proto,v=h?ay:d?ay[f]:(ay[f]||{}).prototype,y=h?hy:hy[f]||py(hy,f,{})[f],g=y.prototype;for(o in t)n=!(r=fy(h?o:f+(d?".":"#")+o,e.forced))&&v&&vy(v,o),s=y[o],n&&(u=e.dontCallGetSet?(l=ly(v,o))&&l.value:v[o]),a=n&&u?u:t[o],n&&typeof s==typeof a||(c=e.bind&&n?dy(a,ay):e.wrap&&n?yy(a):p&&cy(a)?uy(a):a,(e.sham||a&&a.sham||s&&s.sham)&&py(c,"sham",!0),py(y,o,c),p&&(vy(hy,i=f+"Prototype")||py(hy,i,{}),py(hy[i],o,a),e.real&&g&&(r||!g[o])&&py(g,o,a)))},my=Math.ceil,by=Math.floor,_y=Math.trunc||function(e){var t=+e;return(t>0?by:my)(t)},Sy=function(e){var t=+e;return t!=t||0===t?0:_y(t)},wy=Sy,ky=Math.max,xy=Math.min,Ey=function(e,t){var r=wy(e);return r<0?ky(r+t,0):xy(r,t)},Ty=Sy,Ay=Math.min,Oy=function(e){return e>0?Ay(Ty(e),9007199254740991):0},Ly=Oy,Py=function(e){return Ly(e.length)},Cy=Vd,Ry=Ey,Iy=Py,Dy=function(e){return function(t,r,n){var i,o=Cy(t),a=Iy(o),s=Ry(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},Uy={includes:Dy(!0),indexOf:Dy(!1)},jy=Yh,My=function(e,t){var r=[][e];return!!r&&jy((function(){r.call(null,t||function(){return 1},1)}))},By=gy,Ny=Uy.indexOf,Fy=My,Vy=dd([].indexOf),zy=!!Vy&&1/Vy([1],1,-0)<0;By({target:"Array",proto:!0,forced:zy||!Fy("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return zy?Vy(this,e,t)||0:Ny(this,e,t)}});var Gy=qd,Hy=function(e){return Gy[e+"Prototype"]},qy=Hy("Array").indexOf,Yy=Zh,Wy=qy,Ky=Array.prototype,$y=S((function(e){var t=e.indexOf;return e===Ky||Yy(Ky,e)&&t===Ky.indexOf?Wy:t})),Xy=ld,Qy=Array.isArray||function(e){return"Array"==Xy(e)},Jy={};Jy[tv("toStringTag")]="z";var Zy="[object z]"===String(Jy),eg=Zy,tg=gd,rg=ld,ng=tv("toStringTag"),ig=Object,og="Arguments"==rg(function(){return arguments}()),ag=eg?rg:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(vie){}}(t=ig(e),ng))?r:og?rg(t):"Object"==(n=rg(t))&&tg(t.callee)?"Arguments":n},sg=gd,ug=Ip,cg=Jh(Function.toString);sg(ug.inspectSource)||(ug.inspectSource=function(e){return cg(e)});var lg=ug.inspectSource,fg=Jh,hg=Yh,dg=gd,pg=ag,vg=lg,yg=function(){},gg=[],mg=Xd("Reflect","construct"),bg=/^\s*(?:class|function)\b/,_g=fg(bg.exec),Sg=!bg.exec(yg),wg=function(e){if(!dg(e))return!1;try{return mg(yg,gg,e),!0}catch(vie){return!1}},kg=function(e){if(!dg(e))return!1;switch(pg(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Sg||!!_g(bg,vg(e))}catch(vie){return!0}};kg.sham=!0;var xg=!mg||hg((function(){var e;return wg(wg.call)||!wg(Object)||!wg((function(){e=!0}))||e}))?kg:wg,Eg=Qy,Tg=xg,Ag=Hd,Og=tv("species"),Lg=Array,Pg=function(e){var t;return Eg(e)&&(t=e.constructor,(Tg(t)&&(t===Lg||Eg(t.prototype))||Ag(t)&&null===(t=t[Og]))&&(t=void 0)),void 0===t?Lg:t},Cg=function(e,t){return new(Pg(e))(0===t?0:t)},Rg=Nv,Ig=Dd,Dg=Bp,Ug=Py,jg=Cg,Mg=Jh([].push),Bg=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,l,f){for(var h,d,p=Dg(u),v=Ig(p),y=Rg(c,l),g=Ug(v),m=0,b=f||jg,_=t?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((s||m in v)&&(d=y(h=v[m],m,p),e))if(t)_[m]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:Mg(_,h)}else switch(e){case 4:return!1;case 7:Mg(_,h)}return o?-1:n||i?i:_}},Ng={forEach:Bg(0),map:Bg(1),filter:Bg(2),some:Bg(3),every:Bg(4),find:Bg(5),findIndex:Bg(6),filterReject:Bg(7)},Fg=TypeError,Vg=function(e){if(e>9007199254740991)throw Fg("Maximum allowed index exceeded");return e},zg=fv,Gg=Fv,Hg=Ld,qg=function(e,t,r){var n=zg(t);n in e?Gg.f(e,n,Hg(0,r)):e[n]=r},Yg=Yh,Wg=ip,Kg=tv("species"),$g=function(e){return Wg>=51||!Yg((function(){var t=[];return(t.constructor={})[Kg]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Xg=gy,Qg=Yh,Jg=Qy,Zg=Hd,em=Bp,tm=Py,rm=Vg,nm=qg,im=Cg,om=$g,am=ip,sm=tv("isConcatSpreadable"),um=am>=51||!Qg((function(){var e=[];return e[sm]=!1,e.concat()[0]!==e})),cm=function(e){if(!Zg(e))return!1;var t=e[sm];return void 0!==t?!!t:Jg(e)};Xg({target:"Array",proto:!0,arity:1,forced:!um||!om("concat")},{concat:function(e){var t,r,n,i,o,a=em(this),s=im(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(cm(o=-1===t?a:arguments[t]))for(i=tm(o),rm(u+i),r=0;r<i;r++,u++)r in o&&nm(s,u,o[r]);else rm(u+1),nm(s,u++,o);return s.length=u,s}});var lm,fm,hm,dm=Hy("Array").concat,pm=Zh,vm=dm,ym=Array.prototype,gm=S((function(e){var t=e.concat;return e===ym||pm(ym,e)&&t===ym.concat?vm:t})),mm={},bm=gd,_m=td.WeakMap,Sm=bm(_m)&&/native code/.test(String(_m)),wm=Yp,km=Up("keys"),xm=function(e){return km[e]||(km[e]=wm(e))},Em={},Tm=Sm,Am=td,Om=Hd,Lm=oy,Pm=Vp,Cm=Ip,Rm=xm,Im=Em,Dm="Object already initialized",Um=Am.TypeError,jm=Am.WeakMap;if(Tm||Cm.state){var Mm=Cm.state||(Cm.state=new jm);Mm.get=Mm.get,Mm.has=Mm.has,Mm.set=Mm.set,lm=function(e,t){if(Mm.has(e))throw Um(Dm);return t.facade=e,Mm.set(e,t),t},fm=function(e){return Mm.get(e)||{}},hm=function(e){return Mm.has(e)}}else{var Bm=Rm("state");Im[Bm]=!0,lm=function(e,t){if(Pm(e,Bm))throw Um(Dm);return t.facade=e,Lm(e,Bm,t),t},fm=function(e){return Pm(e,Bm)?e[Bm]:{}},hm=function(e){return Pm(e,Bm)}}var Nm={set:lm,get:fm,has:hm,enforce:function(e){return hm(e)?fm(e):lm(e,{})},getterFor:function(e){return function(t){var r;if(!Om(t)||(r=fm(t)).type!==e)throw Um("Incompatible receiver, "+e+" required");return r}}},Fm=bd,Vm=Vp,zm=Function.prototype,Gm=Fm&&Object.getOwnPropertyDescriptor,Hm=Vm(zm,"name"),qm={EXISTS:Hm,PROPER:Hm&&"something"===function(){}.name,CONFIGURABLE:Hm&&(!Fm||Fm&&Gm(zm,"name").configurable)},Ym={},Wm=Vp,Km=Vd,$m=Uy.indexOf,Xm=Em,Qm=Jh([].push),Jm=function(e,t){var r,n=Km(e),i=0,o=[];for(r in n)!Wm(Xm,r)&&Wm(n,r)&&Qm(o,r);for(;t.length>i;)Wm(n,r=t[i++])&&(~$m(o,r)||Qm(o,r));return o},Zm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eb=Jm,tb=Zm,rb=Object.keys||function(e){return eb(e,tb)},nb=bd,ib=Vv,ob=Fv,ab=qv,sb=Vd,ub=rb;Ym.f=nb&&!ib?Object.defineProperties:function(e,t){ab(e);for(var r,n=sb(t),i=ub(t),o=i.length,a=0;o>a;)ob.f(e,r=i[a++],n[r]);return e};var cb,lb=Xd("document","documentElement"),fb=qv,hb=Ym,db=Zm,pb=Em,vb=lb,yb=vv,gb="prototype",mb="script",bb=xm("IE_PROTO"),_b=function(){},Sb=function(e){return"<"+mb+">"+e+"</"+mb+">"},wb=function(e){e.write(Sb("")),e.close();var t=e.parentWindow.Object;return e=null,t},kb=function(){try{cb=new ActiveXObject("htmlfile")}catch(vie){}var e,t,r;kb="undefined"!=typeof document?document.domain&&cb?wb(cb):(t=yb("iframe"),r="java"+mb+":",t.style.display="none",vb.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Sb("document.F=Object")),e.close(),e.F):wb(cb);for(var n=db.length;n--;)delete kb[gb][db[n]];return kb()};pb[bb]=!0;var xb,Eb,Tb,Ab=Object.create||function(e,t){var r;return null!==e?(_b[gb]=fb(e),r=new _b,_b[gb]=null,r[bb]=e):r=kb(),void 0===t?r:hb.f(r,t)},Ob=!Yh((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Lb=Vp,Pb=gd,Cb=Bp,Rb=Ob,Ib=xm("IE_PROTO"),Db=Object,Ub=Db.prototype,jb=Rb?Db.getPrototypeOf:function(e){var t=Cb(e);if(Lb(t,Ib))return t[Ib];var r=t.constructor;return Pb(r)&&t instanceof r?r.prototype:t instanceof Db?Ub:null},Mb=oy,Bb=function(e,t,r,n){return n&&n.enumerable?e[t]=r:Mb(e,t,r),e},Nb=Yh,Fb=gd,Vb=Hd,zb=Ab,Gb=jb,Hb=Bb,qb=tv("iterator"),Yb=!1;[].keys&&("next"in(Tb=[].keys())?(Eb=Gb(Gb(Tb)))!==Object.prototype&&(xb=Eb):Yb=!0);var Wb=!Vb(xb)||Nb((function(){var e={};return xb[qb].call(e)!==e}));Fb((xb=Wb?{}:zb(xb))[qb])||Hb(xb,qb,(function(){return this}));var Kb={IteratorPrototype:xb,BUGGY_SAFARI_ITERATORS:Yb},$b=ag,Xb=Zy?{}.toString:function(){return"[object "+$b(this)+"]"},Qb=Zy,Jb=Fv.f,Zb=oy,e_=Vp,t_=Xb,r_=tv("toStringTag"),n_=function(e,t,r,n){if(e){var i=r?e:e.prototype;e_(i,r_)||Jb(i,r_,{configurable:!0,value:t}),n&&!Qb&&Zb(i,"toString",t_)}},i_=Kb.IteratorPrototype,o_=Ab,a_=Ld,s_=n_,u_=mm,c_=function(){return this},l_=function(e,t,r,n){var i=t+" Iterator";return e.prototype=o_(i_,{next:a_(+!n,r)}),s_(e,i,!1,!0),u_[i]=c_,e},f_=Jh,h_=_p,d_=gd,p_=String,v_=TypeError,y_=function(e,t,r){try{return f_(h_(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(vie){}},g_=qv,m_=function(e){if("object"==typeof e||d_(e))return e;throw v_("Can't set "+p_(e)+" as a prototype")},b_=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=y_(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(vie){}return function(r,n){return g_(r),m_(n),t?e(r,n):r.__proto__=n,r}}():void 0),__=gy,S_=wd,w_=qm,k_=l_,x_=jb,E_=n_,T_=Bb,A_=mm,O_=Kb,L_=w_.PROPER,P_=O_.BUGGY_SAFARI_ITERATORS,C_=tv("iterator"),R_="keys",I_="values",D_="entries",U_=function(){return this},j_=function(e,t,r,n,i,o,a){k_(r,t,n);var s,u,c,l=function(e){if(e===i&&v)return v;if(!P_&&e in d)return d[e];switch(e){case R_:case I_:case D_:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[C_]||d["@@iterator"]||i&&d[i],v=!P_&&p||l(i),y="Array"==t&&d.entries||p;if(y&&(s=x_(y.call(new e)))!==Object.prototype&&s.next&&(E_(s,f,!0,!0),A_[f]=U_),L_&&i==I_&&p&&p.name!==I_&&(h=!0,v=function(){return S_(p,this)}),i)if(u={values:l(I_),keys:o?v:l(R_),entries:l(D_)},a)for(c in u)(P_||h||!(c in d))&&T_(d,c,u[c]);else __({target:t,proto:!0,forced:P_||h},u);return a&&d[C_]!==v&&T_(d,C_,v,{name:i}),A_[t]=v,u},M_=function(e,t){return{value:e,done:t}},B_=Vd,N_=mm,F_=Nm;Fv.f;var V_=j_,z_=M_,G_="Array Iterator",H_=F_.set,q_=F_.getterFor(G_);V_(Array,"Array",(function(e,t){H_(this,{type:G_,target:B_(e),index:0,kind:t})}),(function(){var e=q_(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,z_(void 0,!0)):z_("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),N_.Arguments=N_.Array;var Y_={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},W_=td,K_=ag,$_=oy,X_=mm,Q_=tv("toStringTag");for(var J_ in Y_){var Z_=W_[J_],eS=Z_&&Z_.prototype;eS&&K_(eS)!==Q_&&$_(eS,Q_,J_),X_[J_]=X_.Array}var tS=Ng.forEach,rS=My("forEach")?[].forEach:function(e){return tS(this,e,arguments.length>1?arguments[1]:void 0)};gy({target:"Array",proto:!0,forced:[].forEach!=rS},{forEach:rS});var nS=Hy("Array").forEach,iS=ag,oS=Vp,aS=Zh,sS=nS,uS=Array.prototype,cS={DOMTokenList:!0,NodeList:!0},lS=S((function(e){var t=e.forEach;return e===uS||aS(uS,e)&&t===uS.forEach||oS(cS,iS(e))?sS:t})),fS=Bp,hS=rb;gy({target:"Object",stat:!0,forced:Yh((function(){hS(1)}))},{keys:function(e){return hS(fS(e))}});var dS=S(qd.Object.keys),pS=Jh([].slice),vS=gy,yS=Qy,gS=xg,mS=Hd,bS=Ey,_S=Py,SS=Vd,wS=qg,kS=tv,xS=pS,ES=$g("slice"),TS=kS("species"),AS=Array,OS=Math.max;vS({target:"Array",proto:!0,forced:!ES},{slice:function(e,t){var r,n,i,o=SS(this),a=_S(o),s=bS(e,a),u=bS(void 0===t?a:t,a);if(yS(o)&&(r=o.constructor,(gS(r)&&(r===AS||yS(r.prototype))||mS(r)&&null===(r=r[TS]))&&(r=void 0),r===AS||void 0===r))return xS(o,s,u);for(n=new(void 0===r?AS:r)(OS(u-s,0)),i=0;s<u;s++,i++)s in o&&wS(n,i,o[s]);return n.length=i,n}});var LS=Hy("Array").slice,PS=Zh,CS=LS,RS=Array.prototype,IS=S((function(e){var t=e.slice;return e===RS||PS(RS,e)&&t===RS.slice?CS:t})),DS=bd,US=Qy,jS=TypeError,MS=Object.getOwnPropertyDescriptor,BS=DS&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(vie){return vie instanceof TypeError}}(),NS=yp,FS=TypeError,VS=function(e,t){if(!delete e[t])throw FS("Cannot delete property "+NS(t)+" of "+NS(e))},zS=gy,GS=Bp,HS=Ey,qS=Sy,YS=Py,WS=BS?function(e,t){if(US(e)&&!MS(e,"length").writable)throw jS("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},KS=Vg,$S=Cg,XS=qg,QS=VS,JS=$g("splice"),ZS=Math.max,ew=Math.min;zS({target:"Array",proto:!0,forced:!JS},{splice:function(e,t){var r,n,i,o,a,s,u=GS(this),c=YS(u),l=HS(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=ew(ZS(qS(t),0),c-l)),KS(c+r-n),i=$S(u,n),o=0;o<n;o++)(a=l+o)in u&&XS(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:QS(u,s);for(o=c;o>c-n+r;o--)QS(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:QS(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return WS(u,c-n+r),i}});var tw=Hy("Array").splice,rw=Zh,nw=tw,iw=Array.prototype,ow=S((function(e){var t=e.splice;return e===iw||rw(iw,e)&&t===iw.splice?nw:t})),aw={},sw=Jm,uw=Zm.concat("length","prototype");aw.f=Object.getOwnPropertyNames||function(e){return sw(e,uw)};var cw={};cw.f=Object.getOwnPropertySymbols;var lw=Xd,fw=aw,hw=cw,dw=qv,pw=Jh([].concat),vw=lw("Reflect","ownKeys")||function(e){var t=fw.f(dw(e)),r=hw.f;return r?pw(t,r(e)):t},yw=Vp,gw=vw,mw=md,bw=Fv,_w=Hd,Sw=oy,ww=Error,kw=Jh("".replace),xw=String(ww("zxcasd").stack),Ew=/\n\s*at [^:]*:[^\n]*/,Tw=Ew.test(xw),Aw=Ld,Ow=!Yh((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Aw(1,7)),7!==e.stack)})),Lw=oy,Pw=function(e,t){if(Tw&&"string"==typeof e&&!ww.prepareStackTrace)for(;t--;)e=kw(e,Ew,"");return e},Cw=Ow,Rw=Error.captureStackTrace,Iw=mm,Dw=tv("iterator"),Uw=Array.prototype,jw=function(e){return void 0!==e&&(Iw.Array===e||Uw[Dw]===e)},Mw=ag,Bw=kp,Nw=Ud,Fw=mm,Vw=tv("iterator"),zw=function(e){if(!Nw(e))return Bw(e,Vw)||Bw(e,"@@iterator")||Fw[Mw(e)]},Gw=wd,Hw=_p,qw=qv,Yw=yp,Ww=zw,Kw=TypeError,$w=function(e,t){var r=arguments.length<2?Ww(e):t;if(Hw(r))return qw(Gw(r,e));throw Kw(Yw(e)+" is not iterable")},Xw=wd,Qw=qv,Jw=kp,Zw=function(e,t,r){var n,i;Qw(e);try{if(!(n=Jw(e,"return"))){if("throw"===t)throw r;return r}n=Xw(n,e)}catch(vie){i=!0,n=vie}if("throw"===t)throw r;if(i)throw n;return Qw(n),r},ek=Nv,tk=wd,rk=qv,nk=yp,ik=jw,ok=Py,ak=Zh,sk=$w,uk=zw,ck=Zw,lk=TypeError,fk=function(e,t){this.stopped=e,this.result=t},hk=fk.prototype,dk=function(e,t,r){var n,i,o,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=ek(t,l),y=function(e){return n&&ck(n,"normal",e),new fk(!0,e)},g=function(e){return f?(rk(e),p?v(e[0],e[1],y):v(e[0],e[1])):p?v(e,y):v(e)};if(h)n=e.iterator;else if(d)n=e;else{if(!(i=uk(e)))throw lk(nk(e)+" is not iterable");if(ik(i)){for(o=0,a=ok(e);a>o;o++)if((s=g(e[o]))&&ak(hk,s))return s;return new fk(!1)}n=sk(e,i)}for(u=h?e.next:n.next;!(c=tk(u,n)).done;){try{s=g(c.value)}catch(vie){ck(n,"throw",vie)}if("object"==typeof s&&s&&ak(hk,s))return s}return new fk(!1)},pk=ag,vk=String,yk=function(e){if("Symbol"===pk(e))throw TypeError("Cannot convert a Symbol value to a string");return vk(e)},gk=yk,mk=gy,bk=Zh,_k=jb,Sk=b_,wk=function(e,t,r){for(var n=gw(t),i=bw.f,o=mw.f,a=0;a<n.length;a++){var s=n[a];yw(e,s)||r&&yw(r,s)||i(e,s,o(t,s))}},kk=Ab,xk=oy,Ek=Ld,Tk=function(e,t){_w(t)&&"cause"in t&&Sw(e,"cause",t.cause)},Ak=function(e,t,r,n){Cw&&(Rw?Rw(e,t):Lw(e,"stack",Pw(r,n)))},Ok=dk,Lk=function(e,t){return void 0===e?arguments.length<2?"":t:gk(e)},Pk=tv("toStringTag"),Ck=Error,Rk=[].push,Ik=function(e,t){var r,n=bk(Dk,this);Sk?r=Sk(Ck(),n?_k(this):Dk):(r=n?this:kk(Dk),xk(r,Pk,"Error")),void 0!==t&&xk(r,"message",Lk(t)),Ak(r,Ik,r.stack,1),arguments.length>2&&Tk(r,arguments[2]);var i=[];return Ok(e,Rk,{that:i}),xk(r,"errors",i),r};Sk?Sk(Ik,Ck):wk(Ik,Ck,{name:!0});var Dk=Ik.prototype=kk(Ck.prototype,{constructor:Ek(1,Ik),message:Ek(1,""),name:Ek(1,"AggregateError")});mk({global:!0,constructor:!0,arity:2},{AggregateError:Ik});var Uk,jk,Mk,Bk,Nk="undefined"!=typeof process&&"process"==ld(process),Fk=Fv,Vk=function(e,t,r){return Fk.f(e,t,r)},zk=Xd,Gk=Vk,Hk=bd,qk=tv("species"),Yk=function(e){var t=zk(e);Hk&&t&&!t[qk]&&Gk(t,qk,{configurable:!0,get:function(){return this}})},Wk=Zh,Kk=TypeError,$k=function(e,t){if(Wk(t,e))return e;throw Kk("Incorrect invocation")},Xk=xg,Qk=yp,Jk=TypeError,Zk=function(e){if(Xk(e))return e;throw Jk(Qk(e)+" is not a constructor")},ex=qv,tx=Zk,rx=Ud,nx=tv("species"),ix=function(e,t){var r,n=ex(e).constructor;return void 0===n||rx(r=ex(n)[nx])?t:tx(r)},ox=TypeError,ax=function(e,t){if(e<t)throw ox("Not enough arguments");return e},sx=/(?:ipad|iphone|ipod).*applewebkit/i.test(Qd),ux=td,cx=ad,lx=Nv,fx=gd,hx=Vp,dx=Yh,px=lb,vx=pS,yx=vv,gx=ax,mx=sx,bx=Nk,_x=ux.setImmediate,Sx=ux.clearImmediate,wx=ux.process,kx=ux.Dispatch,xx=ux.Function,Ex=ux.MessageChannel,Tx=ux.String,Ax=0,Ox={},Lx="onreadystatechange";dx((function(){Uk=ux.location}));var Px=function(e){if(hx(Ox,e)){var t=Ox[e];delete Ox[e],t()}},Cx=function(e){return function(){Px(e)}},Rx=function(e){Px(e.data)},Ix=function(e){ux.postMessage(Tx(e),Uk.protocol+"//"+Uk.host)};_x&&Sx||(_x=function(e){gx(arguments.length,1);var t=fx(e)?e:xx(e),r=vx(arguments,1);return Ox[++Ax]=function(){cx(t,void 0,r)},jk(Ax),Ax},Sx=function(e){delete Ox[e]},bx?jk=function(e){wx.nextTick(Cx(e))}:kx&&kx.now?jk=function(e){kx.now(Cx(e))}:Ex&&!mx?(Bk=(Mk=new Ex).port2,Mk.port1.onmessage=Rx,jk=lx(Bk.postMessage,Bk)):ux.addEventListener&&fx(ux.postMessage)&&!ux.importScripts&&Uk&&"file:"!==Uk.protocol&&!dx(Ix)?(jk=Ix,ux.addEventListener("message",Rx,!1)):jk=Lx in yx("script")?function(e){px.appendChild(yx("script"))[Lx]=function(){px.removeChild(this),Px(e)}}:function(e){setTimeout(Cx(e),0)});var Dx={set:_x,clear:Sx},Ux=function(){this.head=null,this.tail=null};Ux.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 jx,Mx,Bx,Nx,Fx,Vx=Ux,zx=/ipad|iphone|ipod/i.test(Qd)&&"undefined"!=typeof Pebble,Gx=/web0s(?!.*chrome)/i.test(Qd),Hx=td,qx=Nv,Yx=md.f,Wx=Dx.set,Kx=Vx,$x=sx,Xx=zx,Qx=Gx,Jx=Nk,Zx=Hx.MutationObserver||Hx.WebKitMutationObserver,eE=Hx.document,tE=Hx.process,rE=Hx.Promise,nE=Yx(Hx,"queueMicrotask"),iE=nE&&nE.value;if(!iE){var oE=new Kx,aE=function(){var e,t;for(Jx&&(e=tE.domain)&&e.exit();t=oE.get();)try{t()}catch(vie){throw oE.head&&jx(),vie}e&&e.enter()};$x||Jx||Qx||!Zx||!eE?!Xx&&rE&&rE.resolve?((Nx=rE.resolve(void 0)).constructor=rE,Fx=qx(Nx.then,Nx),jx=function(){Fx(aE)}):Jx?jx=function(){tE.nextTick(aE)}:(Wx=qx(Wx,Hx),jx=function(){Wx(aE)}):(Mx=!0,Bx=eE.createTextNode(""),new Zx(aE).observe(Bx,{characterData:!0}),jx=function(){Bx.data=Mx=!Mx}),iE=function(e){oE.head||jx(),oE.add(e)}}var sE=iE,uE=function(e){try{return{error:!1,value:e()}}catch(vie){return{error:!0,value:vie}}},cE=td.Promise,lE="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,fE=!lE&&!Nk&&"object"==typeof window&&"object"==typeof document,hE=td,dE=cE,pE=gd,vE=Uv,yE=lg,gE=tv,mE=fE,bE=lE,_E=ip,SE=dE&&dE.prototype,wE=gE("species"),kE=!1,xE=pE(hE.PromiseRejectionEvent),EE={CONSTRUCTOR:vE("Promise",(function(){var e=yE(dE),t=e!==String(dE);if(!t&&66===_E)return!0;if(!SE.catch||!SE.finally)return!0;if(!_E||_E<51||!/native code/.test(e)){var r=new dE((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[wE]=n,!(kE=r.then((function(){}))instanceof n))return!0}return!t&&(mE||bE)&&!xE})),REJECTION_EVENT:xE,SUBCLASSING:kE},TE={},AE=_p,OE=TypeError,LE=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw OE("Bad Promise constructor");t=e,r=n})),this.resolve=AE(t),this.reject=AE(r)};TE.f=function(e){return new LE(e)};var PE,CE,RE=gy,IE=Nk,DE=td,UE=wd,jE=Bb,ME=n_,BE=Yk,NE=_p,FE=gd,VE=Hd,zE=$k,GE=ix,HE=Dx.set,qE=sE,YE=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(vie){}},WE=uE,KE=Vx,$E=Nm,XE=cE,QE=EE,JE=TE,ZE="Promise",eT=QE.CONSTRUCTOR,tT=QE.REJECTION_EVENT,rT=$E.getterFor(ZE),nT=$E.set,iT=XE&&XE.prototype,oT=XE,aT=iT,sT=DE.TypeError,uT=DE.document,cT=DE.process,lT=JE.f,fT=lT,hT=!!(uT&&uT.createEvent&&DE.dispatchEvent),dT="unhandledrejection",pT=function(e){var t;return!(!VE(e)||!FE(t=e.then))&&t},vT=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&_T(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?c(sT("Promise-chain cycle")):(n=pT(r))?UE(n,r,u,c):u(r)):c(o)}catch(vie){l&&!i&&l.exit(),c(vie)}},yT=function(e,t){e.notified||(e.notified=!0,qE((function(){for(var r,n=e.reactions;r=n.get();)vT(r,e);e.notified=!1,t&&!e.rejection&&mT(e)})))},gT=function(e,t,r){var n,i;hT?((n=uT.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),DE.dispatchEvent(n)):n={promise:t,reason:r},!tT&&(i=DE["on"+e])?i(n):e===dT&&YE("Unhandled promise rejection",r)},mT=function(e){UE(HE,DE,(function(){var t,r=e.facade,n=e.value;if(bT(e)&&(t=WE((function(){IE?cT.emit("unhandledRejection",n,r):gT(dT,r,n)})),e.rejection=IE||bT(e)?2:1,t.error))throw t.value}))},bT=function(e){return 1!==e.rejection&&!e.parent},_T=function(e){UE(HE,DE,(function(){var t=e.facade;IE?cT.emit("rejectionHandled",t):gT("rejectionhandled",t,e.value)}))},ST=function(e,t,r){return function(n){e(t,n,r)}},wT=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,yT(e,!0))},kT=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw sT("Promise can't be resolved itself");var n=pT(t);n?qE((function(){var r={done:!1};try{UE(n,t,ST(kT,r,e),ST(wT,r,e))}catch(vie){wT(r,vie,e)}})):(e.value=t,e.state=1,yT(e,!1))}catch(vie){wT({done:!1},vie,e)}}};eT&&(aT=(oT=function(e){zE(this,aT),NE(e),UE(PE,this);var t=rT(this);try{e(ST(kT,t),ST(wT,t))}catch(vie){wT(t,vie)}}).prototype,(PE=function(e){nT(this,{type:ZE,done:!1,notified:!1,parent:!1,reactions:new KE,rejection:!1,state:0,value:void 0})}).prototype=jE(aT,"then",(function(e,t){var r=rT(this),n=lT(GE(this,oT));return r.parent=!0,n.ok=!FE(e)||e,n.fail=FE(t)&&t,n.domain=IE?cT.domain:void 0,0==r.state?r.reactions.add(n):qE((function(){vT(n,r)})),n.promise})),CE=function(){var e=new PE,t=rT(e);this.promise=e,this.resolve=ST(kT,t),this.reject=ST(wT,t)},JE.f=lT=function(e){return e===oT||undefined===e?new CE(e):fT(e)}),RE({global:!0,constructor:!0,wrap:!0,forced:eT},{Promise:oT}),ME(oT,ZE,!1,!0),BE(ZE);var xT=tv("iterator"),ET=!1;try{var TT=0,AT={next:function(){return{done:!!TT++}},return:function(){ET=!0}};AT[xT]=function(){return this},Array.from(AT,(function(){throw 2}))}catch(vie){}var OT=function(e,t){if(!t&&!ET)return!1;var r=!1;try{var n={};n[xT]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(vie){}return r},LT=cE,PT=EE.CONSTRUCTOR||!OT((function(e){LT.all(e).then(void 0,(function(){}))})),CT=wd,RT=_p,IT=TE,DT=uE,UT=dk;gy({target:"Promise",stat:!0,forced:PT},{all:function(e){var t=this,r=IT.f(t),n=r.resolve,i=r.reject,o=DT((function(){var r=RT(t.resolve),o=[],a=0,s=1;UT(e,(function(e){var u=a++,c=!1;s++,CT(r,t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var jT=gy,MT=EE.CONSTRUCTOR;cE&&cE.prototype,jT({target:"Promise",proto:!0,forced:MT,real:!0},{catch:function(e){return this.then(void 0,e)}});var BT=wd,NT=_p,FT=TE,VT=uE,zT=dk;gy({target:"Promise",stat:!0,forced:PT},{race:function(e){var t=this,r=FT.f(t),n=r.reject,i=VT((function(){var i=NT(t.resolve);zT(e,(function(e){BT(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var GT=wd,HT=TE;gy({target:"Promise",stat:!0,forced:EE.CONSTRUCTOR},{reject:function(e){var t=HT.f(this);return GT(t.reject,void 0,e),t.promise}});var qT=qv,YT=Hd,WT=TE,KT=function(e,t){if(qT(e),YT(t)&&t.constructor===e)return t;var r=WT.f(e);return(0,r.resolve)(t),r.promise},$T=gy,XT=cE,QT=EE.CONSTRUCTOR,JT=KT,ZT=Xd("Promise"),eA=!QT;$T({target:"Promise",stat:!0,forced:true},{resolve:function(e){return JT(eA&&this===ZT?XT:this,e)}});var tA=wd,rA=_p,nA=TE,iA=uE,oA=dk;gy({target:"Promise",stat:!0,forced:PT},{allSettled:function(e){var t=this,r=nA.f(t),n=r.resolve,i=r.reject,o=iA((function(){var r=rA(t.resolve),i=[],o=0,a=1;oA(e,(function(e){var s=o++,u=!1;a++,tA(r,t,e).then((function(e){u||(u=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){u||(u=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var aA=wd,sA=_p,uA=Xd,cA=TE,lA=uE,fA=dk,hA="No one promise resolved";gy({target:"Promise",stat:!0,forced:PT},{any:function(e){var t=this,r=uA("AggregateError"),n=cA.f(t),i=n.resolve,o=n.reject,a=lA((function(){var n=sA(t.resolve),a=[],s=0,u=1,c=!1;fA(e,(function(e){var l=s++,f=!1;u++,aA(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[l]=e,--u||o(new r(a,hA)))}))})),--u||o(new r(a,hA))}));return a.error&&o(a.value),n.promise}});var dA=gy,pA=cE,vA=Yh,yA=Xd,gA=gd,mA=ix,bA=KT,_A=pA&&pA.prototype;dA({target:"Promise",proto:!0,real:!0,forced:!!pA&&vA((function(){_A.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=mA(this,yA("Promise")),r=gA(e);return this.then(r?function(r){return bA(t,e()).then((function(){return r}))}:e,r?function(r){return bA(t,e()).then((function(){throw r}))}:e)}});var SA=Jh,wA=Sy,kA=yk,xA=Bd,EA=SA("".charAt),TA=SA("".charCodeAt),AA=SA("".slice),OA=function(e){return function(t,r){var n,i,o=kA(xA(t)),a=wA(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=TA(o,a))<55296||n>56319||a+1===s||(i=TA(o,a+1))<56320||i>57343?e?EA(o,a):n:e?AA(o,a,a+2):i-56320+(n-55296<<10)+65536}},LA={codeAt:OA(!1),charAt:OA(!0)},PA=LA.charAt,CA=yk,RA=Nm,IA=j_,DA=M_,UA="String Iterator",jA=RA.set,MA=RA.getterFor(UA);IA(String,"String",(function(e){jA(this,{type:UA,string:CA(e),index:0})}),(function(){var e,t=MA(this),r=t.string,n=t.index;return n>=r.length?DA(void 0,!0):(e=PA(r,n),t.index+=e.length,DA(e,!1))}));var BA=qd.Promise,NA=TE,FA=uE;gy({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=NA.f(this),r=FA(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var VA=S(BA);gy({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var zA=S(qd.Number.isNaN),GA="\t\n\v\f\r                 \u2028\u2029\ufeff",HA=Bd,qA=yk,YA=GA,WA=Jh("".replace),KA=RegExp("^["+YA+"]+"),$A=RegExp("(^|[^"+YA+"])["+YA+"]+$"),XA=function(e){return function(t){var r=qA(HA(t));return 1&e&&(r=WA(r,KA,"")),2&e&&(r=WA(r,$A,"$1")),r}},QA={start:XA(1),end:XA(2),trim:XA(3)},JA=td,ZA=Yh,eO=Jh,tO=yk,rO=QA.trim,nO=GA,iO=JA.parseInt,oO=JA.Symbol,aO=oO&&oO.iterator,sO=/^[+-]?0x/i,uO=eO(sO.exec),cO=8!==iO(nO+"08")||22!==iO(nO+"0x16")||aO&&!ZA((function(){iO(Object(aO))}))?function(e,t){var r=rO(tO(e));return iO(r,t>>>0||(uO(sO,r)?16:10))}:iO;gy({global:!0,forced:parseInt!=cO},{parseInt:cO});var lO=S(qd.parseInt),fO=Ng.map;gy({target:"Array",proto:!0,forced:!$g("map")},{map:function(e){return fO(this,e,arguments.length>1?arguments[1]:void 0)}});var hO=Hy("Array").map,dO=Zh,pO=hO,vO=Array.prototype,yO=S((function(e){var t=e.map;return e===vO||dO(vO,e)&&t===vO.map?pO:t}));gy({target:"Array",stat:!0},{isArray:Qy});var gO=S(qd.Array.isArray),mO=Ng.filter;gy({target:"Array",proto:!0,forced:!$g("filter")},{filter:function(e){return mO(this,e,arguments.length>1?arguments[1]:void 0)}});var bO=Hy("Array").filter,_O=Zh,SO=bO,wO=Array.prototype,kO=S((function(e){var t=e.filter;return e===wO||_O(wO,e)&&t===wO.filter?SO:t})),xO={},EO=Ey,TO=Py,AO=qg,OO=Array,LO=Math.max,PO=function(e,t,r){for(var n=TO(e),i=EO(t,n),o=EO(void 0===r?n:r,n),a=OO(LO(o-i,0)),s=0;i<o;i++,s++)AO(a,s,e[i]);return a.length=s,a},CO=ld,RO=Vd,IO=aw.f,DO=PO,UO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];xO.f=function(e){return UO&&"Window"==CO(e)?function(e){try{return IO(e)}catch(vie){return DO(UO)}}(e):IO(RO(e))};var jO={},MO=tv;jO.f=MO;var BO=qd,NO=Vp,FO=jO,VO=Fv.f,zO=function(e){var t=BO.Symbol||(BO.Symbol={});NO(t,e)||VO(t,e,{value:FO.f(e)})},GO=wd,HO=Xd,qO=tv,YO=Bb,WO=function(){var e=HO("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=qO("toPrimitive");t&&!t[n]&&YO(t,n,(function(e){return GO(r,this)}),{arity:1})},KO=gy,$O=td,XO=wd,QO=Jh,JO=bd,ZO=up,eL=Yh,tL=Vp,rL=Zh,nL=qv,iL=Vd,oL=fv,aL=yk,sL=Ld,uL=Ab,cL=rb,lL=aw,fL=xO,hL=cw,dL=md,pL=Fv,vL=Ym,yL=kd,gL=Bb,mL=Vk,bL=Up,_L=Em,SL=Yp,wL=tv,kL=jO,xL=zO,EL=WO,TL=n_,AL=Nm,OL=Ng.forEach,LL=xm("hidden"),PL="Symbol",CL="prototype",RL=AL.set,IL=AL.getterFor(PL),DL=Object[CL],UL=$O.Symbol,jL=UL&&UL[CL],ML=$O.TypeError,BL=$O.QObject,NL=dL.f,FL=pL.f,VL=fL.f,zL=yL.f,GL=QO([].push),HL=bL("symbols"),qL=bL("op-symbols"),YL=bL("wks"),WL=!BL||!BL[CL]||!BL[CL].findChild,KL=JO&&eL((function(){return 7!=uL(FL({},"a",{get:function(){return FL(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=NL(DL,t);n&&delete DL[t],FL(e,t,r),n&&e!==DL&&FL(DL,t,n)}:FL,$L=function(e,t){var r=HL[e]=uL(jL);return RL(r,{type:PL,tag:e,description:t}),JO||(r.description=t),r},XL=function(e,t,r){e===DL&&XL(qL,t,r),nL(e);var n=oL(t);return nL(r),tL(HL,n)?(r.enumerable?(tL(e,LL)&&e[LL][n]&&(e[LL][n]=!1),r=uL(r,{enumerable:sL(0,!1)})):(tL(e,LL)||FL(e,LL,sL(1,{})),e[LL][n]=!0),KL(e,n,r)):FL(e,n,r)},QL=function(e,t){nL(e);var r=iL(t),n=cL(r).concat(tP(r));return OL(n,(function(t){JO&&!XO(JL,r,t)||XL(e,t,r[t])})),e},JL=function(e){var t=oL(e),r=XO(zL,this,t);return!(this===DL&&tL(HL,t)&&!tL(qL,t))&&(!(r||!tL(this,t)||!tL(HL,t)||tL(this,LL)&&this[LL][t])||r)},ZL=function(e,t){var r=iL(e),n=oL(t);if(r!==DL||!tL(HL,n)||tL(qL,n)){var i=NL(r,n);return!i||!tL(HL,n)||tL(r,LL)&&r[LL][n]||(i.enumerable=!0),i}},eP=function(e){var t=VL(iL(e)),r=[];return OL(t,(function(e){tL(HL,e)||tL(_L,e)||GL(r,e)})),r},tP=function(e){var t=e===DL,r=VL(t?qL:iL(e)),n=[];return OL(r,(function(e){!tL(HL,e)||t&&!tL(DL,e)||GL(n,HL[e])})),n};ZO||(UL=function(){if(rL(jL,this))throw ML("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?aL(arguments[0]):void 0,t=SL(e),r=function(e){this===DL&&XO(r,qL,e),tL(this,LL)&&tL(this[LL],t)&&(this[LL][t]=!1),KL(this,t,sL(1,e))};return JO&&WL&&KL(DL,t,{configurable:!0,set:r}),$L(t,e)},gL(jL=UL[CL],"toString",(function(){return IL(this).tag})),gL(UL,"withoutSetter",(function(e){return $L(SL(e),e)})),yL.f=JL,pL.f=XL,vL.f=QL,dL.f=ZL,lL.f=fL.f=eP,hL.f=tP,kL.f=function(e){return $L(wL(e),e)},JO&&mL(jL,"description",{configurable:!0,get:function(){return IL(this).description}})),KO({global:!0,constructor:!0,wrap:!0,forced:!ZO,sham:!ZO},{Symbol:UL}),OL(cL(YL),(function(e){xL(e)})),KO({target:PL,stat:!0,forced:!ZO},{useSetter:function(){WL=!0},useSimple:function(){WL=!1}}),KO({target:"Object",stat:!0,forced:!ZO,sham:!JO},{create:function(e,t){return void 0===t?uL(e):QL(uL(e),t)},defineProperty:XL,defineProperties:QL,getOwnPropertyDescriptor:ZL}),KO({target:"Object",stat:!0,forced:!ZO},{getOwnPropertyNames:eP}),EL(),TL(UL,PL),_L[LL]=!0;var rP=up&&!!Symbol.for&&!!Symbol.keyFor,nP=gy,iP=Xd,oP=Vp,aP=yk,sP=Up,uP=rP,cP=sP("string-to-symbol-registry"),lP=sP("symbol-to-string-registry");nP({target:"Symbol",stat:!0,forced:!uP},{for:function(e){var t=aP(e);if(oP(cP,t))return cP[t];var r=iP("Symbol")(t);return cP[t]=r,lP[r]=t,r}});var fP=gy,hP=Vp,dP=pp,pP=yp,vP=rP,yP=Up("symbol-to-string-registry");fP({target:"Symbol",stat:!0,forced:!vP},{keyFor:function(e){if(!dP(e))throw TypeError(pP(e)+" is not a symbol");if(hP(yP,e))return yP[e]}});var gP=Qy,mP=gd,bP=ld,_P=yk,SP=Jh([].push),wP=gy,kP=Xd,xP=ad,EP=wd,TP=Jh,AP=Yh,OP=gd,LP=pp,PP=pS,CP=function(e){if(mP(e))return e;if(gP(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?SP(r,i):"number"!=typeof i&&"Number"!=bP(i)&&"String"!=bP(i)||SP(r,_P(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(gP(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},RP=up,IP=String,DP=kP("JSON","stringify"),UP=TP(/./.exec),jP=TP("".charAt),MP=TP("".charCodeAt),BP=TP("".replace),NP=TP(1..toString),FP=/[\uD800-\uDFFF]/g,VP=/^[\uD800-\uDBFF]$/,zP=/^[\uDC00-\uDFFF]$/,GP=!RP||AP((function(){var e=kP("Symbol")();return"[null]"!=DP([e])||"{}"!=DP({a:e})||"{}"!=DP(Object(e))})),HP=AP((function(){return'"\\udf06\\ud834"'!==DP("\udf06\ud834")||'"\\udead"'!==DP("\udead")})),qP=function(e,t){var r=PP(arguments),n=CP(t);if(OP(n)||void 0!==e&&!LP(e))return r[1]=function(e,t){if(OP(n)&&(t=EP(n,this,IP(e),t)),!LP(t))return t},xP(DP,null,r)},YP=function(e,t,r){var n=jP(r,t-1),i=jP(r,t+1);return UP(VP,e)&&!UP(zP,i)||UP(zP,e)&&!UP(VP,n)?"\\u"+NP(MP(e,0),16):e};DP&&wP({target:"JSON",stat:!0,arity:3,forced:GP||HP},{stringify:function(e,t,r){var n=PP(arguments),i=xP(GP?qP:DP,null,n);return HP&&"string"==typeof i?BP(i,FP,YP):i}});var WP=cw,KP=Bp;gy({target:"Object",stat:!0,forced:!up||Yh((function(){WP.f(1)}))},{getOwnPropertySymbols:function(e){var t=WP.f;return t?t(KP(e)):[]}}),zO("asyncIterator"),zO("hasInstance"),zO("isConcatSpreadable"),zO("iterator"),zO("match"),zO("matchAll"),zO("replace"),zO("search"),zO("species"),zO("split");var $P=WO;zO("toPrimitive"),$P();var XP=Xd,QP=n_;zO("toStringTag"),QP(XP("Symbol"),"Symbol"),zO("unscopables"),n_(td.JSON,"JSON",!0);var JP=qd.Symbol;zO("dispose");var ZP=JP;zO("asyncDispose");var eC=gy,tC=Jh,rC=Xd("Symbol"),nC=rC.keyFor,iC=tC(rC.prototype.valueOf);eC({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==nC(iC(e))}catch(vie){return!1}}});for(var oC=gy,aC=Up,sC=Xd,uC=Jh,cC=pp,lC=tv,fC=sC("Symbol"),hC=fC.isWellKnown,dC=sC("Object","getOwnPropertyNames"),pC=uC(fC.prototype.valueOf),vC=aC("wks"),yC=0,gC=dC(fC),mC=gC.length;yC<mC;yC++)try{var bC=gC[yC];cC(fC[bC])&&lC(bC)}catch(vie){}oC({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(hC&&hC(e))return!0;try{for(var t=pC(e),r=0,n=dC(vC),i=n.length;r<i;r++)if(vC[n[r]]==t)return!0}catch(vie){}return!1}}),zO("matcher"),zO("metadataKey"),zO("observable"),zO("metadata"),zO("patternMatch"),zO("replaceAll");var _C=ZP,SC=S(_C),wC=jO.f("iterator"),kC=S(wC);function xC(e){return(xC="function"==typeof SC&&"symbol"==typeof kC?function(e){return typeof e}:function(e){return e&&"function"==typeof SC&&e.constructor===SC&&e!==SC.prototype?"symbol":typeof e})(e)}var EC=S(qd.Object.getOwnPropertySymbols),TC={exports:{}},AC=gy,OC=Yh,LC=Vd,PC=md.f,CC=bd;AC({target:"Object",stat:!0,forced:!CC||OC((function(){PC(1)})),sham:!CC},{getOwnPropertyDescriptor:function(e,t){return PC(LC(e),t)}});var RC=qd.Object,IC=TC.exports=function(e,t){return RC.getOwnPropertyDescriptor(e,t)};RC.getOwnPropertyDescriptor.sham&&(IC.sham=!0);var DC=S(TC.exports),UC=vw,jC=Vd,MC=md,BC=qg;gy({target:"Object",stat:!0,sham:!bd},{getOwnPropertyDescriptors:function(e){for(var t,r,n=jC(e),i=MC.f,o=UC(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&BC(a,t,r);return a}});var NC=S(qd.Object.getOwnPropertyDescriptors),FC={exports:{}},VC=gy,zC=bd,GC=Ym.f;VC({target:"Object",stat:!0,forced:Object.defineProperties!==GC,sham:!zC},{defineProperties:GC});var HC=qd.Object,qC=FC.exports=function(e,t){return HC.defineProperties(e,t)};HC.defineProperties.sham&&(qC.sham=!0);var YC=S(FC.exports),WC={exports:{}},KC=gy,$C=bd,XC=Fv.f;KC({target:"Object",stat:!0,forced:Object.defineProperty!==XC,sham:!$C},{defineProperty:XC});var QC=qd.Object,JC=WC.exports=function(e,t,r){return QC.defineProperty(e,t,r)};QC.defineProperty.sham&&(JC.sham=!0);var ZC=S(WC.exports),eR=S(_C),tR=S(wC);gy({target:"Object",stat:!0,sham:!bd},{create:Ab});var rR=qd.Object,nR=S((function(e,t){return rR.create(e,t)}));gy({target:"Object",stat:!0},{setPrototypeOf:b_});var iR=S(qd.Object.setPrototypeOf),oR=Jh,aR=_p,sR=Hd,uR=Vp,cR=pS,lR=Wh,fR=Function,hR=oR([].concat),dR=oR([].join),pR={},vR=lR?fR.bind:function(e){var t=aR(this),r=t.prototype,n=cR(arguments,1),i=function(){var r=hR(n,cR(arguments));return this instanceof i?function(e,t,r){if(!uR(pR,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";pR[t]=fR("C,a","return new C("+dR(n,",")+")")}return pR[t](e,r)}(t,r.length,r):t.apply(e,r)};return sR(r)&&(i.prototype=r),i},yR=vR;gy({target:"Function",proto:!0,forced:Function.bind!==yR},{bind:yR});var gR=Hy("Function").bind,mR=Zh,bR=gR,_R=Function.prototype,SR=S((function(e){var t=e.bind;return e===_R||mR(_R,e)&&t===_R.bind?bR:t})),wR=Bp,kR=jb,xR=Ob;gy({target:"Object",stat:!0,forced:Yh((function(){kR(1)})),sham:!xR},{getPrototypeOf:function(e){return kR(wR(e))}});var ER=S(qd.Object.getPrototypeOf),TR=gy,AR=ad,OR=vR,LR=Zk,PR=qv,CR=Hd,RR=Ab,IR=Yh,DR=Xd("Reflect","construct"),UR=Object.prototype,jR=[].push,MR=IR((function(){function e(){}return!(DR((function(){}),[],e)instanceof e)})),BR=!IR((function(){DR((function(){}))})),NR=MR||BR;TR({target:"Reflect",stat:!0,forced:NR,sham:NR},{construct:function(e,t){LR(e),PR(t);var r=arguments.length<3?e:LR(arguments[2]);if(BR&&!MR)return DR(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 AR(jR,n,t),new(AR(OR,e,n))}var i=r.prototype,o=RR(CR(i)?i:UR),a=AR(e,o,t);return CR(a)?a:o}});var FR=S(qd.Reflect.construct),VR=Vp,zR=wd,GR=Hd,HR=qv,qR=function(e){return void 0!==e&&(VR(e,"value")||VR(e,"writable"))},YR=md,WR=jb;gy({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return HR(t)===o?t[r]:(n=YR.f(t,r))?qR(n)?n.value:void 0===n.get?void 0:zR(n.get,o):GR(i=WR(t))?e(i,r,o):void 0}});var KR=S(qd.Reflect.get),$R=S(zw),XR=qv,QR=Zw,JR=Nv,ZR=wd,eI=Bp,tI=function(e,t,r,n){try{return n?t(XR(r)[0],r[1]):t(r)}catch(vie){QR(e,"throw",vie)}},rI=jw,nI=xg,iI=Py,oI=qg,aI=$w,sI=zw,uI=Array,cI=function(e){var t=eI(e),r=nI(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=JR(i,n>2?arguments[2]:void 0));var a,s,u,c,l,f,h=sI(t),d=0;if(!h||this===uI&&rI(h))for(a=iI(t),s=r?new this(a):uI(a);a>d;d++)f=o?i(t[d],d):t[d],oI(s,d,f);else for(l=(c=aI(t,h)).next,s=r?new this:[];!(u=ZR(l,c)).done;d++)f=o?tI(c,i,[u.value,d],!0):u.value,oI(s,d,f);return s.length=d,s},lI=cI;gy({target:"Array",stat:!0,forced:!OT((function(e){Array.from(e)}))},{from:lI});var fI=S(qd.Array.from),hI=S(jO.f("toPrimitive"));function dI(e,t){var r=dS(e);if(EC){var n=EC(e);t&&(n=kO(n).call(n,(function(t){return DC(e,t).enumerable}))),r.push.apply(r,n)}return r}function pI(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lS(r=dI(Object(i),!0)).call(r,(function(t){bI(e,t,i[t])})):NC?YC(e,NC(i)):lS(n=dI(Object(i))).call(n,(function(t){ZC(e,t,DC(i,t))}))}return e}function vI(e){return(vI="function"==typeof eR&&"symbol"==typeof tR?function(e){return typeof e}:function(e){return e&&"function"==typeof eR&&e.constructor===eR&&e!==eR.prototype?"symbol":typeof e})(e)}function yI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gI(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),ZC(e,wI(n.key),n)}}function mI(e,t,r){return t&&gI(e.prototype,t),r&&gI(e,r),ZC(e,"prototype",{writable:!1}),e}function bI(e,t,r){return(t=wI(t))in e?ZC(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _I(e){return function(e){if(gO(e))return SI(e)}(e)||function(e){if(void 0!==eR&&null!=$R(e)||null!=e["@@iterator"])return fI(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return SI(e,t);var n=IS(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return fI(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SI(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SI(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 wI(e){var t=function(e,t){if("object"!==xC(e)||null===e)return e;var r=e[hI];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xC(t)?t:String(t)}var kI=bd,xI=Jh,EI=wd,TI=Yh,AI=rb,OI=cw,LI=kd,PI=Bp,CI=Dd,RI=Object.assign,II=Object.defineProperty,DI=xI([].concat),UI=!RI||TI((function(){if(kI&&1!==RI({b:1},RI(II({},"a",{enumerable:!0,get:function(){II(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!=RI({},e)[r]||AI(RI({},t)).join("")!=n}))?function(e,t){for(var r=PI(e),n=arguments.length,i=1,o=OI.f,a=LI.f;n>i;)for(var s,u=CI(arguments[i++]),c=o?DI(AI(u),o(u)):AI(u),l=c.length,f=0;l>f;)s=c[f++],kI&&!EI(a,u,s)||(r[s]=u[s]);return r}:RI,jI=UI;gy({target:"Object",stat:!0,arity:2,forced:Object.assign!==jI},{assign:jI});var MI=S(qd.Object.assign),BI={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=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}nR&&(n.prototype=nR(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?IS(n).call(n,1):n);return EC?gm(i).call(i,EC(e)):i},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 i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].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,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,i),!0;case 5:return l.fn.call(l.context,t,n,i,o),!0;case 6:return l.fn.call(l.context,t,n,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}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}(BI);var NI=S(BI.exports),FI=Ng.some;gy({target:"Array",proto:!0,forced:!My("some")},{some:function(e){return FI(this,e,arguments.length>1?arguments[1]:void 0)}});var VI=Hy("Array").some,zI=Zh,GI=VI,HI=Array.prototype,qI=S((function(e){var t=e.some;return e===HI||zI(HI,e)&&t===HI.some?GI:t})),YI=Sy,WI=yk,KI=Bd,$I=RangeError,XI=Jh,QI=Oy,JI=yk,ZI=Bd,eD=XI((function(e){var t=WI(KI(this)),r="",n=YI(e);if(n<0||n==1/0)throw $I("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),tD=XI("".slice),rD=Math.ceil,nD=function(e){return function(t,r,n){var i,o,a=JI(ZI(t)),s=QI(r),u=a.length,c=void 0===n?" ":JI(n);return s<=u||""==c?a:((o=eD(c,rD((i=s-u)/c.length))).length>i&&(o=tD(o,0,i)),e?a+o:o+a)}},iD={start:nD(!1),end:nD(!0)},oD=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Qd),aD=iD.start;gy({target:"String",proto:!0,forced:oD},{padStart:function(e){return aD(this,e,arguments.length>1?arguments[1]:void 0)}});var sD,uD=Hy("String").padStart,cD=Zh,lD=uD,fD=String.prototype,hD=S((function(e){var t=e.padStart;return"string"==typeof e||e===fD||cD(fD,e)&&t===fD.padStart?lD:t})),dD="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,pD=td,vD=ad,yD=gd,gD=dD,mD=Qd,bD=pS,_D=ax,SD=pD.Function,wD=/MSIE .\./.test(mD)||gD&&((sD=pD.Bun.version.split(".")).length<3||0==sD[0]&&(sD[1]<3||3==sD[1]&&0==sD[2])),kD=function(e,t){var r=t?2:1;return wD?function(n,i){var o=_D(arguments.length,1)>r,a=yD(n)?n:SD(n),s=o?bD(arguments,r):[],u=o?function(){vD(a,this,s)}:a;return t?e(u,i):e(u)}:e},xD=gy,ED=td,TD=kD(ED.setInterval,!0);xD({global:!0,bind:!0,forced:ED.setInterval!==TD},{setInterval:TD});var AD=gy,OD=td,LD=kD(OD.setTimeout,!0);AD({global:!0,bind:!0,forced:OD.setTimeout!==LD},{setTimeout:LD});var PD=S(qd.setInterval),CD=S(qd.setTimeout),RD=Ng.every;gy({target:"Array",proto:!0,forced:!My("every")},{every:function(e){return RD(this,e,arguments.length>1?arguments[1]:void 0)}});var ID=Hy("Array").every,DD=Zh,UD=ID,jD=Array.prototype,MD=S((function(e){var t=e.every;return e===jD||DD(jD,e)&&t===jD.every?UD:t})),BD=td,ND=Yh,FD=yk,VD=QA.trim,zD=GA,GD=Jh("".charAt),HD=BD.parseFloat,qD=BD.Symbol,YD=qD&&qD.iterator,WD=1/HD(zD+"-0")!=-1/0||YD&&!ND((function(){HD(Object(YD))}))?function(e){var t=VD(FD(e)),r=HD(t);return 0===r&&"-"==GD(t,0)?-0:r}:HD;gy({global:!0,forced:parseFloat!=WD},{parseFloat:WD});var KD=S(qd.parseFloat),$D=qm.PROPER,XD=Yh,QD=GA,JD=QA.trim;gy({target:"String",proto:!0,forced:function(e){return XD((function(){return!!QD[e]()||"​…᠎"!=="​…᠎"[e]()||$D&&QD[e].name!==e}))}("trim")},{trim:function(){return JD(this)}});var ZD=Hy("String").trim,eU=Zh,tU=ZD,rU=String.prototype,nU=S((function(e){var t=e.trim;return"string"==typeof e||e===rU||eU(rU,e)&&t===rU.trim?tU:t})),iU=PO,oU=Math.floor,aU=function(e,t){var r=e.length,n=oU(r/2);return r<8?sU(e,t):uU(e,aU(iU(e,0,n),t),aU(iU(e,n),t),t)},sU=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},uU=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},cU=aU,lU=Qd.match(/firefox\/(\d+)/i),fU=!!lU&&+lU[1],hU=/MSIE|Trident/.test(Qd),dU=Qd.match(/AppleWebKit\/(\d+)\./),pU=!!dU&&+dU[1],vU=gy,yU=Jh,gU=_p,mU=Bp,bU=Py,_U=VS,SU=yk,wU=Yh,kU=cU,xU=My,EU=fU,TU=hU,AU=ip,OU=pU,LU=[],PU=yU(LU.sort),CU=yU(LU.push),RU=wU((function(){LU.sort(void 0)})),IU=wU((function(){LU.sort(null)})),DU=xU("sort"),UU=!wU((function(){if(AU)return AU<70;if(!(EU&&EU>3)){if(TU)return!0;if(OU)return OU<603;var e,t,r,n,i="";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++)LU.push({k:t+n,v:r})}for(LU.sort((function(e,t){return t.v-e.v})),n=0;n<LU.length;n++)t=LU[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));vU({target:"Array",proto:!0,forced:RU||!IU||!DU||!UU},{sort:function(e){void 0!==e&&gU(e);var t=mU(this);if(UU)return void 0===e?PU(t):PU(t,e);var r,n,i=[],o=bU(t);for(n=0;n<o;n++)n in t&&CU(i,t[n]);for(kU(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:SU(t)>SU(r)?1:-1}}(e)),r=bU(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)_U(t,n++);return t}});var jU=Hy("Array").sort,MU=Zh,BU=jU,NU=Array.prototype,FU=S((function(e){var t=e.sort;return e===NU||MU(NU,e)&&t===NU.sort?BU:t})),VU=gy,zU=Date,GU=Jh(zU.prototype.getTime);VU({target:"Date",stat:!0},{now:function(){return GU(new zU)}});var HU,qU=S(qd.Date.now),YU="undefined"!=typeof window&&window.location&&$y(HU=window.location.href).call(HU,"xgplayerdebugger=1")>-1,WU="color: #525252; background-color: #90ee90;",KU="color: #525252; background-color: red;",$U="color: #525252; background-color: yellow; ",XU="%c[xgplayer]",QU={config:{debug:YU?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,gm(t=[XU,WU,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,gm(t=[XU,$U,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,gm(t=[XU,KU,e]).call(t,o))}}},JU=function(){function e(t){yI(this,e),this.bufferedList=t}return mI(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),ZU={};ZU.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return o.className=i,o.innerHTML=r,lS(e=dS(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&o.setAttribute(r,i):o.setAttribute(r,i)})),o},ZU.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var o;if(i=i[0],r&&ZU.addClass(i,r),t)lS(o=dS(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return QU.logError("util.createDomFromHtml",a),null}},ZU.hasClass=function(e,t){if(!e||!t)return!1;try{return qI(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===vI(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},ZU.addClass=function(e,t){if(e&&t)try{var r;lS(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){ZU.hasClass(e,t)||(e.className&&"object"===vI(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},ZU.removeClass=function(e,t){if(e&&t)try{var r;lS(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(ZU.hasClass(e,t))lS(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===vI(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},ZU.toggleClass=function(e,t){var r;e&&lS(r=t.split(/\s+/g)).call(r,(function(t){ZU.hasClass(e,t)?ZU.removeClass(e,t):ZU.addClass(e,t)}))},ZU.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===ZU.typeOf(e[r]))t.push(e[r]);else if("Object"===ZU.typeOf(e[r])){var n;yO(n=dS(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},ZU.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(n){QU.logError("util.findDom",n),0===$y(r).call(r,"#")&&(e=t.getElementById(IS(r).call(r,1)))}return e},ZU.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},ZU.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],s=String(e);o--;)a.push(n);return a.join("").substring(0,i-s.length)+s},ZU.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=hD(ZU).call(ZU,Math.floor(e/3600),2,0),r=hD(ZU).call(ZU,Math.floor((e-3600*t)/60),2,0),n=hD(ZU).call(ZU,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},ZU.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},ZU.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},ZU.deepCopy=function(e,t){var r;if("Object"===ZU.typeOf(t)&&"Object"===ZU.typeOf(e))return lS(r=dS(t)).call(r,(function(r){if("Object"!==ZU.typeOf(t[r])||t[r]instanceof Node)if("Array"===ZU.typeOf(t[r])){var n;e[r]="Array"===ZU.typeOf(e[r])?gm(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:ZU.deepCopy(e[r],t[r])})),e},ZU.deepMerge=function(e,t){var r;return yO(r=dS(t)).call(r,(function(r){var n;"Array"===ZU.typeOf(t[r])&&"Array"===ZU.typeOf(e[r])?"Array"===ZU.typeOf(e[r])&&(n=e[r]).push.apply(n,_I(t[r])):ZU.typeOf(e[r])!==ZU.typeOf(t[r])||null===e[r]||"Object"!==ZU.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):ZU.deepMerge(e[r],t[r])})),e},ZU.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},ZU.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return lS(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},ZU.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=PD(SR(r).call(r,e),n))},ZU.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},ZU.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=CD((function(){t(),ZU.clearTimeout(e,n)}),r);return e._timers.push(n),n},ZU.clearTimeout=function(e,t){var r=e._timers;if("Array"===ZU.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){ow(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},ZU.clearAllTimers=function(e){var t=e._timers;"Array"===ZU.typeOf(t)&&(yO(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},ZU.createImgBtn=function(e,t,r,n){var i,o,a,s,u,c,l,f,h,d,p,v,y=ZU.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(y.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(MD(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!($y(r).call(r,e)>-1&&$y(n).call(n,e)>-1)||(l=KD(nU(t=IS(r).call(r,0,$y(r).call(r,e))).call(t)),f=KD(nU(i=IS(n).call(n,0,$y(n).call(n,e))).call(i)),h=e,!1)})),y.style.width=gm(o="".concat(l)).call(o,h),y.style.height=gm(a="".concat(f)).call(a,h),y.style.backgroundSize=gm(s=gm(u=gm(c="".concat(l)).call(c,h," ")).call(u,f)).call(s,h),y.style.margin="start"===e?gm(d=gm(p=gm(v="-".concat(f/2)).call(v,h," auto auto -")).call(p,l/2)).call(d,h):"auto 5px auto 5px");return y},ZU.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(lO(e,16))})),gm(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},ZU.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},ZU.checkIsFunction=function(e){return e&&"function"==typeof e},ZU.checkIsObject=function(e){return null!==e&&"object"===vI(e)},ZU.hide=function(e){e.style.display="none"},ZU.show=function(e,t){e.style.display=t||"block"},ZU.isUndefined=function(e){if(null==e)return!0},ZU.isNotNull=function(e){return!(null==e)},ZU.setStyleFromCsstext=function(e,t){if(t)if("String"===ZU.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");yO(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;yO(n=dS(t)).call(n,(function(r){e.style[r]=t[r]}))}},ZU.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),o={},a={};return yO(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if($y(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),yO(t=dS(a)).call(t,(function(t){e.style[t]=a[t]})),o},ZU.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return yO(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},ZU.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},ZU.stopPropagation=function(e){e&&e.stopPropagation()},ZU.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},ZU.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},ZU.checkTouchSupport=function(){return"ontouchstart"in window},ZU.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});FU(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var o=0;o<r.length;o++){var a=i.length;if(a){var s=i[a-1].end;r[o].start-s<t?r[o].end>s&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new JU(i)},ZU.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},ZU.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},ZU.getHostFromUrl=function(e){if("String"!==ZU.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},ZU.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},ZU.isMSE=function(e){return!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},ZU.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=lO(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=lO(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},ZU.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},ZU.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},ZU.createPositionBar=function(e,t){var r=ZU.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},ZU.getTransformStyle=function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0};return gm(e=gm(t=gm(r="scale(".concat(n.scale||1,") translate(")).call(r,n.x||0,"%, ")).call(t,n.y||0,"%) rotate(")).call(e,n.rotate||0,"deg)")},ZU.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360};var ej="3.0.7",tj={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},rj=mI((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};yI(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var i,o=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,s=t.currentTime,u=t.ended,c=t.src,l=t.currentSrc,f=t.media,h=f.readyState,d=f.networkState,p=r.errorCode||o.code;tj[p]&&(p=tj[p]);var v={playerVersion:ej,currentTime:s,duration:a,ended:u,readyState:h,networkState:d,src:c||l,errorType:r.errorType,errorCode:p,message:r.errorMessage||o.message,mediaError:o,originError:r.originError?r.originError.stack:"",host:ZU.getHostFromUrl(c||l)};return r.ext&&yO(i=dS(r.ext)).call(i,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var y={playerVersion:ej,domain:document.domain},g=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)y[g[m]]=arguments[m];return y.ex=n?(n[arguments[0]]||{}).msg:"",y}}));function nj(e,t,r){for(var n,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var s,u=t.call.apply(t,gm(n=[e]).call(n,o));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r.call.apply(r,gm(t=[e]).call(t,i))})):r.call.apply(r,gm(s=[e]).call(s,o)))}function ij(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),SR(r=function(){var r,i=arguments,o=this;if(n.pre)try{var a,s;(s=n.pre).call.apply(s,gm(a=[this]).call(a,IS(Array.prototype).call(arguments)))}catch(g){var u,c;throw g.message=gm(u=gm(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(u,g.message),g}if(this.__hooks&&this.__hooks[e])try{var l,f,h,d=(f=this.__hooks[e]).call.apply(f,gm(l=[this,this]).call(l,IS(Array.prototype).call(arguments)));if(d)if(d.then)d.then((function(e){var r;!1!==e&&nj.apply(void 0,gm(r=[o,t,n.next]).call(r,_I(i)))})).catch((function(e){throw e}));else nj.apply(void 0,gm(h=[this,t,n.next]).call(h,IS(Array.prototype).call(arguments)));else if(void 0===d){var p;nj.apply(void 0,gm(p=[this,t,n.next]).call(p,IS(Array.prototype).call(arguments)))}}catch(g){var v,y;throw g.message=gm(v=gm(y="[pluginName: ".concat(this.pluginName,":")).call(y,e,"] >> ")).call(v,g.message),g}else nj.apply(void 0,gm(r=[this,t,n.next]).call(r,IS(Array.prototype).call(arguments)))}).call(r,this)}function oj(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function aj(e,t){var r=this.__hooks;r&&delete r[e]}function sj(e,t){var r;QU.logError(gm(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var uj=function(){function e(t){yI(this,e),ZU.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&yO(t).call(t,(function(t){e.__hooks[t]=null})),ZC(e,"hooks",{get:function(){var t;return e.__hooks&&yO(t=dS(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return mI(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=ZU.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):gO(e)&&lS(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):sj(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):gO(e)&&lS(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):sj(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):gO(e)&&lS(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):sj(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;lS(e=["__events","__onceEvents"]).call(e,(function(e){var r;lS(r=dS(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(r=this.player).emit.apply(r,gm(t=[e]).call(t,i))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=pI(pI({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return ij.call.apply(ij,gm(r=[this]).call(r,IS(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return oj.call.apply(oj,gm(r=[this]).call(r,IS(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return aj.call.apply(aj,gm(r=[this]).call(r,IS(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(t.pluginName=r),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,r=this.player,n=this.pluginName;this.offAll(),ZU.clearAllTimers(this),ZU.checkIsFunction(this.destroy)&&this.destroy(),yO(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&ZC(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),cj=Yh,lj=tv("iterator"),fj=!cj((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})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[lj]||"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})),hj=Jh,dj=2147483647,pj=/[^\0-\u007E]/,vj=/[.\u3002\uFF0E\uFF61]/g,yj="Overflow: input needs wider integers to process",gj=RangeError,mj=hj(vj.exec),bj=Math.floor,_j=String.fromCharCode,Sj=hj("".charCodeAt),wj=hj([].join),kj=hj([].push),xj=hj("".replace),Ej=hj("".split),Tj=hj("".toLowerCase),Aj=function(e){return e+22+75*(e<26)},Oj=function(e,t,r){var n=0;for(e=r?bj(e/700):e>>1,e+=bj(e/t);e>455;)e=bj(e/35),n+=36;return bj(n+36*e/(e+38))},Lj=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=Sj(e,r++);if(i>=55296&&i<=56319&&r<n){var o=Sj(e,r++);56320==(64512&o)?kj(t,((1023&i)<<10)+(1023&o)+65536):(kj(t,i),r--)}else kj(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&kj(t,_j(n));var u=t.length,c=u;for(u&&kj(t,"-");c<i;){var l=dj;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>bj((dj-a)/f))throw gj(yj);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>dj)throw gj(yj);if(n==o){for(var h=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var v=h-p,y=36-p;kj(t,_j(Aj(p+v%y))),h=bj(v/y),d+=36}kj(t,_j(Aj(h))),s=Oj(a,f,c==u),a=0,c++}}a++,o++}return wj(t,"")},Pj=Bb,Cj=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Pj(e,n,t[n],r);return e},Rj=gy,Ij=td,Dj=wd,Uj=Jh,jj=bd,Mj=fj,Bj=Bb,Nj=Vk,Fj=Cj,Vj=n_,zj=l_,Gj=Nm,Hj=$k,qj=gd,Yj=Vp,Wj=Nv,Kj=ag,$j=qv,Xj=Hd,Qj=yk,Jj=Ab,Zj=Ld,eM=$w,tM=zw,rM=ax,nM=cU,iM=tv("iterator"),oM="URLSearchParams",aM=oM+"Iterator",sM=Gj.set,uM=Gj.getterFor(oM),cM=Gj.getterFor(aM),lM=Object.getOwnPropertyDescriptor,fM=function(e){if(!jj)return Ij[e];var t=lM(Ij,e);return t&&t.value},hM=fM("fetch"),dM=fM("Request"),pM=fM("Headers"),vM=dM&&dM.prototype,yM=pM&&pM.prototype,gM=Ij.RegExp,mM=Ij.TypeError,bM=Ij.decodeURIComponent,_M=Ij.encodeURIComponent,SM=Uj("".charAt),wM=Uj([].join),kM=Uj([].push),xM=Uj("".replace),EM=Uj([].shift),TM=Uj([].splice),AM=Uj("".split),OM=Uj("".slice),LM=/\+/g,PM=Array(4),CM=function(e){return PM[e-1]||(PM[e-1]=gM("((?:%[\\da-f]{2}){"+e+"})","gi"))},RM=function(e){try{return bM(e)}catch(vie){return e}},IM=function(e){var t=xM(e,LM," "),r=4;try{return bM(t)}catch(vie){for(;r;)t=xM(t,CM(r--),RM);return t}},DM=/[!'()~]|%20/g,UM={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},jM=function(e){return UM[e]},MM=function(e){return xM(_M(e),DM,jM)},BM=zj((function(e,t){sM(this,{type:aM,iterator:eM(uM(e).entries),kind:t})}),"Iterator",(function(){var e=cM(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),NM=function(e){this.entries=[],this.url=null,void 0!==e&&(Xj(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===SM(e,0)?OM(e,1):e:Qj(e)))};NM.prototype={type:oM,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,u=tM(e);if(u)for(r=(t=eM(e,u)).next;!(n=Dj(r,t)).done;){if(o=(i=eM($j(n.value))).next,(a=Dj(o,i)).done||(s=Dj(o,i)).done||!Dj(o,i).done)throw mM("Expected sequence with length 2");kM(this.entries,{key:Qj(a.value),value:Qj(s.value)})}else for(var c in e)Yj(e,c)&&kM(this.entries,{key:c,value:Qj(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=AM(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=AM(t,"="),kM(this.entries,{key:IM(EM(r)),value:IM(wM(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],kM(r,MM(e.key)+"="+MM(e.value));return wM(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var FM=function(){Hj(this,VM);var e=sM(this,new NM(arguments.length>0?arguments[0]:void 0));jj||(this.length=e.entries.length)},VM=FM.prototype;if(Fj(VM,{append:function(e,t){rM(arguments.length,2);var r=uM(this);kM(r.entries,{key:Qj(e),value:Qj(t)}),jj||this.length++,r.updateURL()},delete:function(e){rM(arguments.length,1);for(var t=uM(this),r=t.entries,n=Qj(e),i=0;i<r.length;)r[i].key===n?TM(r,i,1):i++;jj||(this.length=r.length),t.updateURL()},get:function(e){rM(arguments.length,1);for(var t=uM(this).entries,r=Qj(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){rM(arguments.length,1);for(var t=uM(this).entries,r=Qj(e),n=[],i=0;i<t.length;i++)t[i].key===r&&kM(n,t[i].value);return n},has:function(e){rM(arguments.length,1);for(var t=uM(this).entries,r=Qj(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){rM(arguments.length,1);for(var r,n=uM(this),i=n.entries,o=!1,a=Qj(e),s=Qj(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?TM(i,u--,1):(o=!0,r.value=s));o||kM(i,{key:a,value:s}),jj||(this.length=i.length),n.updateURL()},sort:function(){var e=uM(this);nM(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=uM(this).entries,n=Wj(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new BM(this,"keys")},values:function(){return new BM(this,"values")},entries:function(){return new BM(this,"entries")}},{enumerable:!0}),Bj(VM,iM,VM.entries,{name:"entries"}),Bj(VM,"toString",(function(){return uM(this).serialize()}),{enumerable:!0}),jj&&Nj(VM,"size",{get:function(){return uM(this).entries.length},configurable:!0,enumerable:!0}),Vj(FM,oM),Rj({global:!0,constructor:!0,forced:!Mj},{URLSearchParams:FM}),!Mj&&qj(pM)){var zM=Uj(yM.has),GM=Uj(yM.set),HM=function(e){if(Xj(e)){var t,r=e.body;if(Kj(r)===oM)return t=e.headers?new pM(e.headers):new pM,zM(t,"content-type")||GM(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Jj(e,{body:Zj(0,Qj(r)),headers:Zj(0,t)})}return e};if(qj(hM)&&Rj({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return hM(e,arguments.length>1?HM(arguments[1]):{})}}),qj(dM)){var qM=function(e){return Hj(this,vM),new dM(e,arguments.length>1?HM(arguments[1]):{})};vM.constructor=qM,qM.prototype=vM,Rj({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:qM})}}var YM,WM=gy,KM=bd,$M=fj,XM=td,QM=Nv,JM=Jh,ZM=Bb,eB=Vk,tB=$k,rB=Vp,nB=UI,iB=cI,oB=PO,aB=LA.codeAt,sB=function(e){var t,r,n=[],i=Ej(xj(Tj(e),vj,"."),".");for(t=0;t<i.length;t++)r=i[t],kj(n,mj(pj,r)?"xn--"+Lj(r):r);return wj(n,".")},uB=yk,cB=n_,lB=ax,fB={URLSearchParams:FM,getState:uM},hB=Nm,dB=hB.set,pB=hB.getterFor("URL"),vB=fB.URLSearchParams,yB=fB.getState,gB=XM.URL,mB=XM.TypeError,bB=XM.parseInt,_B=Math.floor,SB=Math.pow,wB=JM("".charAt),kB=JM(/./.exec),xB=JM([].join),EB=JM(1..toString),TB=JM([].pop),AB=JM([].push),OB=JM("".replace),LB=JM([].shift),PB=JM("".split),CB=JM("".slice),RB=JM("".toLowerCase),IB=JM([].unshift),DB="Invalid scheme",UB="Invalid host",jB="Invalid port",MB=/[a-z]/i,BB=/[\d+-.a-z]/i,NB=/\d/,FB=/^0x/i,VB=/^[0-7]+$/,zB=/^\d+$/,GB=/^[\da-f]+$/i,HB=/[\0\t\n\r #%/:<>?@[\\\]^|]/,qB=/[\0\t\n\r #/:<>?@[\\\]^|]/,YB=/^[\u0000-\u0020]+/,WB=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,KB=/[\t\n\r]/g,$B=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)IB(t,e%256),e=_B(e/256);return xB(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=EB(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},XB={},QB=nB({},XB,{" ":1,'"':1,"<":1,">":1,"`":1}),JB=nB({},QB,{"#":1,"?":1,"{":1,"}":1}),ZB=nB({},JB,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),eN=function(e,t){var r=aB(e,0);return r>32&&r<127&&!rB(t,e)?e:encodeURIComponent(e)},tN={ftp:21,file:null,http:80,https:443,ws:80,wss:443},rN=function(e,t){var r;return 2==e.length&&kB(MB,wB(e,0))&&(":"==(r=wB(e,1))||!t&&"|"==r)},nN=function(e){var t;return e.length>1&&rN(CB(e,0,2))&&(2==e.length||"/"===(t=wB(e,2))||"\\"===t||"?"===t||"#"===t)},iN=function(e){return"."===e||"%2e"===RB(e)},oN={},aN={},sN={},uN={},cN={},lN={},fN={},hN={},dN={},pN={},vN={},yN={},gN={},mN={},bN={},_N={},SN={},wN={},kN={},xN={},EN={},TN=function(e,t,r){var n,i,o,a=uB(e);if(t){if(i=this.parse(a))throw mB(i);this.searchParams=null}else{if(void 0!==r&&(n=new TN(r,!0)),i=this.parse(a,null,n))throw mB(i);(o=yB(new vB)).bindURL(this),this.searchParams=o}};TN.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,u=this,c=t||oN,l=0,f="",h=!1,d=!1,p=!1;for(e=uB(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=OB(e,YB,""),e=OB(e,WB,"$1")),e=OB(e,KB,""),n=iB(e);l<=n.length;){switch(i=n[l],c){case oN:if(!i||!kB(MB,i)){if(t)return DB;c=sN;continue}f+=RB(i),c=aN;break;case aN:if(i&&(kB(BB,i)||"+"==i||"-"==i||"."==i))f+=RB(i);else{if(":"!=i){if(t)return DB;f="",c=sN,l=0;continue}if(t&&(u.isSpecial()!=rB(tN,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&tN[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=mN:u.isSpecial()&&r&&r.scheme==u.scheme?c=uN:u.isSpecial()?c=hN:"/"==n[l+1]?(c=cN,l++):(u.cannotBeABaseURL=!0,AB(u.path,""),c=kN)}break;case sN:if(!r||r.cannotBeABaseURL&&"#"!=i)return DB;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=oB(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=EN;break}c="file"==r.scheme?mN:lN;continue;case uN:if("/"!=i||"/"!=n[l+1]){c=lN;continue}c=dN,l++;break;case cN:if("/"==i){c=pN;break}c=wN;continue;case lN:if(u.scheme=r.scheme,i==YM)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=oB(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())c=fN;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=oB(r.path),u.query="",c=xN;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=oB(r.path),u.path.length--,c=wN;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=oB(r.path),u.query=r.query,u.fragment="",c=EN}break;case fN:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=wN;continue}c=pN}else c=dN;break;case hN:if(c=dN,"/"!=i||"/"!=wB(f,l+1))continue;l++;break;case dN:if("/"!=i&&"\\"!=i){c=pN;continue}break;case pN:if("@"==i){h&&(f="%40"+f),h=!0,o=iB(f);for(var v=0;v<o.length;v++){var y=o[v];if(":"!=y||p){var g=eN(y,ZB);p?u.password+=g:u.username+=g}else p=!0}f=""}else if(i==YM||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==f)return"Invalid authority";l-=iB(f).length+1,f="",c=vN}else f+=i;break;case vN:case yN:if(t&&"file"==u.scheme){c=_N;continue}if(":"!=i||d){if(i==YM||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==f)return UB;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",c=SN,t)return;continue}"["==i?d=!0:"]"==i&&(d=!1),f+=i}else{if(""==f)return UB;if(a=u.parseHost(f))return a;if(f="",c=gN,t==yN)return}break;case gN:if(!kB(NB,i)){if(i==YM||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=f){var m=bB(f,10);if(m>65535)return jB;u.port=u.isSpecial()&&m===tN[u.scheme]?null:m,f=""}if(t)return;c=SN;continue}return jB}f+=i;break;case mN:if(u.scheme="file","/"==i||"\\"==i)c=bN;else{if(!r||"file"!=r.scheme){c=wN;continue}if(i==YM)u.host=r.host,u.path=oB(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=oB(r.path),u.query="",c=xN;else{if("#"!=i){nN(xB(oB(n,l),""))||(u.host=r.host,u.path=oB(r.path),u.shortenPath()),c=wN;continue}u.host=r.host,u.path=oB(r.path),u.query=r.query,u.fragment="",c=EN}}break;case bN:if("/"==i||"\\"==i){c=_N;break}r&&"file"==r.scheme&&!nN(xB(oB(n,l),""))&&(rN(r.path[0],!0)?AB(u.path,r.path[0]):u.host=r.host),c=wN;continue;case _N:if(i==YM||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&rN(f))c=wN;else if(""==f){if(u.host="",t)return;c=SN}else{if(a=u.parseHost(f))return a;if("localhost"==u.host&&(u.host=""),t)return;f="",c=SN}continue}f+=i;break;case SN:if(u.isSpecial()){if(c=wN,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=YM&&(c=wN,"/"!=i))continue}else u.fragment="",c=EN;else u.query="",c=xN;break;case wN:if(i==YM||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=RB(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||AB(u.path,"")):iN(f)?"/"==i||"\\"==i&&u.isSpecial()||AB(u.path,""):("file"==u.scheme&&!u.path.length&&rN(f)&&(u.host&&(u.host=""),f=wB(f,0)+":"),AB(u.path,f)),f="","file"==u.scheme&&(i==YM||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)LB(u.path);"?"==i?(u.query="",c=xN):"#"==i&&(u.fragment="",c=EN)}else f+=eN(i,JB);break;case kN:"?"==i?(u.query="",c=xN):"#"==i?(u.fragment="",c=EN):i!=YM&&(u.path[0]+=eN(i,XB));break;case xN:t||"#"!=i?i!=YM&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":eN(i,XB)):(u.fragment="",c=EN);break;case EN:i!=YM&&(u.fragment+=eN(i,QB))}l++}},parseHost:function(e){var t,r,n;if("["==wB(e,0)){if("]"!=wB(e,e.length-1))return UB;if(t=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return wB(e,f)};if(":"==h()){if(":"!=wB(e,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&kB(GB,h());)t=16*t+bB(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!kB(NB,h()))return;for(;kB(NB,h());){if(o=bB(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(CB(e,1,-1)),!t)return UB;this.host=t}else if(this.isSpecial()){if(e=sB(e),kB(HB,e))return UB;if(t=function(e){var t,r,n,i,o,a,s,u=PB(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==wB(i,0)&&(o=kB(FB,i)?16:8,i=CB(i,8==o?1:2)),""===i)a=0;else{if(!kB(10==o?zB:8==o?VB:GB,i))return e;a=bB(i,o)}AB(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=SB(256,5-t))return null}else if(a>255)return null;for(s=TB(r),n=0;n<r.length;n++)s+=r[n]*SB(256,3-n);return s}(e),null===t)return UB;this.host=t}else{if(kB(qB,e))return UB;for(t="",r=iB(e),n=0;n<r.length;n++)t+=eN(r[n],XB);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return rB(tN,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&rN(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=$B(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+xB(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw mB(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new AN(e.path[0]).origin}catch(vie){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+$B(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(uB(e)+":",oN)},getUsername:function(){return this.username},setUsername:function(e){var t=iB(uB(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=eN(t[r],ZB)}},getPassword:function(){return this.password},setPassword:function(e){var t=iB(uB(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=eN(t[r],ZB)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?$B(e):$B(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,vN)},getHostname:function(){var e=this.host;return null===e?"":$B(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,yN)},getPort:function(){var e=this.port;return null===e?"":uB(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=uB(e))?this.port=null:this.parse(e,gN))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+xB(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,SN))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=uB(e))?this.query=null:("?"==wB(e,0)&&(e=CB(e,1)),this.query="",this.parse(e,xN)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=uB(e))?("#"==wB(e,0)&&(e=CB(e,1)),this.fragment="",this.parse(e,EN)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var AN=function(e){var t=tB(this,ON),r=lB(arguments.length,1)>1?arguments[1]:void 0,n=dB(t,new TN(e,!1,r));KM||(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())},ON=AN.prototype,LN=function(e,t){return{get:function(){return pB(this)[e]()},set:t&&function(e){return pB(this)[t](e)},configurable:!0,enumerable:!0}};if(KM&&(eB(ON,"href",LN("serialize","setHref")),eB(ON,"origin",LN("getOrigin")),eB(ON,"protocol",LN("getProtocol","setProtocol")),eB(ON,"username",LN("getUsername","setUsername")),eB(ON,"password",LN("getPassword","setPassword")),eB(ON,"host",LN("getHost","setHost")),eB(ON,"hostname",LN("getHostname","setHostname")),eB(ON,"port",LN("getPort","setPort")),eB(ON,"pathname",LN("getPathname","setPathname")),eB(ON,"search",LN("getSearch","setSearch")),eB(ON,"searchParams",LN("getSearchParams")),eB(ON,"hash",LN("getHash","setHash"))),ZM(ON,"toJSON",(function(){return pB(this).serialize()}),{enumerable:!0}),ZM(ON,"toString",(function(){return pB(this).serialize()}),{enumerable:!0}),gB){var PN=gB.createObjectURL,CN=gB.revokeObjectURL;PN&&ZM(AN,"createObjectURL",QM(PN,gB)),CN&&ZM(AN,"revokeObjectURL",QM(CN,gB))}cB(AN,"URL"),WM({global:!0,constructor:!0,forced:!$M,sham:!KM},{URL:AN});var RN=gy,IN=Yh,DN=ax,UN=yk,jN=fj,MN=Xd("URL");RN({target:"URL",stat:!0,forced:!(jN&&IN((function(){MN.canParse()})))},{canParse:function(e){var t=DN(arguments.length,1),r=UN(e),n=t<2||void 0===arguments[1]?void 0:UN(arguments[1]);try{return!!new MN(r,n)}catch(vie){return!1}}});var BN=S(qd.URL),NN=qd,FN=ad;NN.JSON||(NN.JSON={stringify:JSON.stringify});var VN=function(e,t,r){return FN(NN.JSON.stringify,null,arguments)},zN=S(VN),GN=Hd,HN=ld,qN=tv("match"),YN=function(e){var t;return GN(e)&&(void 0!==(t=e[qN])?!!t:"RegExp"==HN(e))},WN=TypeError,KN=tv("match"),$N=Uy.includes;gy({target:"Array",proto:!0,forced:Yh((function(){return!Array(1).includes()}))},{includes:function(e){return $N(this,e,arguments.length>1?arguments[1]:void 0)}});var XN=Hy("Array").includes,QN=gy,JN=function(e){if(YN(e))throw WN("The method doesn't accept regular expressions");return e},ZN=Bd,eF=yk,tF=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[KN]=!1,"/./"[e](t)}catch(n){}}return!1},rF=Jh("".indexOf);QN({target:"String",proto:!0,forced:!tF("includes")},{includes:function(e){return!!~rF(eF(ZN(this)),eF(JN(e)),arguments.length>1?arguments[1]:void 0)}});var nF=Hy("String").includes,iF=Zh,oF=XN,aF=nF,sF=Array.prototype,uF=String.prototype,cF=S((function(e){var t=e.includes;return e===sF||iF(sF,e)&&t===sF.includes?oF:"string"==typeof e||e===uF||iF(uF,e)&&t===uF.includes?aF:t})),lF=gy,fF=Qy,hF=Jh([].reverse),dF=[1,2];lF({target:"Array",proto:!0,forced:String(dF)===String(dF.reverse())},{reverse:function(){return fF(this)&&(this.length=this.length),hF(this)}});var pF=Hy("Array").reverse,vF=Zh,yF=pF,gF=Array.prototype,mF=S((function(e){var t=e.reverse;return e===gF||vF(gF,e)&&t===gF.reverse?yF:t})),bF={exports:{}},_F=Yh((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),SF=Yh,wF=Hd,kF=ld,xF=_F,EF=Object.isExtensible,TF=SF((function(){EF(1)}))||xF?function(e){return!!wF(e)&&((!xF||"ArrayBuffer"!=kF(e))&&(!EF||EF(e)))}:EF,AF=!Yh((function(){return Object.isExtensible(Object.preventExtensions({}))})),OF=gy,LF=Jh,PF=Em,CF=Hd,RF=Vp,IF=Fv.f,DF=aw,UF=xO,jF=TF,MF=AF,BF=!1,NF=Yp("meta"),FF=0,VF=function(e){IF(e,NF,{value:{objectID:"O"+FF++,weakData:{}}})},zF=bF.exports={enable:function(){zF.enable=function(){},BF=!0;var e=DF.f,t=LF([].splice),r={};r[NF]=1,e(r).length&&(DF.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===NF){t(n,i,1);break}return n},OF({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:UF.f}))},fastKey:function(e,t){if(!CF(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!RF(e,NF)){if(!jF(e))return"F";if(!t)return"E";VF(e)}return e[NF].objectID},getWeakData:function(e,t){if(!RF(e,NF)){if(!jF(e))return!0;if(!t)return!1;VF(e)}return e[NF].weakData},onFreeze:function(e){return MF&&BF&&jF(e)&&!RF(e,NF)&&VF(e),e}};PF[NF]=!0;var GF=bF.exports,HF=gy,qF=td,YF=GF,WF=Yh,KF=oy,$F=dk,XF=$k,QF=gd,JF=Hd,ZF=n_,eV=Fv.f,tV=Ng.forEach,rV=bd,nV=Nm.set,iV=Nm.getterFor,oV=function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=qF[e],u=s&&s.prototype,c={};if(rV&&QF(s)&&(o||u.forEach&&!WF((function(){(new s).entries().next()})))){var l=(n=t((function(t,r){nV(XF(t,l),{type:e,collection:new s}),null!=r&&$F(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=iV(e);tV(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||o&&"clear"==e||KF(l,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!JF(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||eV(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),YF.enable();return ZF(n,e,!1,!0),c[e]=n,HF({global:!0,forced:!0},c),o||r.setStrong(n,e,i),n},aV=Ab,sV=Vk,uV=Cj,cV=Nv,lV=$k,fV=Ud,hV=dk,dV=j_,pV=M_,vV=Yk,yV=bd,gV=GF.fastKey,mV=Nm.set,bV=Nm.getterFor,_V={getConstructor:function(e,t,r,n){var i=e((function(e,i){lV(e,o),mV(e,{type:t,index:aV(null),first:void 0,last:void 0,size:0}),yV||(e.size=0),fV(i)||hV(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=bV(t),s=function(e,t,r){var n,i,o=a(e),s=u(e,t);return s?s.value=r:(o.last=s={index:i=gV(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),yV?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},u=function(e,t){var r,n=a(e),i=gV(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return uV(o,{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,yV?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),yV?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=cV(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!!u(this,e)}}),uV(o,r?{get:function(e){var t=u(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)}}),yV&&sV(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=bV(t),o=bV(n);dV(e,t,(function(e,t){mV(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(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)?pV("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,pV(void 0,!0))}),r?"entries":"values",!r,!0),vV(t)}};oV("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),_V);var SV=qd.Map,wV=Nv,kV=wd,xV=_p,EV=Zk,TV=Ud,AV=dk,OV=[].push,LV=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return EV(this),(t=void 0!==a)&&xV(a),TV(e)?new this:(r=[],t?(n=0,i=wV(a,o>2?arguments[2]:void 0),AV(e,(function(e){kV(OV,r,i(e,n++))}))):AV(e,OV,{that:r}),new this(r))};gy({target:"Map",stat:!0,forced:!0},{from:LV});var PV=pS,CV=function(){return new this(PV(arguments))};gy({target:"Map",stat:!0,forced:!0},{of:CV});var RV=yp,IV=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(RV(e)+" is not a map")},DV=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},UV=DV,jV=Xd("Map"),MV={Map:jV,set:UV("set",2),get:UV("get",1),has:UV("has",1),remove:UV("delete",1),proto:jV.prototype},BV=IV,NV=MV.remove;gy({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=BV(this),r=!0,n=0,i=arguments.length;n<i;n++)e=NV(t,arguments[n]),r=r&&e;return!!r}});var FV=IV,VV=MV.get,zV=MV.has,GV=MV.set;gy({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=FV(this);return zV(i,e)?(r=VV(i,e),"update"in t&&(r=t.update(r,e,i),GV(i,e,r)),r):(n=t.insert(e,i),GV(i,e,n),n)}});var HV=wd,qV=function(e,t,r){for(var n,i,o=r||e.next;!(n=HV(o,e)).done;)if(void 0!==(i=t(n.value)))return i},YV=qV,WV=function(e,t,r){return r?YV(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},KV=Nv,$V=IV,XV=WV;gy({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=$V(this),r=KV(e,arguments.length>1?arguments[1]:void 0);return!1!==XV(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var QV=Nv,JV=IV,ZV=WV,ez=MV.Map,tz=MV.set;gy({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=JV(this),r=QV(e,arguments.length>1?arguments[1]:void 0),n=new ez;return ZV(t,(function(e,i){r(e,i,t)&&tz(n,i,e)})),n}});var rz=Nv,nz=IV,iz=WV;gy({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=nz(this),r=rz(e,arguments.length>1?arguments[1]:void 0),n=iz(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var oz=Nv,az=IV,sz=WV;gy({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=az(this),r=oz(e,arguments.length>1?arguments[1]:void 0),n=sz(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var uz=gy,cz=wd,lz=gd,fz=_p,hz=dk,dz=MV.Map,pz=Jh([].push);uz({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(lz(this)?this:dz);fz(t);var n=fz(r.has),i=fz(r.get),o=fz(r.set);return hz(e,(function(e){var a=t(e);cz(n,r,a)?pz(cz(i,r,a),e):cz(o,r,a,[e])})),r}});var vz=function(e,t){return e===t||e!=e&&t!=t},yz=IV,gz=WV;gy({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===gz(yz(this),(function(t){if(vz(t,e))return!0}),!0)}});var mz=wd,bz=dk,_z=gd,Sz=_p,wz=MV.Map;gy({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(_z(this)?this:wz);Sz(t);var n=Sz(r.set);return bz(e,(function(e){mz(n,r,t(e),e)})),r}});var kz=IV,xz=WV;gy({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=xz(kz(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var Ez=Nv,Tz=IV,Az=WV,Oz=MV.Map,Lz=MV.set;gy({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=Tz(this),r=Ez(e,arguments.length>1?arguments[1]:void 0),n=new Oz;return Az(t,(function(e,i){Lz(n,r(e,i,t),e)})),n}});var Pz=Nv,Cz=IV,Rz=WV,Iz=MV.Map,Dz=MV.set;gy({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=Cz(this),r=Pz(e,arguments.length>1?arguments[1]:void 0),n=new Iz;return Rz(t,(function(e,i){Dz(n,i,r(e,i,t))})),n}});var Uz=IV,jz=dk,Mz=MV.set;gy({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=Uz(this),r=arguments.length,n=0;n<r;)jz(arguments[n++],(function(e,r){Mz(t,e,r)}),{AS_ENTRIES:!0});return t}});var Bz=_p,Nz=IV,Fz=WV,Vz=TypeError;gy({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=Nz(this),r=arguments.length<2,n=r?void 0:arguments[1];if(Bz(e),Fz(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw Vz("Reduce of empty map with no initial value");return n}});var zz=Nv,Gz=IV,Hz=WV;gy({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=Gz(this),r=zz(e,arguments.length>1?arguments[1]:void 0);return!0===Hz(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var qz=_p,Yz=IV,Wz=TypeError,Kz=MV.get,$z=MV.has,Xz=MV.set;gy({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=Yz(this),n=arguments.length;qz(t);var i=$z(r,e);if(!i&&n<3)throw Wz("Updating absent value");var o=i?Kz(r,e):qz(n>2?arguments[2]:void 0)(e,r);return Xz(r,e,t(o,e,r)),r}});var Qz=wd,Jz=_p,Zz=gd,eG=qv,tG=TypeError,rG=function(e,t){var r,n=eG(this),i=Jz(n.get),o=Jz(n.has),a=Jz(n.set),s=arguments.length>2?arguments[2]:void 0;if(!Zz(t)&&!Zz(s))throw tG("At least one callback required");return Qz(o,n,e)?(r=Qz(i,n,e),Zz(t)&&(r=t(r),Qz(a,n,e,r))):Zz(s)&&(r=s(),Qz(a,n,e,r)),r};gy({target:"Map",proto:!0,real:!0,forced:!0},{upsert:rG}),gy({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:rG});var nG=S(SV);function iG(e,t){var r=dS(e);if(EC){var n=EC(e);t&&(n=kO(n).call(n,(function(t){return DC(e,t).enumerable}))),r.push.apply(r,n)}return r}function oG(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lS(r=iG(Object(i),!0)).call(r,(function(t){dG(e,t,i[t])})):NC?YC(e,NC(i)):lS(n=iG(Object(i))).call(n,(function(t){ZC(e,t,DC(i,t))}))}return e}function aG(){aG=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=ZC||function(e,t,r){e[t]=r.value},i="function"==typeof eR?eR:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return ZC(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(A){u=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof h?t:h,a=nR(o.prototype),s=new x(i||[]);return n(a,"_invoke",{value:_(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var y=ER&&ER(ER(E([])));y&&y!==t&&r.call(y,o)&&(v=y);var g=p.prototype=h.prototype=nR(v);function m(e){var t;lS(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(n,o,a,s){var u=l(e[n],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==xC(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(u.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===f)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 u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function w(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],lS(e).call(e,w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=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 i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return iR?iR(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=nR(g),e},e.awrap=function(e){return{__await:e}},m(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=VA);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(g),u(g,s,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return mF(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=E,x.prototype={constructor:x,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,lS(t=this.tryEntries).call(t,k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+IS(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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):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),f},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),k(r),f}},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 i=n.arg;k(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function sG(e){return(sG="function"==typeof eR&&"symbol"==typeof tR?function(e){return typeof e}:function(e){return e&&"function"==typeof eR&&e.constructor===eR&&e!==eR.prototype?"symbol":typeof e})(e)}function uG(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(vie){return void r(vie)}s.done?t(u):VA.resolve(u).then(n,i)}function cG(e){return function(){var t=this,r=arguments;return new VA((function(n,i){var o=e.apply(t,r);function a(e){uG(o,n,i,a,s,"next",e)}function s(e){uG(o,n,i,a,s,"throw",e)}a(void 0)}))}}function lG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fG(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),ZC(e,TG(n.key),n)}}function hG(e,t,r){return t&&fG(e.prototype,t),r&&fG(e,r),ZC(e,"prototype",{writable:!1}),e}function dG(e,t,r){return(t=TG(t))in e?ZC(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pG(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=nR(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),ZC(e,"prototype",{writable:!1}),t&&yG(e,t)}function vG(e){var t;return(vG=iR?SR(t=ER).call(t):function(e){return e.__proto__||ER(e)})(e)}function yG(e,t){var r;return(yG=iR?SR(r=iR).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function gG(){if("undefined"==typeof Reflect||!FR)return!1;if(FR.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(FR(Boolean,[],(function(){}))),!0}catch(e){return!1}}function mG(e,t,r){var n;gG()?mG=SR(n=FR).call(n):mG=function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(SR(Function).apply(e,n));return r&&yG(i,r.prototype),i};return mG.apply(null,arguments)}function bG(e){var t="function"==typeof nG?new nG:void 0;return bG=function(e){if(null===e||(r=e,-1===$y(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;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,i)}function i(){return mG(e,arguments,vG(this).constructor)}return i.prototype=nR(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yG(i,e)},bG(e)}function _G(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=dS(e);for(n=0;n<o.length;n++)r=o[n],$y(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(EC){var o=EC(e);for(n=0;n<o.length;n++)r=o[n],$y(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function SG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wG(e){var t=gG();return function(){var r,n=vG(e);if(t){var i=vG(this).constructor;r=FR(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return SG(e)}(this,r)}}function kG(){var e;"undefined"!=typeof Reflect&&KR?kG=SR(e=KR).call(e):kG=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=vG(e)););return e}(e,t);if(n){var i=DC(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return kG.apply(this,arguments)}function xG(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 EG(e,t){var r=void 0!==eR&&$R(e)||e["@@iterator"];if(!r){if(gO(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return xG(e,t);var n=IS(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?fI(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xG(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function TG(e){var t=function(e,t){if("object"!==xC(e)||null===e)return e;var r=e[hI];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xC(t)?t:String(t)}var AG=St,OG=Yf,LG=Kt.f,PG=AG("unscopables"),CG=Array.prototype;null==CG[PG]&&LG(CG,PG,{configurable:!0,value:OG(null)});var RG=function(e){CG[PG][e]=!0},IG=ie,DG=RG,UG=ec,jG=Kr,MG=Kt.f,BG=jh,NG=Mh,FG=T,VG="Array Iterator",zG=jG.set,GG=jG.getterFor(VG),HG=BG(Array,"Array",(function(e,t){zG(this,{type:VG,target:IG(e),index:0,kind:t})}),(function(){var e=GG(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,NG(void 0,!0)):NG("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),qG=UG.Arguments=UG.Array;if(DG("keys"),DG("values"),DG("entries"),FG&&"values"!==qG.name)try{MG(qG,"name",{value:"values"})}catch(vie){}var YG={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},WG=jt("span").classList,KG=WG&&WG.constructor&&WG.constructor.prototype,$G=KG===Object.prototype?void 0:KG,XG=k,QG=YG,JG=$G,ZG=HG,eH=dr,tH=St,rH=tH("iterator"),nH=tH("toStringTag"),iH=ZG.values,oH=function(e,t){if(e){if(e[rH]!==iH)try{eH(e,rH,iH)}catch(vie){e[rH]=iH}if(e[nH]||eH(e,nH,t),QG[t])for(var r in ZG)if(e[r]!==ZG[r])try{eH(e,r,ZG[r])}catch(vie){e[r]=ZG[r]}}};for(var aH in QG)oH(XG[aH]&&XG[aH].prototype,aH);oH(JG,"DOMTokenList");var sH=E,uH=St("iterator"),cH=!sH((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})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[uH]||"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})),lH=un,fH=Kt,hH=function(e,t,r){return r.get&&lH(r.get,t,{getter:!0}),r.set&&lH(r.set,t,{setter:!0}),fH.f(e,t,r)},dH=wn,pH=An,vH=Fi,yH=Array,gH=Math.max,mH=function(e,t,r){for(var n=pH(e),i=dH(t,n),o=dH(void 0===r?n:r,n),a=yH(gH(o-i,0)),s=0;i<o;i++,s++)vH(a,s,e[i]);return a.length=s,a},bH=z,_H=2147483647,SH=/[^\0-\u007E]/,wH=/[.\u3002\uFF0E\uFF61]/g,kH="Overflow: input needs wider integers to process",xH=RangeError,EH=bH(wH.exec),TH=Math.floor,AH=String.fromCharCode,OH=bH("".charCodeAt),LH=bH([].join),PH=bH([].push),CH=bH("".replace),RH=bH("".split),IH=bH("".toLowerCase),DH=function(e){return e+22+75*(e<26)},UH=function(e,t,r){var n=0;for(e=r?TH(e/700):e>>1,e+=TH(e/t);e>455;)e=TH(e/35),n+=36;return TH(n+36*e/(e+38))},jH=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=OH(e,r++);if(i>=55296&&i<=56319&&r<n){var o=OH(e,r++);56320==(64512&o)?PH(t,((1023&i)<<10)+(1023&o)+65536):(PH(t,i),r--)}else PH(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&PH(t,AH(n));var u=t.length,c=u;for(u&&PH(t,"-");c<i;){var l=_H;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>TH((_H-a)/f))throw xH(kH);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>_H)throw xH(kH);if(n==o){for(var h=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var v=h-p,y=36-p;PH(t,AH(DH(p+v%y))),h=TH(v/y),d+=36}PH(t,AH(DH(h))),s=UH(a,f,c==u),a=0,c++}}a++,o++}return LH(t,"")},MH=dn,BH=function(e,t,r){for(var n in t)MH(e,n,t[n],r);return e},NH=mH,FH=Math.floor,VH=function(e,t){var r=e.length,n=FH(r/2);return r<8?zH(e,t):GH(e,VH(NH(e,0,n),t),VH(NH(e,n),t),t)},zH=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},GH=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},HH=VH,qH=vi,YH=k,WH=P,KH=z,$H=T,XH=cH,QH=dn,JH=BH,ZH=ea,eq=yh,tq=Kr,rq=ua,nq=ue,iq=at,oq=La,aq=$i,sq=Zt,uq=fe,cq=hf,lq=Yf,fq=M,hq=gc,dq=lc,pq=Ia,vq=HH,yq=St("iterator"),gq="URLSearchParams",mq=gq+"Iterator",bq=tq.set,_q=tq.getterFor(gq),Sq=tq.getterFor(mq),wq=Object.getOwnPropertyDescriptor,kq=function(e){if(!$H)return YH[e];var t=wq(YH,e);return t&&t.value},xq=kq("fetch"),Eq=kq("Request"),Tq=kq("Headers"),Aq=Eq&&Eq.prototype,Oq=Tq&&Tq.prototype,Lq=YH.RegExp,Pq=YH.TypeError,Cq=YH.decodeURIComponent,Rq=YH.encodeURIComponent,Iq=KH("".charAt),Dq=KH([].join),Uq=KH([].push),jq=KH("".replace),Mq=KH([].shift),Bq=KH([].splice),Nq=KH("".split),Fq=KH("".slice),Vq=/\+/g,zq=Array(4),Gq=function(e){return zq[e-1]||(zq[e-1]=Lq("((?:%[\\da-f]{2}){"+e+"})","gi"))},Hq=function(e){try{return Cq(e)}catch(vie){return e}},qq=function(e){var t=jq(e,Vq," "),r=4;try{return Cq(t)}catch(vie){for(;r;)t=jq(t,Gq(r--),Hq);return t}},Yq=/[!'()~]|%20/g,Wq={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Kq=function(e){return Wq[e]},$q=function(e){return jq(Rq(e),Yq,Kq)},Xq=eq((function(e,t){bq(this,{type:mq,iterator:hq(_q(e).entries),kind:t})}),"Iterator",(function(){var e=Sq(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),Qq=function(e){this.entries=[],this.url=null,void 0!==e&&(uq(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Iq(e,0)?Fq(e,1):e:cq(e)))};Qq.prototype={type:gq,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,u=dq(e);if(u)for(r=(t=hq(e,u)).next;!(n=WH(r,t)).done;){if(o=(i=hq(sq(n.value))).next,(a=WH(o,i)).done||(s=WH(o,i)).done||!WH(o,i).done)throw Pq("Expected sequence with length 2");Uq(this.entries,{key:cq(a.value),value:cq(s.value)})}else for(var c in e)iq(e,c)&&Uq(this.entries,{key:c,value:cq(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=Nq(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=Nq(t,"="),Uq(this.entries,{key:qq(Mq(r)),value:qq(Dq(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Uq(r,$q(e.key)+"="+$q(e.value));return Dq(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Jq=function(){rq(this,Zq),bq(this,new Qq(arguments.length>0?arguments[0]:void 0))},Zq=Jq.prototype;if(JH(Zq,{append:function(e,t){pq(arguments.length,2);var r=_q(this);Uq(r.entries,{key:cq(e),value:cq(t)}),r.updateURL()},delete:function(e){pq(arguments.length,1);for(var t=_q(this),r=t.entries,n=cq(e),i=0;i<r.length;)r[i].key===n?Bq(r,i,1):i++;t.updateURL()},get:function(e){pq(arguments.length,1);for(var t=_q(this).entries,r=cq(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){pq(arguments.length,1);for(var t=_q(this).entries,r=cq(e),n=[],i=0;i<t.length;i++)t[i].key===r&&Uq(n,t[i].value);return n},has:function(e){pq(arguments.length,1);for(var t=_q(this).entries,r=cq(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){pq(arguments.length,1);for(var r,n=_q(this),i=n.entries,o=!1,a=cq(e),s=cq(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?Bq(i,u--,1):(o=!0,r.value=s));o||Uq(i,{key:a,value:s}),n.updateURL()},sort:function(){var e=_q(this);vq(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=_q(this).entries,n=oq(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new Xq(this,"keys")},values:function(){return new Xq(this,"values")},entries:function(){return new Xq(this,"entries")}},{enumerable:!0}),QH(Zq,yq,Zq.entries,{name:"entries"}),QH(Zq,"toString",(function(){return _q(this).serialize()}),{enumerable:!0}),ZH(Jq,gq),qH({global:!0,constructor:!0,forced:!XH},{URLSearchParams:Jq}),!XH&&nq(Tq)){var eY=KH(Oq.has),tY=KH(Oq.set),rY=function(e){if(uq(e)){var t,r=e.body;if(aq(r)===gq)return t=e.headers?new Tq(e.headers):new Tq,eY(t,"content-type")||tY(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),lq(e,{body:fq(0,cq(r)),headers:fq(0,t)})}return e};if(nq(xq)&&qH({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return xq(e,arguments.length>1?rY(arguments[1]):{})}}),nq(Eq)){var nY=function(e){return rq(this,Aq),new Eq(e,arguments.length>1?rY(arguments[1]):{})};Aq.constructor=nY,nY.prototype=Aq,qH({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:nY})}}var iY,oY=vi,aY=T,sY=cH,uY=k,cY=La,lY=z,fY=dn,hY=hH,dY=ua,pY=at,vY=Ci,yY=uf,gY=mH,mY=Sf.codeAt,bY=function(e){var t,r,n=[],i=RH(CH(IH(e),wH,"."),".");for(t=0;t<i.length;t++)r=i[t],PH(n,EH(SH,r)?"xn--"+jH(r):r);return LH(n,".")},_Y=hf,SY=ea,wY=Ia,kY={URLSearchParams:Jq,getState:_q},xY=Kr,EY=xY.set,TY=xY.getterFor("URL"),AY=kY.URLSearchParams,OY=kY.getState,LY=uY.URL,PY=uY.TypeError,CY=uY.parseInt,RY=Math.floor,IY=Math.pow,DY=lY("".charAt),UY=lY(/./.exec),jY=lY([].join),MY=lY(1..toString),BY=lY([].pop),NY=lY([].push),FY=lY("".replace),VY=lY([].shift),zY=lY("".split),GY=lY("".slice),HY=lY("".toLowerCase),qY=lY([].unshift),YY="Invalid scheme",WY="Invalid host",KY="Invalid port",$Y=/[a-z]/i,XY=/[\d+-.a-z]/i,QY=/\d/,JY=/^0x/i,ZY=/^[0-7]+$/,eW=/^\d+$/,tW=/^[\da-f]+$/i,rW=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nW=/[\0\t\n\r #/:<>?@[\\\]^|]/,iW=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oW=/[\t\n\r]/g,aW=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)qY(t,e%256),e=RY(e/256);return jY(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=MY(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},sW={},uW=vY({},sW,{" ":1,'"':1,"<":1,">":1,"`":1}),cW=vY({},uW,{"#":1,"?":1,"{":1,"}":1}),lW=vY({},cW,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fW=function(e,t){var r=mY(e,0);return r>32&&r<127&&!pY(t,e)?e:encodeURIComponent(e)},hW={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dW=function(e,t){var r;return 2==e.length&&UY($Y,DY(e,0))&&(":"==(r=DY(e,1))||!t&&"|"==r)},pW=function(e){var t;return e.length>1&&dW(GY(e,0,2))&&(2==e.length||"/"===(t=DY(e,2))||"\\"===t||"?"===t||"#"===t)},vW=function(e){return"."===e||"%2e"===HY(e)},yW={},gW={},mW={},bW={},_W={},SW={},wW={},kW={},xW={},EW={},TW={},AW={},OW={},LW={},PW={},CW={},RW={},IW={},DW={},UW={},jW={},MW=function(e,t,r){var n,i,o,a=_Y(e);if(t){if(i=this.parse(a))throw PY(i);this.searchParams=null}else{if(void 0!==r&&(n=new MW(r,!0)),i=this.parse(a,null,n))throw PY(i);(o=OY(new AY)).bindURL(this),this.searchParams=o}};MW.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,u=this,c=t||yW,l=0,f="",h=!1,d=!1,p=!1;for(e=_Y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=FY(e,iW,"")),e=FY(e,oW,""),n=yY(e);l<=n.length;){switch(i=n[l],c){case yW:if(!i||!UY($Y,i)){if(t)return YY;c=mW;continue}f+=HY(i),c=gW;break;case gW:if(i&&(UY(XY,i)||"+"==i||"-"==i||"."==i))f+=HY(i);else{if(":"!=i){if(t)return YY;f="",c=mW,l=0;continue}if(t&&(u.isSpecial()!=pY(hW,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&hW[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=LW:u.isSpecial()&&r&&r.scheme==u.scheme?c=bW:u.isSpecial()?c=kW:"/"==n[l+1]?(c=_W,l++):(u.cannotBeABaseURL=!0,NY(u.path,""),c=DW)}break;case mW:if(!r||r.cannotBeABaseURL&&"#"!=i)return YY;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=gY(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=jW;break}c="file"==r.scheme?LW:SW;continue;case bW:if("/"!=i||"/"!=n[l+1]){c=SW;continue}c=xW,l++;break;case _W:if("/"==i){c=EW;break}c=IW;continue;case SW:if(u.scheme=r.scheme,i==iY)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=gY(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())c=wW;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=gY(r.path),u.query="",c=UW;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=gY(r.path),u.path.length--,c=IW;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=gY(r.path),u.query=r.query,u.fragment="",c=jW}break;case wW:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=IW;continue}c=EW}else c=xW;break;case kW:if(c=xW,"/"!=i||"/"!=DY(f,l+1))continue;l++;break;case xW:if("/"!=i&&"\\"!=i){c=EW;continue}break;case EW:if("@"==i){h&&(f="%40"+f),h=!0,o=yY(f);for(var v=0;v<o.length;v++){var y=o[v];if(":"!=y||p){var g=fW(y,lW);p?u.password+=g:u.username+=g}else p=!0}f=""}else if(i==iY||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==f)return"Invalid authority";l-=yY(f).length+1,f="",c=TW}else f+=i;break;case TW:case AW:if(t&&"file"==u.scheme){c=CW;continue}if(":"!=i||d){if(i==iY||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==f)return WY;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",c=RW,t)return;continue}"["==i?d=!0:"]"==i&&(d=!1),f+=i}else{if(""==f)return WY;if(a=u.parseHost(f))return a;if(f="",c=OW,t==AW)return}break;case OW:if(!UY(QY,i)){if(i==iY||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=f){var m=CY(f,10);if(m>65535)return KY;u.port=u.isSpecial()&&m===hW[u.scheme]?null:m,f=""}if(t)return;c=RW;continue}return KY}f+=i;break;case LW:if(u.scheme="file","/"==i||"\\"==i)c=PW;else{if(!r||"file"!=r.scheme){c=IW;continue}if(i==iY)u.host=r.host,u.path=gY(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=gY(r.path),u.query="",c=UW;else{if("#"!=i){pW(jY(gY(n,l),""))||(u.host=r.host,u.path=gY(r.path),u.shortenPath()),c=IW;continue}u.host=r.host,u.path=gY(r.path),u.query=r.query,u.fragment="",c=jW}}break;case PW:if("/"==i||"\\"==i){c=CW;break}r&&"file"==r.scheme&&!pW(jY(gY(n,l),""))&&(dW(r.path[0],!0)?NY(u.path,r.path[0]):u.host=r.host),c=IW;continue;case CW:if(i==iY||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&dW(f))c=IW;else if(""==f){if(u.host="",t)return;c=RW}else{if(a=u.parseHost(f))return a;if("localhost"==u.host&&(u.host=""),t)return;f="",c=RW}continue}f+=i;break;case RW:if(u.isSpecial()){if(c=IW,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=iY&&(c=IW,"/"!=i))continue}else u.fragment="",c=jW;else u.query="",c=UW;break;case IW:if(i==iY||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=HY(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||NY(u.path,"")):vW(f)?"/"==i||"\\"==i&&u.isSpecial()||NY(u.path,""):("file"==u.scheme&&!u.path.length&&dW(f)&&(u.host&&(u.host=""),f=DY(f,0)+":"),NY(u.path,f)),f="","file"==u.scheme&&(i==iY||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)VY(u.path);"?"==i?(u.query="",c=UW):"#"==i&&(u.fragment="",c=jW)}else f+=fW(i,cW);break;case DW:"?"==i?(u.query="",c=UW):"#"==i?(u.fragment="",c=jW):i!=iY&&(u.path[0]+=fW(i,sW));break;case UW:t||"#"!=i?i!=iY&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":fW(i,sW)):(u.fragment="",c=jW);break;case jW:i!=iY&&(u.fragment+=fW(i,uW))}l++}},parseHost:function(e){var t,r,n;if("["==DY(e,0)){if("]"!=DY(e,e.length-1))return WY;if(t=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return DY(e,f)};if(":"==h()){if(":"!=DY(e,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&UY(tW,h());)t=16*t+CY(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!UY(QY,h()))return;for(;UY(QY,h());){if(o=CY(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(GY(e,1,-1)),!t)return WY;this.host=t}else if(this.isSpecial()){if(e=bY(e),UY(rW,e))return WY;if(t=function(e){var t,r,n,i,o,a,s,u=zY(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==DY(i,0)&&(o=UY(JY,i)?16:8,i=GY(i,8==o?1:2)),""===i)a=0;else{if(!UY(10==o?eW:8==o?ZY:tW,i))return e;a=CY(i,o)}NY(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=IY(256,5-t))return null}else if(a>255)return null;for(s=BY(r),n=0;n<r.length;n++)s+=r[n]*IY(256,3-n);return s}(e),null===t)return WY;this.host=t}else{if(UY(nW,e))return WY;for(t="",r=yY(e),n=0;n<r.length;n++)t+=fW(r[n],sW);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return pY(hW,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&dW(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=aW(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+jY(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw PY(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new BW(e.path[0]).origin}catch(vie){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+aW(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(_Y(e)+":",yW)},getUsername:function(){return this.username},setUsername:function(e){var t=yY(_Y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fW(t[r],lW)}},getPassword:function(){return this.password},setPassword:function(e){var t=yY(_Y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fW(t[r],lW)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?aW(e):aW(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,TW)},getHostname:function(){var e=this.host;return null===e?"":aW(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,AW)},getPort:function(){var e=this.port;return null===e?"":_Y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=_Y(e))?this.port=null:this.parse(e,OW))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+jY(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,RW))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=_Y(e))?this.query=null:("?"==DY(e,0)&&(e=GY(e,1)),this.query="",this.parse(e,UW)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=_Y(e))?("#"==DY(e,0)&&(e=GY(e,1)),this.fragment="",this.parse(e,jW)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var BW=function(e){var t=dY(this,NW),r=wY(arguments.length,1)>1?arguments[1]:void 0,n=EY(t,new MW(e,!1,r));aY||(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())},NW=BW.prototype,FW=function(e,t){return{get:function(){return TY(this)[e]()},set:t&&function(e){return TY(this)[t](e)},configurable:!0,enumerable:!0}};if(aY&&(hY(NW,"href",FW("serialize","setHref")),hY(NW,"origin",FW("getOrigin")),hY(NW,"protocol",FW("getProtocol","setProtocol")),hY(NW,"username",FW("getUsername","setUsername")),hY(NW,"password",FW("getPassword","setPassword")),hY(NW,"host",FW("getHost","setHost")),hY(NW,"hostname",FW("getHostname","setHostname")),hY(NW,"port",FW("getPort","setPort")),hY(NW,"pathname",FW("getPathname","setPathname")),hY(NW,"search",FW("getSearch","setSearch")),hY(NW,"searchParams",FW("getSearchParams")),hY(NW,"hash",FW("getHash","setHash"))),fY(NW,"toJSON",(function(){return TY(this).serialize()}),{enumerable:!0}),fY(NW,"toString",(function(){return TY(this).serialize()}),{enumerable:!0}),LY){var VW=LY.createObjectURL,zW=LY.revokeObjectURL;VW&&fY(BW,"createObjectURL",cY(VW,LY)),zW&&fY(BW,"revokeObjectURL",cY(zW,LY))}SY(BW,"URL"),oY({global:!0,constructor:!0,forced:!sY,sham:!aY},{URL:BW});var GW=Yl.forEach,HW=Cl("forEach")?[].forEach:function(e){return GW(this,e,arguments.length>1?arguments[1]:void 0)},qW=k,YW=YG,WW=$G,KW=HW,$W=dr,XW=function(e){if(e&&e.forEach!==KW)try{$W(e,"forEach",KW)}catch(vie){e.forEach=KW}};for(var QW in YW)YW[QW]&&XW(qW[QW]&&qW[QW].prototype);XW(WW);var JW=nt,ZW=mi;vi({target:"Object",stat:!0,forced:E((function(){ZW(1)}))},{keys:function(e){return ZW(JW(e))}});var eK=T,tK=Di,rK=TypeError,nK=Object.getOwnPropertyDescriptor,iK=eK&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(vie){return vie instanceof TypeError}}(),oK=De,aK=TypeError,sK=function(e,t){if(!delete e[t])throw aK("Cannot delete property "+oK(t)+" of "+oK(e))},uK=vi,cK=nt,lK=wn,fK=mn,hK=An,dK=iK?function(e,t){if(tK(e)&&!nK(e,"length").writable)throw rK("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},pK=ji,vK=go,yK=Fi,gK=sK,mK=So("splice"),bK=Math.max,_K=Math.min;uK({target:"Array",proto:!0,forced:!mK},{splice:function(e,t){var r,n,i,o,a,s,u=cK(this),c=hK(u),l=lK(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=_K(bK(fK(t),0),c-l)),pK(c+r-n),i=vK(u,n),o=0;o<n;o++)(a=l+o)in u&&yK(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:gK(u,s);for(o=c;o>c-n+r;o--)gK(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:gK(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return dK(u,c-n+r),i}});var SK,wK,kK=Zt,xK=function(){var e=kK(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},EK=E,TK=k.RegExp,AK=EK((function(){var e=TK("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),OK=AK||EK((function(){return!TK("a","y").sticky})),LK=AK||EK((function(){var e=TK("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),PK={BROKEN_CARET:LK,MISSED_STICKY:OK,UNSUPPORTED_Y:AK},CK=E,RK=k.RegExp,IK=CK((function(){var e=RK(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),DK=E,UK=k.RegExp,jK=DK((function(){var e=UK("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),MK=P,BK=z,NK=hf,FK=xK,VK=PK,zK=Yf,GK=Kr.get,HK=IK,qK=jK,YK=et("native-string-replace",String.prototype.replace),WK=RegExp.prototype.exec,KK=WK,$K=BK("".charAt),XK=BK("".indexOf),QK=BK("".replace),JK=BK("".slice),ZK=(wK=/b*/g,MK(WK,SK=/a/,"a"),MK(WK,wK,"a"),0!==SK.lastIndex||0!==wK.lastIndex),e$=VK.BROKEN_CARET,t$=void 0!==/()??/.exec("")[1];(ZK||t$||e$||HK||qK)&&(KK=function(e){var t,r,n,i,o,a,s,u=this,c=GK(u),l=NK(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=MK(KK,f,l),u.lastIndex=f.lastIndex,t;var h=c.groups,d=e$&&u.sticky,p=MK(FK,u),v=u.source,y=0,g=l;if(d&&(p=QK(p,"y",""),-1===XK(p,"g")&&(p+="g"),g=JK(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==$K(l,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",p)),t$&&(r=new RegExp("^"+v+"$(?!\\s)",p)),ZK&&(n=u.lastIndex),i=MK(WK,d?r:u,g),d?i?(i.input=JK(i.input,y),i[0]=JK(i[0],y),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:ZK&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),t$&&i&&i.length>1&&MK(YK,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=zK(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var r$=KK;function n$(){var e,t,r=new VA((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 i$(){try{return lO(performance.now(),10)}catch(e){return(new Date).getTime()}}vi({target:"RegExp",proto:!0,forced:/./.exec!==r$},{exec:r$});var o$=_p,a$=Bp,s$=Dd,u$=Py,c$=TypeError,l$=function(e){return function(t,r,n,i){o$(r);var o=a$(t),a=s$(o),s=u$(o),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw c$("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(i=r(i,a[u],u,o));return i}},f$={left:l$(!1),right:l$(!0)}.left;gy({target:"Array",proto:!0,forced:!Nk&&ip>79&&ip<83||!My("reduce")},{reduce:function(e){var t=arguments.length;return f$(this,e,t,t>1?arguments[1]:void 0)}});var h$,d$=Hy("Array").reduce,p$=Zh,v$=d$,y$=Array.prototype,g$=S((function(e){var t=e.reduce;return e===y$||p$(y$,e)&&t===y$.reduce?v$:t})),m$=function(){function e(){lG(this,e)}return hG(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(vie){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var r=[],n=0,i=e.length;n<i;n++){var o=r.length;if(o&&t){var a=r[o-1],s=a[1];if(e.start(n)-s<=t){var u=e.end(n);u>s&&(a[1]=u)}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?g$(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 i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=e.buffers(t,n),h=0,d=f.length;h<d;h++){var p=f[h];if(r+n>=p[0]&&r<p[1])i=p[0],o=p[1],a=h;else{if(r+n<p[0]){s=p[0],u=p[1];break}r+n>p[1]&&(c=p[0],l=p[1])}}return{start:i,end:o,index:a,buffers:f,nextStart:s,nextEnd:u,prevStart:c,prevEnd:l,currentTime:r,behind:r-i,remaining:o?o-r:0,length:e.totalLength&&e.totalLength(f)}}}]),e}(),b$="manifest",_$="network",S$="network_timeout",w$="demux",k$="remux",x$="media",E$="other",T$={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"},A$=(dG(h$={},b$,{HLS:1100}),dG(h$,_$,2100),dG(h$,S$,2101),dG(h$,w$,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400}),dG(h$,k$,{FMP4:4100,MP4:4200}),dG(h$,x$,{MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203}),dG(h$,E$,8e3),h$),O$=function(e){pG(r,e);var t=wG(r);function r(e,n,i,o,a){var s;return lG(this,r),(s=t.call(this,a||(null==i?void 0:i.message))).errorType=e===S$?_$:e,s.originError=i,s.ext=o,s.errorCode=A$[e][n]||A$[e],s.errorMessage=s.message,s.errorCode||(s.errorType=E$,s.errorCode=A$[s.errorType]),s}return hG(r,null,[{key:"create",value:function(e,t,n,i,o){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=E$),new r(e,t,n,i,o))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?S$:_$,null,e instanceof Error?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}(bG(Error)),L$="undefined"!=typeof window,P$=T,C$=_r.EXISTS,R$=z,I$=Kt.f,D$=Function.prototype,U$=R$(D$.toString),j$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,M$=R$(j$.exec);P$&&!C$&&I$(D$,"name",{configurable:!0,get:function(){try{return M$(j$,U$(this))[1]}catch(vie){return""}}});var B$=vi,N$=pe,F$=wa,V$=P,z$=z,G$=E,H$=Di,q$=ue,Y$=fe,W$=Re,K$=Ca,$$=Te,X$=N$("JSON","stringify"),Q$=z$(/./.exec),J$=z$("".charAt),Z$=z$("".charCodeAt),eX=z$("".replace),tX=z$(1..toString),rX=/[\uD800-\uDFFF]/g,nX=/^[\uD800-\uDBFF]$/,iX=/^[\uDC00-\uDFFF]$/,oX=!$$||G$((function(){var e=N$("Symbol")();return"[null]"!=X$([e])||"{}"!=X$({a:e})||"{}"!=X$(Object(e))})),aX=G$((function(){return'"\\udf06\\ud834"'!==X$("\udf06\ud834")||'"\\udead"'!==X$("\udead")})),sX=function(e,t){var r=K$(arguments),n=t;if((Y$(t)||void 0!==e)&&!W$(e))return H$(t)||(t=function(e,t){if(q$(n)&&(t=V$(n,this,e,t)),!W$(t))return t}),r[1]=t,F$(X$,null,r)},uX=function(e,t,r){var n=J$(r,t-1),i=J$(r,t+1);return Q$(nX,e)&&!Q$(iX,i)||Q$(iX,e)&&!Q$(nX,n)?"\\u"+tX(Z$(e,0),16):e};X$&&B$({target:"JSON",stat:!0,arity:3,forced:oX||aX},{stringify:function(e,t,r){var n=K$(arguments),i=F$(oX?sX:X$,null,n);return aX&&"string"==typeof i?eX(i,rX,uX):i}});var cX=Rn.includes,lX=RG;vi({target:"Array",proto:!0,forced:E((function(){return!Array(1).includes()}))},{includes:function(e){return cX(this,e,arguments.length>1?arguments[1]:void 0)}}),lX("includes");var fX=1,hX=2,dX=3,pX=4,vX=["Boolean","Number","String","Undefined","Null","Date","Object"],yX=function(){function e(t,r){lG(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=(null==r?void 0:r.disabled)||!0,this.logCacheLevel=(null==r?void 0:r.logCacheLevel)||3,this.logMaxSize=(null==r?void 0:r.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return hG(e,[{key:"debug",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,gm(t=[fX]).call(t,o)),e.disabled||(n=console).debug.apply(n,gm(r=[this._prefix,gX()]).call(r,o))}},{key:"log",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,gm(t=[hX]).call(t,o)),e.disabled||(n=console).log.apply(n,gm(r=[this._prefix,gX()]).call(r,o))}},{key:"warn",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,gm(t=[dX]).call(t,o)),e.disabled||(n=console).warn.apply(n,gm(r=[this._prefix,gX()]).call(r,o))}},{key:"error",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,gm(t=[pX]).call(t,o)),e.disabled||(n=console).error.apply(n,gm(r=[this._prefix,gX()]).call(r,o))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=yO(n).call(n,(function(e){return bX(e)}));t=this._prefix+gX()+zN(o)}catch(s){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function gX(){return(new Date).toLocaleString()}function mX(e){var t;if("object"!==sG(e))return e;var r=IS(t=Object.prototype.toString.call(e)).call(t,8,-1);switch(r){case"Array":case"Uint8Array":case"ArrayBuffer":return r+"["+e.length+"]";case"Object":return"{}";default:return r}}function bX(e,t,r){var n;r||(r=1),t||(t=2);var i={};if(!e||"object"!==sG(e))return e;var o=IS(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!cF(vX).call(vX,o))return o;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?i[a]=mX(e[a]):"object"===sG(e[a])?i[a]=bX(e[a],t,r+1):i[a]=e[a]);return i}}dG(yX,"disabled",!0);var _X=function(){try{return L$?window.MediaSource:null}catch(e){}}(),SX="appendBuffer",wX="removeBuffer",kX=function(){function e(t,r){var n=this;lG(this,e),dG(this,"media",null),dG(this,"mediaSource",null),dG(this,"_openPromise",n$()),dG(this,"_queue",nR(null)),dG(this,"_sourceBuffer",nR(null)),dG(this,"_mseFullFlag",{}),dG(this,"_st",0),dG(this,"_opst",0),dG(this,"_logger",null),dG(this,"_config",null),dG(this,"_url",null),dG(this,"_onSBUpdateEnd",(function(e){var t=n._queue[e];if(t){var r=t.shift();if(r){var i=i$()-n._opst;n._logger.debug("UpdateEnd",r.opName,i,r.context),r.promise.resolve({name:r.opName,context:r.context,costtime:i}),n._startQueue(e)}}})),dG(this,"_onSBUpdateError",(function(e,t){var r=n._queue[e];if(r){var i=r[0];i&&(n._logger.error("UpdateError",e,i.opName,i.context),i.promise.reject(new O$(x$,T$.MSE_APPEND_BUFFER,t)))}})),this._config=MI(e.getDefaultConfig(),r),t&&this.bindMedia(t),this._logger=new yX("MSE"),this._config.openLog&&yX.enable()}var t,r,n;return hG(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?VA.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=i$()-e._st;e._logger.debug("MSE OPEN",n),t.removeEventListener("sourceopen",r),e._openPromise.resolve({costtime:n})})),this._openPromise=n$()}return this._openPromise}},{key:"bindMedia",value:(n=cG(aG().mark((function e(t){var r,n,i=this;return aG().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&&_X){e.next=5;break}throw new Error("Param media or MediaSource does not exist");case 5:return this.media=t,r=this.mediaSource=new _X,this._st=i$(),n=function e(){var n=i$()-i._st;i._logger.debug("MSE OPEN"),r.removeEventListener("sourceopen",e),BN.revokeObjectURL(t.src),i._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",n),this._url=BN.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=cG(aG().mark((function e(){var t,r,n,i=this;return aG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource){var o,a;if(lS(o=dS(this._queue)).call(o,(function(e){var t=i._queue[e];t&&lS(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(vie){}lS(a=dS(this._sourceBuffer)).call(a,(function(e){try{t.removeSourceBuffer(i._sourceBuffer[e])}catch(vie){}}))}if(this.media){this.media.removeAttribute("src");try{this.media.load()}catch(vie){}this.media=null}this.mediaSource=null,this._openPromise=n$(),this._queue=nR(null),this._sourceBuffer=nR(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 i;try{i=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(vie){throw new O$(x$,T$.MSE_ADD_SB,vie)}i.mimeType=t,i.addEventListener("updateend",SR(r=this._onSBUpdateEnd).call(r,this,e)),i.addEventListener("error",SR(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)})):VA.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 i;n.mediaSource&&(n._logger.debug("MSE APPEND START",r),n._opst=i$(),null===(i=n._sourceBuffer[e])||void 0===i||i.appendBuffer(t))}),SX,r):VA.resolve()}},{key:"remove",value:function(e,t,r,n){var i=this,o=!1;return this._mseFullFlag[e]&&(o=!0),this._enqueueOp(e,(function(){if(i.mediaSource){var o=i._sourceBuffer[e];t>=r||!o?i._onSBUpdateEnd(e):(i._opst=i$(),i._logger.debug("MSE REMOVE START",e,t,r,n),o.remove(t,r))}}),wX,n,o)}},{key:"clearBuffer",value:function(e,t){var r,n,i=this;return lS(r=dS(this._sourceBuffer)).call(r,(function(r){n=i._enqueueOp(r,(function(){if(i.mediaSource){var n=i._sourceBuffer[r];i._logger.debug("MSE clearBuffer START",r,e,t),n.remove(e,t)}}))})),n}},{key:"clearAllBuffer",value:function(){var e,t,r=this;return lS(e=dS(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,m$.end(m$.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=[];lS(r).call(r,(function(e){e.context&&e.context.isinit&&n.push(e)})),this._queue[e]=IS(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"):VA.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 m$.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return m$.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return m$.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,r,n,i){var o=this;if(!this.mediaSource)return VA.resolve();var a=this._queue[e]=this._queue[e]||[],s={exec:t,promise:n$(),opName:r,context:n};return i?(ow(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&&o._startQueue(e)})),s.promise}},{key:"_enqueueBlockingOp",value:(t=cG(aG().mark((function e(t,r){var n,i,o=this;return aG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",VA.resolve());case 2:if((n=dS(this._sourceBuffer)).length){e.next=5;break}return e.abrupt("return",t());case 5:return i=[],lS(n).call(n,(function(e){var t=o._queue[e],n=n$();i.push(n),t.push({exec:function(){return n.resolve()},promise:n,opName:r}),1===t.length&&o._startQueue(e)})),e.abrupt("return",VA.all(i).then((function(){try{return t()}finally{lS(n).call(n,(function(e){var t=o._queue[e],r=o._sourceBuffer[e];null==t||t.shift(),r&&r.updating||o._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(vie){var n;vie&&vie.message&&$y(n=vie.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 O$(x$,T$.MSE_FULL,vie))):(this._logger.error(vie),r.promise.reject(new O$(x$,T$.MSE_OTHER,vie)),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):VA.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(!_X)return!1;try{return _X.isTypeSupported(e)}catch(vie){return this._logger.error(e,vie),!1}}}]),e}();dG(kX,"VIDEO","video"),dG(kX,"AUDIO","audio");var xX=vi,EX=Bs,TX=E,AX=pe,OX=ue,LX=ga,PX=hl,CX=dn,RX=EX&&EX.prototype;if(xX({target:"Promise",proto:!0,real:!0,forced:!!EX&&TX((function(){RX.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=LX(this,AX("Promise")),r=OX(e);return this.then(r?function(r){return PX(t,e()).then((function(){return r}))}:e,r?function(r){return PX(t,e()).then((function(){throw r}))}:e)}}),OX(EX)){var IX=AX("Promise").prototype.finally;RX.finally!==IX&&CX(RX,"finally",IX,{unsafe:!0})}var DX=Yl.filter;vi({target:"Array",proto:!0,forced:!So("filter")},{filter:function(e){return DX(this,e,arguments.length>1?arguments[1]:void 0)}});var UX,jX,MX,BX={exports:{}},NX="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,FX=NX,VX=T,zX=k,GX=ue,HX=fe,qX=at,YX=$i,WX=De,KX=dr,$X=dn,XX=Kt.f,QX=ve,JX=th,ZX=Xo,eQ=St,tQ=ft,rQ=Kr.enforce,nQ=Kr.get,iQ=zX.Int8Array,oQ=iQ&&iQ.prototype,aQ=zX.Uint8ClampedArray,sQ=aQ&&aQ.prototype,uQ=iQ&&JX(iQ),cQ=oQ&&JX(oQ),lQ=Object.prototype,fQ=zX.TypeError,hQ=eQ("toStringTag"),dQ=tQ("TYPED_ARRAY_TAG"),pQ="TypedArrayConstructor",vQ=FX&&!!ZX&&"Opera"!==YX(zX.opera),yQ=!1,gQ={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},mQ={BigInt64Array:8,BigUint64Array:8},bQ=function(e){var t=JX(e);if(HX(t)){var r=nQ(t);return r&&qX(r,pQ)?r[pQ]:bQ(t)}},_Q=function(e){if(!HX(e))return!1;var t=YX(e);return qX(gQ,t)||qX(mQ,t)};for(UX in gQ)(MX=(jX=zX[UX])&&jX.prototype)?rQ(MX)[pQ]=jX:vQ=!1;for(UX in mQ)(MX=(jX=zX[UX])&&jX.prototype)&&(rQ(MX)[pQ]=jX);if((!vQ||!GX(uQ)||uQ===Function.prototype)&&(uQ=function(){throw fQ("Incorrect invocation")},vQ))for(UX in gQ)zX[UX]&&ZX(zX[UX],uQ);if((!vQ||!cQ||cQ===lQ)&&(cQ=uQ.prototype,vQ))for(UX in gQ)zX[UX]&&ZX(zX[UX].prototype,cQ);if(vQ&&JX(sQ)!==cQ&&ZX(sQ,cQ),VX&&!qX(cQ,hQ))for(UX in yQ=!0,XX(cQ,hQ,{get:function(){return HX(this)?this[dQ]:void 0}}),gQ)zX[UX]&&KX(zX[UX],dQ,UX);var SQ={NATIVE_ARRAY_BUFFER_VIEWS:vQ,TYPED_ARRAY_TAG:yQ&&dQ,aTypedArray:function(e){if(_Q(e))return e;throw fQ("Target is not a typed array")},aTypedArrayConstructor:function(e){if(GX(e)&&(!ZX||QX(uQ,e)))return e;throw fQ(WX(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(VX){if(r)for(var i in gQ){var o=zX[i];if(o&&qX(o.prototype,e))try{delete o.prototype[e]}catch(vie){try{o.prototype[e]=t}catch(a){}}}cQ[e]&&!r||$X(cQ,e,r?t:vQ&&oQ[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(VX){if(ZX){if(r)for(n in gQ)if((i=zX[n])&&qX(i,e))try{delete i[e]}catch(vie){}if(uQ[e]&&!r)return;try{return $X(uQ,e,r?t:vQ&&uQ[e]||t)}catch(vie){}}for(n in gQ)!(i=zX[n])||i[e]&&!r||$X(i,e,t)}},getTypedArrayConstructor:bQ,isView:function(e){if(!HX(e))return!1;var t=YX(e);return"DataView"===t||qX(gQ,t)||qX(mQ,t)},isTypedArray:_Q,TypedArray:uQ,TypedArrayPrototype:cQ},wQ=k,kQ=E,xQ=Fc,EQ=SQ.NATIVE_ARRAY_BUFFER_VIEWS,TQ=wQ.ArrayBuffer,AQ=wQ.Int8Array,OQ=!EQ||!kQ((function(){AQ(1)}))||!kQ((function(){new AQ(-1)}))||!xQ((function(e){new AQ,new AQ(null),new AQ(1.5),new AQ(e)}),!0)||kQ((function(){return 1!==new AQ(new TQ(2),1,void 0).length})),LQ=mn,PQ=En,CQ=RangeError,RQ=function(e){if(void 0===e)return 0;var t=LQ(e),r=PQ(t);if(t!==r)throw CQ("Wrong length or index");return r},IQ=Array,DQ=Math.abs,UQ=Math.pow,jQ=Math.floor,MQ=Math.log,BQ=Math.LN2,NQ=nt,FQ=wn,VQ=An,zQ=function(e){for(var t=NQ(this),r=VQ(t),n=arguments.length,i=FQ(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:FQ(o,r);a>i;)t[i++]=e;return t},GQ=k,HQ=z,qQ=T,YQ=NX,WQ=_r,KQ=dr,$Q=BH,XQ=E,QQ=ua,JQ=mn,ZQ=En,eJ=RQ,tJ={pack:function(e,t,r){var n,i,o,a=IQ(r),s=8*r-t-1,u=(1<<s)-1,c=u>>1,l=23===t?UQ(2,-24)-UQ(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=DQ(e))!=e||e===1/0?(i=e!=e?1:0,n=u):(n=jQ(MQ(e)/BQ),e*(o=UQ(2,-n))<1&&(n--,o*=2),(e+=n+c>=1?l/o:l*UQ(2,1-c))*o>=2&&(n++,o/=2),n+c>=u?(i=0,n=u):n+c>=1?(i=(e*o-1)*UQ(2,t),n+=c):(i=e*UQ(2,c-1)*UQ(2,t),n=0));t>=8;)a[h++]=255&i,i/=256,t-=8;for(n=n<<t|i,s+=t;s>0;)a[h++]=255&n,n/=256,s-=8;return a[--h]|=128*f,a},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;)l=256*l+e[u--],s-=8;for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;)r=256*r+e[u--],s-=8;if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-1/0:1/0;r+=UQ(2,t),l-=a}return(c?-1:1)*r*UQ(2,l-t)}},rJ=th,nJ=Xo,iJ=pn.f,oJ=Kt.f,aJ=zQ,sJ=mH,uJ=ea,cJ=WQ.PROPER,lJ=WQ.CONFIGURABLE,fJ=Kr.get,hJ=Kr.set,dJ="ArrayBuffer",pJ="DataView",vJ="prototype",yJ="Wrong index",gJ=GQ[dJ],mJ=gJ,bJ=mJ&&mJ[vJ],_J=GQ[pJ],SJ=_J&&_J[vJ],wJ=Object.prototype,kJ=GQ.Array,xJ=GQ.RangeError,EJ=HQ(aJ),TJ=HQ([].reverse),AJ=tJ.pack,OJ=tJ.unpack,LJ=function(e){return[255&e]},PJ=function(e){return[255&e,e>>8&255]},CJ=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},RJ=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},IJ=function(e){return AJ(e,23,4)},DJ=function(e){return AJ(e,52,8)},UJ=function(e,t){oJ(e[vJ],t,{get:function(){return fJ(this)[t]}})},jJ=function(e,t,r,n){var i=eJ(r),o=fJ(e);if(i+t>o.byteLength)throw xJ(yJ);var a=fJ(o.buffer).bytes,s=i+o.byteOffset,u=sJ(a,s,s+t);return n?u:TJ(u)},MJ=function(e,t,r,n,i,o){var a=eJ(r),s=fJ(e);if(a+t>s.byteLength)throw xJ(yJ);for(var u=fJ(s.buffer).bytes,c=a+s.byteOffset,l=n(+i),f=0;f<t;f++)u[c+f]=l[o?f:t-f-1]};if(YQ){var BJ=cJ&&gJ.name!==dJ;if(XQ((function(){gJ(1)}))&&XQ((function(){new gJ(-1)}))&&!XQ((function(){return new gJ,new gJ(1.5),new gJ(NaN),1!=gJ.length||BJ&&!lJ})))BJ&&lJ&&KQ(gJ,"name",dJ);else{(mJ=function(e){return QQ(this,bJ),new gJ(eJ(e))})[vJ]=bJ;for(var NJ,FJ=iJ(gJ),VJ=0;FJ.length>VJ;)(NJ=FJ[VJ++])in mJ||KQ(mJ,NJ,gJ[NJ]);bJ.constructor=mJ}nJ&&rJ(SJ)!==wJ&&nJ(SJ,wJ);var zJ=new _J(new mJ(2)),GJ=HQ(SJ.setInt8);zJ.setInt8(0,2147483648),zJ.setInt8(1,2147483649),!zJ.getInt8(0)&&zJ.getInt8(1)||$Q(SJ,{setInt8:function(e,t){GJ(this,e,t<<24>>24)},setUint8:function(e,t){GJ(this,e,t<<24>>24)}},{unsafe:!0})}else bJ=(mJ=function(e){QQ(this,bJ);var t=eJ(e);hJ(this,{bytes:EJ(kJ(t),0),byteLength:t}),qQ||(this.byteLength=t)})[vJ],SJ=(_J=function(e,t,r){QQ(this,SJ),QQ(e,bJ);var n=fJ(e).byteLength,i=JQ(t);if(i<0||i>n)throw xJ("Wrong offset");if(i+(r=void 0===r?n-i:ZQ(r))>n)throw xJ("Wrong length");hJ(this,{buffer:e,byteLength:r,byteOffset:i}),qQ||(this.buffer=e,this.byteLength=r,this.byteOffset=i)})[vJ],qQ&&(UJ(mJ,"byteLength"),UJ(_J,"buffer"),UJ(_J,"byteLength"),UJ(_J,"byteOffset")),$Q(SJ,{getInt8:function(e){return jJ(this,1,e)[0]<<24>>24},getUint8:function(e){return jJ(this,1,e)[0]},getInt16:function(e){var t=jJ(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=jJ(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return RJ(jJ(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return RJ(jJ(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return OJ(jJ(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return OJ(jJ(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){MJ(this,1,e,LJ,t)},setUint8:function(e,t){MJ(this,1,e,LJ,t)},setInt16:function(e,t){MJ(this,2,e,PJ,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){MJ(this,2,e,PJ,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){MJ(this,4,e,CJ,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){MJ(this,4,e,CJ,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){MJ(this,4,e,IJ,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){MJ(this,8,e,DJ,t,arguments.length>2?arguments[2]:void 0)}});uJ(mJ,dJ),uJ(_J,pJ);var HJ={ArrayBuffer:mJ,DataView:_J},qJ=fe,YJ=Math.floor,WJ=Number.isInteger||function(e){return!qJ(e)&&isFinite(e)&&YJ(e)===e},KJ=mn,$J=RangeError,XJ=function(e){var t=KJ(e);if(t<0)throw $J("The argument can't be less than 0");return t},QJ=RangeError,JJ=function(e,t){var r=XJ(e);if(r%t)throw QJ("Wrong offset");return r},ZJ=$i,eZ=z("".slice),tZ=Lt,rZ=TypeError,nZ=function(e){var t=tZ(e,"number");if("number"==typeof t)throw rZ("Can't convert number to bigint");return BigInt(t)},iZ=La,oZ=P,aZ=ha,sZ=nt,uZ=An,cZ=gc,lZ=lc,fZ=ic,hZ=function(e){return"Big"===eZ(ZJ(e),0,3)},dZ=SQ.aTypedArrayConstructor,pZ=nZ,vZ=ue,yZ=fe,gZ=Xo,mZ=function(e,t,r){var n,i;return gZ&&vZ(n=t.constructor)&&n!==r&&yZ(i=n.prototype)&&i!==r.prototype&&gZ(e,i),e},bZ=vi,_Z=k,SZ=P,wZ=T,kZ=OQ,xZ=SQ,EZ=HJ,TZ=ua,AZ=M,OZ=dr,LZ=WJ,PZ=En,CZ=RQ,RZ=JJ,IZ=Rt,DZ=at,UZ=$i,jZ=fe,MZ=Re,BZ=Yf,NZ=ve,FZ=Xo,VZ=pn.f,zZ=function(e){var t,r,n,i,o,a,s,u,c=aZ(this),l=sZ(e),f=arguments.length,h=f>1?arguments[1]:void 0,d=void 0!==h,p=lZ(l);if(p&&!fZ(p))for(u=(s=cZ(l,p)).next,l=[];!(a=oZ(u,s)).done;)l.push(a.value);for(d&&f>2&&(h=iZ(h,arguments[2])),r=uZ(l),n=new(dZ(c))(r),i=hZ(n),t=0;r>t;t++)o=d?h(l[t],t):l[t],n[t]=i?pZ(o):+o;return n},GZ=Yl.forEach,HZ=oa,qZ=Kt,YZ=x,WZ=mZ,KZ=Kr.get,$Z=Kr.set,XZ=Kr.enforce,QZ=qZ.f,JZ=YZ.f,ZZ=Math.round,e0=_Z.RangeError,t0=EZ.ArrayBuffer,r0=t0.prototype,n0=EZ.DataView,i0=xZ.NATIVE_ARRAY_BUFFER_VIEWS,o0=xZ.TYPED_ARRAY_TAG,a0=xZ.TypedArray,s0=xZ.TypedArrayPrototype,u0=xZ.aTypedArrayConstructor,c0=xZ.isTypedArray,l0="BYTES_PER_ELEMENT",f0="Wrong length",h0=function(e,t){u0(e);for(var r=0,n=t.length,i=new e(n);n>r;)i[r]=t[r++];return i},d0=function(e,t){QZ(e,t,{get:function(){return KZ(this)[t]}})},p0=function(e){var t;return NZ(r0,e)||"ArrayBuffer"==(t=UZ(e))||"SharedArrayBuffer"==t},v0=function(e,t){return c0(e)&&!MZ(t)&&t in e&&LZ(+t)&&t>=0},y0=function(e,t){return t=IZ(t),v0(e,t)?AZ(2,e[t]):JZ(e,t)},g0=function(e,t,r){return t=IZ(t),!(v0(e,t)&&jZ(r)&&DZ(r,"value"))||DZ(r,"get")||DZ(r,"set")||r.configurable||DZ(r,"writable")&&!r.writable||DZ(r,"enumerable")&&!r.enumerable?QZ(e,t,r):(e[t]=r.value,e)};wZ?(i0||(YZ.f=y0,qZ.f=g0,d0(s0,"buffer"),d0(s0,"byteOffset"),d0(s0,"byteLength"),d0(s0,"length")),bZ({target:"Object",stat:!0,forced:!i0},{getOwnPropertyDescriptor:y0,defineProperty:g0}),BX.exports=function(e,t,r){var n=e.match(/\d+$/)[0]/8,i=e+(r?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=_Z[i],u=s,c=u&&u.prototype,l={},f=function(e,t){QZ(e,t,{get:function(){return function(e,t){var r=KZ(e);return r.view[o](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var o=KZ(e);r&&(i=(i=ZZ(i))<0?0:i>255?255:255&i),o.view[a](t*n+o.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};i0?kZ&&(u=t((function(e,t,r,i){return TZ(e,c),WZ(jZ(t)?p0(t)?void 0!==i?new s(t,RZ(r,n),i):void 0!==r?new s(t,RZ(r,n)):new s(t):c0(t)?h0(u,t):SZ(zZ,u,t):new s(CZ(t)),e,u)})),FZ&&FZ(u,a0),GZ(VZ(s),(function(e){e in u||OZ(u,e,s[e])})),u.prototype=c):(u=t((function(e,t,r,i){TZ(e,c);var o,a,s,l=0,h=0;if(jZ(t)){if(!p0(t))return c0(t)?h0(u,t):SZ(zZ,u,t);o=t,h=RZ(r,n);var d=t.byteLength;if(void 0===i){if(d%n)throw e0(f0);if((a=d-h)<0)throw e0(f0)}else if((a=PZ(i)*n)+h>d)throw e0(f0);s=a/n}else s=CZ(t),o=new t0(a=s*n);for($Z(e,{buffer:o,byteOffset:h,byteLength:a,length:s,view:new n0(o)});l<s;)f(e,l++)})),FZ&&FZ(u,a0),c=u.prototype=BZ(s0)),c.constructor!==u&&OZ(c,"constructor",u),XZ(c).TypedArrayConstructor=u,o0&&OZ(c,o0,i);var h=u!=s;l[i]=u,bZ({global:!0,constructor:!0,forced:h,sham:!i0},l),l0 in u||OZ(u,l0,n),l0 in c||OZ(c,l0,n),HZ(i)}):BX.exports=function(){},(0,BX.exports)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var m0=An,b0=mn,_0=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("at",(function(e){var t=_0(this),r=m0(t),n=b0(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:t[i]}));var S0=nt,w0=wn,k0=An,x0=sK,E0=Math.min,T0=[].copyWithin||function(e,t){var r=S0(this),n=k0(r),i=w0(e,n),o=w0(t,n),a=arguments.length>2?arguments[2]:void 0,s=E0((void 0===a?n:w0(a,n))-o,n-i),u=1;for(o<i&&i<o+s&&(u=-1,o+=s-1,i+=s-1);s-- >0;)o in r?r[i]=r[o]:x0(r,i),i+=u,o+=u;return r},A0=SQ,O0=z(T0),L0=A0.aTypedArray;(0,A0.exportTypedArrayMethod)("copyWithin",(function(e,t){return O0(L0(this),e,t,arguments.length>2?arguments[2]:void 0)}));var P0=Yl.every,C0=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("every",(function(e){return P0(C0(this),e,arguments.length>1?arguments[1]:void 0)}));var R0=zQ,I0=nZ,D0=$i,U0=P,j0=E,M0=SQ.aTypedArray,B0=SQ.exportTypedArrayMethod,N0=z("".slice);B0("fill",(function(e){var t=arguments.length;M0(this);var r="Big"===N0(D0(this),0,3)?I0(e):+e;return U0(R0,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),j0((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var F0=An,V0=ga,z0=SQ.aTypedArrayConstructor,G0=SQ.getTypedArrayConstructor,H0=function(e){return z0(V0(e,G0(e)))},q0=function(e,t){for(var r=0,n=F0(t),i=new e(n);n>r;)i[r]=t[r++];return i},Y0=H0,W0=Yl.filter,K0=function(e,t){return q0(Y0(e),t)},$0=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("filter",(function(e){var t=W0($0(this),e,arguments.length>1?arguments[1]:void 0);return K0(this,t)}));var X0=Yl.find,Q0=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("find",(function(e){return X0(Q0(this),e,arguments.length>1?arguments[1]:void 0)}));var J0=Yl.findIndex,Z0=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("findIndex",(function(e){return J0(Z0(this),e,arguments.length>1?arguments[1]:void 0)}));var e1=La,t1=Q,r1=nt,n1=An,i1=function(e){var t=1==e;return function(r,n,i){for(var o,a=r1(r),s=t1(a),u=e1(n,i),c=n1(s);c-- >0;)if(u(o=s[c],c,a))switch(e){case 0:return o;case 1:return c}return t?-1:void 0}},o1={findLast:i1(0),findLastIndex:i1(1)},a1=o1.findLast,s1=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("findLast",(function(e){return a1(s1(this),e,arguments.length>1?arguments[1]:void 0)}));var u1=o1.findLastIndex,c1=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("findLastIndex",(function(e){return u1(c1(this),e,arguments.length>1?arguments[1]:void 0)}));var l1=Yl.forEach,f1=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("forEach",(function(e){l1(f1(this),e,arguments.length>1?arguments[1]:void 0)}));var h1=Rn.includes,d1=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("includes",(function(e){return h1(d1(this),e,arguments.length>1?arguments[1]:void 0)}));var p1=Rn.indexOf,v1=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("indexOf",(function(e){return p1(v1(this),e,arguments.length>1?arguments[1]:void 0)}));var y1=k,g1=E,m1=z,b1=SQ,_1=HG,S1=St("iterator"),w1=y1.Uint8Array,k1=m1(_1.values),x1=m1(_1.keys),E1=m1(_1.entries),T1=b1.aTypedArray,A1=b1.exportTypedArrayMethod,O1=w1&&w1.prototype,L1=!g1((function(){O1[S1].call([1])})),P1=!!O1&&O1.values&&O1[S1]===O1.values&&"values"===O1.values.name,C1=function(){return k1(T1(this))};A1("entries",(function(){return E1(T1(this))}),L1),A1("keys",(function(){return x1(T1(this))}),L1),A1("values",C1,L1||!P1,{name:"values"}),A1(S1,C1,L1||!P1,{name:"values"});var R1=SQ.aTypedArray,I1=SQ.exportTypedArrayMethod,D1=z([].join);I1("join",(function(e){return D1(R1(this),e)}));var U1=wa,j1=ie,M1=mn,B1=An,N1=Cl,F1=Math.min,V1=[].lastIndexOf,z1=!!V1&&1/[1].lastIndexOf(1,-0)<0,G1=N1("lastIndexOf"),H1=z1||!G1?function(e){if(z1)return U1(V1,this,arguments)||0;var t=j1(this),r=B1(t),n=r-1;for(arguments.length>1&&(n=F1(n,M1(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:V1,q1=wa,Y1=H1,W1=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return q1(Y1,W1(this),t>1?[e,arguments[1]]:[e])}));var K1=Yl.map,$1=H0,X1=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("map",(function(e){return K1(X1(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new($1(e))(t)}))}));var Q1=Be,J1=nt,Z1=Q,e2=An,t2=TypeError,r2=function(e){return function(t,r,n,i){Q1(r);var o=J1(t),a=Z1(o),s=e2(o),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw t2("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(i=r(i,a[u],u,o));return i}},n2={left:r2(!1),right:r2(!0)},i2=n2.left,o2=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i2(o2(this),e,t,t>1?arguments[1]:void 0)}));var a2=n2.right,s2=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return a2(s2(this),e,t,t>1?arguments[1]:void 0)}));var u2=SQ.aTypedArray,c2=SQ.exportTypedArrayMethod,l2=Math.floor;c2("reverse",(function(){for(var e,t=this,r=u2(t).length,n=l2(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t}));var f2=k,h2=P,d2=SQ,p2=An,v2=JJ,y2=nt,g2=E,m2=f2.RangeError,b2=f2.Int8Array,_2=b2&&b2.prototype,S2=_2&&_2.set,w2=d2.aTypedArray,k2=d2.exportTypedArrayMethod,x2=!g2((function(){var e=new Uint8ClampedArray(2);return h2(S2,e,{length:1,0:3},1),3!==e[1]})),E2=x2&&d2.NATIVE_ARRAY_BUFFER_VIEWS&&g2((function(){var e=new b2(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));k2("set",(function(e){w2(this);var t=v2(arguments.length>1?arguments[1]:void 0,1),r=y2(e);if(x2)return h2(S2,this,r,t);var n=this.length,i=p2(r),o=0;if(i+t>n)throw m2("Wrong length");for(;o<i;)this[t+o]=r[o++]}),!x2||E2);var T2=H0,A2=Ca,O2=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("slice",(function(e,t){for(var r=A2(O2(this),e,t),n=T2(this),i=0,o=r.length,a=new n(o);o>i;)a[i]=r[i++];return a}),E((function(){new Int8Array(1).slice()})));var L2=Yl.some,P2=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("some",(function(e){return L2(P2(this),e,arguments.length>1?arguments[1]:void 0)}));var C2=ye.match(/firefox\/(\d+)/i),R2=!!C2&&+C2[1],I2=/MSIE|Trident/.test(ye),D2=ye.match(/AppleWebKit\/(\d+)\./),U2=!!D2&&+D2[1],j2=Ea,M2=E,B2=Be,N2=HH,F2=R2,V2=I2,z2=ke,G2=U2,H2=SQ.aTypedArray,q2=SQ.exportTypedArrayMethod,Y2=k.Uint16Array,W2=Y2&&j2(Y2.prototype.sort),K2=!(!W2||M2((function(){W2(new Y2(2),null)}))&&M2((function(){W2(new Y2(2),{})}))),$2=!!W2&&!M2((function(){if(z2)return z2<74;if(F2)return F2<67;if(V2)return!0;if(G2)return G2<602;var e,t,r=new Y2(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(W2(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));q2("sort",(function(e){return void 0!==e&&B2(e),$2?W2(this,e):N2(H2(this),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}}(e))}),!$2||K2);var X2=En,Q2=wn,J2=H0,Z2=SQ.aTypedArray;(0,SQ.exportTypedArrayMethod)("subarray",(function(e,t){var r=Z2(this),n=r.length,i=Q2(e,n);return new(J2(r))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,X2((void 0===t?n:Q2(t,n))-i))}));var e5=wa,t5=SQ,r5=E,n5=Ca,i5=k.Int8Array,o5=t5.aTypedArray,a5=t5.exportTypedArrayMethod,s5=[].toLocaleString,u5=!!i5&&r5((function(){s5.call(new i5(1))}));a5("toLocaleString",(function(){return e5(s5,u5?n5(o5(this)):o5(this),n5(arguments))}),r5((function(){return[1,2].toLocaleString()!=new i5([1,2]).toLocaleString()}))||!r5((function(){i5.prototype.toLocaleString.call([1,2])})));var c5=SQ.exportTypedArrayMethod,l5=E,f5=z,h5=k.Uint8Array,d5=h5&&h5.prototype||{},p5=[].toString,v5=f5([].join);l5((function(){p5.call({})}))&&(p5=function(){return v5(this)});var y5=d5.toString!=p5;c5("toString",p5,y5);var g5="fetch",m5="xhr",b5="arraybuffer",_5="text",S5="json",w5=function(e){pG(r,e);var t=wG(r);function r(e,n,i,o){var a;return lG(this,r),dG(SG(a=t.call(this,o)),"retryCount",0),dG(SG(a),"isTimeout",!1),dG(SG(a),"loaderType",g5),dG(SG(a),"startTime",0),dG(SG(a),"endTime",0),dG(SG(a),"options",{}),a.url=e,a.request=n,a.response=i,a}return hG(r)}(bG(Error)),k5=Ea,x5=dn,E5=r$,T5=E,A5=St,O5=dr,L5=A5("species"),P5=RegExp.prototype,C5=function(e,t,r,n){var i=A5(e),o=!T5((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!T5((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[L5]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!a||r){var s=k5(/./[i]),u=t(i,""[e],(function(e,t,r,n,i){var a=k5(e),u=t.exec;return u===E5||u===P5.exec?o&&!i?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));x5(String.prototype,e,u[0]),x5(P5,i,u[1])}n&&O5(P5[i],"sham",!0)},R5=Sf.charAt,I5=function(e,t,r){return t+(r?R5(e,t).length:1)},D5=z,U5=nt,j5=Math.floor,M5=D5("".charAt),B5=D5("".replace),N5=D5("".slice),F5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,V5=/\$([$&'`]|\d{1,2})/g,z5=P,G5=Zt,H5=ue,q5=Y,Y5=r$,W5=TypeError,K5=function(e,t){var r=e.exec;if(H5(r)){var n=z5(r,e,t);return null!==n&&G5(n),n}if("RegExp"===q5(e))return z5(Y5,e,t);throw W5("RegExp#exec called on incompatible receiver")},$5=wa,X5=P,Q5=z,J5=C5,Z5=E,e8=Zt,t8=ue,r8=J,n8=mn,i8=En,o8=hf,a8=te,s8=I5,u8=Ve,c8=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,u=V5;return void 0!==i&&(i=U5(i),u=F5),B5(o,u,(function(o,u){var c;switch(M5(u,0)){case"$":return"$";case"&":return e;case"`":return N5(t,0,r);case"'":return N5(t,a);case"<":c=i[N5(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>s){var f=j5(l/10);return 0===f?o:f<=s?void 0===n[f-1]?M5(u,1):n[f-1]+M5(u,1):o}c=n[l-1]}return void 0===c?"":c}))},l8=K5,f8=St("replace"),h8=Math.max,d8=Math.min,p8=Q5([].concat),v8=Q5([].push),y8=Q5("".indexOf),g8=Q5("".slice),m8="$0"==="a".replace(/./,"$0"),b8=!!/./[f8]&&""===/./[f8]("a","$0"),_8=!Z5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));J5("replace",(function(e,t,r){var n=b8?"$":"$0";return[function(e,r){var n=a8(this),i=r8(e)?void 0:u8(e,f8);return i?X5(i,e,n,r):X5(t,o8(n),e,r)},function(e,i){var o=e8(this),a=o8(e);if("string"==typeof i&&-1===y8(i,n)&&-1===y8(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var u=t8(i);u||(i=o8(i));var c=o.global;if(c){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var h=l8(o,a);if(null===h)break;if(v8(f,h),!c)break;""===o8(h[0])&&(o.lastIndex=s8(a,i8(o.lastIndex),l))}for(var d,p="",v=0,y=0;y<f.length;y++){for(var g=o8((h=f[y])[0]),m=h8(d8(n8(h.index),a.length),0),b=[],_=1;_<h.length;_++)v8(b,void 0===(d=h[_])?d:String(d));var S=h.groups;if(u){var w=p8([g],b,m,a);void 0!==S&&v8(w,S);var k=o8($5(i,void 0,w))}else k=c8(g,a,m,b,S,i);m>=v&&(p+=g8(a,v,m)+k,v=m+g.length)}return p+g8(a,v)}]}),!_8||!m8||b8),vi({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var S8=z(1..valueOf),w8="\t\n\v\f\r                 \u2028\u2029\ufeff",k8=te,x8=hf,E8=w8,T8=z("".replace),A8="["+E8+"]",O8=RegExp("^"+A8+A8+"*"),L8=RegExp(A8+A8+"*$"),P8=function(e){return function(t){var r=x8(k8(t));return 1&e&&(r=T8(r,O8,"")),2&e&&(r=T8(r,L8,"")),r}},C8={start:P8(1),end:P8(2),trim:P8(3)},R8=T,I8=k,D8=z,U8=si,j8=dn,M8=at,B8=mZ,N8=ve,F8=Re,V8=Lt,z8=E,G8=pn.f,H8=x.f,q8=Kt.f,Y8=S8,W8=C8.trim,K8="Number",$8=I8[K8],X8=$8.prototype,Q8=I8.TypeError,J8=D8("".slice),Z8=D8("".charCodeAt),e4=function(e){var t,r,n,i,o,a,s,u,c=V8(e,"number");if(F8(c))throw Q8("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=W8(c),43===(t=Z8(c,0))||45===t){if(88===(r=Z8(c,2))||120===r)return NaN}else if(48===t){switch(Z8(c,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(a=(o=J8(c,2)).length,s=0;s<a;s++)if((u=Z8(o,s))<48||u>i)return NaN;return parseInt(o,n)}return+c};if(U8(K8,!$8(" 0o1")||!$8("0b1")||$8("+0x1"))){for(var t4,r4=function(e){var t=arguments.length<1?0:$8(function(e){var t=V8(e,"number");return"bigint"==typeof t?t:e4(t)}(e)),r=this;return N8(X8,r)&&z8((function(){Y8(r)}))?B8(Object(t),r,r4):t},n4=R8?G8($8):"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(","),i4=0;n4.length>i4;i4++)M8($8,t4=n4[i4])&&!M8(r4,t4)&&q8(r4,t4,H8($8,t4));r4.prototype=X8,X8.constructor=r4,j8(I8,K8,r4,{constructor:!0})}var o4=nt,a4=th,s4=Wf;vi({target:"Object",stat:!0,forced:E((function(){a4(1)})),sham:!s4},{getPrototypeOf:function(e){return a4(o4(e))}});var u4=Object.prototype.toString;function c4(e){if("[object Object]"!==u4.call(e))return!1;var t=ER(e);return null===t||t===Object.prototype}function l4(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function f4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function h4(e,t){var r,n;if(e){if(!t)return e;var i,o=kO(r=yO(n=dS(t)).call(n,(function(e){if(null!=(i=t[e]))return gO(i)?e+="[]":i=[i],yO(i).call(i,(function(t){var r,n;return n=t,"[object Date]"===u4.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===sG(e)}(t)&&(t=zN(t)),gm(r="".concat(f4(e),"=")).call(r,f4(t))})).join("&")}))).call(r,Boolean).join("&");if(o){var a=$y(e).call(e,"#");-1!==a&&(e=IS(e).call(e,0,a)),e+=(-1===$y(e).call(e,"?")?"?":"&")+o}return e}}function d4(e,t,r,n,i,o,a,s,u,c,l){return i=null!=i?KD(i):null,n=lO(n||"0",10),zA(n)&&(n=0),{data:e,done:t,option:{range:u,vid:c,index:s,contentLength:n,age:i,startTime:o,firstByteTime:a,endTime:qU(),priOptions:l},response:r}}function p4(e,t){return Math.round(8*e*1e3/t/1024)}var v4={ERROR:"error",TTFB:"core.ttfb",LOAD_START:"core.loadstart",LOAD_RESPONSE_HEADERS:"core.loadresponseheaders",LOAD_COMPLETE:"core.loadcomplete",LOAD_RETRY:"core.loadretry",SOURCEBUFFER_CREATED:"core.sourcebuffercreated",ANALYZE_DURATION_EXCEEDED:"core.analyzedurationexceeded",REMOVE_BUFFER:"core.removebuffer",BUFFEREOS:"core.buffereos",KEYFRAME:"core.keyframe",METADATA_PARSED:"core.metadataparsed",SEI:"core.sei",SEI_IN_TIME:"core.seiintime",FLV_SCRIPT_DATA:"core.flvscriptdata",LOWDECODE:"core.lowdecode",SWITCH_URL_SUCCESS:"core.switchurlsuccess",SWITCH_URL_FAILED:"core.switchurlfailed",SPEED:"core.speed",HLS_MANIFEST_LOADED:"core.hlsmanifestloaded",HLS_LEVEL_LOADED:"core.hlslevelloaded",DEMUXED_TRACK:"demuxedtrack",STREAM_EXCEPTION:"core.streamexception",LARGE_AV_FIRST_FRAME_GAP_DETECT:"LARGE_AV_FIRST_FRAME_GAP_DETECT",LARGE_VIDEO_DTS_GAP_DETECT:"LARGE_VIDEO_DTS_GAP_DETECT",LARGE_AUDIO_DTS_GAP_DETECT:"LARGE_AUDIO_DTS_GAP_DETECT",AUDIO_GAP_DETECT:"AUDIO_GAP_DETECT",AUDIO_OVERLAP_DETECT:"AUDIO_OVERLAP_DETECT",MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT:"MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",REAL_TIME_SPEED:"real_time_speed"},y4=2097152,g4=function(e){pG(n,e);var t,r=wG(n);function n(){var e;return lG(this,n),dG(SG(e=r.call(this)),"_abortController",null),dG(SG(e),"_timeoutTimer",null),dG(SG(e),"_reader",null),dG(SG(e),"_response",null),dG(SG(e),"_aborted",!1),dG(SG(e),"_index",-1),dG(SG(e),"_range",null),dG(SG(e),"_receivedLength",0),dG(SG(e),"_running",!1),dG(SG(e),"_logger",null),dG(SG(e),"_vid",""),dG(SG(e),"_onProcessMinLen",0),dG(SG(e),"_onCancel",null),dG(SG(e),"_priOptions",null),e}return hG(n,[{key:"load",value:function(e){var t,r=this,n=e.url,i=e.vid,o=e.timeout,a=e.responseType,s=e.onProgress,u=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,h=e.transformResponse,d=e.request,p=e.params,v=e.logger,y=e.method,g=e.headers,m=e.body,b=e.mode,_=e.credentials,S=e.cache,w=e.redirect,k=e.referrer,x=e.referrerPolicy,E=e.onProcessMinLen,T=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=E,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=u,this._range=f||[0,0],this._vid=i||n,this._priOptions=T||{};var A={method:y,headers:g,body:m,mode:b,credentials:_,cache:S,redirect:w,referrer:k,referrerPolicy:x,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},O=!1;clearTimeout(this._timeoutTimer),n=h4(n,p);var L=l4(f);L&&(g=d?d.headers:A.headers=A.headers||(Headers?new Headers:{}),Headers&&g instanceof Headers?g.append("Range",L):g.Range=L),o&&(this._timeoutTimer=CD((function(){if(O=!0,r.cancel(),c){var e=new w5(n,A,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),o));var P=qU();return this._logger.debug("[fetch load start], index,",u,",range,",f),new VA((function(e,t){fetch(d||n,d?void 0:A).then(function(){var i=cG(aG().mark((function i(o){var c,l,d,p;return aG().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=o,!r._aborted&&r._running){i.next=4;break}return i.abrupt("return");case 4:if(h&&(o=h(o,n)||o),o.ok){i.next=7;break}throw new w5(n,A,o,"bad network response");case 7:if(c=qU(),a!==_5){i.next=15;break}return i.next=11,o.text();case 11:l=i.sent,r._running=!1,i.next=37;break;case 15:if(a!==S5){i.next=22;break}return i.next=18,o.json();case 18:l=i.sent,r._running=!1,i.next=37;break;case 22:if(!s){i.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(o,s,P,c),i.abrupt("return");case 29:return i.next=31,o.arrayBuffer();case 31:l=i.sent,l=new Uint8Array(l),r._running=!1,d=qU()-P,p=p4(l.byteLength,d),r.emit(v4.REAL_TIME_SPEED,{speed:p,len:l.byteLength,time:d,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",u,",range,",f),e(d4(l,!0,o,o.headers.get("Content-Length"),o.headers.get("age"),P,c,u,f,r._vid,r._priOptions));case 39:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(e){var i;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!O||((e=e instanceof w5?e:new w5(n,A,null,null===(i=e)||void 0===i?void 0:i.message)).startTime=P,e.endTime=qU(),e.isTimeout=O,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=cG(aG().mark((function e(){return aG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(vie){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var i=this;if(!e.body||!e.body.getReader){this._running=!1;var o=new w5(e.url,"",e,"onProgress of bad response.body.getReader");return o.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(o)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(y4),this._writeIdx=0);var a,s,u,c=this._reader=e.body.getReader(),l=function(){var o=cG(aG().mark((function o(){var f,h,d,p,v,y,g,m;return aG().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=qU(),o.prev=1,o.next=4,c.read();case 4:a=o.sent,u=qU(),o.next=13;break;case 8:return o.prev=8,o.t0=o.catch(1),u=qU(),i._aborted||(i._running=!1,o.t0.options={index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions},i.reject(o.t0)),o.abrupt("return");case 13:if(h=(null===(f=i._range)||void 0===f?void 0:f.length)>0?i._range[0]:0,d=h+i._receivedLength,!i._aborted){o.next=19;break}return i._running=!1,t(void 0,!1,{range:[d,d],vid:i._vid,index:i._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:i._priOptions},e),o.abrupt("return");case 19:var b;if(p=a.value?a.value.byteLength:0,i._receivedLength+=p,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",d,", end,",h+i._receivedLength,", done,",a.done),i._onProcessMinLen>0){if(i._writeIdx+p>=i._onProcessMinLen||a.done)(v=new Uint8Array(i._writeIdx+p)).set(IS(b=i._cache).call(b,0,i._writeIdx),0),p>0&&v.set(a.value,i._writeIdx),i._writeIdx=0,i._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",i._writeIdx);else if(p>0&&i._writeIdx+p<y4)i._cache.set(a.value,i._writeIdx),i._writeIdx+=p,i._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",i._writeIdx);else if(p>0){var _;y=new Uint8Array(i._writeIdx+p+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+p+2048,", datalen,",p,", writeIdx,",i._writeIdx),y.set(IS(_=i._cache).call(_,0,i._writeIdx),0),p>0&&y.set(a.value,i._writeIdx),i._writeIdx+=p,delete i._cache,i._cache=y,i._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",i._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[i._range[0]+i._receivedLength-(v?v.byteLength:0),i._range[0]+i._receivedLength],vid:i._vid,index:i._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:i._priOptions},e),a.done?(g=qU()-r,m=p4(i._receivedLength,g),i.emit(v4.REAL_TIME_SPEED,{speed:m,len:i._receivedLength,time:g,vid:i._vid,index:i._index,range:i._range,priOptions:i._priOptions}),i._running=!1,i._logger.debug("[fetchLoader onProgress end],task,",i._range,",done,",a.done),i.resolve(d4(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,i._index,i._range,i._vid,i._priOptions))):l();case 25:case"end":return o.stop()}}),o,null,[[1,8]])})));return function(){return o.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(NI);var m4=_r.PROPER,b4=E,_4=w8,S4=C8.trim;vi({target:"String",proto:!0,forced:function(e){return b4((function(){return!!_4[e]()||"​…᠎"!=="​…᠎"[e]()||m4&&_4[e].name!==e}))}("trim")},{trim:function(){return S4(this)}});var w4=function(e){pG(r,e);var t=wG(r);function r(){var e;return lG(this,r),dG(SG(e=t.call(this)),"_xhr",null),dG(SG(e),"_aborted",!1),dG(SG(e),"_timeoutTimer",null),dG(SG(e),"_range",null),dG(SG(e),"_receivedLength",0),dG(SG(e),"_url",null),dG(SG(e),"_onProgress",null),dG(SG(e),"_index",-1),dG(SG(e),"_headers",null),dG(SG(e),"_currentChunkSizeKB",384),dG(SG(e),"_timeout",null),dG(SG(e),"_xhr",null),dG(SG(e),"_withCredentials",null),dG(SG(e),"_startTime",-1),dG(SG(e),"_loadCompleteResolve",null),dG(SG(e),"_loadCompleteReject",null),dG(SG(e),"_runing",!1),dG(SG(e),"_logger",!1),dG(SG(e),"_vid",""),dG(SG(e),"_responseType",void 0),dG(SG(e),"_credentials",void 0),dG(SG(e),"_method",void 0),dG(SG(e),"_transformResponse",void 0),dG(SG(e),"_firstRtt",void 0),dG(SG(e),"_onCancel",null),dG(SG(e),"_priOptions",null),e}return hG(r,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=h4(e.url,e.params);var r=qU();return new VA((function(e,r){t._loadCompleteResolve=e,t._loadCompleteReject=r,t._startLoad()})).catch((function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof w5?e:new w5(t._url,t._request)).startTime=r,e.endTime=qU(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===b5&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,r=this._range[0]+this._receivedLength,n=this._range[1];t<this._range[1]-r&&(n=r+t),e=[r,n],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{var r,n;this._startTime=qU();var i=this._xhr=new XMLHttpRequest;i.open(this._method||"GET",this._url,!0),i.responseType=this._responseType,this._timeout&&(i.timeout=this._timeout),i.withCredentials=this._withCredentials,i.onload=SR(r=this._onLoad).call(r,this),i.onreadystatechange=SR(n=this._onReadyStatechange).call(n,this),i.onerror=function(e){var r,n,i;t._running=!1;var o=new w5(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(i=e.currentTarget)||void 0===i?void 0:i.statusText));o.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(o)},i.ontimeout=function(e){t.cancel();var r=new w5(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var o,a=this._headers||{},s=l4(e);if(s&&(a.Range=s),a)lS(o=dS(a)).call(o,(function(e){i.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),i.send(this._body)}catch(u){u.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(u)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=qU())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new w5(this._url,null,oG(oG({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var i,o=null,a=!1,s=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===b5){var u,c=new Uint8Array(e.target.response);if(i=s+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=qU()-this._startTime,f=p4(this._receivedLength,l);this.emit(v4.REAL_TIME_SPEED,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[i,s+this._receivedLength],priOptions:this._priOptions})}o=c,a=!((null===(u=this._range)||void 0===u?void 0:u.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",i,"end ",s+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,o=e.target.response;var h={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(h=this._transformResponse(h,this._url)||h),this._onProgress&&this._onProgress(o,a,{index:this._index,vid:this._vid,range:[i,s+this._receivedLength],startTime:this._startTime,endTime:qU(),priOptions:this._priOptions},h),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(d4(this._onProgress?null:o,a,h,h.headers["content-length"],h.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,kG(vG(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},i=EG(nU(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(i.s();!(r=i.n()).done;){var o=r.value.split(": ");n[o[0].toLowerCase()]=IS(o).call(o,1).join(": ")}}catch(a){i.e(a)}finally{i.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(NI),k4=["retry","retryDelay","onRetryError","transformError"],x4=function(){function e(t,r){lG(this,e),this.promise=n$(),this.alive=!!r.onProgress,!r.logger&&(r.logger=new yX("Loader")),this._loaderType=t,this._loader=t===g5&&window.fetch?new g4:new w4,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return hG(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,i=t.onRetryError,o=t.transformError,a=_G(t,k4),s=function(){var t=cG(aG().mark((function t(){var u,c,l;return aG().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:u=t.sent,e.promise.resolve(u),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,o&&(c=o(c)||c),i&&e._retryCount>0&&i(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=CD(s,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return s(),this.promise}},{key:"cancel",value:(t=cG(aG().mark((function e(){return aG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),e}();function E4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if((t=kO(t).call(t,Boolean)).length<2)return t[0];var n=new Uint8Array(g$(t).call(t,(function(e,t){return e+t.byteLength}),0)),i=0;return lS(t).call(t,(function(e){n.set(e,i),i+=e.byteLength})),n}function T4(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new VA((function(t){return CD(t,e)}))}var A4=function(e){pG(n,e);var t,r=wG(n);function n(e){var t;return lG(this,n),dG(SG(t=r.call(this,e)),"type",g5),dG(SG(t),"_queue",[]),dG(SG(t),"_alive",[]),dG(SG(t),"_currentTask",null),dG(SG(t),"_config",void 0),t._config=function(e){return oG({loaderType:g5,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:_5,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e)}(e),t._config.loaderType!==m5&&g4.isSupported()||(t.type=m5),t.log=e.logger,t}return hG(n,[{key:"isFetch",value:function(){return this.type===g5}},{key:"load",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?r=e:r.url=e||r.url||this._config.url,(r=MI({},this._config,r)).params&&(r.params=MI({},r.params)),r.headers&&c4(r.headers)&&(r.headers=MI({},r.headers)),r.body&&c4(r.body)&&(r.body=MI({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new x4(this.type,r);return n.loader.on(v4.REAL_TIME_SPEED,(function(e){t.emit(v4.REAL_TIME_SPEED,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=cG(aG().mark((function e(){var t;return aG().wrap((function(e){for(var r,n,i;;)switch(e.prev=e.next){case 0:return t=gm(r=yO(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,yO(i=this._alive).call(i,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,VA.all(t);case 6:return e.next=8,T4();case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch((function(e){}));t&&"function"==typeof t.finally&&t.finally((function(){var t,r,n;null!==(t=e._currentTask)&&void 0!==t&&t.alive&&(null===(r=e._alive)||void 0===r?void 0:r.length)>0&&(e._alive=kO(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return g4.isSupported()}}]),n}(NI),O4=function(){function e(){lG(this,e),dG(this,"_prevCurrentTime",0)}return hG(e,[{key:"do",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e){var i=e.currentTime,o=0;if(this._prevCurrentTime===i){var a=m$.info(m$.get(e),i);if(!a.buffers.length)return;r&&a.nextStart||a.nextStart&&a.nextStart-i<t?o=a.nextStart+.1:a.end&&a.end-i>n&&!e.seeking&&(o=i+.1)}this._prevCurrentTime=i,o&&i!==o&&(e.currentTime=o)}}}]),e}();oV("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),_V);var L4=qd.Set,P4=yp,C4=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw TypeError(P4(e)+" is not a set")},R4=DV,I4=Xd("Set"),D4=I4.prototype,U4={Set:I4,add:R4("add",1),has:R4("has",1),remove:R4("delete",1),proto:D4},j4=qV,M4=function(e,t,r){return r?j4(e.keys(),t):e.forEach(t)},B4=M4,N4=U4.Set,F4=U4.add,V4=function(e){var t=new N4;return B4(e,(function(e){F4(t,e)})),t},z4=function(e){return e.size},G4=_p,H4=qv,q4=wd,Y4=Sy,W4=TypeError,K4=Math.max,$4=function(e,t,r,n){this.set=e,this.size=t,this.has=r,this.keys=n};$4.prototype={getIterator:function(){return H4(q4(this.keys,this.set))},includes:function(e){return q4(this.has,this.set,e)}};var X4=function(e){H4(e);var t=+e.size;if(t!=t)throw W4("Invalid size");return new $4(e,K4(Y4(t),0),G4(e.has),G4(e.keys))},Q4=C4,J4=V4,Z4=z4,e3=X4,t3=M4,r3=qV,n3=U4.has,i3=U4.remove,o3=function(e){var t=Q4(this),r=e3(e),n=J4(t);return Z4(t)<=r.size?t3(t,(function(e){r.includes(e)&&i3(n,e)})):r3(r.getIterator(),(function(e){n3(t,e)&&i3(n,e)})),n},a3=function(){return!1},s3=o3;gy({target:"Set",proto:!0,real:!0,forced:!a3()},{difference:s3});var u3=C4,c3=z4,l3=X4,f3=M4,h3=qV,d3=U4.Set,p3=U4.add,v3=U4.has,y3=function(e){var t=u3(this),r=l3(e),n=new d3;return c3(t)>r.size?h3(r.getIterator(),(function(e){v3(t,e)&&p3(n,e)})):f3(t,(function(e){r.includes(e)&&p3(n,e)})),n},g3=y3;gy({target:"Set",proto:!0,real:!0,forced:!a3()},{intersection:g3});var m3=C4,b3=U4.has,_3=z4,S3=X4,w3=M4,k3=qV,x3=Zw,E3=function(e){var t=m3(this),r=S3(e);if(_3(t)<=r.size)return!1!==w3(t,(function(e){if(r.includes(e))return!1}),!0);var n=r.getIterator();return!1!==k3(n,(function(e){if(b3(t,e))return x3(n,"normal",!1)}))},T3=E3;gy({target:"Set",proto:!0,real:!0,forced:!a3()},{isDisjointFrom:T3});var A3=C4,O3=z4,L3=M4,P3=X4,C3=function(e){var t=A3(this),r=P3(e);return!(O3(t)>r.size)&&!1!==L3(t,(function(e){if(!r.includes(e))return!1}),!0)},R3=C3;gy({target:"Set",proto:!0,real:!0,forced:!a3()},{isSubsetOf:R3});var I3=C4,D3=U4.has,U3=z4,j3=X4,M3=qV,B3=Zw,N3=function(e){var t=I3(this),r=j3(e);if(U3(t)<r.size)return!1;var n=r.getIterator();return!1!==M3(n,(function(e){if(!D3(t,e))return B3(n,"normal",!1)}))},F3=N3;gy({target:"Set",proto:!0,real:!0,forced:!a3()},{isSupersetOf:F3});var V3=C4,z3=V4,G3=X4,H3=qV,q3=U4.add,Y3=U4.has,W3=U4.remove,K3=function(e){var t=V3(this),r=G3(e).getIterator(),n=z3(t);return H3(r,(function(e){Y3(t,e)?W3(n,e):q3(n,e)})),n},$3=K3;gy({target:"Set",proto:!0,real:!0,forced:!a3()},{symmetricDifference:$3});var X3=C4,Q3=U4.add,J3=V4,Z3=X4,e6=qV,t6=function(e){var t=X3(this),r=Z3(e).getIterator(),n=J3(t);return e6(r,(function(e){Q3(n,e)})),n},r6=t6;gy({target:"Set",proto:!0,real:!0,forced:!a3()},{union:r6});var n6=L4;gy({target:"Set",stat:!0,forced:!0},{from:LV}),gy({target:"Set",stat:!0,forced:!0},{of:CV});var i6=C4,o6=U4.add;gy({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i6(this),t=0,r=arguments.length;t<r;t++)o6(e,arguments[t]);return e}});var a6=C4,s6=U4.remove;gy({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=a6(this),r=!0,n=0,i=arguments.length;n<i;n++)e=s6(t,arguments[n]),r=r&&e;return!!r}});var u6=Nv,c6=C4,l6=M4;gy({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=c6(this),r=u6(e,arguments.length>1?arguments[1]:void 0);return!1!==l6(t,(function(e){if(!r(e,e,t))return!1}),!0)}});var f6=ag,h6=Vp,d6=Ud,p6=mm,v6=tv("iterator"),y6=Object,g6=gd,m6=function(e){if(d6(e))return!1;var t=y6(e);return void 0!==t[v6]||"@@iterator"in t||h6(p6,f6(t))},b6=Hd,_6=Xd("Set"),S6=function(e){return function(e){return b6(e)&&"number"==typeof e.size&&g6(e.has)&&g6(e.keys)}(e)?e:m6(e)?new _6(e):e},w6=wd,k6=S6,x6=o3;gy({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return w6(x6,this,k6(e))}});var E6=Nv,T6=C4,A6=M4,O6=U4.Set,L6=U4.add;gy({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=T6(this),r=E6(e,arguments.length>1?arguments[1]:void 0),n=new O6;return A6(t,(function(e){r(e,e,t)&&L6(n,e)})),n}});var P6=Nv,C6=C4,R6=M4;gy({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=C6(this),r=P6(e,arguments.length>1?arguments[1]:void 0),n=R6(t,(function(e){if(r(e,e,t))return{value:e}}),!0);return n&&n.value}});var I6=wd,D6=S6,U6=y3;gy({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return I6(U6,this,D6(e))}});var j6=wd,M6=S6,B6=E3;gy({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return j6(B6,this,M6(e))}});var N6=wd,F6=S6,V6=C3;gy({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return N6(V6,this,F6(e))}});var z6=wd,G6=S6,H6=N3;gy({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return z6(H6,this,G6(e))}});var q6=gy,Y6=Jh,W6=C4,K6=M4,$6=yk,X6=Y6([].join),Q6=Y6([].push);q6({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=W6(this),r=void 0===e?",":$6(e),n=[];return K6(t,(function(e){Q6(n,e)})),X6(n,r)}});var J6=Nv,Z6=C4,e9=M4,t9=U4.Set,r9=U4.add;gy({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=Z6(this),r=J6(e,arguments.length>1?arguments[1]:void 0),n=new t9;return e9(t,(function(e){r9(n,r(e,e,t))})),n}});var n9=_p,i9=C4,o9=M4,a9=TypeError;gy({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=i9(this),r=arguments.length<2,n=r?void 0:arguments[1];if(n9(e),o9(t,(function(i){r?(r=!1,n=i):n=e(n,i,i,t)})),r)throw a9("Reduce of empty set with no initial value");return n}});var s9=Nv,u9=C4,c9=M4;gy({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=u9(this),r=s9(e,arguments.length>1?arguments[1]:void 0);return!0===c9(t,(function(e){if(r(e,e,t))return!0}),!0)}});var l9=wd,f9=S6,h9=K3;gy({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return l9(h9,this,f9(e))}});var d9=wd,p9=S6,v9=t6;gy({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return d9(v9,this,p9(e))}});var y9=S(n6),g9={exports:{}},m9={},b9=Y,_9=ie,S9=pn.f,w9=mH,k9="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];m9.f=function(e){return k9&&"Window"==b9(e)?function(e){try{return S9(e)}catch(vie){return w9(k9)}}(e):S9(_9(e))};var x9=E((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),E9=E,T9=fe,A9=Y,O9=x9,L9=Object.isExtensible,P9=E9((function(){L9(1)}))||O9?function(e){return!!T9(e)&&((!O9||"ArrayBuffer"!=A9(e))&&(!L9||L9(e)))}:L9,C9=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),R9=vi,I9=z,D9=Dr,U9=fe,j9=at,M9=Kt.f,B9=pn,N9=m9,F9=P9,V9=C9,z9=!1,G9=ft("meta"),H9=0,q9=function(e){M9(e,G9,{value:{objectID:"O"+H9++,weakData:{}}})},Y9=g9.exports={enable:function(){Y9.enable=function(){},z9=!0;var e=B9.f,t=I9([].splice),r={};r[G9]=1,e(r).length&&(B9.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===G9){t(n,i,1);break}return n},R9({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:N9.f}))},fastKey:function(e,t){if(!U9(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!j9(e,G9)){if(!F9(e))return"F";if(!t)return"E";q9(e)}return e[G9].objectID},getWeakData:function(e,t){if(!j9(e,G9)){if(!F9(e))return!0;if(!t)return!1;q9(e)}return e[G9].weakData},onFreeze:function(e){return V9&&z9&&F9(e)&&!j9(e,G9)&&q9(e),e}};D9[G9]=!0;var W9=g9.exports,K9=vi,$9=k,X9=z,Q9=si,J9=dn,Z9=W9,e7=Uc,t7=ua,r7=ue,n7=J,i7=fe,o7=E,a7=Fc,s7=ea,u7=mZ,c7=Kt.f,l7=Yf,f7=BH,h7=La,d7=ua,p7=J,v7=Uc,y7=jh,g7=Mh,m7=oa,b7=T,_7=W9.fastKey,S7=Kr.set,w7=Kr.getterFor,k7={getConstructor:function(e,t,r,n){var i=e((function(e,i){d7(e,o),S7(e,{type:t,index:l7(null),first:void 0,last:void 0,size:0}),b7||(e.size=0),p7(i)||v7(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=w7(t),s=function(e,t,r){var n,i,o=a(e),s=u(e,t);return s?s.value=r:(o.last=s={index:i=_7(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),b7?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},u=function(e,t){var r,n=a(e),i=_7(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return f7(o,{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,b7?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),b7?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=h7(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!!u(this,e)}}),f7(o,r?{get:function(e){var t=u(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)}}),b7&&c7(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=w7(t),o=w7(n);y7(e,t,(function(e,t){S7(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(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)?g7("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,g7(void 0,!0))}),r?"entries":"values",!r,!0),m7(t)}};(function(e,t,r){var n=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=n?"set":"add",a=$9[e],s=a&&a.prototype,u=a,c={},l=function(e){var t=X9(s[e]);J9(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!i7(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!i7(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!i7(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(Q9(e,!r7(a)||!(i||s.forEach&&!o7((function(){(new a).entries().next()})))))u=r.getConstructor(t,e,n,o),Z9.enable();else if(Q9(e,!0)){var f=new u,h=f[o](i?{}:-0,1)!=f,d=o7((function(){f.has(1)})),p=a7((function(e){new a(e)})),v=!i&&o7((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((u=t((function(e,t){t7(e,s);var r=u7(new a,e,u);return n7(t)||e7(t,r[o],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(d||v)&&(l("delete"),l("has"),n&&l("get")),(v||h)&&l(o),i&&s.clear&&delete s.clear}c[e]=u,K9({global:!0,constructor:!0,forced:u!=a},c),s7(u,e),i||r.setStrong(u,e,n)})("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),k7);var x7=function(){function e(t){var r=this;lG(this,e),dG(this,"_seiSet",new y9),this.emitter=t,t.on(v4.SEI,(function(e){e&&r._seiSet.add(e)}))}return hG(e,[{key:"throw",value:function(e){var t,r=this;if(null!=e&&this._seiSet.size){var n=e-.2,i=e+.2,o=[];lS(t=this._seiSet).call(t,(function(e){e.time>=n&&e.time<=i&&o.push(e)})),lS(o).call(o,(function(e){r._seiSet.delete(e),r.emitter.emit(v4.SEI_IN_TIME,e)}))}}},{key:"reset",value:function(){this._seiSet.clear()}}]),e}(),E7=function(){function e(){lG(this,e),dG(this,"_chunkSpeeds",[]),dG(this,"_speeds",[])}return hG(e,[{key:"addRecord",value:function(e,t){var r;e&&t&&(this._speeds.push(8e3*e/t),this._speeds=IS(r=this._speeds).call(r,-3))}},{key:"addChunkRecord",value:function(e,t){var r;e&&t&&(this._chunkSpeeds.push(8e3*e/t),this._chunkSpeeds=IS(r=this._chunkSpeeds).call(r,-100))}},{key:"getAvgSpeed",value:function(){var e,t;return this._chunkSpeeds.length||this._speeds.length?this._speeds.length?g$(t=this._speeds).call(t,(function(e,t){return e+t}))/this._speeds.length:g$(e=this._chunkSpeeds).call(e,(function(e,t){return e+t}))/this._chunkSpeeds.length:0}},{key:"getLatestSpeed",value:function(){return this._chunkSpeeds.length||this._speeds.length?this._speeds.length?this._speeds[this._speeds.length-1]:this._chunkSpeeds[this._chunkSpeeds.length-1]:0}},{key:"reset",value:function(){this._chunkSpeeds=[],this._speeds=[]}}]),e}(),T7=function(){function e(t){lG(this,e),dG(this,"encodeType",""),dG(this,"audioCodec",""),dG(this,"videoCodec",""),dG(this,"domain",""),dG(this,"fps",0),dG(this,"bitrate",0),dG(this,"width",0),dG(this,"height",0),dG(this,"samplerate",0),dG(this,"channelCount",0),dG(this,"gop",0),dG(this,"_bitsAccumulateSize",0),dG(this,"_bitsAccumulateDuration",0),this._timescale=t}return hG(e,[{key:"getStats",value:function(){return{encodeType:this.encodeType,audioCodec:this.audioCodec,videoCodec:this.videoCodec,domain:this.domain,fps:this.fps,bitrate:this.bitrate,width:this.width,height:this.height,samplerate:this.samplerate,channelCount:this.channelCount,gop:this.gop}}},{key:"setEncodeType",value:function(e){this.encodeType=e}},{key:"setVideoMeta",value:function(e){this.width=e.width,this.height=e.height,this.videoCodec=e.codec,this.encodeType=e.codecType,e.fpsNum&&e.fpsDen&&(this.fps=e.fpsNum/e.fpsDen)}},{key:"setAudioMeta",value:function(e){this.audioCodec=e.codec,this.samplerate=e.sampleRate,this.channelCount=e.channelCount}},{key:"setDomain",value:function(e){var t;this.domain=IS(t=e.split("/")).call(t,2,3)[0]}},{key:"updateBitrate",value:function(e){var t=this;if(!this.fps||this.fps>=100){var r=e[0];null!=r&&r.duration&&(this.fps=Math.round(this._timescale/r.duration))}lS(e).call(e,(function(e){var r;1===e.gopId&&t.gop++,t._bitsAccumulateDuration+=e.duration/(t._timescale/1e3),t._bitsAccumulateSize+=g$(r=e.units).call(r,(function(e,t){return e+t.length}),0),t._bitsAccumulateDuration>=1e3&&(t.bitrate=8*t._bitsAccumulateSize,t._bitsAccumulateDuration=0,t._bitsAccumulateSize=0)}))}}]),e}(),A7=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;lG(this,e),dG(this,"_core",null),dG(this,"_samples",[]),this._core=t,this._timescale=r,this._stats=new T7(r),this._bindEvents()}return hG(e,[{key:"getStats",value:function(){var e,t,r,n,i,o,a,s=(null===(e=this._core)||void 0===e?void 0:e.media)||{},u=s.currentTime,c=void 0===u?0:u,l=s.decodeFps,f=void 0===l?0:l;return oG(oG({},this._stats.getStats()),{},{downloadSpeed:(null===(t=this._core)||void 0===t||null===(r=t.speedInfo)||void 0===r?void 0:r.call(t).speed)||0,avgSpeed:(null===(n=this._core)||void 0===n||null===(i=n.speedInfo)||void 0===i?void 0:i.call(n).avgSpeed)||0,currentTime:c,bufferEnd:(null===(o=this._core)||void 0===o||null===(a=o.bufferInfo())||void 0===a?void 0:a.remaining)||0,decodeFps:f})}},{key:"_bindEvents",value:function(){var e=this;this._core.on(v4.DEMUXED_TRACK,(function(t){return e._stats.updateBitrate(t.samples)})),this._core.on(v4.METADATA_PARSED,(function(t){"video"===t.type?e._stats.setVideoMeta(t.track):e._stats.setAudioMeta(t.track)})),this._core.on(v4.TTFB,(function(t){e._stats.setDomain(t.responseUrl)}))}},{key:"reset",value:function(){this._samples=[],this._stats=new T7(this._timescale)}}]),e}(),O7=k.isFinite;vi({target:"Number",stat:!0},{isFinite:Number.isFinite||function(e){return"number"==typeof e&&O7(e)}});var L7=vi,P7=Yl.find,C7=RG,R7="find",I7=!0;function D7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U7(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 j7(e,t,r){return t&&U7(e.prototype,t),r&&U7(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function M7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B7(e){return(B7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N7(e,t){return(N7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function F7(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function V7(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=B7(e);if(t){var i=B7(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return F7(this,r)}}function z7(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||H7(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G7(e){return function(e){if(Array.isArray(e))return q7(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H7(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H7(e,t){if(e){if("string"==typeof e)return q7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q7(e,t):void 0}}function q7(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}R7 in[]&&Array(1)[R7]((function(){I7=!1})),L7({target:"Array",proto:!0,forced:I7},{find:function(e){return P7(this,e,arguments.length>1?arguments[1]:void 0)}}),C7(R7);var Y7=fe,W7=Y,K7=St("match"),$7=function(e){var t;return Y7(e)&&(void 0!==(t=e[K7])?!!t:"RegExp"==W7(e))},X7=$7,Q7=TypeError,J7=St("match"),Z7=vi,eee=function(e){if(X7(e))throw Q7("The method doesn't accept regular expressions");return e},tee=te,ree=hf,nee=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[J7]=!1,"/./"[e](t)}catch(n){}}return!1},iee=z("".indexOf);Z7({target:"String",proto:!0,forced:!nee("includes")},{includes:function(e){return!!~iee(ree(tee(this)),ree(eee(e)),arguments.length>1?arguments[1]:void 0)}});var oee="video",aee="audio",see="metadata",uee="avc",cee="hevc",lee="aac",fee="g7110a",hee="g7110m",dee="LARGE_AV_SHIFT",pee="LARGE_VIDEO_GAP",vee="LARGE_VIDEO_GAP_BETWEEN_CHUNK",yee="LARGE_AUDIO_GAP",gee="AUDIO_FILLED",mee="AUDIO_DROPPED",bee=function(){function e(){D7(this,e),M7(this,"id",1),M7(this,"type",oee),M7(this,"codecType",uee),M7(this,"pid",-1),M7(this,"hvcC",void 0),M7(this,"codec",""),M7(this,"timescale",0),M7(this,"formatTimescale",0),M7(this,"sequenceNumber",0),M7(this,"baseMediaDecodeTime",0),M7(this,"baseDts",0),M7(this,"duration",0),M7(this,"warnings",[]),M7(this,"samples",[]),M7(this,"pps",[]),M7(this,"sps",[]),M7(this,"vps",[]),M7(this,"fpsNum",0),M7(this,"fpsDen",0),M7(this,"sarRatio",[]),M7(this,"width",0),M7(this,"height",0),M7(this,"nalUnitSize",4),M7(this,"present",!1),M7(this,"isVideoEncryption",!1),M7(this,"isAudioEncryption",!1),M7(this,"isVideo",!0),M7(this,"kid",null),M7(this,"pssh",null),M7(this,"ext",void 0)}return j7(e,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[],this.hvcC=null}},{key:"exist",value:function(){return!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),e}(),_ee=function(){function e(){D7(this,e),M7(this,"id",2),M7(this,"type",aee),M7(this,"codecType",lee),M7(this,"pid",-1),M7(this,"codec",""),M7(this,"sequenceNumber",0),M7(this,"sampleDuration",0),M7(this,"timescale",0),M7(this,"formatTimescale",0),M7(this,"baseMediaDecodeTime",0),M7(this,"duration",0),M7(this,"warnings",[]),M7(this,"samples",[]),M7(this,"baseDts",0),M7(this,"sampleSize",16),M7(this,"sampleRate",0),M7(this,"channelCount",0),M7(this,"objectType",0),M7(this,"sampleRateIndex",0),M7(this,"config",[]),M7(this,"present",!1),M7(this,"isVideoEncryption",!1),M7(this,"isAudioEncryption",!1),M7(this,"kid",null),M7(this,"ext",void 0)}return j7(e,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.sampleRate&&this.channelCount&&this.codec&&this.codecType===lee)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}}]),e}(),See=function(){function e(t,r,n){D7(this,e),M7(this,"flag",{}),M7(this,"keyframe",!1),M7(this,"gopId",0),M7(this,"duration",0),M7(this,"size",0),M7(this,"units",[]),M7(this,"chromaFormat",420),this.originPts=this.pts=t,this.originDts=this.dts=r,n&&(this.units=n)}return j7(e,[{key:"cts",get:function(){return this.pts-this.dts}},{key:"setToKeyframe",value:function(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}}]),e}(),wee=j7((function e(t,r,n,i){D7(this,e),M7(this,"duration",1024),M7(this,"flag",{dependsOn:2,isNonSyncSample:0}),M7(this,"keyframe",!0),this.originPts=this.pts=this.dts=t,this.data=r,this.size=r.byteLength,this.sampleOffset=i,n&&(this.duration=n)})),kee=function(e){!function(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&&N7(e,t)}(r,e);var t=V7(r);function r(){return D7(this,r),t.apply(this,arguments)}return j7(r)}(j7((function e(t,r){D7(this,e),M7(this,"time",0),this.data=t,this.originPts=this.pts=r}))),xee=function(){function e(){D7(this,e),M7(this,"id",3),M7(this,"type",see),M7(this,"timescale",0),M7(this,"flvScriptSamples",[]),M7(this,"seiSamples",[])}return j7(e,[{key:"exist",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length||!this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length)}}]),e}(),Eee=P,Tee=at,Aee=ve,Oee=xK,Lee=RegExp.prototype,Pee=function(e){var t=e.flags;return void 0!==t||"flags"in Lee||Tee(e,"flags")||!Aee(Lee,e)?t:Eee(Oee,e)},Cee=_r.PROPER,Ree=dn,Iee=Zt,Dee=hf,Uee=E,jee=Pee,Mee="toString",Bee=RegExp.prototype[Mee],Nee=Uee((function(){return"/a/b"!=Bee.call({source:"a",flags:"b"})})),Fee=Cee&&Bee.name!=Mee;(Nee||Fee)&&Ree(RegExp.prototype,Mee,(function(){var e=Iee(this);return"/"+Dee(e.source)+"/"+Dee(jee(e))}),{unsafe:!0});var Vee=function(){function e(t){D7(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return j7(e,[{key:"warn",value:function(){var t;if(!e.disabled){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(n))}}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();M7(Vee,"disabled",!0);var zee,Gee,Hee=vi,qee=P,Yee=ue,Wee=Zt,Kee=hf,$ee=(zee=!1,(Gee=/[ac]/).exec=function(){return zee=!0,/./.exec.apply(this,arguments)},!0===Gee.test("abc")&&zee),Xee=/./.test;Hee({target:"RegExp",proto:!0,forced:!$ee},{test:function(e){var t=Wee(this),r=Kee(e),n=t.exec;if(!Yee(n))return qee(Xee,t,r);var i=qee(n,t,r);return null!==i&&(Wee(i),!0)}});var Qee="undefined"!=typeof window,Jee=Qee&&navigator.userAgent.toLocaleLowerCase(),Zee=Qee&&/^((?!chrome|android).)*safari/.test(Jee),ete=Qee&&Jee.includes("firefox"),tte=Qee&&Jee.includes("android"),rte=function(){function e(){D7(this,e)}return j7(e,null,[{key:"getRateIndexByRate",value:function(t){return e.FREQ.indexOf(t)}},{key:"parseADTS",value:function(t,r){for(var n=t.length,i=0;i+2<n&&(255!==t[i]||240!=(246&t[i+1]));)i++;if(!(i>=n)){var o=i,a=[],s=(60&t[i+2])>>>2,u=e.FREQ[s];if(!u)throw new Error("Invalid sampling index: ".concat(s));for(var c,l,f=1+((192&t[i+2])>>>6),h=(1&t[i+2])<<2|(192&t[i+3])>>>6,d=e._getConfig(s,h,f),p=d.config,v=d.codec,y=0,g=e.getFrameDuration(u);i+7<n;)if(255===t[i]&&240==(246&t[i+1])){if(n-i<(l=(3&t[i+3])<<11|t[i+4]<<3|(224&t[i+5])>>5))break;c=2*(1&~t[i+1]),a.push({pts:r+y*g,data:t.subarray(i+7+c,i+l)}),y++,i+=l}else i++;return{skip:o,remaining:i>=n?void 0:t.subarray(i),frames:a,samplingFrequencyIndex:s,sampleRate:u,objectType:f,channelCount:h,codec:v,config:p,originCodec:"mp4a.40.".concat(f)}}}},{key:"parseAudioSpecificConfig",value:function(t){if(t.length){var r=t[0]>>>3,n=(7&t[0])<<1|t[1]>>>7,i=(120&t[1])>>>3,o=e.FREQ[n];if(o){var a=e._getConfig(n,i,r);return{samplingFrequencyIndex:n,sampleRate:o,objectType:r,channelCount:i,config:a.config,codec:a.codec,originCodec:"mp4a.40.".concat(r)}}}}},{key:"getFrameDuration",value:function(e){return 1024*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4)/e}},{key:"_getConfig",value:function(e,t,r){var n,i,o=[];return ete?e>=6?(n=5,i=e-3):(n=2,i=e):tte?(n=2,i=e):(n=2===r||5===r?r:5,i=e,e>=6?i=e-3:1===t&&(n=2,i=e)),o[0]=n<<3,o[0]|=(14&e)>>1,o[1]=(1&e)<<7,o[1]|=t<<3,5===n&&(o[1]|=(14&i)>>1,o[2]=(1&i)<<7,o[2]|=8,o[3]=0),{config:o,codec:"mp4a.40.".concat(n)}}},{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}]),e}();function nte(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.filter(Boolean);var n=new Uint8Array(t.reduce((function(e,t){return e+t.byteLength}),0)),i=0;return t.forEach((function(e){n.set(e,i),i+=e.byteLength})),n}M7(rte,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var ite=Math.pow(2,32);function ote(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<8)+(e[t+1]||0)}function ate(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<24>>>0)+(e[t+1]<<16)+(e[t+2]<<8)+(e[t+3]||0)}function ste(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ate(e,t)*ite+ate(e,t+4)}function ute(e){for(var t,r="avc1.",n=0;n<3;n++)(t=e[n].toString(16)).length<2&&(t="0".concat(t)),r+=t;return r}function cte(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(r,16)),r="");return t}return e.map((function(e){return parseInt(e,16)}))}var lte=function(){function e(){D7(this,e)}return j7(e,null,[{key:"parseAnnexB",value:function(e){for(var t=e.length,r=2,n=0;null!==e[r]&&void 0!==e[r]&&1!==e[r];)r++;if((n=++r+2)>=t)return[];for(var i=[];n<t;)switch(e[n]){case 0:if(0!==e[n-1]){n+=2;break}if(0!==e[n-2]){n++;break}r!==n-2&&i.push(e.subarray(r,n-2));do{n++}while(1!==e[n]&&n<t);n=(r=n+1)+2;break;case 1:if(0!==e[n-1]||0!==e[n-2]){n+=3;break}r!==n-2&&i.push(e.subarray(r,n-2)),n=(r=n+1)+2;break;default:n+=3}return r<t&&i.push(e.subarray(r)),i}},{key:"parseAvcC",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!(e.length<4)){for(var r,n=e.length,i=[],o=0;o+t<n;)if(r=ate(e,o),3===t&&(r>>>=8),o+=t,r){if(o+r>n)break;i.push(e.subarray(o,o+r)),o+=r}return i}}},{key:"parseSEI",value:function(e,t){for(var r=e.length,n=t?2:1,i=0,o=0,a="";255===e[n];)i+=255,n++;for(i+=e[n++];255===e[n];)o+=255,n++;if(o+=e[n++],5===i&&r>n+16)for(var s=0;s<16;s++)a+=e[n].toString(16),n++;return{payload:e.subarray(n),type:i,size:o,uuid:a}}},{key:"removeEPB",value:function(e){for(var t=e.byteLength,r=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(!r.length)return e;var i=t-r.length,o=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===r[0]&&(a++,r.shift()),o[n]=e[a];return o}}]),e}(),fte=function(){function e(t){if(D7(this,e),M7(this,"_bytesAvailable",void 0),M7(this,"_bitsAvailable",0),M7(this,"_word",0),!t)throw new Error("ExpGolomb data params is required");this._data=t,this._bytesAvailable=t.byteLength,this._bytesAvailable&&this._loadWord()}return j7(e,[{key:"_loadWord",value:function(){var e=this._data.byteLength-this._bytesAvailable,t=Math.min(4,this._bytesAvailable);if(0===t)throw new Error("No bytes available");var r=new Uint8Array(4);r.set(this._data.subarray(e,e+t)),this._word=new DataView(r.buffer).getUint32(0),this._bitsAvailable=8*t,this._bytesAvailable-=t}},{key:"skipBits",value:function(e){if(this._bitsAvailable>e)this._word<<=e,this._bitsAvailable-=e;else{e-=this._bitsAvailable;var t=Math.floor(e/8);e-=8*t,this._bytesAvailable-=t,this._loadWord(),this._word<<=e,this._bitsAvailable-=e}}},{key:"readBits",value:function(e){if(e>32)throw new Error("Cannot read more than 32 bits");var t=Math.min(this._bitsAvailable,e),r=this._word>>>32-t;return this._bitsAvailable-=t,this._bitsAvailable>0?this._word<<=t:this._bytesAvailable>0&&this._loadWord(),(t=e-t)>0&&this._bitsAvailable?r<<t|this.readBits(t):r}},{key:"skipLZ",value:function(){var e;for(e=0;e<this._bitsAvailable;++e)if(0!=(this._word&2147483648>>>e))return this._word<<=e,this._bitsAvailable-=e,e;return this._loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(e){for(var t=8,r=8,n=0;n<e;n++)0!==r&&(r=(t+this.readEG()+256)%256),t=0===r?t:r}}]),e}(),hte=function(){function e(){D7(this,e)}return j7(e,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(t){if(!(t.length<7)){for(var r,n,i=1+(3&t[4]),o=[],a=[],s=6,u=31&t[5],c=0;c<u;c++)if(n=t[s]<<8|t[s+1],s+=2,n){var l=t.subarray(s,s+n);s+=n,o.push(l),r||(r=e.parseSPS(lte.removeEPB(l)))}var f,h=t[s];s++;for(var d=0;d<h;d++)f=t[s]<<8|t[s+1],s+=2,f&&(a.push(t.subarray(s,s+f)),s+=f);return{sps:r,spsArr:o,ppsArr:a,nalUnitSize:i}}}},{key:"parseSPS",value:function(e){var t=new fte(e);t.readUByte();var r=t.readUByte(),n=t.readUByte(),i=t.readUByte();t.skipUEG();var o=420;if(100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r){var a=t.readUEG();if(a<=3&&(o=[0,420,422,444][a]),3===a&&t.skipBits(1),t.skipUEG(),t.skipUEG(),t.skipBits(1),t.readBool())for(var s=3!==a?8:12,u=0;u<s;u++)t.readBool()&&(u<6?t.skipScalingList(16):t.skipScalingList(64))}t.skipUEG();var c=t.readUEG();if(0===c)t.readUEG();else if(1===c){t.skipBits(1),t.skipUEG(),t.skipUEG();for(var l=t.readUEG(),f=0;f<l;f++)t.skipUEG()}t.skipUEG(),t.skipBits(1);var h=t.readUEG(),d=t.readUEG(),p=t.readBits(1);0===p&&t.skipBits(1),t.skipBits(1);var v,y,g,m,b,_=0,S=0,w=0,k=0;if(t.readBool()&&(_=t.readUEG(),S=t.readUEG(),w=t.readUEG(),k=t.readUEG()),t.readBool()){if(t.readBool())switch(t.readUByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[t.readUByte()<<8|t.readUByte(),t.readUByte()<<8|t.readUByte()]}if(t.readBool()&&t.readBool(),t.readBool()&&(t.readBits(4),t.readBool()&&t.readBits(24)),t.readBool()&&(t.readUEG(),t.readUEG()),t.readBool()){var x=t.readBits(32),E=t.readBits(32);y=t.readBool(),b=(g=E)/(m=2*x)}}return{codec:ute(e.subarray(1,4)),profileIdc:r,profileCompatibility:n,levelIdc:i,chromaFormat:o,width:Math.ceil(16*(h+1)-2*(_+S)),height:(2-p)*(d+1)*16-(p?2:4)*(w+k),sarRatio:v,fpsNum:g,fpsDen:m,fps:b,fixedFrame:y}}}]),e}(),dte=function(){function e(){D7(this,e)}return j7(e,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t.length<23)){r=r||{};for(var n,i,o,a,s,u=1+(3&t[21]),c=[],l=[],f=[],h=23,d=t[22],p=0;p<d;p++){o=63&t[h],a=t[h+1]<<8|t[h+2],h+=3;for(var v=0;v<a;v++)if(s=t[h]<<8|t[h+1],h+=2,s){switch(o){case 32:var y=t.subarray(h,h+s);n||(n=e.parseVPS(lte.removeEPB(y),r)),f.push(y);break;case 33:var g=t.subarray(h,h+s);i||(i=e.parseSPS(lte.removeEPB(g),r)),c.push(g);break;case 34:l.push(t.subarray(h,h+s))}h+=s}}return{hvcC:r,sps:i,spsArr:c,ppsArr:l,vpsArr:f,nalUnitSize:u}}}},{key:"parseVPS",value:function(t,r){r=r||{};var n=new fte(t);n.readUByte(),n.readUByte(),n.readBits(12);var i=n.readBits(3);return r.numTemporalLayers=Math.max(r.numTemporalLayers||0,i+1),n.readBits(17),e._parseProfileTierLevel(n,i,r),r}},{key:"parseSPS",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=r||{};var n=new fte(t);n.readUByte(),n.readUByte(),n.readBits(4);var i=n.readBits(3);r.numTemporalLayers=Math.max(i+1,r.numTemporalLayers||0),r.temporalIdNested=n.readBits(1),e._parseProfileTierLevel(n,i,r),n.readUEG();var o=r.chromaFormatIdc=n.readUEG(),a=420;o<=3&&(a=[0,420,422,444][o]);var s=0;3===o&&(s=n.readBits(1));var u,c,l,f,h=n.readUEG(),d=n.readUEG(),p=n.readBits(1);(1===p&&(u=n.readUEG(),c=n.readUEG(),l=n.readUEG(),f=n.readUEG()),r.bitDepthLumaMinus8=n.readUEG(),r.bitDepthChromaMinus8=n.readUEG(),1===p)&&(h-=(1!==o&&2!==o||0!==s?1:2)*(c+u),d-=(1===o&&0===s?2:1)*(f+l));return{codec:"hev1.1.6.L93.B0",width:h,height:d,chromaFormat:a,hvcC:r}}},{key:"_parseProfileTierLevel",value:function(e,t,r){var n=r.generalTierFlag||0;r.generalProfileSpace=e.readBits(2),r.generalTierFlag=Math.max(e.readBits(1),n),r.generalProfileIdc=Math.max(e.readBits(5),r.generalProfileIdc||0),r.generalProfileCompatibilityFlags=e.readBits(32),r.generalConstraintIndicatorFlags=[e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8)];var i=e.readBits(8);n<r.generalTierFlag?r.generalLevelIdc=i:r.generalLevelIdc=Math.max(i,r.generalLevelIdc||0);for(var o=[],a=[],s=0;s<t;s++)o[s]=e.readBits(1),a[s]=e.readBits(1);t>0&&e.readBits(2*(8-t));for(var u=0;u<t;u++)0!==o[u]&&(e.readBits(2),e.readBits(1),e.readBits(5),e.readBits(16),e.readBits(16),e.readBits(4),e.readBits(16),e.readBits(16),e.readBits(12)),0!==a[u]&&e.readBits(8)}}]),e}(),pte=9e4,vte=45e4,yte=9e4,gte=function(){function e(t,r,n){D7(this,e),this.videoTrack=t,this.audioTrack=r,this.metadataTrack=n,this._baseDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=!1,this._videoTimestampBreak=!1,this._lastAudioExceptionGapDot=0,this._lastAudioExceptionOverlapDot=0,this._lastAudioExceptionLargeGapDot=0}return j7(e,[{key:"fix",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=Math.round(9e4*t);var i=this.videoTrack,o=this.audioTrack,a=i.samples,s=o.samples;if(a.length||s.length){var u=a[0],c=s[0],l=0;if(a.length&&s.length&&(l=u.dts-c.pts),this._baseDtsInited||this._calculateBaseDts(this.audioTrack,this.videoTrack),r&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=t),!n){this._videoNextDts=l>0?t+l:t,this._audioNextPts=l>0?t:t-l;var f=u?u.dts-this._baseDts-this._videoNextDts:0,h=c?c.pts-this._baseDts-this._audioNextPts:0;Math.abs(f||h)>yte&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=t)}if(this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(o),this._fixVideo(i),this.metadataTrack.exist()){var d=this.metadataTrack.timescale;this.metadataTrack.seiSamples.forEach((function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/d}))}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),o.samples.length&&(o.baseMediaDecodeTime=o.samples[0].pts*o.timescale/9e4)}}},{key:"_fixVideo",value:function(e){var t=this,r=e.samples;if(r.length){if(r.forEach((function(e){e.dts-=t._baseDts,e.pts-=t._baseDts})),void 0===this._videoNextDts){var n=r[0];this._videoNextDts=n.dts}var i,o,a=r.length,s=0,u=r[0],c=r[1],l=this._videoNextDts-u.dts;if(Math.abs(l)>45e3)u.dts+=l,u.pts+=l,e.warnings.push({type:vee,nextDts:this._videoNextDts,firstSampleDts:u.dts,nextSampleDts:null===(i=r[1])||void 0===i?void 0:i.dts,sampleDuration:l}),c&&Math.abs(c.dts-u.dts)>yte&&(this._videoTimestampBreak=!0,r.forEach((function(e,t){0!==t&&(e.dts+=l,e.pts+=l)})));if(e.fpsNum&&e.fpsDen)o=e.timescale*(e.fpsDen/e.fpsNum);else{var f=e.samples[0],h=e.samples[a-1];o=1===a?9e3:Math.floor((h.dts-f.dts)/(a-1))}for(var d=0;d<a;d++){var p=r[d].dts,v=r[d+1];if((s=d<a-1?v.dts-p:r[d-1]?Math.min(p-r[d-1].dts,o):o)>yte||s<0){this._videoTimestampBreak=!0,s=this._audioTimestampBreak?o:Math.max(s,2700);var y=this._audioNextPts||0;v&&v.dts>y&&(s=o),e.warnings.push({type:pee,time:p/e.timescale,dts:p,originDts:r[d].originDts,nextDts:this._videoNextDts,sampleDuration:s,refSampleDuration:o})}r[d].duration=s,this._videoNextDts+=s}}}},{key:"_fixAudio",value:function(e){var t=this,r=e.samples;r.length&&(r.forEach((function(e){e.pts-=t._baseDts,e.dts=e.pts})),this._doFixAudioInternal(e,r,9e4))}},{key:"_calculateBaseDts",value:function(e,t){var r=e.samples,n=t.samples;if(!r.length&&!n.length)return!1;var i=1/0,o=1/0;r.length&&(e.baseDts=i=r[0].pts),n.length&&(t.baseDts=o=n[0].dts),this._baseDts=Math.min(i,o);var a=o-i;return Number.isFinite(a)&&Math.abs(a)>45e3&&t.warnings.push({type:dee,videoBaseDts:o,audioBasePts:i,baseDts:this._baseDts,delta:a}),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){if(this._baseDtsInited&&this._videoTimestampBreak&&this._audioTimestampBreak){if(!this._calculateBaseDts(this.audioTrack,this.videoTrack))return;this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts),this._audioLastSample=null,this._videoLastSample=null,this._videoTimestampBreak=!1,this._audioTimestampBreak=!1}}},{key:"_doFixAudioInternal",value:function(e,t,r){e.sampleDuration||(e.sampleDuration=rte.getFrameDuration(e.timescale,r));var n=e.sampleDuration;if(void 0===this._audioNextPts){var i=t[0];this._audioNextPts=i.pts}for(var o=0;o<t.length;o++){var a=this._audioNextPts,s=t[o],u=s.pts-a;if(!this._audioTimestampBreak&&u>=3*n&&u<=pte&&!Zee){var c=rte.getSilentFrame(e.codec,e.channelCount)||t[0].data.subarray(),l=Math.floor(u/n);Math.abs(s.pts-this._lastAudioExceptionGapDot)>vte&&(this._lastAudioExceptionGapDot=s.pts),e.warnings.push({type:gee,pts:s.pts,originPts:s.originPts,count:l,nextPts:a,refSampleDuration:n});for(var f=0;f<l;f++){var h=new wee(Math.floor(a),c);h.originPts=Math.floor(this._baseDts+a),t.splice(o,0,h),this._audioNextPts+=n,o++}o--}else u<=-3*n&&u>=-9e4?(Math.abs(s.pts-this._lastAudioExceptionOverlapDot)>vte&&(this._lastAudioExceptionOverlapDot=s.pts,e.warnings.push({type:mee,pts:s.pts,originPts:s.originPts,nextPts:a,refSampleDuration:n})),t.splice(o,1),o--):(Math.abs(u)>=pte&&(this._audioTimestampBreak=!0,Math.abs(s.pts-this._lastAudioExceptionLargeGapDot)>vte&&(this._lastAudioExceptionLargeGapDot=s.pts,e.warnings.push({type:yee,time:s.pts/1e3,pts:s.pts,originPts:s.originPts,nextPts:a,sampleDuration:u,refSampleDuration:n}))),s.dts=s.pts=a,this._audioNextPts+=n)}}}]),e}(),mte=new Vee("TsDemuxer"),bte=function(){function e(t,r,n){D7(this,e),M7(this,"_pmtId",-1),M7(this,"_remainingPacketData",null),M7(this,"_videoPesData",[]),M7(this,"_audioPesData",[]),M7(this,"_gopId",0),this.videoTrack=t||new bee,this.audioTrack=r||new _ee,this.metadataTrack=n||new xee,this._fixer=new gte(this.videoTrack,this.audioTrack,this.metadataTrack)}return j7(e,[{key:"demux",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.audioTrack,i=this.videoTrack,o=this.metadataTrack;t&&(this._pmtId=-1,i.reset(),n.reset(),o.reset()),!r||t?(this._remainingPacketData=null,this._videoPesData=[],this._audioPesData=[]):(i.samples=[],n.samples=[],o.seiSamples=[],i.warnings=[],n.warnings=[],this._remainingPacketData&&(e=nte(this._remainingPacketData,e),this._remainingPacketData=null));var a=e.length,s=a%188;s&&(this._remainingPacketData=e.subarray(a-s),a-=s);for(var u=i.pid,c=n.pid,l=0;l<a;l+=188){if(71!==e[l])throw new Error("TS packet did not start with 0x47");var f=!!(64&e[l+1]),h=((31&e[l+1])<<8)+e[l+2],d=void 0;if((48&e[l+3])>>4>1){if((d=l+5+e[l+4])===l+188)continue}else d=l+4;switch(h){case 0:f&&(d+=e[d]+1),this._pmtId=(31&e[d+10])<<8|e[d+11];break;case this._pmtId:f&&(d+=e[d]+1);var p=d+3+((15&e[d+1])<<8|e[d+2])-4;for(d+=12+((15&e[d+10])<<8|e[d+11]);d<p;){var v=(31&e[d+1])<<8|e[d+2];switch(e[d]){case 15:n.pid=c=v;break;case 27:if(-1!==u)break;i.codecType=uee,i.pid=u=v;break;case 36:if(-1!==u)break;i.codecType=cee,i.pid=u=v;break;default:mte.warn("Unsupported stream. type: ".concat(e[d],", pid: ").concat(v))}d+=5+((15&e[d+3])<<8|e[d+4])}break;case u:f&&this._videoPesData.length&&this._parseVideoData(),this._videoPesData.push(e.subarray(d,l+188));break;case c:f&&this._audioPesData.length&&this._parseAudioData(),this._audioPesData.push(e.subarray(d,l+188));break;case 17:case 8191:break;default:mte.warn("Unknown pid: ".concat(h))}}return this._parseVideoData(),this._parseAudioData(),n.formatTimescale=i.formatTimescale=i.timescale=o.timescale=9e4,n.timescale=n.sampleRate||0,{videoTrack:i,audioTrack:n,metadataTrack:o}}},{key:"fix",value:function(e,t,r){return this._fixer.fix(e,t,r),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(e,t,r,n){return this.demux(e,t,r),this.fix(n,t,r)}},{key:"_parseVideoData",value:function(){if(this._videoPesData.length){var t=e._parsePES(nte.apply(void 0,G7(this._videoPesData)));if(t){var r=lte.parseAnnexB(t.data);r?this._createVideoSample(r,t.pts,t.dts):mte.warn("Cannot parse avc units",t),this._videoPesData=[]}else mte.warn("Cannot parse video pes",this._videoPesData)}}},{key:"_createVideoSample",value:function(e,t,r){var n=this;if(e.length){var i=this.videoTrack,o=i.codecType===cee,a=new See(t,r);e.forEach((function(e){var r=o?e[0]>>>1&63:31&e[0];switch(r){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!o&&5!==r||o&&5===r)break;a.setToKeyframe(),n._gopId++;break;case 6:case 39:case 40:if(!o&&6!==r||o&&6===r)break;return void n.metadataTrack.seiSamples.push(new kee(lte.parseSEI(lte.removeEPB(e),o),t));case 32:if(!o)break;if(!i.vps.length){var s=dte.parseVPS(lte.removeEPB(e),i.hvcC);i.hvcC=i.hvcC||s,i.vps=[e]}break;case 7:case 33:if(!o&&7!==r||o&&7===r)break;if(!i.sps.length){var u=lte.removeEPB(e),c=o?dte.parseSPS(u,i.hvcC):hte.parseSPS(u);i.sps=[e],i.hvcC=i.hvcC||c.hvcC,i.codec=c.codec,i.width=c.width,i.height=c.height,i.sarRatio=c.sarRatio,i.fpsNum=c.fpsNum,i.fpsDen=c.fpsDen}break;case 8:case 34:if(!o&&8!==r||o&&8===r)break;i.pps.length||(i.pps=[e])}a.units.push(e)})),a.gopId=this._gopId,this._pushVideoSample(i,a)}}},{key:"_pushVideoSample",value:function(e,t){if(t.units.length)if(null===t.pts||void 0===t.pts){mte.warn("Video sample no pts",t);var r=e.samples[e.samples.length-1];r?(t.pts=r.pts,t.dts=r.dts):mte.warn("Drop video sample",t)}else e.samples.push(t)}},{key:"_parseAudioData",value:function(){if(this._audioPesData.length){var t=e._parsePES(nte.apply(void 0,G7(this._audioPesData)));t?(this._parseAacData(t),this._audioPesData=[]):mte.warn("Cannot parse audio pes",this._audioPesData)}}},{key:"_parseAacData",value:function(e){var t=this.audioTrack,r=e.pts;if(null==r){if(mte.warn("AAC pes not pts",t),!t.samples.length||!t.sampleRate)return;r=t.samples[t.samples.length-1].pts+rte.getFrameDuration(t.sampleRate)}var n,i=rte.parseADTS(e.data,r);i?(t.codec=i.codec,t.channelCount=i.channelCount,t.sampleRate=i.sampleRate,t.objectType=i.objectType,t.sampleRateIndex=i.samplingFrequencyIndex,t.config=i.config,(n=t.samples).push.apply(n,G7(i.frames.map((function(e){return new wee(e.pts,e.data)})))),i.skip&&mte.warn("Skip aac adts ".concat(i.skip," bits")),i.remaining&&mte.warn("Remaining aac adts ".concat(i.remaining," bits"))):mte.warn("Cannot parse aac adts",e)}}],[{key:"probe",value:function(e){return!!e.length&&(71===e[0]&&71===e[188]&&71===e[376])}},{key:"_parsePES",value:function(e){var t=e[8];if(!(null==t||e.length<t+9)&&1===(e[0]<<16|e[1]<<8|e[2])){var r=(e[4]<<8)+e[5];if(!(r&&r>e.length-6)){var n,i,o=e[7];return 192&o&&(n=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&o?n-(i=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(n=i):i=n),{data:e.subarray(9+t),pts:n,dts:i}}}}}]),e}(),_te=T,Ste=hH,wte=xK,kte=E,xte=k.RegExp,Ete=xte.prototype;_te&&kte((function(){var e=!0;try{xte(".","d")}catch(vie){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(Ete,"flags").get.call(t)!==n||r!==n}))&&Ste(Ete,"flags",{configurable:!0,get:wte});var Tte=mn,Ate=hf,Ote=te,Lte=RangeError,Pte=z,Cte=En,Rte=hf,Ite=te,Dte=Pte((function(e){var t=Ate(Ote(this)),r="",n=Tte(e);if(n<0||n==1/0)throw Lte("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Ute=Pte("".slice),jte=Math.ceil,Mte=function(e){return function(t,r,n){var i,o,a=Rte(Ite(t)),s=Cte(r),u=a.length,c=void 0===n?" ":Rte(n);return s<=u||""==c?a:((o=Dte(c,jte((i=s-u)/c.length))).length>i&&(o=Ute(o,0,i)),e?a+o:o+a)}},Bte={start:Mte(!1),end:Mte(!0)},Nte=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(ye),Fte=Bte.start;vi({target:"String",proto:!0,forced:Nte},{padStart:function(e){return Fte(this,e,arguments.length>1?arguments[1]:void 0)}});var Vte=function(){function e(){D7(this,e)}return j7(e,null,[{key:"findBox",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[];if(!t)return i;for(var o=0,a="",s=0;t.length>7;){if(o=ate(t),a=String.fromCharCode.apply(null,t.subarray(4,8)),s=8,1===o?(o=ste(t,8),s+=8):o||(o=t.length),!r[0]||a===r[0]){var u=t.subarray(0,o);if(!(r.length<2))return e.findBox(u.subarray(s),r.slice(1),n+s);i.push({start:n,size:o,headerSize:s,type:a,data:u})}n+=o,t=t.subarray(o)}return i}},{key:"tfhd",value:function(e){return qte(e,!0,(function(e,t){e.trackId=ate(t);var r=4,n=1&e.flags,i=2&e.flags,o=8&e.flags,a=16&e.flags,s=32&e.flags;n&&(r+=4,e.baseDataOffset=ate(t,r),r+=4),i&&(e.sampleDescriptionIndex=ate(t,r),r+=4),o&&(e.defaultSampleDuration=ate(t,r),r+=4),a&&(e.defaultSampleSize=ate(t,r),r+=4),s&&(e.defaultSampleFlags=ate(t,r))}))}},{key:"sidx",value:function(e){return qte(e,!0,(function(e,t){var r=0;e.reference_ID=ate(t,r),r+=4,e.timescale=ate(t,r),r+=4,0===e.version?(e.earliest_presentation_time=ate(t,r),r+=4,e.first_offset=ate(t,r),r+=4):(e.earliest_presentation_time=ste(t,r),r+=8,e.first_offset=ste(t,r),r+=8),r+=2,e.references=[];var n=ote(t,r);r+=2;for(var i=0;i<n;i++){var o={};e.references.push(o);var a=ate(t,r);r+=4,o.reference_type=a>>31&1,o.referenced_size=2147483647&a,o.subsegment_duration=ate(t,r),a=ate(t,r+=4),r+=4,o.starts_with_SAP=a>>31&1,o.SAP_type=a>>28&7,o.SAP_delta_time=268435455&a}}))}},{key:"moov",value:function(t){return qte(t,!1,(function(t,r,n){t.mvhd=e.mvhd(e.findBox(r,["mvhd"],n)[0]),t.trak=e.findBox(r,["trak"],n).map((function(t){return e.trak(t)})),t.pssh=e.pssh(e.findBox(r,["pssh"],n)[0])}))}},{key:"mvhd",value:function(e){return qte(e,!0,(function(e,t){var r=0;1===e.version?(e.timescale=ate(t,16),e.duration=ste(t,20),r+=28):(e.timescale=ate(t,8),e.duration=ate(t,12),r+=16),e.nextTrackId=ate(t,r+76)}))}},{key:"trak",value:function(t){return qte(t,!1,(function(t,r,n){t.tkhd=e.tkhd(e.findBox(r,["tkhd"],n)[0]),t.mdia=e.mdia(e.findBox(r,["mdia"],n)[0])}))}},{key:"tkhd",value:function(e){return qte(e,!0,(function(e,t){var r=0;1===e.version?(e.trackId=ate(t,16),e.duration=ste(t,24),r+=32):(e.trackId=ate(t,8),e.duration=ate(t,16),r+=20),e.width=ate(t,r+52),e.height=ate(t,r+56)}))}},{key:"mdia",value:function(t){return qte(t,!1,(function(t,r,n){t.mdhd=e.mdhd(e.findBox(r,["mdhd"],n)[0]),t.hdlr=e.hdlr(e.findBox(r,["hdlr"],n)[0]),t.minf=e.minf(e.findBox(r,["minf"],n)[0])}))}},{key:"mdhd",value:function(e){return qte(e,!0,(function(e,t){var r=0;1===e.version?(e.timescale=ate(t,16),e.duration=ste(t,20),r+=28):(e.timescale=ate(t,8),e.duration=ate(t,12),r+=16);var n=ote(t,r);e.language=String.fromCharCode(96+(n>>10&31),96+(n>>5&31),96+(31&n))}))}},{key:"hdlr",value:function(e){return qte(e,!0,(function(e,t){0===e.version&&(e.handlerType=String.fromCharCode.apply(null,t.subarray(4,8)))}))}},{key:"minf",value:function(t){return qte(t,!1,(function(t,r,n){t.vmhd=e.vmhd(e.findBox(r,["vmhd"],n)[0]),t.smhd=e.smhd(e.findBox(r,["smhd"],n)[0]),t.stbl=e.stbl(e.findBox(r,["stbl"],n)[0])}))}},{key:"vmhd",value:function(e){return qte(e,!0,(function(e,t){e.graphicsmode=ote(t),e.opcolor=[ote(t,2),ote(t,4),ote(t,6)]}))}},{key:"smhd",value:function(e){return qte(e,!0,(function(e,t){e.balance=ote(t)}))}},{key:"stbl",value:function(t){return qte(t,!1,(function(t,r,n){var i,o,a;t.stsd=e.stsd(e.findBox(r,["stsd"],n)[0]),t.stts=e.stts(e.findBox(r,["stts"],n)[0]),t.ctts=e.ctts(e.findBox(r,["ctts"],n)[0]),t.stsc=e.stsc(e.findBox(r,["stsc"],n)[0]),t.stsz=e.stsz(e.findBox(r,["stsz"],n)[0]),t.stco=e.stco(e.findBox(r,["stco"],n)[0]),t.stco||(t.co64=e.co64(e.findBox(r,["co64"],n)[0]),t.stco=t.co64);var s=null===(i=t.stsd.entries[0])||void 0===i||null===(o=i.sinf)||void 0===o||null===(a=o.schi)||void 0===a?void 0:a.tenc.default_IV_size;t.stss=e.stss(e.findBox(r,["stss"],n)[0]),t.senc=e.senc(e.findBox(r,["senc"],n)[0],s)}))}},{key:"senc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return qte(e,!0,(function(e,r){var n=0,i=ate(r,n);n+=4,e.samples=[];for(var o=0;o<i;o++){for(var a={InitializationVector:[]},s=0;s<t;s++)a.InitializationVector[s]=r[n+s];if(n+=t,2&e.flags){a.subsamples=[];var u=ote(r,n);n+=2;for(var c=0;c<u;c++){var l={};l.BytesOfClearData=ote(r,n),n+=2,l.BytesOfProtectedData=ate(r,n),n+=4,a.subsamples.push(l)}}e.samples.push(a)}}))}},{key:"pssh",value:function(e){return qte(e,!0,(function(e,t){for(var r=[],n=[],i=0,o=0;o<16;o++)n.push(Yte(t[i+o]));if(i+=16,e.version>0){var a=ate(t,i);i+=4;for(var s=0;s<(""+a).length;s++)for(var u=0;u<16;u++){var c=t[i];i+=1,r.push(Yte(c))}}var l=ate(t,i);e.data_size=l,i+=4,e.kid=r,e.system_id=n,e.buffer=t}))}},{key:"stsd",value:function(t){return qte(t,!0,(function(t,r,n){t.entryCount=ate(r),t.entries=e.findBox(r.subarray(4),[],n+4).map((function(t){switch(t.type){case"avc1":case"avc2":case"avc3":case"avc4":return e.avc1(t);case"hvc1":case"hev1":return e.hvc1(t);case"mp4a":return e.mp4a(t);case"alaw":case"ulaw":return e.alaw(t);case"enca":return qte(t,!1,(function(t,r,n){t.channelCount=ote(r,16),t.samplesize=ote(r,18),t.sampleRate=ate(r,24)/65536,r=r.subarray(28),t.sinf=e.sinf(e.findBox(r,["sinf"],n)[0]),t.esds=e.esds(e.findBox(r,["esds"],n)[0])}));case"encv":return qte(t,!1,(function(t,r,n){t.width=ote(r,24),t.height=ote(r,26),t.horizresolution=ate(r,28),t.vertresolution=ate(r,32),r=r.subarray(78),t.sinf=e.sinf(e.findBox(r,["sinf"],n)[0]),t.avcC=e.avcC(e.findBox(r,["avcC"],n)[0]),t.hvcC=e.hvcC(e.findBox(r,["hvcC"],n)[0]),t.pasp=e.pasp(e.findBox(r,["pasp"],n)[0])}))}})).filter(Boolean)}))}},{key:"tenc",value:function(e){return qte(e,!1,(function(e,t){var r=6;e.default_IsEncrypted=t[r],r+=1,e.default_IV_size=t[r],r+=1,e.default_KID=[];for(var n=0;n<16;n++)e.default_KID.push(Yte(t[r])),r+=1}))}},{key:"schi",value:function(t){return qte(t,!1,(function(t,r,n){t.tenc=e.tenc(e.findBox(r,["tenc"],n)[0])}))}},{key:"sinf",value:function(t){return qte(t,!1,(function(t,r,n){t.schi=e.schi(e.findBox(r,["schi"],n)[0]),t.frma=e.frma(e.findBox(r,["frma"],n)[0])}))}},{key:"frma",value:function(e){return qte(e,!1,(function(e,t){e.data_format="";for(var r=0;r<4;r++)e.data_format+=String.fromCharCode(t[r])}))}},{key:"avc1",value:function(t){return qte(t,!1,(function(t,r,n){var i=Gte(t,r),o=r.subarray(i);n+=i,t.avcC=e.avcC(e.findBox(o,["avcC"],n)[0]),t.pasp=e.pasp(e.findBox(o,["pasp"],n)[0])}))}},{key:"avcC",value:function(e){return qte(e,!1,(function(e,t){e.configurationVersion=t[0],e.AVCProfileIndication=t[1],e.profileCompatibility=t[2],e.AVCLevelIndication=t[3],e.codec=ute([t[1],t[2],t[3]]),e.lengthSizeMinusOne=3&t[4],e.spsLength=31&t[5],e.sps=[];for(var r=6,n=0;n<e.spsLength;n++){var i=ote(t,r);r+=2,e.sps.push(t.subarray(r,r+i)),r+=i}e.ppsLength=t[r],r+=1,e.pps=[];for(var o=0;o<e.ppsLength;o++){var a=ote(t,r);r+=2,e.pps.push(t.subarray(r,r+=a)),r+=a}}))}},{key:"hvc1",value:function(t){return qte(t,!1,(function(t,r,n){var i=Gte(t,r),o=r.subarray(i);n+=i,t.hvcC=e.hvcC(e.findBox(o,["hvcC"],n)[0]),t.pasp=e.pasp(e.findBox(o,["pasp"],n)[0])}))}},{key:"hvcC",value:function(e){return qte(e,!1,(function(t,r){t.data=e.data,t.codec="hev1.1.6.L93.B0",t.configurationVersion=r[0];var n=r[1];t.generalProfileSpace=n>>6,t.generalTierFlag=(32&n)>>5,t.generalProfileIdc=31&n,t.generalProfileCompatibility=ate(r,2),t.generalConstraintIndicatorFlags=r.subarray(6,12),t.generalLevelIdc=r[12],t.avgFrameRate=ote(r,19),t.numOfArrays=r[22],t.vps=[],t.sps=[],t.pps=[];for(var i=23,o=0,a=0,s=0,u=0;u<t.numOfArrays;u++){o=63&r[i],a=ote(r,i+1),i+=3;for(var c,l=[],f=0;f<a;f++)s=ote(r,i),i+=2,l.push(r.subarray(i,i+s)),i+=s;if(32===o)(c=t.vps).push.apply(c,l);else if(33===o){var h;(h=t.sps).push.apply(h,l)}else if(34===o){var d;(d=t.pps).push.apply(d,l)}}}))}},{key:"pasp",value:function(e){return qte(e,!1,(function(e,t){e.hSpacing=ate(t),e.vSpacing=ate(t,4)}))}},{key:"mp4a",value:function(t){return qte(t,!1,(function(t,r,n){var i=Hte(t,r);t.esds=e.esds(e.findBox(r.subarray(i),["esds"],n+i)[0])}))}},{key:"esds",value:function(e){return qte(e,!0,(function(e,t){e.codec="mp4a.";for(var r=0,n=0,i=0,o=0;t.length;){for(o=t[r=0],n=t[r+1],r+=2;128&n;)i=(127&n)<<7,n=t[r],r+=1;if(i+=127&n,3===o)t=t.subarray(r+3);else{if(4!==o){if(5===o){var a=e.config=t.subarray(r,r+i),s=(248&a[0])>>3;return 31===s&&a.length>=2&&(s=32+((7&a[0])<<3)+((224&a[1])>>5)),e.objectType=s,e.codec+=s.toString(16),void("."===e.codec[e.codec.length-1]&&(e.codec=e.codec.substring(0,e.codec.length-1)))}return void("."===e.codec[e.codec.length-1]&&(e.codec=e.codec.substring(0,e.codec.length-1)))}e.codec+=(t[r].toString(16)+".").padStart(3,"0"),t=t.subarray(r+13)}}}))}},{key:"alaw",value:function(e){return qte(e,!1,(function(e,t){Hte(e,t)}))}},{key:"stts",value:function(e){return qte(e,!0,(function(e,t){for(var r=ate(t),n=[],i=4,o=0;o<r;o++)n.push({count:ate(t,i),delta:ate(t,i+4)}),i+=8;e.entryCount=r,e.entries=n}))}},{key:"ctts",value:function(e){return qte(e,!0,(function(e,t){var r=ate(t),n=[],i=4;if(1===e.version)for(var o=0;o<r;o++)n.push({count:ate(t,i),offset:ate(t,i+4)}),i+=8;else for(var a=0;a<r;a++)n.push({count:ate(t,i),offset:-(1+~ate(t,i+4))}),i+=8;e.entryCount=r,e.entries=n}))}},{key:"stsc",value:function(e){return qte(e,!0,(function(e,t){for(var r=ate(t),n=[],i=4,o=0;o<r;o++)n.push({firstChunk:ate(t,i),samplesPerChunk:ate(t,i+4),sampleDescriptionIndex:ate(t,i+8)}),i+=12;e.entryCount=r,e.entries=n}))}},{key:"stsz",value:function(e){return qte(e,!0,(function(e,t){var r=ate(t),n=ate(t,4),i=[];if(!r)for(var o=8,a=0;a<n;a++)i.push(ate(t,o)),o+=4;e.sampleSize=r,e.sampleCount=n,e.entrySizes=i}))}},{key:"stco",value:function(e){return qte(e,!0,(function(e,t){for(var r=ate(t),n=[],i=4,o=0;o<r;o++)n.push(ate(t,i)),i+=4;e.entryCount=r,e.entries=n}))}},{key:"co64",value:function(e){return qte(e,!0,(function(e,t){for(var r=ate(t),n=[],i=4,o=0;o<r;o++)n.push(ste(t,i)),i+=8;e.entryCount=r,e.entries=n}))}},{key:"stss",value:function(e){return qte(e,!0,(function(e,t){for(var r=ate(t),n=[],i=4,o=0;o<r;o++)n.push(ate(t,i)),i+=4;e.entryCount=r,e.entries=n}))}},{key:"moof",value:function(t){return qte(t,!1,(function(t,r,n){t.mfhd=e.mfhd(e.findBox(r,["mfhd"],n)[0]),t.traf=e.findBox(r,["traf"],n).map((function(t){return e.traf(t)}))}))}},{key:"mfhd",value:function(e){return qte(e,!0,(function(e,t){e.sequenceNumber=ate(t)}))}},{key:"traf",value:function(t){return qte(t,!1,(function(t,r,n){t.tfhd=e.tfhd(e.findBox(r,["tfhd"],n)[0]),t.tfdt=e.tfdt(e.findBox(r,["tfdt"],n)[0]),t.trun=e.trun(e.findBox(r,["trun"],n)[0])}))}},{key:"trun",value:function(e){return qte(e,!0,(function(e,t){var r=e.version,n=e.flags,i=t.length,o=e.sampleCount=ate(t),a=4;if(i>a&&1&n&&(e.dataOffset=-(1+~ate(t,a)),a+=4),i>a&&4&n&&(e.firstSampleFlags=ate(t,a),a+=4),e.samples=[],i>a)for(var s,u=0;u<o;u++)s={},256&n&&(s.duration=ate(t,a),a+=4),512&n&&(s.size=ate(t,a),a+=4),1024&n&&(s.flags=ate(t,a),a+=4),2048&n&&(s.cts=r?-(1+~ate(t,a+4)):ate(t,a),a+=4),e.samples.push(s)}))}},{key:"tfdt",value:function(e){return qte(e,!0,(function(e,t){1===e.version?e.baseMediaDecodeTime=ste(t):e.baseMediaDecodeTime=ate(t)}))}},{key:"probe",value:function(t){return!!e.findBox(t,["ftyp"])}},{key:"parseSampleFlags",value:function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}}},{key:"moovToTrack",value:function(e,t,r){var n,i,o=e.trak;if(o&&o.length){var a=o.find((function(e){var t,r;return"vide"===(null===(t=e.mdia)||void 0===t||null===(r=t.hdlr)||void 0===r?void 0:r.handlerType)})),s=o.find((function(e){var t,r;return"soun"===(null===(t=e.mdia)||void 0===t||null===(r=t.hdlr)||void 0===r?void 0:r.handlerType)}));if(a&&t){var u,c,l,f,h,d,p,v=t,y=null===(u=a.tkhd)||void 0===u?void 0:u.trackId;null!=y&&(v.id=a.tkhd.trackId),v.tkhdDuration=a.tkhd.duration,v.mvhdDurtion=e.mvhd.duration,v.mvhdTimecale=e.mvhd.timescale,v.timescale=v.formatTimescale=a.mdia.mdhd.timescale,v.duration=a.mdia.mdhd.duration||v.mvhdDurtion/v.mvhdTimecale*v.timescale;var g,m,b,_,S,w,k,x,E=a.mdia.minf.stbl.stsd.entries[0];if(v.width=E.width,v.height=E.height,E.pasp&&(v.sarRatio=[E.pasp.hSpacing,E.pasp.vSpacing]),E.hvcC)v.codecType=cee,v.codec=E.hvcC.codec,v.vps=E.hvcC.vps,v.sps=E.hvcC.sps,v.pps=E.hvcC.pps,v.hvcC=E.hvcC.data;else{if(!E.avcC)throw new Error("unknown video stsd entry");v.codec=E.avcC.codec,v.sps=E.avcC.sps,v.pps=E.avcC.pps}if(v.present=!0,v.ext={},v.ext.stss=null===(c=a.mdia)||void 0===c||null===(l=c.minf)||void 0===l||null===(f=l.stbl)||void 0===f?void 0:f.stss,v.ext.ctts=null===(h=a.mdia)||void 0===h||null===(d=h.minf)||void 0===d||null===(p=d.stbl)||void 0===p?void 0:p.ctts,E&&"encv"===E.type)v.isVideoEncryption=!0,E.default_KID=null===(g=E.sinf)||void 0===g||null===(m=g.schi)||void 0===m?void 0:m.tenc.default_KID,E.default_IsEncrypted=null===(b=E.sinf)||void 0===b||null===(_=b.schi)||void 0===_?void 0:_.tenc.default_IsEncrypted,E.default_IV_size=null===(S=E.sinf)||void 0===S||null===(w=S.schi)||void 0===w?void 0:w.tenc.default_IV_size,v.videoSenc=a.mdia.minf.stbl.senc&&a.mdia.minf.stbl.senc.samples,E.data_format=null===(k=E.sinf)||void 0===k||null===(x=k.frma)||void 0===x?void 0:x.data_format,v.useEME=e.useEME,v.kidValue=e.kidValue,v.pssh=e.pssh,v.encv=E}if(s&&r){var T,A,O,L,P,C,R,I,D,U=r,j=null===(T=s.tkhd)||void 0===T?void 0:T.trackId;null!=j&&(U.id=s.tkhd.trackId),U.tkhdDuration=s.tkhd.duration,U.mvhdDurtion=e.mvhd.duration,U.mvhdTimecale=e.mvhd.timescale,U.timescale=U.formatTimescale=s.mdia.mdhd.timescale,U.duration=s.mdia.mdhd.duration||U.mvhdDurtion/U.mvhdTimecale*U.timescale;var M,B,N,F,V,z,G,H,q=s.mdia.minf.stbl.stsd.entries[0];switch(U.sampleSize=q.sampleSize,U.sampleRate=q.sampleRate,U.channelCount=q.channelCount,U.present=!0,q.type){case"alaw":U.codecType=U.codec=fee,U.sampleRate=8e3;break;case"ulaw":U.codecType=U.codec=hee,U.sampleRate=8e3;break;default:U.sampleDuration=rte.getFrameDuration(U.sampleRate,U.timescale),U.sampleRateIndex=rte.getRateIndexByRate(U.sampleRate),U.objectType=(null===(n=q.esds)||void 0===n?void 0:n.objectType)||2,q.esds&&(U.config=Array.from(q.esds.config)),U.codec=(null===(i=q.esds)||void 0===i?void 0:i.codec)||"mp4a.40.2"}if(U.sampleDuration=rte.getFrameDuration(U.sampleRate,U.timescale),U.objectType=(null===(A=q.esds)||void 0===A?void 0:A.objectType)||2,q.esds&&(q.esds.config?U.config=Array.from(q.esds.config):console.warn("esds config is null")),U.codec=(null===(O=q.esds)||void 0===O?void 0:O.codec)||"mp4a.40.2",U.sampleRateIndex=rte.getRateIndexByRate(U.sampleRate),U.ext={},U.ext.stss=null===(L=s.mdia)||void 0===L||null===(P=L.minf)||void 0===P||null===(C=P.stbl)||void 0===C?void 0:C.stss,U.ext.ctts=null===(R=s.mdia)||void 0===R||null===(I=R.minf)||void 0===I||null===(D=I.stbl)||void 0===D?void 0:D.ctts,U.present=!0,q&&"enca"===q.type)U.isAudioEncryption=!0,q.data_format=null===(M=q.sinf)||void 0===M||null===(B=M.frma)||void 0===B?void 0:B.data_format,q.default_KID=null===(N=q.sinf)||void 0===N||null===(F=N.schi)||void 0===F?void 0:F.tenc.default_KID,q.default_IsEncrypted=null===(V=q.sinf)||void 0===V||null===(z=V.schi)||void 0===z?void 0:z.tenc.default_IsEncrypted,q.default_IV_size=null===(G=q.sinf)||void 0===G||null===(H=G.schi)||void 0===H?void 0:H.tenc.default_IV_size,U.audioSenc=s.mdia.minf.stbl.senc&&s.mdia.minf.stbl.senc.samples,U.useEME=e.useEME,U.kidValue=e.kidValue,U.enca=q}if(r&&(r.isVideoEncryption=!!t&&t.isVideoEncryption),t&&(t.isAudioEncryption=!!r&&r.isAudioEncryption),null!=t&&t.encv||null!=r&&r.enca){var Y,W,K=null==t||null===(Y=t.encv)||void 0===Y?void 0:Y.default_KID,$=null==r||null===(W=r.enca)||void 0===W?void 0:W.default_KID,X=K||$?(K||$).join(""):null;t&&(t.kid=X),r&&(r.kid=X)}return t&&(t.flags=3841),r&&(r.flags=1793),{videoTrack:t,audioTrack:r}}}},{key:"evaluateDefaultDuration",value:function(e,t,r){var n,i=null==t||null===(n=t.samples)||void 0===n?void 0:n.length;return i?1024*i/t.timescale*e.timescale/r:1024}},{key:"moofToSamples",value:function(t,r,n){var i={};return t.mfhd&&(r&&(r.sequenceNumber=t.mfhd.sequenceNumber),n&&(n.sequenceNumber=t.mfhd.sequenceNumber)),t.traf.forEach((function(t){var o=t.tfhd,a=t.tfdt,s=t.trun;if(o&&s){a&&(r&&r.id===o.trackId&&(r.baseMediaDecodeTime=a.baseMediaDecodeTime),n&&n.id===o.trackId&&(n.baseMediaDecodeTime=a.baseMediaDecodeTime));var u=o.defaultSampleSize||0,c=o.defaultSampleDuration||e.evaluateDefaultDuration(r,n,s.samples.length||s.sampleCount),l=s.dataOffset||0,f=0,h=-1;if(!s.samples.length&&s.sampleCount){i[o.trackId]=[];for(var d=0;d<s.sampleCount;d++)i[o.trackId].push({offset:l,dts:f,duration:c,size:u}),f+=c,l+=u}else i[o.trackId]=s.samples.map((function(e,t){return(e={offset:l,dts:f,pts:f+(e.cts||0),duration:e.duration||c,size:e.size||u,gopId:h,keyframe:0===t||null!==e.flags&&void 0!==e.flags&&(65536&e.flags)>>>0!=65536}).keyframe&&(h++,e.gopId=h),f+=e.duration,l+=e.size,e}))}})),i}},{key:"moovToSamples",value:function(e){var t=e.trak;if(t&&t.length){var r=t.find((function(e){var t,r;return"vide"===(null===(t=e.mdia)||void 0===t||null===(r=t.hdlr)||void 0===r?void 0:r.handlerType)})),n=t.find((function(e){var t,r;return"soun"===(null===(t=e.mdia)||void 0===t||null===(r=t.hdlr)||void 0===r?void 0:r.handlerType)}));if(r||n){var i,o;if(r){var a,s,u=null===(a=r.mdia)||void 0===a||null===(s=a.minf)||void 0===s?void 0:s.stbl;if(!u)return;var c=u.stts,l=u.stsc,f=u.stsz,h=u.stco,d=u.stss,p=u.ctts;if(!(c&&l&&f&&h&&d))return;i=zte(c,l,f,h,p,d)}if(n){var v,y,g,m=null===(v=n.mdia)||void 0===v||null===(y=v.minf)||void 0===y?void 0:y.stbl;if(!m)return;var b=null===(g=n.mdia.mdhd)||void 0===g?void 0:g.timescale,_=m.stts,S=m.stsc,w=m.stsz,k=m.stco;if(!(b&&_&&S&&w&&k))return;o=zte(_,S,w,k)}return{videoSamples:i,audioSamples:o}}}}}]),e}();function zte(e,t,r,n,i,o){var a,s,u,c=[],l=null==i?void 0:i.entries,f=t.entries,h=n.entries,d=r.entrySizes,p=null==o?void 0:o.entries;p&&(a={},p.forEach((function(e){a[e-1]=!0}))),l&&(s=[],l.forEach((function(e){for(var t=e.count,r=e.offset,n=0;n<t;n++)s.push(r)})));var v=-1,y=0,g=0,m=0,b=0,_=0,S=f[0].samplesPerChunk,w=f[1]?f[1].firstChunk-1:1/0;return e.entries.forEach((function(e){for(var t=e.count,n=e.delta,i=0;i<t;i++)u={dts:y,duration:n,size:d[g]||r.sampleSize,offset:h[m]+_,index:g},p&&(u.keyframe=a[g],u.keyframe&&v++,u.gopId=v),s&&g<s.length&&(u.pts=u.dts+s[g]),c.push(u),y+=n,++g<S?_+=u.size:(m++,_=0,m>=w&&(b++,w=f[b+1]?f[b+1].firstChunk-1:1/0),S+=f[b].samplesPerChunk)})),c}function Gte(e,t){return e.dataReferenceIndex=ote(t,6),e.width=ote(t,24),e.height=ote(t,26),e.horizresolution=ate(t,28),e.vertresolution=ate(t,32),e.frameCount=ote(t,40),e.depth=ote(t,74),78}function Hte(e,t){return e.dataReferenceIndex=ote(t,6),e.channelCount=ote(t,16),e.sampleSize=ote(t,18),e.sampleRate=ate(t,24)/65536,28}function qte(e,t,r){if(e){if(e.size!==e.data.length)throw new Error("box ".concat(e.type," size !== data.length"));var n={start:e.start,size:e.size,headerSize:e.headerSize,type:e.type};return t&&(n.version=e.data[e.headerSize],n.flags=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<16)+(e[t+1]<<8)+(e[t+2]||0)}(e.data,e.headerSize+1),n.headerSize+=4),r(n,e.data.subarray(n.headerSize),n.start+n.headerSize),n}}var Yte=function(){for(var e=[],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.push(function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],s=String(e);o--;)a.push(n);return a.join("").substring(0,i-s.length)+s}(Number(t).toString(16),2,0))})),e[0]},Wte=function(){function e(t,r,n){D7(this,e),this.videoTrack=t||new bee,this.audioTrack=r||new _ee,this.metadataTrack=n||new xee}return j7(e,[{key:"demux",value:function(e,t){var r=this.videoTrack,n=this.audioTrack,i=r.exist(),o=n.exist();if(r.samples=[],n.samples=[],t){if(!o){var a=Vte.findBox(t,["moov"])[0];if(!a)throw new Error("cannot found moov box");Vte.moovToTrack(Vte.moov(a),null,n)}var s=Vte.findBox(t,["moof"])[0];if(s){var u=Vte.moofToSamples(Vte.moof(s),null,n)[n.id],c=n.baseMediaDecodeTime;if(u){var l=s.start;u.map((function(e){e.offset+=l;var r=t.subarray(e.offset,e.offset+e.size);n.samples.push(new wee(e.dts+c,r,e.duration))}))}}}if(e){if(!i&&!o){var f=Vte.findBox(e,["moov"])[0];if(!f)throw new Error("cannot found moov box");Vte.moovToTrack(Vte.moov(f),r,n)}var h=Vte.findBox(e,["moof"])[0];if(h){var d,p=Vte.moofToSamples(Vte.moof(h),r,n),v=r.baseMediaDecodeTime,y=n.baseMediaDecodeTime,g=h.start;Object.keys(p).forEach((function(t){r.id==t?p[t].map((function(t){t.offset+=g;var n=new See((t.pts||t.dts)+v,t.dts+v);n.duration=t.duration,n.gopId=t.gopId,t.keyframe&&n.setToKeyframe();var i=e.subarray(t.offset,t.offset+t.size);n.data=i;for(var o=0,a=i.length-1;o<a;)d=ate(i,o),o+=4,n.units.push(i.subarray(o,o+d)),o+=d;r.samples.push(n)})):n.id==t&&p[t].map((function(t){t.offset+=g;var r=e.subarray(t.offset,t.offset+t.size);n.samples.push(new wee(t.dts+y,r,t.duration))}))}))}}return{videoTrack:r,audioTrack:n,metadataTrack:this.metadataTrack}}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset(),this.metadataTrack.reset()}}],[{key:"probe",value:function(e){return Vte.probe(e)}}]),e}(),Kte=oa,$te="ArrayBuffer",Xte=HJ[$te];vi({global:!0,constructor:!0,forced:k[$te]!==Xte},{ArrayBuffer:Xte}),Kte($te);var Qte=function(){function e(){D7(this,e),this.buffer=new Uint8Array(0)}return j7(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];r.forEach((function(t){t?e.buffer=function(e){for(var t=0,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];n.forEach((function(e){t+=e.length}));var o=new e(t),a=0;return n.forEach((function(e){o.set(e,a),a+=e.length})),o}(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}(),Jte=Math.pow(2,32)-1,Zte=function(){function e(){D7(this,e)}return j7(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];var i=8+(r=r.filter(Boolean)).reduce((function(e,t){return e+t.byteLength}),0),o=new Uint8Array(i);o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=255&i,o.set(e,4);var a=8;return r.forEach((function(e){o.set(e,a),a+=e.byteLength})),o}},{key:"ftyp",value:function(t){return t.find((function(e){return e.type===oee&&e.codecType===cee}))?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){return nte(e.ftyp(t),e.moov(t))}},{key:"pssh",value:function(t){var r=new Uint8Array([1,0,0,0].concat([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],cte(t.kid),[0,0,0,0]));return e.box(e.types.pssh,r)}},{key:"moov",value:function(t){if(t[0].useEME&&(t[0].encv||t[0].enca)){t[0].pssh||(t[0].pssh={kid:t[0].kid});var r=this.pssh(t[0].pssh);return e.box.apply(e,[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale),e.mvex(t)].concat(G7(t.map((function(t){return e.trak(t)}))),[r]))}return e.box.apply(e,[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)].concat(G7(t.map((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,i=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,i>>8&255,255&i,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===oee?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(t.ext.stss.entries)),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,i=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]),o=e.esds(t.config),a=e.sinf(t.enca);return e.box(e.types.enca,i,o,a)}},{key:"encv",value:function(t){var r,n,i=t.sps.length>0?t.sps[0]:[],o=t.pps.length>0?t.pps[0]:[],a=t.width,s=t.height,u=t.sarRatio[0],c=t.sarRatio[1],l=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,a>>8&255,255&a,s>>8&255,255&s,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]),f=new Uint8Array((r=(n=[1,i[1],i[2],i[3],255,225,i.length>>>8&255,255&i.length]).concat.apply(n,G7(i)).concat([1,o.length>>>8&255,255&o.length])).concat.apply(r,G7(o))),h=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),d=e.sinf(t.encv),p=new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,c>>24,c>>16&255,c>>8&255,255&c]);return e.box(e.types.encv,l,e.box(e.types.avcC,f),e.box(e.types.btrt,h),d,e.box(e.types.pasp,p))}},{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=new Uint8Array([0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size].concat(cte(t.default_KID)));return e.box(e.types.tenc,r)}},{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)]),i=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),o=e.schi(t);return e.box(e.types.sinf,r,e.box(e.types.frma,n),e.box(e.types.schm,i),o)}},{key:"avc1hev1",value:function(t){var r=t.codecType===cee,n=r?e.types.hvc1:e.types.avc1,i=r?e.hvcC(t):e.avcC(t),o=[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 r?o.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&o.push(e.pasp(t.sarRatio)),e.box.apply(e,[n].concat(o))}},{key:"avcC",value:function(t){var r,n,i,o=[],a=[];return t.sps.forEach((function(e){i=e.byteLength,o.push(i>>>8&255),o.push(255&i),o.push.apply(o,G7(e))})),t.pps.forEach((function(e){i=e.byteLength,a.push(i>>>8&255),a.push(255&i),a.push.apply(a,G7(e))})),e.box(e.types.avcC,new Uint8Array((r=(n=[1,o[3],o[4],o[5],255,224|t.sps.length]).concat.apply(n,o).concat([t.pps.length])).concat.apply(r,a)))}},{key:"hvcC",value:function(t){var r=t.hvcC;if(r instanceof ArrayBuffer||r instanceof Uint8Array)return r;var n,i=t.vps,o=t.sps,a=t.pps;if(r){var s=r.generalProfileCompatibilityFlags,u=r.generalConstraintIndicatorFlags,c=(i.length&&1)+(o.length&&1)+(a.length&&1);n=[1,r.generalProfileSpace<<6|r.generalTierFlag<<5|r.generalProfileIdc,s>>>24,s>>>16,s>>>8,s,u[0],u[1],u[2],u[3],u[4],u[5],r.generalLevelIdc,240,0,252,252|r.chromaFormatIdc,248|r.bitDepthLumaMinus8,248|r.bitDepthChromaMinus8,0,0,r.numTemporalLayers<<3|r.temporalIdNested<<2|3,c];var l=function(e){var t;n.push(e.length>>8,e.length),(t=n).push.apply(t,G7(e))};i.length&&(n.push(160,0,i.length),i.forEach(l)),o.length&&(n.push(161,0,o.length),o.forEach(l)),a.length&&(n.push(162,0,a.length),a.forEach(l))}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=z7(t,2),n=r[0],i=r[1];return e.box(e.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i]))}},{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=t.length;return e.box(e.types.esds,new Uint8Array([0,0,0,0,3,23+r,0,0,0,4,15+r,64,21,0,6,0,0,0,218,192,0,0,218,192,5].concat([r]).concat(t).concat([6,1,2])))}},{key:"mvex",value:function(t){return e.box.apply(e,[e.types.mvex].concat(G7(t.map((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){return e.box.apply(e,[e.types.moof,e.mfhd(t[0].samples?t[0].samples[0].gopId:0)].concat(G7(t.map((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=e.tfhd(t.id),n=e.tfdt(t,t.baseMediaDecodeTime),i=0;if(t.isVideo&&t.videoSenc&&t.videoSenc.forEach((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 o=e.saiz(t),a=e.saio(t),s=e.trun1(t),u=e.senc(t);return e.box(e.types.traf,r,n,o,a,s,u)}if(t.isAudioEncryption){var c=e.sbgp(),l=e.saiz(t),f=e.saio(t),h=e.senc(t),d=e.trun1(t);return e.box(e.types.traf,r,n,c,l,f,h,d)}var p=e.sbgp(),v=e.trun1(t);return e.box(e.types.traf,r,n,p,v)}if(t.isVideo){var y=e.trun1(t);return e.box(e.types.traf,r,n,y)}var g=e.sbgp(),m=e.saiz(t),b=e.saio(t),_=e.senc(t),S=e.trun1(t);return e.box(e.types.traf,r,n,g,m,b,_,S)}var w=e.sdtp(t);return e.box(e.types.traf,r,n,w,e.trun(t.samples,w.byteLength+76))}},{key:"sdtp",value:function(t){var r=new Qte;return t.samples.forEach((function(e){r.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))})),e.box(e.types.sdtp,this.extension(0,0),r.buffer)}},{key:"trun1",value:function(t){var r=new Qte,n=Qte.writeUint32(t.samples.length),i=null;if(t.isVideo){var o=t.videoSencLength;i=Qte.writeUint32(16*t.samples.length+o+149),!t.isVideoEncryption&&t.isAudioEncryption&&(i=Qte.writeUint32(16*t.samples.length+92))}else{var a=12*t.samples.length+124;t.isAudioEncryption&&(a=12*t.samples.length+8*t.audioSenc.length+177),i=Qte.writeUint32(a)}return t.samples.forEach((function(e){r.write(Qte.writeUint32(e.duration)),r.write(Qte.writeUint32(e.size)),r.write(Qte.writeUint32(e.keyframe?33554432:65536)),t.isVideo&&r.write(Qte.writeUint32(e.cts?e.cts:0))})),e.box(e.types.trun,this.extension(0,t.flags),n,i,r.buffer)}},{key:"senc",value:function(t){var r=new Qte,n=t.samples.length,i=t.isVideo?16:8,o=t.isVideo?2:0,a=[],s=0;return t.isVideo?(a=t.videoSenc,s=t.videoSencLength):a=t.audioSenc,s=s||i*n,r.write(Qte.writeUint32(16+s),e.types.senc,this.extension(0,o)),r.write(Qte.writeUint32(n)),a.forEach((function(e){for(var t=0;t<e.InitializationVector.length;t++)r.write(new Uint8Array([e.InitializationVector[t]]));e.subsamples&&e.subsamples.length&&(r.write(Qte.writeUint16(e.subsamples.length)),e.subsamples.forEach((function(e){r.write(Qte.writeUint16(e.BytesOfClearData)),r.write(Qte.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/(Jte+1)),i=Math.floor(r%(Jte+1));return t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)?e.box(e.types.tfdt,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])):e.box(e.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"trun",value:function(t,r){var n=t.length,i=12+16*n;r+=8+i;var o=new Uint8Array(i);o.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],u=s.duration,c=s.size,l=s.flag,f=void 0===l?{}:l,h=s.cts,d=void 0===h?0:h;o.set([u>>>24&255,u>>>16&255,u>>>8&255,255&u,c>>>24&255,c>>>16&255,c>>>8&255,255&c,f.isLeading<<2|(null===f.dependsOn||void 0===f.dependsOn?1:f.dependsOn),f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|(null===f.isNonSyncSample||void 0===f.isNonSyncSample?1:f.isNonSyncSample),61440&f.degradationPriority,15&f.degradationPriority,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*a)}return e.box(e.types.trun,o)}},{key:"moovMP4",value:function(t){return e.box.apply(e,[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)].concat(G7(t.map((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===oee?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var r=t.ext,n=[e.stsd(t),e.stts(r.stts),e.stsc(r.stsc),e.stsz(r.stsz),e.stco(r.stco)];return r.stss.length&&n.push(e.stss(r.stss)),r.ctts.length&&n.push(e.ctts(r.ctts)),e.box.apply(e,[e.types.stbl].concat(n))}},{key:"stts",value:function(t){var r=t.length,n=new Uint8Array(8*r),i=0;return t.forEach((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],i),i+=8})),e.box(e.types.stts,nte(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),i=0;return t.forEach((function(e){var t=e.firstChunk,r=e.samplesPerChunk,o=e.sampleDescIndex;n.set([t>>24,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,o>>24,o>>16&255,o>>8&255,255&o],i),i+=12})),e.box(e.types.stsc,nte(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),i=0;return t.forEach((function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stsz,nte(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),i=0;return t.forEach((function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stco,nte(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),i=0;return t.forEach((function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stss,nte(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),i=0;return t.forEach((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],i),i+=8})),e.box(e.types.ctts,nte(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=t.timescale,n=t.samples[0].duration,i=n*t.samples.length,o=t.samples[0].sampleOffset*n,a=8;t.samples.forEach((function(e){a+=e.size}));var s=0;if(t.isVideo){var u,c=0;t.videoSenc&&(u=t.videoSenc),t.isVideo&&u.forEach((function(e){c+=8,e.subsamples&&e.subsamples.length&&(c+=2,c+=6*e.subsamples.length)})),t.videoSencLength=c,s=a+141+16*t.samples.length+c,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(s=a+16*t.samples.length+84)}else s=a+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(s=a+169+12*t.samples.length+8*t.audioSenc.length);var l=new Uint8Array([0,0,0,0,0,0,0,255&t.id,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,1,0,s>>16&255,s>>8&255,255&s,i>>24&255,i>>16&255,i>>8&255,255&i,144,0,0,0]);return e.box(e.types.sidx,l)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();M7(Zte,"types",["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"].reduce((function(e,t){return e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)],e}),Object.create(null))),M7(Zte,"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])}),M7(Zte,"FTYPAVC1",Zte.box(Zte.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),M7(Zte,"FTYPHEV1",Zte.box(Zte.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),M7(Zte,"DINF",Zte.box(Zte.types.dinf,Zte.box(Zte.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),M7(Zte,"VMHD",Zte.box(Zte.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),M7(Zte,"SMHD",Zte.box(Zte.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),M7(Zte,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),M7(Zte,"STTS",Zte.box(Zte.types.stts,Zte.StblTable)),M7(Zte,"STSC",Zte.box(Zte.types.stsc,Zte.StblTable)),M7(Zte,"STSZ",Zte.box(Zte.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),M7(Zte,"STCO",Zte.box(Zte.types.stco,Zte.StblTable));var ere=function(){function e(t,r){D7(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=r}return j7(e,[{key:"debug",value:function(){var t;if(!e.disabled){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(t=console).debug.apply(t,[this._prefix].concat(n))}}},{key:"log",value:function(){var t;if(!e.disabled){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(t=console).log.apply(t,[this._prefix].concat(n))}}},{key:"warn",value:function(){var t;if(!e.disabled){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(n))}}},{key:"error",value:function(){var t;if(!e.disabled){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(t=console).error.apply(t,[this._prefix].concat(n))}}},{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}();M7(ere,"disabled",!0);var tre=function(){function e(t,r,n){D7(this,e),this.videoTrack=t,this.audioTrack=r;var i=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=i&&Number(i[1])<50,this.log=new ere("FMP4Remuxer",!n||!n.openLog||!n.openLog)}return j7(e,[{key:"remux",value:function(){var e,t,r,n,i,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.videoTrack,u=this.audioTrack,c=s.exist(),l=u.exist(),f=[];return o&&(a&&a.initMerge?(c&&f.push(this.videoTrack),l&&f.push(this.audioTrack),r=Zte.initSegment(f)):(c&&(e=Zte.initSegment([this.videoTrack])),l&&(t=Zte.initSegment([this.audioTrack])))),c&&s.hasSample()&&(n=this._remuxVideo()),l&&u.hasSample()&&(i=this._remuxAudio()),s.samples=[],u.samples=[],{initSegment:r,videoInitSegment:e,audioInitSegment:t,videoSegment:n,audioSegment:i}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,r=0;t.forEach((function(e){r+=e.units.reduce((function(e,t){return e+t.byteLength}),0),r+=4*e.units.length}));for(var n,i=new Uint8Array(r),o=new DataView(i.buffer),a=function(e,r,a,s){s=t[e];var u=0;s.units.forEach((function(e){o.setUint32(a,e.byteLength),a+=4,i.set(e,a),a+=e.byteLength,u+=4+e.byteLength})),s.size=u,c=a,n=s},s=0,u=t.length,c=0;s<u;s++)a(s,0,c,n);var l=Zte.mdat(i);return nte(Zte.moof([e]),l)}},{key:"_remuxAudio",value:function(){var e=this.audioTrack,t=new Uint8Array(e.samples.reduce((function(e,t){return e+t.size}),0));e.samples.reduce((function(e,r){return t.set(r.data,e),e+r.size}),0);var r=Zte.mdat(t);return nte(Zte.moof([e]),r)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),rre=Kt.f,nre=T,ire=k,ore=z,are=si,sre=mZ,ure=dr,cre=pn.f,lre=ve,fre=$7,hre=hf,dre=Pee,pre=PK,vre=function(e,t,r){r in e||rre(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},yre=dn,gre=E,mre=at,bre=Kr.enforce,_re=oa,Sre=IK,wre=jK,kre=St("match"),xre=ire.RegExp,Ere=xre.prototype,Tre=ire.SyntaxError,Are=ore(Ere.exec),Ore=ore("".charAt),Lre=ore("".replace),Pre=ore("".indexOf),Cre=ore("".slice),Rre=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ire=/a/g,Dre=/a/g,Ure=new xre(Ire)!==Ire,jre=pre.MISSED_STICKY,Mre=pre.UNSUPPORTED_Y,Bre=nre&&(!Ure||jre||Sre||wre||gre((function(){return Dre[kre]=!1,xre(Ire)!=Ire||xre(Dre)==Dre||"/a/i"!=xre(Ire,"i")})));if(are("RegExp",Bre)){for(var Nre=function(e,t){var r,n,i,o,a,s,u=lre(Ere,this),c=fre(e),l=void 0===t,f=[],h=e;if(!u&&c&&l&&e.constructor===Nre)return e;if((c||lre(Ere,e))&&(e=e.source,l&&(t=dre(h))),e=void 0===e?"":hre(e),t=void 0===t?"":hre(t),h=e,Sre&&"dotAll"in Ire&&(n=!!t&&Pre(t,"s")>-1)&&(t=Lre(t,/s/g,"")),r=t,jre&&"sticky"in Ire&&(i=!!t&&Pre(t,"y")>-1)&&Mre&&(t=Lre(t,/y/g,"")),wre&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";n<=r;n++){if("\\"===(t=Ore(e,n)))t+=Ore(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Are(Rre,Cre(e,n+1))&&(n+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===l||mre(a,l))throw new Tre("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=t:i+=t}return[i,o]}(e),e=o[0],f=o[1]),a=sre(xre(e,t),u?this:Ere,Nre),(n||i||f.length)&&(s=bre(a),n&&(s.dotAll=!0,s.raw=Nre(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=Ore(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+Ore(e,++n);return i}(e),r)),i&&(s.sticky=!0),f.length&&(s.groups=f)),e!==h)try{ure(a,"source",""===h?"(?:)":h)}catch(vie){}return a},Fre=cre(xre),Vre=0;Fre.length>Vre;)vre(Nre,xre,Fre[Vre++]);Ere.constructor=Nre,Nre.prototype=Ere,yre(ire,"RegExp",Nre,{constructor:!0})}_re("RegExp");var zre=T,Gre=PK.MISSED_STICKY,Hre=Y,qre=hH,Yre=Kr.get,Wre=RegExp.prototype,Kre=TypeError;zre&&Gre&&qre(Wre,"sticky",{configurable:!0,get:function(){if(this!==Wre){if("RegExp"===Hre(this))return!!Yre(this).sticky;throw Kre("Incompatible receiver, RegExp required")}}});var $re=function(){function e(){a(this,e);var t=window.crypto||window.msCrypto;this.subtle=t&&(t.subtle||t.webkitSubtle),this.externalDecryptor=null}var t,n;return u(e,[{key:"decrypt",value:function(e,t){if(e||t){var r=[];return e&&(r[0]=this._decryptSegment(e)),t&&(r[1]=this._decryptSegment(t)),Promise.all(r)}}},{key:"_decryptSegment",value:(n=o(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,!t.key){e.next=5;break}return e.next=4,this._decryptData(t.data,t.key,t.keyIv);case 4:n=e.sent;case 5:if(t.map){e.next=7;break}return e.abrupt("return",n);case 7:return e.abrupt("return",E4(t.map,n));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_decryptData",value:(t=o(r().mark((function e(t,n,i){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.externalDecryptor){e.next=6;break}return e.next=3,this.externalDecryptor.decrypt(t,n,i);case 3:return e.abrupt("return",e.sent);case 6:if(this.subtle){e.next=8;break}throw new Error("crypto is not defined");case 8:return e.next=10,this.subtle.importKey("raw",n,{name:"AES-CBC"},!1,["encrypt","decrypt"]);case 10:return o=e.sent,e.t0=Uint8Array,e.next=14,this.subtle.decrypt({name:"AES-CBC",iv:i},o,t);case 14:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 16:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})}]),e}(),Xre=t(t({},v4),{},{STREAM_PARSED:"core.streamparsed",NO_AUDIO_TRACK:"core.noaudiotrack",SUBTITLE_SEGMENTS:"core.subtitlesegments",SUBTITLE_PLAYLIST:"core.subtitleplaylist",SEI_PAYLOAD_TIME:"core.seipayloadtime"}),Qre=new yX("Transmuxer"),Jre=function(){function e(t,r,n){a(this,e),c(this,"_initSegmentId",""),this.hls=t,this._demuxer=r?new Wte:new bte,this._isMP4=r,n&&(this._remuxer=new tre(this._demuxer.videoTrack,this._demuxer.audioTrack))}return u(e,[{key:"transmux",value:function(e,t,r,n,i,o){var a=this._demuxer;try{this._isMP4?a.demux(e,t):a.demuxAndFix(E4(e,t),r,n,i)}catch(vie){throw new O$(w$,T$.HLS,vie)}var s=a.videoTrack,u=a.audioTrack,c=a.metadataTrack,l="".concat(s.codec,"/").concat(s.width,"/").concat(s.height,"/").concat(u.codec,"/").concat(u.config);if(l!==this._initSegmentId&&(this._initSegmentId=l,o=!0),this._fireEvents(s,u,c,r||o),this.hls.emit(Xre.DEMUXED_TRACK,s),!this._remuxer)return[s,u];try{var f=this._remuxer.remux(o),h=f.videoInitSegment,d=f.videoSegment,p=f.audioInitSegment,v=f.audioSegment,y=E4(h,d),g=E4(p,v);return[y?{codec:s.codec,data:y}:void 0,g?{codec:u.codec,data:g}:void 0]}catch(vie){throw new O$(k$,T$.FMP4,vie)}}},{key:"_fireEvents",value:function(e,r,n,i){var o=this;Qre.debug(e.samples,r.samples),i&&(e.exist()&&this.hls.emit(Xre.METADATA_PARSED,{type:"video",track:e,meta:{codec:e.codec,timescale:e.timescale,width:e.width,height:e.height,sarRatio:e.sarRatio,baseDts:e.baseDts}}),r.exist()&&this.hls.emit(Xre.METADATA_PARSED,{type:"audio",track:r,meta:{codec:r.codec,channelCount:r.channelCount,sampleRate:r.sampleRate,timescale:r.timescale,baseDts:r.baseDts}}),Qre.debug("discontinuity",e,r)),e.warnings.forEach((function(e){var r;switch(e.type){case dee:r=Xre.LARGE_AV_FIRST_FRAME_GAP_DETECT;break;case pee:r=Xre.LARGE_VIDEO_DTS_GAP_DETECT;break;case vee:r=Xre.MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT}r&&o.hls.emit(Xre.STREAM_EXCEPTION,t(t({},e),{},{type:r})),Qre.warn("video exception",e)})),r.warnings.forEach((function(e){var r;switch(e.type){case yee:r=Xre.LARGE_AUDIO_DTS_GAP_DETECT;break;case gee:r=Xre.AUDIO_GAP_DETECT;break;case mee:r=Xre.AUDIO_OVERLAP_DETECT}r&&o.hls.emit(Xre.STREAM_EXCEPTION,t(t({},e),{},{type:r})),Qre.warn("audio exception",e)})),e.samples.forEach((function(e){e.keyframe&&o.hls.emit(Xre.KEYFRAME,{pts:e.pts})})),n.seiSamples.forEach((function(e){o.hls.emit(Xre.SEI,t(t({},e),{},{originPts:e.originPts/90,sei:{code:e.data.type,content:e.data.payload,dts:e.pts}}))}))}}]),e}(),Zre=new yX("BufferService"),ene=function(){function e(t){if(a(this,e),c(this,"_decryptor",new $re),c(this,"_transmuxer",null),c(this,"_mse",null),c(this,"_softVideo",null),c(this,"_sourceCreated",!1),c(this,"_needInitSegment",!0),c(this,"_directAppend",!1),this.hls=t,t.config.softDecode)this._softVideo=t.media;else if(this._mse=new kX,t.config.url){var r=this._mse.bindMedia(t.media);r&&r.then&&r.then((function(){t&&t.emit("sourceAttached")}))}t.config.decryptor&&(this._decryptor.externalDecryptor=t.config.decryptor)}var t,n,i,s,l,f,h,d,p;return u(e,[{key:"baseDts",get:function(){var e,t,r;return null===(e=this._transmuxer)||void 0===e||null===(t=e._demuxer)||void 0===t||null===(r=t._fixer)||void 0===r?void 0:r._baseDts}},{key:"nbSb",get:function(){var e;return null!==(e=this._mse)&&void 0!==e&&e._sourceBuffer?Object.keys(this._mse._sourceBuffer).length:0}},{key:"updateDuration",value:(p=o(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Zre.debug("update duration",t),!this._mse){e.next=9;break}if(this._mse.isOpened){e.next=5;break}return e.next=5,this._mse.open();case 5:return e.next=7,this._mse.updateDuration(t);case 7:e.next=10;break;case 9:this._softVideo&&(this._softVideo.duration=t);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"createSource",value:function(e,t,r,n){if(!this._sourceCreated){var i=e||t;if(i){if(bte.probe(i))this._transmuxer||(this._transmuxer=new Jre(this.hls,!1,!this._softVideo));else{if(!Vte.probe(i))throw new O$(E$,null,null,null,"unsupported stream");if(this._softVideo)this._transmuxer||(this._transmuxer=new Jre(this.hls,!0));else{this._directAppend=!0;var o=!1;e&&!r&&Vte.findBox(e,["moov","trak"]).forEach((function(e){var t=Vte.findBox(e.data,["trak","mdia","minf","stbl","stsd"])[0];if(t){var i=Vte.stsd(t).entries[0];if(i)if(i.hvcC)r=i.hvcC.codec||"hev1.1.6.L93.B0";else if(i.avcC)r=i.avcC.codec;else if(i.sampleRate||i.esds){var a;n=(null===(a=i.esds)||void 0===a?void 0:a.codec)||"mp4a.40.2",o=!0}}})),t&&!n&&Vte.findBox(t,["moov","trak","mdia","minf","stbl","stsd"]).forEach((function(e){var t=Vte.stsd(e).entries[0];t&&t.esds&&(n=t.esds.codec)})),e&&!r&&(r="avc1.42e01e"),t&&!n&&(n="mp4a.40.2"),o&&(r+=", ".concat(n),n=""),this._createMseSource(r,n)}}this._softVideo&&(this._sourceCreated=!0)}}}},{key:"appendBuffer",value:(d=o(r().mark((function e(t,n,i,o,a,s,u){var c,l,f,h,d,p,y,g,m;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=i&&i.length||null!=o&&o.length){e.next=2;break}return e.abrupt("return");case 2:if(!this._directAppend){e.next=7;break}return c=[],i&&c.push(this._mse.append(kX.VIDEO,i)),o&&c.push(this._mse.append(kX.AUDIO,o)),e.abrupt("return",Promise.all(c));case 7:if(l=this._needInitSegment||a,f=this._transmuxer.transmux(i,o,a,s,u,this._needInitSegment||a),h=v(f,2),d=h[0],p=h[1],o&&n&&(null==n||n.setTrackExist(!1,!0)),o&&t&&(null==t||t.setTrackExist(!0,!1)),n||null==t||t.setTrackExist(!!d,!!p),d&&!p&&this.hls.emit(Xre.NO_AUDIO_TRACK),!this._softVideo){e.next=18;break}this._softVideo.appendBuffer(d,p),this._needInitSegment=!1,e.next=28;break;case 18:if(!this._mse){e.next=28;break}return(y=!this._sourceCreated)&&this._createMseSource(null==d?void 0:d.codec,null==p?void 0:p.codec),this._needInitSegment=!1,g=this._mse,m=[],l&&!y&&this._handleCodecChange(d,p),d&&m.push(g.append(kX.VIDEO,d.data)),p&&m.push(g.append(kX.AUDIO,p.data)),e.abrupt("return",Promise.all(m));case 28:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,i,o,a){return d.apply(this,arguments)})},{key:"removeBuffer",value:(h=o(r().mark((function e(){var t,n,i,o=this,a=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:0,n=a.length>1&&void 0!==a[1]?a[1]:1/0,i=this.hls.media,!(!this._mse||!i||t<0||n<t||t>=this._mse.duration)){e.next=5;break}return e.abrupt("return");case 5:return e.abrupt("return",this._mse.clearBuffer(t,n).then((function(){return o.hls.emit(v4.REMOVE_BUFFER,{start:t,end:n,removeEnd:n})})));case 6:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"evictBuffer",value:(f=o(r().mark((function e(t){var n,i,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.hls.media,this._mse&&n&&t&&!(t<0)){e.next=3;break}return e.abrupt("return");case 3:if(i=n.currentTime,!((o=i-t)<=0)){e.next=7;break}return e.abrupt("return");case 7:if(!(m$.start(m$.get(n))+1>=o)){e.next=10;break}return e.abrupt("return");case 10:return e.abrupt("return",this.removeBuffer(0,o));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"clearAllBuffer",value:(l=o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=2;break}return e.abrupt("return",this._mse.clearAllBuffer());case 2:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"decryptBuffer",value:function(e,t){return this._decryptor.decrypt(e,t)}},{key:"reset",value:(s=o(r().mark((function e(){var t,n=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]&&n[0],!this._mse||t){e.next=7;break}return this._sourceCreated=!1,e.next=5,this._mse.unbindMedia();case 5:return e.next=7,this._mse.bindMedia(this.hls.media);case 7:this._transmuxer=null,this._needInitSegment=!0,this._directAppend=!1;case 10:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"endOfStream",value:(i=o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=5;break}if(!this._sourceCreated){e.next=5;break}return e.next=4,this._mse.endOfStream();case 4:this.hls.emit(v4.BUFFEREOS);case 5:this._softVideo&&this._softVideo.endOfStream();case 6:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"setLiveSeekableRange",value:(n=o(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._mse&&this._mse.setLiveSeekableRange(t,n);case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"destroy",value:(t=o(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._mse,this._mse=null,this._softVideo=null,!t){e.next=6;break}return e.next=6,t.unbindMedia();case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_createMseSource",value:function(e,t){Zre.debug("create mse source, videoCodec=".concat(e,", audioCodec=").concat(t));var r=this._mse;r&&(e&&(r.createSource(kX.VIDEO,"video/mp4;codecs=".concat(e)),this._sourceCreated=!0),t&&(r.createSource(kX.AUDIO,"audio/mp4;codecs=".concat(t)),this._sourceCreated=!0),this.hls.emit(v4.SOURCEBUFFER_CREATED))}},{key:"_handleCodecChange",value:function(e,t){var r=this._mse;[{type:kX.VIDEO,codecs:null==e?void 0:e.codec},{type:kX.AUDIO,codecs:null==t?void 0:t.codec}].filter((function(e){return!!e.codecs})).forEach((function(e){var t=e.type,n=e.codecs,i=r.getSourceBuffer(t);if(i){var o=n.split(",")[0];new RegExp(o,"ig").test(i.mimeType)||r.changeType(t,"".concat(t,"/mp4;codecs=").concat(n))}}))}},{key:"seamlessSwitch",value:function(){this._needInitSegment=!0}}]),e}();var tne=wa,rne=P,nne=z,ine=C5,one=Zt,ane=J,sne=$7,une=te,cne=ga,lne=I5,fne=En,hne=hf,dne=Ve,pne=mH,vne=K5,yne=r$,gne=E,mne=PK.UNSUPPORTED_Y,bne=4294967295,_ne=Math.min,Sne=[].push,wne=nne(/./.exec),kne=nne(Sne),xne=nne("".slice),Ene=!gne((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));ine("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=hne(une(this)),i=void 0===r?bne:r>>>0;if(0===i)return[];if(void 0===e)return[n];if(!sne(e))return rne(t,n,e,i);for(var o,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(o=rne(yne,f,n))&&!((a=f.lastIndex)>l&&(kne(u,xne(n,l,o.index)),o.length>1&&o.index<n.length&&tne(Sne,u,pne(o,1)),s=o[0].length,l=a,u.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return l===n.length?!s&&wne(f,"")||kne(u,""):kne(u,xne(n,l)),u.length>i?pne(u,0,i):u}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:rne(t,this,e,r)}:t,[function(t,r){var i=une(this),o=ane(t)?void 0:dne(t,e);return o?rne(o,t,i,r):rne(n,hne(i),t,r)},function(e,i){var o=one(this),a=hne(e),s=r(n,o,a,i,n!==t);if(s.done)return s.value;var u=cne(o,RegExp),c=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(mne?"g":"y"),f=new u(mne?"^(?:"+o.source+")":o,l),h=void 0===i?bne:i>>>0;if(0===h)return[];if(0===a.length)return null===vne(f,a)?[a]:[];for(var d=0,p=0,v=[];p<a.length;){f.lastIndex=mne?0:p;var y,g=vne(f,mne?xne(a,p):a);if(null===g||(y=_ne(fne(f.lastIndex+(mne?p:0)),a.length))===d)p=lne(a,p,c);else{if(kne(v,xne(a,d,p)),v.length===h)return v;for(var m=1;m<=g.length-1;m++)if(kne(v,g[m]),v.length===h)return v;p=d=y}}return kne(v,xne(a,d)),v}]}),!Ene,mne);var Tne=u((function e(){a(this,e),c(this,"version",0),c(this,"streams",[]),c(this,"isMaster",!0)})),Ane="AUDIO",One="SUBTITLE",Lne=u((function e(){a(this,e),c(this,"id",0),c(this,"url",""),c(this,"default",!1),c(this,"autoSelect",!1),c(this,"forced",!1),c(this,"group",""),c(this,"name",""),c(this,"lang",""),c(this,"segments",[]),c(this,"endSN",0)})),Pne=function(e){l(r,e);var t=p(r);function r(){var e;a(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return c(d(e=t.call.apply(t,[this].concat(i))),"mediaType",Ane),c(d(e),"channels",0),e}return u(r)}(Lne),Cne=function(e){l(r,e);var t=p(r);function r(){var e;a(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return c(d(e=t.call.apply(t,[this].concat(i))),"mediaType",One),e}return u(r)}(Lne),Rne=u((function e(){a(this,e),c(this,"id",0),c(this,"bitrate",0),c(this,"width",0),c(this,"height",0),c(this,"name",""),c(this,"url",""),c(this,"audioCodec",""),c(this,"videoCodec",""),c(this,"textCodec",""),c(this,"audioGroup",""),c(this,"audioStreams",[]),c(this,"subtitleStreams",[]),c(this,"closedCaptionsStream",[])})),Ine=u((function e(){a(this,e),c(this,"version",0),c(this,"url",""),c(this,"type",""),c(this,"startCC",0),c(this,"endCC",0),c(this,"startSN",0),c(this,"endSN",0),c(this,"totalDuration",0),c(this,"targetDuration",0),c(this,"live",!0),c(this,"segments",[])})),Dne=function(){function e(){a(this,e),c(this,"sn",0),c(this,"cc",0),c(this,"url",""),c(this,"title",""),c(this,"start",0),c(this,"duration",0),c(this,"key",null),c(this,"byteRange",null),c(this,"isInitSegment",!1),c(this,"initSegment",null),c(this,"isLast",!1),c(this,"hasAudio",!1),c(this,"hasVideo",!1)}return u(e,[{key:"end",get:function(){return this.start+this.duration}},{key:"setTrackExist",value:function(e,t){this.hasVideo=e,this.hasAudio=t}},{key:"setByteRange",value:function(e,t){this.byteRange=[0];var r=e.split("@");1===r.length&&t&&t.byteRange?(this.byteRange[0]=t.byteRange[1]||0,this.byteRange[0]&&(this.byteRange[0]+=1)):this.byteRange[0]=parseInt(r[1]),this.byteRange[1]=this.byteRange[0]+parseInt(r[0])-1}}]),e}(),Une=function(){function e(t){a(this,e),c(this,"method",""),c(this,"url",""),c(this,"iv",null),c(this,"keyFormat",""),c(this,"keyFormatVersions",""),t instanceof e&&(this.method=t.method,this.url=t.url,this.keyFormat=t.keyFormat,this.keyFormatVersions=t.keyFormatVersions,t.iv&&(this.iv=new Uint8Array(t.iv)))}return u(e,[{key:"clone",value:function(t){var r=new e(this);return null!=t&&r.setIVFromSN(t),r}},{key:"setIVFromSN",value:function(e){if(!this.iv&&"AES-128"===this.method&&"number"==typeof e&&this.url){this.iv=new Uint8Array(16);for(var t=12;t<16;t++)this.iv[t]=e>>8*(15-t)&255}}}]),e}(),jne=P,Mne=Zt,Bne=J,Nne=En,Fne=hf,Vne=te,zne=Ve,Gne=I5,Hne=K5;C5("match",(function(e,t,r){return[function(t){var r=Vne(this),n=Bne(t)?void 0:zne(t,e);return n?jne(n,t,r):new RegExp(t)[e](Fne(r))},function(e){var n=Mne(this),i=Fne(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return Hne(n,i);var a=n.unicode;n.lastIndex=0;for(var s,u=[],c=0;null!==(s=Hne(n,i));){var l=Fne(s[0]);u[c]=l,""===l&&(n.lastIndex=Gne(i,Nne(n.lastIndex),a)),c++}return 0===c?null:u}]}));var qne=/^#(EXT[^:]*)(?::(.*))?$/,Yne=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g,Wne=/^(?:[a-zA-Z0-9+\-.]+:)?\/\//,Kne=/^((?:[a-zA-Z0-9+\-.]+:)?\/\/[^/?#]*)?([^?#]*\/)?/;function $ne(e){var t=e.match(qne);if(t&&t[1])return[t[1].replace("EXT-X-",""),t[2]]}function Xne(e){for(var t={},r=Yne.exec(e);r;)t[r[1]]=r[2]||r[3],r=Yne.exec(e);return t}function Qne(e,t){if(!t||!e||Wne.test(e))return e;var r=Kne.exec(t);return r?"/"===e[0]?r[1]+e:r[1]+r[2]+e:e}var Jne={audio:[/^mp4a/,/^vorbis$/,/^opus$/,/^flac$/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Zne(e,t){var r=Jne[e];if(r&&t&&t.length)for(var n=0;n<r.length;n++)for(var i=0;i<t.length;i++)if(r[n].test(t[i]))return t[i]}var eie=function(){function e(){a(this,e)}return u(e,null,[{key:"parse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!t.includes("#EXTM3U"))throw new Error("Invalid m3u8 file");var n=function(e){return e.split(/[\r\n]/).map((function(e){return e.trim()})).filter(Boolean)}(t);return e.isMediaPlaylist(t)?function(e,t){var r=new Ine;r.url=t;for(var n,i=new Dne,o=null,a=null,s=0,u=0,c=0,l=0,f=!1;(n=e[l++])&&!f;)if("#"===n[0]){var h=$ne(n);if(h){var d=v(h,2),p=d[0],y=d[1];switch(p){case"VERSION":r.version=parseInt(y);break;case"PLAYLIST-TYPE":r.type=null==y?void 0:y.toUpperCase();break;case"TARGETDURATION":r.targetDuration=parseFloat(y);break;case"ENDLIST":var g=r.segments[r.segments.length-1];g&&(g.isLast=!0),r.live=!1,f=!0;break;case"MEDIA-SEQUENCE":u=r.startSN=parseInt(y);break;case"DISCONTINUITY-SEQUENCE":c=r.startCC=parseInt(y);break;case"DISCONTINUITY":c++;break;case"BYTERANGE":i.setByteRange(y,r.segments[r.segments.length-1]);break;case"EXTINF":var m=v(y.split(","),2),b=m[0],_=m[1];i.start=s,i.duration=parseFloat(b),s+=i.duration,i.title=_;break;case"KEY":var S=Xne(y);if("NONE"===S.METHOD){a=null;break}if("AES-128"!==S.METHOD)throw new Error("encrypt ".concat(S.METHOD,"/").concat(S.KEYFORMAT," is not supported"));if((a=new Une).method=S.METHOD,a.url=/^blob:/.test(S.URI)?S.URI:Qne(S.URI,t),a.keyFormat=S.KEYFORMAT||"identity",a.keyFormatVersions=S.KEYFORMATVERSIONS,S.IV){var w=S.IV.slice(2);w=(1&w.length?"0":"")+w,a.iv=new Uint8Array(w.length/2);for(var k=0,x=w.length/2;k<x;k++)a.iv[k]=parseInt(w.slice(2*k,2*k+2),16)}break;case"MAP":var E=Xne(y);i.url=Qne(E.URI,t),E.BYTERANGE&&i.setByteRange(E.BYTERANGE),i.isInitSegment=!0,i.sn=0,a&&(i.key=a.clone(0)),o=i,i=new Dne}}}else i.sn=u,i.cc=c,i.url=Qne(n,t),a&&(i.key=a.clone(u)),o&&(i.initSegment=o),r.segments.push(i),i=new Dne,u++;var T=r.segments[r.segments.length-1];return T&&(r.endSN=T.sn),r.totalDuration=s,r.endCC=c,r}(n,r):function(e,t){for(var r,n=new Tne,i=0,o=[],a=[];r=e[i++];){var s=$ne(r);if(s){var u=v(s,2),c=u[0],l=u[1];if("VERSION"===c)n.version=parseInt(l);else if("MEDIA"===c&&l){var f=Xne(l),h=void 0;switch(f.TYPE){case"AUDIO":h=new Pne;break;case"SUBTITLES":h=new Cne;break;default:h=new Lne}h.url=Qne(f.URI,t),h.default="YES"===f.DEFAULT,h.autoSelect="YES"===f.AUTOSELECT,h.group=f["GROUP-ID"],h.name=f.NAME,h.lang=f.LANGUAGE,f.CHANNELS&&(h.channels=Number(f.CHANNELS.split("/")[0]),Number.isNaN(h.channels)&&(h.channels=0)),"AUDIO"===f.TYPE&&f.URI&&o.push(h),"SUBTITLES"===f.TYPE&&a.push(h)}else if("STREAM-INF"===c&&l){var d=new Rne,p=Xne(l);if(d.bitrate=parseInt(p["AVERAGE-BANDWIDTH"]||p.BANDWIDTH),d.name=p.NAME,d.url=Qne(e[i++],t),p.RESOLUTION){var y=v(p.RESOLUTION.split("x"),2),g=y[0],m=y[1];d.width=parseInt(g),d.height=parseInt(m)}if(p.CODECS){var b=p.CODECS.split(/[ ,]+/).filter(Boolean);d.videoCodec=Zne("video",b),d.audioCodec=Zne("audio",b),d.textCodec=Zne("text",b)}d.audioGroup=p.AUDIO,d.subtitleGroup=p.SUBTITLES,n.streams.push(d)}}}return n.streams.forEach((function(e,t){e.id=t})),o.length&&(o.forEach((function(e,t){e.id=t})),n.streams.forEach((function(e){e.audioGroup&&(e.audioStreams=o.filter((function(t){return t.group===e.audioGroup})))}))),a.length&&(a.forEach((function(e,t){e.id=t})),n.streams.forEach((function(e){e.subtitleGroup&&(e.subtitleStreams=a.filter((function(t){return t.group===e.subtitleGroup})))}))),n}(n,r)}},{key:"isMediaPlaylist",value:function(e){return e.includes("#EXTINF:")||e.includes("#EXT-X-TARGETDURATION:")}}]),e}(),tie=function(){function e(r){var n=this;a(this,e),c(this,"_onLoaderRetry",(function(e,t){n.hls.emit(Xre.LOAD_RETRY,{error:O$.network(e),retryTime:t})})),this.hls=r,this._timer=null;var i=this.hls.config,o=i.retryCount,s=i.retryDelay,u=i.loadTimeout,l=i.fetchOptions;this._loader=new A4(t(t({},l),{},{responseType:"text",retry:o,retryDelay:s,timeout:u,onRetryError:this._onLoaderRetry})),this._audioLoader=new A4(t(t({},l),{},{responseType:"text",retry:o,retryDelay:s,timeout:u,onRetryError:this._onLoaderRetry})),this._subtitleLoader=new A4(t(t({},l),{},{responseType:"text",retry:o,retryDelay:s,timeout:u,onRetryError:this._onLoaderRetry}))}var n;return u(e,[{key:"load",value:(n=o(r().mark((function e(t,n,i){var o,a,s,u,c,l,f,h,d,p,y,g,m,b;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=[this._loader.load(t)],n&&o.push(this._audioLoader.load(n)),i&&o.push(this._subtitleLoader.load(i)),e.prev=3,e.next=6,Promise.all(o);case 6:if(c=e.sent,l=v(c,3),f=l[0],h=l[1],d=l[2],f){e.next=13;break}return e.abrupt("return",[]);case 13:a=f.data,n?(s=null==h?void 0:h.data,u=null==d?void 0:d.data):u=null==h?void 0:h.data,e.next=20;break;case 17:throw e.prev=17,e.t0=e.catch(3),O$.network(e.t0);case 20:if(p=this.hls.config.onPreM3U8Parse,e.prev=21,p&&(a=p(a)||a,s&&(s=p(s,!0)||s),u&&(u=p(u,!0)||u)),y=eie.parse(a,t),!1!==(null===(b=y)||void 0===b?void 0:b.live)||!y.segments||y.segments.length){e.next=26;break}throw new Error("empty segments list");case 26:s&&(g=eie.parse(s,n)),u&&(m=eie.parse(u,i)),e.next=33;break;case 30:throw e.prev=30,e.t1=e.catch(21),new O$(b$,T$.HLS,e.t1);case 33:return y&&(y.isMaster?this.hls.emit(Xre.HLS_MANIFEST_LOADED,{playlist:y}):this.hls.emit(Xre.HLS_LEVEL_LOADED,{playlist:y})),e.abrupt("return",[y,g,m]);case 35:case"end":return e.stop()}}),e,this,[[3,17],[21,30]])}))),function(e,t,r){return n.apply(this,arguments)})},{key:"poll",value:function(e,t,n,i,a,s){var u=this;clearTimeout(this._timer),s=s||3e3;var c=this.hls.config.pollRetryCount,l=function(){var f=o(r().mark((function o(){var f;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return clearTimeout(u._timer),r.prev=1,r.next=4,u.load(e,t,n);case 4:if((f=r.sent)[0]){r.next=7;break}return r.abrupt("return");case 7:c=u.hls.config.pollRetryCount,i(f[0],f[1],f[2]),r.next=15;break;case 11:r.prev=11,r.t0=r.catch(1),--c<=0&&a(r.t0);case 15:u._timer=setTimeout(l,s);case 16:case"end":return r.stop()}}),o,null,[[1,11]])})));return function(){return f.apply(this,arguments)}}();this._timer=setTimeout(l,s)}},{key:"stopPoll",value:function(){return clearTimeout(this._timer),this.cancel()}},{key:"cancel",value:function(){return Promise.all([this._loader.cancel(),this._audioLoader.cancel()])}}]),e}();function rie(e,t,r){return t>r&&(r=t),Math.min(Math.max(e,t),r)}var nie=vi,iie=Yl.findIndex,oie=RG,aie="findIndex",sie=!0;aie in[]&&Array(1)[aie]((function(){sie=!1})),nie({target:"Array",proto:!0,forced:sie},{findIndex:function(e){return iie(this,e,arguments.length>1?arguments[1]:void 0)}}),oie(aie);var uie=function(){function e(t,r,n){a(this,e),c(this,"live",void 0),c(this,"id",0),c(this,"bitrate",0),c(this,"width",0),c(this,"height",0),c(this,"name",""),c(this,"url",""),c(this,"audioCodec",""),c(this,"videoCodec",""),c(this,"textCodec",""),c(this,"startCC",0),c(this,"endCC",0),c(this,"startSN",0),c(this,"endSN",-1),c(this,"totalDuration",0),c(this,"targetDuration",0),c(this,"snDiff",null),c(this,"segments",[]),c(this,"audioStreams",[]),c(this,"subtitleStreams",[]),c(this,"closedCaptions",[]),c(this,"currentAudioStream",null),c(this,"currentSubtitleStream",null),this.update(t,r,n)}return u(e,[{key:"lastSegment",get:function(){return this.segments.length?this.segments[this.segments.length-1]:null}},{key:"segmentDuration",get:function(){var e;return this.targetDuration||(null===(e=this.segments[0])||void 0===e?void 0:e.duration)||0}},{key:"liveEdge",get:function(){return this.endTime}},{key:"endTime",get:function(){var e;return(null===(e=this.lastSegment)||void 0===e?void 0:e.end)||0}},{key:"currentSubtitleEndSn",get:function(){var e;return(null===(e=this.currentSubtitleStream)||void 0===e?void 0:e.endSN)||0}},{key:"clearOldSegment",value:function(e,t){return this.currentAudioStream&&this._clearSegments(e,t),this._clearSegments(e,t)}},{key:"getAudioSegment",value:function(e){if(e&&this.currentAudioStream){var t=e.sn-this.snDiff;return this.currentAudioStream.segments.find((function(e){return e.sn===t}))}}},{key:"update",value:function(e,t){this.url=e.url,Array.isArray(e.segments)?(null!==this.live&&void 0!==this.live||(this.live=e.live),this._updateSegments(e,this),this.startCC=e.startCC,this.endCC=e.endCC,this.startSN=e.startSN,this.endSN=e.endSN||-1,this.totalDuration=e.totalDuration,this.targetDuration=e.targetDuration,this.live=e.live,t&&this.currentAudioStream&&Array.isArray(t.segments)&&(this._updateSegments(t,this.currentAudioStream),(null===this.snDiff||void 0===this.snDiff)&&e.segments.length&&t.segments.length&&(this.snDiff=e.segments[0].sn-t.segments[0].sn))):(this.id=e.id,this.bitrate=e.bitrate,this.width=e.width,this.height=e.height,this.name=e.name,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.textCodec=e.textCodec,this.audioStreams=e.audioStreams,this.subtitleStreams=e.subtitleStreams,!this.currentAudioStream&&this.audioStreams.length&&(this.currentAudioStream=this.audioStreams.find((function(e){return e.default}))||this.audioStreams[0]),!this.currentSubtitleStream&&this.subtitleStreams.length&&(this.currentSubtitleStream=this.subtitleStreams.find((function(e){return e.default}))||this.subtitleStreams[0]))}},{key:"updateSubtitle",value:function(e){var t=this;if(e&&this.currentSubtitleStream&&Array.isArray(e.segments)){var r=this._updateSegments(e,this.currentSubtitleStream),n=this.currentSubtitleStream.segments;if(n.length>100&&(this.currentSubtitleStream.segments=n.slice(100)),r)return r.map((function(e){return{sn:e.sn,url:e.url,duration:e.duration,start:e.start,end:e.end,lang:t.currentSubtitleStream.lang}}))}}},{key:"switchSubtitle",value:function(e){var t=this.subtitleStreams.find((function(t){return t.lang===e})),r=this.currentSubtitleStream;t&&(this.currentSubtitleStream=t,r.segments=[])}},{key:"_clearSegments",value:function(e,t){for(var r=0,n=this.segments,i=0,o=n.length;i<o;i++)if(n[i].end>=e){r=i;break}return r>t&&(r=t),r&&(this.segments=this.segments.slice(r),this.currentAudioStream&&(this.currentAudioStream.segments=this.currentAudioStream.segments.slice(r))),t-r}},{key:"_updateSegments",value:function(e,t){var r=t.segments;if(this.live){var n=r[r.length-1],i=(null==n?void 0:n.sn)||-1;if(i<e.endSN&&e.segments.length){var o=e.segments.findIndex((function(e){return e.sn===i})),a=o<0?e.segments:e.segments.slice(o+1);if(r.length&&a.length){var s=n.end;a.forEach((function(e){e.start=s,s=e.end}));var u=(null==n?void 0:n.cc)||-1;u>a[0].cc&&a.forEach((function(e){return e.cc+=u}))}return t.endSN=e.endSN,t.segments=r.concat(a),a}}else t.segments=e.segments}}]),e}(),cie=function(){function e(t){a(this,e),c(this,"streams",[]),c(this,"currentStream",null),c(this,"dvrWindow",0),c(this,"_segmentPointer",-1),this.hls=t}return u(e,[{key:"lastSegment",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.lastSegment}},{key:"currentSegment",get:function(){var e;return null===(e=this.currentSegments)||void 0===e?void 0:e[this._segmentPointer]}},{key:"nextSegment",get:function(){var e;return null===(e=this.currentSegments)||void 0===e?void 0:e[this._segmentPointer+1]}},{key:"currentSegments",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.segments}},{key:"currentSubtitleEndSn",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.currentSubtitleEndSn}},{key:"liveEdge",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.liveEdge}},{key:"totalDuration",get:function(){var e;return(null===(e=this.currentStream)||void 0===e?void 0:e.totalDuration)||0}},{key:"seekRange",get:function(){var e=this.currentSegments;if(e&&e.length)return[e[0].start,e[e.length-1].end]}},{key:"isEmpty",get:function(){var e;return!(null!==(e=this.currentSegments)&&void 0!==e&&e.length)}},{key:"isLive",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.live}},{key:"hasSubtitle",get:function(){var e;return!(null===(e=this.currentStream)||void 0===e||!e.currentSubtitleStream)}},{key:"getAudioSegment",value:function(e){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.getAudioSegment(e)}},{key:"moveSegmentPointer",value:function(e){var t;null==e&&(e=this._segmentPointer+1),this._segmentPointer=rie(e,-1,null===(t=this.currentSegments)||void 0===t?void 0:t.length)}},{key:"reset",value:function(){this.streams=[],this.currentStream=null,this.dvrWindow=0,this._segmentPointer=-1}},{key:"getSegmentByIndex",value:function(e){var t;return null===(t=this.currentSegments)||void 0===t?void 0:t[e]}},{key:"setNextSegmentByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._segmentPointer=e-1}},{key:"findSegmentIndexByTime",value:function(e){var t=this.currentSegments;if(t){for(var r,n=0,i=t.length;n<i;n++)if(e>=(r=t[n]).start&&e<r.end)return n;var o=t[t.length-1];if(Math.abs(e-o.end)<.2)return t.length-1}}},{key:"upsertPlaylist",value:function(e,t,r){var n=this;if(e){if(e.isMaster)this.streams.length=e.streams.length,e.streams.filter((function(e){return e.url})).forEach((function(e,t){n.streams[t]?n.streams[t].update(e):n.streams[t]=new uie(e)})),this.currentStream=this.streams[0];else if(Array.isArray(e.segments)){var i=this.currentStream;if(i){i.update(e,t,r);var o=i.updateSubtitle(r);o&&this.hls.emit(Xre.SUBTITLE_SEGMENTS,{list:o})}else this.reset(),this.currentStream=this.streams[0]=new uie(e,t,r)}this.currentStream&&this.hls.isLive&&!this.dvrWindow&&(this.dvrWindow=this.currentSegments.reduce((function(e,t){return e+=t.duration}),0))}}},{key:"switchSubtitle",value:function(e){var t;null===(t=this.currentStream)||void 0===t||t.switchSubtitle(e)}},{key:"clearOldSegment",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,t=this.currentStream;if(this.dvrWindow&&t){var r=t.endTime-this.dvrWindow;if(!(r<=0))t.segments.length<=e||(this._segmentPointer=t.clearOldSegment(r,this._segmentPointer))}}},{key:"checkSegmentTrackChange",value:function(e,t){var r=this.findSegmentIndexByTime(e),n=this.getSegmentByIndex(r);if(n&&(n.hasAudio||n.hasVideo)){if(2!==t&&n.hasAudio&&n.hasVideo)return n;if(!(n.end-e>.3)){var i=this.getSegmentByIndex(r+1);if(i&&(i.hasAudio||i.hasVideo))return i.hasAudio!==n.hasAudio||i.hasVideo!==n.hasVideo?i:void 0}}}}]),e}(),lie=function(){function e(r){var n=this;a(this,e),c(this,"error",null),c(this,"_emitOnLoaded",(function(e,t){var r=e.data,i=e.response,o=e.option||{},a=o.firstByteTime,s=o.startTime,u=o.endTime,c=o.contentLength,l=u-s;n._bandwidthService.addRecord(c||r.byteLength,l),n.hls.emit(v4.SPEED,{time:l,byteLength:c,url:t}),n.hls.emit(v4.LOAD_COMPLETE,{url:t,elapsed:l||0}),n.hls.emit(v4.TTFB,{url:t,responseUrl:i.url,elapsed:a-s}),n.hls.emit(v4.LOAD_RESPONSE_HEADERS,{headers:i.headers})})),c(this,"_onLoaderRetry",(function(e,t){n.hls.emit(v4.LOAD_RETRY,{error:O$.network(e),retryTime:t})})),this.hls=r,this._bandwidthService=new E7,this._mapCache={},this._keyCache={};var i=this.hls.config,o=i.retryCount,s=i.retryDelay,u=i.loadTimeout,l=i.fetchOptions;this._segmentLoader=new A4(t(t({},l),{},{responseType:"arraybuffer",retry:o,retryDelay:s,timeout:u,onRetryError:this._onLoaderRetry})),this._audioSegmentLoader=new A4(t(t({},l),{},{responseType:"arraybuffer",retry:o,retryDelay:s,timeout:u,onRetryError:this._onLoaderRetry})),this._keyLoader=new A4(t(t({},l),{},{responseType:"arraybuffer",retry:o,retryDelay:s,timeout:u,onRetryError:this._onLoaderRetry}))}var n,i;return u(e,[{key:"speedInfo",value:function(){return{speed:this._bandwidthService.getLatestSpeed(),avgSpeed:this._bandwidthService.getAvgSpeed()}}},{key:"load",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,i=[];return e&&(i[0]=this.loadVideoSegment(e,r)),t&&(i[1]=this.loadAudioSegment(t,n)),Promise.all(i)}},{key:"loadVideoSegment",value:function(e,t){return this._loadSegment(this._segmentLoader,e,t)}},{key:"loadAudioSegment",value:function(e,t){return this._loadSegment(this._audioSegmentLoader,e,t)}},{key:"_loadSegment",value:(i=o(r().mark((function e(t,n,i){var o,a,s,u,c,l,f,h,d,p,y,g,m,b,_,S=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=[],this.hls.emit(v4.LOAD_START,{url:n.url}),f[0]=t.load(n.url),i&&n.initSegment&&(d=n.initSegment.url,(a=this._mapCache[d])||(this.hls.emit(v4.LOAD_START,{url:d}),f[1]=t.load(d).then((function(e){e&&(Object.keys(S._mapCache)>30&&(S._mapCache={}),a=S._mapCache[d]=e.data,S._emitOnLoaded(e,d))}))),(p=null===(h=n.initSegment.key)||void 0===h?void 0:h.url)&&(l=n.initSegment.key.iv,(c=this._keyCache[p])||(this.hls.emit(v4.LOAD_START,{url:p}),f[2]=this._keyLoader.load(p).then((function(e){e&&(c=S._keyCache[p]=e.data,S._emitOnLoaded(e,p))}))))),(y=null===(o=n.key)||void 0===o?void 0:o.url)&&(u=n.key.iv,(s=this._keyCache[y])||(this.hls.emit(v4.LOAD_START,{url:y}),f[3]=this._keyLoader.load(y).then((function(e){e&&(s=S._keyCache[y]=e.data,S._emitOnLoaded(e,y))})))),e.next=8,Promise.all(f);case 8:if(g=e.sent,m=v(g,1),b=m[0]){e.next=13;break}return e.abrupt("return");case 13:return _=b.data,this._emitOnLoaded(b,n.url),e.abrupt("return",{data:_,map:a,key:s,mapKey:c,keyIv:u,mapKeyIv:l});case 16:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return i.apply(this,arguments)})},{key:"reset",value:function(){this.error=null,this._mapCache={},this._keyCache={},this._bandwidthService.reset()}},{key:"cancel",value:(n=o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this._keyLoader.cancel(),this._segmentLoader.cancel(),this._audioSegmentLoader.cancel()]);case 2:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),fie=new yX("hls"),hie=function(e){l(A,e);var i,s,f,h,g,m,b,_,S,w,k,x,E,T=p(A);function A(e){var n,i,s;return a(this,A),c(d(n=T.call(this)),"version",A.version),c(d(n),"media",null),c(d(n),"config",null),c(d(n),"_manifestLoader",null),c(d(n),"_segmentLoader",null),c(d(n),"_playlist",null),c(d(n),"_bufferService",null),c(d(n),"_gapService",null),c(d(n),"_seiService",null),c(d(n),"_stats",null),c(d(n),"_prevSegSn",null),c(d(n),"_prevSegCc",null),c(d(n),"_tickTimer",null),c(d(n),"_tickInterval",500),c(d(n),"_segmentProcessing",!1),c(d(n),"_reloadOnPlay",!1),c(d(n),"_switchUrlOpts",null),c(d(n),"_loadSegment",o(r().mark((function e(){var t,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n._segmentProcessing&&n.media){e.next=2;break}return e.abrupt("return");case 2:if(t=n.media.currentTime,i=n._playlist.currentSegment,n._playlist.nextSegment&&!(i&&!n.isLive&&i.end-t>=n.config.preloadTime)){e.next=7;break}return e.abrupt("return");case 7:return e.abrupt("return",n._loadSegmentDirect());case 8:case"end":return e.stop()}}),e)})))),c(d(n),"_onPlay",o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(clearTimeout(n._disconnectTimer),!n._reloadOnPlay){e.next=6;break}n._reloadOnPlay=!1,n.replay(!0),e.next=9;break;case 6:return e.next=8,n._loadSegment();case 8:n._startTick();case 9:case"end":return e.stop()}}),e)})))),c(d(n),"_onPause",(function(){if(n.isLive){if(!n._reloadOnPlay){var e=n.config.disconnectTime;if(null==e&&(e=n._playlist.dvrWindow),!Number.isFinite(e))return;clearTimeout(n._disconnectTimer),n._disconnectTimer=setTimeout((function(){n._reloadOnPlay=!0,n._clear()}),e||0)}}else n._stopTick()})),c(d(n),"_onSeeking",o(r().mark((function e(){var t,i,o,a,s,u,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.media){e.next=2;break}return e.abrupt("return");case 2:if(t=n.media.currentTime,!(i=n._playlist.seekRange)){e.next=9;break}if(!((o=rie(t,i[0]+.1,i[1]-.1))>=0&&Math.abs(t-o)>=.1)){e.next=9;break}return n.media.currentTime=o,e.abrupt("return");case 9:if(!(a=n._playlist.currentSegment)){e.next=14;break}if(!((s=m$.info(m$.get(n.media),t,.1)).end&&Math.abs(s.end-a.end)<.2)){e.next=14;break}return e.abrupt("return");case 14:if(u=n._playlist.findSegmentIndexByTime(t),c=n._playlist.getSegmentByIndex(u),null!=u&&c&&(!n._segmentProcessing||c!==n._playlist.nextSegment)){e.next=18;break}return e.abrupt("return");case 18:return fie.debug("seek to",t,c),n._playlist.setNextSegmentByIndex(u),n._stopTick(),e.next=23,n._segmentLoader.cancel();case 23:return e.next=25,n._loadSegmentDirect();case 25:n._startTick();case 26:case"end":return e.stop()}}),e)})))),c(d(n),"_onTimeupdate",(function(){if(n.media){var e=n.config;if(e.isLive&&e.maxLatency&&e.targetLatency&&n.media){var t=n._playlist.liveEdge;if(!t)return;var r=t-n.media.currentTime;r>=e.maxLatency&&(fie.debug("latency jump, currentTime:".concat(n.media.currentTime,", liveEdge:").concat(t,", latency=").concat(r)),n.media.currentTime=t-e.targetLatency)}n._seiService.throw(n.media.currentTime),n.config.allowedStreamTrackChange&&!n.config.softDecode&&n._checkStreamTrackChange(n.media.currentTime)}})),c(d(n),"_tick",(function(){if(n.media){n._startTick();var e=n.media,t=m$.get(e),r=n._segmentLoader.error;if(r){(!e.readyState||n.bufferInfo(.5).remaining<1)&&(r.fatal=!0,n._emitError(O$.network(r)))}else m$.end(t)<.1||!e.readyState||(!function(e){return e&&!e.paused&&!e.ended&&0!==e.playbackRate&&0!==e.readyState}(e)?e.readyState<2&&n._gapService&&n._gapService.do(e,n.config.maxJumpDistance,!e.currentTime||n.isLive):(n._loadSegment(),n._gapService&&n._gapService.do(e,n.config.maxJumpDistance,n.isLive)))}})),n.config=(s=(null==(i=e)?void 0:i.media)||document.createElement("video"),e=t(t({maxPlaylistSize:50,retryCount:3,retryDelay:1e3,pollRetryCount:2,loadTimeout:1e4,preloadTime:30,softDecode:!1,bufferBehind:10,maxJumpDistance:3,startTime:0,targetLatency:10,maxLatency:20,allowedStreamTrackChange:!0},i),{},{media:s})),n.media=n.config.media,n._manifestLoader=new tie(d(n)),n._segmentLoader=new lie(d(n)),n._playlist=new cie(d(n)),n._bufferService=new ene(d(n)),n._seiService=new x7(d(n)),e.softDecode||(n._gapService=new O4),n._stats=new A7(d(n),9e4),n.media.addEventListener("play",n._onPlay),n.media.addEventListener("pause",n._onPause),n.media.addEventListener("seeking",n._onSeeking),n.media.addEventListener("timeupdate",n._onTimeupdate),n}return u(A,[{key:"isLive",get:function(){return this._playlist.isLive}},{key:"streams",get:function(){return this._playlist.streams}},{key:"currentStream",get:function(){return this._playlist.currentStream}},{key:"hasSubtitle",get:function(){return this._playlist.hasSubtitle}},{key:"baseDts",get:function(){var e;return null===(e=this._bufferService)||void 0===e?void 0:e.baseDts}},{key:"speedInfo",value:function(){return this._segmentLoader.speedInfo()}},{key:"bufferInfo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1;return m$.info(m$.get(this.media),null===(e=this.media)||void 0===e?void 0:e.currentTime,t)}},{key:"getStats",value:function(){return this._stats.getStats()}},{key:"playbackQuality",value:function(){return function(e){if(!e)return{};if("function"==typeof e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();return{droppedVideoFrames:t.droppedVideoFrames||t.corruptedVideoFrames,totalVideoFrames:t.totalVideoFrames,creationTime:t.creationTime}}return{droppedVideoFrames:e.webkitDroppedFrameCount,totalVideoFrames:e.webkitDecodedFrameCount,creationTime:performance.now()}}(this.media)}},{key:"load",value:(E=o(r().mark((function e(t){var n,i=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],t&&(this.config.url=t),t=this.config.url,e.next=5,this._reset(n);case 5:return e.next=7,this._loadData(t);case 7:this._startTick();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"_loadData",value:(x=o(r().mark((function e(t){var n,i,o,a,s,u,c,l,f,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&(t=t.trim()),t){e.next=3;break}throw this._emitError(new O$(E$,T$.OPTION,null,null,"m3u8 url is missing"));case 3:return e.next=5,this._loadM3U8(t);case 5:if(n=e.sent,i=this._playlist.currentStream,!this._urlSwitching){e.next=17;break}if(0===i.bitrate&&null!==(o=this._switchUrlOpts)&&void 0!==o&&o.bitrate&&(i.bitrate=null===(a=this._switchUrlOpts)||void 0===a?void 0:a.bitrate),s=this._getSeamlessSwitchPoint(),this.config.startTime=s,u=this._playlist.findSegmentIndexByTime(s),!(c=this._playlist.getSegmentByIndex(u+1))){e.next=17;break}return l=c.start,e.next=17,this._bufferService.removeBuffer(l);case 17:if(!n){e.next=29;break}if(!this.isLive){e.next=25;break}this._bufferService.setLiveSeekableRange(0,4294967295),fie.log("totalDuration first time got",this._playlist.totalDuration),this.config.targetLatency<this._playlist.totalDuration&&(this.config.targetLatency=this._playlist.totalDuration,this.config.maxLatency=1.5*this.config.targetLatency),n.isMaster||this._pollM3U8(t),e.next=29;break;case 25:return e.next=27,this._bufferService.updateDuration(i.totalDuration);case 27:(f=this.config.startTime)&&(null!==(h=this._switchUrlOpts)&&void 0!==h&&h.seamless||(this.media.currentTime=f),this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(f)||0));case 29:return e.next=31,this._loadSegment();case 31:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"replay",value:(k=o(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.config.startTime=0,!this.config.softDecode){e.next=5;break}this.load(),e.next=7;break;case 5:return e.next=7,this.load();case 7:return this._reloadOnPlay=!1,e.abrupt("return",this.media.play(!t));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"switchURL",value:(w=o(r().mark((function e(t){var i,o,a,s,u,c,l,f=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=f.length>1&&void 0!==f[1]?f[1]:{},o={seamless:!1,startTime:0,bitrate:0},e.t0=n(i),e.next="number"===e.t0?5:"boolean"===e.t0?7:"object"===e.t0?9:11;break;case 5:return i={startTime:i},e.abrupt("break",12);case 7:return i={seamless:i},e.abrupt("break",12);case 9:for(a in i)void 0!==i[a]&&null!==i[a]||delete i[a];return e.abrupt("break",12);case 11:throw"unsupported switchURL args: ".concat(i);case 12:if(i=Object.assign({},o,i),u=(s=i).seamless,c=s.startTime,this.config.url=t,this.config.startTime=c,this._switchUrlOpts=i,u){e.next=38;break}if(e.prev=18,!this.config.softDecode){e.next=23;break}e.t1=this.load(t),e.next=26;break;case 23:return e.next=25,this.load(t);case 25:e.t1=e.sent;case 26:l=e.t1,e.next=33;break;case 29:throw e.prev=29,e.t2=e.catch(18),this.emit(Xre.SWITCH_URL_FAILED,e.t2),e.t2;case 33:return this._reloadOnPlay=!1,l&&this.emit(Xre.SWITCH_URL_SUCCESS,{url:t}),e.abrupt("return",this.media.play(!0));case 38:return this._urlSwitching=!0,this._prevSegSn=null,this._prevSegCc=null,this._playlist.reset(),this._bufferService.seamlessSwitch(),e.next=45,this._clear();case 45:return e.next=47,this._loadData(t);case 47:this._startTick();case 48:this._switchUrlOpts=null;case 49:case"end":return e.stop()}}),e,this,[[18,29]])}))),function(e){return w.apply(this,arguments)})},{key:"switchStream",value:(S=o(r().mark((function e(t){var n,i,o,a,s,u=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(u.length>1&&void 0!==u[1])||u[1],i=this.currentStream,o=this.streams,i&&i.id!==t&&o&&!(o.length<2)){e.next=5;break}return e.abrupt("return");case 5:if(a=o.find((function(e){return e.id===t}))){e.next=8;break}return e.abrupt("return");case 8:return e.prev=8,e.next=11,this._clear();case 11:if(!n){e.next=14;break}return e.next=14,this._bufferService.clearAllBuffer();case 14:e.next=19;break;case 16:throw e.prev=16,e.t0=e.catch(8),this._emitError(O$.create(e.t0));case 19:if(i.currentAudioStream&&a.audioStreams.length>2&&(s=i.currentAudioStream.id,a.currentAudioStream=a.audioStreams.find((function(e){return e.id===s}))||a.currentAudioStream),this._playlist.currentStream=a,e.prev=21,!this.isLive&&a.segments.length){e.next=25;break}return e.next=25,this._refreshM3U8();case 25:return this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(this.media.currentTime)||0),this._prevSegCc=null,e.next=29,this._loadSegmentDirect();case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e.catch(21),this._playlist.currentStream=i,e.t1;case 35:return this._startTick(),e.abrupt("return",a);case 37:case"end":return e.stop()}}),e,this,[[8,16],[21,31]])}))),function(e){return S.apply(this,arguments)})},{key:"switchAudioStream",value:(_=o(r().mark((function e(t){var n,i,o,a,s=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(s.length>1&&void 0!==s[1])||s[1],i=this.currentStream){e.next=4;break}return e.abrupt("return");case 4:if((o=i.currentAudioStream)&&o.id!==t&&!(i.audioStreams.length<2)){e.next=7;break}return e.abrupt("return");case 7:if(a=i.audioStreams.find((function(e){return e.id===t}))){e.next=10;break}return e.abrupt("return");case 10:return e.prev=10,e.next=13,this._clear();case 13:if(!n){e.next=16;break}return e.next=16,this._bufferService.clearAllBuffer();case 16:e.next=21;break;case 18:throw e.prev=18,e.t0=e.catch(10),this._emitError(O$.create(e.t0));case 21:if(i.currentAudioStream=a,e.prev=22,!this.isLive&&a.segments.length){e.next=26;break}return e.next=26,this._refreshM3U8();case 26:return this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(this.media.currentTime)||0),this._prevSegCc=null,e.next=30,this._loadSegmentDirect();case 30:e.next=36;break;case 32:throw e.prev=32,e.t1=e.catch(22),i.currentAudioStream=o,e.t1;case 36:return this._startTick(),e.abrupt("return",a);case 38:case"end":return e.stop()}}),e,this,[[10,18],[22,32]])}))),function(e){return _.apply(this,arguments)})},{key:"switchSubtitleStream",value:(b=o(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._playlist.switchSubtitle(t),e.next=3,this._manifestLoader.stopPoll();case 3:return e.next=5,this._refreshM3U8();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"destroy",value:(m=o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.media){e.next=2;break}return e.abrupt("return");case 2:return this.removeAllListeners(),this._playlist.reset(),this._segmentLoader.reset(),this._seiService.reset(),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("pause",this._onPause),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),e.next=12,Promise.all([this._clear(),this._bufferService.destroy()]);case 12:this.media=null;case 13:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"_loadM3U8",value:(g=o(r().mark((function e(t){var n,i,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._manifestLoader.load(t);case 3:i=e.sent,o=v(i,1),n=o[0],e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(0),this._emitError(O$.create(e.t0));case 11:if(n){e.next=13;break}return e.abrupt("return");case 13:if(this._playlist.upsertPlaylist(n),!n.isMaster){e.next=18;break}return null!==(a=this._playlist.currentStream.subtitleStreams)&&void 0!==a&&a.length&&this.emit(Xre.SUBTITLE_PLAYLIST,{list:this._playlist.currentStream.subtitleStreams}),e.next=18,this._refreshM3U8();case 18:return this.emit(Xre.STREAM_PARSED),e.abrupt("return",n);case 20:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return g.apply(this,arguments)})},{key:"_refreshM3U8",value:function(){var e,t,r=this,n=this._playlist.currentStream;if(!n||!n.url)throw this._emitError(O$.create(null,null,new Error("m3u8 url is not defined")));var i=n.url,o=null===(e=n.currentAudioStream)||void 0===e?void 0:e.url,a=null===(t=n.currentSubtitleStream)||void 0===t?void 0:t.url;return this._manifestLoader.load(i,o,a).then((function(e){var t=v(e,3),n=t[0],s=t[1],u=t[2];n&&(r._playlist.upsertPlaylist(n,s,u),r.isLive&&r._pollM3U8(i,o,a))})).catch((function(e){throw r._emitError(O$.create(e))}))}},{key:"_pollM3U8",value:function(e,t,r){var n,i=this,o=this._playlist.isEmpty;this._manifestLoader.poll(e,t,r,(function(e,t,r){i._playlist.upsertPlaylist(e,t,r),i._playlist.clearOldSegment(),e&&o&&!i._playlist.isEmpty&&i._loadSegment(),o&&(o=i._playlist.isEmpty)}),(function(e){i._emitError(O$.create(e))}),1e3*((null===(n=this._playlist.lastSegment)||void 0===n?void 0:n.duration)||0))}},{key:"_loadSegmentDirect",value:(h=o(r().mark((function e(){var t,n,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._playlist.nextSegment){e.next=3;break}return e.abrupt("return");case 3:return n=!1,i=null,e.prev=5,this._segmentProcessing=!0,e.next=9,this._reqAndBufferSegment(t,this._playlist.getAudioSegment(t));case 9:n=e.sent,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),i=e.t0;case 15:return e.prev=15,this._segmentProcessing=!1,e.finish(15);case 18:if(!i){e.next=20;break}return e.abrupt("return",this._emitError(O$.create(i)));case 20:return n&&(this._urlSwitching&&(this._urlSwitching=!1,this.emit(Xre.SWITCH_URL_SUCCESS,{url:this.config.url})),this._playlist.moveSegmentPointer(),t.isLast?this._end():this._loadSegment()),e.abrupt("return",n);case 22:case"end":return e.stop()}}),e,this,[[5,12,15,18]])}))),function(){return h.apply(this,arguments)})},{key:"_reqAndBufferSegment",value:(f=o(r().mark((function e(t,n){var i,o,a,s,u,c,l,f;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t?t.cc:n.cc,a=this._prevSegCc!==o,s=[],e.prev=3,e.next=6,this._segmentLoader.load(t,n,a);case 6:s=e.sent,e.next=14;break;case 9:throw e.prev=9,e.t0=e.catch(3),e.t0.fatal=!1,this._segmentLoader.error=e.t0,e.t0;case 14:if(s[0]){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,(i=this._bufferService).decryptBuffer.apply(i,y(s));case 18:if(u=e.sent){e.next=21;break}return e.abrupt("return");case 21:return c=t?t.sn:n.sn,l=t?t.start:n.start,f=this._playlist.currentStream,this._bufferService.createSource(u[0],u[1],null==f?void 0:f.videoCodec,null==f?void 0:f.audioCodec),e.next=27,this._bufferService.appendBuffer(t,n,u[0],u[1],a,this._prevSegSn===c-1,l);case 27:return e.next=29,this._bufferService.evictBuffer(this.config.bufferBehind);case 29:return this._prevSegCc=o,this._prevSegSn=c,e.abrupt("return",!0);case 32:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(e,t){return f.apply(this,arguments)})},{key:"_checkStreamTrackChange",value:function(e){var t=this._playlist.checkSegmentTrackChange(e,this._bufferService.nbSb);t&&this.switchURL(this.config.url,t.start+.2)}},{key:"_clear",value:(s=o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._disconnectTimer),this._stopTick(),e.next=4,Promise.all([this._segmentLoader.cancel(),this._manifestLoader.stopPoll()]);case 4:this._segmentProcessing=!1;case 5:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"_reset",value:(i=o(r().mark((function e(){var t,n=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],this._reloadOnPlay=!1,this._prevSegSn=null,this._prevSegCc=null,this._switchUrlOpts=null,this._playlist.reset(),this._segmentLoader.reset(),this._seiService.reset(),this._stats.reset(),e.next=11,this._clear();case 11:return e.abrupt("return",this._bufferService.reset(t));case 12:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"_end",value:function(){this._clear(),this._bufferService.endOfStream()}},{key:"_stopTick",value:function(){this._tickTimer&&clearTimeout(this._tickTimer),this._tickTimer=null}},{key:"_startTick",value:function(){this._stopTick(),this._tickTimer=setTimeout(this._tick,this._tickInterval)}},{key:"_emitError",value:function(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===(null===(t=e.originError)||void 0===t?void 0:t.fatal)?fie.warn(e):(fie.table(e),fie.error(e),fie.error(null===(r=this.media)||void 0===r?void 0:r.error),null!==(n=this.media)&&void 0!==n&&n.readyState&&this.media.pause(),this._stopTick(),this._urlSwitching&&(this._urlSwitching=!1,this.emit(Xre.SWITCH_URL_FAILED,e)),this.emit(Xre.ERROR,e),i&&this._end(),this._seiService.reset());return e}},{key:"_getSeamlessSwitchPoint",value:function(){var e=this.media,t=e.currentTime;if(!e.paused){var r,n=this._playlist.findSegmentIndexByTime(e.currentTime),i=this._playlist.getSegmentByIndex(n),o=null===(r=this._stats)||void 0===r?void 0:r.getStats().downloadSpeed;if(o&&i)t+=i.duration*this._playlist.currentStream.bitrate/o+1;else t+=5}return t}}],[{key:"isSupported",value:function(e){return e&&"video"!==e&&"audio"!==e?"undefined"!=typeof WebAssembly:kX.isSupported()}},{key:"enableLogger",value:function(){yX.enable(),Vee.enable()}},{key:"disableLogger",value:function(){yX.disable(),Vee.disable()}}]),A}(NI);c(hie,"version","3.0.0-next.36-1");try{localStorage.getItem("xgd")?hie.enableLogger():hie.disableLogger()}catch(vie){}var die=function(){function e(r,n){var i=this;a(this,e),c(this,"_opts",null),c(this,"_plugin",null),c(this,"_onLowDecode",(function(){var e,r,n,o,a=i._opts,s=a.media,u=a.innerDegrade;null===(e=i._plugin)||void 0===e||null===(r=e.player)||void 0===r||r.emit("lowdecode",s.degradeInfo),null===(n=i._plugin)||void 0===n||null===(o=n.player)||void 0===o||o.emit("core_event",t(t({},s.degradeInfo),{},{eventName:Xre.LOWDECODE})),1===u&&i._degrade(s.src)})),c(this,"_degrade",(function(e){var t=i._plugin.player,r=t.video;if(!r||"MVideo"===r.TAG){var n=t.video.degradeVideo;t.video=n,r.degrade(e),e&&(t.config.url=e);var o=t.root.firstChild;"MVideo"===o.TAG&&t.root.replaceChild(n,o);var a=i._plugin.constructor.pluginName.toLowerCase();t.unRegisterPlugin(a),t.once("canplay",(function(){t.play()}))}})),c(this,"forceDegradeToVideo",(function(e){1===i._opts.innerDegrade&&i._degrade(e)})),this._opts=r,this._plugin=n,this._init()}return u(e,[{key:"_init",value:function(){var e=this._opts,t=e.media,r=e.preloadTime,n=e.innerDegrade,i=e.isLive;t&&(i||!t.setPlayMode?(n&&t.setAttribute("innerdegrade",n),r&&t.setAttribute("preloadtime",r),this._bindEvents()):t.setPlayMode("VOD"))}},{key:"_bindEvents",value:function(){this._opts.media.addEventListener("lowdecode",this._onLowDecode)}},{key:"destroy",value:function(){var e,t;null===(e=this._opts)||void 0===e||null===(t=e.media)||void 0===t||t.removeEventListener("lowdecode",this._onLowDecode),this._plugin=null}}]),e}();var pie=function(e){l(i,e);var r=p(i);function i(){var e;a(this,i);for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return c(d(e=r.call.apply(r,[this].concat(o))),"hls",null),c(d(e),"pluginExtension",null),c(d(e),"getStats",(function(){var t;return null===(t=e.hls)||void 0===t?void 0:t.getStats()})),c(d(e),"destroy",(function(){var t;e.hls&&(e.hls.destroy(),e.hls=null),null===(t=e.pluginExtension)||void 0===t||t.destroy(),e.pluginExtension=null})),c(d(e),"_onSwitchSubtitle",(function(t){var r,n=t.lang;null===(r=e.hls)||void 0===r||r.switchSubtitleStream(n)})),c(d(e),"_onSwitchURL",(function(t,r){var i=d(e),o=i.player,a=i.hls;if(a){var s=function(e,t){var r={startTime:t.player.currentTime};switch(n(e)){case"boolean":r.seamless=e;break;case"object":Object.assign(r,e)}return r}(r,d(e));o.config.url=t,a.switchURL(t,s).catch((function(e){}))}})),e}return u(i,[{key:"core",get:function(){return this.hls}},{key:"version",get:function(){var e;return null===(e=this.hls)||void 0===e?void 0:e.version}},{key:"softDecode",get:function(){var e,t,r=null===(e=this.player)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.mediaType;return!!r&&"video"!==r&&"audio"!==r}},{key:"beforePlayerInit",value:function(){var e,r=this,n=new Promise((function(t,r){e=t})),i=this.player.config;if(i.url||i.__allowHlsEmptyUrl__){this.hls&&this.hls.destroy(),this.player.switchURL=this._onSwitchURL;var o,a,s=i.hls||{};if(s.innerDegrade=s.innerDegrade||i.innerDegrade,null!==s.disconnectTime&&void 0!==s.disconnectTime||(s.disconnectTime=0),this.hls=new hie(t({softDecode:this.softDecode,isLive:i.isLive,media:this.player.media||this.player.video,startTime:i.startTime,url:i.url},s)),this.softDecode)e(!0);else uj.defineGetterOrSetter(this.player,{url:{get:function(){var e,t;return null===(e=r.hls)||void 0===e||null===(t=e.media)||void 0===t?void 0:t.src},configurable:!0}}),null!==(o=this.hls.media)&&void 0!==o&&o.src?this.hls.on("sourceAttached",(function(){e(!0)})):e(!0);if(this.softDecode&&(this.pluginExtension=new die(t({isLive:i.isLive,media:this.player.video},s),this),this.player.forceDegradeToVideo=function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return null===(e=r.pluginExtension)||void 0===e?void 0:e.forceDegradeToVideo.apply(e,n)}),i.isLive)null===(a=this.player)||void 0===a||a.useHooks("replay",(function(){var e;return null===(e=r.hls)||void 0===e?void 0:e.replay()}));return this.on("switch_subtitle",this._onSwitchSubtitle),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),this._transError(),this._transCoreEvent(v4.TTFB),this._transCoreEvent(v4.LOAD_START),this._transCoreEvent(v4.LOAD_RESPONSE_HEADERS),this._transCoreEvent(v4.LOAD_COMPLETE),this._transCoreEvent(v4.LOAD_RETRY),this._transCoreEvent(v4.SOURCEBUFFER_CREATED),this._transCoreEvent(v4.REMOVE_BUFFER),this._transCoreEvent(v4.BUFFEREOS),this._transCoreEvent(v4.KEYFRAME),this._transCoreEvent(v4.METADATA_PARSED),this._transCoreEvent(v4.SEI),this._transCoreEvent(v4.SEI_IN_TIME),this._transCoreEvent(v4.SPEED),this._transCoreEvent(v4.HLS_MANIFEST_LOADED),this._transCoreEvent(v4.HLS_LEVEL_LOADED),this._transCoreEvent(v4.STREAM_EXCEPTION),this._transCoreEvent(v4.SWITCH_URL_SUCCESS),this._transCoreEvent(v4.SWITCH_URL_FAILED),this._transCoreEvent(Xre.NO_AUDIO_TRACK),this._transCoreEvent(Xre.STREAM_PARSED),this._transCoreEvent(Xre.SUBTITLE_SEGMENTS),this._transCoreEvent(Xre.SUBTITLE_PLAYLIST),i.url&&this.hls.load(i.url,!0).catch((function(e){})),n}e()}},{key:"_transError",value:function(){var e=this;this.hls.on(Xre.ERROR,(function(t){e.player&&e.player.emit("error",new rj(e.player,t))}))}},{key:"_transCoreEvent",value:function(e){var r=this;this.hls.on(e,(function(n){r.player&&(r.player.emit("core_event",t(t({},n),{},{eventName:e})),e===v4.SEI_IN_TIME&&r.hls.hasSubtitle&&r._emitSeiPaylodTime(n))}))}},{key:"_emitSeiPaylodTime",value:function(e){try{var t=JSON.parse(Array.from(e.data.payload).map((function(e){return String.fromCharCode(e)})).join("").slice(0,-1));if(!t.rtmp_dts)return;this.player.emit("core_event",{eventName:Xre.SEI_PAYLOAD_TIME,time:t.rtmp_dts})}catch(r){}}}],[{key:"pluginName",get:function(){return"hls"}},{key:"isSupported",value:function(e,t){return hie.isSupported(e,t)}}]),i}(uj);return c(pie,"Hls",hie),c(pie,"EVENT",Xre),VePlayer.register("plugin:hls",pie),pie}));