@astralyn/sash 0.1.1 → 0.1.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +17 -5
  3. package/THIRD_PARTY_NOTICES.md +9 -0
  4. package/dist/api.js +14 -45
  5. package/dist/app-state.js +99 -0
  6. package/dist/autostart/command.js +24 -0
  7. package/dist/autostart/context.js +43 -0
  8. package/dist/autostart/files.js +60 -0
  9. package/dist/autostart/installation.js +48 -0
  10. package/dist/autostart/start.js +47 -0
  11. package/dist/autostart/windows-registry.js +88 -0
  12. package/dist/autostart/windows.js +59 -0
  13. package/dist/autostart-contract.js +31 -0
  14. package/dist/autostart-entry.js +10 -0
  15. package/dist/autostart.js +69 -0
  16. package/dist/cli.js +11 -11
  17. package/dist/commands/auto.js +15 -0
  18. package/dist/commands/lifecycle.js +5 -15
  19. package/dist/commands/logs.js +11 -4
  20. package/dist/commands/shared.js +2 -4
  21. package/dist/commands/status.js +5 -1
  22. package/dist/commands/update.js +7 -3
  23. package/dist/commands/web.js +14 -50
  24. package/dist/contracts.js +168 -348
  25. package/dist/core-config-validation.js +22 -38
  26. package/dist/core-update.js +126 -762
  27. package/dist/core.js +20 -46
  28. package/dist/daemon/app.js +129 -117
  29. package/dist/daemon/context.js +13 -7
  30. package/dist/daemon/entry.js +21 -38
  31. package/dist/daemon/errors.js +3 -0
  32. package/dist/daemon/handlers/autostart.js +18 -0
  33. package/dist/daemon/handlers/core.js +32 -9
  34. package/dist/daemon/handlers/daemon.js +17 -6
  35. package/dist/daemon/handlers/profiles.js +12 -2
  36. package/dist/daemon/handlers/settings.js +9 -36
  37. package/dist/daemon/router.js +26 -21
  38. package/dist/daemon/scheduler.js +3 -1
  39. package/dist/daemon/server.js +5 -2
  40. package/dist/daemon-client.js +13 -3
  41. package/dist/daemon-http.js +6 -0
  42. package/dist/daemon-lifecycle.js +19 -196
  43. package/dist/github.js +7 -2
  44. package/dist/http.js +7 -5
  45. package/dist/mihomo-config.js +2 -1
  46. package/dist/paths.js +5 -7
  47. package/dist/profile-model.js +87 -0
  48. package/dist/profile-service.js +250 -587
  49. package/dist/profiles.js +43 -171
  50. package/dist/runtime-lifecycle.js +112 -194
  51. package/dist/runtime-owner.js +37 -76
  52. package/dist/sash-client.js +40 -19
  53. package/dist/settings-service.js +29 -224
  54. package/dist/settings.js +61 -289
  55. package/dist/status.js +24 -16
  56. package/dist/supervisor.js +1 -14
  57. package/dist/sysproxy/common.js +5 -45
  58. package/dist/sysproxy/factory.js +24 -65
  59. package/dist/sysproxy/snapshot.js +24 -257
  60. package/dist/sysproxy.js +1 -4
  61. package/dist/system-proxy-manager.js +37 -35
  62. package/dist/ui/assets/{ConnectionsView-CfaOG2JV.js → ConnectionsView-BgXQM6Z4.js} +1 -1
  63. package/dist/ui/assets/{LogsView-BDiRATXN.js → LogsView-2f542P8z.js} +1 -1
  64. package/dist/ui/assets/{PaginationFooter-DTytr1iu.js → PaginationFooter-cj1tcZej.js} +1 -1
  65. package/dist/ui/assets/ProfileEditorDialog-C9M8uKZC.css +1 -0
  66. package/dist/ui/assets/ProfileEditorDialog-DD4y4GBC.js +14 -0
  67. package/dist/ui/assets/ProfilesView-BXU2DOA7.css +1 -0
  68. package/dist/ui/assets/ProfilesView-DNnzYIEY.js +7 -0
  69. package/dist/ui/assets/{RulesView-CjEyCN1A.js → RulesView-CtKvlckZ.js} +1 -1
  70. package/dist/ui/assets/SettingsView-BaeKFF_N.js +1 -0
  71. package/dist/ui/assets/SettingsView-CWjIe05v.css +1 -0
  72. package/dist/ui/assets/index-CBInDvdJ.js +19 -0
  73. package/dist/ui/assets/index-mOLy7fkB.css +1 -0
  74. package/dist/ui/assets/{theme-BwDBMsKO.js → theme-D40MF8cQ.js} +1 -1
  75. package/dist/ui/index.html +2 -2
  76. package/docs/architecture-proposal.md +109 -0
  77. package/docs/autostart.md +101 -0
  78. package/docs/backend.md +92 -224
  79. package/docs/frontend.md +60 -106
  80. package/docs/usage.md +92 -164
  81. package/package.json +3 -3
  82. package/dist/commands/upgrade.js +0 -43
  83. package/dist/core-install-transaction.js +0 -114
  84. package/dist/core-update-coordination.js +0 -105
  85. package/dist/core-update-service.js +0 -245
  86. package/dist/managed-state-transaction.js +0 -375
  87. package/dist/offline-mutation.js +0 -58
  88. package/dist/profile-migration.js +0 -101
  89. package/dist/runtime-recovery.js +0 -31
  90. package/dist/sysproxy/darwin.js +0 -287
  91. package/dist/sysproxy/gnome.js +0 -181
  92. package/dist/sysproxy/legacy.js +0 -58
  93. package/dist/ui/assets/CodeEditorModal-6m0TJWyF.css +0 -1
  94. package/dist/ui/assets/CodeEditorModal-D1zn-jRS.js +0 -14
  95. package/dist/ui/assets/ProfileEditorDialog-CyyP6OF1.js +0 -1
  96. package/dist/ui/assets/ProfilesView-ByqdFNHN.css +0 -1
  97. package/dist/ui/assets/ProfilesView-hFa7-O72.js +0 -2
  98. package/dist/ui/assets/SettingsFileDialog-CjBSyH4K.js +0 -1
  99. package/dist/ui/assets/SettingsView-D5QvJId6.css +0 -1
  100. package/dist/ui/assets/SettingsView-DsRntRfn.js +0 -2
  101. package/dist/ui/assets/index-CxQTf_P9.css +0 -1
  102. package/dist/ui/assets/index-_mb4OfYp.js +0 -19
