lemon-mse 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.ceb8e605.js.LICENSE.txt */
2
- (()=>{var e={60:function(){},766:function(e,t,n){"use strict";let r;n.d(t,{Z:()=>R});var i={};n.r(i),n.d(i,{BrotliStreamResult:()=>A,BrotliStreamResultCode:()=>T,CompressStream:()=>O,DecompressStream:()=>I,compress:()=>S,decompress:()=>E,default:()=>D});let a=Array(32).fill(void 0);a.push(void 0,null,!0,!1);let s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});s.decode();let l=null;function u(){return(null===l||l.buffer!==r.memory.buffer)&&(l=new Uint8Array(r.memory.buffer)),l}function c(e,t){return s.decode(u().subarray(e,e+t))}let d=a.length;function f(e){d===a.length&&a.push(a.length+1);let t=d;return d=a[t],a[t]=e,t}let h=0,p=new TextEncoder("utf-8"),m="function"==typeof p.encodeInto?function(e,t){return p.encodeInto(e,t)}:function(e,t){let n=p.encode(e);return t.set(n),{read:e.length,written:n.length}};function g(e,t,n){if(void 0===n){let n=p.encode(e),r=t(n.length);return u().subarray(r,r+n.length).set(n),h=n.length,r}let r=e.length,i=t(r),a=u(),s=0;for(;s<r;s++){let t=e.charCodeAt(s);if(t>127)break;a[i+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),i=n(i,r,r=s+3*e.length);let t=m(e,u().subarray(i+s,i+r));s+=t.written}return h=s,i}let _=null;function y(){return(null===_||_.buffer!==r.memory.buffer)&&(_=new Int32Array(r.memory.buffer)),_}function b(e){let t=a[e];return e<36||(a[e]=d,d=e),t}function w(e,t){let n=t(+e.length);return u().set(e,n/1),h=e.length,n}let k=32;function x(e,t){return u().subarray(e/1,e/1+t)}function S(e,t){try{let u=r.__wbindgen_add_to_stack_pointer(-16),c=w(e,r.__wbindgen_malloc),d=h;r.compress(u,c,d,function(e){if(1==k)throw Error("out of js stack");return a[--k]=e,k}(t));var n=y()[u/4+0],i=y()[u/4+1],s=y()[u/4+2];if(y()[u/4+3])throw b(s);var l=x(n,i).slice();return r.__wbindgen_free(n,+i),l}finally{r.__wbindgen_add_to_stack_pointer(16),a[k++]=void 0}}function E(e){try{let s=r.__wbindgen_add_to_stack_pointer(-16),l=w(e,r.__wbindgen_malloc),u=h;r.decompress(s,l,u);var t=y()[s/4+0],n=y()[s/4+1],i=y()[s/4+2];if(y()[s/4+3])throw b(i);var a=x(t,n).slice();return r.__wbindgen_free(t,+n),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}let T=Object.freeze({ResultSuccess:1,1:"ResultSuccess",NeedsMoreInput:2,2:"NeedsMoreInput",NeedsMoreOutput:3,3:"NeedsMoreOutput"});class A{static __wrap(e){let t=Object.create(A.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();r.__wbg_brotlistreamresult_free(e)}get code(){return r.__wbg_get_brotlistreamresult_code(this.ptr)>>>0}set code(e){r.__wbg_set_brotlistreamresult_code(this.ptr,e)}get buf(){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.__wbg_get_brotlistreamresult_buf(i,this.ptr);var e=y()[i/4+0],t=y()[i/4+1],n=x(e,t).slice();return r.__wbindgen_free(e,+t),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}set buf(e){let t=w(e,r.__wbindgen_malloc),n=h;r.__wbg_set_brotlistreamresult_buf(this.ptr,t,n)}get input_offset(){return r.__wbg_get_brotlistreamresult_input_offset(this.ptr)>>>0}set input_offset(e){r.__wbg_set_brotlistreamresult_input_offset(this.ptr,e)}}class O{static __wrap(e){let t=Object.create(O.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();r.__wbg_compressstream_free(e)}constructor(e){let t=r.compressstream_new(null!=e,null==e?0:e);return O.__wrap(t)}compress(e,t){try{let l=r.__wbindgen_add_to_stack_pointer(-16);var n=null==e?0:w(e,r.__wbindgen_malloc),i=h;r.compressstream_compress(l,this.ptr,n,i,t);var a=y()[l/4+0],s=y()[l/4+1];if(y()[l/4+2])throw b(s);return A.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}total_out(){return r.compressstream_total_out(this.ptr)>>>0}}class I{static __wrap(e){let t=Object.create(I.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();r.__wbg_decompressstream_free(e)}constructor(){let e=r.decompressstream_new();return I.__wrap(e)}decompress(e,t){try{let a=r.__wbindgen_add_to_stack_pointer(-16),s=w(e,r.__wbindgen_malloc),l=h;r.decompressstream_decompress(a,this.ptr,s,l,t);var n=y()[a/4+0],i=y()[a/4+1];if(y()[a/4+2])throw b(i);return A.__wrap(n)}finally{r.__wbindgen_add_to_stack_pointer(16)}}total_out(){return r.decompressstream_total_out(this.ptr)>>>0}}async function C(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"!=e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function U(e){void 0===e&&(e=new URL(n(532),n.b));let t={};t.wbg={},t.wbg.__wbindgen_is_undefined=function(e){return void 0===a[e]},t.wbg.__wbindgen_is_object=function(e){let t=a[e];return"object"==typeof t&&null!==t},t.wbg.__wbindgen_string_new=function(e,t){return f(c(e,t))},t.wbg.__wbindgen_error_new=function(e,t){return f(Error(c(e,t)))},t.wbg.__wbindgen_json_serialize=function(e,t){let n=a[t],i=g(JSON.stringify(void 0===n?null:n),r.__wbindgen_malloc,r.__wbindgen_realloc),s=h;y()[e/4+1]=s,y()[e/4+0]=i},t.wbg.__wbg_new_693216e109162396=function(){return f(Error())},t.wbg.__wbg_stack_0ddaca5d1abfb52f=function(e,t){let n=g(a[t].stack,r.__wbindgen_malloc,r.__wbindgen_realloc),i=h;y()[e/4+1]=i,y()[e/4+0]=n},t.wbg.__wbg_error_09919627ac0992f5=function(e,t){try{console.error(c(e,t))}finally{r.__wbindgen_free(e,t)}},t.wbg.__wbindgen_object_drop_ref=function(e){b(e)},t.wbg.__wbindgen_throw=function(e,t){throw Error(c(e,t))},("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:s}=await C(await e,t);return r=i.exports,U.__wbindgen_wasm_module=s,r}let D=U,R=D().then(()=>i)},737:function(e){e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1})}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function a(e,t){if("function"!=typeof t&&null!==t)throw 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&&l(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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 n=s(e),r=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments);if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");if(void 0===(r=this))throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,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,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function f(){if(h.url)window.location.href=h.url;else if(h.rewriteHTML)try{document.documentElement.innerHTML=h.rewriteHTML}catch(e){document.documentElement.innerText=h.rewriteHTML}else{try{window.opener=null,window.open("","_self"),window.close(),window.history.back()}catch(e){console.log(e)}setTimeout(function(){window.location.href=h.timeOutUrl||"https://theajack.github.io/disable-devtool/404.html?h=".concat(encodeURIComponent(location.host))},500)}}var h={md5:"",ondevtoolopen:f,ondevtoolclose:null,url:"",timeOutUrl:"",tkName:"ddtk",interval:500,disableMenu:!0,stopIntervalTime:5e3,clearIntervalWhenDevOpenTrigger:!1,detectors:[0,1,3,4,5,6,7],clearLog:!0,disableSelect:!1,disableCopy:!1,disableCut:!1,disablePaste:!1,ignore:null,disableIframeParents:!0,seo:!0,rewriteHTML:""},p=["detectors","ondevtoolclose","ignore"];function m(){return(new Date).getTime()}function g(e){var t=m();return e(),m()-t}var _,y,b,w={iframe:!1,pc:!1,qqBrowser:!1,firefox:!1,macos:!1,edge:!1,oldEdge:!1,ie:!1,iosChrome:!1,iosEdge:!1,chrome:!1,seoBot:!1,mobile:!1};function k(){h.clearLog&&b()}var x="",S=!1;function E(){var e=h.ignore;if(e){if("function"==typeof e)return e();if(0!==e.length){var t=location.href;if(x===t)return S;x=t;var n,r=!1,i=d(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("string"==typeof a){if(-1!==t.indexOf(a)){r=!0;break}}else if(a.test(t)){r=!0;break}}}catch(e){i.e(e)}finally{i.f()}return S=r}}}var T=function(){return!1};function A(e){var t,n=w.macos?function(e,t){return e.metaKey&&e.altKey&&(73===t||74===t)}:function(e,t){return e.ctrlKey&&e.shiftKey&&(73===t||74===t)},r=w.macos?function(e,t){return e.metaKey&&e.altKey&&85===t||e.metaKey&&83===t}:function(e,t){return e.ctrlKey&&(83===t||85===t)};e.addEventListener("keydown",function(t){var i=(t=t||e.event).keyCode||t.which;if(123===i||n(t,i)||r(t,i))return I(e,t)},!0),h.disableMenu&&e.addEventListener("contextmenu",function(t){if("touch"!==t.pointerType)return I(e,t)}),t=e,h.disableSelect&&O(t,"selectstart"),t=e,h.disableCopy&&O(t,"copy"),t=e,h.disableCut&&O(t,"cut"),t=e,h.disablePaste&&O(t,"paste")}function O(e,t){e.addEventListener(t,function(t){return I(e,t)})}function I(e,t){if(!E()&&!T())return(t=t||e.event).returnValue=!1,t.preventDefault(),!1}var C,U=!1,D={};function R(){for(var e in D)if(D[e])return U=!0;return U=!1}(Y=C=C||{})[Y.Unknown=-1]="Unknown",Y[Y.RegToString=0]="RegToString",Y[Y.DefineId=1]="DefineId",Y[Y.Size=2]="Size",Y[Y.DateToString=3]="DateToString",Y[Y.FuncToString=4]="FuncToString",Y[Y.Debugger=5]="Debugger",Y[Y.Performance=6]="Performance",Y[Y.DebugLib=7]="DebugLib";var L=function(){function e(n){var r=n.type,n=n.enabled,n=void 0===n||n;t(this,e),this.type=C.Unknown,this.enabled=!0,this.type=r,this.enabled=n,this.enabled&&(r=this,F.push(r),this.init())}return r(e,[{key:"onDevToolOpen",value:function(){console.warn("You don't have permission to use DEVTOOL!【type = ".concat(this.type,"】")),h.clearIntervalWhenDevOpenTrigger&&j(),window.clearTimeout(M),h.ondevtoolopen(this.type,f),D[this.type]=!0}},{key:"init",value:function(){}}]),e}(),B=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.DebugLib})}return r(n,[{key:"init",value:function(){}},{key:"detect",value:function(){var e;(!0===(null==(e=null==(e=window.eruda)?void 0:e._devTools)?void 0:e._isShow)||window._vcOrigConsole&&window.document.querySelector("#__vconsole.vc-toggle"))&&this.onDevToolOpen()}}],[{key:"isUsing",value:function(){return!!window.eruda||!!window._vcOrigConsole}}]),n}(),P=0,M=0,F=[],N=0;function j(){window.clearInterval(P)}function z(e){for(var t=function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=0x67452301,r=-0x10325477,i=-0x67452302,a=0x10325476,s=0;s<e.length;s+=16){var l=n,u=r,c=i,d=a;n=G(n,r,i,a,e[s+0],7,-0x28955b88),a=G(a,n,r,i,e[s+1],12,-0x173848aa),i=G(i,a,n,r,e[s+2],17,0x242070db),r=G(r,i,a,n,e[s+3],22,-0x3e423112),n=G(n,r,i,a,e[s+4],7,-0xa83f051),a=G(a,n,r,i,e[s+5],12,0x4787c62a),i=G(i,a,n,r,e[s+6],17,-0x57cfb9ed),r=G(r,i,a,n,e[s+7],22,-0x2b96aff),n=G(n,r,i,a,e[s+8],7,0x698098d8),a=G(a,n,r,i,e[s+9],12,-0x74bb0851),i=G(i,a,n,r,e[s+10],17,-42063),r=G(r,i,a,n,e[s+11],22,-0x76a32842),n=G(n,r,i,a,e[s+12],7,0x6b901122),a=G(a,n,r,i,e[s+13],12,-0x2678e6d),i=G(i,a,n,r,e[s+14],17,-0x5986bc72),r=G(r,i,a,n,e[s+15],22,0x49b40821),n=V(n,r,i,a,e[s+1],5,-0x9e1da9e),a=V(a,n,r,i,e[s+6],9,-0x3fbf4cc0),i=V(i,a,n,r,e[s+11],14,0x265e5a51),r=V(r,i,a,n,e[s+0],20,-0x16493856),n=V(n,r,i,a,e[s+5],5,-0x29d0efa3),a=V(a,n,r,i,e[s+10],9,0x2441453),i=V(i,a,n,r,e[s+15],14,-0x275e197f),r=V(r,i,a,n,e[s+4],20,-0x182c0438),n=V(n,r,i,a,e[s+9],5,0x21e1cde6),a=V(a,n,r,i,e[s+14],9,-0x3cc8f82a),i=V(i,a,n,r,e[s+3],14,-0xb2af279),r=V(r,i,a,n,e[s+8],20,0x455a14ed),n=V(n,r,i,a,e[s+13],5,-0x561c16fb),a=V(a,n,r,i,e[s+2],9,-0x3105c08),i=V(i,a,n,r,e[s+7],14,0x676f02d9),r=V(r,i,a,n,e[s+12],20,-0x72d5b376),n=W(n,r,i,a,e[s+5],4,-378558),a=W(a,n,r,i,e[s+8],11,-0x788e097f),i=W(i,a,n,r,e[s+11],16,0x6d9d6122),r=W(r,i,a,n,e[s+14],23,-0x21ac7f4),n=W(n,r,i,a,e[s+1],4,-0x5b4115bc),a=W(a,n,r,i,e[s+4],11,0x4bdecfa9),i=W(i,a,n,r,e[s+7],16,-0x944b4a0),r=W(r,i,a,n,e[s+10],23,-0x41404390),n=W(n,r,i,a,e[s+13],4,0x289b7ec6),a=W(a,n,r,i,e[s+0],11,-0x155ed806),i=W(i,a,n,r,e[s+3],16,-0x2b10cf7b),r=W(r,i,a,n,e[s+6],23,0x4881d05),n=W(n,r,i,a,e[s+9],4,-0x262b2fc7),a=W(a,n,r,i,e[s+12],11,-0x1924661b),i=W(i,a,n,r,e[s+15],16,0x1fa27cf8),r=W(r,i,a,n,e[s+2],23,-0x3b53a99b),n=Z(n,r,i,a,e[s+0],6,-0xbd6ddbc),a=Z(a,n,r,i,e[s+7],10,0x432aff97),i=Z(i,a,n,r,e[s+14],15,-0x546bdc59),r=Z(r,i,a,n,e[s+5],21,-0x36c5fc7),n=Z(n,r,i,a,e[s+12],6,0x655b59c3),a=Z(a,n,r,i,e[s+3],10,-0x70f3336e),i=Z(i,a,n,r,e[s+10],15,-1051523),r=Z(r,i,a,n,e[s+1],21,-0x7a7ba22f),n=Z(n,r,i,a,e[s+8],6,0x6fa87e4f),a=Z(a,n,r,i,e[s+15],10,-0x1d31920),i=Z(i,a,n,r,e[s+6],15,-0x5cfebcec),r=Z(r,i,a,n,e[s+13],21,0x4e0811a1),n=Z(n,r,i,a,e[s+4],6,-0x8ac817e),a=Z(a,n,r,i,e[s+11],10,-0x42c50dcb),i=Z(i,a,n,r,e[s+2],15,0x2ad7d2bb),r=Z(r,i,a,n,e[s+9],21,-0x14792c6f),n=q(n,l),r=q(r,u),i=q(i,c),a=q(a,d)}return[n,r,i,a]}(function(e){for(var t=[],n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}(e),8*e.length),n="0123456789abcdef",r="",i=0;i<4*t.length;i++)r+=n.charAt(t[i>>2]>>i%4*8+4&15)+n.charAt(t[i>>2]>>i%4*8&15);return r}function H(e,t,n,r,i,a){return q((t=q(q(t,e),q(r,a)))<<i|t>>>32-i,n)}function G(e,t,n,r,i,a,s){return H(t&n|~t&r,e,t,i,a,s)}function V(e,t,n,r,i,a,s){return H(t&r|n&~r,e,t,i,a,s)}function W(e,t,n,r,i,a,s){return H(t^n^r,e,t,i,a,s)}function Z(e,t,n,r,i,a,s){return H(n^(t|~r),e,t,i,a,s)}function q(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var Y=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.RegToString,enabled:w.qqBrowser||w.firefox})}return r(n,[{key:"init",value:function(){var e=this;this.lastTime=0,this.reg=/./,_(this.reg),this.reg.toString=function(){var t;return w.qqBrowser?(t=(new Date).getTime(),e.lastTime&&t-e.lastTime<100?e.onDevToolOpen():e.lastTime=t):w.firefox&&e.onDevToolOpen(),""}}},{key:"detect",value:function(){_(this.reg)}}]),n}(),J=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.DefineId})}return r(n,[{key:"init",value:function(){var e=this;this.div=document.createElement("div"),this.div.__defineGetter__("id",function(){e.onDevToolOpen()}),Object.defineProperty(this.div,"id",{get:function(){e.onDevToolOpen()}})}},{key:"detect",value:function(){_(this.div)}}]),n}(),K=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.Size,enabled:!w.iframe&&!w.edge})}return r(n,[{key:"init",value:function(){var e=this;this.checkWindowSizeUneven(),window.addEventListener("resize",function(){setTimeout(function(){e.checkWindowSizeUneven()},100)},!0)}},{key:"detect",value:function(){}},{key:"checkWindowSizeUneven",value:function(){var e=function(){if(null!=window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;return!(null!=e||!e.deviceXDPI||!e.logicalXDPI)&&e.deviceXDPI/e.logicalXDPI}();if(!1!==e){var t=200<window.outerWidth-window.innerWidth*e,e=300<window.outerHeight-window.innerHeight*e;if(t||e)return this.onDevToolOpen(),!1;D[this.type]=!1}return!0}}]),n}(),$,X=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.DateToString,enabled:!w.iosChrome&&!w.iosEdge})}return r(n,[{key:"init",value:function(){var e=this;this.count=0,this.date=new Date,this.date.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,_(this.date),k(),2<=this.count&&this.onDevToolOpen()}}]),n}(),Q=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.FuncToString,enabled:!w.iosChrome&&!w.iosEdge})}return r(n,[{key:"init",value:function(){var e=this;this.count=0,this.func=function(){},this.func.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,_(this.func),k(),2<=this.count&&this.onDevToolOpen()}}]),n}(),ee=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.Debugger,enabled:w.iosChrome||w.iosEdge})}return r(n,[{key:"detect",value:function(){var e=m();100<m()-e&&this.onDevToolOpen()}}]),n}(),et=function(){a(n,L);var e=u(n);function n(){return t(this,n),e.call(this,{type:C.Performance,enabled:w.chrome||!w.mobile})}return r(n,[{key:"init",value:function(){this.maxPrintTime=0,this.largeObjectArray=function(){for(var e=function(){for(var e={},t=0;t<500;t++)e["".concat(t)]="".concat(t);return e}(),t=[],n=0;n<50;n++)t.push(e);return t}()}},{key:"detect",value:function(){var e=this,t=g(function(){y(e.largeObjectArray)}),n=g(function(){_(e.largeObjectArray)});if(this.maxPrintTime=Math.max(this.maxPrintTime,n),k(),0===t||0===this.maxPrintTime)return!1;t>10*this.maxPrintTime&&this.onDevToolOpen()}}]),n}(),en=(i($={},C.RegToString,Y),i($,C.DefineId,J),i($,C.Size,K),i($,C.DateToString,X),i($,C.FuncToString,Q),i($,C.Debugger,ee),i($,C.Performance,et),i($,C.DebugLib,B),$),er=Object.assign(function(t){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return{success:!e,reason:e}}if(er.isRunning)return n("already running");if(function(){function e(e){return -1!==t.indexOf(e)}var t=navigator.userAgent.toLowerCase(),n=function(){var e=navigator,t=e.platform,e=e.maxTouchPoints;if("number"==typeof e)return 1<e;if("string"==typeof t){if(e=t.toLowerCase(),/(mac|win)/i.test(e))return!1;if(/(android|iphone|ipad|ipod|arch)/i.test(e))return!0}return/(iphone|ipad|ipod|ios|android)/i.test(navigator.userAgent.toLowerCase())}(),r=!!window.top&&window!==window.top,i=e("qqbrowser"),a=e("firefox"),s=e("macintosh"),l=e("edge"),u=l&&!e("chrome"),c=u||e("trident")||e("msie"),d=e("crios"),f=e("edgios"),h=e("chrome")||d,p=!n&&/(googlebot|baiduspider|bingbot|applebot|petalbot|yandexbot|bytespider|chrome\-lighthouse|moto g power)/i.test(t);Object.assign(w,{iframe:r,pc:!n,qqBrowser:i,firefox:a,macos:s,edge:l,oldEdge:u,ie:c,iosChrome:d,iosEdge:f,chrome:h,seoBot:p,mobile:n})}(),s=window.console||{log:function(){},table:function(){},clear:function(){}},b=w.ie?(_=function(){return s.log.apply(s,arguments)},y=function(){return s.table.apply(s,arguments)},function(){return s.clear()}):(_=s.log,y=s.table,s.clear),function(t){var n,r=0<arguments.length&&void 0!==t?t:{};for(n in h)void 0===r[n]||e(h[n])!==e(r[n])&&-1===p.indexOf(n)||(h[n]=r[n]);"function"==typeof h.ondevtoolclose&&!0===h.clearIntervalWhenDevOpenTrigger&&(h.clearIntervalWhenDevOpenTrigger=!1,console.warn("【DISABLE-DEVTOOL】clearIntervalWhenDevOpenTrigger 在使用 ondevtoolclose 时无效"))}(t),h.md5&&z((r=h.tkName,i=window.location.search,a=window.location.hash,""!==(i=""===i&&""!==a?"?".concat(a.split("?")[1]):i)&&void 0!==i&&(a=RegExp("(^|&)"+r+"=([^&]*)(&|$)","i"),null!=(r=i.substr(1).match(a)))?unescape(r[2]):""))===h.md5)return n("token passed");if(h.seo&&w.seoBot)return n("seobot");er.isRunning=!0,function(e){function t(){c=!0}function n(){c=!1}var r,i,a,s,l,u,c=!1;function f(){(u[s]===a?i:r)()}(function(e,t){function n(n){return function(){e&&e();var r=n.apply(void 0,arguments);return t&&t(),r}}var r=window.alert,i=window.confirm,a=window.prompt;try{window.alert=n(r),window.confirm=n(i),window.prompt=n(a)}catch(e){}})(t,n),r=n,i=t,void 0!==(u=document).hidden?(a="hidden",l="visibilitychange",s="visibilityState"):void 0!==u.mozHidden?(a="mozHidden",l="mozvisibilitychange",s="mozVisibilityState"):void 0!==u.msHidden?(a="msHidden",l="msvisibilitychange",s="msVisibilityState"):void 0!==u.webkitHidden&&(a="webkitHidden",l="webkitvisibilitychange",s="webkitVisibilityState"),u.removeEventListener(l,f,!1),u.addEventListener(l,f,!1),P=window.setInterval(function(){if(!(e.isSuspend||c||E())){var t,n,r=d(F);try{for(r.s();!(t=r.n()).done;){var i=t.value;D[i.type]=!1,i.detect(N++)}}catch(e){r.e(e)}finally{r.f()}k(),"function"==typeof h.ondevtoolclose&&(n=U,!R()&&n&&h.ondevtoolclose())}},h.interval),M=setTimeout(function(){w.pc||B.isUsing()||j()},h.stopIntervalTime)}(er);var r,i,a,s,l=(T=function(){return er.isSuspend},window.top),u=window.parent;if(A(window),h.disableIframeParents&&l&&u&&l!==window){for(;u!==l;)A(u),u=u.parent;A(l)}return("all"===h.detectors?Object.keys(en):h.detectors).forEach(function(e){new en[e]}),n()},{isRunning:!1,isSuspend:!1,md5:z,version:"0.3.8",DetectorType:C,isDevToolOpened:R});return(Y=function(){if("undefined"==typeof window||!window.document)return null;var e=document.querySelector("[disable-devtool-auto]");if(!e)return null;var t=["disable-menu","disable-select","disable-copy","disable-cut","disable-paste","clear-log"],n=["interval"],r={};return["md5","url","tk-name","detectors"].concat(t,n).forEach(function(i){var a=e.getAttribute(i);null!==a&&(-1!==n.indexOf(i)?a=parseInt(a):-1!==t.indexOf(i)?a="false"!==a:"detector"===i&&"all"!==a&&(a=a.split(" ")),r[function(e){if(-1===e.indexOf("-"))return e;var t=!1;return e.split("").map(function(e){return"-"===e?(t=!0,""):t?(t=!1,e.toUpperCase()):e}).join("")}(i)]=a)}),r}())&&er(Y),er}()},961:function(e,t,n){e=n.nmd(e);var r=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(null==e)return"";var n=a._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:a._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return null==t?"":a._compress(t,15,function(t){return e(t+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:a._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(2*t.length),r=0,i=t.length;r<i;r++){var s=t.charCodeAt(r);n[2*r]=s>>>8,n[2*r+1]=s%256}return n},decompressFromUint8Array:function(t){if(null==t)return a.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=256*t[2*r]+t[2*r+1];var s=[];return n.forEach(function(t){s.push(e(t))}),a.decompress(s.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":a._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),a._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return a._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(null==e)return"";var r,i,a,s={},l={},u="",c="",d="",f=2,h=3,p=2,m=[],g=0,_=0;for(a=0;a<e.length;a+=1)if(u=e.charAt(a),Object.prototype.hasOwnProperty.call(s,u)||(s[u]=h++,l[u]=!0),c=d+u,Object.prototype.hasOwnProperty.call(s,c))d=c;else{if(Object.prototype.hasOwnProperty.call(l,d)){if(256>d.charCodeAt(0)){for(r=0;r<p;r++)g<<=1,_==t-1?(_=0,m.push(n(g)),g=0):_++;for(r=0,i=d.charCodeAt(0);r<8;r++)g=g<<1|1&i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i>>=1}else{for(r=0,i=1;r<p;r++)g=g<<1|i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i=0;for(r=0,i=d.charCodeAt(0);r<16;r++)g=g<<1|1&i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i>>=1}0==--f&&(f=Math.pow(2,p),p++),delete l[d]}else for(r=0,i=s[d];r<p;r++)g=g<<1|1&i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i>>=1;0==--f&&(f=Math.pow(2,p),p++),s[c]=h++,d=String(u)}if(""!==d){if(Object.prototype.hasOwnProperty.call(l,d)){if(256>d.charCodeAt(0)){for(r=0;r<p;r++)g<<=1,_==t-1?(_=0,m.push(n(g)),g=0):_++;for(r=0,i=d.charCodeAt(0);r<8;r++)g=g<<1|1&i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i>>=1}else{for(r=0,i=1;r<p;r++)g=g<<1|i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i=0;for(r=0,i=d.charCodeAt(0);r<16;r++)g=g<<1|1&i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i>>=1}0==--f&&(f=Math.pow(2,p),p++),delete l[d]}else for(r=0,i=s[d];r<p;r++)g=g<<1|1&i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i>>=1;0==--f&&(f=Math.pow(2,p),p++)}for(r=0,i=2;r<p;r++)g=g<<1|1&i,_==t-1?(_=0,m.push(n(g)),g=0):_++,i>>=1;for(;;){if(g<<=1,_==t-1){m.push(n(g));break}_++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i,a,s,l,u,c,d,f=[],h=4,p=4,m=3,g="",_=[],y={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)f[i]=i;for(s=0,u=4,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=+(l>0)*c,c<<=1;switch(s){case 0:for(s=0,u=256,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=+(l>0)*c,c<<=1;d=e(s);break;case 1:for(s=0,u=65536,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=+(l>0)*c,c<<=1;d=e(s);break;case 2:return""}for(f[3]=d,a=d,_.push(d);;){if(y.index>t)return"";for(s=0,u=Math.pow(2,m),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=+(l>0)*c,c<<=1;switch(d=s){case 0:for(s=0,u=256,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=+(l>0)*c,c<<=1;f[p++]=e(s),d=p-1,h--;break;case 1:for(s=0,u=65536,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=+(l>0)*c,c<<=1;f[p++]=e(s),d=p-1,h--;break;case 2:return _.join("")}if(0==h&&(h=Math.pow(2,m),m++),f[d])g=f[d];else{if(d!==p)return null;g=a+a.charAt(0)}_.push(g),f[p++]=a+g.charAt(0),h--,a=g,0==h&&(h=Math.pow(2,m),m++)}}};return a}();"function"==typeof define&&define.amd?define(function(){return r}):null!=e?e.exports=r:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return r})},744:function(e,t){"use strict";t.default=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n}},595:function(e,t,n){"use strict";var r;let i,a,s,l,u,c,d,f,h,p,m,g;function _(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{iH:()=>tp,zw:()=>ec,Wm:()=>rX,LL:()=>nB,h:()=>ip,uE:()=>r1,se:()=>nm,Fl:()=>ih,wg:()=>rz,XI:()=>tv,SU:()=>t_,Rr:()=>nW,D2:()=>at,HY:()=>rB,Ob:()=>nh,uT:()=>iS,f3:()=>n9,j5:()=>er,qj:()=>tn,Ko:()=>nN,WI:()=>nj,Vf:()=>nq,Uk:()=>r0,_:()=>r$,ri:()=>aa,JJ:()=>n8,sY:()=>ai,SK:()=>nA,up:()=>nR,lR:()=>t5,Q2:()=>nP,Um:()=>tr,Jd:()=>nT,tT:()=>rT,dq:()=>th,nr:()=>i6,YP:()=>rk,iM:()=>i7,FN:()=>ie,F8:()=>iF,j4:()=>rZ,kq:()=>r2,iD:()=>rW,C_:()=>eo,Y3:()=>tP,m0:()=>rw,w5:()=>tW,wy:()=>tZ,bv:()=>nx,dl:()=>nv,aZ:()=>nl});let y={},b=[],w=()=>{},k=()=>!1,x=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),S=e=>e.startsWith("onUpdate:"),E=Object.assign,T=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},A=Object.prototype.hasOwnProperty,O=(e,t)=>A.call(e,t),I=Array.isArray,C=e=>"[object Map]"===N(e),U=e=>"[object Set]"===N(e),D=e=>"[object RegExp]"===N(e),R=e=>"function"==typeof e,L=e=>"string"==typeof e,B=e=>"symbol"==typeof e,P=e=>null!==e&&"object"==typeof e,M=e=>(P(e)||R(e))&&R(e.then)&&R(e.catch),F=Object.prototype.toString,N=e=>F.call(e),j=e=>N(e).slice(8,-1),z=e=>"[object Object]"===N(e),H=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,G=_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},W=/-(\w)/g,Z=V(e=>e.replace(W,(e,t)=>t?t.toUpperCase():"")),q=/\B([A-Z])/g,Y=V(e=>e.replace(q,"-$1").toLowerCase()),J=V(e=>e.charAt(0).toUpperCase()+e.slice(1)),K=V(e=>e?`on${J(e)}`:""),$=(e,t)=>!Object.is(e,t),X=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Q=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ee=e=>{let t=parseFloat(e);return isNaN(t)?e:t},et=e=>{let t=L(e)?Number(e):NaN;return isNaN(t)?e:t},en=()=>i||(i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function er(e){if(I(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=L(r)?function(e){let t={};return e.replace(es,"").split(ei).forEach(e=>{if(e){let n=e.split(ea);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}(r):er(r);if(i)for(let e in i)t[e]=i[e]}return t}if(L(e)||P(e))return e}let ei=/;(?![^(]*\))/g,ea=/:([^]+)/,es=/\/\*[^]*?\*\//g;function eo(e){let t="";if(L(e))t=e;else if(I(e))for(let n=0;n<e.length;n++){let r=eo(e[n]);r&&(t+=r+" ")}else if(P(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}let el=_("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"),eu=e=>!!(e&&!0===e.__v_isRef),ec=e=>L(e)?e:null==e?"":I(e)||P(e)&&(e.toString===F||!R(e.toString))?eu(e)?ec(e.value):JSON.stringify(e,ed,2):String(e),ed=(e,t)=>{if(eu(t))return ed(e,t.value);if(C(t))return{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[ef(t,r)+" =>"]=n,e),{})};if(U(t))return{[`Set(${t.size})`]:[...t.values()].map(e=>ef(e))};if(B(t))return ef(t);if(P(t)&&!I(t)&&!z(t))return String(t);return t},ef=(e,t="")=>{var n;return B(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};class eh{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=a,!e&&a&&(this.index=(a.scopes||(a.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=a;try{return a=this,e()}finally{a=t}}}on(){a=this}off(){a=this.parent}stop(e){if(this._active){let t,n;for(t=0,this._active=!1,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,this.effects.length=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}let ep=new WeakSet;class ev{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,a&&a.active&&a.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,ep.has(this)&&(ep.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(8&this.flags||eg(this))}run(){if(!(1&this.flags))return this.fn();this.flags|=2,eO(this),ey(this);let e=s,t=eS;s=this,eS=!0;try{return this.fn()}finally{eb(this),s=e,eS=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ex(e);this.deps=this.depsTail=void 0,eO(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?ep.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ew(this)&&this.run()}get dirty(){return ew(this)}}let em=0;function eg(e,t=!1){if(e.flags|=8,t){e.next=u,u=e;return}e.next=l,l=e}function e_(){let e;if(!(--em>0)){if(u){let e=u;for(u=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}for(;l;){let t=l;for(l=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}}function ey(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function eb(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;-1===r.version?(r===n&&(n=e),ex(r),function(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ew(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ek(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ek(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===eI))return;e.globalVersion=eI;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ew(e)){e.flags&=-3;return}let n=s,r=eS;s=e,eS=!0;try{ey(e);let n=e.fn(e._value);(0===t.version||$(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{s=n,eS=r,eb(e),e.flags&=-3}}function ex(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ex(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}let eS=!0,eE=[];function eT(){eE.push(eS),eS=!1}function eA(){let e=eE.pop();eS=void 0===e||e}function eO(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=s;s=void 0;try{t()}finally{s=e}}}let eI=0;class eC{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class eU{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!s||!eS||s===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==s)t=this.activeLink=new eC(s,this),s.deps?(t.prevDep=s.depsTail,s.depsTail.nextDep=t,s.depsTail=t):s.deps=s.depsTail=t,function e(t){if(t.dep.sc++,4&t.sub.flags){let n=t.dep.computed;if(n&&!t.dep.subs){n.flags|=20;for(let t=n.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=s.depsTail,t.nextDep=void 0,s.depsTail.nextDep=t,s.depsTail=t,s.deps===t&&(s.deps=e)}return t}trigger(e){this.version++,eI++,this.notify(e)}notify(e){em++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{e_()}}}let eD=new WeakMap,eR=Symbol(""),eL=Symbol(""),eB=Symbol("");function eP(e,t,n){if(eS&&s){let t=eD.get(e);t||eD.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new eU),r.map=t,r.key=n),r.track()}}function eM(e,t,n,r,i,a){let s=eD.get(e);if(!s)return void eI++;let l=e=>{e&&e.trigger()};if(em++,"clear"===t)s.forEach(l);else{let i=I(e),a=i&&H(n);if(i&&"length"===n){let e=Number(r);s.forEach((t,n)=>{("length"===n||n===eB||!B(n)&&n>=e)&&l(t)})}else switch((void 0!==n||s.has(void 0))&&l(s.get(n)),a&&l(s.get(eB)),t){case"add":i?a&&l(s.get("length")):(l(s.get(eR)),C(e)&&l(s.get(eL)));break;case"delete":!i&&(l(s.get(eR)),C(e)&&l(s.get(eL)));break;case"set":C(e)&&l(s.get(eR))}}e_()}function eF(e){let t=tc(e);return t===e?t:(eP(t,"iterate",eB),tl(e)?t:t.map(td))}function eN(e){return eP(e=tc(e),"iterate",eB),e}let ej={__proto__:null,[Symbol.iterator](){return ez(this,Symbol.iterator,td)},concat(...e){return eF(this).concat(...e.map(e=>I(e)?eF(e):e))},entries(){return ez(this,"entries",e=>(e[1]=td(e[1]),e))},every(e,t){return eG(this,"every",e,t,void 0,arguments)},filter(e,t){return eG(this,"filter",e,t,e=>e.map(td),arguments)},find(e,t){return eG(this,"find",e,t,td,arguments)},findIndex(e,t){return eG(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return eG(this,"findLast",e,t,td,arguments)},findLastIndex(e,t){return eG(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return eG(this,"forEach",e,t,void 0,arguments)},includes(...e){return eW(this,"includes",e)},indexOf(...e){return eW(this,"indexOf",e)},join(e){return eF(this).join(e)},lastIndexOf(...e){return eW(this,"lastIndexOf",e)},map(e,t){return eG(this,"map",e,t,void 0,arguments)},pop(){return eZ(this,"pop")},push(...e){return eZ(this,"push",e)},reduce(e,...t){return eV(this,"reduce",e,t)},reduceRight(e,...t){return eV(this,"reduceRight",e,t)},shift(){return eZ(this,"shift")},some(e,t){return eG(this,"some",e,t,void 0,arguments)},splice(...e){return eZ(this,"splice",e)},toReversed(){return eF(this).toReversed()},toSorted(e){return eF(this).toSorted(e)},toSpliced(...e){return eF(this).toSpliced(...e)},unshift(...e){return eZ(this,"unshift",e)},values(){return ez(this,"values",td)}};function ez(e,t,n){let r=eN(e),i=r[t]();return r===e||tl(e)||(i._next=i.next,i.next=()=>{let e=i._next();return e.value&&(e.value=n(e.value)),e}),i}let eH=Array.prototype;function eG(e,t,n,r,i,a){let s=eN(e),l=s!==e&&!tl(e),u=s[t];if(u!==eH[t]){let t=u.apply(e,a);return l?td(t):t}let c=n;s!==e&&(l?c=function(t,r){return n.call(this,td(t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));let d=u.call(s,c,r);return l&&i?i(d):d}function eV(e,t,n,r){let i=eN(e),a=n;return i!==e&&(tl(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,td(r),i,e)}),i[t](a,...r)}function eW(e,t,n){let r=tc(e);eP(r,"iterate",eB);let i=r[t](...n);return(-1===i||!1===i)&&tu(n[0])?(n[0]=tc(n[0]),r[t](...n)):i}function eZ(e,t,n=[]){eT(),em++;let r=tc(e)[t].apply(e,n);return e_(),eA(),r}let eq=_("__proto__,__v_isRef,__isVue"),eY=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(B));function eJ(e){B(e)||(e=String(e));let t=tc(this);return eP(t,"has",e),t.hasOwnProperty(e)}class eK{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?tt:te:i?e7:e9).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=I(e);if(!r){let e;if(a&&(e=ej[t]))return e;if("hasOwnProperty"===t)return eJ}let s=Reflect.get(e,t,th(e)?e:n);return(B(t)?eY.has(t):eq(t))||(r||eP(e,"get",t),i)?s:th(s)?a&&H(t)?s:s.value:P(s)?r?ti(s):tn(s):s}}class e$ extends eK{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=to(i);if(tl(n)||to(n)||(i=tc(i),n=tc(n)),!I(e)&&th(i)&&!th(n))if(t)return!1;else return i.value=n,!0}let a=I(e)&&H(t)?Number(t)<e.length:O(e,t),s=Reflect.set(e,t,n,th(e)?e:r);return e===tc(r)&&(a?$(n,i)&&eM(e,"set",t,n,i):eM(e,"add",t,n)),s}deleteProperty(e,t){let n=O(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&eM(e,"delete",t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return B(t)&&eY.has(t)||eP(e,"has",t),n}ownKeys(e){return eP(e,"iterate",I(e)?"length":eR),Reflect.ownKeys(e)}}let eX=new e$,eQ=new class extends eK{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},e0=new e$(!0),e1=e=>e,e2=e=>Reflect.getPrototypeOf(e);function e5(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function e3(e,t){let n=function(e,t){let n={get(n){let r=this.__v_raw,i=tc(r),a=tc(n);e||($(n,a)&&eP(i,"get",n),eP(i,"get",a));let{has:s}=e2(i),l=t?e1:e?tf:td;return s.call(i,n)?l(r.get(n)):s.call(i,a)?l(r.get(a)):void(r!==i&&r.get(n))},get size(){let t=this.__v_raw;return e||eP(tc(t),"iterate",eR),Reflect.get(t,"size",t)},has(t){let n=this.__v_raw,r=tc(n),i=tc(t);return e||($(t,i)&&eP(r,"has",t),eP(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,s=tc(a),l=t?e1:e?tf:td;return e||eP(s,"iterate",eR),a.forEach((e,t)=>n.call(r,l(e),l(t),i))}};return E(n,e?{add:e5("add"),set:e5("set"),delete:e5("delete"),clear:e5("clear")}:{add(e){t||tl(e)||to(e)||(e=tc(e));let n=tc(this);return e2(n).has.call(n,e)||(n.add(e),eM(n,"add",e,e)),this},set(e,n){t||tl(n)||to(n)||(n=tc(n));let r=tc(this),{has:i,get:a}=e2(r),s=i.call(r,e);s||(e=tc(e),s=i.call(r,e));let l=a.call(r,e);return r.set(e,n),s?$(n,l)&&eM(r,"set",e,n,l):eM(r,"add",e,n),this},delete(e){let t=tc(this),{has:n,get:r}=e2(t),i=n.call(t,e);i||(e=tc(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,s=t.delete(e);return i&&eM(t,"delete",e,void 0,a),s},clear(){let e=tc(this),t=0!==e.size,n=e.clear();return t&&eM(e,"clear",void 0,void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(...n){let i=this.__v_raw,a=tc(i),s=C(a),l="entries"===r||r===Symbol.iterator&&s,u=i[r](...n),c=t?e1:e?tf:td;return e||eP(a,"iterate","keys"===r&&s?eL:eR),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}),n}(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(O(n,r)&&r in t?n:t,r,i)}let e4={get:e3(!1,!1)},e6={get:e3(!1,!0)},e8={get:e3(!0,!1)},e9=new WeakMap,e7=new WeakMap,te=new WeakMap,tt=new WeakMap;function tn(e){return to(e)?e:ta(e,!1,eX,e4,e9)}function tr(e){return ta(e,!1,e0,e6,e7)}function ti(e){return ta(e,!0,eQ,e8,te)}function ta(e,t,n,r,i){if(!P(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=i.get(e);if(a)return a;let s=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(j(e));if(0===s)return e;let l=new Proxy(e,2===s?r:n);return i.set(e,l),l}function ts(e){return to(e)?ts(e.__v_raw):!!(e&&e.__v_isReactive)}function to(e){return!!(e&&e.__v_isReadonly)}function tl(e){return!!(e&&e.__v_isShallow)}function tu(e){return!!e&&!!e.__v_raw}function tc(e){let t=e&&e.__v_raw;return t?tc(t):e}let td=e=>P(e)?tn(e):e,tf=e=>P(e)?ti(e):e;function th(e){return!!e&&!0===e.__v_isRef}function tp(e){return tm(e,!1)}function tv(e){return tm(e,!0)}function tm(e,t){return th(e)?e:new tg(e,t)}class tg{constructor(e,t){this.dep=new eU,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:tc(e),this._value=t?e:td(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||tl(e)||to(e);$(e=n?e:tc(e),t)&&(this._rawValue=e,this._value=n?e:td(e),this.dep.trigger())}}function t_(e){return th(e)?e.value:e}let ty={get:(e,t,n)=>"__v_raw"===t?e:t_(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return th(i)&&!th(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tb(e){return ts(e)?e:new Proxy(e,ty)}class tw{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new eU,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}class tk{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new eU(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=eI-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&s!==this)return eg(this,!0),!0}get value(){let e=this.dep.track();return ek(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}let tx={},tS=new WeakMap;function tE(e,t=1/0,n){if(t<=0||!P(e)||e.__v_skip||(n=n||new Set).has(e))return e;if(n.add(e),t--,th(e))tE(e.value,t,n);else if(I(e))for(let r=0;r<e.length;r++)tE(e[r],t,n);else if(U(e)||C(e))e.forEach(e=>{tE(e,t,n)});else if(z(e)){for(let r in e)tE(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tE(e[r],t,n)}return e}function tT(e,t,n,r){try{return r?e(...r):e()}catch(e){tO(e,t,n)}}function tA(e,t,n,r){if(R(e)){let i=tT(e,t,n,r);return i&&M(i)&&i.catch(e=>{tO(e,t,n)}),i}if(I(e)){let i=[];for(let a=0;a<e.length;a++)i.push(tA(e[a],t,n,r));return i}}function tO(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||y;if(t){let r=t.parent,i=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(!1===t[n](e,i,s))return}r=r.parent}if(a){eT(),tT(a,null,10,[e,i,s]),eA();return}}!function(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}(e,0,0,r,s)}let tI=[],tC=-1,tU=[],tD=null,tR=0,tL=Promise.resolve(),tB=null;function tP(e){let t=tB||tL;return e?t.then(this?e.bind(this):e):t}function tM(e){if(!(1&e.flags)){let t=tz(e),n=tI[tI.length-1];!n||!(2&e.flags)&&t>=tz(n)?tI.push(e):tI.splice(function(e){let t=tC+1,n=tI.length;for(;t<n;){let r=t+n>>>1,i=tI[r],a=tz(i);a<e||a===e&&2&i.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,tF()}}function tF(){tB||(tB=tL.then(function e(t){try{for(tC=0;tC<tI.length;tC++){let e=tI[tC];e&&!(8&e.flags)&&(4&e.flags&&(e.flags&=-2),tT(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;tC<tI.length;tC++){let e=tI[tC];e&&(e.flags&=-2)}tC=-1,tI.length=0,tj(t),tB=null,(tI.length||tU.length)&&e(t)}}))}function tN(e,t,n=tC+1){for(;n<tI.length;n++){let t=tI[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;tI.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function tj(e){if(tU.length){let e=[...new Set(tU)].sort((e,t)=>tz(e)-tz(t));if(tU.length=0,tD)return void tD.push(...e);for(tR=0,tD=e;tR<tD.length;tR++){let e=tD[tR];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}tD=null,tR=0}}let tz=e=>null==e.id?2&e.flags?-1:1/0:e.id,tH=null,tG=null;function tV(e){let t=tH;return tH=e,tG=e&&e.type.__scopeId||null,t}function tW(e,t=tH,n){if(!t||e._n)return e;let r=(...n)=>{let i;r._d&&rG(-1);let a=tV(t);try{i=e(...n)}finally{tV(a),r._d&&rG(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function tZ(e,t){if(null===tH)return e;let n=ic(tH),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,a,s,l=y]=t[e];i&&(R(i)&&(i={mounted:i,updated:i}),i.deep&&tE(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function tq(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){let l=i[s];a&&(l.oldValue=a[s].value);let u=l.dir[r];u&&(eT(),tA(u,n,8,[e.el,l,e,t]),eA())}}let tY=Symbol("_vte"),tJ=e=>e.__isTeleport,tK=e=>e&&(e.disabled||""===e.disabled),t$=e=>e&&(e.defer||""===e.defer),tX=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,tQ=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,t0=(e,t)=>{let n=e&&e.to;return L(n)?t?t(n):null:n},t1={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,l,u,c){let{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:m,createText:g,createComment:_}}=c,y=tK(t.props),{shapeFlag:b,children:w,dynamicChildren:k}=t;if(null==e){let e=t.el=g(""),c=t.anchor=g("");p(e,n,r),p(c,n,r);let f=(e,t)=>{16&b&&(i&&i.isCE&&(i.ce._teleportTarget=e),d(w,e,t,i,a,s,l,u))},h=()=>{let e=t.target=t0(t.props,m),n=t4(e,t,g,p);e&&("svg"!==s&&tX(e)?s="svg":"mathml"!==s&&tQ(e)&&(s="mathml"),y||(f(e,n),t3(t,!1)))};y&&(f(n,c),t3(t,!0)),t$(t.props)?rp(()=>{h(),t.el.__isMounted=!0},a):h()}else{if(t$(t.props)&&!e.el.__isMounted)return void rp(()=>{t1.process(e,t,n,r,i,a,s,l,u,c),delete e.el.__isMounted},a);t.el=e.el,t.targetStart=e.targetStart;let d=t.anchor=e.anchor,p=t.target=e.target,g=t.targetAnchor=e.targetAnchor,_=tK(e.props),b=_?n:p,w=_?d:g;if("svg"===s||tX(p)?s="svg":("mathml"===s||tQ(p))&&(s="mathml"),k?(h(e.dynamicChildren,k,b,i,a,s,l),rg(e,t,!0)):u||f(e,t,b,w,i,a,s,l,!1),y)_?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):t2(t,n,d,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=t0(t.props,m);e&&t2(t,e,null,c,0)}else _&&t2(t,p,g,c,1);t3(t,y)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:s,children:l,anchor:u,targetStart:c,targetAnchor:d,target:f,props:h}=e;if(f&&(i(c),i(d)),a&&i(u),16&s){let e=a||!tK(h);for(let i=0;i<l.length;i++){let a=l[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:t2,hydrate:function(e,t,n,r,i,a,{o:{nextSibling:s,parentNode:l,querySelector:u,insert:c,createText:d}},f){let h=t.target=t0(t.props,u);if(h){let u=tK(t.props),p=h._lpa||h.firstChild;if(16&t.shapeFlag)if(u)t.anchor=f(s(e),t,l(e),n,r,i,a),t.targetStart=p,t.targetAnchor=p&&s(p);else{t.anchor=s(e);let l=p;for(;l;){if(l&&8===l.nodeType){if("teleport start anchor"===l.data)t.targetStart=l;else if("teleport anchor"===l.data){t.targetAnchor=l,h._lpa=t.targetAnchor&&s(t.targetAnchor);break}}l=s(l)}t.targetAnchor||t4(h,t,d,c),f(p&&s(p),t,h,n,r,i,a)}t3(t,u)}return t.anchor&&s(t.anchor)}};function t2(e,t,n,{o:{insert:r},m:i},a=2){0===a&&r(e.targetAnchor,t,n);let{el:s,anchor:l,shapeFlag:u,children:c,props:d}=e,f=2===a;if(f&&r(s,t,n),(!f||tK(d))&&16&u)for(let e=0;e<c.length;e++)i(c[e],t,n,2);f&&r(l,t,n)}let t5=t1;function t3(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function t4(e,t,n,r){let i=t.targetStart=n(""),a=t.targetAnchor=n("");return i[tY]=a,e&&(r(i,e),r(a,e)),a}let t6=Symbol("_leaveCb"),t8=Symbol("_enterCb"),t9=[Function,Array],t7={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:t9,onEnter:t9,onAfterEnter:t9,onEnterCancelled:t9,onBeforeLeave:t9,onLeave:t9,onAfterLeave:t9,onLeaveCancelled:t9,onBeforeAppear:t9,onAppear:t9,onAfterAppear:t9,onAppearCancelled:t9},ne=e=>{let t=e.subTree;return t.component?ne(t.component):t};function nt(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==rM){t=n;break}}return t}let nn={name:"BaseTransition",props:t7,setup(e,{slots:t}){let n=ie(),r=function(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nx(()=>{e.isMounted=!0}),nT(()=>{e.isUnmounting=!0}),e}();return()=>{let i=t.default&&function e(t,n=!1,r){let i=[],a=0;for(let s=0;s<t.length;s++){let l=t[s],u=null==r?l.key:String(r)+String(null!=l.key?l.key:s);l.type===rB?(128&l.patchFlag&&a++,i=i.concat(e(l.children,n,u))):(n||l.type!==rM)&&i.push(null!=u?rQ(l,{key:u}):l)}if(a>1)for(let e=0;e<i.length;e++)i[e].patchFlag=-2;return i}(t.default(),!0);if(!i||!i.length)return;let a=nt(i),s=tc(e),{mode:l}=s;if(r.isLeaving)return na(a);let u=ns(a);if(!u)return na(a);let c=ni(u,s,r,n,e=>c=e);u.type!==rM&&no(u,c);let d=n.subTree&&ns(n.subTree);if(d&&d.type!==rM&&!rY(u,d)&&ne(n).type!==rM){let e=ni(d,s,r,n);if(no(d,e),"out-in"===l&&u.type!==rM)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},na(a);"in-out"===l&&u.type!==rM?e.delayLeave=(e,t,n)=>{nr(r,d)[String(d.key)]=d,e[t6]=()=>{t(),e[t6]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return a}}};function nr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ni(e,t,n,r,i){let{appear:a,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:_,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,k=String(e.key),x=nr(n,e),S=(e,t)=>{e&&tA(e,r,9,t)},E=(e,t)=>{let n=t[1];S(e,t),I(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:s,persisted:l,beforeEnter(t){let r=u;if(!n.isMounted)if(!a)return;else r=_||u;t[t6]&&t[t6](!0);let i=x[k];i&&rY(e,i)&&i.el[t6]&&i.el[t6](),S(r,[t])},enter(e){let t=c,r=d,i=f;if(!n.isMounted)if(!a)return;else t=y||c,r=b||d,i=w||f;let s=!1,l=e[t8]=t=>{s||(s=!0,t?S(i,[e]):S(r,[e]),T.delayedLeave&&T.delayedLeave(),e[t8]=void 0)};t?E(t,[e,l]):l()},leave(t,r){let i=String(e.key);if(t[t8]&&t[t8](!0),n.isUnmounting)return r();S(h,[t]);let a=!1,s=t[t6]=n=>{a||(a=!0,r(),n?S(g,[t]):S(m,[t]),t[t6]=void 0,x[i]===e&&delete x[i])};x[i]=e,p?E(p,[t,s]):s()},clone(e){let a=ni(e,t,n,r,i);return i&&i(a),a}};return T}function na(e){if(nf(e))return(e=rQ(e)).children=null,e}function ns(e){if(!nf(e))return tJ(e.type)&&e.children?nt(e.children):e;let{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&R(n.default))return n.default()}}function no(e,t){6&e.shapeFlag&&e.component?(e.transition=t,no(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nl(e,t){return R(e)?E({name:e.name},t,{setup:e}):e}function nu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function nc(e,t,n,r,i=!1){if(I(e))return void e.forEach((e,a)=>nc(e,t&&(I(t)?t[a]:t),n,r,i));if(nd(r)&&!i){512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&nc(e,t,n,r.component.subTree);return}let a=4&r.shapeFlag?ic(r.component):r.el,s=i?null:a,{i:l,r:u}=e,c=t&&t.r,d=l.refs===y?l.refs={}:l.refs,f=l.setupState,h=tc(f),p=f===y?()=>!1:e=>O(h,e);if(null!=c&&c!==u&&(L(c)?(d[c]=null,p(c)&&(f[c]=null)):th(c)&&(c.value=null)),R(u))tT(u,l,12,[s,d]);else{let t=L(u),r=th(u);if(t||r){let l=()=>{if(e.f){let n=t?p(u)?f[u]:d[u]:u.value;i?I(n)&&T(n,a):I(n)?n.includes(a)||n.push(a):t?(d[u]=[a],p(u)&&(f[u]=d[u])):(u.value=[a],e.k&&(d[e.k]=u.value))}else t?(d[u]=s,p(u)&&(f[u]=s)):r&&(u.value=s,e.k&&(d[e.k]=s))};s?(l.id=-1,rp(l,n)):l()}}}en().requestIdleCallback||(e=>setTimeout(e,1)),en().cancelIdleCallback||(e=>clearTimeout(e));let nd=e=>!!e.type.__asyncLoader,nf=e=>e.type.__isKeepAlive,nh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ie(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&1===e.length?e[0]:e};let i=new Map,a=new Set,s=null,l=n.suspense,{renderer:{p:u,m:c,um:d,o:{createElement:f}}}=r,h=f("div");function p(e){n_(e),d(e,n,l,!0)}function m(e){i.forEach((t,n)=>{let r=id(t.type);r&&!e(r)&&g(n)})}function g(e){let t=i.get(e);!t||s&&rY(t,s)?s&&n_(s):p(t),i.delete(e),a.delete(e)}r.activate=(e,t,n,r,i)=>{let a=e.component;c(e,t,n,0,l),u(a.vnode,e,t,n,a,l,r,e.slotScopeIds,i),rp(()=>{a.isDeactivated=!1,a.a&&X(a.a);let t=e.props&&e.props.onVnodeMounted;t&&r6(t,a.parent,e)},l)},r.deactivate=e=>{let t=e.component;r_(t.m),r_(t.a),c(e,h,null,1,l),rp(()=>{t.da&&X(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&r6(n,t.parent,e),t.isDeactivated=!0},l)},rx(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>np(e,t)),t&&m(e=>!np(t,e))},{flush:"post",deep:!0});let _=null,y=()=>{null!=_&&(rL(n.subTree.type)?rp(()=>{i.set(_,ny(n.subTree))},n.subTree.suspense):i.set(_,ny(n.subTree)))};return nx(y),nE(y),nT(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ny(t);if(e.type===i.type&&e.key===i.key){n_(i);let e=i.component.da;e&&rp(e,r);return}p(e)})}),()=>{if(_=null,!t.default)return s=null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!rq(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let l=ny(r);if(l.type===rM)return s=null,l;let u=l.type,c=id(nd(l)?l.type.__asyncResolved||{}:u),{include:d,exclude:f,max:h}=e;if(d&&(!c||!np(d,c))||f&&c&&np(f,c))return l.shapeFlag&=-257,s=l,r;let p=null==l.key?u:l.key,m=i.get(p);return l.el&&(l=rQ(l),128&r.shapeFlag&&(r.ssContent=l)),_=p,m?(l.el=m.el,l.component=m.component,l.transition&&no(l,l.transition),l.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),h&&a.size>parseInt(h,10)&&g(a.values().next().value)),l.shapeFlag|=256,s=l,rL(r.type)?r:l}}};function np(e,t){return I(e)?e.some(e=>np(e,t)):L(e)?e.split(",").includes(t):!!D(e)&&(e.lastIndex=0,e.test(t))}function nv(e,t){ng(e,"a",t)}function nm(e,t){ng(e,"da",t)}function ng(e,t,n=r7){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(nb(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nf(e.parent.vnode)&&function(e,t,n,r){let i=nb(t,e,r,!0);nA(()=>{T(r[t],i)},n)}(r,t,n,e),e=e.parent}}function n_(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ny(e){return 128&e.shapeFlag?e.ssContent:e}function nb(e,t,n=r7,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{eT();let i=it(n),a=tA(t,n,e,r);return i(),eA(),a});return r?i.unshift(a):i.push(a),a}}let nw=e=>(t,n=r7)=>{ia&&"sp"!==e||nb(e,(...e)=>t(...e),n)},nk=nw("bm"),nx=nw("m"),nS=nw("bu"),nE=nw("u"),nT=nw("bum"),nA=nw("um"),nO=nw("sp"),nI=nw("rtg"),nC=nw("rtc");function nU(e,t=r7){nb("ec",e,t)}let nD="components";function nR(e,t){return nM(nD,e,!0,t)||e}let nL=Symbol.for("v-ndc");function nB(e){return L(e)?nM(nD,e,!1)||e:e||nL}function nP(e){return nM("directives",e)}function nM(e,t,n=!0,r=!1){let i=tH||r7;if(i){let n=i.type;if(e===nD){let e=id(n,!1);if(e&&(e===t||e===Z(t)||e===J(Z(t))))return n}let a=nF(i[e]||n[e],t)||nF(i.appContext[e],t);return!a&&r?n:a}}function nF(e,t){return e&&(e[t]||e[Z(t)]||e[J(Z(t))])}function nN(e,t,n,r){let i,a=n&&n[r],s=I(e);if(s||L(e)){let n=s&&ts(e),r=!1;n&&(r=!tl(e),e=eN(e)),i=Array(e.length);for(let n=0,s=e.length;n<s;n++)i[n]=t(r?td(e[n]):e[n],n,void 0,a&&a[n])}else if("number"==typeof e){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(P(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,s=n.length;r<s;r++){let s=n[r];i[r]=t(e[s],s,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function nj(e,t,n={},r,i){if(tH.ce||tH.parent&&nd(tH.parent)&&tH.parent.ce)return"default"!==t&&(n.name=t),rz(),rZ(rB,null,[rX("slot",n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),rz();let s=a&&function e(t){return t.some(t=>!rq(t)||t.type!==rM&&(t.type!==rB||!!e(t.children)))?t:null}(a(n)),l=n.key||s&&s.key,u=rZ(rB,{key:(l&&!B(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),a&&a._c&&(a._d=!0),u}let nz=e=>e?ii(e)?ic(e):nz(e.parent):null,nH=E(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nz(e.parent),$root:e=>nz(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>nK(e),$forceUpdate:e=>e.f||(e.f=()=>{tM(e.update)}),$nextTick:e=>e.n||(e.n=tP.bind(e.proxy)),$watch:e=>rS.bind(e)}),nG=(e,t)=>e!==y&&!e.__isScriptSetup&&O(e,t),nV={get({_:e},t){let n,r,i;if("__v_skip"===t)return!0;let{ctx:a,setupState:s,data:l,props:u,accessCache:c,type:d,appContext:f}=e;if("$"!==t[0]){let r=c[t];if(void 0!==r)switch(r){case 1:return s[t];case 2:return l[t];case 4:return a[t];case 3:return u[t]}else{if(nG(s,t))return c[t]=1,s[t];if(l!==y&&O(l,t))return c[t]=2,l[t];if((n=e.propsOptions[0])&&O(n,t))return c[t]=3,u[t];if(a!==y&&O(a,t))return c[t]=4,a[t];nY&&(c[t]=0)}}let h=nH[t];return h?("$attrs"===t&&eP(e.attrs,"get",""),h(e)):(r=d.__cssModules)&&(r=r[t])?r:a!==y&&O(a,t)?(c[t]=4,a[t]):O(i=f.config.globalProperties,t)?i[t]:void 0},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return nG(i,t)?(i[t]=n,!0):r!==y&&O(r,t)?(r[t]=n,!0):!O(e.props,t)&&!("$"===t[0]&&t.slice(1)in e)&&(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||e!==y&&O(e,s)||nG(t,s)||(l=a[0])&&O(l,s)||O(r,s)||O(nH,s)||O(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:O(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nW(){return function(){let e=ie();return e.setupContext||(e.setupContext=iu(e))}().slots}function nZ(e){return I(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function nq(e,t){return e&&t?I(e)&&I(t)?e.concat(t):E({},nZ(e),nZ(t)):e||t}let nY=!0;function nJ(e,t,n){tA(I(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function nK(e){let t,n=e.type,{mixins:r,extends:i}=n,{mixins:a,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,u=s.get(n);return u?t=u:a.length||r||i?(t={},a.length&&a.forEach(e=>n$(t,e,l,!0)),n$(t,n,l)):t=n,P(n)&&s.set(n,t),t}function n$(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let s in a&&n$(e,a,n,!0),i&&i.forEach(t=>n$(e,t,n,!0)),t)if(r&&"expose"===s);else{let r=nX[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}let nX={data:nQ,props:n5,emits:n5,methods:n2,computed:n2,beforeCreate:n1,created:n1,beforeMount:n1,mounted:n1,beforeUpdate:n1,updated:n1,beforeDestroy:n1,beforeUnmount:n1,destroyed:n1,unmounted:n1,activated:n1,deactivated:n1,errorCaptured:n1,serverPrefetch:n1,components:n2,directives:n2,watch:function(e,t){if(!e)return t;if(!t)return e;let n=E(Object.create(null),e);for(let r in t)n[r]=n1(e[r],t[r]);return n},provide:nQ,inject:function(e,t){return n2(n0(e),n0(t))}};function nQ(e,t){return t?e?function(){return E(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function n0(e){if(I(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function n1(e,t){return e?[...new Set([].concat(e,t))]:t}function n2(e,t){return e?E(Object.create(null),e,t):t}function n5(e,t){return e?I(e)&&I(t)?[...new Set([...e,...t])]:E(Object.create(null),nZ(e),nZ(null!=t?t:{})):t}function n3(){return{app:null,config:{isNativeTag:k,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let n4=0,n6=null;function n8(e,t){if(r7){let n=r7.provides,r=r7.parent&&r7.parent.provides;r===n&&(n=r7.provides=Object.create(r)),n[e]=t}}function n9(e,t,n=!1){let r=r7||tH;if(r||n6){let i=n6?n6._context.provides:r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&R(t)?t.call(r&&r.proxy):t}}let n7={},re=()=>Object.create(n7),rt=e=>Object.getPrototypeOf(e)===n7;function rn(e,t,n,r){let i,[a,s]=e.propsOptions,l=!1;if(t)for(let u in t){let c;if(G(u))continue;let d=t[u];a&&O(a,c=Z(u))?s&&s.includes(c)?(i||(i={}))[c]=d:n[c]=d:rI(e.emitsOptions,u)||u in r&&d===r[u]||(r[u]=d,l=!0)}if(s){let t=tc(n),r=i||y;for(let i=0;i<s.length;i++){let l=s[i];n[l]=rr(a,t,l,r[l],e,!O(r,l))}}return l}function rr(e,t,n,r,i,a){let s=e[n];if(null!=s){let e=O(s,"default");if(e&&void 0===r){let e=s.default;if(s.type!==Function&&!s.skipFactory&&R(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let s=it(i);r=a[n]=e.call(null,t),s()}}else r=e;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!e?r=!1:s[1]&&(""===r||r===Y(n))&&(r=!0))}return r}let ri=new WeakMap;function ra(e){return!("$"===e[0]||G(e))}let rs=e=>"_"===e[0]||"$stable"===e,ro=e=>I(e)?e.map(r5):[r5(e)],rl=(e,t,n)=>{if(t._n)return t;let r=tW((...e)=>ro(t(...e)),n);return r._c=!1,r},ru=(e,t,n)=>{let r=e._ctx;for(let n in e){if(rs(n))continue;let i=e[n];if(R(i))t[n]=rl(n,i,r);else if(null!=i){let e=ro(i);t[n]=()=>e}}},rc=(e,t)=>{let n=ro(t);e.slots.default=()=>n},rd=(e,t,n)=>{for(let r in t)(n||"_"!==r)&&(e[r]=t[r])},rf=(e,t,n)=>{let r=e.slots=re();if(32&e.vnode.shapeFlag){let e=t._;e?(rd(r,t,n),n&&Q(r,"_",e,!0)):ru(t,r)}else t&&rc(e,t)},rh=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,s=y;if(32&r.shapeFlag){let e=t._;e?n&&1===e?a=!1:rd(i,t,n):(a=!t.$stable,ru(t,i)),s=t}else t&&(rc(e,t),s={default:1});if(a)for(let e in i)rs(e)||null!=s[e]||delete i[e]},rp=function(e,t){if(t&&t.pendingBranch)I(e)?t.effects.push(...e):t.effects.push(e);else I(e)?tU.push(...e):tD&&-1===e.id?tD.splice(tR+1,0,e):1&e.flags||(tU.push(e),e.flags|=1),tF()};function rv({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rm({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function rg(e,t,n=!1){let r=e.children,i=t.children;if(I(r)&&I(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];1&a.shapeFlag&&!a.dynamicChildren&&((a.patchFlag<=0||32===a.patchFlag)&&((a=i[e]=r3(i[e])).el=t.el),n||-2===a.patchFlag||rg(t,a)),a.type===rP&&(a.el=t.el)}}function r_(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}let ry=Symbol.for("v-scx"),rb=()=>n9(ry);function rw(e,t){return rx(e,null,t)}function rk(e,t,n){return rx(e,t,n)}function rx(e,t,n=y){let r,{immediate:i,deep:s,flush:l,once:u}=n,c=E({},n),d=t&&i||!t&&"post"!==l;if(ia){if("sync"===l){let e=rb();r=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){let e=()=>{};return e.stop=w,e.resume=w,e.pause=w,e}}let f=r7;c.call=(e,t,n)=>tA(e,f,t,n);let h=!1;"post"===l?c.scheduler=e=>{rp(e,f&&f.suspense)}:"sync"!==l&&(h=!0,c.scheduler=(e,t)=>{t?e():tM(e)}),c.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};let p=function(e,t,n=y){let r,i,s,l,{immediate:u,deep:c,once:d,scheduler:f,augmentJob:h,call:p}=n,g=e=>c?e:tl(e)||!1===c||0===c?tE(e,1):tE(e),_=!1,b=!1;if(th(e)?(i=()=>e.value,_=tl(e)):ts(e)?(i=()=>g(e),_=!0):I(e)?(b=!0,_=e.some(e=>ts(e)||tl(e)),i=()=>e.map(e=>th(e)?e.value:ts(e)?g(e):R(e)?p?p(e,2):e():void 0)):i=R(e)?t?p?()=>p(e,2):e:()=>{if(s){eT();try{s()}finally{eA()}}let t=m;m=r;try{return p?p(e,3,[l]):e(l)}finally{m=t}}:w,t&&c){let e=i,t=!0===c?1/0:c;i=()=>tE(e(),t)}let k=a,x=()=>{r.stop(),k&&k.active&&T(k.effects,r)};if(d&&t){let e=t;t=(...t)=>{e(...t),x()}}let S=b?Array(e.length).fill(tx):tx,E=e=>{if(1&r.flags&&(r.dirty||e))if(t){let e=r.run();if(c||_||(b?e.some((e,t)=>$(e,S[t])):$(e,S))){s&&s();let n=m;m=r;try{let n=[e,S===tx?void 0:b&&S[0]===tx?[]:S,l];p?p(t,3,n):t(...n),S=e}finally{m=n}}}else r.run()};return h&&h(E),(r=new ev(i)).scheduler=f?()=>f(E,!1):E,l=e=>(function(e,t=!1,n=m){if(n){let t=tS.get(n);t||tS.set(n,t=[]),t.push(e)}})(e,!1,r),s=r.onStop=()=>{let e=tS.get(r);if(e){if(p)p(e,4);else for(let t of e)t();tS.delete(r)}},t?u?E(!0):S=r.run():f?f(E.bind(null,!0),!0):r.run(),x.pause=r.pause.bind(r),x.resume=r.resume.bind(r),x.stop=x,x}(e,t,c);return ia&&(r?r.push(p):d&&p()),p}function rS(e,t,n){let r,i=this.proxy,a=L(e)?e.includes(".")?rE(i,e):()=>i[e]:e.bind(i,i);R(t)?r=t:(r=t.handler,n=t);let s=it(this),l=rx(a,r.bind(i),n);return s(),l}function rE(e,t){let n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function rT(e,t,n=y){let r=ie(),i=Z(t),a=Y(t),s=rA(e,i),l=new tw((s,l)=>{let u,c,d=y;return rx(()=>{let t=e[i];$(u,t)&&(u=t,l())},null,{flush:"sync"}),{get:()=>(s(),n.get?n.get(u):u),set(e){let s=n.set?n.set(e):e;if(!$(s,u)&&!(d!==y&&$(e,d)))return;let f=r.vnode.props;f&&(t in f||i in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${i}`in f||`onUpdate:${a}`in f)||(u=e,l()),r.emit(`update:${t}`,s),$(e,s)&&$(e,d)&&!$(s,c)&&l(),d=e,c=s}}});return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||y:l,done:!1}:{done:!0}}},l}let rA=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${Z(t)}Modifiers`]||e[`${Y(t)}Modifiers`];function rO(e,t,...n){let r;if(e.isUnmounted)return;let i=e.vnode.props||y,a=n,s=t.startsWith("update:"),l=s&&rA(i,t.slice(7));l&&(l.trim&&(a=n.map(e=>L(e)?e.trim():e)),l.number&&(a=n.map(ee)));let u=i[r=K(t)]||i[r=K(Z(t))];!u&&s&&(u=i[r=K(Y(t))]),u&&tA(u,e,6,a);let c=i[r+"Once"];if(c){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,tA(c,e,6,a)}}function rI(e,t){return!!e&&!!x(t)&&(O(e,(t=t.slice(2).replace(/Once$/,""))[0].toLowerCase()+t.slice(1))||O(e,Y(t))||O(e,t))}function rC(e){let t,n,{type:r,vnode:i,proxy:a,withProxy:s,propsOptions:[l],slots:u,attrs:c,emit:d,render:f,renderCache:h,props:p,data:m,setupState:g,ctx:_,inheritAttrs:y}=e,b=tV(e);try{if(4&i.shapeFlag){let e=s||a;t=r5(f.call(e,e,h,p,g,m,_)),n=c}else t=r5(r.length>1?r(p,{attrs:c,slots:u,emit:d}):r(p,null)),n=r.props?c:rU(c)}catch(n){rN.length=0,tO(n,e,1),t=rX(rM)}let w=t;if(n&&!1!==y){let e=Object.keys(n),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(S)&&(n=rD(n,l)),w=rQ(w,n,!1,!0))}return i.dirs&&((w=rQ(w,null,!1,!0)).dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&no(w,i.transition),t=w,tV(b),t}let rU=e=>{let t;for(let n in e)("class"===n||"style"===n||x(n))&&((t||(t={}))[n]=e[n]);return t},rD=(e,t)=>{let n={};for(let r in e)S(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function rR(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(t[a]!==e[a]&&!rI(n,a))return!0}return!1}let rL=e=>e.__isSuspense,rB=Symbol.for("v-fgt"),rP=Symbol.for("v-txt"),rM=Symbol.for("v-cmt"),rF=Symbol.for("v-stc"),rN=[],rj=null;function rz(e=!1){rN.push(rj=e?null:[])}let rH=1;function rG(e,t=!1){rH+=e,e<0&&rj&&t&&(rj.hasOnce=!0)}function rV(e){return e.dynamicChildren=rH>0?rj||b:null,rN.pop(),rj=rN[rN.length-1]||null,rH>0&&rj&&rj.push(e),e}function rW(e,t,n,r,i,a){return rV(r$(e,t,n,r,i,a,!0))}function rZ(e,t,n,r,i){return rV(rX(e,t,n,r,i,!0))}function rq(e){return!!e&&!0===e.__v_isVNode}function rY(e,t){return e.type===t.type&&e.key===t.key}let rJ=({key:e})=>null!=e?e:null,rK=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?L(e)||th(e)||R(e)?{i:tH,r:e,k:t,f:!!n}:e:null);function r$(e,t=null,n=null,r=0,i=null,a=+(e!==rB),s=!1,l=!1){let u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rJ(t),ref:t&&rK(t),scopeId:tG,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:tH};return l?(r4(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=L(n)?8:16),rH>0&&!s&&rj&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&rj.push(u),u}let rX=function(e,t=null,n=null,r=0,i=null,a=!1){var s,l;if(e&&e!==nL||(e=rM),rq(e)){let r=rQ(e,t,!0);return n&&r4(r,n),rH>0&&!a&&rj&&(6&r.shapeFlag?rj[rj.indexOf(e)]=r:rj.push(r)),r.patchFlag=-2,r}if(R(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){let{class:e,style:n}=t=(l=t)?tu(l)||rt(l)?E({},l):l:null;e&&!L(e)&&(t.class=eo(e)),P(n)&&(tu(n)&&!I(n)&&(n=E({},n)),t.style=er(n))}let u=L(e)?1:rL(e)?128:tJ(e)?64:P(e)?4:2*!!R(e);return r$(e,t,n,r,i,u,a,!0)};function rQ(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:s,children:l,transition:u}=e,c=t?function(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if("class"===e)t.class!==r.class&&(t.class=eo([t.class,r.class]));else if("style"===e)t.style=er([t.style,r.style]);else if(x(e)){let n=t[e],i=r[e];i&&n!==i&&!(I(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rJ(c),ref:t&&t.ref?n&&a?I(a)?a.concat(rK(t)):[a,rK(t)]:rK(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rB?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rQ(e.ssContent),ssFallback:e.ssFallback&&rQ(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&r&&no(d,u.clone(d)),d}function r0(e=" ",t=0){return rX(rP,null,e,t)}function r1(e,t){let n=rX(rF,null,e);return n.staticCount=t,n}function r2(e="",t=!1){return t?(rz(),rZ(rM,null,e)):rX(rM,null,e)}function r5(e){return null==e||"boolean"==typeof e?rX(rM):I(e)?rX(rB,null,e.slice()):rq(e)?r3(e):rX(rP,null,String(e))}function r3(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:rQ(e)}function r4(e,t){let n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(I(t))n=16;else if("object"==typeof t)if(65&r){let n=t.default;n&&(n._c&&(n._d=!1),r4(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;r||rt(t)?3===r&&tH&&(1===tH.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=tH}else R(t)?(t={default:t,_ctx:tH},n=32):(t=String(t),64&r?(n=16,t=[r0(t)]):n=8);e.children=t,e.shapeFlag|=n}function r6(e,t,n,r=null){tA(e,t,7,[n,r])}let r8=n3(),r9=0,r7=null,ie=()=>r7||tH;{let e=en(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};c=t("__VUE_INSTANCE_SETTERS__",e=>r7=e),d=t("__VUE_SSR_SETTERS__",e=>ia=e)}let it=e=>{let t=r7;return c(e),e.scope.on(),()=>{e.scope.off(),c(t)}},ir=()=>{r7&&r7.scope.off(),c(null)};function ii(e){return 4&e.vnode.shapeFlag}let ia=!1;function is(e,t,n){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:P(t)&&(e.setupState=tb(t)),io(e,n)}function io(e,t,n){let r=e.type;if(!e.render){if(!t&&f&&!r.render){let t=r.template||nK(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=r;r.render=f(t,E(E({isCustomElement:n,delimiters:a},i),s))}}e.render=r.render||w,h&&h(e)}{let t=it(e);eT();try{!function(e){let t=nK(e),n=e.proxy,r=e.ctx;nY=!1,t.beforeCreate&&nJ(t.beforeCreate,e,"bc");let{data:i,computed:a,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:m,activated:g,deactivated:_,beforeDestroy:y,beforeUnmount:b,destroyed:k,unmounted:x,render:S,renderTracked:E,renderTriggered:T,errorCaptured:A,serverPrefetch:O,expose:C,inheritAttrs:U,components:D,directives:B,filters:M}=t;if(c&&function(e,t,n=w){for(let n in I(e)&&(e=n0(e)),e){let r,i=e[n];th(r=P(i)?"default"in i?n9(i.from||n,i.default,!0):n9(i.from||n):n9(i))?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(c,r,null),s)for(let e in s){let t=s[e];R(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);P(t)&&(e.data=tn(t))}if(nY=!0,a)for(let e in a){let t=a[e],i=R(t)?t.bind(n,n):R(t.get)?t.get.bind(n,n):w,s=ih({get:i,set:!R(t)&&R(t.set)?t.set.bind(n):w});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(l)for(let e in l)!function e(t,n,r,i){let a=i.includes(".")?rE(r,i):()=>r[i];if(L(t)){let e=n[t];var s,l,u,c,d,f=void 0;R(e)&&(c=a,d=e,rx(c,d,void 0))}else if(R(t)){var h,p,m=void 0;h=a,p=t.bind(r),rx(h,p,void 0)}else if(P(t))if(I(t))t.forEach(t=>e(t,n,r,i));else{let e=R(t.handler)?t.handler.bind(r):n[t.handler];R(e)&&(s=a,l=e,u=t,rx(s,l,u))}}(l[e],r,n,e);if(u){let e=R(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{n8(t,e[t])})}function F(e,t){I(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&nJ(d,e,"c"),F(nk,f),F(nx,h),F(nS,p),F(nE,m),F(nv,g),F(nm,_),F(nU,A),F(nC,E),F(nI,T),F(nT,b),F(nA,x),F(nO,O),I(C))if(C.length){let t=e.exposed||(e.exposed={});C.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===w&&(e.render=S),null!=U&&(e.inheritAttrs=U),D&&(e.components=D),B&&(e.directives=B),O&&nu(e)}(e)}finally{eA(),t()}}}let il={get:(e,t)=>(eP(e,"get",""),e[t])};function iu(e){return{attrs:new Proxy(e.attrs,il),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function ic(e){var t;return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tb((!O(t=e.exposed,"__v_skip")&&Object.isExtensible(t)&&Q(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in nH?nH[n](e):void 0,has:(e,t)=>t in e||t in nH})):e.proxy}function id(e,t=!0){return R(e)?e.displayName||e.name:e.name||t&&e.__name}let ih=(e,t)=>(function(e,t,n=!1){let r,i;return R(e)?r=e:(r=e.get,i=e.set),new tk(r,i,n)})(e,0,ia);function ip(e,t,n){let r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&rq(n)&&(n=[n]),rX(e,t,n)):!P(t)||I(t)?rX(e,null,t):rq(t)?rX(e,null,[t]):rX(e,t)}let iv="undefined"!=typeof window&&window.trustedTypes;if(iv)try{g=iv.createPolicy("vue",{createHTML:e=>e})}catch(e){}let im=g?e=>g.createHTML(e):e=>e,ig="undefined"!=typeof document?document:null,i_=ig&&ig.createElement("template"),iy="transition",ib="animation",iw=Symbol("_vtc"),ik={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ix=E({},t7,ik),iS=((r=(e,{slots:t})=>ip(nn,function(e){let t={};for(let n in e)n in ik||(t[n]=e[n]);if(!1===e.css)return t;let{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;{if(P(e))return[function(e){return et(e)}(e.enter),function(e){return et(e)}(e.leave)];let t=function(e){return et(e)}(e);return[t,t]}}(i),g=m&&m[0],_=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:k,onLeaveCancelled:x,onBeforeAppear:S=y,onAppear:T=b,onAppearCancelled:A=w}=t,O=(e,t,n,r)=>{e._enterCancelled=r,iI(e,t?d:l),iI(e,t?c:s),n&&n()},I=(e,t)=>{e._isLeaving=!1,iI(e,f),iI(e,p),iI(e,h),t&&t()},C=e=>(t,n)=>{let i=e?T:b,s=()=>O(t,e,n);iE(i,[t,s]),iC(()=>{iI(t,e?u:a),iO(t,e?d:l),iT(i)||iD(t,r,g,s)})};return E(t,{onBeforeEnter(e){iE(y,[e]),iO(e,a),iO(e,s)},onBeforeAppear(e){iE(S,[e]),iO(e,u),iO(e,c)},onEnter:C(!1),onAppear:C(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>I(e,t);iO(e,f),e._enterCancelled?(iO(e,h),iB()):(iB(),iO(e,h)),iC(()=>{e._isLeaving&&(iI(e,f),iO(e,p),iT(k)||iD(e,r,_,n))}),iE(k,[e,n])},onEnterCancelled(e){O(e,!1,void 0,!0),iE(w,[e])},onAppearCancelled(e){O(e,!0,void 0,!0),iE(A,[e])},onLeaveCancelled(e){I(e),iE(x,[e])}})}(e),t)).displayName="Transition",r.props=ix,r),iE=(e,t=[])=>{I(e)?e.forEach(e=>e(...t)):e&&e(...t)},iT=e=>!!e&&(I(e)?e.some(e=>e.length>1):e.length>1);function iA(e){return et(e)}function iO(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[iw]||(e[iw]=new Set)).add(t)}function iI(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[iw];n&&(n.delete(t),n.size||(e[iw]=void 0))}function iC(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let iU=0;function iD(e,t,n,r){let i=e._endId=++iU,a=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(a,n);let{type:s,timeout:l,propCount:u}=function(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${iy}Delay`),a=r(`${iy}Duration`),s=iR(i,a),l=r(`${ib}Delay`),u=r(`${ib}Duration`),c=iR(l,u),d=null,f=0,h=0;t===iy?s>0&&(d=iy,f=s,h=a.length):t===ib?c>0&&(d=ib,f=c,h=u.length):h=(d=(f=Math.max(s,c))>0?s>c?iy:ib:null)?d===iy?a.length:u.length:0;let p=d===iy&&/\b(transform|all)(,|$)/.test(r(`${iy}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}(e,t);if(!s)return r();let c=s+"end",d=0,f=()=>{e.removeEventListener(c,h),a()},h=t=>{t.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},l+1),e.addEventListener(c,h)}function iR(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>iL(t)+iL(e[n])))}function iL(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function iB(){return document.body.offsetHeight}let iP=Symbol("_vod"),iM=Symbol("_vsh"),iF={beforeMount(e,{value:t},{transition:n}){e[iP]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):iN(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),iN(e,!0),r.enter(e)):r.leave(e,()=>{iN(e,!1)}):iN(e,t))},beforeUnmount(e,{value:t}){iN(e,t)}};function iN(e,t){e.style.display=t?e[iP]:"none",e[iM]=!t}let ij=Symbol(""),iz=/(^|;)\s*display\s*:/,iH=/\s*!important$/;function iG(e,t,n){if(I(n))n.forEach(n=>iG(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{let r=function(e,t){let n=iW[t];if(n)return n;let r=Z(t);if("filter"!==r&&r in e)return iW[t]=r;r=J(r);for(let n=0;n<iV.length;n++){let i=iV[n]+r;if(i in e)return iW[t]=i}return t}(e,t);iH.test(n)?e.setProperty(Y(r),n.replace(iH,""),"important"):e[r]=n}}let iV=["Webkit","Moz","ms"],iW={},iZ="http://www.w3.org/1999/xlink";function iq(e,t,n,r,i,a=el(t)){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(iZ,t.slice(6,t.length)):e.setAttributeNS(iZ,t,n);else null==n||a&&!(n||""===n)?e.removeAttribute(t):e.setAttribute(t,a?"":B(n)?String(n):n)}function iY(e,t,n,r,i){if("innerHTML"===t||"textContent"===t){null!=n&&(e[t]="innerHTML"===t?im(n):n);return}let a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){let r="OPTION"===a?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),e._value=n;return}let s=!1;if(""===n||null==n){let r=typeof e[t];if("boolean"===r){var l;n=!!(l=n)||""===l}else null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(i||t)}function iJ(e,t,n,r){e.addEventListener(t,n,r)}let iK=Symbol("_vei"),i$=/(?:Once|Passive|Capture)$/,iX=0,iQ=Promise.resolve(),i0=()=>iX||(iQ.then(()=>iX=0),iX=Date.now()),i1=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&123>e.charCodeAt(2);"undefined"!=typeof HTMLElement&&HTMLElement,Symbol("_moveCb"),Symbol("_enterCb");let i2=e=>{let t=e.props["onUpdate:modelValue"]||!1;return I(t)?e=>X(t,e):t};function i5(e){e.target.composing=!0}function i3(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}let i4=Symbol("_assign"),i6={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[i4]=i2(i);let a=r||i.props&&"number"===i.props.type;iJ(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=ee(r)),e[i4](r)}),n&&iJ(e,"change",()=>{e.value=e.value.trim()}),t||(iJ(e,"compositionstart",i5),iJ(e,"compositionend",i3),iJ(e,"change",i3))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[i4]=i2(s),e.composing)return;let l=(a||"number"===e.type)&&!/^0\d/.test(e.value)?ee(e.value):e.value,u=null==t?"":t;if(l!==u){if(document.activeElement===e&&"range"!==e.type&&(r&&t===n||i&&e.value.trim()===u))return;e.value=u}}},i8=["ctrl","shift","alt","meta"],i9={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>i8.some(n=>e[`${n}Key`]&&!t.includes(n))},i7=(e,t)=>{let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){let r=i9[t[e]];if(r&&r(n,t))return}return e(n,...r)})},ae={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},at=(e,t)=>{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;let r=Y(n.key);if(t.some(e=>e===r||ae[e]===r))return e(n)})},an=E({patchProp:(e,t,n,r,i,a)=>{let s="svg"===i;if("class"===t){var l=r;let t=e[iw];t&&(l=(l?[l,...t]:[...t]).join(" ")),null==l?e.removeAttribute("class"):s?e.setAttribute("class",l):e.className=l}else"style"===t?function(e,t,n){let r=e.style,i=L(n),a=!1;if(n&&!i){if(t)if(L(t))for(let e of t.split(";")){let t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&iG(r,t,"")}else for(let e in t)null==n[e]&&iG(r,e,"");for(let e in n)"display"===e&&(a=!0),iG(r,e,n[e])}else if(i){if(t!==n){let e=r[ij];e&&(n+=";"+e),r.cssText=n,a=iz.test(n)}}else t&&e.removeAttribute("style");iP in e&&(e[iP]=a?r.display:"",e[iM]&&(r.display="none"))}(e,n,r):x(t)?S(t)||function(e,t,n,r,i=null){let a=e[iK]||(e[iK]={}),s=a[t];if(r&&s)s.value=r;else{let[n,l]=function(e){let t;if(i$.test(e)){let n;for(t={};n=e.match(i$);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):Y(e.slice(2)),t]}(t);if(r)iJ(e,n,a[t]=function(e,t){let n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();tA(function(e,t){if(!I(t))return t;{let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}}(e,n.value),t,5,[e])};return n.value=e,n.attached=i0(),n}(r,i),l);else s&&(e.removeEventListener(n,s,l),a[t]=void 0)}}(e,t,0,r,a):("."===t[0]?(t=t.slice(1),0):"^"===t[0]?(t=t.slice(1),1):!function(e,t,n,r){if(r)return!!("innerHTML"===t||"textContent"===t||t in e&&i1(t)&&R(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){let t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return!(i1(t)&&L(n))&&t in e}(e,t,r,s))?e._isVueCE&&(/[A-Z]/.test(t)||!L(r))?iY(e,Z(t),r,a,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),iq(e,t,r,s)):(iY(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||iq(e,t,r,s,a,"value"!==t))}},{insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i="svg"===t?ig.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?ig.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?ig.createElement(e,{is:n}):ig.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>ig.createTextNode(e),createComment:e=>ig.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ig.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){let s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{i_.innerHTML=im("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);let i=i_.content;if("svg"===r||"mathml"===r){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}});function ar(){return p||(p=function(e,t){var n;let r,i;en().__VUE__=!0;let{insert:a,remove:s,patchProp:l,createElement:u,createText:c,createComment:f,setText:h,setElementText:p,parentNode:m,nextSibling:g,setScopeId:_=w,insertStaticContent:k}=e,x=(e,t,n,r=null,i=null,a=null,s,l=null,u=!!t.dynamicChildren)=>{if(e===t)return;e&&!rY(e,t)&&(r=el(e),er(e,i,a,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);let{type:c,ref:d,shapeFlag:f}=t;switch(c){case rP:S(e,t,n,r);break;case rM:T(e,t,n,r);break;case rF:null==e&&A(t,n,r,s);break;case rB:H(e,t,n,r,i,a,s,l,u);break;default:1&f?D(e,t,n,r,i,a,s,l,u):6&f?V(e,t,n,r,i,a,s,l,u):(64&f||128&f)&&c.process(e,t,n,r,i,a,s,l,u,ed)}null!=d&&i&&nc(d,e&&e.ref,a,t||e,!t)},S=(e,t,n,r)=>{if(null==e)a(t.el=c(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},T=(e,t,n,r)=>{null==e?a(t.el=f(t.children||""),n,r):t.el=e.el},A=(e,t,n,r)=>{[e.el,e.anchor]=k(e.children,t,n,r,e.el,e.anchor)},C=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=g(e),a(e,n,r),e=i;a(t,n,r)},U=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),s(e),e=n;s(t)},D=(e,t,n,r,i,a,s,l,u)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?L(t,n,r,i,a,s,l,u):N(e,t,i,a,s,l,u)},L=(e,t,n,r,i,s,c,d)=>{var f,h;let m,g,{props:_,shapeFlag:y,transition:b,dirs:w}=e;if(m=e.el=u(e.type,s,_&&_.is,_),8&y?p(m,e.children):16&y&&F(e.children,m,null,r,i,rv(e,s),c,d),w&&tq(e,null,r,"created"),B(m,e,e.scopeId,c,r),_){for(let e in _)"value"===e||G(e)||l(m,e,null,_[e],s,r);"value"in _&&l(m,"value",null,_.value,s),(g=_.onVnodeBeforeMount)&&r6(g,r,e)}w&&tq(e,null,r,"beforeMount");let k=(f=i,h=b,(!f||f&&!f.pendingBranch)&&h&&!h.persisted);k&&b.beforeEnter(m),a(m,t,n),((g=_&&_.onVnodeMounted)||k||w)&&rp(()=>{g&&r6(g,r,e),k&&b.enter(m),w&&tq(e,null,r,"mounted")},i)},B=(e,t,n,r,i)=>{if(n&&_(e,n),r)for(let t=0;t<r.length;t++)_(e,r[t]);if(i){let n=i.subTree;if(t===n||rL(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;B(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},F=(e,t,n,r,i,a,s,l,u=0)=>{for(let c=u;c<e.length;c++)x(null,e[c]=l?r3(e[c]):r5(e[c]),t,n,r,i,a,s,l)},N=(e,t,n,r,i,a,s)=>{let u,c=t.el=e.el,{patchFlag:d,dynamicChildren:f,dirs:h}=t;d|=16&e.patchFlag;let m=e.props||y,g=t.props||y;if(n&&rm(n,!1),(u=g.onVnodeBeforeUpdate)&&r6(u,n,t,e),h&&tq(t,e,n,"beforeUpdate"),n&&rm(n,!0),(m.innerHTML&&null==g.innerHTML||m.textContent&&null==g.textContent)&&p(c,""),f?j(e.dynamicChildren,f,c,n,r,rv(t,i),a):s||$(e,t,c,null,n,r,rv(t,i),a,!1),d>0){if(16&d)z(c,m,g,n,i);else if(2&d&&m.class!==g.class&&l(c,"class",null,g.class,i),4&d&&l(c,"style",m.style,g.style,i),8&d){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],a=m[r],s=g[r];(s!==a||"value"===r)&&l(c,r,a,s,i,n)}}1&d&&e.children!==t.children&&p(c,t.children)}else s||null!=f||z(c,m,g,n,i);((u=g.onVnodeUpdated)||h)&&rp(()=>{u&&r6(u,n,t,e),h&&tq(t,e,n,"updated")},r)},j=(e,t,n,r,i,a,s)=>{for(let l=0;l<t.length;l++){let u=e[l],c=t[l],d=u.el&&(u.type===rB||!rY(u,c)||70&u.shapeFlag)?m(u.el):n;x(u,c,d,null,r,i,a,s,!0)}},z=(e,t,n,r,i)=>{if(t!==n){if(t!==y)for(let a in t)G(a)||a in n||l(e,a,t[a],null,i,r);for(let a in n){if(G(a))continue;let s=n[a],u=t[a];s!==u&&"value"!==a&&l(e,a,u,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},H=(e,t,n,r,i,s,l,u,d)=>{let f=t.el=e?e.el:c(""),h=t.anchor=e?e.anchor:c(""),{patchFlag:p,dynamicChildren:m,slotScopeIds:g}=t;(g&&(u=u?u.concat(g):g),null==e)?(a(f,n,r),a(h,n,r),F(t.children||[],n,h,i,s,l,u,d)):p>0&&64&p&&m&&e.dynamicChildren?(j(e.dynamicChildren,m,n,i,s,l,u),(null!=t.key||i&&t===i.subTree)&&rg(e,t,!0)):$(e,t,n,h,i,s,l,u,d)},V=(e,t,n,r,i,a,s,l,u)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,u):W(t,n,r,i,a,s,u):q(e,t,u)},W=(e,t,n,r,i,a,s)=>{let l=e.component=function(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||r8,a={uid:r9++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new eh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function e(t,n,r=!1){let i=r?ri:n.propsCache,a=i.get(t);if(a)return a;let s=t.props,l={},u=[],c=!1;if(!R(t)){let i=t=>{c=!0;let[r,i]=e(t,n,!0);E(l,r),i&&u.push(...i)};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return P(t)&&i.set(t,b),b;if(I(s))for(let e=0;e<s.length;e++){let t=Z(s[e]);ra(t)&&(l[t]=y)}else if(s)for(let e in s){let t=Z(e);if(ra(t)){let n=s[e],r=l[t]=I(n)||R(n)?{type:n}:E({},n),i=r.type,a=!1,c=!0;if(I(i))for(let e=0;e<i.length;++e){let t=i[e],n=R(t)&&t.name;if("Boolean"===n){a=!0;break}"String"===n&&(c=!1)}else a=R(i)&&"Boolean"===i.name;r[0]=a,r[1]=c,(a||O(r,"default"))&&u.push(t)}}let d=[l,u];return P(t)&&i.set(t,d),d}(r,i),emitsOptions:function e(t,n,r=!1){let i=n.emitsCache,a=i.get(t);if(void 0!==a)return a;let s=t.emits,l={},u=!1;if(!R(t)){let i=t=>{let r=e(t,n,!0);r&&(u=!0,E(l,r))};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||u?(I(s)?s.forEach(e=>l[e]=null):E(l,s),P(t)&&i.set(t,l),l):(P(t)&&i.set(t,null),null)}(r,i),emit:null,emitted:null,propsDefaults:y,inheritAttrs:r.inheritAttrs,ctx:y,data:y,props:y,attrs:y,slots:y,refs:y,setupState:y,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=rO.bind(null,a),e.ce&&e.ce(a),a}(e,r,i);nf(e)&&(l.ctx.renderer=ed),!function(e,t=!1,n=!1){t&&d(t);let{props:r,children:i}=e.vnode,a=ii(e);!function(e,t,n,r=!1){let i={},a=re();for(let n in e.propsDefaults=Object.create(null),rn(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:tr(i):e.type.props?e.props=i:e.props=a,e.attrs=a}(e,r,a,t),rf(e,i,n),a&&function(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nV);let{setup:r}=n;if(r){eT();let n=e.setupContext=r.length>1?iu(e):null,i=it(e),a=tT(r,e,0,[e.props,n]),s=M(a);if(eA(),i(),(s||e.sp)&&!nd(e)&&nu(e),s){if(a.then(ir,ir),t)return a.then(n=>{is(e,n,t)}).catch(t=>{tO(t,e,0)});e.asyncDep=a}else is(e,a,t)}else io(e,t)}(e,t),t&&d(!1)}(l,!1,s),l.asyncDep?(i&&i.registerDep(l,J,s),e.el||T(null,l.subTree=rX(rM),t,n)):J(l,e,t,n,i,a,s)},q=(e,t,n)=>{let r=t.component=e.component;if(function(e,t,n){let{props:r,children:i,component:a}=e,{props:s,children:l,patchFlag:u}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!n||!(u>=0))return(!!i||!!l)&&(!l||!l.$stable)||r!==s&&(r?!s||rR(r,s,c):!!s);if(1024&u)return!0;if(16&u)return r?rR(r,s,c):!!s;if(8&u){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(s[n]!==r[n]&&!rI(c,n))return!0}}return!1}(e,t,n))if(r.asyncDep&&!r.asyncResolved)return void K(r,t,n);else r.next=t,r.update();else t.el=e.el,r.vnode=t},J=(e,t,n,r,a,s,l)=>{let u=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:c,vnode:d}=e;{let t=function e(t){let n=t.subTree.component;if(n)if(n.asyncDep&&!n.asyncResolved)return n;else return e(n)}(e);if(t){n&&(n.el=d.el,K(e,n,l)),t.asyncDep.then(()=>{e.isUnmounted||u()});return}}let f=n;rm(e,!1),n?(n.el=d.el,K(e,n,l)):n=d,r&&X(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&r6(t,c,n,d),rm(e,!0);let h=rC(e),p=e.subTree;e.subTree=h,x(p,h,m(p.el),el(p),e,a,s),n.el=h.el,null===f&&function({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}(e,h.el),i&&rp(i,a),(t=n.props&&n.props.onVnodeUpdated)&&rp(()=>r6(t,c,n,d),a)}else{let l,{el:u,props:c}=t,{bm:d,m:f,parent:h,root:p,type:m}=e,g=nd(t);if(rm(e,!1),d&&X(d),!g&&(l=c&&c.onVnodeBeforeMount)&&r6(l,h,t),rm(e,!0),u&&i){let t=()=>{e.subTree=rC(e),i(u,e.subTree,e,a,null)};g&&m.__asyncHydrate?m.__asyncHydrate(u,e,t):t()}else{p.ce&&p.ce._injectChildStyle(m);let i=e.subTree=rC(e);x(null,i,n,r,e,a,s),t.el=i.el}if(f&&rp(f,a),!g&&(l=c&&c.onVnodeMounted)){let e=t;rp(()=>r6(l,h,e),a)}(256&t.shapeFlag||h&&nd(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&rp(e.a,a),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new ev(u);e.scope.off();let d=e.update=c.run.bind(c),f=e.job=c.runIfDirty.bind(c);f.i=e,f.id=e.uid,c.scheduler=()=>tM(f),rm(e,!0),d()},K=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:s}}=e,l=tc(i),[u]=e.propsOptions,c=!1;if((r||s>0)&&!(16&s)){if(8&s){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(rI(e.emitsOptions,s))continue;let d=t[s];if(u)if(O(a,s))d!==a[s]&&(a[s]=d,c=!0);else{let t=Z(s);i[t]=rr(u,l,t,d,e,!1)}else d!==a[s]&&(a[s]=d,c=!0)}}}else{let r;for(let s in rn(e,t,i,a)&&(c=!0),l)t&&(O(t,s)||(r=Y(s))!==s&&O(t,r))||(u?n&&(void 0!==n[s]||void 0!==n[r])&&(i[s]=rr(u,l,s,void 0,e,!0)):delete i[s]);if(a!==l)for(let e in a)t&&O(t,e)||(delete a[e],c=!0)}c&&eM(e.attrs,"set","")}(e,t.props,r,n),rh(e,t.children,n),eT(),tN(e),eA()},$=(e,t,n,r,i,a,s,l,u=!1)=>{let c=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:h,shapeFlag:m}=t;if(h>0){if(128&h)return void ee(c,f,n,r,i,a,s,l,u);else if(256&h)return void Q(c,f,n,r,i,a,s,l,u)}8&m?(16&d&&eo(c,i,a),f!==c&&p(n,f)):16&d?16&m?ee(c,f,n,r,i,a,s,l,u):eo(c,i,a,!0):(8&d&&p(n,""),16&m&&F(f,n,r,i,a,s,l,u))},Q=(e,t,n,r,i,a,s,l,u)=>{let c;e=e||b,t=t||b;let d=e.length,f=t.length,h=Math.min(d,f);for(c=0;c<h;c++){let r=t[c]=u?r3(t[c]):r5(t[c]);x(e[c],r,n,null,i,a,s,l,u)}d>f?eo(e,i,a,!0,!1,h):F(t,n,r,i,a,s,l,u,h)},ee=(e,t,n,r,i,a,s,l,u)=>{let c=0,d=t.length,f=e.length-1,h=d-1;for(;c<=f&&c<=h;){let r=e[c],d=t[c]=u?r3(t[c]):r5(t[c]);if(rY(r,d))x(r,d,n,null,i,a,s,l,u);else break;c++}for(;c<=f&&c<=h;){let r=e[f],c=t[h]=u?r3(t[h]):r5(t[h]);if(rY(r,c))x(r,c,n,null,i,a,s,l,u);else break;f--,h--}if(c>f){if(c<=h){let e=h+1,f=e<d?t[e].el:r;for(;c<=h;)x(null,t[c]=u?r3(t[c]):r5(t[c]),n,f,i,a,s,l,u),c++}}else if(c>h)for(;c<=f;)er(e[c],i,a,!0),c++;else{let p,m=c,g=c,_=new Map;for(c=g;c<=h;c++){let e=t[c]=u?r3(t[c]):r5(t[c]);null!=e.key&&_.set(e.key,c)}let y=0,w=h-g+1,k=!1,S=0,E=Array(w);for(c=0;c<w;c++)E[c]=0;for(c=m;c<=f;c++){let r,d=e[c];if(y>=w){er(d,i,a,!0);continue}if(null!=d.key)r=_.get(d.key);else for(p=g;p<=h;p++)if(0===E[p-g]&&rY(d,t[p])){r=p;break}void 0===r?er(d,i,a,!0):(E[r-g]=c+1,r>=S?S=r:k=!0,x(d,t[r],n,null,i,a,s,l,u),y++)}let T=k?function(e){let t,n,r,i,a,s=e.slice(),l=[0],u=e.length;for(t=0;t<u;t++){let u=e[t];if(0!==u){if(e[n=l[l.length-1]]<u){s[t]=n,l.push(t);continue}for(r=0,i=l.length-1;r<i;)e[l[a=r+i>>1]]<u?r=a+1:i=a;u<e[l[r]]&&(r>0&&(s[t]=l[r-1]),l[r]=t)}}for(r=l.length,i=l[r-1];r-- >0;)l[r]=i,i=s[i];return l}(E):b;for(p=T.length-1,c=w-1;c>=0;c--){let e=g+c,f=t[e],h=e+1<d?t[e+1].el:r;0===E[c]?x(null,f,n,h,i,a,s,l,u):k&&(p<0||c!==T[p]?et(f,n,h,2):p--)}}},et=(e,t,n,r,i=null)=>{let{el:s,type:l,transition:u,children:c,shapeFlag:d}=e;if(6&d)return void et(e.component.subTree,t,n,r);if(128&d)return void e.suspense.move(t,n,r);if(64&d)return void l.move(e,t,n,ed);if(l===rB){a(s,t,n);for(let e=0;e<c.length;e++)et(c[e],t,n,r);a(e.anchor,t,n);return}if(l===rF)return void C(e,t,n);if(2!==r&&1&d&&u)if(0===r)u.beforeEnter(s),a(s,t,n),rp(()=>u.enter(s),i);else{let{leave:e,delayLeave:r,afterLeave:i}=u,l=()=>a(s,t,n),c=()=>{e(s,()=>{l(),i&&i()})};r?r(s,l,c):c()}else a(s,t,n)},er=(e,t,n,r=!1,i=!1)=>{let a,{type:s,props:l,ref:u,children:c,dynamicChildren:d,shapeFlag:f,patchFlag:h,dirs:p,cacheIndex:m}=e;if(-2===h&&(i=!1),null!=u&&nc(u,null,n,e,!0),null!=m&&(t.renderCache[m]=void 0),256&f)return void t.ctx.deactivate(e);let g=1&f&&p,_=!nd(e);if(_&&(a=l&&l.onVnodeBeforeUnmount)&&r6(a,t,e),6&f)es(e.component,n,r);else{if(128&f)return void e.suspense.unmount(n,r);g&&tq(e,null,t,"beforeUnmount"),64&f?e.type.remove(e,t,n,ed,r):d&&!d.hasOnce&&(s!==rB||h>0&&64&h)?eo(d,t,n,!1,!0):(s===rB&&384&h||!i&&16&f)&&eo(c,t,n),r&&ei(e)}(_&&(a=l&&l.onVnodeUnmounted)||g)&&rp(()=>{a&&r6(a,t,e),g&&tq(e,null,t,"unmounted")},n)},ei=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===rB)return void ea(n,r);if(t===rF)return void U(e);let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,s=()=>t(n,a);r?r(e.el,a,s):s()}else a()},ea=(e,t)=>{let n;for(;e!==t;)n=g(e),s(e),e=n;s(t)},es=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:s,um:l,m:u,a:c}=e;r_(u),r_(c),r&&X(r),i.stop(),a&&(a.flags|=8,er(s,e,t,n)),l&&rp(l,t),rp(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},eo=(e,t,n,r=!1,i=!1,a=0)=>{for(let s=a;s<e.length;s++)er(e[s],t,n,r,i)},el=e=>{if(6&e.shapeFlag)return el(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();let t=g(e.anchor||e.el),n=t&&t[tY];return n?g(n):t},eu=!1,ec=(e,t,n)=>{null==e?t._vnode&&er(t._vnode,null,null,!0):x(t._vnode||null,e,t,null,null,null,n),t._vnode=e,eu||(eu=!0,tN(),tj(),eu=!1)},ed={p:x,um:er,m:et,r:ei,mt:W,mc:F,pc:$,pbc:j,n:el,o:e};return{render:ec,hydrate:r,createApp:(n=r,function(e,t=null){R(e)||(e=E({},e)),null==t||P(t)||(t=null);let r=n3(),i=new WeakSet,a=[],s=!1,l=r.app={_uid:n4++,_component:e,_props:t,_container:null,_context:r,_instance:null,version:"3.5.13",get config(){return r.config},set config(v){},use:(e,...t)=>(i.has(e)||(e&&R(e.install)?(i.add(e),e.install(l,...t)):R(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,a,u){if(s);else{let c=l._ceVNode||rX(e,t);return c.appContext=r,!0===u?u="svg":!1===u&&(u=void 0),a&&n?n(c,i):ec(c,i,u),s=!0,l._container=i,i.__vue_app__=l,ic(c.component)}},onUnmount(e){a.push(e)},unmount(){s&&(tA(a,l._instance,16),ec(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){let t=n6;n6=l;try{return e()}finally{n6=t}}};return l})}}(an))}let ai=(...e)=>{ar().render(...e)},aa=(...e)=>{let t=ar().createApp(...e),{mount:n}=t;return t.mount=e=>{var r,i;let a=L(r=e)?document.querySelector(r):r;if(!a)return;let s=t._component;R(s)||s.render||s.template||(s.template=a.innerHTML),1===a.nodeType&&(a.textContent="");let l=n(a,!1,(i=a)instanceof SVGElement?"svg":"function"==typeof MathMLElement&&i instanceof MathMLElement?"mathml":void 0);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),l},t}},532:function(e,t,n){"use strict";e.exports=n.p+"static/wasm/77986a83551c113f.module.wasm"},412:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{_:()=>r})},672:function(e,t,n){"use strict";let r,i;n.d(t,{x:()=>tE});var a,s=Object.create,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,h=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))f.call(e,i)||i===n||l(e,i,{get:()=>t[i],enumerable:!(r=u(t,i))||r.enumerable});return e},p=(e,t,n)=>(n=null!=e?s(d(e)):{},h(!t&&e&&e.__esModule?n:l(n,"default",{value:e,enumerable:!0}),e)),m=(r={"node_modules/eventemitter3/index.js"(e,t){var n=Object.prototype.hasOwnProperty,r="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,i,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var l=new a(n,i||e,s),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1)),u.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},u.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,a=n.length,s=Array(a);i<a;i++)s[i]=n[i].fn;return s},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,i,a,s){var l=r?r+e:e;if(!this._events[l])return!1;var u,c,d=this._events[l],f=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),f){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,i),!0;case 5:return d.fn.call(d.context,t,n,i,a),!0;case 6:return d.fn.call(d.context,t,n,i,a,s),!0}for(c=1,u=Array(f-1);c<f;c++)u[c-1]=arguments[c];d.fn.apply(d.context,u)}else{var h,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),f){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,n);break;case 4:d[c].fn.call(d[c].context,t,n,i);break;default:if(!u)for(h=1,u=Array(f-1);h<f;h++)u[h-1]=arguments[h];d[c].fn.apply(d[c].context,u)}}return!0},u.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return l(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||l(this,a);else{for(var u=0,c=[],d=s.length;u<d;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[a]=1===c.length?c[0]:c:l(this,a)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&l(this,t)):(this._events=new i,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,void 0!==t&&(t.exports=u)}},function(){return i||(0,r[c(r)[0]])((i={exports:{}}).exports,i),i.exports});function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a,s,l,u,c=Object.create((t&&t.prototype instanceof h?t:h).prototype);return r(c,"_invoke",{value:(a=e,s=n,l=new T(i||[]),u="suspendedStart",function(e,t){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===e)throw t;return O()}for(l.method=e,l.arg=t;;){var n=l.delegate;if(n){var r=function e(t,n){var r=n.method,i=t.iterator[r];if(void 0===i)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,f;var s=a.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,l);if(r){if(r===f)continue;return r}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if("suspendedStart"===u)throw u="completed",l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);u="executing";var i=d(a,s,l);if("normal"===i.type){if(u=l.done?"completed":"suspendedYield",i.arg===f)continue;return{value:i.arg,done:l.done}}"throw"===i.type&&(u="completed",l.method="throw",l.arg=i.arg)}})}),c}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function p(){}function m(){}var g={};u(g,a,function(){return this});var _=Object.getPrototypeOf,b=_&&_(_(A([])));b&&b!==t&&n.call(b,a)&&(g=b);var w=m.prototype=h.prototype=Object.create(g);function k(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){var i;r(this,"_invoke",{value:function(r,a){function s(){return new t(function(i,s){!function r(i,a,s,l){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,s,l)},function(e){r("throw",e,s,l)}):t.resolve(f).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,l)})}l(u.arg)}(r,a,i,s)})}return i=i?i.then(s,s):s()}})}function S(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(S,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=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,l,"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,m):(e.__proto__=m,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(x.prototype),u(x.prototype,s,function(){return this}),e.AsyncIterator=x,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var s=new x(c(t,n,r,i),a);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},k(w),u(w,l,"Generator"),u(w,a,function(){return this}),u(w,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,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(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(s)},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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function b(e,t,n,r,i,a,s){try{var l=e[a](s),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,i)}function w(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){b(a,r,i,s,l,"next",e)}function l(e){b(a,r,i,s,l,"throw",e)}s(void 0)})}}function k(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function S(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function D(){D=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a,s,l,u,c=Object.create((t&&t.prototype instanceof h?t:h).prototype);return r(c,"_invoke",{value:(a=e,s=n,l=new E(i||[]),u="suspendedStart",function(e,t){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===e)throw t;return A()}for(l.method=e,l.arg=t;;){var n=l.delegate;if(n){var r=function e(t,n){var r=n.method,i=t.iterator[r];if(void 0===i)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,f;var s=a.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,l);if(r){if(r===f)continue;return r}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if("suspendedStart"===u)throw u="completed",l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);u="executing";var i=d(a,s,l);if("normal"===i.type){if(u=l.done?"completed":"suspendedYield",i.arg===f)continue;return{value:i.arg,done:l.done}}"throw"===i.type&&(u="completed",l.method="throw",l.arg=i.arg)}})}),c}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function p(){}function m(){}var g={};u(g,a,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(T([])));y&&y!==t&&n.call(y,a)&&(g=y);var b=m.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){var i;r(this,"_invoke",{value:function(r,a){function s(){return new t(function(i,s){!function r(i,a,s,l){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,s,l)},function(e){r("throw",e,s,l)}):t.resolve(f).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,l)})}l(u.arg)}(r,a,i,s)})}return i=i?i.then(s,s):s()}})}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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(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:A}}function A(){return{value:void 0,done:!0}}return p.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,l,"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,m):(e.__proto__=m,u(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(k.prototype),u(k.prototype,s,function(){return this}),e.AsyncIterator=k,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var s=new k(c(t,n,r,i),a);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},w(b),u(b,l,"Generator"),u(b,a,function(){return this}),u(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,E.prototype={constructor:E,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(S),!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(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(s)},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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function R(e){return(R="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 L(e,t,n,r,i,a,s){try{var l=e[a](s),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,i)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){L(a,r,i,s,l,"next",e)}function l(e){L(a,r,i,s,l,"throw",e)}s(void 0)})}}function P(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}function F(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){if("function"!=typeof t&&null!==t)throw 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 z(e){return(z=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 G(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function V(e,t,n){return(V=G()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&H(i,n.prototype),i}).apply(null,arguments)}function W(e){var t="function"==typeof Map?new Map:void 0;return(W=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw 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,n)}function n(){return V(e,arguments,z(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),H(n,e)})(e)}function Z(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){var t=G();return function(){var n,r=z(e);n=t?Reflect.construct(r,arguments,z(this).constructor):r.apply(this,arguments);if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return Z(this)}}function Y(){return(Y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=z(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var $=function(){function e(){P(this,e)}return F(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&&0>e.start(0)?0:e.start(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)}},{key:"get",value:function(e){if(e)try{return e.buffered}catch(e){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var n=[],r=0,i=e.length;r<i;r++){var a=n.length;if(a&&t){var s=n[a-1],l=s[1];if(e.start(r)-l<=t){var u=e.end(r);u>l&&(s[1]=u)}else n.push([e.start(r),e.end(r)])}else n.push([e.start(r),e.end(r)])}return n}},{key:"totalLength",value:function(e){return e&&e.length?e.reduce(function(e,t){return e+(t[1]-t[0])},0):0}},{key:"info",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};for(var i=0,a=0,s=0,l=0,u=0,c=0,d=0,f=e.buffers(t,r),h=0,p=f.length;h<p;h++){var m=f[h];if(n+r>=m[0]&&n<=m[1])i=m[0],a=m[1],s=h;else if(n+r<m[0]){l=m[0],u=m[1];break}else n+r>m[1]&&(c=m[0],d=m[1])}return{start:i,end:a,index:s,buffers:f,nextStart:l,nextEnd:u,prevStart:c,prevEnd:d,currentTime:n,behind:n-i,remaining:a?a-n:0,length:e.totalLength&&e.totalLength(f)}}},{key:"isBuffered",value:function(t,n){if(t){var r=e.get(t);if(null!=r&&r.length){for(var i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}}return!1}}]),e}(),X="undefined"!=typeof window,Q={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",NETWORK_FORBIDDEN:"network_forbidden",NETWORK_NOTFOUND:"network_notfound",NETWROK_RANGE_NOT_SATISFIABLE:"network_range_not_satisfiable",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",RUNTIME:"runtime",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",MSE_CHANGE_TYPE:"MSE_CHANGE_TYPE",OPTION:"OPTION",DASH:"DASH",LICENSE:"LICENSE",CUSTOM_LICENSE:"CUSTOM_LICENSE",MSE_HIJACK:"MSE_HIJACK",EME_HIJACK:"EME_HIJACK",SIDX:"SIDX",NO_CANPLAY_ERROR:"NO_CANPLAY_ERROR",BUFFERBREAK_ERROR:"BUFFERBREAK_ERROR",WAITING_TIMEOUT_ERROR:"WAITING_TIMEOUT_ERROR",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_CODEC_NOT_SUPPORTED:"MEDIA_ERR_CODEC_NOT_SUPPORTED",MEDIA_ERR_URL_EMPTY:"MEDIA_ERR_URL_EMPTY"}},ee=(N(a={},Q.MANIFEST,{HLS:1100,DASH:1200}),N(a,Q.NETWORK,2100),N(a,Q.NETWORK_TIMEOUT,2101),N(a,Q.NETWORK_FORBIDDEN,2103),N(a,Q.NETWORK_NOTFOUND,2104),N(a,Q.NETWROK_RANGE_NOT_SATISFIABLE,2116),N(a,Q.DEMUX,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),N(a,Q.REMUX,{FMP4:4100,MP4:4200}),N(a,Q.MEDIA,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,MSE_CHANGE_TYPE:5205,EME_HIJACK:5301}),N(a,Q.DRM,{LICENSE:7100,CUSTOM_LICENSE:7200}),N(a,Q.OTHER,8e3),N(a,Q.RUNTIME,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),a),et=function(e){j(n,e);var t=q(n);function n(e,r,i,a,s){var l;return P(this,n),(l=t.call(this,s||(null==i?void 0:i.message))).errorType=e===Q.NETWORK_TIMEOUT?Q.NETWORK:e,l.originError=i,l.ext=a,l.errorCode=ee[e][r]||ee[e],l.errorMessage=l.message,l.errorCode||(l.errorType=Q.OTHER,l.errorCode=ee[l.errorType]),l}return F(n,null,[{key:"create",value:function(e,t,r,i,a){return e instanceof n?e:(e instanceof Error&&(r=e,e=""),e||(e=Q.OTHER),new n(e,t,r,i,a))}},{key:"network",value:function(e){var t;return new n(null!=e&&e.isTimeout?Q.NETWORK_TIMEOUT:Q.NETWORK,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.status})}}]),n}(W(Error)),en=["Boolean","Number","String","Undefined","Null","Date","Object"],er=function(){function e(t,n){P(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(null==n?void 0:n.logCacheLevel)||3,this.logMaxSize=(null==n?void 0:n.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return F(e,[{key:"debug",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[1].concat(r)),e.disabled||(t=console).debug.apply(t,["[".concat(ei(),"]"),this._prefix].concat(r))}},{key:"log",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[2].concat(r)),e.disabled||(t=console).log.apply(t,["[".concat(ei(),"]"),this._prefix].concat(r))}},{key:"warn",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[3].concat(r)),e.disabled||(t=console).warn.apply(t,["[".concat(ei(),"]"),this._prefix].concat(r))}},{key:"error",value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[4].concat(r)),e.disabled||(t=console).error.apply(t,["[".concat(ei(),"]"),this._prefix].concat(r))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=r.map(function(e){return function e(t,n,r){r||(r=1),n||(n=2);var i={};if(!t||"object"!==R(t))return t;var a=Object.prototype.toString.call(t).slice(8,-1);if(!en.includes(a))return a;if(!(r>n)){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r===n?i[s]=function(e){if("object"!==R(e))return e;var t=Object.prototype.toString.call(e).slice(8,-1);switch(t){case"Array":case"Uint8Array":case"ArrayBuffer":return t+"["+e.length+"]";case"Object":return"{}";default:return t}}(t[s]):"object"===R(t[s])?i[s]=e(t[s],n,r+1):i[s]=t[s]);return i}}(e)});t="[".concat(ei(),"]")+this._prefix+JSON.stringify(a)}catch(e){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var s=this.logTextArray.shift();this.logSize-=s.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 ei(){return new Date().toLocaleString()}function ea(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.used=!1,n.resolve=function(){return n.used=!0,e.apply(void 0,arguments)},n.reject=function(){return n.used=!0,t.apply(void 0,arguments)},n}function es(){try{return parseInt(performance.now(),10)}catch(e){return new Date().getTime()}}N(er,"disabled",!0);var eo={stringify:function(e){try{return JSON.stringify(e)}catch(e){return""}}};function el(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];try{if(!X)return null;if(e&&"undefined"!=typeof ManagedMediaSource)return ManagedMediaSource;return window.MediaSource}catch(e){}}function eu(e){return/ManagedMediaSource/gi.test(Object.prototype.toString.call(e))}var ec={APPEND:"appendBuffer",REMOVE:"removeBuffer",UPDATE_DURATION:"updateDuration"},ed=function(){var e,t,n;function r(e,t){var n=this;P(this,r),N(this,"media",null),N(this,"mediaSource",null),N(this,"_openPromise",ea()),N(this,"_queue",Object.create(null)),N(this,"_sourceBuffer",Object.create(null)),N(this,"_mseFullFlag",{}),N(this,"_st",0),N(this,"_opst",0),N(this,"_logger",null),N(this,"_config",null),N(this,"_url",null),N(this,"_onStartStreaming",function(){n._logger.debug("startstreaming")}),N(this,"_onEndStreaming",function(){n._logger.debug("endstreaming")}),N(this,"_onSBUpdateEnd",function(e){var t=n._queue[e];if(t){var r=t[0];if((null==r?void 0:r.opName)!==ec.UPDATE_DURATION&&t.shift(),r){var i,a,s=es()-n._opst;n._logger.debug("UpdateEnd(".concat(e,"/").concat(r.opName,")"),eo.stringify(function(e){var t=[];if(e instanceof TimeRanges)for(var n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}(null==(i=n._sourceBuffer[e])?void 0:i.buffered)),s,r.context),r.promise.resolve({name:r.opName,context:r.context,costtime:s});var l=null==(a=r.context)?void 0:a.callback;l&&"function"==typeof l&&l(r.context),n._startQueue(e)}}}),N(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 et(Q.MEDIA,Q.SUB_TYPES.MSE_APPEND_BUFFER,t)))}}),this._config=Object.assign(r.getDefaultConfig(),t),e&&this.bindMedia(e),this._logger=new er("MSE"),this._config.openLog&&er.enable()}return F(r,[{key:"isOpened",get:function(){var e;return(null==(e=this.mediaSource)?void 0:e.readyState)==="open"}},{key:"hasOpTasks",get:function(){var e=this,t=!1;return Object.keys(this._queue).forEach(function(n){var r=e._queue[n];Array.isArray(r)&&(t||(t=r.length>0))}),t}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var e;return(null==(e=this.mediaSource)?void 0:e.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"streaming",get:function(){return!eu(this.mediaSource)||this.mediaSource.streaming}},{key:"isFull",value:function(e){return e?this._mseFullFlag[e]:this._mseFullFlag[r.VIDEO]}},{key:"updateDuration",value:function(e){var t=this,n=this.mediaSource&&this.mediaSource.duration>e;if(this.mediaSource&&this.mediaSource.duration>e){var r=0;if(Object.keys(this._sourceBuffer).forEach(function(e){try{r=Math.max(t.bufferEnd(e)||0,r)}catch(e){}}),e<r)return Promise.resolve()}return this._enqueueBlockingOp(function(){if(t.isEnded)return void t._logger.debug("setDuration but ended");t.mediaSource&&(t.mediaSource.duration=e,t._logger.debug("setDuration",e))},ec.UPDATE_DURATION,{isReduceDuration:n})}},{key:"open",value:function(){var e=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource;t.addEventListener("sourceopen",function n(){var r=es()-e._st;e._logger.debug("sourceopen",r),t.removeEventListener("sourceopen",n),e._openPromise.resolve({costtime:r})}),this._openPromise=ea()}return this._openPromise}},{key:"bindMedia",value:(e=B(D().mark(function e(t){var n,r,i,a,s=this;return D().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(n=el(this._config.preferMMS),!(!t||!n)){e.next=6;break}throw Error("Param media or MediaSource does not exist");case 6:return this.media=t,i=eu(r=this.mediaSource=new n),this._st=es(),a=function e(){var n=es()-s._st;s._logger.debug("sourceopen"),r.removeEventListener("sourceopen",e),URL.revokeObjectURL(t.src),s._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",a),i&&(r.addEventListener("startstreaming",this._onStartStreaming),r.addEventListener("endstreaming",this._onEndStreaming)),this._url=URL.createObjectURL(r),t.src=this._url,t.disableRemotePlayback=i,e.abrupt("return",this._openPromise);case 17:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"unbindMedia",value:(t=B(D().mark(function e(){var t,n,r,i=this;return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource){if(Object.keys(this._queue).forEach(function(e){var t=i._queue[e];t&&t.forEach(function(e){var t,n;return null==(t=e.promise)||null==(n=t.resolve)?void 0:n.call(t)})}),n=!!this.media&&this.media.readyState>=1,r="open"===t.readyState,n&&r)try{t.endOfStream()}catch(e){}Object.keys(this._sourceBuffer).forEach(function(e){try{t.removeSourceBuffer(i._sourceBuffer[e])}catch(e){}}),eu(t)&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming))}if(this.media){this.media.disableRemotePlayback=!1,this.media.removeAttribute("src");try{this.media.load()}catch(e){}this.media=null}this.mediaSource=null,this._openPromise=ea(),this._queue=Object.create(null),this._sourceBuffer=Object.create(null);case 8:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"createSource",value:function(e,t){var n;if(!this._sourceBuffer[e]&&this.mediaSource){try{n=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(e){throw new et(Q.MEDIA,Q.SUB_TYPES.MSE_ADD_SB,e)}n.mimeType=t,n.addEventListener("updateend",this._onSBUpdateEnd.bind(this,e)),n.addEventListener("error",this._onSBUpdateError.bind(this,e))}}},{key:"changeType",value:function(e,t){var n=this,r=this._sourceBuffer[e];return this.mediaSource&&r&&r.mimeType!==t?"function"!=typeof r.changeType?Promise.reject(new et(Q.MEDIA,Q.SUB_TYPES.MSE_CHANGE_TYPE,Error("changeType is not a function"))):this._enqueueOp(e,function(){try{r.changeType(t)}catch(e){throw new et(Q.MEDIA,Q.SUB_TYPES.MSE_CHANGE_TYPE,e)}r.mimeType=t,n._onSBUpdateEnd(e)},"changeType",{mimeType:t}):Promise.resolve()}},{key:"createOrChangeSource",value:function(e,t){return this.createSource(e,t),this.changeType(e,t)}},{key:"append",value:function(e,t,n){var r=this;return t&&t.byteLength&&this._sourceBuffer[e]?this._enqueueOp(e,function(){var i;r.mediaSource&&!r.media.error&&(r._logger.debug("MSE APPEND START",n),r._opst=es(),null==(i=r._sourceBuffer[e])||i.appendBuffer(t))},ec.APPEND,n):Promise.resolve()}},{key:"remove",value:function(e,t,n,r){var i=this,a=!1;return this._mseFullFlag[e]&&(a=!0),this._enqueueOp(e,function(){if(i.mediaSource&&!i.media.error){var a=i._sourceBuffer[e];if(t>=n||!a)return void i._onSBUpdateEnd(e);i._opst=es(),i._logger.debug("MSE REMOVE START",e,t,n,r),a.remove(t,n)}},ec.REMOVE,r,a)}},{key:"clearBuffer",value:function(e,t){var n,r=this;return Object.keys(this._sourceBuffer).forEach(function(i){n=r.remove(i,e,t)}),n||Promise.resolve()}},{key:"clearAllBuffer",value:function(){var e,t=this;return Object.keys(this._sourceBuffer).forEach(function(n){var r=t._sourceBuffer[n];e=t.remove(n,0,$.end($.get(r)))}),e}},{key:"clearOpQueues",value:function(e,t){this._logger.debug("MSE clearOpQueue START");var n,r=this._queue[e];if(t&&r){this._queue[e]=[];return}if(r&&r[e]&&!(r.length<5)){var i=[];r.forEach(function(e){e.context&&e.context.isinit&&i.push(e)}),this._queue[e]=r.slice(0,2),i.length>0&&(n=this._queue[e]).push.apply(n,i)}}},{key:"endOfStream",value:function(e){var t=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp(function(){var n=t.mediaSource;n&&"open"===n.readyState&&(t._logger.debug("MSE endOfStream START"),e?n.endOfStream(e):n.endOfStream())},"endOfStream"):Promise.resolve()}},{key:"setLiveSeekableRange",value:function(e,t){var n=this.mediaSource;e<0||t<e||null==n||!n.setLiveSeekableRange||"open"!==n.readyState||n.setLiveSeekableRange(e,t)}},{key:"getSourceBuffer",value:function(e){return this._sourceBuffer[e]}},{key:"buffered",value:function(e){return $.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return $.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return $.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,n,r,i){var a=this;if(!this.mediaSource)return Promise.resolve();var s=this._queue[e]=this._queue[e]||[],l={exec:t,promise:ea(),opName:n,context:r};return i?(s.splice(0,0,l),this._mseFullFlag[e]=!1,this._startQueue(e)):s.push(l),this.isOpened||this.isEnded?1===s.length&&this._startQueue(e):this._openPromise.then(function(){1===s.length&&a._startQueue(e)}),l.promise}},{key:"_enqueueBlockingOp",value:(n=B(D().mark(function e(t,n,r){var i,a,s=this;return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if((i=Object.keys(this._sourceBuffer)).length){e.next=5;break}return e.abrupt("return",t());case 5:return a=[],i.forEach(function(e){var t=s._queue[e],i=ea();a.push(i),t.push({exec:function(){i.resolve()},promise:i,opName:n,context:r}),1===t.length&&s._startQueue(e)}),e.abrupt("return",Promise.all(a).then(function(){try{return t()}finally{i.forEach(function(e){var t=s._queue[e],n=s._sourceBuffer[e];null==t||t.shift(),n&&n.updating||s._startQueue(e)})}}));case 8:case"end":return e.stop()}},e,this)})),function(e,t,r){return n.apply(this,arguments)})},{key:"_startQueue",value:function(e){var t=this._queue[e];if(t){var n,r,i=t[0];if(i&&!this._mseFullFlag[e])try{i.exec()}catch(a){a&&a.message&&a.message.indexOf("SourceBuffer is full")>=0?(this._mseFullFlag[e]=!0,i.context&&"object"===R(i.context)&&(i.context.isFull=!0),this._logger.error("[MSE error], context,",i.context," ,name,",i.opName,",err,SourceBuffer is full"),null==i||null==(n=i.promise)||n.reject(new et(Q.MEDIA,Q.SUB_TYPES.MSE_FULL,a))):(this._logger.error(a),null==i||null==(r=i.promise)||r.reject(a.constructor===et?a:new et(Q.MEDIA,Q.SUB_TYPES.MSE_OTHER,a)),t.shift(),this._startQueue(e))}}}},{key:"setTimeoffset",value:function(e,t,n){var r=this;return this._enqueueOp(e,function(){t<0&&(t+=.001),r._sourceBuffer[e].timestampOffset=t,r._onSBUpdateEnd(e)},"setTimeoffset",n)}},{key:"abort",value:function(e,t){var n=this;return this.isOpened?this._enqueueOp(e,function(){n._sourceBuffer[e].abort(),n._onSBUpdateEnd(e)},"abort",t):Promise.resolve()}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"',t=el();if(!t)return!1;try{return t.isTypeSupported(e)}catch(t){return this._logger.error(e,t),!1}}},{key:"isMMSOnly",value:function(){return"undefined"!=typeof ManagedMediaSource&&"undefined"==typeof MediaSource}},{key:"getDefaultConfig",value:function(){return{openLog:!1,preferMMS:!1}}}]),r}();N(ed,"VIDEO","video"),N(ed,"AUDIO","audio");var ef={FETCH:"fetch",XHR:"xhr"},eh={ARRAY_BUFFER:"arraybuffer",TEXT:"text",JSON:"json"},ep=function(e){j(n,e);var t=q(n);function n(e,r,i,a){var s;return P(this,n),N(Z(s=t.call(this,a)),"retryCount",0),N(Z(s),"isTimeout",!1),N(Z(s),"loaderType",ef.FETCH),N(Z(s),"startTime",0),N(Z(s),"endTime",0),N(Z(s),"options",{}),s.url=e,s.request=r,s.response=i,s}return F(n)}(W(Error)),ev=Object.prototype.toString;function em(e){if("[object Object]"!==ev.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function eg(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 e_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ey(e,t){if(e){if(!t)return e;var n,r=Object.keys(t).map(function(e){if(null!=(n=t[e]))return Array.isArray(n)?e+="[]":n=[n],n.map(function(t){var n,r;return(n=t,"[object Date]"===ev.call(n))?t=t.toISOString():null!==(r=t)&&"object"===R(r)&&(t=JSON.stringify(t)),"".concat(e_(e),"=").concat(e_(t))}).join("&")}).filter(Boolean).join("&");if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}}function eb(e,t,n,r,i,a,s,l,u,c,d){return i=null!=i?parseFloat(i):null,Number.isNaN(r=parseInt(r||"0",10))&&(r=0),{data:e,done:t,options:{range:u,vid:c,index:l,contentLength:r,age:i,startTime:a,firstByteTime:s,endTime:Date.now(),priOptions:d},response:n}}function ew(e,t){return Math.round(8*e*1e3/t/1024)}var ek={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",APPEND_BUFFER:"core.appendbuffer",REMOVE_BUFFER:"core.removebuffer",BUFFEREOS:"core.buffereos",KEYFRAME:"core.keyframe",CHASEFRAME:"core.chaseframe",METADATA_PARSED:"core.metadataparsed",SEI:"core.sei",SEI_IN_TIME:"core.seiintime",FLV_SCRIPT_DATA:"core.flvscriptdata",SWITCH_URL_SUCCESS:"core.switchurlsuccess",SWITCH_URL_FAILED:"core.switchurlfailed",DEMUXED_TRACK:"core.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"},ex=function(e){j(r,e);var t,n=q(r);function r(){var e;return P(this,r),N(Z(e=n.call(this)),"_abortController",null),N(Z(e),"_timeoutTimer",null),N(Z(e),"_reader",null),N(Z(e),"_response",null),N(Z(e),"_aborted",!1),N(Z(e),"_index",-1),N(Z(e),"_range",null),N(Z(e),"_receivedLength",0),N(Z(e),"_running",!1),N(Z(e),"_logger",null),N(Z(e),"_vid",""),N(Z(e),"_onProcessMinLen",0),N(Z(e),"_onCancel",null),N(Z(e),"_priOptions",null),e}return F(r,[{key:"load",value:function(e){var t,n=this,r=e.url,i=e.vid,a=e.timeout,s=e.responseType,l=e.onProgress,u=e.index,c=e.onTimeout,d=e.onCancel,f=e.range,h=e.transformResponse,p=e.request,m=e.params,g=e.logger,_=e.method,y=e.headers,b=e.body,w=e.mode,k=e.credentials,x=e.cache,S=e.redirect,E=e.referrer,T=e.referrerPolicy,A=e.onProcessMinLen,O=e.priOptions;this._logger=g,this._aborted=!1,this._onProcessMinLen=A,this._onCancel=d,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=u,this._range=f||[0,0],this._vid=i||r,this._priOptions=O||{};var I={method:_,headers:y,body:b,mode:w,credentials:k,cache:x,redirect:S,referrer:E,referrerPolicy:T,signal:null==(t=this._abortController)?void 0:t.signal},C=!1;clearTimeout(this._timeoutTimer),r=ey(r,m);var U=eg(f);U&&(y=p?p.headers:I.headers=I.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",U):y.Range=U),a&&(this._timeoutTimer=setTimeout(function(){if(C=!0,n.cancel(),c){var e=new ep(r,I,null,"timeout");e.isTimeout=!0,c(e,{index:n._index,range:n._range,vid:n._vid,priOptions:n._priOptions})}},a));var R=Date.now();return this._logger.debug("[fetch load start], index,",u,",range,",f),new Promise(function(e,t){var i;fetch(p||r,p?void 0:I).then((i=B(D().mark(function i(a){var c,d,p,m;return D().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(clearTimeout(n._timeoutTimer),n._response=a,!(n._aborted||!n._running)){i.next=4;break}return i.abrupt("return");case 4:if(h&&(a=h(a,r)||a),a.ok){i.next=7;break}throw new ep(r,I,a,"bad network response");case 7:if(c=Date.now(),s!==eh.TEXT){i.next=15;break}return i.next=11,a.text();case 11:case 18:d=i.sent,n._running=!1,i.next=37;break;case 15:if(s!==eh.JSON){i.next=22;break}return i.next=18,a.json();case 22:if(!l){i.next=29;break}return n.resolve=e,n.reject=t,n._loadChunk(a,l,R,c),i.abrupt("return");case 29:return i.next=31,a.arrayBuffer();case 31:d=new Uint8Array(d=i.sent),n._running=!1,p=Date.now()-R,m=ew(d.byteLength,p),n.emit(ek.REAL_TIME_SPEED,{speed:m,len:d.byteLength,time:p,vid:n._vid,index:n._index,range:n._range,priOptions:n._priOptions});case 37:n._logger.debug("[fetch load end], index,",u,",range,",f),e(eb(d,!0,a,a.headers.get("Content-Length"),a.headers.get("age"),R,c,u,f,n._vid,n._priOptions));case 39:case"end":return i.stop()}},i)})),function(e){return i.apply(this,arguments)})).catch(function(e){var i;clearTimeout(n._timeoutTimer),n._running=!1,(!n._aborted||C)&&((e=e instanceof ep?e:new ep(r,I,null,null==(i=e)?void 0:i.message)).startTime=R,e.endTime=Date.now(),e.isTimeout=C,e.options={index:n._index,range:n._range,vid:n._vid,priOptions:n._priOptions},t(e))})})}},{key:"cancel",value:(t=B(D().mark(function e(){return D().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(e){}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,n,r){var i,a,s,l,u=this;if(!e.body||!e.body.getReader){this._running=!1;var c=new ep(e.url,"",e,"onProgress of bad response.body.getReader");c.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this.reject(c);return}this._onProcessMinLen>0&&(this._cache=new Uint8Array(2097152),this._writeIdx=0);var d=this._reader=e.body.getReader(),f=(i=B(D().mark(function i(){var c,h,p,m,g,_,y,b;return D().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return s=Date.now(),i.prev=1,i.next=4,d.read();case 4:a=i.sent,l=Date.now(),i.next=13;break;case 8:return i.prev=8,i.t0=i.catch(1),l=Date.now(),u._aborted||(u._running=!1,i.t0.options={index:u._index,range:u._range,vid:u._vid,priOptions:u._priOptions},u.reject(i.t0)),i.abrupt("return");case 13:if(p=(h=(null==(c=u._range)?void 0:c.length)>0?u._range[0]:0)+u._receivedLength,!u._aborted){i.next=19;break}return u._running=!1,t(void 0,!1,{range:[p,p],vid:u._vid,index:u._index,startTime:s,endTime:l,st:n,firstByteTime:r,priOptions:u._priOptions},e),i.abrupt("return");case 19:m=a.value?a.value.byteLength:0,u._receivedLength+=m,u._logger.debug("【fetchLoader,onProgress call】,task,",u._range,", start,",p,", end,",h+u._receivedLength,", done,",a.done),u._onProcessMinLen>0?u._writeIdx+m>=u._onProcessMinLen||a.done?((g=new Uint8Array(u._writeIdx+m)).set(u._cache.slice(0,u._writeIdx),0),m>0&&g.set(a.value,u._writeIdx),u._writeIdx=0,u._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",g.byteLength,", writeIdx,",u._writeIdx)):m>0&&u._writeIdx+m<2097152?(u._cache.set(a.value,u._writeIdx),u._writeIdx+=m,u._logger.debug("【fetchLoader,onProgress cache】,len,",m,", writeIdx,",u._writeIdx)):m>0&&(_=new Uint8Array(u._writeIdx+m+2048),u._logger.debug("【fetchLoader,onProgress extra start】,size,",u._writeIdx+m+2048,", datalen,",m,", writeIdx,",u._writeIdx),_.set(u._cache.slice(0,u._writeIdx),0),m>0&&_.set(a.value,u._writeIdx),u._writeIdx+=m,delete u._cache,u._cache=_,u._logger.debug("【fetchLoader,onProgress extra end】,len,",m,", writeIdx,",u._writeIdx)):g=a.value,(g&&g.byteLength>0||a.done)&&t(g,a.done,{range:[u._range[0]+u._receivedLength-(g?g.byteLength:0),u._range[0]+u._receivedLength],vid:u._vid,index:u._index,startTime:s,endTime:l,st:n,firstByteTime:r,priOptions:u._priOptions},e),a.done?(y=Date.now()-n,b=ew(u._receivedLength,y),u.emit(ek.REAL_TIME_SPEED,{speed:b,len:u._receivedLength,time:y,vid:u._vid,index:u._index,range:u._range,priOptions:u._priOptions}),u._running=!1,u._logger.debug("[fetchLoader onProgress end],task,",u._range,",done,",a.done),u.resolve(eb(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),n,r,u._index,u._range,u._vid,u._priOptions))):f();case 25:case"end":return i.stop()}},i,null,[[1,8]])})),function(){return i.apply(this,arguments)});f()}},{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}}]),r}(p(m()).default),eS=function(e){j(n,e);var t=q(n);function n(){var e;return P(this,n),N(Z(e=t.call(this)),"_xhr",null),N(Z(e),"_aborted",!1),N(Z(e),"_timeoutTimer",null),N(Z(e),"_range",null),N(Z(e),"_receivedLength",0),N(Z(e),"_url",null),N(Z(e),"_onProgress",null),N(Z(e),"_index",-1),N(Z(e),"_headers",null),N(Z(e),"_currentChunkSizeKB",384),N(Z(e),"_timeout",null),N(Z(e),"_xhr",null),N(Z(e),"_withCredentials",null),N(Z(e),"_startTime",-1),N(Z(e),"_loadCompleteResolve",null),N(Z(e),"_loadCompleteReject",null),N(Z(e),"_runing",!1),N(Z(e),"_logger",!1),N(Z(e),"_vid",""),N(Z(e),"_responseType",void 0),N(Z(e),"_credentials",void 0),N(Z(e),"_method",void 0),N(Z(e),"_transformResponse",void 0),N(Z(e),"_firstRtt",void 0),N(Z(e),"_onCancel",null),N(Z(e),"_priOptions",null),e}return F(n,[{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=ey(e.url,e.params);var n=Date.now();return new Promise(function(e,n){t._loadCompleteResolve=e,t._loadCompleteReject=n,t._startLoad()}).catch(function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof ep?e:new ep(t._url,t._request)).startTime=n,e.endTime=Date.now(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e})}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===eh.ARRAY_BUFFER&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,n=this._range[0]+this._receivedLength,r=this._range[1];t<this._range[1]-n&&(r=n+t),e=[n,r],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{this._startTime=Date.now();var n=this._xhr=new XMLHttpRequest;n.open(this._method||"GET",this._url,!0),n.responseType=this._responseType,this._timeout&&(n.timeout=this._timeout),n.withCredentials=this._withCredentials,n.onload=this._onLoad.bind(this),n.onreadystatechange=this._onReadyStatechange.bind(this),n.onerror=function(e){t._running=!1;var n,r,i,a=new ep(t._url,t._request,null==e||null==(n=e.currentTarget)?void 0:n.response,"xhr.onerror.status:"+(null==e||null==(r=e.currentTarget)?void 0:r.status)+",statusText,"+(null==e||null==(i=e.currentTarget)?void 0:i.statusText));a.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(a)},n.ontimeout=function(e){t.cancel();var n=new ep(t._url,t._request,{status:408},"timeout");t._onTimeout&&(n.isTimeout=!0,t._onTimeout(n,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),n.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(n)};var r=this._headers||{},i=eg(e);i&&(r.Range=i),r&&Object.keys(r).forEach(function(e){n.setRequestHeader(e,r[e])}),this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),n.send(this._body)}catch(t){t.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(t)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=Date.now())}},{key:"_onLoad",value:function(e){var t=e.target.status;if(t<200||t>299){var n=new ep(this._url,null,U(U({},e.target.response),{},{status:t}),"bad response,status:"+t);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var r=null,i=!1,a=(null==(s=this._range)?void 0:s.length)>0?this._range[0]:0;if(this._responseType===eh.ARRAY_BUFFER){var s,l,u,c=new Uint8Array(e.target.response);if(l=a+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var d=Date.now()-this._startTime,f=ew(this._receivedLength,d);this.emit(ek.REAL_TIME_SPEED,{speed:f,len:this._receivedLength,time:d,vid:this._vid,index:this._index,range:[l,a+this._receivedLength],priOptions:this._priOptions})}r=c,i=!((null==(u=this._range)?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",l,"end ",a+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",i)}else i=!0,r=e.target.response;var h={ok:t>=200&&t<300,status:t,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(r,i,{index:this._index,vid:this._vid,range:[l,a+this._receivedLength],startTime:this._startTime,endTime:Date.now(),priOptions:this._priOptions},h),i?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(eb(this._onProgress?null:r,i,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&&(this._aborted=!0,this._runing=!1,Y(z(n.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr))return this._xhr.abort()}},{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,n=e.getAllResponseHeaders().trim().split("\r\n"),r={},i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return J(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,void 0)}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(n);try{for(i.s();!(t=i.n()).done;){var a=t.value.split(": ");r[a[0].toLowerCase()]=a.slice(1).join(": ")}}catch(e){i.e(e)}finally{i.f()}return r}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),n}(p(m()).default),eE=["retry","retryDelay","onRetryError","transformError"],eT=function(){var e;function t(e,n){P(this,t),this.promise=ea(),this.alive=!!n.onProgress,n.logger||(n.logger=new er("Loader")),this._loaderType=e,this._loader=e===ef.FETCH&&"undefined"!=typeof fetch?new ex:new eS,this._config=n,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=n.retryCheckFunc,this._logger=n.logger}return F(t,[{key:"exec",value:function(){var e,t=this,n=this._config,r=n.retry,i=n.retryDelay,a=n.onRetryError,s=n.transformError,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,eE),u=(e=B(D().mark(function e(){var n,c,d;return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t._loader.load(l);case 3:n=e.sent,t.promise.resolve(n),e.next=27;break;case 7:if(e.prev=7,e.t0=e.catch(0),t._loader.running=!1,t._logger.debug("[task request catch err]",e.t0),!t._canceled){e.next=13;break}return e.abrupt("return");case 13:if(e.t0.loaderType=t._loaderType,e.t0.retryCount=t._retryCount,c=e.t0,s&&(c=s(c)||c),a&&t._retryCount>0&&a(c,t._retryCount,{index:l.index,vid:l.vid,range:l.range,priOptions:l.priOptions}),t._retryCount++,d=!0,t._retryCheckFunc&&(d=t._retryCheckFunc(e.t0)),!(d&&t._retryCount<=r)){e.next=26;break}return clearTimeout(t._retryTimer),t._logger.debug("[task request setTimeout],retry",t._retryCount,",retry range,",l.range),t._retryTimer=setTimeout(u,i),e.abrupt("return");case 26:t.promise.reject(c);case 27:case"end":return e.stop()}},e,null,[[0,7]])})),function(){return e.apply(this,arguments)});return u(),this.promise}},{key:"cancel",value:(e=B(D().mark(function e(){return D().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 e.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),t}(),eA=function(e){j(r,e);var t,n=q(r);function r(e){var t;return P(this,r),N(Z(t=n.call(this,e)),"type",ef.FETCH),N(Z(t),"_queue",[]),N(Z(t),"_alive",[]),N(Z(t),"_currentTask",null),N(Z(t),"_finnalUrl",""),N(Z(t),"_config",void 0),t._config=U({loaderType:ef.FETCH,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:eh.TEXT,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),t._config.loaderType!==ef.XHR&&ex.isSupported()||(t.type=ef.XHR),t.log=e.logger,t}return F(r,[{key:"isFetch",value:function(){return this.type===ef.FETCH}},{key:"load",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?n=e:n.url=e||n.url||this._config.url,(n=Object.assign({},this._config,n)).params&&(n.params=Object.assign({},n.params)),n.headers&&em(n.headers)&&(n.headers=Object.assign({},n.headers)),n.body&&em(n.body)&&(n.body=Object.assign({},n.body)),n.transformRequest&&(n=n.transformRequest(n)||n),n.logger=this.log;var r=new eT(this.type,n);return r.loader.on(ek.REAL_TIME_SPEED,function(e){t.emit(ek.REAL_TIME_SPEED,e)}),this._queue.push(r),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),r.promise}},{key:"cancel",value:(t=B(D().mark(function e(){var t;return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._queue.map(function(e){return e.cancel()}).concat(this._alive.map(function(e){return e.cancel()})),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Promise.all(t);case 6:return e.next=8,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(function(t){return setTimeout(t,e)})}();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,n;null!=(t=e._currentTask)&&t.alive&&(null==(n=e._alive)?void 0:n.length)>0&&(e._alive=e._alive.filter(function(t){return t&&t!==e._currentTask})),e._processTask()})}}}],[{key:"isFetchSupport",value:function(){return ex.isSupported()}}]),r}(p(m()).default),eO=function(){function e(){P(this,e),N(this,"_prevCurrentTime",0)}return F(e,[{key:"do",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e){var i=e.currentTime,a=0;if(this._prevCurrentTime===i){var s=$.info($.get(e),i);if(!s.buffers.length)return;n&&s.nextStart||s.nextStart&&s.nextStart-i<t?a=s.nextStart+.1:s.end&&s.end-i>r&&!e.seeking&&(a=i+.1)}this._prevCurrentTime=i,a&&i!==a&&(e.currentTime=a)}}}]),e}(),eI=function(){function e(t){var n=this;P(this,e),N(this,"_seiSet",new Set),this.emitter=t,t.on(ek.SEI,function(e){e&&n._seiSet.add(e)})}return F(e,[{key:"throw",value:function(e,t){var n=this;if(null!=e&&this._seiSet.size){var r=e-.2,i=e+.2,a=[];this._seiSet.forEach(function(e){e.time>=r&&e.time<=i&&a.push(e)}),a.forEach(function(e){n._seiSet.delete(e),n.emitter.emit(ek.SEI_IN_TIME,e)}),t&&this._seiSet.forEach(function(t){t.time<e-5&&n._seiSet.delete(t)})}}},{key:"reset",value:function(){this._seiSet.clear()}}]),e}(),eC=function(){function e(t){P(this,e),N(this,"_chunkSpeed",0),N(this,"_chunkCache",[]),N(this,"_speeds",[]),N(this,"_totalSize",0),N(this,"_totalCost",0),this._opts=t||{}}return F(e,[{key:"addRecord",value:function(e,t){e&&t&&(this._speeds.push(8e3*e/t),this._speeds=this._speeds.slice(-3))}},{key:"addChunkRecord",value:function(e,t){if(e&&t&&!(e<((null==(n=this._opts)?void 0:n.skipChunkSize)||1e3))){this._totalSize+=e,this._totalCost+=t,this._chunkSpeed=8e3*e/t,this._chunkCache.push({size:e,duration:t,timestamp:performance.now()});var n,r,i=(null==(r=this._opts)?void 0:r.chunkCountForSpeed)||50;this._chunkCache.length>i&&(this._chunkCache=this._chunkCache.slice(-i))}}},{key:"getAvgSpeed",value:function(){if(!this._chunkCache.length&&!this._speeds.length)return 0;if(this._speeds.length)return this._speeds.reduce(function(e,t){return e+t})/this._speeds.length;var e,t=this._chunkCache[this._chunkCache.length-1],n=performance.now()-t.timestamp;return n>((null==(e=this._opts)?void 0:e.longtimeNoReceived)||3e3)&&this._chunkCache.push({size:0,duration:n,timestamp:performance.now()}),8e3*this._chunkCache.reduce(function(e,t){return e+t.size},0)/this._chunkCache.reduce(function(e,t){return e+t.duration},0)}},{key:"getLatestSpeed",value:function(){return this._chunkCache.length||this._speeds.length?this._speeds.length?this._speeds[this._speeds.length-1]:this._chunkSpeed:0}},{key:"getTotalSize",value:function(){return this._totalSize}},{key:"getTotalCost",value:function(){return this._totalCost}},{key:"reset",value:function(){this._chunkCache=[],this._speeds=[],this._totalSize=0,this._totalCost=0}}]),e}();p(m());var eU=function(){function e(t){P(this,e),N(this,"encodeType",""),N(this,"audioCodec",""),N(this,"videoCodec",""),N(this,"domain",""),N(this,"fps",0),N(this,"bitrate",0),N(this,"width",0),N(this,"height",0),N(this,"samplerate",0),N(this,"channelCount",0),N(this,"gop",0),N(this,"_bitsAccumulateSize",0),N(this,"_bitsAccumulateDuration",0),N(this,"_startGopId",-1),this._timescale=t}return F(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:"setFpsFromScriptData",value:function(e){var t,n=e.data,r=null==n||null==(t=n.onMetaData)?void 0:t.framerate;r&&r>0&&r<100&&(this.fps=r)}},{key:"setVideoMeta",value:function(e){if(this.width=e.width,this.height=e.height,this.videoCodec=e.codec,this.encodeType=e.codecType,e.fpsNum&&e.fpsDen){var t=e.fpsNum/e.fpsDen;t>0&&t<100&&(this.fps=t)}}},{key:"setAudioMeta",value:function(e){this.audioCodec=e.codec,this.samplerate=e.sampleRate,this.channelCount=e.channelCount}},{key:"setDomain",value:function(e){this.domain=e.split("/").slice(2,3)[0]}},{key:"updateBitrate",value:function(e){var t=this;if((!this.fps||this.fps>=100)&&e.length){var n=e.reduce(function(e,t){return e+t.duration},0)/e.length;this.fps=Math.round(this._timescale/n)}e.forEach(function(e){-1===t._startGopId&&(t._startGopId=e.gopId),e.gopId===t._startGopId&&t.gop++,t._bitsAccumulateDuration+=e.duration/(t._timescale/1e3),t._bitsAccumulateSize+=e.units.reduce(function(e,t){return e+t.length},0),t._bitsAccumulateDuration>=1e3&&(t.bitrate=8*t._bitsAccumulateSize,t._bitsAccumulateDuration=0,t._bitsAccumulateSize=0)})}}]),e}(),eD=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;P(this,e),N(this,"_core",null),N(this,"_samples",[]),this._core=t,this._timescale=n,this._stats=new eU(n),this._bindEvents()}return F(e,[{key:"getStats",value:function(){var e,t,n,r,i,a,s,l,u,c,d,f=(null==(e=this._core)?void 0:e.media)||{},h=f.currentTime,p=f.decodeFps;return U(U({},this._stats.getStats()),{},{downloadSpeed:(null==(t=this._core)||null==(n=t.speedInfo)?void 0:n.call(t).speed)||0,avgSpeed:(null==(r=this._core)||null==(i=r.speedInfo)?void 0:i.call(r).avgSpeed)||0,totalReceivedByte:(null==(a=this._core)||null==(s=a.speedInfo)?void 0:s.call(a).totalSize)||0,totalReceivedCost:(null==(l=this._core)||null==(u=l.speedInfo)?void 0:u.call(l).totalCost)||0,currentTime:void 0===h?0:h,bufferEnd:(null==(c=this._core)||null==(d=c.bufferInfo())?void 0:d.remaining)||0,decodeFps:void 0===p?0:p})}},{key:"_bindEvents",value:function(){var e=this;this._core.on(ek.DEMUXED_TRACK,function(t){var n=t.videoTrack;return e._stats.updateBitrate(n.samples)}),this._core.on(ek.FLV_SCRIPT_DATA,function(t){e._stats.setFpsFromScriptData(t)}),this._core.on(ek.METADATA_PARSED,function(t){"video"===t.type?e._stats.setVideoMeta(t.track):e._stats.setAudioMeta(t.track)}),this._core.on(ek.TTFB,function(t){e._stats.setDomain(t.responseUrl)})}},{key:"reset",value:function(){this._samples=[],this._stats=new eU(this._timescale)}}]),e}(),eR=p(m());function eL(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eW(r.key),r)}}function eP(e,t,n){return t&&eB(e.prototype,t),n&&eB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eM(e,t,n){return(t=eW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eF(e,t){if("function"!=typeof t&&null!==t)throw 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&&ej(e,t)}function eN(e){return(eN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ej(e,t){return(ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ez(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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 n,r=eN(e);n=t?Reflect.construct(r,arguments,eN(this).constructor):r.apply(this,arguments);if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this}}function eH(e){return function(e){if(Array.isArray(e))return eV(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eG(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eG(e,t){if(e){if("string"==typeof e)return eV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eV(e,t)}}function eV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eW(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var eZ="video",eq={AVC:"avc",HEVC:"hevc"},eY={AAC:"aac",G711PCMA:"g7110a",G711PCMU:"g7110m",OPUS:"opus",MP3:"mp3"},eJ={LARGE_AV_SHIFT:"LARGE_AV_SHIFT",LARGE_VIDEO_GAP:"LARGE_VIDEO_GAP",LARGE_VIDEO_GAP_BETWEEN_CHUNK:"LARGE_VIDEO_GAP_BETWEEN_CHUNK",LARGE_AUDIO_GAP:"LARGE_AUDIO_GAP",AUDIO_FILLED:"AUDIO_FILLED",AUDIO_DROPPED:"AUDIO_DROPPED"},eK=function(){function e(){eL(this,e),eM(this,"id",1),eM(this,"type",eZ),eM(this,"codecType",eq.AVC),eM(this,"pid",-1),eM(this,"hvcC",void 0),eM(this,"codec",""),eM(this,"timescale",0),eM(this,"formatTimescale",0),eM(this,"sequenceNumber",0),eM(this,"baseMediaDecodeTime",0),eM(this,"baseDts",0),eM(this,"duration",0),eM(this,"warnings",[]),eM(this,"samples",[]),eM(this,"pps",[]),eM(this,"sps",[]),eM(this,"vps",[]),eM(this,"fpsNum",0),eM(this,"fpsDen",0),eM(this,"sarRatio",[]),eM(this,"width",0),eM(this,"height",0),eM(this,"nalUnitSize",4),eM(this,"present",!1),eM(this,"isVideoEncryption",!1),eM(this,"isAudioEncryption",!1),eM(this,"isVideo",!0),eM(this,"lastKeyFrameDts",0),eM(this,"kid",null),eM(this,"pssh",null),eM(this,"ext",void 0)}return eP(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:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var e=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-e.dts+t.duration}return 0}},{key:"exist",value:function(){return!!/av01/.test(this.codec)||!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),e}(),e$=function(){function e(){eL(this,e),eM(this,"id",2),eM(this,"type","audio"),eM(this,"codecType",eY.AAC),eM(this,"pid",-1),eM(this,"codec",""),eM(this,"container",""),eM(this,"sequenceNumber",0),eM(this,"sampleDuration",0),eM(this,"timescale",0),eM(this,"formatTimescale",0),eM(this,"baseMediaDecodeTime",0),eM(this,"duration",0),eM(this,"warnings",[]),eM(this,"samples",[]),eM(this,"baseDts",0),eM(this,"sampleSize",16),eM(this,"sampleRate",0),eM(this,"channelCount",0),eM(this,"objectType",0),eM(this,"sampleRateIndex",0),eM(this,"config",[]),eM(this,"present",!1),eM(this,"isVideoEncryption",!1),eM(this,"isAudioEncryption",!1),eM(this,"kid",null),eM(this,"ext",void 0)}return eP(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.container)&&(this.codecType===eY.AAC||this.codecType===eY.G711PCMA||this.codecType===eY.G711PCMU||this.codecType===eY.OPUS||this.codecType===eY.MP3))}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var e=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-e.dts+t.duration}return 0}}]),e}(),eX=function(){function e(t,n,r){eL(this,e),eM(this,"flag",{}),eM(this,"keyframe",!1),eM(this,"gopId",0),eM(this,"duration",0),eM(this,"size",0),eM(this,"units",[]),eM(this,"chromaFormat",420),this.originPts=this.pts=t,this.originDts=this.dts=n,r&&(this.units=r)}return eP(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}(),eQ=eP(function e(t,n,r,i){eL(this,e),eM(this,"duration",1024),eM(this,"flag",{dependsOn:2,isNonSyncSample:0}),eM(this,"keyframe",!0),this.originPts=this.pts=this.dts=t,this.data=n,this.size=n.byteLength,this.sampleOffset=i,r&&(this.duration=r)}),e0=eP(function e(t,n){eL(this,e),eM(this,"time",0),this.data=t,this.originPts=this.pts=n}),e1=function(e){eF(n,e);var t=ez(n);function n(){return eL(this,n),t.apply(this,arguments)}return eP(n)}(e0),e2=function(e){eF(n,e);var t=ez(n);function n(){return eL(this,n),t.apply(this,arguments)}return eP(n)}(e0),e5=function(){function e(){eL(this,e),eM(this,"id",3),eM(this,"type","metadata"),eM(this,"timescale",0),eM(this,"flvScriptSamples",[]),eM(this,"seiSamples",[])}return eP(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}(),e3=function(){function e(t){eL(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return eP(e,[{key:"warn",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(r))}}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();eM(e3,"disabled",!0);var e4="undefined"!=typeof window,e6=e4&&navigator.userAgent.toLocaleLowerCase(),e8=e4&&/^((?!chrome|android).)*safari/.test(e6),e9=e4&&e6.includes("firefox"),e7=e4&&e6.includes("android"),te=function(){function e(){eL(this,e)}return eP(e,null,[{key:"getRateIndexByRate",value:function(t){return e.FREQ.indexOf(t)}},{key:"parseADTS",value:function(t,n){for(var r,i,a=t.length,s=0;s+2<a&&(255!==t[s]||(246&t[s+1])!=240);)s++;if(!(s>=a)){var l=s,u=[],c=(60&t[s+2])>>>2,d=e.FREQ[c];if(!d)throw Error("Invalid sampling index: ".concat(c));for(var f=((192&t[s+2])>>>6)+1,h=(1&t[s+2])<<2|(192&t[s+3])>>>6,p=e._getConfig(c,h,f),m=p.config,g=p.codec,_=0,y=e.getFrameDuration(d);s+7<a;){if(255!==t[s]||(246&t[s+1])!=240){s++;continue}if(!(i=(3&t[s+3])<<11|t[s+4]<<3|(224&t[s+5])>>5)||a-s<i)break;r=(1&~t[s+1])*2,u.push({pts:n+_*y,data:t.subarray(s+7+r,s+i)}),_++,s+=i}return{skip:l,remaining:s>=a?void 0:t.subarray(s),frames:u,samplingFrequencyIndex:c,sampleRate:d,objectType:f,channelCount:h,codec:g,config:m,originCodec:"mp4a.40.".concat(f)}}}},{key:"parseAudioSpecificConfig",value:function(t){if(t.length){var n=t[0]>>>3,r=(7&t[0])<<1|t[1]>>>7,i=(120&t[1])>>>3,a=e.FREQ[r];if(a){var s=e._getConfig(r,i,n);return{samplingFrequencyIndex:r,sampleRate:a,objectType:n,channelCount:i,config:s.config,codec:s.codec,originCodec:"mp4a.40.".concat(n)}}}}},{key:"getFrameDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*t/e}},{key:"_getConfig",value:function(e,t,n){var r,i,a=[];return e9?e>=6?(r=5,i=e-3):(r=2,i=e):e7?(r=2,i=e):(r=5,i=e,e>=6?i=e-3:1===t&&(r=2,i=e)),a[0]=r<<3,a[0]|=(14&e)>>1,a[1]=(1&e)<<7,a[1]|=t<<3,5===r&&(a[1]|=(14&i)>>1,a[2]=(1&i)<<7,a[2]|=8,a[3]=0),{config:a,codec:"mp4a.40.".concat(r)}}},{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||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}();eM(te,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var tt=function(){function e(){eL(this,e)}return eP(e,null,[{key:"getFrameDuration",value:function(e){return 20}},{key:"parseHeaderPackets",value:function(e){if(e.length){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n="",r=0;r<8;r++)n+=String.fromCodePoint(e[r]);if("OpusHead"!==n)throw Error("Invalid Opus MagicSignature");var i=e[9];console.log("Pre-skip",e[10],e[11]);var a=t.getUint32(12,!0),s=t.getInt16(16,!0);if(a)return{outputGain:s,sampleRate:a,channelCount:i,config:new Uint8Array(e.buffer,e.byteOffset+8,e.byteLength-8),codec:"opus",originCodec:"opus"}}}}]),e}(),tn=function(){function e(t,n,r){eL(this,e),this.videoTrack=t,this.audioTrack=n,this.metadataTrack=r,this._baseDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastVideoDuration=0,this._keyFrameInNextChunk=!1,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0}return eP(e,[{key:"fix",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];t=Math.round(1e3*t);var i=this.videoTrack,a=this.audioTrack;if((n||!r)&&(this._videoLastSample=null,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0),n&&!r&&(this._baseDtsInited=!1),this._baseDtsInited||this._calculateBaseDts(a,i),!r&&t&&(this._audioNextPts=this._videoNextDts=t),this._baseDtsInited&&(this._videoTimestampBreak||!this.videoTrack.exist())&&(this._audioTimestampBreak||!this.audioTrack.exist())&&this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(a),this._keyFrameInNextChunk=!1,this._fixVideo(i),this.metadataTrack.exist()){var s=this.metadataTrack.timescale;this.metadataTrack.seiSamples.forEach(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/s}),this.metadataTrack.flvScriptSamples.forEach(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/s})}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),a.samples.length&&(a.baseMediaDecodeTime=a.samples[0].pts*a.timescale/1e3)}},{key:"_fixVideo",value:function(e){var t,n,r=this,i=e.samples;if(i.length){if(i.forEach(function(e){e.dts-=r._baseDts,e.pts-=r._baseDts,e.keyframe&&(r._keyFrameInNextChunk=!0)}),e.fpsNum&&e.fpsDen)t=e.timescale*(e.fpsDen/e.fpsNum);else if(e.length>1){var a=e.samples[0];t=Math.floor((e.samples[i.length-1].dts-a.dts)/(i.length-1))}else t=this._lastVideoDuration||40;var s=i.pop();if(this._videoLastSample&&i.unshift(this._videoLastSample),this._videoLastSample=s,i.length){if(void 0===this._videoNextDts){var l=i[0];this._videoNextDts=l.dts}var u=i.length,c=0,d=i[0],f=this._videoNextDts-d.dts;Math.abs(f)>200&&(Math.abs(d.dts-this._lastVideoExceptionChunkFirstDtsDot)>5e3&&(this._lastVideoExceptionChunkFirstDtsDot=d.dts,e.warnings.push({type:eJ.LARGE_VIDEO_GAP_BETWEEN_CHUNK,nextDts:this._videoNextDts,firstSampleDts:d.dts,nextSampleDts:null==(n=i[1])?void 0:n.dts,sampleDuration:f})),this._videoTimestampBreak>=5?(this._videoNextDts=d.dts,this._videoTimestampBreak=0):(d.dts+=f,d.pts+=f,this.audioTrack.exist()||(this._videoTimestampBreak=1)));for(var h=0;h<u;h++){var p=i[h].dts,m=i[h+1];((c=h<u-1?m.dts-p:s?s.dts-p:t)>1e3||c<0)&&(this._videoTimestampBreak++,Math.abs(p-this._lastVideoExceptionLargeGapDot)>5e3&&(this._lastVideoExceptionLargeGapDot=p,e.warnings.push({type:eJ.LARGE_VIDEO_GAP,time:p/e.timescale,dts:p,originDts:i[h].originDts,nextDts:this._videoNextDts,sampleDuration:c,refSampleDuration:t})),c=t),i[h].duration=c,this._videoNextDts+=c,this._lastVideoDuration=c}}}}},{key:"_fixAudio",value:function(e){var t=this,n=e.samples;n.length&&(n.forEach(function(e){e.dts=e.pts-=t._baseDts}),this._doFixAudioInternal(e,n,1e3))}},{key:"_calculateBaseDts",value:function(e,t){var n=e.samples,r=t.samples;if(!n.length&&!r.length)return!1;var i=1/0,a=1/0;n.length&&(e.baseDts=i=n[0].pts),r.length&&(t.baseDts=a=r[0].dts),this._baseDts=Math.min(i,a);var s=a-i;return Number.isFinite(s)&&Math.abs(s)>500&&t.warnings.push({type:eJ.LARGE_AV_SHIFT,videoBaseDts:a,audioBasePts:i,baseDts:this._baseDts,delta:s}),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){this._calculateBaseDts(this.audioTrack,this.videoTrack)&&(this.audioTrack.exist()?this.videoTrack.exist()?this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts):this._baseDts-=this._audioNextPts:this._baseDts-=this._videoNextDts,this._videoTimestampBreak=0,this._audioTimestampBreak=0)}},{key:"_doFixAudioInternal",value:function(e,t,n){if(!e.sampleDuration)switch(e.codecType){case eY.AAC:e.sampleDuration=te.getFrameDuration(e.timescale,n);break;case eY.OPUS:e.sampleDuration=tt.getFrameDuration(e.samples,n);break;case eY.G711PCMA:case eY.G711PCMU:e.sampleDuration=this._getG711Duration(e);break;default:console.error("can't fix audio codecType:",e.codecType)}var r=e.sampleDuration,i=e.codecType===eY.OPUS?20:e.codecType===eY.AAC?1024:r*e.timescale/1e3;if(void 0===this._audioNextPts){var a=t[0];this._audioNextPts=a.pts}for(var s=0;s<t.length;s++){var l=this._audioNextPts,u=t[s],c=u.pts-l;if(0===s&&this._audioTimestampBreak>=5&&this._keyFrameInNextChunk&&(l=this._audioNextPts=u.dts,c=0,this._audioTimestampBreak=0),!this._audioTimestampBreak&&c>=3*r&&c<=1e3&&!e8){var d=this._getSilentFrame(e)||t[0].data.subarray(),f=Math.floor(c/r);Math.abs(u.pts-this._lastAudioExceptionGapDot)>5e3&&(this._lastAudioExceptionGapDot=u.pts,e.warnings.push({type:eJ.AUDIO_FILLED,pts:u.pts,originPts:u.originPts,count:f,nextPts:l,refSampleDuration:r}));for(var h=0;h<f;h++){var p=new eQ(Math.floor(this._audioNextPts+r)-Math.floor(this._audioNextPts),d,i);p.originPts=Math.floor(this._baseDts+l),t.splice(s,0,p),this._audioNextPts+=r,s++}s--}else if(c<=-3*r&&c>=-1e3)Math.abs(u.pts-this._lastAudioExceptionOverlapDot)>5e3&&(this._lastAudioExceptionOverlapDot=u.pts,e.warnings.push({type:eJ.AUDIO_DROPPED,pts:u.pts,originPts:u.originPts,nextPts:l,refSampleDuration:r})),t.splice(s,1),s--;else{if(Math.abs(c)>1e3&&(this._audioTimestampBreak++,Math.abs(u.pts-this._lastAudioExceptionLargeGapDot)>5e3&&(this._lastAudioExceptionLargeGapDot=u.pts,e.warnings.push({type:eJ.LARGE_AUDIO_GAP,time:u.pts/1e3,pts:u.pts,originPts:u.originPts,nextPts:l,sampleDuration:c,refSampleDuration:r}))),e.codecType===eY.OPUS){var m=t[t.length-1];m&&(m.duration=u.pts-m.pts)}else u.dts=u.pts=l,u.duration=i;this._audioNextPts+=r}}}},{key:"_getG711Duration",value:function(e){var t=e.sampleSize,n=e.channelCount,r=e.sampleRate,i=e.samples[0];if(i)return 2*i.data.byteLength/n/(t/8)/r*1e3}},{key:"_getSilentFrame",value:function(e){return e.codecType===eY.AAC?te.getSilentFrame(e.codec,e.channelCount):new Uint8Array(8*e.sampleDuration*e.channelCount)}}]),e}();function tr(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Uint8Array((t=t.filter(Boolean)).reduce(function(e,t){return e+t.byteLength},0)),i=0;return t.forEach(function(e){r.set(e,i),i+=e.byteLength}),r}function ti(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 ta(e){if(!Array.isArray(e)){for(var t=[],n="",r=0;r<e.length;r++)r%2&&(t.push(parseInt(n=e[r-1]+e[r],16)),n="");return t}return e.map(function(e){return parseInt(e,16)})}var ts=function(){function e(){eL(this,e)}return eP(e,null,[{key:"parseAnnexB",value:function(e){var t=e.byteLength-1,n=0;do{if(0===e[t])n++;else break;t--}while(t>0);n>=3&&(e=e.subarray(0,t+1));for(var r=e.length,i=2,a=0;null!==e[i]&&void 0!==e[i]&&1!==e[i];)i++;if((a=++i+2)>=r)return[];for(var s=[];a<r;)switch(e[a]){case 0:if(0!==e[a-1]){a+=2;break}if(0!==e[a-2]){a++;break}if(a<r-1&&1!==e[a+1]){a++;break}i!==a-2&&s.push(e.subarray(i,a-2));do a++;while(1!==e[a]&&a<r);a=(i=a+1)+2;break;case 1:if(0!==e[a-1]||0!==e[a-2]){a+=3;break}i!==a-2&&s.push(e.subarray(i,a-2)),a=(i=a+1)+2;break;default:a+=3}return i<r&&s.push(e.subarray(i)),s}},{key:"parseAvcC",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!(e.length<4)){for(var r=e.length,i=[],a=0;a+n<r;)if(t=ti(e,a),3===n&&(t>>>=8),a+=n,t){if(a+t>r)break;i.push(e.subarray(a,a+t)),a+=t}return i}}},{key:"parseSEI",value:function(e,t){for(var n=e.length,r=t?2:1,i=0,a=0,s="";255===e[r];)i+=255,r++;for(i+=e[r++];255===e[r];)a+=255,r++;if(a+=e[r++],5===i&&n>r+16)for(var l=0;l<16;l++)s+=e[r].toString(16),r++;return{payload:e.subarray(r,r+a),type:i,size:a,uuid:s}}},{key:"removeEPB",value:function(e){for(var t=e.byteLength,n=[],r=1;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(!n.length)return e;var i=t-n.length,a=new Uint8Array(i),s=0;for(r=0;r<i;s++,r++)s===n[0]&&(s++,n.shift()),a[r]=e[s];return a}}]),e}(),to=function(){function e(t){if(eL(this,e),eM(this,"_bytesAvailable",void 0),eM(this,"_bitsAvailable",0),eM(this,"_word",0),!t)throw Error("ExpGolomb data params is required");this._data=t,this._bytesAvailable=t.byteLength,this._bytesAvailable&&this._loadWord()}return eP(e,[{key:"bitsAvailable",get:function(){return this._bitsAvailable}},{key:"_loadWord",value:function(){var e=this._data.byteLength-this._bytesAvailable,t=Math.min(4,this._bytesAvailable);if(0===t)throw Error("No bytes available");var n=new Uint8Array(4);n.set(this._data.subarray(e,e+t)),this._word=new DataView(n.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{var t=Math.floor((e-=this._bitsAvailable)/8);e-=8*t,this._bytesAvailable-=t,this._loadWord(),this._word<<=e,this._bitsAvailable-=e}}},{key:"readBits",value:function(e){if(e>32)throw Error("Cannot read more than 32 bits");var t=Math.min(this._bitsAvailable,e),n=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)?n<<t|this.readBits(t):n}},{key:"skipLZ",value:function(){var e;for(e=0;e<this._bitsAvailable;++e)if((this._word&0x80000000>>>e)!=0)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,n=8,r=0;r<e;r++)0!==n&&(n=(t+this.readEG()+256)%256),t=0===n?t:n}}]),e}(),tl=function(){function e(){eL(this,e)}return eP(e,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(t){if(!(t.length<7)){for(var n,r,i,a=(3&t[4])+1,s=[],l=[],u=6,c=31&t[5],d=0;d<c;d++)if(r=t[u]<<8|t[u+1],u+=2,r){var f=t.subarray(u,u+r);u+=r,s.push(f),n||(n=e.parseSPS(ts.removeEPB(f)))}var h=t[u];u++;for(var p=0;p<h;p++)i=t[u]<<8|t[u+1],u+=2,i&&(l.push(t.subarray(u,u+i)),u+=i);return{sps:n,spsArr:s,ppsArr:l,nalUnitSize:a}}}},{key:"parseSPS",value:function(e){var t,n,r,i,a,s=new to(e);s.readUByte();var l=s.readUByte(),u=s.readUByte(),c=s.readUByte();s.skipUEG();var d=420;if(100===l||110===l||122===l||244===l||44===l||83===l||86===l||118===l||128===l||138===l||144===l){var f=s.readUEG();if(f<=3&&(d=[0,420,422,444][f]),3===f&&s.skipBits(1),s.skipUEG(),s.skipUEG(),s.skipBits(1),s.readBool())for(var h=3!==f?8:12,p=0;p<h;p++)s.readBool()&&(p<6?s.skipScalingList(16):s.skipScalingList(64))}s.skipUEG();var m=s.readUEG();if(0===m)s.readUEG();else if(1===m){s.skipBits(1),s.skipUEG(),s.skipUEG();for(var g=s.readUEG(),_=0;_<g;_++)s.skipUEG()}s.skipUEG(),s.skipBits(1);var y=s.readUEG(),b=s.readUEG(),w=s.readBits(1);0===w&&s.skipBits(1),s.skipBits(1);var k=0,x=0,S=0,E=0;if(s.readBool()&&(k=s.readUEG(),x=s.readUEG(),S=s.readUEG(),E=s.readUEG()),s.readBool()){if(s.readBool())switch(s.readUByte()){case 1:t=[1,1];break;case 2:t=[12,11];break;case 3:t=[10,11];break;case 4:t=[16,11];break;case 5:t=[40,33];break;case 6:t=[24,11];break;case 7:t=[20,11];break;case 8:t=[32,11];break;case 9:t=[80,33];break;case 10:t=[18,11];break;case 11:t=[15,11];break;case 12:t=[64,33];break;case 13:t=[160,99];break;case 14:t=[4,3];break;case 15:t=[3,2];break;case 16:t=[2,1];break;case 255:t=[s.readUByte()<<8|s.readUByte(),s.readUByte()<<8|s.readUByte()]}if(s.readBool()&&s.readBool(),s.readBool()&&(s.readBits(4),s.readBool()&&s.readBits(24)),s.readBool()&&(s.readUEG(),s.readUEG()),s.readBool()){var T=s.readBits(32),A=s.readBits(32);n=s.readBool(),a=(r=A)/(i=2*T)}}return{codec:function(e){for(var t,n="avc1.",r=0;r<3;r++)(t=e[r].toString(16)).length<2&&(t="0".concat(t)),n+=t;return n}(e.subarray(1,4)),profileIdc:l,profileCompatibility:u,levelIdc:c,chromaFormat:d,width:Math.ceil((y+1)*16-2*(k+x)),height:(2-w)*(b+1)*16-(w?2:4)*(S+E),sarRatio:t,fpsNum:r,fpsDen:i,fps:a,fixedFrame:n}}}]),e}(),tu=function(){function e(){eL(this,e)}return eP(e,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(t){var n,r,i,a,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t.length<23)){l=l||{};for(var u=(3&t[21])+1,c=[],d=[],f=[],h=23,p=t[22],m=0;m<p;m++){i=63&t[h],a=t[h+1]<<8|t[h+2],h+=3;for(var g=0;g<a;g++)if(s=t[h]<<8|t[h+1],h+=2,s){switch(i){case 32:var _=t.subarray(h,h+s);n||(n=e.parseVPS(ts.removeEPB(_),l)),f.push(_);break;case 33:var y=t.subarray(h,h+s);r||(r=e.parseSPS(ts.removeEPB(y),l)),c.push(y);break;case 34:d.push(t.subarray(h,h+s))}h+=s}}return{hvcC:l,sps:r,spsArr:c,ppsArr:d,vpsArr:f,nalUnitSize:u}}}},{key:"parseVPS",value:function(t,n){n=n||{};var r=new to(t);r.readUByte(),r.readUByte(),r.readBits(12);var i=r.readBits(3);return n.numTemporalLayers=Math.max(n.numTemporalLayers||0,i+1),r.readBits(17),e._parseProfileTierLevel(r,i,n),n}},{key:"parseSPS",value:function(t){var n,r,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s=s||{};var l=new to(t);l.readUByte(),l.readUByte(),l.readBits(4);var u=l.readBits(3);s.numTemporalLayers=Math.max(u+1,s.numTemporalLayers||0),s.temporalIdNested=l.readBits(1),e._parseProfileTierLevel(l,u,s),l.readUEG();var c=s.chromaFormatIdc=l.readUEG(),d=420;c<=3&&(d=[0,420,422,444][c]);var f=0;3===c&&(f=l.readBits(1));var h=l.readUEG(),p=l.readUEG(),m=l.readBits(1);if(1===m&&(n=l.readUEG(),r=l.readUEG(),i=l.readUEG(),a=l.readUEG()),s.bitDepthLumaMinus8=l.readUEG(),s.bitDepthChromaMinus8=l.readUEG(),1===m){var g=(1===c||2===c)&&0===f?2:1,_=1===c&&0===f?2:1;h-=g*(r+n),p-=_*(a+i)}return{codec:"hev1.1.6.L93.B0",width:h,height:p,chromaFormat:d,hvcC:s}}},{key:"_parseProfileTierLevel",value:function(e,t,n){var r=n.generalTierFlag||0;n.generalProfileSpace=e.readBits(2),n.generalTierFlag=Math.max(e.readBits(1),r),n.generalProfileIdc=Math.max(e.readBits(5),n.generalProfileIdc||0),n.generalProfileCompatibilityFlags=e.readBits(32),n.generalConstraintIndicatorFlags=[e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8)];var i=e.readBits(8);r<n.generalTierFlag?n.generalLevelIdc=i:n.generalLevelIdc=Math.max(i,n.generalLevelIdc||0);var a=[],s=[];if(t>e.bitsAvailable)throw Error("maxSubLayersMinus inavlid size ".concat(t));for(var l=0;l<t;l++)a[l]=e.readBits(1),s[l]=e.readBits(1);t>0&&e.readBits((8-t)*2);for(var u=0;u<t;u++)0!==a[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!==s[u]&&e.readBits(8)}}]),e}(),tc=function(){function e(){eL(this,e)}return eP(e,null,[{key:"decode",value:function(t){for(var n=[],r=0,i=t.length;r<i;){if(t[r]<128){n.push(String.fromCharCode(t[r])),++r;continue}if(t[r]<192);else if(t[r]<224){if(e._checkContinuation(t,r,1)){var a=(31&t[r])<<6|63&t[r+1];if(a>=128){n.push(String.fromCharCode(65535&a)),r+=2;continue}}}else if(t[r]<240){if(e._checkContinuation(t,r,2)){var s=(15&t[r])<<12|(63&t[r+1])<<6|63&t[r+2];if(s>=2048&&(63488&s)!=55296){n.push(String.fromCharCode(65535&s)),r+=3;continue}}}else if(t[r]<248&&e._checkContinuation(t,r,3)){var l=(7&t[r])<<18|(63&t[r+1])<<12|(63&t[r+2])<<6|63&t[r+3];if(l>65536&&l<1114112){l-=65536,n.push(String.fromCharCode(l>>>10|55296)),n.push(String.fromCharCode(1023&l|56320)),r+=4;continue}}n.push(String.fromCharCode(65533)),++r}return n.join("")}},{key:"_checkContinuation",value:function(e,t,n){if(!(t+n<e.length))return!1;for(;n--;)if((192&e[++t])!=128)return!1;return!0}}]),e}(),td=function(){function e(){eL(this,e)}return eP(e,null,[{key:"parse",value:function(t){if(!(t.length<3)){var n={},r=e._parseValue(new DataView(t.buffer,t.byteOffset,t.byteLength)),i=e._parseValue(new DataView(t.buffer,t.byteOffset+r.size,t.byteLength-r.size));return n[r.data]=i.data,n}}},{key:"_parseValue",value:function(t){var n,r=t.byteLength,i=t.getUint8(0),a=1,s=!1;switch(i){case 0:n=t.getFloat64(1),a+=8;break;case 1:n=!!t.getUint8(1),a+=1;break;case 2:var l=e._parseString(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a)),u=l.data,c=l.size;n=u,a+=c;break;case 3:n={};var d=0;for((0xffffff&t.getUint32(r-4))==9&&(d=3);a<r-4;){var f=e._parseObject(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a-d)),h=f.size,p=f.data;if(f.isEnd)break;n[p.name]=p.value,a+=h}a<=r-3&&9==(0xffffff&t.getUint32(a-1))&&(a+=3);break;case 8:n={},a+=4;var m=0;for((0xffffff&t.getUint32(r-4))==9&&(m=3);a<r-8;){var g=e._parseObject(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a-m)),_=g.size,y=g.data;if(g.isEnd)break;n[y.name]=y.value,a+=_}a<=r-3&&9==(0xffffff&t.getUint32(a-1))&&(a+=3);break;case 9:n=void 0,a=1,s=!0;break;case 10:n=[];var b=t.getUint32(1);a+=4;for(var w=0;w<b;w++){var k=e._parseValue(new DataView(t.buffer,t.byteOffset+a,t.byteLength-a)),x=k.data,S=k.size;n.push(x),a+=S}break;case 11:n=new Date(t.getFloat64(a)+6e4*t.getInt16(a+8)),a+=10;break;case 12:var E=t.getUint32(1);a+=4,n="",E>0&&(n=tc.decode(new Uint8Array(t.buffer,t.byteOffset+a,E))),a+=E;break;default:a=r}return{data:n,size:a,isEnd:s}}},{key:"_parseString",value:function(e){var t=e.getUint16(0),n="";return t>0&&(n=tc.decode(new Uint8Array(e.buffer,e.byteOffset+2,t))),{data:n,size:2+t}}},{key:"_parseObject",value:function(t){if(!(t.byteLength<3)){var n=e._parseString(t),r=e._parseValue(new DataView(t.buffer,t.byteOffset+n.size,t.byteLength-n.size));return{data:{name:n.data,value:r.data},size:n.size+r.size,isEnd:r.isEnd}}}}]),e}(),tf={G711A:7,G711M:8,AAC:10,OPUS:13},th=new e3("FlvDemuxer"),tp=function(){function e(t,n,r){eL(this,e),eM(this,"_headerParsed",!1),eM(this,"_remainingData",null),eM(this,"_gopId",0),eM(this,"_needAddMetaBeforeKeyFrameNal",!0),this.videoTrack=t||new eK,this.audioTrack=n||new e$,this.metadataTrack=r||new e5,this._fixer=new tn(this.videoTrack,this.audioTrack,this.metadataTrack)}return eP(e,[{key:"demux",value:function(t){var n,r,i,a,s,l,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=!(arguments.length>2)||void 0===arguments[2]||arguments[2],d=arguments.length>3?arguments[3]:void 0,f=this.audioTrack,h=this.videoTrack,p=this.metadataTrack;if((u||!c)&&(this._remainingData=null),u&&(this._headerParsed=!1),u?(h.reset(),f.reset(),p.reset()):(h.samples=[],f.samples=[],p.seiSamples=[],p.flvScriptSamples=[],h.warnings=[],f.warnings=[],this._remainingData&&(t=tr(this._remainingData,t),this._remainingData=null)),!t.length)return{videoTrack:h,audioTrack:f,metadataTrack:p};var m=0;if(!this._headerParsed){if(!e.probe(t))throw Error("Invalid flv file");f.present=(4&t[4])>>>2!=0,h.present=(1&t[4])!=0,this._headerParsed=!0,m=ti(t,5)+4}for(var g=t.length;m+15<g&&(r=t[m],i=t[m+1]<<16|t[m+2]<<8|t[m+3],!(m+15+i>g));)a=(t[m+7]<<24>>>0)+(t[m+4]<<16)+(t[m+5]<<8)+t[m+6],m+=11,s=t.subarray(m,m+i),8===r?this._parseAudio(s,a):9===r?(d&&(this.seamlessLoadingSwitching=!0),this._parseVideo(s,a)):18===r?this._parseScript(s,a):th.warn("Invalid tag type: ".concat(r)),m+=i,(l=ti(t,m))!==11+i&&th.warn("Invalid PrevTagSize ".concat(l," (").concat(11+i,")")),m+=4;m<g&&(this._remainingData=t.subarray(m)),f.formatTimescale=h.formatTimescale=h.timescale=p.timescale=1e3,f.timescale=f.codecType===eY.OPUS?1e3:f.sampleRate||0,!f.exist()&&f.hasSample()&&f.reset(),!h.exist()&&h.hasSample()&&h.reset();var _=p.flvScriptSamples[p.flvScriptSamples.length-1],y=null==_||null==(n=_.data)?void 0:n.onMetaData;return y&&(null!=h&&h.exist()&&(y.hasOwnProperty("duration")&&(h.duration=1e3*y.duration),y.hasOwnProperty("width")&&y.hasOwnProperty("height")&&(h.width=y.width,h.height=y.height)),null!=f&&f.exist()&&y.hasOwnProperty("duration")&&(f.duration=1e3*y.duration)),{videoTrack:h,audioTrack:f,metadataTrack:p}}},{key:"fix",value:function(e,t,n){return this._fixer.fix(e,t,n),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(e,t,n,r,i){return this.demux(e,t,n,i),this.fix(r,t,n)}},{key:"_parseAudio",value:function(t,n){if(t.length){var r=(240&t[0])>>>4,i=this.audioTrack;if(r!==tf.AAC&&r!==tf.G711A&&r!==tf.G711M&&r!==tf.OPUS){th.warn("Unsupported sound format: ".concat(r)),i.reset();return}if(r!==tf.AAC&&r!==tf.OPUS){var a=(12&t[0])>>2,s=(2&t[0])>>1,l=1&t[0];i.sampleRate=e.AUDIO_RATE[a],i.sampleSize=s?16:8,i.channelCount=l+1}switch(r){case tf.G711A:case tf.G711M:this._parseG711(t,n,r);break;case tf.AAC:this._parseAac(t,n);break;case tf.OPUS:this._parseOpus(t,n)}}}},{key:"_parseOpus",value:function(e,t){var n=this.audioTrack,r=e[1];switch(n.codecType=eY.OPUS,r){case 0:var i=tt.parseHeaderPackets(e.subarray(2));i?(n.codec=i.codec,n.channelCount=i.channelCount,n.sampleRate=i.sampleRate,n.config=i.config,n.sampleDuration=tt.getFrameDuration([],n.timescale)):(n.reset(),th.warn("Cannot parse AudioSpecificConfig",e));break;case 1:if(null==t)return;var a=new eQ(t,e.subarray(2),n.sampleDuration);n.samples.push(a);break;default:th.warn("Unknown OpusPacketType: ".concat(r))}}},{key:"_parseG711",value:function(e,t,n){var r=this.audioTrack,i=e.subarray(1);if(!(i.byteLength<1)){var a=new eQ(t,i);r.codecType=7===n?eY.G711PCMA:eY.G711PCMU,r.sampleRate=8e3,r.codec=r.codecType,r.samples.push(a)}}},{key:"_parseAac",value:function(e,t){var n=this.audioTrack;if(n.codecType=eY.AAC,0===e[1]){var r=te.parseAudioSpecificConfig(e.subarray(2));r?(n.codec=r.codec,n.channelCount=r.channelCount,n.sampleRate=r.sampleRate,n.config=r.config,n.objectType=r.objectType,n.sampleRateIndex=r.samplingFrequencyIndex):(n.reset(),th.warn("Cannot parse AudioSpecificConfig",e))}else if(1===e[1]){if(null==t)return;n.samples.push(new eQ(t,e.subarray(2)))}else th.warn("Unknown AACPacketType: ".concat(e[1]))}},{key:"_parseVideo",value:function(e,t){var n=this;if(!(e.length<6)){var r=(240&e[0])>>>4,i=15&e[0],a=this.videoTrack;if(7!==i&&12!==i){a.reset(),th.warn("Unsupported codecId: ".concat(i));return}var s=12===i;a.codecType=s?eq.HEVC:eq.AVC;var l=e[1],u=(e[2]<<16|e[3]<<8|e[4])<<8>>8;if(0===l){var c=e.subarray(5),d=s?tu.parseHEVCDecoderConfigurationRecord(c):tl.parseAVCDecoderConfigurationRecord(c);if(d){var f=d.hvcC,h=d.sps,p=d.ppsArr,m=d.spsArr,g=d.vpsArr,_=d.nalUnitSize;f&&(a.hvcC=a.hvcC||f),h&&(a.codec=h.codec,a.width=h.width,a.height=h.height,a.sarRatio=h.sarRatio,a.fpsNum=h.fpsNum,a.fpsDen=h.fpsDen),m.length&&(a.sps=m),p.length&&(a.pps=p),g&&g.length&&(a.vps=g),_&&(a.nalUnitSize=_)}else th.warn("Cannot parse ".concat(s?"HEVC":"AVC","DecoderConfigurationRecord"),e)}else if(1===l){var y=ts.parseAvcC(e.subarray(5),a.nalUnitSize);if((y=this._checkAddMetaNalToUnits(s,y,a))&&y.length){var b=new eX(t+u,t,y);if(this.seamlessLoadingSwitching&&t<a.lastKeyFrameDts)return;this.seamlessLoadingSwitching=!1,1===r&&(b.setToKeyframe(),a.lastKeyFrameDts=t),a.samples.push(b),y.forEach(function(e){var r=s?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(!s&&5!==r||s&&5===r)break;b.setToKeyframe();break;case 6:case 39:case 40:if(!s&&6!==r||s&&6===r)break;n.metadataTrack.seiSamples.push(new e2(ts.parseSEI(ts.removeEPB(e),s),t+u))}}),b.keyframe&&this._gopId++,b.gopId=this._gopId}else th.warn("Cannot parse NALUs",e)}else 2===l||th.warn("Unknown AVCPacketType: ".concat(l))}}},{key:"_checkAddMetaNalToUnits",value:function(e,t,n){return!e||!this._needAddMetaBeforeKeyFrameNal||t.map(function(e){return e[0]>>>1&63}).includes(32)?(this._needAddMetaBeforeKeyFrameNal=!1,t):(t.unshift(n.pps[0]),t.unshift(n.sps[0]),t.unshift(n.vps[0]),t.filter(Boolean))}},{key:"_parseScript",value:function(e,t){this.metadataTrack.flvScriptSamples.push(new e1(td.parse(e),t))}}],[{key:"probe",value:function(e){return 70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]&&ti(e,5)>=9}}]),e}();eM(tp,"AUDIO_RATE",[5500,11e3,22e3,44e3]);var tv=function(){function e(){eL(this,e),this.buffer=new Uint8Array(0)}return eP(e,[{key:"write",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){t?e.buffer=function(e){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach(function(e){t+=e.length});var a=new e(t),s=0;return r.forEach(function(e){a.set(e,s),s+=e.length}),a}(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}(),tm=function(){function e(){eL(this,e)}return eP(e,null,[{key:"box",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=8+(n=n.filter(Boolean)).reduce(function(e,t){return e+t.byteLength},0),a=new Uint8Array(i);a[0]=i>>24&255,a[1]=i>>16&255,a[2]=i>>8&255,a[3]=255&i,a.set(e,4);var s=8;return n.forEach(function(e){a.set(e,s),s+=e.byteLength}),a}},{key:"ftyp",value:function(t){return t.find(function(e){return e.type===eZ&&e.codecType===eq.HEVC})?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){return tr(e.ftyp(t),e.moov(t))}},{key:"pssh",value:function(t){var n=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],ta(t.kid),[0,0,0,0]));return e.box(e.types.pssh,n)}},{key:"moov",value:function(t){if(!t[0].useEME||!t[0].encv&&!t[0].enca)return e.box.apply(e,[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)].concat(eH(t.map(function(t){return e.trak(t)})),[e.mvex(t)]));t[0].pssh||(t[0].pssh={kid:t[0].kid});var n=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(eH(t.map(function(t){return e.trak(t)})),[n]))}},{key:"mvhd",value:function(t){var n=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,n>>24&255,n>>16&255,n>>8&255,255&n,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,n){var r=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,n>>24&255,n>>16&255,n>>8&255,255&n,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,r>>8&255,255&r,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 n=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,n>>24&255,n>>16&255,n>>8&255,255&n,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===eZ?e.VMHD:e.SMHD,e.DINF,e.stbl(t))}},{key:"stbl",value:function(t){var n=[];return t&&t.ext&&t.ext.stss&&n.push(e.stss(t.ext.stss.entries)),e.box(e.types.stbl,e.stsd(t),e.STTS,n[0],e.STSC,e.STSZ,e.STCO)}},{key:"stsd",value:function(t){var n="audio"===t.type?t.useEME&&t.enca?e.enca(t):t.codecType===eY.OPUS?e.opus(t):e.mp4a(t):t.useEME&&t.encv?e.encv(t):t.av1C?e.av01(t):e.avc1hev1(t);return e.box(e.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),n)}},{key:"enca",value:function(t){var n=t.enca.channelCount,r=t.enca.sampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>8&255,255&r,0,0]),a=e.esds(t.config),s=e.sinf(t.enca);return e.box(e.types.enca,i,a,s)}},{key:"encv",value:function(t){var n,r,i=t.sps.length>0?t.sps[0]:[],a=t.pps.length>0?t.pps[0]:[],s=t.width,l=t.height,u=t.sarRatio[0],c=t.sarRatio[1],d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,l>>8&255,255&l,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((n=(r=[1,i[1],i[2],i[3],255,225,i.length>>>8&255,255&i.length]).concat.apply(r,eH(i)).concat([1,a.length>>>8&255,255&a.length])).concat.apply(n,eH(a))),h=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),p=e.sinf(t.encv),m=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,d,e.box(e.types.avcC,f),e.box(e.types.btrt,h),p,e.box(e.types.pasp,m))}},{key:"schi",value:function(t){var n=new Uint8Array([]),r=e.tenc(t);return e.box(e.types.schi,n,r)}},{key:"tenc",value:function(t){var n=new Uint8Array([0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size].concat(ta(t.default_KID)));return e.box(e.types.tenc,n)}},{key:"sinf",value:function(t){var n=new Uint8Array([]),r=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]),a=e.schi(t);return e.box(e.types.sinf,n,e.box(e.types.frma,r),e.box(e.types.schm,i),a)}},{key:"av01",value:function(t){return e.box(e.types.av01,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]),t.av1C,t.colr)}},{key:"avc1hev1",value:function(t){var n=t.codecType===eq.HEVC,r=n?e.types.hvc1:e.types.avc1,i=n?e.hvcC(t):e.avcC(t),a=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i];return n?a.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&a.push(e.pasp(t.sarRatio)),e.box.apply(e,[r].concat(a))}},{key:"avcC",value:function(t){var n,r,i,a=[],s=[];return t.sps.forEach(function(e){i=e.byteLength,a.push(i>>>8&255),a.push(255&i),a.push.apply(a,eH(e))}),t.pps.forEach(function(e){i=e.byteLength,s.push(i>>>8&255),s.push(255&i),s.push.apply(s,eH(e))}),e.box(e.types.avcC,new Uint8Array((n=(r=[1,a[3],a[4],a[5],255,224|t.sps.length]).concat.apply(r,a).concat([t.pps.length])).concat.apply(n,s)))}},{key:"hvcC",value:function(t){var n,r=t.hvcC;if(r instanceof ArrayBuffer||r instanceof Uint8Array)return r;var i=t.vps,a=t.sps,s=t.pps;if(r){var l=r.generalProfileCompatibilityFlags,u=r.generalConstraintIndicatorFlags,c=(i.length&&1)+(a.length&&1)+(s.length&&1);n=[1,r.generalProfileSpace<<6|r.generalTierFlag<<5|r.generalProfileIdc,l>>>24,l>>>16,l>>>8,l,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 d=function(e){var t;n.push(e.length>>8,e.length),(t=n).push.apply(t,eH(e))};i.length&&(n.push(160,0,i.length),i.forEach(d)),a.length&&(n.push(161,0,a.length),a.forEach(d)),s.length&&(n.push(162,0,s.length),s.forEach(d))}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 n=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,l=[],u=!0,c=!1;try{a=(n=n.call(e)).next,!1;for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(t,2)||eG(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n[1];return e.box(e.types.pasp,new Uint8Array([r>>24,r>>16&255,r>>8&255,255&r,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 n=t.length;return e.box(e.types.esds,new Uint8Array([0,0,0,0,3,23+n,0,0,0,4,15+n,64,21,0,6,0,0,0,218,192,0,0,218,192,5].concat([n]).concat(t).concat([6,1,2])))}},{key:"opus",value:function(t){var n=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]),r=t.config.length?e.dOps(t):[];return e.box(e.types.Opus,n,r)}},{key:"dOps",value:function(t){if(t.config)return t.config[4]=t.sampleRate>>>24&255,t.config[5]=t.sampleRate>>>16&255,t.config[6]=t.sampleRate>>>8&255,t.config[7]=255&t.sampleRate,e.box(e.types.dOps,t.config)}},{key:"mvex",value:function(t){return e.box.apply(e,[e.types.mvex].concat(eH(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(eH(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 n=e.tfhd(t.id),r=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+6*e.subsamples.length)}),t.videoSencLength=i,t.useEME&&(t.isVideoEncryption||t.isAudioEncryption))if(t.isVideoEncryption)if(t.isVideo){var a=e.saiz(t),s=e.saio(t),l=e.trun1(t),u=e.senc(t);return e.box(e.types.traf,n,r,a,s,l,u)}else if(t.isAudioEncryption){var c=e.sbgp(),d=e.saiz(t),f=e.saio(t),h=e.senc(t),p=e.trun1(t);return e.box(e.types.traf,n,r,c,d,f,h,p)}else{var m=e.sbgp(),g=e.trun1(t);return e.box(e.types.traf,n,r,m,g)}else if(t.isVideo){var _=e.trun1(t);return e.box(e.types.traf,n,r,_)}else{var y=e.sbgp(),b=e.saiz(t),w=e.saio(t),k=e.senc(t),x=e.trun1(t);return e.box(e.types.traf,n,r,y,b,w,k,x)}var S=e.sdtp(t);return e.box(e.types.traf,n,r,S,e.trun(t.samples,S.byteLength+76))}},{key:"sdtp",value:function(t){var n=new tv;return t.samples.forEach(function(e){n.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))}),e.box(e.types.sdtp,this.extension(0,0),n.buffer)}},{key:"trun1",value:function(t){var n=new tv,r=tv.writeUint32(t.samples.length),i=null;if(t.isVideo){var a=t.videoSencLength;i=tv.writeUint32(16*t.samples.length+a+149),!t.isVideoEncryption&&t.isAudioEncryption&&(i=tv.writeUint32(16*t.samples.length+92))}else{var s=12*t.samples.length+124;t.isAudioEncryption&&(s=12*t.samples.length+8*t.audioSenc.length+177),i=tv.writeUint32(s)}return t.samples.forEach(function(e){n.write(tv.writeUint32(e.duration)),n.write(tv.writeUint32(e.size)),n.write(tv.writeUint32(e.keyframe?0x2000000:65536)),t.isVideo&&n.write(tv.writeUint32(e.cts?e.cts:0))}),e.box(e.types.trun,this.extension(0,t.flags),r,i,n.buffer)}},{key:"senc",value:function(t){var n=new tv,r=t.samples.length,i=t.isVideo?16:8,a=2*!!t.isVideo,s=[],l=0;return t.isVideo?(s=t.videoSenc,l=t.videoSencLength):s=t.audioSenc,l=l||i*r,n.write(tv.writeUint32(16+l),e.types.senc,this.extension(0,a)),n.write(tv.writeUint32(r)),s.forEach(function(e){for(var t=0;t<e.InitializationVector.length;t++)n.write(new Uint8Array([e.InitializationVector[t]]));e.subsamples&&e.subsamples.length&&(n.write(tv.writeUint16(e.subsamples.length)),e.subsamples.forEach(function(e){n.write(tv.writeUint16(e.BytesOfClearData)),n.write(tv.writeUint32(e.BytesOfProtectedData))}))}),n.buffer}},{key:"saio",value:function(t){var n=12*t.samples.length+141;!t.isVideo&&t.isAudioEncryption&&(n=149);var r=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n]);return e.box(e.types.saio,r)}},{key:"saiz",value:function(t){var n=t.samples.length,r=new Uint8Array([0,0,0,0,16,n>>24&255,n>>16&255,n>>8&255,255&n]);return e.box(e.types.saiz,r)}},{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,n){var r=Math.floor(n/0x100000000),i=Math.floor(n%0x100000000);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,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"trun",value:function(t,n){var r=t.length,i=12+16*r;n+=8+i;var a=new Uint8Array(i);a.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s<r;s++){var l=t[s],u=l.duration,c=l.size,d=l.flag,f=void 0===d?{}:d,h=l.cts,p=void 0===h?0:h;a.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,p>>>24&255,p>>>16&255,p>>>8&255,255&p],12+16*s)}return e.box(e.types.trun,a)}},{key:"moovMP4",value:function(t){return e.box.apply(e,[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)].concat(eH(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===eZ?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var n=t.ext,r=[e.stsd(t),e.stts(n.stts),e.stsc(n.stsc),e.stsz(n.stsz),e.stco(n.stco)];return n.stss.length&&r.push(e.stss(n.stss)),n.ctts.length&&r.push(e.ctts(n.ctts)),e.box.apply(e,[e.types.stbl].concat(r))}},{key:"stts",value:function(t){var n=t.length,r=new Uint8Array(8*n),i=0;return t.forEach(function(e){var t=e.value,n=e.count;r.set([n>>24,n>>16&255,n>>8&255,255&n,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8}),e.box(e.types.stts,tr(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stsc",value:function(t){var n=t.length,r=new Uint8Array(12*n),i=0;return t.forEach(function(e){var t=e.firstChunk,n=e.samplesPerChunk,a=e.sampleDescIndex;r.set([t>>24,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,a>>24,a>>16&255,a>>8&255,255&a],i),i+=12}),e.box(e.types.stsc,tr(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stsz",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stsz,tr(new Uint8Array([0,0,0,0,0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stco",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stco,tr(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stss",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stss,tr(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"ctts",value:function(t){var n=t.length,r=new Uint8Array(8*n),i=0;return t.forEach(function(e){var t=e.value,n=e.count;r.set([n>>24,n>>16&255,n>>8&255,255&n,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8}),e.box(e.types.ctts,tr(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{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 n=t.timescale,r=t.samples[0].duration,i=r*t.samples.length,a=t.samples[0].sampleOffset*r,s=8;t.samples.forEach(function(e){s+=e.size});var l=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+6*e.subsamples.length)}),t.videoSencLength=c,l=s+141+16*t.samples.length+c,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(l=s+16*t.samples.length+84)}else l=s+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(l=s+169+12*t.samples.length+8*t.audioSenc.length);var d=new Uint8Array([0,0,0,0,0,0,0,255&t.id,n>>24&255,n>>16&255,n>>8&255,255&n,a>>24&255,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,1,0,l>>16&255,l>>8&255,255&l,i>>24&255,i>>16&255,i>>8&255,255&i,144,0,0,0]);return e.box(e.types.sidx,d)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();eM(tm,"types",["Opus","dOps","av01","av1C","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))),eM(tm,"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])}),eM(tm,"FTYPAVC1",tm.box(tm.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),eM(tm,"FTYPHEV1",tm.box(tm.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),eM(tm,"DINF",tm.box(tm.types.dinf,tm.box(tm.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),eM(tm,"VMHD",tm.box(tm.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),eM(tm,"SMHD",tm.box(tm.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),eM(tm,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),eM(tm,"STTS",tm.box(tm.types.stts,tm.StblTable)),eM(tm,"STSC",tm.box(tm.types.stsc,tm.StblTable)),eM(tm,"STSZ",tm.box(tm.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),eM(tm,"STCO",tm.box(tm.types.stco,tm.StblTable));var tg=function(){function e(t,n){eL(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=n}return eP(e,[{key:"debug",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).debug.apply(t,[this._prefix].concat(r))}}},{key:"log",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).log.apply(t,[this._prefix].concat(r))}}},{key:"warn",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(r))}}},{key:"error",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).error.apply(t,[this._prefix].concat(r))}}},{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}();eM(tg,"disabled",!0);var t_=function(){function e(t,n,r){eL(this,e),this.videoTrack=t,this.audioTrack=n;var i=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=i&&50>Number(i[1]),this.log=new tg("FMP4Remuxer",!r||!r.openLog||!r.openLog)}return eP(e,[{key:"remux",value:function(){var e,t,n,r,i,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this.videoTrack,u=this.audioTrack,c=l.exist(),d=u.exist(),f=[];return a&&(s&&s.initMerge?(c&&f.push(this.videoTrack),d&&f.push(this.audioTrack),n=tm.initSegment(f)):(c&&(e=tm.initSegment([this.videoTrack])),d&&(t=tm.initSegment([this.audioTrack])))),c&&l.hasSample()&&(r=this._remuxVideo()),d&&u.hasSample()&&(i=this._remuxAudio()),l.samples=[],u.samples=[],{initSegment:n,videoInitSegment:e,audioInitSegment:t,videoSegment:r,audioSegment:i}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,n=/av01/.test(e.codec),r=0;n?t.forEach(function(e){r+=e.data.byteLength}):t.forEach(function(e){r+=e.units.reduce(function(e,t){return e+t.byteLength},0),r+=4*e.units.length});var i=new Uint8Array(r);if(n)for(var a,s=0,l=t.length,u=0;s<l;s++)a=t[s],i.set(a.data,u),a.size=a.data.byteLength,u+=a.size;else for(var c,d=new DataView(i.buffer),f=function(e,n){n=t[h];var r=0;n.units.forEach(function(t){d.setUint32(e,t.byteLength),e+=4,i.set(t,e),e+=t.byteLength,r+=4+t.byteLength}),n.size=r,m=e,c=n},h=0,p=t.length,m=0;h<p;h++)f(m,c);var g=tm.mdat(i);return tr(tm.moof([e]),g)}},{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,n){return t.set(n.data,e),e+n.size},0);var n=tm.mdat(t);return tr(tm.moof([e]),n)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),ty=function(){function e(){k(this,e),E(this,"_ttfb",0),E(this,"_demuxStart",0),E(this,"_demuxEnd",0),E(this,"_demuxCost",0),E(this,"_remuxStart",0),E(this,"_remuxEnd",0),E(this,"_remuxCost",0),E(this,"_appendStart",0),E(this,"_appendEnd",0),E(this,"_appendCost",0)}return S(e,[{key:"set",value:function(e,t){this["_".concat(e)]=t}},{key:"start",value:function(e){this["_".concat(e,"Start")]=Date.now()}},{key:"end",value:function(e){this["_".concat(e,"End")]=Date.now(),this["_".concat(e,"Cost")]=this["_".concat(e,"Cost")]+(this["_".concat(e,"End")]-this["_".concat(e,"Start")])}},{key:"transferCost",get:function(){return{ttfbCost:this._ttfb,demuxCost:this._demuxCost,remuxCost:this._remuxCost,appendCost:this._appendCost}}}]),e}(),tb={TTFB:"ttfb",DEMUX:"demux",REMUX:"remux",APPEND:"append"},tw=new er("BufferService"),tk=function(){var e,t,n,r,i,a;function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k(this,s),E(this,"flv",null),E(this,"_demuxer",new tp),E(this,"_remuxer",null),E(this,"_mse",null),E(this,"_softVideo",null),E(this,"_sourceCreated",!1),E(this,"_needInitSegment",!0),E(this,"_discontinuity",!0),E(this,"_contiguous",!1),E(this,"_initSegmentId",""),E(this,"_cachedBuffer",null),E(this,"_demuxStartTime",0),E(this,"_opts",null),this.flv=e,this._opts=n,t?this._softVideo=t:(this._remuxer=new t_(this._demuxer.videoTrack,this._demuxer.audioTrack),this._mse=new ed(null,{preferMMS:"boolean"==typeof n.preferMMS?n.preferMMS:!!n.perferMMS}),this._mse.bindMedia(e.media))}return S(s,[{key:"baseDts",get:function(){var e,t;return null==(e=this._demuxer)||null==(t=e._fixer)?void 0:t._baseDts}},{key:"blobUrl",get:function(){var e;return null==(e=this._mse)?void 0:e.url}},{key:"isFull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ed.VIDEO;return this._mse.isFull(e)}},{key:"seamlessSwitch",value:function(){this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!0,this._initSegmentId=""}},{key:"unContiguous",value:function(e){this._contiguous=!1,this._demuxStartTime=e}},{key:"reset",value:(e=w(y().mark(function e(){var t,n=arguments;return y().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=6;break}return e.next=4,this._mse.unbindMedia();case 4:return e.next=6,this._mse.bindMedia(this.flv.media);case 6:this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!1,this._sourceCreated=!1,this._initSegmentId="",this.resetSeamlessSwitchStats();case 12:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"resetSeamlessSwitchStats",value:function(){this.seamlessLoadingSwitch=null,this.seamlessLoadingSwitching=!1,this._demuxer&&(this._demuxer.seamlessLoadingSwitching=!1)}},{key:"endOfStream",value:(t=w(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(!this._sourceCreated){e.next=5;break}return e.next=4,this._mse.endOfStream();case 4:this.flv.emit(ek.BUFFEREOS);case 5:e.next=8;break;case 7:this._softVideo&&this._softVideo.endOfStream();case 8:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"updateDuration",value:(n=w(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(this._mse.isOpened){e.next=4;break}return e.next=4,this._mse.open();case 4:return tw.debug("update duration",t),e.next=7,this._mse.updateDuration(t);case 7:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"destroy",value:(r=w(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=3;break}return e.next=3,this._mse.unbindMedia();case 3:this._mse=null,this._softVideo=null,this._demuxer=null,this._remuxer=null;case 7:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"appendBuffer",value:(i=w(y().mark(function e(t){var n,r,i,a,s,l,u,c,d,f,h,p,m,g,_,b,w,k,x=this;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,this._cachedBuffer&&(t=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter(Boolean)).length<2)return t[0];var r=new Uint8Array(t.reduce(function(e,t){return e+t.byteLength},0)),i=0;return t.forEach(function(e){r.set(e,i),i+=e.byteLength}),r}(this._cachedBuffer,t),this._cachedBuffer=null),r=this._demuxer,!(!t||!t.length||!r)){e.next=5;break}return e.abrupt("return");case 5:e.prev=5,this.flv._transferCost.start(tb.DEMUX),r.demuxAndFix(t,this.seamlessLoadingSwitching||this._discontinuity,this._contiguous,this._demuxStartTime,this.seamlessLoadingSwitching),this.seamlessLoadingSwitching=!1,this.flv._transferCost.end(tb.DEMUX),e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(5),new et(Q.DEMUX,Q.SUB_TYPES.FLV,e.t0);case 15:if(i=r.videoTrack,a=r.audioTrack,s=r.metadataTrack,!this.seamlessLoadingSwitch||!((l=i.samples.findIndex(function(e){return e.originDts===i.lastKeyFrameDts}))>=0)){e.next=25;break}return i.samples.splice(l),e.next=22,this.seamlessLoadingSwitch();case 22:this.seamlessLoadingSwitch=null,t=null,n=!0;case 25:if(u=i.exist(),c=a.exist(),this._opts.onlyAudio&&(u=!1,i.present=!1),this._opts.onlyVideo&&(c=!1,a.present=!1),!(!u&&i.present||!c&&a.present)){e.next=42;break}if(d=0,(f=u?i:c?a:void 0)&&f.samples.length&&(d=(f.samples[f.samples.length-1].originPts-f.samples[0].originPts)/f.timescale*1e3),!(d>this._opts.analyzeDuration)){e.next=40;break}tw.warn("analyze duration exceeded, ".concat(d,"ms"),f),i.present=u,a.present=c,this.flv.emit(ek.ANALYZE_DURATION_EXCEEDED,{duration:d}),e.next=42;break;case 40:return this._cachedBuffer=t,e.abrupt("return");case 42:if(h=i.type,p=a.type,this._fireEvents(i,a,s),n||(this._discontinuity=!1,this._contiguous=!0,this._demuxStartTime=0),m=this._mse,g=function(){var e,t;null!=(e=x.flv)&&e.emit&&(null==(t=x.flv)||t.emit(ek.APPEND_BUFFER,{}))},this.flv.emit(ek.DEMUXED_TRACK,{videoTrack:i}),(_="".concat(i.codec,"/").concat(i.width,"/").concat(i.height,"/").concat(a.codec,"/").concat(a.config))!==this._initSegmentId&&(this._needInitSegment=!0,this._initSegmentId=_,this._emitMetaParsedEvent(i,a)),!m){e.next=83;break}if(this._sourceCreated){e.next=59;break}return e.next=55,m.open();case 55:u&&(tw.log("codec: video/mp4;codecs=".concat(i.codec)),m.createSource(h,"video/mp4;codecs=".concat(i.codec))),c&&(tw.log("codec: audio/mp4;codecs=".concat(a.codec)),m.createSource(p,"audio/mp4;codecs=".concat(a.codec))),this._sourceCreated=!0,this.flv.emit(ek.SOURCEBUFFER_CREATED);case 59:e.prev=59,this._needInitSegment&&!this._opts.mseLowLatency&&(i.duration=this._opts.durationForMSELowLatencyOff*i.timescale,a.duration=this._opts.durationForMSELowLatencyOff*c.timescale),this.flv._transferCost.start(tb.REMUX),b=this._remuxer.remux(this._needInitSegment),this.flv._transferCost.end(tb.REMUX),e.next=69;break;case 66:throw e.prev=66,e.t1=e.catch(59),new et(Q.REMUX,Q.SUB_TYPES.FMP4,e.t1);case 69:if(!(this._needInitSegment&&!b.videoInitSegment&&!b.audioInitSegment)){e.next=71;break}return e.abrupt("return");case 71:return this._needInitSegment=!1,w=[],b.videoInitSegment&&w.push(m.append(h,b.videoInitSegment)),b.audioInitSegment&&w.push(m.append(p,b.audioInitSegment)),b.videoSegment&&w.push(m.append(h,b.videoSegment)),b.audioSegment&&w.push(m.append(p,b.audioSegment)),this.flv._transferCost.start(tb.APPEND),(k=Promise.all(w)).then(g).then(function(){x.flv._transferCost.end(tb.APPEND),g()}),e.abrupt("return",k);case 83:this._softVideo&&(this._softVideo.appendBuffer(i,a),g());case 84:case"end":return e.stop()}},e,this,[[5,12],[59,66]])})),function(e){return i.apply(this,arguments)})},{key:"evictBuffer",value:(a=w(y().mark(function e(t){var n,r,i=this;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.flv.media,!(!this._mse||!this._demuxer||!n||!t||t<0)){e.next=3;break}return e.abrupt("return");case 3:if(!((r=n.currentTime-t)<=0)){e.next=7;break}return e.abrupt("return");case 7:if(!($.start($.get(n))+1>=r)){e.next=10;break}return e.abrupt("return");case 10:return e.abrupt("return",this._mse.clearBuffer(0,r).then(function(){return i.flv.emit(ek.REMOVE_BUFFER,{removeEnd:r})}));case 11:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"_emitMetaParsedEvent",value:function(e,t){e.exist()&&this.flv.emit(ek.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}}),t.exist()&&this.flv.emit(ek.METADATA_PARSED,{type:"audio",track:t,meta:{codec:t.codec,channelCount:t.channelCount,sampleRate:t.sampleRate,timescale:t.timescale,baseDts:t.baseDts}}),tw.debug("track parsed",e,t)}},{key:"_fireEvents",value:function(e,t,n){var r=this;tw.debug("videoTrack samples count: ".concat(e.samples.length,", audioTrack samples count: ").concat(t.samples.length)),n.flvScriptSamples.forEach(function(e){r.flv.emit(ek.FLV_SCRIPT_DATA,e),tw.debug("flvScriptData",e)}),e.samples.forEach(function(e){e.keyframe&&r.flv.emit(ek.KEYFRAME,{pts:e.originPts})}),e.warnings.forEach(function(e){var t;switch(e.type){case eJ.LARGE_AV_SHIFT:t=ek.LARGE_AV_FIRST_FRAME_GAP_DETECT;break;case eJ.LARGE_VIDEO_GAP:t=ek.LARGE_VIDEO_DTS_GAP_DETECT;break;case eJ.LARGE_VIDEO_GAP_BETWEEN_CHUNK:t=ek.MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT}t&&r.flv.emit(ek.STREAM_EXCEPTION,_(_({},e),{},{type:t})),tw.warn("video exception",e)}),t.warnings.forEach(function(e){var t;switch(e.type){case eJ.LARGE_AUDIO_GAP:t=ek.LARGE_AUDIO_DTS_GAP_DETECT;break;case eJ.AUDIO_FILLED:t=ek.AUDIO_GAP_DETECT;break;case eJ.AUDIO_DROPPED:t=ek.AUDIO_OVERLAP_DETECT}t&&r.flv.emit(ek.STREAM_EXCEPTION,_(_({},e),{},{type:t})),tw.warn("audio exception",e)}),n.seiSamples.forEach(function(e){r.flv.emit(ek.SEI,_(_({},e),{},{sei:{code:e.data.type,content:e.data.payload,dts:e.pts}}))})}}]),s}();function tx(e,t){var n=0,r=e.length-1,i=0,a=0,s=r;for(t<e[0]&&(n=0,a=s+1);a<=s;){if((i=a+Math.floor((s-a)/2))===r||t>=e[i]&&t<e[i+1]){n=i;break}e[i]<t?a=i+1:s=i-1}return n}var tS=new er("flv"),tE=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");d.prototype=Object.create(e&&e.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),e&&A(d,e);var t,n,r,i,a,s,l,u,c=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=T(d);e=t?Reflect.construct(n,arguments,T(this).constructor):n.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return O(this)});function d(e){var t,n,r;return k(this,d),E(O(t=c.call(this)),"media",null),E(O(t),"_loading",!1),E(O(t),"_opts",null),E(O(t),"_bufferService",null),E(O(t),"_gapService",null),E(O(t),"_stats",null),E(O(t),"_mediaLoader",null),E(O(t),"_maxChunkWaitTimer",null),E(O(t),"_tickTimer",null),E(O(t),"_tickInterval",500),E(O(t),"_urlSwitching",!1),E(O(t),"_seamlessSwitching",!1),E(O(t),"_disconnectRetryCount",0),E(O(t),"_preLoadEndPoint",0),E(O(t),"_keyframes",null),E(O(t),"_acceptRanges",!0),E(O(t),"_onProgress",(n=w(y().mark(function e(n,r,i,a){var s,l,u,c,d,f,h,p,m,g;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=i.startTime,l=i.endTime,u=i.st,c=i.firstByteTime,t._loading=!r,t._firstProgressEmit){e.next=13;break}if(t.media){e.next=6;break}return null==(d=t._mediaLoader)||d.cancel(),e.abrupt("return");case 6:f=a.headers,h=u?c-u:l-s,t.emit(ek.TTFB,{url:t._opts.url,responseUrl:a.url,elapsed:h}),t.emit(ek.LOAD_RESPONSE_HEADERS,{headers:f}),t._transferCost.set(tb.TTFB,h),t._acceptRanges=!!(null!=f&&f.get("Accept-Ranges"))||!!(null!=f&&f.get("Content-Range")),t._firstProgressEmit=!0;case 13:if(t._bufferService){e.next=15;break}return e.abrupt("return");case 15:return clearTimeout(t._maxChunkWaitTimer),t._bandwidthService.addChunkRecord(null==n?void 0:n.byteLength,l-s),e.prev=17,e.next=20,t._bufferService.appendBuffer(n);case 20:null==(p=t._bufferService)||p.evictBuffer(t._opts.bufferBehind),e.next=33;break;case 23:if(e.prev=23,e.t0=e.catch(17),!(!t.isLive&&t._bufferService.isFull())){e.next=32;break}return e.next=28,t._mediaLoader.cancel();case 28:return t._loading=!1,m=t.bufferInfo().remaining,t._opts.preloadTime=parseInt(m)/2,e.abrupt("return");case 32:return e.abrupt("return",t._emitError(et.create(e.t0)));case 33:if(t._urlSwitching&&(t._urlSwitching=!1,t.emit(ek.SWITCH_URL_SUCCESS,{url:t._opts.url})),t._seamlessSwitching&&(t._seamlessSwitching=!1,t._tick()),!(r&&!t.media.seeking)){e.next=40;break}return t.emit(ek.LOAD_COMPLETE),tS.debug("load done"),t.isLive&&t._disconnectRetryCount<=0&&t._end(),e.abrupt("return");case 40:if(t.isLive){e.next=42;break}return e.abrupt("return");case 42:(g=t._opts.maxReaderInterval)&&t._firstProgressEmit&&(clearTimeout(t._maxChunkWaitTimer),t._maxChunkWaitTimer=setTimeout(function(){if(t._disconnectRetryCount){t._disconnectRetryCount--,t.load();return}tS.debug("onMaxChunkWait",g),t._end()},g));case 44:case"end":return e.stop()}},e,null,[[17,23]])})),function(e,t,r,i){return n.apply(this,arguments)})),E(O(t),"_onRetryError",function(e,n){tS.debug("load retry",e,n),t.emit(ek.LOAD_RETRY,{error:et.network(e),retryTime:n})}),E(O(t),"_end",function(){t._clear(),t._bufferService&&t._bufferService.endOfStream(),tS.debug("end stream")}),E(O(t),"_resetDisconnectCount",function(){t._disconnectRetryCount=t._opts.disconnectRetryCount}),E(O(t),"_tick",function(){clearTimeout(t._tickTimer);var e=O(t).media;if(e){t._tickTimer=setTimeout(t._tick,t._tickInterval);var n=$.end($.get(e));if(!(n<.1)&&e.readyState){var r=t._opts;if(e&&!e.paused&&!e.ended&&0!==e.playbackRate&&0!==e.readyState&&e.currentTime)t._gapService&&t._gapService.do(e,r.maxJumpDistance,t.isLive,3);else{if(!e.currentTime&&t._gapService&&r.enableStartGapJump){(t._opts.mseLowLatency||!1===t._opts.mseLowLatency&&t.bufferInfo(.3).nextStart)&&t._gapService.do(e,r.maxJumpDistance,t.isLive,3);return}r.isLive&&4===e.readyState&&n-e.currentTime>r.disconnectTime&&t.disconnect()}}}}),E(O(t),"_onPlay",function(){var e,n,r=t._opts.softDecode||(null==(e=t.media)||null==(n=e.buffered)?void 0:n.length);if(t.isLive){!t._loading&&r&&t.replay(void 0,!0);return}var i=t.bufferInfo();(i.start||i.nextStart)>.1&&t._tick()}),E(O(t),"_onLoadeddata",function(){t.isLive&&!t._opts.mseLowLatency&&t.media.duration!==1/0&&t._bufferService.updateDuration(1/0).catch(function(e){})}),E(O(t),"_onSeeking",w(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:!t.isLive&&t.seekable&&(t._preLoadEndPoint=-1,t._checkPreload());case 1:case"end":return e.stop()}},e)}))),E(O(t),"_onTimeupdate",function(){if(t.media){var e=t._opts,n=t.media.currentTime;if(e.isLive&&e.maxLatency&&e.targetLatency){var r=$.end($.get(t.media));r-n>=e.maxLatency&&(t.media.currentTime=r-e.targetLatency,t.emit(ek.CHASEFRAME,{currentTime:t.media.currentTime,latency:e.targetLatency}))}t._seiService.throw(n,!0),e.isLive||!t.seekable||t._loading||t._checkPreload()}}),E(O(t),"_onWaiting",function(){t.isLive&&!t._loading&&t._disconnectRetryCount&&(t._disconnectRetryCount--,t.load())}),E(O(t),"_onBufferUpdate",function(){if(!t._opts.isLive){var e=t.bufferInfo(),n=e.end,r=e.nextEnd;1>Math.abs((n||r)-t.media.duration)&&(t._end(),t.media.readyState<=2&&t._tick())}}),E(O(t),"_checkPreload",w(y().mark(function e(){var n,r,i,a,s,l,u,c,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0===(n=t.bufferInfo().remaining)?0:n,i=t._opts,a=t._keyframes.filepositions,s=t._keyframes.times,l=t.media.currentTime,!(r<i.preloadTime)){e.next=19;break}if(u=tx(t._keyframes.times,l+r+.1),(c=tx(t._keyframes.times,l+r+t._opts.preloadTime))===u&&(c=u+1),t._preLoadEndPoint!==c){e.next=11;break}return e.abrupt("return");case 11:if(null!=(d=a[u])){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,t._mediaLoader.cancel();case 16:t._loadData(null,[d,a[c]]),t._preLoadEndPoint=c,t._bufferService.unContiguous(s[u]);case 19:case"end":return e.stop()}},e)}))),E(O(t),"_onFlvScriptData",function(e){var n,r,i,a,s=null==(n=e.data)||null==(r=n.onMetaData)?void 0:r.keyframes,l=null==(i=e.data)||null==(a=i.onMetaData)?void 0:a.duration;s&&(t._keyframes=s),!t._opts.isLive&&l&&t._bufferService.updateDuration(l)}),(r=_({retryCount:3,retryDelay:1e3,disconnectRetryCount:0,loadTimeout:1e4,maxReaderInterval:5e3,preloadTime:5,defaultVodLoadSize:1e7,isLive:!1,softDecode:!1,bufferBehind:10,maxJumpDistance:3,analyzeDuration:2e4,seamlesslyReload:!1,keepStatusAfterSwitch:!0,onlyVideo:!1,onlyAudio:!1,preferMMS:!1,mseLowLatency:!0,durationForMSELowLatencyOff:6,chunkCountForSpeed:50,skipChunkSize:1e3,longtimeNoReceived:3e3,enableStartGapJump:!0},e)).isLive&&r.preloadTime&&(r.maxLatency||(r.maxLatency=2*r.preloadTime),r.targetLatency||(r.targetLatency=r.preloadTime),(null===r.disconnectTime||void 0===r.disconnectTime)&&(r.disconnectTime=r.maxLatency)),t._opts=r,t.media=t._opts.media||document.createElement("video"),t._opts.media=null,t._firstProgressEmit=!1,t._mediaLoader=new eA(_(_({},t._opts.fetchOptions),{},{retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onRetryError,onProgress:t._onProgress,responseType:"arraybuffer"})),t._disconnectRetryCount=t._opts.disconnectRetryCount,t._transferCost=new ty,t._bufferService=new tk(O(t),t._opts.softDecode?t.media:void 0,t._opts),t._seiService=new eI(O(t)),t._bandwidthService=new eC({chunkCountForSpeed:t._opts.chunkCountForSpeed,skipChunkSize:t._opts.skipChunkSize,longtimeNoReceived:t._opts.longtimeNoReceived}),t._stats=new eD(O(t)),t._opts.softDecode||(t._gapService=new eO),t.media.addEventListener("play",t._onPlay),t.media.addEventListener("loadeddata",t._onLoadeddata),t.media.addEventListener("seeking",t._onSeeking),t.media.addEventListener("timeupdate",t._onTimeupdate),t.media.addEventListener("progress",t._onBufferUpdate),t.media.addEventListener("waiting",t._onWaiting),t.on(ek.FLV_SCRIPT_DATA,t._onFlvScriptData),t}return S(d,[{key:"version",get:function(){return"3.0.21"}},{key:"isLive",get:function(){return this._opts.isLive}},{key:"baseDts",get:function(){var e;return null==(e=this._bufferService)?void 0:e.baseDts}},{key:"seekable",get:function(){return!!this._keyframes&&this._acceptRanges}},{key:"loader",get:function(){return this._mediaLoader}},{key:"blobUrl",get:function(){var e;return null==(e=this._bufferService)?void 0:e.blobUrl}},{key:"speedInfo",value:function(){return{speed:this._bandwidthService.getLatestSpeed(),avgSpeed:this._bandwidthService.getAvgSpeed(),totalSize:this._bandwidthService.getTotalSize(),totalCost:this._bandwidthService.getTotalCost()}}},{key:"getStats",value:function(){return this._stats.getStats()}},{key:"bufferInfo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1;return $.info($.get(this.media),null==(e=this.media)?void 0:e.currentTime,t)}},{key:"playbackQuality",value:function(){var e=this.media;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()}}},{key:"load",value:(n=w(y().mark(function e(t){var n,r=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],this._bufferService){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._reset(n);case 5:this._loadData(t,this._opts.isLive?[]:[0,this._opts.defaultVodLoadSize]),clearTimeout(this._tickTimer),this._tickTimer=setTimeout(this._tick,this._tickInterval);case 8:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"replay",value:(r=w(y().mark(function e(){var t,n,r=this,i=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:this._opts.seamlesslyReload,n=i.length>1?i[1]:void 0,this.media){e.next=4;break}return e.abrupt("return");case 4:if(this._resetDisconnectCount(),!t){e.next=11;break}return e.next=8,this._clear();case 8:setTimeout(function(){r._seamlessSwitching=!0,r._loadData(r._opts.url),r._bufferService.seamlessSwitch()}),e.next=13;break;case 11:return e.next=13,this.load();case 13:return e.abrupt("return",this.media.play(!n).catch(function(){}));case 14:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"disconnect",value:function(){var e;return tS.debug("disconnect!"),null==(e=this._bufferService)||e.resetSeamlessSwitchStats(),this._clear()}},{key:"switchURL",value:(i=w(y().mark(function e(t,n){var r=this;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._bufferService){e.next=2;break}return e.abrupt("return");case 2:if(this._resetDisconnectCount(),!(this._loading&&n)){e.next=6;break}return this._bufferService.seamlessLoadingSwitch=function(){var e=w(y().mark(function e(n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._clear();case 2:r._bufferService.seamlessLoadingSwitching=!0,r._urlSwitching=!0,r._seamlessSwitching=!0,r._bufferService.seamlessSwitch(),r._loadData(t);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),e.abrupt("return");case 6:if(!(!n||!this._opts.isLive)){e.next=11;break}return e.next=9,this.load(t);case 9:return this._urlSwitching=!0,e.abrupt("return",this.media.play(!0).catch(function(){}));case 11:return e.next=13,this._clear();case 13:setTimeout(function(){r._urlSwitching=!0,r._seamlessSwitching=!0,r._loadData(t),r._bufferService.seamlessSwitch()});case 14:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"destroy",value:(a=w(y().mark(function e(){return y().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._seiService.reset(),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("loadeddata",this._onLoadeddata),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),this.media.removeEventListener("waiting",this._onWaiting),this.media.removeEventListener("progress",this._onBufferUpdate),e.next=12,Promise.all([this._clear(),this._bufferService.destroy()]);case 12:this.media=null,this._bufferService=null;case 14:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"_emitError",value:function(e){var t,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];tS.table(e),tS.error(e),tS.error(null==(t=this.media)?void 0:t.error),this._urlSwitching&&(this._urlSwitching=!1,this._seamlessSwitching=!1,this.emit(ek.SWITCH_URL_FAILED,e)),this.emit(ek.ERROR,e),n&&(this._seiService.reset(),this._end())}},{key:"_reset",value:(s=w(y().mark(function e(){var t,n=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],this._seiService.reset(),this._bandwidthService.reset(),this._stats.reset(),e.next=6,this._clear();case 6:return e.next=8,this._bufferService.reset(t);case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"_loadData",value:(l=w(y().mark(function e(t,n){var r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&(this._opts.url=t),r=t=this._opts.url,t){e.next=4;break}throw Error("Source url is missing");case 4:if(this._opts.preProcessUrl&&(r=this._opts.preProcessUrl(t).url),this._mediaLoader.finnalUrl=r,this.emit(ek.LOAD_START,{url:r,seamlessSwitching:this._seamlessSwitching}),tS.debug("load data, loading:",this._loading,r),!this._loading){e.next=11;break}return e.next=11,this._mediaLoader.cancel();case 11:return this._loading=!0,e.prev=12,e.next=15,this._mediaLoader.load({url:r,range:n});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(12),this._loading=!1,e.abrupt("return",this._emitError(et.network(e.t0),!1));case 21:case"end":return e.stop()}},e,this,[[12,17]])})),function(e,t){return l.apply(this,arguments)})},{key:"_clear",value:(u=w(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mediaLoader){e.next=3;break}return e.next=3,this._mediaLoader.cancel();case 3:clearTimeout(this._maxChunkWaitTimer),clearTimeout(this._tickTimer),this._loading=!1,this._firstProgressEmit=!1;case 7:case"end":return e.stop()}},e,this)})),function(){return u.apply(this,arguments)})}],[{key:"isSupported",value:function(e){return e&&"video"!==e&&"audio"!==e?"undefined"!=typeof WebAssembly:ed.isSupported()}},{key:"enableLogger",value:function(){er.enable(),e3.enable()}},{key:"disableLogger",value:function(){er.disable(),e3.disable()}}]),d}(eR.default);try{localStorage.getItem("xgd")?tE.enableLogger():tE.disableLogger()}catch(e){}},28:function(e,t,n){"use strict";let r,i,a,s,l;function u(e){let t=e.length;for(;--t>=0;)e[t]=0}n.d(t,{ZP:()=>tK,ec:()=>tJ});let c=573,d=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),f=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=Array(576);u(m);let g=Array(60);u(g);let _=Array(512);u(_);let y=Array(256);u(y);let b=Array(29);u(b);let w=Array(30);function k(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}u(w);let S=e=>e<256?_[e]:_[256+(e>>>7)],E=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},T=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,E(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},A=(e,t,n)=>{T(e,n[2*t],n[2*t+1])},O=(e,t)=>{let n=0;do n|=1&e,e>>>=1,n<<=1;while(--t>0);return n>>>1},I=e=>{16===e.bi_valid?(E(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},C=(e,t)=>{let n,r,i,a,s,l,u=t.dyn_tree,d=t.max_code,f=t.stat_desc.static_tree,h=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,_=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<c;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>g&&(a=g,_++),u[2*r+1]=a,!(r>d)&&(e.bl_count[a]++,s=0,r>=m&&(s=p[r-m]),l=u[2*r],e.opt_len+=l*(a+s),h&&(e.static_len+=l*(f[2*r+1]+s)));if(0!==_){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,_-=2}while(_>0);for(a=g;0!==a;a--)for(r=e.bl_count[a];0!==r;)!((i=e.heap[--n])>d)&&(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}},U=(e,t,n)=>{let r,i,a=Array(16),s=0;for(r=1;r<=15;r++)s=s+n[r-1]<<1,a[r]=s;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=O(a[t]++,t))}},D=()=>{let e,t,n,s,l,u=Array(16);for(s=0,n=0;s<28;s++)for(e=0,b[s]=n;e<1<<d[s];e++)y[n++]=s;for(y[n-1]=s,l=0,s=0;s<16;s++)for(e=0,w[s]=l;e<1<<f[s];e++)_[l++]=s;for(l>>=7;s<30;s++)for(e=0,w[s]=l<<7;e<1<<f[s]-7;e++)_[256+l++]=s;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)m[2*e+1]=8,e++,u[8]++;for(;e<=255;)m[2*e+1]=9,e++,u[9]++;for(;e<=279;)m[2*e+1]=7,e++,u[7]++;for(;e<=287;)m[2*e+1]=8,e++,u[8]++;for(U(m,287,u),e=0;e<30;e++)g[2*e+1]=5,g[2*e]=O(e,5);r=new k(m,d,257,286,15),i=new k(g,f,0,30,15),a=new k([],h,0,19,7)},R=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},L=e=>{e.bi_valid>8?E(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},B=(e,t,n,r)=>{let i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},P=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&B(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!B(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},M=(e,t,n)=>{let r,i,a,s,l=0;if(0!==e.sym_next)do r=(255&e.pending_buf[e.sym_buf+l++])+((255&e.pending_buf[e.sym_buf+l++])<<8),i=e.pending_buf[e.sym_buf+l++],0===r?A(e,i,t):(A(e,(a=y[i])+256+1,t),0!==(s=d[a])&&T(e,i-=b[a],s),A(e,a=S(--r),n),0!==(s=f[a])&&T(e,r-=w[a],s));while(l<e.sym_next);A(e,256,t)},F=(e,t)=>{let n,r,i,a=t.dyn_tree,s=t.stat_desc.static_tree,l=t.stat_desc.has_stree,u=t.stat_desc.elems,d=-1;for(n=0,e.heap_len=0,e.heap_max=c;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=d=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=d<2?++d:0)]=1,e.depth[i]=0,e.opt_len--,l&&(e.static_len-=s[2*i+1]);for(t.max_code=d,n=e.heap_len>>1;n>=1;n--)P(e,a,n);i=u;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],P(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,P(e,a,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],C(e,t),U(a,d,e.bl_count)},N=(e,t,n)=>{let r,i,a=-1,s=t[1],l=0,u=7,c=4;for(0===s&&(u=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)i=s,s=t[(r+1)*2+1],++l<u&&i===s||(l<c?e.bl_tree[2*i]+=l:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):l<=10?e.bl_tree[34]++:e.bl_tree[36]++,l=0,a=i,0===s?(u=138,c=3):i===s?(u=6,c=3):(u=7,c=4))},j=(e,t,n)=>{let r,i,a=-1,s=t[1],l=0,u=7,c=4;for(0===s&&(u=138,c=3),r=0;r<=n;r++)if(i=s,s=t[(r+1)*2+1],!(++l<u)||i!==s){if(l<c)do A(e,i,e.bl_tree);while(0!=--l);else 0!==i?(i!==a&&(A(e,i,e.bl_tree),l--),A(e,16,e.bl_tree),T(e,l-3,2)):l<=10?(A(e,17,e.bl_tree),T(e,l-3,3)):(A(e,18,e.bl_tree),T(e,l-11,7));l=0,a=i,0===s?(u=138,c=3):i===s?(u=6,c=3):(u=7,c=4)}},z=e=>{let t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),F(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*p[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t},H=(e,t,n,r)=>{let i;for(T(e,t-257,5),T(e,n-1,5),T(e,r-4,4),i=0;i<r;i++)T(e,e.bl_tree[2*p[i]+1],3);j(e,e.dyn_ltree,t-1),j(e,e.dyn_dtree,n-1)},G=e=>{let t,n=0xf3ffc07f;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0},V=!1,W=(e,t,n,r)=>{T(e,0+ +!!r,3),L(e),E(e,n),E(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var Z={_tr_init:e=>{V||(D(),V=!0),e.l_desc=new x(e.dyn_ltree,r),e.d_desc=new x(e.dyn_dtree,i),e.bl_desc=new x(e.bl_tree,a),e.bi_buf=0,e.bi_valid=0,R(e)},_tr_stored_block:W,_tr_flush_block:(e,t,n,r)=>{let i,a,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=G(e)),F(e,e.l_desc),F(e,e.d_desc),s=z(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?W(e,t,n,r):4===e.strategy||a===i?(T(e,2+ +!!r,3),M(e,m,g)):(T(e,4+ +!!r,3),H(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),M(e,e.dyn_ltree,e.dyn_dtree)),R(e),r&&L(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[(y[n]+256+1)*2]++,e.dyn_dtree[2*S(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{T(e,2,3),A(e,256,m),I(e)}},q=(e,t,n,r)=>{let i=65535&e|0,a=e>>>16&65535|0,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do a=a+(i=i+t[r++]|0)|0;while(--s);i%=65521,a%=65521}return i|a<<16|0};let Y=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?0xedb88320^e>>>1:e>>>1;t[n]=e}return t})());var J=(e,t,n,r)=>{let i=r+n;e^=-1;for(let n=r;n<i;n++)e=e>>>8^Y[(e^t[n])&255];return -1^e},K={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},$={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};let{_tr_init:X,_tr_stored_block:Q,_tr_flush_block:ee,_tr_tally:et,_tr_align:en}=Z,{Z_NO_FLUSH:er,Z_PARTIAL_FLUSH:ei,Z_FULL_FLUSH:ea,Z_FINISH:es,Z_BLOCK:eo,Z_OK:el,Z_STREAM_END:eu,Z_STREAM_ERROR:ec,Z_DATA_ERROR:ed,Z_BUF_ERROR:ef,Z_DEFAULT_COMPRESSION:eh,Z_FILTERED:ep,Z_HUFFMAN_ONLY:ev,Z_RLE:em,Z_FIXED:eg,Z_DEFAULT_STRATEGY:e_,Z_UNKNOWN:ey,Z_DEFLATED:eb}=$,ew=573,ek=(e,t)=>(e.msg=K[t],t),ex=e=>2*e-9*(e>4),eS=e=>{let t=e.length;for(;--t>=0;)e[t]=0},eE=e=>{let t,n,r,i=e.w_size;r=t=e.hash_size;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);r=t=i;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},eT=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,eA=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},eO=(e,t)=>{ee(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,eA(e.strm)},eI=(e,t)=>{e.pending_buf[e.pending++]=t},eC=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},eU=(e,t,n,r)=>{let i=e.avail_in;return(i>r&&(i=r),0===i)?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=q(e.adler,t,i,n):2===e.state.wrap&&(e.adler=J(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},eD=(e,t)=>{let n,r,i=e.max_chain_length,a=e.strstart,s=e.prev_length,l=e.nice_match,u=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,c=e.window,d=e.w_mask,f=e.prev,h=e.strstart+258,p=c[a+s-1],m=c[a+s];e.prev_length>=e.good_match&&(i>>=2),l>e.lookahead&&(l=e.lookahead);do{if(c[(n=t)+s]!==m||c[n+s-1]!==p||c[n]!==c[a]||c[++n]!==c[a+1])continue;a+=2,n++;do;while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<h);if(r=258-(h-a),a=h-258,r>s){if(e.match_start=t,s=r,r>=l)break;p=c[a+s-1],m=c[a+s]}}while((t=f[t&d])>u&&0!=--i);return s<=e.lookahead?s:e.lookahead},eR=e=>{let t,n,r,i=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-262)&&(e.window.set(e.window.subarray(i,i+i-n),0),e.match_start-=i,e.strstart-=i,e.block_start-=i,e.insert>e.strstart&&(e.insert=e.strstart),eE(e),n+=i),0===e.strm.avail_in)break;if(t=eU(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.lookahead+e.insert>=3)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=eT(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=eT(e,e.ins_h,e.window[r+3-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},eL=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,s=0,l=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r>(i=e.strstart-e.block_start)+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(0===r&&t!==es||t===er||r!==i+e.strm.avail_in)))break;s=+(t===es&&r===i+e.strm.avail_in),Q(e,0,0,s),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,eA(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(eU(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(0===s);return((l-=e.strm.avail_in)&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s)?4:t!==er&&t!==es&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(eU(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,n=(a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a)>e.w_size?e.w_size:a,((i=e.strstart-e.block_start)>=n||(i||t===es)&&t!==er&&0===e.strm.avail_in&&i<=a)&&(r=i>a?a:i,s=+(t===es&&0===e.strm.avail_in&&r===i),Q(e,e.block_start,r,s),e.block_start+=r,eA(e.strm)),s?3:1)},eB=(e,t)=>{let n,r;for(;;){if(e.lookahead<262){if(eR(e),e.lookahead<262&&t===er)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=eT(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=eD(e,n)),e.match_length>=3)if(r=et(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,e.ins_h=eT(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=eT(e,e.ins_h,e.window[e.strstart+1]);else r=et(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(eO(e,!1),0===e.strm.avail_out))return 1}return(e.insert=e.strstart<2?e.strstart:2,t===es)?(eO(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eO(e,!1),0===e.strm.avail_out)?1:2},eP=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<262){if(eR(e),e.lookahead<262&&t===er)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=eT(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=eD(e,n),e.match_length<=5&&(e.strategy===ep||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=et(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=eT(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(eO(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=et(e,0,e.window[e.strstart-1]))&&eO(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return(e.match_available&&(r=et(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===es)?(eO(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eO(e,!1),0===e.strm.avail_out)?1:2},eM=(e,t)=>{let n,r,i,a,s=e.window;for(;;){if(e.lookahead<=258){if(eR(e),e.lookahead<=258&&t===er)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+258;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=258-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=et(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=et(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(eO(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,t===es)?(eO(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eO(e,!1),0===e.strm.avail_out)?1:2},eF=(e,t)=>{let n;for(;;){if(0===e.lookahead&&(eR(e),0===e.lookahead)){if(t===er)return 1;break}if(e.match_length=0,n=et(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(eO(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,t===es)?(eO(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(eO(e,!1),0===e.strm.avail_out)?1:2};function eN(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}let ej=[new eN(0,0,0,0,eL),new eN(4,4,8,4,eB),new eN(4,5,16,8,eB),new eN(4,6,32,32,eB),new eN(4,4,16,16,eP),new eN(8,16,32,32,eP),new eN(8,16,128,128,eP),new eN(8,32,128,256,eP),new eN(32,128,258,1024,eP),new eN(32,258,258,4096,eP)],ez=e=>{e.window_size=2*e.w_size,eS(e.head),e.max_lazy_match=ej[e.level].max_lazy,e.good_match=ej[e.level].good_length,e.nice_match=ej[e.level].nice_length,e.max_chain_length=ej[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0};function eH(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=eb,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*ew),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),eS(this.dyn_ltree),eS(this.dyn_dtree),eS(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),eS(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),eS(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let eG=e=>{if(!e)return 1;let t=e.state;return t&&t.strm===e&&(42===t.status||57===t.status||69===t.status||73===t.status||91===t.status||103===t.status||113===t.status||666===t.status)?0:1},eV=e=>{if(eG(e))return ek(e,ec);e.total_in=e.total_out=0,e.data_type=ey;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=+(2!==t.wrap),t.last_flush=-2,X(t),el},eW=e=>{let t=eV(e);return t===el&&ez(e.state),t};var eZ={deflateInit2:(e,t,n,r,i,a)=>{if(!e)return ec;let s=1;if(t===eh&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||n!==eb||r<8||r>15||t<0||t>9||a<0||a>eg||8===r&&1!==s)return ek(e,ec);8===r&&(r=9);let l=new eH;return e.state=l,l.strm=e,l.status=42,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new Uint8Array(2*l.w_size),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=t,l.strategy=a,l.method=n,eW(e)},deflateSetHeader:(e,t)=>eG(e)||2!==e.state.wrap?ec:(e.state.gzhead=t,el),deflate:(e,t)=>{if(eG(e)||t>eo||t<0)return e?ek(e,ec):ec;let n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==es)return ek(e,0===e.avail_out?ef:ec);let r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(eA(e),0===e.avail_out)return n.last_flush=-1,el}else if(0===e.avail_in&&ex(t)<=ex(r)&&t!==es)return ek(e,ef);if(666===n.status&&0!==e.avail_in)return ek(e,ef);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){let t=eb+(n.w_bits-8<<4)<<8,r=-1;if(t|=(n.strategy>=ev||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(t|=32),eC(n,t+=31-t%31),0!==n.strstart&&(eC(n,e.adler>>>16),eC(n,65535&e.adler)),e.adler=1,n.status=113,eA(e),0!==n.pending)return n.last_flush=-1,el}if(57===n.status){if(e.adler=0,eI(n,31),eI(n,139),eI(n,8),n.gzhead)eI(n,+!!n.gzhead.text+2*!!n.gzhead.hcrc+4*!!n.gzhead.extra+8*!!n.gzhead.name+16*!!n.gzhead.comment),eI(n,255&n.gzhead.time),eI(n,n.gzhead.time>>8&255),eI(n,n.gzhead.time>>16&255),eI(n,n.gzhead.time>>24&255),eI(n,9===n.level?2:4*(n.strategy>=ev||n.level<2)),eI(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(eI(n,255&n.gzhead.extra.length),eI(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=J(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(eI(n,0),eI(n,0),eI(n,0),eI(n,0),eI(n,0),eI(n,9===n.level?2:4*(n.strategy>=ev||n.level<2)),eI(n,3),n.status=113,eA(e),0!==n.pending)return n.last_flush=-1,el}if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=J(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,eA(e),0!==n.pending)return n.last_flush=-1,el;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=J(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r)),eA(e),0!==n.pending)return n.last_flush=-1,el;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,eI(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r)),eA(e),0!==n.pending)return n.last_flush=-1,el;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,eI(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=J(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(eA(e),0!==n.pending))return n.last_flush=-1,el;eI(n,255&e.adler),eI(n,e.adler>>8&255),e.adler=0}if(n.status=113,eA(e),0!==n.pending)return n.last_flush=-1,el}if(0!==e.avail_in||0!==n.lookahead||t!==er&&666!==n.status){let r=0===n.level?eL(n,t):n.strategy===ev?eF(n,t):n.strategy===em?eM(n,t):ej[n.level].func(n,t);if((3===r||4===r)&&(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),el;if(2===r&&(t===ei?en(n):t!==eo&&(Q(n,0,0,!1),t===ea&&(eS(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),eA(e),0===e.avail_out))return n.last_flush=-1,el}return t!==es?el:n.wrap<=0?eu:(2===n.wrap?(eI(n,255&e.adler),eI(n,e.adler>>8&255),eI(n,e.adler>>16&255),eI(n,e.adler>>24&255),eI(n,255&e.total_in),eI(n,e.total_in>>8&255),eI(n,e.total_in>>16&255),eI(n,e.total_in>>24&255)):(eC(n,e.adler>>>16),eC(n,65535&e.adler)),eA(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?el:eu)},deflateEnd:e=>{if(eG(e))return ec;let t=e.state.status;return e.state=null,113===t?ek(e,ed):el},deflateSetDictionary:(e,t)=>{let n=t.length;if(eG(e))return ec;let r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return ec;if(1===i&&(e.adler=q(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(eS(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,s=e.next_in,l=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,eR(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do r.ins_h=eT(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=2,eR(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=a,r.wrap=i,el}};let eq=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var eY={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if("object"!=typeof n)throw TypeError(n+"must be non-object");for(let t in n)eq(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}};let eJ=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){eJ=!1}let eK=new Uint8Array(256);for(let e=0;e<256;e++)eK[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;eK[254]=eK[254]=1;let e$=(e,t)=>{if(t<65534&&e.subarray&&eJ)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var eX={string2buf:e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,s=e.length,l=0;for(i=0;i<s;i++)(64512&(n=e.charCodeAt(i)))==55296&&i+1<s&&(64512&(r=e.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(a=0,t=new Uint8Array(l),i=0;a<l;i++)(64512&(n=e.charCodeAt(i)))==55296&&i+1<s&&(64512&(r=e.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},buf2string:(e,t)=>{let n,r,i=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let a=Array(2*i);for(r=0,n=0;n<i;){let t=e[n++];if(t<128){a[r++]=t;continue}let s=eK[t];if(s>4){a[r++]=65533,n+=s-1;continue}for(t&=2===s?31:3===s?15:7;s>1&&n<i;)t=t<<6|63&e[n++],s--;if(s>1){a[r++]=65533;continue}t<65536?a[r++]=t:(t-=65536,a[r++]=55296|t>>10&1023,a[r++]=56320|1023&t)}return e$(a,r)},utf8border:(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(192&e[n])==128;)n--;return n<0||0===n?t:n+eK[e[n]]>t?n:t}},eQ=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};let e0=Object.prototype.toString,{Z_NO_FLUSH:e1,Z_SYNC_FLUSH:e2,Z_FULL_FLUSH:e5,Z_FINISH:e3,Z_OK:e4,Z_STREAM_END:e6,Z_DEFAULT_COMPRESSION:e8,Z_DEFAULT_STRATEGY:e9,Z_DEFLATED:e7}=$;function te(e){this.options=eY.assign({level:e8,method:e7,chunkSize:16384,windowBits:15,memLevel:8,strategy:e9},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eQ,this.strm.avail_out=0;let n=eZ.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==e4)throw Error(K[n]);if(t.header&&eZ.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?eX.string2buf(t.dictionary):"[object ArrayBuffer]"===e0.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=eZ.deflateSetDictionary(this.strm,e))!==e4)throw Error(K[n]);this._dict_set=!0}}function tt(e,t){let n=new te(t);if(n.push(e,!0),n.err)throw n.msg||K[n.err];return n.result}te.prototype.push=function(e,t){let n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?e3:e1,"string"==typeof e?i.input=eX.string2buf(e):"[object ArrayBuffer]"===e0.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(0===i.avail_out&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(r===e2||r===e5)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if((n=eZ.deflate(i,r))===e6)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=eZ.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===e4;if(0===i.avail_out){this.onData(i.output);continue}if(r>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(0===i.avail_in)break}return!0},te.prototype.onData=function(e){this.chunks.push(e)},te.prototype.onEnd=function(e){e===e4&&(this.result=eY.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var tn=function(e,t){let n,r,i,a,s,l,u,c,d,f,h,p,m,g,_,y,b,w,k,x,S,E,T,A,O=e.state;n=e.next_in,T=e.input,r=n+(e.avail_in-5),i=e.next_out,A=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=O.dmax,u=O.wsize,c=O.whave,d=O.wnext,f=O.window,h=O.hold,p=O.bits,m=O.lencode,g=O.distcode,_=(1<<O.lenbits)-1,y=(1<<O.distbits)-1;e:do for(p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),b=m[h&_];;){if(h>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))A[i++]=65535&b;else if(16&w)for(k=65535&b,(w&=15)&&(p<w&&(h+=T[n++]<<p,p+=8),k+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),b=g[h&y];;){if(h>>>=w=b>>>24,p-=w,16&(w=b>>>16&255)){if(x=65535&b,p<(w&=15)&&(h+=T[n++]<<p,(p+=8)<w&&(h+=T[n++]<<p,p+=8)),(x+=h&(1<<w)-1)>l){e.msg="invalid distance too far back",O.mode=16209;break e}if(h>>>=w,p-=w,x>(w=i-a)){if((w=x-w)>c&&O.sane){e.msg="invalid distance too far back",O.mode=16209;break e}if(S=0,E=f,0===d){if(S+=u-w,w<k){k-=w;do A[i++]=f[S++];while(--w);S=i-x,E=A}}else if(d<w){if(S+=u+d-w,(w-=d)<k){k-=w;do A[i++]=f[S++];while(--w);if(S=0,d<k){k-=w=d;do A[i++]=f[S++];while(--w);S=i-x,E=A}}}else if(S+=d-w,w<k){k-=w;do A[i++]=f[S++];while(--w);S=i-x,E=A}for(;k>2;)A[i++]=E[S++],A[i++]=E[S++],A[i++]=E[S++],k-=3;k&&(A[i++]=E[S++],k>1&&(A[i++]=E[S++]))}else{S=i-x;do A[i++]=A[S++],A[i++]=A[S++],A[i++]=A[S++],k-=3;while(k>2);k&&(A[i++]=A[S++],k>1&&(A[i++]=A[S++]))}}else if((64&w)==0){b=g[(65535&b)+(h&(1<<w)-1)];continue}else{e.msg="invalid distance code",O.mode=16209;break e}break}else if((64&w)==0){b=m[(65535&b)+(h&(1<<w)-1)];continue}else if(32&w){O.mode=16191;break e}else{e.msg="invalid literal/length code",O.mode=16209;break e}break}while(n<r&&i<s);n-=k=p>>3,p-=k<<3,h&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<s?257+(s-i):257-(i-s),O.hold=h,O.bits=p};let tr=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ti=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ta=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ts=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var to=(e,t,n,r,i,a,s,l)=>{let u,c,d,f,h,p,m,g,_,y=l.bits,b=0,w=0,k=0,x=0,S=0,E=0,T=0,A=0,O=0,I=0,C=null,U=new Uint16Array(16),D=new Uint16Array(16),R=null;for(b=0;b<=15;b++)U[b]=0;for(w=0;w<r;w++)U[t[n+w]]++;for(x=15,S=y;x>=1&&0===U[x];x--);if(S>x&&(S=x),0===x)return i[a++]=0x1400000,i[a++]=0x1400000,l.bits=1,0;for(k=1;k<x&&0===U[k];k++);for(S<k&&(S=k),A=1,b=1;b<=15;b++)if(A<<=1,(A-=U[b])<0)return -1;if(A>0&&(0===e||1!==x))return -1;for(b=1,D[1]=0;b<15;b++)D[b+1]=D[b]+U[b];for(w=0;w<r;w++)0!==t[n+w]&&(s[D[t[n+w]]++]=w);if(0===e?(C=R=s,p=20):1===e?(C=tr,R=ti,p=257):(C=ta,R=ts,p=0),I=0,w=0,b=k,h=a,E=S,T=0,d=-1,f=(O=1<<S)-1,1===e&&O>852||2===e&&O>592)return 1;for(;;){m=b-T,s[w]+1<p?(g=0,_=s[w]):s[w]>=p?(g=R[s[w]-p],_=C[s[w]-p]):(g=96,_=0),u=1<<b-T,k=c=1<<E;do i[h+(I>>T)+(c-=u)]=m<<24|g<<16|_|0;while(0!==c);for(u=1<<b-1;I&u;)u>>=1;if(0!==u?(I&=u-1,I+=u):I=0,w++,0==--U[b]){if(b===x)break;b=t[n+s[w]]}if(b>S&&(I&f)!==d){for(0===T&&(T=S),h+=k,A=1<<(E=b-T);E+T<x&&!((A-=U[E+T])<=0);)E++,A<<=1;if(O+=1<<E,1===e&&O>852||2===e&&O>592)return 1;i[d=I&f]=S<<24|E<<16|h-a|0}}return 0!==I&&(i[h+I]=b-T<<24|4194304),l.bits=S,0};let{Z_FINISH:tl,Z_BLOCK:tu,Z_TREES:tc,Z_OK:td,Z_STREAM_END:tf,Z_NEED_DICT:th,Z_STREAM_ERROR:tp,Z_DATA_ERROR:tv,Z_MEM_ERROR:tm,Z_BUF_ERROR:tg,Z_DEFLATED:t_}=$,ty=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function tb(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}let tw=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<16180||t.mode>16211)},tk=e=>{if(tw(e))return tp;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,td},tx=e=>{if(tw(e))return tp;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,tk(e)},tS=(e,t)=>{let n;if(tw(e))return tp;let r=e.state;return(t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15))?tp:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,tx(e))},tE=!0,tT=e=>{if(tE){s=new Int32Array(512),l=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(to(1,e.lens,0,288,s,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;to(2,e.lens,0,32,l,0,e.work,{bits:5}),tE=!1}e.lencode=s,e.lenbits=9,e.distcode=l,e.distbits=5},tA=(e,t,n,r)=>{let i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),(r-=i)?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var tO={inflateReset:tx,inflateInit2:(e,t)=>{if(!e)return tp;let n=new tb;e.state=n,n.strm=e,n.window=null,n.mode=16180;let r=tS(e,t);return r!==td&&(e.state=null),r},inflate:(e,t)=>{let n,r,i,a,s,l,u,c,d,f,h,p,m,g,_,y,b,w,k,x,S,E,T,A,O=0,I=new Uint8Array(4),C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(tw(e)||!e.output||!e.input&&0!==e.avail_in)return tp;16191===(n=e.state).mode&&(n.mode=16192),s=e.next_out,i=e.output,u=e.avail_out,a=e.next_in,r=e.input,l=e.avail_in,c=n.hold,d=n.bits,f=l,h=u,E=td;t:for(;;)switch(n.mode){case 16180:if(0===n.wrap){n.mode=16192;break}for(;d<16;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(2&n.wrap&&35615===c){0===n.wbits&&(n.wbits=15),n.check=0,I[0]=255&c,I[1]=c>>>8&255,n.check=J(n.check,I,2,0),c=0,d=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=16209;break}if((15&c)!==t_){e.msg="unknown compression method",n.mode=16209;break}if(c>>>=4,d-=4,S=(15&c)+8,0===n.wbits&&(n.wbits=S),S>15||S>n.wbits){e.msg="invalid window size",n.mode=16209;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&c?16189:16191,c=0,d=0;break;case 16181:for(;d<16;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(n.flags=c,(255&n.flags)!==t_){e.msg="unknown compression method",n.mode=16209;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=16209;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&4&n.wrap&&(I[0]=255&c,I[1]=c>>>8&255,n.check=J(n.check,I,2,0)),c=0,d=0,n.mode=16182;case 16182:for(;d<32;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}n.head&&(n.head.time=c),512&n.flags&&4&n.wrap&&(I[0]=255&c,I[1]=c>>>8&255,I[2]=c>>>16&255,I[3]=c>>>24&255,n.check=J(n.check,I,4,0)),c=0,d=0,n.mode=16183;case 16183:for(;d<16;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&4&n.wrap&&(I[0]=255&c,I[1]=c>>>8&255,n.check=J(n.check,I,2,0)),c=0,d=0,n.mode=16184;case 16184:if(1024&n.flags){for(;d<16;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&4&n.wrap&&(I[0]=255&c,I[1]=c>>>8&255,n.check=J(n.check,I,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((p=n.length)>l&&(p=l),p&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),S)),512&n.flags&&4&n.wrap&&(n.check=J(n.check,r,p,a)),l-=p,a+=p,n.length-=p),n.length))break t;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===l)break t;p=0;do S=r[a+p++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S));while(S&&p<l);if(512&n.flags&&4&n.wrap&&(n.check=J(n.check,r,p,a)),l-=p,a+=p,S)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===l)break t;p=0;do S=r[a+p++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S));while(S&&p<l);if(512&n.flags&&4&n.wrap&&(n.check=J(n.check,r,p,a)),l-=p,a+=p,S)break t}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;d<16;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(4&n.wrap&&c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=16209;break}c=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;d<32;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}e.adler=n.check=ty(c),c=0,d=0,n.mode=16190;case 16190:if(0===n.havedict)return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=l,n.hold=c,n.bits=d,th;e.adler=n.check=1,n.mode=16191;case 16191:if(t===tu||t===tc)break t;case 16192:if(n.last){c>>>=7&d,d-=7&d,n.mode=16206;break}for(;d<3;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}switch(n.last=1&c,d-=1,3&(c>>>=1)){case 0:n.mode=16193;break;case 1:if(tT(n),n.mode=16199,t===tc){c>>>=2,d-=2;break t}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=16209}c>>>=2,d-=2;break;case 16193:for(c>>>=7&d,d-=7&d;d<32;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=16209;break}if(n.length=65535&c,c=0,d=0,n.mode=16194,t===tc)break t;case 16194:n.mode=16195;case 16195:if(p=n.length){if(p>l&&(p=l),p>u&&(p=u),0===p)break t;i.set(r.subarray(a,a+p),s),l-=p,a+=p,u-=p,s+=p,n.length-=p;break}n.mode=16191;break;case 16196:for(;d<14;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(n.nlen=(31&c)+257,d-=5,n.ndist=(31&(c>>>=5))+1,d-=5,n.ncode=(15&(c>>>=5))+4,c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=16209;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;d<3;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}n.lens[C[n.have++]]=7&c,c>>>=3,d-=3}for(;n.have<19;)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,T={bits:n.lenbits},E=to(0,n.lens,0,19,n.lencode,0,n.work,T),n.lenbits=T.bits,E){e.msg="invalid code lengths set",n.mode=16209;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;_=(O=n.lencode[c&(1<<n.lenbits)-1])>>>24,y=O>>>16&255,b=65535&O,!(_<=d);){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(b<16)c>>>=_,d-=_,n.lens[n.have++]=b;else{if(16===b){for(A=_+2;d<A;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(c>>>=_,d-=_,0===n.have){e.msg="invalid bit length repeat",n.mode=16209;break}S=n.lens[n.have-1],p=3+(3&c),c>>>=2,d-=2}else if(17===b){for(A=_+3;d<A;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}c>>>=_,d-=_,S=0,p=3+(7&c),c>>>=3,d-=3}else{for(A=_+7;d<A;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}c>>>=_,d-=_,S=0,p=11+(127&c),c>>>=7,d-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=16209;break}for(;p--;)n.lens[n.have++]=S}}if(16209===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=16209;break}if(n.lenbits=9,T={bits:n.lenbits},E=to(1,n.lens,0,n.nlen,n.lencode,0,n.work,T),n.lenbits=T.bits,E){e.msg="invalid literal/lengths set",n.mode=16209;break}if(n.distbits=6,n.distcode=n.distdyn,T={bits:n.distbits},E=to(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,T),n.distbits=T.bits,E){e.msg="invalid distances set",n.mode=16209;break}if(n.mode=16199,t===tc)break t;case 16199:n.mode=16200;case 16200:if(l>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=l,n.hold=c,n.bits=d,tn(e,h),s=e.next_out,i=e.output,u=e.avail_out,a=e.next_in,r=e.input,l=e.avail_in,c=n.hold,d=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;_=(O=n.lencode[c&(1<<n.lenbits)-1])>>>24,y=O>>>16&255,b=65535&O,!(_<=d);){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(y&&(240&y)==0){for(w=_,k=y,x=b;_=(O=n.lencode[x+((c&(1<<w+k)-1)>>w)])>>>24,y=O>>>16&255,b=65535&O,!(w+_<=d);){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}c>>>=w,d-=w,n.back+=w}if(c>>>=_,d-=_,n.back+=_,n.length=b,0===y){n.mode=16205;break}if(32&y){n.back=-1,n.mode=16191;break}if(64&y){e.msg="invalid literal/length code",n.mode=16209;break}n.extra=15&y,n.mode=16201;case 16201:if(n.extra){for(A=n.extra;d<A;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;_=(O=n.distcode[c&(1<<n.distbits)-1])>>>24,y=O>>>16&255,b=65535&O,!(_<=d);){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if((240&y)==0){for(w=_,k=y,x=b;_=(O=n.distcode[x+((c&(1<<w+k)-1)>>w)])>>>24,y=O>>>16&255,b=65535&O,!(w+_<=d);){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}c>>>=w,d-=w,n.back+=w}if(c>>>=_,d-=_,n.back+=_,64&y){e.msg="invalid distance code",n.mode=16209;break}n.offset=b,n.extra=15&y,n.mode=16203;case 16203:if(n.extra){for(A=n.extra;d<A;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=16209;break}n.mode=16204;case 16204:if(0===u)break t;if(p=h-u,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=16209;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),g=n.window}else g=i,m=s-n.offset,p=n.length;p>u&&(p=u),u-=p,n.length-=p;do i[s++]=g[m++];while(--p);0===n.length&&(n.mode=16200);break;case 16205:if(0===u)break t;i[s++]=n.length,u--,n.mode=16200;break;case 16206:if(n.wrap){for(;d<32;){if(0===l)break t;l--,c|=r[a++]<<d,d+=8}if(h-=u,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?J(n.check,i,h,s-h):q(n.check,i,h,s-h)),h=u,4&n.wrap&&(n.flags?c:ty(c))!==n.check){e.msg="incorrect data check",n.mode=16209;break}c=0,d=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;d<32;){if(0===l)break t;l--,c+=r[a++]<<d,d+=8}if(4&n.wrap&&c!==(0xffffffff&n.total)){e.msg="incorrect length check",n.mode=16209;break}c=0,d=0}n.mode=16208;case 16208:E=tf;break t;case 16209:E=tv;break t;case 16210:return tm;default:return tp}return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=l,n.hold=c,n.bits=d,(n.wsize||h!==e.avail_out&&n.mode<16209&&(n.mode<16206||t!==tl))&&tA(e,e.output,e.next_out,h-e.avail_out),f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?J(n.check,i,h,e.next_out-h):q(n.check,i,h,e.next_out-h)),e.data_type=n.bits+64*!!n.last+128*(16191===n.mode)+256*(16199===n.mode||16194===n.mode),(0===f&&0===h||t===tl)&&E===td&&(E=tg),E},inflateEnd:e=>{if(tw(e))return tp;let t=e.state;return t.window&&(t.window=null),e.state=null,td},inflateGetHeader:(e,t)=>{if(tw(e))return tp;let n=e.state;return(2&n.wrap)==0?tp:(n.head=t,t.done=!1,td)},inflateSetDictionary:(e,t)=>{let n,r,i=t.length;return tw(e)||0!==(n=e.state).wrap&&16190!==n.mode?tp:16190===n.mode&&q(1,t,i,0)!==n.check?tv:tA(e,t,i,i)?(n.mode=16210,tm):(n.havedict=1,td)}},tI=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};let tC=Object.prototype.toString,{Z_NO_FLUSH:tU,Z_FINISH:tD,Z_OK:tR,Z_STREAM_END:tL,Z_NEED_DICT:tB,Z_STREAM_ERROR:tP,Z_DATA_ERROR:tM,Z_MEM_ERROR:tF}=$;function tN(e){this.options=eY.assign({chunkSize:65536,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eQ,this.strm.avail_out=0;let n=tO.inflateInit2(this.strm,t.windowBits);if(n!==tR||(this.header=new tI,tO.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=eX.string2buf(t.dictionary):"[object ArrayBuffer]"===tC.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(n=tO.inflateSetDictionary(this.strm,t.dictionary))!==tR))throw Error(K[n])}function tj(e,t){let n=new tN(t);if(n.push(e),n.err)throw n.msg||K[n.err];return n.result}tN.prototype.push=function(e,t){let n,r,i,a=this.strm,s=this.options.chunkSize,l=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?tD:tU,"[object ArrayBuffer]"===tC.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(s),a.next_out=0,a.avail_out=s),(n=tO.inflate(a,r))===tB&&l&&((n=tO.inflateSetDictionary(a,l))===tR?n=tO.inflate(a,r):n===tM&&(n=tB));a.avail_in>0&&n===tL&&a.state.wrap>0&&0!==e[a.next_in];)tO.inflateReset(a),n=tO.inflate(a,r);switch(n){case tP:case tM:case tB:case tF:return this.onEnd(n),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||n===tL))if("string"===this.options.to){let e=eX.utf8border(a.output,a.next_out),t=a.next_out-e,n=eX.buf2string(a.output,e);a.next_out=t,a.avail_out=s-t,t&&a.output.set(a.output.subarray(e,e+t),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(n!==tR||0!==i){if(n===tL)return n=tO.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},tN.prototype.onData=function(e){this.chunks.push(e)},tN.prototype.onEnd=function(e){e===tR&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=eY.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};let{Deflate:tz,deflate:tH,deflateRaw:tG,gzip:tV}={Deflate:te,deflate:tt,deflateRaw:function(e,t){return(t=t||{}).raw=!0,tt(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,tt(e,t)},constants:$},{Inflate:tW,inflate:tZ,inflateRaw:tq,ungzip:tY}={Inflate:tN,inflate:tj,inflateRaw:function(e,t){return(t=t||{}).raw=!0,tj(e,t)},ungzip:tj,constants:$};var tJ=tY,tK={Deflate:tz,deflate:tH,deflateRaw:tG,gzip:tV,Inflate:tW,inflate:tZ,inflateRaw:tq,ungzip:tJ,constants:$}},938:function(e,t,n){"use strict";n.d(t,{PO:()=>X,ao:()=>ex,p7:()=>eD,tv:()=>eR,yj:()=>eL});var r,i,a,s,l,u,c=n(595);let d="undefined"!=typeof document;function f(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}let h=Object.assign;function p(e,t){let n={};for(let r in t){let i=t[r];n[r]=g(i)?i.map(e):e(i)}return n}let m=()=>{},g=Array.isArray,_=/#/g,y=/&/g,b=/\//g,w=/=/g,k=/\?/g,x=/\+/g,S=/%5B/g,E=/%5D/g,T=/%5E/g,A=/%60/g,O=/%7B/g,I=/%7C/g,C=/%7D/g,U=/%20/g;function D(e){return encodeURI(""+e).replace(I,"|").replace(S,"[").replace(E,"]")}function R(e){return D(e).replace(x,"%2B").replace(U,"+").replace(_,"%23").replace(y,"%26").replace(A,"`").replace(O,"{").replace(C,"}").replace(T,"^")}function L(e){return null==e?"":D(e).replace(_,"%23").replace(k,"%3F").replace(b,"%2F")}function B(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}let P=/\/$/,M=e=>e.replace(P,"");function F(e,t,n="/"){let r,i={},a="",s="",l=t.indexOf("#"),u=t.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(r=t.slice(0,u),i=e(a=t.slice(u+1,l>-1?l:t.length))),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),{fullPath:(r=function(e,t){let n,r;if(e.startsWith("/"))return e;if(!e)return t;let i=t.split("/"),a=e.split("/"),s=a[a.length-1];(".."===s||"."===s)&&a.push("");let l=i.length-1;for(n=0;n<a.length;n++)if("."!==(r=a[n]))if(".."===r)l>1&&l--;else break;return i.slice(0,l).join("/")+"/"+a.slice(n).join("/")}(null!=r?r:t,n))+(a&&"?")+a+s,path:r,query:i,hash:B(s)}}function N(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function j(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function z(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){var n,r;if(n=e[i],r=t[i],g(n)?!H(n,r):g(r)?!H(r,n):n!==r)return!1}return!0}function H(e,t){return g(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}let G={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};(r=s||(s={})).pop="pop",r.push="push",(i=l||(l={})).back="back",i.forward="forward",i.unknown="";let V=/^[^#]+#/;function W(e,t){return e.replace(V,"#")+t}let Z=()=>({left:window.scrollX,top:window.scrollY});function q(e,t){return(history.state?history.state.position-t:-1)+e}let Y=new Map,J=()=>location.protocol+"//"+location.host;function K(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),N(n,"")}return N(n,e)+r+i}function $(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Z():null}}function X(e){let t=function(e){let{history:t,location:n}=window,r={value:K(e,n)},i={value:t.state};function a(r,a,s){let l=e.indexOf("#"),u=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+r:J()+e+r;try{t[s?"replaceState":"pushState"](a,"",u),i.value=a}catch(e){console.error(e),n[s?"replace":"assign"](u)}}return i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:function(e,n){let s=h({},i.value,t.state,{forward:e,scroll:Z()});a(s.current,s,!0);let l=h({},$(r.value,e,null),{position:s.position+1},n);a(e,l,!1),r.value=e},replace:function(e,n){let s=h({},t.state,$(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,s,!0),r.value=e}}}(e=function(e){if(!e)if(d){let t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),M(e)}(e)),n=function(e,t,n,r){let i=[],a=[],u=null,c=({state:a})=>{let c=K(e,location),d=n.value,f=t.value,h=0;if(a){if(n.value=c,t.value=a,u&&u===d){u=null;return}h=f?a.position-f.position:0}else r(c);i.forEach(e=>{e(n.value,d,{delta:h,type:s.pop,direction:h?h>0?l.forward:l.back:l.unknown})})};function d(){let{history:e}=window;e.state&&e.replaceState(h({},e.state,{scroll:Z()}),"")}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:function(){u=n.value},listen:function(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t},destroy:function(){for(let e of a)e();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}}}(e,t.state,t.location,t.replace),r=h({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:W.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Q(e){return"string"==typeof e||"symbol"==typeof e}let ee=Symbol("");function et(e,t){return h(Error(),{type:e,[ee]:!0},t)}function en(e,t){return e instanceof Error&&ee in e&&(null==t||!!(e.type&t))}(a=u||(u={}))[a.aborted=4]="aborted",a[a.cancelled=8]="cancelled",a[a.duplicated=16]="duplicated";let er="[^/]+?",ei={sensitive:!1,strict:!1,start:!0,end:!0},ea=/[.+*?^${}()[\]/\\]/g;function es(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=function(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}(r[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-r.length)){if(eo(r))return 1;if(eo(i))return -1}return i.length-r.length}function eo(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}let el={type:0,value:""},eu=/[a-zA-Z0-9_]/;function ec(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ed(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:function(e){let t={},n=e.props||!1;if("component"in e)t.default=n;else for(let r in e.components)t[r]="object"==typeof n?n[r]:n;return t}(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ef(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eh(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}function ep({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ev(e){let t={};if(""===e||"?"===e)return t;let n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<n.length;++e){let r=n[e].replace(x," "),i=r.indexOf("="),a=B(i<0?r:r.slice(0,i)),s=i<0?null:B(r.slice(i+1));if(a in t){let e=t[a];g(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function em(e){let t="";for(let n in e){let r=e[n];if(n=R(n).replace(w,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(g(r)?r.map(e=>e&&R(e)):[r&&R(r)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}let eg=Symbol(""),e_=Symbol(""),ey=Symbol(""),eb=Symbol(""),ew=Symbol("");function ek(){let e=[];return{add:function(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function ex(e){let t=(0,c.f3)(eg,{}).value;if(t){var n="updateGuards";let r=()=>{t[n].delete(e)};(0,c.SK)(r),(0,c.se)(r),(0,c.dl)(()=>{t[n].add(e)}),t[n].add(e)}}function eS(e,t,n,r,i,a=e=>e()){let s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,u)=>{let c=e=>{if(!1===e)u(et(4,{from:n,to:t}));else if(e instanceof Error)u(e);else"string"==typeof e||e&&"object"==typeof e?u(et(2,{from:t,to:e})):(s&&r.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),l())},d=Promise.resolve(a(()=>e.call(r&&r.instances[i],t,n,c)));e.length<3&&(d=d.then(c)),d.catch(e=>u(e))})}function eE(e,t,n,r,i=e=>e()){let a=[];for(let s of e)for(let e in s.components){let l=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(f(l)){let u=(l.__vccOpts||l)[t];u&&a.push(eS(u,n,r,s,e,i))}else{let u=l();a.push(()=>u.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${s.path}"`);let l=a.__esModule||"Module"===a[Symbol.toStringTag]||a.default&&f(a.default)?a.default:a;s.mods[e]=a,s.components[e]=l;let u=(l.__vccOpts||l)[t];return u&&eS(u,n,r,s,e,i)()}))}}return a}function eT(e){let t=(0,c.f3)(ey),n=(0,c.f3)(eb),r=(0,c.Fl)(()=>{let n=(0,c.SU)(e.to);return t.resolve(n)}),i=(0,c.Fl)(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return -1;let s=a.findIndex(j.bind(null,i));if(s>-1)return s;let l=eO(e[t-2]);return t>1&&eO(i)===l&&a[a.length-1].path!==l?a.findIndex(j.bind(null,e[t-2])):s}),a=(0,c.Fl)(()=>i.value>-1&&function(e,t){for(let n in t){let r=t[n],i=e[n];if("string"==typeof r){if(r!==i)return!1}else if(!g(i)||i.length!==r.length||r.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,r.value.params)),s=(0,c.Fl)(()=>i.value>-1&&i.value===n.matched.length-1&&z(n.params,r.value.params));return{route:r,href:(0,c.Fl)(()=>r.value.href),isActive:a,isExactActive:s,navigate:function(n={}){if(function(e){if(!e.metaKey&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)){let n=t[(0,c.SU)(e.replace)?"replace":"push"]((0,c.SU)(e.to)).catch(m);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}}}let eA=(0,c.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:eT,setup(e,{slots:t}){let n=(0,c.qj)(eT(e)),{options:r}=(0,c.f3)(ey),i=(0,c.Fl)(()=>({[eI(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[eI(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{var r;let a=t.default&&(1===(r=t.default(n)).length?r[0]:r);return e.custom?a:(0,c.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}});function eO(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}let eI=(e,t,n)=>null!=e?e:null!=t?t:n,eC=(0,c.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=(0,c.f3)(ew),i=(0,c.Fl)(()=>e.route||r.value),a=(0,c.f3)(e_,0),s=(0,c.Fl)(()=>{let e,t=(0,c.SU)(a),{matched:n}=i.value;for(;(e=n[t])&&!e.components;)t++;return t}),l=(0,c.Fl)(()=>i.value.matched[s.value]);(0,c.JJ)(e_,(0,c.Fl)(()=>s.value+1)),(0,c.JJ)(eg,l),(0,c.JJ)(ew,i);let u=(0,c.iH)();return(0,c.YP)(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&j(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{let r=i.value,a=e.name,s=l.value,d=s&&s.components[a];if(!d)return eU(n.default,{Component:d,route:r});let f=s.props[a],p=f?!0===f?r.params:"function"==typeof f?f(r):f:null,m=(0,c.h)(d,h({},p,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:u}));return eU(n.default,{Component:m,route:r})||m}}});function eU(e,t){if(!e)return null;let n=e(t);return 1===n.length?n[0]:n}function eD(e){let t,n,r,i=function(e,t){let n=[],r=new Map;function i(e,s,l){let u,c,d=!l,f=ed(e);f.aliasOf=l&&l.record;let p=eh(t,e),_=[f];if("alias"in e)for(let t of"string"==typeof e.alias?[e.alias]:e.alias)_.push(ed(h({},f,{components:l?l.record.components:f.components,path:t,aliasOf:l?l.record:f})));for(let t of _){let{path:m}=t;if(s&&"/"!==m[0]){let e=s.record.path,n="/"===e[e.length-1]?"":"/";t.path=s.record.path+(m&&n+m)}if(u=function(e,t,n){let r=function(e,t){let n=h({},ei,t),r=[],i=n.start?"^":"",a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+="/");for(let r=0;r<t.length;r++){let s=t[r],l=40+.25*!!n.sensitive;if(0===s.type)r||(i+="/"),i+=s.value.replace(ea,"\\$&"),l+=40;else if(1===s.type){let{value:e,repeatable:n,optional:u,regexp:c}=s;a.push({name:e,repeatable:n,optional:u});let d=c||er;if(d!==er){l+=10;try{RegExp(`(${d})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${d}): `+t.message)}}let f=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;r||(f=u&&t.length<2?`(?:/${f})`:"/"+f),u&&(f+="?"),i+=f,l+=20,u&&(l+=-8),n&&(l+=-20),".*"===d&&(l+=-50)}e.push(l)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");let s=new RegExp(i,n.sensitive?"":"i");return{re:s,score:r,keys:a,parse:function(e){let t=e.match(s),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||"",i=a[e-1];n[i.name]=r&&i.repeatable?r.split("/"):r}return n},stringify:function(t){let n="",r=!1;for(let i of e)for(let e of(r&&n.endsWith("/")||(n+="/"),r=!1,i))if(0===e.type)n+=e.value;else if(1===e.type){let{value:a,repeatable:s,optional:l}=e,u=a in t?t[a]:"";if(g(u)&&!s)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let c=g(u)?u.join("/"):u;if(!c)if(l)i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=c}return n||"/"}}}(function(e){let t,n;if(!e)return[[]];if("/"===e)return[[el]];if(!e.startsWith("/"))throw Error(`Invalid path "${e}"`);function r(e){throw Error(`ERR (${i})/"${c}": ${e}`)}let i=0,a=0,s=[];function l(){t&&s.push(t),t=[]}let u=0,c="",d="";function f(){c&&(0===i?t.push({type:0,value:c}):1===i||2===i||3===i?(t.length>1&&("*"===n||"+"===n)&&r(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),t.push({type:1,value:c,regexp:d,repeatable:"*"===n||"+"===n,optional:"*"===n||"?"===n})):r("Invalid state to consume buffer"),c="")}for(;u<e.length;){if("\\"===(n=e[u++])&&2!==i){a=i,i=4;continue}switch(i){case 0:"/"===n?(c&&f(),l()):":"===n?(f(),i=1):c+=n;break;case 4:c+=n,i=a;break;case 1:"("===n?i=2:eu.test(n)?c+=n:(f(),i=0,"*"!==n&&"?"!==n&&"+"!==n&&u--);break;case 2:")"===n?"\\"==d[d.length-1]?d=d.slice(0,-1)+n:i=3:d+=n;break;case 3:f(),i=0,"*"!==n&&"?"!==n&&"+"!==n&&u--,d="";break;default:r("Unknown state")}}return 2===i&&r(`Unfinished custom RegExp for param "${c}"`),f(),l(),s}(e.path),n),i=h(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}(t,s,p),l?l.alias.push(u):((c=c||u)!==u&&c.alias.push(u),d&&e.name&&!ef(u)&&a(e.name)),ep(u)&&function(e){let t=function(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;0>es(e,t[i])?r=i:n=i+1}let i=function(e){let t=e;for(;t=t.parent;)if(ep(t)&&0===es(e,t))return t}(e);return i&&(r=t.lastIndexOf(i,r-1)),r}(e,n);n.splice(t,0,e),e.record.name&&!ef(e)&&r.set(e.record.name,e)}(u),f.children){let e=f.children;for(let t=0;t<e.length;t++)i(e[t],u,l&&l.children[t])}l=l||u}return c?()=>{a(c)}:m}function a(e){if(Q(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}return t=eh({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,a,s,l={};if("name"in e&&e.name){if(!(i=r.get(e.name)))throw et(1,{location:e});s=i.record.name,l=h(ec(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&ec(e.params,i.keys.map(e=>e.name))),a=i.stringify(l)}else if(null!=e.path)a=e.path,(i=n.find(e=>e.re.test(a)))&&(l=i.parse(a),s=i.record.name);else{if(!(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path))))throw et(1,{location:e,currentLocation:t});s=i.record.name,l=h({},t.params,e.params),a=i.stringify(l)}let u=[],c=i;for(;c;)u.unshift(c.record),c=c.parent;return{name:s,path:a,params:l,matched:u,meta:u.reduce((e,t)=>h(e,t.meta),{})}},removeRoute:a,clearRoutes:function(){n.length=0,r.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}(e.routes,e),a=e.parseQuery||ev,l=e.stringifyQuery||em,u=e.history,f=ek(),_=ek(),y=ek(),b=(0,c.XI)(G),w=G;d&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let k=p.bind(null,e=>""+e),x=p.bind(null,L),S=p.bind(null,B);function E(e,t){let n;if(t=h({},t||b.value),"string"==typeof e){let n=F(a,e,t.path),r=i.resolve({path:n.path},t),s=u.createHref(n.fullPath);return h(n,r,{params:S(r.params),hash:B(n.hash),redirectedFrom:void 0,href:s})}if(null!=e.path)n=h({},e,{path:F(a,e.path,t.path).path});else{let r=h({},e.params);for(let e in r)null==r[e]&&delete r[e];n=h({},e,{params:x(r)}),t.params=x(t.params)}let r=i.resolve(n,t),s=e.hash||"";r.params=k(S(r.params));let c=function(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(l,h({},e,{hash:D(s).replace(O,"{").replace(C,"}").replace(T,"^"),path:r.path})),d=u.createHref(c);return h({fullPath:c,hash:s,query:l===em?function(e){let t={};for(let n in e){let r=e[n];void 0!==r&&(t[n]=g(r)?r.map(e=>null==e?null:""+e):null==r?r:""+r)}return t}(e.query):e.query||{}},r,{redirectedFrom:void 0,href:d})}function A(e){return"string"==typeof e?F(a,e,b.value.path):h({},e)}function I(e,t){if(w!==e)return et(8,{from:t,to:e})}function U(e){let t=e.matched[e.matched.length-1];if(t&&t.redirect){let{redirect:n}=t,r="function"==typeof n?n(e):n;return"string"==typeof r&&((r=r.includes("?")||r.includes("#")?r=A(r):{path:r}).params={}),h({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function R(e,t){let n,r=w=E(e),i=b.value,a=e.state,s=e.force,u=!0===e.replace,c=U(r);return c?R(h(A(c),{state:"object"==typeof c?h({},a,c.state):a,force:s,replace:u}),t||r):(r.redirectedFrom=t,!s&&function(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&j(t.matched[r],n.matched[i])&&z(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(l,i,r)&&(n=et(16,{to:r,from:i}),X(i,i,!0,!1)),(n?Promise.resolve(n):N(r,i)).catch(e=>en(e)?en(e,2)?e:$(e):K(e,r,i)).then(e=>{if(e){if(en(e,2))return R(h({replace:u},A(e.to),{state:"object"==typeof e.to?h({},a,e.to.state):a,force:s}),t||r)}else e=V(r,i,!0,u,a);return H(r,i,e),e}))}function P(e,t){let n=I(e,t);return n?Promise.reject(n):Promise.resolve()}function M(e){let t=eo.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function N(e,t){let n,[r,i,a]=function(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){let a=t.matched[s];a&&(e.matched.find(e=>j(e,a))?r.push(a):n.push(a));let l=e.matched[s];l&&!t.matched.find(e=>j(e,l))&&i.push(l)}return[n,r,i]}(e,t);for(let i of(n=eE(r.reverse(),"beforeRouteLeave",e,t),r))i.leaveGuards.forEach(r=>{n.push(eS(r,e,t))});let s=P.bind(null,e,t);return n.push(s),e_(n).then(()=>{for(let r of(n=[],f.list()))n.push(eS(r,e,t));return n.push(s),e_(n)}).then(()=>{for(let r of(n=eE(i,"beforeRouteUpdate",e,t),i))r.updateGuards.forEach(r=>{n.push(eS(r,e,t))});return n.push(s),e_(n)}).then(()=>{for(let r of(n=[],a))if(r.beforeEnter)if(g(r.beforeEnter))for(let i of r.beforeEnter)n.push(eS(i,e,t));else n.push(eS(r.beforeEnter,e,t));return n.push(s),e_(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),(n=eE(a,"beforeRouteEnter",e,t,M)).push(s),e_(n))).then(()=>{for(let r of(n=[],_.list()))n.push(eS(r,e,t));return n.push(s),e_(n)}).catch(e=>en(e,8)?e:Promise.reject(e))}function H(e,t,n){y.list().forEach(r=>M(()=>r(e,t,n)))}function V(e,t,n,r,i){let a=I(e,t);if(a)return a;let s=t===G,l=d?history.state:{};n&&(r||s?u.replace(e.fullPath,h({scroll:s&&l&&l.scroll},i)):u.push(e.fullPath,i)),b.value=e,X(e,t,n,s),$()}let W=ek(),J=ek();function K(e,t,n){$(e);let r=J.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function $(e){return n||(n=!e,t||(t=u.listen((e,t,n)=>{var r,i;if(!eg.listening)return;let a=E(e),l=U(a);if(l)return void R(h(l,{replace:!0,force:!0}),a).catch(m);w=a;let c=b.value;d&&(r=q(c.fullPath,n.delta),i=Z(),Y.set(r,i)),N(a,c).catch(e=>en(e,12)?e:en(e,2)?(R(h(A(e.to),{force:!0}),a).then(e=>{en(e,20)&&!n.delta&&n.type===s.pop&&u.go(-1,!1)}).catch(m),Promise.reject()):(n.delta&&u.go(-n.delta,!1),K(e,a,c))).then(e=>{(e=e||V(a,c,!1))&&(n.delta&&!en(e,8)?u.go(-n.delta,!1):n.type===s.pop&&en(e,20)&&u.go(-1,!1)),H(a,c,e)}).catch(m)})),W.list().forEach(([t,n])=>e?n(e):t()),W.reset()),e}function X(t,n,r,i){let{scrollBehavior:a}=e;if(!d||!a)return Promise.resolve();let s=!r&&function(e){let t=Y.get(e);return Y.delete(e),t}(q(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return(0,c.Y3)().then(()=>a(t,n,s)).then(e=>e&&function(e){let t;if("el"in e){let n=e.el,r="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e)).catch(e=>K(e,t,n))}let ee=e=>u.go(e),eo=new Set,eg={currentRoute:b,listening:!0,addRoute:function(e,t){let n,r;return Q(e)?(n=i.getRecordMatcher(e),r=t):r=e,i.addRoute(r,n)},removeRoute:function(e){let t=i.getRecordMatcher(e);t&&i.removeRoute(t)},clearRoutes:i.clearRoutes,hasRoute:function(e){return!!i.getRecordMatcher(e)},getRoutes:function(){return i.getRoutes().map(e=>e.record)},resolve:E,options:e,push:function(e){return R(e)},replace:function(e){return R(h(A(e),{replace:!0}))},go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:f.add,beforeResolve:_.add,afterEach:y.add,onError:J.add,isReady:function(){return n&&b.value!==G?Promise.resolve():new Promise((e,t)=>{W.add([e,t])})},install(e){e.component("RouterLink",eA),e.component("RouterView",eC),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,c.SU)(b)}),d&&!r&&b.value===G&&(r=!0,R(u.location).catch(e=>{}));let i={};for(let e in G)Object.defineProperty(i,e,{get:()=>b.value[e],enumerable:!0});e.provide(ey,this),e.provide(eb,(0,c.Um)(i)),e.provide(ew,b);let a=e.unmount;eo.add(e),e.unmount=function(){eo.delete(e),eo.size<1&&(w=G,t&&t(),t=null,b.value=G,r=!1,n=!1),a()}}};function e_(e){return e.reduce((e,t)=>e.then(()=>M(t)),Promise.resolve())}return eg}function eR(){return(0,c.f3)(ey)}function eL(e){return(0,c.f3)(eb)}},760:function(e,t,n){"use strict";n.d(t,{OO:()=>h,SG:()=>f,xg:()=>p,zp:()=>u});var r=n(194),i=n(961),a=n(547),s=n(737),l=n.n(s);let u=["https://lemonlive.deno.dev","https://lemonlive.pages.dev","https://lemonlive25.deno.dev","https://lemonlive25.pages.dev"];l()(),u.includes(origin)||window.close();let c="https://bt.muxia.fun/api/",d=(e,t)=>fetch(e,t).then(async e=>{let t=await e.text();return 200!=(t=JSON.parse((0,i.decompressFromBase64)(t))).code?(a.Am.error(t.msg),Promise.reject(t.msg)):t.data},e=>{a.Am.error("请求异常!")}),f=async(e,t,n)=>d(`${c}${e}/${t}${n?"?"+new URLSearchParams(n).toString():""}`),h=async e=>{let t=Object.keys(e.follows);if(!t.length)return Promise.resolve(!1);"douyin"==e.id?(await (0,a.Ys)(t,4,e=>f("douyin","getLiveStatus",{id:e}))).forEach((n,r)=>{let i=e.follows[t[r]],a=n[t[r]];i.status=a.status,a.avatar&&(i.avatar=a.avatar),a.title&&(i.title=a.title),a.cover&&(i.cover=a.cover),a.nickname&&(i.nickname=a.nickname),a.category&&(i.category=a.category),a.cid&&(i.cid=a.cid),a.online&&(i.online=a.online)}):await f(e.id,"getLiveStatus",{id:t.join(",")}).then(t=>Object.keys(t).forEach(n=>{let r=e.follows[n],i=t[n];r.status=i.status,i.avatar&&(r.avatar=i.avatar),i.title&&(r.title=i.title),i.cover&&(r.cover=i.cover),i.nickname&&(r.nickname=i.nickname),i.category&&(r.category=i.category),i.cid&&(r.cid=i.cid),i.online&&(r.online=i.online)})),(0,a.LS)("follows-"+e.id,e.follows)},p=(e,t)=>d(`${c}sync/${e}`,{body:JSON.stringify(t),method:"POST",headers:{token:r.bh.token||""}})},244:function(e,t,n){"use strict";n.d(t,{Aw:()=>s,HO:()=>m,R3:()=>h,SG:()=>a.SG,Xx:()=>c,Z_:()=>f,kS:()=>l,mc:()=>u,r2:()=>p,zp:()=>a.zp});var r=n(547),i=n(194),a=n(760);async function s(e,t){let n=e.categories;for(let r of(n.value.length||(n.value=await (0,a.SG)(e.id,"getCategories")),n.value))for(let e of r.list)if(e.cid==t)return e;return null}let l=e=>(0,a.xg)("logout",{token:e}).finally(()=>{if(e==i.bh.token){i.bh.user={username:"",token:[]},i.bh.token="",(0,r.LS)("login-info",i.bh);return}let t=i.bh.user.token.findIndex(t=>t.token==e);-1!=t&&(i.bh.user.token.splice(t,1),(0,r.LS)("login-info",i.bh))}),u=e=>(0,a.xg)("reset",e).then(e=>{i.bh.user=e.user,i.bh.token=e.token,(0,r.LS)("login-info",i.bh)}),c=e=>(0,a.xg)("sign",e).then(e=>{i.bh.user=e.user,i.bh.token=e.token,(0,r.LS)("login-info",i.bh),f(!0)}),d=async()=>{if(!1==i.bg.value)return;let e=await (0,a.xg)("pull");if(!e)return;let t=[[],[],[],[]];(0,r.kD)(e,e=>{let n=i.sE[e.site_id],r=i.tc[n].follows;if(0==e.status)return void delete i.tc[n].follows[e.room_id];if(t[n].push(e.room_id),r[e.room_id]){if(r[e.room_id].id)return;r[e.room_id].id=e.id;return}r[e.room_id]={id:e.id,sitename:i.wJ[e.site_id],roomId:e.room_id,siteId:e.site_id,status:!1,avatar:"",nickname:e.nickname,title:"",online:"0",cover:"",category:""}});let n=[];if(i.tc.forEach((e,i)=>{(0,r.LS)("follows-"+e.id,e.follows),(0,r.kD)(Object.keys(e.follows),r=>{-1==t[i].findIndex(e=>e==r)&&n.push({site_id:e.follows[r].siteId,room_id:e.follows[r].roomId,nickname:e.follows[r].nickname})})}),i.AO.value=(0,r.jP)(),0==n.length)return;let s=await (0,a.xg)("push",{follows:n});s&&(0,r.kD)(s,e=>{let t=i.sE[e.site_id];i.tc[t].follows[e.room_id].id=e.id})},f=e=>{(e||!i.AO.value||new Date(i.AO.value).getMilliseconds()+36e5<Date.now())&&d().then(()=>(i.AO.value=(0,r.jP)(),localStorage.setItem("last-sync",i.AO.value),e&&r.Am.success("同步成功"))).finally(()=>i.cW.value=!1)};f();let h=e=>{let t=i.tc[i.sE[e.siteId]].follows;t[e.roomId]={sitename:e.sitename,roomId:e.roomId,siteId:e.siteId,status:e.status,avatar:e.avatar,nickname:e.nickname,title:e.title,online:e.online,cover:e.cover,category:e.category};let n="follows-"+e.siteId;return i.bg.value&&(0,a.xg)("add",{site_id:e.siteId,room_id:e.roomId,nickname:e.nickname}).then(i=>{t[e.roomId].id=i.id,(0,r.LS)(n,t),r.Am.success("添加云端关注成功")}),(0,r.LS)(n,t),r.Am.success("添加本地关注成功"),!0},p=e=>{let t=i.tc[i.sE[e.siteId]].follows,n=t[e.roomId];e.id=n.id,e.avatar&&(n.avatar=e.avatar),e.title&&(n.title=e.title),e.cover&&(n.cover=e.cover),e.nickname&&(n.nickname=e.nickname),e.category&&(n.category=e.category),e.cid&&(n.cid=e.cid),e.online&&(n.online=e.online);let a="follows-"+e.siteId;return(0,r.LS)(a,t),e.id},m=e=>{let t=i.tc[i.sE[e.siteId]].follows,n="follows-"+e.siteId;return delete t[e.roomId],(0,r.LS)(n,t),r.Am.success("取消本地关注成功"),e.id&&i.bg.value&&(0,a.xg)("remove",{id:e.id}).then(()=>r.Am.success("取消云端关注成功")),!1}},220:function(e,t,n){"use strict";n.d(t,{X:()=>g}),n(595);var r=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?u(e):c(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=d(e),r=8*e.length,f=0x67452301,p=-0x10325477,m=-0x67452302,g=0x10325476,_=0;_<n.length;_++)n[_]=(n[_]<<8|n[_]>>>24)&0xff00ff|(n[_]<<24|n[_]>>>8)&0xff00ff00;n[r>>>5]|=128<<r%32,n[(r+64>>>9<<4)+14]=r;for(var _=0;_<n.length;_+=16){var y=f,b=p,w=m,k=g;f=i(f,p,m,g,n[_+0],7,-0x28955b88),g=i(g,f,p,m,n[_+1],12,-0x173848aa),m=i(m,g,f,p,n[_+2],17,0x242070db),p=i(p,m,g,f,n[_+3],22,-0x3e423112),f=i(f,p,m,g,n[_+4],7,-0xa83f051),g=i(g,f,p,m,n[_+5],12,0x4787c62a),m=i(m,g,f,p,n[_+6],17,-0x57cfb9ed),p=i(p,m,g,f,n[_+7],22,-0x2b96aff),f=i(f,p,m,g,n[_+8],7,0x698098d8),g=i(g,f,p,m,n[_+9],12,-0x74bb0851),m=i(m,g,f,p,n[_+10],17,-42063),p=i(p,m,g,f,n[_+11],22,-0x76a32842),f=i(f,p,m,g,n[_+12],7,0x6b901122),g=i(g,f,p,m,n[_+13],12,-0x2678e6d),m=i(m,g,f,p,n[_+14],17,-0x5986bc72),p=i(p,m,g,f,n[_+15],22,0x49b40821),f=a(f,p,m,g,n[_+1],5,-0x9e1da9e),g=a(g,f,p,m,n[_+6],9,-0x3fbf4cc0),m=a(m,g,f,p,n[_+11],14,0x265e5a51),p=a(p,m,g,f,n[_+0],20,-0x16493856),f=a(f,p,m,g,n[_+5],5,-0x29d0efa3),g=a(g,f,p,m,n[_+10],9,0x2441453),m=a(m,g,f,p,n[_+15],14,-0x275e197f),p=a(p,m,g,f,n[_+4],20,-0x182c0438),f=a(f,p,m,g,n[_+9],5,0x21e1cde6),g=a(g,f,p,m,n[_+14],9,-0x3cc8f82a),m=a(m,g,f,p,n[_+3],14,-0xb2af279),p=a(p,m,g,f,n[_+8],20,0x455a14ed),f=a(f,p,m,g,n[_+13],5,-0x561c16fb),g=a(g,f,p,m,n[_+2],9,-0x3105c08),m=a(m,g,f,p,n[_+7],14,0x676f02d9),p=a(p,m,g,f,n[_+12],20,-0x72d5b376),f=s(f,p,m,g,n[_+5],4,-378558),g=s(g,f,p,m,n[_+8],11,-0x788e097f),m=s(m,g,f,p,n[_+11],16,0x6d9d6122),p=s(p,m,g,f,n[_+14],23,-0x21ac7f4),f=s(f,p,m,g,n[_+1],4,-0x5b4115bc),g=s(g,f,p,m,n[_+4],11,0x4bdecfa9),m=s(m,g,f,p,n[_+7],16,-0x944b4a0),p=s(p,m,g,f,n[_+10],23,-0x41404390),f=s(f,p,m,g,n[_+13],4,0x289b7ec6),g=s(g,f,p,m,n[_+0],11,-0x155ed806),m=s(m,g,f,p,n[_+3],16,-0x2b10cf7b),p=s(p,m,g,f,n[_+6],23,0x4881d05),f=s(f,p,m,g,n[_+9],4,-0x262b2fc7),g=s(g,f,p,m,n[_+12],11,-0x1924661b),m=s(m,g,f,p,n[_+15],16,0x1fa27cf8),p=s(p,m,g,f,n[_+2],23,-0x3b53a99b),f=l(f,p,m,g,n[_+0],6,-0xbd6ddbc),g=l(g,f,p,m,n[_+7],10,0x432aff97),m=l(m,g,f,p,n[_+14],15,-0x546bdc59),p=l(p,m,g,f,n[_+5],21,-0x36c5fc7),f=l(f,p,m,g,n[_+12],6,0x655b59c3),g=l(g,f,p,m,n[_+3],10,-0x70f3336e),m=l(m,g,f,p,n[_+10],15,-1051523),p=l(p,m,g,f,n[_+1],21,-0x7a7ba22f),f=l(f,p,m,g,n[_+8],6,0x6fa87e4f),g=l(g,f,p,m,n[_+15],10,-0x1d31920),m=l(m,g,f,p,n[_+6],15,-0x5cfebcec),p=l(p,m,g,f,n[_+13],21,0x4e0811a1),f=l(f,p,m,g,n[_+4],6,-0x8ac817e),g=l(g,f,p,m,n[_+11],10,-0x42c50dcb),m=l(m,g,f,p,n[_+2],15,0x2ad7d2bb),p=l(p,m,g,f,n[_+9],21,-0x14792c6f),f=f+y>>>0,p=p+b>>>0,m=m+w>>>0,g=g+k>>>0}return h([f,p,m,g])};let i=function(e,t,n,r,i,a,s){var l=e+(t&n|~t&r)+(i>>>0)+s;return(l<<a|l>>>32-a)+t},a=function(e,t,n,r,i,a,s){var l=e+(t&r|n&~r)+(i>>>0)+s;return(l<<a|l>>>32-a)+t},s=function(e,t,n,r,i,a,s){var l=e+(t^n^r)+(i>>>0)+s;return(l<<a|l>>>32-a)+t},l=function(e,t,n,r,i,a,s){var l=e+(n^(t|~r))+(i>>>0)+s;return(l<<a|l>>>32-a)+t},u=function(e){for(var t=new Uint8Array(e.length),n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t},c=function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},d=function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},f=function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},h=function(e){if(e.constructor==Number)return 0xff00ff&p(e,8)|0xff00ff00&p(e,24);for(var t=0;t<e.length;t++)e[t]=h(e[t]);return e},p=function(e,t){return e<<t|e>>>32-t},m=function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},g=(e,t)=>{let n=m(f(r(`,live_id=1,aid=6383,version_code=180800,webcast_sdk_version=1.0.14-beta.0,room_id=${e},sub_room_id=,sub_channel_id=,did_rule=3,user_unique_id=${t},device_platform=web,device_type=,ac=,identity=audience`.substring(1))));return window.byted_acrawler.frontierSign({"X-MS-STUB":n})["X-Bogus"]}},7:function(e,t,n){"use strict";n.d(t,{R:()=>r});let r=Symbol("tabs")},338:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(412),i=n(595);n(194);let a=(e,t)=>{let n,r=(0,i.iH)(),a=new ResizeObserver(e=>{clearTimeout(n),n=setTimeout(()=>{var e;null==(e=r.value)||e.resize()},500)});return(0,i.bv)(()=>{a.observe(e.value),t.canvas=e.value,r.value=new s(t)}),(0,i.Jd)(()=>{a.unobserve(e.value),clearTimeout(n)}),r};class s{resize(){this.canvas.width=this.canvas.getBoundingClientRect().width*window.devicePixelRatio,this.canvas.height=this.canvas.getBoundingClientRect().height*window.devicePixelRatio,this.initRows()}setOpacity(e){this.opacity=e;let t=Math.floor(2.55*e).toString(16);this.opacityStr=1==t.length?"0"+t:t}setRows(e){this.rows=e}setSpeed(e){this.speed=e}setFont(e){this.ctx.textBaseline="top",this.fontSize=e,this.font=`${e}px sans-serif`}setGap(e){this.gap=e}setColors(e){this.colors=e}clean(){this.textList=[],this.isdraw=!1}destory(){this.lines=[],this.clean()}add(e){let t=this.getLine();if(-1==t)return;let n=Math.ceil(this.ctx.measureText(e).width),r=this.canvas.width+n;this.lines[t].width=r,this.textList.push({value:e,width:n,line:t,left:this.canvas.width,color:this.colors[Math.floor(Math.random()*this.colors.length)]}),this.isdraw||(this.isdraw=!0,this.draw())}getLine(){let e=-1,t=this.lines.length;for(;++e<t;)if(this.lines[e].width==this.canvas.width)return e;return -1}initRows(){this.lines=[];let e=-1,t=this.gap+this.fontSize;for(;++e<this.rows;)this.lines.push({top:this.gap+t*e,width:this.canvas.width})}draw(){this.ctx.textBaseline="top",this.ctx.font=this.font,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let e=-1,t=this.textList.length,n=[];for(;++e<t;){let t=this.textList[e],r=t.left+t.width;if(r<=0)continue;this.ctx.fillStyle=t.color+this.opacityStr;let i=this.lines[t.line];i&&(this.ctx.fillText(t.value,t.left,this.lines[t.line].top),t.left-=this.speed,n.push(t),i.width=Math.max(r,this.canvas.width))}this.textList=n,0==n.length?this.isdraw=!1:requestAnimationFrame(this.draw.bind(this))}constructor(e){(0,r._)(this,"canvas",void 0),(0,r._)(this,"colors",void 0),(0,r._)(this,"ctx",void 0),(0,r._)(this,"isdraw",void 0),(0,r._)(this,"lines",void 0),(0,r._)(this,"textList",void 0),(0,r._)(this,"fontSize",void 0),(0,r._)(this,"font",void 0),(0,r._)(this,"rows",void 0),(0,r._)(this,"gap",void 0),(0,r._)(this,"speed",void 0),(0,r._)(this,"opacity",void 0),(0,r._)(this,"opacityStr",void 0),this.isdraw=!1,this.textList=[],this.canvas=e.canvas,this.ctx=this.canvas.getContext("2d"),this.speed=e.speed||2,this.setFont(e.fontSize||16),this.setGap(e.gap||8),this.setRows(e.rows||4),this.setOpacity(e.opacity||100),this.setColors(e.colors||["FFFFFF","#00FF80","#00FFFF","#FF00FF","#8000FF","#FF9933"]),this.resize()}}},680:function(e,t,n){"use strict";n.d(t,{Wo:()=>i,tq:()=>r}),n(595);let r=function(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}(),i=e=>r?void 0==e.touches?e:e.touches[0]||e.changedTouches[0]:e},726:function(e,t,n){"use strict";n.d(t,{$:()=>i,N:()=>a});var r=n(595);let i=(e,t)=>{let n=(0,r.qj)([]);return(0,r.JJ)(e,Object.assign({link:e=>{e.proxy&&n.push(e.proxy)},unlink:e=>{let t=n.indexOf(e.proxy);n.splice(t,1)},children:n},t)),n},a=e=>{let t=(0,r.f3)(e);if(void 0==t)return{parent:t,index:(0,r.iH)(-1)};let n=(0,r.FN)(),{link:i,unlink:a,children:s}=t;i(n),(0,r.SK)(()=>a(n));let l=(0,r.Fl)(()=>s.indexOf(n.proxy));return{parent:t,children:s,index:l}}},547:function(e,t,n){"use strict";let r;n.d(t,{Yb:()=>z,Ys:()=>F,kD:()=>R,Am:()=>M,jP:()=>j,ZC:()=>L,LS:()=>P,rV:()=>B,ic:()=>N,UI:()=>D,Vq:()=>H});let i=("undefined"!=typeof globalThis?globalThis:void 0)?.crypto||("undefined"!=typeof global?global:void 0)?.crypto||("undefined"!=typeof window?window:void 0)?.crypto||("undefined"!=typeof self?self:void 0)?.crypto||("undefined"!=typeof frames?frames:void 0)?.[0]?.crypto;r=i?e=>{let t=[];for(let n=0;n<e;n+=4)t.push(i.getRandomValues(new Uint32Array(1))[0]);return new s(t,e)}:e=>{let t=[],n=e=>{let t=e,n=0x3ade68b1;return()=>{let e=((n=36969*(65535&n)+(n>>16)&0xffffffff)<<16)+(t=18e3*(65535&t)+(t>>16)&0xffffffff)&0xffffffff;return e/=0x100000000,(e+=.5)*(Math.random()>.5?1:-1)}};for(let r=0,i;r<e;r+=4){let e=n(0x100000000*(i||Math.random()));i=0x3ade67b7*e(),t.push(0x100000000*e()|0)}return new s(t,e)};class a{static create(...e){return new this(...e)}mixIn(e){return Object.assign(this,e)}clone(){let e=new this.constructor;return Object.assign(e,this),e}}class s extends a{constructor(e=[],t=4*e.length){super();let n=e;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),(n instanceof Int8Array||n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n instanceof Uint8Array){let e=n.byteLength,t=[];for(let r=0;r<e;r+=1)t[r>>>2]|=n[r]<<24-r%4*8;this.words=t,this.sigBytes=e}else this.words=e,this.sigBytes=t}static random=r;toString(e=l){return e.stringify(this)}concat(e){let t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(let e=0;e<i;e+=1){let i=n[e>>>2]>>>24-e%4*8&255;t[r+e>>>2]|=i<<24-(r+e)%4*8}else for(let e=0;e<i;e+=4)t[r+e>>>2]=n[e>>>2];return this.sigBytes+=i,this}clamp(){let{words:e,sigBytes:t}=this;e[t>>>2]&=0xffffffff<<32-t%4*8,e.length=Math.ceil(t/4)}clone(){let e=super.clone.call(this);return e.words=this.words.slice(0),e}}let l={stringify(e){let{words:t,sigBytes:n}=e,r=[];for(let e=0;e<n;e+=1){let n=t[e>>>2]>>>24-e%4*8&255;r.push((n>>>4).toString(16)),r.push((15&n).toString(16))}return r.join("")},parse(e){let t=e.length,n=[];for(let r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s(n,t/2)}},u={stringify(e){let{words:t,sigBytes:n}=e,r=[];for(let e=0;e<n;e+=1){let n=t[e>>>2]>>>24-e%4*8&255;r.push(String.fromCharCode(n))}return r.join("")},parse(e){let t=e.length,n=[];for(let r=0;r<t;r+=1)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s(n,t)}},c={stringify(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:e=>u.parse(unescape(encodeURIComponent(e)))};class d extends a{constructor(){super(),this._minBufferSize=0}reset(){this._data=new s,this._nDataBytes=0}_append(e){let t=e;"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(e){let t,{_data:n,blockSize:r}=this,i=n.words,a=n.sigBytes,l=a/(4*r),u=(l=e?Math.ceil(l):Math.max((0|l)-this._minBufferSize,0))*r,c=Math.min(4*u,a);if(u){for(let e=0;e<u;e+=r)this._doProcessBlock(i,e);t=i.splice(0,u),n.sigBytes-=c}return new s(t,c)}clone(){let e=super.clone.call(this);return e._data=this._data.clone(),e}}class f extends d{constructor(e){super(),this.blockSize=16,this.cfg=Object.assign(new a,e),this.reset()}static _createHelper(e){return(t,n)=>new e(n).finalize(t)}static _createHmacHelper(e){return(t,n)=>new h(e,n).finalize(t)}reset(){super.reset.call(this),this._doReset()}update(e){return this._append(e),this._process(),this}finalize(e){return e&&this._append(e),this._doFinalize()}}class h extends a{constructor(e,t){super();let n=new e;this._hasher=n;let r=t;"string"==typeof r&&(r=c.parse(r));let i=n.blockSize,a=4*i;r.sigBytes>a&&(r=n.finalize(t)),r.clamp();let s=r.clone();this._oKey=s;let l=r.clone();this._iKey=l;let u=s.words,d=l.words;for(let e=0;e<i;e+=1)u[e]^=0x5c5c5c5c,d[e]^=0x36363636;s.sigBytes=a,l.sigBytes=a,this.reset()}reset(){let e=this._hasher;e.reset(),e.update(this._iKey)}update(e){return this._hasher.update(e),this}finalize(e){let t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}}let p=[];for(let e=0;e<64;e+=1)p[e]=0x100000000*Math.abs(Math.sin(e+1))|0;let m=(e,t,n,r,i,a,s)=>{let l=e+(t&n|~t&r)+i+s;return(l<<a|l>>>32-a)+t},g=(e,t,n,r,i,a,s)=>{let l=e+(t&r|n&~r)+i+s;return(l<<a|l>>>32-a)+t},_=(e,t,n,r,i,a,s)=>{let l=e+(t^n^r)+i+s;return(l<<a|l>>>32-a)+t},y=(e,t,n,r,i,a,s)=>{let l=e+(n^(t|~r))+i+s;return(l<<a|l>>>32-a)+t};class b extends f{_doReset(){this._hash=new s([0x67452301,0xefcdab89,0x98badcfe,0x10325476])}_doProcessBlock(e,t){for(let n=0;n<16;n+=1){let r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}let n=this._hash.words,r=e[t+0],i=e[t+1],a=e[t+2],s=e[t+3],l=e[t+4],u=e[t+5],c=e[t+6],d=e[t+7],f=e[t+8],h=e[t+9],b=e[t+10],w=e[t+11],k=e[t+12],x=e[t+13],S=e[t+14],E=e[t+15],T=n[0],A=n[1],O=n[2],I=n[3];T=m(T,A,O,I,r,7,p[0]),I=m(I,T,A,O,i,12,p[1]),O=m(O,I,T,A,a,17,p[2]),A=m(A,O,I,T,s,22,p[3]),T=m(T,A,O,I,l,7,p[4]),I=m(I,T,A,O,u,12,p[5]),O=m(O,I,T,A,c,17,p[6]),A=m(A,O,I,T,d,22,p[7]),T=m(T,A,O,I,f,7,p[8]),I=m(I,T,A,O,h,12,p[9]),O=m(O,I,T,A,b,17,p[10]),A=m(A,O,I,T,w,22,p[11]),T=m(T,A,O,I,k,7,p[12]),I=m(I,T,A,O,x,12,p[13]),O=m(O,I,T,A,S,17,p[14]),A=m(A,O,I,T,E,22,p[15]),T=g(T,A,O,I,i,5,p[16]),I=g(I,T,A,O,c,9,p[17]),O=g(O,I,T,A,w,14,p[18]),A=g(A,O,I,T,r,20,p[19]),T=g(T,A,O,I,u,5,p[20]),I=g(I,T,A,O,b,9,p[21]),O=g(O,I,T,A,E,14,p[22]),A=g(A,O,I,T,l,20,p[23]),T=g(T,A,O,I,h,5,p[24]),I=g(I,T,A,O,S,9,p[25]),O=g(O,I,T,A,s,14,p[26]),A=g(A,O,I,T,f,20,p[27]),T=g(T,A,O,I,x,5,p[28]),I=g(I,T,A,O,a,9,p[29]),O=g(O,I,T,A,d,14,p[30]),A=g(A,O,I,T,k,20,p[31]),T=_(T,A,O,I,u,4,p[32]),I=_(I,T,A,O,f,11,p[33]),O=_(O,I,T,A,w,16,p[34]),A=_(A,O,I,T,S,23,p[35]),T=_(T,A,O,I,i,4,p[36]),I=_(I,T,A,O,l,11,p[37]),O=_(O,I,T,A,d,16,p[38]),A=_(A,O,I,T,b,23,p[39]),T=_(T,A,O,I,x,4,p[40]),I=_(I,T,A,O,r,11,p[41]),O=_(O,I,T,A,s,16,p[42]),A=_(A,O,I,T,c,23,p[43]),T=_(T,A,O,I,h,4,p[44]),I=_(I,T,A,O,k,11,p[45]),O=_(O,I,T,A,E,16,p[46]),A=_(A,O,I,T,a,23,p[47]),T=y(T,A,O,I,r,6,p[48]),I=y(I,T,A,O,d,10,p[49]),O=y(O,I,T,A,S,15,p[50]),A=y(A,O,I,T,u,21,p[51]),T=y(T,A,O,I,k,6,p[52]),I=y(I,T,A,O,s,10,p[53]),O=y(O,I,T,A,b,15,p[54]),A=y(A,O,I,T,i,21,p[55]),T=y(T,A,O,I,f,6,p[56]),I=y(I,T,A,O,E,10,p[57]),O=y(O,I,T,A,c,15,p[58]),A=y(A,O,I,T,x,21,p[59]),T=y(T,A,O,I,l,6,p[60]),I=y(I,T,A,O,w,10,p[61]),O=y(O,I,T,A,a,15,p[62]),A=y(A,O,I,T,h,21,p[63]),n[0]=n[0]+T|0,n[1]=n[1]+A|0,n[2]=n[2]+O|0,n[3]=n[3]+I|0}_doFinalize(){let e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;let i=Math.floor(n/0x100000000);t[(r+64>>>9<<4)+15]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00,t[(r+64>>>9<<4)+14]=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,e.sigBytes=(t.length+1)*4,this._process();let a=this._hash,s=a.words;for(let e=0;e<4;e+=1){let t=s[e];s[e]=(t<<8|t>>>24)&0xff00ff|(t<<24|t>>>8)&0xff00ff00}return a}clone(){let e=super.clone.call(this);return e._hash=this._hash.clone(),e}}let w=f._createHelper(b);f._createHmacHelper(b);var k,x=n(595);let S=["innerHTML"];function E(e){if(void 0!==e.remove)e.remove();else{var t;null==(t=e.parentNode)||t.removeChild(e)}}var T=n(412);class A{pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}constructor(e,t){(0,T._)(this,"startedAt",void 0),(0,T._)(this,"callback",void 0),(0,T._)(this,"delay",void 0),(0,T._)(this,"timer",void 0),this.startedAt=Date.now(),this.callback=e,this.delay=t,this.timer=setTimeout(e,t)}}let O=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"}),I={all:k=k||new Map,on:function(e,t){var n=k.get(e);n?n.push(t):k.set(e,[t])},off:function(e,t){var n=k.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):k.set(e,[]))},emit:function(e,t){var n=k.get(e);n&&n.slice().map(function(e){e(t)}),(n=k.get("*"))&&n.slice().map(function(n){n(e,t)})}},C=(0,x.aZ)({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:O.BOTTOM_RIGHT,validator:e=>Object.values(O).includes(e)},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data:()=>({isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}),beforeMount(){this.setupContainer()},mounted(){this.showNotice(),I.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");let e=document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom)},shouldQueue(){return!!this.queue&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{this.onDismiss.apply(null,arguments);let e=this.$refs.root;(0,x.sY)(null,e),E(e)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}let e=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),E(e),this.isActive=!0,this.duration&&(this.timer=new A(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(e){this.pauseOnHover&&this.timer&&(e?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case O.TOP:case O.TOP_RIGHT:case O.TOP_LEFT:return this.parentTop;case O.BOTTOM:case O.BOTTOM_RIGHT:case O.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case O.TOP:case O.TOP_RIGHT:case O.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case O.BOTTOM:case O.BOTTOM_RIGHT:case O.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){I.off("toast-clear",this.dismiss)}}),U=(0,n(744).default)(C,[["render",function(e,t,n,r,i,a){return(0,x.wg)(),(0,x.j4)(x.uT,{"enter-active-class":e.transition.enter,"leave-active-class":e.transition.leave},{default:(0,x.w5)(()=>[(0,x.wy)((0,x._)("div",{ref:"root",role:"alert",class:(0,x.C_)(["v-toast__item",[`v-toast__item--${e.type}`,`v-toast__item--${e.position}`]]),onMouseover:t[0]||(t[0]=t=>e.toggleTimer(!0)),onMouseleave:t[1]||(t[1]=t=>e.toggleTimer(!1)),onClick:t[2]||(t[2]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.whenClicked&&e.whenClicked(...n)})},[t[3]||(t[3]=(0,x._)("div",{class:"v-toast__icon"},null,-1)),(0,x._)("p",{class:"v-toast__text",innerHTML:e.message},null,8,S)],34),[[x.F8,e.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}]]),D=(e,t)=>{let n=-1,r=e.length,i=Array(r);for(;++n<r;)i[n]=t(e[n]);return i},R=(e,t)=>{let n=-1,r=e.length;for(;++n<r;)t(e[n])},L=e=>{if(e.scrollTop>0)return!0;e.scrollTop=1;let t=!!e.scrollTop;return e.scrollTop=0,t};function B(e,t){let n=localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch{}return t}function P(e,t){localStorage.setItem(e,JSON.stringify(t))}let M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{open(t){let n=null;return"string"==typeof t&&(n=t),{dismiss:function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=(0,x.h)(e,t,r),a=document.createElement("div");return a.classList.add("v-toast--pending"),n.appendChild(a),(0,x.sY)(i,a),i.component}(U,Object.assign({},{message:n},e,t),document.body).ctx.dismiss}},clear(){I.emit("toast-clear")},success(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"success"},t))},error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"error"},t))},info(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"info"},t))},warning(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"warning"},t))},default(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"default"},t))}}}({duration:3e3,position:"top"}),F=async(e,t,n)=>{let r=[],i=[];for(let a of e){let s=Promise.resolve().then(()=>n(a));if(r.push(s),t<=e.length){let e=s.then(()=>i.splice(i.indexOf(e),1));i.push(e),i.length>=t&&await Promise.race(i)}}return Promise.all(r)},N=e=>{let t="",n=-1;for(;++n<13;)t+=10*Math.random()|0;let r=(Date.now()%1e10*1e3+(1e3*Math.random()|0)%0xffffffff).toString(),i=new URLSearchParams(e.code),a=i.get("fs"),s=(Date.now()/1e3|21600).toString(16),l=(Date.now()+Number(t)).toString(),u=atob(i.get("fm")).split("_")[0],c=w(`${l}|tars_mp|102`).toString(),d=w([u,t,e.name,c,s].join("_")).toString();return`&wsSecret=${d}&uuid=${r}&wsTime=${s}&uid=${t}&seqid=${l}&fs=${a}&sdk_sid=${Date.now()}&ctype=tars_mp&t=102&ver=1&sv=2401310321`},j=()=>{let e=new Date,t=e=>e.toString().padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`},z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAAXNSR0IArs4c6QAAAEVQTFRFR3BM//////////////b4/////////////////////9Dd////////////+3GZ/HGZ/HGZ/HCZ/HGZ/HGZ/HGZ////+3GZG7vCKwAAABV0Uk5TAPEvsA6dhsxqVwYgQt7qaUAelc+1KF61kQAACS5JREFUeNrtnYmSozgMhjE2vsCdhIS8/6NOID0Jh40lH0C6oq3aqt3JGD4sS79kjqL42te+9rWvfZgxxWnFGx0/UqlUw3bDqEg3mJFxA9X8ORBtduEoTfcyGnM1FUkzTijH+/D9GYS7lxqPIzYn0aKbGA8dqJmOQ7cGkd3MysCFZmbjqI1BxBzEhDkXnY8jtuWou4XxJBPbdduukmZ5AiHOVZPlMNvGYGUBwTuXFpZh5O4zgncubhtF7b1G8M5lvRobu1Zhc4pOoJyrNrYxiN4WRHbRzkWtQ1RbZ0QR61z2S0HqzbWW9Tzgkask1gFksbnxKOfS9hmlxQ4W5VzVQRwr1rnskbfbp7KKcC5GuiQZNVNNAnYubY+8Qu8EEuxcjshbFrtZmHPZ+feIvHHOxcxxIm+Uc9kjr2G7ggQ4lzpU5A13rvpYkdfnXO5IerTIG+pc/EDSBORcjlOryeEir8+5qLQZPULk1XXZNEo9TodzXlUVpVQIYYz9IiONEGMeoz3GfIzMueRSKqWask68eEpZiW4fE1Sm0i5NRbp9jVTxaYZJ0x3BjIxK/YyT7ihGeDjKQWbjNSuBXciadkczGpI5FemOZwQ/KbI7piHlpabdUQ218XpgDhTJoTkwJJVfGk21Ee8VoeqtGazsre6N9VYM/x7+e/iT54+G38uldiMk1TqxrnNC+UPElf2prV0Q8MVa/aHusR/AilMSrvtLq9jRr6NvUs29jqStUg+iI5ftGiL3bXEwuUCB3OuxqEarnTs1vadV+GVSx+fSHLbQGV6xMou8pi6OYfO9U4pb6YfhWJKUmAk5EMeChGJWSFkcyUrEKuEH7De5zm41cJnNG5kacZBpM9CAJy9th5w1jrhawW+4baCOz3PdzKbVQ2hYSQSq3SOAviWy3HA0UDg2c/77gOGgwKJgcUuTDPfpjERfteoDkPtppmcIWyKecRldM20vChZXfbzjDvIAClokChF72Wrpw+zHXsRBib1nQoGcnyOSIRxkXBdI96IMKJY4qMTVqUDGV5FM/kCX6CWpQd5PgekGCTIel7uuHFRFGEjYEogsggEZ7bhN9uRq11QBM4nzYhPEzYUYkPGaruImZOr+kHPjKUG0sYhWPYq98HsIOUAAlxjliwIZi6TKdk5wFaEAkVVhFKMuFyZXbtUXS5DRykHs6zaAk5TImkpP/pkcgzmOT3htmxBEIQpwGy0jH39YAxlC8GQjsA7bKoAsZA4ICCiQRrytX+5CzP7H/1D/Nj8TAKRC5EMQiMJ32qsUGZF+BIjwg4jI8nAOorOAUP9ZgmTM7jMC8BvS4cq1fUAqb42oY+/N2wbEH1tZbG9umzXiz3Z1apAiP0jtBVFJQYhVYjCLv/hB/KqxRIKUYmZmE5DGC9JgxG/hfAjEtkZ8IDoUpEkBorz1iA2kjp2R0nuaCqfitQwCiZ4R/wpAgjhuRs6+RvwxyR/XVtoA262RiQApwzLNSht2uxkZX0CTpEAUcJBx6WStpwgCZPQspvL7PKA9YxAgCTP7aFgOyP0AkNGCWliRT2sNqXj1plPkjDB/NZkL5BG6lCoj9LEjngvnlls2kEih7xACdPsZSQmivAc/wowQ/8+lv5r8DBDulfw6Tx5JUNU7ft54ZyRpZk89I9QrMDNprdQgwi9nPmNGjPe3R5gRQPgl/jZxlgoxNQjzt4k/Y0beV1ZYnpxsjrJG/KKxAeS1N8gbcXQU2yOjKUBwMl5hQDbN7MgKUfrPJ7fWOp/atj3ryJqd7z0j5+t9sJ9THEi1M8jp/rKbjmkH0X1BRhz3exsDIvwPD2VcIxOO+/3sjkNeELPnjMw47teIlmn/fNfc6KzWygVyvs/tEtONX0uS/H+vY2EjB7b8qYLc/Xv+WYCMI5cuk4N4mumBjzxZOCYg6B2rnUAuFo4pSPRm6GhN5AOxckzDFksIIiHbGywZx88kJUbfMAACiZuRy9XGcT+5d1COCcLsHFftBqniQFQWEG3n+LmsJOsgEDkGCX/Tgssb9M3OcV6TT/SAIHaO+3lVB4o4kCYDSAvliL4VcFRsZQBxcJzim79rIKUFhND+RQScmiAQBMe0eg3JVtW4CpiCDA/p/T5zWHvegMMBwn2NA33HwIpvshlINRtOGRwIigN3b/x61TjNSmY5GKsQIPps52j9uSpM/k762m8Q+3sNFBwEyREvfyd97ddulOs1Jko4TMI4boC+dJjYquOyEKaQsjSBEoqtJk4XOHSJXbgvhKJTbAWci0y6N7tagNyvDNqrMjFBi2fnuMDboDHd/GQPXl+Awn0ttSMz4qSZn+qRfhbGgc2Iqil/PZWV3IAuwvl0Op2TF1KLv1fiEslzTRCyeAuoS3Gefn43AoDP5UILqfWM6F+wHNf3vLzP63YJ57hDZpSg4q9zG7H0+snVL651G86BrBG1o3aigMLo6vWuGI5JjUhwPx9lIOvVviAUBraQ8nh9ickcI44atKWxovnwBcj6mUlccPjvVwzaAmnzcUwrEoDaWtR5wpl9roh6wsXRwjPQ5LUj/sgyLfPE2ktarogLfI7lmG1xAnxLST68YbHi0vOtzBbuKuhCyrdIkn5T6gQOpgGFlGeRJH2/lv4BklxScMx8K+kb9k8w4RRUSHlTQ9JXhbUQKZuKY/4doKRfobj5SQILKYCkTUnikLOjspWl41h8xyHlgvftnOmEHMsqgydcJw7P+Y1I4YWU/bLNdYdIGLtWY+stRrhDmrIx79AHkrSxBQhAQc3fy5KnAdpm4LB/5EXwRB8edympSOFuBXF8gaYj5vk6bz5856QZXpFdM5aGJD1H31ZA7mT2Ly03zz2Ep43uRuO9KeavNjJwFLrpEhuRASRtAk9ukn8iovJ3FjJw5CBRSJJbojhZp/68kAB0ESMKkJUUzxOT1BiSW8oKokn7aZsSICDDCxDPpgfJBeISkFk4iqSff5r3MhyyC7CzFjgrKtHXSDhQQAYXIIBpUVX8vFh62w4BmY1jeHchaySv+m+dBH6mzlrVnFMWUkFk/XdOmvfH+J7tRvr8qEvPOhh5mRFSgwXkhhyrUxfb7ToCR4q+3adyzGXXqSj+BMknc7y237eNV1ns0j7kys/tpIs/YH8C4mtf+9rXvva1r33tj9o/Lzzyu+swTmIAAAAASUVORK5CYII=",H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAArlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8tivQqAAAAOXRSTlMAQL+AVSFwReurxLHcZuZhaxvx9dKPfhIHXc6LUC4LeVmgOMiFNCbXm5N04LeoSzz7pBYru5YPA5jd4ld+AAAKR0lEQVR42uzba3OiMBQG4INXvKGiUuttvaPVarW27vv//9h21umCJlZOBMPO8Hy2Dm+TcMIJUiKRSCQSiUQikUj8p8bL1JdMm5RtXr++YGeQVpkUTswlqUm7OOmkSZ8MPAW1HPDoS5KBX0EtRwySHMs40yKuCs5tSIseLmSIZ2biXIm0KOGCWyeWAxCLIYFgRBxTCJakA0QV1swUrUkHiKx3CipbhuiVdICAcw/eQWJKOpQgkaNgXvAlJou9B4nGjIIw3iBRJC2OZaiu18EEMhnSIwcZh25bQuaDdClAJk+3PEOmOCBd3k1IFNu3/syChD0jfSqQ6arc7lAlnXaQ6dFPHMi0SKvsChLNPV23gUzqSHpVIfObrto3IWH3SbcRZJ6Znx+SdvUyJFZZkqtBpksxMITMjqTGDUikKBY+IFMjiXYKEvacYuGpCQmzT6JuXBfISQ8yTRIMY7dA2vV+PlNLT7vLxei1sD5AJiUoSz9Weh0tp07tuWfM5vXPIz1CNl/pFiZlGxFqmOVmsdCt5LMUjf7LGg9WqryHnqLVhBadVp/CM2+9QZu31pzCUZ/a0Mqe1ikEWxfalYd0twxioUV3chATE7pLCvFBd5ggRsqk7IBYWas3d5kaljtJBTRxrQaYCqSkCyn77FoPhUXLyVV7xiz71Cam9lN2ZvSqOae1KBxSPkXXDO/etYXI/TDq9CDjXAGCHvGtcWk0psfavuJC55O4arhQytPjZex7J9d+hTNWjbSYr3Buc9+AFLKkyxpnXu8q6QXSaIEzY+Iw4pPjsp4t1XtVnSfSKg8/mzPLByY8jS1Fpr/n95fTqjPrF0WnW17m6aaZ8tnvCzzNAYVj7pDAAlB82fNWSV1teVUoDPlRAxhfaT3aozynUV6lwGzf2rp/QD6rJfw1uf4PW9CPLLVS0g96+G1AJK7I6rV1Osc/W0ZVNJUaDrn7g9DHlTN4J3ClSqstkhw8wxCCtDvy3WsH3zasAr2lgFrw5FWDyJ9tHOn57oEz2YFnlVcz+qpB5GO88u0SlsGvrC58Obt5UlcPIp1FL/StbQUvcQO1dycteNrKQeSPBe5APOjK0E0Nldp+hMemcIKQK5yS7jiv+1rwsSiYbOCumHEpJQQRhqRzvJwtM7rNhV+b3z8pEsv1ILTCX2a3T39VWYW6qFJIhvCUVIMIY1bFl0mlLSx/wxN02zjj730XdwaB38jw4b0BMVJpby3hmYYURMQL0oJfhb+Jz8UkiAM/hwLpwDOMSZCayvuoJjz5mAQZKrR1jvAZxyTIRvwgb18zi0mQrcKB4h4+7+EESRvf0v+uWrwTp4I2UjrsHQrmIQWhb2nxqoME6cPPpSDeOZuBIgSRBJnzzkXFUdwzNnNRBsnCz+K3GT/pR0cTck7IQerg91E2jA3zHg8akSf42fy3TxjrKdIRGcDvjYJ4hqfBPfqN6vZ7VAhSY4xhD1c4IRdEeoNPg/04Ygb8Ack6fSnsIA3+GnHgWdHPfl19/go7iMm/a00ZlaeFEyfyIBZ8VuyGaTPgoVg18iArfmVfMHZnB5wYkQdx+XutHaMb5OJkHnmQP+2d6XabMBCFB7NjMN4a8AYJXuJ43+JW7/9iPW3/VJWFZmTcQ87x999Jbiykq9Ho0qe73yb3o3FHW+nDhUzp+5EL/hOpwsRRF0SszQ5wQvAPe0ehl2pRsBcF38hDK8Sdv2wfL8Shn+v6eOPvKsp4VCHYPg6bfCHPw1WJo8cLgSa5avhDcGfK79v9D0IglIx3XJkV14gq8kKftfovGerf1tTKK0lRa6fIiriOeOYelNjx29Fx9ZKJEs3WeYckpDeyoXpyfDnoncloU4R8nuEROPiJrstkxHghwzE8hghfMmVSBmgh367wIAboIvaVSbGQQjwLbpKcCzuF+7DQ/SsLJmWME9IvBAWvo20j7P1R2d+8zVzQZcfQPTX/YgqfY6VsbOAozIAJ9LaxfX936lgzU84QtIo9BYbBDZ5zyaXNhnm9876FpSlkr157Xvghpbjt+B4Blbk4+9CFzIlC2iFT0RBGB6WeG2kKmSiF+H/PLwHDsC2Agi1aDbqQhUqIr/SeyvguUrdarinELhPC68iODM8S8CT6YWom59EMDm7WGp64MDoCAaBJxW0+XUhS2pbWM7g5koRna6XkbTSFZKVC2twnqBQ6LY1DTSFpmRCf2/TTuQIHqjrpaQqBMiEFt2QJ9JeraGy8rkbHhsSh6VzP+g4EvnF1f0N1N/3aYgL+Lvn7eXVnt8R8aAQ0dbRC6YISIa2OfKe83INAsWUCOf2S7lzr2rhfIiSXZgP+kPyysah4QE613AGBNTd6bgvpZdy+B9cXl0u+1nIGumYrPXBWwij/QgLKgIkPjGdG3ZC8aLk0C3UKTlHSadGzrCa6cZZ7wpqVhJK6npQh+frxSTenukmY62Zke5v2+GdtQvMoU63wdFBx7srcC7pf5JPmUdaAJDMpH/om92HoFNgFyaMcyp+mYGk6g507WB27JK89ZFIibLyJQ/MoiUYn4CdhPhGJkbG0F5pHmWiMkFdSfdkXlm1kUotN8ihjekTSkBYdM7DQ/4gxbWyt0Ltk25MWftFF43UGghIL1QARkDxKi5xmE9HSNs1bGywLlW55Il3p39Fiq9Yx0V/bQFBikSI5UjGWVK6ZZ/uagJot34BCUJIJ3z1+wBwWOMu0viyjhJ7xsZUlflvKjzKTlnVtYo4WFpQ9cchtW0lKjsJEhD/BORRQMT1un0BSMqIVq6YPfVNLIhnnMUKJQyunONS9vn69fwwkJRat27Tj4ZcGOgV/uEdS4hI7sj/U9kcfW24RI5WSNrFtthAMbQKVkfLDlqRkJPEoeO8xjKEyPG76JSnxhSIy/U0Ol10G1dDn/hiSkpBcOo2ZSK9hulWI2ZROoe0SJbbGbPpD1gSzafpvy4/RLF+1o4G1c/fzyaJzuqaa8f82Tol++E4yZFUR+qOTtBYUAVKJOJu6gKLwWHW8u7LFYIt5a4516yDigPV3BqsQz5aYLa+DVxJrWifjUdnDWz4BH61kg1ilH6/kJJkSD3OsEkM4oEBzCllluLJZ9Ih7+ZgFwT2RjUtWFStpf6qFVHKf/5sdWDXE0sCsnqFUItJK6DH+XaaL7Djy+s5PaSnmxO3+TZI9a1WwkmQljioEqpIwAR2SuMnuZF/axT2lKlmBLqd2Y830MRW3Y8OFugJYXXxket45v16fcvSbl2Daf1973R7DMDVuVOl4umOKkjZUT5Z07MWkMOScT5hNKDvO0UqG36E+OOIrOkYdcc7Mb/UCF1Anlkygu8kn/HMpafSuF8Htla75mQ+M2DwGLemBad3wmA5LqB020yCEGlIwMh7UkmufyanxG+7k1VmRmr2zVk3O0BzqN1/9zQDrrYcu1Bvcq7L67Tr5EgmLbyrzGa4y+BJMPlkJrTyBL8PCubCbdN9ev5CM39hOIExUx/EXGVP/cNpF5nLT9w7rwP/IY/cLPOBPnjx58uTJk6r5CXO8FpZU+7yPAAAAAElFTkSuQmCC"},985:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(595),i=n(157),a=n(362),s=n(502);n(60);var l=e([a]);a=(l.then?(await l)():l)[0];let u=(0,r.ri)(i.Z);u.use(a.N).use(s.V),u.mount("#app"),t()}catch(e){t(e)}})},502:function(e,t,n){"use strict";n.d(t,{V:()=>i});var r=n(547);let i={install(e){e.directive("lazy",{mounted(e,t){e.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";let n=new IntersectionObserver(i=>{(0,r.kD)(i,r=>{if(r.isIntersecting){let r=new Image;r.src=t.value,r.onload=()=>e.src=t.value,n.unobserve(e)}})});n.observe(e)}})}}},473:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{f:()=>c,v:()=>l});var i=n(766),a=n(28),s=n(547);let e=await i.Z;function l(e,t){let n=new TextEncoder().encode(e),r=n.length+16,i=new Uint8Array(r),a=new DataView(i.buffer),s=0;return a.setInt32(s,r),s+=4,a.setInt16(s,16),s+=2,a.setInt16(s,0),s+=2,a.setInt32(s,t),s+=4,a.setInt32(s,1),s+=4,i.set(n,s),i}function u(e,t,n){let r=e.slice(t,t+n).buffer,i=new DataView(r);if(1==n)return i.getUint8(0);if(2==n)return i.getInt16(0,!1);if(4==n)return i.getInt32(0,!1);if(8==n)return i.getBigInt64(0,!1);throw Error("")}function c(t,n){try{let r=u(t,6,2),i=u(t,8,4),l=t.slice(16);if(5!==i)return;2===r?l=a.ZP.inflate(l):3===r&&(l=e.decompress(l));let c=new TextDecoder("utf-8",{fatal:!1}).decode(l).split(/[\p{Cc}]+/u).filter(e=>e.length>2&&e.startsWith("{"));(0,s.kD)(c,e=>{let t=JSON.parse(e),r=t.cmd||"";if(r.includes("DANMU_MSG")){if(t.info&&t.info.length>0){let e=t.info[1]||"",r=t.info[2][1]||"";r&&n(r,e)}}else if("SUPER_CHAT_MESSAGE"===r&&t.data){let e={message:t.data.message,price:t.data.price,userName:t.data.user_info.uname};n(e.userName,`SC ${e.price} ${e.message}`)}})}catch{}}r()}catch(e){r(e)}},1)},881:function(e,t,n){"use strict";function r(e){return function(e){let t={};n:for(;!p(e);){let n=x(e);switch(n>>>3){case 0:break n;case 1:{let n=l(e);(t.messagesList||(t.messagesList=[])).push(function(e){let t={};n:for(;!p(e);){let n=x(e);switch(n>>>3){case 0:break n;case 1:t.method=y(e,x(e));break;case 2:t.payload=_(e,x(e));break;case 3:t.msgId=E(e,!1);break;case 4:t.msgType=x(e);break;case 5:t.offset=E(e,!1);break;case 6:t.needWrdsStore=!!w(e);break;case 7:t.wrdsVersion=E(e,!1);break;case 8:t.wrdsSubKey=y(e,x(e));break;default:u(e,7&n)}}return t}(e)),e.limit=n;break}case 8:t.heartbeatDuration=E(e,!0);break;case 9:t.needAck=!!w(e);break;default:u(e,7&n)}}return t}(f(e))}function i(e){return function(e){let t={};n:for(;!p(e);){let n=x(e);switch(n>>>3){case 0:break n;case 2:{let n=l(e);t.user=function(e){let t={};n:for(;!p(e);){let n=x(e);switch(n>>>3){case 0:break n;case 3:t.nickName=y(e,x(e));break;default:u(e,7&n)}}return t}(e),e.limit=n;break}case 3:t.content=y(e,x(e));break;default:u(e,7&n)}}return t}(f(e))}function a(e){var t;let n,r,i=d();return function(e,t){var n,r,i;let a,s=e.seqId;void 0!==s&&(S(t,8),T(t,s));let l=e.logId;void 0!==l&&(S(t,16),T(t,l));let u=e.service;void 0!==u&&(S(t,24),T(t,u));let f=e.method;void 0!==f&&(S(t,32),T(t,f));let h=e.headersList;if(void 0!==h)for(let e of h){S(t,42);let r=d();(function(e,t){let n=e.key;void 0!==n&&(S(t,10),b(t,n));let r=e.value;void 0!==r&&(S(t,18),b(t,r))})(e,r),S(t,r.limit),function(e,t){let n=m(e,t.limit),r=e.bytes,i=t.bytes;for(let e=0,a=t.limit;e<a;e++)r[e+n]=i[e]}(t,r),n=r,c.push(n)}let p=e.payloadEncoding;void 0!==p&&(S(t,50),b(t,p));let g=e.payloadType;void 0!==g&&(S(t,58),b(t,g));let _=e.payload;void 0!==_&&(S(t,66),S(t,_.length),a=m(r=t,(i=_).length),r.bytes.set(i,a))}(e,i),n=(t=i).bytes,r=t.limit,n.length===r?n:n.subarray(0,r)}function s(e){return function(e){let t={};n:for(;!p(e);){let n=x(e);switch(n>>>3){case 0:break n;case 1:t.seqId=E(e,!0);break;case 2:t.logId=E(e,!0);break;case 3:t.service=E(e,!0);break;case 4:t.method=E(e,!0);break;case 5:{let n=l(e);(t.headersList||(t.headersList=[])).push(function(e){let t={};n:for(;!p(e);){let n=x(e);switch(n>>>3){case 0:break n;case 1:t.key=y(e,x(e));break;case 2:t.value=y(e,x(e));break;default:u(e,7&n)}}return t}(e)),e.limit=n;break}case 6:t.payloadEncoding=y(e,x(e));break;case 7:t.payloadType=y(e,x(e));break;case 8:t.payload=_(e,x(e));break;default:u(e,7&n)}}return t}(f(e))}function l(e){let t=x(e),n=e.limit;return e.limit=e.offset+t,n}function u(e,t){switch(t){case 0:for(;128&w(e););break;case 2:h(e,x(e));break;case 5:h(e,4);break;case 1:h(e,8);break;default:throw Error("Unimplemented type: "+t)}}n.d(t,{Ne:()=>a,cu:()=>i,i:()=>r,qO:()=>s}),new Uint8Array(new Float32Array(1).buffer),new Uint8Array(new Float64Array(1).buffer);let c=[];function d(){let e=c.pop();return e?(e.offset=e.limit=0,e):{bytes:new Uint8Array(64),offset:0,limit:0}}function f(e){return{bytes:e,offset:0,limit:e.length}}function h(e,t){if(e.offset+t>e.limit)throw Error("Skip past limit");e.offset+=t}function p(e){return e.offset>=e.limit}function m(e,t){let n=e.bytes,r=e.offset,i=e.limit,a=r+t;if(a>n.length){let t=new Uint8Array(2*a);t.set(n),e.bytes=t}return e.offset=a,a>i&&(e.limit=a),r}function g(e,t){let n=e.offset;if(n+t>e.limit)throw Error("Read past limit");return e.offset+=t,n}function _(e,t){let n=g(e,t);return e.bytes.subarray(n,n+t)}function y(e,t){let n=g(e,t),r=String.fromCharCode,i=e.bytes,a="";for(let e=0;e<t;e++){let s=i[e+n],l,u,c,d;(128&s)==0?a+=r(s):(224&s)==192?e+1>=t||(192&(l=i[e+n+1]))!=128||(d=(31&s)<<6|63&l)<128?a+="�":(a+=r(d),e++):(240&s)==224?e+2>=t||(((l=i[e+n+1])|(u=i[e+n+2])<<8)&49344)!=32896||(d=(15&s)<<12|(63&l)<<6|63&u)<2048||d>=55296&&d<=57343?a+="�":(a+=r(d),e+=2):(248&s)==240?e+3>=t?a+="�":(l=i[e+n+1],((l|(u=i[e+n+2])<<8|(c=i[e+n+3])<<16)&0xc0c0c0)!=8421504||(d=(7&s)<<18|(63&l)<<12|(63&u)<<6|63&c)<65536||d>1114111?a+="�":(d-=65536,a+=r((d>>10)+55296,(1023&d)+56320),e+=3)):a+="�"}return a}function b(e,t){let n=t.length,r=0;for(let e=0;e<n;e++){let i=t.charCodeAt(e);i>=55296&&i<=56319&&e+1<n&&(i=(i<<10)+t.charCodeAt(++e)-0x35fdc00),r+=i<128?1:i<2048?2:i<65536?3:4}S(e,r);let i=m(e,r),a=e.bytes;for(let e=0;e<n;e++){let r=t.charCodeAt(e);r>=55296&&r<=56319&&e+1<n&&(r=(r<<10)+t.charCodeAt(++e)-0x35fdc00),r<128?a[i++]=r:(r<2048?a[i++]=r>>6&31|192:(r<65536?a[i++]=r>>12&15|224:(a[i++]=r>>18&7|240,a[i++]=r>>12&63|128),a[i++]=r>>6&63|128),a[i++]=63&r|128)}}function w(e){return e.bytes[g(e,1)]}function k(e,t){let n=m(e,1);e.bytes[n]=t}function x(e){let t,n=0,r=0;do t=w(e),n<32&&(r|=(127&t)<<n),n+=7;while(128&t);return r}function S(e,t){for(t>>>=0;t>=128;)k(e,127&t|128),t>>>=7;k(e,t)}function E(e,t){let n,r=0,i=0,a=0;return r=127&(n=w(e)),128&n&&(r|=(127&(n=w(e)))<<7,128&n&&(r|=(127&(n=w(e)))<<14,128&n&&(r|=(127&(n=w(e)))<<21,128&n&&(i=127&(n=w(e)),128&n&&(i|=(127&(n=w(e)))<<7,128&n&&(i|=(127&(n=w(e)))<<14,128&n&&(i|=(127&(n=w(e)))<<21,128&n&&(a=127&(n=w(e)),128&n&&(a|=(127&(n=w(e)))<<7))))))))),{low:r|i<<28,high:i>>>4|a<<24,unsigned:t}}function T(e,t){let n=t.low>>>0,r=(t.low>>>28|t.high<<4)>>>0,i=t.high>>>24,a=0===i?0===r?n<16384?n<128?1:2:n<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:i<128?9:10,s=m(e,a),l=e.bytes;switch(a){case 10:l[s+9]=i>>>7&1;case 9:l[s+8]=9!==a?128|i:127&i;case 8:l[s+7]=8!==a?r>>>21|128:r>>>21&127;case 7:l[s+6]=7!==a?r>>>14|128:r>>>14&127;case 6:l[s+5]=6!==a?r>>>7|128:r>>>7&127;case 5:l[s+4]=5!==a?128|r:127&r;case 4:l[s+3]=4!==a?n>>>21|128:n>>>21&127;case 3:l[s+2]=3!==a?n>>>14|128:n>>>14&127;case 2:l[s+1]=2!==a?n>>>7|128:n>>>7&127;case 1:l[s]=1!==a?128|n:127&n}}},438:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(792),i={};i.WSRegisterGroupReq=function(){this.vGroupId=new r.Z.Vector(new r.Z.STRING),this.sToken=""},i.WSRegisterGroupReq.prototype.writeTo=function(e){e.writeVector(0,this.vGroupId),e.writeString(1,this.sToken)},i.UserHeartBeatReq=function(){this.tId=new i.UserId,this.lTid=0,this.lSid=0,this.lPid=0,this.bWatchVideo=!1,this.eLineType=0,this.iFps=0,this.iAttendee=0,this.iBandwidth=0,this.lShortTid=0,this.iLastHeartElapseTime=0},i.UserHeartBeatReq.prototype.writeTo=function(e){e.writeStruct(0,this.tId),e.writeInt64(1,this.lTid),e.writeInt64(2,this.lSid),e.writeInt64(4,this.lPid),e.writeBoolean(5,this.bWatchVideo),e.writeInt32(6,this.eLineType),e.writeInt32(7,this.iFps),e.writeInt32(8,this.iAttendee),e.writeInt32(9,this.iBandwidth),e.writeInt32(10,this.iLastHeartElapseTime)},i.WebSocketCommand=function(){this.iCmdType=0,this.vData=new r.Z.BinBuffer,this.lRequestId=0,this.traceId=""},i.WebSocketCommand.prototype.writeTo=function(e){e.writeInt32(0,this.iCmdType),e.writeBytes(1,this.vData),e.writeInt64(2,this.lRequestId),e.writeString(3,this.traceId)},i.WebSocketCommand.prototype.readFrom=function(e){this.iCmdType=e.readInt32(0,!1,this.iCmdType),this.vData=e.readBytes(1,!1,this.vData),this.lRequestId=e.readInt64(2,!1,this.lRequestId),this.traceId=e.readString(3,!1,this.traceId)},i.WSPushMessage=function(){this.ePushType=0,this.iUri=0,this.sMsg=new r.Z.BinBuffer,this.iProtocolType=0,this.sGroupId=""},i.WSPushMessage.prototype.readFrom=function(e){this.ePushType=e.readInt32(0,!1,this.ePushType),this.iUri=e.readInt64(1,!1,this.iUri),this.sMsg=e.readBytes(2,!1,this.sMsg),this.iProtocolType=e.readInt32(3,!1,this.iProtocolType),this.sGroupId=e.readString(4,!1,this.sGroupId)},i.MessageNotice=function(){this.tUserInfo=new i.SenderInfo,this.sContent="",this.sIconUrl=""},i.MessageNotice.prototype.readFrom=function(e){this.tUserInfo=e.readStruct(0,!1,this.tUserInfo),this.sContent=e.readString(3,!1,this.sContent)},i.UserId=function(){this.lUid=0,this.sGuid="",this.sToken="",this.sHuYaUA="",this.sCookie="",this.iTokenType=0},i.UserId.prototype.writeTo=function(e){e.writeInt64(0,this.lUid),e.writeString(1,this.sGuid),e.writeString(2,this.sToken),e.writeString(3,this.sHuYaUA),e.writeString(4,this.sCookie),e.writeInt32(5,this.iTokenType)},i.UserId.prototype.readFrom=function(e){this.lUid=e.readInt64(0,!1,this.lUid),this.sGuid=e.readString(1,!1,this.sGuid),this.sToken=e.readString(2,!1,this.sToken),this.sHuYaUA=e.readString(3,!1,this.sHuYaUA),this.sCookie=e.readString(4,!1,this.sCookie),this.iTokenType=e.readInt32(5,!1,this.iTokenType)},i.SenderInfo=function(){this.sNickName=""},i.SenderInfo.prototype.writeTo=function(e){e.writeString(2,this.sNickName)},i.SenderInfo.prototype.readFrom=function(e){this.sNickName=e.readString(2,!1,this.sNickName)},i.ContentFormat=function(){this.iFontColor=-1,this.iFontSize=4,this.iPopupStyle=0},i.ContentFormat.prototype._clone=function(){return new i.ContentFormat},i.ContentFormat.prototype._write=function(e,t,n){e.writeStruct(t,n)},i.ContentFormat.prototype._read=function(e,t,n){return e.readStruct(t,!0,n)},i.ContentFormat.prototype.writeTo=function(e){e.writeInt32(0,this.iFontColor),e.writeInt32(1,this.iFontSize),e.writeInt32(2,this.iPopupStyle)},i.ContentFormat.prototype.readFrom=function(e){this.iFontColor=e.readInt32(0,!1,this.iFontColor),this.iFontSize=e.readInt32(1,!1,this.iFontSize),this.iPopupStyle=e.readInt32(2,!1,this.iPopupStyle)};let a=i},792:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(595),i={};i.INT8=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt8(t,n)},this._read=function(e,t,n){return e.readInt8(t,!0,n)},this._className=function(){return i.CHAR}},i.INT16=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt16(t,n)},this._read=function(e,t,n){return e.readInt16(t,!0,n)},this._className=function(){return i.SHORT}},i.INT32=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt32(t,n)},this._read=function(e,t,n){return e.readInt32(t,!0,n)},this._className=function(){return i.INT32}},i.INT64=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt64(t,n)},this._read=function(e,t,n){return e.readInt64(t,!0,n)},this._className=function(){return i.INT64}},i.UINT8=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt16(t,n)},this._read=function(e,t,n){return e.readInt16(t,!0,n)},this._className=function(){return i.SHORT}},i.UInt16=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt32(t,n)},this._read=function(e,t,n){return e.readInt32(t,!0,n)},this._className=function(){return i.INT32}},i.UInt32=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt64(t,n)},this._read=function(e,t,n){return e.readInt64(t,!0,n)},this._className=function(){return i.INT64}},i.Float=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeFloat(t,n)},this._read=function(e,t,n){return e.readFloat(t,!0,n)},this._className=function(){return i.FLOAT}},i.Double=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeDouble(t,n)},this._read=function(e,t,n){return e.readDouble(t,!0,n)},this._className=function(){return i.DOUBLE}},i.STRING=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeString(t,n)},this._read=function(e,t,n){return e.readString(t,!0,n)},this._className=function(){return i.STRING}},i.BOOLEAN=function(){this._clone=function(){return!1},this._write=function(e,t,n){return e.writeBoolean(t,n)},this._read=function(e,t,n){return e.readBoolean(t,!0,n)},this._className=function(){return i.BOOLEAN}},i.ENUM=function(){this._clone=function(){return 0},this._write=function(e,t,n){return e.writeInt32(t,n)},this._read=function(e,t,n){return e.readInt32(t,!0,n)}},i.Vector=function(e){this.proto=e,this.value=[]},i.Vector.prototype._clone=function(){return new i.Vector(this.proto)},i.Vector.prototype._write=function(e,t,n){return e.writeVector(t,n)},i.Vector.prototype._read=function(e,t,n){return e.readVector(t,!0,n)},i.Vector.prototype._className=function(){return i.TypeHelp.VECTOR.replace("$t",this.proto._className())},i.Map=function(e,t){this.kproto=e,this.vproto=t,this.value={}},i.Map.prototype._clone=function(){return new i.Map(this.kproto,this.vproto)},i.Map.prototype._write=function(e,t,n){return e.writeMap(t,n)},i.Map.prototype._read=function(e,t,n){return e.readMap(t,!0,n)},i.Map.prototype.put=function(e,t){this.value[e]=t},i.Map.prototype.get=function(e){return this.value[e]},i.Map.prototype.remove=function(e){delete this.value[e]},i.Map.prototype.clear=function(){this.value={}},i.Map.prototype.size=function(){var e=0;for(var t in this.value)e++;return e},i.Map.prototype._className=function(){return i.TypeHelp.Map.replace("$k",this.kproto._className()).replace("$v",this.vproto._className())},i.DataHelp={EN_INT8:0,EN_INT16:1,EN_INT32:2,EN_INT64:3,EN_FLOAT:4,EN_DOUBLE:5,EN_STRING1:6,EN_STRING4:7,EN_MAP:8,EN_LIST:9,EN_STRUCTBEGIN:10,EN_STRUCTEND:11,EN_ZERO:12,EN_SIMPLELIST:13},i.TypeHelp={BOOLEAN:"bool",CHAR:"char",SHORT:"short",INT32:"int32",INT64:"int64",FLOAT:"float",DOUBLE:"double",STRING:"string",VECTOR:"list<$t>",MAP:"map<$k, $v>"},i.BinBuffer=function(e){this.buf=null,this.vew=null,this.len=0,this.position=0,null!=e&&void 0!=e&&e instanceof i.BinBuffer&&(this.buf=e.buf,this.vew=new DataView(this.buf),this.len=e.length,this.position=e.position),null!=e&&void 0!=e&&e instanceof ArrayBuffer&&(this.buf=e,this.vew=new DataView(this.buf),this.len=this.vew.byteLength,this.position=0),this.__defineGetter__("length",function(){return this.len}),this.__defineGetter__("buffer",function(){return this.buf})},i.BinBuffer.prototype._write=function(e,t,n){return e.writeBytes(t,n)},i.BinBuffer.prototype._read=function(e,t,n){return e.readBytes(t,!0,n)},i.BinBuffer.prototype._clone=function(){return new i.BinBuffer},i.BinBuffer.prototype.allocate=function(e){if(e=this.position+e,null==this.buf||!(this.buf.length>e)){var t=new ArrayBuffer(Math.max(256,2*e));null!=this.buf&&(new Uint8Array(t).set(new Uint8Array(this.buf)),this.buf=void 0),this.buf=t,this.vew=void 0,this.vew=new DataView(this.buf)}},i.BinBuffer.prototype.getBuffer=function(){var e=new ArrayBuffer(this.len);return new Uint8Array(e).set(new Uint8Array(this.buf,0,this.len)),e},i.BinBuffer.prototype.memset=function(e,t,n){this.allocate(n),new Uint8Array(this.buf).set(new Uint8Array(e,t,n),this.position)},i.BinBuffer.prototype.writeInt8=function(e){this.allocate(1),this.vew.setInt8(this.position,e),this.position+=1,this.len=this.position},i.BinBuffer.prototype.writeUInt8=function(e){this.allocate(1),this.vew.setUint8(this.position++,e),this.len=this.position},i.BinBuffer.prototype.writeInt16=function(e){this.allocate(2),this.vew.setInt16(this.position,e),this.position+=2,this.len=this.position},i.BinBuffer.prototype.writeUInt16=function(e){this.allocate(2),this.vew.setUint16(this.position,e),this.position+=2,this.len=this.position},i.BinBuffer.prototype.writeInt32=function(e){this.allocate(4),this.vew.setInt32(this.position,e),this.position+=4,this.len=this.position},i.BinBuffer.prototype.writeUInt32=function(e){this.allocate(4),this.vew.setUint32(this.position,e),this.position+=4,this.len=this.position},i.BinBuffer.prototype.writeInt64=function(e){if("string"==typeof e){this.allocate(8),e=e.toLowerCase();for(var t=0,n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r)-48;i>9&&(i-=39),n=10*n+Math.floor((t=10*t+i)/0x100000000),t%=0x100000000}this.vew.setUint32(this.position,n),this.vew.setUint32(this.position+4,t),this.position+=8,this.len=this.position;return}this.allocate(8),this.vew.setUint32(this.position,parseInt(e/0x100000000)),this.vew.setUint32(this.position+4,e%0x100000000),this.position+=8,this.len=this.position},i.BinBuffer.prototype.writeFloat=function(e){this.allocate(4),this.vew.setFloat32(this.position,e),this.position+=4,this.len=this.position},i.BinBuffer.prototype.writeDouble=function(e){this.allocate(8),this.vew.setFloat64(this.position,e),this.position+=8,this.len=this.position},i.BinBuffer.prototype.writeString=function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));this.allocate(t.length),new Uint8Array(this.buf).set(new Uint8Array(t),this.position),this.position+=t.length,this.len=this.position},i.BinBuffer.prototype.writeBytes=function(e){0!=e.length&&null!=e.buf&&(this.allocate(e.length),new Uint8Array(this.buf).set(new Uint8Array(e.buf,0,e.length),this.position),this.position+=e.length,this.len=this.position)},i.BinBuffer.prototype.readInt8=function(){return this.vew.getInt8(this.position++)},i.BinBuffer.prototype.readInt16=function(){return this.position+=2,this.vew.getInt16(this.position-2)},i.BinBuffer.prototype.readInt32=function(){return this.position+=4,this.vew.getInt32(this.position-4)},i.BinBuffer.prototype.readUInt8=function(){return this.position+=1,this.vew.getUint8(this.position-1)},i.BinBuffer.prototype.readUInt16=function(){return this.position+=2,this.vew.getUint16(this.position-2)},i.BinBuffer.prototype.readUInt32=function(){return this.position+=4,this.vew.getUint32(this.position-4)},i.BinBuffer.prototype.readInt64=function(){var e,t,n,r=this.vew.getUint32(this.position),i=this.vew.getUint32(this.position+4);this.position+=8;for(var a="";0!=r||0!=i;)a=(t=(n=0x100000000*(e=r%10)+i)%10).toString(10)+a,r=(r-e)/10,i=(n-t)/10;return a},i.BinBuffer.prototype.readFloat=function(){var e=this.vew.getFloat32(this.position);return this.position+=4,e},i.BinBuffer.prototype.readDouble=function(){var e=this.vew.getFloat64(this.position);return this.position+=8,e},i.BinBuffer.prototype.readString=function(e){for(var t=[],n=0;n<e;n++)t.push(String.fromCharCode(this.vew.getUint8(this.position++)));var r=t.join("");try{r=decodeURIComponent(escape(r))}catch(e){}return r.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;")},i.BinBuffer.prototype.readBytes=function(e){var t=new i.BinBuffer;return t.allocate(e),t.memset(this.buf,this.position,e),t.position=0,t.len=e,this.position=this.position+e,t},i.JceOutputStream=function(){this.buf=new i.BinBuffer,this.getBinBuffer=function(){return this.buf},this.getBuffer=function(){return this.buf.getBuffer()}},i.JceOutputStream.prototype.clear=function(){return this.buf=new i.BinBuffer,this},i.JceOutputStream.prototype.writeTo=function(e,t){e<15?this.buf.writeUInt8(e<<4&240|t):this.buf.writeUInt16((240|t)<<8|e)},i.JceOutputStream.prototype.writeBoolean=function(e,t){this.writeInt8(e,+(!0==t))},i.JceOutputStream.prototype.writeInt8=function(e,t){0==t?this.writeTo(e,i.DataHelp.EN_ZERO):(this.writeTo(e,i.DataHelp.EN_INT8),this.buf.writeInt8(t))},i.JceOutputStream.prototype.writeInt16=function(e,t){t>=-128&&t<=127?this.writeInt8(e,t):(this.writeTo(e,i.DataHelp.EN_INT16),this.buf.writeInt16(t))},i.JceOutputStream.prototype.writeInt32=function(e,t){t>=-32768&&t<=32767?this.writeInt16(e,t):(this.writeTo(e,i.DataHelp.EN_INT32),this.buf.writeInt32(t))},i.JceOutputStream.prototype.writeInt64=function(e,t){t>=-0x80000000&&t<=0x7fffffff?this.writeInt32(e,t):(this.writeTo(e,i.DataHelp.EN_INT64),this.buf.writeInt64(t))},i.JceOutputStream.prototype.writeUInt8=function(e,t){this.writeInt16(e,t)},i.JceOutputStream.prototype.writeUInt16=function(e,t){this.writeInt32(e,t)},i.JceOutputStream.prototype.writeUInt32=function(e,t){this.writeInt64(e,t)},i.JceOutputStream.prototype.writeFloat=function(e,t){0==t?this.writeTo(e,i.DataHelp.EN_ZERO):(this.writeTo(e,i.DataHelp.EN_FLOAT),this.buf.writeFloat(t))},i.JceOutputStream.prototype.writeDouble=function(e,t){0==t?this.writeTo(e,i.DataHelp.EN_ZERO):(this.writeTo(e,i.DataHelp.EN_DOUBLE),this.buf.writeDouble(t))},i.JceOutputStream.prototype.writeStruct=function(e,t){if(void 0==t.writeTo)throw Error("not defined writeTo Function");this.writeTo(e,i.DataHelp.EN_STRUCTBEGIN),t.writeTo(this),this.writeTo(0,i.DataHelp.EN_STRUCTEND)},i.JceOutputStream.prototype.writeString=function(e,t){var n=t;try{n=unescape(encodeURIComponent(n))}catch(e){}n.length>255?(this.writeTo(e,i.DataHelp.EN_STRING4),this.buf.writeUInt32(n.length)):(this.writeTo(e,i.DataHelp.EN_STRING1),this.buf.writeUInt8(n.length)),this.buf.writeString(n)},i.JceOutputStream.prototype.writeBytes=function(e,t){if(!(t instanceof i.BinBuffer))throw Error("value not instanceof Taf.BinBuffer");this.writeTo(e,i.DataHelp.EN_SIMPLELIST),this.writeTo(0,i.DataHelp.EN_INT8),this.writeInt32(0,t.length),this.buf.writeBytes(t)},i.JceOutputStream.prototype.writeVector=function(e,t){this.writeTo(e,i.DataHelp.EN_LIST),this.writeInt32(0,t.value.length);for(var n=0;n<t.value.length;n++)t.proto._write(this,0,t.value[n])},i.JceOutputStream.prototype.writeMap=function(e,t){for(var n in this.writeTo(e,i.DataHelp.EN_MAP),this.writeInt32(0,t.size()),t.value)t.kproto._write(this,0,n),t.vproto._write(this,1,t.value[n])},i.JceInputStream=function(e){this.buf=new i.BinBuffer(e)},i.JceInputStream.prototype.setBuffer=function(e){return this.buf=new i.BinBuffer(e),this},i.JceInputStream.prototype.readFrom=function(){var e=this.buf.readUInt8(),t=(240&e)>>4;return t>=15&&(t=this.buf.readUInt8()),{tag:t,type:15&e}},i.JceInputStream.prototype.peekFrom=function(){var e=this.buf.position,t=this.readFrom();return this.buf.position=e,{tag:t.tag,type:t.type,size:t.tag>=15?2:1}},i.JceInputStream.prototype.skipField=function(e){switch(e){case i.DataHelp.EN_INT8:this.buf.position+=1;break;case i.DataHelp.EN_INT16:this.buf.position+=2;break;case i.DataHelp.EN_INT32:this.buf.position+=4;break;case i.DataHelp.EN_INT64:this.buf.position+=8;break;case i.DataHelp.EN_STRING1:var t=this.buf.readUInt8();this.buf.position+=t;break;case i.DataHelp.EN_STRING4:var n=this.buf.readInt32();this.buf.position+=n;break;case i.DataHelp.EN_STRUCTBEGIN:this.skipToStructEnd();break;case i.DataHelp.EN_STRUCTEND:case i.DataHelp.EN_ZERO:break;case i.DataHelp.EN_MAP:for(var r=this.readInt32(0,!0),a=0;a<2*r;++a){var s=this.readFrom();this.skipField(s.type)}break;case i.DataHelp.EN_SIMPLELIST:var s=this.readFrom();if(s.type!=i.DataHelp.EN_INT8)throw Error("skipField with invalid type, type value: "+e+","+s.type);var t=this.readInt32(0,!0);this.buf.position+=t;break;case i.DataHelp.EN_LIST:for(var r=this.readInt32(0,!0),a=0;a<r;++a){var s=this.readFrom();this.skipField(s.type)}break;default:throw Error("skipField with invalid type, type value: "+e)}},i.JceInputStream.prototype.skipToStructEnd=function(){for(;;){var e=this.readFrom();if(this.skipField(e.type),e.type==i.DataHelp.EN_STRUCTEND)return}},i.JceInputStream.prototype.skipToTag=function(e,t){for(;this.buf.position<this.buf.length;){var n=this.peekFrom();if(e<=n.tag||n.type==i.DataHelp.EN_STRUCTEND)return n.type!=i.DataHelp.EN_STRUCTEND&&e==n.tag;this.buf.position+=n.size,this.skipField(n.type)}if(t)throw Error("require field not exist, tag:"+e);return!1},i.JceInputStream.prototype.readBoolean=function(e,t,n){return 1==this.readInt8(e,t,n)},i.JceInputStream.prototype.readInt8=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();switch(r.type){case i.DataHelp.EN_ZERO:return 0;case i.DataHelp.EN_INT8:return this.buf.readInt8()}throw Error("read int8 type mismatch, tag:"+e+", get type:"+r.type)},i.JceInputStream.prototype.readInt16=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();switch(r.type){case i.DataHelp.EN_ZERO:return 0;case i.DataHelp.EN_INT8:return this.buf.readInt8();case i.DataHelp.EN_INT16:return this.buf.readInt16()}throw Error("read int16 type mismatch, tag:"+e+", get type:"+r.type)},i.JceInputStream.prototype.readInt32=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();switch(r.type){case i.DataHelp.EN_ZERO:return 0;case i.DataHelp.EN_INT8:return this.buf.readInt8();case i.DataHelp.EN_INT16:return this.buf.readInt16();case i.DataHelp.EN_INT32:return this.buf.readInt32()}throw Error("read int32 type mismatch, tag:"+e+", get type:"+r.type)},i.JceInputStream.prototype.readInt64=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();switch(r.type){case i.DataHelp.EN_ZERO:return 0;case i.DataHelp.EN_INT8:return this.buf.readInt8();case i.DataHelp.EN_INT16:return this.buf.readInt16();case i.DataHelp.EN_INT32:return this.buf.readInt32();case i.DataHelp.EN_INT64:return this.buf.readInt64()}throw Error("read int64 type mismatch, tag:"+e+", get type:"+r.type)},i.JceInputStream.prototype.readFloat=function(e,t,n){if(!1==this.skipToTag(e,t))return n;switch(this.readFrom().type){case i.DataHelp.EN_ZERO:return 0;case i.DataHelp.EN_FLOAT:return this.buf.readFloat()}throw Error("read float type mismatch, tag:"+e+", get type:"+r.h.type)},i.JceInputStream.prototype.readDouble=function(e,t,n){if(!1==this.skipToTag(e,t))return n;switch(this.readFrom().type){case i.DataHelp.EN_ZERO:return 0;case i.DataHelp.EN_DOUBLE:return this.buf.readDouble()}throw Error("read double type mismatch, tag:"+e+", get type:"+r.h.type)},i.JceInputStream.prototype.readUInt8=function(e,t,n){return this.readInt16(e,t,n)},i.JceInputStream.prototype.readUInt16=function(e,t,n){return this.readInt32(e,t,n)},i.JceInputStream.prototype.readUInt32=function(e,t,n){return this.readInt64(e,t,n)},i.JceInputStream.prototype.readStruct=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();if(r.type!=i.DataHelp.EN_STRUCTBEGIN)throw Error("read struct type mismatch, tag: "+e+", get type:"+r.type);return n.readFrom(this),this.skipToStructEnd(),n},i.JceInputStream.prototype.readString=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();if(r.type==i.DataHelp.EN_STRING1)return this.buf.readString(this.buf.readUInt8());if(r.type==i.DataHelp.EN_STRING4)return this.buf.readString(this.buf.readUInt32());throw Error("read 'string' type mismatch, tag: "+e+", get type: "+r.type+".")},i.JceInputStream.prototype.readString2=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();if(r.type==i.DataHelp.EN_STRING1)return this.buf.readBytes(this.buf.readUInt8());if(r.type==i.DataHelp.EN_STRING4)return this.buf.readBytes(this.buf.readUInt32());throw Error("read 'string2' type mismatch, tag: "+e+", get type: "+r.type+".")},i.JceInputStream.prototype.readBytes=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();if(r.type==i.DataHelp.EN_SIMPLELIST){var a=this.readFrom();if(a.type!=i.DataHelp.EN_INT8)throw Error("type mismatch, tag:"+e+",type:"+r.type+","+a.type);var s=this.readInt32(0,!0);if(s<0)throw Error("invalid size, tag:"+e+",type:"+r.type+","+a.type);return this.buf.readBytes(s)}if(r.type==i.DataHelp.EN_LIST){var s=this.readInt32(0,!0);return this.buf.readBytes(s)}throw Error("type mismatch, tag:"+e+",type:"+r.type)},i.JceInputStream.prototype.readVector=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();if(r.type!=i.DataHelp.EN_LIST)throw Error("read 'vector' type mismatch, tag: "+e+", get type: "+r.type);var a=this.readInt32(0,!0);if(a<0)throw Error("invalid size, tag: "+e+", type: "+r.type+", size: "+a);for(var s=0;s<a;++s)n.value.push(n.proto._read(this,0,n.proto._clone()));return n},i.JceInputStream.prototype.readMap=function(e,t,n){if(!1==this.skipToTag(e,t))return n;var r=this.readFrom();if(r.type!=i.DataHelp.EN_MAP)throw Error("read 'map' type mismatch, tag: "+e+", get type: "+r.type);var a=this.readInt32(0,!0);if(a<0)throw Error("invalid map, tag: "+e+", size: "+a);for(var s=0;s<a;s++){var l=n.kproto._read(this,0,n.kproto._clone()),u=n.vproto._read(this,1,n.vproto._clone());n.put(l,u)}return n},i.Wup=function(){this.iVersion=3,this.cPacketType=0,this.iMessageType=0,this.iRequestId=0,this.sServantName="",this.sFuncName="",this.sBuffer=new i.BinBuffer,this.iTimeout=0,this.context=new i.Map(new i.STRING,new i.STRING),this.status=new i.Map(new i.STRING,new i.STRING),this.newdata=new i.Map(new i.STRING,new i.BinBuffer),this.iStream=new i.JceInputStream,this.oStream=new i.JceOutputStream},i.Wup.prototype.hasKey=function(e){return this.newdata.hasKey(e)},i.Wup.prototype.setVersion=function(e){this.iVersion=e},i.Wup.prototype.getVersion=function(e){return this.iVersion},i.Wup.prototype.setServant=function(e){this.sServantName=e},i.Wup.prototype.setFunc=function(e){this.sFuncName=e},i.Wup.prototype.setRequestId=function(e){this.iRequestId=e||++this.iRequestId},i.Wup.prototype.getRequestId=function(){return this.iRequestId},i.Wup.prototype.setTimeOut=function(e){this.iTimeout=e},i.Wup.prototype.getTimeOut=function(){return this.iTimeout},i.Wup.prototype.writeTo=function(){var e=this.oStream.clear();return e.writeInt16(1,this.iVersion),e.writeInt8(2,this.cPacketType),e.writeInt32(3,this.iMessageType),e.writeInt32(4,this.iRequestId),e.writeString(5,this.sServantName),e.writeString(6,this.sFuncName),e.writeBytes(7,this.sBuffer),e.writeInt32(8,this.iTimeout),e.writeMap(9,this.context),e.writeMap(10,this.status),new i.BinBuffer(e.getBuffer())},i.Wup.prototype.encode=function(){var e=this.oStream.clear();e.writeMap(0,this.newdata),this.sBuffer=e.getBinBuffer();var t=this.writeTo(),n=new i.BinBuffer;return n.writeInt32(4+t.len),n.writeBytes(t),n},i.Wup.prototype.writeBoolean=function(e,t){var n=this.oStream.clear();n.writeBoolean(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeInt8=function(e,t){var n=this.oStream.clear();n.writeInt8(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeInt16=function(e,t){var n=this.oStream.clear();n.writeInt16(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeInt32=function(e,t){var n=this.oStream.clear();n.writeInt32(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeInt64=function(e,t){var n=this.oStream.clear();n.writeInt64(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeFloat=function(e,t){var n=this.oStream.clear();n.writeFloat(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeDouble=function(e,t){var n=this.oStream.clear();n.writeDouble(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeString=function(e,t){var n=this.oStream.clear();n.writeString(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeVector=function(e,t){var n=this.oStream.clear();n.writeVector(0,t),this.newdata.put(e,new i.BinBuffer(n.getBinBuffer()))},i.Wup.prototype.writeStruct=function(e,t){var n=this.oStream.clear();n.writeStruct(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeBytes=function(e,t){var n=this.oStream.clear();n.writeBytes(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.writeMap=function(e,t){var n=this.oStream.clear();n.writeMap(0,t),this.newdata.put(e,new i.BinBuffer(n.getBuffer()))},i.Wup.prototype.readFrom=function(e){this.iVersion=e.readInt16(1,!0),this.cPacketType=e.readInt8(2,!0),this.iMessageType=e.readInt32(3,!0),this.iRequestId=e.readInt32(4,!0),this.sServantName=e.readString(5,!0),this.sFuncName=e.readString(6,!0),this.sBuffer=e.readBytes(7,!0),this.iTimeout=e.readInt32(8,!0),this.context=e.readMap(9,!0,this.context),this.status=e.readMap(10,!0,this.status)},i.Wup.prototype.decode=function(e){var t=this.iStream.setBuffer(e);if(4>t.buf.vew.getInt32(t.buf.position))throw Error("packet length too short");t.buf.position+=4,this.readFrom(t),t=this.iStream.setBuffer(this.sBuffer.getBuffer()),this.newdata.clear(),t.readMap(0,!0,this.newdata)},i.Wup.prototype.readBoolean=function(e){var t,n;if(void 0==(t=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return this.iStream.setBuffer(t.buffer).readBoolean(0,!0,n)},i.Wup.prototype.readInt8=function(e){var t,n;if(void 0==(t=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return this.iStream.setBuffer(t.buffer).readInt8(0,!0,n)},i.Wup.prototype.readInt16=function(e){var t,n;if(void 0==(t=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return this.iStream.setBuffer(t.buffer).readInt16(0,!0,n)},i.Wup.prototype.readInt32=function(e){var t,n;if(void 0==(t=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return this.iStream.setBuffer(t.buffer).readInt32(0,!0,n)},i.Wup.prototype.readInt64=function(e){var t,n;if(void 0==(t=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return this.iStream.setBuffer(t.buffer).readInt64(0,!0,n)},i.Wup.prototype.readFloat=function(e){var t,n;if(void 0==(t=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return this.iStream.setBuffer(t.buffer).readFloat(0,!0,n)},i.Wup.prototype.readDouble=function(e){var t;if(void 0==(t=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return def=this.iStream.setBuffer(t.buffer).readDouble(0,!0,def)},i.Wup.prototype.readVector=function(e,t,n){var r;if(void 0==(r=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return t=this.iStream.setBuffer(r.buffer).readVector(0,!0,t)},i.Wup.prototype.readStruct=function(e,t,n){var r;if(void 0==(r=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return t=this.iStream.setBuffer(r.buffer).readStruct(0,!0,t)},i.Wup.prototype.readMap=function(e,t,n){var r;if(void 0==(r=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return t=this.iStream.setBuffer(r.buffer).readMap(0,!0,t)},i.Wup.prototype.readBytes=function(e,t,n){var r;if(void 0==(r=this.newdata.get(e)))throw Error("UniAttribute not found key:"+e);return t=this.iStream.setBuffer(r.buffer).readBytes(0,!0,t)},i.Util=i.Util||{},i.Util.jcestream=function(e,t){if(null!=e&&void 0!=e&&e instanceof ArrayBuffer){t=t||16;for(var n=new Uint8Array(e),r="",i=0;i<n.length;i++)0!=i&&i%t==0?r+="\n":0!=i&&(r+=" "),r+=(n[i]>15?"":"0")+n[i].toString(16)}},i.Util.str2ab=function(e){var t,n=e.length,r=Array(n);for(t=0;t<n;++t)r[t]=e.charCodeAt(t);return new Uint8Array(r).buffer},i.Util.ajax=function(e,t,n,r){var a=new XMLHttpRequest;a.overrideMimeType("text/plain; charset=x-user-defined");var s=function(){4===a.readyState&&(200===a.status||304===a.status?n(i.Util.str2ab(a.response)):r(a.status),a.removeEventListener("readystatechange",s),a=void 0)};a.addEventListener("readystatechange",s),a.open("post",e),a.send(t)};let a=i},362:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{N:()=>_});var i=n(938),a=n(238),s=n(145),l=n(427),u=n(187),c=n(674),d=n(174),f=n(628),h=n(65),p=n(194),m=e([d]);async function g(e){let{siteid:t,id:n}=e.params,r=p.tc.findIndex(e=>e.id==t);return -1==r?{name:"404"}:(e.meta.site=p.tc[r],e.meta.id=n,e.meta.index=r,p.bB.value=r,"douyin"==t&&(0,p.qv)(),!0)}d=(m.then?(await m)():m)[0];let _=(0,i.p7)({history:(0,i.PO)(),routes:[{path:"/",redirect:()=>`/${p.vJ[p.bB.value]}`},{path:"/follow",component:u.Z},{path:"/user",component:f.Z},{path:"/category",redirect:()=>`/${p.vJ[p.bB.value]}/category`},{path:"/search",redirect:()=>`/${p.vJ[p.bB.value]}/search`},{path:"/:siteid",component:c.Z,beforeEnter:g},{path:"/:siteid/category",component:s.Z,beforeEnter:g},{path:"/:siteid/category/:id",component:a.Z,beforeEnter:g},{path:"/:siteid/play/:id",component:d.Z,beforeEnter:g},{path:"/:siteid/search",component:l.Z,beforeEnter:g},{path:"/:pathMatch(.*)*",name:"404",component:h.Z}]});r()}catch(e){r(e)}})},194:function(e,t,n){"use strict";n.d(t,{AO:()=>T,O9:()=>g,R0:()=>_,Sc:()=>w,TP:()=>h,Xu:()=>d,YF:()=>b,bB:()=>y,bg:()=>S,bh:()=>x,cW:()=>E,hk:()=>m,jA:()=>f,ke:()=>k,qv:()=>O,sE:()=>l,tc:()=>s,vJ:()=>u,wJ:()=>a,wK:()=>c});var r=n(547),i=n(595);let a={huya:"虎牙",bilibili:"哔哩",douyu:"斗鱼",douyin:"抖音"},s=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:(0,i.iH)([]),categoryActive:(0,i.iH)(0),recommend:{page:1,hasMore:!0,list:(0,i.iH)([])},search:{page:1,hasMore:!0,list:(0,i.iH)([])},follows:(0,i.qj)(p("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:(0,i.iH)([]),categoryActive:(0,i.iH)(0),recommend:{page:1,hasMore:!0,list:(0,i.iH)([])},search:{page:1,hasMore:!0,list:(0,i.iH)([])},follows:(0,i.qj)(p("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:(0,i.iH)([]),categoryActive:(0,i.iH)(0),recommend:{page:1,hasMore:!0,list:(0,i.iH)([])},search:{page:1,hasMore:!0,list:(0,i.iH)([])},follows:(0,i.qj)(p("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:(0,i.iH)([]),categoryActive:(0,i.iH)(0),recommend:{page:1,hasMore:!0,list:(0,i.iH)([])},search:{page:1,hasMore:!0,list:(0,i.iH)([])},follows:(0,i.qj)(p("bilibili"))}],l={huya:0,douyu:1,douyin:2,bilibili:3},u=["huya","douyu","douyin","bilibili"],c=(0,i.iH)((0,r.rV)("volume",100)),d=(0,i.iH)((0,r.rV)("brightness",100)),f=e=>{c.value=e?Math.min(100,c.value+5):Math.max(0,c.value-5)},h=e=>{d.value=e?Math.min(200,d.value+10):Math.max(50,d.value-10)};function p(e){let t=localStorage.getItem("follows-"+e);return t?JSON.parse(t):{}}let m=(0,i.qj)((0,r.rV)("dm-settings",{canvasOpen:!0,canvasFontsize:18,canvasGap:10,canvasOpacity:100,canvasRows:10,canvasSpeed:2.5,canvasColorOpen:!1,sideOpen:!0,sideFontsize:14,sideGap:2,sideColorOpen:!1,sideClean:100,colors:["#ffffff","#7e22ce","1d4ed8","#be185d","#fcd34d"],blockOpen:!1,blockWords:""}));(0,i.m0)(()=>{(0,r.LS)("dm-settings",m)});let g=["#ffffff","#000000","#374151","#b91c1c","#f87171","#fdba74","#c2410c","#fcd34d","#b45309","#bef264","#4d7c0f","#86efac","#15803d","#5eead4","#0f766e","#67e8f9","#0e7490","#93c5fd","#1d4ed8","#d8b4fe","#7e22ce","#f0abfc","#a21caf","#f9a8d4","#be185d","#fda4af","#be123c"],_=(0,i.Fl)(()=>0==m.blockWords.length?[]:m.blockWords.split(" ").map(e=>new RegExp(e))),y=(0,i.iH)(0),b=(0,i.iH)((0,r.rV)("show-chat",!0)),w=(0,i.iH)((0,r.rV)("show-aside",!0));(0,i.m0)(()=>(0,r.LS)("show-chat",b.value)),(0,i.m0)(()=>(0,r.LS)("show-aside",w.value));let k=(0,r.UI)(s,e=>({name:e.name,list:(0,i.Fl)(()=>Object.values(e.follows).sort(e=>e.status?-1:0))}));k.unshift({name:"全部",list:(0,i.Fl)(()=>s.map(e=>Object.values(e.follows)).flat().sort(e=>e.status?-1:0))});let x=(0,i.qj)((0,r.rV)("login-info",{user:{},token:""})),S=(0,i.Fl)(()=>!!x.token),E=(0,i.iH)(!0),T=(0,i.iH)(localStorage.getItem("last-sync")),A=(0,i.iH)(!1),O=()=>{if(A.value)return;let e=document.createElement("iframe");e.src="https://live.douyin.com",e.style.position="absolute",e.style.width="0",e.style.height="0",e.style.zIndex="-1",e.style.border="0",e.style.display="none",document.body.appendChild(e),setTimeout(()=>document.body.removeChild(e),5e3),A.value=!0}},157:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(595),i=n(194),a=n(938);let s={class:"text-sm pos-fixed bottom-0 left-0 right-0 md:py-2 b-t-solid b b-gray-7 md:b-r-solid md:top-0 md:right-auto flex justify-around md:flex-col md:justify-left dark:bg-dark-7 z-10"},l={class:"h-full scrolly md:px-3"},u=(0,r.aZ)({__name:"App",setup(e){let t=[{icon:"i-ri-home-smile-line",link:"/"},{icon:"i-ri-apps-2-line",link:"/category"},{icon:"i-ri-heart-line",link:"/follow"},{icon:"i-ri-search-line",link:"/search"},{icon:"i-ri-user-smile-line",link:"/user"}];(0,r.bv)(async()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`});let n=(0,a.yj)();return(0,r.YP)(n,()=>{let e=n.params.siteid;if(void 0==e)return;let t=i.vJ.findIndex(t=>t==e);-1!=t&&(i.bB.value=t)}),(0,r.m0)(()=>{document.querySelectorAll(".v-toast").forEach(e=>{e.style.left=i.Sc?"70px":"0"})}),(e,n)=>{let a=(0,r.up)("router-link"),u=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.wy)((0,r._)("div",s,[((0,r.wg)(),(0,r.iD)(r.HY,null,(0,r.Ko)(t,t=>(0,r.Wm)(a,{to:t.link,class:(0,r.C_)(["hover:text-amber rounded-2 py-2 px-4 m-2",{"text-amber":e.$route.path==t.link}])},{default:(0,r.w5)(()=>[(0,r._)("div",{class:(0,r.C_)(t.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[r.F8,(0,r.SU)(i.Sc)]]),(0,r._)("main",{class:(0,r.C_)(["md:!h-100vh mx-2 md:mx-0 pt-2 box-border",{"md:ml-17.5":(0,r.SU)(i.Sc),"!h-100vh":!(0,r.SU)(i.Sc)}])},[(0,r._)("div",l,[(0,r.Wm)(u,null,{default:(0,r.w5)(e=>{let{Component:t}=e;return[((0,r.wg)(),(0,r.j4)(r.Ob,{exclude:["play"]},[((0,r.wg)(),(0,r.j4)((0,r.LL)(t)))],1024))]}),_:1})])],2)],64)}}})},462:function(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(595),i=n(547);let a=e=>{let t=(0,r.iH)(e);return[t,e=>t.value=e]},s=/scroll|auto|overlay/i,l={key:0,class:"text-center"},u={key:1,class:"text-center"},c=(0,r.aZ)({__name:"list",props:{finshedText:{default:"没有更多了"},errorText:{default:"加载失败,点击重新加载"},immediate:{type:Boolean,default:!0},offset:{default:50}},emits:["load","refresh"],setup(e,t){let n,{emit:c}=t,d=(0,r.iH)(0),[f,h]=a("normal"),p=(0,r.iH)(),m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,n=(0,r.iH)();return(0,r.bv)(()=>{e.value&&(n.value=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,r=e;for(;r&&r!==n&&"HTML"!==(t=r).tagName&&"BODY"!==t.tagName&&1===t.nodeType;){let{overflowY:e}=window.getComputedStyle(r);if(s.test(e))return r;r=r.parentNode}return n}(e.value,t))}),n}(p),g=()=>{d.value=m.value.scrollTop,"normal"==f.value&&m.value.scrollHeight-m.value.clientHeight-m.value.scrollTop<e.offset&&y()};(0,r.bv)(()=>{e.immediate&&y(),m.value.addEventListener("scroll",g,{passive:!0})}),(0,r.dl)(()=>{m.value.scrollTop=d.value,m.value.addEventListener("scroll",g)});let _=()=>{m.value.removeEventListener("scroll",g)};(0,r.se)(_),(0,r.Jd)(_);let y=()=>{h("loading"),c("load",h),clearTimeout(n),n=setTimeout(()=>{(0,i.ZC)(m.value)||c("load",h)},2e3)};return(t,n)=>((0,r.wg)(),(0,r.iD)("div",{ref_key:"root",ref:p,class:"h-full select-none"},[(0,r.WI)(t.$slots,"default"),"loading"==(0,r.SU)(f)?((0,r.wg)(),(0,r.iD)("div",l,"加载中...")):"finshed"==(0,r.SU)(f)?((0,r.wg)(),(0,r.iD)("div",u,(0,r.zw)(e.finshedText),1)):"loaderror"==(0,r.SU)(f)?((0,r.wg)(),(0,r.iD)("div",{key:2,class:"text-center cursor-pointer",onClick:y},(0,r.zw)(e.errorText),1)):(0,r.kq)("",!0)],512))}})},780:function(e,t,n){"use strict";n.d(t,{Z:()=>k});var r=n(595),i=n(194),a=n(244);let s={key:0,ref:"root",class:"grid gap-4 p-2 justify-evenly cursor-pointer select-none grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"},l={class:"room-item-info shadow rounded-2 b-2px b-solid b-transparent pos-relative overflow-hidden"},u={class:"pos-relative text-fuchsia-5 rounded-t-2 w-full aspect-video"},c={class:"mx-auto h-full rounded-2 select-none block"},d={class:"pos-absolute bottom-0 right-0 px-2 py-1 rounded-tl-2 bg-dark-6"},f={class:"line-height-none pos-absolute top-0 right-0 px-1 py-1 rounded-tr-1 rounded-bl-2 bg-dark-6"},h={key:0,class:"rounded-2 text-white pos-absolute text-8 top-0 bottom-0 left-0 right-0 flex justify-center items-center bg-gray-7 bg-op-80"},p={class:"px-2 text-truncate leading-normal"},m={class:"px-2 pb-2 mt-1 flex items-center justify-between"},g={class:"flex items-center grow"},_=["src"],y={class:"text-truncate mx-1 w-2 grow"},b=["onClick"],w={key:1,class:"px-2 text-truncate leading-normal pb-2"},k=(0,r.aZ)({__name:"rooms",props:{list:{},remove:{type:Boolean}},setup:e=>(e,t)=>{let n=(0,r.up)("router-link"),k=(0,r.Q2)("lazy");return e.list.value.length>0?((0,r.wg)(),(0,r.iD)("div",s,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.list.value,s=>((0,r.wg)(),(0,r.j4)(n,{to:`/${s.siteId}/play/${s.roomId}`,key:`${s.siteId}-${s.roomId}`,class:"room-item"},{default:(0,r.w5)(()=>[(0,r._)("div",l,[(0,r._)("div",u,[(0,r.wy)((0,r._)("img",c,null,512),[[k,s.cover]]),(0,r._)("div",d,(0,r.zw)(s.category),1),(0,r._)("div",f,[t[0]||(t[0]=(0,r._)("div",{class:"i-mdi-fire"},null,-1)),(0,r._)("span",null,(0,r.zw)(s.online),1)]),s.status?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",h," 未开播 "))]),(0,r._)("div",p,(0,r.zw)(s.title),1),e.remove?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r._)("div",m,[(0,r._)("div",g,[(0,r._)("img",{src:s.avatar,alt:"",class:"w-6 h-6 rounded-4"},null,8,_),(0,r._)("div",y,(0,r.zw)(s.nickname),1)]),(0,r._)("div",null,(0,r.zw)((0,r.SU)(i.wJ)[s.siteId]),1)]),(0,r._)("div",{class:"pos-absolute z-1 left-0 top-0 p-2 text-green-5 hover:text-rose-5",onClick:(0,r.iM)(e=>(0,r.SU)(a.HO)(s),["prevent"])},t[1]||(t[1]=[(0,r._)("div",{class:"w-8 h-8 i-mdi-heart-off-outline"},null,-1)]),8,b)],64)):((0,r.wg)(),(0,r.iD)("div",w,(0,r.zw)(s.nickname),1))])]),_:2},1032,["to"]))),128))],512)):(0,r.kq)("",!0)}})},102:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(595);let i={key:0,class:"z-1 fixed top-0 bottom-0 left-0 right-0 bg-transparent","data-index":"-1"},a={class:"p-1 hover:text-amber","data-index":"-1"},s={class:"left-50% text-center z-1 pos-absolute top-0 w-max",style:{transform:"translate3d(-50%,-100%,0)"}},l=["data-index"],u=(0,r.aZ)({__name:"select",props:(0,r.Vf)(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(e){let t=(0,r.tT)(e,"active"),n=(0,r.iH)(!1),u=e=>{let r=e.target.dataset.index;r&&("-1"!=r&&(t.value=parseInt(r)),n.value=!n.value)};return(c,d)=>((0,r.wg)(),(0,r.iD)("div",{onClick:u,class:"inline-block pos-relative cursor-pointer text-center"},[(0,r.SU)(n)?((0,r.wg)(),(0,r.iD)("div",i)):(0,r.kq)("",!0),(0,r._)("div",a,(0,r.zw)(e.list[t.value]),1),(0,r.wy)((0,r._)("div",s,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.list,(e,n)=>((0,r.wg)(),(0,r.iD)("div",{"data-index":n,class:(0,r.C_)([{"text-amber":n==t.value},"p-1 hover:text-amber"])},(0,r.zw)(e),11,l))),256))],512),[[r.F8,(0,r.SU)(n)]])]))}})},85:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(595),i=n(680);let a=(0,r.aZ)({__name:"slider",props:(0,r.Vf)({max:{default:100},min:{default:0},width:{default:30},height:{default:100}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(e){let t,n=(0,r.tT)(e,"value"),a=(0,r.iH)(),s=e.width<e.height,l=e=>{e.stopPropagation(),d(e),document.addEventListener("mousemove",d,!0),document.addEventListener("mouseup",f,!0)},u=(0,r.Fl)(()=>(n.value-e.min)/(e.max-e.min)*100),c=(0,r.Fl)(()=>{let e=100-u.value,t=`top:${e}%`,n=`left:${e}%`;return s?{loaded:t,indicator:t}:{loaded:`${n};transform:translateX(-100%)`,indicator:n}}),d=r=>{r.stopPropagation(),r=(0,i.Wo)(r);let a=100-(Math.min(s?t.height:t.width,Math.max(0,s?r.clientY-t.y:r.clientX-t.x))/(s?t.height:t.width)*100|0);n.value=((e.max-e.min)*a|0)/100+e.min|0},f=e=>{e.stopPropagation(),document.removeEventListener("mousemove",d,!0),document.removeEventListener("mouseup",f,!0)};return(0,r.bv)(()=>{t=a.value.getBoundingClientRect(),a.value.addEventListener("mousedown",l,!0)}),(0,r.Jd)(()=>{a.value.removeEventListener("mousedown",l,!0)}),(t,n)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,r.C_)(["cursor-pointer flex justify-center",s?" py-4 ":"px-4"]),style:(0,r.j5)({width:`${e.width}px`,height:`${e.height}px`})},[(0,r._)("div",{ref_key:"root",ref:a,onClick:d,class:"w-full h-full pos-relative flex justify-center items-center"},[(0,r._)("div",{class:(0,r.C_)(["bg-gray pos-relative overflow-hidden",s?"h-full w-2px":"w-full h-2px"])},[(0,r._)("div",{class:"w-full bg-amber h-full pos-absolute",style:(0,r.j5)((0,r.SU)(c).loaded)},null,4)],2),(0,r._)("div",{class:(0,r.C_)(["pos-absolute w-12px h-12px bg-amber rounded-2",s?"-mt-6px":"-ml-6px"]),style:(0,r.j5)((0,r.SU)(c).indicator)},null,6)],512)],6))}})},900:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(595);let i={class:"rounded-4 flex bg-gray-7 w-min p-2 py-1 gap-2"},a=(0,r.aZ)({__name:"stepper",props:(0,r.Vf)({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(e){let t=(0,r.tT)(e,"value"),n=()=>t.value=Math.min(t.value+e.step,e.max),a=()=>t.value=Math.max(t.value-e.step,e.min);return(e,s)=>((0,r.wg)(),(0,r.iD)("div",i,[(0,r._)("div",{class:"i-ri-subtract-fill",onClick:a}),(0,r._)("div",null,(0,r.zw)(t.value),1),(0,r._)("div",{class:"i-ri-add-fill",onClick:n})]))}})},550:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(595);let i=(0,r.aZ)({__name:"switch",props:{value:{type:Boolean,required:!0},valueModifiers:{}},emits:["update:value"],setup(e){let t=(0,r.tT)(e,"value");return(e,n)=>((0,r.wg)(),(0,r.iD)("div",{onClick:n[0]||(n[0]=()=>t.value=!t.value),class:(0,r.C_)(["pos-relative w-12 inline-block cursor-pointer rounded-6 h-6",[t.value?"bg-amber":"bg-gray-4"]]),style:{transition:"background-color .3s"}},[(0,r._)("div",{class:"w-6 h-full rounded-6 bg-white",style:(0,r.j5)([{transition:"transform .3s"},t.value?"transform:translateX(1.5rem)":""])},null,4)],2))}})},480:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(595);let i=Symbol("swipe");var a=n(726);let s={class:"w-full h-full shrink-0 pos-relative"},l=(0,r.aZ)({__name:"swipeItem",emits:["inited"],setup(e,t){let{emit:n}=t,l=(0,r.iH)(!1),{parent:u,children:c,index:d}=(0,a.N)(i),f=(0,r.Rr)(),h=(0,r.Fl)(()=>(null==u?void 0:u.active.value)==d.value?(l.value||(l.value=!0,n("inited",d.value)),!0):d.value==(0==u.active.value?c.length-1:u.active.value-1)||d.value==(u.active.value==c.length-1?0:u.active.value+1)),p=(0,r.Fl)(()=>h.value||l.value||!(null==u?void 0:u.props.lazy)?f.default:null);return(e,t)=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",s,[((0,r.wg)(),(0,r.j4)((0,r.LL)((0,r.SU)(p))))],512)),[[r.F8,(0,r.SU)(h)]])}});var u=n(7);let c={class:"scrolly h-full w-full shrink-0"},d=(0,r.aZ)({__name:"tab",props:{title:{},href:{}},emits:["inited"],setup(e,t){let{expose:n,emit:i}=t,s=(0,r.iH)(!1),d=(0,r.Rr)(),{parent:f,index:h,children:p}=(0,a.N)(u.R),m=(0,r.Fl)(()=>(null==f?void 0:f.active.value)==h.value?(s.value||(s.value=!0,i("inited",h.value)),!0):(null==f?void 0:f.props.swipeable)&&(h.value==(0==f.active.value?p.length-1:f.active.value-1)||h.value==(f.active.value==p.length-1?0:f.active.value+1))),g=(0,r.Fl)(()=>m.value||(null==f?void 0:f.props.swipeable)||s.value||!(null==f?void 0:f.props.lazy)?d.default:null);return n({title:e.title}),(e,t)=>{var n,i;return(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",c,[(null==(n=(0,r.SU)(f))?void 0:n.props.swipeable)?((0,r.wg)(),(0,r.j4)(l,{key:0},{default:(0,r.w5)(()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)((0,r.SU)(g))))]),_:1})):((0,r.wg)(),(0,r.j4)((0,r.LL)((0,r.SU)(g)),{key:1}))],512)),[[r.F8,(0,r.SU)(m)||(null==(i=(0,r.SU)(f))?void 0:i.props.swipeable)]])}}})},883:function(e,t,n){"use strict";n.d(t,{Z:()=>f});var r=n(595),i=n(7),a=n(726),s=n(547);let l={class:"h-full box-border"},u={class:"w-full box-border text-sm sm:text-base"},c=["onClick"],d={class:"h-[calc(100%-2rem)] scrolly box-border pt-1"},f=(0,r.aZ)({__name:"tabs",props:(0,r.Vf)({link:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},grow:{type:Boolean,default:!1},swipeable:{type:Boolean,default:!1},swipeloop:{type:Boolean,default:!0},justify:{default:"justify-center"}},{active:{default:0},activeModifiers:{}}),emits:(0,r.Vf)(["tabClick"],["update:active"]),setup(e,t){let{emit:n}=t,f=(0,r.tT)(e,"active"),h=e=>{f.value=e,n("tabClick",e)},p=(0,a.$)(i.R,{active:f,props:e}),m=(0,r.Fl)(()=>(0,s.UI)(p,e=>e.title)),g=(0,r.Rr)();return(t,n)=>{let i=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",l,[(0,r._)("div",u,[(0,r._)("div",{class:(0,r.C_)(["flex p1 sm:gap-1 text-center h-8 box-border lg:justify-center scrollx",[(0,r.SU)(p).length>5||t.grow?"":t.justify]])},[e.link?((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)((0,r.SU)(m),(e,n)=>((0,r.wg)(),(0,r.j4)(i,{class:(0,r.C_)(["px-1 sm:px-2 box-border shrink-0 rounded py-1 line-height-none text-centercursor-pointer hover:text-amber cursor-pointer",{"text-amber":f.value==n,grow:t.grow}]),to:(0,r.SU)(p)[n].href},{default:(0,r.w5)(()=>[(0,r.Uk)((0,r.zw)(e),1)]),_:2},1032,["class","to"]))),256)):((0,r.wg)(!0),(0,r.iD)(r.HY,{key:1},(0,r.Ko)((0,r.SU)(m),(e,n)=>((0,r.wg)(),(0,r.iD)("a",{class:(0,r.C_)(["px-1 sm:px-2 box-border shrink-0 rounded py-1 line-height-none text-centercursor-pointer hover:text-amber cursor-pointer",{"text-amber":f.value==n,grow:t.grow}]),onClick:e=>h(n)},(0,r.zw)(e),11,c))),256))],2)]),(0,r._)("div",d,[((0,r.wg)(),(0,r.j4)((0,r.LL)(g.default)))])])}}})},65:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(595);let i={class:"h-full flex justify-center items-center"},a=(0,n(744).default)({},[["render",function(e,t){return(0,r.wg)(),(0,r.iD)("div",i,t[0]||(t[0]=[(0,r._)("div",{class:"text-center text-8 line-height-8"},[(0,r._)("div",{class:"font-900"},"404"),(0,r._)("div",{class:"mt-4"},"页面未找到")],-1)]))}]])},145:function(e,t,n){"use strict";n.d(t,{Z:()=>h});var r=n(883),i=n(480),a=n(595),s=n(194),l=n(760);let u={key:0,class:"text-center"},c={class:"pb-2 grid gap-4 px-4 md:px-2 grid-cols-4 sm:grid-cols-6 md:grid-cols-8 lg:grid-cols-10 xl:grid-cols-15 2xl:grid-cols-18"},d={class:"w-full aspect-ratio-square rounded"},f={class:"w-full text-truncate text-xs md:text-sm text-center"},h=(0,a.aZ)({__name:"category",setup(e){let t=(0,a.Fl)(()=>s.tc[s.bB.value].id),n=(0,a.iH)(),h=e=>{s.tc[e].categories.value.length||(n.value="加载中...",(0,l.SG)(t.value,"getCategories").then(t=>{n.value=null,s.tc[e].categories.value=t},e=>n.value=e))};return(e,t)=>{let l=(0,a.up)("router-link"),p=i.Z,m=r.Z,g=(0,a.Q2)("lazy");return(0,a.wg)(),(0,a.j4)(m,{active:(0,a.SU)(s.bB),"onUpdate:active":t[0]||(t[0]=e=>(0,a.dq)(s.bB)?s.bB.value=e:null),link:!0,class:"pt-1"},{default:(0,a.w5)(()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,a.SU)(s.tc),e=>((0,a.wg)(),(0,a.j4)(p,{title:e.name,href:`/${e.id}/category`,onInited:h,key:e.id},{default:(0,a.w5)(()=>[(0,a.SU)(n)?((0,a.wg)(),(0,a.iD)("div",u,(0,a.zw)((0,a.SU)(n)),1)):((0,a.wg)(),(0,a.j4)(m,{key:1,active:e.categoryActive.value,"onUpdate:active":t=>e.categoryActive.value=t},{default:(0,a.w5)(()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.categories.value,t=>((0,a.wg)(),(0,a.j4)(p,{title:t.name,key:t.id},{default:(0,a.w5)(()=>[(0,a._)("div",c,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.list,t=>((0,a.wg)(),(0,a.j4)(l,{to:`/${e.id}/category/${t.cid}`,class:"cursor-pointer"},{default:(0,a.w5)(()=>[(0,a.wy)((0,a._)("img",d,null,512),[[g,t.pic]]),(0,a._)("div",f,(0,a.zw)(t.name),1)]),_:2},1032,["to"]))),256))])]),_:2},1032,["title"]))),128))]),_:2},1032,["active","onUpdate:active"]))]),_:2},1032,["title","href"]))),128))]),_:1},8,["active"])}}})},238:function(e,t,n){"use strict";n.d(t,{Z:()=>h});var r=n(462),i=n(780),a=n(595),s=n(244),l=n(938);let u={class:"h-full"},c={class:"py-1 px-2 text-lg text-center relative"},d={class:"hover:text-amber"},f={key:0,class:"h-[calc(100%-3.25rem)] scrolly"},h=(0,a.aZ)({__name:"categoryRooms",setup(e){let t=(0,l.yj)(),n=(0,a.iH)(""),h=(0,a.iH)(),p={list:(0,a.iH)([]),page:1,hasMore:!0},m=e=>{let{site:r,id:i}=t.meta;(0,s.SG)(r.id,"getCategoryRooms",{id:i,pid:h.value,page:p.page}).then(t=>{if(p.list.value=p.list.value.concat(t.list),p.hasMore=t.hasMore,!t.hasMore)return e("finshed");p.page++,e("normal")},t=>{n.value=t,e("loaderror")})},g=(0,a.iH)(!1),_=()=>{document.querySelector("#goTop").click(),g.value=!0;let{site:e,id:r}=t.meta;(0,s.SG)(e.id,"getCategoryRooms",{id:r,pid:h.value,page:p.page}).then(e=>{p.list.value=e.list,p.hasMore=e.hasMore,p.page++},e=>{n.value=e}).finally(()=>g.value=!1)},y=t.fullPath;return(0,s.Aw)(t.meta.site,t.meta.id).then(e=>{n.value=(null==e?void 0:e.name)||null,h.value=null==e?void 0:e.pid}),(0,a.dl)(function(){y!=t.fullPath&&(y=t.fullPath,(0,s.Aw)(t.meta.site,t.meta.id).then(e=>{n.value=(null==e?void 0:e.name)||null,h.value=null==e?void 0:e.pid}),p.list.value=[],p.page=1,p.hasMore=!0)}),(e,s)=>{var l;let h=i.Z,b=r.Z;return(0,a.wg)(),(0,a.iD)("div",u,[(0,a._)("div",c,[(0,a._)("div",{onClick:s[0]||(s[0]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.$router.back&&e.$router.back(...n)}),class:"i-ri-arrow-left-line hover:text-amber absolute left-2"}),(0,a._)("div",{onClick:_,class:(0,a.C_)(["i-ri-refresh-line hover:text-amber absolute right-4 md:right-unset md:left-12",{"animate-spin":(0,a.SU)(g)}])},null,2),(0,a._)("span",d,(0,a.zw)(`${null==(l=(0,a.SU)(t).meta.site)?void 0:l.name} ${null==(0,a.SU)(n)?"分区不存在":""==(0,a.SU)(n)?"加载中":(0,a.SU)(n)}`),1)]),(0,a.SU)(n)?((0,a.wg)(),(0,a.iD)("div",f,[((0,a.wg)(),(0,a.j4)(b,{key:(0,a.SU)(y),onLoad:m},{default:(0,a.w5)(()=>[(0,a.Wm)(h,{list:p.list},null,8,["list"])]),_:1}))])):(0,a.kq)("",!0)])}}})},187:function(e,t,n){"use strict";n.d(t,{Z:()=>p});var r=n(883),i=n(480),a=n(462),s=n(780),l=n(595),u=n(194),c=n(547),d=n(760);let f={class:"flex justify-center items-center"},h={class:"h-[calc(100%-3rem)]"},p=(0,l.aZ)({__name:"follow",setup(e){let t=(0,l.iH)(0),n=(0,l.iH)(!1),p=()=>{var e;if(n.value)return;let r=t.value;return n.value=!0,0==r?Promise.all((0,c.UI)(u.tc,d.OO)).finally(m):null==(e=(0,d.OO)(u.tc[r-1]))?void 0:e.finally(m)},m=()=>setTimeout(()=>n.value=!1,300);(0,l.YP)(u.cW,()=>{!0!=u.cW.value&&p()},{immediate:!0});let g=e=>e("finshed");return(e,c)=>{let d=s.Z,m=a.Z,_=i.Z,y=r.Z;return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",f,[c[1]||(c[1]=(0,l._)("div",null,"我的关注",-1)),(0,l._)("div",{onClick:p,class:(0,l.C_)(["rounded-6 mx-4 hover:text-amber i-ri-refresh-line",{"animate-spin":(0,l.SU)(n)}])},null,2)]),(0,l._)("div",h,[(0,l.Wm)(y,{active:(0,l.SU)(t),"onUpdate:active":c[0]||(c[0]=e=>(0,l.dq)(t)?t.value=e:null)},{default:(0,l.w5)(()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,l.SU)(u.ke),e=>((0,l.wg)(),(0,l.j4)(_,{title:e.name},{default:(0,l.w5)(()=>[(0,l.Wm)(m,{onLoad:g,"finshed-text":""},{default:(0,l.w5)(()=>[(0,l.Wm)(d,{list:e.list,remove:!0},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}})},674:function(e,t,n){"use strict";n.d(t,{Z:()=>d});var r=n(883),i=n(480),a=n(462),s=n(780),l=n(595),u=n(194),c=n(244);let d=(0,l.aZ)({__name:"index",setup(e){let t=(0,l.Fl)(()=>u.tc[u.bB.value].id),n=e=>{let n=u.tc[u.bB.value].recommend;(0,c.SG)(t.value,"getRecommendRooms",{page:n.page}).then(t=>{if(n.list.value=n.list.value.concat(t.list),n.hasMore=t.hasMore,!n.hasMore)return e("finshed");n.page++,e("normal")},()=>e("loaderror"))};return(e,t)=>{let c=s.Z,d=a.Z,f=i.Z,h=r.Z;return(0,l.wg)(),(0,l.j4)(h,{active:(0,l.SU)(u.bB),"onUpdate:active":t[0]||(t[0]=e=>(0,l.dq)(u.bB)?u.bB.value=e:null),link:!0,class:"pt-1"},{default:(0,l.w5)(()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,l.SU)(u.tc),e=>((0,l.wg)(),(0,l.j4)(f,{href:`/${e.id}`,key:e.id,title:e.name,class:"pos-relative"},{default:(0,l.w5)(()=>[(0,l.Wm)(d,{onLoad:n,class:"h-full"},{default:(0,l.w5)(()=>[(0,l.Wm)(c,{list:e.recommend.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["href","title"]))),128))]),_:1},8,["active"])}}})},174:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:()=>s});var i=n(887),a=e([i]);let s=(i=(a.then?(await a)():a)[0]).Z;r()}catch(e){r(e)}})},427:function(e,t,n){"use strict";n.d(t,{Z:()=>_});var r=n(883),i=n(480),a=n(462),s=n(780),l=n(595),u=n(194),c=n(244),d=n(938);let f={class:"text-center py-1"},h={class:"w-60% max-w-md pos-relative inline-block"},p={class:"h-[calc(100%-3rem)]"},m={key:1},g={key:1},_=(0,l.aZ)({__name:"search",setup(e){let t=(0,l.iH)(""),n=(0,l.Fl)(()=>u.tc[u.bB.value]),_=(0,l.iH)(),y=()=>{if(!t.value)return Promise.resolve();let e=n.value.search;e.list.value=[],e.page=1,e.hasMore=!0,_.value="搜索中...";let r=n.value.id;return(0,c.SG)(r,"searchRooms",{page:e.page,kw:t.value}).then(t=>{e.list.value=t.list,e.hasMore=t.hasMore,e.page+=1,_.value="finished"},e=>_.value=e)},b=e=>{let r=n.value.search,i=n.value.id;e("loading"),(0,c.SG)(i,"searchRooms",{page:r.page,kw:t.value}).then(t=>{if(r.list.value=r.list.value.concat(t.list),r.hasMore=t.hasMore,!r.hasMore)return e("finshed");r.page+=1,e("normal")},t=>{e("loaderror")})},w=e=>{k.push(`/${u.vJ[e]}/search`),x()||1==u.tc[e].search.page&&y()},k=(0,d.tv)(),x=()=>{if(t.value)return!!/^[\d]*$/.test(t.value)&&(k.push(`/play/${n.value.id}/${t.value}`),!0)},S=()=>{x()||(u.tc.forEach(e=>e.search.page=1),y())};return(e,n)=>{let c=s.Z,d=a.Z,y=i.Z,k=r.Z;return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",f,[(0,l._)("div",h,[(0,l.wy)((0,l._)("input",{class:"md:text-4 box-border w-full py-2.5 pl-3 pr-9 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>(0,l.dq)(t)?t.value=e:null),onKeydown:(0,l.D2)(S,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[l.nr,(0,l.SU)(t),void 0,{trim:!0}]]),(0,l._)("div",{class:"i-ri-search-line top-50% absolute right-3",onClick:S,style:{transform:"translateY(-50%)"}})])]),(0,l._)("div",p,[(0,l.Wm)(k,{active:(0,l.SU)(u.bB),"onUpdate:active":n[1]||(n[1]=e=>(0,l.dq)(u.bB)?u.bB.value=e:null),onTabClick:w},{default:(0,l.w5)(()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,l.SU)(u.tc),e=>((0,l.wg)(),(0,l.j4)(y,{title:e.name,key:e.id},{default:(0,l.w5)(()=>["finished"==(0,l.SU)(_)?((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[e.search.list.value.length?((0,l.wg)(),(0,l.j4)(d,{key:0,onLoad:b},{default:(0,l.w5)(()=>[(0,l.Wm)(c,{list:e.search.list},null,8,["list"])]),_:2},1024)):((0,l.wg)(),(0,l.iD)("div",m," 什么也没有找到 "))],64)):((0,l.wg)(),(0,l.iD)("div",g,(0,l.zw)((0,l.SU)(_)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}})},628:function(e,t,n){"use strict";n.d(t,{Z:()=>C});var r=n(595),i=n(194),a=n(244),s=n(938),l=n(547),u=n(760);let c={class:"w-full box-border mx-auto md:w-80% max-w-2xl text-3 p-4 pos-relative"},d={class:"flex gap-4 justify-between items-center p-4 md:p-6 b-1px b-solid b-gray-7 rounded-2"},f={class:"py-2 text-4"},h={class:"flex gap-2 text-3"},p={class:"p-4 md:p-6 b-1px b-solid b-gray-7 rounded-2 my-4"},m={class:"text-center text-4"},g={class:"pos-relative w-full mt-6"},_={class:"pos-relative w-full mt-4 mb-6"},y={class:"pos-relative w-full mt-4 mb-6"},b={class:"p-4 md:p-6 b-1px b-solid b-gray-7 rounded-2 my-4"},w=["onClick"],k={class:"p-4 md:p-6 b-1px b-solid b-gray-7 rounded-2 my-4"},x={class:"flex justify-between items-center mt-2 gap-3"},S={class:"pos-relative flex-1"},E={class:"p-6 b-1px b-solid b-gray-7 rounded-2 my-4"},T={class:"my-5 line-height-loose"},A={class:"text-rose mx-2"},O={class:"text-rose mx-2"},I={class:"flex justify-evenly"},C=(0,r.aZ)({__name:"user",setup(e){let t=(0,s.tv)(),n=(0,r.iH)("hide"),C=(0,r.qj)({username:"",password:"",newpassword:""}),U=(0,r.iH)(),D=/^[\u4e00-\u9fa5a-zA-Z0-9]{1,12}$/,R=/^.{0,15}$/,L=async()=>{if("hide"!=n.value){if(!D.test(C.username))return l.Am.warning("账号1到12个字符!");if(!R.test(C.password))return l.Am.warning("密码0到15个字符!");"sign"==n.value?await (0,a.Xx)(C):await (0,a.mc)(C),B()}},B=()=>{C.username="",C.newpassword="",C.password="",n.value="hide"},P=()=>{n.value="hide",C.password="",C.username=""},M=()=>{B(),U.value=null,(0,a.kS)(i.bh.token)},F=()=>{null!=U.value&&(0,a.kS)(U.value.token).finally(()=>U.value=null)},N=e=>{navigator.clipboard.writeText(e.target.innerText).then(()=>l.Am.success("已复制到剪贴板")).catch(()=>l.Am.warning("复制到剪贴板失败"))},j=(0,r.iH)(""),z=(0,r.Fl)(()=>j.value.match(/(huya|douyu|douyin|bilibili)\.com\/([a-zA-Z0-9]*)$/)),H=()=>{if(null==z.value)return l.Am.info("链接错误");t.push(`/${z.value[1]}/play/${z.value[2]}`)},G=async()=>{if(null==z.value)return l.Am.info("链接错误");let e=await (0,u.SG)(z.value[1],"getLiveStatus",{id:z.value[2]});return(0,a.R3)(e[z.value[2]])};return(e,t)=>{var s,l;return(0,r.wg)(),(0,r.iD)("div",c,[(0,r._)("div",d,[(0,r._)("div",f,(0,r.zw)((0,r.SU)(i.bh).user.username||"未登录"),1),(0,r._)("div",h,[(0,r.wy)((0,r._)("div",{onClick:t[0]||(t[0]=e=>n.value="sign"),class:"cursor-pointer text-black bg-green hover:bg-green-7 py-2 px-2 md:px-4 rounded-6"},"登录 / 注册",512),[[r.F8,"hide"==(0,r.SU)(n)&&!(0,r.SU)(i.bg)]]),(0,r.wy)((0,r._)("div",{onClick:t[1]||(t[1]=e=>n.value="reset"),class:"cursor-pointer text-black bg-green hover:bg-green-7 py-2 px-2 md:px-4 rounded-6"}," 修改密码 ",512),[[r.F8,"hide"==(0,r.SU)(n)&&(0,r.SU)(i.bg)]]),(0,r.wy)((0,r._)("div",{onClick:M,class:"cursor-pointer text-black bg-green hover:bg-green-7 py-2 px-2 md:px-4 rounded-6"},"退出登录",512),[[r.F8,(0,r.SU)(i.bg)]]),(0,r.wy)((0,r._)("div",{onClick:t[2]||(t[2]=()=>(0,r.SU)(a.Z_)(!0)),class:"cursor-pointer text-black bg-green hover:bg-green-7 py-2 px-2 md:px-4 rounded-6"},"立即同步",512),[[r.F8,(0,r.SU)(i.bg)]])])]),(0,r.Wm)(r.uT,null,{default:(0,r.w5)(()=>[(0,r.wy)((0,r._)("div",p,[(0,r._)("div",m,(0,r.zw)("sign"==(0,r.SU)(n)?"登录 / 注册":"修改密码"),1),(0,r._)("div",g,[(0,r.wy)((0,r._)("input",{class:"md:text-4 box-border w-full py-3 px-12 focus:b-green text-white bg-transparent b-1 b-style-groove b-gray-7 rounded-6 outline-none",type:"text","onUpdate:modelValue":t[3]||(t[3]=e=>(0,r.SU)(C).username=e),placeholder:"请输入账号"},null,512),[[r.nr,(0,r.SU)(C).username,void 0,{trim:!0}]]),t[10]||(t[10]=(0,r._)("div",{class:"i-ri-user-smile-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),(0,r._)("div",_,[(0,r.wy)((0,r._)("input",{class:"md:text-4 box-border w-full py-3 px-12 text-white bg-transparent b-1 b-style-groove focus:b-green b-gray-7 rounded-6 outline-none",type:"text","onUpdate:modelValue":t[4]||(t[4]=e=>(0,r.SU)(C).password=e),placeholder:"请输入密码"},null,512),[[r.nr,(0,r.SU)(C).password,void 0,{trim:!0}]]),t[11]||(t[11]=(0,r._)("div",{class:"i-ri-lock-password-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),(0,r.wy)((0,r._)("div",y,[(0,r.wy)((0,r._)("input",{class:"md:text-4 box-border w-full py-3 px-12 text-white bg-transparent b-1 b-style-groove focus:b-green b-gray-7 rounded-6 outline-none",type:"text","onUpdate:modelValue":t[5]||(t[5]=e=>(0,r.SU)(C).newpassword=e),placeholder:"请输入新密码"},null,512),[[r.nr,(0,r.SU)(C).newpassword,void 0,{trim:!0}]]),t[12]||(t[12]=(0,r._)("div",{class:"i-ri-lock-password-line pos-absolute left-4 top-2 bg-gray"},null,-1))],512),[[r.F8,"reset"==(0,r.SU)(n)]]),(0,r._)("div",{class:"flex w-full justify-evenly"},[(0,r._)("div",{onClick:P,class:"cursor-pointer flex gap-2 text-black bg-gray-5 hover:bg-gray-7 py-3 px-8 rounded-6"},"取消"),(0,r._)("div",{onClick:L,class:"cursor-pointer flex gap-2 text-black bg-green-5 hover:bg-green-7 py-3 px-8 rounded-6"},"确定")])],512),[[r.F8,"hide"!=(0,r.SU)(n)]])]),_:1}),(0,r.Wm)(r.uT,null,{default:(0,r.w5)(()=>[(0,r.wy)((0,r._)("div",b,[t[13]||(t[13]=(0,r._)("div",{class:"text-3 md:text-4 mb-3"},"登录设备",-1)),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(i.bh).user.token,e=>((0,r.wg)(),(0,r.iD)("div",{onClick:t=>U.value=e,class:(0,r.C_)([{"c-green":e.token==(0,r.SU)(i.bh).token},"flex cursor-pointer py-3 my-3 rounded-6 hover:op-80 gap-3 justify-between items-center"])},[(0,r._)("div",null,(0,r.zw)(e.agent),1),(0,r._)("div",null,(0,r.zw)(e.domain),1),(0,r._)("div",null,(0,r.zw)(e.time),1)],10,w))),256))],512),[[r.F8,(0,r.SU)(i.bg)||!0]])]),_:1}),(0,r._)("div",k,[t[14]||(t[14]=(0,r._)("div",{class:"text-3 md:text-4 mb-3"},"链接解析",-1)),(0,r._)("div",x,[(0,r._)("div",S,[(0,r.wy)((0,r._)("input",{class:"md:text-4 box-border w-full py-3 px-6 text-white bg-transparent b-1 b-style-groove focus:b-green b-gray-7 rounded-6 outline-none",type:"text","onUpdate:modelValue":t[6]||(t[6]=e=>(0,r.dq)(j)?j.value=e:null),placeholder:"请输入官方链接"},null,512),[[r.nr,(0,r.SU)(j),void 0,{trim:!0}]])]),(0,r._)("div",{class:"flex gap-2"},[(0,r._)("div",{onClick:G,class:"flex-1 cursor-pointer text-black bg-green hover:bg-green-7 h-full py-3 px-5 md:px-6 rounded-6"}," 关注"),(0,r._)("div",{onClick:H,class:"flex-1 cursor-pointer text-black bg-green hover:bg-green-7 py-3 px-5 md:px-6 rounded-6"}," 跳转 ")])])]),t[20]||(t[20]=(0,r.uE)('<div class="p-4 md:p-6 b-1px b-solid b-gray-7 rounded-2 my-4"><div class="text-3 md:text-4 mb-3">支持</div><div class=""><img class="h-40 md:h-50 mr-3" src="https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png"><img class="h-40 md:h-50 mt-2" src="https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg"></div></div><div class="p-4 md:p-6 b-1px b-solid b-gray-7 rounded-2 my-4"><div class="text-3 md:text-4 mb-3">微信菜谱小程序</div><div class=""><img class="h-40 mr-3" src="https://i0.hdslb.com/bfs/article/4e6470b7ed3cf3f7aac6b9615ce57a2b98845873.jpg"></div></div>',2)),(0,r._)("div",E,[t[15]||(t[15]=(0,r._)("div",{class:"text-4 mb"},"域名",-1)),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(a.zp),e=>((0,r.wg)(),(0,r.iD)("div",{class:"text-4 my-2 py-2 cursor-pointer hover:c-green",onClick:N},(0,r.zw)(e),1))),256))]),(0,r._)("div",{class:"p-6 b-1px b-solid b-gray-7 rounded-2 my-4"},[t[16]||(t[16]=(0,r._)("div",{class:"text-4 mb"},"GitHub",-1)),(0,r._)("div",{class:"text-4 my-2 py-2 cursor-pointer hover:c-green",onClick:N},"https://github.com/lemonfog/lemon-live ")]),((0,r.wg)(),(0,r.j4)(r.lR,{to:"body"},[(0,r.wy)((0,r._)("div",{class:(0,r.C_)(["pos-absolute left-0 top-0 right-0 bottom-0 flex justify-center items-center",{"md:ml-17.5":(0,r.SU)(i.Sc)}]),onClick:t[9]||(t[9]=e=>U.value=null)},[(0,r._)("div",{class:"p-4 py-6 md:p-6 max-w-80% box-border bg-gray-7 rounded-2 text-3",onClick:t[8]||(t[8]=(0,r.iM)(()=>{},["stop"]))},[t[19]||(t[19]=(0,r._)("div",{class:"text-4"},"退出登录",-1)),(0,r._)("div",T,[t[17]||(t[17]=(0,r.Uk)(" 确定要登出 ")),(0,r._)("span",A,(0,r.zw)(null==(s=(0,r.SU)(U))?void 0:s.domain),1),(0,r._)("span",O,(0,r.zw)(null==(l=(0,r.SU)(U))?void 0:l.agent),1),t[18]||(t[18]=(0,r.Uk)(" 吗? "))]),(0,r._)("div",I,[(0,r._)("div",{onClick:t[7]||(t[7]=e=>U.value=null),class:"cursor-pointer text-black bg-gray-4 hover:op-50 py-2 px-5 rounded-6"},"取消 "),(0,r._)("div",{onClick:F,class:"cursor-pointer text-black bg-green hover:op-50 py-2 px-5 rounded-6"},"确定")])])],2),[[r.F8,(0,r.SU)(U)]])]))])}}})},887:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:()=>i.Z});var i=n(106),a=e([i]);i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},106:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:()=>ep});var i=n(883),a=n(550),s=n(900),l=n(480),u=n(85),c=n(102),d=n(595),f=n(672),h=n(680),p=n(28),m=n(547),g=n(194),_=n(244),y=n(473),b=n(438),w=n(792),k=n(881),x=n(220),S=n(938),E=n(338),T=n(760),A=e([y]);y=(A.then?(await A)():A)[0];let O={class:"w-full h-full flex flex-col lg:flex-row box-border md:pb-2"},I={class:"lg:grow-5 flex flex-col"},C={class:"flex p-2 pt-1 gap-2 text-lg md:pr-3"},U={class:"hover:text-amber grow w-25 box-border text-center truncate text-4 md:text-5 m-0 pr-6 sm:pr-2 lg:pr-0"},D={class:"aspect-ratio-video"},R={class:"w-full h-full pos-absolute top-0 z-1 flex justify-center items-center text-6"},L=["src"],B={key:0},P={class:"flex items-center gap-4 p-1"},M={class:"flex items-center gap-4 p-1"},F={key:1,class:"h-0 w-0"},N={class:"grow min-h-50 lg:grow-0 lg:w-80 xl:w-100 flex flex-col lg:pr-0 pt-3 lg-pt-12 lg:ml-3 box-border lg:b-l-solid b lg:b-l-gray-7 lg:pl-3"},j={class:"flex items-center line-height-none gap-4 b b-y-solid py-3 b-gray-7 px-4"},z=["src"],H={class:"grow-1 w-20"},G={class:"h-4 truncate"},V={class:"h-4 flex text-3 items-center gap-1"},W=["src"],Z={class:"pos-absolute top-0 right-4 text-4 flex flex-col gap-3"},q=["src"],Y=["href"],J=["data-id","data-site","href"],K={class:"flex items-center gap-2"},$=["src"],X=["onClick"],Q={class:"flex flex-col b b-solid b-gray-6 rounded-2 px-2"},ee={class:"flex justify-between items-center mx-2 py-2"},et={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},en={class:"flex justify-between items-center mx-2 py-2"},er={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},ei={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},ea={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},es={class:"flex flex-col b b-solid b-gray-6 rounded-2 px-2"},eo={class:"flex justify-between items-center mx-2 py-2"},el={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},eu={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},ec={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},ed={class:"flex flex-wrap shadow blur bg-dark p-2 box-border b b-solid b-gray-7 rounded",style:{"box-shadow":"0 6px 15px 0 rgba(0, 0, 0, .5)"}},ef=["data-color"],eh={class:"p-3 flex justify-between items-center"},ep=(0,d.aZ)({__name:"play",setup(e){let t,n,r,A,ep,ev,em,eg,e_=(0,d.qj)({qn:0,line:0,notice:null,paused:!0,muted:!1,fullscreen:!1,webscreen:!1,showController:!0,pictureInPicture:!1}),ey=(0,d.Fl)(()=>!!eb.meta.site.follows[eb.meta.id]),eb=(0,S.yj)(),ew=(0,d.iH)(),ek=(0,d.iH)(),ex=(0,d.iH)(),eS=(0,d.iH)(),eE=(0,d.Fl)(()=>{var e,t;return eS.value&&(null==(t=eS.value)||null==(e=t.stream)?void 0:e.length)>0?eS.value.stream.map(e=>e.name):[]}),eT=(0,d.Fl)(()=>eE.value.length>0?eS.value.stream[e_.qn].lines.map(e=>e.name):[]),eA=(0,d.Fl)(()=>eT.value.length>0?eS.value.stream[e_.qn].lines[e_.line].url:""),eO=(0,d.Fl)(()=>g.tc.map(e=>Object.values(e.follows)).flat().sort(e=>e.status?-1:0)),eI=(0,d.Fl)(()=>{var e;return(null==(e=eS.value)?void 0:e.siteId)=="huya"}),eC=()=>{eI.value&&(A=setInterval(()=>{e_.flv.switchURL(eA.value+(0,m.ic)(eS.value.info),!0)},1e5))};(0,d.YP)(eA,()=>{if(clearInterval(A),!eA.value)return;let e="huya"==eS.value.siteId?eA.value+(0,m.ic)(eS.value.info):eA.value;if(e_.flv){var t;return null==(t=e_.flv)||t.switchURL(e,!0),eC()}if(null===f.x||void 0===f.x?void 0:f.x.isSupported("video")){let t=new f.x({media:ek.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return t.load(e),e_.flv=t,t.on("error",()=>e_.notice="播放失败"),eC()}return e_.notice=`播放失败`,clearTimeout(n)});let eU=()=>{ex.value.scrollTop=0,eF=0,ex.value.innerHTML=""},eD=0,eR=!0,eL=(0,d.iH)(),eB=(0,E.Z)(eL,{gap:g.hk.canvasGap,rows:g.hk.canvasRows,speed:g.hk.canvasSpeed,opacity:g.hk.canvasOpacity,colors:g.hk.canvasColorOpen?g.hk.colors:["#ffffff"]}),eP=[],eM=(e,t)=>{var n;if(eD++,g.hk.blockOpen&&g.R0.value.length&&g.R0.value.some(e=>e.test(t))||(eD%(g.hk.sideClean||100)==0&&(ex.value.innerHTML="",eF=0),g.hk.canvasOpen&&(null==(n=eB.value)||n.add(t)),!g.YF.value||!g.hk.sideOpen))return;let r=document.createElement("div"),{sideColorOpen:i,sideFontsize:a,sideGap:s,colors:l}=g.hk;r.style.margin=`${s}px 0`,r.style.fontSize=`${a}px`,i&&(r.style.color=l[Math.floor(Math.random()*l.length)]);let u=document.createElement("span");u.style.opacity="0.5",u.appendChild(document.createTextNode(e+":"));let c=document.createElement("span");c.appendChild(document.createTextNode(t)),r.appendChild(u),r.appendChild(c),eP.push(r),ev||(ev=setTimeout(()=>{let e=-1,t=eP.length>5?5:eP.length;for(ex.value.style.display="none";++e<t;)ex.value.appendChild(eP[e]);ex.value.style.display="block",eP.splice(0,5),eR&&(ex.value.scrollTop=ex.value.scrollHeight),ev=void 0},200))},eF=0,eN=()=>{if(ex.value.scrollTop>=eF)return eF=ex.value.scrollTop;eF=ex.value.scrollTop,eR=!1,ex.value.removeEventListener("scroll",eN)},ej=()=>{eR=!0,ex.value.scrollTop=ex.value.scrollHeight,ex.value.addEventListener("scroll",eN,{passive:!1})},ez=async()=>{if(ep||!g.hk.canvasOpen&&!g.hk.sideOpen)return;let e=!0;if("huya"==eS.value.siteId){ep=new WebSocket("wss://cdnws.api.huya.com");let t=eS.value.info;ep.binaryType="arraybuffer",ep.onopen=()=>{clearInterval(em),eM("系统","开始连接弹幕服务器"),ex.value.addEventListener("scroll",eN);let e=new b.Z.WSRegisterGroupReq;e.vGroupId.value.push("live:"+t.uid),e.vGroupId.value.push("chat:"+t.uid);let n=new w.Z.JceOutputStream;e.writeTo(n);let r=new b.Z.WebSocketCommand;r.iCmdType=16,r.vData=n.getBinBuffer(),n=new w.Z.JceOutputStream,r.writeTo(n),ep.send(n.getBuffer()),em=setInterval(()=>{try{let i=new b.Z.UserHeartBeatReq;i.lPid=t.yyuid;let a=new b.Z.UserId;a.sHuYaUA="webh5&2106011457&websocket",a.lUid=t.uid,i.tId=a,i.eLineType=1,i.lShortTid=0,i.bWatchVideo=!0,i.eLineType=3,i.iFps=0,i.iAttendee=0,i.iLastHeartElapseTime=0;var e=new w.Z.Wup;e.setServant("onlineui"),e.setFunc("OnUserHeartBeat"),e.writeStruct("tReq",i);var n=new b.Z.WebSocketCommand;n.iCmdType=4,n.vData=e.encode();var r=new w.Z.JceOutputStream;n.writeTo(r),ep.send(r.getBuffer())}catch(e){}},6e4)},ep.onmessage=async t=>{try{e&&(eM("系统","弹幕服务器连接成功"),e=!1);var n=new Uint8Array(t.data).buffer,r=new w.Z.JceInputStream(n),i=new b.Z.WebSocketCommand;if(i.readFrom(r),7!=i.iCmdType)return;r=new w.Z.JceInputStream(i.vData.buf);var a=new b.Z.WSPushMessage;a.readFrom(r);var s=a.iUri;if(r=new w.Z.JceInputStream(a.sMsg.buf),1400!=s)return;var l=new b.Z.MessageNotice;l.readFrom(r),eM(l.tUserInfo.sNickName,l.sContent)}catch(e){}}}else if("douyu"==eS.value.siteId)(ep=new WebSocket("wss://danmuproxy.douyu.com:8506")).onopen=()=>{var e,t;clearInterval(em),eM("系统","开始连接弹幕服务器"),ex.value.addEventListener("scroll",eN),ep.send(eG(`type@=loginreq/roomid@=${null==(e=eS.value)?void 0:e.roomId}`)),ep.send(eG(`type@=joingroup/rid@=${null==(t=eS.value)?void 0:t.roomId}/gid@=-9999`)),em=setInterval(()=>{ep.send(eG("type@=mrkl/"))},45e3)},ep.onmessage=async t=>{let{data:n}=t;e&&(eM("系统","弹幕服务器连接成功"),e=!1),(await n.text()).split(/type@=chatmsg\//).forEach(e=>{let t=e.match(/nn@=(.*)\/txt@=(.*)\/cid/);null!=t&&eM(t[1],t[2])})};else if("douyin"==eS.value.siteId){let t=eS.value.ws.split(","),n=t[0],r=t[1],i=(0,x.X)(n,r),a=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${n}&compress=gzip&version_code=180800&webcast_sdk_version=1.0.14-beta.0&live_id=1&did_rule=3&user_unique_id=${r}&identity=audience&signature=${i}&aid=6383&device_platform=web&browser_language=zh-CN&browser_platform=Win32&browser_name=Mozilla&browser_version=5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F126.0.0.0+Safari%2F537.36+Edg%2F126.0.0.0`;(ep=new WebSocket(a)).binaryType="arraybuffer",ep.onopen=()=>{clearInterval(em),eM("系统","开始连接弹幕服务器"),ex.value.addEventListener("scroll",eN),em=setInterval(()=>{(null==ep?void 0:ep.readyState)==1&&ep.send((0,k.Ne)({payloadType:"bh"}))},1e4)},ep.onmessage=t=>{e&&(eM("系统","弹幕服务器连接成功"),e=!1);let n=(0,k.qO)(new Uint8Array(t.data)),r=(0,p.ec)(n.payload),i=(0,k.i)(new Uint8Array(r)).messagesList;if(!i||0==i.length)return;let a=i.length,s=-1;for(;++s<a;){if("WebcastChatMessage"!=i[s].method)continue;let e=(0,k.cu)(i[s].payload);eM(e.user.nickName,e.content)}}}else if("bilibili"==eS.value.siteId){let t=eS.value.ws;(ep=new WebSocket(t.url)).binaryType="arraybuffer",ep.onopen=()=>{clearInterval(em),eM("系统","开始连接弹幕服务器"),ex.value.addEventListener("scroll",eN),console.log(t.url),console.log(t.data),null==ep||ep.send((0,y.v)(JSON.stringify(JSON.parse(t.data)),7)),em=setInterval(()=>{ep.send((0,y.v)("",2))},45e3)},ep.onmessage=async t=>{let{data:n}=t;e&&(eM("系统","弹幕服务器连接成功"),e=!1),(0,y.f)(new Uint8Array(n),eM)}}ep&&(ep.onerror=()=>{clearInterval(em),eM("系统","弹幕服务器连接失败")},ep.onclose=()=>{clearInterval(em),eM("系统","弹幕服务器连接关闭")})},eH=new TextEncoder;function eG(e){let t=eH.encode(e),n=9+t.byteLength;t=eH.encode(e+"\0");let r=new Uint8Array(12+t.byteLength);return r.set([n,0,0,.1,n,0,0,0,177,2,0,0]),r.set(t,12),r.buffer}let eV=()=>{clearInterval(em),ep&&(ep.onmessage=null,"douyu"==e2?ep.send(eG("type@=logout")):ep.close(),ep=null,eD=0,ex.value&&e1==eb.fullPath&&eM("系统","弹幕服务器断开连接"))};(0,d.YP)(eS,()=>ez()),(0,d.YP)([()=>g.hk.sideOpen,()=>g.hk.canvasOpen],()=>{g.hk.sideOpen||g.hk.canvasOpen||eV(),ep||ez()});let eW=()=>{let{site:e,id:t}=eb.meta;clearInterval(A),clearInterval(em),clearTimeout(n),e_.notice="加载中...",(0,d.Y3)(()=>{eM("系统","开始获取直播间信息")}),(0,_.SG)(e.id,"getRoomDetail",{id:t}).then(e=>{if(eS.value=e,ey.value&&(eS.value.id=(0,_.r2)(e)),(0,d.Y3)(()=>eM("系统","直播间信息获取成功")),!e.status)return e_.notice="未开播!";document.title=eS.value.title},e=>{e_.notice=e,(0,d.Y3)(()=>eM("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(n))},eZ=()=>{if(eS.value)return ey.value?(0,_.HO)(eS.value):(0,_.R3)(eS.value)},eq=()=>{eS.value&&eS.value.status&&(clearTimeout(t),t=setTimeout(()=>e_.paused?ek.value.play():ek.value.pause(),200))},eY=()=>(clearTimeout(t),e_.fullscreen=!e_.fullscreen,document.fullscreenElement?document.exitFullscreen():ew.value.requestFullscreen()),eJ=()=>{clearTimeout(r),e_.showController=!0,r=setTimeout(()=>{var e,t;(null==(e=ek.value)||!e.paused)&&(null==(t=ek.value)?void 0:t.played.length)&&(e_.showController=!1)},3e3)},eK=()=>{clearTimeout(t),e_.webscreen=!e_.webscreen,e_.fullscreen&&(e_.fullscreen=!1,document.exitFullscreen())},e$=()=>{e_.paused=!1,eJ()},eX=()=>{e_.paused=!0,eJ()},eQ=e=>{if(eA.value)switch(e.code){case"ArrowDown":return(0,g.jA)(!1);case"ArrowUp":return(0,g.jA)(!0);case"Space":return eq()}};eW();let e0=(0,S.tv)(),e1=eb.fullPath;(0,d.bv)(()=>{ew.value.style.filter=100==g.Xu.value?"":`brightness(${g.Xu.value/100})`,ek.value.volume=g.wK.value/100,e_.muted=ek.value.muted,ek.value.addEventListener("canplay",()=>{e_.notice=null}),h.tq||(ew.value.addEventListener("mousemove",eJ),document.addEventListener("keydown",eQ)),document.pictureInPictureElement&&document.exitPictureInPicture(),ek.value.addEventListener("leavepictureinpicture",()=>{var e;return/play/.test(eb.path)?eb.fullPath==e1?e_.pictureInPicture=!1:void(null==(e=e_.flv)||e.destroy()):e0.push(e1)})});let e2=eb.meta.site.id;(0,S.ao)(e=>{var t;let{siteid:n,id:r}=e.params,i=g.vJ.findIndex(e=>e==n);return -1==i?{name:"404"}:(e.meta.site=g.tc[i],e.meta.id=r,null==(t=e_.flv)||t.destroy(),e_.flv=void 0,e_.qn=0,e_.line=0,eS.value=void 0,!0)}),(0,d.YP)(()=>eb.params,()=>{var e;clearTimeout(ev),eV(),eU(),null==(e=eB.value)||e.destory(),e2=eb.meta.site.id,e1=eb.fullPath,eW()}),(0,d.Jd)(()=>{var e;return clearTimeout(t),clearTimeout(r),clearTimeout(n),clearTimeout(ev),clearInterval(A),eV(),document.title="Lemon live",document.removeEventListener("keydown",eQ),!e_.pictureInPicture&&(null==(e=e_.flv)?void 0:e.destroy())});let e5=()=>Promise.all((0,m.UI)(g.tc,T.OO)),e3=async e=>{1==e&&await e5()},e4=()=>e_.showController?eq():eJ(),e6=()=>{if(e_.pictureInPicture=!e_.pictureInPicture,document.pictureInPictureElement)return document.exitPictureInPicture();ek.value.requestPictureInPicture()},e8=e=>{let t=e.target.dataset.color;if(!t)return;let n=g.hk.colors.findIndex(e=>e==t);if(-1==n)return g.hk.colors.push(t);1!=g.hk.colors.length&&g.hk.colors.splice(n,1)};(0,d.YP)(()=>g.hk.colors,()=>{var e;return null==(e=eB.value)?void 0:e.setColors(g.hk.colors)}),(0,d.YP)(()=>g.hk.canvasSpeed,()=>{var e;return null==(e=eB.value)?void 0:e.setSpeed(g.hk.canvasSpeed)}),(0,d.YP)(()=>g.hk.canvasOpacity,()=>{var e;return null==(e=eB.value)?void 0:e.setOpacity(g.hk.canvasOpacity)}),(0,d.YP)(()=>g.hk.canvasColorOpen,()=>{var e;return null==(e=eB.value)?void 0:e.setColors(g.hk.canvasColorOpen?g.hk.colors:["#ffffff"])}),(0,d.m0)(()=>{var e,t,n,r;null==(e=eB.value)||e.setGap(g.hk.canvasGap),null==(t=eB.value)||t.setFont(g.hk.canvasFontsize),null==(n=eB.value)||n.setRows(g.hk.canvasRows),null==(r=eB.value)||r.resize()}),(0,d.YP)(g.wK,()=>{eJ(),clearTimeout(n),e_.notice=`当前音量 ${g.wK.value}%`,ek.value.volume=g.wK.value/100,(0,m.LS)("volume",g.wK.value),n=setTimeout(()=>e_.notice=null,2e3)}),(0,d.YP)(g.Xu,()=>{eJ(),clearTimeout(n),e_.notice=`当前亮度 ${g.Xu.value}%`,ew.value.style.filter=100==g.Xu.value?"":`brightness(${g.Xu.value/100})`,(0,m.LS)("brightness",g.Xu.value),n=setTimeout(()=>e_.notice=null,2e3)});let e9=(0,d.iH)(),e7=e=>{clearTimeout(eg),eg=setTimeout(()=>{let t=tt("id",e.target,e9.value);if(!t)return;let n=tt("site",e.target,e9.value);e0.push(`/${n}/play/${t}`)},300)},te=e=>{var t;clearTimeout(eg);let n=tt("id",e.target,e9.value);if(!n)return;let r=tt("site",e.target,e9.value),i=`/${r}/play/${n}`;return null==(t=window.open(i,"_blank"))?void 0:t.location},tt=(e,t,n)=>{if(t==n)return null;let r=t.dataset[e];return r||tt(e,t.parentElement,n)},tn=()=>g.Xu.value=100;(0,d.YP)(()=>e_.muted,()=>{eJ(),clearTimeout(n),e_.notice=e_.muted?"已静音":"已开启声音",n=setTimeout(()=>e_.notice=null,2e3)});let tr=()=>{if(ek.value.muted){ek.value.muted=!1,e_.muted=!1;return}ek.value.muted=!0,e_.muted=!0};return(e,t)=>{var n,r,f,p,y,b;let w=c.Z,k=u.Z,x=l.Z,S=s.Z,E=a.Z,T=i.Z;return(0,d.wg)(),(0,d.iD)("div",O,[(0,d._)("div",I,[(0,d._)("div",C,[(0,d._)("div",{onClick:t[0]||(t[0]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.$router.back&&e.$router.back(...n)}),class:"i-ri-arrow-left-line hover:text-amber"}),(0,d._)("h1",U,(0,d.zw)(null==(n=(0,d.SU)(eS))?void 0:n.title),1),(0,d._)("div",{onClick:t[1]||(t[1]=e=>g.YF.value=!(0,d.SU)(g.YF)),style:(0,d.j5)((0,d.SU)(g.YF)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill hidden lg:block"},null,4)]),(0,d._)("div",{ref_key:"player",ref:ew,class:(0,d.C_)(["md:rounded-6px text-4 text-white bg-black cursor-default pos-relative w-full overflow-hidden select-none h-full",{"cursor-none":!(0,d.SU)(e_).showController,"text-5":(0,d.SU)(e_).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":(0,d.SU)(e_).webscreen}]),onContextmenu:t[19]||(t[19]=(0,d.iM)(()=>{},["prevent"])),onClick:e4,onDblclick:eY},[(0,d._)("div",D,[(0,d._)("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:ek,class:"w-full h-full pos-absolute",onPlay:e$,onPause:eX},null,544)]),(0,d.wy)((0,d._)("div",R,[(0,d._)("span",null,(0,d.zw)((0,d.SU)(e_).notice),1)],512),[[d.F8,(0,d.SU)(e_).notice]]),(0,d._)("canvas",{ref_key:"canvas",ref:eL,width:"0",height:"0",class:"w-full h-full z-1 pos-absolute top-0"},null,512),(0,d.wy)((0,d._)("div",{class:(0,d.C_)(["pos-absolute bottom-0 left-0 right-0 px-4 py-2 gap-3 z-20 flex items-center bg-black bg-op-30",{"py-3":(0,d.SU)(e_).fullscreen||(0,d.SU)(e_).webscreen}]),onClick:t[5]||(t[5]=(0,d.iM)(()=>{},["stop"])),onDblclick:t[6]||(t[6]=(0,d.iM)(()=>{},["stop"]))},[(0,d._)("div",{onClick:eq,class:(0,d.C_)(["hover:text-amber",(0,d.SU)(e_).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill"])},null,2),(0,d._)("div",{onClick:eZ,class:(0,d.C_)(["hover:text-amber",(0,d.SU)(ey)?"i-ri-heart-fill":"i-ri-heart-line"])},null,2),(0,d._)("div",{onClick:eW,class:"i-ri-refresh-line hover:text-amber"}),(0,d._)("img",{class:"w-1.5em cursor-pointer",onClick:t[2]||(t[2]=()=>(0,d.SU)(g.hk).canvasOpen=!(0,d.SU)(g.hk).canvasOpen),src:(0,d.SU)(g.hk).canvasOpen?(0,d.SU)(m.Yb):(0,d.SU)(m.Vq)},null,8,L),t[33]||(t[33]=(0,d._)("div",{class:"grow"},null,-1)),(0,d.SU)(eE).length?((0,d.wg)(),(0,d.iD)("div",B,[(0,d.Wm)(w,{active:(0,d.SU)(e_).qn,"onUpdate:active":t[3]||(t[3]=e=>(0,d.SU)(e_).qn=e),list:(0,d.SU)(eE)},null,8,["active","list"]),(0,d.Wm)(w,{active:(0,d.SU)(e_).line,"onUpdate:active":t[4]||(t[4]=e=>(0,d.SU)(e_).line=e),list:(0,d.SU)(eT)},null,8,["active","list"]),(0,d.SU)(h.tq)?(0,d.kq)("",!0):((0,d.wg)(),(0,d.iD)("div",{key:0,class:(0,d.C_)(["hover:text-amber ml-2",(0,d.SU)(e_).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line"]),onClick:e6},null,2))])):(0,d.kq)("",!0),(0,d._)("div",{onClick:eK,class:"i-mdi-fit-to-screen hover:text-amber"}),(0,d._)("div",{onClick:eY,class:(0,d.C_)(["hover:text-amber",(0,d.SU)(e_).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill"])},null,2)],34),[[d.F8,(0,d.SU)(e_).showController]]),(0,d.SU)(h.tq)?(0,d.wy)(((0,d.wg)(),(0,d.iD)("div",{key:0,class:(0,d.C_)([{"py-3":(0,d.SU)(e_).fullscreen||(0,d.SU)(e_).webscreen},"pos-absolute top-0 left-0 right-0 px-4 py-2 gap-3 z-20 flex justify-between bg-black bg-op-30"]),onClick:t[11]||(t[11]=(0,d.iM)(()=>{},["stop"])),onDblclick:t[12]||(t[12]=(0,d.iM)(()=>{},["stop"]))},[(0,d._)("div",P,[(0,d._)("div",{onClick:t[7]||(t[7]=e=>(0,d.SU)(g.TP)(!1)),class:"i-ri-sun-line"}),(0,d._)("div",null,(0,d.zw)((0,d.SU)(g.Xu)),1),(0,d._)("div",{onClick:t[8]||(t[8]=e=>(0,d.SU)(g.TP)(!0)),class:"i-ri-sun-fill"})]),(0,d.wy)((0,d._)("div",{class:"flex-1 w-10 truncate text-center"},(0,d.zw)(null==(r=(0,d.SU)(eS))?void 0:r.title),513),[[d.F8,(0,d.SU)(e_).fullscreen]]),(0,d._)("div",M,[(0,d._)("div",{onClick:t[9]||(t[9]=e=>(0,d.SU)(g.jA)(!1)),class:"i-ri-volume-down-fill"}),(0,d._)("div",null,(0,d.zw)((0,d.SU)(g.wK)),1),(0,d._)("div",{onClick:t[10]||(t[10]=e=>(0,d.SU)(g.jA)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[d.F8,(0,d.SU)(e_).showController]]):(0,d.wy)(((0,d.wg)(),(0,d.iD)("div",F,[(0,d._)("div",{onClick:t[14]||(t[14]=(0,d.iM)(()=>{},["stop"])),onDblclick:t[15]||(t[15]=(0,d.iM)(()=>{},["stop"])),class:"top-50% left-4 flex items-center flex-col pos-absolute z-20",style:{transform:"translateY(-50%)"}},[(0,d._)("div",null,(0,d.zw)((0,d.SU)(g.Xu)),1),(0,d.Wm)(k,{value:(0,d.SU)(g.Xu),"onUpdate:value":t[13]||(t[13]=e=>(0,d.dq)(g.Xu)?g.Xu.value=e:null),max:200,min:50},null,8,["value"]),(0,d._)("div",{onClick:(0,d.iM)(tn,["stop"]),class:"i-ri-sun-line"})],32),(0,d._)("div",{onClick:t[17]||(t[17]=(0,d.iM)(()=>{},["stop"])),onDblclick:t[18]||(t[18]=(0,d.iM)(()=>{},["stop"])),class:"top-50% right-4 flex items-center flex-col pos-absolute z-20",style:{transform:"translateY(-50%)"}},[(0,d.Uk)((0,d.zw)((0,d.SU)(g.wK))+" ",1),(0,d.Wm)(k,{value:(0,d.SU)(g.wK),"onUpdate:value":t[16]||(t[16]=e=>(0,d.dq)(g.wK)?g.wK.value=e:null),max:100,min:0},null,8,["value"]),(0,d._)("div",{onClick:(0,d.iM)(tr,["stop"]),class:(0,d.C_)((0,d.SU)(e_).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[d.F8,(0,d.SU)(e_).showController]])],34)]),(0,d.wy)((0,d._)("div",N,[(0,d._)("div",j,[(0,d._)("img",{src:null==(f=(0,d.SU)(eS))?void 0:f.avatar,alt:"",class:"w-8 h-8 rounded-4"},null,8,z),(0,d._)("div",H,[(0,d._)("div",G,(0,d.zw)(null==(p=(0,d.SU)(eS))?void 0:p.nickname),1),(0,d._)("div",V,[(0,d._)("img",{class:"w-4 h-4",src:e.$route.meta.site.icon},null,8,W),(0,d.Uk)(" "+(0,d.zw)(e.$route.meta.site.name)+" "+(0,d.zw)(null==(y=(0,d.SU)(eS))?void 0:y.category),1)])]),(0,d._)("div",null,[t[34]||(t[34]=(0,d._)("div",{class:"i-mdi-fire mx-1"},null,-1)),(0,d._)("span",null,(0,d.zw)(null==(b=(0,d.SU)(eS))?void 0:b.online),1)])]),(0,d.Wm)(T,{grow:!0,onTabClick:e3,class:"!h-[calc(100%-3.75rem)]"},{default:(0,d.w5)(()=>[(0,d.Wm)(x,{title:"聊天",class:"pos-relative"},{default:(0,d.w5)(()=>{var e;return[(0,d._)("div",Z,[(0,d._)("img",{onClick:t[20]||(t[20]=()=>(0,d.SU)(g.hk).sideOpen=!(0,d.SU)(g.hk).sideOpen),class:"w-1.5em cursor-pointer",src:(0,d.SU)(g.hk).sideOpen?(0,d.SU)(m.Yb):(0,d.SU)(m.Vq)},null,8,q),(0,d._)("div",{onClick:eU,class:"i-ri-delete-bin-3-line text-green-5"}),(0,d._)("a",{class:"text-green-5",href:null==(e=(0,d.SU)(eS))?void 0:e.url,target:"_blank"},t[35]||(t[35]=[(0,d._)("div",{class:"i-ri-link"},null,-1)]),8,Y),(0,d._)("div",{onClick:ej,class:"i-ri-arrow-down-circle-line text-green-5"})]),(0,d._)("div",{ref_key:"dm",ref:ex,class:"scrolly h-full pl-2 box-border"},null,512)]}),_:1}),(0,d.Wm)(x,{title:"关注",class:"box-border px-4"},{default:(0,d.w5)(()=>[(0,d._)("div",{onClick:(0,d.iM)(e7,["prevent"]),onDblclick:(0,d.iM)(te,["prevent"])},[((0,d.wg)(!0),(0,d.iD)(d.HY,null,(0,d.Ko)((0,d.SU)(eO),e=>{var t,n;return(0,d.wg)(),(0,d.iD)("a",{"data-id":e.roomId,"data-site":e.siteId,class:(0,d.C_)([{"text-amber":(null==(t=(0,d.SU)(eS))?void 0:t.siteId)==e.siteId&&(null==(n=(0,d.SU)(eS))?void 0:n.roomId)==e.roomId},"flex items-center justify-between gap-2 py-2"]),key:`${e.siteId}/${e.roomId}`,href:`/${e.siteId}/play/${e.roomId}`},[(0,d._)("div",K,[(0,d._)("img",{class:"w-5 h-5 rounded-5",src:e.avatar,alt:""},null,8,$),(0,d._)("div",null,(0,d.zw)((0,d.SU)(g.wJ)[e.siteId]),1),(0,d._)("div",null,(0,d.zw)(e.nickname),1),(0,d._)("div",{class:(0,d.C_)(["inline-block w-3 h-3 rounded-3",[e.status?"bg-amber":"bg-red"]])},null,2),(0,d._)("div",null,(0,d.zw)(e.status?"直播中":"未开播"),1)]),(0,d._)("div",{class:"i-mdi-heart-off-outline pos-relative w-6 h-6 hover:text-amber",onClick:t=>{t.stopPropagation(),t.preventDefault(),(0,_.HO)(e)}},null,8,X)],10,J)}),128))],32)]),_:1}),(0,d.Wm)(x,{title:"设置",class:"px-2"},{default:(0,d.w5)(()=>[t[47]||(t[47]=(0,d._)("div",{class:"p-3"},"弹幕",-1)),(0,d._)("div",Q,[(0,d._)("div",ee,[t[36]||(t[36]=(0,d._)("div",null,"文字大小",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).canvasFontsize,"onUpdate:value":t[21]||(t[21]=e=>(0,d.SU)(g.hk).canvasFontsize=e),max:80,min:8,step:1},null,8,["value"])]),(0,d._)("div",et,[t[37]||(t[37]=(0,d._)("div",null,"上下间隔",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).canvasGap,"onUpdate:value":t[22]||(t[22]=e=>(0,d.SU)(g.hk).canvasGap=e),max:80,min:1,step:1},null,8,["value"])]),(0,d._)("div",en,[t[38]||(t[38]=(0,d._)("div",null,"最大行数",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).canvasRows,"onUpdate:value":t[23]||(t[23]=e=>(0,d.SU)(g.hk).canvasRows=e),max:50,min:1,step:1},null,8,["value"])]),(0,d._)("div",er,[t[39]||(t[39]=(0,d._)("div",null,"弹幕速度",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).canvasSpeed,"onUpdate:value":t[24]||(t[24]=e=>(0,d.SU)(g.hk).canvasSpeed=e),max:32,min:.5,step:.5},null,8,["value"])]),(0,d._)("div",ei,[t[40]||(t[40]=(0,d._)("div",null,"弹幕透明",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).canvasOpacity,"onUpdate:value":t[25]||(t[25]=e=>(0,d.SU)(g.hk).canvasOpacity=e),max:100,min:10,step:10},null,8,["value"])]),(0,d._)("div",ea,[t[41]||(t[41]=(0,d._)("div",null,"彩色弹幕",-1)),(0,d.Wm)(E,{value:(0,d.SU)(g.hk).canvasColorOpen,"onUpdate:value":t[26]||(t[26]=e=>(0,d.SU)(g.hk).canvasColorOpen=e)},null,8,["value"])])]),t[48]||(t[48]=(0,d._)("div",{class:"p-3"},"聊天",-1)),(0,d._)("div",es,[(0,d._)("div",eo,[t[42]||(t[42]=(0,d._)("div",null,"文字大小",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).sideFontsize,"onUpdate:value":t[27]||(t[27]=e=>(0,d.SU)(g.hk).sideFontsize=e),max:80,min:8,step:1},null,8,["value"])]),(0,d._)("div",el,[t[43]||(t[43]=(0,d._)("div",null,"上下间隔",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).sideGap,"onUpdate:value":t[28]||(t[28]=e=>(0,d.SU)(g.hk).sideGap=e),max:80,min:0,step:1},null,8,["value"])]),(0,d._)("div",eu,[t[44]||(t[44]=(0,d._)("div",null,"自动清屏",-1)),(0,d.Wm)(S,{value:(0,d.SU)(g.hk).sideClean,"onUpdate:value":t[29]||(t[29]=e=>(0,d.SU)(g.hk).sideClean=e),max:500,min:10,step:10},null,8,["value"])]),(0,d._)("div",ec,[t[45]||(t[45]=(0,d._)("div",null,"彩色消息",-1)),(0,d.Wm)(E,{value:(0,d.SU)(g.hk).sideColorOpen,"onUpdate:value":t[30]||(t[30]=e=>(0,d.SU)(g.hk).sideColorOpen=e)},null,8,["value"])])]),t[49]||(t[49]=(0,d._)("div",{class:"p-3"},"颜色",-1)),(0,d._)("div",ed,[((0,d.wg)(!0),(0,d.iD)(d.HY,null,(0,d.Ko)((0,d.SU)(g.O9),e=>((0,d.wg)(),(0,d.iD)("div",{onClick:e8},[(0,d._)("div",{class:"w-4 h-4 rounded-2 m-2 shadow cursor-pointer box-border","data-color":e,style:(0,d.j5)(`background:${e};${(0,d.SU)(g.hk).colors.includes(e)?"box-shadow:0 0 0px 2px white":""}`)},null,12,ef)]))),256))]),(0,d._)("div",eh,[t[46]||(t[46]=(0,d.Uk)("屏蔽 ")),(0,d.Wm)(E,{value:(0,d.SU)(g.hk).blockOpen,"onUpdate:value":t[31]||(t[31]=e=>(0,d.SU)(g.hk).blockOpen=e)},null,8,["value"])]),(0,d.wy)((0,d._)("textarea",{class:"outline-none w-full text-white b b-solid b-gray-7 p-2 box-border bg-dark shadow rounded-1","onUpdate:modelValue":t[32]||(t[32]=e=>(0,d.SU)(g.hk).blockWords=e),rows:"5",placeholder:"以空格分隔"},null,512),[[d.nr,(0,d.SU)(g.hk).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[d.F8,(0,d.SU)(g.YF)]])])}}});r()}catch(e){r(e)}})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},a=n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){var a=[];a.d=0,n.then(e=>{s[t]=e,i(a)},e=>{s[r]=e,i(a)});var s={};return s[e]=e=>e(a),s}}var l={};return l[e]=function(){},l[t]=n,l});n.a=(n,s,l)=>{l&&((u=[]).d=-1);var u,c,d,f,h=new Set,p=n.exports,m=new Promise((e,t)=>{f=t,d=e});m[t]=p,m[e]=e=>{u&&e(u),h.forEach(e),m.catch(function(){})},n.exports=m,s(n=>{c=a(n);var i,s=()=>c.map(e=>{if(e[r])throw e[r];return e[t]}),l=new Promise(t=>{(i=()=>t(s)).r=0;var n=e=>e!==u&&!h.has(e)&&(h.add(e),e&&!e.d&&(i.r++,e.push(i)));c.map(t=>t[e](n))});return i.r?l:s()},e=>(e?f(m[r]=e):d(p),i(u))),u&&u.d<0&&(u.d=0)}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="https://registry.npmmirror.com/lemon-mse/0.6.2/files/dist/",n.rv=()=>"1.3.2",n.b=document.baseURI||self.location.href,n.ruid="bundler=rspack@1.3.2",n(985)})();