bilitoolkit-plugin-image-downloader 0.0.1 → 0.0.2

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,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VideoCover-BUKUvb0x.js","./download-UkVLILCM.js","./VideoCover-CAWn5EZd.css","./OpusPics-BjNOGrqi.js","./OpusPics-DBZMkggy.css","./UserFace-DNpgATKa.js","./UserFace-CVE5pVtF.css","./DynamicEmoji-bQlsRk1p.js","./DynamicEmoji-DLvNX4Gc.css","./CommentEmoji-DusEAad_.js","./CommentEmoji-DT_33F62.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VideoCover-CmdqyAU7.js","./download-DBjE6xGC.js","./VideoCover-CAWn5EZd.css","./OpusPics-BTsrV8AB.js","./OpusPics-LCsfJPxA.css","./UserFace-sEd7VSeX.js","./UserFace-CVE5pVtF.css","./DynamicEmoji-DXs3cpXt.js","./DynamicEmoji-17Kes4sQ.css","./CommentEmoji-Ds9e0mTx.js","./CommentEmoji-CxnaGCSF.css"])))=>i.map(i=>d[i]);
2
2
  (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function pc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},Ns=[],It=()=>{},lg=()=>!1,vi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yi=e=>e.startsWith("onUpdate:"),ht=Object.assign,hc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},e_=Object.prototype.hasOwnProperty,Te=(e,t)=>e_.call(e,t),ie=Array.isArray,Is=e=>Zs(e)==="[object Map]",ug=e=>Zs(e)==="[object Set]",Rf=e=>Zs(e)==="[object Date]",t_=e=>Zs(e)==="[object RegExp]",pe=e=>typeof e=="function",Se=e=>typeof e=="string",Ht=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",cg=e=>(Ie(e)||pe(e))&&pe(e.then)&&pe(e.catch),fg=Object.prototype.toString,Zs=e=>fg.call(e),n_=e=>Zs(e).slice(8,-1),dg=e=>Zs(e)==="[object Object]",_i=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ao=pc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wi=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},r_=/-\w/g,Ct=wi(e=>e.replace(r_,t=>t.slice(1).toUpperCase())),s_=/\B([A-Z])/g,as=wi(e=>e.replace(s_,"-$1").toLowerCase()),Ei=wi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Va=wi(e=>e?`on${Ei(e)}`:""),Rn=(e,t)=>!Object.is(e,t),So=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},pg=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},o_=e=>{const t=parseFloat(e);return isNaN(t)?e:t},a_=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let Pf;const Ai=()=>Pf||(Pf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gn(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Se(r)?c_(r):gn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Se(e)||Ie(e))return e}const i_=/;(?![^(]*\))/g,l_=/:([^]+)/,u_=/\/\*[^]*?\*\//g;function c_(e){const t={};return e.replace(u_,"").split(i_).forEach(n=>{if(n){const r=n.split(l_);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Pe(e){let t="";if(Se(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const r=Pe(e[n]);r&&(t+=r+" ")}else if(Ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function f_(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Se(t)&&(e.class=Pe(t)),n&&(e.style=gn(n)),e}const d_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",p_=pc(d_);function hg(e){return!!e||e===""}function h_(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=gc(e[r],t[r]);return n}function gc(e,t){if(e===t)return!0;let n=Rf(e),r=Rf(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ht(e),r=Ht(t),n||r)return e===t;if(n=ie(e),r=ie(t),n||r)return n&&r?h_(e,t):!1;if(n=Ie(e),r=Ie(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const a in e){const i=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(i&&!l||!i&&l||!gc(e[a],t[a]))return!1}}return String(e)===String(t)}const gg=e=>!!(e&&e.__v_isRef===!0),Mt=e=>Se(e)?e:e==null?"":ie(e)||Ie(e)&&(e.toString===fg||!pe(e.toString))?gg(e)?Mt(e.value):JSON.stringify(e,mg,2):String(e),mg=(e,t)=>gg(t)?mg(e,t.value):Is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[sl(r,o)+" =>"]=s,n),{})}:ug(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>sl(n))}:Ht(t)?sl(t):Ie(t)&&!ie(t)&&!dg(t)?String(t):t,sl=(e,t="")=>{var n;return Ht(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function g_(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}let ft;class bg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ft&&(ft.active?(this.parent=ft,this.index=(ft.scopes||(ft.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ft;try{return ft=this,t()}finally{ft=n}}}on(){++this._on===1&&(this.prevScope=ft,ft=this)}off(){if(this._on>0&&--this._on===0){if(ft===this)ft=this.prevScope;else{let t=ft;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function vg(e){return new bg(e)}function mc(){return ft}function yg(e,t=!1){ft&&ft.cleanups.push(e)}let Ge;const ol=new WeakSet;class _g{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ft&&(ft.active?ft.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ol.has(this)&&(ol.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Eg(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Bf(this),Ag(this);const t=Ge,n=dn;Ge=this,dn=!0;try{return this.fn()}finally{Sg(this),Ge=t,dn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)yc(t);this.deps=this.depsTail=void 0,Bf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ol.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kl(this)&&this.run()}get dirty(){return Kl(this)}}let wg=0,xo,No;function Eg(e,t=!1){if(e.flags|=8,t){e.next=No,No=e;return}e.next=xo,xo=e}function bc(){wg++}function vc(){if(--wg>0)return;if(No){let t=No;for(No=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xo;){let t=xo;for(xo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ag(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Sg(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),yc(r),m_(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Kl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(xg(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function xg(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$o)||(e.globalVersion=$o,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Kl(e))))return;e.flags|=2;const t=e.dep,n=Ge,r=dn;Ge=e,dn=!0;try{Ag(e);const s=e.fn(e._value);(t.version===0||Rn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ge=n,dn=r,Sg(e),e.flags&=-3}}function yc(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)yc(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function m_(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let dn=!0;const Ng=[];function sr(){Ng.push(dn),dn=!1}function or(){const e=Ng.pop();dn=e===void 0?!0:e}function Bf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ge;Ge=void 0;try{t()}finally{Ge=n}}}let $o=0;class b_{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _c{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ge||!dn||Ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ge)n=this.activeLink=new b_(Ge,this),Ge.deps?(n.prevDep=Ge.depsTail,Ge.depsTail.nextDep=n,Ge.depsTail=n):Ge.deps=Ge.depsTail=n,Ig(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ge.depsTail,n.nextDep=void 0,Ge.depsTail.nextDep=n,Ge.depsTail=n,Ge.deps===n&&(Ge.deps=r)}return n}trigger(t){this.version++,$o++,this.notify(t)}notify(t){bc();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{vc()}}}function Ig(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ig(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const za=new WeakMap,Xr=Symbol(""),Hl=Symbol(""),Do=Symbol("");function xt(e,t,n){if(dn&&Ge){let r=za.get(e);r||za.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new _c),s.map=r,s.key=n),s.track()}}function qn(e,t,n,r,s,o){const a=za.get(e);if(!a){$o++;return}const i=l=>{l&&l.trigger()};if(bc(),t==="clear")a.forEach(i);else{const l=ie(e),u=l&&_i(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,d)=>{(d==="length"||d===Do||!Ht(d)&&d>=c)&&i(f)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),u&&i(a.get(Do)),t){case"add":l?u&&i(a.get("length")):(i(a.get(Xr)),Is(e)&&i(a.get(Hl)));break;case"delete":l||(i(a.get(Xr)),Is(e)&&i(a.get(Hl)));break;case"set":Is(e)&&i(a.get(Xr));break}}vc()}function v_(e,t){const n=za.get(e);return n&&n.get(t)}function ms(e){const t=Ce(e);return t===e?t:(xt(t,"iterate",Do),Kt(e)?t:t.map(mn))}function Si(e){return xt(e=Ce(e),"iterate",Do),e}function Cn(e,t){return ar(e)?Rs(Bn(e)?mn(t):t):mn(t)}const y_={__proto__:null,[Symbol.iterator](){return al(this,Symbol.iterator,e=>Cn(this,e))},concat(...e){return ms(this).concat(...e.map(t=>ie(t)?ms(t):t))},entries(){return al(this,"entries",e=>(e[1]=Cn(this,e[1]),e))},every(e,t){return Zn(this,"every",e,t,void 0,arguments)},filter(e,t){return Zn(this,"filter",e,t,n=>n.map(r=>Cn(this,r)),arguments)},find(e,t){return Zn(this,"find",e,t,n=>Cn(this,n),arguments)},findIndex(e,t){return Zn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Zn(this,"findLast",e,t,n=>Cn(this,n),arguments)},findLastIndex(e,t){return Zn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Zn(this,"forEach",e,t,void 0,arguments)},includes(...e){return il(this,"includes",e)},indexOf(...e){return il(this,"indexOf",e)},join(e){return ms(this).join(e)},lastIndexOf(...e){return il(this,"lastIndexOf",e)},map(e,t){return Zn(this,"map",e,t,void 0,arguments)},pop(){return oo(this,"pop")},push(...e){return oo(this,"push",e)},reduce(e,...t){return Of(this,"reduce",e,t)},reduceRight(e,...t){return Of(this,"reduceRight",e,t)},shift(){return oo(this,"shift")},some(e,t){return Zn(this,"some",e,t,void 0,arguments)},splice(...e){return oo(this,"splice",e)},toReversed(){return ms(this).toReversed()},toSorted(e){return ms(this).toSorted(e)},toSpliced(...e){return ms(this).toSpliced(...e)},unshift(...e){return oo(this,"unshift",e)},values(){return al(this,"values",e=>Cn(this,e))}};function al(e,t,n){const r=Si(e),s=r[t]();return r!==e&&!Kt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const __=Array.prototype;function Zn(e,t,n,r,s,o){const a=Si(e),i=a!==e&&!Kt(e),l=a[t];if(l!==__[t]){const f=l.apply(e,o);return i?mn(f):f}let u=n;a!==e&&(i?u=function(f,d){return n.call(this,Cn(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(a,u,r);return i&&s?s(c):c}function Of(e,t,n,r){const s=Si(e),o=s!==e&&!Kt(e);let a=n,i=!1;s!==e&&(o?(i=r.length===0,a=function(u,c,f){return i&&(i=!1,u=Cn(e,u)),n.call(this,u,Cn(e,c),f,e)}):n.length>3&&(a=function(u,c,f){return n.call(this,u,c,f,e)}));const l=s[t](a,...r);return i?Cn(e,l):l}function il(e,t,n){const r=Ce(e);xt(r,"iterate",Do);const s=r[t](...n);return(s===-1||s===!1)&&Ci(n[0])?(n[0]=Ce(n[0]),r[t](...n)):s}function oo(e,t,n=[]){sr(),bc();const r=Ce(e)[t].apply(e,n);return vc(),or(),r}const w_=pc("__proto__,__v_isRef,__isVue"),Cg=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ht));function E_(e){Ht(e)||(e=String(e));const t=Ce(this);return xt(t,"has",e),t.hasOwnProperty(e)}class Tg{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Fg:kg:o?Og:Bg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=ie(t);if(!s){let l;if(a&&(l=y_[n]))return l;if(n==="hasOwnProperty")return E_}const i=Reflect.get(t,n,je(t)?t:r);if((Ht(n)?Cg.has(n):w_(n))||(s||xt(t,"get",n),o))return i;if(je(i)){const l=a&&_i(n)?i:i.value;return s&&Ie(l)?Ts(l):l}return Ie(i)?s?Ts(i):yn(i):i}}class Rg extends Tg{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const a=ie(t)&&_i(n);if(!this._isShallow){const u=ar(o);if(!Kt(r)&&!ar(r)&&(o=Ce(o),r=Ce(r)),!a&&je(o)&&!je(r))return u||(o.value=r),!0}const i=a?Number(n)<t.length:Te(t,n),l=Reflect.set(t,n,r,je(t)?t:s);return t===Ce(s)&&(i?Rn(r,o)&&qn(t,"set",n,r):qn(t,"add",n,r)),l}deleteProperty(t,n){const r=Te(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&qn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ht(n)||!Cg.has(n))&&xt(t,"has",n),r}ownKeys(t){return xt(t,"iterate",ie(t)?"length":Xr),Reflect.ownKeys(t)}}class Pg extends Tg{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const A_=new Rg,S_=new Pg,x_=new Rg(!0),N_=new Pg(!0),Xl=e=>e,Ea=e=>Reflect.getPrototypeOf(e);function I_(e,t,n){return function(...r){const s=this.__v_raw,o=Ce(s),a=Is(o),i=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=s[e](...r),c=n?Xl:t?Rs:mn;return!t&&xt(o,"iterate",l?Hl:Xr),ht(Object.create(u),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:i?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function Aa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function C_(e,t){const n={get(s){const o=this.__v_raw,a=Ce(o),i=Ce(s);e||(Rn(s,i)&&xt(a,"get",s),xt(a,"get",i));const{has:l}=Ea(a),u=t?Xl:e?Rs:mn;if(l.call(a,s))return u(o.get(s));if(l.call(a,i))return u(o.get(i));o!==a&&o.get(s)},get size(){const s=this.__v_raw;return!e&&xt(Ce(s),"iterate",Xr),s.size},has(s){const o=this.__v_raw,a=Ce(o),i=Ce(s);return e||(Rn(s,i)&&xt(a,"has",s),xt(a,"has",i)),s===i?o.has(s):o.has(s)||o.has(i)},forEach(s,o){const a=this,i=a.__v_raw,l=Ce(i),u=t?Xl:e?Rs:mn;return!e&&xt(l,"iterate",Xr),i.forEach((c,f)=>s.call(o,u(c),u(f),a))}};return ht(n,e?{add:Aa("add"),set:Aa("set"),delete:Aa("delete"),clear:Aa("clear")}:{add(s){const o=Ce(this),a=Ea(o),i=Ce(s),l=!t&&!Kt(s)&&!ar(s)?i:s;return a.has.call(o,l)||Rn(s,l)&&a.has.call(o,s)||Rn(i,l)&&a.has.call(o,i)||(o.add(l),qn(o,"add",l,l)),this},set(s,o){!t&&!Kt(o)&&!ar(o)&&(o=Ce(o));const a=Ce(this),{has:i,get:l}=Ea(a);let u=i.call(a,s);u||(s=Ce(s),u=i.call(a,s));const c=l.call(a,s);return a.set(s,o),u?Rn(o,c)&&qn(a,"set",s,o):qn(a,"add",s,o),this},delete(s){const o=Ce(this),{has:a,get:i}=Ea(o);let l=a.call(o,s);l||(s=Ce(s),l=a.call(o,s)),i&&i.call(o,s);const u=o.delete(s);return l&&qn(o,"delete",s,void 0),u},clear(){const s=Ce(this),o=s.size!==0,a=s.clear();return o&&qn(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=I_(s,e,t)}),n}function xi(e,t){const n=C_(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Te(n,s)&&s in r?n:r,s,o)}const T_={get:xi(!1,!1)},R_={get:xi(!1,!0)},P_={get:xi(!0,!1)},B_={get:xi(!0,!0)},Bg=new WeakMap,Og=new WeakMap,kg=new WeakMap,Fg=new WeakMap;function O_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yn(e){return ar(e)?e:Ii(e,!1,A_,T_,Bg)}function Ni(e){return Ii(e,!1,x_,R_,Og)}function Ts(e){return Ii(e,!0,S_,P_,kg)}function k_(e){return Ii(e,!0,N_,B_,Fg)}function Ii(e,t,n,r,s){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const a=O_(n_(e));if(a===0)return e;const i=new Proxy(e,a===2?r:n);return s.set(e,i),i}function Bn(e){return ar(e)?Bn(e.__v_raw):!!(e&&e.__v_isReactive)}function ar(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function Ci(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function wc(e){return!Te(e,"__v_skip")&&Object.isExtensible(e)&&pg(e,"__v_skip",!0),e}const mn=e=>Ie(e)?yn(e):e,Rs=e=>Ie(e)?Ts(e):e;function je(e){return e?e.__v_isRef===!0:!1}function J(e){return Lg(e,!1)}function Ks(e){return Lg(e,!0)}function Lg(e,t){return je(e)?e:new F_(e,t)}class F_{constructor(t,n){this.dep=new _c,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ce(t),this._value=n?t:mn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Kt(t)||ar(t);t=r?t:Ce(t),Rn(t,n)&&(this._rawValue=t,this._value=r?t:mn(t),this.dep.trigger())}}function A(e){return je(e)?e.value:e}function rr(e){return pe(e)?e():A(e)}const L_={get:(e,t,n)=>t==="__v_raw"?e:A(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return je(s)&&!je(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Mg(e){return Bn(e)?e:new Proxy(e,L_)}function M_(e){const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=Wg(e,n);return t}class W_{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Ht(n)?n:String(n),this._raw=Ce(t);let s=!0,o=t;if(!ie(t)||Ht(this._key)||!_i(this._key))do s=!Ci(o)||Kt(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=A(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&je(this._raw[this._key])){const n=this._object[this._key];if(je(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return v_(this._raw,this._key)}}class V_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yt(e,t,n){return je(e)?e:pe(e)?new V_(e):Ie(e)&&arguments.length>1?Wg(e,t,n):J(e)}function Wg(e,t,n){return new W_(e,t,n)}class $_{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _c(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=$o-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ge!==this)return Eg(this,!0),!0}get value(){const t=this.dep.track();return xg(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function D_(e,t,n=!1){let r,s;return pe(e)?r=e:(r=e.get,s=e.set),new $_(r,s,n)}const Sa={},Ja=new WeakMap;let jr;function G_(e,t=!1,n=jr){if(n){let r=Ja.get(n);r||Ja.set(n,r=[]),r.push(e)}}function Y_(e,t,n=We){const{immediate:r,deep:s,once:o,scheduler:a,augmentJob:i,call:l}=n,u=w=>s?w:Kt(w)||s===!1||s===0?er(w,1):er(w);let c,f,d,p,h=!1,g=!1;if(je(e)?(f=()=>e.value,h=Kt(e)):Bn(e)?(f=()=>u(e),h=!0):ie(e)?(g=!0,h=e.some(w=>Bn(w)||Kt(w)),f=()=>e.map(w=>{if(je(w))return w.value;if(Bn(w))return u(w);if(pe(w))return l?l(w,2):w()})):pe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){sr();try{d()}finally{or()}}const w=jr;jr=c;try{return l?l(e,3,[p]):e(p)}finally{jr=w}}:f=It,t&&s){const w=f,B=s===!0?1/0:s;f=()=>er(w(),B)}const b=mc(),_=()=>{c.stop(),b&&b.active&&hc(b.effects,c)};if(o&&t){const w=t;t=(...B)=>{const G=w(...B);return _(),G}}let v=g?new Array(e.length).fill(Sa):Sa;const E=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const B=c.run();if(w||s||h||(g?B.some((G,P)=>Rn(G,v[P])):Rn(B,v))){d&&d();const G=jr;jr=c;try{const P=[B,v===Sa?void 0:g&&v[0]===Sa?[]:v,p];v=B,l?l(t,3,P):t(...P)}finally{jr=G}}}else c.run()};return i&&i(E),c=new _g(f),c.scheduler=a?()=>a(E,!1):E,p=w=>G_(w,!1,c),d=c.onStop=()=>{const w=Ja.get(c);if(w){if(l)l(w,4);else for(const B of w)B();Ja.delete(c)}},t?r?E(!0):v=c.run():a?a(E.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function er(e,t=1/0,n){if(t<=0||!Ie(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,je(e))er(e.value,t,n);else if(ie(e))for(let r=0;r<e.length;r++)er(e[r],t,n);else if(ug(e)||Is(e))e.forEach(r=>{er(r,t,n)});else if(dg(e)){for(const r in e)er(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&er(e[r],t,n)}return e}function ia(e,t,n,r){try{return r?e(...r):e()}catch(s){Ti(s,t,n)}}function nn(e,t,n,r){if(pe(e)){const s=ia(e,t,n,r);return s&&cg(s)&&s.catch(o=>{Ti(o,t,n)}),s}if(ie(e)){const s=[];for(let o=0;o<e.length;o++)s.push(nn(e[o],t,n,r));return s}}function Ti(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||We;if(t){let i=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}i=i.parent}if(o){sr(),ia(o,null,10,[e,l,u]),or();return}}U_(e,n,s,r,a)}function U_(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ot=[];let In=-1;const Cs=[];let Ar=null,Es=0;const Vg=Promise.resolve();let Qa=null;function rn(e){const t=Qa||Vg;return e?t.then(this?e.bind(this):e):t}function j_(e){let t=In+1,n=Ot.length;for(;t<n;){const r=t+n>>>1,s=Ot[r],o=Go(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Ec(e){if(!(e.flags&1)){const t=Go(e),n=Ot[Ot.length-1];!n||!(e.flags&2)&&t>=Go(n)?Ot.push(e):Ot.splice(j_(t),0,e),e.flags|=1,$g()}}function $g(){Qa||(Qa=Vg.then(Yg))}function Dg(e){ie(e)?Cs.push(...e):Ar&&e.id===-1?Ar.splice(Es+1,0,e):e.flags&1||(Cs.push(e),e.flags|=1),$g()}function kf(e,t,n=In+1){for(;n<Ot.length;n++){const r=Ot[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ot.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Gg(e){if(Cs.length){const t=[...new Set(Cs)].sort((n,r)=>Go(n)-Go(r));if(Cs.length=0,Ar){Ar.push(...t);return}for(Ar=t,Es=0;Es<Ar.length;Es++){const n=Ar[Es];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ar=null,Es=0}}const Go=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Yg(e){try{for(In=0;In<Ot.length;In++){const t=Ot[In];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ia(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;In<Ot.length;In++){const t=Ot[In];t&&(t.flags&=-2)}In=-1,Ot.length=0,Gg(),Qa=null,(Ot.length||Cs.length)&&Yg()}}let _t=null,Ug=null;function qa(e){const t=_t;return _t=e,Ug=e&&e.type.__scopeId||null,t}function ce(e,t=_t,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&si(-1);const o=qa(t);let a;try{a=e(...s)}finally{qa(o),r._d&&si(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Hs(e,t){if(_t===null)return e;const n=Oi(_t),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,a,i,l=We]=t[s];o&&(pe(o)&&(o={mounted:o,updated:o}),o.deep&&er(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:i,modifiers:l}))}return e}function Vr(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let a=0;a<s.length;a++){const i=s[a];o&&(i.oldValue=o[a].value);let l=i.dir[r];l&&(sr(),nn(l,n,8,[e.el,i,e,t]),or())}}function tt(e,t){if(Nt){let n=Nt.provides;const r=Nt.parent&&Nt.parent.provides;r===n&&(n=Nt.provides=Object.create(r)),n[e]=t}}function ge(e,t,n=!1){const r=nt();if(r||Jr){let s=Jr?Jr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&pe(t)?t.call(r&&r.proxy):t}}function Z_(){return!!(nt()||Jr)}const K_=Symbol.for("v-scx"),H_=()=>ge(K_);function jg(e,t){return Ac(e,null,t)}function xe(e,t,n){return Ac(e,t,n)}function Ac(e,t,n=We){const{immediate:r,deep:s,flush:o,once:a}=n,i=ht({},n),l=t&&r||!t&&o!=="post";let u;if(Uo){if(o==="sync"){const p=H_();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=It,p.resume=It,p.pause=It,p}}const c=Nt;i.call=(p,h,g)=>nn(p,c,h,g);let f=!1;o==="post"?i.scheduler=p=>{dt(p,c&&c.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(p,h)=>{h?p():Ec(p)}),i.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const d=Y_(e,t,i);return Uo&&(u?u.push(d):l&&d()),d}function X_(e,t,n){const r=this.proxy,s=Se(e)?e.includes(".")?Zg(r,e):()=>r[e]:e.bind(r,r);let o;pe(t)?o=t:(o=t.handler,n=t);const a=ua(this),i=Ac(s,o.bind(r),n);return a(),i}function Zg(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const yr=new WeakMap,Kg=Symbol("_vte"),Hg=e=>e.__isTeleport,Zr=e=>e&&(e.disabled||e.disabled===""),z_=e=>e&&(e.defer||e.defer===""),Ff=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Lf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zl=(e,t)=>{const n=e&&e.to;return Se(n)?t?t(n):null:n},J_={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,a,i,l,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:g,createComment:b,parentNode:_}}=u,v=Zr(t.props);let{dynamicChildren:E}=t;const w=(P,O,R)=>{P.shapeFlag&16&&c(P.children,O,R,s,o,a,i,l)},B=(P=t)=>{const O=Zr(P.props),R=P.target=zl(P.props,h),F=Jl(R,P,g,p);R&&(a!=="svg"&&Ff(R)?a="svg":a!=="mathml"&&Lf(R)&&(a="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(R),O||(w(P,R,F),vo(P,!1)))},G=P=>{const O=()=>{if(yr.get(P)===O){if(yr.delete(P),Zr(P.props)){const R=_(P.el)||n;w(P,R,P.anchor),vo(P,!0)}B(P)}};yr.set(P,O),dt(O,o)};if(e==null){const P=t.el=g(""),O=t.anchor=g("");if(p(P,n,r),p(O,n,r),z_(t.props)||o&&o.pendingBranch){G(t);return}v&&(w(t,n,O),vo(t,!0)),B()}else{t.el=e.el;const P=t.anchor=e.anchor,O=yr.get(e);if(O){O.flags|=8,yr.delete(e),G(t);return}t.targetStart=e.targetStart;const R=t.target=e.target,F=t.targetAnchor=e.targetAnchor,$=Zr(e.props),k=$?n:R,U=$?P:F;if(a==="svg"||Ff(R)?a="svg":(a==="mathml"||Lf(R))&&(a="mathml"),E?(d(e.dynamicChildren,E,k,s,o,a,i),Cc(e,t,!0)):l||f(e,t,k,U,s,o,a,i,!1),v)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):xa(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Z=t.target=zl(t.props,h);Z&&xa(t,Z,null,u,0)}else $&&xa(t,R,F,u,1);vo(t,v)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:a,children:i,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e,p=o||!Zr(d),h=yr.get(e);if(h&&(h.flags|=8,yr.delete(e)),f&&(s(u),s(c)),o&&s(l),!h&&a&16)for(let g=0;g<i.length;g++){const b=i[g];r(b,t,n,p,!!b.dynamicChildren)}},move:xa,hydrate:Q_};function xa(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:i,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(a,t,n),!yr.has(e)&&(!f||Zr(c))&&l&16)for(let d=0;d<u.length;d++)s(u[d],t,n,2);f&&r(i,t,n)}function Q_(e,t,n,r,s,o,{o:{nextSibling:a,parentNode:i,querySelector:l,insert:u,createText:c}},f){function d(b,_){let v=_;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,b._lpa=t.targetAnchor&&a(t.targetAnchor);break}}v=a(v)}}function p(b,_){_.anchor=f(a(b),_,i(b),n,r,s,o)}const h=t.target=zl(t.props,l),g=Zr(t.props);if(h){const b=h._lpa||h.firstChild;t.shapeFlag&16&&(g?(p(e,t),d(h,b),t.targetAnchor||Jl(h,t,c,u,i(e)===h?e:null)):(t.anchor=a(e),d(h,b),t.targetAnchor||Jl(h,t,c,u),f(b&&a(b),t,h,n,r,s,o))),vo(t,g)}else g&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const q_=J_;function vo(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Jl(e,t,n,r,s=null){const o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[Kg]=a,e&&(r(o,e,s),r(a,e,s)),a}const en=Symbol("_leaveCb"),ao=Symbol("_enterCb");function ew(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return st(()=>{e.isMounted=!0}),mt(()=>{e.isUnmounting=!0}),e}const Jt=[Function,Array],Xg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Jt,onEnter:Jt,onAfterEnter:Jt,onEnterCancelled:Jt,onBeforeLeave:Jt,onLeave:Jt,onAfterLeave:Jt,onLeaveCancelled:Jt,onBeforeAppear:Jt,onAppear:Jt,onAfterAppear:Jt,onAppearCancelled:Jt},zg=e=>{const t=e.subTree;return t.component?zg(t.component):t},tw={name:"BaseTransition",props:Xg,setup(e,{slots:t}){const n=nt(),r=ew();return()=>{const s=t.default&&qg(t.default(),!0),o=s&&s.length?Jg(s):n.subTree?He():void 0;if(!o)return;const a=Ce(e),{mode:i}=a;if(r.isLeaving)return ll(o);const l=Mf(o);if(!l)return ll(o);let u=Ql(l,a,r,n,f=>u=f);l.type!==pt&&Ps(l,u);let c=n.subTree&&Mf(n.subTree);if(c&&c.type!==pt&&!xr(c,l)&&zg(n).type!==pt){let f=Ql(c,a,r,n);if(Ps(c,f),i==="out-in"&&l.type!==pt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},ll(o);i==="in-out"&&l.type!==pt?f.delayLeave=(d,p,h)=>{const g=Qg(r,c);g[String(c.key)]=c,d[en]=()=>{p(),d[en]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{h(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function Jg(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pt){t=n;break}}return t}const nw=tw;function Qg(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ql(e,t,n,r,s){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:b,onAppear:_,onAfterAppear:v,onAppearCancelled:E}=t,w=String(e.key),B=Qg(n,e),G=(R,F)=>{R&&nn(R,r,9,F)},P=(R,F)=>{const $=F[1];G(R,F),ie(R)?R.every(k=>k.length<=1)&&$():R.length<=1&&$()},O={mode:a,persisted:i,beforeEnter(R){let F=l;if(!n.isMounted)if(o)F=b||l;else return;R[en]&&R[en](!0);const $=B[w];$&&xr(e,$)&&$.el[en]&&$.el[en](),G(F,[R])},enter(R){if(B[w]===e)return;let F=u,$=c,k=f;if(!n.isMounted)if(o)F=_||u,$=v||c,k=E||f;else return;let U=!1;R[ao]=j=>{U||(U=!0,j?G(k,[R]):G($,[R]),O.delayedLeave&&O.delayedLeave(),R[ao]=void 0)};const Z=R[ao].bind(null,!1);F?P(F,[R,Z]):Z()},leave(R,F){const $=String(e.key);if(R[ao]&&R[ao](!0),n.isUnmounting)return F();G(d,[R]);let k=!1;R[en]=Z=>{k||(k=!0,F(),Z?G(g,[R]):G(h,[R]),R[en]=void 0,B[$]===e&&delete B[$])};const U=R[en].bind(null,!1);B[$]=e,p?P(p,[R,U]):U()},clone(R){const F=Ql(R,t,n,r,s);return s&&s(F),F}};return O}function ll(e){if(Ri(e))return e=Fn(e),e.children=null,e}function Mf(e){if(!Ri(e))return Hg(e.type)&&e.children?Jg(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pe(n.default))return n.default()}}function Ps(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ps(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qg(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let a=e[o];const i=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===Ke?(a.patchFlag&128&&s++,r=r.concat(qg(a.children,t,i))):(t||a.type!==pt)&&r.push(i!=null?Fn(a,{key:i}):a)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function de(e,t){return pe(e)?ht({name:e.name},t,{setup:e}):e}function em(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function rw(e){const t=nt(),n=Ks(null);if(t){const s=t.refs===We?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Wf(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ei=new WeakMap;function Io(e,t,n,r,s=!1){if(ie(e)){e.forEach((g,b)=>Io(g,t&&(ie(t)?t[b]:t),n,r,s));return}if(Cr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Io(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Oi(r.component):r.el,a=s?null:o,{i,r:l}=e,u=t&&t.r,c=i.refs===We?i.refs={}:i.refs,f=i.setupState,d=Ce(f),p=f===We?lg:g=>Wf(c,g)?!1:Te(d,g),h=(g,b)=>!(b&&Wf(c,b));if(u!=null&&u!==l){if(Vf(t),Se(u))c[u]=null,p(u)&&(f[u]=null);else if(je(u)){const g=t;h(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(pe(l))ia(l,i,12,[a,c]);else{const g=Se(l),b=je(l);if(g||b){const _=()=>{if(e.f){const v=g?p(l)?f[l]:c[l]:h()||!e.k?l.value:c[e.k];if(s)ie(v)&&hc(v,o);else if(ie(v))v.includes(o)||v.push(o);else if(g)c[l]=[o],p(l)&&(f[l]=c[l]);else{const E=[o];h(l,e.k)&&(l.value=E),e.k&&(c[e.k]=E)}}else g?(c[l]=a,p(l)&&(f[l]=a)):b&&(h(l,e.k)&&(l.value=a),e.k&&(c[e.k]=a))};if(a){const v=()=>{_(),ei.delete(e)};v.id=-1,ei.set(e,v),dt(v,n)}else Vf(e),_()}}}function Vf(e){const t=ei.get(e);t&&(t.flags|=8,ei.delete(e))}Ai().requestIdleCallback;Ai().cancelIdleCallback;const Cr=e=>!!e.type.__asyncLoader,Ri=e=>e.type.__isKeepAlive,sw={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=nt(),r=n.ctx;if(!r.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const s=new Map,o=new Set;let a=null;const i=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(v,E,w,B,G)=>{const P=v.component;u(v,E,w,0,i),l(P.vnode,v,E,w,P,i,B,v.slotScopeIds,G),dt(()=>{P.isDeactivated=!1,P.a&&So(P.a);const O=v.props&&v.props.onVnodeMounted;O&&qt(O,P.parent,v)},i)},r.deactivate=v=>{const E=v.component;ni(E.m),ni(E.a),u(v,d,null,1,i),dt(()=>{E.da&&So(E.da);const w=v.props&&v.props.onVnodeUnmounted;w&&qt(w,E.parent,v),E.isDeactivated=!0},i)};function p(v){ul(v),c(v,n,i,!0)}function h(v){s.forEach((E,w)=>{const B=su(Cr(E)?E.type.__asyncResolved||{}:E.type);B&&!v(B)&&g(w)})}function g(v){const E=s.get(v);E&&(!a||!xr(E,a))?p(E):a&&ul(a),s.delete(v),o.delete(v)}xe(()=>[e.include,e.exclude],([v,E])=>{v&&h(w=>yo(v,w)),E&&h(w=>!yo(E,w))},{flush:"post",deep:!0});let b=null;const _=()=>{b!=null&&(ri(n.subTree.type)?dt(()=>{s.set(b,Na(n.subTree))},n.subTree.suspense):s.set(b,Na(n.subTree)))};return st(_),Sc(_),mt(()=>{s.forEach(v=>{const{subTree:E,suspense:w}=n,B=Na(E);if(v.type===B.type&&v.key===B.key){ul(B);const G=B.component.da;G&&dt(G,w);return}p(v)})}),()=>{if(b=null,!t.default)return a=null;const v=t.default(),E=v[0];if(v.length>1)return a=null,v;if(!pn(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return a=null,E;let w=Na(E);if(w.type===pt)return a=null,w;const B=w.type,G=su(Cr(w)?w.type.__asyncResolved||{}:B),{include:P,exclude:O,max:R}=e;if(P&&(!G||!yo(P,G))||O&&G&&yo(O,G))return w.shapeFlag&=-257,a=w,E;const F=w.key==null?B:w.key,$=s.get(F);return w.el&&(w=Fn(w),E.shapeFlag&128&&(E.ssContent=w)),b=F,$?(w.el=$.el,w.component=$.component,w.transition&&Ps(w,w.transition),w.shapeFlag|=512,o.delete(F),o.add(F)):(o.add(F),R&&o.size>parseInt(R,10)&&g(o.values().next().value)),w.shapeFlag|=256,a=w,ri(E.type)?E:w}}},ow=sw;function yo(e,t){return ie(e)?e.some(n=>yo(n,t)):Se(e)?e.split(",").includes(t):t_(e)?(e.lastIndex=0,e.test(t)):!1}function tm(e,t){rm(e,"a",t)}function nm(e,t){rm(e,"da",t)}function rm(e,t,n=Nt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Pi(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ri(s.parent.vnode)&&aw(r,t,n,s),s=s.parent}}function aw(e,t,n,r){const s=Pi(t,e,r,!0);la(()=>{hc(r[t],s)},n)}function ul(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Na(e){return e.shapeFlag&128?e.ssContent:e}function Pi(e,t,n=Nt,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{sr();const i=ua(n),l=nn(t,n,e,a);return i(),or(),l});return r?s.unshift(o):s.push(o),o}}const lr=e=>(t,n=Nt)=>{(!Uo||e==="sp")&&Pi(e,(...r)=>t(...r),n)},sm=lr("bm"),st=lr("m"),om=lr("bu"),Sc=lr("u"),mt=lr("bum"),la=lr("um"),iw=lr("sp"),lw=lr("rtg"),uw=lr("rtc");function cw(e,t=Nt){Pi("ec",e,t)}const xc="components";function Lt(e,t){return im(xc,e,!0,t)||e}const am=Symbol.for("v-ndc");function zr(e){return Se(e)?im(xc,e,!1)||e:e||am}function im(e,t,n=!0,r=!1){const s=_t||Nt;if(s){const o=s.type;if(e===xc){const i=su(o,!1);if(i&&(i===t||i===Ct(t)||i===Ei(Ct(t))))return o}const a=$f(s[e]||o[e],t)||$f(s.appContext[e],t);return!a&&r?o:a}}function $f(e,t){return e&&(e[t]||e[Ct(t)]||e[Ei(Ct(t))])}function lm(e,t,n,r){let s;const o=n,a=ie(e);if(a||Se(e)){const i=a&&Bn(e);let l=!1,u=!1;i&&(l=!Kt(e),u=ar(e),e=Si(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Rs(mn(e[c])):mn(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o)}else if(Ie(e))if(e[Symbol.iterator])s=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,u=i.length;l<u;l++){const c=i[l];s[l]=t(e[c],c,l,o)}}else s=[];return s}function um(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(ie(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function ve(e,t,n={},r,s){if(_t.ce||_t.parent&&Cr(_t.parent)&&_t.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),Ae(Ke,null,[we("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),z();const a=o&&cm(o(n)),i=n.key||a&&a.key,l=Ae(Ke,{key:(i&&!Ht(i)?i:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function cm(e){return e.some(t=>pn(t)?!(t.type===pt||t.type===Ke&&!cm(t.children)):!0)?e:null}function fw(e,t){const n={};for(const r in e)n[Va(r)]=e[r];return n}const ql=e=>e?Pm(e)?Oi(e):ql(e.parent):null,Co=ht(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=>ql(e.parent),$root:e=>ql(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>hm(e),$forceUpdate:e=>e.f||(e.f=()=>{Ec(e.update)}),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>X_.bind(e)}),cl=(e,t)=>e!==We&&!e.__isScriptSetup&&Te(e,t),dw={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:i,appContext:l}=e;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(cl(r,t))return a[t]=1,r[t];if(s!==We&&Te(s,t))return a[t]=2,s[t];if(Te(o,t))return a[t]=3,o[t];if(n!==We&&Te(n,t))return a[t]=4,n[t];eu&&(a[t]=0)}}const u=Co[t];let c,f;if(u)return t==="$attrs"&&xt(e.attrs,"get",""),u(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(n!==We&&Te(n,t))return a[t]=4,n[t];if(f=l.config.globalProperties,Te(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return cl(s,t)?(s[t]=n,!0):r!==We&&Te(r,t)?(r[t]=n,!0):Te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:a}},i){let l;return!!(n[i]||e!==We&&i[0]!=="$"&&Te(e,i)||cl(t,i)||Te(o,i)||Te(r,i)||Te(Co,i)||Te(s.config.globalProperties,i)||(l=a.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fm(){return dm().slots}function tO(){return dm().attrs}function dm(e){const t=nt();return t.setupContext||(t.setupContext=Om(t))}function Df(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let eu=!0;function pw(e){const t=hm(e),n=e.proxy,r=e.ctx;eu=!1,t.beforeCreate&&Gf(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:i,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:g,deactivated:b,beforeDestroy:_,beforeUnmount:v,destroyed:E,unmounted:w,render:B,renderTracked:G,renderTriggered:P,errorCaptured:O,serverPrefetch:R,expose:F,inheritAttrs:$,components:k,directives:U,filters:Z}=t;if(u&&hw(u,r,null),a)for(const x in a){const C=a[x];pe(C)&&(r[x]=C.bind(n))}if(s){const x=s.call(n,n);Ie(x)&&(e.data=yn(x))}if(eu=!0,o)for(const x in o){const C=o[x],H=pe(C)?C.bind(n,n):pe(C.get)?C.get.bind(n,n):It,te=!pe(C)&&pe(C.set)?C.set.bind(n):It,ae=T({get:H,set:te});Object.defineProperty(r,x,{enumerable:!0,configurable:!0,get:()=>ae.value,set:se=>ae.value=se})}if(i)for(const x in i)pm(i[x],r,n,x);if(l){const x=pe(l)?l.call(n):l;Reflect.ownKeys(x).forEach(C=>{tt(C,x[C])})}c&&Gf(c,e,"c");function M(x,C){ie(C)?C.forEach(H=>x(H.bind(n))):C&&x(C.bind(n))}if(M(sm,f),M(st,d),M(om,p),M(Sc,h),M(tm,g),M(nm,b),M(cw,O),M(uw,G),M(lw,P),M(mt,v),M(la,w),M(iw,R),ie(F))if(F.length){const x=e.exposed||(e.exposed={});F.forEach(C=>{Object.defineProperty(x,C,{get:()=>n[C],set:H=>n[C]=H,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===It&&(e.render=B),$!=null&&(e.inheritAttrs=$),k&&(e.components=k),U&&(e.directives=U),R&&em(e)}function hw(e,t,n=It){ie(e)&&(e=tu(e));for(const r in e){const s=e[r];let o;Ie(s)?"default"in s?o=ge(s.from||r,s.default,!0):o=ge(s.from||r):o=ge(s),je(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Gf(e,t,n){nn(ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function pm(e,t,n,r){let s=r.includes(".")?Zg(n,r):()=>n[r];if(Se(e)){const o=t[e];pe(o)&&xe(s,o)}else if(pe(e))xe(s,e.bind(n));else if(Ie(e))if(ie(e))e.forEach(o=>pm(o,t,n,r));else{const o=pe(e.handler)?e.handler.bind(n):t[e.handler];pe(o)&&xe(s,o,e)}}function hm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let l;return i?l=i:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>ti(l,u,a,!0)),ti(l,t,a)),Ie(t)&&o.set(t,l),l}function ti(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ti(e,o,n,!0),s&&s.forEach(a=>ti(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=gw[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const gw={data:Yf,props:Uf,emits:Uf,methods:_o,computed:_o,beforeCreate:Rt,created:Rt,beforeMount:Rt,mounted:Rt,beforeUpdate:Rt,updated:Rt,beforeDestroy:Rt,beforeUnmount:Rt,destroyed:Rt,unmounted:Rt,activated:Rt,deactivated:Rt,errorCaptured:Rt,serverPrefetch:Rt,components:_o,directives:_o,watch:bw,provide:Yf,inject:mw};function Yf(e,t){return t?e?function(){return ht(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function mw(e,t){return _o(tu(e),tu(t))}function tu(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Rt(e,t){return e?[...new Set([].concat(e,t))]:t}function _o(e,t){return e?ht(Object.create(null),e,t):t}function Uf(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:ht(Object.create(null),Df(e),Df(t??{})):t}function bw(e,t){if(!e)return t;if(!t)return e;const n=ht(Object.create(null),e);for(const r in t)n[r]=Rt(e[r],t[r]);return n}function gm(){return{app:null,config:{isNativeTag:lg,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 vw=0;function yw(e,t){return function(r,s=null){pe(r)||(r=ht({},r)),s!=null&&!Ie(s)&&(s=null);const o=gm(),a=new WeakSet,i=[];let l=!1;const u=o.app={_uid:vw++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Kw,get config(){return o.config},set config(c){},use(c,...f){return a.has(c)||(c&&pe(c.install)?(a.add(c),c.install(u,...f)):pe(c)&&(a.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const p=u._ceVNode||we(r,s);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),e(p,c,d),l=!0,u._container=c,c.__vue_app__=u,Oi(p.component)}},onUnmount(c){i.push(c)},unmount(){l&&(nn(i,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Jr;Jr=u;try{return c()}finally{Jr=f}}};return u}}let Jr=null;const _w=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ct(t)}Modifiers`]||e[`${as(t)}Modifiers`];function ww(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||We;let s=n;const o=t.startsWith("update:"),a=o&&_w(r,t.slice(7));a&&(a.trim&&(s=n.map(c=>Se(c)?c.trim():c)),a.number&&(s=n.map(o_)));let i,l=r[i=Va(t)]||r[i=Va(Ct(t))];!l&&o&&(l=r[i=Va(as(t))]),l&&nn(l,e,6,s);const u=r[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,nn(u,e,6,s)}}const Ew=new WeakMap;function mm(e,t,n=!1){const r=n?Ew:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let a={},i=!1;if(!pe(e)){const l=u=>{const c=mm(u,t,!0);c&&(i=!0,ht(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(Ie(e)&&r.set(e,null),null):(ie(o)?o.forEach(l=>a[l]=null):ht(a,o),Ie(e)&&r.set(e,a),a)}function Bi(e,t){return!e||!vi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Te(e,t[0].toLowerCase()+t.slice(1))||Te(e,as(t))||Te(e,t))}function jf(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:i,emit:l,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:h,inheritAttrs:g}=e,b=qa(e);let _,v;try{if(n.shapeFlag&4){const w=s||r,B=w;_=Tn(u.call(B,w,c,f,p,d,h)),v=i}else{const w=t;_=Tn(w.length>1?w(f,{attrs:i,slots:a,emit:l}):w(f,null)),v=t.props?i:Aw(i)}}catch(w){To.length=0,Ti(w,e,1),_=we(pt)}let E=_;if(v&&g!==!1){const w=Object.keys(v),{shapeFlag:B}=E;w.length&&B&7&&(o&&w.some(yi)&&(v=Sw(v,o)),E=Fn(E,v,!1,!0))}return n.dirs&&(E=Fn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Ps(E,n.transition),_=E,qa(b),_}const Aw=e=>{let t;for(const n in e)(n==="class"||n==="style"||vi(n))&&((t||(t={}))[n]=e[n]);return t},Sw=(e,t)=>{const n={};for(const r in e)(!yi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function xw(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:i,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Zf(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(bm(a,r,d)&&!Bi(u,d))return!0}}}else return(s||i)&&(!i||!i.$stable)?!0:r===a?!1:r?a?Zf(r,a,u):!0:!!a;return!1}function Zf(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(bm(t,e,o)&&!Bi(n,o))return!0}return!1}function bm(e,t,n){const r=e[n],s=t[n];return n==="style"&&Ie(r)&&Ie(s)?!gc(r,s):r!==s}function Nw({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const vm={},ym=()=>Object.create(vm),_m=e=>Object.getPrototypeOf(e)===vm;function Iw(e,t,n,r=!1){const s={},o=ym();e.propsDefaults=Object.create(null),wm(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Ni(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Cw(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=e,i=Ce(s),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Bi(e.emitsOptions,d))continue;const p=t[d];if(l)if(Te(o,d))p!==o[d]&&(o[d]=p,u=!0);else{const h=Ct(d);s[h]=nu(l,i,h,p,e,!1)}else p!==o[d]&&(o[d]=p,u=!0)}}}else{wm(e,t,s,o)&&(u=!0);let c;for(const f in i)(!t||!Te(t,f)&&((c=as(f))===f||!Te(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=nu(l,i,f,void 0,e,!0)):delete s[f]);if(o!==i)for(const f in o)(!t||!Te(t,f))&&(delete o[f],u=!0)}u&&qn(e.attrs,"set","")}function wm(e,t,n,r){const[s,o]=e.propsOptions;let a=!1,i;if(t)for(let l in t){if(Ao(l))continue;const u=t[l];let c;s&&Te(s,c=Ct(l))?!o||!o.includes(c)?n[c]=u:(i||(i={}))[c]=u:Bi(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=Ce(n),u=i||We;for(let c=0;c<o.length;c++){const f=o[c];n[f]=nu(s,l,f,u[f],e,!Te(u,f))}}return a}function nu(e,t,n,r,s,o){const a=e[n];if(a!=null){const i=Te(a,"default");if(i&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&pe(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=ua(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}a[0]&&(o&&!i?r=!1:a[1]&&(r===""||r===as(n))&&(r=!0))}return r}const Tw=new WeakMap;function Em(e,t,n=!1){const r=n?Tw:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,a={},i=[];let l=!1;if(!pe(e)){const c=f=>{l=!0;const[d,p]=Em(f,t,!0);ht(a,d),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return Ie(e)&&r.set(e,Ns),Ns;if(ie(o))for(let c=0;c<o.length;c++){const f=Ct(o[c]);Kf(f)&&(a[f]=We)}else if(o)for(const c in o){const f=Ct(c);if(Kf(f)){const d=o[c],p=a[f]=ie(d)||pe(d)?{type:d}:ht({},d),h=p.type;let g=!1,b=!0;if(ie(h))for(let _=0;_<h.length;++_){const v=h[_],E=pe(v)&&v.name;if(E==="Boolean"){g=!0;break}else E==="String"&&(b=!1)}else g=pe(h)&&h.name==="Boolean";p[0]=g,p[1]=b,(g||Te(p,"default"))&&i.push(f)}}const u=[a,i];return Ie(e)&&r.set(e,u),u}function Kf(e){return e[0]!=="$"&&!Ao(e)}const Nc=e=>e==="_"||e==="_ctx"||e==="$stable",Ic=e=>ie(e)?e.map(Tn):[Tn(e)],Rw=(e,t,n)=>{if(t._n)return t;const r=ce((...s)=>Ic(t(...s)),n);return r._c=!1,r},Am=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Nc(s))continue;const o=e[s];if(pe(o))t[s]=Rw(s,o,r);else if(o!=null){const a=Ic(o);t[s]=()=>a}}},Sm=(e,t)=>{const n=Ic(t);e.slots.default=()=>n},xm=(e,t,n)=>{for(const r in t)(n||!Nc(r))&&(e[r]=t[r])},Pw=(e,t,n)=>{const r=e.slots=ym();if(e.vnode.shapeFlag&32){const s=t._;s?(xm(r,t,n),n&&pg(r,"_",s,!0)):Am(t,r)}else t&&Sm(e,t)},Bw=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=We;if(r.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:xm(s,t,n):(o=!t.$stable,Am(t,s)),a=t}else t&&(Sm(e,t),a={default:1});if(o)for(const i in s)!Nc(i)&&a[i]==null&&delete s[i]},dt=Mw;function Ow(e){return kw(e)}function kw(e,t){const n=Ai();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:a,createText:i,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=It,insertStaticContent:h}=e,g=(m,y,S,V=null,Y=null,W=null,ne=void 0,q=null,X=!!y.dynamicChildren)=>{if(m===y)return;m&&!xr(m,y)&&(V=L(m),se(m,Y,W,!0),m=null),y.patchFlag===-2&&(X=!1,y.dynamicChildren=null);const{type:K,ref:he,shapeFlag:re}=y;switch(K){case Xs:b(m,y,S,V);break;case pt:_(m,y,S,V);break;case $a:m==null&&v(y,S,V,ne);break;case Ke:k(m,y,S,V,Y,W,ne,q,X);break;default:re&1?B(m,y,S,V,Y,W,ne,q,X):re&6?U(m,y,S,V,Y,W,ne,q,X):(re&64||re&128)&&K.process(m,y,S,V,Y,W,ne,q,X,oe)}he!=null&&Y?Io(he,m&&m.ref,W,y||m,!y):he==null&&m&&m.ref!=null&&Io(m.ref,null,W,m,!0)},b=(m,y,S,V)=>{if(m==null)r(y.el=i(y.children),S,V);else{const Y=y.el=m.el;y.children!==m.children&&u(Y,y.children)}},_=(m,y,S,V)=>{m==null?r(y.el=l(y.children||""),S,V):y.el=m.el},v=(m,y,S,V)=>{[m.el,m.anchor]=h(m.children,y,S,V,m.el,m.anchor)},E=({el:m,anchor:y},S,V)=>{let Y;for(;m&&m!==y;)Y=d(m),r(m,S,V),m=Y;r(y,S,V)},w=({el:m,anchor:y})=>{let S;for(;m&&m!==y;)S=d(m),s(m),m=S;s(y)},B=(m,y,S,V,Y,W,ne,q,X)=>{if(y.type==="svg"?ne="svg":y.type==="math"&&(ne="mathml"),m==null)G(y,S,V,Y,W,ne,q,X);else{const K=m.el&&m.el._isVueCE?m.el:null;try{K&&K._beginPatch(),R(m,y,Y,W,ne,q,X)}finally{K&&K._endPatch()}}},G=(m,y,S,V,Y,W,ne,q)=>{let X,K;const{props:he,shapeFlag:re,transition:ue,dirs:me}=m;if(X=m.el=a(m.type,W,he&&he.is,he),re&8?c(X,m.children):re&16&&O(m.children,X,null,V,Y,fl(m,W),ne,q),me&&Vr(m,null,V,"created"),P(X,m,m.scopeId,ne,V),he){for(const Oe in he)Oe!=="value"&&!Ao(Oe)&&o(X,Oe,null,he[Oe],W,V);"value"in he&&o(X,"value",null,he.value,W),(K=he.onVnodeBeforeMount)&&qt(K,V,m)}me&&Vr(m,null,V,"beforeMount");const Ne=Fw(Y,ue);Ne&&ue.beforeEnter(X),r(X,y,S),((K=he&&he.onVnodeMounted)||Ne||me)&&dt(()=>{K&&qt(K,V,m),Ne&&ue.enter(X),me&&Vr(m,null,V,"mounted")},Y)},P=(m,y,S,V,Y)=>{if(S&&p(m,S),V)for(let W=0;W<V.length;W++)p(m,V[W]);if(Y){let W=Y.subTree;if(y===W||ri(W.type)&&(W.ssContent===y||W.ssFallback===y)){const ne=Y.vnode;P(m,ne,ne.scopeId,ne.slotScopeIds,Y.parent)}}},O=(m,y,S,V,Y,W,ne,q,X=0)=>{for(let K=X;K<m.length;K++){const he=m[K]=q?Jn(m[K]):Tn(m[K]);g(null,he,y,S,V,Y,W,ne,q)}},R=(m,y,S,V,Y,W,ne)=>{const q=y.el=m.el;let{patchFlag:X,dynamicChildren:K,dirs:he}=y;X|=m.patchFlag&16;const re=m.props||We,ue=y.props||We;let me;if(S&&$r(S,!1),(me=ue.onVnodeBeforeUpdate)&&qt(me,S,y,m),he&&Vr(y,m,S,"beforeUpdate"),S&&$r(S,!0),(re.innerHTML&&ue.innerHTML==null||re.textContent&&ue.textContent==null)&&c(q,""),K?F(m.dynamicChildren,K,q,S,V,fl(y,Y),W):ne||C(m,y,q,null,S,V,fl(y,Y),W,!1),X>0){if(X&16)$(q,re,ue,S,Y);else if(X&2&&re.class!==ue.class&&o(q,"class",null,ue.class,Y),X&4&&o(q,"style",re.style,ue.style,Y),X&8){const Ne=y.dynamicProps;for(let Oe=0;Oe<Ne.length;Oe++){const Be=Ne[Oe],at=re[Be],bt=ue[Be];(bt!==at||Be==="value")&&o(q,Be,at,bt,Y,S)}}X&1&&m.children!==y.children&&c(q,y.children)}else!ne&&K==null&&$(q,re,ue,S,Y);((me=ue.onVnodeUpdated)||he)&&dt(()=>{me&&qt(me,S,y,m),he&&Vr(y,m,S,"updated")},V)},F=(m,y,S,V,Y,W,ne)=>{for(let q=0;q<y.length;q++){const X=m[q],K=y[q],he=X.el&&(X.type===Ke||!xr(X,K)||X.shapeFlag&198)?f(X.el):S;g(X,K,he,null,V,Y,W,ne,!0)}},$=(m,y,S,V,Y)=>{if(y!==S){if(y!==We)for(const W in y)!Ao(W)&&!(W in S)&&o(m,W,y[W],null,Y,V);for(const W in S){if(Ao(W))continue;const ne=S[W],q=y[W];ne!==q&&W!=="value"&&o(m,W,q,ne,Y,V)}"value"in S&&o(m,"value",y.value,S.value,Y)}},k=(m,y,S,V,Y,W,ne,q,X)=>{const K=y.el=m?m.el:i(""),he=y.anchor=m?m.anchor:i("");let{patchFlag:re,dynamicChildren:ue,slotScopeIds:me}=y;me&&(q=q?q.concat(me):me),m==null?(r(K,S,V),r(he,S,V),O(y.children||[],S,he,Y,W,ne,q,X)):re>0&&re&64&&ue&&m.dynamicChildren&&m.dynamicChildren.length===ue.length?(F(m.dynamicChildren,ue,S,Y,W,ne,q),(y.key!=null||Y&&y===Y.subTree)&&Cc(m,y,!0)):C(m,y,S,he,Y,W,ne,q,X)},U=(m,y,S,V,Y,W,ne,q,X)=>{y.slotScopeIds=q,m==null?y.shapeFlag&512?Y.ctx.activate(y,S,V,ne,X):Z(y,S,V,Y,W,ne,X):j(m,y,X)},Z=(m,y,S,V,Y,W,ne)=>{const q=m.component=Gw(m,V,Y);if(Ri(m)&&(q.ctx.renderer=oe),Yw(q,!1,ne),q.asyncDep){if(Y&&Y.registerDep(q,M,ne),!m.el){const X=q.subTree=we(pt);_(null,X,y,S),m.placeholder=X.el}}else M(q,m,y,S,Y,W,ne)},j=(m,y,S)=>{const V=y.component=m.component;if(xw(m,y,S))if(V.asyncDep&&!V.asyncResolved){x(V,y,S);return}else V.next=y,V.update();else y.el=m.el,V.vnode=y},M=(m,y,S,V,Y,W,ne)=>{const q=()=>{if(m.isMounted){let{next:re,bu:ue,u:me,parent:Ne,vnode:Oe}=m;{const Sn=Nm(m);if(Sn){re&&(re.el=Oe.el,x(m,re,ne)),Sn.asyncDep.then(()=>{dt(()=>{m.isUnmounted||K()},Y)});return}}let Be=re,at;$r(m,!1),re?(re.el=Oe.el,x(m,re,ne)):re=Oe,ue&&So(ue),(at=re.props&&re.props.onVnodeBeforeUpdate)&&qt(at,Ne,re,Oe),$r(m,!0);const bt=jf(m),An=m.subTree;m.subTree=bt,g(An,bt,f(An.el),L(An),m,Y,W),re.el=bt.el,Be===null&&Nw(m,bt.el),me&&dt(me,Y),(at=re.props&&re.props.onVnodeUpdated)&&dt(()=>qt(at,Ne,re,Oe),Y)}else{let re;const{el:ue,props:me}=y,{bm:Ne,m:Oe,parent:Be,root:at,type:bt}=m,An=Cr(y);$r(m,!1),Ne&&So(Ne),!An&&(re=me&&me.onVnodeBeforeMount)&&qt(re,Be,y),$r(m,!0);{at.ce&&at.ce._hasShadowRoot()&&at.ce._injectChildStyle(bt,m.parent?m.parent.type:void 0);const Sn=m.subTree=jf(m);g(null,Sn,S,V,m,Y,W),y.el=Sn.el}if(Oe&&dt(Oe,Y),!An&&(re=me&&me.onVnodeMounted)){const Sn=y;dt(()=>qt(re,Be,Sn),Y)}(y.shapeFlag&256||Be&&Cr(Be.vnode)&&Be.vnode.shapeFlag&256)&&m.a&&dt(m.a,Y),m.isMounted=!0,y=S=V=null}};m.scope.on();const X=m.effect=new _g(q);m.scope.off();const K=m.update=X.run.bind(X),he=m.job=X.runIfDirty.bind(X);he.i=m,he.id=m.uid,X.scheduler=()=>Ec(he),$r(m,!0),K()},x=(m,y,S)=>{y.component=m;const V=m.vnode.props;m.vnode=y,m.next=null,Cw(m,y.props,V,S),Bw(m,y.children,S),sr(),kf(m),or()},C=(m,y,S,V,Y,W,ne,q,X=!1)=>{const K=m&&m.children,he=m?m.shapeFlag:0,re=y.children,{patchFlag:ue,shapeFlag:me}=y;if(ue>0){if(ue&128){te(K,re,S,V,Y,W,ne,q,X);return}else if(ue&256){H(K,re,S,V,Y,W,ne,q,X);return}}me&8?(he&16&&Ze(K,Y,W),re!==K&&c(S,re)):he&16?me&16?te(K,re,S,V,Y,W,ne,q,X):Ze(K,Y,W,!0):(he&8&&c(S,""),me&16&&O(re,S,V,Y,W,ne,q,X))},H=(m,y,S,V,Y,W,ne,q,X)=>{m=m||Ns,y=y||Ns;const K=m.length,he=y.length,re=Math.min(K,he);let ue;for(ue=0;ue<re;ue++){const me=y[ue]=X?Jn(y[ue]):Tn(y[ue]);g(m[ue],me,S,null,Y,W,ne,q,X)}K>he?Ze(m,Y,W,!0,!1,re):O(y,S,V,Y,W,ne,q,X,re)},te=(m,y,S,V,Y,W,ne,q,X)=>{let K=0;const he=y.length;let re=m.length-1,ue=he-1;for(;K<=re&&K<=ue;){const me=m[K],Ne=y[K]=X?Jn(y[K]):Tn(y[K]);if(xr(me,Ne))g(me,Ne,S,null,Y,W,ne,q,X);else break;K++}for(;K<=re&&K<=ue;){const me=m[re],Ne=y[ue]=X?Jn(y[ue]):Tn(y[ue]);if(xr(me,Ne))g(me,Ne,S,null,Y,W,ne,q,X);else break;re--,ue--}if(K>re){if(K<=ue){const me=ue+1,Ne=me<he?y[me].el:V;for(;K<=ue;)g(null,y[K]=X?Jn(y[K]):Tn(y[K]),S,Ne,Y,W,ne,q,X),K++}}else if(K>ue)for(;K<=re;)se(m[K],Y,W,!0),K++;else{const me=K,Ne=K,Oe=new Map;for(K=Ne;K<=ue;K++){const Yt=y[K]=X?Jn(y[K]):Tn(y[K]);Yt.key!=null&&Oe.set(Yt.key,K)}let Be,at=0;const bt=ue-Ne+1;let An=!1,Sn=0;const so=new Array(bt);for(K=0;K<bt;K++)so[K]=0;for(K=me;K<=re;K++){const Yt=m[K];if(at>=bt){se(Yt,Y,W,!0);continue}let xn;if(Yt.key!=null)xn=Oe.get(Yt.key);else for(Be=Ne;Be<=ue;Be++)if(so[Be-Ne]===0&&xr(Yt,y[Be])){xn=Be;break}xn===void 0?se(Yt,Y,W,!0):(so[xn-Ne]=K+1,xn>=Sn?Sn=xn:An=!0,g(Yt,y[xn],S,null,Y,W,ne,q,X),at++)}const If=An?Lw(so):Ns;for(Be=If.length-1,K=bt-1;K>=0;K--){const Yt=Ne+K,xn=y[Yt],Cf=y[Yt+1],Tf=Yt+1<he?Cf.el||Im(Cf):V;so[K]===0?g(null,xn,S,Tf,Y,W,ne,q,X):An&&(Be<0||K!==If[Be]?ae(xn,S,Tf,2):Be--)}}},ae=(m,y,S,V,Y=null)=>{const{el:W,type:ne,transition:q,children:X,shapeFlag:K}=m;if(K&6){ae(m.component.subTree,y,S,V);return}if(K&128){m.suspense.move(y,S,V);return}if(K&64){ne.move(m,y,S,oe);return}if(ne===Ke){r(W,y,S);for(let re=0;re<X.length;re++)ae(X[re],y,S,V);r(m.anchor,y,S);return}if(ne===$a){E(m,y,S);return}if(V!==2&&K&1&&q)if(V===0)q.persisted&&!W[en]?r(W,y,S):(q.beforeEnter(W),r(W,y,S),dt(()=>q.enter(W),Y));else{const{leave:re,delayLeave:ue,afterLeave:me}=q,Ne=()=>{m.ctx.isUnmounted?s(W):r(W,y,S)},Oe=()=>{const Be=W._isLeaving||!!W[en];W._isLeaving&&W[en](!0),q.persisted&&!Be?Ne():re(W,()=>{Ne(),me&&me()})};ue?ue(W,Ne,Oe):Oe()}else r(W,y,S)},se=(m,y,S,V=!1,Y=!1)=>{const{type:W,props:ne,ref:q,children:X,dynamicChildren:K,shapeFlag:he,patchFlag:re,dirs:ue,cacheIndex:me,memo:Ne}=m;if(re===-2&&(Y=!1),q!=null&&(sr(),Io(q,null,S,m,!0),or()),me!=null&&(y.renderCache[me]=void 0),he&256){y.ctx.deactivate(m);return}const Oe=he&1&&ue,Be=!Cr(m);let at;if(Be&&(at=ne&&ne.onVnodeBeforeUnmount)&&qt(at,y,m),he&6)Re(m.component,S,V);else{if(he&128){m.suspense.unmount(S,V);return}Oe&&Vr(m,null,y,"beforeUnmount"),he&64?m.type.remove(m,y,S,oe,V):K&&!K.hasOnce&&(W!==Ke||re>0&&re&64)?Ze(K,y,S,!1,!0):(W===Ke&&re&384||!Y&&he&16)&&Ze(X,y,S),V&&Ee(m)}const bt=Ne!=null&&me==null;(Be&&(at=ne&&ne.onVnodeUnmounted)||Oe||bt)&&dt(()=>{at&&qt(at,y,m),Oe&&Vr(m,null,y,"unmounted"),bt&&(m.el=null)},S)},Ee=m=>{const{type:y,el:S,anchor:V,transition:Y}=m;if(y===Ke){be(S,V);return}if(y===$a){w(m);return}const W=()=>{s(S),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(m.shapeFlag&1&&Y&&!Y.persisted){const{leave:ne,delayLeave:q}=Y,X=()=>ne(S,W);q?q(m.el,W,X):X()}else W()},be=(m,y)=>{let S;for(;m!==y;)S=d(m),s(m),m=S;s(y)},Re=(m,y,S)=>{const{bum:V,scope:Y,job:W,subTree:ne,um:q,m:X,a:K}=m;ni(X),ni(K),V&&So(V),Y.stop(),W&&(W.flags|=8,se(ne,m,y,S)),q&&dt(q,y),dt(()=>{m.isUnmounted=!0},y)},Ze=(m,y,S,V=!1,Y=!1,W=0)=>{for(let ne=W;ne<m.length;ne++)se(m[ne],y,S,V,Y)},L=m=>{if(m.shapeFlag&6)return L(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const y=d(m.anchor||m.el),S=y&&y[Kg];return S?d(S):y};let ee=!1;const Q=(m,y,S)=>{let V;m==null?y._vnode&&(se(y._vnode,null,null,!0),V=y._vnode.component):g(y._vnode||null,m,y,null,null,null,S),y._vnode=m,ee||(ee=!0,kf(V),Gg(),ee=!1)},oe={p:g,um:se,m:ae,r:Ee,mt:Z,mc:O,pc:C,pbc:F,n:L,o:e};return{render:Q,hydrate:void 0,createApp:yw(Q)}}function fl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $r({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Cc(e,t,n=!1){const r=e.children,s=t.children;if(ie(r)&&ie(s))for(let o=0;o<r.length;o++){const a=r[o];let i=s[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=s[o]=Jn(s[o]),i.el=a.el),!n&&i.patchFlag!==-2&&Cc(a,i)),i.type===Xs&&(i.patchFlag===-1&&(i=s[o]=Jn(i)),i.el=a.el),i.type===pt&&!i.el&&(i.el=a.el)}}function Lw(e){const t=e.slice(),n=[0];let r,s,o,a,i;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)i=o+a>>1,e[n[i]]<u?o=i+1:a=i;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function Nm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nm(t)}function ni(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Im(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Im(t.subTree):null}const ri=e=>e.__isSuspense;function Mw(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):Dg(e)}const Ke=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),$a=Symbol.for("v-stc"),To=[];let Zt=null;function z(e=!1){To.push(Zt=e?null:[])}function Ww(){To.pop(),Zt=To[To.length-1]||null}let Yo=1;function si(e,t=!1){Yo+=e,e<0&&Zt&&t&&(Zt.hasOnce=!0)}function Cm(e){return e.dynamicChildren=Yo>0?Zt||Ns:null,Ww(),Yo>0&&Zt&&Zt.push(e),e}function _e(e,t,n,r,s,o){return Cm(fe(e,t,n,r,s,o,!0))}function Ae(e,t,n,r,s){return Cm(we(e,t,n,r,s,!0))}function pn(e){return e?e.__v_isVNode===!0:!1}function xr(e,t){return e.type===t.type&&e.key===t.key}const Tm=({key:e})=>e??null,Da=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||je(e)||pe(e)?{i:_t,r:e,k:t,f:!!n}:e:null);function fe(e,t=null,n=null,r=0,s=null,o=e===Ke?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tm(t),ref:t&&Da(t),scopeId:Ug,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_t};return i?(Tc(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Se(n)?8:16),Yo>0&&!a&&Zt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Zt.push(l),l}const we=Vw;function Vw(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===am)&&(e=pt),pn(e)){const i=Fn(e,t,!0);return n&&Tc(i,n),Yo>0&&!o&&Zt&&(i.shapeFlag&6?Zt[Zt.indexOf(e)]=i:Zt.push(i)),i.patchFlag=-2,i}if(Zw(e)&&(e=e.__vccOpts),t){t=Rm(t);let{class:i,style:l}=t;i&&!Se(i)&&(t.class=Pe(i)),Ie(l)&&(Ci(l)&&!ie(l)&&(l=ht({},l)),t.style=gn(l))}const a=Se(e)?1:ri(e)?128:Hg(e)?64:Ie(e)?4:pe(e)?2:0;return fe(e,t,n,r,s,a,o,!0)}function Rm(e){return e?Ci(e)||_m(e)?ht({},e):e:null}function Fn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:i,transition:l}=e,u=t?$t(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Tm(u),ref:t&&t.ref?n&&o?ie(o)?o.concat(Da(t)):[o,Da(t)]:Da(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fn(e.ssContent),ssFallback:e.ssFallback&&Fn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ps(c,l.clone(c)),c}function Ln(e=" ",t=0){return we(Xs,null,e,t)}function He(e="",t=!1){return t?(z(),Ae(pt,null,e)):we(pt,null,e)}function Tn(e){return e==null||typeof e=="boolean"?we(pt):ie(e)?we(Ke,null,e.slice()):pn(e)?Jn(e):we(Xs,null,String(e))}function Jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fn(e)}function Tc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Tc(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!_m(t)?t._ctx=_t:s===3&&_t&&(_t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pe(t)?(t={default:t,_ctx:_t},n=32):(t=String(t),r&64?(n=16,t=[Ln(t)]):n=8);e.children=t,e.shapeFlag|=n}function $t(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Pe([t.class,r.class]));else if(s==="style")t.style=gn([t.style,r.style]);else if(vi(s)){const o=t[s],a=r[s];a&&o!==a&&!(ie(o)&&o.includes(a))?t[s]=o?[].concat(o,a):a:a==null&&o==null&&!yi(s)&&(t[s]=a)}else s!==""&&(t[s]=r[s])}return t}function qt(e,t,n,r=null){nn(e,t,7,[n,r])}const $w=gm();let Dw=0;function Gw(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||$w,o={uid:Dw++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new bg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Em(r,s),emitsOptions:mm(r,s),emit:null,emitted:null,propsDefaults:We,inheritAttrs:r.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=ww.bind(null,o),e.ce&&e.ce(o),o}let Nt=null;const nt=()=>Nt||_t;let oi,ru;{const e=Ai(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(a=>a(o)):s[0](o)}};oi=t("__VUE_INSTANCE_SETTERS__",n=>Nt=n),ru=t("__VUE_SSR_SETTERS__",n=>Uo=n)}const ua=e=>{const t=Nt;return oi(e),e.scope.on(),()=>{e.scope.off(),oi(t)}},Hf=()=>{Nt&&Nt.scope.off(),oi(null)};function Pm(e){return e.vnode.shapeFlag&4}let Uo=!1;function Yw(e,t=!1,n=!1){t&&ru(t);const{props:r,children:s}=e.vnode,o=Pm(e);Iw(e,r,o,t),Pw(e,s,n||t);const a=o?Uw(e,t):void 0;return t&&ru(!1),a}function Uw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dw);const{setup:r}=n;if(r){sr();const s=e.setupContext=r.length>1?Om(e):null,o=ua(e),a=ia(r,e,0,[e.props,s]),i=cg(a);if(or(),o(),(i||e.sp)&&!Cr(e)&&em(e),i){if(a.then(Hf,Hf),t)return a.then(l=>{Xf(e,l)}).catch(l=>{Ti(l,e,0)});e.asyncDep=a}else Xf(e,a)}else Bm(e)}function Xf(e,t,n){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Mg(t)),Bm(e)}function Bm(e,t,n){const r=e.type;e.render||(e.render=r.render||It);{const s=ua(e);sr();try{pw(e)}finally{or(),s()}}}const jw={get(e,t){return xt(e,"get",""),e[t]}};function Om(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,jw),slots:e.slots,emit:e.emit,expose:t}}function Oi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mg(wc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Co)return Co[n](e)},has(t,n){return n in t||n in Co}})):e.proxy}function su(e,t=!0){return pe(e)?e.displayName||e.name:e.name||t&&e.__name}function Zw(e){return pe(e)&&"__vccOpts"in e}const T=(e,t)=>D_(e,t,Uo);function it(e,t,n){try{si(-1);const r=arguments.length;return r===2?Ie(t)&&!ie(t)?pn(t)?we(e,null,[t]):we(e,t):we(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pn(n)&&(n=[n]),we(e,t,n))}finally{si(1)}}const Kw="3.5.38",Hw=It;let ou;const zf=typeof window<"u"&&window.trustedTypes;if(zf)try{ou=zf.createPolicy("vue",{createHTML:e=>e})}catch{}const km=ou?e=>ou.createHTML(e):e=>e,Xw="http://www.w3.org/2000/svg",zw="http://www.w3.org/1998/Math/MathML",Xn=typeof document<"u"?document:null,Jf=Xn&&Xn.createElement("template"),Jw={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Xn.createElementNS(Xw,e):t==="mathml"?Xn.createElementNS(zw,e):n?Xn.createElement(e,{is:n}):Xn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Xn.createTextNode(e),createComment:e=>Xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Jf.innerHTML=km(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const i=Jf.content;if(r==="svg"||r==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},br="transition",io="animation",jo=Symbol("_vtc"),Fm={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},Qw=ht({},Xg,Fm),qw=e=>(e.displayName="Transition",e.props=Qw,e),zs=qw((e,{slots:t})=>it(nw,eE(e),t)),Dr=(e,t=[])=>{ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qf=e=>e?ie(e)?e.some(t=>t.length>1):e.length>1:!1;function eE(e){const t={};for(const k in e)k in Fm||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=tE(s),g=h&&h[0],b=h&&h[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:E,onLeave:w,onLeaveCancelled:B,onBeforeAppear:G=_,onAppear:P=v,onAppearCancelled:O=E}=t,R=(k,U,Z,j)=>{k._enterCancelled=j,Gr(k,U?c:i),Gr(k,U?u:a),Z&&Z()},F=(k,U)=>{k._isLeaving=!1,Gr(k,f),Gr(k,p),Gr(k,d),U&&U()},$=k=>(U,Z)=>{const j=k?P:v,M=()=>R(U,k,Z);Dr(j,[U,M]),qf(()=>{Gr(U,k?l:o),Kn(U,k?c:i),Qf(j)||ed(U,r,g,M)})};return ht(t,{onBeforeEnter(k){Dr(_,[k]),Kn(k,o),Kn(k,a)},onBeforeAppear(k){Dr(G,[k]),Kn(k,l),Kn(k,u)},onEnter:$(!1),onAppear:$(!0),onLeave(k,U){k._isLeaving=!0;const Z=()=>F(k,U);Kn(k,f),k._enterCancelled?(Kn(k,d),rd(k)):(rd(k),Kn(k,d)),qf(()=>{k._isLeaving&&(Gr(k,f),Kn(k,p),Qf(w)||ed(k,r,b,Z))}),Dr(w,[k,Z])},onEnterCancelled(k){R(k,!1,void 0,!0),Dr(E,[k])},onAppearCancelled(k){R(k,!0,void 0,!0),Dr(O,[k])},onLeaveCancelled(k){F(k),Dr(B,[k])}})}function tE(e){if(e==null)return null;if(Ie(e))return[dl(e.enter),dl(e.leave)];{const t=dl(e);return[t,t]}}function dl(e){return a_(e)}function Kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[jo]||(e[jo]=new Set)).add(t)}function Gr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[jo];n&&(n.delete(t),n.size||(e[jo]=void 0))}function qf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nE=0;function ed(e,t,n,r){const s=e._endId=++nE,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:i,propCount:l}=rE(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=p=>{p.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},i+1),e.addEventListener(u,d)}function rE(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(`${br}Delay`),o=r(`${br}Duration`),a=td(s,o),i=r(`${io}Delay`),l=r(`${io}Duration`),u=td(i,l);let c=null,f=0,d=0;t===br?a>0&&(c=br,f=a,d=o.length):t===io?u>0&&(c=io,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?br:io:null,d=c?c===br?o.length:l.length:0);const p=c===br&&/\b(?:transform|all)(?:,|$)/.test(r(`${br}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function td(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>nd(n)+nd(e[r])))}function nd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rd(e){return(e?e.ownerDocument:document).body.offsetHeight}function sE(e,t,n){const r=e[jo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ai=Symbol("_vod"),Lm=Symbol("_vsh"),ki={name:"show",beforeMount(e,{value:t},{transition:n}){e[ai]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):lo(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),lo(e,!0),r.enter(e)):r.leave(e,()=>{lo(e,!1)}):lo(e,t))},beforeUnmount(e,{value:t}){lo(e,t)}};function lo(e,t){e.style.display=t?e[ai]:"none",e[Lm]=!t}const Mm=Symbol("");function oE(e){const t=nt();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>ii(o,s))},r=()=>{const s=e(t.proxy);t.ce?ii(t.ce,s):au(t.subTree,s),n(s)};om(()=>{Dg(r)}),st(()=>{xe(r,It,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),la(()=>s.disconnect())})}function au(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{au(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ii(e.el,t);else if(e.type===Ke)e.children.forEach(n=>au(n,t));else if(e.type===$a){let{el:n,anchor:r}=e;for(;n&&(ii(n,t),n!==r);)n=n.nextSibling}}function ii(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t){const o=g_(t[s]);n.setProperty(`--${s}`,o),r+=`--${s}: ${o};`}n[Mm]=r}}const aE=/(?:^|;)\s*display\s*:/;function iE(e,t,n){const r=e.style,s=Se(n);let o=!1;if(n&&!s){if(t)if(Se(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&wo(r,i,"")}else for(const a in t)n[a]==null&&wo(r,a,"");for(const a in n){a==="display"&&(o=!0);const i=n[a];i!=null?uE(e,a,!Se(t)&&t?t[a]:void 0,i)||wo(r,a,i):wo(r,a,"")}}else if(s){if(t!==n){const a=r[Mm];a&&(n+=";"+a),r.cssText=n,o=aE.test(n)}}else t&&e.removeAttribute("style");ai in e&&(e[ai]=o?r.display:"",e[Lm]&&(r.display="none"))}const sd=/\s*!important$/;function wo(e,t,n){if(ie(n))n.forEach(r=>wo(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=lE(e,t);sd.test(n)?e.setProperty(as(r),n.replace(sd,""),"important"):e[r]=n}}const od=["Webkit","Moz","ms"],pl={};function lE(e,t){const n=pl[t];if(n)return n;let r=Ct(t);if(r!=="filter"&&r in e)return pl[t]=r;r=Ei(r);for(let s=0;s<od.length;s++){const o=od[s]+r;if(o in e)return pl[t]=o}return t}function uE(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Se(r)&&n===r}const ad="http://www.w3.org/1999/xlink";function id(e,t,n,r,s,o=p_(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ad,t.slice(6,t.length)):e.setAttributeNS(ad,t,n):n==null||o&&!hg(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ht(n)?String(n):n)}function ld(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?km(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(i!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=hg(n):n==null&&i==="string"?(n="",a=!0):i==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(s||t)}function cE(e,t,n,r){e.addEventListener(t,n,r)}function fE(e,t,n,r){e.removeEventListener(t,n,r)}const ud=Symbol("_vei");function dE(e,t,n,r,s=null){const o=e[ud]||(e[ud]={}),a=o[t];if(r&&a)a.value=r;else{const[i,l]=pE(t);if(r){const u=o[t]=mE(r,s);cE(e,i,u,l)}else a&&(fE(e,i,a,l),o[t]=void 0)}}const cd=/(?:Once|Passive|Capture)$/;function pE(e){let t;if(cd.test(e)){t={};let r;for(;r=e.match(cd);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):as(e.slice(2)),t]}let hl=0;const hE=Promise.resolve(),gE=()=>hl||(hE.then(()=>hl=0),hl=Date.now());function mE(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(ie(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const a=s.slice(),i=[r];for(let l=0;l<a.length&&!r._stopped;l++){const u=a[l];u&&nn(u,t,5,i)}}else nn(s,t,5,[r])};return n.value=e,n.attached=gE(),n}const fd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bE=(e,t,n,r,s,o)=>{const a=s==="svg";t==="class"?sE(e,r,a):t==="style"?iE(e,n,r):vi(t)?yi(t)||dE(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vE(e,t,r,a))?(ld(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&id(e,t,r,a,o,t!=="value")):e._isVueCE&&(yE(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Se(r)))?ld(e,Ct(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),id(e,t,r,a))};function vE(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&fd(t)&&pe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return fd(t)&&Se(n)?!1:t in e}function yE(e,t){const n=e._def.props;if(!n)return!1;const r=Ct(t);return Array.isArray(n)?n.some(s=>Ct(s)===r):Object.keys(n).some(s=>Ct(s)===r)}const _E=["ctrl","shift","alt","meta"],wE={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>_E.some(n=>e[`${n}Key`]&&!t.includes(n))},Zo=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let a=0;a<t.length;a++){const i=wE[t[a]];if(i&&i(s,t))return}return e(s,...o)}))};const EE=ht({patchProp:bE},Jw);let dd;function Wm(){return dd||(dd=Ow(EE))}const pd=((...e)=>{Wm().render(...e)}),AE=((...e)=>{const t=Wm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=xE(r);if(!s)return;const o=t._component;!pe(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,SE(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function SE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xE(e){return Se(e)?document.querySelector(e):e}let Vm;const Fi=e=>Vm=e,$m=Symbol();function iu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ro;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ro||(Ro={}));function NE(){const e=vg(!0),t=e.run(()=>J({}));let n=[],r=[];const s=wc({install(o){Fi(s),s._a=o,o.provide($m,s),o.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Dm=()=>{};function hd(e,t,n,r=Dm){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&mc()&&yg(s),s}function bs(e,...t){e.forEach(n=>{n(...t)})}const IE=e=>e(),gd=Symbol(),gl=Symbol();function lu(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];iu(s)&&iu(r)&&e.hasOwnProperty(n)&&!je(r)&&!Bn(r)?e[n]=lu(s,r):e[n]=r}return e}const CE=Symbol();function TE(e){return!iu(e)||!Object.prototype.hasOwnProperty.call(e,CE)}const{assign:_r}=Object;function RE(e){return!!(je(e)&&e.effect)}function PE(e,t,n,r){const{state:s,actions:o,getters:a}=t,i=n.state.value[e];let l;function u(){i||(n.state.value[e]=s?s():{});const c=M_(n.state.value[e]);return _r(c,o,Object.keys(a||{}).reduce((f,d)=>(f[d]=wc(T(()=>{Fi(n);const p=n._s.get(e);return a[d].call(p,p)})),f),{}))}return l=Gm(e,u,t,n,r,!0),l}function Gm(e,t,n={},r,s,o){let a;const i=_r({actions:{}},n),l={deep:!0};let u,c,f=new Set,d=new Set,p;const h=r.state.value[e];!o&&!h&&(r.state.value[e]={});let g;function b(O){let R;u=c=!1,typeof O=="function"?(O(r.state.value[e]),R={type:Ro.patchFunction,storeId:e,events:p}):(lu(r.state.value[e],O),R={type:Ro.patchObject,payload:O,storeId:e,events:p});const F=g=Symbol();rn().then(()=>{g===F&&(u=!0)}),c=!0,bs(f,R,r.state.value[e])}const _=o?function(){const{state:R}=n,F=R?R():{};this.$patch($=>{_r($,F)})}:Dm;function v(){a.stop(),f.clear(),d.clear(),r._s.delete(e)}const E=(O,R="")=>{if(gd in O)return O[gl]=R,O;const F=function(){Fi(r);const $=Array.from(arguments),k=new Set,U=new Set;function Z(x){k.add(x)}function j(x){U.add(x)}bs(d,{args:$,name:F[gl],store:B,after:Z,onError:j});let M;try{M=O.apply(this&&this.$id===e?this:B,$)}catch(x){throw bs(U,x),x}return M instanceof Promise?M.then(x=>(bs(k,x),x)).catch(x=>(bs(U,x),Promise.reject(x))):(bs(k,M),M)};return F[gd]=!0,F[gl]=R,F},w={_p:r,$id:e,$onAction:hd.bind(null,d),$patch:b,$reset:_,$subscribe(O,R={}){const F=hd(f,O,R.detached,()=>$()),$=a.run(()=>xe(()=>r.state.value[e],k=>{(R.flush==="sync"?c:u)&&O({storeId:e,type:Ro.direct,events:p},k)},_r({},l,R)));return F},$dispose:v},B=yn(w);r._s.set(e,B);const P=(r._a&&r._a.runWithContext||IE)(()=>r._e.run(()=>(a=vg()).run(()=>t({action:E}))));for(const O in P){const R=P[O];if(je(R)&&!RE(R)||Bn(R))o||(h&&TE(R)&&(je(R)?R.value=h[O]:lu(R,h[O])),r.state.value[e][O]=R);else if(typeof R=="function"){const F=E(R,O);P[O]=F,i.actions[O]=R}}return _r(B,P),_r(Ce(B),P),Object.defineProperty(B,"$state",{get:()=>r.state.value[e],set:O=>{b(R=>{_r(R,O)})}}),r._p.forEach(O=>{_r(B,a.run(()=>O({store:B,app:r._a,pinia:r,options:i})))}),h&&o&&n.hydrate&&n.hydrate(B.$state,h),u=!0,c=!0,B}function Ym(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function o(a,i){const l=Z_();return a=a||(l?ge($m,null):null),a&&Fi(a),a=Vm,a._s.has(e)||(s?Gm(e,t,r,a):PE(e,r,a)),a._s.get(e)}return o.$id=e,o}function BE(e){const t=Ce(e),n={};for(const r in t){const s=t[r];s.effect?n[r]=T({get:()=>e[r],set(o){e[r]=o}}):(je(s)||Bn(s))&&(n[r]=yt(e,r))}return n}function OE(e,t){if(e==null)return;let n=e;for(let r=0;r<t.length;r++){if(n===void 0||n[t[r]]===void 0)return;if(n===null||n[t[r]]===null)return null;n=n[t[r]]}return n}function Rc(e,t,n){if(n.length===0)return t;const r=n[0];return n.length>1&&(t=Rc(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function Um(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return Rc(e,Um(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function jm(e,t){return t.map(n=>n.split(".")).map(n=>[n,OE(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Rc(n,r[1],r[0]),{})}function Zm(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>Um(n,r),e)}function md(e,{storage:t,serializer:n,key:r,debug:s,pick:o,omit:a,beforeHydrate:i,afterHydrate:l},u,c=!0){try{c&&i?.(u);const f=t.getItem(r);if(f){const d=n.deserialize(f),p=o?jm(d,o):d,h=a?Zm(p,a):p;e.$patch(h)}c&&l?.(u)}catch(f){s&&console.error("[pinia-plugin-persistedstate]",f)}}function bd(e,{storage:t,serializer:n,key:r,debug:s,pick:o,omit:a}){try{const i=o?jm(e,o):e,l=a?Zm(i,a):i,u=n.serialize(l);t.setItem(r,u)}catch(i){s&&console.error("[pinia-plugin-persistedstate]",i)}}function kE(e,t){return typeof e=="function"?e(t):typeof e=="string"?e:t}function FE(e,t,n){const{pinia:r,store:s,options:{persist:o=n}}=e;if(!o)return;if(!(s.$id in r.state.value)){const i=r._s.get(s.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(t);s.$hydrate=({runHooks:i=!0}={})=>{a.forEach(l=>{md(s,l,e,i)})},s.$persist=()=>{a.forEach(i=>{bd(s.$state,i)})},a.forEach(i=>{md(s,i,e),s.$subscribe((l,u)=>bd(u,i),{detached:!0})})}function LE(e={}){return function(t){FE(t,n=>{const r=kE(n.key,t.store.$id);return{key:(e.key?e.key:s=>s)(r),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:s=>JSON.stringify(s),deserialize:s=>JSON.parse(s)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate??e.beforeHydrate,afterHydrate:n.afterHydrate??e.afterHydrate,pick:n.pick,omit:n.omit}},e.auto??!1)}}var ME=LE();const Po={primaryColors:["#6284DF","#474747","#B04040","#F7A456","#D39C1F","#079307","#21AB86","#00AEEC","#FB7299"],primaryColorIndex:0},WE={primaryColorIndex:Po.primaryColorIndex,primaryColor:Po.primaryColors[Po.primaryColorIndex],themeMode:"light",bgMode:"default",dark:!1},vd={UI_SELECTED_USER:"ui_selected_user"};var Km=typeof global=="object"&&global&&global.Object===Object&&global,VE=typeof self=="object"&&self&&self.Object===Object&&self,Vn=Km||VE||Function("return this")(),Bs=Vn.Symbol,Hm=Object.prototype,$E=Hm.hasOwnProperty,DE=Hm.toString,uo=Bs?Bs.toStringTag:void 0;function GE(e){var t=$E.call(e,uo),n=e[uo];try{e[uo]=void 0;var r=!0}catch{}var s=DE.call(e);return r&&(t?e[uo]=n:delete e[uo]),s}var YE=Object.prototype,UE=YE.toString;function jE(e){return UE.call(e)}var ZE="[object Null]",KE="[object Undefined]",yd=Bs?Bs.toStringTag:void 0;function ca(e){return e==null?e===void 0?KE:ZE:yd&&yd in Object(e)?GE(e):jE(e)}function fa(e){return e!=null&&typeof e=="object"}var Pc=Array.isArray;function Li(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var HE="[object AsyncFunction]",XE="[object Function]",zE="[object GeneratorFunction]",JE="[object Proxy]";function Xm(e){if(!Li(e))return!1;var t=ca(e);return t==XE||t==zE||t==HE||t==JE}var ml=Vn["__core-js_shared__"],_d=(function(){var e=/[^.]+$/.exec(ml&&ml.keys&&ml.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function QE(e){return!!_d&&_d in e}var qE=Function.prototype,e3=qE.toString;function is(e){if(e!=null){try{return e3.call(e)}catch{}try{return e+""}catch{}}return""}var t3=/[\\^$.*+?()[\]{}|]/g,n3=/^\[object .+?Constructor\]$/,r3=Function.prototype,s3=Object.prototype,o3=r3.toString,a3=s3.hasOwnProperty,i3=RegExp("^"+o3.call(a3).replace(t3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l3(e){if(!Li(e)||QE(e))return!1;var t=Xm(e)?i3:n3;return t.test(is(e))}function u3(e,t){return e?.[t]}function ls(e,t){var n=u3(e,t);return l3(n)?n:void 0}var uu=ls(Vn,"WeakMap"),wd=Object.create,c3=(function(){function e(){}return function(t){if(!Li(t))return{};if(wd)return wd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})(),Ed=(function(){try{var e=ls(Object,"defineProperty");return e({},"",{}),e}catch{}})();function f3(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var d3=9007199254740991,p3=/^(?:0|[1-9]\d*)$/;function h3(e,t){var n=typeof e;return t=t??d3,!!t&&(n=="number"||n!="symbol"&&p3.test(e))&&e>-1&&e%1==0&&e<t}function g3(e,t,n){t=="__proto__"&&Ed?Ed(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function zm(e,t){return e===t||e!==e&&t!==t}var m3=Object.prototype,b3=m3.hasOwnProperty;function v3(e,t,n){var r=e[t];(!(b3.call(e,t)&&zm(r,n))||n===void 0&&!(t in e))&&g3(e,t,n)}var y3=9007199254740991;function Jm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=y3}function _3(e){return e!=null&&Jm(e.length)&&!Xm(e)}var w3=Object.prototype;function Qm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||w3;return e===n}function E3(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var A3="[object Arguments]";function Ad(e){return fa(e)&&ca(e)==A3}var qm=Object.prototype,S3=qm.hasOwnProperty,x3=qm.propertyIsEnumerable,N3=Ad((function(){return arguments})())?Ad:function(e){return fa(e)&&S3.call(e,"callee")&&!x3.call(e,"callee")};function I3(){return!1}var e0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sd=e0&&typeof module=="object"&&module&&!module.nodeType&&module,C3=Sd&&Sd.exports===e0,xd=C3?Vn.Buffer:void 0,T3=xd?xd.isBuffer:void 0,t0=T3||I3,R3="[object Arguments]",P3="[object Array]",B3="[object Boolean]",O3="[object Date]",k3="[object Error]",F3="[object Function]",L3="[object Map]",M3="[object Number]",W3="[object Object]",V3="[object RegExp]",$3="[object Set]",D3="[object String]",G3="[object WeakMap]",Y3="[object ArrayBuffer]",U3="[object DataView]",j3="[object Float32Array]",Z3="[object Float64Array]",K3="[object Int8Array]",H3="[object Int16Array]",X3="[object Int32Array]",z3="[object Uint8Array]",J3="[object Uint8ClampedArray]",Q3="[object Uint16Array]",q3="[object Uint32Array]",Ye={};Ye[j3]=Ye[Z3]=Ye[K3]=Ye[H3]=Ye[X3]=Ye[z3]=Ye[J3]=Ye[Q3]=Ye[q3]=!0;Ye[R3]=Ye[P3]=Ye[Y3]=Ye[B3]=Ye[U3]=Ye[O3]=Ye[k3]=Ye[F3]=Ye[L3]=Ye[M3]=Ye[W3]=Ye[V3]=Ye[$3]=Ye[D3]=Ye[G3]=!1;function eA(e){return fa(e)&&Jm(e.length)&&!!Ye[ca(e)]}function Bc(e){return function(t){return e(t)}}var n0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bo=n0&&typeof module=="object"&&module&&!module.nodeType&&module,tA=Bo&&Bo.exports===n0,bl=tA&&Km.process,Os=(function(){try{var e=Bo&&Bo.require&&Bo.require("util").types;return e||bl&&bl.binding&&bl.binding("util")}catch{}})(),Nd=Os&&Os.isTypedArray,nA=Nd?Bc(Nd):eA,rA=Object.prototype,sA=rA.hasOwnProperty;function oA(e,t){var n=Pc(e),r=!n&&N3(e),s=!n&&!r&&t0(e),o=!n&&!r&&!s&&nA(e),a=n||r||s||o,i=a?E3(e.length,String):[],l=i.length;for(var u in e)sA.call(e,u)&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||h3(u,l)))&&i.push(u);return i}function r0(e,t){return function(n){return e(t(n))}}var aA=r0(Object.keys,Object),iA=Object.prototype,lA=iA.hasOwnProperty;function uA(e){if(!Qm(e))return aA(e);var t=[];for(var n in Object(e))lA.call(e,n)&&n!="constructor"&&t.push(n);return t}function cA(e){return _3(e)?oA(e):uA(e)}var Ko=ls(Object,"create");function fA(){this.__data__=Ko?Ko(null):{},this.size=0}function dA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pA="__lodash_hash_undefined__",hA=Object.prototype,gA=hA.hasOwnProperty;function mA(e){var t=this.__data__;if(Ko){var n=t[e];return n===pA?void 0:n}return gA.call(t,e)?t[e]:void 0}var bA=Object.prototype,vA=bA.hasOwnProperty;function yA(e){var t=this.__data__;return Ko?t[e]!==void 0:vA.call(t,e)}var _A="__lodash_hash_undefined__";function wA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ko&&t===void 0?_A:t,this}function es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}es.prototype.clear=fA;es.prototype.delete=dA;es.prototype.get=mA;es.prototype.has=yA;es.prototype.set=wA;function EA(){this.__data__=[],this.size=0}function Mi(e,t){for(var n=e.length;n--;)if(zm(e[n][0],t))return n;return-1}var AA=Array.prototype,SA=AA.splice;function xA(e){var t=this.__data__,n=Mi(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():SA.call(t,n,1),--this.size,!0}function NA(e){var t=this.__data__,n=Mi(t,e);return n<0?void 0:t[n][1]}function IA(e){return Mi(this.__data__,e)>-1}function CA(e,t){var n=this.__data__,r=Mi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ur.prototype.clear=EA;ur.prototype.delete=xA;ur.prototype.get=NA;ur.prototype.has=IA;ur.prototype.set=CA;var Ho=ls(Vn,"Map");function TA(){this.size=0,this.__data__={hash:new es,map:new(Ho||ur),string:new es}}function RA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wi(e,t){var n=e.__data__;return RA(t)?n[typeof t=="string"?"string":"hash"]:n.map}function PA(e){var t=Wi(this,e).delete(e);return this.size-=t?1:0,t}function BA(e){return Wi(this,e).get(e)}function OA(e){return Wi(this,e).has(e)}function kA(e,t){var n=Wi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Js.prototype.clear=TA;Js.prototype.delete=PA;Js.prototype.get=BA;Js.prototype.has=OA;Js.prototype.set=kA;function FA(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var LA=r0(Object.getPrototypeOf,Object);function MA(){this.__data__=new ur,this.size=0}function WA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function VA(e){return this.__data__.get(e)}function $A(e){return this.__data__.has(e)}var DA=200;function GA(e,t){var n=this.__data__;if(n instanceof ur){var r=n.__data__;if(!Ho||r.length<DA-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Js(r)}return n.set(e,t),this.size=n.size,this}function Qs(e){var t=this.__data__=new ur(e);this.size=t.size}Qs.prototype.clear=MA;Qs.prototype.delete=WA;Qs.prototype.get=VA;Qs.prototype.has=$A;Qs.prototype.set=GA;var s0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Id=s0&&typeof module=="object"&&module&&!module.nodeType&&module,YA=Id&&Id.exports===s0,Cd=YA?Vn.Buffer:void 0;Cd&&Cd.allocUnsafe;function UA(e,t){return e.slice()}function jA(e,t){for(var n=-1,r=e==null?0:e.length,s=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[s++]=a)}return o}function ZA(){return[]}var KA=Object.prototype,HA=KA.propertyIsEnumerable,Td=Object.getOwnPropertySymbols,XA=Td?function(e){return e==null?[]:(e=Object(e),jA(Td(e),function(t){return HA.call(e,t)}))}:ZA;function zA(e,t,n){var r=t(e);return Pc(e)?r:FA(r,n(e))}function JA(e){return zA(e,cA,XA)}var cu=ls(Vn,"DataView"),fu=ls(Vn,"Promise"),du=ls(Vn,"Set"),Rd="[object Map]",QA="[object Object]",Pd="[object Promise]",Bd="[object Set]",Od="[object WeakMap]",kd="[object DataView]",qA=is(cu),e4=is(Ho),t4=is(fu),n4=is(du),r4=is(uu),Qn=ca;(cu&&Qn(new cu(new ArrayBuffer(1)))!=kd||Ho&&Qn(new Ho)!=Rd||fu&&Qn(fu.resolve())!=Pd||du&&Qn(new du)!=Bd||uu&&Qn(new uu)!=Od)&&(Qn=function(e){var t=ca(e),n=t==QA?e.constructor:void 0,r=n?is(n):"";if(r)switch(r){case qA:return kd;case e4:return Rd;case t4:return Pd;case n4:return Bd;case r4:return Od}return t});var s4=Object.prototype,o4=s4.hasOwnProperty;function a4(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&o4.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Fd=Vn.Uint8Array;function Oc(e){var t=new e.constructor(e.byteLength);return new Fd(t).set(new Fd(e)),t}function i4(e,t){var n=Oc(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var l4=/\w*$/;function u4(e){var t=new e.constructor(e.source,l4.exec(e));return t.lastIndex=e.lastIndex,t}var Ld=Bs?Bs.prototype:void 0,Md=Ld?Ld.valueOf:void 0;function c4(e){return Md?Object(Md.call(e)):{}}function f4(e,t){var n=Oc(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var d4="[object Boolean]",p4="[object Date]",h4="[object Map]",g4="[object Number]",m4="[object RegExp]",b4="[object Set]",v4="[object String]",y4="[object Symbol]",_4="[object ArrayBuffer]",w4="[object DataView]",E4="[object Float32Array]",A4="[object Float64Array]",S4="[object Int8Array]",x4="[object Int16Array]",N4="[object Int32Array]",I4="[object Uint8Array]",C4="[object Uint8ClampedArray]",T4="[object Uint16Array]",R4="[object Uint32Array]";function P4(e,t,n){var r=e.constructor;switch(t){case _4:return Oc(e);case d4:case p4:return new r(+e);case w4:return i4(e);case E4:case A4:case S4:case x4:case N4:case I4:case C4:case T4:case R4:return f4(e);case h4:return new r;case g4:case v4:return new r(e);case m4:return u4(e);case b4:return new r;case y4:return c4(e)}}function B4(e){return typeof e.constructor=="function"&&!Qm(e)?c3(LA(e)):{}}var O4="[object Map]";function k4(e){return fa(e)&&Qn(e)==O4}var Wd=Os&&Os.isMap,F4=Wd?Bc(Wd):k4,L4="[object Set]";function M4(e){return fa(e)&&Qn(e)==L4}var Vd=Os&&Os.isSet,W4=Vd?Bc(Vd):M4,o0="[object Arguments]",V4="[object Array]",$4="[object Boolean]",D4="[object Date]",G4="[object Error]",a0="[object Function]",Y4="[object GeneratorFunction]",U4="[object Map]",j4="[object Number]",i0="[object Object]",Z4="[object RegExp]",K4="[object Set]",H4="[object String]",X4="[object Symbol]",z4="[object WeakMap]",J4="[object ArrayBuffer]",Q4="[object DataView]",q4="[object Float32Array]",eS="[object Float64Array]",tS="[object Int8Array]",nS="[object Int16Array]",rS="[object Int32Array]",sS="[object Uint8Array]",oS="[object Uint8ClampedArray]",aS="[object Uint16Array]",iS="[object Uint32Array]",De={};De[o0]=De[V4]=De[J4]=De[Q4]=De[$4]=De[D4]=De[q4]=De[eS]=De[tS]=De[nS]=De[rS]=De[U4]=De[j4]=De[i0]=De[Z4]=De[K4]=De[H4]=De[X4]=De[sS]=De[oS]=De[aS]=De[iS]=!0;De[G4]=De[a0]=De[z4]=!1;function Oo(e,t,n,r,s,o){var a;if(n&&(a=s?n(e,r,s,o):n(e)),a!==void 0)return a;if(!Li(e))return e;var i=Pc(e);if(i)a=a4(e);else{var l=Qn(e),u=l==a0||l==Y4;if(t0(e))return UA(e);if(l==i0||l==o0||u&&!s)a=u?{}:B4(e);else{if(!De[l])return s?e:{};a=P4(e,l)}}o||(o=new Qs);var c=o.get(e);if(c)return c;o.set(e,a),W4(e)?e.forEach(function(p){a.add(Oo(p,t,n,p,e,o))}):F4(e)&&e.forEach(function(p,h){a.set(h,Oo(p,t,n,h,e,o))});var f=JA,d=i?void 0:f(e);return f3(d||e,function(p,h){d&&(h=p,p=e[h]),v3(a,h,Oo(p,t,n,h,e,o))}),a}var lS=1,uS=4;function l0(e){return Oo(e,lS|uS)}var cS=1,fS=4;function dS(e,t){return t=typeof t=="function"?t:void 0,Oo(e,cS|fS,t)}function kc(e){return e instanceof Error?e.name==="AbortError"||e.name==="CanceledError"||"code"in e&&e.code==="ERR_CANCELED":!1}function ks(e){let t=new Error(e??"操作已取消");return t.name="AbortError",t}function Fs(e){return typeof e=="string"?e:e instanceof Error||e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:String(e)??"未知错误"}var pS=class extends Error{constructor(e,t){super(e),t!==void 0&&(this.cause=t instanceof Error?t:new Error(Fs(t))),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}toString(){return`${this.name}: ${this.message}${this.cause?` (caused by ${this.cause})`:""}`}},$d={trace:0,debug:1,info:2,warn:3,error:4},hS=["trace","debug","info","warn","error"];function qs(e){return Array.isArray(e)&&e.length===0}function Fc(e){return e instanceof Error?{name:e.name,message:e.message,stack:e.stack,cause:"cause"in e&&e.cause?Fc(e.cause):void 0}:{name:"UnknownError",message:Fs(e)}}function gS(e){return e!=null&&typeof e=="object"&&"success"in e&&typeof e.success=="boolean"&&"msg"in e&&typeof e.msg=="string"}async function Dd(e){if(gS(e)){if(e.success)return e.data;throw e.error?mS(e.error):new Error(e.msg)}else return e}function mS(e){return Object.assign(new Error,e)}var Gd=()=>{},bS=new Set(["then","catch","finally","toJSON","toString","valueOf"]);function Yd(e){return hS.indexOf(e)>-1}function u0(e,t){let n="info";return(async()=>{try{let r=(typeof e=="function"?await e():e).toLowerCase();Yd(r)?n=r:n="info"}catch{n="info"}})().then(),new Proxy(Gd,{get(r,s){if(!(typeof s!="string"||bS.has(s))&&Yd(s))return new Proxy(Gd,{apply(o,a,i){i&&($d[s]<$d[n]||t(s,...i))}})}})}function xs(e,t){return new Promise((n,r)=>{if(t?.aborted)return r(ks());let s=setTimeout(()=>{a(),n()},e),o=()=>{clearTimeout(s),a(),r(ks())},a=()=>{t?.removeEventListener("abort",o)};t?.addEventListener("abort",o)})}function Xo(e,t,n){let r=Math.random()*(t-e)+e;return xs(r,n)}function c0(e){try{let{origin:t,pathname:n,searchParams:r}=new URL(e);return{baseUrl:t+n,searchParams:r}}catch{throw new Error("Invalid URL")}}function pu(e,t=!1){return Object.keys(e).sort().filter(n=>t||e[n]!=null).map(n=>{let r=e[n]??"";return`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`}).join("&")}function f0(e,t){let n={};return e.size>0&&e.forEach((r,s)=>{n[s]=r}),t&&(n={...n,...t}),n}var vS=e=>dS(Ce(e),t=>{typeof t=="function"||t instanceof Window||t instanceof Element}),yS=()=>{};function d0(e=[]){return new Proxy(yS,{get(t,n){if(typeof n=="string"&&!(n==="__proto__"||n==="constructor"))return d0(e.concat(n))},async apply(t,n,r){const s=e.join(".");try{let o;for(let i=0;i<e.length;i++){const l=e[i];if(i===0)if(window.__toolkitApi&&l in window.__toolkitApi)o=window.__toolkitApi[l];else break;else if(o&&typeof o=="object"&&l in o)o=o[l];else{o=void 0;break}}const a=r.map(i=>typeof i=="function"?i:vS(i));return Dd(typeof o=="function"?await o(...a):await window.__toolkitInvoke(s,...a))}catch(o){throw console.error(`[${s}]`,r,o),o}}})}function _S(){if(window.toolkitApi)return window.toolkitApi;let e;return Object.defineProperty(window,"toolkitApi",{get(){return e||(e=d0([])),e}}),window.toolkitApi}u0(async()=>await window.toolkitApi.system.getLogLevel(),(e,...t)=>{console[e](`[${new Date().toLocaleString()}]`,...t),window.toolkitApi.system.saveLog({level:e,data:t.map(n=>n instanceof Error?JSON.stringify(Fc(n)):JSON.stringify(n))}).catch()});const Le={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},wS=["","default","small","large"];var p0=typeof global=="object"&&global&&global.Object===Object&&global,ES=typeof self=="object"&&self&&self.Object===Object&&self,cr=p0||ES||Function("return this")(),Mn=cr.Symbol,h0=Object.prototype,AS=h0.hasOwnProperty,SS=h0.toString,co=Mn?Mn.toStringTag:void 0;function xS(e){var t=AS.call(e,co),n=e[co];try{e[co]=void 0;var r=!0}catch{}var s=SS.call(e);return r&&(t?e[co]=n:delete e[co]),s}var NS=Object.prototype,IS=NS.toString;function CS(e){return IS.call(e)}var TS="[object Null]",RS="[object Undefined]",Ud=Mn?Mn.toStringTag:void 0;function us(e){return e==null?e===void 0?RS:TS:Ud&&Ud in Object(e)?xS(e):CS(e)}function da(e){return e!=null&&typeof e=="object"}var PS="[object Symbol]";function Lc(e){return typeof e=="symbol"||da(e)&&us(e)==PS}function BS(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}var eo=Array.isArray,jd=Mn?Mn.prototype:void 0,Zd=jd?jd.toString:void 0;function g0(e){if(typeof e=="string")return e;if(eo(e))return BS(e,g0)+"";if(Lc(e))return Zd?Zd.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function li(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function OS(e){return e}var kS="[object AsyncFunction]",FS="[object Function]",LS="[object GeneratorFunction]",MS="[object Proxy]";function WS(e){if(!li(e))return!1;var t=us(e);return t==FS||t==LS||t==kS||t==MS}var vl=cr["__core-js_shared__"],Kd=(function(){var e=/[^.]+$/.exec(vl&&vl.keys&&vl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function VS(e){return!!Kd&&Kd in e}var $S=Function.prototype,DS=$S.toString;function cs(e){if(e!=null){try{return DS.call(e)}catch{}try{return e+""}catch{}}return""}var GS=/[\\^$.*+?()[\]{}|]/g,YS=/^\[object .+?Constructor\]$/,US=Function.prototype,jS=Object.prototype,ZS=US.toString,KS=jS.hasOwnProperty,HS=RegExp("^"+ZS.call(KS).replace(GS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function XS(e){if(!li(e)||VS(e))return!1;var t=WS(e)?HS:YS;return t.test(cs(e))}function zS(e,t){return e?.[t]}function fs(e,t){var n=zS(e,t);return XS(n)?n:void 0}var hu=fs(cr,"WeakMap");function JS(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var QS=800,qS=16,ex=Date.now;function tx(e){var t=0,n=0;return function(){var r=ex(),s=qS-(r-n);if(n=r,s>0){if(++t>=QS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function nx(e){return function(){return e}}var ui=(function(){try{var e=fs(Object,"defineProperty");return e({},"",{}),e}catch{}})(),rx=ui?function(e,t){return ui(e,"toString",{configurable:!0,enumerable:!1,value:nx(t),writable:!0})}:OS,sx=tx(rx),ox=9007199254740991,ax=/^(?:0|[1-9]\d*)$/;function m0(e,t){var n=typeof e;return t=t??ox,!!t&&(n=="number"||n!="symbol"&&ax.test(e))&&e>-1&&e%1==0&&e<t}function b0(e,t,n){t=="__proto__"&&ui?ui(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function v0(e,t){return e===t||e!==e&&t!==t}var ix=Object.prototype,lx=ix.hasOwnProperty;function ux(e,t,n){var r=e[t];(!(lx.call(e,t)&&v0(r,n))||n===void 0&&!(t in e))&&b0(e,t,n)}var Hd=Math.max;function cx(e,t,n){return t=Hd(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=Hd(r.length-t,0),a=Array(o);++s<o;)a[s]=r[t+s];s=-1;for(var i=Array(t+1);++s<t;)i[s]=r[s];return i[t]=n(a),JS(e,this,i)}}var fx=9007199254740991;function y0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fx}var nO=Object.prototype;var dx="[object Arguments]";function Xd(e){return da(e)&&us(e)==dx}var _0=Object.prototype,px=_0.hasOwnProperty,hx=_0.propertyIsEnumerable,w0=Xd((function(){return arguments})())?Xd:function(e){return da(e)&&px.call(e,"callee")&&!hx.call(e,"callee")};var E0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zd=E0&&typeof module=="object"&&module&&!module.nodeType&&module,gx=zd&&zd.exports===E0,Jd=gx?cr.Buffer:void 0,rO=Jd?Jd.isBuffer:void 0;var mx="[object Arguments]",bx="[object Array]",vx="[object Boolean]",yx="[object Date]",_x="[object Error]",wx="[object Function]",Ex="[object Map]",Ax="[object Number]",Sx="[object Object]",xx="[object RegExp]",Nx="[object Set]",Ix="[object String]",Cx="[object WeakMap]",Tx="[object ArrayBuffer]",Rx="[object DataView]",Px="[object Float32Array]",Bx="[object Float64Array]",Ox="[object Int8Array]",kx="[object Int16Array]",Fx="[object Int32Array]",Lx="[object Uint8Array]",Mx="[object Uint8ClampedArray]",Wx="[object Uint16Array]",Vx="[object Uint32Array]",Ue={};Ue[Px]=Ue[Bx]=Ue[Ox]=Ue[kx]=Ue[Fx]=Ue[Lx]=Ue[Mx]=Ue[Wx]=Ue[Vx]=!0;Ue[mx]=Ue[bx]=Ue[Tx]=Ue[vx]=Ue[Rx]=Ue[yx]=Ue[_x]=Ue[wx]=Ue[Ex]=Ue[Ax]=Ue[Sx]=Ue[xx]=Ue[Nx]=Ue[Ix]=Ue[Cx]=!1;function $x(e){return da(e)&&y0(e.length)&&!!Ue[us(e)]}function Dx(e){return function(t){return e(t)}}var A0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ko=A0&&typeof module=="object"&&module&&!module.nodeType&&module,Gx=ko&&ko.exports===A0,yl=Gx&&p0.process,Qd=(function(){try{var e=ko&&ko.require&&ko.require("util").types;return e||yl&&yl.binding&&yl.binding("util")}catch{}})(),qd=Qd&&Qd.isTypedArray,sO=qd?Dx(qd):$x,Yx=Object.prototype,oO=Yx.hasOwnProperty;function S0(e,t){return function(n){return e(t(n))}}var aO=S0(Object.keys,Object),Ux=Object.prototype,iO=Ux.hasOwnProperty;var jx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zx=/^\w*$/;function Kx(e,t){if(eo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Lc(e)?!0:Zx.test(e)||!jx.test(e)||t!=null&&e in Object(t)}var zo=fs(Object,"create");function Hx(){this.__data__=zo?zo(null):{},this.size=0}function Xx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zx="__lodash_hash_undefined__",Jx=Object.prototype,Qx=Jx.hasOwnProperty;function qx(e){var t=this.__data__;if(zo){var n=t[e];return n===zx?void 0:n}return Qx.call(t,e)?t[e]:void 0}var eN=Object.prototype,tN=eN.hasOwnProperty;function nN(e){var t=this.__data__;return zo?t[e]!==void 0:tN.call(t,e)}var rN="__lodash_hash_undefined__";function sN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zo&&t===void 0?rN:t,this}function ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ts.prototype.clear=Hx;ts.prototype.delete=Xx;ts.prototype.get=qx;ts.prototype.has=nN;ts.prototype.set=sN;function oN(){this.__data__=[],this.size=0}function Vi(e,t){for(var n=e.length;n--;)if(v0(e[n][0],t))return n;return-1}var aN=Array.prototype,iN=aN.splice;function lN(e){var t=this.__data__,n=Vi(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():iN.call(t,n,1),--this.size,!0}function uN(e){var t=this.__data__,n=Vi(t,e);return n<0?void 0:t[n][1]}function cN(e){return Vi(this.__data__,e)>-1}function fN(e,t){var n=this.__data__,r=Vi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fr.prototype.clear=oN;fr.prototype.delete=lN;fr.prototype.get=uN;fr.prototype.has=cN;fr.prototype.set=fN;var Jo=fs(cr,"Map");function dN(){this.size=0,this.__data__={hash:new ts,map:new(Jo||fr),string:new ts}}function pN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function $i(e,t){var n=e.__data__;return pN(t)?n[typeof t=="string"?"string":"hash"]:n.map}function hN(e){var t=$i(this,e).delete(e);return this.size-=t?1:0,t}function gN(e){return $i(this,e).get(e)}function mN(e){return $i(this,e).has(e)}function bN(e,t){var n=$i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dr.prototype.clear=dN;dr.prototype.delete=hN;dr.prototype.get=gN;dr.prototype.has=mN;dr.prototype.set=bN;var vN="Expected a function";function Mc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vN);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],o=n.cache;if(o.has(s))return o.get(s);var a=e.apply(this,r);return n.cache=o.set(s,a)||o,a};return n.cache=new(Mc.Cache||dr),n}Mc.Cache=dr;var yN=500;function _N(e){var t=Mc(e,function(r){return n.size===yN&&n.clear(),r}),n=t.cache;return t}var wN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EN=/\\(\\)?/g,AN=_N(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wN,function(n,r,s,o){t.push(s?o.replace(EN,"$1"):r||n)}),t});function SN(e){return e==null?"":g0(e)}function Di(e,t){return eo(e)?e:Kx(e,t)?[e]:AN(SN(e))}function Wc(e){if(typeof e=="string"||Lc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function x0(e,t){t=Di(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Wc(t[n++])];return n&&n==r?e:void 0}function xN(e,t,n){var r=e==null?void 0:x0(e,t);return r===void 0?n:r}function NN(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var ep=Mn?Mn.isConcatSpreadable:void 0;function IN(e){return eo(e)||w0(e)||!!(ep&&e&&e[ep])}function N0(e,t,n,r,s){var o=-1,a=e.length;for(n||(n=IN),s||(s=[]);++o<a;){var i=e[o];t>0&&n(i)?t>1?N0(i,t-1,n,r,s):NN(s,i):r||(s[s.length]=i)}return s}function CN(e){var t=e==null?0:e.length;return t?N0(e,1):[]}function TN(e){return sx(cx(e,void 0,CN),e+"")}var RN=S0(Object.getPrototypeOf,Object),PN="[object Object]",BN=Function.prototype,ON=Object.prototype,I0=BN.toString,kN=ON.hasOwnProperty,FN=I0.call(Object);function LN(e){if(!da(e)||us(e)!=PN)return!1;var t=RN(e);if(t===null)return!0;var n=kN.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&I0.call(n)==FN}function MN(){if(!arguments.length)return[];var e=arguments[0];return eo(e)?e:[e]}function WN(){this.__data__=new fr,this.size=0}function VN(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function $N(e){return this.__data__.get(e)}function DN(e){return this.__data__.has(e)}var GN=200;function YN(e,t){var n=this.__data__;if(n instanceof fr){var r=n.__data__;if(!Jo||r.length<GN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dr(r)}return n.set(e,t),this.size=n.size,this}function pa(e){var t=this.__data__=new fr(e);this.size=t.size}pa.prototype.clear=WN;pa.prototype.delete=VN;pa.prototype.get=$N;pa.prototype.has=DN;pa.prototype.set=YN;var UN=Object.prototype,lO=UN.propertyIsEnumerable;var gu=fs(cr,"DataView"),mu=fs(cr,"Promise"),bu=fs(cr,"Set"),tp="[object Map]",jN="[object Object]",np="[object Promise]",rp="[object Set]",sp="[object WeakMap]",op="[object DataView]",ZN=cs(gu),KN=cs(Jo),HN=cs(mu),XN=cs(bu),zN=cs(hu),vs=us;(gu&&vs(new gu(new ArrayBuffer(1)))!=op||Jo&&vs(new Jo)!=tp||mu&&vs(mu.resolve())!=np||bu&&vs(new bu)!=rp||hu&&vs(new hu)!=sp)&&(vs=function(e){var t=us(e),n=t==jN?e.constructor:void 0,r=n?cs(n):"";if(r)switch(r){case ZN:return op;case KN:return tp;case HN:return np;case XN:return rp;case zN:return sp}return t});var uO=cr.Uint8Array,JN="__lodash_hash_undefined__";function QN(e){return this.__data__.set(e,JN),this}function qN(e){return this.__data__.has(e)}function vu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dr;++t<n;)this.add(e[t])}vu.prototype.add=vu.prototype.push=QN;vu.prototype.has=qN;var ap=Mn?Mn.prototype:void 0,cO=ap?ap.valueOf:void 0;var eI=Object.prototype,fO=eI.hasOwnProperty;var tI=Object.prototype,dO=tI.hasOwnProperty;function nI(e,t){return e!=null&&t in Object(e)}function rI(e,t,n){t=Di(t,e);for(var r=-1,s=t.length,o=!1;++r<s;){var a=Wc(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=s?o:(s=e==null?0:e.length,!!s&&y0(s)&&m0(a,s)&&(eo(e)||w0(e)))}function sI(e,t){return e!=null&&rI(e,t,nI)}function ci(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var s=e[t];b0(r,s[0],s[1])}return r}function Ls(e){return e==null}function oI(e){return e===void 0}function aI(e,t,n,r){if(!li(e))return e;t=Di(t,e);for(var s=-1,o=t.length,a=o-1,i=e;i!=null&&++s<o;){var l=Wc(t[s]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(s!=a){var c=i[l];u=void 0,u===void 0&&(u=li(c)?c:m0(t[s+1])?[]:{})}ux(i,l,u),i=i[l]}return e}function iI(e,t,n){for(var r=-1,s=t.length,o={};++r<s;){var a=t[r],i=x0(e,a);n(i,a)&&aI(o,Di(a,e),i)}return o}function lI(e,t){return iI(e,t,function(n,r){return sI(e,r)})}var uI=TN(function(e,t){return e==null?{}:lI(e,t)});const C0=e=>e===void 0,Qr=e=>typeof e=="boolean",kt=e=>typeof e=="number";const Nr=e=>typeof Element>"u"?!1:e instanceof Element;const cI=e=>Se(e)?!Number.isNaN(Number(e)):!1;const ip=e=>Object.keys(e);const fI="__epPropKey",le=e=>e,dI=e=>Ie(e)&&!!e.__epPropKey,Gi=(e,t)=>{if(!Ie(e)||dI(e))return e;const{values:n,required:r,default:s,type:o,validator:a}=e,i={type:o,required:!!r,validator:n||a?l=>{let u=!1,c=[];if(n&&(c=Array.from(n),Te(e,"default")&&c.push(s),u||=c.includes(l)),a&&(u||=a(l)),!u&&c.length>0){const f=[...new Set(c)].map(d=>JSON.stringify(d)).join(", ");Hw(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[fI]:!0};return Te(e,"default")&&(i.default=s),i},$e=e=>ci(Object.entries(e).map(([t,n])=>[t,Gi(n,t)]));var T0=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function Qo(e,t){throw new T0(`[${e}] ${t}`)}function bn(e,t){{const n=Se(e)?new T0(`[${e}] ${t}`):e;console.warn(n)}}function R0(e,t){var n;const r=Ks();return jg(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Ts(r)}function Yi(e){return mc()?(yg(e),!0):!1}const ut=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const pI=Object.prototype.toString,hI=e=>pI.call(e)==="[object Object]";const ys=()=>{},gI=mI();function mI(){var e,t;return ut&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function _l(e){return Array.isArray(e)?e:[e]}function yu(e,t,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n,o=Ks(!1);let a;function i(){a&&(clearTimeout(a),a=void 0)}function l(){o.value=!1,i()}function u(...c){s&&e(),i(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=void 0,e(...c)},rr(t))}return r&&(o.value=!0,ut&&u()),Yi(l),{isPending:k_(o),start:u,stop:l}}function bI(e,t,n){return xe(e,t,{...n,immediate:!0})}const Vc=ut?window:void 0,pO=ut?window.document:void 0;function Pn(e){var t;const n=rr(e);return(t=n?.$el)!=null?t:n}function Tr(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},r=(i,l,u,c)=>(i.addEventListener(l,u,c),()=>i.removeEventListener(l,u,c)),s=T(()=>{const i=_l(rr(e[0])).filter(l=>l!=null);return i.every(l=>typeof l!="string")?i:void 0}),o=bI(()=>{var i,l;return[(l=(i=s.value)==null?void 0:i.map(u=>Pn(u)))!=null?l:[Vc].filter(u=>u!=null),_l(rr(s.value?e[1]:e[0])),_l(A(s.value?e[2]:e[1])),rr(s.value?e[3]:e[2])]},([i,l,u,c])=>{if(n(),!i?.length||!l?.length||!u?.length)return;const f=hI(c)?{...c}:c;t.push(...i.flatMap(d=>l.flatMap(p=>u.map(h=>r(d,p,h,f)))))},{flush:"post"}),a=()=>{o(),n()};return Yi(n),a}let lp=!1;function vI(e,t,n={}){const{window:r=Vc,ignore:s=[],capture:o=!0,detectIframe:a=!1,controls:i=!1}=n;if(!r)return i?{stop:ys,cancel:ys,trigger:ys}:ys;if(gI&&!lp){lp=!0;const b={passive:!0};Array.from(r.document.body.children).forEach(_=>_.addEventListener("click",ys,b)),r.document.documentElement.addEventListener("click",ys,b)}let l=!0;const u=b=>rr(s).some(_=>{if(typeof _=="string")return Array.from(r.document.querySelectorAll(_)).some(v=>v===b.target||b.composedPath().includes(v));{const v=Pn(_);return v&&(b.target===v||b.composedPath().includes(v))}});function c(b){const _=rr(b);return _&&_.$.subTree.shapeFlag===16}function f(b,_){const v=rr(b),E=v.$.subTree&&v.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(w=>w.el===_.target||_.composedPath().includes(w.el))}const d=b=>{const _=Pn(e);if(b.target!=null&&!(!(_ instanceof Element)&&c(e)&&f(e,b))&&!(!_||_===b.target||b.composedPath().includes(_))){if("detail"in b&&b.detail===0&&(l=!u(b)),!l){l=!0;return}t(b)}};let p=!1;const h=[Tr(r,"click",b=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(b))},{passive:!0,capture:o}),Tr(r,"pointerdown",b=>{const _=Pn(e);l=!u(b)&&!!(_&&!b.composedPath().includes(_))},{passive:!0}),a&&Tr(r,"blur",b=>{setTimeout(()=>{var _;const v=Pn(e);((_=r.document.activeElement)==null?void 0:_.tagName)==="IFRAME"&&!v?.contains(r.document.activeElement)&&t(b)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(b=>b());return i?{stop:g,cancel:()=>{l=!1},trigger:b=>{l=!0,d(b),l=!1}}:g}function yI(){const e=Ks(!1),t=nt();return t&&st(()=>{e.value=!0},t),e}function _I(e){const t=yI();return T(()=>(t.value,!!e()))}function qo(e,t,n={}){const{window:r=Vc,...s}=n;let o;const a=_I(()=>r&&"ResizeObserver"in r),i=()=>{o&&(o.disconnect(),o=void 0)},l=T(()=>{const f=rr(e);return Array.isArray(f)?f.map(d=>Pn(d)):[Pn(f)]}),u=xe(l,f=>{if(i(),a.value&&r){o=new ResizeObserver(t);for(const d of f)d&&o.observe(d,s)}},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return Yi(c),{isSupported:a,stop:c}}const wI=({from:e,replacement:t,scope:n,version:r,ref:s,type:o="API"},a)=>{xe(()=>A(a),i=>{i&&bn(n,`[${o}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
3
3
  For more detail, please visit: ${s}
4
4
  `)},{immediate:!0})};const EI=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,up=e=>typeof Element>"u"?!1:e instanceof Element;const _u=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ga=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const s=document.createEvent(r);return s.initEvent(t,...n),e.dispatchEvent(s),e};const Ui=(e,t)=>{if(!e||!e.focus)return;let n=!1;up(e)&&!_u(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),up(e)&&n&&e.removeAttribute("tabindex")};const hO=()=>ut&&/firefox/i.test(window.navigator.userAgent),AI=()=>ut&&/android/i.test(window.navigator.userAgent),SI="utils/dom/style",P0=(e="")=>e.split(" ").filter(t=>!!t.trim()),xI=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ia=(e,t)=>{!e||!t.trim()||e.classList.add(...P0(t))},wl=(e,t)=>{!e||!t.trim()||e.classList.remove(...P0(t))},gO=(e,t)=>{if(!ut||!e||!t||EI(e))return"";let n=Ct(t);n==="float"&&(n="cssFloat");try{const r=e.style[n];if(r)return r;const s=document.defaultView?.getComputedStyle(e,"");return s?s[n]:""}catch{return e.style[n]}};function ns(e,t="px"){if(!e&&e!==0)return"";if(kt(e)||cI(e))return`${e}${t}`;if(Se(e))return e;bn(SI,"binding value must be a string or number")}var NI={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"},inputOTP:{groupLabel:"OTP Input",defaultLabel:"Please enter OTP character {index}"}}};const II=e=>(t,n)=>CI(t,n,A(e)),CI=(e,t,n)=>xN(n,e,e).replace(/\{(\w+)\}/g,(r,s)=>`${t?.[s]??`{${s}}`}`),TI=e=>({lang:T(()=>A(e).name),locale:je(e)?e:J(e),t:II(e)}),B0=Symbol("localeContextKey"),O0=e=>{const t=e||ge(B0,J());return TI(T(()=>t.value||NI))},RI="is-",Yr=(e,t,n,r,s)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),s&&(o+=`--${s}`),o},k0=Symbol("namespaceContextKey"),$c=e=>{const t=e||(nt()?ge(k0,J("el")):J("el"));return T(()=>A(t)||"el")},Ve=(e,t)=>{const n=$c(t);return{namespace:n,b:(g="")=>Yr(n.value,e,g,"",""),e:g=>g?Yr(n.value,e,"",g,""):"",m:g=>g?Yr(n.value,e,"","",g):"",be:(g,b)=>g&&b?Yr(n.value,e,g,b,""):"",em:(g,b)=>g&&b?Yr(n.value,e,"",g,b):"",bm:(g,b)=>g&&b?Yr(n.value,e,g,"",b):"",bem:(g,b,_)=>g&&b&&_?Yr(n.value,e,g,b,_):"",is:(g,...b)=>{const _=b.length>=1?b[0]:!0;return g&&_?`${RI}${g}`:""},cssVar:g=>{const b={};for(const _ in g)g[_]&&(b[`--${n.value}-${_}`]=g[_]);return b},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const b={};for(const _ in g)g[_]&&(b[`--${n.value}-${e}-${_}`]=g[_]);return b},cssVarBlockName:g=>`--${n.value}-${e}-${g}`}},lt=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const o=e?.(s);if(n===!1||!o)return t?.(s)},cp=e=>t=>t.pointerType==="mouse"?e(t):void 0,$n=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=PI(e);return t?Object.values(Le).includes(t)?t:t===" "?Le.space:"":""},PI=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&AI()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},BI=Gi({type:le(Boolean),default:null}),OI=Gi({type:le(Function)}),kI=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],s={[e]:BI,[n]:OI};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=nt(),{emit:p}=d,h=d.props,g=T(()=>pe(h[n])),b=T(()=>h[e]===null),_=P=>{a.value!==!0&&(a.value=!0,i&&(i.value=P),pe(c)&&c(P))},v=P=>{a.value!==!1&&(a.value=!1,i&&(i.value=P),pe(f)&&f(P))},E=P=>{if(h.disabled===!0||pe(u)&&!u())return;const O=g.value&&ut;O&&p(t,!0),(b.value||!O)&&_(P)},w=P=>{if(h.disabled===!0||!ut)return;const O=g.value&&ut;O&&p(t,!1),(b.value||!O)&&v(P)},B=P=>{Qr(P)&&(h.disabled&&P?g.value&&p(t,!1):a.value!==P&&(P?_():v()))},G=()=>{a.value?w():E()};return xe(()=>h[e],B),l&&d.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...d.proxy.$route}),()=>{l.value&&a.value&&w()}),st(()=>{B(h[e])}),{hide:w,show:E,toggle:G,hasUpdateHandler:g}},useModelToggleProps:s,useModelToggleEmits:r}},F0=e=>{const t=nt();return T(()=>t?.proxy?.$props?.[e])};var Wt="top",sn="bottom",on="right",Vt="left",Dc="auto",ha=[Wt,sn,on,Vt],Ms="start",ea="end",FI="clippingParents",L0="viewport",fo="popper",LI="reference",fp=ha.reduce(function(e,t){return e.concat([t+"-"+Ms,t+"-"+ea])},[]),Gc=[].concat(ha,[Dc]).reduce(function(e,t){return e.concat([t,t+"-"+Ms,t+"-"+ea])},[]),MI="beforeRead",WI="read",VI="afterRead",$I="beforeMain",DI="main",GI="afterMain",YI="beforeWrite",UI="write",jI="afterWrite",ZI=[MI,WI,VI,$I,DI,GI,YI,UI,jI];function Wn(e){return e?(e.nodeName||"").toLowerCase():null}function Xt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rs(e){var t=Xt(e).Element;return e instanceof t||e instanceof Element}function tn(e){var t=Xt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yc(e){if(typeof ShadowRoot>"u")return!1;var t=Xt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function KI(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!tn(o)||!Wn(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(a){var i=s[a];i===!1?o.removeAttribute(a):o.setAttribute(a,i===!0?"":i)}))})}function HI(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(l,u){return l[u]="",l},{});!tn(s)||!Wn(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}var M0={name:"applyStyles",enabled:!0,phase:"write",fn:KI,effect:HI,requires:["computeStyles"]};function On(e){return e.split("-")[0]}var qr=Math.max,fi=Math.min,Ws=Math.round;function wu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function W0(){return!/^((?!chrome|android).)*safari/i.test(wu())}function Vs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,o=1;t&&tn(e)&&(s=e.offsetWidth>0&&Ws(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ws(r.height)/e.offsetHeight||1);var a=rs(e)?Xt(e):window,i=a.visualViewport,l=!W0()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/s,c=(r.top+(l&&i?i.offsetTop:0))/o,f=r.width/s,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function Uc(e){var t=Vs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function V0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ir(e){return Xt(e).getComputedStyle(e)}function XI(e){return["table","td","th"].indexOf(Wn(e))>=0}function Or(e){return((rs(e)?e.ownerDocument:e.document)||window.document).documentElement}function ji(e){return Wn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yc(e)?e.host:null)||Or(e)}function dp(e){return!tn(e)||ir(e).position==="fixed"?null:e.offsetParent}function zI(e){var t=/firefox/i.test(wu()),n=/Trident/i.test(wu());if(n&&tn(e)){var r=ir(e);if(r.position==="fixed")return null}var s=ji(e);for(Yc(s)&&(s=s.host);tn(s)&&["html","body"].indexOf(Wn(s))<0;){var o=ir(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function ga(e){for(var t=Xt(e),n=dp(e);n&&XI(n)&&ir(n).position==="static";)n=dp(n);return n&&(Wn(n)==="html"||Wn(n)==="body"&&ir(n).position==="static")?t:n||zI(e)||t}function jc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fo(e,t,n){return qr(e,fi(t,n))}function JI(e,t,n){var r=Fo(e,t,n);return r>n?n:r}function $0(){return{top:0,right:0,bottom:0,left:0}}function D0(e){return Object.assign({},$0(),e)}function G0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var QI=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,D0(typeof e!="number"?e:G0(e,ha))};function qI(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,i=On(n.placement),l=jc(i),u=[Vt,on].indexOf(i)>=0,c=u?"height":"width";if(!(!o||!a)){var f=QI(s.padding,n),d=Uc(o),p=l==="y"?Wt:Vt,h=l==="y"?sn:on,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],b=a[l]-n.rects.reference[l],_=ga(o),v=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,E=g/2-b/2,w=f[p],B=v-d[c]-f[h],G=v/2-d[c]/2+E,P=Fo(w,G,B),O=l;n.modifiersData[r]=(t={},t[O]=P,t.centerOffset=P-G,t)}}function eC(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||V0(t.elements.popper,s)&&(t.elements.arrow=s))}var tC={name:"arrow",enabled:!0,phase:"main",fn:qI,effect:eC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $s(e){return e.split("-")[1]}var nC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rC(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Ws(n*s)/s||0,y:Ws(r*s)/s||0}}function pp(e){var t,n=e.popper,r=e.popperRect,s=e.placement,o=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,p=d===void 0?0:d,h=a.y,g=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var _=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),E=Vt,w=Wt,B=window;if(u){var G=ga(n),P="clientHeight",O="clientWidth";if(G===Xt(n)&&(G=Or(n),ir(G).position!=="static"&&i==="absolute"&&(P="scrollHeight",O="scrollWidth")),G=G,s===Wt||(s===Vt||s===on)&&o===ea){w=sn;var R=f&&G===B&&B.visualViewport?B.visualViewport.height:G[P];g-=R-r.height,g*=l?1:-1}if(s===Vt||(s===Wt||s===sn)&&o===ea){E=on;var F=f&&G===B&&B.visualViewport?B.visualViewport.width:G[O];p-=F-r.width,p*=l?1:-1}}var $=Object.assign({position:i},u&&nC),k=c===!0?rC({x:p,y:g},Xt(n)):{x:p,y:g};if(p=k.x,g=k.y,l){var U;return Object.assign({},$,(U={},U[w]=v?"0":"",U[E]=_?"0":"",U.transform=(B.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",U))}return Object.assign({},$,(t={},t[w]=v?g+"px":"",t[E]=_?p+"px":"",t.transform="",t))}function sC(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:On(t.placement),variation:$s(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Y0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sC,data:{}},Ca={passive:!0};function oC(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,o=s===void 0?!0:s,a=r.resize,i=a===void 0?!0:a,l=Xt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ca)}),i&&l.addEventListener("resize",n.update,Ca),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ca)}),i&&l.removeEventListener("resize",n.update,Ca)}}var U0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oC,data:{}},aC={left:"right",right:"left",bottom:"top",top:"bottom"};function Ya(e){return e.replace(/left|right|bottom|top/g,function(t){return aC[t]})}var iC={start:"end",end:"start"};function hp(e){return e.replace(/start|end/g,function(t){return iC[t]})}function Zc(e){var t=Xt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Kc(e){return Vs(Or(e)).left+Zc(e).scrollLeft}function lC(e,t){var n=Xt(e),r=Or(e),s=n.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,l=0;if(s){o=s.width,a=s.height;var u=W0();(u||!u&&t==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:o,height:a,x:i+Kc(e),y:l}}function uC(e){var t,n=Or(e),r=Zc(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=qr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=qr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+Kc(e),l=-r.scrollTop;return ir(s||n).direction==="rtl"&&(i+=qr(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:i,y:l}}function Hc(e){var t=ir(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function j0(e){return["html","body","#document"].indexOf(Wn(e))>=0?e.ownerDocument.body:tn(e)&&Hc(e)?e:j0(ji(e))}function Lo(e,t){var n;t===void 0&&(t=[]);var r=j0(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=Xt(r),a=s?[o].concat(o.visualViewport||[],Hc(r)?r:[]):r,i=t.concat(a);return s?i:i.concat(Lo(ji(a)))}function Eu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cC(e,t){var n=Vs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function gp(e,t,n){return t===L0?Eu(lC(e,n)):rs(t)?cC(t,n):Eu(uC(Or(e)))}function fC(e){var t=Lo(ji(e)),n=["absolute","fixed"].indexOf(ir(e).position)>=0,r=n&&tn(e)?ga(e):e;return rs(r)?t.filter(function(s){return rs(s)&&V0(s,r)&&Wn(s)!=="body"}):[]}function dC(e,t,n,r){var s=t==="clippingParents"?fC(e):[].concat(t),o=[].concat(s,[n]),a=o[0],i=o.reduce(function(l,u){var c=gp(e,u,r);return l.top=qr(c.top,l.top),l.right=fi(c.right,l.right),l.bottom=fi(c.bottom,l.bottom),l.left=qr(c.left,l.left),l},gp(e,a,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Z0(e){var t=e.reference,n=e.element,r=e.placement,s=r?On(r):null,o=r?$s(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(s){case Wt:l={x:a,y:t.y-n.height};break;case sn:l={x:a,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:i};break;case Vt:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=s?jc(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ms:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ea:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ta(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?FI:i,u=n.rootBoundary,c=u===void 0?L0:u,f=n.elementContext,d=f===void 0?fo:f,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,_=D0(typeof b!="number"?b:G0(b,ha)),v=d===fo?LI:fo,E=e.rects.popper,w=e.elements[h?v:d],B=dC(rs(w)?w:w.contextElement||Or(e.elements.popper),l,c,a),G=Vs(e.elements.reference),P=Z0({reference:G,element:E,placement:s}),O=Eu(Object.assign({},E,P)),R=d===fo?O:G,F={top:B.top-R.top+_.top,bottom:R.bottom-B.bottom+_.bottom,left:B.left-R.left+_.left,right:R.right-B.right+_.right},$=e.modifiersData.offset;if(d===fo&&$){var k=$[s];Object.keys(F).forEach(function(U){var Z=[on,sn].indexOf(U)>=0?1:-1,j=[Wt,sn].indexOf(U)>=0?"y":"x";F[U]+=k[j]*Z})}return F}function pC(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,o=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Gc:l,c=$s(r),f=c?i?fp:fp.filter(function(h){return $s(h)===c}):ha,d=f.filter(function(h){return u.indexOf(h)>=0});d.length===0&&(d=f);var p=d.reduce(function(h,g){return h[g]=ta(e,{placement:g,boundary:s,rootBoundary:o,padding:a})[On(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function hC(e){if(On(e)===Dc)return[];var t=Ya(e);return[hp(e),t,hp(t)]}function gC(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,_=On(b),v=_===b,E=l||(v||!h?[Ya(b)]:hC(b)),w=[b].concat(E).reduce(function(be,Re){return be.concat(On(Re)===Dc?pC(t,{placement:Re,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):Re)},[]),B=t.rects.reference,G=t.rects.popper,P=new Map,O=!0,R=w[0],F=0;F<w.length;F++){var $=w[F],k=On($),U=$s($)===Ms,Z=[Wt,sn].indexOf(k)>=0,j=Z?"width":"height",M=ta(t,{placement:$,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),x=Z?U?on:Vt:U?sn:Wt;B[j]>G[j]&&(x=Ya(x));var C=Ya(x),H=[];if(o&&H.push(M[k]<=0),i&&H.push(M[x]<=0,M[C]<=0),H.every(function(be){return be})){R=$,O=!1;break}P.set($,H)}if(O)for(var te=h?3:1,ae=function(be){var Re=w.find(function(Ze){var L=P.get(Ze);if(L)return L.slice(0,be).every(function(ee){return ee})});if(Re)return R=Re,"break"},se=te;se>0;se--){var Ee=ae(se);if(Ee==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}var mC={name:"flip",enabled:!0,phase:"main",fn:gC,requiresIfExists:["offset"],data:{_skip:!1}};function mp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bp(e){return[Wt,on,sn,Vt].some(function(t){return e[t]>=0})}function bC(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=ta(t,{elementContext:"reference"}),i=ta(t,{altBoundary:!0}),l=mp(a,r),u=mp(i,s,o),c=bp(l),f=bp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var vC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bC};function yC(e,t,n){var r=On(e),s=[Vt,Wt].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],i=o[1];return a=a||0,i=(i||0)*s,[Vt,on].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function _C(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,a=Gc.reduce(function(c,f){return c[f]=yC(f,t.rects,o),c},{}),i=a[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var wC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_C};function EC(e){var t=e.state,n=e.name;t.modifiersData[n]=Z0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var K0={name:"popperOffsets",enabled:!0,phase:"read",fn:EC,data:{}};function AC(e){return e==="x"?"y":"x"}function SC(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,h=n.tetherOffset,g=h===void 0?0:h,b=ta(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),_=On(t.placement),v=$s(t.placement),E=!v,w=jc(_),B=AC(w),G=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,F=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(G){if(o){var U,Z=w==="y"?Wt:Vt,j=w==="y"?sn:on,M=w==="y"?"height":"width",x=G[w],C=x+b[Z],H=x-b[j],te=p?-O[M]/2:0,ae=v===Ms?P[M]:O[M],se=v===Ms?-O[M]:-P[M],Ee=t.elements.arrow,be=p&&Ee?Uc(Ee):{width:0,height:0},Re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$0(),Ze=Re[Z],L=Re[j],ee=Fo(0,P[M],be[M]),Q=E?P[M]/2-te-ee-Ze-F.mainAxis:ae-ee-Ze-F.mainAxis,oe=E?-P[M]/2+te+ee+L+F.mainAxis:se+ee+L+F.mainAxis,ye=t.elements.arrow&&ga(t.elements.arrow),m=ye?w==="y"?ye.clientTop||0:ye.clientLeft||0:0,y=(U=$?.[w])!=null?U:0,S=x+Q-y-m,V=x+oe-y,Y=Fo(p?fi(C,S):C,x,p?qr(H,V):H);G[w]=Y,k[w]=Y-x}if(i){var W,ne=w==="x"?Wt:Vt,q=w==="x"?sn:on,X=G[B],K=B==="y"?"height":"width",he=X+b[ne],re=X-b[q],ue=[Wt,Vt].indexOf(_)!==-1,me=(W=$?.[B])!=null?W:0,Ne=ue?he:X-P[K]-O[K]-me+F.altAxis,Oe=ue?X+P[K]+O[K]-me-F.altAxis:re,Be=p&&ue?JI(Ne,X,Oe):Fo(p?Ne:he,X,p?Oe:re);G[B]=Be,k[B]=Be-X}t.modifiersData[r]=k}}var xC={name:"preventOverflow",enabled:!0,phase:"main",fn:SC,requiresIfExists:["offset"]};function NC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IC(e){return e===Xt(e)||!tn(e)?Zc(e):NC(e)}function CC(e){var t=e.getBoundingClientRect(),n=Ws(t.width)/e.offsetWidth||1,r=Ws(t.height)/e.offsetHeight||1;return n!==1||r!==1}function TC(e,t,n){n===void 0&&(n=!1);var r=tn(t),s=tn(t)&&CC(t),o=Or(t),a=Vs(e,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wn(t)!=="body"||Hc(o))&&(i=IC(t)),tn(t)?(l=Vs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Kc(o))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function RC(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&s(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),r}function PC(e){var t=RC(e);return ZI.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function BC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function OC(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var vp={placement:"bottom",modifiers:[],strategy:"absolute"};function yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Xc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?vp:s;return function(a,i,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},vp,o),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(g){var b=typeof g=="function"?g(u.options):g;h(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:rs(a)?Lo(a):a.contextElement?Lo(a.contextElement):[],popper:Lo(i)};var _=PC(OC([].concat(r,u.options.modifiers)));return u.orderedModifiers=_.filter(function(v){return v.enabled}),p(),d.update()},forceUpdate:function(){if(!f){var g=u.elements,b=g.reference,_=g.popper;if(yp(b,_)){u.rects={reference:TC(b,ga(_),u.options.strategy==="fixed"),popper:Uc(_)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var E=u.orderedModifiers[v],w=E.fn,B=E.options,G=B===void 0?{}:B,P=E.name;typeof w=="function"&&(u=w({state:u,options:G,name:P,instance:d})||u)}}}},update:BC(function(){return new Promise(function(g){d.forceUpdate(),g(u)})}),destroy:function(){h(),f=!0}};if(!yp(a,i))return d;d.setOptions(l).then(function(g){!f&&l.onFirstUpdate&&l.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var b=g.name,_=g.options,v=_===void 0?{}:_,E=g.effect;if(typeof E=="function"){var w=E({state:u,name:b,instance:d,options:v}),B=function(){};c.push(w||B)}})}function h(){c.forEach(function(g){return g()}),c=[]}return d}}Xc();var kC=[U0,K0,Y0,M0];Xc({defaultModifiers:kC});var FC=[U0,K0,Y0,M0,wC,mC,xC,tC,vC],LC=Xc({defaultModifiers:FC});const MC=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=WC(l);Object.assign(a.value,u)},requires:["computeStyles"]},s=T(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=A(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=Ks(),a=J({styles:{popper:{position:A(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return xe(s,l=>{const u=A(o);u&&u.setOptions(l)},{deep:!0}),xe([e,t],([l,u])=>{i(),!(!l||!u)&&(o.value=LC(l,u,A(s)))}),mt(()=>{i()}),{state:T(()=>({...A(o)?.state||{}})),styles:T(()=>A(a).styles),attributes:T(()=>A(a).attributes),update:()=>A(o)?.update(),forceUpdate:()=>A(o)?.forceUpdate(),instanceRef:T(()=>A(o))}};function WC(e){const t=Object.keys(e.elements);return{styles:ci(t.map(n=>[n,e.styles[n]||{}])),attributes:ci(t.map(n=>[n,e.attributes[n]]))}}function _p(){let e;const t=(r,s)=>{n(),e=globalThis.setTimeout(r,s)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return Yi(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Au={prefix:Math.floor(Math.random()*1e4),current:0},VC=Symbol("elIdInjection"),H0=()=>nt()?ge(VC,Au):Au,Zi=e=>{const t=H0();!ut&&t===Au&&bn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
@@ -7,4 +7,4 @@ usage: app.provide(ID_INJECTION_KEY, {
7
7
  current: number,
8
8
  })`);const n=$c();return R0(()=>A(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let As=[];const wp=e=>{$n(e)===Le.esc&&As.forEach(t=>t(e))},$C=e=>{st(()=>{As.length===0&&document.addEventListener("keydown",wp),ut&&As.push(e)}),mt(()=>{As=As.filter(t=>t!==e),As.length===0&&ut&&document.removeEventListener("keydown",wp)})},X0=()=>{const e=$c(),t=H0(),n=T(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:T(()=>`#${n.value}`)}},DC=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},GC=()=>{const{id:e,selector:t}=X0();return sm(()=>{ut&&(document.body.querySelector(t.value)||DC(e.value))}),{id:e,selector:t}},YC=$e({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),UC=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:s})=>{const{registerTimeout:o}=_p(),{registerTimeout:a,cancelTimeout:i}=_p();return{onOpen:(c,f=A(e))=>{o(()=>{r(c);const d=A(n);kt(d)&&d>0&&a(()=>{s(c)},d)},f)},onClose:(c,f=A(t))=>{i(),o(()=>{s(c)},f)}}},z0=Symbol("elForwardRef"),jC=e=>{tt(z0,{setForwardRef:(n=>{e.value=n})})},ZC=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Ep={current:0},Ap=J(0),J0=2e3,Sp=Symbol("elZIndexContextKey"),Q0=Symbol("zIndexContextKey"),q0=e=>{const t=nt()?ge(Sp,Ep):Ep,n=e||(nt()?ge(Q0,void 0):void 0),r=T(()=>{const a=A(n);return kt(a)?a:J0}),s=T(()=>r.value+Ap.value),o=()=>(t.current++,Ap.value=t.current,s.value);return!ut&&!ge(Sp)&&bn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
9
9
  usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:s,nextZIndex:o}};const Eo=e=>{const t=ie(e)?e:[e],n=[];return t.forEach(r=>{ie(r)?n.push(...Eo(r)):pn(r)&&r.component?.subTree?n.push(r,...Eo(r.component.subTree)):pn(r)&&ie(r.children)?n.push(...Eo(r.children)):pn(r)&&r.shapeFlag===2?n.push(...Eo(r.type())):n.push(r)}),n},eb=Gi({type:String,values:wS,required:!1}),tb=Symbol("size"),KC=()=>{const e=ge(tb,{});return T(()=>A(e.size)||"")},HC=Symbol("emptyValuesContextKey");const XC=$e({emptyValues:Array,valueOnClear:{type:le([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=pe(e)?e():e,ie(e)?e.every(t=>!t):!e)}});const zC=$e({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),zc=e=>uI(zC,e),nb=e=>{const t=e.props,n=ie(t)?ci(t.map(r=>[r,{}])):t;e.setPropsDefaults=r=>{if(n){for(const[s,o]of Object.entries(r)){const a=n[s];if(Te(n,s)){if(LN(a)){n[s]={...a,default:o};continue}n[s]={type:a,default:o}}}e.props=n}}},Dn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return nb(e),e},JC=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),QC=(e,t)=>(e.install=n=>{n.directive(t,e)},e),to=e=>(e.install=It,nb(e),e);var qC=de({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),rb=qC;var e5=de({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),t5=e5;var n5=de({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),fe("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),r5=n5,s5=de({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),sb=s5,o5=de({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),fe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),a5=o5;var i5=de({name:"Close",__name:"close",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),l5=i5;var u5=de({name:"Hide",__name:"hide",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),fe("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),mO=u5,c5=de({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Su=c5,f5=de({name:"Loading",__name:"loading",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),ob=f5;var d5=de({name:"More",__name:"more",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),p5=d5;var h5=de({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),ab=h5,g5=de({name:"View",__name:"view",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),bO=g5,m5=de({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(z(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[fe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),ib=m5;const tr=le([String,Object,Function]);const b5={Close:l5,SuccessFilled:ab,InfoFilled:Su,WarningFilled:ib,CircleCloseFilled:sb},xp={primary:Su,success:ab,warning:ib,error:sb,info:Su},vO={validating:ob,success:r5,error:a5},v5=$e({size:{type:le([Number,String])},color:{type:String}});var y5=de({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:v5,setup(e){const t=e,n=Ve("icon"),r=T(()=>{const{size:s,color:o}=t,a=ns(s);return!a&&!o?{}:{fontSize:a,"--color":o}});return(s,o)=>(z(),_e("i",$t({class:A(n).b(),style:r.value},s.$attrs),[ve(s.$slots,"default")],16))}}),_5=y5;const Pr=Dn(_5),lb=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],ub=$e({role:{type:String,values:lb,default:"tooltip"}}),Jc=Symbol("popper"),cb=Symbol("popperContent");var w5=de({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=Ve("popper"),{arrowRef:r,arrowStyle:s}=ge(cb,void 0);return mt(()=>{r.value=void 0}),t({arrowRef:r}),(o,a)=>(z(),_e("span",{ref_key:"arrowRef",ref:r,class:Pe(A(n).e("arrow")),style:gn(A(s)),"data-popper-arrow":""},null,6))}}),E5=w5;const fb=$e({virtualRef:{type:le(Object)},virtualTriggering:Boolean,onMouseenter:{type:le(Function)},onMouseleave:{type:le(Function)},onClick:{type:le(Function)},onKeydown:{type:le(Function)},onFocus:{type:le(Function)},onBlur:{type:le(Function)},onContextmenu:{type:le(Function)},id:String,open:Boolean}),El="ElOnlyChild",db=de({name:El,setup(e,{slots:t,attrs:n}){const r=ZC(ge(z0)?.setForwardRef??It);return()=>{const s=t.default?.(n);if(!s)return null;const[o,a]=pb(s);return o?(a>1&&bn(El,"requires exact only one valid child."),Hs(Fn(o,n),[[r]])):(bn(El,"no valid child node found"),null)}}});function pb(e){if(!e)return[null,0];const t=e,n=t.filter(r=>r.type!==pt).length;for(const r of t){if(Ie(r))switch(r.type){case pt:continue;case Xs:case"svg":return[Np(r),n];case Ke:return pb(r.children);default:return[r,n]}return[Np(r),n]}return[null,0]}function Np(e){return we("span",{class:Ve("only-child").e("content")},[e])}var A5=de({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:fb,setup(e,{expose:t}){const n=e,{role:r,triggerRef:s}=ge(Jc,void 0);jC(s);const o=T(()=>i.value?n.id:void 0),a=T(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=T(()=>{if(r&&r.value!=="tooltip")return r.value}),l=T(()=>i.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return st(()=>{xe(()=>n.virtualRef,f=>{f&&(s.value=Pn(f))},{immediate:!0}),xe(s,(f,d)=>{u?.(),u=void 0,Nr(d)&&c.forEach(p=>{const h=n[p];h&&d.removeEventListener(p.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(p))}),Nr(f)&&(c.forEach(p=>{const h=n[p];h&&f.addEventListener(p.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(p))}),_u(f)&&(u=xe([o,a,i,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,g)=>{Ls(p[g])?f.removeAttribute(h):f.setAttribute(h,p[g])})},{immediate:!0}))),Nr(d)&&_u(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),mt(()=>{if(u?.(),u=void 0,s.value&&Nr(s.value)){const f=s.value;c.forEach(d=>{const p=n[d];p&&f.removeEventListener(d.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(d))}),s.value=void 0}}),t({triggerRef:s}),(f,d)=>e.virtualTriggering?He("v-if",!0):(z(),Ae(A(db),$t({key:0},f.$attrs,{"aria-controls":o.value,"aria-describedby":a.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:ce(()=>[ve(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),S5=A5;const hb=$e({arrowOffset:{type:Number,default:5}}),x5=$e({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:le(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Gc,default:"bottom"},popperOptions:{type:le(Object),default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),gb=$e({...x5,...hb,id:String,style:{type:le([String,Array,Object,Boolean]),default:void 0},className:{type:le([String,Array,Object])},effect:{type:le(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:le([String,Array,Object])},popperStyle:{type:le([String,Array,Object,Boolean]),default:void 0},referenceEl:{type:le(Object)},triggerTargetEl:{type:le(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...zc(["ariaLabel"]),loop:Boolean}),N5={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Qc=Symbol("formContextKey"),di=Symbol("formItemContextKey"),mb=(e,t={})=>{const n=J(void 0),r=t.prop?n:F0("size"),s=t.global?n:KC(),o=t.form?{size:void 0}:ge(Qc,void 0),a=t.formItem?{size:void 0}:ge(di,void 0);return T(()=>r.value||A(e)||a?.size||o?.size||s.value||"")},bb=e=>{const t=F0("disabled"),n=ge(Qc,void 0);return T(()=>t.value??A(e)??n?.disabled??!1)},I5=()=>({form:ge(Qc,void 0),formItem:ge(di,void 0)}),yO=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=J(!1)),r||(r=J(!1));const s=nt(),o=()=>{let u=s?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},a=J();let i;const l=T(()=>!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&t.inputIds?.length<=1));return st(()=>{i=xe([yt(e,"id"),n],([u,c])=>{const f=u??(c?void 0:Zi().value);f!==a.value&&(t?.removeInputId&&!o()&&(a.value&&t.removeInputId(a.value),!r?.value&&!c&&f&&t.addInputId(f)),a.value=f)},{immediate:!0})}),la(()=>{i&&i(),t?.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:l,inputId:a}};const C5=e=>!e&&e!==0?[]:ie(e)?e:[e],Al="focus-trap.focus-after-trapped",Sl="focus-trap.focus-after-released",T5="focus-trap.focusout-prevented",Ip={cancelable:!0,bubbles:!1},R5={cancelable:!0,bubbles:!1},Cp="focusAfterTrapped",Tp="focusAfterReleased",P5=Symbol("elFocusTrap"),qc=J(),Ki=J(0),ef=J(0);let Ta=0;const vb=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Rp=(e,t)=>{for(const n of e)if(!B5(n,t))return n},B5=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},O5=e=>{const t=vb(e);return[Rp(t,e),Rp(t.reverse(),e)]},k5=e=>e instanceof HTMLInputElement&&"select"in e,wr=(e,t)=>{if(e){const n=document.activeElement;Ui(e,{preventScroll:!0}),ef.value=window.performance.now(),e!==n&&k5(e)&&t&&e.select()}};function Pp(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const F5=()=>{let e=[];return{push:r=>{const s=e[0];s&&r!==s&&s.pause(),e=Pp(e,r),e.unshift(r)},remove:r=>{e=Pp(e,r),e[0]?.resume?.()}}},L5=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(wr(r,t),document.activeElement!==n)return},Bp=F5(),M5=()=>Ki.value>ef.value,Ra=()=>{qc.value="pointer",Ki.value=window.performance.now()},Op=()=>{qc.value="keyboard",Ki.value=window.performance.now()},W5=()=>(st(()=>{Ta===0&&(document.addEventListener("mousedown",Ra),document.addEventListener("touchstart",Ra),document.addEventListener("keydown",Op)),Ta++}),mt(()=>{Ta--,Ta<=0&&(document.removeEventListener("mousedown",Ra),document.removeEventListener("touchstart",Ra),document.removeEventListener("keydown",Op))}),{focusReason:qc,lastUserFocusTimestamp:Ki,lastAutomatedFocusTimestamp:ef}),Pa=e=>new CustomEvent(T5,{...R5,detail:e});var V5=de({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Cp,Tp,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=J();let r,s;const{focusReason:o}=W5();$C(h=>{e.trapped&&!a.paused&&t("release-requested",h)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=h=>{if(!e.loop&&!e.trapped||a.paused)return;const{altKey:g,ctrlKey:b,metaKey:_,currentTarget:v,shiftKey:E}=h,{loop:w}=e,B=$n(h)===Le.tab&&!g&&!b&&!_,G=document.activeElement;if(B&&G){const P=v,[O,R]=O5(P);if(O&&R){if(!E&&G===R){const F=Pa({focusReason:o.value});t("focusout-prevented",F),F.defaultPrevented||(h.preventDefault(),w&&wr(O,!0))}else if(E&&[O,P].includes(G)){const F=Pa({focusReason:o.value});t("focusout-prevented",F),F.defaultPrevented||(h.preventDefault(),w&&wr(R,!0))}}else if(G===P){const F=Pa({focusReason:o.value});t("focusout-prevented",F),F.defaultPrevented||h.preventDefault()}}};tt(P5,{focusTrapRef:n,onKeydown:i}),xe(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),xe([n],([h],[g])=>{h&&(h.addEventListener("keydown",i),h.addEventListener("focusin",c),h.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",i),g.removeEventListener("focusin",c),g.removeEventListener("focusout",f))});const l=h=>{t(Cp,h)},u=h=>t(Tp,h),c=h=>{const g=A(n);if(!g)return;const b=h.target,_=h.relatedTarget,v=b&&g.contains(b);e.trapped||_&&g.contains(_)||(r=_),v&&t("focusin",h),!a.paused&&e.trapped&&(v?s=b:wr(s,!0))},f=h=>{const g=A(n);if(!(a.paused||!g))if(e.trapped){const b=h.relatedTarget;!Ls(b)&&!g.contains(b)&&setTimeout(()=>{if(!a.paused&&e.trapped){const _=Pa({focusReason:o.value});t("focusout-prevented",_),_.defaultPrevented||wr(s,!0)}},0)}else{const b=h.target;b&&g.contains(b)||t("focusout",h)}};async function d(){await rn();const h=A(n);if(h){Bp.push(a);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const b=new Event(Al,Ip);h.addEventListener(Al,l),h.dispatchEvent(b),b.defaultPrevented||rn(()=>{let _=e.focusStartEl;Se(_)||(wr(_),document.activeElement!==_&&(_="first")),_==="first"&&L5(vb(h),!0),(document.activeElement===g||_==="container")&&wr(h)})}}}function p(){const h=A(n);if(h){h.removeEventListener(Al,l);const g=new CustomEvent(Sl,{...Ip,detail:{focusReason:o.value}});h.addEventListener(Sl,u),h.dispatchEvent(g),!g.defaultPrevented&&(o.value=="keyboard"||!M5()||h.contains(document.activeElement))&&wr(r??document.body),h.removeEventListener(Sl,u),Bp.remove(a),r=null,s=null}}return st(()=>{e.trapped&&d(),xe(()=>e.trapped,h=>{h?d():p()})}),mt(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",f),n.value=void 0),r=null,s=null}),{onKeydown:i}}}),Gn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function $5(e,t,n,r,s,o){return ve(e.$slots,"default",{handleKeydown:e.onKeydown})}var D5=Gn(V5,[["render",$5]]),G5=D5;const Y5=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:s}=e,o={placement:n,strategy:r,...s,modifiers:[...j5(e),...t]};return Z5(o,s?.modifiers),o},U5=e=>{if(ut)return Pn(e)};function j5(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Z5(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const K5=0,H5=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:s}=ge(Jc,void 0),o=J(),a=T(()=>e.arrowOffset),i=T(()=>({name:"eventListeners",enabled:!!e.visible})),l=T(()=>{const v=A(o),E=A(a)??K5;return{name:"arrow",enabled:!oI(v),options:{element:v,padding:E}}}),u=T(()=>({onFirstUpdate:()=>{h()},...Y5(e,[A(l),A(i)])})),c=T(()=>U5(e.referenceEl)||A(r)),{attributes:f,state:d,styles:p,update:h,forceUpdate:g,instanceRef:b}=MC(c,n,u);xe(b,v=>t.value=v,{flush:"sync"}),st(()=>{xe(()=>A(c)?.getBoundingClientRect?.(),()=>{h()})});let _;return xe(()=>e.visible,v=>{_?.(),_=void 0,v&&(_=qo(n,h).stop)}),mt(()=>{t.value=void 0,_?.(),_=void 0}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:b,state:d,styles:p,role:s,forceUpdate:g,update:h}},X5=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:s}=q0(),o=Ve("popper"),a=T(()=>A(t).popper),i=J(kt(e.zIndex)?e.zIndex:s()),l=T(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=T(()=>[{zIndex:A(i)},A(n).popper,e.popperStyle||{}]),c=T(()=>r.value==="dialog"?"false":void 0),f=T(()=>A(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=kt(e.zIndex)?e.zIndex:s()}}},z5=(e,t)=>{const n=J(!1),r=J(),s=()=>{t("focus")},o=u=>{u.detail?.focusReason!=="pointer"&&(r.value="first",t("blur"))},a=u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},i=u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return mt(()=>{r.value=void 0}),{focusStartRef:r,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:a,onFocusoutPrevented:i,onReleaseRequested:l}};var J5=de({name:"ElPopperContent",__name:"content",props:gb,emits:N5,setup(e,{expose:t,emit:n}){const r=n,s=e,{focusStartRef:o,trapped:a,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:f}=z5(s,r),{attributes:d,arrowRef:p,contentRef:h,styles:g,instanceRef:b,role:_,update:v}=H5(s),{ariaModal:E,arrowStyle:w,contentAttrs:B,contentClass:G,contentStyle:P,updateZIndex:O}=X5(s,{styles:g,attributes:d,role:_}),R=ge(di,void 0);tt(cb,{arrowStyle:w,arrowRef:p}),R&&tt(di,{...R,addInputId:It,removeInputId:It});let F;const $=(U=!0)=>{v(),U&&O()},k=()=>{$(!1),s.visible&&s.focusOnShow?a.value=!0:s.visible===!1&&(a.value=!1)};return st(()=>{xe(()=>s.triggerTargetEl,(U,Z)=>{F?.(),F=void 0;const j=A(U||h.value),M=A(Z||h.value);Nr(j)&&(F=xe([_,()=>s.ariaLabel,E,()=>s.id],x=>{["role","aria-label","aria-modal","id"].forEach((C,H)=>{Ls(x[H])?j.removeAttribute(C):j.setAttribute(C,x[H])})},{immediate:!0})),M!==j&&Nr(M)&&["role","aria-label","aria-modal","id"].forEach(x=>{M.removeAttribute(x)})},{immediate:!0}),xe(()=>s.visible,k,{immediate:!0})}),mt(()=>{F?.(),F=void 0,h.value=void 0}),t({popperContentRef:h,popperInstanceRef:b,updatePopper:$,contentStyle:P}),(U,Z)=>(z(),_e("div",$t({ref_key:"contentRef",ref:h},A(B),{style:A(P),class:A(G),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=j=>U.$emit("mouseenter",j)),onMouseleave:Z[1]||(Z[1]=j=>U.$emit("mouseleave",j))}),[we(A(G5),{loop:e.loop,trapped:A(a),"trap-on-focus-in":!0,"focus-trap-el":A(h),"focus-start-el":A(o),onFocusAfterTrapped:A(l),onFocusAfterReleased:A(i),onFocusin:A(u),onFocusoutPrevented:A(c),onReleaseRequested:A(f)},{default:ce(()=>[ve(U.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),Q5=J5,q5=de({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:ub,setup(e,{expose:t}){const n=e,r={triggerRef:J(),popperInstanceRef:J(),contentRef:J(),referenceRef:J(),role:T(()=>n.role)};return t(r),tt(Jc,r),(s,o)=>ve(s.$slots,"default")}}),e6=q5;const t6=Dn(e6),St=$e({...YC,...gb,appendTo:{type:le([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:le(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...zc(["ariaLabel"])}),Rr=$e({...fb,disabled:Boolean,trigger:{type:le([String,Array]),default:"hover"},triggerKeys:{type:le(Array),default:()=>[Le.enter,Le.numpadEnter,Le.space]},focusOnTarget:Boolean}),{useModelToggleProps:n6,useModelToggleEmits:r6,useModelToggle:s6}=kI("visible"),o6=$e({...ub,...n6,...St,...Rr,...hb,showArrow:{type:Boolean,default:!0}}),a6=[...r6,"before-show","before-hide","show","hide","open","close"],tf=Symbol("elTooltip"),xu=(e,t)=>ie(e)?e.includes(t):e===t,_s=(e,t,n)=>r=>{xu(A(e),t)&&n(r)};var i6=de({name:"ElTooltipTrigger",__name:"trigger",props:Rr,setup(e,{expose:t}){const n=e,r=Ve("tooltip"),{controlled:s,id:o,open:a,onOpen:i,onClose:l,onToggle:u}=ge(tf,void 0),c=J(null),f=()=>{if(A(s)||n.disabled)return!0},d=yt(n,"trigger"),p=lt(f,_s(d,"hover",w=>{i(w),n.focusOnTarget&&w.target&&rn(()=>{Ui(w.target,{preventScroll:!0})})})),h=lt(f,_s(d,"hover",l)),g=lt(f,_s(d,"click",w=>{w.button===0&&u(w)})),b=lt(f,_s(d,"focus",i)),_=lt(f,_s(d,"focus",l)),v=lt(f,_s(d,"contextmenu",w=>{w.preventDefault(),u(w)})),E=lt(f,w=>{const B=$n(w);n.triggerKeys.includes(B)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,B)=>(z(),Ae(A(S5),{id:A(o),"virtual-ref":e.virtualRef,open:A(a),"virtual-triggering":e.virtualTriggering,class:Pe(A(r).e("trigger")),onBlur:A(_),onClick:A(g),onContextmenu:A(v),onFocus:A(b),onMouseenter:A(p),onMouseleave:A(h),onKeydown:A(E)},{default:ce(()=>[ve(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),l6=i6,u6=de({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:St,setup(e,{expose:t}){const n=e,{selector:r}=X0(),s=Ve("tooltip"),o=J(),a=R0(()=>o.value?.popperContentRef);let i;const{controlled:l,id:u,open:c,trigger:f,onClose:d,onOpen:p,onShow:h,onHide:g,onBeforeShow:b,onBeforeHide:_}=ge(tf,void 0),v=T(()=>n.transition||`${s.namespace.value}-fade-in-linear`),E=T(()=>n.persistent);mt(()=>{i?.()});const w=T(()=>A(E)?!0:A(c)),B=T(()=>n.disabled?!1:A(c)),G=T(()=>n.appendTo||r.value),P=T(()=>n.style??{}),O=J(!0),R=()=>{g(),x()&&Ui(document.body,{preventScroll:!0}),O.value=!0},F=()=>{if(A(l))return!0},$=lt(F,()=>{n.enterable&&xu(A(f),"hover")&&p()}),k=lt(F,()=>{xu(A(f),"hover")&&d()}),U=()=>{o.value?.updatePopper?.(),b?.()},Z=()=>{_?.()},j=()=>{h()},M=()=>{n.virtualTriggering||d()},x=C=>{const H=o.value?.popperContentRef,te=C?.relatedTarget||document.activeElement;return H?.contains(te)};return xe(()=>A(c),C=>{C?(O.value=!1,i=vI(a,()=>{A(l)||C5(A(f)).every(H=>H!=="hover"&&H!=="focus")&&d()},{detectIframe:!0})):i?.()},{flush:"post"}),t({contentRef:o,isFocusInsideContent:x}),(C,H)=>(z(),Ae(q_,{disabled:!e.teleported,to:G.value},[w.value||!O.value?(z(),Ae(zs,{key:0,name:v.value,appear:!E.value,onAfterLeave:R,onBeforeEnter:U,onAfterEnter:j,onBeforeLeave:Z,persisted:""},{default:ce(()=>[Hs(we(A(Q5),$t({id:A(u),ref_key:"contentRef",ref:o},C.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":O.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,P.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:B.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:A($),onMouseleave:A(k),onBlur:M,onClose:A(d)}),{default:ce(()=>[ve(C.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[ki,B.value]])]),_:3},8,["name","appear"])):He("v-if",!0)],8,["disabled","to"]))}}),c6=u6;const f6=["innerHTML"],d6={key:1};var p6=de({name:"ElTooltip",__name:"tooltip",props:o6,emits:a6,setup(e,{expose:t,emit:n}){const r=e,s=n;GC();const o=Ve("tooltip"),a=Zi(),i=J(),l=J(),u=()=>{const w=A(i);w&&w.popperInstanceRef?.update()},c=J(!1),f=J(),{show:d,hide:p,hasUpdateHandler:h}=s6({indicator:c,toggleReason:f}),{onOpen:g,onClose:b}=UC({showAfter:yt(r,"showAfter"),hideAfter:yt(r,"hideAfter"),autoClose:yt(r,"autoClose"),open:d,close:p}),_=T(()=>Qr(r.visible)&&!h.value),v=T(()=>[o.b(),r.popperClass]);tt(tf,{controlled:_,id:a,open:Ts(c),trigger:yt(r,"trigger"),onOpen:g,onClose:b,onToggle:w=>{A(c)?b(w):g(w)},onShow:()=>{s("show",f.value)},onHide:()=>{s("hide",f.value)},onBeforeShow:()=>{s("before-show",f.value)},onBeforeHide:()=>{s("before-hide",f.value)},updatePopper:u}),xe(()=>r.disabled,w=>{w&&c.value&&(c.value=!1),!w&&Qr(r.visible)&&(c.value=r.visible)});const E=w=>l.value?.isFocusInsideContent(w);return nm(()=>c.value&&p()),mt(()=>{f.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:E,updatePopper:u,onOpen:g,onClose:b,hide:p}),(w,B)=>(z(),Ae(A(t6),{ref_key:"popperRef",ref:i,role:e.role},{default:ce(()=>[we(l6,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ce(()=>[w.$slots.default?ve(w.$slots,"default",{key:0}):He("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),we(c6,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":v.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ce(()=>[ve(w.$slots,"content",{},()=>[e.rawContent?(z(),_e("span",{key:0,innerHTML:e.content},null,8,f6)):(z(),_e("span",d6,Mt(e.content),1))]),e.showArrow?(z(),Ae(A(E5),{key:0})):He("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),h6=p6;const ma=Dn(h6),yb=e=>e,g6=$e({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:le([String,Object,Array,Boolean]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:le([String,Object,Array,Boolean]),default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...zc(["ariaLabel","ariaOrientation"])}),m6={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(kt)},b6={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},v6=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),y6=$e({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),nf=Symbol("scrollbarContextKey");function kp(e,t,n=.03){return e-t>n}const _6=$e({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),w6="Thumb";var E6=de({__name:"thumb",props:y6,setup(e){const t=e,n=ge(nf),r=Ve("scrollbar");n||Qo(w6,"can not inject scrollbar context");const s=J(),o=J(),a=J({}),i=J(!1);let l=!1,u=!1,c=0,f=0,d=ut?document.onselectstart:null;const p=T(()=>b6[t.vertical?"vertical":"horizontal"]),h=T(()=>v6({size:t.size,move:t.move,bar:p.value})),g=T(()=>s.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/o.value[p.value.offset]),b=O=>{if(O.stopPropagation(),O.ctrlKey||[1,2].includes(O.button))return;window.getSelection()?.removeAllRanges(),v(O);const R=O.currentTarget;R&&(a.value[p.value.axis]=R[p.value.offset]-(O[p.value.client]-R.getBoundingClientRect()[p.value.direction]))},_=O=>{if(!o.value||!s.value||!n.wrapElement)return;const R=(Math.abs(O.target.getBoundingClientRect()[p.value.direction]-O[p.value.client])-o.value[p.value.offset]/2)*100*g.value/s.value[p.value.offset];n.wrapElement[p.value.scroll]=R*n.wrapElement[p.value.scrollSize]/100},v=O=>{O.stopImmediatePropagation(),l=!0,c=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",E),document.addEventListener("mouseup",w),d=document.onselectstart,document.onselectstart=()=>!1},E=O=>{if(!s.value||!o.value||l===!1)return;const R=a.value[p.value.axis];if(!R)return;const F=((s.value.getBoundingClientRect()[p.value.direction]-O[p.value.client])*-1-(o.value[p.value.offset]-R))*100*g.value/s.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=F*f/100:n.wrapElement[p.value.scroll]=F*c/100},w=()=>{l=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w),P(),u&&(i.value=!1)},B=()=>{u=!1,i.value=!!t.size},G=()=>{u=!0,i.value=l};mt(()=>{P(),document.removeEventListener("mouseup",w)});const P=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Tr(yt(n,"scrollbarElement"),"mousemove",B),Tr(yt(n,"scrollbarElement"),"mouseleave",G),(O,R)=>(z(),Ae(zs,{name:A(r).b("fade"),persisted:""},{default:ce(()=>[Hs(fe("div",{ref_key:"instance",ref:s,class:Pe([A(r).e("bar"),A(r).is(p.value.key)]),onMousedown:_,onClick:R[0]||(R[0]=Zo(()=>{},["stop"]))},[fe("div",{ref_key:"thumb",ref:o,class:Pe(A(r).e("thumb")),style:gn(h.value),onMousedown:b},null,38)],34),[[ki,e.always||i.value]])]),_:1},8,["name"]))}}),Fp=E6,A6=de({__name:"bar",props:_6,setup(e,{expose:t}){const n=e,r=ge(nf),s=J(0),o=J(0),a=J(""),i=J(""),l=J(1),u=J(1);return t({handleScroll:d=>{if(d){const p=d.offsetHeight-4,h=d.offsetWidth-4;o.value=d.scrollTop*100/p*l.value,s.value=d.scrollLeft*100/h*u.value}},update:()=>{const d=r?.wrapElement;if(!d)return;const p=d.offsetHeight-4,h=d.offsetWidth-4,g=p**2/d.scrollHeight,b=h**2/d.scrollWidth,_=Math.max(g,n.minSize),v=Math.max(b,n.minSize);l.value=g/(p-g)/(_/(p-_)),u.value=b/(h-b)/(v/(h-v)),i.value=_+4<p?`${_}px`:"",a.value=v+4<h?`${v}px`:""}}),(d,p)=>(z(),_e(Ke,null,[we(Fp,{move:s.value,ratio:u.value,size:a.value,always:e.always},null,8,["move","ratio","size","always"]),we(Fp,{move:o.value,ratio:l.value,size:i.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),S6=A6;const x6=["tabindex"],xl="ElScrollbar";var N6=de({name:xl,__name:"scrollbar",props:g6,emits:m6,setup(e,{expose:t,emit:n}){const r=e,s=n,o=Ve("scrollbar");let a,i,l,u=0,c=0,f="";const d={bottom:!1,top:!1,right:!1,left:!1},p=J(),h=J(),g=J(),b=J(),_=T(()=>{const k={},U=ns(r.height),Z=ns(r.maxHeight);return U&&(k.height=U),Z&&(k.maxHeight=Z),[r.wrapStyle,k]}),v=T(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),E=T(()=>[o.e("view"),r.viewClass]),w=k=>d[k]??!1,B={top:"bottom",bottom:"top",left:"right",right:"left"},G=k=>{const U=B[f];if(!U)return;const Z=k[f],j=k[U];Z&&!d[f]&&(d[f]=!0),!j&&d[U]&&(d[U]=!1)},P=()=>{if(h.value){b.value?.handleScroll(h.value);const k=u,U=c;u=h.value.scrollTop,c=h.value.scrollLeft;const Z={bottom:!kp(h.value.scrollHeight-r.distance,h.value.clientHeight+u),top:u<=r.distance&&k!==0,right:!kp(h.value.scrollWidth-r.distance,h.value.clientWidth+c)&&U!==c,left:c<=r.distance&&U!==0};if(s("scroll",{scrollTop:u,scrollLeft:c}),k!==u&&(f=u>k?"bottom":"top"),U!==c&&(f=c>U?"right":"left"),r.distance>0){if(w(f))return;G(Z)}Z[f]&&s("end-reached",f)}};function O(k,U){Ie(k)?h.value.scrollTo(k):kt(k)&&kt(U)&&h.value.scrollTo(k,U)}const R=k=>{if(!kt(k)){bn(xl,"value must be a number");return}h.value.scrollTop=k},F=k=>{if(!kt(k)){bn(xl,"value must be a number");return}h.value.scrollLeft=k},$=()=>{b.value?.update(),d[f]=!1,h.value&&b.value?.handleScroll(h.value)};return xe(()=>r.noresize,k=>{k?(a?.(),i?.(),l?.()):({stop:a}=qo(g,$),{stop:i}=qo(h,$),l=Tr("resize",$))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||rn(()=>{$()})}),tt(nf,yn({scrollbarElement:p,wrapElement:h})),tm(()=>{h.value&&(h.value.scrollTop=u,h.value.scrollLeft=c)}),st(()=>{r.native||rn(()=>{$()})}),Sc(()=>$()),t({wrapRef:h,update:$,scrollTo:O,setScrollTop:R,setScrollLeft:F,handleScroll:P}),(k,U)=>(z(),_e("div",{ref_key:"scrollbarRef",ref:p,class:Pe(A(o).b())},[fe("div",{ref_key:"wrapRef",ref:h,class:Pe(v.value),style:gn(_.value),tabindex:e.tabindex,onScroll:P},[(z(),Ae(zr(e.tag),{id:e.id,ref_key:"resizeRef",ref:g,class:Pe(E.value),style:gn(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ce(()=>[ve(k.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,x6),e.native?He("v-if",!0):(z(),Ae(S6,{key:0,ref_key:"barRef",ref:b,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),I6=N6;const C6=Dn(I6),T6=$e({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:le([String,Object,Array,Boolean]),default:void 0},offset:{type:le(Array),default:()=>[0,0]},badgeClass:{type:String}});var R6=de({name:"ElBadge",__name:"badge",props:T6,setup(e,{expose:t}){const n=e,r=Ve("badge"),s=T(()=>n.isDot?"":kt(n.value)&&kt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),o=T(()=>[{backgroundColor:n.color,marginRight:ns(-n.offset[0]),marginTop:ns(n.offset[1])},n.badgeStyle??{}]);return t({content:s}),(a,i)=>(z(),_e("div",{class:Pe(A(r).b())},[ve(a.$slots,"default"),we(zs,{name:`${A(r).namespace.value}-zoom-in-center`},{default:ce(()=>[!e.hidden&&(s.value||e.isDot||a.$slots.content)?(z(),_e("sup",{key:0,class:Pe([A(r).e("content"),A(r).em("content",e.type),A(r).is("fixed",!!a.$slots.default),A(r).is("dot",e.isDot),A(r).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:gn(o.value)},[ve(a.$slots,"content",{value:s.value},()=>[Ln(Mt(s.value),1)])],6)):He("v-if",!0)]),_:3},8,["name"])],2))}}),P6=R6;const B6=Dn(P6),O6=["default","primary","success","warning","info","danger","text",""],k6=["button","submit","reset"],Nu=$e({size:eb,disabled:{type:Boolean,default:void 0},type:{type:String,values:O6,default:""},icon:{type:tr},nativeType:{type:String,values:k6,default:"button"},loading:Boolean,loadingIcon:{type:tr,default:()=>ob},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:le([String,Object]),default:"button"}}),F6={click:e=>e instanceof MouseEvent},_b=Symbol(),pi=J();function rf(e,t=void 0){const n=nt()?ge(_b,pi):pi;return e?T(()=>n.value?.[e]??t):n}function L6(e,t){const n=rf(),r=Ve(e,T(()=>n.value?.namespace||"el")),s=O0(T(()=>n.value?.locale)),o=q0(T(()=>{const i=n.value?.zIndex;return Ls(i)||Number.isNaN(i)?J0:i})),a=T(()=>A(t)||n.value?.size||"");return M6(T(()=>A(n)||{})),{ns:r,locale:s,zIndex:o,size:a}}const M6=(e,t,n=!1)=>{const r=!!nt(),s=r?rf():void 0,o=r?tt:void 0;if(!o){bn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=T(()=>{const i=A(e);return s?.value?W6(s.value,i):i});return o(_b,a),o(B0,T(()=>a.value.locale)),o(k0,T(()=>a.value.namespace)),o(Q0,T(()=>a.value.zIndex)),o(tb,{size:T(()=>a.value.size||"")}),o(HC,T(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(n||!pi.value)&&(pi.value=a.value),a},W6=(e,t)=>{const n=[...new Set([...ip(e),...ip(t)])],r={};for(const s of n)r[s]=t[s]!==void 0?t[s]:e[s];return r},_O=$e({a11y:{type:Boolean,default:!0},locale:{type:le(Object)},size:eb,button:{type:le(Object)},card:{type:le(Object)},dialog:{type:le(Object)},link:{type:le(Object)},experimentalFeatures:{type:le(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:le(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:le(Object)},...XC}),Pt={placement:"top"};const wb=Symbol("buttonGroupContextKey"),V6=(e,t)=>{wI({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},T(()=>e.type==="text"));const n=ge(wb,void 0),r=rf("button"),{form:s}=I5(),o=mb(T(()=>n?.size)),a=bb(),i=J(),l=fm(),u=T(()=>e.type||n?.type||r.value?.type||""),c=T(()=>e.autoInsertSpace??r.value?.autoInsertSpace??!1),f=T(()=>e.plain??r.value?.plain??!1),d=T(()=>e.round??r.value?.round??!1),p=T(()=>e.text??r.value?.text??!1),h=T(()=>e.dashed??r.value?.dashed??!1),g=T(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),b=T(()=>{const v=l.default?.();if(c.value&&v?.length===1){const E=v[0];if(E?.type===Xs){const w=E.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(w.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:i,_props:g,_plain:f,_round:d,_text:p,_dashed:h,shouldAddSpace:b,handleClick:v=>{if(a.value||e.loading){v.stopPropagation();return}e.nativeType==="reset"&&s?.resetFields(),t("click",v)}}};function wt(e,t){$6(e)&&(e="100%");const n=D6(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ba(e){return Math.min(1,Math.max(0,e))}function $6(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function D6(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Eb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Oa(e){return Number(e)<=1?`${Number(e)*100}%`:e}function Kr(e){return e.length===1?"0"+e:String(e)}function G6(e,t,n){return{r:wt(e,255)*255,g:wt(t,255)*255,b:wt(n,255)*255}}function Lp(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);const r=Math.max(e,t,n),s=Math.min(e,t,n);let o=0,a=0;const i=(r+s)/2;if(r===s)a=0,o=0;else{const l=r-s;switch(a=i>.5?l/(2-r-s):l/(r+s),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:i}}function Nl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Y6(e,t,n){let r,s,o;if(e=wt(e,360),t=wt(t,100),n=wt(n,100),t===0)s=n,o=n,r=n;else{const a=n<.5?n*(1+t):n+t-n*t,i=2*n-a;r=Nl(i,a,e+1/3),s=Nl(i,a,e),o=Nl(i,a,e-1/3)}return{r:r*255,g:s*255,b:o*255}}function Mp(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);const r=Math.max(e,t,n),s=Math.min(e,t,n);let o=0;const a=r,i=r-s,l=r===0?0:i/r;if(r===s)o=0;else{switch(r){case e:o=(t-n)/i+(t<n?6:0);break;case t:o=(n-e)/i+2;break;case n:o=(e-t)/i+4;break}o/=6}return{h:o,s:l,v:a}}function U6(e,t,n){e=wt(e,360)*6,t=wt(t,100),n=wt(n,100);const r=Math.floor(e),s=e-r,o=n*(1-t),a=n*(1-s*t),i=n*(1-(1-s)*t),l=r%6,u=[n,a,o,o,i,n][l],c=[i,n,n,a,o,o][l],f=[o,o,i,n,n,a][l];return{r:u*255,g:c*255,b:f*255}}function Wp(e,t,n,r){const s=[Kr(Math.round(e).toString(16)),Kr(Math.round(t).toString(16)),Kr(Math.round(n).toString(16))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function j6(e,t,n,r,s){const o=[Kr(Math.round(e).toString(16)),Kr(Math.round(t).toString(16)),Kr(Math.round(n).toString(16)),Kr(K6(r))];return s&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Z6(e,t,n,r){const s=e/100,o=t/100,a=n/100,i=r/100,l=255*(1-s)*(1-i),u=255*(1-o)*(1-i),c=255*(1-a)*(1-i);return{r:l,g:u,b:c}}function Vp(e,t,n){let r=1-e/255,s=1-t/255,o=1-n/255,a=Math.min(r,s,o);return a===1?(r=0,s=0,o=0):(r=(r-a)/(1-a)*100,s=(s-a)/(1-a)*100,o=(o-a)/(1-a)*100),a*=100,{c:Math.round(r),m:Math.round(s),y:Math.round(o),k:Math.round(a)}}function K6(e){return Math.round(parseFloat(e)*255).toString(16)}function $p(e){return jt(e)/255}function jt(e){return parseInt(e,16)}function H6(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}const Iu={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function X6(e){let t={r:0,g:0,b:0},n=1,r=null,s=null,o=null,a=!1,i=!1;return typeof e=="string"&&(e=Q6(e)),typeof e=="object"&&(Ut(e.r)&&Ut(e.g)&&Ut(e.b)?(t=G6(e.r,e.g,e.b),a=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ut(e.h)&&Ut(e.s)&&Ut(e.v)?(r=Oa(e.s),s=Oa(e.v),t=U6(e.h,r,s),a=!0,i="hsv"):Ut(e.h)&&Ut(e.s)&&Ut(e.l)?(r=Oa(e.s),o=Oa(e.l),t=Y6(e.h,r,o),a=!0,i="hsl"):Ut(e.c)&&Ut(e.m)&&Ut(e.y)&&Ut(e.k)&&(t=Z6(e.c,e.m,e.y,e.k),a=!0,i="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Eb(n),{ok:a,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const z6="[-\\+]?\\d+%?",J6="[-\\+]?\\d*\\.\\d+%?",Ir="(?:"+J6+")|(?:"+z6+")",Il="[\\s|\\(]+("+Ir+")[,|\\s]+("+Ir+")[,|\\s]+("+Ir+")\\s*\\)?",ka="[\\s|\\(]+("+Ir+")[,|\\s]+("+Ir+")[,|\\s]+("+Ir+")[,|\\s]+("+Ir+")\\s*\\)?",Qt={CSS_UNIT:new RegExp(Ir),rgb:new RegExp("rgb"+Il),rgba:new RegExp("rgba"+ka),hsl:new RegExp("hsl"+Il),hsla:new RegExp("hsla"+ka),hsv:new RegExp("hsv"+Il),hsva:new RegExp("hsva"+ka),cmyk:new RegExp("cmyk"+ka),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Q6(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(Iu[e])e=Iu[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Qt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Qt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Qt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Qt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Qt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Qt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Qt.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=Qt.hex8.exec(e),n?{r:jt(n[1]),g:jt(n[2]),b:jt(n[3]),a:$p(n[4]),format:t?"name":"hex8"}:(n=Qt.hex6.exec(e),n?{r:jt(n[1]),g:jt(n[2]),b:jt(n[3]),format:t?"name":"hex"}:(n=Qt.hex4.exec(e),n?{r:jt(n[1]+n[1]),g:jt(n[2]+n[2]),b:jt(n[3]+n[3]),a:$p(n[4]+n[4]),format:t?"name":"hex8"}:(n=Qt.hex3.exec(e),n?{r:jt(n[1]+n[1]),g:jt(n[2]+n[2]),b:jt(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Ut(e){return typeof e=="number"?!Number.isNaN(e):Qt.CSS_UNIT.test(e)}class qe{constructor(t="",n={}){if(t instanceof qe)return t;typeof t=="number"&&(t=H6(t)),this.originalInput=t;const r=X6(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,r,s;const o=t.r/255,a=t.g/255,i=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*r+.0722*s}getAlpha(){return this.a}setAlpha(t){return this.a=Eb(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=Mp(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=Mp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${r}%, ${s}%)`:`hsva(${n}, ${r}%, ${s}%, ${this.roundA})`}toHsl(){const t=Lp(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=Lp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${r}%, ${s}%)`:`hsla(${n}, ${r}%, ${s}%, ${this.roundA})`}toHex(t=!1){return Wp(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return j6(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(wt(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(wt(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...Vp(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:r,k:s}=Vp(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${r}, ${s})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+Wp(this.r,this.g,this.b,!1);for(const[n,r]of Object.entries(Iu))if(t===r)return n;return!1}toString(t){const n=!!t;t=t??this.format;let r=!1;const s=this.a<1&&this.a>=0;return!n&&s&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),t==="cmyk"&&(r=this.toCmykString()),r||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new qe(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=Ba(n.l),new qe(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new qe(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=Ba(n.l),new qe(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=Ba(n.s),new qe(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=Ba(n.s),new qe(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new qe(n)}mix(t,n=50){const r=this.toRgb(),s=new qe(t).toRgb(),o=n/100,a={r:(s.r-r.r)*o+r.r,g:(s.g-r.g)*o+r.g,b:(s.b-r.b)*o+r.b,a:(s.a-r.a)*o+r.a};return new qe(a)}analogous(t=6,n=30){const r=this.toHsl(),s=360/n,o=[this];for(r.h=(r.h-(s*t>>1)+720)%360;--t;)r.h=(r.h+s)%360,o.push(new qe(r));return o}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new qe(t)}monochromatic(t=6){const n=this.toHsv(),{h:r}=n,{s}=n;let{v:o}=n;const a=[],i=1/t;for(;t--;)a.push(new qe({h:r,s,v:o})),o=(o+i)%1;return a}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new qe({h:(n+72)%360,s:t.s,l:t.l}),new qe({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),r=new qe(t).toRgb(),s=n.a+r.a*(1-n.a);return new qe({r:(n.r*n.a+r.r*r.a*(1-n.a))/s,g:(n.g*n.a+r.g*r.a*(1-n.a))/s,b:(n.b*n.a+r.b*r.a*(1-n.a))/s,a:s})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:r}=n,s=[this],o=360/t;for(let a=1;a<t;a++)s.push(new qe({h:(r+a*o)%360,s:n.s,l:n.l}));return s}equals(t){const n=new qe(t);return this.format==="cmyk"||n.format==="cmyk"?this.toCmykString()===n.toCmykString():this.toRgbString()===n.toRgbString()}}function Nn(e,t=20){return e.mix("#141414",t).toString()}function q6(e){const t=bb(),n=Ve("button");return T(()=>{let r={},s=e.color;if(s){const o=s.match(/var\((.*?)\)/);o&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const a=new qe(s),i=e.dark?a.tint(20).toString():Nn(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Nn(a,90):a.tint(90).toString(),"text-color":s,"border-color":e.dark?Nn(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Nn(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Nn(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Nn(a,80):a.tint(80).toString());else if(e.link||e.text){const l=e.dark?Nn(a,30):a.tint(30).toString();if(r=n.cssVarBlock({"text-color":s,"hover-text-color":l,"active-text-color":i}),e.link&&(r[n.cssVarBlockName("hover-link-text-color")]=l,r[n.cssVarBlockName("active-color")]=i),t.value){const u=e.dark?Nn(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]="transparent",r[n.cssVarBlockName("disabled-text-color")]=u,r[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const l=e.dark?Nn(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":s,"text-color":u,"border-color":s,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const c=e.dark?Nn(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}var eT=de({name:"ElButton",__name:"button",props:Nu,emits:F6,setup(e,{expose:t,emit:n}){const r=e,s=n,o=q6(r),a=Ve("button"),{_ref:i,_size:l,_type:u,_disabled:c,_props:f,_plain:d,_round:p,_text:h,_dashed:g,shouldAddSpace:b,handleClick:_}=V6(r,s),v=T(()=>[a.b(),a.m(u.value),a.m(l.value),a.is("disabled",c.value),a.is("loading",r.loading),a.is("plain",d.value),a.is("round",p.value),a.is("circle",r.circle),a.is("text",h.value),a.is("dashed",g.value),a.is("link",r.link),a.is("has-bg",r.bg)]);return t({ref:i,size:l,type:u,disabled:c,shouldAddSpace:b}),(E,w)=>(z(),Ae(zr(e.tag),$t({ref_key:"_ref",ref:i},A(f),{class:v.value,style:A(o),onClick:A(_)}),{default:ce(()=>[e.loading?(z(),_e(Ke,{key:0},[E.$slots.loading?ve(E.$slots,"loading",{key:0}):(z(),Ae(A(Pr),{key:1,class:Pe(A(a).is("loading"))},{default:ce(()=>[(z(),Ae(zr(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||E.$slots.icon?(z(),Ae(A(Pr),{key:1},{default:ce(()=>[e.icon?(z(),Ae(zr(e.icon),{key:0})):ve(E.$slots,"icon",{key:1})]),_:3})):He("v-if",!0),E.$slots.default?(z(),_e("span",{key:2,class:Pe({[A(a).em("text","expand")]:A(b)})},[ve(E.$slots,"default")],2)):He("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),tT=eT;const nT={size:Nu.size,type:Nu.type,direction:{type:le(String),values:["horizontal","vertical"],default:"horizontal"}};var rT=de({name:"ElButtonGroup",__name:"button-group",props:nT,setup(e){const t=e;tt(wb,yn({size:yt(t,"size"),type:yt(t,"type")}));const n=Ve("button");return(r,s)=>(z(),_e("div",{class:Pe([A(n).b("group"),A(n).bm("group",t.direction)])},[ve(r.$slots,"default")],2))}}),Ab=rT;const Sb=Dn(tT,{ButtonGroup:Ab}),wO=to(Ab);function sT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ua={exports:{}},oT=Ua.exports,Dp;function aT(){return Dp||(Dp=1,(function(e,t){(function(n,r){e.exports=r()})(oT,(function(){var n=1e3,r=6e4,s=36e5,o="millisecond",a="second",i="minute",l="hour",u="day",c="week",f="month",d="quarter",p="year",h="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var j=["th","st","nd","rd"],M=Z%100;return"["+Z+(j[(M-20)%10]||j[M]||j[0])+"]"}},E=function(Z,j,M){var x=String(Z);return!x||x.length>=j?Z:""+Array(j+1-x.length).join(M)+Z},w={s:E,z:function(Z){var j=-Z.utcOffset(),M=Math.abs(j),x=Math.floor(M/60),C=M%60;return(j<=0?"+":"-")+E(x,2,"0")+":"+E(C,2,"0")},m:function Z(j,M){if(j.date()<M.date())return-Z(M,j);var x=12*(M.year()-j.year())+(M.month()-j.month()),C=j.clone().add(x,f),H=M-C<0,te=j.clone().add(x+(H?-1:1),f);return+(-(x+(M-C)/(H?C-te:te-C))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:f,y:p,w:c,d:u,D:h,h:l,m:i,s:a,ms:o,Q:d}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},B="en",G={};G[B]=v;var P="$isDayjsObject",O=function(Z){return Z instanceof k||!(!Z||!Z[P])},R=function Z(j,M,x){var C;if(!j)return B;if(typeof j=="string"){var H=j.toLowerCase();G[H]&&(C=H),M&&(G[H]=M,C=H);var te=j.split("-");if(!C&&te.length>1)return Z(te[0])}else{var ae=j.name;G[ae]=j,C=ae}return!x&&C&&(B=C),C||!x&&B},F=function(Z,j){if(O(Z))return Z.clone();var M=typeof j=="object"?j:{};return M.date=Z,M.args=arguments,new k(M)},$=w;$.l=R,$.i=O,$.w=function(Z,j){return F(Z,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var k=(function(){function Z(M){this.$L=R(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[P]=!0}var j=Z.prototype;return j.parse=function(M){this.$d=(function(x){var C=x.date,H=x.utc;if(C===null)return new Date(NaN);if($.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var te=C.match(b);if(te){var ae=te[2]-1||0,se=(te[7]||"0").substring(0,3);return H?new Date(Date.UTC(te[1],ae,te[3]||1,te[4]||0,te[5]||0,te[6]||0,se)):new Date(te[1],ae,te[3]||1,te[4]||0,te[5]||0,te[6]||0,se)}}return new Date(C)})(M),this.init()},j.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},j.$utils=function(){return $},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(M,x){var C=F(M);return this.startOf(x)<=C&&C<=this.endOf(x)},j.isAfter=function(M,x){return F(M)<this.startOf(x)},j.isBefore=function(M,x){return this.endOf(x)<F(M)},j.$g=function(M,x,C){return $.u(M)?this[x]:this.set(C,M)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(M,x){var C=this,H=!!$.u(x)||x,te=$.p(M),ae=function(Q,oe){var ye=$.w(C.$u?Date.UTC(C.$y,oe,Q):new Date(C.$y,oe,Q),C);return H?ye:ye.endOf(u)},se=function(Q,oe){return $.w(C.toDate()[Q].apply(C.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(oe)),C)},Ee=this.$W,be=this.$M,Re=this.$D,Ze="set"+(this.$u?"UTC":"");switch(te){case p:return H?ae(1,0):ae(31,11);case f:return H?ae(1,be):ae(0,be+1);case c:var L=this.$locale().weekStart||0,ee=(Ee<L?Ee+7:Ee)-L;return ae(H?Re-ee:Re+(6-ee),be);case u:case h:return se(Ze+"Hours",0);case l:return se(Ze+"Minutes",1);case i:return se(Ze+"Seconds",2);case a:return se(Ze+"Milliseconds",3);default:return this.clone()}},j.endOf=function(M){return this.startOf(M,!1)},j.$set=function(M,x){var C,H=$.p(M),te="set"+(this.$u?"UTC":""),ae=(C={},C[u]=te+"Date",C[h]=te+"Date",C[f]=te+"Month",C[p]=te+"FullYear",C[l]=te+"Hours",C[i]=te+"Minutes",C[a]=te+"Seconds",C[o]=te+"Milliseconds",C)[H],se=H===u?this.$D+(x-this.$W):x;if(H===f||H===p){var Ee=this.clone().set(h,1);Ee.$d[ae](se),Ee.init(),this.$d=Ee.set(h,Math.min(this.$D,Ee.daysInMonth())).$d}else ae&&this.$d[ae](se);return this.init(),this},j.set=function(M,x){return this.clone().$set(M,x)},j.get=function(M){return this[$.p(M)]()},j.add=function(M,x){var C,H=this;M=Number(M);var te=$.p(x),ae=function(be){var Re=F(H);return $.w(Re.date(Re.date()+Math.round(be*M)),H)};if(te===f)return this.set(f,this.$M+M);if(te===p)return this.set(p,this.$y+M);if(te===u)return ae(1);if(te===c)return ae(7);var se=(C={},C[i]=r,C[l]=s,C[a]=n,C)[te]||1,Ee=this.$d.getTime()+M*se;return $.w(Ee,this)},j.subtract=function(M,x){return this.add(-1*M,x)},j.format=function(M){var x=this,C=this.$locale();if(!this.isValid())return C.invalidDate||g;var H=M||"YYYY-MM-DDTHH:mm:ssZ",te=$.z(this),ae=this.$H,se=this.$m,Ee=this.$M,be=C.weekdays,Re=C.months,Ze=C.meridiem,L=function(oe,ye,m,y){return oe&&(oe[ye]||oe(x,H))||m[ye].slice(0,y)},ee=function(oe){return $.s(ae%12||12,oe,"0")},Q=Ze||function(oe,ye,m){var y=oe<12?"AM":"PM";return m?y.toLowerCase():y};return H.replace(_,(function(oe,ye){return ye||(function(m){switch(m){case"YY":return String(x.$y).slice(-2);case"YYYY":return $.s(x.$y,4,"0");case"M":return Ee+1;case"MM":return $.s(Ee+1,2,"0");case"MMM":return L(C.monthsShort,Ee,Re,3);case"MMMM":return L(Re,Ee);case"D":return x.$D;case"DD":return $.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return L(C.weekdaysMin,x.$W,be,2);case"ddd":return L(C.weekdaysShort,x.$W,be,3);case"dddd":return be[x.$W];case"H":return String(ae);case"HH":return $.s(ae,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return Q(ae,se,!0);case"A":return Q(ae,se,!1);case"m":return String(se);case"mm":return $.s(se,2,"0");case"s":return String(x.$s);case"ss":return $.s(x.$s,2,"0");case"SSS":return $.s(x.$ms,3,"0");case"Z":return te}return null})(oe)||te.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(M,x,C){var H,te=this,ae=$.p(x),se=F(M),Ee=(se.utcOffset()-this.utcOffset())*r,be=this-se,Re=function(){return $.m(te,se)};switch(ae){case p:H=Re()/12;break;case f:H=Re();break;case d:H=Re()/3;break;case c:H=(be-Ee)/6048e5;break;case u:H=(be-Ee)/864e5;break;case l:H=be/s;break;case i:H=be/r;break;case a:H=be/n;break;default:H=be}return C?H:$.a(H)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return G[this.$L]},j.locale=function(M,x){if(!M)return this.$L;var C=this.clone(),H=R(M,x,!0);return H&&(C.$L=H),C},j.clone=function(){return $.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},Z})(),U=k.prototype;return F.prototype=U,[["$ms",o],["$s",a],["$m",i],["$H",l],["$W",u],["$M",f],["$y",p],["$D",h]].forEach((function(Z){U[Z[1]]=function(j){return this.$g(j,Z[0],Z[1])}})),F.extend=function(Z,j){return Z.$i||(Z(j,k,F),Z.$i=!0),F},F.locale=R,F.isDayjs=O,F.unix=function(Z){return F(1e3*Z)},F.en=G[B],F.Ls=G,F.p={},F}))})(Ua)),Ua.exports}var EO=aT();const Er=new Map;if(ut){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Er.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function Gp(e,t){let n=[];return ie(t.arg)?n=t.arg:Nr(t.arg)&&n.push(t.arg),function(r,s){const o=t.instance.popperRef,a=r.target,i=s?.target,l=!t||!t.instance,u=!a||!i,c=e.contains(a)||e.contains(i),f=e===a,d=n.length&&n.some(h=>h?.contains(a))||n.length&&n.includes(i),p=o&&(o.contains(a)||o.contains(i));l||u||c||f||d||p||t.value(r,s)}}const iT={beforeMount(e,t){Er.has(e)||Er.set(e,[]),Er.get(e).push({documentHandler:Gp(e,t),bindingFn:t.value})},updated(e,t){Er.has(e)||Er.set(e,[]);const n=Er.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:Gp(e,t),bindingFn:t.value};r>=0?n.splice(r,1,s):n.push(s)},unmounted(e){Er.delete(e)}};var lT=de({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=Ve("collapse-transition"),n=s=>{s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom},r={beforeEnter(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.style.height&&(s.dataset.elExistsHeight=s.style.height),s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0},enter(s){requestAnimationFrame(()=>{s.dataset.oldOverflow=s.style.overflow,s.dataset.elExistsHeight?s.style.maxHeight=s.dataset.elExistsHeight:s.scrollHeight!==0?s.style.maxHeight=`${s.scrollHeight}px`:s.style.maxHeight=0,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom,s.style.overflow="hidden"})},afterEnter(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow},enterCancelled(s){n(s)},beforeLeave(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.dataset.oldOverflow=s.style.overflow,s.style.maxHeight=`${s.scrollHeight}px`,s.style.overflow="hidden"},leave(s){s.scrollHeight!==0&&(s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0)},afterLeave(s){n(s)},leaveCancelled(s){n(s)}};return(s,o)=>(z(),Ae(zs,$t({name:A(t).b()},fw(r)),{default:ce(()=>[ve(s.$slots,"default")]),_:3},16,["name"]))}}),uT=lT;const cT=Dn(uT),xb=(...e)=>t=>{e.forEach(n=>{n.value=t})},ja=$e({trigger:{...Rr.trigger,type:le([String,Array])},triggerKeys:{type:le(Array),default:()=>[Le.enter,Le.numpadEnter,Le.space,Le.down]},virtualTriggering:Rr.virtualTriggering,virtualRef:Rr.virtualRef,effect:{...St.effect,default:"light"},type:{type:le(String)},placement:{type:le(String),default:"bottom"},popperOptions:{type:le(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:le([Number,String]),default:0},maxHeight:{type:le([Number,String]),default:""},popperClass:St.popperClass,popperStyle:St.popperStyle,disabled:Boolean,role:{type:String,values:lb,default:"menu"},buttonProps:{type:le(Object)},teleported:St.teleported,appendTo:St.appendTo,persistent:{type:Boolean,default:!0}}),Nb=$e({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:tr}}),fT=$e({onKeydown:{type:le(Function)}}),Hi=Symbol("elDropdown"),Ib="elDropdown";var dT=de({inheritAttrs:!1});function pT(e,t,n,r,s,o){return ve(e.$slots,"default")}var hT=Gn(dT,[["render",pT]]),gT=de({name:"ElCollectionItem",inheritAttrs:!1});function mT(e,t,n,r,s,o){return ve(e.$slots,"default")}var bT=Gn(gT,[["render",mT]]);const Cb="data-el-collection-item",vT=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),s=Symbol(n);return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:Object.assign({},hT,{name:t,setup(){const o=J(),a=new Map;tt(r,{itemMap:a,getItems:(()=>{const l=A(o);if(!l)return[];const u=Array.from(l.querySelectorAll(`[${Cb}]`));return[...a.values()].sort((c,f)=>u.indexOf(c.ref)-u.indexOf(f.ref))}),collectionRef:o})}}),ElCollectionItem:Object.assign({},bT,{name:n,setup(o,{attrs:a}){const i=J(),l=ge(r,void 0);tt(s,{collectionItemRef:i}),st(()=>{const u=A(i);u&&l.itemMap.set(u,{ref:u,...a})}),mt(()=>{const u=A(i);l.itemMap.delete(u)})}})}},yT=$e({style:{type:le([String,Array,Object,Boolean]),default:void 0},currentTabId:{type:le(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:le(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:_T,ElCollectionItem:wT,COLLECTION_INJECTION_KEY:Tb,COLLECTION_ITEM_INJECTION_KEY:ET}=vT("RovingFocusGroup"),sf=Symbol("elRovingFocusGroup"),Rb=Symbol("elRovingFocusGroupItem"),AT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},ST=(e,t)=>e,xT=(e,t,n)=>{const r=ST($n(e));return AT[r]},NT=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),Yp=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Up="currentTabIdChange",jp="rovingFocusGroup.entryFocus",IT={bubbles:!1,cancelable:!0};var CT=de({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:yT,emits:[Up,"entryFocus"],setup(e,{emit:t}){const n=J((e.currentTabId||e.defaultCurrentTabId)??null),r=J(!1),s=J(!1),o=J(),{getItems:a}=ge(Tb,void 0),i=T(()=>[{outline:"none"},e.style]),l=g=>{t(Up,g)},u=()=>{r.value=!0},c=lt(g=>{e.onMousedown?.(g)},()=>{s.value=!0}),f=lt(g=>{e.onFocus?.(g)},g=>{const b=!A(s),{target:_,currentTarget:v}=g;if(_===v&&b&&!A(r)){const E=new Event(jp,IT);if(v?.dispatchEvent(E),!E.defaultPrevented){const w=a().filter(B=>B.focusable);Yp([w.find(B=>B.active),w.find(B=>B.id===A(n)),...w].filter(Boolean).map(B=>B.ref))}}s.value=!1}),d=lt(g=>{e.onBlur?.(g)},()=>{r.value=!1}),p=(...g)=>{t("entryFocus",...g)},h=g=>{const b=xT(g);if(b){g.preventDefault();let _=a().filter(v=>v.focusable).map(v=>v.ref);switch(b){case"last":_.reverse();break;case"prev":case"next":{b==="prev"&&_.reverse();const v=_.indexOf(g.currentTarget);_=e.loop?NT(_,v+1):_.slice(v+1);break}}rn(()=>{Yp(_)})}};tt(sf,{currentTabbedId:Ts(n),loop:yt(e,"loop"),tabIndex:T(()=>A(r)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:i,orientation:yt(e,"orientation"),dir:yt(e,"dir"),onItemFocus:l,onItemShiftTab:u,onBlur:d,onFocus:f,onMousedown:c,onKeydown:h}),xe(()=>e.currentTabId,g=>{n.value=g??null}),Tr(o,jp,p)}});function TT(e,t,n,r,s,o){return ve(e.$slots,"default")}var RT=Gn(CT,[["render",TT]]),PT=de({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:_T,ElRovingFocusGroupImpl:RT}});function BT(e,t,n,r,s,o){const a=Lt("el-roving-focus-group-impl"),i=Lt("el-focus-group-collection");return z(),Ae(i,null,{default:ce(()=>[we(a,f_(Rm(e.$attrs)),{default:ce(()=>[ve(e.$slots,"default")]),_:3},16)]),_:3})}var OT=Gn(PT,[["render",BT]]),kT=de({components:{ElRovingFocusCollectionItem:wT},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:r,onItemShiftTab:s,onKeydown:o}=ge(sf,void 0),a=Zi(),i=J(),l=lt(d=>{t("mousedown",d)},d=>{e.focusable?r(A(a)):d.preventDefault()}),u=lt(d=>{t("focus",d)},()=>{r(A(a))}),c=lt(d=>{t("keydown",d)},d=>{const{shiftKey:p,target:h,currentTarget:g}=d;if($n(d)===Le.tab&&p){s();return}h===g&&o(d)}),f=T(()=>n.value===A(a));return tt(Rb,{rovingFocusGroupItemRef:i,tabIndex:T(()=>A(f)?0:-1),handleMousedown:l,handleFocus:u,handleKeydown:c}),{id:a,handleKeydown:c,handleFocus:u,handleMousedown:l}}});function FT(e,t,n,r,s,o){const a=Lt("el-roving-focus-collection-item");return z(),Ae(a,{id:e.id,focusable:e.focusable,active:e.active},{default:ce(()=>[ve(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var LT=Gn(kT,[["render",FT]]),MT=OT;const{ButtonGroup:WT}=Sb;var VT=de({name:"ElDropdown",components:{ElButton:Sb,ElButtonGroup:WT,ElScrollbar:C6,ElTooltip:ma,ElRovingFocusGroup:MT,ElOnlyChild:db,ElIcon:Pr,ArrowDown:rb},props:ja,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=nt(),r=Ve("dropdown"),{t:s}=O0(),o=J(),a=J(),i=J(),l=J(),u=J(null),c=J(null),f=J(!1),d=T(()=>({maxHeight:ns(e.maxHeight)})),p=T(()=>[r.m(w.value)]),h=T(()=>MN(e.trigger)),g=Zi().value,b=T(()=>e.id||g);function _(){i.value?.onClose(void 0,0)}function v(){i.value?.onClose()}function E(){i.value?.onOpen()}const w=mb();function B(...U){t("command",...U)}function G(){}function P(){const U=A(l);h.value.includes("hover")&&U?.focus({preventScroll:!0}),c.value=null}function O(U){c.value=U}function R(){t("visible-change",!0)}function F(U){f.value=U?.type==="keydown",l.value?.focus()}function $(){t("visible-change",!1)}return tt(Hi,{contentRef:l,role:T(()=>e.role),triggerId:b,isUsingKeyboard:f,onItemEnter:G,onItemLeave:P,handleClose:v}),tt(Ib,{instance:n,dropdownSize:w,handleClick:_,commandHandler:B,trigger:yt(e,"trigger"),hideOnClick:yt(e,"hideOnClick")}),{t:s,ns:r,scrollbar:u,wrapStyle:d,dropdownTriggerKls:p,dropdownSize:w,triggerId:b,currentTabId:c,handleCurrentTabIdChange:O,handlerMainButtonClick:U=>{t("click",U)},handleClose:v,handleOpen:E,handleBeforeShowTooltip:R,handleShowTooltip:F,handleBeforeHideTooltip:$,popperRef:i,contentRef:l,triggeringElementRef:o,referenceElementRef:a}}});function $T(e,t,n,r,s,o){const a=Lt("el-roving-focus-group"),i=Lt("el-scrollbar"),l=Lt("el-only-child"),u=Lt("el-tooltip"),c=Lt("el-button"),f=Lt("arrow-down"),d=Lt("el-icon"),p=Lt("el-button-group");return z(),_e("div",{class:Pe([e.ns.b(),e.ns.is("disabled",e.disabled)])},[we(u,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},um({content:ce(()=>[we(i,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ce(()=>[we(a,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ce(()=>[ve(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ce(()=>[we(l,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ce(()=>[ve(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(z(),Ae(p,{key:0},{default:ce(()=>[we(c,$t({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ce(()=>[ve(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),we(c,$t({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ce(()=>[we(d,{class:Pe(e.ns.e("icon"))},{default:ce(()=>[we(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):He("v-if",!0)],2)}var DT=Gn(VT,[["render",$T]]),GT=de({name:"DropdownItemImpl",components:{ElIcon:Pr},props:Nb,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ve("dropdown"),{role:r}=ge(Hi,void 0),{collectionItemRef:s}=ge(ET,void 0),{rovingFocusGroupItemRef:o,tabIndex:a,handleFocus:i,handleKeydown:l,handleMousedown:u}=ge(Rb,void 0),c=xb(s,o),f=T(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),d=lt(p=>{const h=$n(p);if([Le.enter,Le.numpadEnter,Le.space].includes(h))return p.preventDefault(),p.stopImmediatePropagation(),t("clickimpl",p),!0},l);return{ns:n,itemRef:c,dataset:{[Cb]:""},role:f,tabIndex:a,handleFocus:i,handleKeydown:d,handleMousedown:u}}});const YT=["aria-disabled","tabindex","role"];function UT(e,t,n,r,s,o){const a=Lt("el-icon");return z(),_e(Ke,null,[e.divided?(z(),_e("li",{key:0,role:"separator",class:Pe(e.ns.bem("menu","item","divided"))},null,2)):He("v-if",!0),fe("li",$t({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=Zo((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon||e.$slots.icon?(z(),Ae(a,{key:0},{default:ce(()=>[ve(e.$slots,"icon",{},()=>[(z(),Ae(zr(e.icon)))])]),_:3})):He("v-if",!0),ve(e.$slots,"default")],16,YT)],64)}var jT=Gn(GT,[["render",UT]]);const Pb=()=>{const e=ge(Ib,{});return{elDropdown:e,_elDropdownSize:T(()=>e?.dropdownSize)}};var ZT=de({name:"ElDropdownItem",components:{ElRovingFocusItem:LT,ElDropdownItemImpl:jT},inheritAttrs:!1,props:Nb,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=Pb(),s=nt(),{onItemEnter:o,onItemLeave:a}=ge(Hi,void 0),i=lt(u=>(t("pointermove",u),u.defaultPrevented),cp(u=>{if(e.disabled){a(u);return}const c=u.currentTarget;c===document.activeElement||c.contains(document.activeElement)||(o(u),u.defaultPrevented||c?.focus({preventScroll:!0}))})),l=lt(u=>(t("pointerleave",u),u.defaultPrevented),cp(a));return{handleClick:lt(u=>{if(!e.disabled)return t("click",u),u.type!=="keydown"&&u.defaultPrevented},u=>{if(e.disabled){u.stopImmediatePropagation();return}r?.hideOnClick?.value&&r.handleClick?.(),r.commandHandler?.(e.command,s,u)}),handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:T(()=>({...e,...n}))}}});function KT(e,t,n,r,s,o){const a=Lt("el-dropdown-item-impl"),i=Lt("el-roving-focus-item");return z(),Ae(i,{focusable:!e.disabled},{default:ce(()=>[we(a,$t(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),um({default:ce(()=>[ve(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ce(()=>[ve(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var Bb=Gn(ZT,[["render",KT]]),HT=de({name:"ElDropdownMenu",props:fT,setup(e){const t=Ve("dropdown"),{_elDropdownSize:n}=Pb(),r=n.value,{contentRef:s,role:o,triggerId:a,isUsingKeyboard:i,handleClose:l}=ge(Hi,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:c,onBlur:f,onFocus:d,onKeydown:p,onMousedown:h}=ge(sf,void 0),{collectionRef:g}=ge(Tb,void 0),b=T(()=>[t.b("menu"),t.bm("menu",r?.value)]),_=xb(s,u,g),v=lt(w=>{e.onKeydown?.(w)},w=>{const{currentTarget:B,target:G}=w,P=$n(w);if(B.contains(G),Le.tab===P)return l();p(w)});function E(w){i.value&&d(w)}return{size:r,rovingFocusGroupRootStyle:c,dropdownKls:b,role:o,triggerId:a,dropdownListWrapperRef:_,handleKeydown:v,onBlur:f,handleFocus:E,onMousedown:h}}});const XT=["role","aria-labelledby"];function zT(e,t,n,r,s,o){return z(),_e("ul",{ref:e.dropdownListWrapperRef,class:Pe(e.dropdownKls),style:gn(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...a)=>e.handleFocus&&e.handleFocus(...a)),onFocusout:t[1]||(t[1]=(...a)=>e.onBlur&&e.onBlur(...a)),onKeydown:t[2]||(t[2]=Zo((...a)=>e.handleKeydown&&e.handleKeydown(...a),["self"])),onMousedown:t[3]||(t[3]=Zo((...a)=>e.onMousedown&&e.onMousedown(...a),["self"]))},[ve(e.$slots,"default")],46,XT)}var Ob=Gn(HT,[["render",zT]]);const JT=Dn(DT,{DropdownItem:Bb,DropdownMenu:Ob}),QT=to(Bb),qT=to(Ob),of="rootMenu",hi="subMenu:";function kb(e,t){const n=T(()=>{let r=e.parent;const s=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&s.unshift(r.props.index),r=r.parent;return s});return{parentMenu:T(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:n}}function eR(e){return T(()=>{const t=e.backgroundColor;return t?new qe(t).shade(20).toString():""})}const Fb=(e,t)=>{const n=Ve("menu");return T(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":eR(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},tR=$e({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:le([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:tr},expandOpenIcon:{type:tr},collapseCloseIcon:{type:tr},collapseOpenIcon:{type:tr}}),Cl="ElSubMenu";var af=de({name:Cl,props:tR,setup(e,{slots:t,expose:n}){const r=nt(),{indexPath:s,parentMenu:o}=kb(r,T(()=>e.index)),a=Ve("menu"),i=Ve("sub-menu"),l=ge(of);l||Qo(Cl,"can not inject root menu");const u=ge(`${hi}${o.value.uid}`);u||Qo(Cl,"can not inject sub menu");const c=J({}),f=J({});let d;const p=J(!1),h=J(),g=J(),b=T(()=>u.level===0),_=T(()=>O.value==="horizontal"&&b.value?"bottom-start":"right-start"),v=T(()=>O.value==="horizontal"&&b.value||O.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?G.value?e.expandOpenIcon:e.expandCloseIcon:rb:e.collapseCloseIcon&&e.collapseOpenIcon?G.value?e.collapseOpenIcon:e.collapseCloseIcon:t5),E=T(()=>{const se=e.teleported;return C0(se)?b.value:se}),w=T(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),B=T(()=>O.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),G=T(()=>l.openedMenus.includes(e.index)),P=T(()=>[...Object.values(c.value),...Object.values(f.value)].some(({active:se})=>se)),O=T(()=>l.props.mode),R=T(()=>l.props.persistent),F=yn({index:e.index,indexPath:s,active:P}),$=Fb(l.props,u.level+1),k=T(()=>e.popperOffset??l.props.popperOffset),U=T(()=>e.popperClass??l.props.popperClass),Z=T(()=>e.popperStyle??l.props.popperStyle),j=T(()=>e.showTimeout??l.props.showTimeout),M=T(()=>e.hideTimeout??l.props.hideTimeout),x=()=>g.value?.popperRef?.popperInstanceRef?.destroy(),C=se=>{se||x()},H=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:s.value,active:P.value})},te=(se,Ee=j.value)=>{if(se.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,d?.(),{stop:d}=yu(()=>{l.openMenu(e.index,s.value)},Ee),E.value&&o.value.vnode.el?.dispatchEvent(new MouseEvent("mouseenter")),se.type==="mouseenter"&&se.target&&rn(()=>{Ui(se.target,{preventScroll:!0})})}},ae=(se=!1)=>{if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}d?.(),u.mouseInChild.value=!1,{stop:d}=yu(()=>!p.value&&l.closeMenu(e.index,s.value),M.value),E.value&&se&&u.handleMouseleave?.(!0)};xe(()=>l.props.collapse,se=>C(!!se));{const se=be=>{f.value[be.index]=be},Ee=be=>{delete f.value[be.index]};tt(`${hi}${r.uid}`,{addSubMenu:se,removeSubMenu:Ee,handleMouseleave:ae,mouseInChild:p,level:u.level+1})}return n({opened:G}),st(()=>{l.addSubMenu(F),u.addSubMenu(F)}),mt(()=>{u.removeSubMenu(F),l.removeSubMenu(F)}),()=>{const se=[t.title?.(),it(Pr,{class:i.e("icon-arrow"),style:{transform:G.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Se(v.value)?it(r.appContext.components[v.value]):it(v.value)})],Ee=l.isMenuPopup?it(ma,{ref:g,visible:G.value,effect:"light",pure:!0,offset:k.value,showArrow:!1,persistent:R.value,popperClass:U.value,popperStyle:Z.value,placement:_.value,teleported:E.value,fallbackPlacements:B.value,transition:w.value,gpuAcceleration:!1},{content:()=>it("div",{class:[a.m(O.value),a.m("popup-container"),U.value],onMouseenter:be=>te(be,100),onMouseleave:()=>ae(!0),onFocus:be=>te(be,100)},[it("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${_.value}`)],style:$.value},[t.default?.()])]),default:()=>it("div",{class:i.e("title"),onClick:H},se)}):it(Ke,{},[it("div",{class:i.e("title"),ref:h,onClick:H},se),it(cT,{},{default:()=>Hs(it("ul",{role:"menu",class:[a.b(),a.m("inline")],style:$.value},[t.default?.()]),[[ki,G.value]])})]);return it("li",{class:[i.b(),i.is("active",P.value),i.is("opened",G.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:G.value,onMouseenter:te,onMouseleave:()=>ae(),onFocus:te},[Ee])}}}),nR=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;this.subMenuItems.forEach(t=>{t.addEventListener("keydown",n=>{const r=$n(n);let s=!1;switch(r){case Le.down:this.gotoSubIndex(this.subIndex+1),s=!0;break;case Le.up:this.gotoSubIndex(this.subIndex-1),s=!0;break;case Le.tab:Ga(e,"mouseleave");break;case Le.enter:case Le.numpadEnter:case Le.space:s=!0,n.currentTarget.click();break}return s&&(n.preventDefault(),n.stopPropagation()),!1})})}},rR=class{constructor(e,t){this.domNode=e,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new nR(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=$n(e);let n=!1;switch(t){case Le.down:Ga(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(0),n=!0;break;case Le.up:Ga(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case Le.tab:Ga(e.currentTarget,"mouseleave");break;case Le.enter:case Le.numpadEnter:case Le.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},sR=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new rR(n,e)})}},oR=de({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=Ve("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,s){Ia(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",s()},onAfterEnter(r){wl(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),xI(r,t.m("collapse"))?(wl(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ia(r,t.m("collapse"))):(Ia(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),wl(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Ia(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,s)=>(z(),Ae(zs,$t({mode:"out-in"},n),{default:ce(()=>[ve(r.$slots,"default")]),_:3},16))}}),aR=oR;const iR=$e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:le(Array),default:()=>yb([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:tr,default:()=>p5},popperEffect:{type:le(String),default:"dark"},popperClass:String,popperStyle:{type:le([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Tl=e=>ie(e)&&e.every(t=>Se(t)),lR={close:(e,t)=>Se(e)&&Tl(t),open:(e,t)=>Se(e)&&Tl(t),select:(e,t,n,r)=>Se(e)&&Tl(t)&&Ie(n)&&(C0(r)||r instanceof Promise)},Zp=64;var uR=de({name:"ElMenu",props:iR,emits:lR,setup(e,{emit:t,slots:n,expose:r}){const s=nt(),o=s.appContext.config.globalProperties.$router,a=J(),i=J(),l=Ve("menu"),u=Ve("sub-menu");let c=Zp;const f=J(-1),d=J(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=J(e.defaultActive),h=J({}),g=J({}),b=T(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),_=()=>{const x=p.value&&h.value[p.value];!x||e.mode==="horizontal"||e.collapse||x.indexPath.forEach(C=>{const H=g.value[C];H&&v(C,H.indexPath)})},v=(x,C)=>{d.value.includes(x)||(e.uniqueOpened&&(d.value=d.value.filter(H=>C.includes(H))),d.value.push(x),t("open",x,C))},E=x=>{const C=d.value.indexOf(x);C!==-1&&d.value.splice(C,1)},w=(x,C)=>{E(x),t("close",x,C)},B=({index:x,indexPath:C})=>{d.value.includes(x)?w(x,C):v(x,C)},G=x=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:C,indexPath:H}=x;if(!(Ls(C)||Ls(H)))if(e.router&&o){const te=x.route||C,ae=o.push(te).then(se=>(se||(p.value=C),se));t("select",C,H,{index:C,indexPath:H,route:te},ae)}else p.value=C,t("select",C,H,{index:C,indexPath:H})},P=x=>{const C=h.value;p.value=(C[x]||p.value&&C[p.value]||C[e.defaultActive])?.index??x},O=x=>{const C=getComputedStyle(x),H=Number.parseInt(C.marginLeft,10),te=Number.parseInt(C.marginRight,10);return x.offsetWidth+H+te||0},R=()=>{if(!a.value)return-1;const x=Array.from(a.value.childNodes).filter(be=>be.nodeName!=="#comment"&&(be.nodeName!=="#text"||be.nodeValue)),C=getComputedStyle(a.value),H=Number.parseInt(C.paddingLeft,10),te=Number.parseInt(C.paddingRight,10),ae=a.value.clientWidth-H-te;let se=0,Ee=0;return x.forEach((be,Re)=>{se+=O(be),se<=ae-c&&(Ee=Re+1)}),Ee===x.length?-1:Ee},F=x=>g.value[x].indexPath,$=(x,C=33.34)=>{let H;return()=>{H&&clearTimeout(H),H=setTimeout(()=>{x()},C)}};let k=!0;const U=()=>{const x=Pn(i);if(x&&(c=O(x)||Zp),f.value===R())return;const C=()=>{f.value=-1,rn(()=>{f.value=R()})};k?C():$(C)(),k=!1};xe(()=>e.defaultActive,x=>{h.value[x]||(p.value=""),P(x)}),xe(()=>e.collapse,x=>{x&&(d.value=[])}),xe(h.value,_);let Z;jg(()=>{e.mode==="horizontal"&&e.ellipsis?Z=qo(a,U).stop:Z?.()});const j=J(!1);{const x=ae=>{g.value[ae.index]=ae},C=ae=>{delete g.value[ae.index]};tt(of,yn({props:e,openedMenus:d,items:h,subMenus:g,activeIndex:p,isMenuPopup:b,addMenuItem:ae=>{h.value[ae.index]=ae},removeMenuItem:ae=>{delete h.value[ae.index]},addSubMenu:x,removeSubMenu:C,openMenu:v,closeMenu:w,handleMenuItemClick:G,handleSubMenuClick:B})),tt(`${hi}${s.uid}`,{addSubMenu:x,removeSubMenu:C,mouseInChild:j,level:0})}st(()=>{e.mode==="horizontal"&&new sR(s.vnode.el,l.namespace.value)}),r({open:C=>{const{indexPath:H}=g.value[C];H.forEach(te=>v(te,H))},close:E,updateActiveIndex:P,handleResize:U});const M=Fb(e,0);return()=>{let x=n.default?.()??[];const C=[];if(e.mode==="horizontal"&&a.value){const ae=Eo(x).filter(be=>be?.shapeFlag!==8),se=f.value===-1?ae:ae.slice(0,f.value),Ee=f.value===-1?[]:ae.slice(f.value);Ee?.length&&e.ellipsis&&(x=se,C.push(it(af,{ref:i,index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>it(Pr,{class:u.e("icon-more")},{default:()=>it(e.ellipsisIcon)}),default:()=>Ee})))}const H=e.closeOnClickOutside?[[iT,()=>{d.value.length&&(j.value||(d.value.forEach(ae=>t("close",ae,F(ae))),d.value=[]))}]]:[],te=Hs(it("ul",{key:String(e.collapse),role:"menubar",ref:a,style:M.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...x,...C]),H);return e.collapseTransition&&e.mode==="vertical"?it(aR,()=>te):te}}});const cR=$e({index:{type:String,required:!0},route:{type:le([String,Object])},disabled:Boolean}),fR={click:e=>Se(e.index)&&ie(e.indexPath)},dR={title:String},Rl="ElMenuItem";var pR=de({name:Rl,__name:"menu-item",props:cR,emits:fR,setup(e,{expose:t,emit:n}){const r=e,s=n,o=nt(),a=ge(of),i=Ve("menu"),l=Ve("menu-item");a||Qo(Rl,"can not inject root menu");const{parentMenu:u,indexPath:c}=kb(o,yt(r,"index")),f=ge(`${hi}${u.value.uid}`);f||Qo(Rl,"can not inject sub menu");const d=T(()=>r.index===a.activeIndex),p=yn({index:r.index,indexPath:c,active:d}),h=()=>{r.disabled||(a.handleMenuItemClick({index:r.index,indexPath:c.value,route:r.route}),s("click",p))};return st(()=>{f.addSubMenu(p),a.addMenuItem(p)}),mt(()=>{f.removeSubMenu(p),a.removeMenuItem(p)}),t({parentMenu:u,rootMenu:a,active:d,nsMenu:i,nsMenuItem:l,handleClick:h}),(g,b)=>(z(),_e("li",{class:Pe([A(l).b(),A(l).is("active",d.value),A(l).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[A(u).type.name==="ElMenu"&&A(a).props.collapse&&g.$slots.title?(z(),Ae(A(ma),{key:0,effect:A(a).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":A(a).props.popperClass,"popper-style":A(a).props.popperStyle,persistent:A(a).props.persistent,"focus-on-target":""},{content:ce(()=>[ve(g.$slots,"title")]),default:ce(()=>[fe("div",{class:Pe(A(i).be("tooltip","trigger"))},[ve(g.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(z(),_e(Ke,{key:1},[ve(g.$slots,"default"),ve(g.$slots,"title")],64))],2))}}),Lb=pR,hR=de({name:"ElMenuItemGroup",__name:"menu-item-group",props:dR,setup(e){const t=Ve("menu-item-group");return(n,r)=>(z(),_e("li",{class:Pe(A(t).b())},[fe("div",{class:Pe(A(t).e("title"))},[n.$slots.title?ve(n.$slots,"title",{key:1}):(z(),_e(Ke,{key:0},[Ln(Mt(e.title),1)],64))],2),fe("ul",null,[ve(n.$slots,"default")])],2))}}),Mb=hR;const gR=Dn(uR,{MenuItem:Lb,MenuItemGroup:Mb,SubMenu:af}),Wb=to(Lb);to(Mb);const mR=to(af),Vb=["primary","success","info","warning","error"],$b=["top","top-left","top-right","bottom","bottom-left","bottom-right"],At=yb({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:ut?document.body:void 0}),bR=$e({customClass:{type:String,default:At.customClass},dangerouslyUseHTMLString:{type:Boolean,default:At.dangerouslyUseHTMLString},duration:{type:Number,default:At.duration},icon:{type:tr,default:At.icon},id:{type:String,default:At.id},message:{type:le([String,Object,Function]),default:At.message},onClose:{type:le(Function),default:At.onClose},showClose:{type:Boolean,default:At.showClose},type:{type:String,values:Vb,default:At.type},plain:{type:Boolean,default:At.plain},offset:{type:Number,default:At.offset},placement:{type:String,values:$b,default:At.placement},zIndex:{type:Number,default:At.zIndex},grouping:{type:Boolean,default:At.grouping},repeatNum:{type:Number,default:At.repeatNum}}),vR={destroy:()=>!0},hn=Ni({}),yR=e=>(hn[e]||(hn[e]=Ni([])),hn[e]),_R=(e,t)=>{const n=hn[t]||[],r=n.findIndex(a=>a.id===e),s=n[r];let o;return r>0&&(o=n[r-1]),{current:s,prev:o}},wR=(e,t)=>{const{prev:n}=_R(e,t);return n?n.vm.exposed.bottom.value:0},ER=(e,t,n)=>(hn[n]||[]).findIndex(r=>r.id===e)>0?16:t,AR=["id"],SR=["innerHTML"];var xR=de({name:"ElMessage",__name:"message",props:bR,emits:vR,setup(e,{expose:t,emit:n}){const{Close:r}=b5,s=e,o=n,a=J(!1),{ns:i,zIndex:l}=L6("message"),{currentZIndex:u,nextZIndex:c}=l,f=J(),d=J(!1),p=J(0);let h;const g=T(()=>s.type?s.type==="error"?"danger":s.type:"info"),b=T(()=>{const U=s.type;return{[i.bm("icon",U)]:U&&xp[U]}}),_=T(()=>s.icon||xp[s.type]||""),v=T(()=>s.placement||"top"),E=T(()=>wR(s.id,v.value)),w=T(()=>Math.max(ER(s.id,s.offset,v.value)+E.value,s.offset)),B=T(()=>p.value+w.value),G=T(()=>v.value.includes("left")?i.is("left"):v.value.includes("right")?i.is("right"):i.is("center")),P=T(()=>v.value.startsWith("top")?"top":"bottom"),O=T(()=>({[P.value]:`${w.value}px`,zIndex:u.value}));function R(){s.duration!==0&&({stop:h}=yu(()=>{$()},s.duration))}function F(){h?.()}function $(){d.value=!1,rn(()=>{a.value||(s.onClose?.(),o("destroy"))})}function k(U){$n(U)===Le.esc&&$()}return st(()=>{R(),c(),d.value=!0}),xe(()=>s.repeatNum,()=>{F(),R()}),Tr(document,"keydown",k),qo(f,()=>{p.value=f.value.getBoundingClientRect().height}),t({visible:d,bottom:B,close:$}),(U,Z)=>(z(),Ae(zs,{name:A(i).b("fade"),onBeforeEnter:Z[0]||(Z[0]=j=>a.value=!0),onBeforeLeave:e.onClose,onAfterLeave:Z[1]||(Z[1]=j=>U.$emit("destroy")),persisted:""},{default:ce(()=>[Hs(fe("div",{id:e.id,ref_key:"messageRef",ref:f,class:Pe([A(i).b(),{[A(i).m(e.type)]:e.type},A(i).is("closable",e.showClose),A(i).is("plain",e.plain),A(i).is("bottom",P.value==="bottom"),G.value,e.customClass]),style:gn(O.value),role:"alert",onMouseenter:F,onMouseleave:R},[e.repeatNum>1?(z(),Ae(A(B6),{key:0,value:e.repeatNum,type:g.value,class:Pe(A(i).e("badge"))},null,8,["value","type","class"])):He("v-if",!0),_.value?(z(),Ae(A(Pr),{key:1,class:Pe([A(i).e("icon"),b.value])},{default:ce(()=>[(z(),Ae(zr(_.value)))]),_:1},8,["class"])):He("v-if",!0),!e.dangerouslyUseHTMLString||U.$slots.default?(z(),_e("p",{key:2,class:Pe(A(i).e("content"))},[ve(U.$slots,"default",{},()=>[Ln(Mt(e.message),1)])],2)):(z(),_e(Ke,{key:3},[He(" Caution here, message could've been compromised, never use user's input as message "),fe("p",{class:Pe(A(i).e("content")),innerHTML:e.message},null,10,SR)],2112)),e.showClose?(z(),Ae(A(Pr),{key:4,class:Pe(A(i).e("closeBtn")),onClick:Zo($,["stop"])},{default:ce(()=>[we(A(r))]),_:1},8,["class"])):He("v-if",!0)],46,AR),[[ki,d.value]])]),_:3},8,["name","onBeforeLeave"]))}}),NR=xR;let IR=1;const CR=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Se(e.appendTo)){let t=document.querySelector(e.appendTo);Nr(t)||(bn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},TR=e=>{!e.placement&&Se(Pt.placement)&&Pt.placement&&(e.placement=Pt.placement),e.placement||(e.placement="top"),$b.includes(e.placement)||(bn("ElMessage",`Invalid placement: ${e.placement}. Falling back to 'top'.`),e.placement="top")},Db=e=>{const t=!e||Se(e)||pn(e)||pe(e)?{message:e}:e,n={...At,...t};return CR(n),TR(n),Qr(Pt.grouping)&&!n.grouping&&(n.grouping=Pt.grouping),kt(Pt.duration)&&n.duration===3e3&&(n.duration=Pt.duration),kt(Pt.offset)&&n.offset===16&&(n.offset=Pt.offset),Qr(Pt.showClose)&&!n.showClose&&(n.showClose=Pt.showClose),Qr(Pt.plain)&&!n.plain&&(n.plain=Pt.plain),n},RR=e=>{const t=hn[e.props.placement||"top"],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:r}=e;r.close()},PR=({appendTo:e,...t},n)=>{const r=`message_${IR++}`,s=t.onClose,o=document.createElement("div"),a={...t,id:r,onClose:()=>{s?.(),RR(u)},onDestroy:()=>{pd(null,o)}},i=we(NR,a,pe(a.message)||pn(a.message)?{default:pe(a.message)?a.message:()=>a.message}:null);i.appContext=n||ss._context,pd(i,o),e.appendChild(o.firstElementChild);const l=i.component,u={id:r,vnode:i,vm:l,handler:{close:()=>{l.exposed.close()}},props:i.component.props};return u},ss=(e={},t)=>{if(!ut)return{close:()=>{}};const n=Db(e),r=yR(n.placement||"top");if(n.grouping&&r.length){const o=r.find(({vnode:a})=>a.props?.message===n.message);if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(kt(Pt.max)&&r.length>=Pt.max)return{close:()=>{}};const s=PR(n,t);return r.push(s),s.handler};Vb.forEach(e=>{ss[e]=(t={},n)=>ss({...Db(t),type:e},n)});function BR(e){for(const t in hn)if(Te(hn,t)){const n=[...hn[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function OR(e){hn[e]&&[...hn[e]].forEach(t=>t.handler.close())}ss.closeAll=BR;ss.closeAllByPlacement=OR;ss._context=null;const kR=JC(ss,"$message"),FR=$e({trigger:Rr.trigger,triggerKeys:Rr.triggerKeys,placement:ja.placement,disabled:Rr.disabled,visible:St.visible,transition:St.transition,popperOptions:ja.popperOptions,tabindex:ja.tabindex,content:St.content,popperStyle:St.popperStyle,popperClass:St.popperClass,enterable:{...St.enterable,default:!0},effect:{...St.effect,default:"light"},teleported:St.teleported,appendTo:St.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),LR={"update:visible":e=>Qr(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},MR="onUpdate:visible";var WR=de({name:"ElPopover",__name:"popover",props:FR,emits:LR,setup(e,{expose:t,emit:n}){const r=e,s=n,o=T(()=>r[MR]),a=Ve("popover"),i=J(),l=T(()=>A(i)?.popperRef),u=T(()=>[{width:ns(r.width)},r.popperStyle]),c=T(()=>[a.b(),r.popperClass,{[a.m("plain")]:!!r.content}]),f=T(()=>r.transition===`${a.namespace.value}-fade-in-linear`),d=()=>{i.value?.hide()},p=()=>{s("before-enter")},h=()=>{s("before-leave")},g=()=>{s("after-enter")},b=()=>{s("update:visible",!1),s("after-leave")};return t({popperRef:l,hide:d}),(_,v)=>(z(),Ae(A(ma),$t({ref_key:"tooltipRef",ref:i},_.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":c.value,"popper-style":u.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":o.value,onBeforeShow:p,onBeforeHide:h,onShow:g,onHide:b}),{content:ce(()=>[e.title?(z(),_e("div",{key:0,class:Pe(A(a).e("title")),role:"title"},Mt(e.title),3)):He("v-if",!0),ve(_.$slots,"default",{hide:d},()=>[Ln(Mt(e.content),1)])]),default:ce(()=>[_.$slots.reference?ve(_.$slots,"reference",{key:0}):He("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),VR=WR;const Kp=(e,t)=>{const n=(t.arg||t.value)?.popperRef;n&&(n.triggerRef=e)};var $R={mounted(e,t){Kp(e,t)},updated(e,t){Kp(e,t)}};const DR="popover",GR=QC($R,DR),YR=Dn(VR,{directive:GR});var Pl={exports:{}},Bl={exports:{}},Hp;function UR(){return Hp||(Hp=1,(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],s=0,o=0;s<n.length;s++,o+=8)r[o>>>5]|=n[s]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],s=0;s<n.length*32;s+=8)r.push(n[s>>>5]>>>24-s%32&255);return r},bytesToHex:function(n){for(var r=[],s=0;s<n.length;s++)r.push((n[s]>>>4).toString(16)),r.push((n[s]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],s=0;s<n.length;s+=2)r.push(parseInt(n.substr(s,2),16));return r},bytesToBase64:function(n){for(var r=[],s=0;s<n.length;s+=3)for(var o=n[s]<<16|n[s+1]<<8|n[s+2],a=0;a<4;a++)s*8+a*6<=n.length*8?r.push(e.charAt(o>>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],s=0,o=0;s<n.length;o=++s%4)o!=0&&r.push((e.indexOf(n.charAt(s-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(n.charAt(s))>>>6-o*2);return r}};Bl.exports=t})()),Bl.exports}var Ol,Xp;function zp(){if(Xp)return Ol;Xp=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r)&255);return n},bytesToString:function(t){for(var n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(t[r]));return n.join("")}}};return Ol=e,Ol}var kl,Jp;function jR(){if(Jp)return kl;Jp=1,kl=function(n){return n!=null&&(e(n)||t(n)||!!n._isBuffer)};function e(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function t(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&e(n.slice(0,0))}return kl}var Qp;function ZR(){return Qp||(Qp=1,(function(){var e=UR(),t=zp().utf8,n=jR(),r=zp().bin,s=function(o,a){o.constructor==String?a&&a.encoding==="binary"?o=r.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var i=e.bytesToWords(o),l=o.length*8,u=1732584193,c=-271733879,f=-1732584194,d=271733878,p=0;p<i.length;p++)i[p]=(i[p]<<8|i[p]>>>24)&16711935|(i[p]<<24|i[p]>>>8)&4278255360;i[l>>>5]|=128<<l%32,i[(l+64>>>9<<4)+14]=l;for(var h=s._ff,g=s._gg,b=s._hh,_=s._ii,p=0;p<i.length;p+=16){var v=u,E=c,w=f,B=d;u=h(u,c,f,d,i[p+0],7,-680876936),d=h(d,u,c,f,i[p+1],12,-389564586),f=h(f,d,u,c,i[p+2],17,606105819),c=h(c,f,d,u,i[p+3],22,-1044525330),u=h(u,c,f,d,i[p+4],7,-176418897),d=h(d,u,c,f,i[p+5],12,1200080426),f=h(f,d,u,c,i[p+6],17,-1473231341),c=h(c,f,d,u,i[p+7],22,-45705983),u=h(u,c,f,d,i[p+8],7,1770035416),d=h(d,u,c,f,i[p+9],12,-1958414417),f=h(f,d,u,c,i[p+10],17,-42063),c=h(c,f,d,u,i[p+11],22,-1990404162),u=h(u,c,f,d,i[p+12],7,1804603682),d=h(d,u,c,f,i[p+13],12,-40341101),f=h(f,d,u,c,i[p+14],17,-1502002290),c=h(c,f,d,u,i[p+15],22,1236535329),u=g(u,c,f,d,i[p+1],5,-165796510),d=g(d,u,c,f,i[p+6],9,-1069501632),f=g(f,d,u,c,i[p+11],14,643717713),c=g(c,f,d,u,i[p+0],20,-373897302),u=g(u,c,f,d,i[p+5],5,-701558691),d=g(d,u,c,f,i[p+10],9,38016083),f=g(f,d,u,c,i[p+15],14,-660478335),c=g(c,f,d,u,i[p+4],20,-405537848),u=g(u,c,f,d,i[p+9],5,568446438),d=g(d,u,c,f,i[p+14],9,-1019803690),f=g(f,d,u,c,i[p+3],14,-187363961),c=g(c,f,d,u,i[p+8],20,1163531501),u=g(u,c,f,d,i[p+13],5,-1444681467),d=g(d,u,c,f,i[p+2],9,-51403784),f=g(f,d,u,c,i[p+7],14,1735328473),c=g(c,f,d,u,i[p+12],20,-1926607734),u=b(u,c,f,d,i[p+5],4,-378558),d=b(d,u,c,f,i[p+8],11,-2022574463),f=b(f,d,u,c,i[p+11],16,1839030562),c=b(c,f,d,u,i[p+14],23,-35309556),u=b(u,c,f,d,i[p+1],4,-1530992060),d=b(d,u,c,f,i[p+4],11,1272893353),f=b(f,d,u,c,i[p+7],16,-155497632),c=b(c,f,d,u,i[p+10],23,-1094730640),u=b(u,c,f,d,i[p+13],4,681279174),d=b(d,u,c,f,i[p+0],11,-358537222),f=b(f,d,u,c,i[p+3],16,-722521979),c=b(c,f,d,u,i[p+6],23,76029189),u=b(u,c,f,d,i[p+9],4,-640364487),d=b(d,u,c,f,i[p+12],11,-421815835),f=b(f,d,u,c,i[p+15],16,530742520),c=b(c,f,d,u,i[p+2],23,-995338651),u=_(u,c,f,d,i[p+0],6,-198630844),d=_(d,u,c,f,i[p+7],10,1126891415),f=_(f,d,u,c,i[p+14],15,-1416354905),c=_(c,f,d,u,i[p+5],21,-57434055),u=_(u,c,f,d,i[p+12],6,1700485571),d=_(d,u,c,f,i[p+3],10,-1894986606),f=_(f,d,u,c,i[p+10],15,-1051523),c=_(c,f,d,u,i[p+1],21,-2054922799),u=_(u,c,f,d,i[p+8],6,1873313359),d=_(d,u,c,f,i[p+15],10,-30611744),f=_(f,d,u,c,i[p+6],15,-1560198380),c=_(c,f,d,u,i[p+13],21,1309151649),u=_(u,c,f,d,i[p+4],6,-145523070),d=_(d,u,c,f,i[p+11],10,-1120210379),f=_(f,d,u,c,i[p+2],15,718787259),c=_(c,f,d,u,i[p+9],21,-343485551),u=u+v>>>0,c=c+E>>>0,f=f+w>>>0,d=d+B>>>0}return e.endian([u,c,f,d])};s._ff=function(o,a,i,l,u,c,f){var d=o+(a&i|~a&l)+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._gg=function(o,a,i,l,u,c,f){var d=o+(a&l|i&~l)+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._hh=function(o,a,i,l,u,c,f){var d=o+(a^i^l)+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._ii=function(o,a,i,l,u,c,f){var d=o+(i^(a|~l))+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._blocksize=16,s._digestsize=16,Pl.exports=function(o,a){if(o==null)throw new Error("Illegal argument "+o);var i=e.wordsToBytes(s(o,a));return a&&a.asBytes?i:a&&a.asString?r.bytesToString(i):e.bytesToHex(i)}})()),Pl.exports}var KR=ZR();const HR=sT(KR);function Gb(e,t){return e!==null&&typeof e=="object"&&"$typeName"in e&&typeof e.$typeName=="string"?t===void 0?!0:t.typeName===e.$typeName:!1}var D;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(D||(D={}));function XR(){let e=0,t=0;for(let r=0;r<28;r+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<r,(s&128)==0)return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,(n&128)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<r,(s&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}const Za=4294967296;function qp(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,s=0;function o(a,i){const l=Number(e.slice(a,i));s*=n,r=r*n+l,r>=Za&&(s=s+(r/Za|0),r=r%Za)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?Ub(r,s):lf(r,s)}function zR(e,t){let n=lf(e,t);const r=n.hi&2147483648;r&&(n=Ub(n.lo,n.hi));const s=Yb(n.lo,n.hi);return r?"-"+s:s}function Yb(e,t){if({lo:e,hi:t}=JR(e,t),t<=2097151)return String(Za*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,s=t>>16&65535;let o=n+r*6777216+s*6710656,a=r+s*8147497,i=s*2;const l=1e7;return o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(i+=Math.floor(a/l),a%=l),i.toString()+eh(a)+eh(o)}function JR(e,t){return{lo:e>>>0,hi:t>>>0}}function lf(e,t){return{lo:e|0,hi:t|0}}function Ub(e,t){return t=~t,e?e=~e+1:t+=1,lf(e,t)}const eh=e=>{const t=String(e);return"0000000".slice(t.length)+t};function QR(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function qR(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;(e&128)!==0&&n<10;n++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var th={};const vt=eP();function eP(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(!!globalThis.Deno||!!globalThis.Bun||typeof process!="object"||typeof th!="object"||th.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),s=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(a){const i=typeof a=="bigint"?a:BigInt(a);if(i>r||i<n)throw new Error(`invalid int64: ${a}`);return i},uParse(a){const i=typeof a=="bigint"?a:BigInt(a);if(i>o||i<s)throw new Error(`invalid uint64: ${a}`);return i},enc(a){return e.setBigInt64(0,this.parse(a),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(a){return e.setBigInt64(0,this.uParse(a),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(a,i){return e.setInt32(0,a,!0),e.setInt32(4,i,!0),e.getBigInt64(0,!0)},uDec(a,i){return e.setInt32(0,a,!0),e.setInt32(4,i,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),nh(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),rh(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),nh(n),qp(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),rh(n),qp(n)},dec(n,r){return zR(n,r)},uDec(n,r){return Yb(n,r)}}}function nh(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function rh(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function na(e,t){switch(e){case D.STRING:return"";case D.BOOL:return!1;case D.DOUBLE:case D.FLOAT:return 0;case D.INT64:case D.UINT64:case D.SFIXED64:case D.FIXED64:case D.SINT64:return t?"0":vt.zero;case D.BYTES:return new Uint8Array(0);default:return 0}}function tP(e,t){switch(e){case D.BOOL:return t===!1;case D.STRING:return t==="";case D.BYTES:return t instanceof Uint8Array&&!t.byteLength;case D.DOUBLE:case D.FLOAT:return Object.is(t,0);default:return t==0}}const jb=2,nr=Symbol.for("reflect unsafe local");function nP(e,t){const n=e[t.localName].case;return n===void 0?n:t.fields.find(r=>r.localName===n)}function rP(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(t.presence!=jb)return e[n]!==void 0&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!tP(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function ra(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function sP(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function oP(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function aP(e,t){const n=t.localName;if(t.oneof){const r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(t.presence!=jb)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=na(t.scalar,t.longAsString);break}}function Ds(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function uf(e,t){var n,r,s,o;if(Ds(e)&&nr in e&&"add"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const a=t,i=e.field();return a.listKind==i.listKind&&a.scalar===i.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((r=i.message)===null||r===void 0?void 0:r.typeName)&&((s=a.enum)===null||s===void 0?void 0:s.typeName)===((o=i.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function cf(e,t){var n,r,s,o;if(Ds(e)&&nr in e&&"has"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const a=t,i=e.field();return a.mapKey===i.mapKey&&a.mapKind==i.mapKind&&a.scalar===i.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((r=i.message)===null||r===void 0?void 0:r.typeName)&&((s=a.enum)===null||s===void 0?void 0:s.typeName)===((o=i.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function ff(e,t){return Ds(e)&&nr in e&&"desc"in e&&Ds(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}function iP(e){return Zb(e.$typeName)}function lP(e){const t=e.fields[0];return Zb(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function Zb(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const uP=999,cP=998,Ka=2;function fP(e,t){return Gb(t,e)?t:pP(e)}const dP=Symbol(),sh=new WeakMap;function pP(e){let t;if(hP(e)){const n=sh.get(e);let r,s;if(n)({prototype:r,members:s}=n);else{r={},s=new Set;for(const o of e.members)o.kind!="oneof"&&(o.fieldKind!="scalar"&&o.fieldKind!="enum"||o.presence!=Ka&&(s.add(o),r[o.localName]=Fl(o)));sh.set(e,{prototype:r,members:s})}t=Object.create(r),t.$typeName=e.typeName;for(const o of e.members)s.has(o)||o.kind=="field"&&(o.fieldKind=="message"||(o.fieldKind=="scalar"||o.fieldKind=="enum")&&o.presence!=Ka)||(t[o.localName]=Fl(o))}else{t={$typeName:e.typeName};for(const n of e.members)(n.kind=="oneof"||n.presence==Ka)&&(t[n.localName]=Fl(n))}return t}function hP(e){switch(e.file.edition){case uP:return!1;case cP:return!0;default:return e.fields.some(t=>t.presence!=Ka&&t.fieldKind!="message"&&!t.oneof)}}function Fl(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return dP;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?na(e.scalar,e.longAsString):e.enum.values[0].number}class Gs extends Error{constructor(t,n,r="FieldValueInvalidError"){super(n),this.name=r,this.field=()=>t}}const Ll=Symbol.for("@bufbuild/protobuf/text-encoding");function Kb(){if(globalThis[Ll]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;let n;globalThis[Ll]={encodeUtf8(r){return e.encode(r)},decodeUtf8(r,s){return s?(n===void 0&&(n=new globalThis.TextDecoder("utf-8",{fatal:!0})),n.decode(r)):t.decode(r)},checkUtf8(r){try{return encodeURIComponent(r),!0}catch{return!1}}}}return globalThis[Ll]}var cn;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(cn||(cn={}));const gP=34028234663852886e22,mP=-34028234663852886e22,bP=4294967295,vP=2147483647,yP=-2147483648;class _P{constructor(t,n=Kb().decodeUtf8){this.decodeUtf8=n,this.varint64=XR,this.uint32=qR,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength)}tag(){const t=this.pos,n=this.uint32(),r=this.pos-t;if(r>5||r==5&&this.buf[this.pos-1]>15)throw new Error("illegal tag: varint overflows uint32");const s=n>>>3,o=n&7;if(s<=0||o>5)throw new Error("illegal tag: field no "+s+" wire type "+o);return[s,o]}skip(t,n,r=100){let s=this.pos;switch(t){case cn.Varint:for(;this.buf[this.pos++]&128;);break;case cn.Bit64:this.pos+=4;case cn.Bit32:this.pos+=4;break;case cn.LengthDelimited:let o=this.uint32();this.pos+=o;break;case cn.StartGroup:if(r<=0)throw new Error("maximum recursion depth reached");for(;;){const[a,i]=this.tag();if(i===cn.EndGroup){if(n!==void 0&&a!==n)throw new Error("invalid end group tag");break}this.skip(i,a,r-1)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(s,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return vt.dec(...this.varint64())}uint64(){return vt.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,vt.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return vt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return vt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(t){return this.decodeUtf8(this.bytes(),t)}}function wP(e,t){const n=e.fieldKind=="list"?uf(t,e):e.fieldKind=="map"?cf(t,e):df(e,t);if(n===!0)return;let r;switch(e.fieldKind){case"list":r=`expected ${Xb(e)}, got ${mi(t)}`;break;case"map":r=`expected ${zb(e)}, got ${mi(t)}`;break;default:r=gi(e,t,n)}return new Gs(e,r)}function oh(e,t,n){const r=df(e,n);if(r!==!0)return new Gs(e,`list item #${t+1}: ${gi(e,n,r)}`)}function EP(e,t,n){const r=Cu(t,e.mapKey);if(r!==!0)return new Gs(e,`invalid map key: ${gi({scalar:e.mapKey},t,r)}`);const s=df(e,n);if(s!==!0)return new Gs(e,`map entry ${mi(t)}: ${gi(e,n,s)}`)}function df(e,t){return e.scalar!==void 0?Cu(t,e.scalar):e.enum!==void 0?e.enum.open?Cu(t,D.INT32):e.enum.values.some(n=>n.number===t):ff(t,e.message)}function Cu(e,t){switch(t){case D.DOUBLE:return typeof e=="number";case D.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>gP||e<mP?`${e.toFixed()} out of range`:!0;case D.INT32:case D.SFIXED32:case D.SINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>vP||e<yP?`${e.toFixed()} out of range`:!0;case D.FIXED32:case D.UINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>bP||e<0?`${e.toFixed()} out of range`:!0;case D.BOOL:return typeof e=="boolean";case D.STRING:return typeof e!="string"?!1:Kb().checkUtf8(e)||"invalid UTF8";case D.BYTES:return e instanceof Uint8Array;case D.INT64:case D.SFIXED64:case D.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return vt.parse(e),!0}catch{return`${e} out of range`}return!1;case D.FIXED64:case D.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return vt.uParse(e),!0}catch{return`${e} out of range`}return!1}}function gi(e,t,n){return n=typeof n=="string"?`: ${n}`:`, got ${mi(t)}`,e.scalar!==void 0?`expected ${AP(e.scalar)}`+n:e.enum!==void 0?`expected ${e.enum.toString()}`+n:`expected ${Hb(e.message)}`+n}function mi(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:uf(e)?Xb(e.field()):cf(e)?zb(e.field()):ff(e)?Hb(e.desc):Gb(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":return String(e);case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function Hb(e){return`ReflectMessage (${e.typeName})`}function Xb(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${D[e.scalar]})`}}function zb(e){switch(e.mapKind){case"message":return`ReflectMap (${D[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${D[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${D[e.mapKey]}, ${D[e.scalar]})`}}function AP(e){switch(e){case D.STRING:return"string";case D.BOOL:return"boolean";case D.INT64:case D.SINT64:case D.SFIXED64:return"bigint (int64)";case D.UINT64:case D.FIXED64:return"bigint (uint64)";case D.BYTES:return"Uint8Array";case D.DOUBLE:return"number (float64)";case D.FLOAT:return"number (float32)";case D.FIXED32:case D.UINT32:return"number (uint32)";case D.INT32:case D.SFIXED32:case D.SINT32:return"number (int32)"}}function pf(e,t,n=!0){return new Jb(e,t,n)}const ah=new WeakMap;class Jb{get sortedFields(){const t=ah.get(this.desc);if(t)return t;const n=this.desc.fields.concat().sort((r,s)=>r.number-s.number);return ah.set(this.desc,n),n}constructor(t,n,r=!0){this.lists=new Map,this.maps=new Map,this.check=r,this.desc=t,this.message=this[nr]=n??fP(t),this.fields=t.fields,this.oneofs=t.oneofs,this.members=t.members}findNumber(t){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(n=>[n.number,n]))),this._fieldsByNumber.get(t)}oneofCase(t){return po(this.message,t),nP(this.message,t)}isSet(t){return po(this.message,t),rP(this.message,t)}clear(t){po(this.message,t),aP(this.message,t)}get(t){po(this.message,t);const n=sP(this.message,t);switch(t.fieldKind){case"list":let r=this.lists.get(t);return(!r||r[nr]!==n)&&this.lists.set(t,r=new SP(t,n,this.check)),r;case"map":let s=this.maps.get(t);return(!s||s[nr]!==n)&&this.maps.set(t,s=new xP(t,n,this.check)),s;case"message":return gf(t,n,this.check);case"scalar":return n===void 0?na(t.scalar,!1):mf(t,n);case"enum":return n??t.enum.values[0].number}}set(t,n){if(po(this.message,t),this.check){const s=wP(t,n);if(s)throw s}let r;t.fieldKind=="message"?r=hf(t,n):cf(n)||uf(n)?r=n[nr]:r=bf(t,n),oP(this.message,t,r)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function po(e,t){if(t.parent.typeName!==e.$typeName)throw new Gs(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class SP{field(){return this._field}get size(){return this._arr.length}constructor(t,n,r){this._field=t,this._arr=this[nr]=n,this.check=r}get(t){const n=this._arr[t];return n===void 0?void 0:Ml(this._field,n,this.check)}set(t,n){if(t<0||t>=this._arr.length)throw new Gs(this._field,`list item #${t+1}: out of range`);if(this.check){const r=oh(this._field,t,n);if(r)throw r}this._arr[t]=ih(this._field,n)}add(t){if(this.check){const n=oh(this._field,this._arr.length,t);if(n)throw n}this._arr.push(ih(this._field,t))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const t of this._arr)yield Ml(this._field,t,this.check)}*entries(){for(let t=0;t<this._arr.length;t++)yield[t,Ml(this._field,this._arr[t],this.check)]}}class xP{constructor(t,n,r=!0){this.obj=this[nr]=n??{},this.check=r,this._field=t}field(){return this._field}set(t,n){if(this.check){const r=EP(this._field,t,n);if(r)throw r}return this.obj[Fa(t)]=NP(this._field,n),this}delete(t){const n=Fa(t),r=Object.prototype.hasOwnProperty.call(this.obj,n);return r&&delete this.obj[n],r}clear(){for(const t of Object.keys(this.obj))delete this.obj[t]}get(t){let n=this.obj[Fa(t)];return n!==void 0&&(n=Wl(this._field,n,this.check)),n}has(t){return Object.prototype.hasOwnProperty.call(this.obj,Fa(t))}*keys(){for(const t of Object.keys(this.obj))yield lh(t,this._field.mapKey)}*entries(){for(const t of Object.entries(this.obj))yield[lh(t[0],this._field.mapKey),Wl(this._field,t[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const t of Object.values(this.obj))yield Wl(this._field,t,this.check)}forEach(t,n){for(const r of this.entries())t.call(n,r[1],r[0],this)}}function hf(e,t){return ff(t)?iP(t.message)&&!e.oneof&&e.fieldKind=="message"?t.message.value:t.desc.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"?qb(t.message):t.message:t}function gf(e,t,n){return t!==void 0&&(lP(e.message)&&!e.oneof&&e.fieldKind=="message"?t={$typeName:e.message.typeName,value:mf(e.message.fields[0],t)}:e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"&&Ds(t)&&(t=Qb(t))),new Jb(e.message,t,n)}function ih(e,t){return e.listKind=="message"?hf(e,t):bf(e,t)}function Ml(e,t,n){return e.listKind=="message"?gf(e,t,n):mf(e,t)}function NP(e,t){return e.mapKind=="message"?hf(e,t):bf(e,t)}function Wl(e,t,n){return e.mapKind=="message"?gf(e,t,n):t}function Fa(e){return typeof e=="string"||typeof e=="number"?e:String(e)}function lh(e,t){switch(t){case D.STRING:return e;case D.INT32:case D.FIXED32:case D.UINT32:case D.SFIXED32:case D.SINT32:{const n=Number.parseInt(e);if(Number.isFinite(n))return n;break}case D.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case D.UINT64:case D.FIXED64:try{return vt.uParse(e)}catch{}break;default:try{return vt.parse(e)}catch{}break}return e}function mf(e,t){switch(e.scalar){case D.INT64:case D.SFIXED64:case D.SINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=vt.parse(t));break;case D.FIXED64:case D.UINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=vt.uParse(t));break}return t}function bf(e,t){switch(e.scalar){case D.INT64:case D.SFIXED64:case D.SINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=vt.parse(t));break;case D.FIXED64:case D.UINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=vt.uParse(t));break}return t}function Qb(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(Ds(e))for(const[n,r]of Object.entries(e))t.fields[n]=tv(r);return t}function qb(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=ev(r);return t}function ev(e){switch(e.kind.case){case"structValue":return qb(e.kind.value);case"listValue":return e.kind.value.values.map(ev);case"nullValue":case void 0:return null;default:return e.kind.value}}function tv(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(e===null)t.kind={case:"nullValue",value:0};else if(Array.isArray(e)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const r of e)n.values.push(tv(r));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Qb(e)};break}return t}function IP(e){const t=TP();let n=e.length*3/4;e[e.length-2]=="="?n-=2:e[e.length-1]=="="&&(n-=1);let r=new Uint8Array(n),s=0,o=0,a,i=0;for(let l=0;l<e.length;l++){if(a=t[e.charCodeAt(l)],a===void 0)switch(e[l]){case"=":o=0;case`
10
- `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(o){case 0:i=a,o=1;break;case 1:r[s++]=i<<2|(a&48)>>4,i=a,o=2;break;case 2:r[s++]=(i&15)<<4|(a&60)>>2,i=a,o=3;break;case 3:r[s++]=(i&3)<<6|a,o=0;break}}if(o==1)throw Error("invalid base64 string");return r.subarray(0,s)}let La,ws;function CP(e){return La||(La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),La.slice(0,-2).concat("-","_")),La}function TP(){if(!ws){ws=[];const e=CP();for(let t=0;t<e.length;t++)ws[e[t].charCodeAt(0)]=t;ws[45]=e.indexOf("+"),ws[95]=e.indexOf("/")}return ws}function bi(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let s=e.charAt(r);switch(s){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(s),t=!1;break;default:t&&(t=!1,s=s.toUpperCase()),n.push(s);break}}return n.join("")}const RP=new Set(["constructor","toString","toJSON","valueOf"]);function sa(e){return RP.has(e)?e+"$":e}function vf(e){for(const t of e.field)ra(t,"jsonName")||(t.jsonName=bi(t.name));e.nestedType.forEach(vf)}function PP(e,t){const n=e.values.find(r=>r.name===t);if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}function BP(e,t){switch(e){case D.STRING:return t;case D.BYTES:{const n=OP(t);if(n===!1)throw new Error(`cannot parse ${D[e]} default value: ${t}`);return n}case D.INT64:case D.SFIXED64:case D.SINT64:return vt.parse(t);case D.UINT64:case D.FIXED64:return vt.uParse(t);case D.DOUBLE:case D.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case D.BOOL:return t==="true";case D.INT32:case D.UINT32:case D.SINT32:case D.FIXED32:case D.SFIXED32:return parseInt(t,10)}}function OP(e){const t=[],n={tail:e,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(r){if(this.tail.length>=r){const s=this.tail.substring(0,r);return this.tail=this.tail.substring(r),s}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,8);if(Number.isNaN(o))return!1;t.push(o);break}case"x":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;t.push(o);break}case"u":{const r=n.c,s=n.take(4);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;const a=new Uint8Array(4);new DataView(a.buffer).setInt32(0,o,!0),t.push(a[0],a[1],a[2],a[3]);break}case"U":{const r=n.c,s=n.take(8);if(s===!1)return!1;const o=vt.uEnc(r+s),a=new Uint8Array(8),i=new DataView(a.buffer);i.setInt32(0,o.lo,!0),i.setInt32(4,o.hi,!0),t.push(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);break}}break;default:t.push(n.c.charCodeAt(0))}return new Uint8Array(t)}function*Tu(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*Tu(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*Tu(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function nv(...e){const t=kP();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of e[0].file)dh(n,t);return t}if("$typeName"in e[0]){let o=function(a){const i=[];for(const l of a.dependency){if(t.getFile(l)!=null||s.has(l))continue;const u=r(l);if(!u)throw new Error(`Unable to resolve ${l}, imported by ${a.name}`);"kind"in u?t.addFile(u,!1,!0):(s.add(u.name),i.push(u))}return i.concat(...i.map(o))};const n=e[0],r=e[1],s=new Set;for(const a of[n,...o(n)].reverse())dh(a,t)}else for(const n of e)for(const r of n.files)t.addFile(r);return t}function kP(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return n.values()},addFile(r,s,o){if(n.set(r.proto.name,r),!s)for(const a of Tu(r))this.add(a);if(o)for(const a of r.dependencies)this.addFile(a,s,o)},add(r){if(r.kind=="extension"){let s=t.get(r.extendee.typeName);s||t.set(r.extendee.typeName,s=new Map),s.set(r.number,r)}e.set(r.typeName,r)},get(r){return e.get(r)},getFile(r){return n.get(r)},getMessage(r){const s=e.get(r);return s?.kind=="message"?s:void 0},getEnum(r){const s=e.get(r);return s?.kind=="enum"?s:void 0},getExtension(r){const s=e.get(r);return s?.kind=="extension"?s:void 0},getExtensionFor(r,s){var o;return(o=t.get(r.typeName))===null||o===void 0?void 0:o.get(s)},getService(r){const s=e.get(r);return s?.kind=="service"?s:void 0}}}const FP=998,LP=999,MP=9999,WP=9,oa=10,Mo=11,VP=12,uh=14,yf=3,$P=2,ch=1,DP=0,Vl=1,fh=2,GP=3,YP=1,UP=2,jP=1,ZP=2,KP=1001,rv={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function dh(e,t){var n,r;const s={kind:"file",proto:e,deprecated:(r=(n=e.options)===null||n===void 0?void 0:n.deprecated)!==null&&r!==void 0?r:!1,edition:JP(e),name:e.name.replace(/\.proto$/,""),dependencies:QP(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},o=new Map,a={get(i){return o.get(i)},add(i){var l;fn(((l=i.proto.options)===null||l===void 0?void 0:l.mapEntry)===!0),o.set(i.typeName,i)}};for(const i of e.enumType)sv(i,s,void 0,t);for(const i of e.messageType)ov(i,s,void 0,t,a);for(const i of e.service)HP(i,s,t);Ru(s,t);for(const i of o.values())Pu(i,t,a);for(const i of s.messages)Pu(i,t,a),Ru(i,t);t.addFile(s,!0)}function Ru(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=Bu(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=Bu(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)Ru(n,t);break}}function Pu(e,t,n){const r=e.proto.oneofDecl.map(o=>zP(o,e)),s=new Set;for(const o of e.proto.field){const a=t8(o,r),i=Bu(o,e,t,a,n);e.fields.push(i),e.field[i.localName]=i,a===void 0?e.members.push(i):(a.fields.push(i),s.has(a)||(s.add(a),e.members.push(a)))}for(const o of r.filter(a=>s.has(a)))e.oneofs.push(o);for(const o of e.nestedMessages)Pu(o,t,n)}function sv(e,t,n,r){var s,o,a,i,l;const u=qP(e.name,e.value),c={kind:"enum",proto:e,deprecated:(o=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&o!==void 0?o:!1,file:t,parent:n,open:!0,name:e.name,typeName:Xi(e,n,t),value:{},values:[],sharedPrefix:u,toString(){return`enum ${this.typeName}`}};c.open=o8(c),r.add(c);for(const f of e.value){const d=f.name;c.values.push(c.value[f.number]={kind:"enum_value",proto:f,deprecated:(i=(a=f.options)===null||a===void 0?void 0:a.deprecated)!==null&&i!==void 0?i:!1,parent:c,name:d,localName:sa(u==null?d:d.substring(u.length)),number:f.number,toString(){return`enum value ${c.typeName}.${d}`}})}((l=n?.nestedEnums)!==null&&l!==void 0?l:t.enums).push(c)}function ov(e,t,n,r,s){var o,a,i,l;const u={kind:"message",proto:e,deprecated:(a=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&a!==void 0?a:!1,file:t,parent:n,name:e.name,typeName:Xi(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((i=e.options)===null||i===void 0?void 0:i.mapEntry)===!0?s.add(u):(((l=n?.nestedMessages)!==null&&l!==void 0?l:t.messages).push(u),r.add(u));for(const c of e.enumType)sv(c,t,u,r);for(const c of e.nestedType)ov(c,t,u,r,s)}function HP(e,t,n){var r,s;const o={kind:"service",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,file:t,name:e.name,typeName:Xi(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(o),n.add(o);for(const a of e.method){const i=XP(a,o,n);o.methods.push(i),o.method[i.localName]=i}}function XP(e,t,n){var r,s,o,a;let i;e.clientStreaming&&e.serverStreaming?i="bidi_streaming":e.clientStreaming?i="client_streaming":e.serverStreaming?i="server_streaming":i="unary";const l=n.getMessage(zn(e.inputType)),u=n.getMessage(zn(e.outputType));fn(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),fn(u,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const c=e.name;return{kind:"rpc",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,parent:t,name:c,localName:sa(c.length?sa(c[0].toLowerCase()+c.substring(1)):c),methodKind:i,input:l,output:u,idempotency:(a=(o=e.options)===null||o===void 0?void 0:o.idempotencyLevel)!==null&&a!==void 0?a:DP,toString(){return`rpc ${t.typeName}.${c}`}}}function zP(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:sa(bi(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function Bu(e,t,n,r,s){var o,a,i;const l=s===void 0,u={kind:"field",proto:e,deprecated:(a=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&a!==void 0?a:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:n8(e,r,l,t),utf8Validation:a8(e,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(l){const p=t.kind=="file"?t:t.file,h=t.kind=="file"?void 0:t,g=Xi(e,h,p);u.kind="extension",u.file=p,u.parent=h,u.oneof=void 0,u.typeName=g,u.jsonName=`[${g}]`,u.toString=()=>`extension ${g}`;const b=n.getMessage(zn(e.extendee));fn(b,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=b}else{const p=t;fn(p.kind=="message"),u.parent=p,u.oneof=r,u.localName=r?bi(e.name):sa(bi(e.name)),u.jsonName=e.jsonName,u.toString=()=>`field ${p.typeName}.${e.name}`}const c=e.label,f=e.type,d=(i=e.options)===null||i===void 0?void 0:i.jstype;if(c===yf){const p=f==Mo?s?.get(zn(e.typeName)):void 0;if(p){u.fieldKind="map";const{key:h,value:g}=s8(p);return u.mapKey=h.scalar,u.mapKind=g.fieldKind,u.message=g.message,u.delimitedEncoding=!1,u.enum=g.enum,u.scalar=g.scalar,u}switch(u.fieldKind="list",f){case Mo:case oa:u.listKind="message",u.message=n.getMessage(zn(e.typeName)),fn(u.message),u.delimitedEncoding=ph(e,t);break;case uh:u.listKind="enum",u.enum=n.getEnum(zn(e.typeName)),fn(u.enum);break;default:u.listKind="scalar",u.scalar=f,u.longAsString=d==ch;break}return u.packed=r8(e,t),u}switch(f){case Mo:case oa:u.fieldKind="message",u.message=n.getMessage(zn(e.typeName)),fn(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=ph(e,t),u.getDefaultValue=()=>{};break;case uh:{const p=n.getEnum(zn(e.typeName));fn(p!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(zn(e.typeName)),u.getDefaultValue=()=>ra(e,"defaultValue")?PP(p,e.defaultValue):void 0;break}default:{u.fieldKind="scalar",u.scalar=f,u.longAsString=d==ch,u.getDefaultValue=()=>ra(e,"defaultValue")?BP(f,e.defaultValue):void 0;break}}return u}function JP(e){switch(e.syntax){case"":case"proto2":return FP;case"proto3":return LP;case"editions":if(e.edition===MP)return KP;if(e.edition in rv)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function QP(e,t){return e.dependency.map(n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r})}function qP(e,t){const n=e8(e)+"_";for(const r of t){if(!r.name.toLowerCase().startsWith(n))return;const s=r.name.substring(n.length);if(s.length==0||/^\d/.test(s))return}return n}function e8(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function Xi(e,t,n){let r;return t?r=`${t.typeName}.${e.name}`:n.proto.package.length>0?r=`${n.proto.package}.${e.name}`:r=`${e.name}`,r}function zn(e){return e.startsWith(".")?e.substring(1):e}function t8(e,t){if(!ra(e,"oneofIndex")||e.proto3Optional)return;const n=t[e.oneofIndex];return fn(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function n8(e,t,n,r){if(e.label==$P)return GP;if(e.label==yf)return fh;if(t||e.proto3Optional||n)return Vl;const s=os("fieldPresence",{proto:e,parent:r});return s==fh&&(e.type==Mo||e.type==oa)?Vl:s}function r8(e,t){if(e.label!=yf)return!1;switch(e.type){case WP:case VP:case oa:case Mo:return!1}const n=e.options;return n&&ra(n,"packed")?n.packed:YP==os("repeatedFieldEncoding",{proto:e,parent:t})}function s8(e){const t=e.fields.find(r=>r.number===1),n=e.fields.find(r=>r.number===2);return fn(t&&t.fieldKind=="scalar"&&t.scalar!=D.BYTES&&t.scalar!=D.FLOAT&&t.scalar!=D.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:t,value:n}}function o8(e){var t;return jP==os("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function ph(e,t){return e.type==oa?!0:UP==os("messageEncoding",{proto:e,parent:t})}function a8(e,t){return ZP==os("utf8Validation",{proto:e,parent:t})}function os(e,t){var n,r;const s=(n=t.proto.options)===null||n===void 0?void 0:n.features;if(s){const o=s[e];if(o!=0)return o}if("kind"in t){if(t.kind=="message")return os(e,(r=t.parent)!==null&&r!==void 0?r:t.file);const o=rv[t.edition];if(!o)throw new Error(`feature default for edition ${t.edition} not found`);return o[e]}return os(e,t.parent)}function fn(e,t){if(!e)throw new Error(t)}function i8(e){const t=l8(e);return t.messageType.forEach(vf),nv(t,()=>{}).getFile(t.name)}function l8(e){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(av),enumType:e.enumType.map(iv)}))}function av(e){var t,n,r,s,o,a,i,l;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:(n=(t=e.field)===null||t===void 0?void 0:t.map(u8))!==null&&n!==void 0?n:[],extension:[],nestedType:(s=(r=e.nestedType)===null||r===void 0?void 0:r.map(av))!==null&&s!==void 0?s:[],enumType:(a=(o=e.enumType)===null||o===void 0?void 0:o.map(iv))!==null&&a!==void 0?a:[],extensionRange:(l=(i=e.extensionRange)===null||i===void 0?void 0:i.map(c=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},c)))!==null&&l!==void 0?l:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function u8(e){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?c8(e.options):void 0}))}function c8(e){var t,n,r;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:(t=e.targets)!==null&&t!==void 0?t:[],editionDefaults:(r=(n=e.editionDefaults)===null||n===void 0?void 0:n.map(o=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},o)))!==null&&r!==void 0?r:[],uninterpretedOption:[]}))}function iv(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(n=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},n))})}function f8(e,t,...n){return n.reduce((r,s)=>r.nestedMessages[s],e.messages[t])}const d8=i8({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"option_dependency",number:15,type:9,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3},{name:"visibility",number:11,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3},{name:"visibility",number:6,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false",options:{}},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false",options:{deprecated:!0}},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"removal_error",number:5,type:9,label:1}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}},{name:"default_symbol_visibility",number:8,type:14,label:1,typeName:".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",options:{retention:2,targets:[1],editionDefaults:[{value:"EXPORT_ALL",edition:900},{value:"EXPORT_TOP_LEVEL",edition:1001}]}}],nestedType:[{name:"VisibilityFeature",enumType:[{name:"DefaultSymbolVisibility",value:[{name:"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",number:0},{name:"EXPORT_ALL",number:1},{name:"EXPORT_TOP_LEVEL",number:2},{name:"LOCAL_ALL",number:3},{name:"STRICT",number:4}]}]}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_UNSTABLE",number:9999},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]},{name:"SymbolVisibility",value:[{name:"VISIBILITY_UNSET",number:0},{name:"VISIBILITY_LOCAL",number:1},{name:"VISIBILITY_EXPORT",number:2}]}]}),p8=f8(d8,1);var hh;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(hh||(hh={}));var gh;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(gh||(gh={}));var mh;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(mh||(mh={}));var bh;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(bh||(bh={}));var vh;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(vh||(vh={}));var yh;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(yh||(yh={}));var _h;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(_h||(_h={}));var wh;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(wh||(wh={}));var Eh;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(Eh||(Eh={}));var Ah;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",e[e.EXPORT_ALL=1]="EXPORT_ALL",e[e.EXPORT_TOP_LEVEL=2]="EXPORT_TOP_LEVEL",e[e.LOCAL_ALL=3]="LOCAL_ALL",e[e.STRICT=4]="STRICT"})(Ah||(Ah={}));var Sh;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(Sh||(Sh={}));var xh;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(xh||(xh={}));var Nh;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(Nh||(Nh={}));var Ih;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(Ih||(Ih={}));var Ch;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(Ch||(Ch={}));var Th;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(Th||(Th={}));var Rh;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",e[e.STYLE2024=1]="STYLE2024",e[e.STYLE_LEGACY=2]="STYLE_LEGACY"})(Rh||(Rh={}));var Ph;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Ph||(Ph={}));var Bh;(function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_UNSTABLE=9999]="EDITION_UNSTABLE",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"})(Bh||(Bh={}));var Oh;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(Oh||(Oh={}));function h8(e){return Object.assign(Object.assign({readUnknownFields:!0,recursionLimit:100},e),{depth:0})}function lv(e,t,n){const r=pf(e,void 0,!1);return uv(r,new _P(t),h8(n),!1,t.byteLength),r.message}function uv(e,t,n,r,s){var o;if(++n.depth>n.recursionLimit)throw new Error(`cannot decode ${e.desc} from binary: maximum recursion depth of ${n.recursionLimit} reached`);const a=r?t.len:t.pos+s;let i,l;const u=(o=e.getUnknown())!==null&&o!==void 0?o:[];for(;t.pos<a&&([i,l]=t.tag(),!(r&&l==cn.EndGroup));){const c=e.findNumber(i);if(!c){const f=n.recursionLimit-n.depth,d=t.skip(l,i,f);n.readUnknownFields&&u.push({no:i,wireType:l,data:d});continue}g8(e,t,c,l,n)}if(r&&(l!=cn.EndGroup||i!==s))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u),n.depth--}function g8(e,t,n,r,s){var o;switch(n.fieldKind){case"scalar":e.set(n,Ys(t,n.scalar,n.utf8Validation));break;case"enum":const a=Ys(t,D.INT32);if(n.enum.open)e.set(n,a);else if(n.enum.values.some(l=>l.number===a))e.set(n,a);else if(s.readUnknownFields){const l=[];QR(a,l);const u=(o=e.getUnknown())!==null&&o!==void 0?o:[];u.push({no:n.number,wireType:r,data:new Uint8Array(l)}),e.setUnknown(u)}break;case"message":e.set(n,_f(t,s,n,e.get(n)));break;case"list":b8(t,r,e.get(n),s);break;case"map":m8(t,e.get(n),s);break}}function m8(e,t,n){const r=t.field();let s,o;const a=e.uint32(),i=e.pos+a;for(;e.pos<i;){const[l]=e.tag();switch(l){case 1:s=Ys(e,r.mapKey,r.utf8Validation);break;case 2:switch(r.mapKind){case"scalar":o=Ys(e,r.scalar,r.utf8Validation);break;case"enum":o=e.int32();break;case"message":o=_f(e,n,r);break}break}}if(s===void 0&&(s=na(r.mapKey,!1)),o===void 0)switch(r.mapKind){case"scalar":o=na(r.scalar,!1);break;case"enum":o=r.enum.values[0].number;break;case"message":o=pf(r.message,void 0,!1);break}t.set(s,o)}function b8(e,t,n,r){var s;const o=n.field();if(o.listKind==="message"){n.add(_f(e,r,o));return}const a=(s=o.scalar)!==null&&s!==void 0?s:D.INT32;if(!(t==cn.LengthDelimited&&a!=D.STRING&&a!=D.BYTES)){n.add(Ys(e,a,o.utf8Validation));return}const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(Ys(e,a,o.utf8Validation))}function _f(e,t,n,r){const s=n.delimitedEncoding,o=r??pf(n.message,void 0,!1);return uv(o,e,t,s,s?n.number:e.uint32()),o}function Ys(e,t,n=!1){switch(t){case D.STRING:return e.string(n);case D.BOOL:return e.bool();case D.DOUBLE:return e.double();case D.FLOAT:return e.float();case D.INT32:return e.int32();case D.INT64:return e.int64();case D.UINT64:return e.uint64();case D.FIXED64:return e.fixed64();case D.BYTES:return e.bytes();case D.FIXED32:return e.fixed32();case D.SFIXED32:return e.sfixed32();case D.SFIXED64:return e.sfixed64();case D.SINT64:return e.sint64();case D.UINT32:return e.uint32();case D.SINT32:return e.sint32()}}function v8(e,t){var n;const r=lv(p8,IP(e));return r.messageType.forEach(vf),r.dependency=(n=void 0)!==null&&n!==void 0?n:[],nv(r,o=>{}).getFile(r.name)}function y8(e,t,...n){if(n.length>0)throw new Error;return e.services[t]}var _8=Object.create,cv=Object.defineProperty,w8=Object.getOwnPropertyDescriptor,fv=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),dv=e=>{throw TypeError(e)},E8=(e,t,n)=>t in e?cv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=e=>[,,,_8(e?.[fv("metadata")]??null)],pv=["class","method","getter","setter","accessor","field","value","get","set"],hv=e=>e!==void 0&&typeof e!="function"?dv("Function expected"):e,A8=(e,t,n,r,s)=>({kind:pv[e],name:t,metadata:r,addInitializer:o=>n._?dv("Already initialized"):s.push(hv(o||null))}),Je=(e,t)=>E8(t,fv("metadata"),e[3]),Qe=(e,t,n,r)=>{for(var s=0,o=e[t>>1],a=o&&o.length;s<a;s++)o[s].call(n);return r},I=(e,t,n,r,s,o)=>{for(var a,i,l,u,c=t&7,f=!1,d=!1,p=2,h=pv[c+5],g=e[p]||(e[p]=[]),b=(s=s.prototype,w8(s,n)),_=r.length-1;_>=0;_--)l=A8(c,n,i={},e[3],g),l.static=f,l.private=d,u=l.access={has:v=>n in v},u.get=v=>v[n],a=(0,r[_])(b[h],l),i._=1,hv(a)&&(b[h]=a);return b&&cv(s,n,b),s};function N(){return function(e,t){const n=String(t.name);return function(...r){const s=this.constructor.name;try{return e.call(this,...r)}catch(o){if(typeof this.handleError=="function")this.handleError(o,s,n);else throw console.error(`${s}.${n} 未知异常`,o),o}}}}var kn=class extends Error{constructor(e,t,n){super(t||"操作失败"),this.name="BiliError",this.rawError=n instanceof Error?n:new Error(String(n));const{timeout:r,userAgent:s,context:o}=e;this.clientConfig={timeout:r,userAgent:s,context:o?.userCookie?{userCookie:o?.userCookie}:void 0}}},gv=class extends kn{constructor(e,t,n,r){super(e,n,r),this.name="BiliApiError";const{url:s,method:o,query:a,data:i,skipWbiSign:l,autoCsrf:u}=t;this.requestOptions={url:s,method:o,query:a,data:i,skipWbiSign:l,autoCsrf:u}}},Ma=class extends gv{constructor(e,t,n,r,s){super(e,t,r||n.statusText||`HTTP ${n.status}`,s),this.status=0,this.name="BiliApiHttpError",this.status=n.status}},mv=class extends gv{constructor(e,t,n,r,s){super(e,t,r||n.message,s),this.name="BiliApiBusinessError",this.responseCode=n.code??-1,this.responseData=n.data}};async function S8(e,t,n){const r={updateRequestContext:!0,autoRefresh:!0,pollIntervalMs:1233,...n},s=AbortSignal.timeout(180*1e3),o=r.signal?AbortSignal.any([r.signal,s]):s,a=u=>new Promise(c=>setTimeout(c,u)),i=u=>{try{t.onStatusChange(u)}catch(c){e.logger.error("[QRCodeLogin] onStatusChange callback error:",c)}},l=async u=>{try{await t.onQRCodeReceived(u)}catch(c){e.logger.error("[QRCodeLogin] onQRCodeReceived callback error:",c)}};try{for(;!o.aborted;){i("正在获取登录二维码...");const u=await e.getLoginQRCode(n);if(!u?.url||!u?.qrcode_key)throw new Error("未能获取有效的二维码数据");await l(u.url),i("请使用手机 App 扫码登录..."),await a(2e3);let c=!1;for(;!o.aborted&&!c;){const f=await e.getQRCodeLoginResult(u.qrcode_key,n);switch(i(f.message),f.code){case 0:return i("扫码成功,正在同步用户信息..."),t.cookieProvider&&(await a(1e3),f.setCookie=await t.cookieProvider()),await e.initLoginSession(f.setCookie,r.updateRequestContext,n);case 86038:if(r.autoRefresh)i("二维码已失效,正在自动刷新..."),c=!0;else throw new kn(e.clientConfig,"二维码已失效");break;default:await a(r.pollIntervalMs);break}}}}catch(u){if(r.signal?.aborted)throw i("取消登录"),ks("取消登录");if(o.aborted||kc(u)){const c="登录超时";throw i(c),new Error(c)}throw u}throw o.aborted?ks():new Error("登录流程异常终止")}function x8(e){if(!e)throw new Error("setCookie 为空");const t=[];let n,r;for(const s of e)if(s){const o=s.slice(0,s.indexOf(";")+1);t.push(o),o.startsWith("bili_jct=")&&(n=o.slice(9,-1)),o.startsWith("DedeUserID=")&&(r=o.slice(11,-1))}if(!n||!r)throw new Error("setCookie 解析错误,不存在 bili_jct/uid");return{uid:Number(r),cookie:t.join(" "),bili_jct:n}}var bv=class{constructor(e){this.api=e}get clientConfig(){return this.api.clientConfig}get logger(){return this.api.logger}get request(){return this.api.request}get get(){return this.api.get}get post(){return this.api.post}get save(){return this.api.save}get currUserUid(){const e=this.api.clientConfig.context?.userCookie.uid;if(e===void 0)throw new kn(this.clientConfig,"用户未登录");return e}},Xe=class extends bv{constructor(e){super(e),this.createPager=e.createPager}throwError(e,t){throw new kn(this.clientConfig,Fs(e),t)}handleError(e,t,n){if(e instanceof kn)this.logger.error(`${t}.${n} 出现错误`,e);else{const r=new kn(this.clientConfig,Fs(e),e);this.logger.error(`${t}.${n} 出现错误`,r)}throw e}resolveVideoId(e){return e.aid!==void 0?{aid:e.aid}:{bvid:e.bvid}}},vv,yv,_v,wv,Ev,Av,Sv,xv,Nv,Ou,an,_n=class extends(Ou=Xe,Nv=[N()],xv=[N()],Sv=[N()],Av=[N()],Ev=[N()],wv=[N()],_v=[N()],yv=[N()],vv=[N()],Ou){constructor(){super(...arguments),Qe(an,5,this)}getLoginQRCode(e){return this.get("https://passport.bilibili.com/x/passport-login/web/qrcode/generate",e)}async getQRCodeLoginResult(e,t){const n=await this.get("https://passport.bilibili.com/x/passport-login/web/qrcode/poll",{query:{qrcode_key:e},skipWbiSign:!0,returnFormat:"RawResponse",...t});return{...(await n.json()).data,setCookie:n.headers.getSetCookie()}}async loginWithQRCode(e,t){return S8(this,e,t)}getBuvids(e){return this.get("https://api.bilibili.com/x/frontend/finger/spi",e)}getMyInfo(e,t){return this.get("https://api.bilibili.com/x/space/myinfo",{cookie:e,...t})}async initLoginSession(e,t=!0,n){this.logger.info("初始化用户数据...");const r=x8(e),{b_3:s,b_4:o}=await this.getBuvids(n);r.cookie=`${r.cookie} buvid3=${encodeURIComponent(s)}; buvid4=${encodeURIComponent(o)}; `;const a={userCookie:r};return t&&(this.clientConfig.context=a),this.logger.info(`已完成用户登录:${r.uid}`),a}async getUserCard(e,t){return await this.get("https://api.bilibili.com/x/web-interface/card",{query:e,...t})}async getUserCards(e,t){const n=await this.get("https://api.vc.bilibili.com/account/v1/user/cards",{query:{uids:e.join(",")},...t});return e.map(r=>n.find(s=>s.mid===r)??null)}async getUpStat(e,t){return await this.get("https://api.bilibili.com/x/space/upstat",{query:{mid:e},...t})}};an=ze(Ou);I(an,1,"getLoginQRCode",Nv,_n);I(an,1,"getQRCodeLoginResult",xv,_n);I(an,1,"loginWithQRCode",Sv,_n);I(an,1,"getBuvids",Av,_n);I(an,1,"getMyInfo",Ev,_n);I(an,1,"initLoginSession",wv,_n);I(an,1,"getUserCard",_v,_n);I(an,1,"getUserCards",yv,_n);I(an,1,"getUpStat",vv,_n);Je(an,_n);var ho={PersonalSpace:11,Comment:15,H5FollowList:106,H5FansList:107,BlockList:116},Ur={FOLLOW:{code:1,name:"关注",reSrc:ho.PersonalSpace},UNFOLLOW:{code:2,name:"取关",reSrc:ho.H5FollowList},BLOCK:{code:5,name:"拉黑",reSrc:ho.Comment},UNBLOCK:{code:6,name:"取消拉黑",reSrc:ho.BlockList},REMOVE_FAN:{code:7,name:"踢出粉丝",reSrc:ho.H5FansList}},Dt=class{constructor(e){this.options=e,e.pageParams&&(e.pageNum=this.parsePageNum(e.pageParams))}},Iv=class extends Dt{hasNextPage(e,t,n){return!(this.options.total!==void 0&&(t.length>=this.options.total||(e-1)*this.options.pageSize>=this.options.total)||n!==null&&(n.data===null||qs(n.data)||this.getList(n).length<this.options.pageSize))}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data}},Ha=class ku extends Iv{static isPageDataWithTotalResponse(t){return t!==null&&typeof t.data=="object"&&t.data!==null&&"total"in t.data&&"list"in t.data}hasNextPage(t,n,r){return!(!super.hasNextPage(t,n,r)||r!==null&&(!ku.isPageDataWithTotalResponse(r)||r.data.total<=n.length||qs(r.data.list)))}getList(t){return ku.isPageDataWithTotalResponse(t)?t.data.list:[]}},Cv,Tv,Rv,Pv,Bv,Ov,kv,Fv,Lv,Mv,Wv,Vv,$v,Dv,Gv,Yv,Uv,jv,Zv,Kv,Hv,Xv,zv,Jv,Qv,qv,e1,Fu,Fe,Me=class extends(Fu=Xe,e1=[N()],qv=[N()],Qv=[N()],Jv=[N()],zv=[N()],Xv=[N()],Hv=[N()],Kv=[N()],Zv=[N()],jv=[N()],Uv=[N()],Yv=[N()],Gv=[N()],Dv=[N()],$v=[N()],Vv=[N()],Wv=[N()],Mv=[N()],Lv=[N()],Fv=[N()],kv=[N()],Ov=[N()],Bv=[N()],Pv=[N()],Rv=[N()],Tv=[N()],Cv=[N()],Fu){constructor(){super(...arguments),Qe(Fe,5,this)}get userService(){return this.api.client.user}buildRelationPager(e,t,n){return this.createPager("https://api.bilibili.com/x/relation/tag",new Iv({pageSize:200,total:typeof e=="object"?e.count:void 0,...t}),{query:{tagid:typeof e=="object"?e.tagid:e},...n})}async fetchRelationPage(e,t,n){return await this.buildRelationPager(e,t,n).fetchNext()}async fetchRelationPageWithNextParams(e,t,n){return await this.buildRelationPager(e,t,n).fetchPageWithNextParams()}async fetchRelationAll(e,t,n,r){return await this.buildRelationPager(e,t,r).fetchAllPage(n)}async getRelation(e,t){return this.get("https://api.bilibili.com/x/space/wbi/acc/relation",{query:{mid:e,web_location:"333.1387"},...t})}getFollowTags(e){return this.get("https://api.bilibili.com/x/relation/tags",e)}getFollowingsByTag(e,t,n,r){return this.fetchRelationAll(e,t,n,r)}createFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/create",{data:{tag:e},...t})}updateFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/update",{data:e,...t})}deleteFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/del",{data:{tagid:`${e}`},...t})}async getFollowsGroupedByTag(e,t,n){const r=await this.getFollowTags(n);for(const s of r)s.list=await this.getFollowingsByTag(s,e,t,n);return r}buildFollowingsPager(e,t,n){if(!e&&!this.currUserUid)throw new kn(this.clientConfig,"uid 为空");return this.createPager("https://api.bilibili.com/x/relation/followings",new Ha({pageSize:24,...t}),{query:{vmid:e??this.currUserUid,order:"desc"},...n})}async fetchFollowingsPage(e,t,n){return await this.buildFollowingsPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildFollowingsPager(e,t,n).fetchPageWithNextParams()}async fetchFollowingsAll(e,t,n,r){return await this.buildFollowingsPager(e,t,r).fetchAllPage(n)}async followUser(e,t){await this.modify(e,Ur.FOLLOW,!0,t)}async unFollowUser(e,t){await this.modify(e,Ur.UNFOLLOW,!0,t)}copyUsersToTag(e,t,n){return this.save("https://api.bilibili.com/x/relation/tags/copyUsers",{data:{fids:e.join(","),tagids:t.join(",")},...n})}buildFansPager(e,t,n){if(!e&&!this.currUserUid)throw new kn(this.clientConfig,"uid 为空");return this.createPager("https://api.bilibili.com/x/relation/fans",new Ha({pageSize:24,...t}),{query:{vmid:e??this.currUserUid,order:"desc"},...n})}async fetchFansPage(e,t,n){return await this.buildFansPager(e,t,n).fetchNext()}async fetchFansPageWithNextParams(e,t,n){return await this.buildFansPager(e,t,n).fetchPageWithNextParams()}async fetchFansAll(e,t,n,r){return await this.buildFansPager(e,t,r).fetchAllPage(n)}async removeFan(e,t){await this.modify(e,Ur.REMOVE_FAN,!0,t)}async getStat(e,t){return await this.get("https://api.bilibili.com/x/relation/stat",{query:{vmid:e},...t})}async avoidRiskControl(e,t){await this.get("https://api.bilibili.com/x/web-interface/wbi/search/all/v2",{query:{__refresh__:"true",_extra:"",context:"",page:"1",page_size:"42",order:"",pubtime_begin_s:"0",pubtime_end_s:"0",duration:"",from_source:"",from_spmid:"333.337",platform:"pc",highlight:"1",single_column:"0",keyword:`UID: ${e}`,ad_resource:"5646",source_tag:"3"},...t,logRequestParams:!1}),await xs(666,t?.signal),await this.getRelation(e),await xs(50,t?.signal),await this.getStat(e,t),await xs(50,t?.signal),await this.userService.getUpStat(e,t),await xs(666,t?.signal)}async modify(e,t,n=!0,r){n&&await this.avoidRiskControl(e,r),await this.save("https://api.bilibili.com/x/relation/modify",{query:{statistics:'{"appId":100,"platform":5}',...t.code!==Ur.BLOCK.code?{"x-bili-device-req-json":'{"platform":"web","device":"pc","spmid":"333.1387"}'}:{}},data:{fid:String(e),act:String(t.code),re_src:t.reSrc.toString(),spmid:"333.1387",extend_content:`{"entity":"query","entity_id":"${e}"}`,gaia_source:"web_main",...t.code!==Ur.BLOCK.code?{is_from_frontend_component:"true"}:{}},ignoreBusinessError:!1,...r})}async blockUser(e,t){await this.modify(e,Ur.BLOCK,!1,t)}async unBlockUser(e,t){await this.modify(e,Ur.UNBLOCK,!0,t)}buildBlocksPager(e,t){return this.createPager("https://api.bilibili.com/x/relation/blacks",new Ha({pageSize:50,...e}),{...t})}async fetchBlocksPage(e,t){return await this.buildBlocksPager(e,t).fetchNext()}async fetchBlocksPageWithNextParams(e,t){return await this.buildBlocksPager(e,t).fetchPageWithNextParams()}async fetchBlocksAll(e,t,n){return await this.buildBlocksPager(e,n).fetchAllPage(t)}};Fe=ze(Fu);I(Fe,1,"fetchRelationPage",e1,Me);I(Fe,1,"fetchRelationPageWithNextParams",qv,Me);I(Fe,1,"fetchRelationAll",Qv,Me);I(Fe,1,"getRelation",Jv,Me);I(Fe,1,"getFollowTags",zv,Me);I(Fe,1,"getFollowingsByTag",Xv,Me);I(Fe,1,"createFollowTag",Hv,Me);I(Fe,1,"updateFollowTag",Kv,Me);I(Fe,1,"deleteFollowTag",Zv,Me);I(Fe,1,"getFollowsGroupedByTag",jv,Me);I(Fe,1,"fetchFollowingsPage",Uv,Me);I(Fe,1,"fetchPageWithNextParams",Yv,Me);I(Fe,1,"fetchFollowingsAll",Gv,Me);I(Fe,1,"followUser",Dv,Me);I(Fe,1,"unFollowUser",$v,Me);I(Fe,1,"copyUsersToTag",Vv,Me);I(Fe,1,"fetchFansPage",Wv,Me);I(Fe,1,"fetchFansPageWithNextParams",Mv,Me);I(Fe,1,"fetchFansAll",Lv,Me);I(Fe,1,"getStat",Fv,Me);I(Fe,1,"avoidRiskControl",kv,Me);I(Fe,1,"modify",Ov,Me);I(Fe,1,"blockUser",Bv,Me);I(Fe,1,"unBlockUser",Pv,Me);I(Fe,1,"fetchBlocksPage",Rv,Me);I(Fe,1,"fetchBlocksPageWithNextParams",Tv,Me);I(Fe,1,"fetchBlocksAll",Cv,Me);Je(Fe,Me);var N8=class extends Dt{hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.cursor.ps===0||r.cursor.max===0)return!1}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r===null)t.ps=this.options.pageSize,t.max=0,t.view_at=0,t.business=t.business??"";else{const s=r.data.cursor;t.ps=s.ps,t.max=s.max,t.view_at=s.view_at,t.business=s.business}}getList(e){return e.data.list}},t1,n1,r1,s1,o1,a1,i1,l1,Lu,wn,Yn=class extends(Lu=Xe,l1=[N()],i1=[N()],a1=[N()],o1=[N()],s1=[N()],r1=[N()],n1=[N()],t1=[N()],Lu){constructor(){super(...arguments),Qe(wn,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/web-interface/history/cursor",new N8({pageSize:20,...t}),{query:{business:e??""},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}deleteHistory(e,t){return this.save("https://api.bilibili.com/x/v2/history/delete",{data:{kid:e},...t})}clearHistory(e){return this.save("https://api.bilibili.com/x/v2/history/clear",{...e})}setHistoryShadow(e,t){return this.save("https://api.bilibili.com/x/v2/history/shadow/set",{data:{switch:e},...t})}getHistoryShadow(e){return this.get("https://api.bilibili.com/x/v2/history/shadow",{...e})}report(e,t){return this.save("https://api.bilibili.com/x/v2/history/report",{data:{...e,platform:"web"},...t})}};wn=ze(Lu);I(wn,1,"fetchPage",l1,Yn);I(wn,1,"fetchPageWithNextParams",i1,Yn);I(wn,1,"fetchAll",a1,Yn);I(wn,1,"deleteHistory",o1,Yn);I(wn,1,"clearHistory",s1,Yn);I(wn,1,"setHistoryShadow",r1,Yn);I(wn,1,"getHistoryShadow",n1,Yn);I(wn,1,"report",t1,Yn);Je(wn,Yn);var u1,c1,f1,d1,p1,h1,g1,m1,b1,v1,Mu,zt,ln=class extends(Mu=Xe,v1=[N()],b1=[N()],m1=[N()],g1=[N()],h1=[N()],p1=[N()],d1=[N()],f1=[N()],c1=[N()],u1=[N()],Mu){constructor(){super(...arguments),Qe(zt,5,this)}getSettings(e){return this.get("https://api.vc.bilibili.com/link_setting/v1/link_setting/get",{query:{msg_notify:1,show_unfollowed_msg:1,build:0,mobi_app:"web"},...e})}updateSettings(e,t){return this.save("https://api.vc.bilibili.com/link_setting/v1/link_setting/set",{data:{...e,build:0,mobi_app:"web"},...t})}getBlockWords(e){return this.get("https://api.vc.bilibili.com/x/im/link_setting/get_block_words",{query:{build:0,mobi_app:"web"},...e})}addBlockWord(e,t){return this.save("https://api.vc.bilibili.com/x/im/link_setting/add_block_word",{data:{content:e,build:0,mobi_app:"web"},...t})}delBlockWord(e,t){return this.save("https://api.vc.bilibili.com/x/im/link_setting/del_block_word",{data:{content:e,build:0,mobi_app:"web"},...t})}getAutoReplyRules(e,t){return this.get("https://api.vc.bilibili.com/x/im/auto_reply/get_reply_text",{query:{"type[]":e,build:0,mobi_app:"web"},...t})}setAutoReplyRule(e,t){return this.save("https://api.vc.bilibili.com/x/im/auto_reply/set_reply_text",{data:{build:0,mobi_app:"web",...e},...t})}delAutoReplyRule(e,t){return this.save("https://api.vc.bilibili.com/x/im/auto_reply/del_reply_text",{data:{id:e,build:0,mobi_app:"web"},...t})}getSystemSettings(e){return this.get("https://api.vc.bilibili.com/link_setting/v1/link_setting/get_sys_setting",{query:{build:0,mobi_app:"web"},...e})}canShowCreateGroupIcon(e){return this.get("https://api.vc.bilibili.com/link_group/v1/member/show_create_group_icon",{query:{build:0,mobi_app:"web"},...e})}};zt=ze(Mu);I(zt,1,"getSettings",v1,ln);I(zt,1,"updateSettings",b1,ln);I(zt,1,"getBlockWords",m1,ln);I(zt,1,"addBlockWord",g1,ln);I(zt,1,"delBlockWord",h1,ln);I(zt,1,"getAutoReplyRules",p1,ln);I(zt,1,"setAutoReplyRule",d1,ln);I(zt,1,"delAutoReplyRule",f1,ln);I(zt,1,"getSystemSettings",c1,ln);I(zt,1,"canShowCreateGroupIcon",u1,ln);Je(zt,ln);var I8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.cursor;t.id=s.id,t.reply_time=s.time}}getList(e){return e.data.items}},C8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.cursor;t.id=s.id,t.at_time=s.time}}getList(e){return e.data.items}},T8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.total.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.total.cursor;t.id=s.id,t.like_time=s.time}}getList(e){return e.data.total.items}},R8=class extends Dt{constructor(e){super({pageSize:17,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r==null||qs(r))return!1}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){n!=null&&n.length>0&&(t.cursor=n[n.length-1].cursor)}getList(e){return e.data}},y1,_1,w1,E1,A1,S1,x1,N1,I1,C1,T1,R1,P1,B1,O1,k1,F1,L1,M1,Wu,rt,ot=class extends(Wu=Xe,M1=[N()],L1=[N()],F1=[N()],k1=[N()],O1=[N()],B1=[N()],P1=[N()],R1=[N()],T1=[N()],C1=[N()],I1=[N()],N1=[N()],x1=[N()],S1=[N()],A1=[N()],E1=[N()],w1=[N()],_1=[N()],y1=[N()],Wu){constructor(){super(...arguments),Qe(rt,5,this)}getUnreadCount(e){return this.get("https://api.vc.bilibili.com/x/im/web/msgfeed/unread",{query:{build:0,mobi_app:"web"},...e})}delMessage(e,t,n){return this.save("https://api.bilibili.com/x/msgfeed/del",{data:{tp:t,id:e,build:0,mobi_app:"web",platform:"web"},...n})}buildBasePager(e,t,n){return this.createPager(`https://api.bilibili.com/x/msgfeed/${e}`,t,{query:{platform:"web",build:0,mobi_app:"web",web_location:"333.40164"},...n})}buildReplyPager(e,t){return this.buildBasePager("reply",new I8(e),t)}buildAtPager(e,t){return this.buildBasePager("at",new C8(e),t)}buildLikePager(e,t){return this.buildBasePager("like",new T8(e),t)}async fetchReplyPage(e,t){return await this.buildReplyPager(e,t).fetchNext()}async fetchReplyPageWithNextParams(e,t){return await this.buildReplyPager(e,t).fetchPageWithNextParams()}async fetchReplyAll(e,t,n){return await this.buildReplyPager(e,n).fetchAllPage(t)}delReplyMessage(e,t){return this.delMessage(e,1,t)}async fetchAtPage(e,t){return await this.buildAtPager(e,t).fetchNext()}async fetchAtPageWithNextParams(e,t){return await this.buildAtPager(e,t).fetchPageWithNextParams()}async fetchAtAll(e,t,n){return await this.buildAtPager(e,n).fetchAllPage(t)}delAtMessage(e,t){return this.delMessage(e,2,t)}async fetchLikePage(e,t){return await this.buildLikePager(e,t).fetchNext()}async fetchLikePageWithNextParams(e,t){return await this.buildLikePager(e,t).fetchPageWithNextParams()}async fetchLikeAll(e,t,n){return await this.buildLikePager(e,n).fetchAllPage(t)}setLikeMsgState(e,t,n){return this.save("https://api.bilibili.com/x/msgfeed/notice",{data:{tp:0,id:e,notice_state:t,build:0,mobi_app:"web",platform:"web"},...n})}delLikeMessage(e,t){return this.delMessage(e,0,t)}buildSystemPager(e,t){return this.createPager("https://message.bilibili.com/x/sys-msg/query_notify_list",new R8(e),{query:{page_size:20,build:0,platform:"web",mobi_app:"web",data_type:"web",has_up:"1",source_platform:"web",web_location:"333.40164"},...t})}async fetchSystemPage(e,t){return await this.buildSystemPager(e,t).fetchNext()}async fetchSystemPageWithNextParams(e,t){return await this.buildSystemPager(e,t).fetchPageWithNextParams()}async fetchSystemAll(e,t,n){return await this.buildSystemPager(e,n).fetchAllPage(t)}delSysMessages(e,t){return this.save("https://message.bilibili.com/x/sys-msg/del_notify_list",{query:{build:0,mobi_app:"web",csrf:this.clientConfig.context?.userCookie.bili_jct??""},data:JSON.stringify({station_ids:e.filter(n=>n.is_station===1).map(n=>n.id),ids:e.filter(n=>n.is_station!==1).map(n=>n.id),type:4,build:0,mobi_app:"web"}),...t})}};rt=ze(Wu);I(rt,1,"getUnreadCount",M1,ot);I(rt,1,"delMessage",L1,ot);I(rt,1,"fetchReplyPage",F1,ot);I(rt,1,"fetchReplyPageWithNextParams",k1,ot);I(rt,1,"fetchReplyAll",O1,ot);I(rt,1,"delReplyMessage",B1,ot);I(rt,1,"fetchAtPage",P1,ot);I(rt,1,"fetchAtPageWithNextParams",R1,ot);I(rt,1,"fetchAtAll",T1,ot);I(rt,1,"delAtMessage",C1,ot);I(rt,1,"fetchLikePage",I1,ot);I(rt,1,"fetchLikePageWithNextParams",N1,ot);I(rt,1,"fetchLikeAll",x1,ot);I(rt,1,"setLikeMsgState",S1,ot);I(rt,1,"delLikeMessage",A1,ot);I(rt,1,"fetchSystemPage",E1,ot);I(rt,1,"fetchSystemPageWithNextParams",w1,ot);I(rt,1,"fetchSystemAll",_1,ot);I(rt,1,"delSysMessages",y1,ot);Je(rt,ot);var P8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.has_more===0||r.session_list==null||r.session_list.length===0)return!1}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.session_list;s!=null&&(t.end_ts=s[s.length-1].session_ts)}}getList(e){return e.data.session_list}},W1,V1,$1,D1,G1,Y1,U1,Vu,Un,pr=class extends(Vu=Xe,U1=[N()],Y1=[N()],G1=[N()],D1=[N()],$1=[N()],V1=[N()],W1=[N()],Vu){constructor(){super(...arguments),Qe(Un,5,this)}getUnreadCount(e){return this.get("https://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread",{query:{build:0,mobi_app:"web"},...e})}getMyGroupUnreadCount(e){return this.get("https://api.vc.bilibili.com/session_svr/v1/session_svr/my_group_unread",{query:{build:0,mobi_app:"web"},...e})}buildPager(e,t,n){const r=e?.session_type??1;return this.createPager("https://api.vc.bilibili.com/session_svr/v1/session_svr/get_sessions",new P8(t),{query:{...e,session_type:r,group_fold:r===1?"2":"1",size:r!==1?1:void 0,unfollow_fold:"0",sort_rule:"1",platform:"web",build:0,mobi_app:"web",web_location:"333.40164"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async setSessionRead(e,t){await this.save("https://api.vc.bilibili.com/session_svr/v1/session_svr/update_ack",{data:{talker_id:e.talker_id,session_type:e.session_type,ack_seqno:e.ack_seqno,build:0,mobi_app:"web"},...t})}async delSession(e,t){await this.save("https://api.vc.bilibili.com/session_svr/v1/session_svr/remove_session",{data:{talker_id:e.talker_id,session_type:e.session_type,build:0,mobi_app:"web"},...t})}};Un=ze(Vu);I(Un,1,"getUnreadCount",U1,pr);I(Un,1,"getMyGroupUnreadCount",Y1,pr);I(Un,1,"fetchPage",G1,pr);I(Un,1,"fetchPageWithNextParams",D1,pr);I(Un,1,"fetchAll",$1,pr);I(Un,1,"setSessionRead",V1,pr);I(Un,1,"delSession",W1,pr);Je(Un,pr);var B8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.count<=t.length||r.list.length===0)return!1}return!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.list}},j1,Z1,K1,H1,X1,z1,J1,Q1,q1,$u,un,En=class extends($u=Xe,q1=[N()],Q1=[N()],J1=[N()],z1=[N()],X1=[N()],H1=[N()],K1=[N()],Z1=[N()],j1=[N()],$u){constructor(){super(...arguments),Qe(un,5,this)}buildPager(e,t){return this.createPager("https://api.bilibili.com/x/v2/history/toview/web",new B8(e),{query:{viewed:0,asc:!1,key:"",need_split:!0,build:0,platform:"web",mobi_app:"web"},...t})}async fetchPage(e,t){return await this.buildPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPager(e,t).fetchPageWithNextParams()}async fetchAll(e,t,n){return await this.buildPager(e,n).fetchAllPage(t)}async addToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/add",{data:{aid:e},...t})}async addAllToView(e,t){await this.save("https://space.bilibili.com/ajax/channel/addAllToView",{data:{...typeof e=="string"?{bvid:e}:{aid:e}},...t})}async delToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/v2/dels",{data:{resources:e.join(",")},...t})}async clearToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/clear",{data:{clean_type:e},...t})}async moveFavFolder(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/move",{data:{resources:e.join(","),tar_media_id:t}})}async getTotal(e){const t=await this.get("https://api.bilibili.com/x/v3/fav/folder/list4navigate?web_location=333.1007",e);try{return t[1].mediaListResponse.count}catch{return}}};un=ze($u);I(un,1,"fetchPage",q1,En);I(un,1,"fetchPageWithNextParams",Q1,En);I(un,1,"fetchAll",J1,En);I(un,1,"addToView",z1,En);I(un,1,"addAllToView",X1,En);I(un,1,"delToView",H1,En);I(un,1,"clearToView",K1,En);I(un,1,"moveFavFolder",Z1,En);I(un,1,"getTotal",j1,En);Je(un,En);var wf=class extends Dt{constructor(e,t="list",n="has_more",r){super(e),this.listKey=t,this.hasMoreKey=n,this.countKey=r}hasNextPage(e,t,n){return n!==null&&n.data?n.data.has_more:!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data[this.listKey]}getTotal(e){if(this.countKey&&e)return e.data[this.countKey]}},e2,t2,n2,r2,s2,o2,a2,i2,l2,u2,c2,f2,d2,p2,Du,Et,Tt=class extends(Du=Xe,p2=[N()],d2=[N()],f2=[N()],c2=[N()],u2=[N()],l2=[N()],i2=[N()],a2=[N()],o2=[N()],s2=[N()],r2=[N()],n2=[N()],t2=[N()],e2=[N()],Du){constructor(){super(...arguments),Qe(Et,5,this)}async getFavFolders(e,t,n){return await this.get("https://api.bilibili.com/x/v3/fav/folder/created/list-all",{query:{up_mid:e??this.currUserUid,...t?{rid:t}:{},web_location:"333.1387"},...n})??{list:[],count:0}}async getFavFolderMeta(e,t){return await this.get("https://api.bilibili.com/x/v3/fav/folder/info",{query:{media_id:e},...t})}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v3/fav/resource/list",new wf({pageSize:40,...t},"medias"),{query:{...e,platform:"web",web_location:"333.1387"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){const s=this.buildPager(e,t,r),o=await s.fetchAllPage(n);if(!s.lastApiResponse?.data.info)throw new kn(this.clientConfig,`收藏夹[${e.media_id}]不存在`);return{info:s.lastApiResponse?.data.info,medias:o,has_more:!1}}async getFavIds(e,t){return await this.get("https://api.bilibili.com/x/v3/fav/resource/ids",{query:{media_id:e},...t})}async addFavFolder(e,t){return await this.save("https://api.bilibili.com/x/v3/fav/folder/add",{data:{...e},...t})}async updateFavFolder(e,t){const{id:n,...r}=e;return await this.save("https://api.bilibili.com/x/v3/fav/folder/edit",{data:{...r,media_id:n},...t})}async delFavFolder(e,t){await this.save("https://api.bilibili.com/x/v3/fav/folder/del",{data:{media_ids:e.join(",")},...t})}async copyFavItems(e,t,n,r,s){await this.save("https://api.bilibili.com/x/v3/fav/resource/copy",{data:{src_media_id:e,tar_media_id:t,mid:n,resources:r,platform:"web"},...s})}async moveFavItems(e,t,n,r,s){await this.save("https://api.bilibili.com/x/v3/fav/resource/move",{data:{src_media_id:e,tar_media_id:t,mid:n,resources:r,platform:"web"},...s})}async batchDelFavItems(e,t,n){await this.save("https://api.bilibili.com/x/v3/fav/resource/batch-del",{data:{media_id:e,resources:t,platform:"web"},...n})}async cleanFavItems(e,t){await this.save("https://api.bilibili.com/x/v3/fav/resource/clean",{data:{media_id:e,platform:"web"},...t})}async favVideo(e,t,n,r){return await this.save("https://api.bilibili.com/x/v3/fav/resource/deal",{data:{rid:e,add_media_ids:t.join(","),del_media_ids:n.join(","),type:"2",platform:"web",eab_x:"1",ramval:"10",ga:"1",gaia_source:"web_normal"},...r})}};Et=ze(Du);I(Et,1,"getFavFolders",p2,Tt);I(Et,1,"getFavFolderMeta",d2,Tt);I(Et,1,"fetchPage",f2,Tt);I(Et,1,"fetchPageWithNextParams",c2,Tt);I(Et,1,"fetchAll",u2,Tt);I(Et,1,"getFavIds",l2,Tt);I(Et,1,"addFavFolder",i2,Tt);I(Et,1,"updateFavFolder",a2,Tt);I(Et,1,"delFavFolder",o2,Tt);I(Et,1,"copyFavItems",s2,Tt);I(Et,1,"moveFavItems",r2,Tt);I(Et,1,"batchDelFavItems",n2,Tt);I(Et,1,"cleanFavItems",t2,Tt);I(Et,1,"favVideo",e2,Tt);Je(Et,Tt);var h2,g2,m2,b2,v2,Gu,kr,ds=class extends(Gu=Xe,v2=[N()],b2=[N()],m2=[N()],g2=[N()],h2=[N()],Gu){constructor(){super(...arguments),Qe(kr,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v3/fav/folder/collected/list",new wf({pageSize:50,...t},void 0,void 0,"count"),{query:{up_mid:e??this.currUserUid,platform:"web",web_location:"333.1387"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async add(e,t){await this.save("https://api.bilibili.com/x/v3/fav/season/fav",{data:{season_id:e,platform:"web"},...t})}async del(e,t){await this.save("https://api.bilibili.com/x/v3/fav/season/unfav",{data:{season_id:e,platform:"web"},...t})}};kr=ze(Gu);I(kr,1,"fetchPage",v2,ds);I(kr,1,"fetchPageWithNextParams",b2,ds);I(kr,1,"fetchAll",m2,ds);I(kr,1,"add",g2,ds);I(kr,1,"del",h2,ds);Je(kr,ds);var O8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return n!==null&&n.data?n.data.has_more:!0}parsePageNum(e){if(e)return e.page}updateNextPageParams(e,t,n,r){t.page=e,t.page_size=this.options.pageSize}getList(e){return e.data.items}},y2,_2,w2,E2,A2,S2,Yu,hr,Fr=class extends(Yu=Xe,S2=[N()],A2=[N()],E2=[N()],w2=[N()],_2=[N()],y2=[N()],Yu){constructor(){super(...arguments),Qe(hr,5,this)}buildPager(e,t){return this.createPager("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/feed/fav",new O8(e),{query:{platform:"web",web_location:"333.1387"},...t})}async fetchPage(e,t){return await this.buildPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPager(e,t).fetchPageWithNextParams()}async fetchAll(e,t,n){return await this.buildPager(e,n).fetchAllPage(t)}async del(e,t){await this.post("https://api.bilibili.com/x/community/cosmo/interface/simple_action",{query:{csrf:this.clientConfig.context?.userCookie.bili_jct,gaia_source:"main_web"},data:JSON.stringify({"":{spmid:"444.42.0.0",from:"unknown",from_spmid:"333.1387.0.0"},action:4,entity:{object_id_str:e,type:{biz:2}}}),...t})}async addByCvId(e,t){await this.save("https://api.bilibili.com/x/article/favorites/add",{data:{id:e},...t})}async addByOpusId(e,t){const n=await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail",{query:{id:e},...t});await Xo(200,300),await this.addByCvId(n.fallback.id)}};hr=ze(Yu);I(hr,1,"fetchPage",S2,Fr);I(hr,1,"fetchPageWithNextParams",A2,Fr);I(hr,1,"fetchAll",E2,Fr);I(hr,1,"del",w2,Fr);I(hr,1,"addByCvId",_2,Fr);I(hr,1,"addByOpusId",y2,Fr);Je(hr,Fr);var go={all:0},x2,N2,I2,C2,T2,R2,Uu,gr,Lr=class extends(Uu=Xe,R2=[N()],T2=[N()],C2=[N()],I2=[N()],N2=[N()],x2=[N()],Uu){constructor(){super(...arguments),Qe(gr,5,this)}buildPager(e,t,n=go.all,r,s){return this.createPager("https://api.bilibili.com/x/space/bangumi/follow/list",new Ha({pageSize:24,...r}),{query:{vmid:e??this.currUserUid,type:t,follow_status:n,platform:"web",web_location:"333.1387"},...s})}async fetchPage(e,t,n=go.all,r,s){return await this.buildPager(e,t,n,r,s).fetchNext()}async fetchPageWithNextParams(e,t,n=go.all,r,s){return await this.buildPager(e,t,n,r,s).fetchPageWithNextParams()}async fetchAll(e,t,n=go.all,r,s,o){return await this.buildPager(e,t,n,r,o).fetchAllPage(s)}async fetchMyAll(e,t=go.all,n,r,s){return this.fetchAll(this.currUserUid,e,t,n,r,s)}async add(e,t){await this.save("https://api.bilibili.com/pgc/web/follow/add",{data:{season_id:e,platform:"web"},...t})}async del(e,t){await this.save("https://api.bilibili.com/pgc/web/follow/del",{data:{season_id:e,platform:"web"},...t})}};gr=ze(Uu);I(gr,1,"fetchPage",R2,Lr);I(gr,1,"fetchPageWithNextParams",T2,Lr);I(gr,1,"fetchAll",C2,Lr);I(gr,1,"fetchMyAll",I2,Lr);I(gr,1,"add",N2,Lr);I(gr,1,"del",x2,Lr);Je(gr,Lr);var k8=class extends Dt{constructor(e){super({pageSize:40,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data,s=r.page;if(qs(r.list.vlist)||s.count<=t.length||s.count<=s.pn*s.ps)return!1}return!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.list.vlist}},P2,B2,O2,ju,no,ba=class extends(ju=Xe,O2=[N()],B2=[N()],P2=[N()],ju){constructor(){super(...arguments),Qe(no,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/space/wbi/arc/search",new k8(t),{query:{...e,platform:"web"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){const s=this.buildPager(e,t,r);return await s.fetchAllPage(n),s.lastApiResponse.data.list.vlist=s.list,s.lastApiResponse.data}};no=ze(ju);I(no,1,"fetchPage",O2,ba);I(no,1,"fetchPageWithNextParams",B2,ba);I(no,1,"fetchAll",P2,ba);Je(no,ba);var k2,F2,L2,M2,Zu,ps,hs=class extends(Zu=Xe,M2=[N()],L2=[N()],F2=[N()],k2=[N()],Zu){constructor(){super(...arguments),Qe(ps,5,this)}getOnlineCount(e,t){return this.get("https://api.bilibili.com/x/player/online/total",{query:{...this.resolveVideoId(e),cid:e.cid},...t})}getParts(e,t){return this.get("https://api.bilibili.com/x/player/pagelist",{query:{...this.resolveVideoId(e)},...t})}async getOwnParts(e,t){const n=await this.get("https://member.bilibili.com/x/vupre/web/archive/view",{query:{topic_grey:"1",bvid:e},...t});return n?.videos&&Array.isArray(n.videos)?n.videos:[]}getInfo(e,t){return this.get("https://api.bilibili.com/x/web-interface/wbi/view",{query:{...this.resolveVideoId(e)},...t})}};ps=ze(Zu);I(ps,1,"getOnlineCount",M2,hs);I(ps,1,"getParts",L2,hs);I(ps,1,"getOwnParts",F2,hs);I(ps,1,"getInfo",k2,hs);Je(ps,hs);var F8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.has_more!==void 0)return r.has_more}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data;t.offset=s.offset}}getList(e){return e.data.items}},W2,V2,$2,D2,G2,Ku,Mr,Wr=class extends(Ku=Xe,G2=[N()],D2=[N()],$2=[N()],V2=[N()],W2=[N()],Ku){constructor(){super(...arguments),Qe(Mr,5,this)}buildDynamicPager(e,t,n){return this.createPager("https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all",new F8(t),{query:{...e,platform:"web",build:0,mobi_app:"web",web_location:"333.1365"},...n})}async fetchDynamicPage(e,t,n){return await this.buildDynamicPager(e,t,n).fetchNext()}async fetchDynamicPageWithNextParams(e,t,n){return await this.buildDynamicPager(e,t,n).fetchPageWithNextParams()}async fetchDynamicAll(e,t,n,r){return await this.buildDynamicPager(e,t,r).fetchAllPage(n)}async newUpdatesCount(e,t){return(await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all/update",{query:{...e,web_location:"333.1365"},...t})).update_num}async getDetail(e,t){return(await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/detail",{query:{timezone_offset:"-480",platform:"web",gaia_source:"main_web",features:"itemOpusStyle,opusBigCover,onlyfansVote,endFooterHidden,decorationCard,onlyfansAssetsV2,ugcDelete,onlyfansQaCard,editable,opusPrivateVisible,avatarAutoTheme,sunflowerStyle,cardsEnhance,eva3CardOpus,eva3CardVideo,eva3CardComment,eva3CardVote,eva3CardUser",web_location:"333.1368","x-bili-device-req-json":'{"platform":"web","device":"pc","spmid":"333.1368"}',...e},...t})).item}};Mr=ze(Ku);I(Mr,1,"fetchDynamicPage",G2,Wr);I(Mr,1,"fetchDynamicPageWithNextParams",D2,Wr);I(Mr,1,"fetchDynamicAll",$2,Wr);I(Mr,1,"newUpdatesCount",V2,Wr);I(Mr,1,"getDetail",W2,Wr);Je(Mr,Wr);var Y2,U2,j2,Z2,K2,H2,X2,Hu,jn,mr=class extends(Hu=Xe,X2=[N()],H2=[N()],K2=[N()],Z2=[N()],j2=[N()],U2=[N()],Y2=[N()],Hu){constructor(){super(...arguments),Qe(jn,5,this),this._videoInfoService=null}get videoInfoService(){return this._videoInfoService||(this._videoInfoService=new hs(this.api)),this._videoInfoService}getRelation(e,t){return this.get("https://api.bilibili.com/x/web-interface/archive/relation",{query:{...this.resolveVideoId(e)},returnFormat:"ApiResponse",ignoreBusinessError:!0,...t})}like(e,t){return this.save("https://api.bilibili.com/x/web-interface/archive/like",{data:{...this.resolveVideoId(e),like:e.like?"1":"2"},...t})}async hasLike(e,t){return await this.get("https://api.bilibili.com/x/web-interface/archive/has/like",{query:{...this.resolveVideoId(e)},...t})===1}dislike(e,t){return this.save("https://app.biliapi.net/x/v2/view/dislike",{data:{aid:e.avid,dislike:e.dislike?"0":"1"},...t})}async coin(e,t){let n=e.bvid;return n||(n=(await this.videoInfoService.getInfo(e)).bvid),this.save("https://api.bilibili.com/x/web-interface/coin/add",{data:{bvid:n,multiply:e.multiply,select_like:e.select_like??0,cross_domain:!0,from_spmid:"333.337.search-card.all.click",spmid:"333.788.0.0",statistics:'{"appId":100,"platform":5}',eab_x:2,ramval:0,source:"web_normal",ga:1},returnFormat:"ApiResponse",ignoreBusinessError:!0,...t,referer:`https://www.bilibili.com/video/${n}/?spm_id_from=333.1391.0.0`})}triple(e,t){return this.save("https://api.bilibili.com/x/web-interface/archive/like/triple",{data:{...this.resolveVideoId(e)},...t})}share(e,t){return this.save("https://api.bilibili.com/x/web-interface/share/add",{data:{...this.resolveVideoId(e),eab_x:1,ramval:316,source:"web_normal",ga:1},...t})}};jn=ze(Hu);I(jn,1,"getRelation",X2,mr);I(jn,1,"like",H2,mr);I(jn,1,"hasLike",K2,mr);I(jn,1,"dislike",Z2,mr);I(jn,1,"coin",j2,mr);I(jn,1,"triple",U2,mr);I(jn,1,"share",Y2,mr);Je(jn,mr);var z2,Xu,zi,Ef=class extends(Xu=Xe,z2=[N()],Xu){constructor(){super(...arguments),Qe(zi,5,this)}heartbeat(e,t,n){const r={params:{},body:{}},s=(a,i,l)=>{r.body[a]=r.params[l||"w"+a]=t[a]??e[l||"w"+a]??i};s("start_ts",Math.floor(Date.now()/1e3)),s("mid",this.currUserUid),s("aid",0),s("dt",2),s("realtime",0),s("played_time",0,"w_playedtime"),s("real_played_time",0),s("video_duration",180),s("last_play_progress_time",0);const o="https://www.bilibili.com/?spm_id_from=333.1365.0.0";return this.save("https://api.bilibili.com/x/click-interface/web/heartbeat",{query:{...r.params,web_location:1315873,...e},data:{quality:80,type:3,outer:0,statistics:'{"appId":100,"platform":5,"abtest":"","version":""}',max_play_progress_time:r.body.last_play_progress_time+r.body.played_time,refer_url:o,...r.body,mobi_app:"web",device:"web",platform:"web",cur_language_vt:"{}",perfer_type:"{}",play_mode:"1",spmid:"333.788.0.0",from_spmid:"333.1007.tianma.1-2-2.click",session:crypto.randomUUID().replace(/-/g,""),extra:'{"player_version":"4.8.36","play_method":3,"play_volume":1,"auto_play":0}',...t},init:{headers:{referer:o}},...n})}};zi=ze(Xu);I(zi,1,"heartbeat",z2,Ef);Je(zi,Ef);var J2,Q2,zu,va,Ji=class extends(zu=Xe,Q2=[N()],J2=[N()],zu){constructor(){super(...arguments),Qe(va,5,this)}getDailyTaskStatus(e){return this.get("https://api.bilibili.com/x/member/web/exp/reward",e)}getCoinTodayExp(e){return this.get("https://api.bilibili.com/x/web-interface/coin/today/exp",e)}};va=ze(zu);I(va,1,"getDailyTaskStatus",Q2,Ji);I(va,1,"getCoinTodayExp",J2,Ji);Je(va,Ji);var L8=class extends wf{constructor(e,t="list",n){super(e,t),this.hasMoreKey=n}hasNextPage(e,t,n){return n!==null&&n.data?n.data[this.hasMoreKey]:!0}},q2,ey,ty,ny,Ju,gs,ro=class extends(Ju=Xe,ny=[N()],ty=[N()],ey=[N()],q2=[N()],Ju){constructor(){super(...arguments),Qe(gs,5,this)}buildPopularPager(e,t){return this.createPager("https://api.bilibili.com/x/web-interface/popular",new L8({pageSize:20,...e},"list","no_more"),{query:{},...t})}async fetchPopularPage(e,t){return await this.buildPopularPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPopularPager(e,t).fetchPageWithNextParams()}getPopularSeriesList(e){return this.get("https://api.bilibili.com/x/web-interface/popular/series/list",{...e})}getPopularSeriesInfo(e,t){return this.get("https://api.bilibili.com/x/web-interface/popular/series/one",{query:{number:e},...t})}};gs=ze(Ju);I(gs,1,"fetchPopularPage",ny,ro);I(gs,1,"fetchPageWithNextParams",ty,ro);I(gs,1,"getPopularSeriesList",ey,ro);I(gs,1,"getPopularSeriesInfo",q2,ro);Je(gs,ro);var ry,sy,Qu,ya,Qi=class extends(Qu=Xe,sy=[N()],ry=[N()],Qu){constructor(){super(...arguments),Qe(ya,5,this)}getNavNum(e,t){return this.get("https://api.bilibili.com/x/space/navnum",{query:{mid:e},...t})}getFavNum(e,t){return this.get("https://api.bilibili.com/x/space/fav/nav",{query:{mid:e},...t})}};ya=ze(Qu);I(ya,1,"getNavNum",sy,Qi);I(ya,1,"getFavNum",ry,Qi);Je(ya,Qi);var oy,ay,qu,_a,qi=class extends(qu=Xe,ay=[N()],oy=[N()],qu){constructor(){super(...arguments),Qe(_a,5,this)}getSpaceSettings(e){return this.get("https://api.bilibili.com/x/space/setting",{query:{web_location:"333.1387",mid:this.currUserUid},...e})}updatePrivacy(e,t){const n=Object.keys(e)[0],r=e[n];return this.save("https://api.bilibili.com/x/space/privacy/modify",{data:{field:n,value:r},...t})}};_a=ze(qu);I(_a,1,"getSpaceSettings",ay,qi);I(_a,1,"updatePrivacy",oy,qi);Je(_a,qi);var M8=(e="info")=>({timeout:5e3,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36",referer:"https://space.bilibili.com/10000",logLevel:e,logger:u0(e,(t,...n)=>{console[t](`[${new Date().toLocaleString()}]`,...n)}),autoMixinKey:!1}),iy={method:"GET",skipWbiSign:!1,autoCsrf:!0,logRequestParams:!0},W8={...iy,returnFormat:"ApiResponseData",ignoreBusinessError:!1},ly,uy,ec,wa,el=class extends(ec=Xe,uy=[N()],ly=[N()],ec){constructor(){super(...arguments),Qe(wa,5,this)}get userService(){return this.api.client.user}getPlayUrl(e,t){return this.get("https://api.bilibili.com/x/player/wbi/playurl",{query:{fnval:1,fourk:1,high_quality:1,gaia_source:"view-card ",...e},init:{headers:{referer:`https://www.bilibili.com/video/${e.bvid}/?spm_id_from=333.1391.0.0`}},...t})}async getBestQualityUrl(e,t){const n=await this.getPlayUrl({...e,fnval:4048,qn:129},t);if(n.quality===n.accept_quality[0])return n;let r=n.accept_quality[0];await Xo(100,200);const s=await this.userService.getMyInfo(void 0,t);return await Xo(100,200),s.vip.type===0&&n.accept_quality[0]>=80&&(r=80),this.getPlayUrl({...e,qn:r},t)}};wa=ze(ec);I(wa,1,"getPlayUrl",uy,el);I(wa,1,"getBestQualityUrl",ly,el);Je(wa,el);var V8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data,s=r.page;if(qs(r.replies)||s.count<=t.length||s.count<=s.num*s.size)return!1}return!0}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.replies}parsePageNum(e){if(e?.pn)return e?.pn}},$8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data,s=r.cursor;if(qs(r.replies)||s.is_end)return!1}return!0}updateNextPageParams(e,t,n,r){if(r){const s=r.data;t.pagination_str=`{"offset":"${s.cursor.pagination_reply.next_offset}"}`}}getList(e){const t=e.data,n=t.replies;return t.top.upper&&n.push(t.top.upper),n}parsePageNum(e){}},D8=23442827791579n,G8=2251799813685247n,Y8=58n,kh="FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf",cy=Object.create(null);for(let e=0;e<kh.length;e++)cy[kh[e]]=BigInt(e);function U8(e){if(!e.startsWith("BV1")||e.length!==12)throw new Error(`[utils/bv2av] Invalid BVID format: ${e}`);const t=Array.from(e);[t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]];let n=0n;for(let r=3;r<12;r++){const s=cy[t[r]]??0n;n=n*Y8+s}return Number(n&G8^D8)}var tc=async e=>{if(e=e?.trim(),!e)throw new Error("视频链接解析错误");if(e.length===12&&e.match(/^BV1[0-9a-zA-Z]{9}$/))return{bvid:e};if(e.match(/^av[0-9]+$/))return{aid:Number(e.slice(2))};let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?tc((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/video\/([^/?]+)/),tc(t?t[1]:void 0))},Fh=async e=>{if(e=e?.trim(),!e)throw new Error("用户 uid 解析错误");if(e.match(/^[0-9]+$/))return Number(e);let t=e.match(/\buid\b\s*[::]\s*(\d+)/i);return t?Number(t[1]):(t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/),t?Fh((await fetch(e)).url):(t=e.match(/https:\/\/space.bilibili.com\/([^?]+)/),Fh(t?t[1]:void 0)))},nc=async e=>{if(e=e?.trim(),!e)throw new Error("动态链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?nc((await fetch(e)).url):(t=e.match(/https:\/\/t.bilibili.com\/([^?]+)/),nc(t?t[1]:void 0))},rc=async e=>{if(e=e?.trim(),!e)throw new Error("专栏评论链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?rc((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/read\/cv([^?]+)/),rc(t?t[1]:void 0))},Lh=async e=>{if(e=e?.trim(),!e)throw new Error("专栏链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?Lh((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/opus\/([^?]+)/),Lh(t?t[1]:void 0))},fy=async(e,t)=>{t=t?.trim();const n="评论链接解析错误";if(!t)throw new Error(n);if(t.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/))return fy(e,(await fetch(t)).url);const s=new URLSearchParams(t.split("#")[0]),o=s.get("comment_root_id"),a=s.get("comment_secondary_id"),i=s.get("type");if(o==null)throw new Error(n);try{const l=await tc(t);if(l){let{aid:u,bvid:c}=l;return c&&(u=U8(c)),{oid:String(u),type:"1",root_id:o,rpid:a??void 0}}}catch{}if(i)try{const l=await nc(t);if(l){const u=await e.getDetail({rid:l,type:i});return{oid:String(l),type:String(u.basic.comment_type),root_id:o,rpid:a??void 0}}}catch{}try{const l=await rc(t);if(l)return{oid:String(l),type:"12",root_id:o,rpid:a??void 0}}catch{}throw new Error(n)},dy,py,hy,gy,my,by,vy,yy,_y,wy,Ey,Ay,sc,Ft,Gt=class extends(sc=Xe,Ay=[N()],Ey=[N()],wy=[N()],_y=[N()],yy=[N()],vy=[N()],by=[N()],my=[N()],gy=[N()],hy=[N()],py=[N()],dy=[N()],sc){constructor(){super(...arguments),Qe(Ft,5,this),this._dynamicService=null}get dynamicService(){return this._dynamicService||(this._dynamicService=new Wr(this.api)),this._dynamicService}buildSubReplyPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v2/reply/reply",new V8({...t}),{query:{...e,platform:"web",web_location:"333.1369"},...n,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async fetchSubReplyPage(e,t,n){return await this.buildSubReplyPager(e,t,n).fetchNext()}async fetchSubPageWithNextParams(e,t,n){return await this.buildSubReplyPager(e,t,n).fetchPageWithNextParams()}async fetchSubReplyAll(e,t,n,r){return await this.buildSubReplyPager(e,t,r).fetchAllPage(n)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v2/reply/wbi/main",new $8({...t}),{query:{seek_rpid:"",...e,plat:1,web_location:"1315875"},...n,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async resolveCommentItem(e,t){const{type:n,oid:r,rpid:s,root_id:o}=await fy(this.dynamicService,e),a=s??o,i=await this.buildPager({type:n,oid:r,seek_rpid:a,mode:"3"}).fetchNext(t);if(!i||i.length===0)return null;for(let l of i){if(l.rpid_str===a)return l;if(l.replies&&l.replies.length>0){for(let u of l.replies)if(u.rpid_str===a)return u}}return null}async getRecentReplies(e,t,n){const r=this.buildPager({mode:"2",...e}),s=[];for(;;){const o=await r.fetchNext(n);if(await Xo(2222,5555),!o||o.length===0)return s;for(let a=0;a<o.length;a++){const i=o[a];if(s.length>=t)return s;s.push(i)}}}async del(e,t){await this.save("https://api.bilibili.com/x/v2/reply/del",{data:{...e},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async like(e,t){await this.save("https://api.bilibili.com/x/v2/reply/action",{data:{action:"1",...e,statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async hate(e,t){await this.save("https://api.bilibili.com/x/v2/reply/hate",{data:{action:"1",...e,statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async add(e,t){return await this.save("https://api.bilibili.com/x/v2/reply/add",{data:{...e,plat:"1",at_name_to_mid:"{}",gaia_source:"main_web",statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}};Ft=ze(sc);I(Ft,1,"fetchSubReplyPage",Ay,Gt);I(Ft,1,"fetchSubPageWithNextParams",Ey,Gt);I(Ft,1,"fetchSubReplyAll",wy,Gt);I(Ft,1,"fetchPage",_y,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ZWdTREtSZXBseRJ0CgxEbUV4cG9SZXBvcnQSMS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbUV4cG9SZXBvcnRSZXEaMS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbUV4cG9SZXBvcnRSZXNiBnByb3RvMw"),Z8=y8(j8,0),K8=class extends Xe{async fetchAll(e,t){const n=(e.duration-1)/360+1,r=[];for(let s=1;s<=n;s++){const o=await this.api.fetchArrayBuffer("https://api.bilibili.com/x/v2/dm/web/seg.so",{query:{type:"1",oid:e.cid,segment_index:s},...t}),a=new Uint8Array(o),i=lv(Z8.method.dmSegMobile.output,a);r.push(...i.elems??[]),s<n&&await Xo(500,1111,t?.signal)}return r}},Sy,oc,tl,Af=class extends(oc=Xe,Sy=[N()],oc){constructor(){super(...arguments),Qe(tl,5,this)}async getDetail(e,t){return await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail",{query:{timezone_offset:"-480",features:"onlyfansVote,onlyfansAssetsV2,decorationCard,htmlNewStyle,ugcDelete,editable,opusPrivateVisible,tribeeEdit,avatarAutoTheme,avatarTypeOpus",...e},...t})}};tl=ze(oc);I(tl,1,"getDetail",Sy,Af);Je(tl,Af);var H8=class{get logger(){return this.config.logger}constructor(e){this.config={...M8(e?.logLevel),...e??{}},this.api=new e9(this),this.createPager=this.api.createPager,this.request=this.api.request,this.user=new _n(this.api),this.userExp=new Ji(this.api),this.relation=new Me(this.api),this.history=new Yn(this.api),this.session=new pr(this.api),this.sessionSettings=new ln(this.api),this.message=new ot(this.api),this.toview=new En(this.api),this.fav=new Tt(this.api),this.favCollection=new ds(this.api),this.favOpus=new Fr(this.api),this.followBangumi=new Lr(this.api),this.spaceVideo=new ba(this.api),this.spaceStatus=new Qi(this.api),this.spaceSettings=new qi(this.api),this.dynamic=new Wr(this.api),this.videoInfo=new hs(this.api),this.videoAction=new mr(this.api),this.videoReport=new Ef(this.api),this.videoRanking=new ro(this.api),this.videoPlayer=new el(this.api),this.comment=new Gt(this.api),this.dm=new K8(this.api),this.opus=new Af(this.api),Iy.setAutoRefresh(this.config.autoMixinKey)}updateRequestContext(e){this.config.context=e}},$l=null,Mh=()=>($l||($l=new H8),$l),Wo,Wa=null,xy=0,Dl=void 0,Wh=1440*60*1e3,Ny=!1,Iy={get:async()=>Wo||(Wa||(Wa=J8().catch(()=>{Wa=null})),await Wa,Wo),setAutoRefresh(e){Ny=e}};function X8(e,t){return Math.floor(e/Wh)!==Math.floor(t/Wh)}var z8=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52],Cy=(e,t)=>{const n=e+t;return z8.map(r=>n[r]).join("").slice(0,32)},J8=async()=>{await Vh(),Dl||clearInterval(Dl),Ny&&(Dl=setInterval(()=>{X8(xy,Date.now())&&Vh()},3e5))},Vh=async()=>{try{const e=Date.now(),t=(await(await fetch("https://api.bilibili.com/x/web-interface/nav")).json()).data,n=o=>new URL(o).pathname.split("/").pop().replace(/\.[^.]+$/,""),r=n(t.wbi_img.img_url),s=n(t.wbi_img.sub_url);Wo=Cy(r,s),Mh().logger.info(`初始化 imgKey=${r} subKey=${s} mixinKey=${Wo}`),xy=e}catch(e){throw Mh().logger.error("初始化 MixinKey 失败",e),e}};async function $h(e,t){const n=Math.floor(Date.now()/1e3),r=t??await Iy.get();return`${pu(e)}&w_rid=${HR(pu({...e,wts:n})+r)}&wts=${n}`}async function Q8(e,t,n){try{return t||Object.keys(e).length===0?`${pu(e)}`:n?`${await $h(e,Cy(n.imgKey,n.subKey))}`:`${await $h(e)}`}catch{throw new Error("查询参数无效")}}var q8=class extends bv{constructor(e,t,n){super(e),this.list=[],this.lastApiResponse=null,this.pageStrategy=t,t.options.pageNum!==void 0?this.nextPageNum=t.options.pageNum:this.nextPageNum=1;const{baseUrl:r,searchParams:s}=c0(n.url);this.requestParams=Object.assign(f0(s,n.query)),this.requestOptions={...n,url:r,query:this.requestParams,returnFormat:"ApiResponse"}}mergeRequestOptions(e){this.requestParams={...this.requestParams,...e?.query},this.requestOptions={...this.requestOptions,...e,query:this.requestParams,returnFormat:"ApiResponse"}}async fetchNext(e){if(this.mergeRequestOptions(e),!this.pageStrategy.hasNextPage(this.nextPageNum,this.list,this.lastApiResponse))return null;this.pageStrategy.updateNextPageParams(this.nextPageNum,this.requestParams,this.list,this.lastApiResponse),this.lastApiResponse===null&&(this.nextPageNum===1||this.nextPageNum===this.pageStrategy.options.pageNum)&&Object.assign(this.requestParams,this.pageStrategy.options.pageParams);const t=await this.get(this.requestOptions.url,this.requestOptions);if(this.lastApiResponse=t,t.data==null)return null;this.nextPageNum++;const n=this.pageStrategy.getList(t)??[];return n.length<=0?null:(this.list.push(...n),n)}async fetchPageWithNextParams(e){return{items:await this.fetchNext(e),nextParams:this.getNextPageParams(),hasNext:this.pageStrategy.hasNextPage(this.nextPageNum,this.list,this.lastApiResponse),pageSize:this.pageStrategy.options.pageSize,total:this.pageStrategy.getTotal?.(this.lastApiResponse)??void 0}}getRequestDelay(e){return typeof e?.delay=="function"?e.delay(this.nextPageNum):typeof e?.delay=="number"?e.delay:1122}async fetchAllPage(e,t){for(this.mergeRequestOptions(t),this.nextPageNum=1,this.list=[],this.lastApiResponse=null;!this.requestOptions.signal?.aborted;){const n=await this.fetchNext(t);if(n===null||e&&await e(n,this.list)===!1)break;await xs(this.getRequestDelay(t),this.requestOptions.signal)}return this.list}getNextPageParams(){const e={};return this.pageStrategy.updateNextPageParams(this.nextPageNum,e,this.list,this.lastApiResponse),e}getPageSize(){return this.pageStrategy.options.pageSize}},e9=class{constructor(e){this.client=e,this.logApiSuccess=(t,n,r,s)=>{if(n==="RawResponse")this.logger.info(`${t} 请求成功`);else{const o=s||this.isDebug?JSON.stringify(r):"";n==="ApiResponse"?this.logger.info(`${t} 请求成功`,o):this.logger.info(`${t} 请求成功`,o)}},this.logApiError=(t,n)=>{kc(n)?this.logger.info(`${t} [${Fs(n)}]`):n instanceof Ma?this.logger.info(`${t} [http error]:${n.message}(${n.status})`):n instanceof kn?this.logger.info(`${t} ${n.message}`):this.logger.info(`${t} 出现未知错误`,n)},this.buildFinalUrl=async(t,n)=>{const{baseUrl:r,searchParams:s}=c0(t.url),o=f0(s,t.query),a=await Q8(o,t.skipWbiSign,t.wbiSignKeys);return t.logRequestParams?this.logger.info(`${n} 请求中 ${a}`):this.logger.info(`${n} 请求中...`),a&&a.length>0?`${r}?${a}`:r},this.buildRequestBody=async t=>{let n=t.data;if(n)if(typeof n=="object"){if(!(n instanceof Blob)){if(!(n instanceof URLSearchParams)){if(!(n instanceof FormData)){const r={};Object.keys(n).forEach(function(s){if(n!=null){const o=n[s];o!=null&&(r[s]=String(o))}}),n=new URLSearchParams(r)}}}}else typeof n=="string"&&(t.init={...t.init},t.init.headers={...t.init.headers,"Content-Type":"application/json"});return t.method==="POST"&&n&&t.autoCsrf&&n instanceof URLSearchParams&&n.set("csrf",this.clientConfig.context?.userCookie.bili_jct??""),n},this.buildRequestInit=async(t,n)=>{const{context:r,userAgent:s,timeout:o,referer:a}=this.clientConfig;return{signal:t?.signal?AbortSignal.any([t?.signal,AbortSignal.timeout(o)]):AbortSignal.timeout(o),method:t.method,body:n,...t?.init??{},credentials:"include",headers:{"User-Agent":s,origin:"https://t.bilibili.com",cookie:t.cookie?.cookie||r?.userCookie.cookie||"",Referer:t.referer??(typeof a=="function"?a(t.url):a),...t?.init?.headers??{}}}},this.executeRequest=async(t,n)=>{t.url=await this.buildFinalUrl(t,n);const r=await this.buildRequestBody(t);r&&this.logger.debug(`${n} 请求体`,JSON.stringify(r));const s=await this.buildRequestInit(t,r);return await(this.clientConfig.fetcher??fetch)(t.url,s)},this.request=async(t,n)=>{if(n?.signal?.aborted)throw ks();const r={...W8,url:t,...n},s=this.buildLogPrefix(r);try{const o=await this.executeRequest(r,s);if(!o.ok)throw new Ma(this.clientConfig,r,o);if(r.returnFormat==="RawResponse")return this.logApiSuccess(s,"RawResponse",o,r.logResponseData),o;let a;try{a=await o.json()}catch(i){throw new Ma(this.clientConfig,r,o,"解析响应数据错误",i)}if(!r.ignoreBusinessError&&a.code!==0)throw new mv(this.clientConfig,r,a);return r.returnFormat==="ApiResponse"?(this.logApiSuccess(s,"ApiResponse",a,r.logResponseData),a):(this.logApiSuccess(s,"ApiResponseData",a.data,r.logResponseData),a.data)}catch(o){throw this.logApiError(s,o),o}},this.fetchRaw=async(t,n)=>{if(n?.signal?.aborted)throw ks();const r={...iy,url:t,...n},s=this.buildLogPrefix(r),o=r.responseType;try{const a=await this.executeRequest(r,s);if(!a.ok)throw new Ma(this.clientConfig,r,a);return this.logApiSuccess(s,"RawResponse",a,r.logResponseData),o==="json"?await a.json():o==="text"?await a.text():o==="blob"?await a.blob():o==="arrayBuffer"?await a.arrayBuffer():await a.formData()}catch(a){throw this.logApiError(s,a),a}},this.fetchText=async(t,n)=>this.fetchRaw(t,{...n,responseType:"text"}),this.fetchBlob=async(t,n)=>this.fetchRaw(t,{...n,responseType:"blob"}),this.fetchArrayBuffer=async(t,n)=>this.fetchRaw(t,{...n,responseType:"arrayBuffer"}),this.fetchFormData=async(t,n)=>this.fetchRaw(t,{...n,responseType:"formData"}),this.get=async(t,n)=>this.request(t,{...n,method:"GET"}),this.post=async(t,n)=>this.request(t,{...n,method:"POST"}),this.save=async(t,n)=>this.request(t,{...n,method:"POST",skipWbiSign:!1,autoCsrf:!0}),this.createPager=(t,n,r)=>new q8(this,n,{url:t,...r})}get clientConfig(){return this.client.config}get logger(){return this.clientConfig.logger}get isDebug(){return this.clientConfig.logLevel==="debug"}buildLogPrefix(e){const t=this.clientConfig.context?.userCookie.uid;return`[bili API]${t?` [${t}]`:""} ${e.method} ${new URL(e.url).pathname}`}},t9=class extends pS{constructor(e,t){super(e,t),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}};const Br=_S();var gt=(e,t,n,r="srgb",s)=>`color-mix(in ${r}, ${e} ${n}%, ${t} ${100-n}%)`,Ty=e=>{let t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return{r:t,g:n,b:r}},n9=(e,t)=>{document.documentElement.style.setProperty(e,t)};const Dh="#ffffff",Gh="#000000",Gl=(e,t,n)=>{const{r,g:s,b:o}=Ty(e);for(let a=2;a<100;){const i=a/100;t[`${n}-transparent-${a}`]=`rgba(${r}, ${s}, ${o}, ${i})`,a>=10?a+=5:a++}},r9=(e,t,n)=>{const r={};n?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");const s=r["--app-color-foreground"]=n?Dh:Gh,o=r["--app-color-background"]=n?Gh:Dh;r["--app-primary-color"]=e,r["--el-color-primary"]=e,r["--el-color-primary-light-1"]=gt(e,o,90),r["--el-color-primary-light-2"]=gt(e,o,80),r["--el-color-primary-light-3"]=gt(e,o,70),r["--el-color-primary-light-4"]=gt(e,o,60),r["--el-color-primary-light-5"]=gt(e,o,50),r["--el-color-primary-light-6"]=gt(e,o,40),r["--el-color-primary-light-7"]=gt(e,o,30),r["--el-color-primary-light-8"]=gt(e,o,20),r["--el-color-primary-light-9"]=gt(e,o,12),r["--el-color-primary-dark-1"]=gt(e,s,90),r["--el-color-primary-dark-2"]=gt(e,s,80),r["--el-color-primary-dark-3"]=gt(e,s,70),r["--el-color-primary-dark-4"]=gt(e,s,60),r["--el-color-primary-dark-5"]=gt(e,s,50),r["--el-color-primary-dark-6"]=gt(e,s,40),r["--el-color-primary-dark-7"]=gt(e,s,30),r["--el-color-primary-dark-8"]=gt(e,s,20),r["--el-color-primary-dark-9"]=gt(e,s,12);const{r:a,g:i,b:l}=Ty(e);r["--app-bg-color-overlay"]=`rgba(${a}, ${i}, ${l}, 0.05)`,r["--app-bg-color-overlay-hover"]=`rgba(${a}, ${i}, ${l}, 0.15)`,r["--app-bg-color-page"]=n?"var(--el-fill-color-blank)":"transparent",r["--app-bg-color-menus"]="var(--app-bg-color-page)",n?r["--app-text-shadow"]=" 0px 1px 2px rgba(255, 255, 255, .4)":r["--app-text-shadow"]=" 0px 1px 2px rgba(0, 0, 0, .4)",Gl(e,r,"--app-color-primary"),Gl(o,r,"--app-color-background"),Gl(s,r,"--app-color-foreground");for(const u in r)n9(u,r[u])},s9=async e=>{const t=e??(await Br.system.getAppThemeState()).themeMode;return t==="system"?await Br.system.shouldUseDarkColors():t==="dark"},Yh=async e=>{const t=e??await Br.system.getAppThemeState(),n=await s9(t.themeMode);r9(t.primaryColor,t.themeMode,n)},Ry=Ym("biliToolkit-ui-theme",()=>{const e=yn(WE);let t=!1;const n=async(s,o)=>{const a=await window.toolkitApi.system.getAppThemeState();Object.assign(e,a),await Yh(a),s&&o&&(t=!0,xe(()=>e,i=>{const l=l0(i);window.toolkitApi.db.write(s,l).then(async()=>{await window.toolkitApi.event.emit(o,l)})},{deep:!0}))};window.toolkitApi.event.onUpdateAppTheme(s=>{t||Object.assign(e,s),Yh(s).then()}).catch();const r=s=>(e.primaryColor=s,e.primaryColor);return{init:n,state:e,switchThemeColor:()=>{e.primaryColorIndex=(e.primaryColorIndex+1)%Po.primaryColors.length;const s=Po.primaryColors[e.primaryColorIndex];return r(s)},setPrimaryColor:r}},{persist:!1}),Py=Ym("biliToolkit-ui-selected-user",()=>{const e=J(null),t=async()=>{try{e.value=(await window.toolkitApi.db.init(vd.UI_SELECTED_USER))?.user??null}catch{}};return xe(()=>e.value,async n=>{let r=n!=null?l0(n):null;await window.toolkitApi.db.write(vd.UI_SELECTED_USER,{user:r}),r&&await window.toolkitApi.user.switchCurrUser(r)},{deep:!0}),{init:t,user:e,deleteUser:()=>{e.value=null},setUser:n=>{e.value=n},assertLoggedIn:()=>{if(e.value==null)throw new Error("请先登录")}}}),o9=async(e,t)=>(Promise.resolve({}),Promise.resolve({}),Promise.resolve({}),await Ry(e).init(t?.appThemeDBName,t?.appThemeUpdateEvent),await Py(e).init(),{install(n){}});function a9(e){Br.system.saveLog({level:"error",data:[JSON.stringify(Fc(e))]}).catch()}function Uh(e,t){return e==null?!1:e instanceof t||typeof e=="object"&&"name"in e&&e.name===t.name}const ac=e=>{if(!kc(e))if(e){console.error(e);const t=()=>{Br&&Br.system&&a9(e)};Uh(e,t9)?Xa(`${e.message}`):Uh(e,mv)?(Xa(`${e.message} (${e.responseCode})`),t()):(Xa(Fs(e)),t())}else Sf({message:"未知错误",type:"error"})};function Sf(e){const t={message:"",type:"success",duration:3e3};typeof e=="string"?t.message=e:Object.assign(t,e),kR(t)}function Xa(e){Sf({message:e,type:"error"})}function AO(e){Sf({message:e,type:"warning"})}const SO=e=>{const t=J(!1);let n=null;const r=J(!1);return{loading:t,hasLoaded:r,loadingData:s=>async(...o)=>(n=(async()=>{t.value=!0;try{return typeof s=="function"?await s(...o):await s}finally{t.value=!1,r.value=!0,n=null}})(),n)}},i9=de({__name:"AppIcon",props:{icon:{}},setup(e){const t=e,n=Ry(),r=T(()=>n.state.dark?`ri-${t.icon}-fill`:`ri-${t.icon}-line`);return(s,o)=>(z(),_e("i",{class:Pe([r.value,"icon-font"])},null,2))}}),By=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},l9={class:"tooltip"},u9={class:"label"},Oy=de({__name:"AppTooltip",props:{content:{},lines:{default:1},ellipsis:{default:"right"},iconClass:{}},setup(e){oE(i=>({v22da9023:A(n)}));const t=e,n=t.lines,r=()=>({"txt-ellipsis-right":t.ellipsis==="right","txt-ellipsis-left":t.ellipsis==="left","single-line":t.lines===1}),s=J(!1),o=rw("refContent"),a=new ResizeObserver(()=>{o.value&&(t.lines===1?s.value=o.value.scrollWidth>o.value.clientWidth:s.value=o.value.scrollHeight>o.value.clientHeight)});return st(()=>{o.value&&a.observe(o.value)}),la(()=>{a.disconnect()}),(i,l)=>{const u=ma;return z(),_e("div",l9,[fe("div",u9,[e.iconClass?(z(),Ae(i9,{key:0,icon:e.iconClass},null,8,["icon"])):He("",!0)]),e.content?(z(),Ae(u,{key:0,effect:"light",content:e.content,placement:"top",disabled:!s.value,"show-after":800},{content:ce(()=>[ve(i.$slots,"tooltipContent")]),default:ce(()=>[fe("div",$t({ref_key:"refContent",ref:o},i.$attrs,{class:["tooltip__content",r()]}),[fe("span",null,[ve(i.$slots,"default",{},()=>[Ln(Mt(e.content),1)])])],16)]),_:3},8,["content","disabled"])):He("",!0)])}}}),ky="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv1{fill:transparent;}.st1.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23C0C0C0;}%3c/style%3e%3crect%20class='st0%20lv1'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv1'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv1'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.2v0.7c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M15.8,18.9h2.6c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4h-0.6%20v-5.6c0-0.2-0.2-0.4-0.4-0.4h-1.4c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h0.4v4.6h-0.6c-0.2,0-0.4,0.2-0.4,0.4v0.6%20C15.3,18.7,15.5,18.9,15.8,18.9z%20M12.7,16.3v0.1c0,0.1-0.1,0.2-0.2,0.2c0,0,0,0-0.1,0.1l-2,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4V16.3L12.7,16.3z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Fy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv2{fill:transparent;}.st1.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%238BD29B;}%3c/style%3e%3crect%20class='st0%20lv2'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv2'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv2'%20d='M14,10h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6C1.3,20,1,19.8,1,19.4v-7.8%20C1,11.3,1.2,11,1.6,11h11.8v-0.4C13.4,10.3,13.6,10,14,10z%20M19.4,15.8c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H16v-1.7H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Ly="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv3{fill:transparent;}.st1.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%237BCDEF;}%3c/style%3e%3crect%20class='st0%20lv3'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv3'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv3'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",My="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv4{fill:transparent;}.st1.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FEBB8B;}%3c/style%3e%3crect%20class='st0%20lv4'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv4'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv4'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4h-0.6%20c-0.2,0-0.4,0.2-0.4,0.4v2.7H16v-2.7c0-0.2-0.2-0.4-0.4-0.4H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v2.7%20c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1s-0.4,0-0.5-0.1l-2-2%20c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Wy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv5{fill:transparent;}.st1.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23EE672A;}%3c/style%3e%3crect%20class='st0%20lv5'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv5'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv5'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,12.7c0.2,0,0.4-0.2,0.4-0.4v-0.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H16v-1.6H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2%20v-3.3c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Vy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv6{fill:transparent;}.st1.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23F04C49;}%3c/style%3e%3crect%20class='st0%20lv6'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv6'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv6'%20d='M14,10c-0.4,0-0.6,0.3-0.6,0.6V11H1.6C1.2,11,1,11.3,1,11.6v7.8C1,19.8,1.3,20,1.6,20h18.8%20c0.4,0,0.6-0.3,0.6-0.6v-8.8c0.1-0.3-0.2-0.6-0.5-0.6H14z%20M19.8,12.3c0,0.2-0.2,0.4-0.4,0.4H16v1.6h3.4c0.2,0,0.4,0.2,0.4,0.4v3.7%20c0,0.2-0.2,0.4-0.4,0.4H15c-0.2,0-0.4-0.2-0.4-0.4v-6.8c0-0.2,0.2-0.4,0.4-0.4h4.4c0.2,0,0.4,0.2,0.4,0.4V12.3z%20M12.6,16.7%20c0.1-0.1,0.1-0.2,0.1-0.4v-0.1v-3.4c0-0.2-0.2-0.4-0.4-0.4h-0.6c-0.2,0-0.4,0.2-0.4,0.4v3.3L10,17.3l-1.2-1.2v-3.4%20c0-0.2-0.2-0.4-0.4-0.4H7.8c-0.2,0-0.4,0.2-0.4,0.4v3.5v0.1c0,0.2,0,0.4,0.1,0.4l2,2c0.1,0.1,0.5,0.1,0.5,0.1s0.4,0,0.5-0.1%20L12.6,16.7z%20M6.1,18.9H2.6c-0.2,0-0.4-0.2-0.4-0.4v-5.8c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.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/qVrON1WiaRLgKXDb4mP41W9sQy5R9o/AfFZjpnelDwLWdx4noyTk2YmE/1DIfHJarnjdVddJN67htLbZE/KWtOTst4jG/rOQ61I6Z3U0y6KWSCVk0Ty18bg5rhvBG4quTcMP3aO92inuLMg6RuUgH3XjY4day7y7m0giiAgICAgICAgICAgICAg6yyxwRPmlcGsjaXOJ5ABmSiMKu9wkutzqbjJnnPIXAczeQeoZBacLd3byIJi8Ygmu9rttDMSXUTHMcT97cGn+0BFt3EZSVDqSqhqmfahkbIPODmiJDFF6dfbzPXAnggeDhB5GDd17T60i27u0UiLxowvPAVs1mlfxKgcJFnyPA2j1j5KVvC96aUo6iAgICAgICAgICAgICAgrGkO6d78PSQMdlJWOEI/h3u+Ay9aRjO6jJFpyEBAQEBB6LdWy26vp6+E8eCRrx05HchLpu1NURVdPFVQu1o5mB7TzgjMLLv6+iKICAgICAgICAgICAgIMs0m3Luq9x0DHZso4wCP33bT8NVWOOd3VQVZEBAQEBAQato2ubq2xGjkOb6J+oP4DtH6j1KV1wvS2KNiAgICAgICAgICAgIOskjIo3SyHJrAXOPMAiMIuda+43Gprnk5zyuf5gTsHUtOF7eZAQEBAQEBBa9G9y7jv8A3I92UdYws/qG0fqPWpWsLqtXUdhAQEBAQEBAQEBAQEEViuV8GG7jJGcncA4Z+fZ+qRnLxiS04iAgICAgICD22SV8N4oZYzk5tRGQf6glJ63VZegQEBAQEBB//9k=",c9={class:"user-card"},f9={class:"user-card__face-wrapper"},d9=["src"],p9={key:0,class:"user-card--blocked"},h9={class:"user-card__info"},g9={class:"user-card__row"},m9=["src"],b9={class:"user-card__row"},v9={class:"user-card__uid"},y9={class:"user-card__row"},_9={class:"user-card__stat__item"},w9={class:"user-card__stat__value"},E9={class:"user-card__stat__item"},A9={class:"user-card__stat__value"},S9={class:"user-card__stat__item"},x9={class:"user-card__stat__value"},N9=de({__name:"BiliUserCard",props:{user:{}},setup(e){const t=e,n=T(()=>t.user.face||ic),r=T(()=>new URL(Object.assign({"../../assets/images/user_level/level_1.svg":ky,"../../assets/images/user_level/level_2.svg":Fy,"../../assets/images/user_level/level_3.svg":Ly,"../../assets/images/user_level/level_4.svg":My,"../../assets/images/user_level/level_5.svg":Wy,"../../assets/images/user_level/level_6.svg":Vy})[`../../assets/images/user_level/level_${t.user.level}.svg`],import.meta.url).href);return(s,o)=>{const a=Oy;return z(),_e("div",c9,[ve(s.$slots,"default"),fe("div",f9,[fe("img",{class:"user-card__face",alt:"face",src:n.value},null,8,d9),e.user.silence===1?(z(),_e("span",p9,"账号已封禁")):He("",!0)]),fe("div",h9,[fe("div",g9,[we(a,{class:"user-card__name",content:e.user.name},null,8,["content"]),fe("img",{class:"user-card__level",src:r.value,alt:"level"},null,8,m9)]),fe("div",b9,[o[0]||(o[0]=fe("span",{class:"user-card__uid-icon"},null,-1)),fe("span",v9,Mt(e.user.mid),1)]),fe("div",y9,[fe("span",_9,[fe("span",w9,Mt(e.user.following),1),o[1]||(o[1]=fe("span",{class:"user-card__stat__label"},"关注",-1))]),fe("span",E9,[fe("span",A9,Mt(e.user.follower),1),o[2]||(o[2]=fe("span",{class:"user-card__stat__label"},"粉丝",-1))]),fe("span",S9,[fe("span",x9,Mt(e.user.coins),1),o[3]||(o[3]=fe("span",{class:"user-card__stat__label"},"硬币",-1))])])])])}}}),$y=de({__name:"PluginMenuItem",props:{menu:{}},setup(e){return(t,n)=>{const r=Wb,s=mR;return!e.menu.children||e.menu.children.length===0?(z(),Ae(r,{key:0,index:e.menu.path},{title:ce(()=>[Ln(Mt(e.menu.title),1)]),_:1},8,["index"])):(z(),Ae(s,{key:1,index:e.menu.path},{title:ce(()=>[Ln(Mt(e.menu.title),1)]),default:ce(()=>[(z(!0),_e(Ke,null,lm(e.menu.children,o=>(z(),Ae($y,{key:o.path,menu:o},null,8,["menu"]))),128))]),_:1},8,["index"]))}}}),I9=de({__name:"PluginMenus",props:{menus:{},activeIndex:{}},emits:["handleSelect"],setup(e,{emit:t}){const n=e,r=(c,f=new Map)=>(c.forEach(d=>{f.set(d.path,d),d.children&&d.children.length>0&&r(d.children,f)}),f),s=T(()=>r(n.menus)),o=t,a=c=>{const f=s.value.get(c);f&&o("handleSelect",f)},i=fm(),l=T(()=>!!i["left-item"]||!!i.left),u=T(()=>!!i["right-item"]||!!i.right);return(c,f)=>{const d=Wb,p=gR;return z(),Ae(p,{"default-active":e.activeIndex,class:"plugin-menus",mode:"horizontal",ellipsis:!1,onSelect:a},{default:ce(()=>[l.value?ve(c.$slots,"left-item",{key:0},()=>[we(d,{index:"-left",style:{"margin-right":"auto"}},{default:ce(()=>[ve(c.$slots,"left",{},void 0,!0)]),_:3})],!0):He("",!0),(z(!0),_e(Ke,null,lm(e.menus,h=>(z(),Ae($y,{key:h.path,menu:h,index:String(h.path)},null,8,["menu","index"]))),128)),u.value?ve(c.$slots,"right-item",{key:1},()=>[we(d,{index:"-right",style:{"margin-left":"auto"}},{default:ce(()=>[ve(c.$slots,"right",{},void 0,!0)]),_:3})],!0):He("",!0)]),_:3},8,["default-active"])}}}),C9=By(I9,[["__scopeId","data-v-6dfc7821"]]),T9={class:"plugin-page-header"},R9={class:"plugin-page-header__user-container"},P9={class:"plugin-page-header__user-container__info"},B9=["src"],O9=["src"],k9={key:1,class:"plugin-page-header__user-container__info"},F9=de({__name:"PluginPageHeader",props:{menus:{},activeIndex:{}},emits:["handleMenuSelect"],setup(e,{emit:t}){const n=Py(),{user:r}=BE(n),s=T(()=>r.value?.face||ic),o=T(()=>new URL(Object.assign({"../../assets/images/user_level/level_1.svg":ky,"../../assets/images/user_level/level_2.svg":Fy,"../../assets/images/user_level/level_3.svg":Ly,"../../assets/images/user_level/level_4.svg":My,"../../assets/images/user_level/level_5.svg":Wy,"../../assets/images/user_level/level_6.svg":Vy})[`../../assets/images/user_level/level_${r.value?.level??0}.svg`],import.meta.url).href),a=async()=>{n.setUser(await Br.user.switchUser(!0))},i=()=>{n.deleteUser()},l=t,u=c=>{c&&l("handleMenuSelect",c)};return st(async()=>{if(r.value)try{const c=await Br.user.getMyInfoByCookie(r.value.userCookie);n.setUser(c)}catch{Xa("当前用户 cookie 已失效"),n.deleteUser()}}),(c,f)=>{const d=C9,p=Oy,h=N9,g=YR,b=QT,_=qT,v=JT;return z(),_e("div",T9,[we(d,{class:"plugin-page-header__menus","active-index":e.activeIndex,menus:e.menus,onHandleSelect:u},null,8,["active-index","menus"]),fe("div",R9,[A(r)?(z(),Ae(g,{key:0,placement:"bottom-end",width:"auto",trigger:"hover"},{reference:ce(()=>[fe("div",P9,[fe("img",{class:"plugin-page-header__user-container__info__face",src:s.value,alt:"face"},null,8,B9),we(p,{class:"plugin-page-header__user-container__info__name",content:A(r).name},null,8,["content"]),fe("img",{class:"plugin-page-header__user-container__info__level",src:o.value,alt:"level img"},null,8,O9)])]),default:ce(()=>[we(h,{user:A(r)},null,8,["user"])]),_:1})):(z(),_e("div",k9,[...f[0]||(f[0]=[fe("img",{class:"plugin-page-header__user-container__info__face",alt:"",src:ic},null,-1),fe("span",{class:"plugin-page-header__user-container__info__name"},"未登录",-1)])])),we(v,{placement:"bottom-end",trigger:"click",size:"default"},{dropdown:ce(()=>[we(_,null,{default:ce(()=>[we(b,{onClick:a},{default:ce(()=>[...f[1]||(f[1]=[Ln("选择用户",-1)])]),_:1}),A(r)?(z(),Ae(b,{key:0,onClick:i},{default:ce(()=>[...f[2]||(f[2]=[Ln("取消选择",-1)])]),_:1})):He("",!0)]),_:1})]),default:ce(()=>[f[3]||(f[3]=fe("span",{class:"plugin-page-header__user-container__arrow"},"▼",-1))]),_:1})])])}}}),L9={},M9={class:"plugin-page-container"};function W9(e,t){return z(),_e("div",M9,[ve(e.$slots,"default",{},void 0,!0)])}const xO=By(L9,[["render",W9],["__scopeId","data-v-ddcb3392"]]);const Ss=typeof document<"u";function Dy(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function V9(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Dy(e.default)}const ke=Object.assign;function Yl(e,t){const n={};for(const r in t){const s=t[r];n[r]=vn(s)?s.map(e):e(s)}return n}const Vo=()=>{},vn=Array.isArray;function jh(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Gy=/#/g,$9=/&/g,D9=/\//g,G9=/=/g,Y9=/\?/g,Yy=/\+/g,U9=/%5B/g,j9=/%5D/g,Uy=/%5E/g,Z9=/%60/g,jy=/%7B/g,K9=/%7C/g,Zy=/%7D/g,H9=/%20/g;function xf(e){return e==null?"":encodeURI(""+e).replace(K9,"|").replace(U9,"[").replace(j9,"]")}function X9(e){return xf(e).replace(jy,"{").replace(Zy,"}").replace(Uy,"^")}function lc(e){return xf(e).replace(Yy,"%2B").replace(H9,"+").replace(Gy,"%23").replace($9,"%26").replace(Z9,"`").replace(jy,"{").replace(Zy,"}").replace(Uy,"^")}function z9(e){return lc(e).replace(G9,"%3D")}function J9(e){return xf(e).replace(Gy,"%23").replace(Y9,"%3F")}function Q9(e){return J9(e).replace(D9,"%2F")}function aa(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const q9=/\/$/,eB=e=>e.replace(q9,"");function Ul(e,t,n="/"){let r,s={},o="",a="";const i=t.indexOf("#");let l=t.indexOf("?");return l=i>=0&&l>i?-1:l,l>=0&&(r=t.slice(0,l),o=t.slice(l,i>0?i:t.length),s=e(o.slice(1))),i>=0&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=sB(r??t,n),{fullPath:r+o+a,path:r,query:s,hash:aa(a)}}function tB(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Zh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function nB(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Us(t.matched[r],n.matched[s])&&Ky(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ky(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rB(e[n],t[n]))return!1;return!0}function rB(e,t){return vn(e)?Kh(e,t):vn(t)?Kh(t,e):e?.valueOf()===t?.valueOf()}function Kh(e,t){return vn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function sB(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,a,i;for(a=0;a<r.length;a++)if(i=r[a],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const vr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let uc=(function(e){return e.pop="pop",e.push="push",e})({}),jl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function oB(e){if(!e)if(Ss){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eB(e)}const aB=/^[^#]+#/;function iB(e,t){return e.replace(aB,"#")+t}function lB(e,t){const 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)}}const nl=()=>({left:window.scrollX,top:window.scrollY});function uB(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=lB(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Hh(e,t){return(history.state?history.state.position-t:-1)+e}const cc=new Map;function cB(e,t){cc.set(e,t)}function fB(e){const t=cc.get(e);return cc.delete(e),t}function dB(e){return typeof e=="string"||e&&typeof e=="object"}function Hy(e){return typeof e=="string"||typeof e=="symbol"}let et=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Xy=Symbol("");et.MATCHER_NOT_FOUND+"",et.NAVIGATION_GUARD_REDIRECT+"",et.NAVIGATION_ABORTED+"",et.NAVIGATION_CANCELLED+"",et.NAVIGATION_DUPLICATED+"";function js(e,t){return ke(new Error,{type:e,[Xy]:!0},t)}function Hn(e,t){return e instanceof Error&&Xy in e&&(t==null||!!(e.type&t))}const pB=["params","query","hash"];function hB(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of pB)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function gB(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Yy," "),o=s.indexOf("="),a=aa(o<0?s:s.slice(0,o)),i=o<0?null:aa(s.slice(o+1));if(a in t){let l=t[a];vn(l)||(l=t[a]=[l]),l.push(i)}else t[a]=i}return t}function Xh(e){let t="";for(let n in e){const r=e[n];if(n=z9(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(vn(r)?r.map(s=>s&&lc(s)):[r&&lc(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function mB(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=vn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const bB=Symbol(""),zh=Symbol(""),rl=Symbol(""),Nf=Symbol(""),fc=Symbol("");function mo(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Sr(e,t,n,r,s,o=a=>a()){const a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,l)=>{const u=d=>{d===!1?l(js(et.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):dB(d)?l(js(et.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(a&&r.enterCallbacks[s]===a&&typeof d=="function"&&a.push(d),i())},c=o(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Zl(e,t,n,r,s=o=>o()){const o=[];for(const a of e)for(const i in a.components){let l=a.components[i];if(!(t!=="beforeRouteEnter"&&!a.instances[i]))if(Dy(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Sr(u,n,r,a,i,s))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);const f=V9(c)?c.default:c;a.mods[i]=c,a.components[i]=f;const d=(f.__vccOpts||f)[t];return d&&Sr(d,n,r,a,i,s)()}))}}return o}function vB(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const i=t.matched[a];i&&(e.matched.find(u=>Us(u,i))?r.push(i):n.push(i));const l=e.matched[a];l&&(t.matched.find(u=>Us(u,l))||s.push(l))}return[n,r,s]}let yB=()=>location.protocol+"//"+location.host;function zy(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,i=s.slice(a);return i[0]!=="/"&&(i="/"+i),Zh(i,"")}return Zh(n,e)+r+s}function _B(e,t,n,r){let s=[],o=[],a=null;const i=({state:d})=>{const p=zy(e,location),h=n.value,g=t.value;let b=0;if(d){if(n.value=p,t.value=d,a&&a===h){a=null;return}b=g?d.position-g.position:0}else r(p);s.forEach(_=>{_(n.value,h,{delta:b,type:uc.pop,direction:b?b>0?jl.forward:jl.back:jl.unknown})})};function l(){a=n.value}function u(d){s.push(d);const p=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return o.push(p),p}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(ke({},d.state,{scroll:nl()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function Jh(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?nl():null}}function wB(e){const{history:t,location:n}=window,r={value:zy(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:yB()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),s.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function a(l,u){o(l,ke({},t.state,Jh(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function i(l,u){const c=ke({},s.value,t.state,{forward:l,scroll:nl()});o(c.current,c,!0),o(l,ke({},Jh(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:s,push:i,replace:a}}function EB(e){e=oB(e);const t=wB(e),n=_B(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const s=ke({location:"",base:e,go:r,createHref:iB.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function AB(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),EB(e)}let Hr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ct=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ct||{});const SB={type:Hr.Static,value:""},xB=/[a-zA-Z0-9_]/;function NB(e){if(!e)return[[]];if(e==="/")return[[SB]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=ct.Static,r=n;const s=[];let o;function a(){o&&s.push(o),o=[]}let i=0,l,u="",c="";function f(){u&&(n===ct.Static?o.push({type:Hr.Static,value:u}):n===ct.Param||n===ct.ParamRegExp||n===ct.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Hr.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==ct.ParamRegExp){r=n,n=ct.EscapeNext;continue}switch(n){case ct.Static:l==="/"?(u&&f(),a()):l===":"?(f(),n=ct.Param):d();break;case ct.EscapeNext:d(),n=r;break;case ct.Param:l==="("?n=ct.ParamRegExp:xB.test(l)?d():(f(),n=ct.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case ct.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=ct.ParamRegExpEnd:c+=l;break;case ct.ParamRegExpEnd:f(),n=ct.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,c="";break;default:t("Unknown state");break}}return n===ct.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),s}const Qh="[^/]+?",IB={sensitive:!1,strict:!1,start:!0,end:!0};var Bt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Bt||{});const CB=/[.+*?^${}()[\]/\\]/g;function TB(e,t){const n=ke({},IB,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[Bt.Root];n.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const d=u[f];let p=Bt.Segment+(n.sensitive?Bt.BonusCaseSensitive:0);if(d.type===Hr.Static)f||(s+="/"),s+=d.value.replace(CB,"\\$&"),p+=Bt.Static;else if(d.type===Hr.Param){const{value:h,repeatable:g,optional:b,regexp:_}=d;o.push({name:h,repeatable:g,optional:b});const v=_||Qh;if(v!==Qh){p+=Bt.BonusCustomRegExp;try{`${v}`}catch(w){throw new Error(`Invalid custom RegExp for param "${h}" (${v}): `+w.message)}}let E=g?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;f||(E=b&&u.length<2?`(?:/${E})`:"/"+E),b&&(E+="?"),s+=E,p+=Bt.Dynamic,b&&(p+=Bt.BonusOptional),g&&(p+=Bt.BonusRepeatable),v===".*"&&(p+=Bt.BonusWildcard)}c.push(p)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=Bt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const a=new RegExp(s,n.sensitive?"":"i");function i(u){const c=u.match(a),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",h=o[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===Hr.Static)c+=p.value;else if(p.type===Hr.Param){const{value:h,repeatable:g,optional:b}=p,_=h in u?u[h]:"";if(vn(_)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const v=vn(_)?_.join("/"):_;if(!v)if(b)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=v}}return c||"/"}return{re:a,score:r,keys:o,parse:i,stringify:l}}function RB(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Bt.Static+Bt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Bt.Static+Bt.Segment?1:-1:0}function Jy(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=RB(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(qh(r))return 1;if(qh(s))return-1}return s.length-r.length}function qh(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const PB={strict:!1,end:!0,sensitive:!1};function BB(e,t,n){const r=TB(NB(e.path),n),s=ke(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function OB(e,t){const n=[],r=new Map;t=jh(PB,t);function s(f){return r.get(f)}function o(f,d,p){const h=!p,g=tg(f);g.aliasOf=p&&p.record;const b=jh(t,f),_=[g];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const B of w)_.push(tg(ke({},g,{components:p?p.record.components:g.components,path:B,aliasOf:p?p.record:g})))}let v,E;for(const w of _){const{path:B}=w;if(d&&B[0]!=="/"){const G=d.record.path,P=G[G.length-1]==="/"?"":"/";w.path=d.record.path+(B&&P+B)}if(v=BB(w,d,b),p?p.alias.push(v):(E=E||v,E!==v&&E.alias.push(v),h&&f.name&&!ng(v)&&a(f.name)),Qy(v)&&l(v),g.children){const G=g.children;for(let P=0;P<G.length;P++)o(G[P],v,p&&p.children[P])}p=p||v}return E?()=>{a(E)}:Vo}function a(f){if(Hy(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function i(){return n}function l(f){const d=LB(f,n);n.splice(d,0,f),f.record.name&&!ng(f)&&r.set(f.record.name,f)}function u(f,d){let p,h={},g,b;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw js(et.MATCHER_NOT_FOUND,{location:f});b=p.record.name,h=ke(eg(d.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&eg(f.params,p.keys.map(E=>E.name))),g=p.stringify(h)}else if(f.path!=null)g=f.path,p=n.find(E=>E.re.test(g)),p&&(h=p.parse(g),b=p.record.name);else{if(p=d.name?r.get(d.name):n.find(E=>E.re.test(d.path)),!p)throw js(et.MATCHER_NOT_FOUND,{location:f,currentLocation:d});b=p.record.name,h=ke({},d.params,f.params),g=p.stringify(h)}const _=[];let v=p;for(;v;)_.unshift(v.record),v=v.parent;return{name:b,path:g,params:h,matched:_,meta:FB(_)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:i,getRecordMatcher:s}}function eg(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function tg(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kB(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 kB(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ng(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function FB(e){return e.reduce((t,n)=>ke(t,n.meta),{})}function LB(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Jy(e,t[o])<0?r=o:n=o+1}const s=MB(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function MB(e){let t=e;for(;t=t.parent;)if(Qy(t)&&Jy(e,t)===0)return t}function Qy({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rg(e){const t=ge(rl),n=ge(Nf),r=T(()=>{const l=A(e.to);return t.resolve(l)}),s=T(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Us.bind(null,c));if(d>-1)return d;const p=sg(l[u-2]);return u>1&&sg(c)===p&&f[f.length-1].path!==p?f.findIndex(Us.bind(null,l[u-2])):d}),o=T(()=>s.value>-1&&GB(n.params,r.value.params)),a=T(()=>s.value>-1&&s.value===n.matched.length-1&&Ky(n.params,r.value.params));function i(l={}){if(DB(l)){const u=t[A(e.replace)?"replace":"push"](A(e.to)).catch(Vo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:o,isExactActive:a,navigate:i}}function WB(e){return e.length===1?e[0]:e}const VB=de({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"},viewTransition:Boolean},useLink:rg,setup(e,{slots:t}){const n=yn(rg(e)),{options:r}=ge(rl),s=T(()=>({[og(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[og(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&WB(t.default(n));return e.custom?o:it("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),$B=VB;function DB(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function GB(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!vn(s)||s.length!==r.length||r.some((o,a)=>o.valueOf()!==s[a].valueOf()))return!1}return!0}function sg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const og=(e,t,n)=>e??t??n,YB=de({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ge(fc),s=T(()=>e.route||r.value),o=ge(zh,0),a=T(()=>{let u=A(o);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),i=T(()=>s.value.matched[a.value]);tt(zh,T(()=>a.value+1)),tt(bB,i),tt(fc,s);const l=J();return xe(()=>[l.value,i.value,e.name],([u,c,f],[d,p,h])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!Us(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=i.value,d=f&&f.components[c];if(!d)return ag(n.default,{Component:d,route:u});const p=f.props[c],h=p?p===!0?u.params:typeof p=="function"?p(u):p:null,b=it(d,ke({},h,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return ag(n.default,{Component:b,route:u})||b}}});function ag(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qy=YB;function UB(e){const t=OB(e.routes,e),n=e.parseQuery||gB,r=e.stringifyQuery||Xh,s=e.history,o=mo(),a=mo(),i=mo(),l=Ks(vr);let u=vr;Ss&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Yl.bind(null,L=>""+L),f=Yl.bind(null,Q9),d=Yl.bind(null,aa);function p(L,ee){let Q,oe;return Hy(L)?(Q=t.getRecordMatcher(L),oe=ee):oe=L,t.addRoute(oe,Q)}function h(L){const ee=t.getRecordMatcher(L);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(L=>L.record)}function b(L){return!!t.getRecordMatcher(L)}function _(L,ee){if(ee=ke({},ee||l.value),typeof L=="string"){const S=Ul(n,L,ee.path),V=t.resolve({path:S.path},ee),Y=s.createHref(S.fullPath);return ke(S,V,{params:d(V.params),hash:aa(S.hash),redirectedFrom:void 0,href:Y})}let Q;if(L.path!=null)Q=ke({},L,{path:Ul(n,L.path,ee.path).path});else{const S=ke({},L.params);for(const V in S)S[V]==null&&delete S[V];Q=ke({},L,{params:f(S)}),ee.params=f(ee.params)}const oe=t.resolve(Q,ee),ye=L.hash||"";oe.params=c(d(oe.params));const m=tB(r,ke({},L,{hash:X9(ye),path:oe.path})),y=s.createHref(m);return ke({fullPath:m,hash:ye,query:r===Xh?mB(L.query):L.query||{}},oe,{redirectedFrom:void 0,href:y})}function v(L){return typeof L=="string"?Ul(n,L,l.value.path):ke({},L)}function E(L,ee){if(u!==L)return js(et.NAVIGATION_CANCELLED,{from:ee,to:L})}function w(L){return P(L)}function B(L){return w(ke(v(L),{replace:!0}))}function G(L,ee){const Q=L.matched[L.matched.length-1];if(Q&&Q.redirect){const{redirect:oe}=Q;let ye=typeof oe=="function"?oe(L,ee):oe;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=v(ye):{path:ye},ye.params={}),ke({query:L.query,hash:L.hash,params:ye.path!=null?{}:L.params},ye)}}function P(L,ee){const Q=u=_(L),oe=l.value,ye=L.state,m=L.force,y=L.replace===!0,S=G(Q,oe);if(S)return P(ke(v(S),{state:typeof S=="object"?ke({},ye,S.state):ye,force:m,replace:y}),ee||Q);const V=Q;V.redirectedFrom=ee;let Y;return!m&&nB(r,oe,Q)&&(Y=js(et.NAVIGATION_DUPLICATED,{to:V,from:oe}),ae(oe,oe,!0,!1)),(Y?Promise.resolve(Y):F(V,oe)).catch(W=>Hn(W)?Hn(W,et.NAVIGATION_GUARD_REDIRECT)?W:te(W):C(W,V,oe)).then(W=>{if(W){if(Hn(W,et.NAVIGATION_GUARD_REDIRECT))return P(ke({replace:y},v(W.to),{state:typeof W.to=="object"?ke({},ye,W.to.state):ye,force:m}),ee||V)}else W=k(V,oe,!0,y,ye);return $(V,oe,W),W})}function O(L,ee){const Q=E(L,ee);return Q?Promise.reject(Q):Promise.resolve()}function R(L){const ee=be.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(L):L()}function F(L,ee){let Q;const[oe,ye,m]=vB(L,ee);Q=Zl(oe.reverse(),"beforeRouteLeave",L,ee);for(const S of oe)S.leaveGuards.forEach(V=>{Q.push(Sr(V,L,ee))});const y=O.bind(null,L,ee);return Q.push(y),Ze(Q).then(()=>{Q=[];for(const S of o.list())Q.push(Sr(S,L,ee));return Q.push(y),Ze(Q)}).then(()=>{Q=Zl(ye,"beforeRouteUpdate",L,ee);for(const S of ye)S.updateGuards.forEach(V=>{Q.push(Sr(V,L,ee))});return Q.push(y),Ze(Q)}).then(()=>{Q=[];for(const S of m)if(S.beforeEnter)if(vn(S.beforeEnter))for(const V of S.beforeEnter)Q.push(Sr(V,L,ee));else Q.push(Sr(S.beforeEnter,L,ee));return Q.push(y),Ze(Q)}).then(()=>(L.matched.forEach(S=>S.enterCallbacks={}),Q=Zl(m,"beforeRouteEnter",L,ee,R),Q.push(y),Ze(Q))).then(()=>{Q=[];for(const S of a.list())Q.push(Sr(S,L,ee));return Q.push(y),Ze(Q)}).catch(S=>Hn(S,et.NAVIGATION_CANCELLED)?S:Promise.reject(S))}function $(L,ee,Q){i.list().forEach(oe=>R(()=>oe(L,ee,Q)))}function k(L,ee,Q,oe,ye){const m=E(L,ee);if(m)return m;const y=ee===vr,S=Ss?history.state:{};Q&&(oe||y?s.replace(L.fullPath,ke({scroll:y&&S&&S.scroll},ye)):s.push(L.fullPath,ye)),l.value=L,ae(L,ee,Q,y),te()}let U;function Z(){U||(U=s.listen((L,ee,Q)=>{if(!Re.listening)return;const oe=_(L),ye=G(oe,Re.currentRoute.value);if(ye){P(ke(ye,{replace:!0,force:!0}),oe).catch(Vo);return}u=oe;const m=l.value;Ss&&cB(Hh(m.fullPath,Q.delta),nl()),F(oe,m).catch(y=>Hn(y,et.NAVIGATION_ABORTED|et.NAVIGATION_CANCELLED)?y:Hn(y,et.NAVIGATION_GUARD_REDIRECT)?(P(ke(v(y.to),{force:!0}),oe).then(S=>{Hn(S,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===uc.pop&&s.go(-1,!1)}).catch(Vo),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),C(y,oe,m))).then(y=>{y=y||k(oe,m,!1),y&&(Q.delta&&!Hn(y,et.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===uc.pop&&Hn(y,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),$(oe,m,y)}).catch(Vo)}))}let j=mo(),M=mo(),x;function C(L,ee,Q){te(L);const oe=M.list();return oe.length?oe.forEach(ye=>ye(L,ee,Q)):console.error(L),Promise.reject(L)}function H(){return x&&l.value!==vr?Promise.resolve():new Promise((L,ee)=>{j.add([L,ee])})}function te(L){return x||(x=!L,Z(),j.list().forEach(([ee,Q])=>L?Q(L):ee()),j.reset()),L}function ae(L,ee,Q,oe){const{scrollBehavior:ye}=e;if(!Ss||!ye)return Promise.resolve();const m=!Q&&fB(Hh(L.fullPath,0))||(oe||!Q)&&history.state&&history.state.scroll||null;return rn().then(()=>ye(L,ee,m)).then(y=>y&&uB(y)).catch(y=>C(y,L,ee))}const se=L=>s.go(L);let Ee;const be=new Set,Re={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:_,options:e,push:w,replace:B,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:o.add,beforeResolve:a.add,afterEach:i.add,onError:M.add,isReady:H,install(L){L.component("RouterLink",$B),L.component("RouterView",qy),L.config.globalProperties.$router=Re,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>A(l)}),Ss&&!Ee&&l.value===vr&&(Ee=!0,w(s.location).catch(oe=>{}));const ee={};for(const oe in vr)Object.defineProperty(ee,oe,{get:()=>l.value[oe],enumerable:!0});L.provide(rl,Re),L.provide(Nf,Ni(ee)),L.provide(fc,l);const Q=L.unmount;be.add(L),L.unmount=function(){be.delete(L),be.size<1&&(u=vr,U&&U(),U=null,l.value=vr,Ee=!1,x=!1),Q()}}};function Ze(L){return L.reduce((ee,Q)=>ee.then(()=>R(Q)),Promise.resolve())}return Re}function jB(){return ge(rl)}function ZB(e){return ge(Nf)}const KB="modulepreload",HB=function(e,t){return new URL(e,t).href},ig={},bo=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");s=u(n.map(c=>{if(c=HB(c,r),c in ig)return;ig[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let h=a.length-1;h>=0;h--){const g=a[h];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":KB,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((h,g)=>{p.addEventListener("load",h),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return s.then(a=>{for(const i of a||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},dc=[{title:"视频封面",path:"/VideoCover",name:"VideoCover",component:()=>bo(()=>import("./VideoCover-BUKUvb0x.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{title:"专栏图片",path:"/OpusPics",name:"OpusPics",component:()=>bo(()=>import("./OpusPics-BjNOGrqi.js"),__vite__mapDeps([3,1,4]),import.meta.url)},{title:"用户头像",path:"/UserFace",name:"UserFace",component:()=>bo(()=>import("./UserFace-DNpgATKa.js"),__vite__mapDeps([5,1,6]),import.meta.url)},{title:"动态表情包",path:"/DynamicEmoji",name:"DynamicEmoji",component:()=>bo(()=>import("./DynamicEmoji-bQlsRk1p.js"),__vite__mapDeps([7,1,8]),import.meta.url)},{title:"评论表情包",path:"/CommentEmoji",name:"CommentEmoji",component:()=>bo(()=>import("./CommentEmoji-DusEAad_.js"),__vite__mapDeps([9,1,10]),import.meta.url)}],XB=UB({history:AB("./"),routes:[{path:"/",redirect:dc[0].path},...dc]}),zB={class:"plugin-page"},JB=de({__name:"App",setup(e){const t=ZB(),n=jB(),r=J(dc),s=o=>{n.push(o.path)};return(o,a)=>(z(),_e("div",zB,[we(A(F9),{menus:r.value,"active-index":A(t).path,onHandleMenuSelect:s},null,8,["menus","active-index"]),we(A(qy),{class:"plugin-page-content"},{default:ce(({Component:i,route:l})=>[(z(),Ae(ow,null,[(z(),Ae(zr(i),{key:l.fullPath}))],1024))]),_:1})]))}}),QB=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},qB=QB(JB,[["__scopeId","data-v-d366bdbc"]]);async function eO(){const e=AE(qB);e.config.globalProperties.$toolkitApi=window.toolkitApi;const t=NE();t.use(ME),e.use(t),e.use(XB);const n=await o9(t);e.use(n),e.config.errorHandler=ac,window.addEventListener("unhandledrejection",r=>{ac(r.reason)}),e.mount("#app")}eO().then(()=>{console.log("插件启动成功")}).catch(ac);export{qo as $,xe as A,Tr as B,Ks as C,pe as D,Sb as E,Ke as F,_u as G,rn as H,Se as I,$e as J,tr as K,a5 as L,eb as M,le as N,zc as O,yb as P,wc as Q,hO as R,kt as S,tO as T,fm as U,I5 as V,yO as W,mb as X,bb as Y,Ve as Z,QB as _,ce as a,It as a0,st as a1,mt as a2,yt as a3,Pe as a4,ve as a5,zr as a6,Pr as a7,$t as a8,Zo as a9,gn as aa,Mt as ab,vO as ac,bO as ad,mO as ae,Ls as af,Ie as ag,Dn as ah,yn as ai,AE as aj,L6 as ak,it as al,ki as am,zs as an,M_ as ao,wl as ap,gO as aq,Ia as ar,je as as,as as at,H8 as au,Xo as av,Br as aw,Sf as ax,fe as b,Ae as c,de as d,we as e,Ln as f,He as g,_e as h,SO as i,Py as j,lm as k,T as l,Lh as m,Fh as n,z as o,tc as p,nc as q,J as r,AO as s,bn as t,A as u,ci as v,Hs as w,nt as x,xO as y,ut as z};
10
+ `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(o){case 0:i=a,o=1;break;case 1:r[s++]=i<<2|(a&48)>>4,i=a,o=2;break;case 2:r[s++]=(i&15)<<4|(a&60)>>2,i=a,o=3;break;case 3:r[s++]=(i&3)<<6|a,o=0;break}}if(o==1)throw Error("invalid base64 string");return r.subarray(0,s)}let La,ws;function CP(e){return La||(La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),La.slice(0,-2).concat("-","_")),La}function TP(){if(!ws){ws=[];const e=CP();for(let t=0;t<e.length;t++)ws[e[t].charCodeAt(0)]=t;ws[45]=e.indexOf("+"),ws[95]=e.indexOf("/")}return ws}function bi(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let s=e.charAt(r);switch(s){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(s),t=!1;break;default:t&&(t=!1,s=s.toUpperCase()),n.push(s);break}}return n.join("")}const RP=new Set(["constructor","toString","toJSON","valueOf"]);function sa(e){return RP.has(e)?e+"$":e}function vf(e){for(const t of e.field)ra(t,"jsonName")||(t.jsonName=bi(t.name));e.nestedType.forEach(vf)}function PP(e,t){const n=e.values.find(r=>r.name===t);if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}function BP(e,t){switch(e){case D.STRING:return t;case D.BYTES:{const n=OP(t);if(n===!1)throw new Error(`cannot parse ${D[e]} default value: ${t}`);return n}case D.INT64:case D.SFIXED64:case D.SINT64:return vt.parse(t);case D.UINT64:case D.FIXED64:return vt.uParse(t);case D.DOUBLE:case D.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case D.BOOL:return t==="true";case D.INT32:case D.UINT32:case D.SINT32:case D.FIXED32:case D.SFIXED32:return parseInt(t,10)}}function OP(e){const t=[],n={tail:e,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(r){if(this.tail.length>=r){const s=this.tail.substring(0,r);return this.tail=this.tail.substring(r),s}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,8);if(Number.isNaN(o))return!1;t.push(o);break}case"x":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;t.push(o);break}case"u":{const r=n.c,s=n.take(4);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;const a=new Uint8Array(4);new DataView(a.buffer).setInt32(0,o,!0),t.push(a[0],a[1],a[2],a[3]);break}case"U":{const r=n.c,s=n.take(8);if(s===!1)return!1;const o=vt.uEnc(r+s),a=new Uint8Array(8),i=new DataView(a.buffer);i.setInt32(0,o.lo,!0),i.setInt32(4,o.hi,!0),t.push(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);break}}break;default:t.push(n.c.charCodeAt(0))}return new Uint8Array(t)}function*Tu(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*Tu(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*Tu(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function nv(...e){const t=kP();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of e[0].file)dh(n,t);return t}if("$typeName"in e[0]){let o=function(a){const i=[];for(const l of a.dependency){if(t.getFile(l)!=null||s.has(l))continue;const u=r(l);if(!u)throw new Error(`Unable to resolve ${l}, imported by ${a.name}`);"kind"in u?t.addFile(u,!1,!0):(s.add(u.name),i.push(u))}return i.concat(...i.map(o))};const n=e[0],r=e[1],s=new Set;for(const a of[n,...o(n)].reverse())dh(a,t)}else for(const n of e)for(const r of n.files)t.addFile(r);return t}function kP(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return n.values()},addFile(r,s,o){if(n.set(r.proto.name,r),!s)for(const a of Tu(r))this.add(a);if(o)for(const a of r.dependencies)this.addFile(a,s,o)},add(r){if(r.kind=="extension"){let s=t.get(r.extendee.typeName);s||t.set(r.extendee.typeName,s=new Map),s.set(r.number,r)}e.set(r.typeName,r)},get(r){return e.get(r)},getFile(r){return n.get(r)},getMessage(r){const s=e.get(r);return s?.kind=="message"?s:void 0},getEnum(r){const s=e.get(r);return s?.kind=="enum"?s:void 0},getExtension(r){const s=e.get(r);return s?.kind=="extension"?s:void 0},getExtensionFor(r,s){var o;return(o=t.get(r.typeName))===null||o===void 0?void 0:o.get(s)},getService(r){const s=e.get(r);return s?.kind=="service"?s:void 0}}}const FP=998,LP=999,MP=9999,WP=9,oa=10,Mo=11,VP=12,uh=14,yf=3,$P=2,ch=1,DP=0,Vl=1,fh=2,GP=3,YP=1,UP=2,jP=1,ZP=2,KP=1001,rv={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function dh(e,t){var n,r;const s={kind:"file",proto:e,deprecated:(r=(n=e.options)===null||n===void 0?void 0:n.deprecated)!==null&&r!==void 0?r:!1,edition:JP(e),name:e.name.replace(/\.proto$/,""),dependencies:QP(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},o=new Map,a={get(i){return o.get(i)},add(i){var l;fn(((l=i.proto.options)===null||l===void 0?void 0:l.mapEntry)===!0),o.set(i.typeName,i)}};for(const i of e.enumType)sv(i,s,void 0,t);for(const i of e.messageType)ov(i,s,void 0,t,a);for(const i of e.service)HP(i,s,t);Ru(s,t);for(const i of o.values())Pu(i,t,a);for(const i of s.messages)Pu(i,t,a),Ru(i,t);t.addFile(s,!0)}function Ru(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=Bu(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=Bu(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)Ru(n,t);break}}function Pu(e,t,n){const r=e.proto.oneofDecl.map(o=>zP(o,e)),s=new Set;for(const o of e.proto.field){const a=t8(o,r),i=Bu(o,e,t,a,n);e.fields.push(i),e.field[i.localName]=i,a===void 0?e.members.push(i):(a.fields.push(i),s.has(a)||(s.add(a),e.members.push(a)))}for(const o of r.filter(a=>s.has(a)))e.oneofs.push(o);for(const o of e.nestedMessages)Pu(o,t,n)}function sv(e,t,n,r){var s,o,a,i,l;const u=qP(e.name,e.value),c={kind:"enum",proto:e,deprecated:(o=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&o!==void 0?o:!1,file:t,parent:n,open:!0,name:e.name,typeName:Xi(e,n,t),value:{},values:[],sharedPrefix:u,toString(){return`enum ${this.typeName}`}};c.open=o8(c),r.add(c);for(const f of e.value){const d=f.name;c.values.push(c.value[f.number]={kind:"enum_value",proto:f,deprecated:(i=(a=f.options)===null||a===void 0?void 0:a.deprecated)!==null&&i!==void 0?i:!1,parent:c,name:d,localName:sa(u==null?d:d.substring(u.length)),number:f.number,toString(){return`enum value ${c.typeName}.${d}`}})}((l=n?.nestedEnums)!==null&&l!==void 0?l:t.enums).push(c)}function ov(e,t,n,r,s){var o,a,i,l;const u={kind:"message",proto:e,deprecated:(a=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&a!==void 0?a:!1,file:t,parent:n,name:e.name,typeName:Xi(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((i=e.options)===null||i===void 0?void 0:i.mapEntry)===!0?s.add(u):(((l=n?.nestedMessages)!==null&&l!==void 0?l:t.messages).push(u),r.add(u));for(const c of e.enumType)sv(c,t,u,r);for(const c of e.nestedType)ov(c,t,u,r,s)}function HP(e,t,n){var r,s;const o={kind:"service",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,file:t,name:e.name,typeName:Xi(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(o),n.add(o);for(const a of e.method){const i=XP(a,o,n);o.methods.push(i),o.method[i.localName]=i}}function XP(e,t,n){var r,s,o,a;let i;e.clientStreaming&&e.serverStreaming?i="bidi_streaming":e.clientStreaming?i="client_streaming":e.serverStreaming?i="server_streaming":i="unary";const l=n.getMessage(zn(e.inputType)),u=n.getMessage(zn(e.outputType));fn(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),fn(u,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const c=e.name;return{kind:"rpc",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,parent:t,name:c,localName:sa(c.length?sa(c[0].toLowerCase()+c.substring(1)):c),methodKind:i,input:l,output:u,idempotency:(a=(o=e.options)===null||o===void 0?void 0:o.idempotencyLevel)!==null&&a!==void 0?a:DP,toString(){return`rpc ${t.typeName}.${c}`}}}function zP(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:sa(bi(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function Bu(e,t,n,r,s){var o,a,i;const l=s===void 0,u={kind:"field",proto:e,deprecated:(a=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&a!==void 0?a:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:n8(e,r,l,t),utf8Validation:a8(e,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(l){const p=t.kind=="file"?t:t.file,h=t.kind=="file"?void 0:t,g=Xi(e,h,p);u.kind="extension",u.file=p,u.parent=h,u.oneof=void 0,u.typeName=g,u.jsonName=`[${g}]`,u.toString=()=>`extension ${g}`;const b=n.getMessage(zn(e.extendee));fn(b,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=b}else{const p=t;fn(p.kind=="message"),u.parent=p,u.oneof=r,u.localName=r?bi(e.name):sa(bi(e.name)),u.jsonName=e.jsonName,u.toString=()=>`field ${p.typeName}.${e.name}`}const c=e.label,f=e.type,d=(i=e.options)===null||i===void 0?void 0:i.jstype;if(c===yf){const p=f==Mo?s?.get(zn(e.typeName)):void 0;if(p){u.fieldKind="map";const{key:h,value:g}=s8(p);return u.mapKey=h.scalar,u.mapKind=g.fieldKind,u.message=g.message,u.delimitedEncoding=!1,u.enum=g.enum,u.scalar=g.scalar,u}switch(u.fieldKind="list",f){case Mo:case oa:u.listKind="message",u.message=n.getMessage(zn(e.typeName)),fn(u.message),u.delimitedEncoding=ph(e,t);break;case uh:u.listKind="enum",u.enum=n.getEnum(zn(e.typeName)),fn(u.enum);break;default:u.listKind="scalar",u.scalar=f,u.longAsString=d==ch;break}return u.packed=r8(e,t),u}switch(f){case Mo:case oa:u.fieldKind="message",u.message=n.getMessage(zn(e.typeName)),fn(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=ph(e,t),u.getDefaultValue=()=>{};break;case uh:{const p=n.getEnum(zn(e.typeName));fn(p!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(zn(e.typeName)),u.getDefaultValue=()=>ra(e,"defaultValue")?PP(p,e.defaultValue):void 0;break}default:{u.fieldKind="scalar",u.scalar=f,u.longAsString=d==ch,u.getDefaultValue=()=>ra(e,"defaultValue")?BP(f,e.defaultValue):void 0;break}}return u}function JP(e){switch(e.syntax){case"":case"proto2":return FP;case"proto3":return LP;case"editions":if(e.edition===MP)return KP;if(e.edition in rv)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function QP(e,t){return e.dependency.map(n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r})}function qP(e,t){const n=e8(e)+"_";for(const r of t){if(!r.name.toLowerCase().startsWith(n))return;const s=r.name.substring(n.length);if(s.length==0||/^\d/.test(s))return}return n}function e8(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function Xi(e,t,n){let r;return t?r=`${t.typeName}.${e.name}`:n.proto.package.length>0?r=`${n.proto.package}.${e.name}`:r=`${e.name}`,r}function zn(e){return e.startsWith(".")?e.substring(1):e}function t8(e,t){if(!ra(e,"oneofIndex")||e.proto3Optional)return;const n=t[e.oneofIndex];return fn(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function n8(e,t,n,r){if(e.label==$P)return GP;if(e.label==yf)return fh;if(t||e.proto3Optional||n)return Vl;const s=os("fieldPresence",{proto:e,parent:r});return s==fh&&(e.type==Mo||e.type==oa)?Vl:s}function r8(e,t){if(e.label!=yf)return!1;switch(e.type){case WP:case VP:case oa:case Mo:return!1}const n=e.options;return n&&ra(n,"packed")?n.packed:YP==os("repeatedFieldEncoding",{proto:e,parent:t})}function s8(e){const t=e.fields.find(r=>r.number===1),n=e.fields.find(r=>r.number===2);return fn(t&&t.fieldKind=="scalar"&&t.scalar!=D.BYTES&&t.scalar!=D.FLOAT&&t.scalar!=D.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:t,value:n}}function o8(e){var t;return jP==os("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function ph(e,t){return e.type==oa?!0:UP==os("messageEncoding",{proto:e,parent:t})}function a8(e,t){return ZP==os("utf8Validation",{proto:e,parent:t})}function os(e,t){var n,r;const s=(n=t.proto.options)===null||n===void 0?void 0:n.features;if(s){const o=s[e];if(o!=0)return o}if("kind"in t){if(t.kind=="message")return os(e,(r=t.parent)!==null&&r!==void 0?r:t.file);const o=rv[t.edition];if(!o)throw new Error(`feature default for edition ${t.edition} not found`);return o[e]}return os(e,t.parent)}function fn(e,t){if(!e)throw new Error(t)}function i8(e){const t=l8(e);return t.messageType.forEach(vf),nv(t,()=>{}).getFile(t.name)}function l8(e){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(av),enumType:e.enumType.map(iv)}))}function av(e){var t,n,r,s,o,a,i,l;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:(n=(t=e.field)===null||t===void 0?void 0:t.map(u8))!==null&&n!==void 0?n:[],extension:[],nestedType:(s=(r=e.nestedType)===null||r===void 0?void 0:r.map(av))!==null&&s!==void 0?s:[],enumType:(a=(o=e.enumType)===null||o===void 0?void 0:o.map(iv))!==null&&a!==void 0?a:[],extensionRange:(l=(i=e.extensionRange)===null||i===void 0?void 0:i.map(c=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},c)))!==null&&l!==void 0?l:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function u8(e){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?c8(e.options):void 0}))}function c8(e){var t,n,r;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:(t=e.targets)!==null&&t!==void 0?t:[],editionDefaults:(r=(n=e.editionDefaults)===null||n===void 0?void 0:n.map(o=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},o)))!==null&&r!==void 0?r:[],uninterpretedOption:[]}))}function iv(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(n=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},n))})}function f8(e,t,...n){return n.reduce((r,s)=>r.nestedMessages[s],e.messages[t])}const d8=i8({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"option_dependency",number:15,type:9,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3},{name:"visibility",number:11,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3},{name:"visibility",number:6,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false",options:{}},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false",options:{deprecated:!0}},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"removal_error",number:5,type:9,label:1}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}},{name:"default_symbol_visibility",number:8,type:14,label:1,typeName:".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",options:{retention:2,targets:[1],editionDefaults:[{value:"EXPORT_ALL",edition:900},{value:"EXPORT_TOP_LEVEL",edition:1001}]}}],nestedType:[{name:"VisibilityFeature",enumType:[{name:"DefaultSymbolVisibility",value:[{name:"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",number:0},{name:"EXPORT_ALL",number:1},{name:"EXPORT_TOP_LEVEL",number:2},{name:"LOCAL_ALL",number:3},{name:"STRICT",number:4}]}]}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_UNSTABLE",number:9999},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]},{name:"SymbolVisibility",value:[{name:"VISIBILITY_UNSET",number:0},{name:"VISIBILITY_LOCAL",number:1},{name:"VISIBILITY_EXPORT",number:2}]}]}),p8=f8(d8,1);var hh;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(hh||(hh={}));var gh;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(gh||(gh={}));var mh;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(mh||(mh={}));var bh;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(bh||(bh={}));var vh;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(vh||(vh={}));var yh;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(yh||(yh={}));var _h;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(_h||(_h={}));var wh;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(wh||(wh={}));var Eh;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(Eh||(Eh={}));var Ah;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",e[e.EXPORT_ALL=1]="EXPORT_ALL",e[e.EXPORT_TOP_LEVEL=2]="EXPORT_TOP_LEVEL",e[e.LOCAL_ALL=3]="LOCAL_ALL",e[e.STRICT=4]="STRICT"})(Ah||(Ah={}));var Sh;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(Sh||(Sh={}));var xh;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(xh||(xh={}));var Nh;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(Nh||(Nh={}));var Ih;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(Ih||(Ih={}));var Ch;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(Ch||(Ch={}));var Th;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(Th||(Th={}));var Rh;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",e[e.STYLE2024=1]="STYLE2024",e[e.STYLE_LEGACY=2]="STYLE_LEGACY"})(Rh||(Rh={}));var Ph;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Ph||(Ph={}));var Bh;(function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_UNSTABLE=9999]="EDITION_UNSTABLE",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"})(Bh||(Bh={}));var Oh;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(Oh||(Oh={}));function h8(e){return Object.assign(Object.assign({readUnknownFields:!0,recursionLimit:100},e),{depth:0})}function lv(e,t,n){const r=pf(e,void 0,!1);return uv(r,new _P(t),h8(n),!1,t.byteLength),r.message}function uv(e,t,n,r,s){var o;if(++n.depth>n.recursionLimit)throw new Error(`cannot decode ${e.desc} from binary: maximum recursion depth of ${n.recursionLimit} reached`);const a=r?t.len:t.pos+s;let i,l;const u=(o=e.getUnknown())!==null&&o!==void 0?o:[];for(;t.pos<a&&([i,l]=t.tag(),!(r&&l==cn.EndGroup));){const c=e.findNumber(i);if(!c){const f=n.recursionLimit-n.depth,d=t.skip(l,i,f);n.readUnknownFields&&u.push({no:i,wireType:l,data:d});continue}g8(e,t,c,l,n)}if(r&&(l!=cn.EndGroup||i!==s))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u),n.depth--}function g8(e,t,n,r,s){var o;switch(n.fieldKind){case"scalar":e.set(n,Ys(t,n.scalar,n.utf8Validation));break;case"enum":const a=Ys(t,D.INT32);if(n.enum.open)e.set(n,a);else if(n.enum.values.some(l=>l.number===a))e.set(n,a);else if(s.readUnknownFields){const l=[];QR(a,l);const u=(o=e.getUnknown())!==null&&o!==void 0?o:[];u.push({no:n.number,wireType:r,data:new Uint8Array(l)}),e.setUnknown(u)}break;case"message":e.set(n,_f(t,s,n,e.get(n)));break;case"list":b8(t,r,e.get(n),s);break;case"map":m8(t,e.get(n),s);break}}function m8(e,t,n){const r=t.field();let s,o;const a=e.uint32(),i=e.pos+a;for(;e.pos<i;){const[l]=e.tag();switch(l){case 1:s=Ys(e,r.mapKey,r.utf8Validation);break;case 2:switch(r.mapKind){case"scalar":o=Ys(e,r.scalar,r.utf8Validation);break;case"enum":o=e.int32();break;case"message":o=_f(e,n,r);break}break}}if(s===void 0&&(s=na(r.mapKey,!1)),o===void 0)switch(r.mapKind){case"scalar":o=na(r.scalar,!1);break;case"enum":o=r.enum.values[0].number;break;case"message":o=pf(r.message,void 0,!1);break}t.set(s,o)}function b8(e,t,n,r){var s;const o=n.field();if(o.listKind==="message"){n.add(_f(e,r,o));return}const a=(s=o.scalar)!==null&&s!==void 0?s:D.INT32;if(!(t==cn.LengthDelimited&&a!=D.STRING&&a!=D.BYTES)){n.add(Ys(e,a,o.utf8Validation));return}const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(Ys(e,a,o.utf8Validation))}function _f(e,t,n,r){const s=n.delimitedEncoding,o=r??pf(n.message,void 0,!1);return uv(o,e,t,s,s?n.number:e.uint32()),o}function Ys(e,t,n=!1){switch(t){case D.STRING:return e.string(n);case D.BOOL:return e.bool();case D.DOUBLE:return e.double();case D.FLOAT:return e.float();case D.INT32:return e.int32();case D.INT64:return e.int64();case D.UINT64:return e.uint64();case D.FIXED64:return e.fixed64();case D.BYTES:return e.bytes();case D.FIXED32:return e.fixed32();case D.SFIXED32:return e.sfixed32();case D.SFIXED64:return e.sfixed64();case D.SINT64:return e.sint64();case D.UINT32:return e.uint32();case D.SINT32:return e.sint32()}}function v8(e,t){var n;const r=lv(p8,IP(e));return r.messageType.forEach(vf),r.dependency=(n=void 0)!==null&&n!==void 0?n:[],nv(r,o=>{}).getFile(r.name)}function y8(e,t,...n){if(n.length>0)throw new Error;return e.services[t]}var _8=Object.create,cv=Object.defineProperty,w8=Object.getOwnPropertyDescriptor,fv=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),dv=e=>{throw TypeError(e)},E8=(e,t,n)=>t in e?cv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=e=>[,,,_8(e?.[fv("metadata")]??null)],pv=["class","method","getter","setter","accessor","field","value","get","set"],hv=e=>e!==void 0&&typeof e!="function"?dv("Function expected"):e,A8=(e,t,n,r,s)=>({kind:pv[e],name:t,metadata:r,addInitializer:o=>n._?dv("Already initialized"):s.push(hv(o||null))}),Je=(e,t)=>E8(t,fv("metadata"),e[3]),Qe=(e,t,n,r)=>{for(var s=0,o=e[t>>1],a=o&&o.length;s<a;s++)o[s].call(n);return r},I=(e,t,n,r,s,o)=>{for(var a,i,l,u,c=t&7,f=!1,d=!1,p=2,h=pv[c+5],g=e[p]||(e[p]=[]),b=(s=s.prototype,w8(s,n)),_=r.length-1;_>=0;_--)l=A8(c,n,i={},e[3],g),l.static=f,l.private=d,u=l.access={has:v=>n in v},u.get=v=>v[n],a=(0,r[_])(b[h],l),i._=1,hv(a)&&(b[h]=a);return b&&cv(s,n,b),s};function N(){return function(e,t){const n=String(t.name);return function(...r){const s=this.constructor.name;try{return e.call(this,...r)}catch(o){if(typeof this.handleError=="function")this.handleError(o,s,n);else throw console.error(`${s}.${n} 未知异常`,o),o}}}}var kn=class extends Error{constructor(e,t,n){super(t||"操作失败"),this.name="BiliError",this.rawError=n instanceof Error?n:new Error(String(n));const{timeout:r,userAgent:s,context:o}=e;this.clientConfig={timeout:r,userAgent:s,context:o?.userCookie?{userCookie:o?.userCookie}:void 0}}},gv=class extends kn{constructor(e,t,n,r){super(e,n,r),this.name="BiliApiError";const{url:s,method:o,query:a,data:i,skipWbiSign:l,autoCsrf:u}=t;this.requestOptions={url:s,method:o,query:a,data:i,skipWbiSign:l,autoCsrf:u}}},Ma=class extends gv{constructor(e,t,n,r,s){super(e,t,r||n.statusText||`HTTP ${n.status}`,s),this.status=0,this.name="BiliApiHttpError",this.status=n.status}},mv=class extends gv{constructor(e,t,n,r,s){super(e,t,r||n.message,s),this.name="BiliApiBusinessError",this.responseCode=n.code??-1,this.responseData=n.data}};async function S8(e,t,n){const r={updateRequestContext:!0,autoRefresh:!0,pollIntervalMs:1233,...n},s=AbortSignal.timeout(180*1e3),o=r.signal?AbortSignal.any([r.signal,s]):s,a=u=>new Promise(c=>setTimeout(c,u)),i=u=>{try{t.onStatusChange(u)}catch(c){e.logger.error("[QRCodeLogin] onStatusChange callback error:",c)}},l=async u=>{try{await t.onQRCodeReceived(u)}catch(c){e.logger.error("[QRCodeLogin] onQRCodeReceived callback error:",c)}};try{for(;!o.aborted;){i("正在获取登录二维码...");const u=await e.getLoginQRCode(n);if(!u?.url||!u?.qrcode_key)throw new Error("未能获取有效的二维码数据");await l(u.url),i("请使用手机 App 扫码登录..."),await a(2e3);let c=!1;for(;!o.aborted&&!c;){const f=await e.getQRCodeLoginResult(u.qrcode_key,n);switch(i(f.message),f.code){case 0:return i("扫码成功,正在同步用户信息..."),t.cookieProvider&&(await a(1e3),f.setCookie=await t.cookieProvider()),await e.initLoginSession(f.setCookie,r.updateRequestContext,n);case 86038:if(r.autoRefresh)i("二维码已失效,正在自动刷新..."),c=!0;else throw new kn(e.clientConfig,"二维码已失效");break;default:await a(r.pollIntervalMs);break}}}}catch(u){if(r.signal?.aborted)throw i("取消登录"),ks("取消登录");if(o.aborted||kc(u)){const c="登录超时";throw i(c),new Error(c)}throw u}throw o.aborted?ks():new Error("登录流程异常终止")}function x8(e){if(!e)throw new Error("setCookie 为空");const t=[];let n,r;for(const s of e)if(s){const o=s.slice(0,s.indexOf(";")+1);t.push(o),o.startsWith("bili_jct=")&&(n=o.slice(9,-1)),o.startsWith("DedeUserID=")&&(r=o.slice(11,-1))}if(!n||!r)throw new Error("setCookie 解析错误,不存在 bili_jct/uid");return{uid:Number(r),cookie:t.join(" "),bili_jct:n}}var bv=class{constructor(e){this.api=e}get clientConfig(){return this.api.clientConfig}get logger(){return this.api.logger}get request(){return this.api.request}get get(){return this.api.get}get post(){return this.api.post}get save(){return this.api.save}get currUserUid(){const e=this.api.clientConfig.context?.userCookie.uid;if(e===void 0)throw new kn(this.clientConfig,"用户未登录");return e}},Xe=class extends bv{constructor(e){super(e),this.createPager=e.createPager}throwError(e,t){throw new kn(this.clientConfig,Fs(e),t)}handleError(e,t,n){if(e instanceof kn)this.logger.error(`${t}.${n} 出现错误`,e);else{const r=new kn(this.clientConfig,Fs(e),e);this.logger.error(`${t}.${n} 出现错误`,r)}throw e}resolveVideoId(e){return e.aid!==void 0?{aid:e.aid}:{bvid:e.bvid}}},vv,yv,_v,wv,Ev,Av,Sv,xv,Nv,Ou,an,_n=class extends(Ou=Xe,Nv=[N()],xv=[N()],Sv=[N()],Av=[N()],Ev=[N()],wv=[N()],_v=[N()],yv=[N()],vv=[N()],Ou){constructor(){super(...arguments),Qe(an,5,this)}getLoginQRCode(e){return this.get("https://passport.bilibili.com/x/passport-login/web/qrcode/generate",e)}async getQRCodeLoginResult(e,t){const n=await this.get("https://passport.bilibili.com/x/passport-login/web/qrcode/poll",{query:{qrcode_key:e},skipWbiSign:!0,returnFormat:"RawResponse",...t});return{...(await n.json()).data,setCookie:n.headers.getSetCookie()}}async loginWithQRCode(e,t){return S8(this,e,t)}getBuvids(e){return this.get("https://api.bilibili.com/x/frontend/finger/spi",e)}getMyInfo(e,t){return this.get("https://api.bilibili.com/x/space/myinfo",{cookie:e,...t})}async initLoginSession(e,t=!0,n){this.logger.info("初始化用户数据...");const r=x8(e),{b_3:s,b_4:o}=await this.getBuvids(n);r.cookie=`${r.cookie} buvid3=${encodeURIComponent(s)}; buvid4=${encodeURIComponent(o)}; `;const a={userCookie:r};return t&&(this.clientConfig.context=a),this.logger.info(`已完成用户登录:${r.uid}`),a}async getUserCard(e,t){return await this.get("https://api.bilibili.com/x/web-interface/card",{query:e,...t})}async getUserCards(e,t){const n=await this.get("https://api.vc.bilibili.com/account/v1/user/cards",{query:{uids:e.join(",")},...t});return e.map(r=>n.find(s=>s.mid===r)??null)}async getUpStat(e,t){return await this.get("https://api.bilibili.com/x/space/upstat",{query:{mid:e},...t})}};an=ze(Ou);I(an,1,"getLoginQRCode",Nv,_n);I(an,1,"getQRCodeLoginResult",xv,_n);I(an,1,"loginWithQRCode",Sv,_n);I(an,1,"getBuvids",Av,_n);I(an,1,"getMyInfo",Ev,_n);I(an,1,"initLoginSession",wv,_n);I(an,1,"getUserCard",_v,_n);I(an,1,"getUserCards",yv,_n);I(an,1,"getUpStat",vv,_n);Je(an,_n);var ho={PersonalSpace:11,Comment:15,H5FollowList:106,H5FansList:107,BlockList:116},Ur={FOLLOW:{code:1,name:"关注",reSrc:ho.PersonalSpace},UNFOLLOW:{code:2,name:"取关",reSrc:ho.H5FollowList},BLOCK:{code:5,name:"拉黑",reSrc:ho.Comment},UNBLOCK:{code:6,name:"取消拉黑",reSrc:ho.BlockList},REMOVE_FAN:{code:7,name:"踢出粉丝",reSrc:ho.H5FansList}},Dt=class{constructor(e){this.options=e,e.pageParams&&(e.pageNum=this.parsePageNum(e.pageParams))}},Iv=class extends Dt{hasNextPage(e,t,n){return!(this.options.total!==void 0&&(t.length>=this.options.total||(e-1)*this.options.pageSize>=this.options.total)||n!==null&&(n.data===null||qs(n.data)||this.getList(n).length<this.options.pageSize))}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data}},Ha=class ku extends Iv{static isPageDataWithTotalResponse(t){return t!==null&&typeof t.data=="object"&&t.data!==null&&"total"in t.data&&"list"in t.data}hasNextPage(t,n,r){return!(!super.hasNextPage(t,n,r)||r!==null&&(!ku.isPageDataWithTotalResponse(r)||r.data.total<=n.length||qs(r.data.list)))}getList(t){return ku.isPageDataWithTotalResponse(t)?t.data.list:[]}},Cv,Tv,Rv,Pv,Bv,Ov,kv,Fv,Lv,Mv,Wv,Vv,$v,Dv,Gv,Yv,Uv,jv,Zv,Kv,Hv,Xv,zv,Jv,Qv,qv,e1,Fu,Fe,Me=class extends(Fu=Xe,e1=[N()],qv=[N()],Qv=[N()],Jv=[N()],zv=[N()],Xv=[N()],Hv=[N()],Kv=[N()],Zv=[N()],jv=[N()],Uv=[N()],Yv=[N()],Gv=[N()],Dv=[N()],$v=[N()],Vv=[N()],Wv=[N()],Mv=[N()],Lv=[N()],Fv=[N()],kv=[N()],Ov=[N()],Bv=[N()],Pv=[N()],Rv=[N()],Tv=[N()],Cv=[N()],Fu){constructor(){super(...arguments),Qe(Fe,5,this)}get userService(){return this.api.client.user}buildRelationPager(e,t,n){return this.createPager("https://api.bilibili.com/x/relation/tag",new Iv({pageSize:200,total:typeof e=="object"?e.count:void 0,...t}),{query:{tagid:typeof e=="object"?e.tagid:e},...n})}async fetchRelationPage(e,t,n){return await this.buildRelationPager(e,t,n).fetchNext()}async fetchRelationPageWithNextParams(e,t,n){return await this.buildRelationPager(e,t,n).fetchPageWithNextParams()}async fetchRelationAll(e,t,n,r){return await this.buildRelationPager(e,t,r).fetchAllPage(n)}async getRelation(e,t){return this.get("https://api.bilibili.com/x/space/wbi/acc/relation",{query:{mid:e,web_location:"333.1387"},...t})}getFollowTags(e){return this.get("https://api.bilibili.com/x/relation/tags",e)}getFollowingsByTag(e,t,n,r){return this.fetchRelationAll(e,t,n,r)}createFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/create",{data:{tag:e},...t})}updateFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/update",{data:e,...t})}deleteFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/del",{data:{tagid:`${e}`},...t})}async getFollowsGroupedByTag(e,t,n){const r=await this.getFollowTags(n);for(const s of r)s.list=await this.getFollowingsByTag(s,e,t,n);return r}buildFollowingsPager(e,t,n){if(!e&&!this.currUserUid)throw new kn(this.clientConfig,"uid 为空");return this.createPager("https://api.bilibili.com/x/relation/followings",new Ha({pageSize:24,...t}),{query:{vmid:e??this.currUserUid,order:"desc"},...n})}async fetchFollowingsPage(e,t,n){return await this.buildFollowingsPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildFollowingsPager(e,t,n).fetchPageWithNextParams()}async fetchFollowingsAll(e,t,n,r){return await this.buildFollowingsPager(e,t,r).fetchAllPage(n)}async followUser(e,t){await this.modify(e,Ur.FOLLOW,!0,t)}async unFollowUser(e,t){await this.modify(e,Ur.UNFOLLOW,!0,t)}copyUsersToTag(e,t,n){return this.save("https://api.bilibili.com/x/relation/tags/copyUsers",{data:{fids:e.join(","),tagids:t.join(",")},...n})}buildFansPager(e,t,n){if(!e&&!this.currUserUid)throw new kn(this.clientConfig,"uid 为空");return this.createPager("https://api.bilibili.com/x/relation/fans",new Ha({pageSize:24,...t}),{query:{vmid:e??this.currUserUid,order:"desc"},...n})}async fetchFansPage(e,t,n){return await this.buildFansPager(e,t,n).fetchNext()}async fetchFansPageWithNextParams(e,t,n){return await this.buildFansPager(e,t,n).fetchPageWithNextParams()}async fetchFansAll(e,t,n,r){return await this.buildFansPager(e,t,r).fetchAllPage(n)}async removeFan(e,t){await this.modify(e,Ur.REMOVE_FAN,!0,t)}async getStat(e,t){return await this.get("https://api.bilibili.com/x/relation/stat",{query:{vmid:e},...t})}async avoidRiskControl(e,t){await this.get("https://api.bilibili.com/x/web-interface/wbi/search/all/v2",{query:{__refresh__:"true",_extra:"",context:"",page:"1",page_size:"42",order:"",pubtime_begin_s:"0",pubtime_end_s:"0",duration:"",from_source:"",from_spmid:"333.337",platform:"pc",highlight:"1",single_column:"0",keyword:`UID: ${e}`,ad_resource:"5646",source_tag:"3"},...t,logRequestParams:!1}),await xs(666,t?.signal),await this.getRelation(e),await xs(50,t?.signal),await this.getStat(e,t),await xs(50,t?.signal),await this.userService.getUpStat(e,t),await xs(666,t?.signal)}async modify(e,t,n=!0,r){n&&await this.avoidRiskControl(e,r),await this.save("https://api.bilibili.com/x/relation/modify",{query:{statistics:'{"appId":100,"platform":5}',...t.code!==Ur.BLOCK.code?{"x-bili-device-req-json":'{"platform":"web","device":"pc","spmid":"333.1387"}'}:{}},data:{fid:String(e),act:String(t.code),re_src:t.reSrc.toString(),spmid:"333.1387",extend_content:`{"entity":"query","entity_id":"${e}"}`,gaia_source:"web_main",...t.code!==Ur.BLOCK.code?{is_from_frontend_component:"true"}:{}},ignoreBusinessError:!1,...r})}async blockUser(e,t){await this.modify(e,Ur.BLOCK,!1,t)}async unBlockUser(e,t){await this.modify(e,Ur.UNBLOCK,!0,t)}buildBlocksPager(e,t){return this.createPager("https://api.bilibili.com/x/relation/blacks",new Ha({pageSize:50,...e}),{...t})}async fetchBlocksPage(e,t){return await this.buildBlocksPager(e,t).fetchNext()}async fetchBlocksPageWithNextParams(e,t){return await this.buildBlocksPager(e,t).fetchPageWithNextParams()}async fetchBlocksAll(e,t,n){return await this.buildBlocksPager(e,n).fetchAllPage(t)}};Fe=ze(Fu);I(Fe,1,"fetchRelationPage",e1,Me);I(Fe,1,"fetchRelationPageWithNextParams",qv,Me);I(Fe,1,"fetchRelationAll",Qv,Me);I(Fe,1,"getRelation",Jv,Me);I(Fe,1,"getFollowTags",zv,Me);I(Fe,1,"getFollowingsByTag",Xv,Me);I(Fe,1,"createFollowTag",Hv,Me);I(Fe,1,"updateFollowTag",Kv,Me);I(Fe,1,"deleteFollowTag",Zv,Me);I(Fe,1,"getFollowsGroupedByTag",jv,Me);I(Fe,1,"fetchFollowingsPage",Uv,Me);I(Fe,1,"fetchPageWithNextParams",Yv,Me);I(Fe,1,"fetchFollowingsAll",Gv,Me);I(Fe,1,"followUser",Dv,Me);I(Fe,1,"unFollowUser",$v,Me);I(Fe,1,"copyUsersToTag",Vv,Me);I(Fe,1,"fetchFansPage",Wv,Me);I(Fe,1,"fetchFansPageWithNextParams",Mv,Me);I(Fe,1,"fetchFansAll",Lv,Me);I(Fe,1,"getStat",Fv,Me);I(Fe,1,"avoidRiskControl",kv,Me);I(Fe,1,"modify",Ov,Me);I(Fe,1,"blockUser",Bv,Me);I(Fe,1,"unBlockUser",Pv,Me);I(Fe,1,"fetchBlocksPage",Rv,Me);I(Fe,1,"fetchBlocksPageWithNextParams",Tv,Me);I(Fe,1,"fetchBlocksAll",Cv,Me);Je(Fe,Me);var N8=class extends Dt{hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.cursor.ps===0||r.cursor.max===0)return!1}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r===null)t.ps=this.options.pageSize,t.max=0,t.view_at=0,t.business=t.business??"";else{const s=r.data.cursor;t.ps=s.ps,t.max=s.max,t.view_at=s.view_at,t.business=s.business}}getList(e){return e.data.list}},t1,n1,r1,s1,o1,a1,i1,l1,Lu,wn,Yn=class extends(Lu=Xe,l1=[N()],i1=[N()],a1=[N()],o1=[N()],s1=[N()],r1=[N()],n1=[N()],t1=[N()],Lu){constructor(){super(...arguments),Qe(wn,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/web-interface/history/cursor",new N8({pageSize:20,...t}),{query:{business:e??""},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}deleteHistory(e,t){return this.save("https://api.bilibili.com/x/v2/history/delete",{data:{kid:e},...t})}clearHistory(e){return this.save("https://api.bilibili.com/x/v2/history/clear",{...e})}setHistoryShadow(e,t){return this.save("https://api.bilibili.com/x/v2/history/shadow/set",{data:{switch:e},...t})}getHistoryShadow(e){return this.get("https://api.bilibili.com/x/v2/history/shadow",{...e})}report(e,t){return this.save("https://api.bilibili.com/x/v2/history/report",{data:{...e,platform:"web"},...t})}};wn=ze(Lu);I(wn,1,"fetchPage",l1,Yn);I(wn,1,"fetchPageWithNextParams",i1,Yn);I(wn,1,"fetchAll",a1,Yn);I(wn,1,"deleteHistory",o1,Yn);I(wn,1,"clearHistory",s1,Yn);I(wn,1,"setHistoryShadow",r1,Yn);I(wn,1,"getHistoryShadow",n1,Yn);I(wn,1,"report",t1,Yn);Je(wn,Yn);var u1,c1,f1,d1,p1,h1,g1,m1,b1,v1,Mu,zt,ln=class extends(Mu=Xe,v1=[N()],b1=[N()],m1=[N()],g1=[N()],h1=[N()],p1=[N()],d1=[N()],f1=[N()],c1=[N()],u1=[N()],Mu){constructor(){super(...arguments),Qe(zt,5,this)}getSettings(e){return this.get("https://api.vc.bilibili.com/link_setting/v1/link_setting/get",{query:{msg_notify:1,show_unfollowed_msg:1,build:0,mobi_app:"web"},...e})}updateSettings(e,t){return this.save("https://api.vc.bilibili.com/link_setting/v1/link_setting/set",{data:{...e,build:0,mobi_app:"web"},...t})}getBlockWords(e){return this.get("https://api.vc.bilibili.com/x/im/link_setting/get_block_words",{query:{build:0,mobi_app:"web"},...e})}addBlockWord(e,t){return this.save("https://api.vc.bilibili.com/x/im/link_setting/add_block_word",{data:{content:e,build:0,mobi_app:"web"},...t})}delBlockWord(e,t){return this.save("https://api.vc.bilibili.com/x/im/link_setting/del_block_word",{data:{content:e,build:0,mobi_app:"web"},...t})}getAutoReplyRules(e,t){return this.get("https://api.vc.bilibili.com/x/im/auto_reply/get_reply_text",{query:{"type[]":e,build:0,mobi_app:"web"},...t})}setAutoReplyRule(e,t){return this.save("https://api.vc.bilibili.com/x/im/auto_reply/set_reply_text",{data:{build:0,mobi_app:"web",...e},...t})}delAutoReplyRule(e,t){return this.save("https://api.vc.bilibili.com/x/im/auto_reply/del_reply_text",{data:{id:e,build:0,mobi_app:"web"},...t})}getSystemSettings(e){return this.get("https://api.vc.bilibili.com/link_setting/v1/link_setting/get_sys_setting",{query:{build:0,mobi_app:"web"},...e})}canShowCreateGroupIcon(e){return this.get("https://api.vc.bilibili.com/link_group/v1/member/show_create_group_icon",{query:{build:0,mobi_app:"web"},...e})}};zt=ze(Mu);I(zt,1,"getSettings",v1,ln);I(zt,1,"updateSettings",b1,ln);I(zt,1,"getBlockWords",m1,ln);I(zt,1,"addBlockWord",g1,ln);I(zt,1,"delBlockWord",h1,ln);I(zt,1,"getAutoReplyRules",p1,ln);I(zt,1,"setAutoReplyRule",d1,ln);I(zt,1,"delAutoReplyRule",f1,ln);I(zt,1,"getSystemSettings",c1,ln);I(zt,1,"canShowCreateGroupIcon",u1,ln);Je(zt,ln);var I8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.cursor;t.id=s.id,t.reply_time=s.time}}getList(e){return e.data.items}},C8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.cursor;t.id=s.id,t.at_time=s.time}}getList(e){return e.data.items}},T8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.total.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.total.cursor;t.id=s.id,t.like_time=s.time}}getList(e){return e.data.total.items}},R8=class extends Dt{constructor(e){super({pageSize:17,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r==null||qs(r))return!1}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){n!=null&&n.length>0&&(t.cursor=n[n.length-1].cursor)}getList(e){return e.data}},y1,_1,w1,E1,A1,S1,x1,N1,I1,C1,T1,R1,P1,B1,O1,k1,F1,L1,M1,Wu,rt,ot=class extends(Wu=Xe,M1=[N()],L1=[N()],F1=[N()],k1=[N()],O1=[N()],B1=[N()],P1=[N()],R1=[N()],T1=[N()],C1=[N()],I1=[N()],N1=[N()],x1=[N()],S1=[N()],A1=[N()],E1=[N()],w1=[N()],_1=[N()],y1=[N()],Wu){constructor(){super(...arguments),Qe(rt,5,this)}getUnreadCount(e){return this.get("https://api.vc.bilibili.com/x/im/web/msgfeed/unread",{query:{build:0,mobi_app:"web"},...e})}delMessage(e,t,n){return this.save("https://api.bilibili.com/x/msgfeed/del",{data:{tp:t,id:e,build:0,mobi_app:"web",platform:"web"},...n})}buildBasePager(e,t,n){return this.createPager(`https://api.bilibili.com/x/msgfeed/${e}`,t,{query:{platform:"web",build:0,mobi_app:"web",web_location:"333.40164"},...n})}buildReplyPager(e,t){return this.buildBasePager("reply",new I8(e),t)}buildAtPager(e,t){return this.buildBasePager("at",new C8(e),t)}buildLikePager(e,t){return this.buildBasePager("like",new T8(e),t)}async fetchReplyPage(e,t){return await this.buildReplyPager(e,t).fetchNext()}async fetchReplyPageWithNextParams(e,t){return await this.buildReplyPager(e,t).fetchPageWithNextParams()}async fetchReplyAll(e,t,n){return await this.buildReplyPager(e,n).fetchAllPage(t)}delReplyMessage(e,t){return this.delMessage(e,1,t)}async fetchAtPage(e,t){return await this.buildAtPager(e,t).fetchNext()}async fetchAtPageWithNextParams(e,t){return await this.buildAtPager(e,t).fetchPageWithNextParams()}async fetchAtAll(e,t,n){return await this.buildAtPager(e,n).fetchAllPage(t)}delAtMessage(e,t){return this.delMessage(e,2,t)}async fetchLikePage(e,t){return await this.buildLikePager(e,t).fetchNext()}async fetchLikePageWithNextParams(e,t){return await this.buildLikePager(e,t).fetchPageWithNextParams()}async fetchLikeAll(e,t,n){return await this.buildLikePager(e,n).fetchAllPage(t)}setLikeMsgState(e,t,n){return this.save("https://api.bilibili.com/x/msgfeed/notice",{data:{tp:0,id:e,notice_state:t,build:0,mobi_app:"web",platform:"web"},...n})}delLikeMessage(e,t){return this.delMessage(e,0,t)}buildSystemPager(e,t){return this.createPager("https://message.bilibili.com/x/sys-msg/query_notify_list",new R8(e),{query:{page_size:20,build:0,platform:"web",mobi_app:"web",data_type:"web",has_up:"1",source_platform:"web",web_location:"333.40164"},...t})}async fetchSystemPage(e,t){return await this.buildSystemPager(e,t).fetchNext()}async fetchSystemPageWithNextParams(e,t){return await this.buildSystemPager(e,t).fetchPageWithNextParams()}async fetchSystemAll(e,t,n){return await this.buildSystemPager(e,n).fetchAllPage(t)}delSysMessages(e,t){return this.save("https://message.bilibili.com/x/sys-msg/del_notify_list",{query:{build:0,mobi_app:"web",csrf:this.clientConfig.context?.userCookie.bili_jct??""},data:JSON.stringify({station_ids:e.filter(n=>n.is_station===1).map(n=>n.id),ids:e.filter(n=>n.is_station!==1).map(n=>n.id),type:4,build:0,mobi_app:"web"}),...t})}};rt=ze(Wu);I(rt,1,"getUnreadCount",M1,ot);I(rt,1,"delMessage",L1,ot);I(rt,1,"fetchReplyPage",F1,ot);I(rt,1,"fetchReplyPageWithNextParams",k1,ot);I(rt,1,"fetchReplyAll",O1,ot);I(rt,1,"delReplyMessage",B1,ot);I(rt,1,"fetchAtPage",P1,ot);I(rt,1,"fetchAtPageWithNextParams",R1,ot);I(rt,1,"fetchAtAll",T1,ot);I(rt,1,"delAtMessage",C1,ot);I(rt,1,"fetchLikePage",I1,ot);I(rt,1,"fetchLikePageWithNextParams",N1,ot);I(rt,1,"fetchLikeAll",x1,ot);I(rt,1,"setLikeMsgState",S1,ot);I(rt,1,"delLikeMessage",A1,ot);I(rt,1,"fetchSystemPage",E1,ot);I(rt,1,"fetchSystemPageWithNextParams",w1,ot);I(rt,1,"fetchSystemAll",_1,ot);I(rt,1,"delSysMessages",y1,ot);Je(rt,ot);var P8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.has_more===0||r.session_list==null||r.session_list.length===0)return!1}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data.session_list;s!=null&&(t.end_ts=s[s.length-1].session_ts)}}getList(e){return e.data.session_list}},W1,V1,$1,D1,G1,Y1,U1,Vu,Un,pr=class extends(Vu=Xe,U1=[N()],Y1=[N()],G1=[N()],D1=[N()],$1=[N()],V1=[N()],W1=[N()],Vu){constructor(){super(...arguments),Qe(Un,5,this)}getUnreadCount(e){return this.get("https://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread",{query:{build:0,mobi_app:"web"},...e})}getMyGroupUnreadCount(e){return this.get("https://api.vc.bilibili.com/session_svr/v1/session_svr/my_group_unread",{query:{build:0,mobi_app:"web"},...e})}buildPager(e,t,n){const r=e?.session_type??1;return this.createPager("https://api.vc.bilibili.com/session_svr/v1/session_svr/get_sessions",new P8(t),{query:{...e,session_type:r,group_fold:r===1?"2":"1",size:r!==1?1:void 0,unfollow_fold:"0",sort_rule:"1",platform:"web",build:0,mobi_app:"web",web_location:"333.40164"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async setSessionRead(e,t){await this.save("https://api.vc.bilibili.com/session_svr/v1/session_svr/update_ack",{data:{talker_id:e.talker_id,session_type:e.session_type,ack_seqno:e.ack_seqno,build:0,mobi_app:"web"},...t})}async delSession(e,t){await this.save("https://api.vc.bilibili.com/session_svr/v1/session_svr/remove_session",{data:{talker_id:e.talker_id,session_type:e.session_type,build:0,mobi_app:"web"},...t})}};Un=ze(Vu);I(Un,1,"getUnreadCount",U1,pr);I(Un,1,"getMyGroupUnreadCount",Y1,pr);I(Un,1,"fetchPage",G1,pr);I(Un,1,"fetchPageWithNextParams",D1,pr);I(Un,1,"fetchAll",$1,pr);I(Un,1,"setSessionRead",V1,pr);I(Un,1,"delSession",W1,pr);Je(Un,pr);var B8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.count<=t.length||r.list.length===0)return!1}return!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.list}},j1,Z1,K1,H1,X1,z1,J1,Q1,q1,$u,un,En=class extends($u=Xe,q1=[N()],Q1=[N()],J1=[N()],z1=[N()],X1=[N()],H1=[N()],K1=[N()],Z1=[N()],j1=[N()],$u){constructor(){super(...arguments),Qe(un,5,this)}buildPager(e,t){return this.createPager("https://api.bilibili.com/x/v2/history/toview/web",new B8(e),{query:{viewed:0,asc:!1,key:"",need_split:!0,build:0,platform:"web",mobi_app:"web"},...t})}async fetchPage(e,t){return await this.buildPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPager(e,t).fetchPageWithNextParams()}async fetchAll(e,t,n){return await this.buildPager(e,n).fetchAllPage(t)}async addToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/add",{data:{aid:e},...t})}async addAllToView(e,t){await this.save("https://space.bilibili.com/ajax/channel/addAllToView",{data:{...typeof e=="string"?{bvid:e}:{aid:e}},...t})}async delToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/v2/dels",{data:{resources:e.join(",")},...t})}async clearToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/clear",{data:{clean_type:e},...t})}async moveFavFolder(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/move",{data:{resources:e.join(","),tar_media_id:t}})}async getTotal(e){const t=await this.get("https://api.bilibili.com/x/v3/fav/folder/list4navigate?web_location=333.1007",e);try{return t[1].mediaListResponse.count}catch{return}}};un=ze($u);I(un,1,"fetchPage",q1,En);I(un,1,"fetchPageWithNextParams",Q1,En);I(un,1,"fetchAll",J1,En);I(un,1,"addToView",z1,En);I(un,1,"addAllToView",X1,En);I(un,1,"delToView",H1,En);I(un,1,"clearToView",K1,En);I(un,1,"moveFavFolder",Z1,En);I(un,1,"getTotal",j1,En);Je(un,En);var wf=class extends Dt{constructor(e,t="list",n="has_more",r){super(e),this.listKey=t,this.hasMoreKey=n,this.countKey=r}hasNextPage(e,t,n){return n!==null&&n.data?n.data.has_more:!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data[this.listKey]}getTotal(e){if(this.countKey&&e)return e.data[this.countKey]}},e2,t2,n2,r2,s2,o2,a2,i2,l2,u2,c2,f2,d2,p2,Du,Et,Tt=class extends(Du=Xe,p2=[N()],d2=[N()],f2=[N()],c2=[N()],u2=[N()],l2=[N()],i2=[N()],a2=[N()],o2=[N()],s2=[N()],r2=[N()],n2=[N()],t2=[N()],e2=[N()],Du){constructor(){super(...arguments),Qe(Et,5,this)}async getFavFolders(e,t,n){return await this.get("https://api.bilibili.com/x/v3/fav/folder/created/list-all",{query:{up_mid:e??this.currUserUid,...t?{rid:t}:{},web_location:"333.1387"},...n})??{list:[],count:0}}async getFavFolderMeta(e,t){return await this.get("https://api.bilibili.com/x/v3/fav/folder/info",{query:{media_id:e},...t})}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v3/fav/resource/list",new wf({pageSize:40,...t},"medias"),{query:{...e,platform:"web",web_location:"333.1387"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){const s=this.buildPager(e,t,r),o=await s.fetchAllPage(n);if(!s.lastApiResponse?.data.info)throw new kn(this.clientConfig,`收藏夹[${e.media_id}]不存在`);return{info:s.lastApiResponse?.data.info,medias:o,has_more:!1}}async getFavIds(e,t){return await this.get("https://api.bilibili.com/x/v3/fav/resource/ids",{query:{media_id:e},...t})}async addFavFolder(e,t){return await this.save("https://api.bilibili.com/x/v3/fav/folder/add",{data:{...e},...t})}async updateFavFolder(e,t){const{id:n,...r}=e;return await this.save("https://api.bilibili.com/x/v3/fav/folder/edit",{data:{...r,media_id:n},...t})}async delFavFolder(e,t){await this.save("https://api.bilibili.com/x/v3/fav/folder/del",{data:{media_ids:e.join(",")},...t})}async copyFavItems(e,t,n,r,s){await this.save("https://api.bilibili.com/x/v3/fav/resource/copy",{data:{src_media_id:e,tar_media_id:t,mid:n,resources:r,platform:"web"},...s})}async moveFavItems(e,t,n,r,s){await this.save("https://api.bilibili.com/x/v3/fav/resource/move",{data:{src_media_id:e,tar_media_id:t,mid:n,resources:r,platform:"web"},...s})}async batchDelFavItems(e,t,n){await this.save("https://api.bilibili.com/x/v3/fav/resource/batch-del",{data:{media_id:e,resources:t,platform:"web"},...n})}async cleanFavItems(e,t){await this.save("https://api.bilibili.com/x/v3/fav/resource/clean",{data:{media_id:e,platform:"web"},...t})}async favVideo(e,t,n,r){return await this.save("https://api.bilibili.com/x/v3/fav/resource/deal",{data:{rid:e,add_media_ids:t.join(","),del_media_ids:n.join(","),type:"2",platform:"web",eab_x:"1",ramval:"10",ga:"1",gaia_source:"web_normal"},...r})}};Et=ze(Du);I(Et,1,"getFavFolders",p2,Tt);I(Et,1,"getFavFolderMeta",d2,Tt);I(Et,1,"fetchPage",f2,Tt);I(Et,1,"fetchPageWithNextParams",c2,Tt);I(Et,1,"fetchAll",u2,Tt);I(Et,1,"getFavIds",l2,Tt);I(Et,1,"addFavFolder",i2,Tt);I(Et,1,"updateFavFolder",a2,Tt);I(Et,1,"delFavFolder",o2,Tt);I(Et,1,"copyFavItems",s2,Tt);I(Et,1,"moveFavItems",r2,Tt);I(Et,1,"batchDelFavItems",n2,Tt);I(Et,1,"cleanFavItems",t2,Tt);I(Et,1,"favVideo",e2,Tt);Je(Et,Tt);var h2,g2,m2,b2,v2,Gu,kr,ds=class extends(Gu=Xe,v2=[N()],b2=[N()],m2=[N()],g2=[N()],h2=[N()],Gu){constructor(){super(...arguments),Qe(kr,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v3/fav/folder/collected/list",new wf({pageSize:50,...t},void 0,void 0,"count"),{query:{up_mid:e??this.currUserUid,platform:"web",web_location:"333.1387"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async add(e,t){await this.save("https://api.bilibili.com/x/v3/fav/season/fav",{data:{season_id:e,platform:"web"},...t})}async del(e,t){await this.save("https://api.bilibili.com/x/v3/fav/season/unfav",{data:{season_id:e,platform:"web"},...t})}};kr=ze(Gu);I(kr,1,"fetchPage",v2,ds);I(kr,1,"fetchPageWithNextParams",b2,ds);I(kr,1,"fetchAll",m2,ds);I(kr,1,"add",g2,ds);I(kr,1,"del",h2,ds);Je(kr,ds);var O8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return n!==null&&n.data?n.data.has_more:!0}parsePageNum(e){if(e)return e.page}updateNextPageParams(e,t,n,r){t.page=e,t.page_size=this.options.pageSize}getList(e){return e.data.items}},y2,_2,w2,E2,A2,S2,Yu,hr,Fr=class extends(Yu=Xe,S2=[N()],A2=[N()],E2=[N()],w2=[N()],_2=[N()],y2=[N()],Yu){constructor(){super(...arguments),Qe(hr,5,this)}buildPager(e,t){return this.createPager("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/feed/fav",new O8(e),{query:{platform:"web",web_location:"333.1387"},...t})}async fetchPage(e,t){return await this.buildPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPager(e,t).fetchPageWithNextParams()}async fetchAll(e,t,n){return await this.buildPager(e,n).fetchAllPage(t)}async del(e,t){await this.post("https://api.bilibili.com/x/community/cosmo/interface/simple_action",{query:{csrf:this.clientConfig.context?.userCookie.bili_jct,gaia_source:"main_web"},data:JSON.stringify({"":{spmid:"444.42.0.0",from:"unknown",from_spmid:"333.1387.0.0"},action:4,entity:{object_id_str:e,type:{biz:2}}}),...t})}async addByCvId(e,t){await this.save("https://api.bilibili.com/x/article/favorites/add",{data:{id:e},...t})}async addByOpusId(e,t){const n=await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail",{query:{id:e},...t});await Xo(200,300),await this.addByCvId(n.fallback.id)}};hr=ze(Yu);I(hr,1,"fetchPage",S2,Fr);I(hr,1,"fetchPageWithNextParams",A2,Fr);I(hr,1,"fetchAll",E2,Fr);I(hr,1,"del",w2,Fr);I(hr,1,"addByCvId",_2,Fr);I(hr,1,"addByOpusId",y2,Fr);Je(hr,Fr);var go={all:0},x2,N2,I2,C2,T2,R2,Uu,gr,Lr=class extends(Uu=Xe,R2=[N()],T2=[N()],C2=[N()],I2=[N()],N2=[N()],x2=[N()],Uu){constructor(){super(...arguments),Qe(gr,5,this)}buildPager(e,t,n=go.all,r,s){return this.createPager("https://api.bilibili.com/x/space/bangumi/follow/list",new Ha({pageSize:24,...r}),{query:{vmid:e??this.currUserUid,type:t,follow_status:n,platform:"web",web_location:"333.1387"},...s})}async fetchPage(e,t,n=go.all,r,s){return await this.buildPager(e,t,n,r,s).fetchNext()}async fetchPageWithNextParams(e,t,n=go.all,r,s){return await this.buildPager(e,t,n,r,s).fetchPageWithNextParams()}async fetchAll(e,t,n=go.all,r,s,o){return await this.buildPager(e,t,n,r,o).fetchAllPage(s)}async fetchMyAll(e,t=go.all,n,r,s){return this.fetchAll(this.currUserUid,e,t,n,r,s)}async add(e,t){await this.save("https://api.bilibili.com/pgc/web/follow/add",{data:{season_id:e,platform:"web"},...t})}async del(e,t){await this.save("https://api.bilibili.com/pgc/web/follow/del",{data:{season_id:e,platform:"web"},...t})}};gr=ze(Uu);I(gr,1,"fetchPage",R2,Lr);I(gr,1,"fetchPageWithNextParams",T2,Lr);I(gr,1,"fetchAll",C2,Lr);I(gr,1,"fetchMyAll",I2,Lr);I(gr,1,"add",N2,Lr);I(gr,1,"del",x2,Lr);Je(gr,Lr);var k8=class extends Dt{constructor(e){super({pageSize:40,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data,s=r.page;if(qs(r.list.vlist)||s.count<=t.length||s.count<=s.pn*s.ps)return!1}return!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.list.vlist}},P2,B2,O2,ju,no,ba=class extends(ju=Xe,O2=[N()],B2=[N()],P2=[N()],ju){constructor(){super(...arguments),Qe(no,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/space/wbi/arc/search",new k8(t),{query:{...e,platform:"web"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){const s=this.buildPager(e,t,r);return await s.fetchAllPage(n),s.lastApiResponse.data.list.vlist=s.list,s.lastApiResponse.data}};no=ze(ju);I(no,1,"fetchPage",O2,ba);I(no,1,"fetchPageWithNextParams",B2,ba);I(no,1,"fetchAll",P2,ba);Je(no,ba);var k2,F2,L2,M2,Zu,ps,hs=class extends(Zu=Xe,M2=[N()],L2=[N()],F2=[N()],k2=[N()],Zu){constructor(){super(...arguments),Qe(ps,5,this)}getOnlineCount(e,t){return this.get("https://api.bilibili.com/x/player/online/total",{query:{...this.resolveVideoId(e),cid:e.cid},...t})}getParts(e,t){return this.get("https://api.bilibili.com/x/player/pagelist",{query:{...this.resolveVideoId(e)},...t})}async getOwnParts(e,t){const n=await this.get("https://member.bilibili.com/x/vupre/web/archive/view",{query:{topic_grey:"1",bvid:e},...t});return n?.videos&&Array.isArray(n.videos)?n.videos:[]}getInfo(e,t){return this.get("https://api.bilibili.com/x/web-interface/wbi/view",{query:{...this.resolveVideoId(e)},...t})}};ps=ze(Zu);I(ps,1,"getOnlineCount",M2,hs);I(ps,1,"getParts",L2,hs);I(ps,1,"getOwnParts",F2,hs);I(ps,1,"getInfo",k2,hs);Je(ps,hs);var F8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data;if(r.has_more!==void 0)return r.has_more}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){const s=r.data;t.offset=s.offset}}getList(e){return e.data.items}},W2,V2,$2,D2,G2,Ku,Mr,Wr=class extends(Ku=Xe,G2=[N()],D2=[N()],$2=[N()],V2=[N()],W2=[N()],Ku){constructor(){super(...arguments),Qe(Mr,5,this)}buildDynamicPager(e,t,n){return this.createPager("https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all",new F8(t),{query:{...e,platform:"web",build:0,mobi_app:"web",web_location:"333.1365"},...n})}async fetchDynamicPage(e,t,n){return await this.buildDynamicPager(e,t,n).fetchNext()}async fetchDynamicPageWithNextParams(e,t,n){return await this.buildDynamicPager(e,t,n).fetchPageWithNextParams()}async fetchDynamicAll(e,t,n,r){return await this.buildDynamicPager(e,t,r).fetchAllPage(n)}async newUpdatesCount(e,t){return(await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all/update",{query:{...e,web_location:"333.1365"},...t})).update_num}async getDetail(e,t){return(await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/detail",{query:{timezone_offset:"-480",platform:"web",gaia_source:"main_web",features:"itemOpusStyle,opusBigCover,onlyfansVote,endFooterHidden,decorationCard,onlyfansAssetsV2,ugcDelete,onlyfansQaCard,editable,opusPrivateVisible,avatarAutoTheme,sunflowerStyle,cardsEnhance,eva3CardOpus,eva3CardVideo,eva3CardComment,eva3CardVote,eva3CardUser",web_location:"333.1368","x-bili-device-req-json":'{"platform":"web","device":"pc","spmid":"333.1368"}',...e},...t})).item}};Mr=ze(Ku);I(Mr,1,"fetchDynamicPage",G2,Wr);I(Mr,1,"fetchDynamicPageWithNextParams",D2,Wr);I(Mr,1,"fetchDynamicAll",$2,Wr);I(Mr,1,"newUpdatesCount",V2,Wr);I(Mr,1,"getDetail",W2,Wr);Je(Mr,Wr);var Y2,U2,j2,Z2,K2,H2,X2,Hu,jn,mr=class extends(Hu=Xe,X2=[N()],H2=[N()],K2=[N()],Z2=[N()],j2=[N()],U2=[N()],Y2=[N()],Hu){constructor(){super(...arguments),Qe(jn,5,this),this._videoInfoService=null}get videoInfoService(){return this._videoInfoService||(this._videoInfoService=new hs(this.api)),this._videoInfoService}getRelation(e,t){return this.get("https://api.bilibili.com/x/web-interface/archive/relation",{query:{...this.resolveVideoId(e)},returnFormat:"ApiResponse",ignoreBusinessError:!0,...t})}like(e,t){return this.save("https://api.bilibili.com/x/web-interface/archive/like",{data:{...this.resolveVideoId(e),like:e.like?"1":"2"},...t})}async hasLike(e,t){return await this.get("https://api.bilibili.com/x/web-interface/archive/has/like",{query:{...this.resolveVideoId(e)},...t})===1}dislike(e,t){return this.save("https://app.biliapi.net/x/v2/view/dislike",{data:{aid:e.avid,dislike:e.dislike?"0":"1"},...t})}async coin(e,t){let n=e.bvid;return n||(n=(await this.videoInfoService.getInfo(e)).bvid),this.save("https://api.bilibili.com/x/web-interface/coin/add",{data:{bvid:n,multiply:e.multiply,select_like:e.select_like??0,cross_domain:!0,from_spmid:"333.337.search-card.all.click",spmid:"333.788.0.0",statistics:'{"appId":100,"platform":5}',eab_x:2,ramval:0,source:"web_normal",ga:1},returnFormat:"ApiResponse",ignoreBusinessError:!0,...t,referer:`https://www.bilibili.com/video/${n}/?spm_id_from=333.1391.0.0`})}triple(e,t){return this.save("https://api.bilibili.com/x/web-interface/archive/like/triple",{data:{...this.resolveVideoId(e)},...t})}share(e,t){return this.save("https://api.bilibili.com/x/web-interface/share/add",{data:{...this.resolveVideoId(e),eab_x:1,ramval:316,source:"web_normal",ga:1},...t})}};jn=ze(Hu);I(jn,1,"getRelation",X2,mr);I(jn,1,"like",H2,mr);I(jn,1,"hasLike",K2,mr);I(jn,1,"dislike",Z2,mr);I(jn,1,"coin",j2,mr);I(jn,1,"triple",U2,mr);I(jn,1,"share",Y2,mr);Je(jn,mr);var z2,Xu,zi,Ef=class extends(Xu=Xe,z2=[N()],Xu){constructor(){super(...arguments),Qe(zi,5,this)}heartbeat(e,t,n){const r={params:{},body:{}},s=(a,i,l)=>{r.body[a]=r.params[l||"w"+a]=t[a]??e[l||"w"+a]??i};s("start_ts",Math.floor(Date.now()/1e3)),s("mid",this.currUserUid),s("aid",0),s("dt",2),s("realtime",0),s("played_time",0,"w_playedtime"),s("real_played_time",0),s("video_duration",180),s("last_play_progress_time",0);const o="https://www.bilibili.com/?spm_id_from=333.1365.0.0";return this.save("https://api.bilibili.com/x/click-interface/web/heartbeat",{query:{...r.params,web_location:1315873,...e},data:{quality:80,type:3,outer:0,statistics:'{"appId":100,"platform":5,"abtest":"","version":""}',max_play_progress_time:r.body.last_play_progress_time+r.body.played_time,refer_url:o,...r.body,mobi_app:"web",device:"web",platform:"web",cur_language_vt:"{}",perfer_type:"{}",play_mode:"1",spmid:"333.788.0.0",from_spmid:"333.1007.tianma.1-2-2.click",session:crypto.randomUUID().replace(/-/g,""),extra:'{"player_version":"4.8.36","play_method":3,"play_volume":1,"auto_play":0}',...t},init:{headers:{referer:o}},...n})}};zi=ze(Xu);I(zi,1,"heartbeat",z2,Ef);Je(zi,Ef);var J2,Q2,zu,va,Ji=class extends(zu=Xe,Q2=[N()],J2=[N()],zu){constructor(){super(...arguments),Qe(va,5,this)}getDailyTaskStatus(e){return this.get("https://api.bilibili.com/x/member/web/exp/reward",e)}getCoinTodayExp(e){return this.get("https://api.bilibili.com/x/web-interface/coin/today/exp",e)}};va=ze(zu);I(va,1,"getDailyTaskStatus",Q2,Ji);I(va,1,"getCoinTodayExp",J2,Ji);Je(va,Ji);var L8=class extends wf{constructor(e,t="list",n){super(e,t),this.hasMoreKey=n}hasNextPage(e,t,n){return n!==null&&n.data?n.data[this.hasMoreKey]:!0}},q2,ey,ty,ny,Ju,gs,ro=class extends(Ju=Xe,ny=[N()],ty=[N()],ey=[N()],q2=[N()],Ju){constructor(){super(...arguments),Qe(gs,5,this)}buildPopularPager(e,t){return this.createPager("https://api.bilibili.com/x/web-interface/popular",new L8({pageSize:20,...e},"list","no_more"),{query:{},...t})}async fetchPopularPage(e,t){return await this.buildPopularPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPopularPager(e,t).fetchPageWithNextParams()}getPopularSeriesList(e){return this.get("https://api.bilibili.com/x/web-interface/popular/series/list",{...e})}getPopularSeriesInfo(e,t){return this.get("https://api.bilibili.com/x/web-interface/popular/series/one",{query:{number:e},...t})}};gs=ze(Ju);I(gs,1,"fetchPopularPage",ny,ro);I(gs,1,"fetchPageWithNextParams",ty,ro);I(gs,1,"getPopularSeriesList",ey,ro);I(gs,1,"getPopularSeriesInfo",q2,ro);Je(gs,ro);var ry,sy,Qu,ya,Qi=class extends(Qu=Xe,sy=[N()],ry=[N()],Qu){constructor(){super(...arguments),Qe(ya,5,this)}getNavNum(e,t){return this.get("https://api.bilibili.com/x/space/navnum",{query:{mid:e},...t})}getFavNum(e,t){return this.get("https://api.bilibili.com/x/space/fav/nav",{query:{mid:e},...t})}};ya=ze(Qu);I(ya,1,"getNavNum",sy,Qi);I(ya,1,"getFavNum",ry,Qi);Je(ya,Qi);var oy,ay,qu,_a,qi=class extends(qu=Xe,ay=[N()],oy=[N()],qu){constructor(){super(...arguments),Qe(_a,5,this)}getSpaceSettings(e){return this.get("https://api.bilibili.com/x/space/setting",{query:{web_location:"333.1387",mid:this.currUserUid},...e})}updatePrivacy(e,t){const n=Object.keys(e)[0],r=e[n];return this.save("https://api.bilibili.com/x/space/privacy/modify",{data:{field:n,value:r},...t})}};_a=ze(qu);I(_a,1,"getSpaceSettings",ay,qi);I(_a,1,"updatePrivacy",oy,qi);Je(_a,qi);var M8=(e="info")=>({timeout:5e3,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36",referer:"https://space.bilibili.com/10000",logLevel:e,logger:u0(e,(t,...n)=>{console[t](`[${new Date().toLocaleString()}]`,...n)}),autoMixinKey:!1}),iy={method:"GET",skipWbiSign:!1,autoCsrf:!0,logRequestParams:!0},W8={...iy,returnFormat:"ApiResponseData",ignoreBusinessError:!1},ly,uy,ec,wa,el=class extends(ec=Xe,uy=[N()],ly=[N()],ec){constructor(){super(...arguments),Qe(wa,5,this)}get userService(){return this.api.client.user}getPlayUrl(e,t){return this.get("https://api.bilibili.com/x/player/wbi/playurl",{query:{fnval:1,fourk:1,high_quality:1,gaia_source:"view-card ",...e},init:{headers:{referer:`https://www.bilibili.com/video/${e.bvid}/?spm_id_from=333.1391.0.0`}},...t})}async getBestQualityUrl(e,t){const n=await this.getPlayUrl({...e,fnval:4048,qn:129},t);if(n.quality===n.accept_quality[0])return n;let r=n.accept_quality[0];await Xo(100,200);const s=await this.userService.getMyInfo(void 0,t);return await Xo(100,200),s.vip.type===0&&n.accept_quality[0]>=80&&(r=80),this.getPlayUrl({...e,qn:r},t)}};wa=ze(ec);I(wa,1,"getPlayUrl",uy,el);I(wa,1,"getBestQualityUrl",ly,el);Je(wa,el);var V8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data,s=r.page;if(qs(r.replies)||s.count<=t.length||s.count<=s.num*s.size)return!1}return!0}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.replies}parsePageNum(e){if(e?.pn)return e?.pn}},$8=class extends Dt{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;const r=n.data,s=r.cursor;if(qs(r.replies)||s.is_end)return!1}return!0}updateNextPageParams(e,t,n,r){if(r){const s=r.data;t.pagination_str=`{"offset":"${s.cursor.pagination_reply.next_offset}"}`}}getList(e){const t=e.data,n=t.replies;return t.top.upper&&n.push(t.top.upper),n}parsePageNum(e){}},D8=23442827791579n,G8=2251799813685247n,Y8=58n,kh="FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf",cy=Object.create(null);for(let e=0;e<kh.length;e++)cy[kh[e]]=BigInt(e);function U8(e){if(!e.startsWith("BV1")||e.length!==12)throw new Error(`[utils/bv2av] Invalid BVID format: ${e}`);const t=Array.from(e);[t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]];let n=0n;for(let r=3;r<12;r++){const s=cy[t[r]]??0n;n=n*Y8+s}return Number(n&G8^D8)}var tc=async e=>{if(e=e?.trim(),!e)throw new Error("视频链接解析错误");if(e.length===12&&e.match(/^BV1[0-9a-zA-Z]{9}$/))return{bvid:e};if(e.match(/^av[0-9]+$/))return{aid:Number(e.slice(2))};let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?tc((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/video\/([^/?]+)/),tc(t?t[1]:void 0))},Fh=async e=>{if(e=e?.trim(),!e)throw new Error("用户 uid 解析错误");if(e.match(/^[0-9]+$/))return Number(e);let t=e.match(/\buid\b\s*[::]\s*(\d+)/i);return t?Number(t[1]):(t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/),t?Fh((await fetch(e)).url):(t=e.match(/https:\/\/space.bilibili.com\/([^?]+)/),Fh(t?t[1]:void 0)))},nc=async e=>{if(e=e?.trim(),!e)throw new Error("动态链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?nc((await fetch(e)).url):(t=e.match(/https:\/\/t.bilibili.com\/([^?]+)/),nc(t?t[1]:void 0))},rc=async e=>{if(e=e?.trim(),!e)throw new Error("专栏评论链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?rc((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/read\/cv([^?]+)/),rc(t?t[1]:void 0))},Lh=async e=>{if(e=e?.trim(),!e)throw new Error("专栏链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?Lh((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/opus\/([^?]+)/),Lh(t?t[1]:void 0))},fy=async(e,t)=>{t=t?.trim();const n="评论链接解析错误";if(!t)throw new Error(n);if(t.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/))return fy(e,(await fetch(t)).url);const s=new URLSearchParams(t.split("#")[0]),o=s.get("comment_root_id"),a=s.get("comment_secondary_id"),i=s.get("type");if(o==null)throw new Error(n);try{const l=await tc(t);if(l){let{aid:u,bvid:c}=l;return c&&(u=U8(c)),{oid:String(u),type:"1",root_id:o,rpid:a??void 0}}}catch{}if(i)try{const l=await nc(t);if(l){const u=await e.getDetail({rid:l,type:i});return{oid:String(l),type:String(u.basic.comment_type),root_id:o,rpid:a??void 0}}}catch{}try{const l=await rc(t);if(l)return{oid:String(l),type:"12",root_id:o,rpid:a??void 0}}catch{}throw new Error(n)},dy,py,hy,gy,my,by,vy,yy,_y,wy,Ey,Ay,sc,Ft,Gt=class extends(sc=Xe,Ay=[N()],Ey=[N()],wy=[N()],_y=[N()],yy=[N()],vy=[N()],by=[N()],my=[N()],gy=[N()],hy=[N()],py=[N()],dy=[N()],sc){constructor(){super(...arguments),Qe(Ft,5,this),this._dynamicService=null}get dynamicService(){return this._dynamicService||(this._dynamicService=new Wr(this.api)),this._dynamicService}buildSubReplyPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v2/reply/reply",new V8({...t}),{query:{...e,platform:"web",web_location:"333.1369"},...n,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async fetchSubReplyPage(e,t,n){return await this.buildSubReplyPager(e,t,n).fetchNext()}async fetchSubPageWithNextParams(e,t,n){return await this.buildSubReplyPager(e,t,n).fetchPageWithNextParams()}async fetchSubReplyAll(e,t,n,r){return await this.buildSubReplyPager(e,t,r).fetchAllPage(n)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v2/reply/wbi/main",new $8({...t}),{query:{seek_rpid:"",...e,plat:1,web_location:"1315875"},...n,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async resolveCommentItem(e,t){const{type:n,oid:r,rpid:s,root_id:o}=await fy(this.dynamicService,e),a=s??o,i=await this.buildPager({type:n,oid:r,seek_rpid:a,mode:"3"}).fetchNext(t);if(!i||i.length===0)return null;for(let l of i){if(l.rpid_str===a)return l;if(l.replies&&l.replies.length>0){for(let u of l.replies)if(u.rpid_str===a)return u}}return null}async getRecentReplies(e,t,n){const r=this.buildPager({mode:"2",...e}),s=[];for(;;){const o=await r.fetchNext(n);if(await Xo(2222,5555),!o||o.length===0)return s;for(let a=0;a<o.length;a++){const i=o[a];if(s.length>=t)return s;s.push(i)}}}async del(e,t){await this.save("https://api.bilibili.com/x/v2/reply/del",{data:{...e},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async like(e,t){await this.save("https://api.bilibili.com/x/v2/reply/action",{data:{action:"1",...e,statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async hate(e,t){await this.save("https://api.bilibili.com/x/v2/reply/hate",{data:{action:"1",...e,statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async add(e,t){return await this.save("https://api.bilibili.com/x/v2/reply/add",{data:{...e,plat:"1",at_name_to_mid:"{}",gaia_source:"main_web",statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}};Ft=ze(sc);I(Ft,1,"fetchSubReplyPage",Ay,Gt);I(Ft,1,"fetchSubPageWithNextParams",Ey,Gt);I(Ft,1,"fetchSubReplyAll",wy,Gt);I(Ft,1,"fetchPage",_y,Gt);I(Ft,1,"fetchPageWithNextParams",yy,Gt);I(Ft,1,"fetchAll",vy,Gt);I(Ft,1,"resolveCommentItem",by,Gt);I(Ft,1,"getRecentReplies",my,Gt);I(Ft,1,"del",gy,Gt);I(Ft,1,"like",hy,Gt);I(Ft,1,"hate",py,Gt);I(Ft,1,"add",dy,Gt);Je(Ft,Gt);var j8=v8("CghkbS5wcm90bxIgYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEiZAoGQXZhdGFyEgoKAmlkGAEgASgJEgsKA3VybBgCIAEoCRJBCgthdmF0YXJfdHlwZRgDIAEoDjIsLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkF2YXRhclR5cGUiIwoGQnViYmxlEgwKBHRleHQYASABKAkSCwoDdXJsGAIgASgJIsYBCghCdWJibGVWMhIMCgR0ZXh0GAEgASgJEgsKA3VybBgCIAEoCRJBCgtidWJibGVfdHlwZRgDIAEoDjIsLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkJ1YmJsZVR5cGUSFQoNZXhwb3N1cmVfb25jZRgEIAEoCBJFCg1leHBvc3VyZV90eXBlGAUgASgOMi4uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRXhwb3N1cmVUeXBlIiYKBkJ1dHRvbhIMCgR0ZXh0GAEgASgJEg4KBmFjdGlvbhgCIAEoBSJYCg5CdXp6d29yZENvbmZpZxJGCghrZXl3b3JkcxgBIAMoCzI0LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkJ1enp3b3JkU2hvd0NvbmZpZyJ4ChJCdXp6d29yZFNob3dDb25maWcSDAoEbmFtZRgBIAEoCRIOCgZzY2hlbWEYAiABKAkSDgoGc291cmNlGAMgASgFEgoKAmlkGAQg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ZXJ2aWNlLmRtLnYxLkRtU2VnU0RLUmVxGi8uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1TZWdTREtSZXBseRJ0CgxEbUV4cG9SZXBvcnQSMS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbUV4cG9SZXBvcnRSZXEaMS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbUV4cG9SZXBvcnRSZXNiBnByb3RvMw"),Z8=y8(j8,0),K8=class extends Xe{async fetchAll(e,t){const n=(e.duration-1)/360+1,r=[];for(let s=1;s<=n;s++){const o=await this.api.fetchArrayBuffer("https://api.bilibili.com/x/v2/dm/web/seg.so",{query:{type:"1",oid:e.cid,segment_index:s},...t}),a=new Uint8Array(o),i=lv(Z8.method.dmSegMobile.output,a);r.push(...i.elems??[]),s<n&&await Xo(500,1111,t?.signal)}return r}},Sy,oc,tl,Af=class extends(oc=Xe,Sy=[N()],oc){constructor(){super(...arguments),Qe(tl,5,this)}async getDetail(e,t){return await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail",{query:{timezone_offset:"-480",features:"onlyfansVote,onlyfansAssetsV2,decorationCard,htmlNewStyle,ugcDelete,editable,opusPrivateVisible,tribeeEdit,avatarAutoTheme,avatarTypeOpus",...e},...t})}};tl=ze(oc);I(tl,1,"getDetail",Sy,Af);Je(tl,Af);var H8=class{get logger(){return this.config.logger}constructor(e){this.config={...M8(e?.logLevel),...e??{}},this.api=new e9(this),this.createPager=this.api.createPager,this.request=this.api.request,this.user=new _n(this.api),this.userExp=new Ji(this.api),this.relation=new Me(this.api),this.history=new Yn(this.api),this.session=new pr(this.api),this.sessionSettings=new ln(this.api),this.message=new ot(this.api),this.toview=new En(this.api),this.fav=new Tt(this.api),this.favCollection=new ds(this.api),this.favOpus=new Fr(this.api),this.followBangumi=new Lr(this.api),this.spaceVideo=new ba(this.api),this.spaceStatus=new Qi(this.api),this.spaceSettings=new qi(this.api),this.dynamic=new Wr(this.api),this.videoInfo=new hs(this.api),this.videoAction=new mr(this.api),this.videoReport=new Ef(this.api),this.videoRanking=new ro(this.api),this.videoPlayer=new el(this.api),this.comment=new Gt(this.api),this.dm=new K8(this.api),this.opus=new Af(this.api),Iy.setAutoRefresh(this.config.autoMixinKey)}updateRequestContext(e){this.config.context=e}},$l=null,Mh=()=>($l||($l=new H8),$l),Wo,Wa=null,xy=0,Dl=void 0,Wh=1440*60*1e3,Ny=!1,Iy={get:async()=>Wo||(Wa||(Wa=J8().catch(()=>{Wa=null})),await Wa,Wo),setAutoRefresh(e){Ny=e}};function X8(e,t){return Math.floor(e/Wh)!==Math.floor(t/Wh)}var z8=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52],Cy=(e,t)=>{const n=e+t;return z8.map(r=>n[r]).join("").slice(0,32)},J8=async()=>{await Vh(),Dl||clearInterval(Dl),Ny&&(Dl=setInterval(()=>{X8(xy,Date.now())&&Vh()},3e5))},Vh=async()=>{try{const e=Date.now(),t=(await(await fetch("https://api.bilibili.com/x/web-interface/nav")).json()).data,n=o=>new URL(o).pathname.split("/").pop().replace(/\.[^.]+$/,""),r=n(t.wbi_img.img_url),s=n(t.wbi_img.sub_url);Wo=Cy(r,s),Mh().logger.info(`初始化 imgKey=${r} subKey=${s} mixinKey=${Wo}`),xy=e}catch(e){throw Mh().logger.error("初始化 MixinKey 失败",e),e}};async function $h(e,t){const n=Math.floor(Date.now()/1e3),r=t??await Iy.get();return`${pu(e)}&w_rid=${HR(pu({...e,wts:n})+r)}&wts=${n}`}async function Q8(e,t,n){try{return t||Object.keys(e).length===0?`${pu(e)}`:n?`${await $h(e,Cy(n.imgKey,n.subKey))}`:`${await $h(e)}`}catch{throw new Error("查询参数无效")}}var q8=class extends bv{constructor(e,t,n){super(e),this.list=[],this.lastApiResponse=null,this.pageStrategy=t,t.options.pageNum!==void 0?this.nextPageNum=t.options.pageNum:this.nextPageNum=1;const{baseUrl:r,searchParams:s}=c0(n.url);this.requestParams=Object.assign(f0(s,n.query)),this.requestOptions={...n,url:r,query:this.requestParams,returnFormat:"ApiResponse"}}mergeRequestOptions(e){this.requestParams={...this.requestParams,...e?.query},this.requestOptions={...this.requestOptions,...e,query:this.requestParams,returnFormat:"ApiResponse"}}async fetchNext(e){if(this.mergeRequestOptions(e),!this.pageStrategy.hasNextPage(this.nextPageNum,this.list,this.lastApiResponse))return null;this.pageStrategy.updateNextPageParams(this.nextPageNum,this.requestParams,this.list,this.lastApiResponse),this.lastApiResponse===null&&(this.nextPageNum===1||this.nextPageNum===this.pageStrategy.options.pageNum)&&Object.assign(this.requestParams,this.pageStrategy.options.pageParams);const t=await this.get(this.requestOptions.url,this.requestOptions);if(this.lastApiResponse=t,t.data==null)return null;this.nextPageNum++;const n=this.pageStrategy.getList(t)??[];return n.length<=0?null:(this.list.push(...n),n)}async fetchPageWithNextParams(e){return{items:await this.fetchNext(e),nextParams:this.getNextPageParams(),hasNext:this.pageStrategy.hasNextPage(this.nextPageNum,this.list,this.lastApiResponse),pageSize:this.pageStrategy.options.pageSize,total:this.pageStrategy.getTotal?.(this.lastApiResponse)??void 0}}getRequestDelay(e){return typeof e?.delay=="function"?e.delay(this.nextPageNum):typeof e?.delay=="number"?e.delay:1122}async fetchAllPage(e,t){for(this.mergeRequestOptions(t),this.nextPageNum=1,this.list=[],this.lastApiResponse=null;!this.requestOptions.signal?.aborted;){const n=await this.fetchNext(t);if(n===null||e&&await e(n,this.list)===!1)break;await xs(this.getRequestDelay(t),this.requestOptions.signal)}return this.list}getNextPageParams(){const e={};return this.pageStrategy.updateNextPageParams(this.nextPageNum,e,this.list,this.lastApiResponse),e}getPageSize(){return this.pageStrategy.options.pageSize}},e9=class{constructor(e){this.client=e,this.logApiSuccess=(t,n,r,s)=>{if(n==="RawResponse")this.logger.info(`${t} 请求成功`);else{const o=s||this.isDebug?JSON.stringify(r):"";n==="ApiResponse"?this.logger.info(`${t} 请求成功`,o):this.logger.info(`${t} 请求成功`,o)}},this.logApiError=(t,n)=>{kc(n)?this.logger.info(`${t} [${Fs(n)}]`):n instanceof Ma?this.logger.info(`${t} [http error]:${n.message}(${n.status})`):n instanceof kn?this.logger.info(`${t} ${n.message}`):this.logger.info(`${t} 出现未知错误`,n)},this.buildFinalUrl=async(t,n)=>{const{baseUrl:r,searchParams:s}=c0(t.url),o=f0(s,t.query),a=await Q8(o,t.skipWbiSign,t.wbiSignKeys);return t.logRequestParams?this.logger.info(`${n} 请求中 ${a}`):this.logger.info(`${n} 请求中...`),a&&a.length>0?`${r}?${a}`:r},this.buildRequestBody=async t=>{let n=t.data;if(n)if(typeof n=="object"){if(!(n instanceof Blob)){if(!(n instanceof URLSearchParams)){if(!(n instanceof FormData)){const r={};Object.keys(n).forEach(function(s){if(n!=null){const o=n[s];o!=null&&(r[s]=String(o))}}),n=new URLSearchParams(r)}}}}else typeof n=="string"&&(t.init={...t.init},t.init.headers={...t.init.headers,"Content-Type":"application/json"});return t.method==="POST"&&n&&t.autoCsrf&&n instanceof URLSearchParams&&n.set("csrf",this.clientConfig.context?.userCookie.bili_jct??""),n},this.buildRequestInit=async(t,n)=>{const{context:r,userAgent:s,timeout:o,referer:a}=this.clientConfig;return{signal:t?.signal?AbortSignal.any([t?.signal,AbortSignal.timeout(o)]):AbortSignal.timeout(o),method:t.method,body:n,...t?.init??{},credentials:"include",headers:{"User-Agent":s,origin:"https://t.bilibili.com",cookie:t.cookie?.cookie||r?.userCookie.cookie||"",Referer:t.referer??(typeof a=="function"?a(t.url):a),...t?.init?.headers??{}}}},this.executeRequest=async(t,n)=>{t.url=await this.buildFinalUrl(t,n);const r=await this.buildRequestBody(t);r&&this.logger.debug(`${n} 请求体`,JSON.stringify(r));const s=await this.buildRequestInit(t,r);return await(this.clientConfig.fetcher??fetch)(t.url,s)},this.request=async(t,n)=>{if(n?.signal?.aborted)throw ks();const r={...W8,url:t,...n},s=this.buildLogPrefix(r);try{const o=await this.executeRequest(r,s);if(!o.ok)throw new Ma(this.clientConfig,r,o);if(r.returnFormat==="RawResponse")return this.logApiSuccess(s,"RawResponse",o,r.logResponseData),o;let a;try{a=await o.json()}catch(i){throw new Ma(this.clientConfig,r,o,"解析响应数据错误",i)}if(!r.ignoreBusinessError&&a.code!==0)throw new mv(this.clientConfig,r,a);return r.returnFormat==="ApiResponse"?(this.logApiSuccess(s,"ApiResponse",a,r.logResponseData),a):(this.logApiSuccess(s,"ApiResponseData",a.data,r.logResponseData),a.data)}catch(o){throw this.logApiError(s,o),o}},this.fetchRaw=async(t,n)=>{if(n?.signal?.aborted)throw ks();const r={...iy,url:t,...n},s=this.buildLogPrefix(r),o=r.responseType;try{const a=await this.executeRequest(r,s);if(!a.ok)throw new Ma(this.clientConfig,r,a);return this.logApiSuccess(s,"RawResponse",a,r.logResponseData),o==="json"?await a.json():o==="text"?await a.text():o==="blob"?await a.blob():o==="arrayBuffer"?await a.arrayBuffer():await a.formData()}catch(a){throw this.logApiError(s,a),a}},this.fetchText=async(t,n)=>this.fetchRaw(t,{...n,responseType:"text"}),this.fetchBlob=async(t,n)=>this.fetchRaw(t,{...n,responseType:"blob"}),this.fetchArrayBuffer=async(t,n)=>this.fetchRaw(t,{...n,responseType:"arrayBuffer"}),this.fetchFormData=async(t,n)=>this.fetchRaw(t,{...n,responseType:"formData"}),this.get=async(t,n)=>this.request(t,{...n,method:"GET"}),this.post=async(t,n)=>this.request(t,{...n,method:"POST"}),this.save=async(t,n)=>this.request(t,{...n,method:"POST",skipWbiSign:!1,autoCsrf:!0}),this.createPager=(t,n,r)=>new q8(this,n,{url:t,...r})}get clientConfig(){return this.client.config}get logger(){return this.clientConfig.logger}get isDebug(){return this.clientConfig.logLevel==="debug"}buildLogPrefix(e){const t=this.clientConfig.context?.userCookie.uid;return`[bili API]${t?` [${t}]`:""} ${e.method} ${new URL(e.url).pathname}`}},t9=class extends pS{constructor(e,t){super(e,t),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}};const Br=_S();var gt=(e,t,n,r="srgb",s)=>`color-mix(in ${r}, ${e} ${n}%, ${t} ${100-n}%)`,Ty=e=>{let t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return{r:t,g:n,b:r}},n9=(e,t)=>{document.documentElement.style.setProperty(e,t)};const Dh="#ffffff",Gh="#000000",Gl=(e,t,n)=>{const{r,g:s,b:o}=Ty(e);for(let a=2;a<100;){const i=a/100;t[`${n}-transparent-${a}`]=`rgba(${r}, ${s}, ${o}, ${i})`,a>=10?a+=5:a++}},r9=(e,t,n)=>{const r={};n?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");const s=r["--app-color-foreground"]=n?Dh:Gh,o=r["--app-color-background"]=n?Gh:Dh;r["--app-primary-color"]=e,r["--el-color-primary"]=e,r["--el-color-primary-light-1"]=gt(e,o,90),r["--el-color-primary-light-2"]=gt(e,o,80),r["--el-color-primary-light-3"]=gt(e,o,70),r["--el-color-primary-light-4"]=gt(e,o,60),r["--el-color-primary-light-5"]=gt(e,o,50),r["--el-color-primary-light-6"]=gt(e,o,40),r["--el-color-primary-light-7"]=gt(e,o,30),r["--el-color-primary-light-8"]=gt(e,o,20),r["--el-color-primary-light-9"]=gt(e,o,12),r["--el-color-primary-dark-1"]=gt(e,s,90),r["--el-color-primary-dark-2"]=gt(e,s,80),r["--el-color-primary-dark-3"]=gt(e,s,70),r["--el-color-primary-dark-4"]=gt(e,s,60),r["--el-color-primary-dark-5"]=gt(e,s,50),r["--el-color-primary-dark-6"]=gt(e,s,40),r["--el-color-primary-dark-7"]=gt(e,s,30),r["--el-color-primary-dark-8"]=gt(e,s,20),r["--el-color-primary-dark-9"]=gt(e,s,12);const{r:a,g:i,b:l}=Ty(e);r["--app-bg-color-overlay"]=`rgba(${a}, ${i}, ${l}, 0.05)`,r["--app-bg-color-overlay-hover"]=`rgba(${a}, ${i}, ${l}, 0.15)`,r["--app-bg-color-page"]=n?"var(--el-fill-color-blank)":"transparent",r["--app-bg-color-menus"]="var(--app-bg-color-page)",n?r["--app-text-shadow"]=" 0px 1px 2px rgba(255, 255, 255, .4)":r["--app-text-shadow"]=" 0px 1px 2px rgba(0, 0, 0, .4)",Gl(e,r,"--app-color-primary"),Gl(o,r,"--app-color-background"),Gl(s,r,"--app-color-foreground");for(const u in r)n9(u,r[u])},s9=async e=>{const t=e??(await Br.system.getAppThemeState()).themeMode;return t==="system"?await Br.system.shouldUseDarkColors():t==="dark"},Yh=async e=>{const t=e??await Br.system.getAppThemeState(),n=await s9(t.themeMode);r9(t.primaryColor,t.themeMode,n)},Ry=Ym("biliToolkit-ui-theme",()=>{const e=yn(WE);let t=!1;const n=async(s,o)=>{const a=await window.toolkitApi.system.getAppThemeState();Object.assign(e,a),await Yh(a),s&&o&&(t=!0,xe(()=>e,i=>{const l=l0(i);window.toolkitApi.db.write(s,l).then(async()=>{await window.toolkitApi.event.emit(o,l)})},{deep:!0}))};window.toolkitApi.event.onUpdateAppTheme(s=>{t||Object.assign(e,s),Yh(s).then()}).catch();const r=s=>(e.primaryColor=s,e.primaryColor);return{init:n,state:e,switchThemeColor:()=>{e.primaryColorIndex=(e.primaryColorIndex+1)%Po.primaryColors.length;const s=Po.primaryColors[e.primaryColorIndex];return r(s)},setPrimaryColor:r}},{persist:!1}),Py=Ym("biliToolkit-ui-selected-user",()=>{const e=J(null),t=async()=>{try{e.value=(await window.toolkitApi.db.init(vd.UI_SELECTED_USER))?.user??null}catch{}};return xe(()=>e.value,async n=>{let r=n!=null?l0(n):null;await window.toolkitApi.db.write(vd.UI_SELECTED_USER,{user:r}),r&&await window.toolkitApi.user.switchCurrUser(r)},{deep:!0}),{init:t,user:e,deleteUser:()=>{e.value=null},setUser:n=>{e.value=n},assertLoggedIn:()=>{if(e.value==null)throw new Error("请先登录")}}}),o9=async(e,t)=>(Promise.resolve({}),Promise.resolve({}),Promise.resolve({}),await Ry(e).init(t?.appThemeDBName,t?.appThemeUpdateEvent),await Py(e).init(),{install(n){}});function a9(e){Br.system.saveLog({level:"error",data:[JSON.stringify(Fc(e))]}).catch()}function Uh(e,t){return e==null?!1:e instanceof t||typeof e=="object"&&"name"in e&&e.name===t.name}const ac=e=>{if(!kc(e))if(e){console.error(e);const t=()=>{Br&&Br.system&&a9(e)};Uh(e,t9)?Xa(`${e.message}`):Uh(e,mv)?(Xa(`${e.message} (${e.responseCode})`),t()):(Xa(Fs(e)),t())}else Sf({message:"未知错误",type:"error"})};function Sf(e){const t={message:"",type:"success",duration:3e3};typeof e=="string"?t.message=e:Object.assign(t,e),kR(t)}function Xa(e){Sf({message:e,type:"error"})}function AO(e){Sf({message:e,type:"warning"})}const SO=e=>{const t=J(!1);let n=null;const r=J(!1);return{loading:t,hasLoaded:r,loadingData:s=>async(...o)=>(n=(async()=>{t.value=!0;try{return typeof s=="function"?await s(...o):await s}finally{t.value=!1,r.value=!0,n=null}})(),n)}},i9=de({__name:"AppIcon",props:{icon:{}},setup(e){const t=e,n=Ry(),r=T(()=>n.state.dark?`ri-${t.icon}-fill`:`ri-${t.icon}-line`);return(s,o)=>(z(),_e("i",{class:Pe([r.value,"icon-font"])},null,2))}}),By=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},l9={class:"tooltip"},u9={class:"label"},Oy=de({__name:"AppTooltip",props:{content:{},lines:{default:1},ellipsis:{default:"right"},iconClass:{}},setup(e){oE(i=>({v22da9023:A(n)}));const t=e,n=t.lines,r=()=>({"txt-ellipsis-right":t.ellipsis==="right","txt-ellipsis-left":t.ellipsis==="left","single-line":t.lines===1}),s=J(!1),o=rw("refContent"),a=new ResizeObserver(()=>{o.value&&(t.lines===1?s.value=o.value.scrollWidth>o.value.clientWidth:s.value=o.value.scrollHeight>o.value.clientHeight)});return st(()=>{o.value&&a.observe(o.value)}),la(()=>{a.disconnect()}),(i,l)=>{const u=ma;return z(),_e("div",l9,[fe("div",u9,[e.iconClass?(z(),Ae(i9,{key:0,icon:e.iconClass},null,8,["icon"])):He("",!0)]),e.content?(z(),Ae(u,{key:0,effect:"light",content:e.content,placement:"top",disabled:!s.value,"show-after":800},{content:ce(()=>[ve(i.$slots,"tooltipContent")]),default:ce(()=>[fe("div",$t({ref_key:"refContent",ref:o},i.$attrs,{class:["tooltip__content",r()]}),[fe("span",null,[ve(i.$slots,"default",{},()=>[Ln(Mt(e.content),1)])])],16)]),_:3},8,["content","disabled"])):He("",!0)])}}}),ky="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv1{fill:transparent;}.st1.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23C0C0C0;}%3c/style%3e%3crect%20class='st0%20lv1'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv1'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv1'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.2v0.7c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M15.8,18.9h2.6c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4h-0.6%20v-5.6c0-0.2-0.2-0.4-0.4-0.4h-1.4c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h0.4v4.6h-0.6c-0.2,0-0.4,0.2-0.4,0.4v0.6%20C15.3,18.7,15.5,18.9,15.8,18.9z%20M12.7,16.3v0.1c0,0.1-0.1,0.2-0.2,0.2c0,0,0,0-0.1,0.1l-2,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4V16.3L12.7,16.3z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Fy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv2{fill:transparent;}.st1.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%238BD29B;}%3c/style%3e%3crect%20class='st0%20lv2'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv2'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv2'%20d='M14,10h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6C1.3,20,1,19.8,1,19.4v-7.8%20C1,11.3,1.2,11,1.6,11h11.8v-0.4C13.4,10.3,13.6,10,14,10z%20M19.4,15.8c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H16v-1.7H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Ly="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv3{fill:transparent;}.st1.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%237BCDEF;}%3c/style%3e%3crect%20class='st0%20lv3'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv3'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv3'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",My="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv4{fill:transparent;}.st1.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FEBB8B;}%3c/style%3e%3crect%20class='st0%20lv4'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv4'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv4'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4h-0.6%20c-0.2,0-0.4,0.2-0.4,0.4v2.7H16v-2.7c0-0.2-0.2-0.4-0.4-0.4H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v2.7%20c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1s-0.4,0-0.5-0.1l-2-2%20c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Wy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv5{fill:transparent;}.st1.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23EE672A;}%3c/style%3e%3crect%20class='st0%20lv5'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv5'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv5'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,12.7c0.2,0,0.4-0.2,0.4-0.4v-0.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H16v-1.6H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2%20v-3.3c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Vy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv6{fill:transparent;}.st1.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23F04C49;}%3c/style%3e%3crect%20class='st0%20lv6'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv6'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv6'%20d='M14,10c-0.4,0-0.6,0.3-0.6,0.6V11H1.6C1.2,11,1,11.3,1,11.6v7.8C1,19.8,1.3,20,1.6,20h18.8%20c0.4,0,0.6-0.3,0.6-0.6v-8.8c0.1-0.3-0.2-0.6-0.5-0.6H14z%20M19.8,12.3c0,0.2-0.2,0.4-0.4,0.4H16v1.6h3.4c0.2,0,0.4,0.2,0.4,0.4v3.7%20c0,0.2-0.2,0.4-0.4,0.4H15c-0.2,0-0.4-0.2-0.4-0.4v-6.8c0-0.2,0.2-0.4,0.4-0.4h4.4c0.2,0,0.4,0.2,0.4,0.4V12.3z%20M12.6,16.7%20c0.1-0.1,0.1-0.2,0.1-0.4v-0.1v-3.4c0-0.2-0.2-0.4-0.4-0.4h-0.6c-0.2,0-0.4,0.2-0.4,0.4v3.3L10,17.3l-1.2-1.2v-3.4%20c0-0.2-0.2-0.4-0.4-0.4H7.8c-0.2,0-0.4,0.2-0.4,0.4v3.5v0.1c0,0.2,0,0.4,0.1,0.4l2,2c0.1,0.1,0.5,0.1,0.5,0.1s0.4,0,0.5-0.1%20L12.6,16.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KjpJp7UUQEBAQEBAQEBAQEBBnOlC7l89PZYn8WMcNKB+I/ZHVmfWrHLO/xWcK3c2S+U9Y52URdwcv8AAdh6t/qVrON1WiaRLgKXDb4mP41W9sQy5R9o/AfFZjpnelDwLWdx4noyTk2YmE/1DIfHJarnjdVddJN67htLbZE/KWtOTst4jG/rOQ61I6Z3U0y6KWSCVk0Ty18bg5rhvBG4quTcMP3aO92inuLMg6RuUgH3XjY4day7y7m0giiAgICAgICAgICAgICAg6yyxwRPmlcGsjaXOJ5ABmSiMKu9wkutzqbjJnnPIXAczeQeoZBacLd3byIJi8Ygmu9rttDMSXUTHMcT97cGn+0BFt3EZSVDqSqhqmfahkbIPODmiJDFF6dfbzPXAnggeDhB5GDd17T60i27u0UiLxowvPAVs1mlfxKgcJFnyPA2j1j5KVvC96aUo6iAgICAgICAgICAgICAgrGkO6d78PSQMdlJWOEI/h3u+Ay9aRjO6jJFpyEBAQEBB6LdWy26vp6+E8eCRrx05HchLpu1NURVdPFVQu1o5mB7TzgjMLLv6+iKICAgICAgICAgICAgIMs0m3Luq9x0DHZso4wCP33bT8NVWOOd3VQVZEBAQEBAQato2ubq2xGjkOb6J+oP4DtH6j1KV1wvS2KNiAgICAgICAgICAgIOskjIo3SyHJrAXOPMAiMIuda+43Gprnk5zyuf5gTsHUtOF7eZAQEBAQEBBa9G9y7jv8A3I92UdYws/qG0fqPWpWsLqtXUdhAQEBAQEBAQEBAQEEViuV8GG7jJGcncA4Z+fZ+qRnLxiS04iAgICAgICD22SV8N4oZYzk5tRGQf6glJ63VZegQEBAQEBB//9k=",c9={class:"user-card"},f9={class:"user-card__face-wrapper"},d9=["src"],p9={key:0,class:"user-card--blocked"},h9={class:"user-card__info"},g9={class:"user-card__row"},m9=["src"],b9={class:"user-card__row"},v9={class:"user-card__uid"},y9={class:"user-card__row"},_9={class:"user-card__stat__item"},w9={class:"user-card__stat__value"},E9={class:"user-card__stat__item"},A9={class:"user-card__stat__value"},S9={class:"user-card__stat__item"},x9={class:"user-card__stat__value"},N9=de({__name:"BiliUserCard",props:{user:{}},setup(e){const t=e,n=T(()=>t.user.face||ic),r=T(()=>new URL(Object.assign({"../../assets/images/user_level/level_1.svg":ky,"../../assets/images/user_level/level_2.svg":Fy,"../../assets/images/user_level/level_3.svg":Ly,"../../assets/images/user_level/level_4.svg":My,"../../assets/images/user_level/level_5.svg":Wy,"../../assets/images/user_level/level_6.svg":Vy})[`../../assets/images/user_level/level_${t.user.level}.svg`],import.meta.url).href);return(s,o)=>{const a=Oy;return z(),_e("div",c9,[ve(s.$slots,"default"),fe("div",f9,[fe("img",{class:"user-card__face",alt:"face",src:n.value},null,8,d9),e.user.silence===1?(z(),_e("span",p9,"账号已封禁")):He("",!0)]),fe("div",h9,[fe("div",g9,[we(a,{class:"user-card__name",content:e.user.name},null,8,["content"]),fe("img",{class:"user-card__level",src:r.value,alt:"level"},null,8,m9)]),fe("div",b9,[o[0]||(o[0]=fe("span",{class:"user-card__uid-icon"},null,-1)),fe("span",v9,Mt(e.user.mid),1)]),fe("div",y9,[fe("span",_9,[fe("span",w9,Mt(e.user.following),1),o[1]||(o[1]=fe("span",{class:"user-card__stat__label"},"关注",-1))]),fe("span",E9,[fe("span",A9,Mt(e.user.follower),1),o[2]||(o[2]=fe("span",{class:"user-card__stat__label"},"粉丝",-1))]),fe("span",S9,[fe("span",x9,Mt(e.user.coins),1),o[3]||(o[3]=fe("span",{class:"user-card__stat__label"},"硬币",-1))])])])])}}}),$y=de({__name:"PluginMenuItem",props:{menu:{}},setup(e){return(t,n)=>{const r=Wb,s=mR;return!e.menu.children||e.menu.children.length===0?(z(),Ae(r,{key:0,index:e.menu.path},{title:ce(()=>[Ln(Mt(e.menu.title),1)]),_:1},8,["index"])):(z(),Ae(s,{key:1,index:e.menu.path},{title:ce(()=>[Ln(Mt(e.menu.title),1)]),default:ce(()=>[(z(!0),_e(Ke,null,lm(e.menu.children,o=>(z(),Ae($y,{key:o.path,menu:o},null,8,["menu"]))),128))]),_:1},8,["index"]))}}}),I9=de({__name:"PluginMenus",props:{menus:{},activeIndex:{}},emits:["handleSelect"],setup(e,{emit:t}){const n=e,r=(c,f=new Map)=>(c.forEach(d=>{f.set(d.path,d),d.children&&d.children.length>0&&r(d.children,f)}),f),s=T(()=>r(n.menus)),o=t,a=c=>{const f=s.value.get(c);f&&o("handleSelect",f)},i=fm(),l=T(()=>!!i["left-item"]||!!i.left),u=T(()=>!!i["right-item"]||!!i.right);return(c,f)=>{const d=Wb,p=gR;return z(),Ae(p,{"default-active":e.activeIndex,class:"plugin-menus",mode:"horizontal",ellipsis:!1,onSelect:a},{default:ce(()=>[l.value?ve(c.$slots,"left-item",{key:0},()=>[we(d,{index:"-left",style:{"margin-right":"auto"}},{default:ce(()=>[ve(c.$slots,"left",{},void 0,!0)]),_:3})],!0):He("",!0),(z(!0),_e(Ke,null,lm(e.menus,h=>(z(),Ae($y,{key:h.path,menu:h,index:String(h.path)},null,8,["menu","index"]))),128)),u.value?ve(c.$slots,"right-item",{key:1},()=>[we(d,{index:"-right",style:{"margin-left":"auto"}},{default:ce(()=>[ve(c.$slots,"right",{},void 0,!0)]),_:3})],!0):He("",!0)]),_:3},8,["default-active"])}}}),C9=By(I9,[["__scopeId","data-v-6dfc7821"]]),T9={class:"plugin-page-header"},R9={class:"plugin-page-header__user-container"},P9={class:"plugin-page-header__user-container__info"},B9=["src"],O9=["src"],k9={key:1,class:"plugin-page-header__user-container__info"},F9=de({__name:"PluginPageHeader",props:{menus:{},activeIndex:{}},emits:["handleMenuSelect"],setup(e,{emit:t}){const n=Py(),{user:r}=BE(n),s=T(()=>r.value?.face||ic),o=T(()=>new URL(Object.assign({"../../assets/images/user_level/level_1.svg":ky,"../../assets/images/user_level/level_2.svg":Fy,"../../assets/images/user_level/level_3.svg":Ly,"../../assets/images/user_level/level_4.svg":My,"../../assets/images/user_level/level_5.svg":Wy,"../../assets/images/user_level/level_6.svg":Vy})[`../../assets/images/user_level/level_${r.value?.level??0}.svg`],import.meta.url).href),a=async()=>{n.setUser(await Br.user.switchUser(!0))},i=()=>{n.deleteUser()},l=t,u=c=>{c&&l("handleMenuSelect",c)};return st(async()=>{if(r.value)try{const c=await Br.user.getMyInfoByCookie(r.value.userCookie);n.setUser(c)}catch{Xa("当前用户 cookie 已失效"),n.deleteUser()}}),(c,f)=>{const d=C9,p=Oy,h=N9,g=YR,b=QT,_=qT,v=JT;return z(),_e("div",T9,[we(d,{class:"plugin-page-header__menus","active-index":e.activeIndex,menus:e.menus,onHandleSelect:u},null,8,["active-index","menus"]),fe("div",R9,[A(r)?(z(),Ae(g,{key:0,placement:"bottom-end",width:"auto",trigger:"hover"},{reference:ce(()=>[fe("div",P9,[fe("img",{class:"plugin-page-header__user-container__info__face",src:s.value,alt:"face"},null,8,B9),we(p,{class:"plugin-page-header__user-container__info__name",content:A(r).name},null,8,["content"]),fe("img",{class:"plugin-page-header__user-container__info__level",src:o.value,alt:"level img"},null,8,O9)])]),default:ce(()=>[we(h,{user:A(r)},null,8,["user"])]),_:1})):(z(),_e("div",k9,[...f[0]||(f[0]=[fe("img",{class:"plugin-page-header__user-container__info__face",alt:"",src:ic},null,-1),fe("span",{class:"plugin-page-header__user-container__info__name"},"未登录",-1)])])),we(v,{placement:"bottom-end",trigger:"click",size:"default"},{dropdown:ce(()=>[we(_,null,{default:ce(()=>[we(b,{onClick:a},{default:ce(()=>[...f[1]||(f[1]=[Ln("选择用户",-1)])]),_:1}),A(r)?(z(),Ae(b,{key:0,onClick:i},{default:ce(()=>[...f[2]||(f[2]=[Ln("取消选择",-1)])]),_:1})):He("",!0)]),_:1})]),default:ce(()=>[f[3]||(f[3]=fe("span",{class:"plugin-page-header__user-container__arrow"},"▼",-1))]),_:1})])])}}}),L9={},M9={class:"plugin-page-container"};function W9(e,t){return z(),_e("div",M9,[ve(e.$slots,"default",{},void 0,!0)])}const xO=By(L9,[["render",W9],["__scopeId","data-v-ddcb3392"]]);const Ss=typeof document<"u";function Dy(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function V9(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Dy(e.default)}const ke=Object.assign;function Yl(e,t){const n={};for(const r in t){const s=t[r];n[r]=vn(s)?s.map(e):e(s)}return n}const Vo=()=>{},vn=Array.isArray;function jh(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Gy=/#/g,$9=/&/g,D9=/\//g,G9=/=/g,Y9=/\?/g,Yy=/\+/g,U9=/%5B/g,j9=/%5D/g,Uy=/%5E/g,Z9=/%60/g,jy=/%7B/g,K9=/%7C/g,Zy=/%7D/g,H9=/%20/g;function xf(e){return e==null?"":encodeURI(""+e).replace(K9,"|").replace(U9,"[").replace(j9,"]")}function X9(e){return xf(e).replace(jy,"{").replace(Zy,"}").replace(Uy,"^")}function lc(e){return xf(e).replace(Yy,"%2B").replace(H9,"+").replace(Gy,"%23").replace($9,"%26").replace(Z9,"`").replace(jy,"{").replace(Zy,"}").replace(Uy,"^")}function z9(e){return lc(e).replace(G9,"%3D")}function J9(e){return xf(e).replace(Gy,"%23").replace(Y9,"%3F")}function Q9(e){return J9(e).replace(D9,"%2F")}function aa(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const q9=/\/$/,eB=e=>e.replace(q9,"");function Ul(e,t,n="/"){let r,s={},o="",a="";const i=t.indexOf("#");let l=t.indexOf("?");return l=i>=0&&l>i?-1:l,l>=0&&(r=t.slice(0,l),o=t.slice(l,i>0?i:t.length),s=e(o.slice(1))),i>=0&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=sB(r??t,n),{fullPath:r+o+a,path:r,query:s,hash:aa(a)}}function tB(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Zh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function nB(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Us(t.matched[r],n.matched[s])&&Ky(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ky(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rB(e[n],t[n]))return!1;return!0}function rB(e,t){return vn(e)?Kh(e,t):vn(t)?Kh(t,e):e?.valueOf()===t?.valueOf()}function Kh(e,t){return vn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function sB(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,a,i;for(a=0;a<r.length;a++)if(i=r[a],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const vr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let uc=(function(e){return e.pop="pop",e.push="push",e})({}),jl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function oB(e){if(!e)if(Ss){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eB(e)}const aB=/^[^#]+#/;function iB(e,t){return e.replace(aB,"#")+t}function lB(e,t){const 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)}}const nl=()=>({left:window.scrollX,top:window.scrollY});function uB(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=lB(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Hh(e,t){return(history.state?history.state.position-t:-1)+e}const cc=new Map;function cB(e,t){cc.set(e,t)}function fB(e){const t=cc.get(e);return cc.delete(e),t}function dB(e){return typeof e=="string"||e&&typeof e=="object"}function Hy(e){return typeof e=="string"||typeof e=="symbol"}let et=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Xy=Symbol("");et.MATCHER_NOT_FOUND+"",et.NAVIGATION_GUARD_REDIRECT+"",et.NAVIGATION_ABORTED+"",et.NAVIGATION_CANCELLED+"",et.NAVIGATION_DUPLICATED+"";function js(e,t){return ke(new Error,{type:e,[Xy]:!0},t)}function Hn(e,t){return e instanceof Error&&Xy in e&&(t==null||!!(e.type&t))}const pB=["params","query","hash"];function hB(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of pB)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function gB(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Yy," "),o=s.indexOf("="),a=aa(o<0?s:s.slice(0,o)),i=o<0?null:aa(s.slice(o+1));if(a in t){let l=t[a];vn(l)||(l=t[a]=[l]),l.push(i)}else t[a]=i}return t}function Xh(e){let t="";for(let n in e){const r=e[n];if(n=z9(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(vn(r)?r.map(s=>s&&lc(s)):[r&&lc(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function mB(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=vn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const bB=Symbol(""),zh=Symbol(""),rl=Symbol(""),Nf=Symbol(""),fc=Symbol("");function mo(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Sr(e,t,n,r,s,o=a=>a()){const a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,l)=>{const u=d=>{d===!1?l(js(et.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):dB(d)?l(js(et.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(a&&r.enterCallbacks[s]===a&&typeof d=="function"&&a.push(d),i())},c=o(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Zl(e,t,n,r,s=o=>o()){const o=[];for(const a of e)for(const i in a.components){let l=a.components[i];if(!(t!=="beforeRouteEnter"&&!a.instances[i]))if(Dy(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Sr(u,n,r,a,i,s))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);const f=V9(c)?c.default:c;a.mods[i]=c,a.components[i]=f;const d=(f.__vccOpts||f)[t];return d&&Sr(d,n,r,a,i,s)()}))}}return o}function vB(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const i=t.matched[a];i&&(e.matched.find(u=>Us(u,i))?r.push(i):n.push(i));const l=e.matched[a];l&&(t.matched.find(u=>Us(u,l))||s.push(l))}return[n,r,s]}let yB=()=>location.protocol+"//"+location.host;function zy(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,i=s.slice(a);return i[0]!=="/"&&(i="/"+i),Zh(i,"")}return Zh(n,e)+r+s}function _B(e,t,n,r){let s=[],o=[],a=null;const i=({state:d})=>{const p=zy(e,location),h=n.value,g=t.value;let b=0;if(d){if(n.value=p,t.value=d,a&&a===h){a=null;return}b=g?d.position-g.position:0}else r(p);s.forEach(_=>{_(n.value,h,{delta:b,type:uc.pop,direction:b?b>0?jl.forward:jl.back:jl.unknown})})};function l(){a=n.value}function u(d){s.push(d);const p=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return o.push(p),p}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(ke({},d.state,{scroll:nl()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function Jh(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?nl():null}}function wB(e){const{history:t,location:n}=window,r={value:zy(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:yB()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),s.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function a(l,u){o(l,ke({},t.state,Jh(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function i(l,u){const c=ke({},s.value,t.state,{forward:l,scroll:nl()});o(c.current,c,!0),o(l,ke({},Jh(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:s,push:i,replace:a}}function EB(e){e=oB(e);const t=wB(e),n=_B(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const s=ke({location:"",base:e,go:r,createHref:iB.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function AB(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),EB(e)}let Hr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ct=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ct||{});const SB={type:Hr.Static,value:""},xB=/[a-zA-Z0-9_]/;function NB(e){if(!e)return[[]];if(e==="/")return[[SB]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=ct.Static,r=n;const s=[];let o;function a(){o&&s.push(o),o=[]}let i=0,l,u="",c="";function f(){u&&(n===ct.Static?o.push({type:Hr.Static,value:u}):n===ct.Param||n===ct.ParamRegExp||n===ct.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Hr.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==ct.ParamRegExp){r=n,n=ct.EscapeNext;continue}switch(n){case ct.Static:l==="/"?(u&&f(),a()):l===":"?(f(),n=ct.Param):d();break;case ct.EscapeNext:d(),n=r;break;case ct.Param:l==="("?n=ct.ParamRegExp:xB.test(l)?d():(f(),n=ct.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case ct.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=ct.ParamRegExpEnd:c+=l;break;case ct.ParamRegExpEnd:f(),n=ct.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,c="";break;default:t("Unknown state");break}}return n===ct.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),s}const Qh="[^/]+?",IB={sensitive:!1,strict:!1,start:!0,end:!0};var Bt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Bt||{});const CB=/[.+*?^${}()[\]/\\]/g;function TB(e,t){const n=ke({},IB,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[Bt.Root];n.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const d=u[f];let p=Bt.Segment+(n.sensitive?Bt.BonusCaseSensitive:0);if(d.type===Hr.Static)f||(s+="/"),s+=d.value.replace(CB,"\\$&"),p+=Bt.Static;else if(d.type===Hr.Param){const{value:h,repeatable:g,optional:b,regexp:_}=d;o.push({name:h,repeatable:g,optional:b});const v=_||Qh;if(v!==Qh){p+=Bt.BonusCustomRegExp;try{`${v}`}catch(w){throw new Error(`Invalid custom RegExp for param "${h}" (${v}): `+w.message)}}let E=g?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;f||(E=b&&u.length<2?`(?:/${E})`:"/"+E),b&&(E+="?"),s+=E,p+=Bt.Dynamic,b&&(p+=Bt.BonusOptional),g&&(p+=Bt.BonusRepeatable),v===".*"&&(p+=Bt.BonusWildcard)}c.push(p)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=Bt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const a=new RegExp(s,n.sensitive?"":"i");function i(u){const c=u.match(a),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",h=o[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===Hr.Static)c+=p.value;else if(p.type===Hr.Param){const{value:h,repeatable:g,optional:b}=p,_=h in u?u[h]:"";if(vn(_)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const v=vn(_)?_.join("/"):_;if(!v)if(b)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=v}}return c||"/"}return{re:a,score:r,keys:o,parse:i,stringify:l}}function RB(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Bt.Static+Bt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Bt.Static+Bt.Segment?1:-1:0}function Jy(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=RB(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(qh(r))return 1;if(qh(s))return-1}return s.length-r.length}function qh(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const PB={strict:!1,end:!0,sensitive:!1};function BB(e,t,n){const r=TB(NB(e.path),n),s=ke(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function OB(e,t){const n=[],r=new Map;t=jh(PB,t);function s(f){return r.get(f)}function o(f,d,p){const h=!p,g=tg(f);g.aliasOf=p&&p.record;const b=jh(t,f),_=[g];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const B of w)_.push(tg(ke({},g,{components:p?p.record.components:g.components,path:B,aliasOf:p?p.record:g})))}let v,E;for(const w of _){const{path:B}=w;if(d&&B[0]!=="/"){const G=d.record.path,P=G[G.length-1]==="/"?"":"/";w.path=d.record.path+(B&&P+B)}if(v=BB(w,d,b),p?p.alias.push(v):(E=E||v,E!==v&&E.alias.push(v),h&&f.name&&!ng(v)&&a(f.name)),Qy(v)&&l(v),g.children){const G=g.children;for(let P=0;P<G.length;P++)o(G[P],v,p&&p.children[P])}p=p||v}return E?()=>{a(E)}:Vo}function a(f){if(Hy(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function i(){return n}function l(f){const d=LB(f,n);n.splice(d,0,f),f.record.name&&!ng(f)&&r.set(f.record.name,f)}function u(f,d){let p,h={},g,b;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw js(et.MATCHER_NOT_FOUND,{location:f});b=p.record.name,h=ke(eg(d.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&eg(f.params,p.keys.map(E=>E.name))),g=p.stringify(h)}else if(f.path!=null)g=f.path,p=n.find(E=>E.re.test(g)),p&&(h=p.parse(g),b=p.record.name);else{if(p=d.name?r.get(d.name):n.find(E=>E.re.test(d.path)),!p)throw js(et.MATCHER_NOT_FOUND,{location:f,currentLocation:d});b=p.record.name,h=ke({},d.params,f.params),g=p.stringify(h)}const _=[];let v=p;for(;v;)_.unshift(v.record),v=v.parent;return{name:b,path:g,params:h,matched:_,meta:FB(_)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:i,getRecordMatcher:s}}function eg(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function tg(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kB(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 kB(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ng(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function FB(e){return e.reduce((t,n)=>ke(t,n.meta),{})}function LB(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Jy(e,t[o])<0?r=o:n=o+1}const s=MB(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function MB(e){let t=e;for(;t=t.parent;)if(Qy(t)&&Jy(e,t)===0)return t}function Qy({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rg(e){const t=ge(rl),n=ge(Nf),r=T(()=>{const l=A(e.to);return t.resolve(l)}),s=T(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Us.bind(null,c));if(d>-1)return d;const p=sg(l[u-2]);return u>1&&sg(c)===p&&f[f.length-1].path!==p?f.findIndex(Us.bind(null,l[u-2])):d}),o=T(()=>s.value>-1&&GB(n.params,r.value.params)),a=T(()=>s.value>-1&&s.value===n.matched.length-1&&Ky(n.params,r.value.params));function i(l={}){if(DB(l)){const u=t[A(e.replace)?"replace":"push"](A(e.to)).catch(Vo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:o,isExactActive:a,navigate:i}}function WB(e){return e.length===1?e[0]:e}const VB=de({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"},viewTransition:Boolean},useLink:rg,setup(e,{slots:t}){const n=yn(rg(e)),{options:r}=ge(rl),s=T(()=>({[og(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[og(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&WB(t.default(n));return e.custom?o:it("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),$B=VB;function DB(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function GB(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!vn(s)||s.length!==r.length||r.some((o,a)=>o.valueOf()!==s[a].valueOf()))return!1}return!0}function sg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const og=(e,t,n)=>e??t??n,YB=de({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ge(fc),s=T(()=>e.route||r.value),o=ge(zh,0),a=T(()=>{let u=A(o);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),i=T(()=>s.value.matched[a.value]);tt(zh,T(()=>a.value+1)),tt(bB,i),tt(fc,s);const l=J();return xe(()=>[l.value,i.value,e.name],([u,c,f],[d,p,h])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!Us(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=i.value,d=f&&f.components[c];if(!d)return ag(n.default,{Component:d,route:u});const p=f.props[c],h=p?p===!0?u.params:typeof p=="function"?p(u):p:null,b=it(d,ke({},h,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return ag(n.default,{Component:b,route:u})||b}}});function ag(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qy=YB;function UB(e){const t=OB(e.routes,e),n=e.parseQuery||gB,r=e.stringifyQuery||Xh,s=e.history,o=mo(),a=mo(),i=mo(),l=Ks(vr);let u=vr;Ss&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Yl.bind(null,L=>""+L),f=Yl.bind(null,Q9),d=Yl.bind(null,aa);function p(L,ee){let Q,oe;return Hy(L)?(Q=t.getRecordMatcher(L),oe=ee):oe=L,t.addRoute(oe,Q)}function h(L){const ee=t.getRecordMatcher(L);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(L=>L.record)}function b(L){return!!t.getRecordMatcher(L)}function _(L,ee){if(ee=ke({},ee||l.value),typeof L=="string"){const S=Ul(n,L,ee.path),V=t.resolve({path:S.path},ee),Y=s.createHref(S.fullPath);return ke(S,V,{params:d(V.params),hash:aa(S.hash),redirectedFrom:void 0,href:Y})}let Q;if(L.path!=null)Q=ke({},L,{path:Ul(n,L.path,ee.path).path});else{const S=ke({},L.params);for(const V in S)S[V]==null&&delete S[V];Q=ke({},L,{params:f(S)}),ee.params=f(ee.params)}const oe=t.resolve(Q,ee),ye=L.hash||"";oe.params=c(d(oe.params));const m=tB(r,ke({},L,{hash:X9(ye),path:oe.path})),y=s.createHref(m);return ke({fullPath:m,hash:ye,query:r===Xh?mB(L.query):L.query||{}},oe,{redirectedFrom:void 0,href:y})}function v(L){return typeof L=="string"?Ul(n,L,l.value.path):ke({},L)}function E(L,ee){if(u!==L)return js(et.NAVIGATION_CANCELLED,{from:ee,to:L})}function w(L){return P(L)}function B(L){return w(ke(v(L),{replace:!0}))}function G(L,ee){const Q=L.matched[L.matched.length-1];if(Q&&Q.redirect){const{redirect:oe}=Q;let ye=typeof oe=="function"?oe(L,ee):oe;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=v(ye):{path:ye},ye.params={}),ke({query:L.query,hash:L.hash,params:ye.path!=null?{}:L.params},ye)}}function P(L,ee){const Q=u=_(L),oe=l.value,ye=L.state,m=L.force,y=L.replace===!0,S=G(Q,oe);if(S)return P(ke(v(S),{state:typeof S=="object"?ke({},ye,S.state):ye,force:m,replace:y}),ee||Q);const V=Q;V.redirectedFrom=ee;let Y;return!m&&nB(r,oe,Q)&&(Y=js(et.NAVIGATION_DUPLICATED,{to:V,from:oe}),ae(oe,oe,!0,!1)),(Y?Promise.resolve(Y):F(V,oe)).catch(W=>Hn(W)?Hn(W,et.NAVIGATION_GUARD_REDIRECT)?W:te(W):C(W,V,oe)).then(W=>{if(W){if(Hn(W,et.NAVIGATION_GUARD_REDIRECT))return P(ke({replace:y},v(W.to),{state:typeof W.to=="object"?ke({},ye,W.to.state):ye,force:m}),ee||V)}else W=k(V,oe,!0,y,ye);return $(V,oe,W),W})}function O(L,ee){const Q=E(L,ee);return Q?Promise.reject(Q):Promise.resolve()}function R(L){const ee=be.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(L):L()}function F(L,ee){let Q;const[oe,ye,m]=vB(L,ee);Q=Zl(oe.reverse(),"beforeRouteLeave",L,ee);for(const S of oe)S.leaveGuards.forEach(V=>{Q.push(Sr(V,L,ee))});const y=O.bind(null,L,ee);return Q.push(y),Ze(Q).then(()=>{Q=[];for(const S of o.list())Q.push(Sr(S,L,ee));return Q.push(y),Ze(Q)}).then(()=>{Q=Zl(ye,"beforeRouteUpdate",L,ee);for(const S of ye)S.updateGuards.forEach(V=>{Q.push(Sr(V,L,ee))});return Q.push(y),Ze(Q)}).then(()=>{Q=[];for(const S of m)if(S.beforeEnter)if(vn(S.beforeEnter))for(const V of S.beforeEnter)Q.push(Sr(V,L,ee));else Q.push(Sr(S.beforeEnter,L,ee));return Q.push(y),Ze(Q)}).then(()=>(L.matched.forEach(S=>S.enterCallbacks={}),Q=Zl(m,"beforeRouteEnter",L,ee,R),Q.push(y),Ze(Q))).then(()=>{Q=[];for(const S of a.list())Q.push(Sr(S,L,ee));return Q.push(y),Ze(Q)}).catch(S=>Hn(S,et.NAVIGATION_CANCELLED)?S:Promise.reject(S))}function $(L,ee,Q){i.list().forEach(oe=>R(()=>oe(L,ee,Q)))}function k(L,ee,Q,oe,ye){const m=E(L,ee);if(m)return m;const y=ee===vr,S=Ss?history.state:{};Q&&(oe||y?s.replace(L.fullPath,ke({scroll:y&&S&&S.scroll},ye)):s.push(L.fullPath,ye)),l.value=L,ae(L,ee,Q,y),te()}let U;function Z(){U||(U=s.listen((L,ee,Q)=>{if(!Re.listening)return;const oe=_(L),ye=G(oe,Re.currentRoute.value);if(ye){P(ke(ye,{replace:!0,force:!0}),oe).catch(Vo);return}u=oe;const m=l.value;Ss&&cB(Hh(m.fullPath,Q.delta),nl()),F(oe,m).catch(y=>Hn(y,et.NAVIGATION_ABORTED|et.NAVIGATION_CANCELLED)?y:Hn(y,et.NAVIGATION_GUARD_REDIRECT)?(P(ke(v(y.to),{force:!0}),oe).then(S=>{Hn(S,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===uc.pop&&s.go(-1,!1)}).catch(Vo),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),C(y,oe,m))).then(y=>{y=y||k(oe,m,!1),y&&(Q.delta&&!Hn(y,et.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===uc.pop&&Hn(y,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),$(oe,m,y)}).catch(Vo)}))}let j=mo(),M=mo(),x;function C(L,ee,Q){te(L);const oe=M.list();return oe.length?oe.forEach(ye=>ye(L,ee,Q)):console.error(L),Promise.reject(L)}function H(){return x&&l.value!==vr?Promise.resolve():new Promise((L,ee)=>{j.add([L,ee])})}function te(L){return x||(x=!L,Z(),j.list().forEach(([ee,Q])=>L?Q(L):ee()),j.reset()),L}function ae(L,ee,Q,oe){const{scrollBehavior:ye}=e;if(!Ss||!ye)return Promise.resolve();const m=!Q&&fB(Hh(L.fullPath,0))||(oe||!Q)&&history.state&&history.state.scroll||null;return rn().then(()=>ye(L,ee,m)).then(y=>y&&uB(y)).catch(y=>C(y,L,ee))}const se=L=>s.go(L);let Ee;const be=new Set,Re={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:_,options:e,push:w,replace:B,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:o.add,beforeResolve:a.add,afterEach:i.add,onError:M.add,isReady:H,install(L){L.component("RouterLink",$B),L.component("RouterView",qy),L.config.globalProperties.$router=Re,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>A(l)}),Ss&&!Ee&&l.value===vr&&(Ee=!0,w(s.location).catch(oe=>{}));const ee={};for(const oe in vr)Object.defineProperty(ee,oe,{get:()=>l.value[oe],enumerable:!0});L.provide(rl,Re),L.provide(Nf,Ni(ee)),L.provide(fc,l);const Q=L.unmount;be.add(L),L.unmount=function(){be.delete(L),be.size<1&&(u=vr,U&&U(),U=null,l.value=vr,Ee=!1,x=!1),Q()}}};function Ze(L){return L.reduce((ee,Q)=>ee.then(()=>R(Q)),Promise.resolve())}return Re}function jB(){return ge(rl)}function ZB(e){return ge(Nf)}const KB="modulepreload",HB=function(e,t){return new URL(e,t).href},ig={},bo=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");s=u(n.map(c=>{if(c=HB(c,r),c in ig)return;ig[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let h=a.length-1;h>=0;h--){const g=a[h];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":KB,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((h,g)=>{p.addEventListener("load",h),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return s.then(a=>{for(const i of a||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},dc=[{title:"视频封面",path:"/VideoCover",name:"VideoCover",component:()=>bo(()=>import("./VideoCover-CmdqyAU7.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{title:"专栏图片",path:"/OpusPics",name:"OpusPics",component:()=>bo(()=>import("./OpusPics-BTsrV8AB.js"),__vite__mapDeps([3,1,4]),import.meta.url)},{title:"用户头像",path:"/UserFace",name:"UserFace",component:()=>bo(()=>import("./UserFace-sEd7VSeX.js"),__vite__mapDeps([5,1,6]),import.meta.url)},{title:"动态表情包",path:"/DynamicEmoji",name:"DynamicEmoji",component:()=>bo(()=>import("./DynamicEmoji-DXs3cpXt.js"),__vite__mapDeps([7,1,8]),import.meta.url)},{title:"评论表情包",path:"/CommentEmoji",name:"CommentEmoji",component:()=>bo(()=>import("./CommentEmoji-Ds9e0mTx.js"),__vite__mapDeps([9,1,10]),import.meta.url)}],XB=UB({history:AB("./"),routes:[{path:"/",redirect:dc[0].path},...dc]}),zB={class:"plugin-page"},JB=de({__name:"App",setup(e){const t=ZB(),n=jB(),r=J(dc),s=o=>{n.push(o.path)};return(o,a)=>(z(),_e("div",zB,[we(A(F9),{menus:r.value,"active-index":A(t).path,onHandleMenuSelect:s},null,8,["menus","active-index"]),we(A(qy),{class:"plugin-page-content"},{default:ce(({Component:i,route:l})=>[(z(),Ae(ow,null,[(z(),Ae(zr(i),{key:l.fullPath}))],1024))]),_:1})]))}}),QB=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},qB=QB(JB,[["__scopeId","data-v-d366bdbc"]]);async function eO(){const e=AE(qB);e.config.globalProperties.$toolkitApi=window.toolkitApi;const t=NE();t.use(ME),e.use(t),e.use(XB);const n=await o9(t);e.use(n),e.config.errorHandler=ac,window.addEventListener("unhandledrejection",r=>{ac(r.reason)}),e.mount("#app")}eO().then(()=>{console.log("插件启动成功")}).catch(ac);export{qo as $,xe as A,Tr as B,Ks as C,pe as D,Sb as E,Ke as F,_u as G,rn as H,Se as I,$e as J,tr as K,a5 as L,eb as M,le as N,zc as O,yb as P,wc as Q,hO as R,kt as S,tO as T,fm as U,I5 as V,yO as W,mb as X,bb as Y,Ve as Z,QB as _,ce as a,It as a0,st as a1,mt as a2,yt as a3,Pe as a4,ve as a5,zr as a6,Pr as a7,$t as a8,Zo as a9,gn as aa,Mt as ab,vO as ac,bO as ad,mO as ae,Ls as af,Ie as ag,Dn as ah,yn as ai,AE as aj,L6 as ak,it as al,ki as am,zs as an,M_ as ao,wl as ap,gO as aq,Ia as ar,je as as,as as at,H8 as au,Xo as av,Br as aw,Sf as ax,fe as b,Ae as c,de as d,we as e,Ln as f,He as g,_e as h,SO as i,Py as j,lm as k,T as l,Lh as m,Fh as n,z as o,tc as p,nc as q,J as r,AO as s,bn as t,A as u,ci as v,Hs as w,nt as x,xO as y,ut as z};