@@ -0,0 +1,19 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ConnectionsView-BgXQM6Z4.js","./PaginationFooter-cj1tcZej.js","./PaginationFooter-BNkpcNoB.css","./ConnectionsView-DHo6yvU6.css","./LogsView-2f542P8z.js","./LogsView-BoeE92VF.css","./ProfilesView-DNnzYIEY.js","./ProfilesView-BXU2DOA7.css","./RulesView-CtKvlckZ.js","./RulesView-CHyynVqA.css","./SettingsView-BaeKFF_N.js","./theme-D40MF8cQ.js","./SettingsView-CWjIe05v.css"])))=>i.map(i=>d[i]);
2
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
3
+ * @vue/shared v3.5.42
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/function Yo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const oe={},pn=[],gt=()=>{},wi=()=>!1,Gs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zs=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Xo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ta=Object.prototype.hasOwnProperty,le=(e,t)=>ta.call(e,t),G=Array.isArray,Nt=e=>ns(e)==="[object Map]",nn=e=>ns(e)==="[object Set]",Sr=e=>ns(e)==="[object Date]",Y=e=>typeof e=="function",me=e=>typeof e=="string",st=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",bi=e=>(ae(e)||Y(e))&&Y(e.then)&&Y(e.catch),Ci=Object.prototype.toString,ns=e=>Ci.call(e),na=e=>ns(e).slice(8,-1),_i=e=>ns(e)==="[object Object]",Qo=e=>me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bn=Yo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),js=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},sa=/-\w/g,ke=js(e=>e.replace(sa,t=>t.slice(1).toUpperCase())),oa=/\B([A-Z])/g,Et=js(e=>e.replace(oa,"-$1").toLowerCase()),Ks=js(e=>e.charAt(0).toUpperCase()+e.slice(1)),co=js(e=>e?`on${Ks(e)}`:""),He=(e,t)=>!Object.is(e,t),_s=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},xi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ra=e=>{const t=me(e)?Number(e):NaN;return isNaN(t)?e:t};let Tr;const Ws=()=>Tr||(Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=me(s)?ca(s):Js(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(me(e)||ae(e))return e}const ia=/;(?![^(]*\))/g,la=/:([^]+)/,aa=/\/\*[^]*?\*\//g;function ca(e){const t={};return e.replace(aa,"").split(ia).forEach(n=>{if(n){const s=n.split(la);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Pe(e){let t="";if(me(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const s=Pe(e[n]);s&&(t+=s+" ")}else if(ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ua="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fa=Yo(ua);function Si(e){return!!e||e===""}function da(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=kt(e[s],t[s]);return n}function Lr(e,t){if(e.size!==t.size)return!1;const n=Array.from(t),s=new Uint8Array(n.length);for(const o of e){let r=-1;for(let i=0;i<n.length;i++)if(!s[i]&&kt(o,n[i])){r=i;break}if(r<0)return!1;s[r]=1}return!0}function kt(e,t){if(e===t)return!0;let n=Sr(e),s=Sr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=st(e),s=st(t),n||s)return e===t;if(n=G(e),s=G(t),n||s)return n&&s?da(e,t):!1;if(n=ae(e),s=ae(t),n||s){if(!n||!s)return!1;if(n=Nt(e),s=Nt(t),n||s||(n=nn(e),s=nn(t),n||s))return n&&s?Lr(e,t):!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!kt(e[i],t[i]))return!1}}return String(e)===String(t)}function pa(e,t){return e.findIndex(n=>kt(n,t))}const Ti=e=>!!(e&&e.__v_isRef===!0),B=e=>me(e)?e:e==null?"":G(e)||ae(e)&&(e.toString===Ci||!Y(e.toString))?Ti(e)?B(e.value):JSON.stringify(e,Li,2):String(e),Li=(e,t)=>Ti(t)?Li(e,t.value):Nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[uo(s,r)+" =>"]=o,n),{})}:nn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>uo(n))}:st(t)?uo(t):ae(t)&&!G(t)&&!_i(t)?String(t):t,uo=(e,t="")=>{var n;return st(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
7
+ * @vue/reactivity v3.5.42
8
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
9
+ * @license MIT
10
+ **/let Te;class ha{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&&Te&&(Te.active?(this.parent=Te,this.index=(Te.scopes||(Te.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){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[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){const o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){++this._on===1&&(this.prevScope=Te,Te=this)}off(){if(this._on>0&&--this._on===0){if(Te===this)Te=this.prevScope;else{let t=Te;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,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const o=this.scopes.slice();for(n=0,s=o.length;n<s;n++)o[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function ga(){return Te}function bh(e,t=!1){Te&&Te.cleanups.push(e)}let he;const fo=new WeakSet;class Pi{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,Te&&(Te.active?Te.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,fo.has(this)&&(fo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Mi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Pr(this),Ei(this);const t=he,n=nt;he=this,nt=!0;try{return this.fn()}finally{$i(this),he=t,nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nr(t);this.deps=this.depsTail=void 0,Pr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?fo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$o(this)&&this.run()}get dirty(){return $o(this)}}let Ai=0,zn,Fn;function Mi(e,t=!1){if(e.flags|=8,t){e.next=Fn,Fn=e;return}e.next=zn,zn=e}function er(){Ai++}function tr(){if(--Ai>0)return;if(Fn){let t=Fn;for(Fn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;zn;){let t=zn;for(zn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $i(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),nr(s),ma(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function $o(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wn)||(e.globalVersion=Wn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$o(e))))return;e.flags|=2;const t=e.dep,n=he,s=nt;he=e,nt=!0;try{Ei(e);const o=e.fn(e._value);(t.version===0||He(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{he=n,nt=s,$i(e),e.flags&=-3}}function nr(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)nr(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ma(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const Hi=[];function Pt(){Hi.push(nt),nt=!1}function At(){const e=Hi.pop();nt=e===void 0?!0:e}function Pr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let Wn=0;class ya{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 Ys{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(!he||!nt||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new ya(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,Ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=s)}return n}trigger(t){this.version++,Wn++,this.notify(t)}notify(t){er();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{tr()}}}function Ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Oo=new WeakMap,en=Symbol(""),Ho=Symbol(""),Jn=Symbol("");function Ne(e,t,n){if(nt&&he){let s=Oo.get(e);s||Oo.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new Ys),o.map=s,o.key=n),o.track()}}function xt(e,t,n,s,o,r){const i=Oo.get(e);if(!i){Wn++;return}const l=a=>{a&&a.trigger()};if(er(),t==="clear")i.forEach(l);else{const a=G(e),u=a&&Qo(n);if(a&&n==="length"){const c=Number(s);i.forEach((p,m)=>{(m==="length"||m===Jn||!st(m)&&m>=c)&&l(p)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(Jn)),t){case"add":a?u&&l(i.get("length")):(l(i.get(en)),Nt(e)&&l(i.get(Ho)));break;case"delete":a||(l(i.get(en)),Nt(e)&&l(i.get(Ho)));break;case"set":Nt(e)&&l(i.get(en));break}}tr()}function rn(e){const t=se(e);return t===e?t:(Ne(t,"iterate",Jn),Xe(e)?t:t.map(ot))}function Xs(e){return Ne(e=se(e),"iterate",Jn),e}function pt(e,t){return Mt(e)?yn(tn(e)?ot(t):t):ot(t)}const va={__proto__:null,[Symbol.iterator](){return po(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return rn(this).concat(...e.map(t=>G(t)?rn(t):t))},entries(){return po(this,"entries",e=>(e[1]=pt(this,e[1]),e))},every(e,t){return vt(this,"every",e,t,void 0,arguments)},filter(e,t){return vt(this,"filter",e,t,n=>n.map(s=>pt(this,s)),arguments)},find(e,t){return vt(this,"find",e,t,n=>pt(this,n),arguments)},findIndex(e,t){return vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vt(this,"findLast",e,t,n=>pt(this,n),arguments)},findLastIndex(e,t){return vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ho(this,"includes",e)},indexOf(...e){return ho(this,"indexOf",e)},join(e){return rn(this).join(e)},lastIndexOf(...e){return ho(this,"lastIndexOf",e)},map(e,t){return vt(this,"map",e,t,void 0,arguments)},pop(){return An(this,"pop")},push(...e){return An(this,"push",e)},reduce(e,...t){return Ar(this,"reduce",e,t)},reduceRight(e,...t){return Ar(this,"reduceRight",e,t)},shift(){return An(this,"shift")},some(e,t){return vt(this,"some",e,t,void 0,arguments)},splice(...e){return An(this,"splice",e)},toReversed(){return rn(this).toReversed()},toSorted(e){return rn(this).toSorted(e)},toSpliced(...e){return rn(this).toSpliced(...e)},unshift(...e){return An(this,"unshift",e)},values(){return po(this,"values",e=>pt(this,e))}};function po(e,t,n){const s=Xs(e),o=s[t]();return s!==e&&!Xe(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const wa=Array.prototype;function vt(e,t,n,s,o,r){const i=Xs(e),l=i!==e&&!Xe(e),a=i[t];if(a!==wa[t]){const p=a.apply(e,r);return l?ot(p):p}let u=n;i!==e&&(l?u=function(p,m){return n.call(this,pt(e,p),m,e)}:n.length>2&&(u=function(p,m){return n.call(this,p,m,e)}));const c=a.call(i,u,s);return l&&o?o(c):c}function Ar(e,t,n,s){const o=Xs(e),r=o!==e&&!Xe(e);let i=n,l=!1;o!==e&&(r?(l=s.length===0,i=function(u,c,p){return l&&(l=!1,u=pt(e,u)),n.call(this,u,pt(e,c),p,e)}):n.length>3&&(i=function(u,c,p){return n.call(this,u,c,p,e)}));const a=o[t](i,...s);return l?pt(e,a):a}function ho(e,t,n){const s=se(e);Ne(s,"iterate",Jn);const o=s[t](...n);return(o===-1||o===!1)&&rr(n[0])?(n[0]=se(n[0]),s[t](...n)):o}function An(e,t,n=[]){Pt(),er();const s=se(e)[t].apply(e,n);return tr(),At(),s}const ba=Yo("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(st));function Ca(e){st(e)||(e=String(e));const t=se(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class Di{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?$a:Bi:r?ki:Vi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=G(t);if(!o){let a;if(i&&(a=va[n]))return a;if(n==="hasOwnProperty")return Ca}const l=Reflect.get(t,n,Be(t)?t:s);if((st(n)?Ii.has(n):ba(n))||(o||Ne(t,"get",n),r))return l;if(Be(l)){const a=i&&Qo(n)?l:l.value;return o&&ae(a)?Io(a):a}return ae(l)?o?Io(l):Qs(l):l}}class Ni extends Di{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const i=G(t)&&Qo(n);if(!this._isShallow){const u=Mt(r);if(!Xe(s)&&!Mt(s)&&(r=se(r),s=se(s)),!i&&Be(r)&&!Be(s))return u||(r.value=s),!0}const l=i?Number(n)<t.length:le(t,n),a=Reflect.set(t,n,s,Be(t)?t:o);return t===se(o)&&a&&(l?He(s,r)&&xt(t,"set",n,s):xt(t,"add",n,s)),a}deleteProperty(t,n){const s=le(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&xt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!st(n)||!Ii.has(n))&&Ne(t,"has",n),s}ownKeys(t){return Ne(t,"iterate",G(t)?"length":en),Reflect.ownKeys(t)}}class _a extends Di{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const xa=new Ni,Sa=new _a,Ta=new Ni(!0);const Ro=e=>e,us=e=>Reflect.getPrototypeOf(e);function La(e,t,n){return function(...s){const o=this.__v_raw,r=se(o),i=Nt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...s),c=n?Ro:t?yn:ot;return!t&&Ne(r,"iterate",a?Ho:en),Ce(Object.create(u),{next(){const{value:p,done:m}=u.next();return m?{value:p,done:m}:{value:l?[c(p[0]),c(p[1])]:c(p),done:m}}})}}function fs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pa(e,t){const n={get(o){const r=this.__v_raw,i=se(r),l=se(o);e||(He(o,l)&&Ne(i,"get",o),Ne(i,"get",l));const{has:a}=us(i),u=t?Ro:e?yn:ot;if(a.call(i,o))return u(r.get(o));if(a.call(i,l))return u(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Ne(se(o),"iterate",en),o.size},has(o){const r=this.__v_raw,i=se(r),l=se(o);return e||(He(o,l)&&Ne(i,"has",o),Ne(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,a=se(l),u=t?Ro:e?yn:ot;return!e&&Ne(a,"iterate",en),l.forEach((c,p)=>o.call(r,u(c),u(p),i))}};return Ce(n,e?{add:fs("add"),set:fs("set"),delete:fs("delete"),clear:fs("clear")}:{add(o){const r=se(this),i=us(r),l=se(o),a=!t&&!Xe(o)&&!Mt(o)?l:o;return i.has.call(r,a)||He(o,a)&&i.has.call(r,o)||He(l,a)&&i.has.call(r,l)||(r.add(a),xt(r,"add",a,a)),this},set(o,r){!t&&!Xe(r)&&!Mt(r)&&(r=se(r));const i=se(this),{has:l,get:a}=us(i);let u=l.call(i,o);u||(o=se(o),u=l.call(i,o));const c=a.call(i,o);return i.set(o,r),u?He(r,c)&&xt(i,"set",o,r):xt(i,"add",o,r),this},delete(o){const r=se(this),{has:i,get:l}=us(r);let a=i.call(r,o);a||(o=se(o),a=i.call(r,o)),l&&l.call(r,o);const u=r.delete(o);return a&&xt(r,"delete",o,void 0),u},clear(){const o=se(this),r=o.size!==0,i=o.clear();return r&&xt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=La(o,e,t)}),n}function sr(e,t){const n=Pa(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(le(n,o)&&o in s?n:s,o,r)}const Aa={get:sr(!1,!1)},Ma={get:sr(!1,!0)},Ea={get:sr(!0,!1)};const Vi=new WeakMap,ki=new WeakMap,Bi=new WeakMap,$a=new WeakMap;function Oa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qs(e){return Mt(e)?e:or(e,!1,xa,Aa,Vi)}function zi(e){return or(e,!1,Ta,Ma,ki)}function Io(e){return or(e,!0,Sa,Ea,Bi)}function or(e,t,n,s,o){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const i=Oa(na(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function tn(e){return Mt(e)?tn(e.__v_raw):!!(e&&e.__v_isReactive)}function Mt(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function rr(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Ha(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&xi(e,"__v_skip",!0),e}const ot=e=>ae(e)?Qs(e):e,yn=e=>ae(e)?Io(e):e;function Be(e){return e?e.__v_isRef===!0:!1}function Ae(e){return Ra(e,!1)}function Ra(e,t){return Be(e)?e:new Ia(e,t)}class Ia{constructor(t,n){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:ot(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Xe(t)||Mt(t);t=s?t:se(t),He(t,n)&&(this._rawValue=t,this._value=s?t:ot(t),this.dep.trigger())}}function g(e){return Be(e)?e.value:e}const Da={get:(e,t,n)=>t==="__v_raw"?e:g(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Be(o)&&!Be(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Fi(e){return tn(e)?e:new Proxy(e,Da)}class Na{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ys,{get:s,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Va(e){return new Na(e)}class ka{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ys(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return Mi(this,!0),!0}get value(){const t=this.dep.track();return Oi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ba(e,t,n=!1){let s,o;return Y(e)?s=e:(s=e.get,o=e.set),new ka(s,o,n)}const ds={},Ps=new WeakMap;let Kt;function za(e,t=!1,n=Kt){if(n){let s=Ps.get(n);s||Ps.set(n,s=[]),s.push(e)}}function Fa(e,t,n=oe){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=n,u=$=>o?$:Xe($)||o===!1||o===0?St($,1):St($);let c,p,m,w,C=!1,y=!1;if(Be(e)?(p=()=>e.value,C=Xe(e)):tn(e)?(p=()=>u(e),C=!0):G(e)?(y=!0,C=e.some($=>tn($)||Xe($)),p=()=>e.map($=>{if(Be($))return $.value;if(tn($))return u($);if(Y($))return a?a($,2):$()})):Y(e)?t?p=a?()=>a(e,2):e:p=()=>{if(m){Pt();try{m()}finally{At()}}const $=Kt;Kt=c;try{return a?a(e,3,[w]):e(w)}finally{Kt=$}}:p=gt,t&&o){const $=p,H=o===!0?1/0:o;p=()=>St($(),H)}const S=ga(),T=()=>{c.stop(),S&&S.active&&Xo(S.effects,c)};if(r&&t){const $=t;t=(...H)=>{const D=$(...H);return T(),D}}let _=y?new Array(e.length).fill(ds):ds;const F=$=>{if(!(!(c.flags&1)||!c.dirty&&!$))if(t){const H=c.run();if($||o||C||(y?H.some((D,E)=>He(D,_[E])):He(H,_))){m&&m();const D=Kt;Kt=c;try{const E=[H,_===ds?void 0:y&&_[0]===ds?[]:_,w];_=H,a?a(t,3,E):t(...E)}finally{Kt=D}}}else c.run()};return l&&l(F),c=new Pi(p),c.scheduler=i?()=>i(F,!1):F,w=$=>za($,!1,c),m=c.onStop=()=>{const $=Ps.get(c);if($){if(a)a($,4);else for(const H of $)H();Ps.delete(c)}},t?s?F(!0):_=c.run():i?i(F.bind(null,!0),!0):c.run(),T.pause=c.pause.bind(c),T.resume=c.resume.bind(c),T.stop=T,T}function St(e,t=1/0,n){if(t<=0||!ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Be(e))St(e.value,t,n);else if(G(e))for(let s=0;s<e.length;s++)St(e[s],t,n);else if(nn(e)||Nt(e))e.forEach(s=>{St(s,t,n)});else if(_i(e)){for(const s in e)St(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&St(e[s],t,n)}return e}/**
11
+ * @vue/runtime-core v3.5.42
12
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
+ * @license MIT
14
+ **/function ss(e,t,n,s){try{return s?e(...s):e()}catch(o){os(o,t,n)}}function Qe(e,t,n,s){if(Y(e)){const o=ss(e,t,n,s);return o&&bi(o)&&o.catch(r=>{os(r,t,n)}),o}if(G(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}}function os(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||oe;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let p=0;p<c.length;p++)if(c[p](e,a,u)===!1)return}l=l.parent}if(r){Pt(),ss(r,null,10,[e,a,u]),At();return}}Ua(e,n,o,s,i)}function Ua(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ue=[];let dt=-1;const hn=[];let Dt=null,un=0;const Ui=Promise.resolve();let As=null;function Ms(e){const t=As||Ui;return e?t.then(this?e.bind(this):e):t}function Ga(e){let t=dt+1,n=Ue.length;for(;t<n;){const s=t+n>>>1,o=Ue[s],r=Yn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function ir(e){if(!(e.flags&1)){const t=Yn(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=Yn(n)?Ue.push(e):Ue.splice(Ga(t),0,e),e.flags|=1,Gi()}}function Gi(){As||(As=Ui.then(ji))}function Za(e){if(!G(e))Dt&&e.id===-1?Dt.splice(un+1,0,e):e.flags&1||(hn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)hn.push(e[t]);Gi()}function Mr(e,t,n=dt+1){for(;n<Ue.length;n++){const s=Ue[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ue.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Zi(e){if(hn.length){const t=[...new Set(hn)].sort((n,s)=>Yn(n)-Yn(s));if(hn.length=0,Dt){for(let n=0;n<t.length;n++)Dt.push(t[n]);return}for(Dt=t,un=0;un<Dt.length;un++){const n=Dt[un];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Dt=null,un=0}}const Yn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ji(e){try{for(dt=0;dt<Ue.length;dt++){const t=Ue[dt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ss(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;dt<Ue.length;dt++){const t=Ue[dt];t&&(t.flags&=-2)}dt=-1,Ue.length=0,Zi(),As=null,(Ue.length||hn.length)&&ji()}}let Ie=null,Ki=null;function Es(e){const t=Ie;return Ie=e,Ki=e&&e.type.__scopeId||null,t}function xn(e,t=Ie,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Is(-1);const r=Es(t),i=Lt.length;let l;try{l=e(...o)}finally{for(let a=Lt.length;a>i;a--)pr();Es(r),s._d&&Is(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function ja(e,t){if(Ie===null)return e;const n=ro(Ie),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=oe]=t[o];r&&(Y(r)&&(r={mounted:r,updated:r}),r.deep&&St(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let a=l.dir[s];a&&(Pt(),Qe(a,n,8,[e.el,l,e,t]),At())}}function Ka(e,t){if(Re){let n=Re.provides;const s=Re.parent&&Re.parent.provides;s===n&&(n=Re.provides=Object.create(s)),n[e]=t}}function xs(e,t,n=!1){const s=is();if(s||mn){let o=mn?mn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Y(t)?t.call(s&&s.proxy):t}}const qa=Symbol.for("v-scx"),Wa=()=>xs(qa);function Ja(e,t){return lr(e,null,{flush:"sync"})}function Vt(e,t,n){return lr(e,t,n)}function lr(e,t,n=oe){const{immediate:s,deep:o,flush:r,once:i}=n,l=Ce({},n),a=t&&s||!t&&r!=="post";let u;if(wn){if(r==="sync"){const w=Wa();u=w.__watcherHandles||(w.__watcherHandles=[])}else if(!a){const w=()=>{};return w.stop=gt,w.resume=gt,w.pause=gt,w}}const c=Re;l.call=(w,C,y)=>Qe(w,c,C,y);let p=!1;r==="post"?l.scheduler=w=>{Fe(w,c&&c.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(w,C)=>{C?w():ir(w)}),l.augmentJob=w=>{t&&(w.flags|=4),p&&(w.flags|=2,c&&(w.id=c.uid,w.i=c))};const m=Fa(e,t,l);return wn&&(u?u.push(m):a&&m()),m}function Ya(e,t,n){const s=this.proxy,o=me(e)?e.includes(".")?qi(s,e):()=>s[e]:e.bind(s,s);let r;Y(t)?r=t:(r=t.handler,n=t);const i=ls(this),l=lr(o,r.bind(s),n);return i(),l}function qi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const Rt=new WeakMap,Wi=Symbol("_vte"),eo=e=>e.__isTeleport,Jt=e=>e&&(e.disabled||e.disabled===""),Xa=e=>e&&(e.defer||e.defer===""),Er=e=>typeof SVGElement<"u"&&e instanceof SVGElement,$r=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Do=(e,t)=>{const n=e&&e.to;return me(n)?t?t(n):null:n},Qa={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,i,l,a,u){const{mc:c,pc:p,pbc:m,o:{insert:w,querySelector:C,createText:y,createComment:S,parentNode:T}}=u,_=Jt(t.props);let{dynamicChildren:F}=t;const $=(E,Q,U)=>{E.shapeFlag&16&&c(E.children,Q,U,o,r,i,l,a)},H=(E=t)=>{const Q=Jt(E.props),U=E.target=Do(E.props,C),te=No(U,E,y,w);U&&(i!=="svg"&&Er(U)?i="svg":i!=="mathml"&&$r(U)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(U),Q||($(E,U,te),Nn(E,!1)))},D=E=>{const Q=()=>{if(Rt.get(E)===Q){if(Rt.delete(E),Jt(E.props)){const U=T(E.el)||n;$(E,U,E.anchor),Nn(E,!0)}H(E)}};Rt.set(E,Q),Fe(Q,r)};if(e==null){const E=t.el=y(""),Q=t.anchor=y("");if(w(E,n,s),w(Q,n,s),Xa(t.props)||r&&r.pendingBranch){D(t);return}_&&($(t,n,Q),Nn(t,!0)),H()}else{t.el=e.el;const E=t.anchor=e.anchor,Q=Rt.get(e);if(Q){Q.flags|=8,Rt.delete(e),D(t);return}t.targetStart=e.targetStart;const U=t.target=e.target,te=t.targetAnchor=e.targetAnchor,ie=Jt(e.props),k=ie?n:U,de=ie?E:te;if(i==="svg"||Er(U)?i="svg":(i==="mathml"||$r(U))&&(i="mathml"),F?(m(e.dynamicChildren,F,k,o,r,i,l),dr(e,t,!0)):a||p(e,t,k,de,o,r,i,l,!1),_)ie?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ps(t,n,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const _e=Do(t.props,C);_e&&(t.target=_e,ps(t,_e,null,u,0))}else ie&&ps(t,U,te,u,1);Nn(t,_)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:p,props:m}=e,w=Jt(m),C=r||!w,y=Rt.get(e);if(y&&(y.flags|=8,Rt.delete(e)),p&&(o(u),o(c)),r&&o(a),!y&&(w||p)&&i&16)for(let S=0;S<l.length;S++){const T=l[S];s(T,t,n,C,!!T.dynamicChildren)}},move:ps,hydrate:ec};function ps(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:u,props:c}=e,p=r===2;if(p&&s(i,t,n),!Rt.has(e)&&(!p||Jt(c))&&a&16)for(let m=0;m<u.length;m++)o(u[m],t,n,2);p&&s(l,t,n)}function ec(e,t,n,s,o,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:u,createText:c}},p){function m(S,T){let _=T;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")t.targetStart=_;else if(_.data==="teleport anchor"){t.targetAnchor=_,S._lpa=t.targetAnchor&&i(t.targetAnchor);break}}_=i(_)}}function w(S,T){T.anchor=p(i(S),T,l(S),n,s,o,r)}const C=t.target=Do(t.props,a),y=Jt(t.props);if(C){const S=C._lpa||C.firstChild;t.shapeFlag&16&&(y?(w(e,t),m(C,S),t.targetAnchor||No(C,t,c,u,l(e)===C?e:null)):(t.anchor=i(e),m(C,S),t.targetAnchor||No(C,t,c,u),p(S&&i(S),t,C,n,s,o,r))),Nn(t,y)}else y&&t.shapeFlag&16&&(w(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Ji=Qa;function Nn(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function No(e,t,n,s,o=null){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[Wi]=i,e&&(s(r,e,o),s(i,e,o)),i}const Ye=Symbol("_leaveCb"),Mn=Symbol("_enterCb");function Yi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return no(()=>{e.isMounted=!0}),rl(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],Xi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},Qi=e=>{const t=e.subTree;return t.component?Qi(t.component):t},tc={name:"BaseTransition",props:Xi,setup(e,{slots:t}){const n=is(),s=Yi();return()=>{const o=t.default&&ar(t.default(),!0),r=o&&o.length?el(o):n.subTree?ve():void 0;if(!r)return;const i=se(e),{mode:l}=i;if(s.isLeaving)return go(r);const a=$s(r);if(!a)return go(r);let u=Xn(a,i,s,n,p=>u=p);a.type!==Ve&&sn(a,u);let c=n.subTree&&$s(n.subTree);if(c&&c.type!==Ve&&!Yt(c,a)&&Qi(n).type!==Ve){let p=Xn(c,i,s,n);if(sn(c,p),l==="out-in"&&a.type!==Ve)return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,c=void 0},go(r);l==="in-out"&&a.type!==Ve?p.delayLeave=(m,w,C)=>{const y=tl(s,c);y[String(c.key)]=c,m[Ye]=()=>{w(),m[Ye]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{C(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function el(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ve){t=n;break}}return t}const nc=tc;function tl(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Xn(e,t,n,s,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:p,onBeforeLeave:m,onLeave:w,onAfterLeave:C,onLeaveCancelled:y,onBeforeAppear:S,onAppear:T,onAfterAppear:_,onAppearCancelled:F}=t,$=String(e.key),H=tl(n,e),D=(U,te)=>{U&&Qe(U,s,9,te)},E=(U,te)=>{const ie=te[1];D(U,te),G(U)?U.every(k=>k.length<=1)&&ie():U.length<=1&&ie()},Q={mode:i,persisted:l,beforeEnter(U){let te=a;if(!n.isMounted)if(r)te=S||a;else return;U[Ye]&&U[Ye](!0);const ie=H[$];ie&&Yt(e,ie)&&ie.el[Ye]&&ie.el[Ye](),D(te,[U])},enter(U){if(H[$]===e)return;let te=u,ie=c,k=p;if(!n.isMounted)if(r)te=T||u,ie=_||c,k=F||p;else return;let de=!1;U[Mn]=yt=>{de||(de=!0,yt?D(k,[U]):D(ie,[U]),Q.delayedLeave&&Q.delayedLeave(),U[Mn]=void 0)};const _e=U[Mn].bind(null,!1);te?E(te,[U,_e]):_e()},leave(U,te){const ie=String(e.key);if(U[Mn]&&U[Mn](!0),n.isUnmounting)return te();D(m,[U]);let k=!1;U[Ye]=_e=>{k||(k=!0,te(),_e?D(y,[U]):D(C,[U]),U[Ye]=void 0,H[ie]===e&&delete H[ie])};const de=U[Ye].bind(null,!1);H[ie]=e,w?E(w,[U,de]):de()},clone(U){const te=Xn(U,t,n,s,o);return o&&o(te),te}};return Q}function go(e){if(rs(e))return e=Bt(e),e.children=null,e}function $s(e){if(!rs(e))return eo(e.type)&&e.children?el(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&&Y(n.default))return n.default()}}function sn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;sn(eo(n.type)&&$s(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ar(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===re?(i.patchFlag&128&&o++,s=s.concat(ar(i.children,t,l))):(t||i.type!==Ve)&&s.push(l!=null?Bt(i,{key:l}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function q(e,t){return Y(e)?Ce({name:e.name},t,{setup:e}):e}function nl(){const e=is();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function cr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Or(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Os=new WeakMap;function Un(e,t,n,s,o=!1){if(G(e)){e.forEach((y,S)=>Un(y,t&&(G(t)?t[S]:t),n,s,o));return}if(gn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Un(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?ro(s.component):s.el,i=o?null:r,{i:l,r:a}=e,u=t&&t.r,c=l.refs===oe?l.refs={}:l.refs,p=l.setupState,m=se(p),w=p===oe?wi:y=>Or(c,y)?!1:le(m,y),C=(y,S)=>!(S&&Or(c,S));if(u!=null&&u!==a){if(Hr(t),me(u))c[u]=null,w(u)&&(p[u]=null);else if(Be(u)){const y=t;C(u,y.k)&&(u.value=null),y.k&&(c[y.k]=null)}}if(Y(a))ss(a,l,12,[i,c]);else{const y=me(a),S=Be(a);if(y||S){const T=()=>{if(e.f){const _=y?w(a)?p[a]:c[a]:C()||!e.k?a.value:c[e.k];if(o)G(_)&&Xo(_,r);else if(G(_))_.includes(r)||_.push(r);else if(y)c[a]=[r],w(a)&&(p[a]=c[a]);else{const F=[r];C(a,e.k)&&(a.value=F),e.k&&(c[e.k]=F)}}else y?(c[a]=i,w(a)&&(p[a]=i)):S&&(C(a,e.k)&&(a.value=i),e.k&&(c[e.k]=i))};if(i){const _=()=>{T(),Os.delete(e)};_.id=-1,Os.set(e,_),Fe(_,n)}else Hr(e),T()}}}function Hr(e){const t=Os.get(e);t&&(t.flags|=8,Os.delete(e))}const Rr=e=>e.nodeType===8;Ws().requestIdleCallback;Ws().cancelIdleCallback;function sc(e,t){if(Rr(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(Rr(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const gn=e=>!!e.type.__asyncLoader;function En(e){Y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:o=200,hydrate:r,timeout:i,suspensible:l=!0,onError:a}=e;let u=null,c,p=0;const m=()=>(p++,u=null,w()),w=()=>{let C;return u||(C=u=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),a)return new Promise((S,T)=>{a(y,()=>S(m()),()=>T(y),p+1)});throw y}).then(y=>C!==u&&u?u:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),c=y,y)))};return q({name:"AsyncComponentWrapper",__asyncLoader:w,__asyncHydrate(C,y,S){const T=C.isConnected;let _=!1;(y.bu||(y.bu=[])).push(()=>_=!0);const F=()=>{_||!C.parentNode||T&&!C.isConnected||S()},$=r?()=>{const H=r(F,D=>sc(C,D));H&&(y.bum||(y.bum=[])).push(H)}:F;c?$():w().then(()=>!y.isUnmounted&&$())},get __asyncResolved(){return c},setup(){const C=Re;if(cr(C),c)return()=>hs(c,C);const y=H=>{u=null,os(H,C,13,!s)};if(l&&C.suspense||wn)return w().then(H=>()=>hs(H,C)).catch(H=>(y(H),()=>s?W(s,{error:H}):null));const S=Ae(!1),T=Ae(),_=Ae(!!o);let F,$;return Sn(()=>{F!=null&&clearTimeout(F),$!=null&&clearTimeout($)}),o&&($=setTimeout(()=>{C.isUnmounted||(_.value=!1)},o)),i!=null&&(F=setTimeout(()=>{if(!C.isUnmounted&&!S.value&&!T.value){const H=new Error(`Async component timed out after ${i}ms.`);y(H),T.value=H}},i)),w().then(()=>{C.isUnmounted||(S.value=!0,C.parent&&rs(C.parent.vnode)&&C.parent.update())}).catch(H=>{if(C.isUnmounted){u=null;return}y(H),T.value=H}),()=>{if(S.value&&c)return hs(c,C);if(T.value&&s)return W(s,{error:T.value});if(n&&!_.value)return hs(n,C)}}})}function hs(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,i=W(e,s,o);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const rs=e=>e.type.__isKeepAlive;function oc(e,t){sl(e,"a",t)}function rc(e,t){sl(e,"da",t)}function sl(e,t,n=Re){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(to(t,s,n),n){let o=n.parent;for(;o&&o.parent;)rs(o.parent.vnode)&&ic(s,t,n,o),o=o.parent}}function ic(e,t,n,s){const o=to(t,e,s,!0);Sn(()=>{Xo(s[t],o)},n)}function to(e,t,n=Re,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Pt();const l=ls(n),a=Qe(t,n,e,i);return l(),At(),a});return s?o.unshift(r):o.push(r),r}}const $t=e=>(t,n=Re)=>{(!wn||e==="sp")&&to(e,(...s)=>t(...s),n)},lc=$t("bm"),no=$t("m"),ac=$t("bu"),ol=$t("u"),rl=$t("bum"),Sn=$t("um"),cc=$t("sp"),uc=$t("rtg"),fc=$t("rtc");function dc(e,t=Re){to("ec",e,t)}const pc="components",il=Symbol.for("v-ndc");function ll(e){return me(e)?hc(pc,e,!1)||e:e||il}function hc(e,t,n=!0,s=!1){const o=Ie||Re;if(o){const r=o.type;{const l=Yc(r,!1);if(l&&(l===t||l===ke(t)||l===Ks(ke(t))))return r}const i=Ir(o[e]||r[e],t)||Ir(o.appContext[e],t);return!i&&s?r:i}}function Ir(e,t){return e&&(e[t]||e[ke(t)]||e[Ks(ke(t))])}function on(e,t,n,s){let o;const r=n,i=G(e);if(i||me(e)){const l=i&&tn(e);let a=!1,u=!1;l&&(a=!Xe(e),u=Mt(e),e=Xs(e)),o=new Array(e.length);for(let c=0,p=e.length;c<p;c++)o[c]=t(a?u?yn(ot(e[c])):ot(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(ae(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];o[a]=t(e[c],c,a,r)}}else o=[];return o}function gc(e,t,n,s,o,r){if(n==null&&(n={}),Ie.ce||Ie.parent&&gn(Ie.parent)&&Ie.parent.ce){const u=n,c=Object.keys(u).length>0;return t!=="default"&&(u.name=t),N(),Ee(re,null,[W("slot",u,s)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=Lt.length;N();let a;try{const u=i&&al(i(n)),c=n.key||r||u&&u.key;a=Ee(re,{key:(c&&!st(c)?c:`_${t}`)+(!u&&s?"_fb":"")},u||(s?s():[]),u&&e._===1?64:-2)}catch(u){for(let c=Lt.length;c>l;c--)pr();throw u}finally{i&&i._c&&(i._d=!0)}return a}function al(e){return e.some(t=>vn(t)?!(t.type===Ve||t.type===re&&!al(t.children)):!0)?e:null}const Vo=e=>e?Al(e)?ro(e):Vo(e.parent):null,Gn=Ce(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=>Vo(e.parent),$root:e=>Vo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ul(e),$forceUpdate:e=>e.f||(e.f=()=>{ir(e.update)}),$nextTick:e=>e.n||(e.n=Ms.bind(e.proxy)),$watch:e=>Ya.bind(e)}),mo=(e,t)=>e!==oe&&!e.__isScriptSetup&&le(e,t),mc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(mo(s,t))return i[t]=1,s[t];if(o!==oe&&le(o,t))return i[t]=2,o[t];if(le(r,t))return i[t]=3,r[t];if(n!==oe&&le(n,t))return i[t]=4,n[t];ko&&(i[t]=0)}}const u=Gn[t];let c,p;if(u)return t==="$attrs"&&Ne(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==oe&&le(n,t))return i[t]=4,n[t];if(p=a.config.globalProperties,le(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return mo(o,t)?(o[t]=n,!0):s!==oe&&le(s,t)?(s[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:i}},l){let a;return!!(n[l]||e!==oe&&l[0]!=="$"&&le(e,l)||mo(t,l)||le(r,l)||le(s,l)||le(Gn,l)||le(o.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Hs(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ch(e,t){return!e||!t?e||t:G(e)&&G(t)?e.concat(t):Ce({},Hs(e),Hs(t))}let ko=!0;function yc(e){const t=ul(e),n=e.proxy,s=e.ctx;ko=!1,t.beforeCreate&&Dr(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:p,mounted:m,beforeUpdate:w,updated:C,activated:y,deactivated:S,beforeDestroy:T,beforeUnmount:_,destroyed:F,unmounted:$,render:H,renderTracked:D,renderTriggered:E,errorCaptured:Q,serverPrefetch:U,expose:te,inheritAttrs:ie,components:k,directives:de,filters:_e}=t;if(u&&vc(u,s,null),i)for(const ye in i){const pe=i[ye];Y(pe)&&(s[ye]=pe.bind(n))}if(o){const ye=o.call(n,n);ae(ye)&&(e.data=Qs(ye))}if(ko=!0,r)for(const ye in r){const pe=r[ye],Ft=Y(pe)?pe.bind(n,n):Y(pe.get)?pe.get.bind(n,n):gt,as=!Y(pe)&&Y(pe.set)?pe.set.bind(n):gt,Ut=X({get:Ft,set:as});Object.defineProperty(s,ye,{enumerable:!0,configurable:!0,get:()=>Ut.value,set:it=>Ut.value=it})}if(l)for(const ye in l)cl(l[ye],s,n,ye);if(a){const ye=Y(a)?a.call(n):a;Reflect.ownKeys(ye).forEach(pe=>{Ka(pe,ye[pe])})}c&&Dr(c,e,"c");function Me(ye,pe){G(pe)?pe.forEach(Ft=>ye(Ft.bind(n))):pe&&ye(pe.bind(n))}if(Me(lc,p),Me(no,m),Me(ac,w),Me(ol,C),Me(oc,y),Me(rc,S),Me(dc,Q),Me(fc,D),Me(uc,E),Me(rl,_),Me(Sn,$),Me(cc,U),G(te))if(te.length){const ye=e.exposed||(e.exposed={});te.forEach(pe=>{Object.defineProperty(ye,pe,{get:()=>n[pe],set:Ft=>n[pe]=Ft,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===gt&&(e.render=H),ie!=null&&(e.inheritAttrs=ie),k&&(e.components=k),de&&(e.directives=de),U&&cr(e)}function vc(e,t,n=gt){G(e)&&(e=Bo(e));for(const s in e){const o=e[s];let r;ae(o)?"default"in o?r=xs(o.from||s,o.default,!0):r=xs(o.from||s):r=xs(o),Be(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Dr(e,t,n){Qe(G(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function cl(e,t,n,s){let o=s.includes(".")?qi(n,s):()=>n[s];if(me(e)){const r=t[e];Y(r)&&Vt(o,r)}else if(Y(e))Vt(o,e.bind(n));else if(ae(e))if(G(e))e.forEach(r=>cl(r,t,n,s));else{const r=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(r)&&Vt(o,r,e)}}function ul(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(u=>Rs(a,u,i,!0)),Rs(a,t,i)),ae(t)&&r.set(t,a),a}function Rs(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Rs(e,r,n,!0),o&&o.forEach(i=>Rs(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=wc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const wc={data:Nr,props:Vr,emits:Vr,methods:Vn,computed:Vn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:Vn,directives:Vn,watch:Cc,provide:Nr,inject:bc};function Nr(e,t){return t?e?function(){return Ce(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function bc(e,t){return Vn(Bo(e),Bo(t))}function Bo(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function Vn(e,t){return e?Ce(Object.create(null),e,t):t}function Vr(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Hs(e),Hs(t??{})):t}function Cc(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const s in t)n[s]=ze(e[s],t[s]);return n}function fl(){return{app:null,config:{isNativeTag:wi,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 _c=0;function xc(e,t){return function(s,o=null){Y(s)||(s=Ce({},s)),o!=null&&!ae(o)&&(o=null);const r=fl(),i=new WeakSet,l=[];let a=!1;const u=r.app={_uid:_c++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:eu,get config(){return r.config},set config(c){},use(c,...p){return i.has(c)||(c&&Y(c.install)?(i.add(c),c.install(u,...p)):Y(c)&&(i.add(c),c(u,...p))),u},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),u},component(c,p){return p?(r.components[c]=p,u):r.components[c]},directive(c,p){return p?(r.directives[c]=p,u):r.directives[c]},mount(c,p,m){if(!a){const w=u._ceVNode||W(s,o);return w.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),e(w,c,m),a=!0,u._container=c,c.__vue_app__=u,ro(w.component)}},onUnmount(c){l.push(c)},unmount(){a&&(Qe(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,p){return r.provides[c]=p,u},runWithContext(c){const p=mn;mn=u;try{return c()}finally{mn=p}}};return u}}let mn=null;function _h(e,t,n=oe){const s=is(),o=ke(t),r=Et(t),i=dl(e,o),l=Va((a,u)=>{let c,p=oe,m;return Ja(()=>{const w=e[o];He(c,w)&&(c=w,u())}),{get(){return a(),n.get?n.get(c):c},set(w){const C=n.set?n.set(w):w;if(!He(C,c)&&!(p!==oe&&He(w,p)))return;const y=s.vnode.props,S=!!(y&&(t in y||o in y||r in y)&&(`onUpdate:${t}`in y||`onUpdate:${o}`in y||`onUpdate:${r}`in y));S||(c=w,u()),s.emit(`update:${t}`,C),He(w,p)&&(He(w,C)&&!He(C,m)||S&&p!==oe&&!He(C,c))&&u(),p=w,m=C}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?i||oe:l,done:!1}:{done:!0}}}},l}const dl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${Et(t)}Modifiers`];function Sc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let o=n;const r=t.startsWith("update:"),i=r&&dl(s,t.slice(7));i&&(i.trim&&(o=n.map(c=>me(c)?c.trim():c)),i.number&&(o=o.map(qs)));let l,a=s[l=co(t)]||s[l=co(ke(t))];!a&&r&&(a=s[l=co(Et(t))]),a&&Qe(a,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(u,e,6,o)}}const Tc=new WeakMap;function pl(e,t,n=!1){const s=n?Tc:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!Y(e)){const a=u=>{const c=pl(u,t,!0);c&&(l=!0,Ce(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(ae(e)&&s.set(e,null),null):(G(r)?r.forEach(a=>i[a]=null):Ce(i,r),ae(e)&&s.set(e,i),i)}function so(e,t){return!e||!Gs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Et(t))||le(e,t))}function kr(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:p,data:m,setupState:w,ctx:C,inheritAttrs:y}=e,S=Es(e);let T,_;try{if(n.shapeFlag&4){const $=o||s,H=$;T=ht(u.call(H,$,c,p,w,m,C)),_=l}else{const $=t;T=ht($.length>1?$(p,{attrs:l,slots:i,emit:a}):$(p,null)),_=t.props?l:Lc(l)}}catch($){Lt.length=0,os($,e,1),T=W(Ve)}let F=T;if(_&&y!==!1){const $=Object.keys(_),{shapeFlag:H}=F;$.length&&H&7&&(r&&$.some(Zs)&&(_=Pc(_,r)),F=Bt(F,_,!1,!0))}if(n.dirs&&(F=Bt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition){const $=eo(F.type)&&$s(F)||F;sn($,n.transition)}return T=F,Es(S),T}const Lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Gs(n))&&((t||(t={}))[n]=e[n]);return t},Pc=(e,t)=>{const n={};for(const s in e)(!Zs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ac(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Br(s,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let p=0;p<c.length;p++){const m=c[p];if(hl(i,s,m)&&!so(u,m))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Br(s,i,u):!0:!!i;return!1}function Br(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(hl(t,e,r)&&!so(n,r))return!0}return!1}function hl(e,t,n){const s=e[n],o=t[n];return n==="style"&&ae(s)&&ae(o)?!kt(s,o):s!==o}function Mc({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const gl={},ml=()=>Object.create(gl),yl=e=>Object.getPrototypeOf(e)===gl;function Ec(e,t,n,s=!1){const o={},r=ml();e.propsDefaults=Object.create(null),vl(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:zi(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function $c(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=se(o),[a]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let p=0;p<c.length;p++){let m=c[p];if(so(e.emitsOptions,m))continue;const w=t[m];if(a)if(le(r,m))w!==r[m]&&(r[m]=w,u=!0);else{const C=ke(m);o[C]=zo(a,l,C,w,e,!1)}else w!==r[m]&&(r[m]=w,u=!0)}}}else{vl(e,t,o,r)&&(u=!0);let c;for(const p in l)(!t||!le(t,p)&&((c=Et(p))===p||!le(t,c)))&&(a?n&&(n[p]!==void 0||n[c]!==void 0)&&(o[p]=zo(a,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!le(t,p))&&(delete r[p],u=!0)}u&&xt(e.attrs,"set","")}function vl(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Bn(a))continue;const u=t[a];let c;o&&le(o,c=ke(a))?!r||!r.includes(c)?n[c]=u:(l||(l={}))[c]=u:so(e.emitsOptions,a)||(!(a in s)||u!==s[a])&&(s[a]=u,i=!0)}if(r){const a=se(n),u=l||oe;for(let c=0;c<r.length;c++){const p=r[c];n[p]=zo(o,a,p,u[p],e,!le(u,p))}}return i}function zo(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=le(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&Y(a)){const{propsDefaults:u}=o;if(n in u)s=u[n];else{const c=ls(o);s=u[n]=a.call(null,t),c()}}else s=a;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!l?s=!1:i[1]&&(s===""||s===Et(n))&&(s=!0))}return s}const Oc=new WeakMap;function wl(e,t,n=!1){const s=n?Oc:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let a=!1;if(!Y(e)){const c=p=>{a=!0;const[m,w]=wl(p,t,!0);Ce(i,m),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return ae(e)&&s.set(e,pn),pn;if(G(r))for(let c=0;c<r.length;c++){const p=ke(r[c]);zr(p)&&(i[p]=oe)}else if(r)for(const c in r){const p=ke(c);if(zr(p)){const m=r[c],w=i[p]=G(m)||Y(m)?{type:m}:Ce({},m),C=w.type;let y=!1,S=!0;if(G(C))for(let T=0;T<C.length;++T){const _=C[T],F=Y(_)&&_.name;if(F==="Boolean"){y=!0;break}else F==="String"&&(S=!1)}else y=Y(C)&&C.name==="Boolean";w[0]=y,w[1]=S,(y||le(w,"default"))&&l.push(p)}}const u=[i,l];return ae(e)&&s.set(e,u),u}function zr(e){return e[0]!=="$"&&!Bn(e)}const ur=e=>e==="_"||e==="_ctx"||e==="$stable",fr=e=>G(e)?e.map(ht):[ht(e)],Hc=(e,t,n)=>{if(t._n)return t;const s=xn((...o)=>fr(t(...o)),n);return s._c=!1,s},bl=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ur(o))continue;const r=e[o];if(Y(r))t[o]=Hc(o,r,s);else if(r!=null){const i=fr(r);t[o]=()=>i}}},Cl=(e,t)=>{const n=fr(t);e.slots.default=()=>n},_l=(e,t,n)=>{for(const s in t)(n||!ur(s))&&(e[s]=t[s])},Rc=(e,t,n)=>{const s=e.slots=ml();if(e.vnode.shapeFlag&32){const o=t._;o?(_l(s,t,n),n&&xi(s,"_",o,!0)):bl(t,s)}else t&&Cl(e,t)},Ic=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=oe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:_l(o,t,n):(r=!t.$stable,bl(t,o)),i=t}else t&&(Cl(e,t),i={default:1});if(r)for(const l in o)!ur(l)&&i[l]==null&&delete o[l]},Fe=Bc;function Dc(e){return Nc(e)}function Nc(e,t){const n=Ws();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:p,nextSibling:m,setScopeId:w=gt,insertStaticContent:C}=e,y=(f,h,b,M=null,A=null,L=null,I=void 0,R=null,O=!!h.dynamicChildren)=>{if(f===h)return;f&&!Yt(f,h)&&(M=cs(f),it(f,A,L,!0),f=null),h.patchFlag===-2&&(O=!1,h.dynamicChildren=null);const{type:P,ref:K,shapeFlag:V}=h;switch(P){case oo:S(f,h,b,M);break;case Ve:T(f,h,b,M);break;case vo:f==null&&_(h,b,M,I);break;case re:k(f,h,b,M,A,L,I,R,O);break;default:V&1?H(f,h,b,M,A,L,I,R,O):V&6?de(f,h,b,M,A,L,I,R,O):(V&64||V&128)&&P.process(f,h,b,M,A,L,I,R,O,Ln)}K!=null&&A?Un(K,f&&f.ref,L,h||f,!h):K==null&&f&&f.ref!=null&&Un(f.ref,null,L,f,!0)},S=(f,h,b,M)=>{if(f==null)s(h.el=l(h.children),b,M);else{const A=h.el=f.el;h.children!==f.children&&u(A,h.children)}},T=(f,h,b,M)=>{f==null?s(h.el=a(h.children||""),b,M):h.el=f.el},_=(f,h,b,M)=>{[f.el,f.anchor]=C(f.children,h,b,M,f.el,f.anchor)},F=({el:f,anchor:h},b,M)=>{let A;for(;f&&f!==h;)A=m(f),s(f,b,M),f=A;s(h,b,M)},$=({el:f,anchor:h})=>{let b;for(;f&&f!==h;)b=m(f),o(f),f=b;o(h)},H=(f,h,b,M,A,L,I,R,O)=>{if(h.type==="svg"?I="svg":h.type==="math"&&(I="mathml"),f==null)D(h,b,M,A,L,I,R,O);else{const P=f.el&&f.el._isVueCE?f.el:null;try{P&&P._beginPatch(),U(f,h,A,L,I,R,O)}finally{P&&P._endPatch()}}},D=(f,h,b,M,A,L,I,R)=>{let O,P;const{props:K,shapeFlag:V,transition:Z,dirs:J}=f;if(O=f.el=i(f.type,L,K&&K.is,K),V&8?c(O,f.children):V&16&&Q(f.children,O,null,M,A,yo(f,L),I,R),J&&Gt(f,null,M,"created"),E(O,f,f.scopeId,I,M),K){for(const fe in K)fe!=="value"&&!Bn(fe)&&r(O,fe,null,K[fe],L,M);"value"in K&&r(O,"value",null,K.value,L),(P=K.onVnodeBeforeMount)&&ut(P,M,f)}J&&Gt(f,null,M,"beforeMount");const ne=Vc(A,Z);ne&&Z.beforeEnter(O),s(O,h,b),((P=K&&K.onVnodeMounted)||ne||J)&&Fe(()=>{try{P&&ut(P,M,f),ne&&Z.enter(O),J&&Gt(f,null,M,"mounted")}finally{}},A)},E=(f,h,b,M,A)=>{if(b&&w(f,b),M)for(let L=0;L<M.length;L++)w(f,M[L]);if(A){let L=A.subTree;if(h===L||Tl(L.type)&&(L.ssContent===h||L.ssFallback===h)){const I=A.vnode;E(f,I,I.scopeId,I.slotScopeIds,A.parent)}}},Q=(f,h,b,M,A,L,I,R,O=0)=>{for(let P=O;P<f.length;P++){const K=f[P]=R?_t(f[P]):ht(f[P]);y(null,K,h,b,M,A,L,I,R)}},U=(f,h,b,M,A,L,I)=>{const R=h.el=f.el;let{patchFlag:O,dynamicChildren:P,dirs:K}=h;O|=f.patchFlag&16;const V=f.props||oe,Z=h.props||oe;let J;if(b&&Zt(b,!1),(J=Z.onVnodeBeforeUpdate)&&ut(J,b,h,f),K&&Gt(h,f,b,"beforeUpdate"),b&&Zt(b,!0),P&&(!f.dynamicChildren||f.dynamicChildren.length!==P.length)&&(O=0,I=!1,P=null),(V.innerHTML&&Z.innerHTML==null||V.textContent&&Z.textContent==null)&&c(R,""),P?te(f.dynamicChildren,P,R,b,M,yo(h,A),L):I||pe(f,h,R,null,b,M,yo(h,A),L,!1),O>0){if(O&16)ie(R,V,Z,b,A);else if(O&2&&V.class!==Z.class&&r(R,"class",null,Z.class,A),O&4&&r(R,"style",V.style,Z.style,A),O&8){const ne=h.dynamicProps;for(let fe=0;fe<ne.length;fe++){const ce=ne[fe],xe=V[ce],$e=Z[ce];($e!==xe||ce==="value")&&r(R,ce,xe,$e,A,b)}}O&1&&f.children!==h.children&&c(R,h.children)}else!I&&P==null&&ie(R,V,Z,b,A);((J=Z.onVnodeUpdated)||K)&&Fe(()=>{J&&ut(J,b,h,f),K&&Gt(h,f,b,"updated")},M)},te=(f,h,b,M,A,L,I)=>{for(let R=0;R<h.length;R++){const O=f[R],P=h[R],K=O.el&&(O.type===re||!Yt(O,P)||O.shapeFlag&198)?p(O.el):b;y(O,P,K,null,M,A,L,I,!0)}},ie=(f,h,b,M,A)=>{if(h!==b){if(h!==oe)for(const L in h)!Bn(L)&&!(L in b)&&r(f,L,h[L],null,A,M);for(const L in b){if(Bn(L))continue;const I=b[L],R=h[L];I!==R&&L!=="value"&&r(f,L,R,I,A,M)}"value"in b&&r(f,"value",h.value,b.value,A)}},k=(f,h,b,M,A,L,I,R,O)=>{const P=h.el=f?f.el:l(""),K=h.anchor=f?f.anchor:l("");let{patchFlag:V,dynamicChildren:Z,slotScopeIds:J}=h;J&&(R=R?R.concat(J):J),f==null?(s(P,b,M),s(K,b,M),Q(h.children||[],b,K,A,L,I,R,O)):V>0&&V&64&&Z&&f.dynamicChildren&&f.dynamicChildren.length===Z.length?(te(f.dynamicChildren,Z,b,A,L,I,R),(h.key!=null||A&&h===A.subTree)&&dr(f,h,!0)):pe(f,h,b,K,A,L,I,R,O)},de=(f,h,b,M,A,L,I,R,O)=>{h.slotScopeIds=R,f==null?h.shapeFlag&512?A.ctx.activate(h,b,M,I,O):_e(h,b,M,A,L,I,O):yt(f,h,O)},_e=(f,h,b,M,A,L,I)=>{const R=f.component=jc(f,M,A);if(rs(f)&&(R.ctx.renderer=Ln),Kc(R,!1,I),R.asyncDep){if(A&&A.registerDep(R,Me,I),!f.el){const O=R.subTree=W(Ve);T(null,O,h,b),f.placeholder=O.el}}else Me(R,f,h,b,A,L,I)},yt=(f,h,b)=>{const M=h.component=f.component;if(Ac(f,h,b))if(M.asyncDep&&!M.asyncResolved){ye(M,h,b);return}else M.next=h,M.update();else h.el=f.el,M.vnode=h},Me=(f,h,b,M,A,L,I)=>{const R=()=>{if(f.isMounted){let{next:V,bu:Z,u:J,parent:ne,vnode:fe}=f;{const at=xl(f);if(at){V&&(V.el=fe.el,ye(f,V,I)),at.asyncDep.then(()=>{Fe(()=>{f.isUnmounted||P()},A)});return}}let ce=V,xe;Zt(f,!1),V?(V.el=fe.el,ye(f,V,I)):V=fe,Z&&_s(Z),(xe=V.props&&V.props.onVnodeBeforeUpdate)&&ut(xe,ne,V,fe),Zt(f,!0);const $e=kr(f),lt=f.subTree;f.subTree=$e,y(lt,$e,p(lt.el),cs(lt),f,A,L),V.el=$e.el,ce===null&&Mc(f,$e.el),J&&Fe(J,A),(xe=V.props&&V.props.onVnodeUpdated)&&Fe(()=>ut(xe,ne,V,fe),A)}else{let V;const{el:Z,props:J}=h,{bm:ne,m:fe,parent:ce,root:xe,type:$e}=f,lt=gn(h);Zt(f,!1),ne&&_s(ne),!lt&&(V=J&&J.onVnodeBeforeMount)&&ut(V,ce,h),Zt(f,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle($e,f.parent?f.parent.type:void 0);const at=f.subTree=kr(f);y(null,at,b,M,f,A,L),h.el=at.el}if(fe&&Fe(fe,A),!lt&&(V=J&&J.onVnodeMounted)){const at=h;Fe(()=>ut(V,ce,at),A)}(h.shapeFlag&256||ce&&gn(ce.vnode)&&ce.vnode.shapeFlag&256)&&f.a&&Fe(f.a,A),f.isMounted=!0,h=b=M=null}};f.scope.on();const O=f.effect=new Pi(R);f.scope.off();const P=f.update=O.run.bind(O),K=f.job=O.runIfDirty.bind(O);K.i=f,K.id=f.uid,O.scheduler=()=>ir(K),Zt(f,!0),P()},ye=(f,h,b)=>{h.component=f;const M=f.vnode.props;f.vnode=h,f.next=null,$c(f,h.props,M,b),Ic(f,h.children,b),Pt(),Mr(f),At()},pe=(f,h,b,M,A,L,I,R,O=!1)=>{const P=f&&f.children,K=f?f.shapeFlag:0,V=h.children,{patchFlag:Z,shapeFlag:J}=h;if(Z>0){if(Z&128){as(P,V,b,M,A,L,I,R,O);return}else if(Z&256){Ft(P,V,b,M,A,L,I,R,O);return}}J&8?(K&16&&Tn(P,A,L),V!==P&&c(b,V)):K&16?J&16?as(P,V,b,M,A,L,I,R,O):Tn(P,A,L,!0):(K&8&&c(b,""),J&16&&Q(V,b,M,A,L,I,R,O))},Ft=(f,h,b,M,A,L,I,R,O)=>{f=f||pn,h=h||pn;const P=f.length,K=h.length,V=Math.min(P,K);let Z;for(Z=0;Z<V;Z++){const J=h[Z]=O?_t(h[Z]):ht(h[Z]);y(f[Z],J,b,null,A,L,I,R,O)}P>K?Tn(f,A,L,!0,!1,V):Q(h,b,M,A,L,I,R,O,V)},as=(f,h,b,M,A,L,I,R,O)=>{let P=0;const K=h.length;let V=f.length-1,Z=K-1;for(;P<=V&&P<=Z;){const J=f[P],ne=h[P]=O?_t(h[P]):ht(h[P]);if(Yt(J,ne))y(J,ne,b,null,A,L,I,R,O);else break;P++}for(;P<=V&&P<=Z;){const J=f[V],ne=h[Z]=O?_t(h[Z]):ht(h[Z]);if(Yt(J,ne))y(J,ne,b,null,A,L,I,R,O);else break;V--,Z--}if(P>V){if(P<=Z){const J=Z+1,ne=J<K?h[J].el:M;for(;P<=Z;)y(null,h[P]=O?_t(h[P]):ht(h[P]),b,ne,A,L,I,R,O),P++}}else if(P>Z)for(;P<=V;)it(f[P],A,L,!0),P++;else{const J=P,ne=P,fe=new Map;for(P=ne;P<=Z;P++){const Ke=h[P]=O?_t(h[P]):ht(h[P]);Ke.key!=null&&fe.set(Ke.key,P)}let ce,xe=0;const $e=Z-ne+1;let lt=!1,at=0;const Pn=new Array($e);for(P=0;P<$e;P++)Pn[P]=0;for(P=J;P<=V;P++){const Ke=f[P];if(xe>=$e){it(Ke,A,L,!0);continue}let ct;if(Ke.key!=null)ct=fe.get(Ke.key);else for(ce=ne;ce<=Z;ce++)if(Pn[ce-ne]===0&&Yt(Ke,h[ce])){ct=ce;break}ct===void 0?it(Ke,A,L,!0):(Pn[ct-ne]=P+1,ct>=at?at=ct:lt=!0,y(Ke,h[ct],b,null,A,L,I,R,O),xe++)}const Cr=lt?kc(Pn):pn;for(ce=Cr.length-1,P=$e-1;P>=0;P--){const Ke=ne+P,ct=h[Ke],_r=h[Ke+1],xr=Ke+1<K?_r.el||Sl(_r):M;Pn[P]===0?y(null,ct,b,xr,A,L,I,R,O):lt&&(ce<0||P!==Cr[ce]?Ut(ct,b,xr,2):ce--)}}},Ut=(f,h,b,M,A=null)=>{const{el:L,type:I,transition:R,children:O,shapeFlag:P}=f;if(P&6){Ut(f.component.subTree,h,b,M);return}if(P&128){f.suspense.move(h,b,M);return}if(P&64){I.move(f,h,b,Ln);return}if(I===re){s(L,h,b);for(let V=0;V<O.length;V++)Ut(O[V],h,b,M);s(f.anchor,h,b);return}if(I===vo){F(f,h,b);return}if(M!==2&&P&1&&R)if(M===0)R.persisted&&!L[Ye]?s(L,h,b):(R.beforeEnter(L),s(L,h,b),Fe(()=>R.enter(L),A));else{const{leave:V,delayLeave:Z,afterLeave:J}=R,ne=()=>{f.ctx.isUnmounted?o(L):s(L,h,b)},fe=()=>{const ce=L._isLeaving||!!L[Ye];L._isLeaving&&L[Ye](!0),R.persisted&&!ce?ne():V(L,()=>{ne(),J&&J()})};Z?Z(L,ne,fe):fe()}else s(L,h,b)},it=(f,h,b,M=!1,A=!1)=>{const{type:L,props:I,ref:R,children:O,dynamicChildren:P,shapeFlag:K,patchFlag:V,dirs:Z,cacheIndex:J,memo:ne}=f;if(V===-2&&(A=!1),R!=null&&(Pt(),Un(R,null,b,f,!0),At()),J!=null&&(h.renderCache[J]=void 0),K&256){h.ctx.deactivate(f);return}const fe=K&1&&Z,ce=!gn(f);let xe;if(ce&&(xe=I&&I.onVnodeBeforeUnmount)&&ut(xe,h,f),K&6)ea(f.component,b,M);else{if(K&128){f.suspense.unmount(b,M);return}fe&&Gt(f,null,h,"beforeUnmount"),K&64?f.type.remove(f,h,b,Ln,M):P&&!P.hasOnce&&(L!==re||V>0&&V&64)?Tn(P,h,b,!1,!0):(L===re&&V&384||!A&&K&16)&&Tn(O,h,b),M&&wr(f)}const $e=ne!=null&&J==null;(ce&&(xe=I&&I.onVnodeUnmounted)||fe||$e)&&Fe(()=>{xe&&ut(xe,h,f),fe&&Gt(f,null,h,"unmounted"),$e&&(f.el=null)},b)},wr=f=>{const{type:h,el:b,anchor:M,transition:A}=f;if(h===re){Ql(b,M);return}if(h===vo){$(f);return}const L=()=>{o(b),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(f.shapeFlag&1&&A&&!A.persisted){const{leave:I,delayLeave:R}=A,O=()=>I(b,L);R?R(f.el,L,O):O()}else L()},Ql=(f,h)=>{let b;for(;f!==h;)b=m(f),o(f),f=b;o(h)},ea=(f,h,b)=>{const{bum:M,scope:A,job:L,subTree:I,um:R,m:O,a:P}=f;Fr(O),Fr(P),M&&_s(M),A.stop(),L&&(L.flags|=8,it(I,f,h,b)),R&&Fe(R,h),Fe(()=>{f.isUnmounted=!0},h)},Tn=(f,h,b,M=!1,A=!1,L=0)=>{for(let I=L;I<f.length;I++)it(f[I],h,b,M,A)},cs=f=>{if(f.shapeFlag&6)return cs(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=m(f.anchor||f.el),b=h&&h[Wi];return b?m(b):h};let ao=!1;const br=(f,h,b)=>{let M;f==null?h._vnode&&(it(h._vnode,null,null,!0),M=h._vnode.component):y(h._vnode||null,f,h,null,null,null,b),h._vnode=f,ao||(ao=!0,Mr(M),Zi(),ao=!1)},Ln={p:y,um:it,m:Ut,r:wr,mt:_e,mc:Q,pc:pe,pbc:te,n:cs,o:e};return{render:br,hydrate:void 0,createApp:xc(br)}}function yo({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 Zt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dr(e,t,n=!1){const s=e.children,o=t.children;if(G(s)&&G(o))for(let r=0;r<s.length;r++){const i=s[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=_t(o[r]),l.el=i.el),!n&&l.patchFlag!==-2&&dr(i,l)),l.type===oo&&(l.patchFlag===-1&&(l=o[r]=_t(l)),l.el=i.el),l.type===Ve&&!l.el&&(l.el=i.el)}}function kc(e){const t=e.slice(),n=[0];let s,o,r,i,l;const a=e.length;for(s=0;s<a;s++){const u=e[s];if(u!==0){if(o=n[n.length-1],e[o]<u){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<u?r=l+1:i=l;u<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function xl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xl(t)}function Fr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Sl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Sl(t.subTree):null}const Tl=e=>e.__isSuspense;function Bc(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Za(e)}const re=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),Ve=Symbol.for("v-cmt"),vo=Symbol.for("v-stc"),Lt=[];let qe=null;function N(e=!1){Lt.push(qe=e?null:[])}function pr(){Lt.pop(),qe=Lt[Lt.length-1]||null}let Qn=1;function Is(e,t=!1){Qn+=e,e<0&&qe&&t&&(qe.hasOnce=!0)}function Ll(e){return e.dynamicChildren=Qn>0?qe||pn:null,pr(),Qn>0&&qe&&qe.push(e),e}function j(e,t,n,s,o,r){return Ll(v(e,t,n,s,o,r,!0))}function Ee(e,t,n,s,o){return Ll(W(e,t,n,s,o,!0))}function vn(e){return e?e.__v_isVNode===!0:!1}function Yt(e,t){return e.type===t.type&&e.key===t.key}const Pl=({key:e})=>e??null,Ss=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||Be(e)||Y(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,s=0,o=null,r=e===re?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pl(t),ref:t&&Ss(t),scopeId:Ki,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ie};return l?(Ds(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=me(n)?8:16),Qn>0&&!i&&qe&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&qe.push(a),a}const W=zc;function zc(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===il)&&(e=Ve),vn(e)){const l=Bt(e,t,!0);return n&&Ds(l,n),Qn>0&&!r&&qe&&(l.shapeFlag&6?qe[qe.indexOf(e)]=l:qe.push(l)),l.patchFlag=-2,l}if(Xc(e)&&(e=e.__vccOpts),t){t=Fc(t);let{class:l,style:a}=t;l&&!me(l)&&(t.class=Pe(l)),ae(a)&&(rr(a)&&!G(a)&&(a=Ce({},a)),t.style=Js(a))}const i=me(e)?1:Tl(e)?128:eo(e)?64:ae(e)?4:Y(e)?2:0;return v(e,t,n,s,o,i,r,!0)}function Fc(e){return e?rr(e)||yl(e)?Ce({},e):e:null}function Bt(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,u=t?Uc(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Pl(u),ref:t&&t.ref?n&&r?G(r)?r.concat(Ss(t)):[r,Ss(t)]:Ss(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==re?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bt(e.ssContent),ssFallback:e.ssFallback&&Bt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&sn(c,a.clone(c)),c}function tt(e=" ",t=0){return W(oo,null,e,t)}function ve(e="",t=!1){return t?(N(),Ee(Ve,null,e)):W(Ve,null,e)}function ht(e){return e==null||typeof e=="boolean"?W(Ve):G(e)?W(re,null,e.slice()):vn(e)?_t(e):W(oo,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bt(e)}function Ds(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ds(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yl(t)?t._ctx=Ie:o===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Y(t)){if(s&65){Ds(e,{default:t});return}t={default:t,_ctx:Ie},n=32}else t=String(t),s&64?(n=16,t=[tt(t)]):n=8;e.children=t,e.shapeFlag|=n}function Uc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Pe([t.class,s.class]));else if(o==="style")t.style=Js([t.style,s.style]);else if(Gs(o)){const r=t[o],i=s[o];i&&r!==i&&!(G(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Zs(o)&&(t[o]=i)}else o!==""&&(t[o]=s[o])}return t}function ut(e,t,n,s=null){Qe(e,t,7,[n,s])}const Gc=fl();let Zc=0;function jc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Gc,r={uid:Zc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ha(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wl(s,o),emitsOptions:pl(s,o),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:s.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=Sc.bind(null,r),e.ce&&e.ce(r),r}let Re=null;const is=()=>Re||Ie;let Ns,es;{const e=Ws(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Ns=t("__VUE_INSTANCE_SETTERS__",n=>Re=n),es=t("__VUE_SSR_SETTERS__",n=>wn=n)}const ls=e=>{const t=Re;return Ns(e),e.scope.on(),()=>{e.scope.off(),Ns(t)}},Ur=()=>{Re&&Re.scope.off(),Ns(null)};function Al(e){return e.vnode.shapeFlag&4}let wn=!1;function Kc(e,t=!1,n=!1){t&&es(t);const{props:s,children:o}=e.vnode,r=Al(e);Ec(e,s,r,t),Rc(e,o,n||t);const i=r?qc(e,t):void 0;return t&&es(!1),i}function qc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mc);const{setup:s}=n;if(s){Pt();const o=e.setupContext=s.length>1?Jc(e):null,r=ls(e),i=ss(s,e,0,[e.props,o]),l=bi(i);if(At(),r(),(l||e.sp)&&!gn(e)&&cr(e),l){if(i.then(Ur,Ur),t)return i.then(a=>{es(!0);try{Gr(e,a,t)}finally{es(!1)}}).catch(a=>{os(a,e,0)});e.asyncDep=i}else Gr(e,i)}else Ml(e)}function Gr(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=Fi(t)),Ml(e)}function Ml(e,t,n){const s=e.type;e.render||(e.render=s.render||gt);{const o=ls(e);Pt();try{yc(e)}finally{At(),o()}}}const Wc={get(e,t){return Ne(e,"get",""),e[t]}};function Jc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wc),slots:e.slots,emit:e.emit,expose:t}}function ro(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fi(Ha(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Gn)return Gn[n](e)},has(t,n){return n in t||n in Gn}})):e.proxy}function Yc(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function Xc(e){return Y(e)&&"__vccOpts"in e}const X=(e,t)=>Ba(e,t,wn);function Qc(e,t,n){try{Is(-1);const s=arguments.length;return s===2?ae(t)&&!G(t)?vn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vn(n)&&(n=[n]),W(e,t,n))}finally{Is(1)}}const eu="3.5.42";/**
15
+ * @vue/runtime-dom v3.5.42
16
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
+ * @license MIT
18
+ **/let Fo;const Zr=typeof window<"u"&&window.trustedTypes;if(Zr)try{Fo=Zr.createPolicy("vue",{createHTML:e=>e})}catch{}const El=Fo?e=>Fo.createHTML(e):e=>e,tu="http://www.w3.org/2000/svg",nu="http://www.w3.org/1998/Math/MathML",Ct=typeof document<"u"?document:null,jr=Ct&&Ct.createElement("template"),su={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?Ct.createElementNS(tu,e):t==="mathml"?Ct.createElementNS(nu,e):n?Ct.createElement(e,{is:n}):Ct.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{jr.innerHTML=El(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=jr.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ht="transition",$n="animation",bn=Symbol("_vtc"),$l={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},Ol=Ce({},Xi,$l),ou=e=>(e.displayName="Transition",e.props=Ol,e),Hl=ou((e,{slots:t})=>Qc(nc,Rl(e),t)),jt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},Kr=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function Rl(e){const t={};for(const k in e)k in $l||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,C=ru(o),y=C&&C[0],S=C&&C[1],{onBeforeEnter:T,onEnter:_,onEnterCancelled:F,onLeave:$,onLeaveCancelled:H,onBeforeAppear:D=T,onAppear:E=_,onAppearCancelled:Q=F}=t,U=(k,de,_e,yt)=>{k._enterCancelled=yt,It(k,de?c:l),It(k,de?u:i),_e&&_e()},te=(k,de)=>{k._isLeaving=!1,It(k,p),It(k,w),It(k,m),de&&de()},ie=k=>(de,_e)=>{const yt=k?E:_,Me=()=>U(de,k,_e);jt(yt,[de,Me]),qr(()=>{It(de,k?a:r),ft(de,k?c:l),Kr(yt)||Wr(de,s,y,Me)})};return Ce(t,{onBeforeEnter(k){jt(T,[k]),ft(k,r),ft(k,i)},onBeforeAppear(k){jt(D,[k]),ft(k,a),ft(k,u)},onEnter:ie(!1),onAppear:ie(!0),onLeave(k,de){k._isLeaving=!0;const _e=()=>te(k,de);ft(k,p),k._enterCancelled?(ft(k,m),Uo(k)):(Uo(k),ft(k,m)),qr(()=>{k._isLeaving&&(It(k,p),ft(k,w),Kr($)||Wr(k,s,S,_e))}),jt($,[k,_e])},onEnterCancelled(k){U(k,!1,void 0,!0),jt(F,[k])},onAppearCancelled(k){U(k,!0,void 0,!0),jt(Q,[k])},onLeaveCancelled(k){te(k),jt(H,[k])}})}function ru(e){if(e==null)return null;if(ae(e))return[wo(e.enter),wo(e.leave)];{const t=wo(e);return[t,t]}}function wo(e){return ra(e)}function ft(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bn]||(e[bn]=new Set)).add(t)}function It(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[bn];n&&(n.delete(t),n.size||(e[bn]=void 0))}function qr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let iu=0;function Wr(e,t,n,s){const o=e._endId=++iu,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=Il(e,t);if(!i)return s();const u=i+"end";let c=0;const p=()=>{e.removeEventListener(u,m),r()},m=w=>{w.target===e&&++c>=a&&p()};setTimeout(()=>{c<a&&p()},l+1),e.addEventListener(u,m)}function Il(e,t){const n=window.getComputedStyle(e),s=C=>(n[C]||"").split(", "),o=s(`${Ht}Delay`),r=s(`${Ht}Duration`),i=Jr(o,r),l=s(`${$n}Delay`),a=s(`${$n}Duration`),u=Jr(l,a);let c=null,p=0,m=0;t===Ht?i>0&&(c=Ht,p=i,m=r.length):t===$n?u>0&&(c=$n,p=u,m=a.length):(p=Math.max(i,u),c=p>0?i>u?Ht:$n:null,m=c?c===Ht?r.length:a.length:0);const w=c===Ht&&/\b(?:transform|all)(?:,|$)/.test(s(`${Ht}Property`).toString());return{type:c,timeout:p,propCount:m,hasTransform:w}}function Jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Yr(n)+Yr(e[s])))}function Yr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Uo(e){return(e?e.ownerDocument:document).body.offsetHeight}function lu(e,t,n){const s=e[bn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Vs=Symbol("_vod"),hr=Symbol("_vsh"),xh={name:"show",beforeMount(e,{value:t},{transition:n}){e[Vs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):On(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),On(e,!0),s.enter(e)):s.leave(e,()=>{On(e,!1)}):On(e,t))},beforeUnmount(e,{value:t}){On(e,t)}};function On(e,t){e.style.display=t?e[Vs]:"none",e[hr]=!t}const au=Symbol(""),cu=/(?:^|;)\s*display\s*:/;function uu(e,t,n){const s=e.style,o=me(n);let r=!1;if(n&&!o){if(t)if(me(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&kn(s,l,"")}else for(const i in t)n[i]==null&&kn(s,i,"");for(const i in n){i==="display"&&(r=!0);const l=n[i];l!=null?du(e,i,!me(t)&&t?t[i]:void 0,l)||kn(s,i,l):kn(s,i,"")}}else if(o){if(t!==n){const i=s[au];i&&(n+=";"+i),s.cssText=n,r=cu.test(n)}}else t&&e.removeAttribute("style");Vs in e&&(e[Vs]=r?s.display:"",e[hr]&&(s.display="none"))}const gs=/\s*!important$/;function kn(e,t,n){if(G(n))n.forEach(s=>kn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))gs.test(n)?e.setProperty(t,n.replace(gs,""),"important"):e.setProperty(t,n);else{const s=fu(e,t);gs.test(n)?e.setProperty(Et(s),n.replace(gs,""),"important"):e[s]=n}}const Xr=["Webkit","Moz","ms"],bo={};function fu(e,t){const n=bo[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return bo[t]=s;s=Ks(s);for(let o=0;o<Xr.length;o++){const r=Xr[o]+s;if(r in e)return bo[t]=r}return t}function du(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&me(s)&&n===s}const Qr="http://www.w3.org/1999/xlink";function ei(e,t,n,s,o,r=fa(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Qr,t.slice(6,t.length)):e.setAttributeNS(Qr,t,n):n==null||r&&!Si(n)?e.removeAttribute(t):e.setAttribute(t,r?"":st(n)?String(n):n)}function ti(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?El(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Si(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function Xt(e,t,n,s){e.addEventListener(t,n,s)}function pu(e,t,n,s){e.removeEventListener(t,n,s)}const ni=Symbol("_vei");function hu(e,t,n,s,o=null){const r=e[ni]||(e[ni]={}),i=r[t];if(s&&i)i.value=s;else{const[l,a]=yu(t);if(s){const u=r[t]=bu(s,o);Xt(e,l,u,a)}else i&&(pu(e,l,i,a),r[t]=void 0)}}const gu=/(Once|Passive|Capture)$/,mu=/^on:?(?:Once|Passive|Capture)$/;function yu(e){let t,n;for(;(n=e.match(gu))&&!mu.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Et(e.slice(2)),t]}let Co=0;const vu=Promise.resolve(),wu=()=>Co||(vu.then(()=>Co=0),Co=Date.now());function bu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(G(o)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const i=o.slice(),l=[s];for(let a=0;a<i.length&&!s._stopped;a++){const u=i[a];u&&Qe(u,t,5,l)}}else Qe(o,t,5,[s])};return n.value=e,n.attached=wu(),n}const si=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cu=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?lu(e,s,i):t==="style"?uu(e,n,s):Gs(t)?Zs(t)||hu(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_u(e,t,s,i))?(ti(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ei(e,t,s,i,r,t!=="value")):e._isVueCE&&(xu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!me(s)))?ti(e,ke(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ei(e,t,s,i))};function _u(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&si(t)&&Y(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return si(t)&&me(n)?!1:t in e}function xu(e,t){const n=e._def.props;if(!n)return!1;const s=ke(t);return Array.isArray(n)?n.some(o=>ke(o)===s):Object.keys(n).some(o=>ke(o)===s)}const Dl=new WeakMap,Nl=new WeakMap,ks=Symbol("_moveCb"),oi=Symbol("_enterCb"),Su=e=>(delete e.props.mode,e),Tu=Su({name:"TransitionGroup",props:Ce({},Ol,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=is(),s=Yi();let o,r;return ol(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Eu(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(Pu),o.forEach(Au);const l=o.filter(Mu);Uo(n.vnode.el),l.forEach(a=>{const u=a.el,c=u.style;ft(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const p=u[ks]=m=>{m&&m.target!==u||(!m||m.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",p),u[ks]=null,It(u,i))};u.addEventListener("transitionend",p)}),o=[]}),()=>{const i=se(e),l=Rl(i);let a=i.tag||re;if(o=[],r)for(let u=0;u<r.length;u++){const c=r[u];c.el&&c.el instanceof Element&&!c.el[hr]&&(o.push(c),sn(c,Xn(c,l,s,n)),Dl.set(c,Vl(c.el)))}r=t.default?ar(t.default()):[];for(let u=0;u<r.length;u++){const c=r[u];c.key!=null&&sn(c,Xn(c,l,s,n))}return W(a,null,r)}}}),Lu=Tu;function Pu(e){const t=e.el;t[ks]&&t[ks](),t[oi]&&t[oi]()}function Au(e){Nl.set(e,Vl(e.el))}function Mu(e){const t=Dl.get(e),n=Nl.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el,i=r.style,l=r.getBoundingClientRect();let a=1,u=1;return r.offsetWidth&&(a=l.width/r.offsetWidth),r.offsetHeight&&(u=l.height/r.offsetHeight),(!Number.isFinite(a)||a===0)&&(a=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(a-1)<.01&&(a=1),Math.abs(u-1)<.01&&(u=1),i.transform=i.webkitTransform=`translate(${s/a}px,${o/u}px)`,i.transitionDuration="0s",e}}function Vl(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Eu(e,t,n){const s=e.cloneNode(),o=e[bn];o&&o.forEach(l=>{l.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Il(s);return r.removeChild(s),i}const Bs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>_s(t,n):t};function $u(e){e.target.composing=!0}function ri(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qt=Symbol("_assign"),ms=Symbol("_initialValue");function _o(e,t,n){return t&&(e=e.trim()),n&&(e=qs(e)),e}const Ou={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e.parentNode&&(e.type==="text"?e[ms]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[ms]=e.defaultValue.replace(/\r\n?/g,`
19
+ `))),e[Qt]=Bs(o);const r=s||o.props&&o.props.type==="number";Xt(e,t?"change":"input",i=>{i.target.composing||e[Qt](_o(e.value,n,r))}),(n||r)&&Xt(e,"change",()=>{e.value=_o(e.value,n,r)}),t||(Xt(e,"compositionstart",$u),Xt(e,"compositionend",ri),Xt(e,"change",ri))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const o=t??"",r=e[ms];delete e[ms],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[Qt](_o(e.value,n,s)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[Qt]=Bs(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?qs(e.value):e.value,a=t??"";if(l===a)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===a)||(e.value=a)}},Sh={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Xt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?qs(zs(a)):zs(a)),r=e.multiple,i=r?nn(e._modelValue)?new Set(o):o:o[0],l=e._pendingValue=[r,r?G(i)?o.slice():o:i];try{e[Qt](i)}finally{Ms(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[Qt]=Bs(s)},mounted(e,{value:t}){ii(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Qt]=Bs(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Hu(t,n[1],n[0]))&&ii(e,t)}};function Hu(e,t,n){if(!n||G(e))return kt(e,t);if(nn(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function ii(e,t){const n=e.multiple,s=G(t);if(!(n&&!s&&!nn(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=zs(i);if(n)if(s){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=pa(t,l)>-1}else i.selected=t.has(l);else if(kt(zs(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zs(e){return"_value"in e?e._value:e.value}const Ru=["ctrl","shift","alt","meta"],Iu={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)=>Ru.some(n=>e[`${n}Key`]&&!t.includes(n))},Ts=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((o,...r)=>{for(let i=0;i<t.length;i++){const l=Iu[t[i]];if(l&&l(o,t))return}return e(o,...r)}))},Du={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Th=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(o=>{if(!("key"in o))return;const r=Et(o.key);if(t.some(i=>i===r||Du[i]===r))return e(o)}))},Nu=Ce({patchProp:Cu},su);let li;function Vu(){return li||(li=Dc(Nu))}const ku=((...e)=>{const t=Vu().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=zu(s);if(!o)return;const r=t._component;!Y(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,Bu(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Bu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zu(e){return me(e)?document.querySelector(e):e}const Fu="modulepreload",Uu=function(e,t){return new URL(e,t).href},ai={},Hn=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){let i=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const l=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");o=i(n.map(c=>{if(c=Uu(c,s),c in ai)return;ai[c]=!0;const p=c.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(!!s)for(let y=l.length-1;y>=0;y--){const S=l[y];if(S.href===c&&(!p||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${m}`))return;const C=document.createElement("link");if(C.rel=p?"stylesheet":Fu,p||(C.as="script"),C.crossOrigin="",C.href=c,u&&C.setAttribute("nonce",u),document.head.appendChild(C),p)return new Promise((y,S)=>{C.addEventListener("load",y),C.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return o.then(i=>{for(const l of i||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};function et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype}function Gu(e,t){return Object.keys(e).length===t.length&&t.every(s=>Object.hasOwn(e,s))}function Go(e){if(typeof e!="string")return!1;const t=Date.parse(e);return Number.isFinite(t)&&new Date(t).toISOString()===e}const Zu=24*365;function ci(e){if(!et(e)||Object.keys(e).some(s=>s!=="activeId"&&s!=="profiles")||!Array.isArray(e.profiles)||e.activeId!==null&&typeof e.activeId!="string")throw new Error("Profiles index has an invalid shape");const t=e.profiles.map(gr),n=new Set(t.map(s=>s.id));if(n.size!==t.length)throw new Error("Profiles index has duplicate profile ids");if(e.activeId!==null&&!n.has(e.activeId))throw new Error("Selected profile is missing");return{activeId:e.activeId,profiles:t}}function gr(e){if(!et(e)||typeof e.id!="string"||!/^[0-9]+$/.test(e.id)||typeof e.revision!="number"||!Number.isSafeInteger(e.revision)||e.revision<1||typeof e.name!="string"||!e.name.trim()||e.name.length>120||typeof e.url!="string"||typeof e.intervalHours!="number"||!Number.isSafeInteger(e.intervalHours)||e.intervalHours<0||e.intervalHours>Zu||!Go(e.createdAt)||!Go(e.updatedAt))throw new Error("Profiles index has invalid profile metadata");if(e.url){const n=new URL(e.url);if(n.protocol!=="https:"&&n.protocol!=="http:")throw new Error("Invalid profile URL")}let t;if(e.subInfo!==void 0){const n=e.subInfo;if(!et(n)||typeof n.upload!="number"||!Number.isFinite(n.upload)||n.upload<0||typeof n.download!="number"||!Number.isFinite(n.download)||n.download<0||typeof n.total!="number"||!Number.isFinite(n.total)||n.total<0||n.expire!==void 0&&(typeof n.expire!="number"||!Number.isFinite(n.expire)||n.expire<0))throw new Error("Invalid subscription quota");t={upload:n.upload,download:n.download,total:n.total,...typeof n.expire=="number"?{expire:n.expire}:{}}}if(e.homePage!==void 0){if(typeof e.homePage!="string")throw new Error("Invalid profile home page");const n=new URL(e.homePage);if(n.protocol!=="https:"&&n.protocol!=="http:")throw new Error("Invalid profile home page")}if(e.lastError!==void 0&&(typeof e.lastError!="string"||e.lastError.length>300))throw new Error("Invalid profile update error");return{id:e.id,revision:e.revision,name:e.name,url:e.url,intervalHours:e.intervalHours,createdAt:e.createdAt,updatedAt:e.updatedAt,...t?{subInfo:t}:{},...typeof e.homePage=="string"?{homePage:e.homePage}:{},...typeof e.lastError=="string"?{lastError:e.lastError}:{}}}const ju="sash",Ku="sash-token.";function ge(e,t){if(!et(e))throw new TypeError(`${t} must be a plain object`);return e}function Se(e,t,n=!1){if(typeof e!="string"||!n&&!e.trim())throw new TypeError(`${t} must be a string${n?"":" with content"}`);return e}function Le(e,t){if(typeof e!="boolean")throw new TypeError(`${t} must be a boolean`);return e}function Ze(e,t,n=0,s=Number.MAX_SAFE_INTEGER){if(typeof e!="number"||!Number.isSafeInteger(e)||e<n||e>s)throw new TypeError(`${t} must be an integer from ${n} to ${s}`);return e}function Fs(e,t){if(!Go(e))throw new TypeError(`${t} must be a canonical timestamp`);return e}function Cn(e,t){return Object.hasOwn(e,t)?Se(e[t],t,!0):void 0}function qu(e){if(!(!et(e)||!et(e.error)||typeof e.error.code!="string"||typeof e.error.message!="string"))return{code:e.error.code,message:e.error.message}}function Wu(e){const t=ge(e,"health");return{token:Se(t.token,"token"),pid:Ze(t.pid,"pid",1),startedAt:Fs(t.startedAt,"startedAt")}}function Ju(e){const t=ge(e,"bootstrap");return{token:Se(t.token,"token"),expiresAt:Fs(t.expiresAt,"expiresAt")}}function kl(e){const t=ge(e,"session");return{token:Se(t.token,"token"),daemonToken:Se(t.daemonToken,"daemonToken")}}function ui(e){const t=ge(e,"Core start"),n=Cn(t,"version");return{pid:Ze(t.pid,"pid",1),...n!==void 0?{version:n}:{}}}function Yu(e){return{version:Se(ge(e,"Core update").version,"version")}}function mr(e){const t=ge(e,"settings");return{mixedPort:Ze(t.mixedPort,"mixedPort",1,65535),controller:Se(t.controller,"controller"),allowLan:Le(t.allowLan,"allowLan"),daemonPort:Ze(t.daemonPort,"daemonPort",1,65535),systemProxy:Le(t.systemProxy,"systemProxy")}}function Xu(e){const t=ge(e,"settings write");return{restartRequired:Le(t.restartRequired,"restartRequired"),settings:mr(t.settings)}}function Bl(e){const t=ge(e,"system proxy"),n=Cn(t,"server"),s=Cn(t,"details");return{supported:Le(t.supported,"supported"),enabled:Le(t.enabled,"enabled"),...n!==void 0?{server:n}:{},...s!==void 0?{details:s}:{}}}function Qu(e){const t=ge(e,"system proxy status"),n=Cn(t,"queryError");return{...Bl(t),desired:Le(t.desired,"desired"),applied:Le(t.applied,"applied"),appliedKnown:Le(t.appliedKnown,"appliedKnown"),stateKnown:Le(t.stateKnown,"stateKnown"),...n!==void 0?{queryError:n}:{}}}function fi(e){const t=ge(e,"profile action");return{profile:gr(t.profile),activated:Le(t.activated,"activated")}}function xo(e){return{profile:gr(ge(e,"profile").profile)}}function ef(e){const t=ge(e,"profile content");return{name:Se(t.name,"name"),content:Se(t.content,"content",!0),revision:Ze(t.revision,"revision",1)}}function tf(e){const t=ge(e,"profile selection");return{activeId:t.activeId===null?null:Se(t.activeId,"activeId"),proxyCount:Ze(t.proxyCount,"proxyCount")}}function nf(e){return{wasActive:Le(ge(e,"profile removal").wasActive,"wasActive")}}function sf(e){const t=ge(e,"profiles update");if(!Array.isArray(t.failed))throw new TypeError("failed must be an array");return{updated:Ze(t.updated,"updated"),failed:t.failed.map(n=>{const s=ge(n,"profile error");return{id:Se(s.id,"id"),name:Se(s.name,"name"),error:Se(s.error,"error")}})}}function of(e){const t=ge(e,"status"),n=ge(t.daemon,"daemon"),s=ge(t.revisions,"revisions"),o=ge(t.core,"core"),r=ge(t.systemProxy,"systemProxy"),i=ge(t.configuration,"configuration"),l=t.activeProfile===null?null:ge(t.activeProfile,"activeProfile"),a=i.appliedProfile===null?null:ge(i.appliedProfile,"appliedProfile"),u=i.appliedSettings===null?null:ge(i.appliedSettings,"appliedSettings"),c=Cn(o,"version"),p=Cn(r,"queryError");return{daemon:{pid:Ze(n.pid,"daemon.pid",1),bootId:Se(n.bootId,"daemon.bootId"),startedAt:Fs(n.startedAt,"daemon.startedAt"),port:Ze(n.port,"daemon.port",1,65535)},revisions:{profiles:Ze(s.profiles,"revisions.profiles"),runtime:Ze(s.runtime,"revisions.runtime")},core:{running:Le(o.running,"core.running"),...Object.hasOwn(o,"pid")?{pid:Ze(o.pid,"core.pid",1)}:{},...Object.hasOwn(o,"startedAt")?{startedAt:Fs(o.startedAt,"core.startedAt")}:{},...Object.hasOwn(o,"healthy")?{healthy:Le(o.healthy,"core.healthy")}:{},...c!==void 0?{version:c}:{}},configuration:{pending:Le(i.pending,"configuration.pending"),appliedProfile:a?{id:Se(a.id,"appliedProfile.id"),revision:Ze(a.revision,"appliedProfile.revision",1),name:Se(a.name,"appliedProfile.name"),url:Se(a.url,"appliedProfile.url",!0)}:null,appliedSettings:u?{mixedPort:Ze(u.mixedPort,"appliedSettings.mixedPort",1,65535),allowLan:Le(u.allowLan,"appliedSettings.allowLan")}:null},systemProxy:{desired:Le(r.desired,"systemProxy.desired"),applied:Le(r.applied,"systemProxy.applied"),appliedKnown:Le(r.appliedKnown,"systemProxy.appliedKnown"),stateKnown:Le(r.stateKnown,"systemProxy.stateKnown"),...Object.hasOwn(r,"actual")?{actual:Bl(r.actual)}:{},...p!==void 0?{queryError:p}:{}},settings:mr(t.settings),activeProfile:l?{id:Se(l.id,"activeProfile.id"),name:Se(l.name,"activeProfile.name"),url:Se(l.url,"activeProfile.url",!0)}:null}}const rf=["on","off","stale","disabled","unknown","unsupported"];function di(e){if(!et(e)||!Gu(e,["state","canEnable","reason"])||!rf.some(t=>t===e.state)||typeof e.canEnable!="boolean"||e.reason!==null&&typeof e.reason!="string")throw new Error("Invalid autostart status");return{state:e.state,canEnable:e.canEnable,reason:e.reason}}const lf=async(e,t)=>{const n=await fetch(e,{method:t.method,headers:t.headers,...t.body!==void 0?{body:t.body}:{},...t.timeoutMs!==void 0?{signal:AbortSignal.timeout(t.timeoutMs)}:{}});return{status:n.status,text:()=>n.text()}},So=20*6e4;class zl extends Error{constructor(t,n,s){super(s),this.status=t,this.code=n,this.name="SashApiError"}}class af{baseUrl;token;tokenHeader;fetchFn;timeoutMs;onUnauthorized;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),t.token&&(this.token=t.token),this.tokenHeader=t.tokenHeader??"authorization",this.fetchFn=t.fetchFn??lf,this.timeoutMs=t.timeoutMs??5e3,t.onUnauthorized&&(this.onUnauthorized=t.onUnauthorized)}async request(t,n={}){const s={},o=n.authenticate===!1?"":this.token?.()??"";o&&(this.tokenHeader==="x-sash-token"?s["X-Sash-Token"]=o:s.Authorization=`Bearer ${o}`);let r;n.body!==void 0&&(s["Content-Type"]="application/json",r=JSON.stringify(n.body));const i=await this.fetchFn(`${this.baseUrl}${t}`,{method:n.method??"GET",headers:s,...r!==void 0?{body:r}:{},timeoutMs:n.timeoutMs??this.timeoutMs,...n.attempts!==void 0?{attempts:n.attempts}:{}}),l=await i.text();let a;try{a=l?JSON.parse(l):void 0}catch(u){if(i.status>=200&&i.status<300)throw new Error(`Invalid JSON response from ${t}: ${u.message}`);a=l}if(i.status===401&&o&&this.onUnauthorized?.(o),i.status<200||i.status>=300){const u=qu(a),c=u?.message??(typeof a=="string"?a.slice(0,300).trim():"");throw new zl(i.status,u?.code,c||`HTTP ${i.status}`)}return a}async health(){return Wu(await this.request("/sash/daemon/health",{timeoutMs:2e3,attempts:1,authenticate:!1}))}async createWebBootstrap(){return Ju(await this.request("/sash/web/bootstrap",{method:"POST",timeoutMs:5e3}))}async redeemWebBootstrap(t){return kl(await this.request("/sash/web/session",{method:"POST",body:{token:t},timeoutMs:5e3,attempts:1,authenticate:!1}))}async status(t=!1){return of(await this.request(t?"/sash/daemon/status?fresh=1":"/sash/daemon/status",{timeoutMs:8e3}))}async shutdown(){await this.request("/sash/daemon/shutdown",{method:"POST",timeoutMs:45e3})}async autostartStatus(){return di(await this.request("/sash/autostart",{timeoutMs:15e3,attempts:1}))}async setAutostart(t){return di(await this.request("/sash/autostart",{method:"PUT",body:{enabled:t},timeoutMs:6e4,attempts:1}))}async startCore(){return ui(await this.request("/sash/core/start",{method:"POST",timeoutMs:So}))}async stopCore(){await this.request("/sash/core/stop",{method:"POST",timeoutMs:3e4})}async restartCore(){return ui(await this.request("/sash/core/restart",{method:"POST",timeoutMs:So}))}async updateCore(t){return Yu(await this.request("/sash/core/update",{method:"POST",body:t?{version:t}:{},timeoutMs:So}))}async setMode(t){await this.request("/sash/core/mode",{method:"PUT",body:{mode:t}})}async proxyStatus(t=!1){return Qu(await this.request(t?"/sash/proxy?fresh=1":"/sash/proxy"))}async getSettings(){return mr(await this.request("/sash/settings"))}async patchSettings(t){return Xu(await this.request("/sash/settings",{method:"PATCH",body:t,timeoutMs:45e3}))}async listProfiles(){return ci(await this.request("/sash/profiles"))}async reorderProfiles(t){return ci(await this.request("/sash/profiles/order",{method:"PUT",body:{ids:t}}))}async addProfile(t,n={}){return fi(await this.request("/sash/profiles",{method:"POST",body:{url:t,...n},timeoutMs:6e4}))}async importProfile(t,n){return fi(await this.request("/sash/profiles/import",{method:"POST",body:{name:t,content:n},timeoutMs:3e4}))}async activateProfile(t){return tf(await this.request("/sash/profiles/active",{method:"PUT",body:{id:t},timeoutMs:3e4}))}async updateProfile(t){return xo(await this.request(`/sash/profiles/${t}/update`,{method:"POST",timeoutMs:6e4}))}async updateAllProfiles(){return sf(await this.request("/sash/profiles/update-all",{method:"POST",timeoutMs:12e4}))}async getProfileContent(t){return ef(await this.request(`/sash/profiles/${t}/content`))}async writeProfileContent(t,n,s){return xo(await this.request(`/sash/profiles/${t}/content`,{method:"PUT",body:{content:n,revision:s},timeoutMs:3e4}))}async renameProfile(t,n){return xo(await this.request(`/sash/profiles/${t}`,{method:"PATCH",body:{name:n}}))}async removeProfile(t){return nf(await this.request(`/sash/profiles/${t}`,{method:"DELETE",timeoutMs:3e4}))}}class cf{values=new Map;current(t){return this.values.get(t)??0}begin(t){const n=(this.values.get(t)??0)+1;return this.values.set(t,n),n}invalidate(t){this.begin(t)}isCurrent(t,n){return this.current(t)===n}}function uf(e,t){e.mode="rule",e.proxies={},e.proxyGroups=[],e.connections=[],e.connectionsUploadTotal=0,e.connectionsDownloadTotal=0,e.rules=[],e.traffic={up:0,down:0,historyUp:Array(t).fill(0),historyDown:Array(t).fill(0)},e.manualProxyDelays={},e.activeGroup="",e.runtimeGeneration+=1}function mt(e){return!!(e?.core.running&&e.core.healthy)}function rt(e){return e?.core.running?`${e.daemon.bootId}|${e.revisions.runtime}`:null}function ff(e,t,n,s){return e?!t||s===null?null:n?"coreDegraded":"coreUnavailable":"offline"}function Lh(e,t){return!Object.is(e,t)}function Ph(e,t,n,s){return!s&&Object.is(e,t)?n:e}function Fl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function df(e){const t=Fl(e);if(!t)return null;const{up:n,down:s}=t;return typeof n!="number"||!Number.isFinite(n)||n<0||typeof s!="number"||!Number.isFinite(s)||s<0?null:{up:n,down:s}}const pf=new Set(["info","warning","error","debug"]);function hf(e){const t=Fl(e);return!t||typeof t.type!="string"||typeof t.payload!="string"||!pf.has(t.type)?null:{type:t.type,payload:t.payload}}function yr(e){return!!(e?.systemProxy.desired||e?.systemProxy.appliedKnown&&e.systemProxy.applied||e?.systemProxy.stateKnown&&e.systemProxy.actual?.enabled)}function Ul(e,t){return t?mt(e)&&e?.systemProxy.actual?.supported!==!1:yr(e)}function gf(e,t,n){const s=n[e];return s!==void 0?s:t[e]?.history?.at(-1)?.delay}const mf={app:{coreRunning:"Core running",coreStopped:"Core stopped",navigation:"Primary navigation"},nav:{overview:"Overview",profiles:"Profiles",logs:"Logs",connections:"Connections",rules:"Rules",settings:"Settings"},page:{overview:{title:"Overview",desc:"Live traffic, outbound mode and core status"},logs:{title:"Logs"},connections:{title:"Connections"},rules:{title:"Rules",desc:"Routing rules currently in effect"},settings:{title:"Settings",desc:"Interface, network listeners and core control"}},common:{on:"On",off:"Off",save:"Save",cancel:"Cancel",confirm:"Confirm",close:"Close",clear:"Clear",loading:"Loading…",reset:"Reset",timeout:"Timeout",untested:"Untested",running:"Running",stopped:"Stopped",live:"LIVE",nodesCount:"{n} nodes",rulesCount:"{n} rules",previous:"Previous",next:"Next",pageSummary:"Page {page} of {total}",toggle:"Toggle setting"},format:{justNow:"just now",minutesAgo:"{n} min ago",hoursAgo:"{n} h ago",daysAgo:"{n} d ago",monthsAgo:"{n} mo ago",yearsAgo:"{n} y ago",durationDayHour:"{d}d {h}h",durationHourMin:"{h}h {m}m",durationMin:"{m}m",durationSec:"{s}s"},theme:{system:"System",light:"Light",dark:"Dark"},overview:{trafficTitle:"Live Traffic",trafficChartLabel:"Live traffic chart",download:"Download",upload:"Upload",totalDown:"Total Down",totalUp:"Total Up",modeTitle:"Outbound Mode",modeDesc:"How traffic is matched to outbounds",modeRule:"Rule",modeRuleDesc:"Route via rules",modeGlobal:"Global",modeGlobalDesc:"All via selected node",modeDirect:"Direct",modeDirectDesc:"Bypass all proxies",sysProxyTitle:"System Proxy",subTitle:"Profile",subSet:"Configure",coreTitle:"Core Info",uptime:"Uptime",mixedPort:"Mixed Proxy Port",controller:"Controller",daemonPort:"Daemon Port",lan:"LAN Access",switchesTitle:"Network switches"},proxies:{testAll:"Test latency",testNode:"Test latency for {name}",manual:"Manual Selection",auto:"Automatic",currentTag:"current",filter:"Filter nodes…",hideTimeout:"Show/hide timed-out nodes",toggleGroup:"Expand/collapse group",directHint:"Direct mode: all traffic bypasses proxy nodes.",noGroups:"No proxy groups",noGroupsHint:"Groups and nodes appear here after a subscription is imported"},connections:{active:"Active",totalShort:"Total: ↑{up} ↓{down}",searchPlaceholder:"Filter by host, IP, process…",closeAll:"Close all",pause:"Pause",resume:"Resume",sortTime:"Sort by start time",sortUpload:"Sort by upload",sortDownload:"Sort by download",sortHost:"Sort by destination",colAction:"Action",empty:"No active connections match",closeTitle:"Close connection",closeAllConfirm:"This will force-close all {n} active connections. Continue?"},rules:{searchPlaceholder:"Filter by type, payload, target…",colIndex:"#",colType:"Type",colPayload:"Payload",colTarget:"Target",empty:"No rules match"},logs:{searchPlaceholder:"Search logs…",levelLabel:"Log level",levelAll:"All",pause:"Pause scroll",resume:"Resume scroll",listening:"Listening for core log stream…",empty:"No logs at this level",modeLabel:"Outbound mode: {mode}"},profiles:{downloadPlaceholder:"Download from a URL",download:"Download",downloading:"Downloading…",updateAll:"Update All",import:"Import",paste:"Paste from clipboard",update:"Update",edit:"Edit",rename:"Rename",renameTitle:"Rename profile",nameLabel:"Name",delete:"Delete",clickToUse:"Select this profile, then apply configuration",reorderHint:"Hold a card to drag, or focus it and press Alt + ↑ / ↓ to reorder",reorderDropHint:"Release to save the order, or press Esc to cancel",orderSaved:"Profile order saved",localFile:"local file",neverUpdated:"never updated",usageLabel:"Subscription traffic usage",statGroups:"Proxy Groups",emptyTitle:"No profiles yet",emptyHint:"Download a subscription from a URL, or import a local YAML file",deleteConfirmTitle:"Delete profile",deleteConfirmMsg:'Delete "{name}"? This cannot be undone.'},editor:{title:"Edit Profile",saving:"Saving…",remoteWarning:"Subscription profile: the next update overwrites manual edits",discardConfirm:"Discard unsaved changes?"},autostart:{title:"Start at Login",description:"Start Sash in the background when you sign in, using the current configuration.",on:"Enabled",off:"Disabled",stale:"Startup paths have changed. Enable again to repair them.",disabled:"Disabled by the operating system. Enable again to restore startup.",unknown:"Could not read the startup state.",unsupported:"Automatic startup is not supported on this system.",unavailable:"Connect to Sash to manage automatic startup.",refresh:"Refresh status",remove:"Remove startup entry"},settings:{appearanceTitle:"Appearance",appearanceDesc:"Follow the system or choose a console theme",themeTitle:"Theme",langTitle:"Language",langDesc:"Display language of the console",networkTitle:"Network & Listeners",mixedPortTitle:"Mixed Proxy Port",mixedPortDesc:"Local HTTP / SOCKS5 inbound port; apply configuration after saving",allowLanTitle:"Allow LAN Connections",allowLanDesc:"Accept proxy requests from other devices on the LAN",coreTitle:"Core Control",restartTitle:"Apply Saved Configuration",restartDesc:"Apply the selected profile and network settings; a running Core restarts and active connections drop",applyBtn:"Apply configuration",startBtn:"Start Core",stopBtn:"Stop Core",pendingApply:"Saved configuration has not been applied.",restartConfirmTitle:"Apply configuration",restartConfirmMsg:"Active connections will be interrupted. Continue?",aboutTitle:"Runtime Info",coreVersion:"Core Version"},toast:{modeOk:"Outbound mode switched to {mode}",sysProxyOn:"System proxy enabled",sysProxyOff:"System proxy disabled",nodeOk:"Switched to node {name}",testDone:"Latency test finished",profileAdded:'Downloaded "{name}"',profileActivated:'Selected "{name}"; apply configuration to use it',profileUpdated:'"{name}" updated',profileSaved:'"{name}" saved',profileDeleted:'Deleted "{name}"',profileImported:'Imported "{name}"',profilesUpdateAllOk:"Updated {n} profiles",profilesUpdateAllPartial:"{n} updated, {f} failed",pasteFailed:"Cannot read the clipboard",portSaved:"Port saved; apply configuration to use it",settingSaved:"Setting saved",settingSavedUnverified:"Setting saved; runtime refresh is temporarily unavailable",coreRestarted:"Configuration applied",coreStopped:"Core stopped; previous system proxy state restored",connClosed:"Connection closed",connAllClosed:"All connections closed",langSwitched:"Language switched",failed:"Action failed: {msg}"},status:{offline:"Sash daemon unreachable, retrying automatically…",unauthorized:"This browser session is not authorized. Run 'sash web' to connect.",connectTitle:"Connect to Sash",connectDescription:"Run this command in the terminal where you use Sash. It opens and authorizes the dashboard in your browser.",coreDegraded:"Core data refresh failed; showing the last valid snapshot while retrying…",coreUnavailable:"Core is running, but runtime data is temporarily unavailable; retrying…"}},yf={app:{coreRunning:"核心运行中",coreStopped:"核心已停止",navigation:"主导航"},nav:{overview:"概览",profiles:"配置",logs:"日志",connections:"连接",rules:"规则",settings:"设置"},page:{overview:{title:"概览",desc:"实时流量、出站模式与核心状态"},logs:{title:"日志"},connections:{title:"连接"},rules:{title:"规则",desc:"核心当前使用的分流规则"},settings:{title:"设置",desc:"界面、网络监听与核心控制"}},common:{on:"开",off:"关",save:"保存",cancel:"取消",confirm:"确认",close:"关闭",clear:"清空",loading:"加载中…",reset:"重置",timeout:"超时",untested:"未测",running:"运行中",stopped:"已停止",live:"实时",nodesCount:"{n} 个节点",rulesCount:"{n} 条规则",previous:"上一页",next:"下一页",pageSummary:"第 {page} 页,共 {total} 页",toggle:"切换开关"},format:{justNow:"刚刚",minutesAgo:"{n} 分钟前",hoursAgo:"{n} 小时前",daysAgo:"{n} 天前",monthsAgo:"{n} 个月前",yearsAgo:"{n} 年前",durationDayHour:"{d} 天 {h} 小时",durationHourMin:"{h} 小时 {m} 分",durationMin:"{m} 分钟",durationSec:"{s} 秒"},theme:{system:"跟随系统",light:"浅色",dark:"深色"},overview:{trafficTitle:"实时流量",trafficChartLabel:"实时流量图",download:"下行",upload:"上行",totalDown:"累计下行",totalUp:"累计上行",modeTitle:"出站模式",modeDesc:"决定流量如何匹配出站",modeRule:"规则",modeRuleDesc:"按分流规则转发",modeGlobal:"全局",modeGlobalDesc:"全部走选中节点",modeDirect:"直连",modeDirectDesc:"全部不经过代理",sysProxyTitle:"系统代理",subTitle:"配置",subSet:"前往配置",coreTitle:"核心信息",uptime:"运行时长",mixedPort:"混合代理端口",controller:"控制接口",daemonPort:"守护进程端口",lan:"局域网访问",switchesTitle:"网络开关"},proxies:{testAll:"测试延迟",testNode:"测试 {name} 的延迟",manual:"手动选择",auto:"自动选择",currentTag:"当前",filter:"过滤节点…",hideTimeout:"显示/隐藏超时节点",toggleGroup:"展开/折叠策略组",directHint:"当前为直连模式,所有流量不经过代理节点。",noGroups:"暂无策略组",noGroupsHint:"导入订阅后,策略组和节点会显示在这里"},connections:{active:"活跃连接",totalShort:"总计: ↑{up} ↓{down}",searchPlaceholder:"按域名、IP、进程过滤…",closeAll:"关闭全部",pause:"暂停",resume:"继续",sortTime:"按时间排序",sortUpload:"按上行流量排序",sortDownload:"按下行流量排序",sortHost:"按目标地址排序",colAction:"操作",empty:"没有匹配的活跃连接",closeTitle:"关闭连接",closeAllConfirm:"将强制关闭全部 {n} 条活跃连接,确定继续?"},rules:{searchPlaceholder:"按类型、内容、目标过滤…",colIndex:"#",colType:"类型",colPayload:"匹配内容",colTarget:"目标策略",empty:"没有匹配的规则"},logs:{searchPlaceholder:"搜索日志…",levelLabel:"日志级别",levelAll:"全部",pause:"暂停滚动",resume:"恢复滚动",listening:"正在监听核心日志流…",empty:"当前级别暂无日志",modeLabel:"出站模式:{mode}"},profiles:{downloadPlaceholder:"输入订阅链接,从 URL 下载",download:"下载",downloading:"下载中…",updateAll:"全部更新",import:"导入",paste:"从剪贴板粘贴",update:"更新",edit:"编辑",rename:"改名",renameTitle:"重命名配置",nameLabel:"名称",delete:"删除",clickToUse:"点击选择,应用配置后生效",reorderHint:"长按卡片拖动排序,也可聚焦后按 Alt + ↑ / ↓ 调整",reorderDropHint:"松开保存顺序,按 Esc 取消",orderSaved:"配置顺序已保存",localFile:"本地文件",neverUpdated:"从未更新",usageLabel:"订阅流量用量",statGroups:"策略组",emptyTitle:"暂无配置",emptyHint:"从 URL 下载订阅,或导入本地 YAML 文件",deleteConfirmTitle:"删除配置",deleteConfirmMsg:"删除「{name}」?此操作不可恢复。"},editor:{title:"编辑配置",saving:"保存中…",remoteWarning:"订阅配置:下次更新会覆盖手动修改",discardConfirm:"有未保存的修改,确定放弃?"},autostart:{title:"开机自启",description:"登录系统后在后台启动 Sash,沿用当前配置。",on:"已启用",off:"已关闭",stale:"启动路径已变化,重新启用即可修复。",disabled:"已被操作系统禁用,重新启用即可恢复自启。",unknown:"无法读取自启状态。",unsupported:"当前系统不支持自动启动。",unavailable:"连接 Sash 后可管理开机自启。",refresh:"刷新状态",remove:"移除启动项"},settings:{appearanceTitle:"外观",appearanceDesc:"跟随系统或选择控制台主题",themeTitle:"主题",langTitle:"界面语言",langDesc:"切换控制台显示语言",networkTitle:"网络与监听",mixedPortTitle:"混合代理端口",mixedPortDesc:"本地 HTTP / SOCKS5 混合入站端口,保存后点击应用配置生效",allowLanTitle:"允许局域网连接",allowLanDesc:"接受来自局域网其他设备的代理请求",coreTitle:"核心控制",restartTitle:"应用保存的配置",restartDesc:"应用当前选择及网络设置,核心运行中时会重启并中断活动连接",applyBtn:"应用配置",startBtn:"启动核心",stopBtn:"停止核心",pendingApply:"已保存的配置尚未应用。",restartConfirmTitle:"应用配置",restartConfirmMsg:"重启期间活动连接会中断,确定继续?",aboutTitle:"运行信息",coreVersion:"核心版本"},toast:{modeOk:"出站模式已切换为 {mode}",sysProxyOn:"系统代理已开启",sysProxyOff:"系统代理已关闭",nodeOk:"已切换到节点 {name}",testDone:"延迟测试完成",profileAdded:"已下载「{name}」",profileActivated:"已选择「{name}」,应用配置后生效",profileUpdated:"「{name}」已更新",profileSaved:"「{name}」已保存",profileDeleted:"已删除「{name}」",profileImported:"已导入「{name}」",profilesUpdateAllOk:"已更新 {n} 个配置",profilesUpdateAllPartial:"{n} 个已更新,{f} 个失败",pasteFailed:"无法读取剪贴板",portSaved:"端口已保存,应用配置后生效",settingSaved:"设置已保存",settingSavedUnverified:"设置已保存,暂时无法刷新运行状态",coreRestarted:"配置已应用",coreStopped:"核心已停止,原系统代理状态已恢复",connClosed:"连接已关闭",connAllClosed:"已关闭全部连接",langSwitched:"界面语言已切换",failed:"操作失败: {msg}"},status:{offline:"无法连接 Sash 守护进程,正在自动重试…",unauthorized:"此浏览器会话未授权,请运行 sash web 完成连接。",connectTitle:"连接到 Sash",connectDescription:"在使用 Sash 的终端中运行以下命令,浏览器将自动打开并连接面板。",coreDegraded:"核心数据刷新失败,暂时显示最后一次有效快照并自动重试…",coreUnavailable:"核心正在运行,但运行数据暂时不可用,正在自动重试…"}},Gl="sash.locale",Zl=typeof window<"u"&&typeof document<"u";function vf(){try{const e=localStorage.getItem(Gl);if(e==="en"||e==="zh")return e}catch{}return"zh"}const io=Ae(vf()),wf={zh:yf,en:mf};function Ah(e){io.value=e;try{localStorage.setItem(Gl,e)}catch{}Zl&&(document.documentElement.lang=e==="zh"?"zh-CN":"en")}Zl&&(document.documentElement.lang=io.value==="zh"?"zh-CN":"en");function x(e,t){let n=wf[io.value];for(const o of e.split(".")){if(n===null||typeof n!="object"){n=void 0;break}n=n[o]}let s=typeof n=="string"?n:e;if(t)for(const[o,r]of Object.entries(t))s=s.replaceAll(`{${o}}`,String(r));return s}function Zo(e){if(!e||e<=0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB"],s=Math.min(Math.floor(Math.log(e)/Math.log(t)),n.length-1),o=e/t**s;return`${o>=100?Math.round(o):o.toFixed(1)} ${n[s]}`}function pi(e){return`${Zo(e)}/s`}function bf(e,t){if(!e)return"-";const n=new Date(e).getTime();if(Number.isNaN(n))return"-";let s=Math.max(0,Math.floor((Date.now()-n)/1e3));const o=Math.floor(s/86400);s%=86400;const r=Math.floor(s/3600),i=Math.floor(s%3600/60);return o>0?x("format.durationDayHour",{d:o,h:r}):r>0?x("format.durationHourMin",{h:r,m:i}):i>0?x("format.durationMin",{m:i}):x("format.durationSec",{s:Math.max(s%60,0)})}function Cf(e=new Date){const t=n=>String(n).padStart(2,"0");return`${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`}function Mh(e,t){const n=new Date(e).getTime();if(!Number.isFinite(n)||n<=0)return"-";const s=Math.floor(Math.max(0,Date.now()-n)/6e4);if(s<1)return x("format.justNow");if(s<60)return x("format.minutesAgo",{n:s});const o=Math.floor(s/60);if(o<24)return x("format.hoursAgo",{n:o});const r=Math.floor(o/24);if(r<30)return x("format.daysAgo",{n:r});const i=Math.floor(r/30);if(i<12)return x("format.monthsAgo",{n:i});const l=Math.floor(i/12);return x("format.yearsAgo",{n:l})}function Eh(e){const t=new Date(e*1e3),n=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`}function _f(e){return e<=0?"bad":e<300?"good":e<800?"mid":"bad"}const jo="sash.control-token";let fn=null,ys=null,ln=0,Rn=null,an=!1;const qt=Ae(!1);function xf(){try{const e=window.sessionStorage.getItem(jo);return e?kl(JSON.parse(e)):null}catch{return null}}function In(e){fn=e,qt.value=e!==null;try{e?window.sessionStorage.setItem(jo,JSON.stringify(e)):window.sessionStorage.removeItem(jo)}catch{}}function Sf(){if(typeof window>"u"||!window.location)return null;const e=new URLSearchParams(window.location.hash.slice(1));if(!e.has("boot"))return null;const t=e.get("boot")??"";return window.history.replaceState(null,"",`${window.location.pathname}${window.location.search}#/`),/^[a-f0-9]{64}$/.test(t)?t:null}const Ge={initialized:()=>an&&!(typeof window<"u"&&/(?:^#|&)boot=/.test(window.location.hash)),markDisconnected(){an=!1},matches(e){return fn?.daemonToken===e?!0:(fn&&(ln+=1,In(null),an=!1),!1)},token:()=>fn?.token??"",generation:()=>ln,startedAt:()=>ys,clear(){an=!1,ln+=1,Rn=null,ys=null,In(null)},reject(e){e&&e===fn?.token&&(ln+=1,In(null))},async initialize(e,t){const n=++ln,s=()=>t()&&n===ln,o=t()?Sf():null;o&&(Rn=e.redeemWebBootstrap(o));const r=Rn;try{let i=fn??xf();r&&(i=await r.catch(()=>null));const l=await e.health();return s()&&(an=!0,In(i?.daemonToken===l.token?i:null),ys=l.startedAt),l}catch(i){throw s()&&(an=!1,In(null),ys=null),i}finally{s()&&Rn===r&&(Rn=null)}}},we=new af({baseUrl:"",token:Ge.token,tokenHeader:"x-sash-token",onUnauthorized:Ge.reject});async function wt(e,t={}){const n=Ge.token();if(!n)throw new zl(401,"unauthorized","Run 'sash web' to connect.");const s={};n&&(s["X-Sash-Token"]=n);let o;t.body!==void 0&&(s["Content-Type"]="application/json",o=JSON.stringify(t.body));const r=await fetch(e,{method:t.method??"GET",headers:s,body:o,signal:AbortSignal.timeout(1e4)}),i=await r.text();if(r.status===401&&Ge.reject(n),!r.ok){let l=i.slice(0,300).trim();if(i)try{const a=JSON.parse(i);a.error!==void 0&&(l=String(a.error))}catch{}throw new Error(l||`HTTP ${r.status}`)}if(t.response!=="void"){if(!i)throw new Error(`Empty JSON response from ${e}`);try{return JSON.parse(i)}catch(l){throw new Error(`Invalid JSON response from ${e}: ${l.message}`)}}}function hi(e,t,n){const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${e}`;let r=null,i=null,l=!1;const a=()=>{n?.(),!(l||!Ge.token()||i!==null)&&(i=window.setTimeout(()=>{i=null,u()},3e3))},u=()=>{const c=Ge.token();if(!(l||!c))try{const p=c?[ju,`${Ku}${c}`]:void 0;r=new WebSocket(o,p),r.onmessage=m=>{let w;try{w=JSON.parse(m.data)}catch{return}t(w)},r.onclose=()=>{r=null,a()},r.onerror=()=>r?.close()}catch{a()}};return u(),()=>{l=!0,i!==null&&clearTimeout(i),r?.close()}}const ee={initialize:(e=()=>!0)=>Ge.initialize(we,e),clearSession:Ge.clear,hasSession:()=>Ge.token()!=="",isInitialized:Ge.initialized,markDisconnected:Ge.markDisconnected,sessionMatches:Ge.matches,getSessionDaemonStartedAt:Ge.startedAt,getHealth:()=>we.health(),getStatus:()=>we.status(),getAutostart:()=>we.autostartStatus(),setAutostart:e=>we.setAutostart(e),getSessionGeneration:Ge.generation,enableSystemProxy:()=>we.patchSettings({systemProxy:!0}),disableSystemProxy:()=>we.patchSettings({systemProxy:!1}),getProfiles:()=>we.listProfiles(),reorderProfiles:e=>we.reorderProfiles(e),addProfile:e=>we.addProfile(e),importProfile:(e,t)=>we.importProfile(e,t),updateProfile:e=>we.updateProfile(e),updateAllProfiles:()=>we.updateAllProfiles(),setActiveProfile:e=>we.activateProfile(e),deleteProfile:e=>we.removeProfile(e),renameProfile:(e,t)=>we.renameProfile(e,t),getProfileContent:e=>we.getProfileContent(e),setProfileContent:(e,t,n)=>we.writeProfileContent(e,t,n),patchSettings:e=>we.patchSettings(e),restartCore:()=>we.restartCore(),stopCore:()=>we.stopCore(),getConfigs:()=>wt("/core/api/configs"),setMode:e=>we.setMode(e),getProxies:()=>wt("/core/api/proxies"),selectProxy:(e,t)=>wt(`/core/api/proxies/${encodeURIComponent(e)}`,{method:"PUT",body:{name:t},response:"void"}),testProxyDelay:(e,t="https://www.gstatic.com/generate_204",n=5e3)=>wt(`/core/api/proxies/${encodeURIComponent(e)}/delay?url=${encodeURIComponent(t)}&timeout=${n}`),testGroupDelay:(e,t="https://www.gstatic.com/generate_204",n=5e3)=>wt(`/core/api/group/${encodeURIComponent(e)}/delay?url=${encodeURIComponent(t)}&timeout=${n}`),getConnections:()=>wt("/core/api/connections"),closeConnection:e=>wt(`/core/api/connections/${encodeURIComponent(e)}`,{method:"DELETE",response:"void"}),closeAllConnections:()=>wt("/core/api/connections",{method:"DELETE",response:"void"}),getRules:()=>wt("/core/api/rules"),connectTraffic:(e,t)=>hi("/core/api/traffic",n=>{const s=df(n);s&&e(s)},t),connectLogs:e=>hi("/core/api/logs",t=>{const n=hf(t);n&&e({...n,time:Cf()})})},Tf=["overview","profiles","logs","connections","rules","settings"];function jl(){if(typeof window>"u")return"overview";const e=window.location.hash.replace(/^#\/?/,"").split("?")[0]??"";return Tf.includes(e)?e:"overview"}const De=Ae(jl());typeof window<"u"&&window.addEventListener("hashchange",()=>{De.value=jl()});function Ls(e){De.value!==e&&(window.location.hash=`/${e}`)}const ts=60,ue=new cf,Us={observedOwner:null,lastBootId:null},d=zi({status:null,daemonOnline:!0,lastProfileRevision:null,resourceLoaded:{},resourceErrors:{},mode:"rule",traffic:{up:0,down:0,historyUp:Array(ts).fill(0),historyDown:Array(ts).fill(0)},proxies:{},proxyGroups:[],manualProxyDelays:{},runtimeGeneration:0,connections:[],connectionsUploadTotal:0,connectionsDownloadTotal:0,rules:[],logs:[],profiles:[],activeProfileId:null,activeGroup:"",operations:{profileMutation:!1,mode:!1,systemProxy:!1,networkSetting:!1,proxySelections:{}},toasts:[]});function vr(){switch(De.value){case"overview":return["configs","proxies","connections"];case"connections":return["connections"];case"rules":return["rules"];default:return[]}}const Kl=X(()=>vr().map(e=>d.resourceErrors[e]).filter(Boolean).join("; ")||null),vs=X(()=>yr(d.status)),Zn=X(()=>d.status?.core.running??!1),_n=X(()=>mt(d.status)),Lf=X(()=>d.daemonOnline&&Zn.value&&!_n.value?"coreDegraded":ff(d.daemonOnline,_n.value,vr().some(e=>d.resourceLoaded[e]),Kl.value)),Pf=X(()=>!d.operations.systemProxy&&Ul(d.status,!yr(d.status)));function Tt(e){return e instanceof Error?e.message:String(e)}function ql(e){d.profiles=e.profiles,d.activeProfileId=e.activeId}function Ko(e){const t=rt(e);t!==Us.observedOwner&&(Us.observedOwner=t,d.resourceLoaded={},d.resourceErrors={},uf(d,ts))}function Af(e){Us.lastBootId!==e.daemon.bootId&&(ue.invalidate("profiles"),d.lastProfileRevision=null),Us.lastBootId=e.daemon.bootId,d.status=e,d.daemonOnline=!0}function Mf(e){if(e===null)return[];if(!Array.isArray(e)||e.some(t=>!et(t)||!et(t.metadata)||typeof t.id!="string"))throw new Error("Invalid Core connections");return e}function Ef(e){if(!et(e)||Object.values(e).some(s=>!et(s)||typeof s.name!="string"||typeof s.type!="string"))throw new Error("Invalid Core proxies");const t=new Set(["Selector","URLTest","Fallback","LoadBalance","Relay"]),n=Object.keys(e).filter(s=>t.has(e[s]?.type??"")||Array.isArray(e[s]?.all));d.proxies=e,d.proxyGroups=n,(!d.activeGroup||!n.includes(d.activeGroup))&&(d.activeGroup=n.find(s=>["PROXY","GLOBAL"].includes(s.toUpperCase()))??n[0]??"")}function gi(){d.traffic={up:0,down:0,historyUp:Array(ts).fill(0),historyDown:Array(ts).fill(0)}}async function lo(e,t,n){if(!mt(d.status))return;const s=rt(d.status),o=ue.begin(e),r=()=>ue.isCurrent(e,o)&&rt(d.status)===s;try{const i=await t();if(!r())return;n(i),d.resourceLoaded={...d.resourceLoaded,[e]:!0};const l={...d.resourceErrors};delete l[e],d.resourceErrors=l}catch(i){throw r()&&(d.resourceErrors={...d.resourceErrors,[e]:Tt(i).slice(0,300)}),i}}async function $f(){if(!d.operations.mode)return lo("configs",ee.getConfigs,e=>{if(!["rule","global","direct"].includes(e.mode))throw new Error("Invalid Core mode");d.mode=e.mode})}function Of(){return lo("connections",ee.getConnections,e=>{const t=Mf(e.connections);if(![e.uploadTotal,e.downloadTotal].every(n=>Number.isFinite(n)&&n>=0))throw new Error("Invalid Core traffic totals");d.connections=t,d.connectionsUploadTotal=e.uploadTotal,d.connectionsDownloadTotal=e.downloadTotal})}async function Hf(){if(!Object.keys(d.operations.proxySelections).length)return lo("proxies",ee.getProxies,e=>Ef(e.proxies))}function Rf(){return lo("rules",ee.getRules,e=>{if(!Array.isArray(e.rules)||e.rules.some(t=>!et(t)||typeof t.type!="string"||typeof t.proxy!="string"||typeof t.payload!="string"))throw new Error("Invalid Core rules");d.rules=e.rules})}async function qo(e=0,t=!1){const n={configs:$f,proxies:Hf,rules:Rf,connections:Of},s=vr().filter(o=>t||!d.resourceLoaded[o]?!0:o==="rules"?!1:o==="connections"?De.value==="connections"||e%5===0:e%3===0);await Promise.allSettled(s.map(o=>n[o]()))}async function $h(e){if(!mt(d.status))throw new Error("Core is not healthy");const t=rt(d.status);ue.invalidate("connections"),await ee.closeConnection(e),ue.invalidate("connections"),rt(d.status)===t&&(d.connections=d.connections.filter(n=>n.id!==e))}async function Oh(){if(!mt(d.status))throw new Error("Core is not healthy");const e=rt(d.status);ue.invalidate("connections"),await ee.closeAllConnections(),ue.invalidate("connections"),rt(d.status)===e&&(d.connections=[])}async function If(e){if(d.operations.mode||e===d.mode)return;if(!mt(d.status))throw new Error("Core is not healthy");const t=rt(d.status);d.operations={...d.operations,mode:!0},ue.invalidate("configs");try{await ee.setMode(e),rt(d.status)===t&&(d.mode=e)}finally{ue.invalidate("configs"),d.operations={...d.operations,mode:!1}}}async function Df(e,t){if(d.operations.proxySelections[e])return;if(!mt(d.status))throw new Error("Core is not healthy");const n=rt(d.status);d.operations={...d.operations,proxySelections:{...d.operations.proxySelections,[e]:!0}},ue.invalidate("proxies");try{await ee.selectProxy(e,t);const s=d.proxies[e];s&&rt(d.status)===n&&(d.proxies={...d.proxies,[e]:{...s,now:t}})}finally{ue.invalidate("proxies");const s={...d.operations.proxySelections};delete s[e],d.operations={...d.operations,proxySelections:s}}}function mi(e,t,n){n===d.runtimeGeneration&&d.proxies[e]&&(d.manualProxyDelays={...d.manualProxyDelays,[e]:t})}function Nf(e,t){if(t!==d.runtimeGeneration)return;const n={...d.manualProxyDelays};for(const[s,o]of Object.entries(e))d.proxies[s]&&(n[s]=o);d.manualProxyDelays=n}function yi(e){return gf(e,d.proxies,d.manualProxyDelays)}function Vf(){ue.invalidate("runtime"),ue.invalidate("profiles"),Ko(null),d.daemonOnline=!1,d.status=null,ee.markDisconnected()}async function zt(e=ue.begin("runtime")){const t=await ee.getStatus();if(!ue.isCurrent("runtime",e))return"superseded";if(Af(t),!ee.sessionMatches(t.daemon.bootId))return Ko(null),"unauthorized";if(Ko(t),d.lastProfileRevision!==t.revisions.profiles){const n=ue.begin("profiles");try{const s=await ee.getProfiles();ue.isCurrent("runtime",e)&&ue.isCurrent("profiles",n)&&d.status?.daemon.bootId===t.daemon.bootId&&(ql(s),d.lastProfileRevision=t.revisions.profiles)}catch{}}return ue.isCurrent("runtime",e)?mt(t)?"status":t.core.running?"degraded":"stopped":"superseded"}async function To(){await zt()==="status"&&await qo(0,!0)}function kf(e=2e3){const t=Math.max(e,15e3);let n=!1,s=!1,o=!1,r=null,i=0,l=0;const a=()=>{r!==null&&window.clearTimeout(r),r=null},u=C=>{a(),r=window.setTimeout(()=>{r=null,c()},C)},c=async()=>{if(n||s)return;s=!0;const C=ue.begin("runtime");l=C;const y=()=>!n&&ue.isCurrent("runtime",C);try{if(ee.isInitialized()||await ee.initialize(y),!y())return;const S=await zt(C);if(!y())return;i+=1,S==="status"&&!document.hidden&&await qo(i)}catch{y()&&Vf()}finally{s=!1,n||(o&&!document.hidden?(o=!1,u(0)):u(document.hidden||!ee.hasSession()?t:e))}},p=()=>{a(),document.hidden?(o=!1,s||u(t)):s?o=!0:c()};document.addEventListener("visibilitychange",p);const m=()=>{ee.isInitialized()||(s?o=!0:c())};window.addEventListener("hashchange",m);const w=Vt(De,()=>{!n&&!document.hidden&&ee.hasSession()&&mt(d.status)&&qo(0,!0)});return c(),()=>{n=!0,s&&ue.isCurrent("runtime",l)&&ue.invalidate("runtime"),a(),w(),document.removeEventListener("visibilitychange",p),window.removeEventListener("hashchange",m)}}async function Bf(e){if(d.operations.systemProxy)return!1;if(!Ul(d.status,e))throw new Error(e?"Core is not healthy":"System proxy is already off");d.operations={...d.operations,systemProxy:!0};const t=d.status?.daemon.bootId;ue.invalidate("runtime");try{const n=await(e?ee.enableSystemProxy():ee.disableSystemProxy());return d.status?.daemon.bootId===t&&d.status&&(d.status={...d.status,settings:n.settings,systemProxy:{...d.status.systemProxy,desired:n.settings.systemProxy}}),await zt().then(s=>s!=="superseded"&&s!=="unauthorized",()=>!1)}catch(n){throw await zt().catch(()=>{}),n}finally{d.operations={...d.operations,systemProxy:!1}}}async function zf(e){if(d.operations.networkSetting)return!1;d.operations={...d.operations,networkSetting:!0};const t=d.status?.daemon.bootId;ue.invalidate("runtime");try{const n=await ee.patchSettings(e);return d.status?.daemon.bootId===t&&d.status&&(d.status={...d.status,settings:n.settings}),await zt().then(s=>s!=="superseded"&&s!=="unauthorized",()=>!1)}catch(n){throw await zt().catch(()=>{}),n}finally{d.operations={...d.operations,networkSetting:!1}}}async function Hh(){const e=ue.begin("profiles"),t=d.status?.daemon.bootId,n=d.status?.revisions.profiles,s=await ee.getProfiles();ue.isCurrent("profiles",e)&&d.status?.daemon.bootId===t&&(ql(s),d.lastProfileRevision=n??null)}async function Ot(e){if(d.operations.profileMutation)throw new Error("A profile operation is already running");d.operations={...d.operations,profileMutation:!0},ue.invalidate("profiles");try{const t=await e();return await zt().catch(()=>{}),t}catch(t){throw await zt().catch(()=>{}),t}finally{d.operations={...d.operations,profileMutation:!1}}}function Rh(e,t){return Ot(()=>ee.renameProfile(e,t))}function Ih(e){return Ot(()=>ee.addProfile(e))}function Dh(e){return Ot(()=>ee.reorderProfiles(e))}function Nh(e,t){return Ot(()=>ee.importProfile(e,t))}function Ff(e){return Ot(()=>ee.updateProfile(e))}function Vh(e,t,n){return Ot(()=>ee.setProfileContent(e,t,n))}function kh(){return Ot(()=>ee.updateAllProfiles())}function Bh(e){return Ot(()=>ee.setActiveProfile(e))}function zh(e){return Ot(()=>ee.deleteProfile(e))}const Uf=100;let Gf=0,jn=[],Kn=null;function Zf(e,t=d.runtimeGeneration){t!==d.runtimeGeneration||!mt(d.status)||(d.traffic={up:e.up,down:e.down,historyUp:[...d.traffic.historyUp.slice(-59),e.up],historyDown:[...d.traffic.historyDown.slice(-59),e.down]})}function jf(e,t=d.runtimeGeneration){t===d.runtimeGeneration&&(jn.push({...e,id:++Gf}),Kn===null&&(Kn=setTimeout(Kf,Uf)))}function Kf(){Kn!==null&&(clearTimeout(Kn),Kn=null),jn.length!==0&&(d.logs=d.logs.concat(jn).slice(-600),jn=[])}function Fh(){jn=[],d.logs=[]}let qf=0;function Lo(e,t){const n=++qf;d.toasts=[...d.toasts,{id:n,kind:e,text:t}],window.setTimeout(()=>Wl(n),4200)}function Wl(e){d.toasts=d.toasts.filter(t=>t.id!==e)}const Oe={success:e=>Lo("success",e),error:e=>Lo("error",e),info:e=>Lo("info",e)},Wf=Array.prototype.slice;function z(e,t=null,n=null){return(arguments.length>3||vn(n))&&(n=Wf.call(arguments,2)),W(e,t,n)}const Jf=q({name:"RiArrowLeftRightLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M16.0503 12.0498L21 16.9996L16.0503 21.9493L14.636 20.5351L17.172 17.9988L4 17.9996V15.9996L17.172 15.9988L14.636 13.464L16.0503 12.0498ZM7.94975 2.0498L9.36396 3.46402L6.828 5.9988L20 5.99955V7.99955L6.828 7.9988L9.36396 10.5351L7.94975 11.9493L3 6.99955L7.94975 2.0498Z"}))}}),Yf=q({name:"RiCheckboxCircleLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z"}))}}),Xf=q({name:"RiClipboardLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M7 4V2H17V4H20.0066C20.5552 4 21 4.44495 21 4.9934V21.0066C21 21.5552 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5551 3 21.0066V4.9934C3 4.44476 3.44495 4 3.9934 4H7ZM7 6H5V20H19V6H17V8H7V6ZM9 4V6H15V4H9Z"}))}}),Qf=q({name:"RiCloseLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"}))}}),ed=q({name:"RiCodeSSlashLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"}))}}),td=q({name:"RiComputerLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z"}))}}),nd=q({name:"RiDashboardLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M14 21C13.4477 21 13 20.5523 13 20V12C13 11.4477 13.4477 11 14 11H20C20.5523 11 21 11.4477 21 12V20C21 20.5523 20.5523 21 20 21H14ZM4 13C3.44772 13 3 12.5523 3 12V4C3 3.44772 3.44772 3 4 3H10C10.5523 3 11 3.44772 11 4V12C11 12.5523 10.5523 13 10 13H4ZM9 11V5H5V11H9ZM4 21C3.44772 21 3 20.5523 3 20V16C3 15.4477 3.44772 15 4 15H10C10.5523 15 11 15.4477 11 16V20C11 20.5523 10.5523 21 10 21H4ZM5 19H9V17H5V19ZM15 19H19V13H15V19ZM13 4C13 3.44772 13.4477 3 14 3H20C20.5523 3 21 3.44772 21 4V8C21 8.55228 20.5523 9 20 9H14C13.4477 9 13 8.55228 13 8V4ZM15 5V7H19V5H15Z"}))}}),sd=q({name:"RiDeleteBin6Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"}))}}),od=q({name:"RiDownload2Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M13 10H18L12 16L6 10H11V3H13V10ZM4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19Z"}))}}),rd=q({name:"RiEditLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M6.41421 15.89L16.5563 5.74785L15.1421 4.33363L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6473L14.435 2.21231C14.8256 1.82179 15.4587 1.82179 15.8492 2.21231L18.6777 5.04074C19.0682 5.43126 19.0682 6.06443 18.6777 6.45495L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z"}))}}),id=q({name:"RiErrorWarningLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"}))}}),ld=q({name:"RiEyeLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"}))}}),ad=q({name:"RiEyeOffLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"}))}}),cd=q({name:"RiFilter3Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z"}))}}),ud=q({name:"RiFlashlightLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M13 9H21L11 24V15H4L13 0V9ZM11 11V7.22063L7.53238 13H13V17.3944L17.263 11H11Z"}))}}),fd=q({name:"RiGlobalLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z"}))}}),dd=q({name:"RiInformationLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"}))}}),pd=q({name:"RiLoader2Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12 2C12.5523 2 13 2.44772 13 3V6C13 6.55228 12.5523 7 12 7C11.4477 7 11 6.55228 11 6V3C11 2.44772 11.4477 2 12 2ZM12 17C12.5523 17 13 17.4477 13 18V21C13 21.5523 12.5523 22 12 22C11.4477 22 11 21.5523 11 21V18C11 17.4477 11.4477 17 12 17ZM22 12C22 12.5523 21.5523 13 21 13H18C17.4477 13 17 12.5523 17 12C17 11.4477 17.4477 11 18 11H21C21.5523 11 22 11.4477 22 12ZM7 12C7 12.5523 6.55228 13 6 13H3C2.44772 13 2 12.5523 2 12C2 11.4477 2.44772 11 3 11H6C6.55228 11 7 11.4477 7 12ZM19.0711 19.0711C18.6805 19.4616 18.0474 19.4616 17.6569 19.0711L15.5355 16.9497C15.145 16.5592 15.145 15.9261 15.5355 15.5355C15.9261 15.145 16.5592 15.145 16.9497 15.5355L19.0711 17.6569C19.4616 18.0474 19.4616 18.6805 19.0711 19.0711ZM8.46447 8.46447C8.07394 8.85499 7.44078 8.85499 7.05025 8.46447L4.92893 6.34315C4.53841 5.95262 4.53841 5.31946 4.92893 4.92893C5.31946 4.53841 5.95262 4.53841 6.34315 4.92893L8.46447 7.05025C8.85499 7.44078 8.85499 8.07394 8.46447 8.46447ZM4.92893 19.0711C4.53841 18.6805 4.53841 18.0474 4.92893 17.6569L7.05025 15.5355C7.44078 15.145 8.07394 15.145 8.46447 15.5355C8.85499 15.9261 8.85499 16.5592 8.46447 16.9497L6.34315 19.0711C5.95262 19.4616 5.31946 19.4616 4.92893 19.0711ZM15.5355 8.46447C15.145 8.07394 15.145 7.44078 15.5355 7.05025L17.6569 4.92893C18.0474 4.53841 18.6805 4.53841 19.0711 4.92893C19.4616 5.31946 19.4616 5.95262 19.0711 6.34315L16.9497 8.46447C16.5592 8.85499 15.9261 8.85499 15.5355 8.46447Z"}))}}),hd=q({name:"RiMoonLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M10 7C10 10.866 13.134 14 17 14C18.9584 14 20.729 13.1957 21.9995 11.8995C22 11.933 22 11.9665 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.0335 2 12.067 2 12.1005 2.00049C10.8043 3.27098 10 5.04157 10 7ZM4 12C4 16.4183 7.58172 20 12 20C15.0583 20 17.7158 18.2839 19.062 15.7621C18.3945 15.9187 17.7035 16 17 16C12.0294 16 8 11.9706 8 7C8 6.29648 8.08133 5.60547 8.2379 4.938C5.71611 6.28423 4 8.9417 4 12Z"}))}}),gd=q({name:"RiPauseLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"}))}}),md=q({name:"RiPencilLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M15.7279 9.57627L14.3137 8.16206L5 17.4758V18.89H6.41421L15.7279 9.57627ZM17.1421 8.16206L18.5563 6.74785L17.1421 5.33363L15.7279 6.74785L17.1421 8.16206ZM7.24264 20.89H3V16.6473L16.435 3.21231C16.8256 2.82179 17.4587 2.82179 17.8492 3.21231L20.6777 6.04074C21.0682 6.43126 21.0682 7.06443 20.6777 7.45495L7.24264 20.89Z"}))}}),yd=q({name:"RiPlayLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z"}))}}),vd=q({name:"RiQuestionLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM13 13.3551V14H11V12.5C11 11.9477 11.4477 11.5 12 11.5C12.8284 11.5 13.5 10.8284 13.5 10C13.5 9.17157 12.8284 8.5 12 8.5C11.2723 8.5 10.6656 9.01823 10.5288 9.70577L8.56731 9.31346C8.88637 7.70919 10.302 6.5 12 6.5C13.933 6.5 15.5 8.067 15.5 10C15.5 11.5855 14.4457 12.9248 13 13.3551Z"}))}}),wd=q({name:"RiRefreshLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"}))}}),bd=q({name:"RiSearchLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}))}}),Cd=q({name:"RiSettings3Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z"}))}}),_d=q({name:"RiShutDownLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M6.26489 3.80698L7.41191 5.44558C5.34875 6.89247 4 9.28873 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 9.28873 18.6512 6.89247 16.5881 5.44558L17.7351 3.80698C20.3141 5.61559 22 8.61091 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 8.61091 3.68594 5.61559 6.26489 3.80698ZM11 12V2H13V12H11Z"}))}}),xd=q({name:"RiSpeedLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12 13.3334L2.77735 19.4818C2.54759 19.635 2.23715 19.5729 2.08397 19.3432C2.02922 19.261 2 19.1645 2 19.0658V4.93433C2 4.65818 2.22386 4.43433 2.5 4.43433C2.59871 4.43433 2.69522 4.46355 2.77735 4.5183L12 10.6667V4.93433C12 4.65818 12.2239 4.43433 12.5 4.43433C12.5987 4.43433 12.6952 4.46355 12.7774 4.5183L23.376 11.584C23.6057 11.7372 23.6678 12.0477 23.5146 12.2774C23.478 12.3323 23.4309 12.3795 23.376 12.4161L12.7774 19.4818C12.5476 19.635 12.2372 19.5729 12.084 19.3432C12.0292 19.261 12 19.1645 12 19.0658V13.3334ZM10.3944 12.0001L4 7.7371V16.263L10.3944 12.0001ZM14 7.7371V16.263L20.3944 12.0001L14 7.7371Z"}))}}),Sd=q({name:"RiStackLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M20.0833 15.1999L21.2854 15.9212C21.5221 16.0633 21.5989 16.3704 21.4569 16.6072C21.4146 16.6776 21.3557 16.7365 21.2854 16.7787L12.5144 22.0412C12.1977 22.2313 11.8021 22.2313 11.4854 22.0412L2.71451 16.7787C2.47772 16.6366 2.40093 16.3295 2.54301 16.0927C2.58523 16.0223 2.64413 15.9634 2.71451 15.9212L3.9166 15.1999L11.9999 20.0499L20.0833 15.1999ZM20.0833 10.4999L21.2854 11.2212C21.5221 11.3633 21.5989 11.6704 21.4569 11.9072C21.4146 11.9776 21.3557 12.0365 21.2854 12.0787L11.9999 17.6499L2.71451 12.0787C2.47772 11.9366 2.40093 11.6295 2.54301 11.3927C2.58523 11.3223 2.64413 11.2634 2.71451 11.2212L3.9166 10.4999L11.9999 15.3499L20.0833 10.4999ZM12.5144 1.30864L21.2854 6.5712C21.5221 6.71327 21.5989 7.0204 21.4569 7.25719C21.4146 7.32757 21.3557 7.38647 21.2854 7.42869L11.9999 12.9999L2.71451 7.42869C2.47772 7.28662 2.40093 6.97949 2.54301 6.7427C2.58523 6.67232 2.64413 6.61343 2.71451 6.5712L11.4854 1.30864C11.8021 1.11864 12.1977 1.11864 12.5144 1.30864ZM11.9999 3.33233L5.88723 6.99995L11.9999 10.6676L18.1126 6.99995L11.9999 3.33233Z"}))}}),Td=q({name:"RiSunLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM11 1H13V4H11V1ZM11 20H13V23H11V20ZM3.51472 4.92893L4.92893 3.51472L7.05025 5.63604L5.63604 7.05025L3.51472 4.92893ZM16.9497 18.364L18.364 16.9497L20.4853 19.0711L19.0711 20.4853L16.9497 18.364ZM19.0711 3.51472L20.4853 4.92893L18.364 7.05025L16.9497 5.63604L19.0711 3.51472ZM5.63604 16.9497L7.05025 18.364L4.92893 20.4853L3.51472 19.0711L5.63604 16.9497ZM23 11V13H20V11H23ZM4 11V13H1V11H4Z"}))}}),Ld=q({name:"RiTerminalBoxLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM4 5V19H20V5H4ZM12 15H18V17H12V15ZM8.66685 12L5.83842 9.17157L7.25264 7.75736L11.4953 12L7.25264 16.2426L5.83842 14.8284L8.66685 12Z"}))}}),Pd=q({name:"RiTimerLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M17.6177 5.9681L19.0711 4.51472L20.4853 5.92893L19.0319 7.38231C20.2635 8.92199 21 10.875 21 13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13C3 8.02944 7.02944 4 12 4C14.125 4 16.078 4.73647 17.6177 5.9681ZM12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6C8.13401 6 5 9.13401 5 13C5 16.866 8.13401 20 12 20ZM11 8H13V14H11V8ZM8 1H16V3H8V1Z"}))}}),Ad=q({name:"RiUpload2Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return z("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},z("path",{d:"M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z"}))}}),Md={alert:id,"check-circle":Yf,clipboard:Xf,code:ed,download:od,edit:rd,eye:ld,"eye-off":ad,globe:fd,grid:nd,info:dd,layers:Sd,"list-filter":cd,loader:pd,monitor:td,moon:hd,pause:gd,pencil:md,play:yd,power:_d,refresh:wd,search:bd,settings:Cd,speed:xd,sun:Td,swap:Jf,terminal:Ld,timer:Pd,trash:sd,upload:Ad,x:Qf,zap:ud};function Ed(e){return Md[e]??vd}const $d=q({__name:"Icon",props:{name:{},size:{default:14}},setup(e){const t=e,n=X(()=>Ed(t.name)),s=X(()=>typeof t.size=="number"?`${t.size}px`:t.size);return(o,r)=>(N(),Ee(ll(n.value),{size:s.value,color:"currentColor","class-name":"sash-icon","aria-hidden":"true",focusable:"false"},null,8,["size"]))}}),je=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},We=je($d,[["__scopeId","data-v-1f90b3d4"]]),Od={class:"sidebar"},Hd={class:"traffic-panel","aria-live":"off"},Rd=["title"],Id={class:"traffic-number mono"},Dd={class:"traffic-unit mono"},Nd=["title"],Vd={class:"traffic-number mono"},kd={class:"traffic-unit mono"},Bd=["aria-label"],zd=["aria-current","onClick"],Fd={class:"nav-icon"},Ud={class:"nav-label"},Gd={class:"side-foot"},Zd={class:"runtime mono"},jd=["title"],Kd={class:"core-label"},qd=q({__name:"AppSidebar",setup(e){function t(y){const S=Number.isFinite(y)?Math.max(0,y):0,T=["B/s","KB/s","MB/s","GB/s","TB/s"];if(S<1024)return{numberText:Math.round(S).toString(),unitText:T[0]??"B/s"};const _=Math.min(Math.floor(Math.log(S)/Math.log(1024)),T.length-1);return{numberText:(S/1024**_).toFixed(2),unitText:T[_]??"B/s"}}const n=[{route:"overview",icon:"grid"},{route:"profiles",icon:"layers"},{route:"logs",icon:"terminal"},{route:"connections",icon:"swap"},{route:"rules",icon:"list-filter"},{route:"settings",icon:"settings"}];function s(y,S){if(!y)return"00 : 00 : 00";const T=new Date(y).getTime();if(!Number.isFinite(T))return"00 : 00 : 00";const _=Math.max(0,Math.floor((S-T)/1e3)),F=Math.floor(_/3600),$=Math.floor(_%3600/60),H=_%60,D=E=>E.toString().padStart(2,"0");return`${D(F)} : ${D($)} : ${D(H)}`}const o=Ae(Date.now());let r=null;const i=X(()=>n.findIndex(y=>y.route===De.value)),l=X(()=>t(d.traffic.up)),a=X(()=>t(d.traffic.down)),u=X(()=>s(d.status?.core.startedAt,o.value)),c=X(()=>{const y=Zn.value?x("app.coreRunning"):x("app.coreStopped");return d.status?.core.pid?`${y} · PID ${d.status.core.pid}`:y});function p(){r!==null||document.hidden||(r=window.setInterval(()=>{o.value=Date.now()},1e3))}function m(){r!==null&&(window.clearInterval(r),r=null)}function w(){document.hidden?m():(o.value=Date.now(),p())}no(()=>{p(),document.addEventListener("visibilitychange",w)}),Sn(()=>{m(),document.removeEventListener("visibilitychange",w)});function C(y){return{active:i.value===y,"before-active":i.value===y+1,"after-active":i.value===y-1}}return(y,S)=>(N(),j("aside",Od,[v("div",Hd,[v("div",{class:"traffic-row up",title:g(x)("overview.upload")},[S[0]||(S[0]=v("span",{class:"traffic-arrow"},"↑",-1)),v("span",Id,B(l.value.numberText),1),v("span",Dd,B(l.value.unitText),1)],8,Rd),v("div",{class:"traffic-row down",title:g(x)("overview.download")},[S[1]||(S[1]=v("span",{class:"traffic-arrow"},"↓",-1)),v("span",Vd,B(a.value.numberText),1),v("span",kd,B(a.value.unitText),1)],8,Nd)]),v("nav",{class:"side-nav","aria-label":g(x)("app.navigation")},[(N(),j(re,null,on(n,(T,_)=>v("button",{key:T.route,type:"button",class:Pe(["side-nav-item",C(_)]),"aria-current":g(De)===T.route?"page":void 0,onClick:F=>g(Ls)(T.route)},[v("span",Fd,[W(We,{name:T.icon,size:19},null,8,["name"])]),v("span",Ud,B(g(x)(`nav.${T.route}`)),1)],10,zd)),64))],8,Bd),v("div",Gd,[v("div",Zd,B(u.value),1),v("div",{class:"core-row",title:c.value},[v("span",{class:Pe(["dot",g(Zn)?"dot-success":"dot-muted"])},null,2),v("span",Kd,B(g(Zn)?g(x)("common.running"):g(x)("common.stopped")),1)],8,jd)])]))}}),Wd=je(qd,[["__scopeId","data-v-7a650a34"]]),Jd=["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(", "),dn=[];let ws=!1;function Jl(e){return Array.from(e.querySelectorAll(Jd)).filter(t=>!t.hasAttribute("hidden"))}function vi(e){if(e.defaultPrevented)return;const t=dn[dn.length-1],n=t?.container();if(!t||!n)return;if(e.key==="Escape"){e.preventDefault(),t.onEscape();return}if(e.key!=="Tab")return;const s=Jl(n);if(s.length===0){e.preventDefault(),n.focus();return}const o=s[0],r=s[s.length-1],i=document.activeElement;e.shiftKey&&(i===o||i===n||!n.contains(i))?(e.preventDefault(),r?.focus()):!e.shiftKey&&(i===r||!n.contains(i))&&(e.preventDefault(),o?.focus())}function Yd(e){const t={container:()=>e.container.value,onEscape:e.onEscape};let n=!1,s=null;async function o(){if(n||typeof window>"u"||(n=!0,s=document.activeElement instanceof HTMLElement?document.activeElement:null,dn.push(t),ws||(window.addEventListener("keydown",vi),ws=!0),await Ms(),!n))return;const i=e.container.value;(e.initialFocus?.()??(i?Jl(i)[0]:null)??i)?.focus()}function r(){if(!n)return;n=!1;const i=dn.indexOf(t);i!==-1&&dn.splice(i,1),dn.length===0&&ws&&(window.removeEventListener("keydown",vi),ws=!1);const l=s;s=null,!(!l?.isConnected||typeof l.focus!="function")&&Ms(()=>{l.isConnected&&l.focus({preventScroll:!0})})}return{open:o,close:r}}let qn=0,Wo=null,Jo=null;function Xd(){typeof document>"u"||(qn===0&&(Wo=document.body.style.overflow,Jo=document.documentElement.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"),qn+=1)}function Qd(){typeof document>"u"||qn!==0&&(qn-=1,!(qn>0)&&(document.body.style.overflow=Wo??"",document.documentElement.style.overflow=Jo??"",Wo=null,Jo=null))}const be=Qs({visible:!1,title:"",message:"",confirmText:x("common.confirm"),cancelText:x("common.cancel"),danger:!1,resolve:null});function e1(e){return be.resolve&&Wt(!1),be.title=e.title,be.message=e.message,be.confirmText=e.confirmText??x("common.confirm"),be.cancelText=e.cancelText??x("common.cancel"),be.danger=e.danger??!1,be.visible=!0,new Promise(t=>{be.resolve=t})}function Wt(e){be.visible=!1,be.resolve?.(e),be.resolve=null}const t1={class:"dialog-actions"},n1=q({__name:"ConfirmDialog",setup(e){const t=Ae(null),n=Ae(null),s=Ae(null),o=nl(),r=`${o}-title`,i=`${o}-description`;let l=!1;const{open:a,close:u}=Yd({container:t,initialFocus:()=>(be.danger?n.value:s.value)??n.value,onEscape:()=>Wt(!1)});function c(){l||(Xd(),l=!0)}function p(){l&&(Qd(),l=!1)}return Vt(()=>be.visible,async m=>{if(m){c(),await a();return}p(),u()},{immediate:!0}),Vt(De,()=>{be.visible&&Wt(!1)}),Sn(()=>{be.visible&&Wt(!1),p(),u()}),(m,w)=>(N(),Ee(Ji,{to:"body"},[W(Hl,{name:"fade"},{default:xn(()=>[g(be).visible?(N(),j("div",{key:0,class:"overlay",onClick:w[2]||(w[2]=Ts(C=>g(Wt)(!1),["self"]))},[v("div",{ref_key:"dialogElement",ref:t,class:"dialog card",role:"alertdialog","aria-modal":"true","aria-labelledby":r,"aria-describedby":i,tabindex:"-1"},[v("h3",{id:r,class:"dialog-title"},B(g(be).title),1),v("p",{id:i,class:"dialog-msg"},B(g(be).message),1),v("div",t1,[v("button",{ref_key:"cancelButton",ref:n,type:"button",class:"btn btn-secondary btn-sm",onClick:w[0]||(w[0]=C=>g(Wt)(!1))},B(g(be).cancelText),513),v("button",{ref_key:"confirmButton",ref:s,type:"button",class:Pe(["btn btn-sm",g(be).danger?"btn-danger":"btn-primary"]),onClick:w[1]||(w[1]=C=>g(Wt)(!0))},B(g(be).confirmText),3)])],512)])):ve("",!0)]),_:1})]))}}),s1=je(n1,[["__scopeId","data-v-a4c3d877"]]),Po=X(()=>{const e=d.status?.core.version;return e?e.startsWith("v")?e:`v${e}`:""}),Dn=Ae(!1),cn=Ae(!1);let bs=0;function o1(){async function e(){if(Dn.value||cn.value||!d.status||d.status.core.running&&!await e1({title:x("settings.restartConfirmTitle"),message:x("settings.restartConfirmMsg"),confirmText:x("common.confirm"),cancelText:x("common.cancel"),danger:!0})||Dn.value||cn.value)return;Dn.value=!0;const n=++bs;try{await ee.restartCore(),await To(),n===bs&&Oe.success(x("toast.coreRestarted"))}catch(s){await To().catch(()=>{}),n===bs&&Oe.error(x("toast.failed",{msg:Tt(s)}))}finally{Dn.value=!1}}async function t(){if(!(cn.value||!d.status)){cn.value=!0,bs+=1;try{await ee.stopCore(),await To(),Oe.success(x("toast.coreStopped"))}catch(n){Oe.error(x("toast.failed",{msg:Tt(n)}))}finally{cn.value=!1}}}return{restarting:Dn,stopping:cn,restartCore:e,stopCore:t}}const r1={class:"core-controls"},i1=["disabled"],l1={key:0},a1={key:1},c1=["disabled"],u1=q({__name:"CoreControls",props:{applyOnly:{type:Boolean}},setup(e){const{restarting:t,stopping:n,restartCore:s,stopCore:o}=o1();return(r,i)=>(N(),j("div",r1,[v("button",{type:"button",class:"btn btn-secondary btn-sm",disabled:g(t)||g(n)||!g(d).status,onClick:i[0]||(i[0]=(...l)=>g(s)&&g(s)(...l))},[W(We,{name:"refresh",size:13,class:Pe({spin:g(t)})},null,8,["class"]),g(t)?(N(),j("span",l1,B(g(x)("common.loading")),1)):(N(),j("span",a1,B(g(d).status?.core.running?g(x)("settings.applyBtn"):g(x)("settings.startBtn")),1))],8,i1),e.applyOnly?ve("",!0):(N(),j("button",{key:0,type:"button",class:"btn btn-danger-outline btn-sm",disabled:g(n)||!g(d).status||!g(d).status.core.running&&!g(t),onClick:i[1]||(i[1]=(...l)=>g(o)&&g(o)(...l))},[W(We,{name:"power",size:13,class:Pe({spin:g(n)})},null,8,["class"]),v("span",null,B(g(x)("settings.stopBtn")),1)],8,c1))]))}}),Yl=je(u1,[["__scopeId","data-v-1f05b06c"]]),f1={class:"toast-host","aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text"},d1={class:"toast-icon"},p1={class:"toast-text"},h1=["aria-label","onClick"],g1=q({__name:"ToastHost",setup(e){function t(n){return n==="success"?"check-circle":n==="error"?"alert":"info"}return(n,s)=>(N(),Ee(Ji,{to:"body"},[v("div",f1,[W(Lu,{name:"toast"},{default:xn(()=>[(N(!0),j(re,null,on(g(d).toasts,o=>(N(),j("div",{key:o.id,class:Pe(["toast",`toast-${o.kind}`])},[v("span",d1,[W(We,{name:t(o.kind),size:14},null,8,["name"])]),v("span",p1,B(o.text),1),v("button",{type:"button",class:"toast-close","aria-label":g(x)("common.close"),onClick:r=>g(Wl)(o.id)},[W(We,{name:"x",size:12})],8,h1)],2))),128))]),_:1})])]))}}),m1=je(g1,[["__scopeId","data-v-98c7b3bc"]]),y1=["viewBox","aria-label"],v1=["y1","y2"],w1=["d","fill"],b1=["d","fill"],C1=["d"],_1=["d"],Cs=600,bt=148,Ao=6,x1=q({__name:"TrafficChart",props:{down:{},up:{},height:{default:150},label:{}},setup(e){const t=e,n=X(()=>t.label??x("overview.trafficChartLabel")),s=nl(),o=`${s}-down-fill`,r=`${s}-up-fill`,i=[bt*.25,bt*.5,bt*.75],l=X(()=>{const T=Math.max(...t.down,...t.up,0);return T>0?T*1.15:1024});function a(T){const _=T.length;if(_===0)return[];const F=Cs/Math.max(_-1,1);return T.map(($,H)=>{const D=H*F,E=bt-Ao-Math.min($,l.value)/l.value*(bt-Ao*2);return[D,E]})}function u(T){if(T.length===0)return"";const _=T[0];if(!_||T.length===1)return`M ${_?.[0]??0} ${bt-Ao}`;let F=`M ${_[0].toFixed(1)} ${_[1].toFixed(1)}`;for(let $=0;$<T.length-1;$++){const H=T[$-1]??T[$]??_,D=T[$]??_,E=T[$+1]??D,Q=T[$+2]??E,U=D[0]+(E[0]-H[0])/6,te=D[1]+(E[1]-H[1])/6,ie=E[0]-(Q[0]-D[0])/6,k=E[1]-(Q[1]-D[1])/6;F+=` C ${U.toFixed(1)} ${te.toFixed(1)}, ${ie.toFixed(1)} ${k.toFixed(1)}, ${E[0].toFixed(1)} ${E[1].toFixed(1)}`}return F}function c(T,_){if(!_)return"";const F=T[T.length-1],$=T[0];return`${_} L ${F?.[0]??Cs} ${bt} L ${$?.[0]??0} ${bt} Z`}const p=X(()=>a(t.down)),m=X(()=>a(t.up)),w=X(()=>u(p.value)),C=X(()=>u(m.value)),y=X(()=>c(p.value,w.value)),S=X(()=>c(m.value,C.value));return(T,_)=>(N(),j("svg",{class:"traffic-chart",style:Js({"--traffic-chart-height":`${e.height}px`}),viewBox:`0 0 ${Cs} ${bt}`,preserveAspectRatio:"none",role:"img","aria-label":n.value},[v("defs",null,[v("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1"},[..._[0]||(_[0]=[v("stop",{offset:"0%","stop-color":"var(--chart-down)","stop-opacity":"0.12"},null,-1),v("stop",{offset:"100%","stop-color":"var(--chart-down)","stop-opacity":"0"},null,-1)])]),v("linearGradient",{id:r,x1:"0",y1:"0",x2:"0",y2:"1"},[..._[1]||(_[1]=[v("stop",{offset:"0%","stop-color":"var(--chart-up)","stop-opacity":"0.1"},null,-1),v("stop",{offset:"100%","stop-color":"var(--chart-up)","stop-opacity":"0"},null,-1)])])]),(N(),j(re,null,on(i,F=>v("line",{key:F,x1:0,x2:Cs,y1:F,y2:F,stroke:"var(--border)","stroke-width":"1","stroke-dasharray":"3 5"},null,8,v1)),64)),v("path",{d:y.value,fill:`url(#${o})`},null,8,w1),v("path",{d:S.value,fill:`url(#${r})`},null,8,b1),v("path",{d:w.value,fill:"none",stroke:"var(--chart-down)","stroke-width":"1.6","stroke-linecap":"round","vector-effect":"non-scaling-stroke"},null,8,C1),v("path",{d:C.value,fill:"none",stroke:"var(--chart-up)","stroke-width":"1.6","stroke-linecap":"round","vector-effect":"non-scaling-stroke"},null,8,_1)],12,y1))}}),S1=je(x1,[["__scopeId","data-v-68611f87"]]),T1=["aria-label"],L1={class:"identity-row"},P1={class:"identity-copy"},A1={class:"identity-meta mono"},M1=["aria-label"],E1=["aria-label"],$1=["aria-pressed","disabled","onClick"],O1={class:"mode-code"},H1={class:"mode-name"},R1=["aria-label"],I1=["aria-pressed","disabled"],D1={class:"toggle-name"},N1={class:"toggle-state"},V1=["aria-pressed","disabled"],k1={class:"toggle-name"},B1={class:"toggle-state"},z1={class:"general-list"},F1={class:"general-row"},U1={class:"general-label"},G1={class:"general-value mono"},Z1={class:"general-row"},j1={class:"general-label"},K1={class:"general-value"},q1=["title"],W1={class:"general-row profile-row"},J1={class:"general-label"},Y1={key:0},X1={key:0,class:"general-value profile-value"},Q1=["title"],ep=["title","aria-label","disabled"],tp=["aria-label"],np={class:"pane-section-heading traffic-heading"},sp={class:"mono"},op={key:0,class:"live-state"},rp={class:"traffic-metrics"},ip={class:"traffic-metric"},lp={class:"mono down-value"},ap={class:"traffic-metric"},cp={class:"mono up-value"},up={class:"traffic-totals"},fp={class:"mono"},dp={class:"mono"},pp=q({__name:"OverviewGeneralPane",setup(e){const t=Ae(!1),n=X(()=>bf(d.status?.core.startedAt,io.value)),s=X(()=>{const p=d.status?.configuration.appliedProfile;return p?d.profiles.find(m=>m.id===p.id)??p:null}),o=X(()=>d.status?.settings.allowLan??!1),r=X(()=>Object.values(d.proxies).filter(p=>!(Array.isArray(p.all)&&p.all.length>0)).length),i=X(()=>[{id:"global",label:x("overview.modeGlobal")},{id:"rule",label:x("overview.modeRule")},{id:"direct",label:x("overview.modeDirect")}]);async function l(p){if(p!==d.mode)try{await If(p),Oe.success(x("toast.modeOk",{mode:x(`overview.mode${p[0]?.toUpperCase()}${p.slice(1)}`)}))}catch(m){Oe.error(x("toast.failed",{msg:Tt(m)}))}}async function a(p){try{await Bf(p)?Oe.success(x(p?"toast.sysProxyOn":"toast.sysProxyOff")):Oe.info(x("toast.settingSavedUnverified"))}catch(m){Oe.error(x("toast.failed",{msg:Tt(m)}))}}async function u(p){try{await zf({allowLan:p})?Oe.success(x("toast.settingSaved")):Oe.info(x("toast.settingSavedUnverified"))}catch(m){Oe.error(x("toast.failed",{msg:Tt(m)}))}}async function c(){const p=s.value;if(!(!p?.url||t.value)){t.value=!0;try{await Ff(p.id),Oe.success(x("toast.profileUpdated",{name:p.name}))}catch(m){Oe.error(x("toast.failed",{msg:Tt(m)}))}finally{t.value=!1}}}return(p,m)=>(N(),j("aside",{class:"general-pane","aria-label":g(x)("overview.coreTitle")},[v("div",L1,[m[6]||(m[6]=v("span",{class:"identity-mark","aria-hidden":"true"},[v("img",{src:"./assets/branding/sash-cat.png",alt:""})],-1)),v("div",P1,[m[5]||(m[5]=v("h2",null,"Sash",-1)),v("span",A1,[g(Po)?(N(),j(re,{key:0},[tt(B(g(Po)),1)],64)):ve("",!0),g(Po)&&g(d).status?.core.pid?(N(),j(re,{key:1},[tt(" · ")],64)):ve("",!0),g(d).status?.core.pid?(N(),j(re,{key:2},[tt("PID "+B(g(d).status.core.pid),1)],64)):ve("",!0)])])]),v("section",{class:"mode-control","aria-label":g(x)("overview.modeTitle")},[v("div",{class:"mode-switcher",role:"group","aria-label":g(x)("overview.modeTitle")},[(N(!0),j(re,null,on(i.value,w=>(N(),j("button",{key:w.id,type:"button",class:Pe(["mode-button",{active:g(d).mode===w.id}]),"aria-pressed":g(d).mode===w.id,disabled:g(d).operations.mode||!g(_n),onClick:C=>l(w.id)},[v("span",O1,B(w.id.toUpperCase()),1),v("span",H1,B(w.label),1)],10,$1))),128))],8,E1),v("div",{class:"mode-switcher toggle-switcher",role:"group","aria-label":g(x)("overview.switchesTitle")},[v("button",{type:"button",class:Pe(["mode-button toggle-button",{active:g(vs)}]),"aria-pressed":g(vs),disabled:!g(Pf),onClick:m[0]||(m[0]=w=>a(!g(vs)))},[v("span",D1,B(g(x)("overview.sysProxyTitle")),1),v("span",N1,B(g(vs)?g(x)("common.on"):g(x)("common.off")),1)],10,I1),v("button",{type:"button",class:Pe(["mode-button toggle-button",{active:o.value}]),"aria-pressed":o.value,disabled:g(d).operations.networkSetting||!g(d).status,onClick:m[1]||(m[1]=w=>u(!o.value))},[v("span",k1,B(g(x)("overview.lan")),1),v("span",B1,B(o.value?g(x)("common.on"):g(x)("common.off")),1)],10,V1)],8,R1)],8,M1),v("div",z1,[v("div",F1,[v("div",U1,B(g(x)("overview.uptime")),1),v("div",G1,B(n.value),1)]),v("div",Z1,[v("div",j1,B(g(x)("overview.mixedPort")),1),v("div",K1,[v("button",{type:"button",class:"general-link mono",title:g(x)("page.settings.title"),onClick:m[2]||(m[2]=w=>g(Ls)("settings"))},B(g(d).status?.core.running&&g(d).status.configuration.appliedSettings?`127.0.0.1:${g(d).status.configuration.appliedSettings.mixedPort}`:"-"),9,q1)])]),v("div",W1,[v("div",J1,[v("span",null,B(g(x)("overview.subTitle")),1),s.value?(N(),j("small",Y1,B(g(x)("common.nodesCount",{n:r.value})),1)):ve("",!0)]),s.value?(N(),j("div",X1,[v("button",{type:"button",class:"general-link profile-name",title:s.value.url||s.value.name,onClick:m[3]||(m[3]=w=>g(Ls)("profiles"))},B(s.value.name),9,Q1),s.value.url?(N(),j("button",{key:0,type:"button",class:Pe(["icon-btn",{spin:t.value}]),title:g(x)("profiles.update"),"aria-label":g(x)("profiles.update"),disabled:t.value,onClick:c},[W(We,{name:"refresh",size:14})],10,ep)):ve("",!0)])):(N(),j("button",{key:1,type:"button",class:"btn btn-primary btn-sm",onClick:m[4]||(m[4]=w=>g(Ls)("profiles"))},B(g(x)("overview.subSet")),1))])]),v("section",{class:"traffic-compact","aria-label":g(x)("overview.trafficTitle")},[v("div",np,[v("div",null,[v("h3",null,B(g(x)("overview.trafficTitle")),1),v("p",null,[tt(B(g(x)("connections.active"))+" ",1),v("strong",sp,B(g(d).connections.length),1)])]),g(_n)?(N(),j("span",op,[m[7]||(m[7]=v("span",{class:"dot dot-success"},null,-1)),tt(" "+B(g(x)("common.live")),1)])):ve("",!0)]),v("div",rp,[v("div",ip,[v("span",null,B(g(x)("overview.download")),1),v("strong",lp,B(g(pi)(g(d).traffic.down)),1)]),v("div",ap,[v("span",null,B(g(x)("overview.upload")),1),v("strong",cp,B(g(pi)(g(d).traffic.up)),1)])]),W(S1,{down:g(d).traffic.historyDown,up:g(d).traffic.historyUp,height:74,label:g(x)("overview.trafficTitle")},null,8,["down","up","label"]),v("div",up,[v("span",null,[tt(B(g(x)("overview.totalDown"))+" ",1),v("strong",fp,B(g(Zo)(g(d).connectionsDownloadTotal)),1)]),v("span",null,[tt(B(g(x)("overview.totalUp"))+" ",1),v("strong",dp,B(g(Zo)(g(d).connectionsUploadTotal)),1)])])],8,tp)],8,T1))}}),hp=je(pp,[["__scopeId","data-v-550863ed"]]);function gp(){const e=Ae(new Set),t=Ae(new Set);async function n(o){if(e.value.has(o))return;e.value=new Set(e.value).add(o);const r=d.runtimeGeneration;try{const i=await ee.testGroupDelay(o);Nf(i,r)}catch(i){Oe.error(x("toast.failed",{msg:Tt(i)}))}finally{const i=new Set(e.value);i.delete(o),e.value=i}}async function s(o){if(t.value.has(o))return;t.value=new Set(t.value).add(o);const r=d.runtimeGeneration;try{mi(o,(await ee.testProxyDelay(o)).delay,r)}catch{mi(o,0,r)}finally{const i=new Set(t.value);i.delete(o),t.value=i}}return{testingGroups:e,testingNodes:t,testGroup:n,testSingle:s}}const mp={class:"empty-state",role:"status"},yp={class:"empty-icon","aria-hidden":"true"},vp={class:"empty-title"},wp={key:0,class:"empty-hint"},bp=q({__name:"EmptyState",props:{icon:{},title:{},hint:{}},setup(e){return(t,n)=>(N(),j("div",mp,[v("span",yp,[W(We,{name:e.icon,size:26},null,8,["name"])]),v("p",vp,B(e.title),1),e.hint?(N(),j("p",wp,B(e.hint),1)):ve("",!0)]))}}),Mo=je(bp,[["__scopeId","data-v-4868d2ff"]]),Cp={class:"pgroup"},_p={class:"pgroup-name"},xp={class:"pgroup-type"},Sp=["title"],Tp=["title","aria-label"],Lp=["title","aria-label","disabled"],Pp=["title","aria-label"],Ap={key:0,class:"pgroup-grid"},Mp={class:"node-top"},Ep=["title"],$p={class:"node-sub"},Op={class:"node-meta"},Hp={class:"node-badges"},Rp={key:0,class:"node-badge udp-tag"},Ip=["aria-label","disabled","onClick"],Dp=q({__name:"ProxyGroupSection",props:{group:{},members:{},selectable:{type:Boolean},testing:{type:Boolean},testingNodes:{},busy:{type:Boolean},collapsed:{type:Boolean},hideTimeout:{type:Boolean}},emits:["select","test-group","test-node","toggle-collapse","toggle-hide-timeout"],setup(e,{emit:t}){const n=e,s=t,o=new Set(["Selector","URLTest","Fallback","LoadBalance","Relay"]),r=X(()=>d.proxies[n.group]?.now??""),i=X(()=>(d.proxies[n.group]?.type??"S").charAt(0)),l=X(()=>n.hideTimeout?n.members.filter(S=>{const T=yi(S);return T===void 0||T>0}):n.members);function a(S){return d.proxies[S]?.now??""}function u(S){return d.proxies[S]?.type??""}function c(S){return o.has(u(S))}function p(S){return d.proxies[S]?.udp??!1}function m(S){return n.testingNodes?.has(S)??!1}function w(S){m(S)||s("test-node",S)}const C=X(()=>{const S=new Map;for(const T of n.members){const _=yi(T);if(_===void 0)S.set(T,{cls:"delay-none",text:x("common.untested")});else{const F=_f(_);S.set(T,{cls:F==="good"?"delay-good":F==="mid"?"delay-mid":"delay-bad",text:_<=0?x("common.timeout"):`${_} ms`})}}return S});function y(S){return C.value.get(S)??{cls:"delay-none",text:x("common.untested")}}return(S,T)=>(N(),j("section",Cp,[v("div",{class:"pgroup-head",onClick:T[3]||(T[3]=_=>s("toggle-collapse"))},[v("span",_p,B(e.group),1),v("span",xp,B(i.value),1),v("span",{class:"pgroup-now",title:r.value},B(r.value),9,Sp),T[4]||(T[4]=v("span",{class:"pgroup-spacer"},null,-1)),v("button",{type:"button",class:Pe(["icon-btn group-action",{active:e.hideTimeout}]),title:g(x)("proxies.hideTimeout"),"aria-label":g(x)("proxies.hideTimeout"),onClick:T[0]||(T[0]=Ts(_=>s("toggle-hide-timeout"),["stop"]))},[W(We,{name:"timer",size:15})],10,Tp),v("button",{type:"button",class:"icon-btn group-test",title:g(x)("proxies.testAll"),"aria-label":`${g(x)("proxies.testAll")}: ${e.group}`,disabled:e.testing,onClick:T[1]||(T[1]=Ts(_=>s("test-group"),["stop"]))},[W(We,{name:e.testing?"loader":"zap",size:15,class:Pe({spin:e.testing})},null,8,["name","class"])],8,Lp),v("button",{type:"button",class:"icon-btn group-action",title:g(x)("proxies.toggleGroup"),"aria-label":g(x)("proxies.toggleGroup"),onClick:T[2]||(T[2]=Ts(_=>s("toggle-collapse"),["stop"]))},[W(We,{name:e.collapsed?"eye-off":"eye",size:15},null,8,["name"])],8,Pp)]),e.collapsed?ve("",!0):(N(),j("div",Ap,[(N(!0),j(re,null,on(l.value,_=>(N(),j("article",{key:_,class:Pe(["node-card",{selected:r.value===_,static:!e.selectable}])},[(N(),Ee(ll(e.selectable?"button":"div"),{class:"node-main",type:e.selectable?"button":void 0,"aria-pressed":e.selectable?r.value===_:void 0,disabled:e.selectable?e.busy:void 0,onClick:F=>e.selectable&&!e.busy&&s("select",_)},{default:xn(()=>[v("div",Mp,[v("span",{class:"node-name",title:_},B(_),9,Ep)]),v("div",$p,[v("span",Op,[tt(B(u(_)),1),c(_)&&a(_)?(N(),j(re,{key:0},[tt(" · "+B(a(_)),1)],64)):ve("",!0)]),v("span",Hp,[p(_)?(N(),j("span",Rp,"UDP")):ve("",!0)])])]),_:2},1032,["type","aria-pressed","disabled","onClick"])),v("button",{type:"button",class:Pe(["node-delay",[y(_).cls,{testing:m(_)}]]),"aria-label":g(x)("proxies.testNode",{name:_}),disabled:m(_),onClick:F=>w(_)},[m(_)?(N(),Ee(We,{key:0,name:"refresh",size:11,class:"delay-spinner"})):(N(),j(re,{key:1},[tt(B(y(_).text),1)],64))],10,Ip)],2))),128))]))]))}}),Eo=je(Dp,[["__scopeId","data-v-3831c141"]]),Np=["aria-label"],Vp={class:"proxy-pane-head"},kp={class:"proxy-title-row"},Bp={key:0,class:"search-box proxy-filter"},zp=["aria-label","placeholder"],Fp={key:1,class:"group-count"},Up={key:0,class:"empty-panel"},Gp={class:"proxy-kind-heading"},Zp={class:"proxy-kind-heading"},jp={key:2,class:"empty-panel"},Kp={key:1,class:"empty-panel"},qp={class:"direct-node","aria-current":"true"},Wp={class:"direct-current"},Jp={class:"direct-hint"},Yp=q({__name:"OverviewProxyPane",setup(e){const{testingGroups:t,testingNodes:n,testGroup:s,testSingle:o}=gp(),r=Ae(""),i=X(()=>r.value.trim().toLowerCase()),l=Ae(new Set),a=Ae(new Set);function u(H){const D=new Set(l.value);D.has(H)?D.delete(H):D.add(H),l.value=D}function c(H){const D=new Set(a.value);D.has(H)?D.delete(H):D.add(H),a.value=D}const p=X(()=>d.mode==="global"?x("overview.modeGlobal"):d.mode==="direct"?x("overview.modeDirect"):x("overview.modeRule")),m=X(()=>d.mode==="global"?x("overview.modeGlobalDesc"):d.mode==="direct"?x("overview.modeDirectDesc"):x("overview.modeRuleDesc")),w=X(()=>d.proxyGroups.filter(H=>d.proxies[H]?.type==="Selector"&&H!=="GLOBAL")),C=X(()=>d.proxyGroups.filter(H=>d.proxies[H]?.type!=="Selector"&&H!=="GLOBAL")),y=X(()=>S(d.proxies.GLOBAL?.all??[]));function S(H){return i.value?H.filter(D=>D.toLowerCase().includes(i.value)):H}const T=X(()=>{const H=new Map;for(const D of d.proxyGroups)H.set(D,S(d.proxies[D]?.all??[]));return H});function _(H){return T.value.get(H)??[]}function F(H){return d.proxies[H]?.now??""}async function $(H,D){if(F(H)!==D)try{await Df(H,D),Oe.success(x("toast.nodeOk",{name:D}))}catch(E){Oe.error(x("toast.failed",{msg:Tt(E)}))}}return(H,D)=>(N(),j("section",{class:"proxy-pane","aria-label":g(x)("overview.modeTitle")},[v("header",Vp,[v("div",null,[v("div",kp,[v("h2",null,B(p.value),1)]),v("p",null,B(m.value),1)]),g(d).mode!=="direct"&&g(d).proxyGroups.length>0?(N(),j("div",Bp,[W(We,{name:"search",size:13}),ja(v("input",{"onUpdate:modelValue":D[0]||(D[0]=E=>r.value=E),type:"search","aria-label":g(x)("proxies.filter"),placeholder:g(x)("proxies.filter")},null,8,zp),[[Ou,r.value]])])):ve("",!0),g(d).mode==="rule"?(N(),j("span",Fp,B(g(d).proxyGroups.length)+" "+B(g(x)("profiles.statGroups")),1)):ve("",!0)]),g(Zn)?g(d).mode==="rule"?(N(),j(re,{key:1},[w.value.length>0?(N(),j(re,{key:0},[v("div",Gp,B(g(x)("proxies.manual")),1),(N(!0),j(re,null,on(w.value,E=>(N(),Ee(Eo,{key:E,group:E,members:_(E),selectable:!0,testing:g(t).has(E),"testing-nodes":g(n),busy:!!g(d).operations.proxySelections[E],collapsed:l.value.has(E),"hide-timeout":a.value.has(E),onSelect:Q=>$(E,Q),onTestGroup:Q=>g(s)(E),onTestNode:g(o),onToggleCollapse:Q=>u(E),onToggleHideTimeout:Q=>c(E)},null,8,["group","members","testing","testing-nodes","busy","collapsed","hide-timeout","onSelect","onTestGroup","onTestNode","onToggleCollapse","onToggleHideTimeout"]))),128))],64)):ve("",!0),C.value.length>0?(N(),j(re,{key:1},[v("div",Zp,B(g(x)("proxies.auto")),1),(N(!0),j(re,null,on(C.value,E=>(N(),Ee(Eo,{key:E,group:E,members:_(E),selectable:!1,testing:g(t).has(E),"testing-nodes":g(n),busy:!!g(d).operations.proxySelections[E],collapsed:l.value.has(E),"hide-timeout":a.value.has(E),onTestGroup:Q=>g(s)(E),onTestNode:g(o),onToggleCollapse:Q=>u(E),onToggleHideTimeout:Q=>c(E)},null,8,["group","members","testing","testing-nodes","busy","collapsed","hide-timeout","onTestGroup","onTestNode","onToggleCollapse","onToggleHideTimeout"]))),128))],64)):ve("",!0),w.value.length===0&&C.value.length===0?(N(),j("div",jp,[W(Mo,{icon:"globe",title:g(x)("proxies.noGroups"),hint:g(x)("proxies.noGroupsHint")},null,8,["title","hint"])])):ve("",!0)],64)):g(d).mode==="global"?(N(),j(re,{key:2},[y.value.length>0?(N(),Ee(Eo,{key:0,group:"GLOBAL",members:y.value,selectable:!0,testing:g(t).has("GLOBAL"),"testing-nodes":g(n),busy:!!g(d).operations.proxySelections.GLOBAL,collapsed:l.value.has("GLOBAL"),"hide-timeout":a.value.has("GLOBAL"),onSelect:D[1]||(D[1]=E=>$("GLOBAL",E)),onTestGroup:D[2]||(D[2]=E=>g(s)("GLOBAL")),onTestNode:g(o),onToggleCollapse:D[3]||(D[3]=E=>u("GLOBAL")),onToggleHideTimeout:D[4]||(D[4]=E=>c("GLOBAL"))},null,8,["members","testing","testing-nodes","busy","collapsed","hide-timeout","onTestNode"])):(N(),j("div",Kp,[W(Mo,{icon:"globe",title:g(x)("proxies.noGroups"),hint:g(x)("proxies.noGroupsHint")},null,8,["title","hint"])]))],64)):(N(),j(re,{key:3},[v("article",qp,[D[5]||(D[5]=v("span",{class:"direct-indicator"},null,-1)),D[6]||(D[6]=v("div",{class:"direct-copy"},[v("strong",null,"DIRECT"),v("span",null,"Direct")],-1)),v("span",Wp,B(g(x)("proxies.currentTag")),1)]),v("p",Jp,B(g(x)("proxies.directHint")),1)],64)):(N(),j("div",Up,[W(Mo,{icon:"globe",title:g(x)("proxies.noGroups"),hint:g(x)("proxies.noGroupsHint")},null,8,["title","hint"])]))],8,Np))}}),Xp=je(Yp,[["__scopeId","data-v-5fec4f3a"]]),Qp={class:"page-head"},eh={class:"page-head-text"},th={class:"page-title"},nh={key:0,class:"page-desc"},sh={key:0,class:"page-head-actions"},oh=q({__name:"PageHeader",props:{title:{},desc:{}},setup(e){return(t,n)=>(N(),j("header",Qp,[v("div",eh,[v("h1",th,B(e.title),1),e.desc?(N(),j("p",nh,B(e.desc),1)):ve("",!0)]),t.$slots.default?(N(),j("div",sh,[gc(t.$slots,"default",{},void 0)])):ve("",!0)]))}}),Xl=je(oh,[["__scopeId","data-v-28e798e0"]]),rh={class:"overview"},ih={class:"overview-split"},lh=q({__name:"OverviewView",setup(e){return(t,n)=>(N(),j("div",rh,[W(Xl,{title:g(x)("page.overview.title"),desc:g(x)("page.overview.desc")},{default:xn(()=>[W(Yl)]),_:1},8,["title","desc"]),v("div",ih,[W(hp),W(Xp)])]))}}),ah=je(lh,[["__scopeId","data-v-8337d71f"]]),ch={class:"connection-panel"},uh=q({__name:"ConnectionView",setup(e){return(t,n)=>(N(),j(re,null,[W(Xl,{title:g(x)("status.connectTitle")},null,8,["title"]),v("section",ch,[v("p",null,B(g(x)("status.connectDescription")),1),n[0]||(n[0]=v("code",{class:"mono"},"sash web",-1))])],64))}}),fh=je(uh,[["__scopeId","data-v-f3479712"]]),dh={class:"app-frame"},ph={class:"app-shell"},hh={class:"app-main"},gh=["title"],mh={key:0,class:"pending-config",role:"status"},yh=q({__name:"App",setup(e){const t=X(()=>d.daemonOnline&&!qt.value?"unauthorized":Lf.value),n=En(()=>Hn(()=>import("./ConnectionsView-BgXQM6Z4.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),s=En(()=>Hn(()=>import("./LogsView-2f542P8z.js"),__vite__mapDeps([4,5]),import.meta.url)),o=En(()=>Hn(()=>import("./ProfilesView-DNnzYIEY.js"),__vite__mapDeps([6,7]),import.meta.url)),r=En(()=>Hn(()=>import("./RulesView-CtKvlckZ.js"),__vite__mapDeps([8,1,2,9]),import.meta.url)),i=En(()=>Hn(()=>import("./SettingsView-BaeKFF_N.js"),__vite__mapDeps([10,11,12]),import.meta.url));let l=null,a=null,u=null;const c=Ae(!document.hidden),p=()=>{c.value=!document.hidden},m=new WeakMap;function w(y){const S=y.target instanceof Document?document.documentElement:y.target;if(!(S instanceof HTMLElement))return;S.classList.add("is-scrolling");const T=m.get(S);T!==void 0&&window.clearTimeout(T),m.set(S,window.setTimeout(()=>{S.classList.remove("is-scrolling"),m.delete(S)},700))}function C(){a?.(),u?.(),a=null,u=null,gi()}return Vt(()=>c.value&&d.daemonOnline&&_n.value&&qt.value?d.runtimeGeneration:null,y=>{C(),y!==null&&(a=ee.connectTraffic(S=>Zf(S,y),()=>{y===d.runtimeGeneration&&gi()}))}),Vt(()=>c.value&&d.daemonOnline&&_n.value&&qt.value&&De.value==="logs"?d.runtimeGeneration:null,y=>{u?.(),u=null,y!==null&&(u=ee.connectLogs(S=>jf(S,y)))}),no(()=>{document.addEventListener("visibilitychange",p),l=kf(),window.addEventListener("scroll",w,{capture:!0,passive:!0})}),Sn(()=>{document.removeEventListener("visibilitychange",p),l?.(),C(),window.removeEventListener("scroll",w,{capture:!0})}),(y,S)=>(N(),j("div",dh,[v("div",ph,[W(Wd),v("main",hh,[W(Hl,{name:"fade"},{default:xn(()=>[t.value?(N(),j("div",{key:0,class:Pe(["runtime-banner",t.value]),role:"status","aria-live":"polite",title:g(Kl)??void 0},[W(We,{name:"alert",size:13}),v("span",null,B(g(x)(`status.${t.value}`)),1)],10,gh)):ve("",!0)]),_:1}),g(qt)&&g(d).status?.configuration.pending?(N(),j("div",mh,[v("span",null,B(g(x)("settings.pendingApply")),1),W(Yl,{"apply-only":""})])):ve("",!0),v("div",{class:Pe(["page-container",`page-${g(qt)?g(De):"connect"}`])},[g(qt)?g(De)==="overview"?(N(),Ee(ah,{key:1})):g(De)==="profiles"?(N(),Ee(g(o),{key:2})):g(De)==="logs"?(N(),Ee(g(s),{key:3})):g(De)==="connections"?(N(),Ee(g(n),{key:4})):g(De)==="rules"?(N(),Ee(g(r),{key:5})):g(De)==="settings"?(N(),Ee(g(i),{key:6})):ve("",!0):(N(),Ee(fh,{key:0}))],2)]),W(m1),W(s1)])]))}}),vh=je(yh,[["__scopeId","data-v-d8b656e1"]]);ku(vh).mount("#app");export{Hn as $,e1 as A,Oh as B,no as C,rl as D,Mo as E,re as F,Sh as G,Fh as H,We as I,Ms as J,nl as K,Yd as L,Xd as M,Sn as N,Qd as O,Xl as P,Ts as Q,Th as R,Hl as S,Ji as T,Rh as U,Dh as V,Hh as W,Eh as X,Js as Y,En as Z,je as _,W as a,Ih as a0,Ff as a1,kh as a2,Bh as a3,zh as a4,Nh as a5,_h as a6,Ch as a7,bh as a8,ee as a9,gc as aa,qt as ab,Ph as ac,Yl as ad,Po as ae,Lh as af,Ah as ag,zf as ah,xh as ai,Vh as aj,xn as b,j as c,q as d,v as e,ja as f,B as g,Zo as h,ve as i,tt as j,Mh as k,io as l,Ee as m,Pe as n,N as o,Ae as p,X as q,on as r,d as s,x as t,g as u,Ou as v,Vt as w,$h as x,Oe as y,Tt as z};