zen-gitsync 2.18.11 → 2.18.12

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 (58) hide show
  1. package/README.md +14 -14
  2. package/package.json +6 -1
  3. package/src/ui/public/assets/AgentView-CVbcrngz.js +11 -0
  4. package/src/ui/public/assets/{AgentView-CbBLjlfr.css → AgentView-D6MJOrJt.css} +1 -1
  5. package/src/ui/public/assets/{AppVersionBadge-CrDf0lYs.js → AppVersionBadge-7gFB6t_t.js} +2 -2
  6. package/src/ui/public/assets/{BranchSelector-DEHLVln4.js → BranchSelector-BIRNxA6U.js} +1 -1
  7. package/src/ui/public/assets/{CommitForm-D2rVFZf2.js → CommitForm-CWpaazi7.js} +1 -1
  8. package/src/ui/public/assets/{CommonDialog-CV7T8OCb.js → CommonDialog-DrxsmpDL.js} +1 -1
  9. package/src/ui/public/assets/CopySessionButton-C_01fcd3.js +21 -0
  10. package/src/ui/public/assets/EditorView-B7Rq9QV1.css +1 -0
  11. package/src/ui/public/assets/EditorView-D80wG480.js +37 -0
  12. package/src/ui/public/assets/{FlowExecutionViewer-D7FaZSHd.js → FlowExecutionViewer-Ce4Q5ia6.js} +1 -1
  13. package/src/ui/public/assets/{FlowOrchestrationWorkspace-BR3cPhyU.js → FlowOrchestrationWorkspace-Cq1zEt5K.js} +1 -1
  14. package/src/ui/public/assets/{LogList-D_Q3pyMF.js → LogList-DtmJG27U.js} +1 -1
  15. package/src/ui/public/assets/{MindmapView-A4QZ6_c3.js → MindmapView-BR2_C4Du.js} +1 -1
  16. package/src/ui/public/assets/{MonitorView-BljWw76B.js → MonitorView-Cs_kwPBu.js} +1 -1
  17. package/src/ui/public/assets/{ProjectStartupButton-Be5DovFL.js → ProjectStartupButton-BfQJ0i5X.js} +1 -1
  18. package/src/ui/public/assets/{RecentDirectoriesChat-DN7ruCU7.js → RecentDirectoriesChat-_gNQGqkM.js} +1 -1
  19. package/src/ui/public/assets/{RemoteManagerDialog-BSCNy4RC.js → RemoteManagerDialog-KY5I3Ftv.js} +1 -1
  20. package/src/ui/public/assets/{RemoteRepoCard-CeCRQp9p.js → RemoteRepoCard-BUgdGtwC.js} +1 -1
  21. package/src/ui/public/assets/{SourceMapView-B_S-vspy.js → SourceMapView-RkGgdvnN.js} +1 -1
  22. package/src/ui/public/assets/{SvgIcon-9IbiSszR.js → SvgIcon-CP7WAT4C.js} +1 -1
  23. package/src/ui/public/assets/{UserInputNode-DASGnUCl.js → UserInputNode-CwSqPh4O.js} +1 -1
  24. package/src/ui/public/assets/WorkbenchView-CBfccRIP.js +320 -0
  25. package/src/ui/public/assets/WorkbenchView-DzBtCzay.css +1 -0
  26. package/src/ui/public/assets/_plugin-vue_export-helper-BY0jlMBE.js +19 -0
  27. package/src/ui/public/assets/{agentConversations-Cplq42kA.js → agentConversations-CC01a7SP.js} +6 -6
  28. package/src/ui/public/assets/{configStore-Z6Z8hVMO.js → configStore-EvRYufor.js} +1 -1
  29. package/src/ui/public/assets/{dagre-CiGYsZhd.js → dagre-Ct-SQ-7k.js} +3 -3
  30. package/src/ui/public/assets/{element-plus-CJqN49tX.js → element-plus-CDrtgG55.js} +1 -1
  31. package/src/ui/public/assets/{flow-mindmap-C-X_QPQI.js → flow-mindmap-C8x6ucsA.js} +1 -1
  32. package/src/ui/public/assets/{index-C90dYckz.js → index-CyEcaEC9.js} +46 -46
  33. package/src/ui/public/assets/{monaco-CbN14ZVi.js → monaco-BV4P06MT.js} +1 -1
  34. package/src/ui/public/assets/{office-docx-8MF5-THx.js → office-docx-B8BoOvth.js} +1 -1
  35. package/src/ui/public/assets/{office-excel-BTzQyK6y.js → office-excel-CFRkxKv8.js} +1 -1
  36. package/src/ui/public/assets/{office-pptx-DhxvWA0D.js → office-pptx-DXdbDvLM.js} +1 -1
  37. package/src/ui/public/assets/useOrchestrator-C8BD2JSO.js +1 -0
  38. package/src/ui/public/assets/{vendor-Bd8DyOF9.css → vendor-CSFGMcMB.css} +1 -1
  39. package/src/ui/public/assets/{vendor-Cd7TGb0b.js → vendor-DYtaPSUU.js} +4 -4
  40. package/src/ui/public/assets/{vue-flow-x4TlHHzT.js → vue-flow-B7Hdmt-y.js} +1 -1
  41. package/src/ui/public/index.html +12 -12
  42. package/src/ui/server/routes/fileOpen.js +85 -16
  43. package/src/ui/server/routes/workbench/agentChatShared.test.js +0 -1
  44. package/src/ui/server/routes/workbench/dispatchInstruction.js +6 -7
  45. package/src/ui/server/routes/workbench/dispatchInstruction.test.js +3 -19
  46. package/src/ui/server/routes/workbench/index.js +6 -16
  47. package/src/ui/server/routes/workbench/orchestratorPrompt.test.js +2 -2
  48. package/src/ui/server/routes/workbench/orchestratorStore.js +2 -16
  49. package/src/ui/server/routes/workbench/projectRegistry.test.js +1 -5
  50. package/src/ui/server/routes/workbench/shared.js +1 -1
  51. package/src/ui/public/assets/AgentView-D3I3D3YR.js +0 -11
  52. package/src/ui/public/assets/CopySessionButton-BbVtrOa7.js +0 -21
  53. package/src/ui/public/assets/EditorView-BiNRO222.css +0 -1
  54. package/src/ui/public/assets/EditorView-CiW0kkpS.js +0 -37
  55. package/src/ui/public/assets/WorkbenchView-B3v-0vWa.js +0 -305
  56. package/src/ui/public/assets/WorkbenchView-DO2ndsES.css +0 -1
  57. package/src/ui/public/assets/_plugin-vue_export-helper-zp6tdw8N.js +0 -19
  58. package/src/ui/public/assets/useOrchestrator-C3wjJ7p4.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-CiGYsZhd.js","assets/rolldown-runtime-C0FnF6B9.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,o as n,r,t as i}from"./rolldown-runtime-C0FnF6B9.js";import{An as a,Bn as o,Cr as s,Dn as l,Dr as u,En as d,Er as f,Fn as p,Gn as m,Hn as h,Ir as g,Jn as _,Ln as v,Nn as y,O as b,On as x,Pn as S,Qn as C,R as w,Rn as T,Sn as E,Sr as D,Tn as O,Tr as k,Vn as A,Wn as j,Xn as M,Yr as N,Zn as P,Zr as F,_r as I,bn as L,dn as R,er as ee,fr as te,gr as z,hn as ne,hr as re,kn as B,ln as ie,lr as ae,mr as oe,pr as se,qn as ce,rr as le,sr as ue,ti as V,ur as de,vn as fe,vr as pe,wn as me,wr as he,xn as ge,xr as _e,yn as ve,yr as ye,zn as be}from"./element-plus-CJqN49tX.js";import{$ as xe,$n as Se,$t as Ce,A as we,An as Te,At as Ee,B as De,Bn as Oe,Bt as ke,C as Ae,Cn as je,Ct as Me,D as Ne,Dn as Pe,Dt as Fe,E as Ie,En as Le,Et as Re,F as ze,Fn as Be,Ft as Ve,G as He,Gn as Ue,Gt as We,H as Ge,Hn as Ke,Ht as qe,I as Je,In as Ye,It as Xe,J as Ze,Jn as Qe,Jt as $e,K as et,Kn as tt,Kt as nt,L as rt,Ln as it,Lt as at,M as ot,Mn as st,Mt as ct,N as lt,Nn as ut,Nt as dt,O as ft,On as pt,Ot as mt,P as ht,Pn as gt,Pt as _t,Q as eee,Qn as tee,Qt as nee,R as ree,Rn as vt,Rt as iee,S as yt,Sn as bt,St as aee,T as oee,Tn as xt,Tt as see,U as cee,Un as lee,Ut as uee,V as St,Vn as Ct,Vt as dee,W as fee,Wn as wt,Wt as Tt,X as pee,Xn as Et,Xt as Dt,Y as mee,Yn as hee,Yt as Ot,Z as gee,Zn as kt,Zt as _ee,_ as vee,_n as At,_t as jt,a as Mt,an as Nt,ar as yee,at as bee,b as Pt,bn as xee,bt as See,c as Ft,cn as It,ct as Cee,d as wee,dn as Tee,dt as Eee,en as Lt,er as H,et as Dee,f as Rt,fn as Oee,ft as kee,g as zt,gn as U,gt as Aee,h as Bt,hn as Vt,ht as Ht,i as jee,in as Ut,ir as W,it as Mee,j as Nee,jn as Wt,jt as Pee,k as Gt,kn as Kt,l as qt,ln as Jt,lt as Fee,m as Yt,mn as Xt,mt as Iee,nn as Lee,nr as Zt,nt as Ree,o as zee,on as Qt,ot as Bee,p as $t,pn as en,pt as Vee,q as Hee,qn as tn,qt as Uee,r as Wee,rn as nn,rr as G,rt as Gee,s as Kee,sn as rn,st as qee,tn as an,tr as Jee,tt as Yee,u as Xee,un as on,ut as Zee,v as Qee,vn as $ee,vt as sn,w as cn,wn as ln,wt as un,x as ete,xn as tte,xt as dn,y as nte,yn as fn,yt as rte,z as ite,zn as pn,zt as mn}from"./dagre-CiGYsZhd.js";var ate=Object.create,hn=Object.defineProperty,ote=Object.getOwnPropertyDescriptor,gn=Object.getOwnPropertyNames,ste=Object.getPrototypeOf,cte=Object.prototype.hasOwnProperty,lte=(e,t)=>function(){return e&&(t=(0,e[gn(e)[0]])(e=0)),t},ute=(e,t)=>function(){return t||(0,e[gn(e)[0]])((t={exports:{}}).exports,t),t.exports},dte=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of gn(t))!cte.call(e,i)&&i!==n&&hn(e,i,{get:()=>t[i],enumerable:!(r=ote(t,i))||r.enumerable});return e},fte=(e,t,n)=>(n=e==null?{}:ate(ste(e)),dte(t||!e||!e.__esModule?hn(n,`default`,{value:e,enumerable:!0}):n,e)),_n=lte({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),pte=ute({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){_n(),t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let l=a[s],u=e[l];o[l]=typeof u!=`object`||!u?u:u.constructor!==Object&&(r=t.get(u.constructor))?r(u,i):ArrayBuffer.isView(u)?n(u):i(u)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?l:s;function o(e,o){let s=Object.keys(e),l=Array(s.length);for(let u=0;u<s.length;u++){let d=s[u],f=e[d];if(typeof f!=`object`||!f)l[d]=f;else if(f.constructor!==Object&&(a=i.get(f.constructor)))l[d]=a(f,o);else if(ArrayBuffer.isView(f))l[d]=n(f);else{let e=t.indexOf(f);l[d]=e===-1?o(f):r[e]}}return l}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let l={};t.push(e),r.push(l);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let u=e[o];if(typeof u!=`object`||!u)l[o]=u;else if(u.constructor!==Object&&(a=i.get(u.constructor)))l[o]=a(u,s);else if(ArrayBuffer.isView(u))l[o]=n(u);else{let e=t.indexOf(u);l[o]=e===-1?s(u):r[e]}}return t.pop(),r.pop(),l}function l(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,l);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,l);let s={};t.push(e),r.push(s);for(let o in e){let u=e[o];if(typeof u!=`object`||!u)s[o]=u;else if(u.constructor!==Object&&(a=i.get(u.constructor)))s[o]=a(u,l);else if(ArrayBuffer.isView(u))s[o]=n(u);else{let e=t.indexOf(u);s[o]=e===-1?l(u):r[e]}}return t.pop(),r.pop(),s}}}});_n(),_n(),_n();var vn=typeof navigator<`u`,yn=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};yn.chrome!==void 0&&yn.chrome.devtools,vn&&(yn.self,yn.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__,_n();var mte=fte(pte(),1),hte=/(?:^|[-_/])(\w)/g;function gte(e,t){return t?t.toUpperCase():``}function _te(e){return e&&`${e}`.replace(hte,gte)}function vte(e,t){let n=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));let r=n.lastIndexOf(`/`),i=n.substring(r+1);if(t){let e=i.lastIndexOf(t);return i.substring(0,e)}return``}var bn=(0,mte.default)({circles:!0}),yte={trailing:!0};function xn(e,t=25,n={}){if(n={...yte,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,l=(t,r)=>(o=bte(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=l(t,s);return s=null,e}}),o);return function(...e){return o?(n.trailing&&(s=e),o):new Promise(o=>{let s=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:l(this,e);for(let e of a)e(t);a=[]},t),s?(r=l(this,e),o(r)):a.push(o)})}}async function bte(e,t,n){return await e.apply(t,n)}function Sn(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Sn(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var xte={run:e=>e()},Cn=console.createTask===void 0?()=>xte:console.createTask;function Ste(e,t){let n=Cn(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function Cte(e,t){let n=Cn(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function wn(e,t){for(let n of[...e])n(t)}var wte=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Sn(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Sn(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Ste,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Cte,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&wn(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&wn(this._after,r)}):(this._after&&r&&wn(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Tn(){return new wte}var Tte=Object.create,En=Object.defineProperty,Ete=Object.getOwnPropertyDescriptor,Dn=Object.getOwnPropertyNames,Dte=Object.getPrototypeOf,Ote=Object.prototype.hasOwnProperty,kte=(e,t)=>function(){return e&&(t=(0,e[Dn(e)[0]])(e=0)),t},On=(e,t)=>function(){return t||(0,e[Dn(e)[0]])((t={exports:{}}).exports,t),t.exports},Ate=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Dn(t))!Ote.call(e,i)&&i!==n&&En(e,i,{get:()=>t[i],enumerable:!(r=Ete(t,i))||r.enumerable});return e},jte=(e,t,n)=>(n=e==null?{}:Tte(Dte(e)),Ate(t||!e||!e.__esModule?En(n,`default`,{value:e,enumerable:!0}):n,e)),kn=kte({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Mte=On({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){kn(),(function(e){var n={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`Ae`,Å:`A`,Æ:`AE`,Ç:`C`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,Ð:`D`,Ñ:`N`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`Oe`,Ő:`O`,Ø:`O`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`Ue`,Ű:`U`,Ý:`Y`,Þ:`TH`,ß:`ss`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`ae`,å:`a`,æ:`ae`,ç:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ì:`i`,í:`i`,î:`i`,ï:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`oe`,ő:`o`,ø:`o`,ù:`u`,ú:`u`,û:`u`,ü:`ue`,ű:`u`,ý:`y`,þ:`th`,ÿ:`y`,ẞ:`SS`,ا:`a`,أ:`a`,إ:`i`,آ:`aa`,ؤ:`u`,ئ:`e`,ء:`a`,ب:`b`,ت:`t`,ث:`th`,ج:`j`,ح:`h`,خ:`kh`,د:`d`,ذ:`th`,ر:`r`,ز:`z`,س:`s`,ش:`sh`,ص:`s`,ض:`dh`,ط:`t`,ظ:`z`,ع:`a`,غ:`gh`,ف:`f`,ق:`q`,ك:`k`,ل:`l`,م:`m`,ن:`n`,ه:`h`,و:`w`,ي:`y`,ى:`a`,ة:`h`,ﻻ:`la`,ﻷ:`laa`,ﻹ:`lai`,ﻵ:`laa`,گ:`g`,چ:`ch`,پ:`p`,ژ:`zh`,ک:`k`,ی:`y`,"َ":`a`,"ً":`an`,"ِ":`e`,"ٍ":`en`,"ُ":`u`,"ٌ":`on`,"ْ":``,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`,က:`k`,ခ:`kh`,ဂ:`g`,ဃ:`ga`,င:`ng`,စ:`s`,ဆ:`sa`,ဇ:`z`,စျ:`za`,ည:`ny`,ဋ:`t`,ဌ:`ta`,ဍ:`d`,ဎ:`da`,ဏ:`na`,တ:`t`,ထ:`ta`,ဒ:`d`,ဓ:`da`,န:`n`,ပ:`p`,ဖ:`pa`,ဗ:`b`,ဘ:`ba`,မ:`m`,ယ:`y`,ရ:`ya`,လ:`l`,ဝ:`w`,သ:`th`,ဟ:`h`,ဠ:`la`,အ:`a`,"ြ":`y`,"ျ":`ya`,"ွ":`w`,"ြွ":`yw`,"ျွ":`ywa`,"ှ":`h`,ဧ:`e`,"၏":`-e`,ဣ:`i`,ဤ:`-i`,ဉ:`u`,ဦ:`-u`,ဩ:`aw`,သြော:`aw`,ဪ:`aw`,"၀":`0`,"၁":`1`,"၂":`2`,"၃":`3`,"၄":`4`,"၅":`5`,"၆":`6`,"၇":`7`,"၈":`8`,"၉":`9`,"္":``,"့":``,"း":``,č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`,ހ:`h`,ށ:`sh`,ނ:`n`,ރ:`r`,ބ:`b`,ޅ:`lh`,ކ:`k`,އ:`a`,ވ:`v`,މ:`m`,ފ:`f`,ދ:`dh`,ތ:`th`,ލ:`l`,ގ:`g`,ޏ:`gn`,ސ:`s`,ޑ:`d`,ޒ:`z`,ޓ:`t`,ޔ:`y`,ޕ:`p`,ޖ:`j`,ޗ:`ch`,ޘ:`tt`,ޙ:`hh`,ޚ:`kh`,ޛ:`th`,ޜ:`z`,ޝ:`sh`,ޞ:`s`,ޟ:`d`,ޠ:`t`,ޡ:`z`,ޢ:`a`,ޣ:`gh`,ޤ:`q`,ޥ:`w`,"ަ":`a`,"ާ":`aa`,"ި":`i`,"ީ":`ee`,"ު":`u`,"ޫ":`oo`,"ެ":`e`,"ޭ":`ey`,"ޮ":`o`,"ޯ":`oa`,"ް":``,ა:`a`,ბ:`b`,გ:`g`,დ:`d`,ე:`e`,ვ:`v`,ზ:`z`,თ:`t`,ი:`i`,კ:`k`,ლ:`l`,მ:`m`,ნ:`n`,ო:`o`,პ:`p`,ჟ:`zh`,რ:`r`,ს:`s`,ტ:`t`,უ:`u`,ფ:`p`,ქ:`k`,ღ:`gh`,ყ:`q`,შ:`sh`,ჩ:`ch`,ც:`ts`,ძ:`dz`,წ:`ts`,ჭ:`ch`,ხ:`kh`,ჯ:`j`,ჰ:`h`,α:`a`,β:`v`,γ:`g`,δ:`d`,ε:`e`,ζ:`z`,η:`i`,θ:`th`,ι:`i`,κ:`k`,λ:`l`,μ:`m`,ν:`n`,ξ:`ks`,ο:`o`,π:`p`,ρ:`r`,σ:`s`,τ:`t`,υ:`y`,φ:`f`,χ:`x`,ψ:`ps`,ω:`o`,ά:`a`,έ:`e`,ί:`i`,ό:`o`,ύ:`y`,ή:`i`,ώ:`o`,ς:`s`,ϊ:`i`,ΰ:`y`,ϋ:`y`,ΐ:`i`,Α:`A`,Β:`B`,Γ:`G`,Δ:`D`,Ε:`E`,Ζ:`Z`,Η:`I`,Θ:`TH`,Ι:`I`,Κ:`K`,Λ:`L`,Μ:`M`,Ν:`N`,Ξ:`KS`,Ο:`O`,Π:`P`,Ρ:`R`,Σ:`S`,Τ:`T`,Υ:`Y`,Φ:`F`,Χ:`X`,Ψ:`PS`,Ω:`O`,Ά:`A`,Έ:`E`,Ί:`I`,Ό:`O`,Ύ:`Y`,Ή:`I`,Ώ:`O`,Ϊ:`I`,Ϋ:`Y`,ā:`a`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,ū:`u`,Ā:`A`,Ē:`E`,Ģ:`G`,Ī:`I`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Ū:`U`,Ќ:`Kj`,ќ:`kj`,Љ:`Lj`,љ:`lj`,Њ:`Nj`,њ:`nj`,Тс:`Ts`,тс:`ts`,ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`E`,Ł:`L`,Ń:`N`,Ś:`S`,Ź:`Z`,Ż:`Z`,Є:`Ye`,І:`I`,Ї:`Yi`,Ґ:`G`,є:`ye`,і:`i`,ї:`yi`,ґ:`g`,ă:`a`,Ă:`A`,ș:`s`,Ș:`S`,ț:`t`,Ț:`T`,ţ:`t`,Ţ:`T`,а:`a`,б:`b`,в:`v`,г:`g`,д:`d`,е:`e`,ё:`yo`,ж:`zh`,з:`z`,и:`i`,й:`i`,к:`k`,л:`l`,м:`m`,н:`n`,о:`o`,п:`p`,р:`r`,с:`s`,т:`t`,у:`u`,ф:`f`,х:`kh`,ц:`c`,ч:`ch`,ш:`sh`,щ:`sh`,ъ:``,ы:`y`,ь:``,э:`e`,ю:`yu`,я:`ya`,А:`A`,Б:`B`,В:`V`,Г:`G`,Д:`D`,Е:`E`,Ё:`Yo`,Ж:`Zh`,З:`Z`,И:`I`,Й:`I`,К:`K`,Л:`L`,М:`M`,Н:`N`,О:`O`,П:`P`,Р:`R`,С:`S`,Т:`T`,У:`U`,Ф:`F`,Х:`Kh`,Ц:`C`,Ч:`Ch`,Ш:`Sh`,Щ:`Sh`,Ъ:``,Ы:`Y`,Ь:``,Э:`E`,Ю:`Yu`,Я:`Ya`,ђ:`dj`,ј:`j`,ћ:`c`,џ:`dz`,Ђ:`Dj`,Ј:`j`,Ћ:`C`,Џ:`Dz`,ľ:`l`,ĺ:`l`,ŕ:`r`,Ľ:`L`,Ĺ:`L`,Ŕ:`R`,ş:`s`,Ş:`S`,ı:`i`,İ:`I`,ğ:`g`,Ğ:`G`,ả:`a`,Ả:`A`,ẳ:`a`,Ẳ:`A`,ẩ:`a`,Ẩ:`A`,đ:`d`,Đ:`D`,ẹ:`e`,Ẹ:`E`,ẽ:`e`,Ẽ:`E`,ẻ:`e`,Ẻ:`E`,ế:`e`,Ế:`E`,ề:`e`,Ề:`E`,ệ:`e`,Ệ:`E`,ễ:`e`,Ễ:`E`,ể:`e`,Ể:`E`,ỏ:`o`,ọ:`o`,Ọ:`o`,ố:`o`,Ố:`O`,ồ:`o`,Ồ:`O`,ổ:`o`,Ổ:`O`,ộ:`o`,Ộ:`O`,ỗ:`o`,Ỗ:`O`,ơ:`o`,Ơ:`O`,ớ:`o`,Ớ:`O`,ờ:`o`,Ờ:`O`,ợ:`o`,Ợ:`O`,ỡ:`o`,Ỡ:`O`,Ở:`o`,ở:`o`,ị:`i`,Ị:`I`,ĩ:`i`,Ĩ:`I`,ỉ:`i`,Ỉ:`i`,ủ:`u`,Ủ:`U`,ụ:`u`,Ụ:`U`,ũ:`u`,Ũ:`U`,ư:`u`,Ư:`U`,ứ:`u`,Ứ:`U`,ừ:`u`,Ừ:`U`,ự:`u`,Ự:`U`,ữ:`u`,Ữ:`U`,ử:`u`,Ử:`ư`,ỷ:`y`,Ỷ:`y`,ỳ:`y`,Ỳ:`Y`,ỵ:`y`,Ỵ:`Y`,ỹ:`y`,Ỹ:`Y`,ạ:`a`,Ạ:`A`,ấ:`a`,Ấ:`A`,ầ:`a`,Ầ:`A`,ậ:`a`,Ậ:`A`,ẫ:`a`,Ẫ:`A`,ắ:`a`,Ắ:`A`,ằ:`a`,Ằ:`A`,ặ:`a`,Ặ:`A`,ẵ:`a`,Ẵ:`A`,"⓪":`0`,"①":`1`,"②":`2`,"③":`3`,"④":`4`,"⑤":`5`,"⑥":`6`,"⑦":`7`,"⑧":`8`,"⑨":`9`,"⑩":`10`,"⑪":`11`,"⑫":`12`,"⑬":`13`,"⑭":`14`,"⑮":`15`,"⑯":`16`,"⑰":`17`,"⑱":`18`,"⑲":`18`,"⑳":`18`,"⓵":`1`,"⓶":`2`,"⓷":`3`,"⓸":`4`,"⓹":`5`,"⓺":`6`,"⓻":`7`,"⓼":`8`,"⓽":`9`,"⓾":`10`,"⓿":`0`,"⓫":`11`,"⓬":`12`,"⓭":`13`,"⓮":`14`,"⓯":`15`,"⓰":`16`,"⓱":`17`,"⓲":`18`,"⓳":`19`,"⓴":`20`,"Ⓐ":`A`,"Ⓑ":`B`,"Ⓒ":`C`,"Ⓓ":`D`,"Ⓔ":`E`,"Ⓕ":`F`,"Ⓖ":`G`,"Ⓗ":`H`,"Ⓘ":`I`,"Ⓙ":`J`,"Ⓚ":`K`,"Ⓛ":`L`,"Ⓜ":`M`,"Ⓝ":`N`,"Ⓞ":`O`,"Ⓟ":`P`,"Ⓠ":`Q`,"Ⓡ":`R`,"Ⓢ":`S`,"Ⓣ":`T`,"Ⓤ":`U`,"Ⓥ":`V`,"Ⓦ":`W`,"Ⓧ":`X`,"Ⓨ":`Y`,"Ⓩ":`Z`,"ⓐ":`a`,"ⓑ":`b`,"ⓒ":`c`,"ⓓ":`d`,"ⓔ":`e`,"ⓕ":`f`,"ⓖ":`g`,"ⓗ":`h`,"ⓘ":`i`,"ⓙ":`j`,"ⓚ":`k`,"ⓛ":`l`,"ⓜ":`m`,"ⓝ":`n`,"ⓞ":`o`,"ⓟ":`p`,"ⓠ":`q`,"ⓡ":`r`,"ⓢ":`s`,"ⓣ":`t`,"ⓤ":`u`,"ⓦ":`v`,"ⓥ":`w`,"ⓧ":`x`,"ⓨ":`y`,"ⓩ":`z`,"“":`"`,"”":`"`,"‘":`'`,"’":`'`,"∂":`d`,ƒ:`f`,"™":`(TM)`,"©":`(C)`,œ:`oe`,Œ:`OE`,"®":`(R)`,"†":`+`,"℠":`(SM)`,"…":`...`,"˚":`o`,º:`o`,ª:`a`,"•":`*`,"၊":`,`,"။":`.`,$:`USD`,"€":`EUR`,"₢":`BRN`,"₣":`FRF`,"£":`GBP`,"₤":`ITL`,"₦":`NGN`,"₧":`ESP`,"₩":`KRW`,"₪":`ILS`,"₫":`VND`,"₭":`LAK`,"₮":`MNT`,"₯":`GRD`,"₱":`ARS`,"₲":`PYG`,"₳":`ARA`,"₴":`UAH`,"₵":`GHS`,"¢":`cent`,"¥":`CNY`,元:`CNY`,円:`YEN`,"﷼":`IRR`,"₠":`EWE`,"฿":`THB`,"₨":`INR`,"₹":`INR`,"₰":`PF`,"₺":`TRY`,"؋":`AFN`,"₼":`AZN`,лв:`BGN`,"៛":`KHR`,"₡":`CRC`,"₸":`KZT`,ден:`MKD`,zł:`PLN`,"₽":`RUB`,"₾":`GEL`},r=[`်`,`ް`],i={"ာ":`a`,"ါ":`a`,"ေ":`e`,"ဲ":`e`,"ိ":`i`,"ီ":`i`,"ို":`o`,"ု":`u`,"ူ":`u`,"ေါင်":`aung`,"ော":`aw`,"ော်":`aw`,"ေါ":`aw`,"ေါ်":`aw`,"်":`်`,က်:`et`,"ိုက်":`aik`,"ောက်":`auk`,င်:`in`,"ိုင်":`aing`,"ောင်":`aung`,စ်:`it`,ည်:`i`,တ်:`at`,"ိတ်":`eik`,"ုတ်":`ok`,"ွတ်":`ut`,"ေတ်":`it`,ဒ်:`d`,"ိုဒ်":`ok`,"ုဒ်":`ait`,န်:`an`,"ာန်":`an`,"ိန်":`ein`,"ုန်":`on`,"ွန်":`un`,ပ်:`at`,"ိပ်":`eik`,"ုပ်":`ok`,"ွပ်":`ut`,န်ုပ်:`nub`,မ်:`an`,"ိမ်":`ein`,"ုမ်":`on`,"ွမ်":`un`,ယ်:`e`,"ိုလ်":`ol`,ဉ်:`in`,"ံ":`an`,"ိံ":`ein`,"ုံ":`on`,"ައް":`ah`,"ަށް":`ah`},a={en:{},az:{ç:`c`,ə:`e`,ğ:`g`,ı:`i`,ö:`o`,ş:`s`,ü:`u`,Ç:`C`,Ə:`E`,Ğ:`G`,İ:`I`,Ö:`O`,Ş:`S`,Ü:`U`},cs:{č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`},fi:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},hu:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`,ü:`u`,Ü:`U`,ű:`u`,Ű:`U`},lt:{ą:`a`,č:`c`,ę:`e`,ė:`e`,į:`i`,š:`s`,ų:`u`,ū:`u`,ž:`z`,Ą:`A`,Č:`C`,Ę:`E`,Ė:`E`,Į:`I`,Š:`S`,Ų:`U`,Ū:`U`},lv:{ā:`a`,č:`c`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,š:`s`,ū:`u`,ž:`z`,Ā:`A`,Č:`C`,Ē:`E`,Ģ:`G`,Ī:`i`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Š:`S`,Ū:`u`,Ž:`Z`},pl:{ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ó:`o`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`e`,Ł:`L`,Ń:`N`,Ó:`O`,Ś:`S`,Ź:`Z`,Ż:`Z`},sv:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},sk:{ä:`a`,Ä:`A`},sr:{љ:`lj`,њ:`nj`,Љ:`Lj`,Њ:`Nj`,đ:`dj`,Đ:`Dj`},tr:{Ü:`U`,Ö:`O`,ü:`u`,ö:`o`}},o={ar:{"∆":`delta`,"∞":`la-nihaya`,"♥":`hob`,"&":`wa`,"|":`aw`,"<":`aqal-men`,">":`akbar-men`,"∑":`majmou`,"¤":`omla`},az:{},ca:{"∆":`delta`,"∞":`infinit`,"♥":`amor`,"&":`i`,"|":`o`,"<":`menys que`,">":`mes que`,"∑":`suma dels`,"¤":`moneda`},cs:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`nebo`,"<":`mensi nez`,">":`vetsi nez`,"∑":`soucet`,"¤":`mena`},de:{"∆":`delta`,"∞":`unendlich`,"♥":`Liebe`,"&":`und`,"|":`oder`,"<":`kleiner als`,">":`groesser als`,"∑":`Summe von`,"¤":`Waehrung`},dv:{"∆":`delta`,"∞":`kolunulaa`,"♥":`loabi`,"&":`aai`,"|":`noonee`,"<":`ah vure kuda`,">":`ah vure bodu`,"∑":`jumula`,"¤":`faisaa`},en:{"∆":`delta`,"∞":`infinity`,"♥":`love`,"&":`and`,"|":`or`,"<":`less than`,">":`greater than`,"∑":`sum`,"¤":`currency`},es:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`y`,"|":`u`,"<":`menos que`,">":`mas que`,"∑":`suma de los`,"¤":`moneda`},fa:{"∆":`delta`,"∞":`bi-nahayat`,"♥":`eshgh`,"&":`va`,"|":`ya`,"<":`kamtar-az`,">":`bishtar-az`,"∑":`majmooe`,"¤":`vahed`},fi:{"∆":`delta`,"∞":`aarettomyys`,"♥":`rakkaus`,"&":`ja`,"|":`tai`,"<":`pienempi kuin`,">":`suurempi kuin`,"∑":`summa`,"¤":`valuutta`},fr:{"∆":`delta`,"∞":`infiniment`,"♥":`Amour`,"&":`et`,"|":`ou`,"<":`moins que`,">":`superieure a`,"∑":`somme des`,"¤":`monnaie`},ge:{"∆":`delta`,"∞":`usasruloba`,"♥":`siqvaruli`,"&":`da`,"|":`an`,"<":`naklebi`,">":`meti`,"∑":`jami`,"¤":`valuta`},gr:{},hu:{"∆":`delta`,"∞":`vegtelen`,"♥":`szerelem`,"&":`es`,"|":`vagy`,"<":`kisebb mint`,">":`nagyobb mint`,"∑":`szumma`,"¤":`penznem`},it:{"∆":`delta`,"∞":`infinito`,"♥":`amore`,"&":`e`,"|":`o`,"<":`minore di`,">":`maggiore di`,"∑":`somma`,"¤":`moneta`},lt:{"∆":`delta`,"∞":`begalybe`,"♥":`meile`,"&":`ir`,"|":`ar`,"<":`maziau nei`,">":`daugiau nei`,"∑":`suma`,"¤":`valiuta`},lv:{"∆":`delta`,"∞":`bezgaliba`,"♥":`milestiba`,"&":`un`,"|":`vai`,"<":`mazak neka`,">":`lielaks neka`,"∑":`summa`,"¤":`valuta`},my:{"∆":`kwahkhyaet`,"∞":`asaonasme`,"♥":`akhyait`,"&":`nhin`,"|":`tho`,"<":`ngethaw`,">":`kyithaw`,"∑":`paungld`,"¤":`ngwekye`},mk:{},nl:{"∆":`delta`,"∞":`oneindig`,"♥":`liefde`,"&":`en`,"|":`of`,"<":`kleiner dan`,">":`groter dan`,"∑":`som`,"¤":`valuta`},pl:{"∆":`delta`,"∞":`nieskonczonosc`,"♥":`milosc`,"&":`i`,"|":`lub`,"<":`mniejsze niz`,">":`wieksze niz`,"∑":`suma`,"¤":`waluta`},pt:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`e`,"|":`ou`,"<":`menor que`,">":`maior que`,"∑":`soma`,"¤":`moeda`},ro:{"∆":`delta`,"∞":`infinit`,"♥":`dragoste`,"&":`si`,"|":`sau`,"<":`mai mic ca`,">":`mai mare ca`,"∑":`suma`,"¤":`valuta`},ru:{"∆":`delta`,"∞":`beskonechno`,"♥":`lubov`,"&":`i`,"|":`ili`,"<":`menshe`,">":`bolshe`,"∑":`summa`,"¤":`valjuta`},sk:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`alebo`,"<":`menej ako`,">":`viac ako`,"∑":`sucet`,"¤":`mena`},sr:{},tr:{"∆":`delta`,"∞":`sonsuzluk`,"♥":`ask`,"&":`ve`,"|":`veya`,"<":`kucuktur`,">":`buyuktur`,"∑":`toplam`,"¤":`para birimi`},uk:{"∆":`delta`,"∞":`bezkinechnist`,"♥":`lubov`,"&":`i`,"|":`abo`,"<":`menshe`,">":`bilshe`,"∑":`suma`,"¤":`valjuta`},vn:{"∆":`delta`,"∞":`vo cuc`,"♥":`yeu`,"&":`va`,"|":`hoac`,"<":`nho hon`,">":`lon hon`,"∑":`tong`,"¤":`tien te`}},s=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),l=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),u=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),d=function(e,t){var d=`-`,f=``,h=``,g=!0,_={},v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(d=t),w=o.en,T=a.en,typeof t==`object`)for(O in v=t.maintainCase||!1,_=t.custom&&typeof t.custom==`object`?t.custom:_,b=+t.truncate>1&&t.truncate||!1,x=t.uric||!1,S=t.uricNoSlash||!1,C=t.mark||!1,g=t.symbols!==!1&&t.lang!==!1,d=t.separator||d,x&&(M+=s),S&&(M+=l),C&&(M+=u),w=t.lang&&o[t.lang]&&g?o[t.lang]:g?o.en:{},T=t.lang&&a[t.lang]?a[t.lang]:t.lang===!1||t.lang===!0?{}:a.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){_[e+``]=e+``}),y=!0):y=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){_[e+``]=e+``}),Object.keys(_).forEach(function(t){var n=t.length>1?RegExp(`\\b`+p(t)+`\\b`,`gi`):new RegExp(p(t),`gi`);e=e.replace(n,_[t])}),_)M+=O;for(M+=d,M=p(M),e=e.replace(/(^\s+|\s+$)/g,``),A=!1,j=!1,D=0,k=e.length;D<k;D++)O=e[D],m(O,_)?A=!1:T[O]?(O=A&&T[O].match(/[A-Za-z0-9]/)?` `+T[O]:T[O],A=!1):O in n?(D+1<k&&r.indexOf(e[D+1])>=0?(h+=O,O=``):j===!0?(O=i[h]+n[O],h=``):O=A&&n[O].match(/[A-Za-z0-9]/)?` `+n[O]:n[O],A=!1,j=!1):O in i?(h+=O,O=``,D===k-1&&(O=i[h]),j=!0):w[O]&&!(x&&s.indexOf(O)!==-1)&&!(S&&l.indexOf(O)!==-1)?(O=A||f.substr(-1).match(/[A-Za-z0-9]/)?d+w[O]:w[O],O+=e[D+1]!==void 0&&e[D+1].match(/[A-Za-z0-9]/)?d:``,A=!0):(j===!0?(O=i[h]+O,h=``,j=!1):A&&(/[A-Za-z0-9]/.test(O)||f.substr(-1).match(/A-Za-z0-9]/))&&(O=` `+O),A=!1),f+=O.replace(RegExp(`[^\\w\\s`+M+`_-]`,`g`),d);return y&&(f=f.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(n===null?``:n);return Object.keys(_).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),f=f.replace(/\s+/g,d).replace(RegExp(`\\`+d+`+`,`g`),d).replace(RegExp(`(^\\`+d+`+|\\`+d+`+$)`,`g`),``),b&&f.length>b&&(E=f.charAt(b)===d,f=f.slice(0,b),E||(f=f.slice(0,f.lastIndexOf(d)))),!v&&!y&&(f=f.toLowerCase()),f},f=function(e){return function(t){return d(t,e)}},p=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},m=function(e,t){for(var n in t)if(t[n]===e)return!0};if(t!==void 0&&t.exports)t.exports=d,t.exports.createSlug=f;else if(typeof define<`u`&&define.amd)define([],function(){return d});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=d,e.createSlug=f}catch{}})(e)}}),Nte=On({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){kn(),t.exports=Mte()}});kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn();function Pte(e){let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function Fte(e){let t=e.__file;if(t)return _te(vte(t,`.vue`))}function An(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function jn(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Mn(e){let t=e.subTree?.type,n=jn(e);return n?n?.types?.Fragment===t:!1}function Nn(e){let t=Pte(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return An(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return An(e,t);return Fte(e?.type||{})||`Anonymous Component`}function Ite(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function Pn(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function Lte(){let e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Fn;function Rte(e){return Fn||=document.createRange(),Fn.selectNode(e),Fn.getBoundingClientRect()}function zte(e){let t=Lte();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],i;if(r.component)i=Ln(r.component);else if(r.el){let e=r.el;e.nodeType===1||e.getBoundingClientRect?i=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(i=Rte(e))}i&&Bte(t,i)}return t}function Bte(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var In={top:0,left:0,right:0,bottom:0,width:0,height:0};function Ln(e){let t=e.subTree.el;return typeof window>`u`?In:Mn(e)?zte(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?Ln(e.subTree.component):In}kn();function Rn(e){return Mn(e)?Vte(e.subTree):e.subTree?[e.subTree.el]:[]}function Vte(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...Rn(e.component)):e?.el&&t.push(e.el)}),t}var zn=`__vue-devtools-component-inspector__`,Bn=`__vue-devtools-component-inspector__card__`,Vn=`__vue-devtools-component-inspector__name__`,Hn=`__vue-devtools-component-inspector__indicator__`,Un={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},Hte={fontFamily:`Arial, Helvetica, sans-serif`,padding:`5px 8px`,borderRadius:`4px`,textAlign:`left`,position:`absolute`,left:0,color:`#e9e9e9`,fontSize:`14px`,fontWeight:600,lineHeight:`24px`,backgroundColor:`#42b883`,boxShadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},Ute={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function Wn(){return document.getElementById(zn)}function Wte(){return document.getElementById(Bn)}function Gte(){return document.getElementById(Hn)}function Kte(){return document.getElementById(Vn)}function Gn(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Kn(e){let t=document.createElement(`div`);t.id=e.elementId??zn,Object.assign(t.style,{...Un,...Gn(e.bounds),...e.style});let n=document.createElement(`span`);n.id=Bn,Object.assign(n.style,{...Hte,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=Vn,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;let i=document.createElement(`i`);return i.id=Hn,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,Ute),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function qn(e){let t=Wn(),n=Wte(),r=Kte(),i=Gte();t&&(Object.assign(t.style,{...Un,...Gn(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:`-35px`}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function qte(e){let t=Ln(e);if(!t.width&&!t.height)return;let n=Nn(e);Wn()?qn({bounds:t,name:n}):Kn({bounds:t,name:n})}function Jn(){let e=Wn();e&&(e.style.display=`none`)}var Yn=null;function Xn(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(Yn=e,e.vnode.el)){let t=Ln(e),n=Nn(e);Wn()?qn({bounds:t,name:n}):Kn({bounds:t,name:n})}}}function Jte(e,t){e.preventDefault(),e.stopPropagation(),Yn&&t(Ite(Yn))}var Zn=null;function Yte(){Jn(),window.removeEventListener(`mouseover`,Xn),window.removeEventListener(`click`,Zn,!0),Zn=null}function Xte(){return window.addEventListener(`mouseover`,Xn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Jte(n,n=>{window.removeEventListener(`click`,t,!0),Zn=null,window.removeEventListener(`mouseover`,Xn);let r=Wn();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Zn=t,window.addEventListener(`click`,t,!0)})}function Zte(e){let t=Pn(_r.value,e.id);if(t){let[n]=Rn(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=Ln(t),n=document.createElement(`div`),r={...Gn(e),position:`absolute`};Object.assign(n.style,r),document.body.appendChild(n),n.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{let n=Ln(t);if(n.width||n.height){let r=Nn(t),i=Wn();i?qn({...e,name:r,bounds:n}):Kn({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}kn();var Qn;(Qn=yn).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??(Qn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Qte(e){let t=0,n=setInterval(()=>{yn.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function $te(){let e=yn.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function ene(){return new Promise(e=>{function t(){$te(),e(yn.__VUE_INSPECTOR__)}yn.__VUE_INSPECTOR__?t():Qte(()=>{t()})})}kn(),kn();function tne(e){return!!(e&&e.__v_isReadonly)}function $n(e){return tne(e)?$n(e.__v_raw):!!(e&&e.__v_isReactive)}function er(e){return!!(e&&e.__v_isRef===!0)}function tr(e){let t=e&&e.__v_raw;return t?tr(t):e}var nr=class{constructor(){this.refEditor=new nne}set(e,t,n,r){let i=Array.isArray(t)?t:t.split(`.`);for(;i.length>1;){let t=i.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let a=i[0],o=this.refEditor.get(e)[a];r?r(e,a,n):this.refEditor.isRef(o)?this.refEditor.set(o,n):e[a]=n}get(e,t){let n=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<n.length;t++)if(e=e instanceof Map?e.get(n[t]):e[n[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;let r=Array.isArray(t)?t.slice():t.split(`.`),i=n?2:1;for(;e&&r.length>i;){let t=r.shift();e=e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):tr(t)instanceof Map?t.delete(n):tr(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){let i=t[e.newKey||n];this.refEditor.isRef(i)?this.refEditor.set(i,r):tr(t)instanceof Map?t.set(e.newKey||n,r):tr(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},nne=class{set(e,t){if(er(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let n=Object.keys(t);if(e instanceof Map){let r=new Set(e.keys());n.forEach(n=>{e.set(n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>e.delete(t));return}let r=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return er(e)?e.value:e}isRef(e){return er(e)||$n(e)}};new nr,kn(),kn(),kn();var rne=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function ine(){if(typeof window>`u`||!vn||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(rne);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}kn(),kn(),kn();var rr;(rr=yn).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??(rr.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var ane=new Proxy(yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function one(e,t){yr.timelineLayersState[t.id]=!1,ane.push({...e,descriptorId:t.id,appRecord:jn(t.app)})}var ir;(ir=yn).__VUE_DEVTOOLS_KIT_INSPECTOR__??(ir.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var ar=new Proxy(yn.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),or=xn(()=>{Or.hooks.callHook(`sendInspectorToClient`,sr())});function sne(e,t){ar.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:jn(t.app)}),or()}function sr(){return ar.filter(e=>e.descriptor.app===_r.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${(n?.icon)?.replace(/_/g,`-`)}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function cr(e,t){return ar.find(n=>n.options.id===e&&(!t||n.descriptor.app===t))}function cne(){let e=Tn();e.hook(`addInspector`,({inspector:e,plugin:t})=>{sne(e,t.descriptor)});let t=xn(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||yr.highPerfModeEnabled)return;let r=cr(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:r?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},`getInspectorTree`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},`sendInspectorTreeToClient`)},120);e.hook(`sendInspectorTree`,t);let n=xn(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||yr.highPerfModeEnabled)return;let r=cr(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:r?.selectedNodeId||``,state:null},a={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,a))),t()},`getInspectorState`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},`sendInspectorStateToClient`)},120);return e.hook(`sendInspectorState`,n),e.hook(`customInspectorSelectNode`,({inspectorId:e,nodeId:t,plugin:n})=>{let r=cr(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(`timelineLayerAdded`,({options:e,plugin:t})=>{one(e,t.descriptor)}),e.hook(`timelineEventAdded`,({options:t,plugin:n})=>{yr.highPerfModeEnabled||!yr.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},`sendTimelineEventToClient`)}),e.hook(`getComponentInstances`,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===n).map(([,e])=>e)}),e.hook(`getComponentBounds`,async({instance:e})=>Ln(e)),e.hook(`getComponentName`,({instance:e})=>Nn(e)),e.hook(`componentHighlight`,({uid:e})=>{let t=_r.value.instanceMap.get(e);t&&qte(t)}),e.hook(`componentUnhighlight`,()=>{Jn()}),e}var lr;(lr=yn).__VUE_DEVTOOLS_KIT_APP_RECORDS__??(lr.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var ur;(ur=yn).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??(ur.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var dr;(dr=yn).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??(dr.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=``);var fr;(fr=yn).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??(fr.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var pr;(pr=yn).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??(pr.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var mr=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function lne(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:ine()}}var hr;(hr=yn)[mr]??(hr[mr]=lne());var une=xn(e=>{Or.hooks.callHook(`devtoolsStateUpdated`,{state:e})});xn((e,t)=>{Or.hooks.callHook(`devtoolsConnectedUpdated`,{state:e,oldState:t})});var gr=new Proxy(yn.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?yn.__VUE_DEVTOOLS_KIT_APP_RECORDS__:yn.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),_r=new Proxy(yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function vr(){une({...yn[mr],appRecords:gr.value,activeAppRecordId:_r.id,tabs:yn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:yn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function dne(e){yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,vr()}function fne(e){yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,vr()}var yr=new Proxy(yn[mr],{get(e,t){return t===`appRecords`?gr:t===`activeAppRecordId`?_r.id:t===`tabs`?yn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?yn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:yn[mr][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...yn[mr]},e[t]=n,yn[mr][t]=n,!0}});function pne(e={}){let{file:t,host:n,baseUrl:r=window.location.origin,line:i=0,column:a=0}=e;if(t){if(n===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),n=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(yr.vitePluginDetected){let e=yn.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;yn.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}kn(),kn(),kn(),kn(),kn();var br;(br=yn).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??(br.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var xr=new Proxy(yn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Sr(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Cr(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function mne(e){return(xr.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function hne(e,t){let n=Cr(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return Sr(e?(xr.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function gne(e,t){let n=Cr(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Sr(t)))}function _ne(e,t,n){let r=Cr(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),Or.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},`setPluginSettings`)}kn();var vne,wr=(vne=yn).__VUE_DEVTOOLS_HOOK??(vne.__VUE_DEVTOOLS_HOOK=Tn()),yne={on:{vueAppInit(e){wr.hook(`app:init`,e)},vueAppUnmount(e){wr.hook(`app:unmount`,e)},vueAppConnected(e){wr.hook(`app:connected`,e)},componentAdded(e){return wr.hook(`component:added`,e)},componentEmit(e){return wr.hook(`component:emit`,e)},componentUpdated(e){return wr.hook(`component:updated`,e)},componentRemoved(e){return wr.hook(`component:removed`,e)},setupDevtoolsPlugin(e){wr.hook(`devtools-plugin:setup`,e)},perfStart(e){return wr.hook(`perf:start`,e)},perfEnd(e){return wr.hook(`perf:end`,e)}},setupDevToolsPlugin(e,t){return wr.callHook(`devtools-plugin:setup`,e,t)}},bne=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(`visitComponentTree`,e)},inspectComponent:e=>{this.hooks.hook(`inspectComponent`,e)},editComponentState:e=>{this.hooks.hook(`editComponentState`,e)},getInspectorTree:e=>{this.hooks.hook(`getInspectorTree`,e)},getInspectorState:e=>{this.hooks.hook(`getInspectorState`,e)},editInspectorState:e=>{this.hooks.hook(`editInspectorState`,e)},inspectTimelineEvent:e=>{this.hooks.hook(`inspectTimelineEvent`,e)},timelineCleared:e=>{this.hooks.hook(`timelineCleared`,e)},setPluginSettings:e=>{this.hooks.hook(`setPluginSettings`,e)}}}notifyComponentUpdate(e){if(yr.highPerfModeEnabled)return;let t=sr().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];wr.callHook(`component:updated`,...t)}else wr.callHook(`component:updated`);this.hooks.callHook(`sendInspectorState`,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(`addInspector`,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&gne(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){yr.highPerfModeEnabled||this.hooks.callHook(`sendInspectorTree`,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){yr.highPerfModeEnabled||this.hooks.callHook(`sendInspectorState`,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(`customInspectorSelectNode`,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(`visitComponentTree`,e)}now(){return yr.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(`timelineLayerAdded`,{options:e,plugin:this.plugin})}addTimelineEvent(e){yr.highPerfModeEnabled||this.hooks.callHook(`timelineEventAdded`,{options:e,plugin:this.plugin})}getSettings(e){return hne(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(`getComponentInstances`,{app:e})}getComponentBounds(e){return this.hooks.callHook(`getComponentBounds`,{instance:e})}getComponentName(e){return this.hooks.callHook(`getComponentName`,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(`componentHighlight`,{uid:t})}unhighlightElement(){return this.hooks.callHook(`componentUnhighlight`)}};kn(),kn(),kn(),kn();var xne=`__vue_devtool_undefined__`,Sne=`__vue_devtool_infinity__`,Cne=`__vue_devtool_negative_infinity__`,wne=`__vue_devtool_nan__`;kn(),kn(),Object.entries({[xne]:`undefined`,[wne]:`NaN`,[Sne]:`Infinity`,[Cne]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),kn(),kn(),kn(),kn(),kn();var Tne;(Tne=yn).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??(Tne.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Ene(e,t){return yne.setupDevToolsPlugin(e,t)}function Dne(e,t){let[n,r]=e;if(n.app!==t)return;let i=new bne({plugin:{setupFn:r,descriptor:n},ctx:Or});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function One(e,t){yn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||(!yr.highPerfModeEnabled||t?.inspectingComponent)&&(yn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),xr.forEach(t=>{Dne(t,e)}))}kn(),kn();var Tr=`__VUE_DEVTOOLS_ROUTER__`,Er=`__VUE_DEVTOOLS_ROUTER_INFO__`,kne;(kne=yn).__VUE_DEVTOOLS_ROUTER_INFO__??(kne.__VUE_DEVTOOLS_ROUTER_INFO__={currentRoute:null,routes:[]});var Ane;(Ane=yn).__VUE_DEVTOOLS_ROUTER__??(Ane.__VUE_DEVTOOLS_ROUTER__={}),new Proxy(yn[Er],{get(e,t){return yn[Er][t]}}),new Proxy(yn[Tr],{get(e,t){if(t===`value`)return yn[Tr]}});function jne(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Dr(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=Dr(r)),{path:t,name:n,children:r,meta:i}})}function Mne(e){if(e){let{fullPath:t,hash:n,href:r,path:i,name:a,matched:o,params:s,query:l}=e;return{fullPath:t,hash:n,href:r,path:i,name:a,params:s,query:l,matched:Dr(o)}}return e}function Nne(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=Mne(t?.currentRoute.value),r=Dr(jne(t)),i=console.warn;console.warn=()=>{},yn[Er]={currentRoute:n?bn(n):{},routes:bn(r)},yn[Tr]=t,console.warn=i}n(),yne.on.componentUpdated(xn(()=>{t.value?.app===e.app&&(n(),!yr.highPerfModeEnabled&&Or.hooks.callHook(`routerInfoUpdated`,{state:yn[Er]}))},200))}function Pne(e){return{async getInspectorTree(t){let n={...t,app:_r.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},`getInspectorTree`)}),n.rootNodes},async getInspectorState(t){let n={...t,app:_r.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n,r))),t()},`getInspectorState`)}),n.state},editInspectorState(t){let n=new nr,r={...t,app:_r.value.app,set:(e,r=t.path,i=t.state.value,a)=>{n.set(e,r,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(e=>{e.forEach(e=>e(r))},`editInspectorState`)},sendInspectorState(t){let n=cr(t);e.callHook(`sendInspectorState`,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Xte()},cancelInspectComponentInspector(){return Yte()},getComponentRenderCode(e){let t=Pn(_r.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return Zte({id:e})},openInEditor:pne,getVueInspector:ene,toggleApp(e,t){let n=gr.value.find(t=>t.id===e);n&&(fne(e),dne(n),Nne(n,_r),or(),One(n.app,t))},inspectDOM(e){let t=Pn(_r.value,e);if(t){let[e]=Rn(t);e&&(yn.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){_ne(e,t,n)},getPluginSettings(e){return{options:mne(e),values:hne(e)}}}}kn();var Fne;(Fne=yn).__VUE_DEVTOOLS_ENV__??(Fne.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Ine=cne(),Lne;(Lne=yn).__VUE_DEVTOOLS_KIT_CONTEXT__??(Lne.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Ine,get state(){return{...yr,activeAppRecordId:_r.id,activeAppRecord:_r.value,appRecords:gr.value}},api:Pne(Ine)});var Or=yn.__VUE_DEVTOOLS_KIT_CONTEXT__;kn(),jte(Nte(),1);var Rne;(Rne=yn).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??(Rne.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),kn(),kn();function zne(e){yr.highPerfModeEnabled=e??!yr.highPerfModeEnabled,!e&&_r.value&&One(_r.value.app)}kn(),kn(),kn();function Bne(e){yr.devtoolsClientDetected={...yr.devtoolsClientDetected,...e},zne(!Object.values(yr.devtoolsClientDetected).some(Boolean))}var Vne;(Vne=yn).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??(Vne.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=Bne),kn(),kn(),kn(),kn(),kn(),kn();var Hne=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Une=class{constructor(e){this.generateIdentifier=e,this.kv=new Hne}register(e,t){this.kv.getByValue(e)||(t||=this.generateIdentifier(e),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Wne=class extends Une{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t==`object`?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};kn(),kn();function Gne(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Kne(e,t){let n=Gne(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function kr(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function Ar(e,t){return e.indexOf(t)!==-1}function jr(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var qne=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Kne(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};kn(),kn();var Jne=e=>Object.prototype.toString.call(e).slice(8,-1),Mr=e=>e===void 0,Yne=e=>e===null,Nr=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype,Pr=e=>Nr(e)&&Object.keys(e).length===0,Fr=e=>Array.isArray(e),Xne=e=>typeof e==`string`,Zne=e=>typeof e==`number`&&!isNaN(e),Qne=e=>typeof e==`boolean`,$ne=e=>e instanceof RegExp,Ir=e=>e instanceof Map,Lr=e=>e instanceof Set,ere=e=>Jne(e)===`Symbol`,tre=e=>e instanceof Date&&!isNaN(e.valueOf()),nre=e=>e instanceof Error,rre=e=>typeof e==`number`&&isNaN(e),ire=e=>Qne(e)||Yne(e)||Mr(e)||Zne(e)||Xne(e)||ere(e),are=e=>typeof e==`bigint`,ore=e=>e===1/0||e===-1/0,sre=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),cre=e=>e instanceof URL;kn();var lre=e=>e.replace(/\./g,`\\.`),Rr=e=>e.map(String).map(lre).join(`.`),zr=e=>{let t=[],n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`&&e.charAt(r+1)===`.`){n+=`.`,r++;continue}if(i===`.`){t.push(n),n=``;continue}n+=i}let r=n;return t.push(r),t};kn();function Br(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Vr=[Br(Mr,`undefined`,()=>null,()=>void 0),Br(are,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Br(tre,`Date`,e=>e.toISOString(),e=>new Date(e)),Br(nre,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Br($ne,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Br(Lr,`set`,e=>[...e.values()],e=>new Set(e)),Br(Ir,`map`,e=>[...e.entries()],e=>new Map(e)),Br(e=>rre(e)||ore(e),`number`,e=>rre(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Br(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Br(cre,`URL`,e=>e.toString(),e=>new URL(e))];function Hr(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Ur=Hr((e,t)=>ere(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),ure=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Wr=Hr(sre,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=ure[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function Gr(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Kr=Hr(Gr,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),qr=Hr((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>[`custom`,t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),dre=[Kr,Ur,qr,Wr],Jr=(e,t)=>{let n=jr(dre,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=jr(Vr,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Yr={};Vr.forEach(e=>{Yr[e.annotation]=e});var fre=(e,t,n)=>{if(Fr(t))switch(t[0]){case`symbol`:return Ur.untransform(e,t,n);case`class`:return Kr.untransform(e,t,n);case`custom`:return qr.untransform(e,t,n);case`typed-array`:return Wr.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Yr[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}};kn();var Xr=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Zr(e){if(Ar(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(Ar(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(Ar(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var pre=(e,t)=>{Zr(t);for(let n=0;n<t.length;n++){let r=t[n];if(Lr(e))e=Xr(e,+r);else if(Ir(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=Xr(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o)}}else e=e[r]}return e},Qr=(e,t,n)=>{if(Zr(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(Fr(r)){let e=+n;r=r[e]}else if(Nr(r))r=r[n];else if(Lr(r)){let e=+n;r=Xr(r,e)}else if(Ir(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=Xr(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o)}}}let i=t[t.length-1];if(Fr(r)?r[+i]=n(r[+i]):Nr(r)&&(r[i]=n(r[i])),Lr(r)){let e=Xr(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(Ir(r)){let e=+t[t.length-2],a=Xr(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)))}}return e};function $r(e,t,n=[]){if(!e)return;if(!Fr(e)){kr(e,(e,r)=>$r(e,t,[...n,...zr(r)]));return}let[r,i]=e;i&&kr(i,(e,r)=>{$r(e,t,[...n,...zr(r)])}),t(r,n)}function mre(e,t,n){return $r(t,(t,r)=>{e=Qr(e,r,e=>fre(e,t,n))}),e}function hre(e,t){function n(t,n){let r=pre(e,zr(n));t.map(zr).forEach(t=>{e=Qr(e,t,()=>r)})}if(Fr(t)){let[r,i]=t;r.forEach(t=>{e=Qr(e,zr(t),()=>e)}),i&&kr(i,n)}else kr(t,n);return e}var gre=(e,t)=>Nr(e)||Fr(e)||Ir(e)||Lr(e)||Gr(e,t);function _re(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function vre(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(Rr):n[Rr(i)]=a.map(Rr)}),r?Pr(n)?[r]:[r,n]:Pr(n)?void 0:n}var ei=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=ire(e);if(!s){_re(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!gre(e,n)){let t=Jr(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(Ar(a,e))return{transformedValue:null};let l=Jr(e,n),u=l?.value??e,d=Fr(u)?[]:{},f={};kr(u,(s,l)=>{if(l===`__proto__`||l===`constructor`||l===`prototype`)throw Error(`Detected property ${l}. This is a prototype pollution risk, please remove it from your object.`);let u=ei(s,t,n,r,[...i,l],[...a,e],o);d[l]=u.transformedValue,Fr(u.annotations)?f[l]=u.annotations:Nr(u.annotations)&&kr(u.annotations,(e,t)=>{f[lre(l)+`.`+t]=e})});let p=Pr(f)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,f]:f};return s||o.set(e,p),p};kn(),kn();function yre(e){return Object.prototype.toString.call(e).slice(8,-1)}function bre(e){return yre(e)===`Array`}function xre(e){if(yre(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Sre(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function ti(e,t={}){if(bre(e))return e.map(e=>ti(e,t));if(!xre(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(bre(t.props)&&!t.props.includes(r))return n;let i=e[r];return Sre(n,r,ti(i,t),e,t.nonenumerable),n},{})}var ni=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Wne,this.symbolRegistry=new Une(e=>e.description??``),this.customTransformerRegistry=new qne,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=ei(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=vre(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=ti(t);return n?.values&&(r=mre(r,n.values,this)),n?.referentialEqualities&&(r=hre(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};ni.defaultInstance=new ni,ni.serialize=ni.defaultInstance.serialize.bind(ni.defaultInstance),ni.deserialize=ni.defaultInstance.deserialize.bind(ni.defaultInstance),ni.stringify=ni.defaultInstance.stringify.bind(ni.defaultInstance),ni.parse=ni.defaultInstance.parse.bind(ni.defaultInstance),ni.registerClass=ni.defaultInstance.registerClass.bind(ni.defaultInstance),ni.registerSymbol=ni.defaultInstance.registerSymbol.bind(ni.defaultInstance),ni.registerCustom=ni.defaultInstance.registerCustom.bind(ni.defaultInstance),ni.allowErrorProps=ni.defaultInstance.allowErrorProps.bind(ni.defaultInstance),ni.serialize,ni.deserialize,ni.stringify,ni.parse,ni.registerClass,ni.registerCustom,ni.registerSymbol,ni.allowErrorProps,kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn();var Cre;(Cre=yn).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??(Cre.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var wre;(wre=yn).__VUE_DEVTOOLS_KIT_RPC_CLIENT__??(wre.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Tre;(Tre=yn).__VUE_DEVTOOLS_KIT_RPC_SERVER__??(Tre.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var ri;(ri=yn).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??(ri.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var ii;(ii=yn).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??(ii.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var ai;(ai=yn).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??(ai.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),kn(),kn(),kn(),kn(),A(),oe();var oi=typeof window<`u`,si,ci=e=>si=e,li=Symbol(`pinia`);function ui(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var di;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(di||={});var fi=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Ere(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function pi(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){vi(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function mi(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function hi(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var gi=typeof navigator==`object`?navigator:{userAgent:``},_i=/Macintosh/.test(gi.userAgent)&&/AppleWebKit/.test(gi.userAgent)&&!/Safari/.test(gi.userAgent),vi=oi?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!_i?Dre:`msSaveOrOpenBlob`in gi?Ore:kre:()=>{};function Dre(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?hi(r):mi(r.href)?pi(e,t,n):(r.target=`_blank`,hi(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){hi(r)},0))}function Ore(e,t=`download`,n){if(typeof e==`string`){if(mi(e))pi(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){hi(t)})}}else navigator.msSaveOrOpenBlob(Ere(e,n),t)}function kre(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return pi(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(fi.HTMLElement))||`safari`in fi,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||_i)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}function yi(e,t){let n=`🍍 `+e;typeof __VUE_DEVTOOLS_TOAST__==`function`?__VUE_DEVTOOLS_TOAST__(n,t):t===`error`?console.error(n):t===`warn`?console.warn(n):console.log(n)}function bi(e){return`_a`in e&&`install`in e}function xi(){if(!(`clipboard`in navigator))return yi(`Your browser doesn't support the Clipboard API`,`error`),!0}function Si(e){return e instanceof Error&&e.message.toLowerCase().includes(`document is not focused`)?(yi(`You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.`,`warn`),!0):!1}async function Are(e){if(!xi())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),yi(`Global state copied to clipboard.`)}catch(e){if(Si(e))return;yi(`Failed to serialize the state. Check the console for more details.`,`error`),console.error(e)}}async function jre(e){if(!xi())try{wi(e,JSON.parse(await navigator.clipboard.readText())),yi(`Global state pasted from clipboard.`)}catch(e){if(Si(e))return;yi(`Failed to deserialize the state from clipboard. Check the console for more details.`,`error`),console.error(e)}}async function Mre(e){try{vi(new Blob([JSON.stringify(e.state.value)],{type:`text/plain;charset=utf-8`}),`pinia-state.json`)}catch(e){yi(`Failed to export the state as JSON. Check the console for more details.`,`error`),console.error(e)}}var Ci;function Nre(){Ci||(Ci=document.createElement(`input`),Ci.type=`file`,Ci.accept=`.json`);function e(){return new Promise((e,t)=>{Ci.onchange=async()=>{let t=Ci.files;if(!t)return e(null);let n=t.item(0);return e(n?{text:await n.text(),file:n}:null)},Ci.oncancel=()=>e(null),Ci.onerror=t,Ci.click()})}return e}async function Pre(e){try{let t=await Nre()();if(!t)return;let{text:n,file:r}=t;wi(e,JSON.parse(n)),yi(`Global state imported from "${r.name}".`)}catch(e){yi(`Failed to import the state from JSON. Check the console for more details.`,`error`),console.error(e)}}function wi(e,t){for(let n in t){let r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Ti(e){return{_custom:{display:e}}}var Ei=`🍍 Pinia (root)`,Di=`_root`;function Fre(e){return bi(e)?{id:Di,label:Ei}:{id:e.$id,label:e.$id}}function Ire(e){if(bi(e)){let t=Array.from(e._s.keys()),n=e._s;return{state:t.map(t=>({editable:!0,key:t,value:e.state.value[t]})),getters:t.filter(e=>n.get(e)._getters).map(e=>{let t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce((e,n)=>(e[n]=t[n],e),{})}})}}let t={state:Object.keys(e.$state).map(t=>({editable:!0,key:t,value:e.$state[t]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(t=>({editable:!1,key:t,value:e[t]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(t=>({editable:!0,key:t,value:e[t]}))),t}function Lre(e){return e?Array.isArray(e)?e.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Ti(e.type),key:Ti(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Rre(e){switch(e){case di.direct:return`mutation`;case di.patchFunction:return`$patch`;case di.patchObject:return`$patch`;default:return`unknown`}}var Oi=!0,ki=[],Ai=`pinia:mutations`,ji=`pinia`,{assign:zre}=Object,Mi=e=>`🍍 `+e;function Bre(e,t){Ene({id:`dev.esm.pinia`,label:`Pinia 🍍`,logo:`https://pinia.vuejs.org/logo.svg`,packageName:`pinia`,homepage:`https://pinia.vuejs.org`,componentStateTypes:ki,app:e},n=>{typeof n.now!=`function`&&yi(`You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.`),n.addTimelineLayer({id:Ai,label:`Pinia 🍍`,color:15064968}),n.addInspector({id:ji,label:`Pinia 🍍`,icon:`storage`,treeFilterPlaceholder:`Search stores`,actions:[{icon:`content_copy`,action:()=>{Are(t)},tooltip:`Serialize and copy the state`},{icon:`content_paste`,action:async()=>{await jre(t),n.sendInspectorTree(ji),n.sendInspectorState(ji)},tooltip:`Replace the state with the content of your clipboard`},{icon:`save`,action:()=>{Mre(t)},tooltip:`Save the state as a JSON file`},{icon:`folder_open`,action:async()=>{await Pre(t),n.sendInspectorTree(ji),n.sendInspectorState(ji)},tooltip:`Import the state from a JSON file`}],nodeActions:[{icon:`restore`,tooltip:`Reset the state (with "$reset")`,action:e=>{let n=t._s.get(e);n?typeof n.$reset==`function`?(n.$reset(),yi(`Store "${e}" reset.`)):yi(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,`warn`):yi(`Cannot reset "${e}" store because it wasn't found.`,`warn`)}}]}),n.on.inspectComponent(e=>{let t=e.componentInstance&&e.componentInstance.proxy;if(t&&t._pStores){let t=e.componentInstance.proxy._pStores;Object.values(t).forEach(t=>{e.instanceData.state.push({type:Mi(t.$id),key:`state`,editable:!0,value:t._isOptionsAPI?{_custom:{value:s(t.$state),actions:[{icon:`restore`,tooltip:`Reset the state of this store`,action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce((e,n)=>(e[n]=t.$state[n],e),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:Mi(t.$id),key:`getters`,editable:!1,value:t._getters.reduce((e,n)=>{try{e[n]=t[n]}catch(t){e[n]=t}return e},{})})})}}),n.on.getInspectorTree(n=>{if(n.app===e&&n.inspectorId===ji){let e=[t];e=e.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?e.filter(e=>`$id`in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):Ei.toLowerCase().includes(n.filter.toLowerCase())):e).map(Fre)}}),globalThis.$pinia=t,n.on.getInspectorState(n=>{if(n.app===e&&n.inspectorId===ji){let e=n.nodeId===Di?t:t._s.get(n.nodeId);if(!e)return;e&&(n.nodeId!==Di&&(globalThis.$store=s(e)),n.state=Ire(e))}}),n.on.editInspectorState(n=>{if(n.app===e&&n.inspectorId===ji){let e=n.nodeId===Di?t:t._s.get(n.nodeId);if(!e)return yi(`store "${n.nodeId}" not found`,`error`);let{path:r}=n;bi(e)?r.unshift(`state`):(r.length!==1||!e._customProperties.has(r[0])||r[0]in e.$state)&&r.unshift(`$state`),Oi=!1,n.set(e,r,n.state.value),Oi=!0}}),n.on.editComponentState(e=>{if(e.type.startsWith(`🍍`)){let n=e.type.replace(/^🍍\s*/,``),r=t._s.get(n);if(!r)return yi(`store "${n}" not found`,`error`);let{path:i}=e;if(i[0]!==`state`)return yi(`Invalid path for store "${n}":\n${i}\nOnly state can be modified.`);i[0]=`$state`,Oi=!1,e.set(r,i,e.state.value),Oi=!0}})})}function Vre(e,t){ki.includes(Mi(t.$id))||ki.push(Mi(t.$id)),Ene({id:`dev.esm.pinia`,label:`Pinia 🍍`,logo:`https://pinia.vuejs.org/logo.svg`,packageName:`pinia`,homepage:`https://pinia.vuejs.org`,componentStateTypes:ki,app:e,settings:{logStoreChanges:{label:`Notify about new/deleted stores`,type:`boolean`,defaultValue:!0}}},e=>{let n=typeof e.now==`function`?e.now.bind(e):Date.now;t.$onAction(({after:r,onError:i,name:a,args:o})=>{let s=Ni++;e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`🛫 `+a,subtitle:`start`,data:{store:Ti(t.$id),action:Ti(a),args:o},groupId:s}}),r(r=>{Pi=void 0,e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`🛬 `+a,subtitle:`end`,data:{store:Ti(t.$id),action:Ti(a),args:o,result:r},groupId:s}})}),i(r=>{Pi=void 0,e.addTimelineEvent({layerId:Ai,event:{time:n(),logType:`error`,title:`💥 `+a,subtitle:`end`,data:{store:Ti(t.$id),action:Ti(a),args:o,error:r},groupId:s}})})},!0),t._customProperties.forEach(r=>{ue(()=>u(t[r]),(t,i)=>{e.notifyComponentUpdate(),e.sendInspectorState(ji),Oi&&e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`Change`,subtitle:r,data:{newValue:t,oldValue:i},groupId:Pi}})},{deep:!0})}),t.$subscribe(({events:r,type:i},a)=>{if(e.notifyComponentUpdate(),e.sendInspectorState(ji),!Oi)return;let o={time:n(),title:Rre(i),data:zre({store:Ti(t.$id)},Lre(r)),groupId:Pi};i===di.patchFunction?o.subtitle=`⤵️`:i===di.patchObject?o.subtitle=`🧩`:r&&!Array.isArray(r)&&(o.subtitle=r.type),r&&(o.data[`rawEvent(s)`]={_custom:{display:`DebuggerEvent`,type:`object`,tooltip:`raw DebuggerEvent[]`,value:r}}),e.addTimelineEvent({layerId:Ai,event:o})},{detached:!0,flush:`sync`});let r=t._hotUpdate;t._hotUpdate=I(i=>{r(i),e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`🔥 `+t.$id,subtitle:`HMR update`,data:{store:Ti(t.$id),info:Ti(`HMR update`)}}}),e.notifyComponentUpdate(),e.sendInspectorTree(ji),e.sendInspectorState(ji)});let{$dispose:i}=t;t.$dispose=()=>{i(),e.notifyComponentUpdate(),e.sendInspectorTree(ji),e.sendInspectorState(ji),e.getSettings().logStoreChanges&&yi(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree(ji),e.sendInspectorState(ji),e.getSettings().logStoreChanges&&yi(`"${t.$id}" store installed 🆕`)})}var Ni=0,Pi;function Fi(e,t,n){let r=t.reduce((t,n)=>(t[n]=s(e)[n],t),{});for(let t in r)e[t]=function(){let i=Ni,a=n?new Proxy(e,{get(...e){return Pi=i,Reflect.get(...e)},set(...e){return Pi=i,Reflect.set(...e)}}):e;Pi=i;let o=r[t].apply(a,arguments);return Pi=void 0,o}}function Hre({app:e,store:t,options:n}){if(!t.$id.startsWith(`__hot:`)){if(t._isOptionsAPI=!!n.state,!t._p._testing){Fi(t,Object.keys(n.actions),t._isOptionsAPI);let e=t._hotUpdate;s(t)._hotUpdate=function(n){e.apply(this,arguments),Fi(t,Object.keys(n._hmrPayload.actions),!!t._isOptionsAPI)}}Vre(e,t)}}function Ure(){let e=te(!0),t=e.run(()=>_e({})),n=[],r=[],i=I({install(e){ci(i),i._a=e,e.provide(li,i),e.config.globalProperties.$pinia=i,oi&&Bre(e,i),r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return oi&&typeof Proxy<`u`&&i.use(Hre),i}function Ii(e,t){for(let n in t){let r=t[n];if(!(n in e))continue;let i=e[n];e[n]=ui(i)&&ui(r)&&!z(r)&&!re(r)?Ii(i,r):r}return e}var Wre=()=>{};function Li(e,t,n,r=Wre){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&se()&&pe(i),i}function Ri(e,...t){e.forEach(e=>{e(...t)})}var Gre=e=>e(),zi=Symbol(),Bi=Symbol();function Vi(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];e[n]=ui(i)&&ui(r)&&e.hasOwnProperty(n)&&!z(r)&&!re(r)?Vi(i,r):r}return e}var Kre=Symbol(`pinia:skipHydration`);function qre(e){return!ui(e)||!Object.prototype.hasOwnProperty.call(e,Kre)}var{assign:Hi}=Object;function Ui(e){return!!(z(e)&&e.effect)}function Wi(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],l;function u(){!s&&!r&&(n.state.value[e]=i?i():{});let t=k(r?_e(i?i():{}).value:n.state.value[e]);return Hi(t,a,Object.keys(o||{}).reduce((r,i)=>(i in t&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${i}" in store "${e}".`),r[i]=I(d(()=>{ci(n);let t=n._s.get(e);return o[i].call(t,t)})),r),{}))}return l=Gi(e,u,t,n,r,!0),l}function Gi(e,t,n={},r,i,a){let o,l=Hi({actions:{}},n);if(!r._e.active)throw Error(`Pinia destroyed`);let u={deep:!0};u.onTrigger=e=>{f?_=e:f==0&&!D._hotUpdating&&(Array.isArray(_)?_.push(e):console.error(`🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug.`))};let f,p,h=new Set,g=new Set,_,v=r.state.value[e];!a&&!v&&!i&&(r.state.value[e]={});let y=_e({}),b;function x(t){let n;f=p=!1,_=[],typeof t==`function`?(t(r.state.value[e]),n={type:di.patchFunction,storeId:e,events:_}):(Vi(r.state.value[e],t),n={type:di.patchObject,payload:t,storeId:e,events:_});let i=b=Symbol();m().then(()=>{b===i&&(f=!0)}),p=!0,Ri(h,n,r.state.value[e])}let S=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{Hi(e,t)})}:()=>{throw Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)};function C(){o.stop(),h.clear(),g.clear(),r._s.delete(e)}let w=(t,n=``)=>{if(zi in t)return t[Bi]=n,t;let i=function(){ci(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function l(e){o.add(e)}Ri(g,{args:n,name:i[Bi],store:D,after:s,onError:l});let u;try{u=t.apply(this&&this.$id===e?this:D,n)}catch(e){throw Ri(o,e),e}return u instanceof Promise?u.then(e=>(Ri(a,e),e)).catch(e=>(Ri(o,e),Promise.reject(e))):(Ri(a,u),u)};return i[zi]=!0,i[Bi]=n,i},T=I({actions:{},getters:{},state:[],hotState:y}),E={_p:r,$id:e,$onAction:Li.bind(null,g),$patch:x,$reset:S,$subscribe(t,n={}){let i=Li(h,t,n.detached,()=>a()),a=o.run(()=>ue(()=>r.state.value[e],r=>{(n.flush===`sync`?p:f)&&t({storeId:e,type:di.direct,events:_},r)},Hi({},u,n)));return i},$dispose:C},D=ye(Hi({_hmrPayload:T,_customProperties:I(new Set)},E));r._s.set(e,D);let O=(r._a&&r._a.runWithContext||Gre)(()=>r._e.run(()=>(o=te()).run(()=>t({action:w}))));for(let t in O){let o=O[t];z(o)&&!Ui(o)||re(o)?(i?y.value[t]=he(O,t):a||(v&&qre(o)&&(z(o)?o.value=v[t]:Vi(o,v[t])),r.state.value[e][t]=o),T.state.push(t)):typeof o==`function`?(O[t]=i?o:w(o,t),T.actions[t]=o,l.actions[t]=o):Ui(o)&&(T.getters[t]=a?n.getters[t]:o,oi&&(O._getters||=I([])).push(t))}if(Hi(D,O),Hi(s(D),O),Object.defineProperty(D,"$state",{get:()=>i?y.value:r.state.value[e],set:e=>{if(i)throw Error(`cannot set hotState`);x(t=>{Hi(t,e)})}}),D._hotUpdate=I(t=>{D._hotUpdating=!0,t._hmrPayload.state.forEach(e=>{if(e in D.$state){let n=t.$state[e],r=D.$state[e];typeof n==`object`&&ui(n)&&ui(r)?Ii(n,r):t.$state[e]=r}D[e]=he(t.$state,e)}),Object.keys(D.$state).forEach(e=>{e in t.$state||delete D[e]}),f=!1,p=!1,r.state.value[e]=he(t._hmrPayload,`hotState`),p=!0,m().then(()=>{f=!0});for(let e in t._hmrPayload.actions){let n=t[e];D[e]=w(n,e)}for(let e in t._hmrPayload.getters){let n=t._hmrPayload.getters[e],i=a?d(()=>(ci(r),n.call(D,D))):n;D[e]=i}Object.keys(D._hmrPayload.getters).forEach(e=>{e in t._hmrPayload.getters||delete D[e]}),Object.keys(D._hmrPayload.actions).forEach(e=>{e in t._hmrPayload.actions||delete D[e]}),D._hmrPayload=t._hmrPayload,D._getters=t._getters,D._hotUpdating=!1}),oi){let e={writable:!0,configurable:!0,enumerable:!1};[`_p`,`_hmrPayload`,`_getters`,`_customProperties`].forEach(t=>{Object.defineProperty(D,t,Hi({value:D[t]},e))})}return r._p.forEach(e=>{if(oi){let t=o.run(()=>e({store:D,app:r._a,pinia:r,options:l}));Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),Hi(D,t)}else Hi(D,o.run(()=>e({store:D,app:r._a,pinia:r,options:l})))}),D.$state&&typeof D.$state==`object`&&typeof D.$state.constructor==`function`&&!D.$state.constructor.toString().includes(`[native code]`)&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-Ct-SQ-7k.js","assets/rolldown-runtime-C0FnF6B9.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,n as t,o as n,r,t as i}from"./rolldown-runtime-C0FnF6B9.js";import{An as a,Bn as o,Cr as s,Dn as l,Dr as u,En as d,Er as f,Fn as p,Gn as m,Hn as h,Ir as g,Jn as _,Ln as v,Nn as y,O as b,On as x,Pn as S,Qn as C,R as w,Rn as T,Sn as E,Sr as D,Tn as O,Tr as k,Vn as A,Wn as j,Xn as M,Yr as N,Zn as P,Zr as F,_r as I,bn as L,dn as R,er as ee,fr as te,gr as z,hn as ne,hr as re,kn as B,ln as ie,lr as ae,mr as oe,pr as se,qn as ce,rr as le,sr as ue,ti as V,ur as de,vn as fe,vr as pe,wn as me,wr as he,xn as ge,xr as _e,yn as ve,yr as ye,zn as be}from"./element-plus-CDrtgG55.js";import{$ as xe,$n as Se,$t as Ce,A as we,An as Te,At as Ee,B as De,Bn as Oe,Bt as ke,C as Ae,Cn as je,Ct as Me,D as Ne,Dn as Pe,Dt as Fe,E as Ie,En as Le,Et as Re,F as ze,Fn as Be,Ft as Ve,G as He,Gn as Ue,Gt as We,H as Ge,Hn as Ke,Ht as qe,I as Je,In as Ye,It as Xe,J as Ze,Jn as Qe,Jt as $e,K as et,Kn as tt,Kt as nt,L as rt,Ln as it,Lt as at,M as ot,Mn as st,Mt as ct,N as lt,Nn as ut,Nt as dt,O as ft,On as pt,Ot as mt,P as ht,Pn as gt,Pt as _t,Q as eee,Qn as tee,Qt as nee,R as ree,Rn as vt,Rt as iee,S as yt,Sn as bt,St as aee,T as oee,Tn as xt,Tt as see,U as cee,Un as lee,Ut as uee,V as St,Vn as Ct,Vt as dee,W as fee,Wn as wt,Wt as Tt,X as pee,Xn as Et,Xt as Dt,Y as mee,Yn as hee,Yt as Ot,Z as gee,Zn as kt,Zt as _ee,_ as vee,_n as At,_t as jt,a as Mt,an as Nt,ar as yee,at as bee,b as Pt,bn as xee,bt as See,c as Ft,cn as It,ct as Cee,d as wee,dn as Tee,dt as Eee,en as Lt,er as H,et as Dee,f as Rt,fn as Oee,ft as kee,g as zt,gn as U,gt as Aee,h as Bt,hn as Vt,ht as Ht,i as jee,in as Ut,ir as W,it as Mee,j as Nee,jn as Wt,jt as Pee,k as Gt,kn as Kt,l as qt,ln as Jt,lt as Fee,m as Yt,mn as Xt,mt as Iee,nn as Lee,nr as Zt,nt as Ree,o as zee,on as Qt,ot as Bee,p as $t,pn as en,pt as Vee,q as Hee,qn as tn,qt as Uee,r as Wee,rn as nn,rr as G,rt as Gee,s as Kee,sn as rn,st as qee,tn as an,tr as Jee,tt as Yee,u as Xee,un as on,ut as Zee,v as Qee,vn as $ee,vt as sn,w as cn,wn as ln,wt as un,x as ete,xn as tte,xt as dn,y as nte,yn as fn,yt as rte,z as ite,zn as pn,zt as mn}from"./dagre-Ct-SQ-7k.js";var ate=Object.create,hn=Object.defineProperty,ote=Object.getOwnPropertyDescriptor,gn=Object.getOwnPropertyNames,ste=Object.getPrototypeOf,cte=Object.prototype.hasOwnProperty,lte=(e,t)=>function(){return e&&(t=(0,e[gn(e)[0]])(e=0)),t},ute=(e,t)=>function(){return t||(0,e[gn(e)[0]])((t={exports:{}}).exports,t),t.exports},dte=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of gn(t))!cte.call(e,i)&&i!==n&&hn(e,i,{get:()=>t[i],enumerable:!(r=ote(t,i))||r.enumerable});return e},fte=(e,t,n)=>(n=e==null?{}:ate(ste(e)),dte(t||!e||!e.__esModule?hn(n,`default`,{value:e,enumerable:!0}):n,e)),_n=lte({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),pte=ute({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){_n(),t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let l=a[s],u=e[l];o[l]=typeof u!=`object`||!u?u:u.constructor!==Object&&(r=t.get(u.constructor))?r(u,i):ArrayBuffer.isView(u)?n(u):i(u)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?l:s;function o(e,o){let s=Object.keys(e),l=Array(s.length);for(let u=0;u<s.length;u++){let d=s[u],f=e[d];if(typeof f!=`object`||!f)l[d]=f;else if(f.constructor!==Object&&(a=i.get(f.constructor)))l[d]=a(f,o);else if(ArrayBuffer.isView(f))l[d]=n(f);else{let e=t.indexOf(f);l[d]=e===-1?o(f):r[e]}}return l}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let l={};t.push(e),r.push(l);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let u=e[o];if(typeof u!=`object`||!u)l[o]=u;else if(u.constructor!==Object&&(a=i.get(u.constructor)))l[o]=a(u,s);else if(ArrayBuffer.isView(u))l[o]=n(u);else{let e=t.indexOf(u);l[o]=e===-1?s(u):r[e]}}return t.pop(),r.pop(),l}function l(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,l);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,l);let s={};t.push(e),r.push(s);for(let o in e){let u=e[o];if(typeof u!=`object`||!u)s[o]=u;else if(u.constructor!==Object&&(a=i.get(u.constructor)))s[o]=a(u,l);else if(ArrayBuffer.isView(u))s[o]=n(u);else{let e=t.indexOf(u);s[o]=e===-1?l(u):r[e]}}return t.pop(),r.pop(),s}}}});_n(),_n(),_n();var vn=typeof navigator<`u`,yn=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};yn.chrome!==void 0&&yn.chrome.devtools,vn&&(yn.self,yn.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__,_n();var mte=fte(pte(),1),hte=/(?:^|[-_/])(\w)/g;function gte(e,t){return t?t.toUpperCase():``}function _te(e){return e&&`${e}`.replace(hte,gte)}function vte(e,t){let n=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));let r=n.lastIndexOf(`/`),i=n.substring(r+1);if(t){let e=i.lastIndexOf(t);return i.substring(0,e)}return``}var bn=(0,mte.default)({circles:!0}),yte={trailing:!0};function xn(e,t=25,n={}){if(n={...yte,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,l=(t,r)=>(o=bte(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=l(t,s);return s=null,e}}),o);return function(...e){return o?(n.trailing&&(s=e),o):new Promise(o=>{let s=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:l(this,e);for(let e of a)e(t);a=[]},t),s?(r=l(this,e),o(r)):a.push(o)})}}async function bte(e,t,n){return await e.apply(t,n)}function Sn(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Sn(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var xte={run:e=>e()},Cn=console.createTask===void 0?()=>xte:console.createTask;function Ste(e,t){let n=Cn(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function Cte(e,t){let n=Cn(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function wn(e,t){for(let n of[...e])n(t)}var wte=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Sn(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Sn(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Ste,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Cte,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&wn(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&wn(this._after,r)}):(this._after&&r&&wn(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Tn(){return new wte}var Tte=Object.create,En=Object.defineProperty,Ete=Object.getOwnPropertyDescriptor,Dn=Object.getOwnPropertyNames,Dte=Object.getPrototypeOf,Ote=Object.prototype.hasOwnProperty,kte=(e,t)=>function(){return e&&(t=(0,e[Dn(e)[0]])(e=0)),t},On=(e,t)=>function(){return t||(0,e[Dn(e)[0]])((t={exports:{}}).exports,t),t.exports},Ate=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Dn(t))!Ote.call(e,i)&&i!==n&&En(e,i,{get:()=>t[i],enumerable:!(r=Ete(t,i))||r.enumerable});return e},jte=(e,t,n)=>(n=e==null?{}:Tte(Dte(e)),Ate(t||!e||!e.__esModule?En(n,`default`,{value:e,enumerable:!0}):n,e)),kn=kte({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Mte=On({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){kn(),(function(e){var n={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`Ae`,Å:`A`,Æ:`AE`,Ç:`C`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,Ð:`D`,Ñ:`N`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`Oe`,Ő:`O`,Ø:`O`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`Ue`,Ű:`U`,Ý:`Y`,Þ:`TH`,ß:`ss`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`ae`,å:`a`,æ:`ae`,ç:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ì:`i`,í:`i`,î:`i`,ï:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`oe`,ő:`o`,ø:`o`,ù:`u`,ú:`u`,û:`u`,ü:`ue`,ű:`u`,ý:`y`,þ:`th`,ÿ:`y`,ẞ:`SS`,ا:`a`,أ:`a`,إ:`i`,آ:`aa`,ؤ:`u`,ئ:`e`,ء:`a`,ب:`b`,ت:`t`,ث:`th`,ج:`j`,ح:`h`,خ:`kh`,د:`d`,ذ:`th`,ر:`r`,ز:`z`,س:`s`,ش:`sh`,ص:`s`,ض:`dh`,ط:`t`,ظ:`z`,ع:`a`,غ:`gh`,ف:`f`,ق:`q`,ك:`k`,ل:`l`,م:`m`,ن:`n`,ه:`h`,و:`w`,ي:`y`,ى:`a`,ة:`h`,ﻻ:`la`,ﻷ:`laa`,ﻹ:`lai`,ﻵ:`laa`,گ:`g`,چ:`ch`,پ:`p`,ژ:`zh`,ک:`k`,ی:`y`,"َ":`a`,"ً":`an`,"ِ":`e`,"ٍ":`en`,"ُ":`u`,"ٌ":`on`,"ْ":``,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`,က:`k`,ခ:`kh`,ဂ:`g`,ဃ:`ga`,င:`ng`,စ:`s`,ဆ:`sa`,ဇ:`z`,စျ:`za`,ည:`ny`,ဋ:`t`,ဌ:`ta`,ဍ:`d`,ဎ:`da`,ဏ:`na`,တ:`t`,ထ:`ta`,ဒ:`d`,ဓ:`da`,န:`n`,ပ:`p`,ဖ:`pa`,ဗ:`b`,ဘ:`ba`,မ:`m`,ယ:`y`,ရ:`ya`,လ:`l`,ဝ:`w`,သ:`th`,ဟ:`h`,ဠ:`la`,အ:`a`,"ြ":`y`,"ျ":`ya`,"ွ":`w`,"ြွ":`yw`,"ျွ":`ywa`,"ှ":`h`,ဧ:`e`,"၏":`-e`,ဣ:`i`,ဤ:`-i`,ဉ:`u`,ဦ:`-u`,ဩ:`aw`,သြော:`aw`,ဪ:`aw`,"၀":`0`,"၁":`1`,"၂":`2`,"၃":`3`,"၄":`4`,"၅":`5`,"၆":`6`,"၇":`7`,"၈":`8`,"၉":`9`,"္":``,"့":``,"း":``,č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`,ހ:`h`,ށ:`sh`,ނ:`n`,ރ:`r`,ބ:`b`,ޅ:`lh`,ކ:`k`,އ:`a`,ވ:`v`,މ:`m`,ފ:`f`,ދ:`dh`,ތ:`th`,ލ:`l`,ގ:`g`,ޏ:`gn`,ސ:`s`,ޑ:`d`,ޒ:`z`,ޓ:`t`,ޔ:`y`,ޕ:`p`,ޖ:`j`,ޗ:`ch`,ޘ:`tt`,ޙ:`hh`,ޚ:`kh`,ޛ:`th`,ޜ:`z`,ޝ:`sh`,ޞ:`s`,ޟ:`d`,ޠ:`t`,ޡ:`z`,ޢ:`a`,ޣ:`gh`,ޤ:`q`,ޥ:`w`,"ަ":`a`,"ާ":`aa`,"ި":`i`,"ީ":`ee`,"ު":`u`,"ޫ":`oo`,"ެ":`e`,"ޭ":`ey`,"ޮ":`o`,"ޯ":`oa`,"ް":``,ა:`a`,ბ:`b`,გ:`g`,დ:`d`,ე:`e`,ვ:`v`,ზ:`z`,თ:`t`,ი:`i`,კ:`k`,ლ:`l`,მ:`m`,ნ:`n`,ო:`o`,პ:`p`,ჟ:`zh`,რ:`r`,ს:`s`,ტ:`t`,უ:`u`,ფ:`p`,ქ:`k`,ღ:`gh`,ყ:`q`,შ:`sh`,ჩ:`ch`,ც:`ts`,ძ:`dz`,წ:`ts`,ჭ:`ch`,ხ:`kh`,ჯ:`j`,ჰ:`h`,α:`a`,β:`v`,γ:`g`,δ:`d`,ε:`e`,ζ:`z`,η:`i`,θ:`th`,ι:`i`,κ:`k`,λ:`l`,μ:`m`,ν:`n`,ξ:`ks`,ο:`o`,π:`p`,ρ:`r`,σ:`s`,τ:`t`,υ:`y`,φ:`f`,χ:`x`,ψ:`ps`,ω:`o`,ά:`a`,έ:`e`,ί:`i`,ό:`o`,ύ:`y`,ή:`i`,ώ:`o`,ς:`s`,ϊ:`i`,ΰ:`y`,ϋ:`y`,ΐ:`i`,Α:`A`,Β:`B`,Γ:`G`,Δ:`D`,Ε:`E`,Ζ:`Z`,Η:`I`,Θ:`TH`,Ι:`I`,Κ:`K`,Λ:`L`,Μ:`M`,Ν:`N`,Ξ:`KS`,Ο:`O`,Π:`P`,Ρ:`R`,Σ:`S`,Τ:`T`,Υ:`Y`,Φ:`F`,Χ:`X`,Ψ:`PS`,Ω:`O`,Ά:`A`,Έ:`E`,Ί:`I`,Ό:`O`,Ύ:`Y`,Ή:`I`,Ώ:`O`,Ϊ:`I`,Ϋ:`Y`,ā:`a`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,ū:`u`,Ā:`A`,Ē:`E`,Ģ:`G`,Ī:`I`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Ū:`U`,Ќ:`Kj`,ќ:`kj`,Љ:`Lj`,љ:`lj`,Њ:`Nj`,њ:`nj`,Тс:`Ts`,тс:`ts`,ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`E`,Ł:`L`,Ń:`N`,Ś:`S`,Ź:`Z`,Ż:`Z`,Є:`Ye`,І:`I`,Ї:`Yi`,Ґ:`G`,є:`ye`,і:`i`,ї:`yi`,ґ:`g`,ă:`a`,Ă:`A`,ș:`s`,Ș:`S`,ț:`t`,Ț:`T`,ţ:`t`,Ţ:`T`,а:`a`,б:`b`,в:`v`,г:`g`,д:`d`,е:`e`,ё:`yo`,ж:`zh`,з:`z`,и:`i`,й:`i`,к:`k`,л:`l`,м:`m`,н:`n`,о:`o`,п:`p`,р:`r`,с:`s`,т:`t`,у:`u`,ф:`f`,х:`kh`,ц:`c`,ч:`ch`,ш:`sh`,щ:`sh`,ъ:``,ы:`y`,ь:``,э:`e`,ю:`yu`,я:`ya`,А:`A`,Б:`B`,В:`V`,Г:`G`,Д:`D`,Е:`E`,Ё:`Yo`,Ж:`Zh`,З:`Z`,И:`I`,Й:`I`,К:`K`,Л:`L`,М:`M`,Н:`N`,О:`O`,П:`P`,Р:`R`,С:`S`,Т:`T`,У:`U`,Ф:`F`,Х:`Kh`,Ц:`C`,Ч:`Ch`,Ш:`Sh`,Щ:`Sh`,Ъ:``,Ы:`Y`,Ь:``,Э:`E`,Ю:`Yu`,Я:`Ya`,ђ:`dj`,ј:`j`,ћ:`c`,џ:`dz`,Ђ:`Dj`,Ј:`j`,Ћ:`C`,Џ:`Dz`,ľ:`l`,ĺ:`l`,ŕ:`r`,Ľ:`L`,Ĺ:`L`,Ŕ:`R`,ş:`s`,Ş:`S`,ı:`i`,İ:`I`,ğ:`g`,Ğ:`G`,ả:`a`,Ả:`A`,ẳ:`a`,Ẳ:`A`,ẩ:`a`,Ẩ:`A`,đ:`d`,Đ:`D`,ẹ:`e`,Ẹ:`E`,ẽ:`e`,Ẽ:`E`,ẻ:`e`,Ẻ:`E`,ế:`e`,Ế:`E`,ề:`e`,Ề:`E`,ệ:`e`,Ệ:`E`,ễ:`e`,Ễ:`E`,ể:`e`,Ể:`E`,ỏ:`o`,ọ:`o`,Ọ:`o`,ố:`o`,Ố:`O`,ồ:`o`,Ồ:`O`,ổ:`o`,Ổ:`O`,ộ:`o`,Ộ:`O`,ỗ:`o`,Ỗ:`O`,ơ:`o`,Ơ:`O`,ớ:`o`,Ớ:`O`,ờ:`o`,Ờ:`O`,ợ:`o`,Ợ:`O`,ỡ:`o`,Ỡ:`O`,Ở:`o`,ở:`o`,ị:`i`,Ị:`I`,ĩ:`i`,Ĩ:`I`,ỉ:`i`,Ỉ:`i`,ủ:`u`,Ủ:`U`,ụ:`u`,Ụ:`U`,ũ:`u`,Ũ:`U`,ư:`u`,Ư:`U`,ứ:`u`,Ứ:`U`,ừ:`u`,Ừ:`U`,ự:`u`,Ự:`U`,ữ:`u`,Ữ:`U`,ử:`u`,Ử:`ư`,ỷ:`y`,Ỷ:`y`,ỳ:`y`,Ỳ:`Y`,ỵ:`y`,Ỵ:`Y`,ỹ:`y`,Ỹ:`Y`,ạ:`a`,Ạ:`A`,ấ:`a`,Ấ:`A`,ầ:`a`,Ầ:`A`,ậ:`a`,Ậ:`A`,ẫ:`a`,Ẫ:`A`,ắ:`a`,Ắ:`A`,ằ:`a`,Ằ:`A`,ặ:`a`,Ặ:`A`,ẵ:`a`,Ẵ:`A`,"⓪":`0`,"①":`1`,"②":`2`,"③":`3`,"④":`4`,"⑤":`5`,"⑥":`6`,"⑦":`7`,"⑧":`8`,"⑨":`9`,"⑩":`10`,"⑪":`11`,"⑫":`12`,"⑬":`13`,"⑭":`14`,"⑮":`15`,"⑯":`16`,"⑰":`17`,"⑱":`18`,"⑲":`18`,"⑳":`18`,"⓵":`1`,"⓶":`2`,"⓷":`3`,"⓸":`4`,"⓹":`5`,"⓺":`6`,"⓻":`7`,"⓼":`8`,"⓽":`9`,"⓾":`10`,"⓿":`0`,"⓫":`11`,"⓬":`12`,"⓭":`13`,"⓮":`14`,"⓯":`15`,"⓰":`16`,"⓱":`17`,"⓲":`18`,"⓳":`19`,"⓴":`20`,"Ⓐ":`A`,"Ⓑ":`B`,"Ⓒ":`C`,"Ⓓ":`D`,"Ⓔ":`E`,"Ⓕ":`F`,"Ⓖ":`G`,"Ⓗ":`H`,"Ⓘ":`I`,"Ⓙ":`J`,"Ⓚ":`K`,"Ⓛ":`L`,"Ⓜ":`M`,"Ⓝ":`N`,"Ⓞ":`O`,"Ⓟ":`P`,"Ⓠ":`Q`,"Ⓡ":`R`,"Ⓢ":`S`,"Ⓣ":`T`,"Ⓤ":`U`,"Ⓥ":`V`,"Ⓦ":`W`,"Ⓧ":`X`,"Ⓨ":`Y`,"Ⓩ":`Z`,"ⓐ":`a`,"ⓑ":`b`,"ⓒ":`c`,"ⓓ":`d`,"ⓔ":`e`,"ⓕ":`f`,"ⓖ":`g`,"ⓗ":`h`,"ⓘ":`i`,"ⓙ":`j`,"ⓚ":`k`,"ⓛ":`l`,"ⓜ":`m`,"ⓝ":`n`,"ⓞ":`o`,"ⓟ":`p`,"ⓠ":`q`,"ⓡ":`r`,"ⓢ":`s`,"ⓣ":`t`,"ⓤ":`u`,"ⓦ":`v`,"ⓥ":`w`,"ⓧ":`x`,"ⓨ":`y`,"ⓩ":`z`,"“":`"`,"”":`"`,"‘":`'`,"’":`'`,"∂":`d`,ƒ:`f`,"™":`(TM)`,"©":`(C)`,œ:`oe`,Œ:`OE`,"®":`(R)`,"†":`+`,"℠":`(SM)`,"…":`...`,"˚":`o`,º:`o`,ª:`a`,"•":`*`,"၊":`,`,"။":`.`,$:`USD`,"€":`EUR`,"₢":`BRN`,"₣":`FRF`,"£":`GBP`,"₤":`ITL`,"₦":`NGN`,"₧":`ESP`,"₩":`KRW`,"₪":`ILS`,"₫":`VND`,"₭":`LAK`,"₮":`MNT`,"₯":`GRD`,"₱":`ARS`,"₲":`PYG`,"₳":`ARA`,"₴":`UAH`,"₵":`GHS`,"¢":`cent`,"¥":`CNY`,元:`CNY`,円:`YEN`,"﷼":`IRR`,"₠":`EWE`,"฿":`THB`,"₨":`INR`,"₹":`INR`,"₰":`PF`,"₺":`TRY`,"؋":`AFN`,"₼":`AZN`,лв:`BGN`,"៛":`KHR`,"₡":`CRC`,"₸":`KZT`,ден:`MKD`,zł:`PLN`,"₽":`RUB`,"₾":`GEL`},r=[`်`,`ް`],i={"ာ":`a`,"ါ":`a`,"ေ":`e`,"ဲ":`e`,"ိ":`i`,"ီ":`i`,"ို":`o`,"ု":`u`,"ူ":`u`,"ေါင်":`aung`,"ော":`aw`,"ော်":`aw`,"ေါ":`aw`,"ေါ်":`aw`,"်":`်`,က်:`et`,"ိုက်":`aik`,"ောက်":`auk`,င်:`in`,"ိုင်":`aing`,"ောင်":`aung`,စ်:`it`,ည်:`i`,တ်:`at`,"ိတ်":`eik`,"ုတ်":`ok`,"ွတ်":`ut`,"ေတ်":`it`,ဒ်:`d`,"ိုဒ်":`ok`,"ုဒ်":`ait`,န်:`an`,"ာန်":`an`,"ိန်":`ein`,"ုန်":`on`,"ွန်":`un`,ပ်:`at`,"ိပ်":`eik`,"ုပ်":`ok`,"ွပ်":`ut`,န်ုပ်:`nub`,မ်:`an`,"ိမ်":`ein`,"ုမ်":`on`,"ွမ်":`un`,ယ်:`e`,"ိုလ်":`ol`,ဉ်:`in`,"ံ":`an`,"ိံ":`ein`,"ုံ":`on`,"ައް":`ah`,"ަށް":`ah`},a={en:{},az:{ç:`c`,ə:`e`,ğ:`g`,ı:`i`,ö:`o`,ş:`s`,ü:`u`,Ç:`C`,Ə:`E`,Ğ:`G`,İ:`I`,Ö:`O`,Ş:`S`,Ü:`U`},cs:{č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`},fi:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},hu:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`,ü:`u`,Ü:`U`,ű:`u`,Ű:`U`},lt:{ą:`a`,č:`c`,ę:`e`,ė:`e`,į:`i`,š:`s`,ų:`u`,ū:`u`,ž:`z`,Ą:`A`,Č:`C`,Ę:`E`,Ė:`E`,Į:`I`,Š:`S`,Ų:`U`,Ū:`U`},lv:{ā:`a`,č:`c`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,š:`s`,ū:`u`,ž:`z`,Ā:`A`,Č:`C`,Ē:`E`,Ģ:`G`,Ī:`i`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Š:`S`,Ū:`u`,Ž:`Z`},pl:{ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ó:`o`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`e`,Ł:`L`,Ń:`N`,Ó:`O`,Ś:`S`,Ź:`Z`,Ż:`Z`},sv:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},sk:{ä:`a`,Ä:`A`},sr:{љ:`lj`,њ:`nj`,Љ:`Lj`,Њ:`Nj`,đ:`dj`,Đ:`Dj`},tr:{Ü:`U`,Ö:`O`,ü:`u`,ö:`o`}},o={ar:{"∆":`delta`,"∞":`la-nihaya`,"♥":`hob`,"&":`wa`,"|":`aw`,"<":`aqal-men`,">":`akbar-men`,"∑":`majmou`,"¤":`omla`},az:{},ca:{"∆":`delta`,"∞":`infinit`,"♥":`amor`,"&":`i`,"|":`o`,"<":`menys que`,">":`mes que`,"∑":`suma dels`,"¤":`moneda`},cs:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`nebo`,"<":`mensi nez`,">":`vetsi nez`,"∑":`soucet`,"¤":`mena`},de:{"∆":`delta`,"∞":`unendlich`,"♥":`Liebe`,"&":`und`,"|":`oder`,"<":`kleiner als`,">":`groesser als`,"∑":`Summe von`,"¤":`Waehrung`},dv:{"∆":`delta`,"∞":`kolunulaa`,"♥":`loabi`,"&":`aai`,"|":`noonee`,"<":`ah vure kuda`,">":`ah vure bodu`,"∑":`jumula`,"¤":`faisaa`},en:{"∆":`delta`,"∞":`infinity`,"♥":`love`,"&":`and`,"|":`or`,"<":`less than`,">":`greater than`,"∑":`sum`,"¤":`currency`},es:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`y`,"|":`u`,"<":`menos que`,">":`mas que`,"∑":`suma de los`,"¤":`moneda`},fa:{"∆":`delta`,"∞":`bi-nahayat`,"♥":`eshgh`,"&":`va`,"|":`ya`,"<":`kamtar-az`,">":`bishtar-az`,"∑":`majmooe`,"¤":`vahed`},fi:{"∆":`delta`,"∞":`aarettomyys`,"♥":`rakkaus`,"&":`ja`,"|":`tai`,"<":`pienempi kuin`,">":`suurempi kuin`,"∑":`summa`,"¤":`valuutta`},fr:{"∆":`delta`,"∞":`infiniment`,"♥":`Amour`,"&":`et`,"|":`ou`,"<":`moins que`,">":`superieure a`,"∑":`somme des`,"¤":`monnaie`},ge:{"∆":`delta`,"∞":`usasruloba`,"♥":`siqvaruli`,"&":`da`,"|":`an`,"<":`naklebi`,">":`meti`,"∑":`jami`,"¤":`valuta`},gr:{},hu:{"∆":`delta`,"∞":`vegtelen`,"♥":`szerelem`,"&":`es`,"|":`vagy`,"<":`kisebb mint`,">":`nagyobb mint`,"∑":`szumma`,"¤":`penznem`},it:{"∆":`delta`,"∞":`infinito`,"♥":`amore`,"&":`e`,"|":`o`,"<":`minore di`,">":`maggiore di`,"∑":`somma`,"¤":`moneta`},lt:{"∆":`delta`,"∞":`begalybe`,"♥":`meile`,"&":`ir`,"|":`ar`,"<":`maziau nei`,">":`daugiau nei`,"∑":`suma`,"¤":`valiuta`},lv:{"∆":`delta`,"∞":`bezgaliba`,"♥":`milestiba`,"&":`un`,"|":`vai`,"<":`mazak neka`,">":`lielaks neka`,"∑":`summa`,"¤":`valuta`},my:{"∆":`kwahkhyaet`,"∞":`asaonasme`,"♥":`akhyait`,"&":`nhin`,"|":`tho`,"<":`ngethaw`,">":`kyithaw`,"∑":`paungld`,"¤":`ngwekye`},mk:{},nl:{"∆":`delta`,"∞":`oneindig`,"♥":`liefde`,"&":`en`,"|":`of`,"<":`kleiner dan`,">":`groter dan`,"∑":`som`,"¤":`valuta`},pl:{"∆":`delta`,"∞":`nieskonczonosc`,"♥":`milosc`,"&":`i`,"|":`lub`,"<":`mniejsze niz`,">":`wieksze niz`,"∑":`suma`,"¤":`waluta`},pt:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`e`,"|":`ou`,"<":`menor que`,">":`maior que`,"∑":`soma`,"¤":`moeda`},ro:{"∆":`delta`,"∞":`infinit`,"♥":`dragoste`,"&":`si`,"|":`sau`,"<":`mai mic ca`,">":`mai mare ca`,"∑":`suma`,"¤":`valuta`},ru:{"∆":`delta`,"∞":`beskonechno`,"♥":`lubov`,"&":`i`,"|":`ili`,"<":`menshe`,">":`bolshe`,"∑":`summa`,"¤":`valjuta`},sk:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`alebo`,"<":`menej ako`,">":`viac ako`,"∑":`sucet`,"¤":`mena`},sr:{},tr:{"∆":`delta`,"∞":`sonsuzluk`,"♥":`ask`,"&":`ve`,"|":`veya`,"<":`kucuktur`,">":`buyuktur`,"∑":`toplam`,"¤":`para birimi`},uk:{"∆":`delta`,"∞":`bezkinechnist`,"♥":`lubov`,"&":`i`,"|":`abo`,"<":`menshe`,">":`bilshe`,"∑":`suma`,"¤":`valjuta`},vn:{"∆":`delta`,"∞":`vo cuc`,"♥":`yeu`,"&":`va`,"|":`hoac`,"<":`nho hon`,">":`lon hon`,"∑":`tong`,"¤":`tien te`}},s=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),l=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),u=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),d=function(e,t){var d=`-`,f=``,h=``,g=!0,_={},v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(d=t),w=o.en,T=a.en,typeof t==`object`)for(O in v=t.maintainCase||!1,_=t.custom&&typeof t.custom==`object`?t.custom:_,b=+t.truncate>1&&t.truncate||!1,x=t.uric||!1,S=t.uricNoSlash||!1,C=t.mark||!1,g=t.symbols!==!1&&t.lang!==!1,d=t.separator||d,x&&(M+=s),S&&(M+=l),C&&(M+=u),w=t.lang&&o[t.lang]&&g?o[t.lang]:g?o.en:{},T=t.lang&&a[t.lang]?a[t.lang]:t.lang===!1||t.lang===!0?{}:a.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){_[e+``]=e+``}),y=!0):y=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){_[e+``]=e+``}),Object.keys(_).forEach(function(t){var n=t.length>1?RegExp(`\\b`+p(t)+`\\b`,`gi`):new RegExp(p(t),`gi`);e=e.replace(n,_[t])}),_)M+=O;for(M+=d,M=p(M),e=e.replace(/(^\s+|\s+$)/g,``),A=!1,j=!1,D=0,k=e.length;D<k;D++)O=e[D],m(O,_)?A=!1:T[O]?(O=A&&T[O].match(/[A-Za-z0-9]/)?` `+T[O]:T[O],A=!1):O in n?(D+1<k&&r.indexOf(e[D+1])>=0?(h+=O,O=``):j===!0?(O=i[h]+n[O],h=``):O=A&&n[O].match(/[A-Za-z0-9]/)?` `+n[O]:n[O],A=!1,j=!1):O in i?(h+=O,O=``,D===k-1&&(O=i[h]),j=!0):w[O]&&!(x&&s.indexOf(O)!==-1)&&!(S&&l.indexOf(O)!==-1)?(O=A||f.substr(-1).match(/[A-Za-z0-9]/)?d+w[O]:w[O],O+=e[D+1]!==void 0&&e[D+1].match(/[A-Za-z0-9]/)?d:``,A=!0):(j===!0?(O=i[h]+O,h=``,j=!1):A&&(/[A-Za-z0-9]/.test(O)||f.substr(-1).match(/A-Za-z0-9]/))&&(O=` `+O),A=!1),f+=O.replace(RegExp(`[^\\w\\s`+M+`_-]`,`g`),d);return y&&(f=f.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(n===null?``:n);return Object.keys(_).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),f=f.replace(/\s+/g,d).replace(RegExp(`\\`+d+`+`,`g`),d).replace(RegExp(`(^\\`+d+`+|\\`+d+`+$)`,`g`),``),b&&f.length>b&&(E=f.charAt(b)===d,f=f.slice(0,b),E||(f=f.slice(0,f.lastIndexOf(d)))),!v&&!y&&(f=f.toLowerCase()),f},f=function(e){return function(t){return d(t,e)}},p=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},m=function(e,t){for(var n in t)if(t[n]===e)return!0};if(t!==void 0&&t.exports)t.exports=d,t.exports.createSlug=f;else if(typeof define<`u`&&define.amd)define([],function(){return d});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=d,e.createSlug=f}catch{}})(e)}}),Nte=On({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){kn(),t.exports=Mte()}});kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn();function Pte(e){let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function Fte(e){let t=e.__file;if(t)return _te(vte(t,`.vue`))}function An(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function jn(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Mn(e){let t=e.subTree?.type,n=jn(e);return n?n?.types?.Fragment===t:!1}function Nn(e){let t=Pte(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return An(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return An(e,t);return Fte(e?.type||{})||`Anonymous Component`}function Ite(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function Pn(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function Lte(){let e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Fn;function Rte(e){return Fn||=document.createRange(),Fn.selectNode(e),Fn.getBoundingClientRect()}function zte(e){let t=Lte();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],i;if(r.component)i=Ln(r.component);else if(r.el){let e=r.el;e.nodeType===1||e.getBoundingClientRect?i=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(i=Rte(e))}i&&Bte(t,i)}return t}function Bte(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var In={top:0,left:0,right:0,bottom:0,width:0,height:0};function Ln(e){let t=e.subTree.el;return typeof window>`u`?In:Mn(e)?zte(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?Ln(e.subTree.component):In}kn();function Rn(e){return Mn(e)?Vte(e.subTree):e.subTree?[e.subTree.el]:[]}function Vte(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...Rn(e.component)):e?.el&&t.push(e.el)}),t}var zn=`__vue-devtools-component-inspector__`,Bn=`__vue-devtools-component-inspector__card__`,Vn=`__vue-devtools-component-inspector__name__`,Hn=`__vue-devtools-component-inspector__indicator__`,Un={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},Hte={fontFamily:`Arial, Helvetica, sans-serif`,padding:`5px 8px`,borderRadius:`4px`,textAlign:`left`,position:`absolute`,left:0,color:`#e9e9e9`,fontSize:`14px`,fontWeight:600,lineHeight:`24px`,backgroundColor:`#42b883`,boxShadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},Ute={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function Wn(){return document.getElementById(zn)}function Wte(){return document.getElementById(Bn)}function Gte(){return document.getElementById(Hn)}function Kte(){return document.getElementById(Vn)}function Gn(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Kn(e){let t=document.createElement(`div`);t.id=e.elementId??zn,Object.assign(t.style,{...Un,...Gn(e.bounds),...e.style});let n=document.createElement(`span`);n.id=Bn,Object.assign(n.style,{...Hte,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=Vn,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;let i=document.createElement(`i`);return i.id=Hn,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,Ute),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function qn(e){let t=Wn(),n=Wte(),r=Kte(),i=Gte();t&&(Object.assign(t.style,{...Un,...Gn(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:`-35px`}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function qte(e){let t=Ln(e);if(!t.width&&!t.height)return;let n=Nn(e);Wn()?qn({bounds:t,name:n}):Kn({bounds:t,name:n})}function Jn(){let e=Wn();e&&(e.style.display=`none`)}var Yn=null;function Xn(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(Yn=e,e.vnode.el)){let t=Ln(e),n=Nn(e);Wn()?qn({bounds:t,name:n}):Kn({bounds:t,name:n})}}}function Jte(e,t){e.preventDefault(),e.stopPropagation(),Yn&&t(Ite(Yn))}var Zn=null;function Yte(){Jn(),window.removeEventListener(`mouseover`,Xn),window.removeEventListener(`click`,Zn,!0),Zn=null}function Xte(){return window.addEventListener(`mouseover`,Xn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Jte(n,n=>{window.removeEventListener(`click`,t,!0),Zn=null,window.removeEventListener(`mouseover`,Xn);let r=Wn();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Zn=t,window.addEventListener(`click`,t,!0)})}function Zte(e){let t=Pn(_r.value,e.id);if(t){let[n]=Rn(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=Ln(t),n=document.createElement(`div`),r={...Gn(e),position:`absolute`};Object.assign(n.style,r),document.body.appendChild(n),n.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{let n=Ln(t);if(n.width||n.height){let r=Nn(t),i=Wn();i?qn({...e,name:r,bounds:n}):Kn({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}kn();var Qn;(Qn=yn).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??(Qn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Qte(e){let t=0,n=setInterval(()=>{yn.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function $te(){let e=yn.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function ene(){return new Promise(e=>{function t(){$te(),e(yn.__VUE_INSPECTOR__)}yn.__VUE_INSPECTOR__?t():Qte(()=>{t()})})}kn(),kn();function tne(e){return!!(e&&e.__v_isReadonly)}function $n(e){return tne(e)?$n(e.__v_raw):!!(e&&e.__v_isReactive)}function er(e){return!!(e&&e.__v_isRef===!0)}function tr(e){let t=e&&e.__v_raw;return t?tr(t):e}var nr=class{constructor(){this.refEditor=new nne}set(e,t,n,r){let i=Array.isArray(t)?t:t.split(`.`);for(;i.length>1;){let t=i.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let a=i[0],o=this.refEditor.get(e)[a];r?r(e,a,n):this.refEditor.isRef(o)?this.refEditor.set(o,n):e[a]=n}get(e,t){let n=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<n.length;t++)if(e=e instanceof Map?e.get(n[t]):e[n[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;let r=Array.isArray(t)?t.slice():t.split(`.`),i=n?2:1;for(;e&&r.length>i;){let t=r.shift();e=e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):tr(t)instanceof Map?t.delete(n):tr(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){let i=t[e.newKey||n];this.refEditor.isRef(i)?this.refEditor.set(i,r):tr(t)instanceof Map?t.set(e.newKey||n,r):tr(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},nne=class{set(e,t){if(er(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let n=Object.keys(t);if(e instanceof Map){let r=new Set(e.keys());n.forEach(n=>{e.set(n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>e.delete(t));return}let r=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return er(e)?e.value:e}isRef(e){return er(e)||$n(e)}};new nr,kn(),kn(),kn();var rne=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function ine(){if(typeof window>`u`||!vn||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(rne);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}kn(),kn(),kn();var rr;(rr=yn).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??(rr.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var ane=new Proxy(yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function one(e,t){yr.timelineLayersState[t.id]=!1,ane.push({...e,descriptorId:t.id,appRecord:jn(t.app)})}var ir;(ir=yn).__VUE_DEVTOOLS_KIT_INSPECTOR__??(ir.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var ar=new Proxy(yn.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),or=xn(()=>{Or.hooks.callHook(`sendInspectorToClient`,sr())});function sne(e,t){ar.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:jn(t.app)}),or()}function sr(){return ar.filter(e=>e.descriptor.app===_r.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${(n?.icon)?.replace(/_/g,`-`)}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function cr(e,t){return ar.find(n=>n.options.id===e&&(!t||n.descriptor.app===t))}function cne(){let e=Tn();e.hook(`addInspector`,({inspector:e,plugin:t})=>{sne(e,t.descriptor)});let t=xn(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||yr.highPerfModeEnabled)return;let r=cr(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:r?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},`getInspectorTree`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},`sendInspectorTreeToClient`)},120);e.hook(`sendInspectorTree`,t);let n=xn(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||yr.highPerfModeEnabled)return;let r=cr(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:r?.selectedNodeId||``,state:null},a={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,a))),t()},`getInspectorState`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},`sendInspectorStateToClient`)},120);return e.hook(`sendInspectorState`,n),e.hook(`customInspectorSelectNode`,({inspectorId:e,nodeId:t,plugin:n})=>{let r=cr(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(`timelineLayerAdded`,({options:e,plugin:t})=>{one(e,t.descriptor)}),e.hook(`timelineEventAdded`,({options:t,plugin:n})=>{yr.highPerfModeEnabled||!yr.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},`sendTimelineEventToClient`)}),e.hook(`getComponentInstances`,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===n).map(([,e])=>e)}),e.hook(`getComponentBounds`,async({instance:e})=>Ln(e)),e.hook(`getComponentName`,({instance:e})=>Nn(e)),e.hook(`componentHighlight`,({uid:e})=>{let t=_r.value.instanceMap.get(e);t&&qte(t)}),e.hook(`componentUnhighlight`,()=>{Jn()}),e}var lr;(lr=yn).__VUE_DEVTOOLS_KIT_APP_RECORDS__??(lr.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var ur;(ur=yn).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??(ur.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var dr;(dr=yn).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??(dr.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=``);var fr;(fr=yn).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??(fr.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var pr;(pr=yn).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??(pr.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var mr=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function lne(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:ine()}}var hr;(hr=yn)[mr]??(hr[mr]=lne());var une=xn(e=>{Or.hooks.callHook(`devtoolsStateUpdated`,{state:e})});xn((e,t)=>{Or.hooks.callHook(`devtoolsConnectedUpdated`,{state:e,oldState:t})});var gr=new Proxy(yn.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?yn.__VUE_DEVTOOLS_KIT_APP_RECORDS__:yn.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),_r=new Proxy(yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function vr(){une({...yn[mr],appRecords:gr.value,activeAppRecordId:_r.id,tabs:yn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:yn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function dne(e){yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,vr()}function fne(e){yn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,vr()}var yr=new Proxy(yn[mr],{get(e,t){return t===`appRecords`?gr:t===`activeAppRecordId`?_r.id:t===`tabs`?yn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?yn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:yn[mr][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...yn[mr]},e[t]=n,yn[mr][t]=n,!0}});function pne(e={}){let{file:t,host:n,baseUrl:r=window.location.origin,line:i=0,column:a=0}=e;if(t){if(n===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),n=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(yr.vitePluginDetected){let e=yn.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;yn.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}kn(),kn(),kn(),kn(),kn();var br;(br=yn).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??(br.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var xr=new Proxy(yn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Sr(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Cr(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function mne(e){return(xr.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function hne(e,t){let n=Cr(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return Sr(e?(xr.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function gne(e,t){let n=Cr(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Sr(t)))}function _ne(e,t,n){let r=Cr(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),Or.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},`setPluginSettings`)}kn();var vne,wr=(vne=yn).__VUE_DEVTOOLS_HOOK??(vne.__VUE_DEVTOOLS_HOOK=Tn()),yne={on:{vueAppInit(e){wr.hook(`app:init`,e)},vueAppUnmount(e){wr.hook(`app:unmount`,e)},vueAppConnected(e){wr.hook(`app:connected`,e)},componentAdded(e){return wr.hook(`component:added`,e)},componentEmit(e){return wr.hook(`component:emit`,e)},componentUpdated(e){return wr.hook(`component:updated`,e)},componentRemoved(e){return wr.hook(`component:removed`,e)},setupDevtoolsPlugin(e){wr.hook(`devtools-plugin:setup`,e)},perfStart(e){return wr.hook(`perf:start`,e)},perfEnd(e){return wr.hook(`perf:end`,e)}},setupDevToolsPlugin(e,t){return wr.callHook(`devtools-plugin:setup`,e,t)}},bne=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(`visitComponentTree`,e)},inspectComponent:e=>{this.hooks.hook(`inspectComponent`,e)},editComponentState:e=>{this.hooks.hook(`editComponentState`,e)},getInspectorTree:e=>{this.hooks.hook(`getInspectorTree`,e)},getInspectorState:e=>{this.hooks.hook(`getInspectorState`,e)},editInspectorState:e=>{this.hooks.hook(`editInspectorState`,e)},inspectTimelineEvent:e=>{this.hooks.hook(`inspectTimelineEvent`,e)},timelineCleared:e=>{this.hooks.hook(`timelineCleared`,e)},setPluginSettings:e=>{this.hooks.hook(`setPluginSettings`,e)}}}notifyComponentUpdate(e){if(yr.highPerfModeEnabled)return;let t=sr().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];wr.callHook(`component:updated`,...t)}else wr.callHook(`component:updated`);this.hooks.callHook(`sendInspectorState`,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(`addInspector`,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&gne(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){yr.highPerfModeEnabled||this.hooks.callHook(`sendInspectorTree`,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){yr.highPerfModeEnabled||this.hooks.callHook(`sendInspectorState`,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(`customInspectorSelectNode`,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(`visitComponentTree`,e)}now(){return yr.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(`timelineLayerAdded`,{options:e,plugin:this.plugin})}addTimelineEvent(e){yr.highPerfModeEnabled||this.hooks.callHook(`timelineEventAdded`,{options:e,plugin:this.plugin})}getSettings(e){return hne(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(`getComponentInstances`,{app:e})}getComponentBounds(e){return this.hooks.callHook(`getComponentBounds`,{instance:e})}getComponentName(e){return this.hooks.callHook(`getComponentName`,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(`componentHighlight`,{uid:t})}unhighlightElement(){return this.hooks.callHook(`componentUnhighlight`)}};kn(),kn(),kn(),kn();var xne=`__vue_devtool_undefined__`,Sne=`__vue_devtool_infinity__`,Cne=`__vue_devtool_negative_infinity__`,wne=`__vue_devtool_nan__`;kn(),kn(),Object.entries({[xne]:`undefined`,[wne]:`NaN`,[Sne]:`Infinity`,[Cne]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),kn(),kn(),kn(),kn(),kn();var Tne;(Tne=yn).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??(Tne.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Ene(e,t){return yne.setupDevToolsPlugin(e,t)}function Dne(e,t){let[n,r]=e;if(n.app!==t)return;let i=new bne({plugin:{setupFn:r,descriptor:n},ctx:Or});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function One(e,t){yn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||(!yr.highPerfModeEnabled||t?.inspectingComponent)&&(yn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),xr.forEach(t=>{Dne(t,e)}))}kn(),kn();var Tr=`__VUE_DEVTOOLS_ROUTER__`,Er=`__VUE_DEVTOOLS_ROUTER_INFO__`,kne;(kne=yn).__VUE_DEVTOOLS_ROUTER_INFO__??(kne.__VUE_DEVTOOLS_ROUTER_INFO__={currentRoute:null,routes:[]});var Ane;(Ane=yn).__VUE_DEVTOOLS_ROUTER__??(Ane.__VUE_DEVTOOLS_ROUTER__={}),new Proxy(yn[Er],{get(e,t){return yn[Er][t]}}),new Proxy(yn[Tr],{get(e,t){if(t===`value`)return yn[Tr]}});function jne(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Dr(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=Dr(r)),{path:t,name:n,children:r,meta:i}})}function Mne(e){if(e){let{fullPath:t,hash:n,href:r,path:i,name:a,matched:o,params:s,query:l}=e;return{fullPath:t,hash:n,href:r,path:i,name:a,params:s,query:l,matched:Dr(o)}}return e}function Nne(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=Mne(t?.currentRoute.value),r=Dr(jne(t)),i=console.warn;console.warn=()=>{},yn[Er]={currentRoute:n?bn(n):{},routes:bn(r)},yn[Tr]=t,console.warn=i}n(),yne.on.componentUpdated(xn(()=>{t.value?.app===e.app&&(n(),!yr.highPerfModeEnabled&&Or.hooks.callHook(`routerInfoUpdated`,{state:yn[Er]}))},200))}function Pne(e){return{async getInspectorTree(t){let n={...t,app:_r.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},`getInspectorTree`)}),n.rootNodes},async getInspectorState(t){let n={...t,app:_r.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n,r))),t()},`getInspectorState`)}),n.state},editInspectorState(t){let n=new nr,r={...t,app:_r.value.app,set:(e,r=t.path,i=t.state.value,a)=>{n.set(e,r,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(e=>{e.forEach(e=>e(r))},`editInspectorState`)},sendInspectorState(t){let n=cr(t);e.callHook(`sendInspectorState`,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Xte()},cancelInspectComponentInspector(){return Yte()},getComponentRenderCode(e){let t=Pn(_r.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return Zte({id:e})},openInEditor:pne,getVueInspector:ene,toggleApp(e,t){let n=gr.value.find(t=>t.id===e);n&&(fne(e),dne(n),Nne(n,_r),or(),One(n.app,t))},inspectDOM(e){let t=Pn(_r.value,e);if(t){let[e]=Rn(t);e&&(yn.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){_ne(e,t,n)},getPluginSettings(e){return{options:mne(e),values:hne(e)}}}}kn();var Fne;(Fne=yn).__VUE_DEVTOOLS_ENV__??(Fne.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Ine=cne(),Lne;(Lne=yn).__VUE_DEVTOOLS_KIT_CONTEXT__??(Lne.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Ine,get state(){return{...yr,activeAppRecordId:_r.id,activeAppRecord:_r.value,appRecords:gr.value}},api:Pne(Ine)});var Or=yn.__VUE_DEVTOOLS_KIT_CONTEXT__;kn(),jte(Nte(),1);var Rne;(Rne=yn).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??(Rne.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),kn(),kn();function zne(e){yr.highPerfModeEnabled=e??!yr.highPerfModeEnabled,!e&&_r.value&&One(_r.value.app)}kn(),kn(),kn();function Bne(e){yr.devtoolsClientDetected={...yr.devtoolsClientDetected,...e},zne(!Object.values(yr.devtoolsClientDetected).some(Boolean))}var Vne;(Vne=yn).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??(Vne.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=Bne),kn(),kn(),kn(),kn(),kn(),kn();var Hne=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Une=class{constructor(e){this.generateIdentifier=e,this.kv=new Hne}register(e,t){this.kv.getByValue(e)||(t||=this.generateIdentifier(e),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Wne=class extends Une{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t==`object`?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};kn(),kn();function Gne(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Kne(e,t){let n=Gne(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function kr(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function Ar(e,t){return e.indexOf(t)!==-1}function jr(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var qne=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Kne(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};kn(),kn();var Jne=e=>Object.prototype.toString.call(e).slice(8,-1),Mr=e=>e===void 0,Yne=e=>e===null,Nr=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype,Pr=e=>Nr(e)&&Object.keys(e).length===0,Fr=e=>Array.isArray(e),Xne=e=>typeof e==`string`,Zne=e=>typeof e==`number`&&!isNaN(e),Qne=e=>typeof e==`boolean`,$ne=e=>e instanceof RegExp,Ir=e=>e instanceof Map,Lr=e=>e instanceof Set,ere=e=>Jne(e)===`Symbol`,tre=e=>e instanceof Date&&!isNaN(e.valueOf()),nre=e=>e instanceof Error,rre=e=>typeof e==`number`&&isNaN(e),ire=e=>Qne(e)||Yne(e)||Mr(e)||Zne(e)||Xne(e)||ere(e),are=e=>typeof e==`bigint`,ore=e=>e===1/0||e===-1/0,sre=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),cre=e=>e instanceof URL;kn();var lre=e=>e.replace(/\./g,`\\.`),Rr=e=>e.map(String).map(lre).join(`.`),zr=e=>{let t=[],n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`&&e.charAt(r+1)===`.`){n+=`.`,r++;continue}if(i===`.`){t.push(n),n=``;continue}n+=i}let r=n;return t.push(r),t};kn();function Br(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Vr=[Br(Mr,`undefined`,()=>null,()=>void 0),Br(are,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Br(tre,`Date`,e=>e.toISOString(),e=>new Date(e)),Br(nre,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Br($ne,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Br(Lr,`set`,e=>[...e.values()],e=>new Set(e)),Br(Ir,`map`,e=>[...e.entries()],e=>new Map(e)),Br(e=>rre(e)||ore(e),`number`,e=>rre(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Br(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Br(cre,`URL`,e=>e.toString(),e=>new URL(e))];function Hr(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Ur=Hr((e,t)=>ere(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),ure=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Wr=Hr(sre,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=ure[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function Gr(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Kr=Hr(Gr,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),qr=Hr((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>[`custom`,t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),dre=[Kr,Ur,qr,Wr],Jr=(e,t)=>{let n=jr(dre,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=jr(Vr,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Yr={};Vr.forEach(e=>{Yr[e.annotation]=e});var fre=(e,t,n)=>{if(Fr(t))switch(t[0]){case`symbol`:return Ur.untransform(e,t,n);case`class`:return Kr.untransform(e,t,n);case`custom`:return qr.untransform(e,t,n);case`typed-array`:return Wr.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Yr[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}};kn();var Xr=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Zr(e){if(Ar(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(Ar(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(Ar(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var pre=(e,t)=>{Zr(t);for(let n=0;n<t.length;n++){let r=t[n];if(Lr(e))e=Xr(e,+r);else if(Ir(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=Xr(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o)}}else e=e[r]}return e},Qr=(e,t,n)=>{if(Zr(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(Fr(r)){let e=+n;r=r[e]}else if(Nr(r))r=r[n];else if(Lr(r)){let e=+n;r=Xr(r,e)}else if(Ir(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=Xr(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o)}}}let i=t[t.length-1];if(Fr(r)?r[+i]=n(r[+i]):Nr(r)&&(r[i]=n(r[i])),Lr(r)){let e=Xr(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(Ir(r)){let e=+t[t.length-2],a=Xr(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)))}}return e};function $r(e,t,n=[]){if(!e)return;if(!Fr(e)){kr(e,(e,r)=>$r(e,t,[...n,...zr(r)]));return}let[r,i]=e;i&&kr(i,(e,r)=>{$r(e,t,[...n,...zr(r)])}),t(r,n)}function mre(e,t,n){return $r(t,(t,r)=>{e=Qr(e,r,e=>fre(e,t,n))}),e}function hre(e,t){function n(t,n){let r=pre(e,zr(n));t.map(zr).forEach(t=>{e=Qr(e,t,()=>r)})}if(Fr(t)){let[r,i]=t;r.forEach(t=>{e=Qr(e,zr(t),()=>e)}),i&&kr(i,n)}else kr(t,n);return e}var gre=(e,t)=>Nr(e)||Fr(e)||Ir(e)||Lr(e)||Gr(e,t);function _re(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function vre(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(Rr):n[Rr(i)]=a.map(Rr)}),r?Pr(n)?[r]:[r,n]:Pr(n)?void 0:n}var ei=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=ire(e);if(!s){_re(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!gre(e,n)){let t=Jr(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(Ar(a,e))return{transformedValue:null};let l=Jr(e,n),u=l?.value??e,d=Fr(u)?[]:{},f={};kr(u,(s,l)=>{if(l===`__proto__`||l===`constructor`||l===`prototype`)throw Error(`Detected property ${l}. This is a prototype pollution risk, please remove it from your object.`);let u=ei(s,t,n,r,[...i,l],[...a,e],o);d[l]=u.transformedValue,Fr(u.annotations)?f[l]=u.annotations:Nr(u.annotations)&&kr(u.annotations,(e,t)=>{f[lre(l)+`.`+t]=e})});let p=Pr(f)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,f]:f};return s||o.set(e,p),p};kn(),kn();function yre(e){return Object.prototype.toString.call(e).slice(8,-1)}function bre(e){return yre(e)===`Array`}function xre(e){if(yre(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Sre(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function ti(e,t={}){if(bre(e))return e.map(e=>ti(e,t));if(!xre(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(bre(t.props)&&!t.props.includes(r))return n;let i=e[r];return Sre(n,r,ti(i,t),e,t.nonenumerable),n},{})}var ni=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Wne,this.symbolRegistry=new Une(e=>e.description??``),this.customTransformerRegistry=new qne,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=ei(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=vre(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=ti(t);return n?.values&&(r=mre(r,n.values,this)),n?.referentialEqualities&&(r=hre(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};ni.defaultInstance=new ni,ni.serialize=ni.defaultInstance.serialize.bind(ni.defaultInstance),ni.deserialize=ni.defaultInstance.deserialize.bind(ni.defaultInstance),ni.stringify=ni.defaultInstance.stringify.bind(ni.defaultInstance),ni.parse=ni.defaultInstance.parse.bind(ni.defaultInstance),ni.registerClass=ni.defaultInstance.registerClass.bind(ni.defaultInstance),ni.registerSymbol=ni.defaultInstance.registerSymbol.bind(ni.defaultInstance),ni.registerCustom=ni.defaultInstance.registerCustom.bind(ni.defaultInstance),ni.allowErrorProps=ni.defaultInstance.allowErrorProps.bind(ni.defaultInstance),ni.serialize,ni.deserialize,ni.stringify,ni.parse,ni.registerClass,ni.registerCustom,ni.registerSymbol,ni.allowErrorProps,kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn(),kn();var Cre;(Cre=yn).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??(Cre.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var wre;(wre=yn).__VUE_DEVTOOLS_KIT_RPC_CLIENT__??(wre.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Tre;(Tre=yn).__VUE_DEVTOOLS_KIT_RPC_SERVER__??(Tre.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var ri;(ri=yn).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??(ri.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var ii;(ii=yn).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??(ii.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var ai;(ai=yn).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??(ai.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),kn(),kn(),kn(),kn(),A(),oe();var oi=typeof window<`u`,si,ci=e=>si=e,li=Symbol(`pinia`);function ui(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var di;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(di||={});var fi=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Ere(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function pi(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){vi(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function mi(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function hi(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var gi=typeof navigator==`object`?navigator:{userAgent:``},_i=/Macintosh/.test(gi.userAgent)&&/AppleWebKit/.test(gi.userAgent)&&!/Safari/.test(gi.userAgent),vi=oi?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!_i?Dre:`msSaveOrOpenBlob`in gi?Ore:kre:()=>{};function Dre(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?hi(r):mi(r.href)?pi(e,t,n):(r.target=`_blank`,hi(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){hi(r)},0))}function Ore(e,t=`download`,n){if(typeof e==`string`){if(mi(e))pi(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){hi(t)})}}else navigator.msSaveOrOpenBlob(Ere(e,n),t)}function kre(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return pi(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(fi.HTMLElement))||`safari`in fi,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||_i)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}function yi(e,t){let n=`🍍 `+e;typeof __VUE_DEVTOOLS_TOAST__==`function`?__VUE_DEVTOOLS_TOAST__(n,t):t===`error`?console.error(n):t===`warn`?console.warn(n):console.log(n)}function bi(e){return`_a`in e&&`install`in e}function xi(){if(!(`clipboard`in navigator))return yi(`Your browser doesn't support the Clipboard API`,`error`),!0}function Si(e){return e instanceof Error&&e.message.toLowerCase().includes(`document is not focused`)?(yi(`You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.`,`warn`),!0):!1}async function Are(e){if(!xi())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),yi(`Global state copied to clipboard.`)}catch(e){if(Si(e))return;yi(`Failed to serialize the state. Check the console for more details.`,`error`),console.error(e)}}async function jre(e){if(!xi())try{wi(e,JSON.parse(await navigator.clipboard.readText())),yi(`Global state pasted from clipboard.`)}catch(e){if(Si(e))return;yi(`Failed to deserialize the state from clipboard. Check the console for more details.`,`error`),console.error(e)}}async function Mre(e){try{vi(new Blob([JSON.stringify(e.state.value)],{type:`text/plain;charset=utf-8`}),`pinia-state.json`)}catch(e){yi(`Failed to export the state as JSON. Check the console for more details.`,`error`),console.error(e)}}var Ci;function Nre(){Ci||(Ci=document.createElement(`input`),Ci.type=`file`,Ci.accept=`.json`);function e(){return new Promise((e,t)=>{Ci.onchange=async()=>{let t=Ci.files;if(!t)return e(null);let n=t.item(0);return e(n?{text:await n.text(),file:n}:null)},Ci.oncancel=()=>e(null),Ci.onerror=t,Ci.click()})}return e}async function Pre(e){try{let t=await Nre()();if(!t)return;let{text:n,file:r}=t;wi(e,JSON.parse(n)),yi(`Global state imported from "${r.name}".`)}catch(e){yi(`Failed to import the state from JSON. Check the console for more details.`,`error`),console.error(e)}}function wi(e,t){for(let n in t){let r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Ti(e){return{_custom:{display:e}}}var Ei=`🍍 Pinia (root)`,Di=`_root`;function Fre(e){return bi(e)?{id:Di,label:Ei}:{id:e.$id,label:e.$id}}function Ire(e){if(bi(e)){let t=Array.from(e._s.keys()),n=e._s;return{state:t.map(t=>({editable:!0,key:t,value:e.state.value[t]})),getters:t.filter(e=>n.get(e)._getters).map(e=>{let t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce((e,n)=>(e[n]=t[n],e),{})}})}}let t={state:Object.keys(e.$state).map(t=>({editable:!0,key:t,value:e.$state[t]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(t=>({editable:!1,key:t,value:e[t]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(t=>({editable:!0,key:t,value:e[t]}))),t}function Lre(e){return e?Array.isArray(e)?e.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Ti(e.type),key:Ti(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Rre(e){switch(e){case di.direct:return`mutation`;case di.patchFunction:return`$patch`;case di.patchObject:return`$patch`;default:return`unknown`}}var Oi=!0,ki=[],Ai=`pinia:mutations`,ji=`pinia`,{assign:zre}=Object,Mi=e=>`🍍 `+e;function Bre(e,t){Ene({id:`dev.esm.pinia`,label:`Pinia 🍍`,logo:`https://pinia.vuejs.org/logo.svg`,packageName:`pinia`,homepage:`https://pinia.vuejs.org`,componentStateTypes:ki,app:e},n=>{typeof n.now!=`function`&&yi(`You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.`),n.addTimelineLayer({id:Ai,label:`Pinia 🍍`,color:15064968}),n.addInspector({id:ji,label:`Pinia 🍍`,icon:`storage`,treeFilterPlaceholder:`Search stores`,actions:[{icon:`content_copy`,action:()=>{Are(t)},tooltip:`Serialize and copy the state`},{icon:`content_paste`,action:async()=>{await jre(t),n.sendInspectorTree(ji),n.sendInspectorState(ji)},tooltip:`Replace the state with the content of your clipboard`},{icon:`save`,action:()=>{Mre(t)},tooltip:`Save the state as a JSON file`},{icon:`folder_open`,action:async()=>{await Pre(t),n.sendInspectorTree(ji),n.sendInspectorState(ji)},tooltip:`Import the state from a JSON file`}],nodeActions:[{icon:`restore`,tooltip:`Reset the state (with "$reset")`,action:e=>{let n=t._s.get(e);n?typeof n.$reset==`function`?(n.$reset(),yi(`Store "${e}" reset.`)):yi(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,`warn`):yi(`Cannot reset "${e}" store because it wasn't found.`,`warn`)}}]}),n.on.inspectComponent(e=>{let t=e.componentInstance&&e.componentInstance.proxy;if(t&&t._pStores){let t=e.componentInstance.proxy._pStores;Object.values(t).forEach(t=>{e.instanceData.state.push({type:Mi(t.$id),key:`state`,editable:!0,value:t._isOptionsAPI?{_custom:{value:s(t.$state),actions:[{icon:`restore`,tooltip:`Reset the state of this store`,action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce((e,n)=>(e[n]=t.$state[n],e),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:Mi(t.$id),key:`getters`,editable:!1,value:t._getters.reduce((e,n)=>{try{e[n]=t[n]}catch(t){e[n]=t}return e},{})})})}}),n.on.getInspectorTree(n=>{if(n.app===e&&n.inspectorId===ji){let e=[t];e=e.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?e.filter(e=>`$id`in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):Ei.toLowerCase().includes(n.filter.toLowerCase())):e).map(Fre)}}),globalThis.$pinia=t,n.on.getInspectorState(n=>{if(n.app===e&&n.inspectorId===ji){let e=n.nodeId===Di?t:t._s.get(n.nodeId);if(!e)return;e&&(n.nodeId!==Di&&(globalThis.$store=s(e)),n.state=Ire(e))}}),n.on.editInspectorState(n=>{if(n.app===e&&n.inspectorId===ji){let e=n.nodeId===Di?t:t._s.get(n.nodeId);if(!e)return yi(`store "${n.nodeId}" not found`,`error`);let{path:r}=n;bi(e)?r.unshift(`state`):(r.length!==1||!e._customProperties.has(r[0])||r[0]in e.$state)&&r.unshift(`$state`),Oi=!1,n.set(e,r,n.state.value),Oi=!0}}),n.on.editComponentState(e=>{if(e.type.startsWith(`🍍`)){let n=e.type.replace(/^🍍\s*/,``),r=t._s.get(n);if(!r)return yi(`store "${n}" not found`,`error`);let{path:i}=e;if(i[0]!==`state`)return yi(`Invalid path for store "${n}":\n${i}\nOnly state can be modified.`);i[0]=`$state`,Oi=!1,e.set(r,i,e.state.value),Oi=!0}})})}function Vre(e,t){ki.includes(Mi(t.$id))||ki.push(Mi(t.$id)),Ene({id:`dev.esm.pinia`,label:`Pinia 🍍`,logo:`https://pinia.vuejs.org/logo.svg`,packageName:`pinia`,homepage:`https://pinia.vuejs.org`,componentStateTypes:ki,app:e,settings:{logStoreChanges:{label:`Notify about new/deleted stores`,type:`boolean`,defaultValue:!0}}},e=>{let n=typeof e.now==`function`?e.now.bind(e):Date.now;t.$onAction(({after:r,onError:i,name:a,args:o})=>{let s=Ni++;e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`🛫 `+a,subtitle:`start`,data:{store:Ti(t.$id),action:Ti(a),args:o},groupId:s}}),r(r=>{Pi=void 0,e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`🛬 `+a,subtitle:`end`,data:{store:Ti(t.$id),action:Ti(a),args:o,result:r},groupId:s}})}),i(r=>{Pi=void 0,e.addTimelineEvent({layerId:Ai,event:{time:n(),logType:`error`,title:`💥 `+a,subtitle:`end`,data:{store:Ti(t.$id),action:Ti(a),args:o,error:r},groupId:s}})})},!0),t._customProperties.forEach(r=>{ue(()=>u(t[r]),(t,i)=>{e.notifyComponentUpdate(),e.sendInspectorState(ji),Oi&&e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`Change`,subtitle:r,data:{newValue:t,oldValue:i},groupId:Pi}})},{deep:!0})}),t.$subscribe(({events:r,type:i},a)=>{if(e.notifyComponentUpdate(),e.sendInspectorState(ji),!Oi)return;let o={time:n(),title:Rre(i),data:zre({store:Ti(t.$id)},Lre(r)),groupId:Pi};i===di.patchFunction?o.subtitle=`⤵️`:i===di.patchObject?o.subtitle=`🧩`:r&&!Array.isArray(r)&&(o.subtitle=r.type),r&&(o.data[`rawEvent(s)`]={_custom:{display:`DebuggerEvent`,type:`object`,tooltip:`raw DebuggerEvent[]`,value:r}}),e.addTimelineEvent({layerId:Ai,event:o})},{detached:!0,flush:`sync`});let r=t._hotUpdate;t._hotUpdate=I(i=>{r(i),e.addTimelineEvent({layerId:Ai,event:{time:n(),title:`🔥 `+t.$id,subtitle:`HMR update`,data:{store:Ti(t.$id),info:Ti(`HMR update`)}}}),e.notifyComponentUpdate(),e.sendInspectorTree(ji),e.sendInspectorState(ji)});let{$dispose:i}=t;t.$dispose=()=>{i(),e.notifyComponentUpdate(),e.sendInspectorTree(ji),e.sendInspectorState(ji),e.getSettings().logStoreChanges&&yi(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree(ji),e.sendInspectorState(ji),e.getSettings().logStoreChanges&&yi(`"${t.$id}" store installed 🆕`)})}var Ni=0,Pi;function Fi(e,t,n){let r=t.reduce((t,n)=>(t[n]=s(e)[n],t),{});for(let t in r)e[t]=function(){let i=Ni,a=n?new Proxy(e,{get(...e){return Pi=i,Reflect.get(...e)},set(...e){return Pi=i,Reflect.set(...e)}}):e;Pi=i;let o=r[t].apply(a,arguments);return Pi=void 0,o}}function Hre({app:e,store:t,options:n}){if(!t.$id.startsWith(`__hot:`)){if(t._isOptionsAPI=!!n.state,!t._p._testing){Fi(t,Object.keys(n.actions),t._isOptionsAPI);let e=t._hotUpdate;s(t)._hotUpdate=function(n){e.apply(this,arguments),Fi(t,Object.keys(n._hmrPayload.actions),!!t._isOptionsAPI)}}Vre(e,t)}}function Ure(){let e=te(!0),t=e.run(()=>_e({})),n=[],r=[],i=I({install(e){ci(i),i._a=e,e.provide(li,i),e.config.globalProperties.$pinia=i,oi&&Bre(e,i),r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return oi&&typeof Proxy<`u`&&i.use(Hre),i}function Ii(e,t){for(let n in t){let r=t[n];if(!(n in e))continue;let i=e[n];e[n]=ui(i)&&ui(r)&&!z(r)&&!re(r)?Ii(i,r):r}return e}var Wre=()=>{};function Li(e,t,n,r=Wre){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&se()&&pe(i),i}function Ri(e,...t){e.forEach(e=>{e(...t)})}var Gre=e=>e(),zi=Symbol(),Bi=Symbol();function Vi(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];e[n]=ui(i)&&ui(r)&&e.hasOwnProperty(n)&&!z(r)&&!re(r)?Vi(i,r):r}return e}var Kre=Symbol(`pinia:skipHydration`);function qre(e){return!ui(e)||!Object.prototype.hasOwnProperty.call(e,Kre)}var{assign:Hi}=Object;function Ui(e){return!!(z(e)&&e.effect)}function Wi(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],l;function u(){!s&&!r&&(n.state.value[e]=i?i():{});let t=k(r?_e(i?i():{}).value:n.state.value[e]);return Hi(t,a,Object.keys(o||{}).reduce((r,i)=>(i in t&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${i}" in store "${e}".`),r[i]=I(d(()=>{ci(n);let t=n._s.get(e);return o[i].call(t,t)})),r),{}))}return l=Gi(e,u,t,n,r,!0),l}function Gi(e,t,n={},r,i,a){let o,l=Hi({actions:{}},n);if(!r._e.active)throw Error(`Pinia destroyed`);let u={deep:!0};u.onTrigger=e=>{f?_=e:f==0&&!D._hotUpdating&&(Array.isArray(_)?_.push(e):console.error(`🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug.`))};let f,p,h=new Set,g=new Set,_,v=r.state.value[e];!a&&!v&&!i&&(r.state.value[e]={});let y=_e({}),b;function x(t){let n;f=p=!1,_=[],typeof t==`function`?(t(r.state.value[e]),n={type:di.patchFunction,storeId:e,events:_}):(Vi(r.state.value[e],t),n={type:di.patchObject,payload:t,storeId:e,events:_});let i=b=Symbol();m().then(()=>{b===i&&(f=!0)}),p=!0,Ri(h,n,r.state.value[e])}let S=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{Hi(e,t)})}:()=>{throw Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)};function C(){o.stop(),h.clear(),g.clear(),r._s.delete(e)}let w=(t,n=``)=>{if(zi in t)return t[Bi]=n,t;let i=function(){ci(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function l(e){o.add(e)}Ri(g,{args:n,name:i[Bi],store:D,after:s,onError:l});let u;try{u=t.apply(this&&this.$id===e?this:D,n)}catch(e){throw Ri(o,e),e}return u instanceof Promise?u.then(e=>(Ri(a,e),e)).catch(e=>(Ri(o,e),Promise.reject(e))):(Ri(a,u),u)};return i[zi]=!0,i[Bi]=n,i},T=I({actions:{},getters:{},state:[],hotState:y}),E={_p:r,$id:e,$onAction:Li.bind(null,g),$patch:x,$reset:S,$subscribe(t,n={}){let i=Li(h,t,n.detached,()=>a()),a=o.run(()=>ue(()=>r.state.value[e],r=>{(n.flush===`sync`?p:f)&&t({storeId:e,type:di.direct,events:_},r)},Hi({},u,n)));return i},$dispose:C},D=ye(Hi({_hmrPayload:T,_customProperties:I(new Set)},E));r._s.set(e,D);let O=(r._a&&r._a.runWithContext||Gre)(()=>r._e.run(()=>(o=te()).run(()=>t({action:w}))));for(let t in O){let o=O[t];z(o)&&!Ui(o)||re(o)?(i?y.value[t]=he(O,t):a||(v&&qre(o)&&(z(o)?o.value=v[t]:Vi(o,v[t])),r.state.value[e][t]=o),T.state.push(t)):typeof o==`function`?(O[t]=i?o:w(o,t),T.actions[t]=o,l.actions[t]=o):Ui(o)&&(T.getters[t]=a?n.getters[t]:o,oi&&(O._getters||=I([])).push(t))}if(Hi(D,O),Hi(s(D),O),Object.defineProperty(D,"$state",{get:()=>i?y.value:r.state.value[e],set:e=>{if(i)throw Error(`cannot set hotState`);x(t=>{Hi(t,e)})}}),D._hotUpdate=I(t=>{D._hotUpdating=!0,t._hmrPayload.state.forEach(e=>{if(e in D.$state){let n=t.$state[e],r=D.$state[e];typeof n==`object`&&ui(n)&&ui(r)?Ii(n,r):t.$state[e]=r}D[e]=he(t.$state,e)}),Object.keys(D.$state).forEach(e=>{e in t.$state||delete D[e]}),f=!1,p=!1,r.state.value[e]=he(t._hmrPayload,`hotState`),p=!0,m().then(()=>{f=!0});for(let e in t._hmrPayload.actions){let n=t[e];D[e]=w(n,e)}for(let e in t._hmrPayload.getters){let n=t._hmrPayload.getters[e],i=a?d(()=>(ci(r),n.call(D,D))):n;D[e]=i}Object.keys(D._hmrPayload.getters).forEach(e=>{e in t._hmrPayload.getters||delete D[e]}),Object.keys(D._hmrPayload.actions).forEach(e=>{e in t._hmrPayload.actions||delete D[e]}),D._hmrPayload=t._hmrPayload,D._getters=t._getters,D._hotUpdating=!1}),oi){let e={writable:!0,configurable:!0,enumerable:!1};[`_p`,`_hmrPayload`,`_getters`,`_customProperties`].forEach(t=>{Object.defineProperty(D,t,Hi({value:D[t]},e))})}return r._p.forEach(e=>{if(oi){let t=o.run(()=>e({store:D,app:r._a,pinia:r,options:l}));Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),Hi(D,t)}else Hi(D,o.run(()=>e({store:D,app:r._a,pinia:r,options:l})))}),D.$state&&typeof D.$state==`object`&&typeof D.$state.constructor==`function`&&!D.$state.constructor.toString().includes(`[native code]`)&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
3
3
  state: () => new MyClass()
4
4
  Found in store "${D.$id}".`),v&&a&&n.hydrate&&n.hydrate(D.$state,v),f=!0,p=!0,D}function Jre(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,s){let l=o();if(n||=l?h(li,null):null,n&&ci(n),!si)throw Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
5
5
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
@@ -1280,7 +1280,7 @@ ${I3e()}
1280
1280
  .c4-shape line {
1281
1281
  stroke-width: 2px;
1282
1282
  }
1283
- `,`getStyles`),init:G(({c4:e,wrap:t})=>{k$.setConf(e),c$.setWrap(t)},`init`)},A$=G((e,t)=>{let n;return t===`sandbox`&&(n=Dt(`#i`+e)),Dt(t===`sandbox`?n.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`),j$=G((e,t,n,r)=>{e.attr(`class`,n);let{width:i,height:a,x:o,y:s}=R3e(e,t);Ut(e,a,i,r);let l=z3e(o,s,i,a,t);e.attr(`viewBox`,l),H.debug(`viewBox configured: ${l} with padding: ${t}`)},`setupViewPortForSVG`),R3e=G((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),z3e=G((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`),B3e={common:nn,getConfig:Vt,insertCluster:Ft,insertEdge:Xee,insertEdgeLabel:wee,insertMarkers:$t,insertNode:Bt,interpolateToCurve:ze,labelHelper:Qee,log:H,positionEdgeLabel:Yt},M$={},N$=G(e=>{for(let t of e)M$[t.name]=t},`registerLayoutLoaders`);G(()=>{N$([{name:`dagre`,loader:G(async()=>await W(()=>import(`./dagre-CiGYsZhd.js`).then(e=>e.n),__vite__mapDeps([0,1])),`loader`)},{name:`swimlane`,loader:G(async()=>await W(()=>Promise.resolve().then(()=>fot),void 0),`loader`)},{name:`cose-bilkent`,loader:G(async()=>await W(()=>Promise.resolve().then(()=>K3e),void 0),`loader`)}])},`registerDefaultLayoutLoaders`)();var P$=G(async(e,t)=>{if(!(e.layoutAlgorithm in M$))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=M$[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:l}=a,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return r.render(e,t,B3e,{algorithm:n.algorithm})},`render`),F$=G((e=``,{fallback:t=`dagre`}={})=>{if(e in M$)return e;if(t in M$)return H.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`),I$=(function(){var e=G(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],L=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ee=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],te=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],ne=[13,60,68,69,70,71,72,86,100,102,103],re=[1,103],B=[1,121],ie=[1,117],ae=[1,113],oe=[1,119],se=[1,114],ce=[1,115],le=[1,116],ue=[1,118],V=[1,120],de=[22,50,60,61,82,86,87,88,89,90],fe=[1,128],pe=[12,39],me=[1,8,9,39,41,44,46],he=[1,8,9,22],ge=[1,153],_e=[1,8,9,61],ve=[1,8,9,22,50,60,61,82,86,87,88,89,90],ye={trace:G(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:G(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:L,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),e(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},e(ee,[2,133]),e(ee,[2,134]),e(ee,[2,135]),e(ee,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,64]),{67:93,73:P,74:F},e(te,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),e(z,[2,84]),e(z,[2,85]),e(z,[2,86]),e(z,[2,87]),e(z,[2,88]),e(ne,[2,89]),e(ne,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:re},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:B,50:ie,59:110,60:ae,82:oe,84:111,85:112,86:se,87:ce,88:le,89:ue,90:V},{60:[1,122]},{13:L,55:123},e(I,[2,72]),e(I,[2,138]),{22:B,50:ie,59:124,60:ae,61:[1,125],82:oe,84:111,85:112,86:se,87:ce,88:le,89:ue,90:V},e(de,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},e(R,[2,16]),e(R,[2,17]),e(R,[2,18]),{11:127,12:fe,39:[2,36]},e(pe,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),e(pe,[2,10]),e(me,[2,55],{11:131,12:fe}),e(D,[2,7]),{9:[1,132]},e(he,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},e(te,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),e(te,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(I,[2,48],{39:[1,142]}),{41:[1,143]},e(I,[2,50]),{41:[2,61],45:144,51:re},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:ge}),e(_e,[2,107],{85:154,22:B,50:ie,60:ae,82:oe,86:se,87:ce,88:le,89:ue,90:V}),e(ve,[2,109]),e(ve,[2,111]),e(ve,[2,112]),e(ve,[2,113]),e(ve,[2,114]),e(ve,[2,115]),e(ve,[2,116]),e(ve,[2,117]),e(ve,[2,118]),e(ve,[2,119]),e(O,[2,106]),e(I,[2,71]),e(O,[2,73],{61:ge}),{60:[1,155]},e(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},e(pe,[2,12]),e(me,[2,56]),{1:[2,4]},e(he,[2,69]),e(he,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},e(te,[2,80]),e(I,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:u,56:d},{45:163,51:re},e(I,[2,49]),{41:[2,62]},e(I,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:B,50:ie,60:ae,82:oe,84:169,85:112,86:se,87:ce,88:le,89:ue,90:V},e(ve,[2,110]),e(de,[2,75]),{14:[1,170]},e(pe,[2,11]),e(he,[2,70]),e(I,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:re},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(_e,[2,108],{85:154,22:B,50:ie,60:ae,82:oe,86:se,87:ce,88:le,89:ue,90:V}),e(me,[2,8]),e(I,[2,51]),{41:[1,175]},e(I,[2,54]),e(O,[2,104]),e(I,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:G(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:G(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}G(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}G(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1283
+ `,`getStyles`),init:G(({c4:e,wrap:t})=>{k$.setConf(e),c$.setWrap(t)},`init`)},A$=G((e,t)=>{let n;return t===`sandbox`&&(n=Dt(`#i`+e)),Dt(t===`sandbox`?n.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`),j$=G((e,t,n,r)=>{e.attr(`class`,n);let{width:i,height:a,x:o,y:s}=R3e(e,t);Ut(e,a,i,r);let l=z3e(o,s,i,a,t);e.attr(`viewBox`,l),H.debug(`viewBox configured: ${l} with padding: ${t}`)},`setupViewPortForSVG`),R3e=G((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),z3e=G((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`),B3e={common:nn,getConfig:Vt,insertCluster:Ft,insertEdge:Xee,insertEdgeLabel:wee,insertMarkers:$t,insertNode:Bt,interpolateToCurve:ze,labelHelper:Qee,log:H,positionEdgeLabel:Yt},M$={},N$=G(e=>{for(let t of e)M$[t.name]=t},`registerLayoutLoaders`);G(()=>{N$([{name:`dagre`,loader:G(async()=>await W(()=>import(`./dagre-Ct-SQ-7k.js`).then(e=>e.n),__vite__mapDeps([0,1])),`loader`)},{name:`swimlane`,loader:G(async()=>await W(()=>Promise.resolve().then(()=>fot),void 0),`loader`)},{name:`cose-bilkent`,loader:G(async()=>await W(()=>Promise.resolve().then(()=>K3e),void 0),`loader`)}])},`registerDefaultLayoutLoaders`)();var P$=G(async(e,t)=>{if(!(e.layoutAlgorithm in M$))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=M$[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:l}=a,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return r.render(e,t,B3e,{algorithm:n.algorithm})},`render`),F$=G((e=``,{fallback:t=`dagre`}={})=>{if(e in M$)return e;if(t in M$)return H.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`),I$=(function(){var e=G(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],L=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ee=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],te=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],ne=[13,60,68,69,70,71,72,86,100,102,103],re=[1,103],B=[1,121],ie=[1,117],ae=[1,113],oe=[1,119],se=[1,114],ce=[1,115],le=[1,116],ue=[1,118],V=[1,120],de=[22,50,60,61,82,86,87,88,89,90],fe=[1,128],pe=[12,39],me=[1,8,9,39,41,44,46],he=[1,8,9,22],ge=[1,153],_e=[1,8,9,61],ve=[1,8,9,22,50,60,61,82,86,87,88,89,90],ye={trace:G(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:G(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:L,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),e(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},e(ee,[2,133]),e(ee,[2,134]),e(ee,[2,135]),e(ee,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,64]),{67:93,73:P,74:F},e(te,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),e(z,[2,84]),e(z,[2,85]),e(z,[2,86]),e(z,[2,87]),e(z,[2,88]),e(ne,[2,89]),e(ne,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:re},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:B,50:ie,59:110,60:ae,82:oe,84:111,85:112,86:se,87:ce,88:le,89:ue,90:V},{60:[1,122]},{13:L,55:123},e(I,[2,72]),e(I,[2,138]),{22:B,50:ie,59:124,60:ae,61:[1,125],82:oe,84:111,85:112,86:se,87:ce,88:le,89:ue,90:V},e(de,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},e(R,[2,16]),e(R,[2,17]),e(R,[2,18]),{11:127,12:fe,39:[2,36]},e(pe,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),e(pe,[2,10]),e(me,[2,55],{11:131,12:fe}),e(D,[2,7]),{9:[1,132]},e(he,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},e(te,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),e(te,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(I,[2,48],{39:[1,142]}),{41:[1,143]},e(I,[2,50]),{41:[2,61],45:144,51:re},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:ge}),e(_e,[2,107],{85:154,22:B,50:ie,60:ae,82:oe,86:se,87:ce,88:le,89:ue,90:V}),e(ve,[2,109]),e(ve,[2,111]),e(ve,[2,112]),e(ve,[2,113]),e(ve,[2,114]),e(ve,[2,115]),e(ve,[2,116]),e(ve,[2,117]),e(ve,[2,118]),e(ve,[2,119]),e(O,[2,106]),e(I,[2,71]),e(O,[2,73],{61:ge}),{60:[1,155]},e(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},e(pe,[2,12]),e(me,[2,56]),{1:[2,4]},e(he,[2,69]),e(he,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},e(te,[2,80]),e(I,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:u,56:d},{45:163,51:re},e(I,[2,49]),{41:[2,62]},e(I,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:B,50:ie,60:ae,82:oe,84:169,85:112,86:se,87:ce,88:le,89:ue,90:V},e(ve,[2,110]),e(de,[2,75]),{14:[1,170]},e(pe,[2,11]),e(he,[2,70]),e(I,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:re},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(_e,[2,108],{85:154,22:B,50:ie,60:ae,82:oe,86:se,87:ce,88:le,89:ue,90:V}),e(me,[2,8]),e(I,[2,51]),{41:[1,175]},e(I,[2,54]),e(O,[2,104]),e(I,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:G(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:G(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}G(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}G(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1284
1284
  `+h.showPosition()+`
1285
1285
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};ye.lexer=(function(){return{EOF:1,parseError:G(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:G(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:G(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:G(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:G(function(){return this._more=!0,this},`more`),reject:G(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
1286
1286
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:G(function(e){this.unput(this.match.slice(e))},`less`),pastInput:G(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:G(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:G(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -3573,4 +3573,4 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
3573
3573
  `),content:e.replace(/<think>[\s\S]*?<\/think>/g,``).trim()}}W9.block.ruler.before(`paragraph`,`think_block`,(e,t,n,r)=>{let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.src.slice(i,a);G9.lastIndex=i;let s=G9.exec(o);if(!s)return!1;let l=s.index;if(r)return!0;let u=-1,d=``,f=-1;for(let r=t;r<n;r++){let n=e.bMarks[r]+e.tShift[r],a=e.eMarks[r],o=e.src.slice(n,a),s=r===t?i+l+7:0;for(let e of Lyt){let t=o.indexOf(e,s);t!==-1&&(f===-1||t<f)&&(f=t,d=e,u=r)}if(u!==-1)break}if(u<0)return!1;let p=[];for(let n=t;n<=u;n++){let r=e.bMarks[n]+e.tShift[n],i=e.eMarks[n],a=e.src.slice(r,i);n===t&&(a=a.slice(l+7)),n===u&&(a=a.slice(0,a.indexOf(d))),p.push(a)}let m=p.join(`
3574
3574
  `).trim(),h=e.push(`think_block`,``,0);return h.content=m,h.map=[t,u+1],h.markup=`<think>`,h.block=!0,e.line=u+1,!0});var zyt=W9.renderer.rules.think_block||((e,t,n,r)=>{let i=e[t],a=r!=null&&r.streaming?{streaming:!0,totalLines:Byt(i.content)}:{};return`<div class="acu-thinking acu-thinking-md"><button type="button" class="acu-thinking-header"><span class="acu-thinking-icon"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 2A4.5 4.5 0 0 0 5 6.5c0 .5.08.98.22 1.43A4 4 0 0 0 6 16a3.5 3.5 0 0 0 5 3.05"/><path d="M14.5 2A4.5 4.5 0 0 1 19 6.5c0 .5-.08.98-.22 1.43A4 4 0 0 1 18 16a3.5 3.5 0 0 1-5 3.05"/><path d="M12 4v16"/></svg></span><span class="acu-thinking-title">思考</span></button><div class="acu-thinking-body is-scrollable is-scrollbar-hover">${i.content.trim()?W9.render(i.content,a):``}</div></div>`});W9.renderer.rules.think_block=zyt;function Byt(e){return e.replace(/\r\n?/g,`
3575
3575
  `).split(`
3576
- `).length}function Vyt(){return{render(e,t){let n=e||``,r=t!=null&&t.streaming?{streaming:!0,totalLines:Byt(n)}:{};return W9.render(n,r)},renderInline(e){return W9.renderInline(e||``)},ensureHighlighter:jyt}}var Hyt=[`aria-label`],Uyt=[`data-theme`,`data-scale`,`innerHTML`],Wyt=[`aria-label`,`title`],Gyt={class:`acu-mz-bar`},Kyt=[`aria-label`,`title`],qyt=[`title`],Jyt={class:`acu-mz-pct`},Yyt=[`aria-label`,`title`],Xyt={class:`acu-mz-hint`},Zyt=.2,Qyt=6,$yt=v({__name:`MermaidPreview`,props:{visible:{type:Boolean,default:!1},svg:{},theme:{default:`light`},labels:{default:()=>({})}},emits:[`update:visible`],setup(e,{emit:t}){let n=e,r=t,i=_e(null),a=_e(null),o=_e(1),s=ye({x:0,y:0}),u=_e(!1),f={x:0,y:0,px:0,py:0},p=!1,h=d(()=>Math.round(o.value*100)),g=d(()=>({transform:`translate(-50%, -50%) translate(${s.x}px, ${s.y}px) scale(${o.value})`}));function v(e){return Math.min(Qyt,Math.max(Zyt,e))}function y(){let e=a.value,t=i.value;if(!e||!t)return 1;let n=e.offsetWidth,r=e.offsetHeight;if(!n||!r)return 1;let o=Math.min((t.clientWidth-48)/n,(t.clientHeight-96)/r);return v(Math.min(1,o))}function b(){o.value=1,s.x=0,s.y=0;let e=y();e<1&&(o.value=e)}function w(e){o.value=v(o.value*e)}function T(e){let t=i.value;if(!t)return;let n=o.value,r=v(n*(e.deltaY<0?1.12:1/1.12));if(r===n)return;let a=t.getBoundingClientRect(),l=e.clientX-(a.left+a.width/2),u=e.clientY-(a.top+a.height/2),d=r/n;s.x=l-d*(l-s.x),s.y=u-d*(u-s.y),o.value=r}function E(e){e.button===0&&(u.value=!0,p=!1,f={x:e.clientX,y:e.clientY,px:s.x,py:s.y},window.addEventListener(`pointermove`,D),window.addEventListener(`pointerup`,k),window.addEventListener(`pointercancel`,k))}function D(e){if(!u.value)return;let t=e.clientX-f.x,n=e.clientY-f.y;(Math.abs(t)>3||Math.abs(n)>3)&&(p=!0),s.x=f.px+t,s.y=f.py+n}function O(e){if(p){p=!1;return}e.target===e.currentTarget&&A()}function k(){u.value=!1,window.removeEventListener(`pointermove`,D),window.removeEventListener(`pointerup`,k),window.removeEventListener(`pointercancel`,k)}function A(){r(`update:visible`,!1)}function j(e){e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),A())}return ue(()=>n.visible,e=>{e?(window.addEventListener(`keydown`,j,!0),m(()=>b())):(window.removeEventListener(`keydown`,j,!0),k(),u.value=!1,s.x=0,s.y=0,o.value=1)},{immediate:!0}),_(()=>window.removeEventListener(`keydown`,j,!0)),(t,n)=>e.visible?(C(),x(me,{key:0,to:`body`},[l(`div`,{class:`acu-mz`,role:`dialog`,"aria-modal":`true`,"aria-label":e.labels.zoom||`图表预览`,onClick:ge(A,[`self`])},[l(`div`,{ref_key:`viewportRef`,ref:i,class:N([`acu-mz-viewport`,{"is-dragging":u.value}]),onWheel:ge(T,[`prevent`]),onPointerdown:E,onDblclick:b,onClick:O},[l(`div`,{ref_key:`stageRef`,ref:a,class:`acu-mz-stage`,"data-theme":e.theme,"data-scale":o.value.toFixed(3),style:F(g.value),innerHTML:e.svg},null,12,Uyt)],34),l(`button`,{type:`button`,class:`acu-mz-btn is-close`,"aria-label":e.labels.close,title:e.labels.close,onClick:A},[...n[2]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,Wyt),l(`div`,Gyt,[l(`button`,{type:`button`,class:`acu-mz-btn is-step`,"aria-label":e.labels.zoomOut,title:e.labels.zoomOut,onClick:n[0]||=e=>w(1/1.3)},[...n[3]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`},[l(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,Kyt),l(`button`,{type:`button`,class:`acu-mz-btn is-fit`,title:e.labels.zoomReset,onClick:b},[S(V(e.labels.zoomReset),1),l(`span`,Jyt,V(h.value)+`%`,1)],8,qyt),l(`button`,{type:`button`,class:`acu-mz-btn is-step`,"aria-label":e.labels.zoomIn,title:e.labels.zoomIn,onClick:n[1]||=e=>w(1.3)},[...n[4]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`},[l(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),l(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,Yyt)]),l(`p`,Xyt,V(e.labels.zoomHint),1)],8,Hyt)])):B(``,!0)}}),K9=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},ebt=K9($yt,[[`__scopeId`,`data-v-57821160`]]),tbt=[`innerHTML`],nbt=120,q9=v({inheritAttrs:!1,__name:`MarkdownRenderer`,props:{source:{},streaming:{type:Boolean,default:!1}},setup(e){let t=e,{render:n}=Vyt(),r=_e(``),i=_e(null),o=0,s=0;function u(){Eyt(i.value,{streaming:t.streaming})}function f(e=nbt){window.clearTimeout(s),s=window.setTimeout(()=>{s=0,u()},e)}function h(){cancelAnimationFrame(o),o=requestAnimationFrame(()=>{r.value=n(t.source,{streaming:t.streaming}),m(()=>f())})}ue(()=>t.source,h,{immediate:!0}),ue(Ayt,e=>{e&&h()}),ue(()=>t.streaming,()=>h());let g=null;M(()=>{g=dyt(i.value,()=>{f(0)})}),_(()=>{cancelAnimationFrame(o),window.clearTimeout(s),g?.()});function v(e){let t=e.target;return t instanceof Element?t.closest(`.acu-thinking-body.is-scrollbar-hover`):null}function y(e){var t;(t=v(e))==null||t.classList.add(`is-scrollbar-visible`)}function b(e){let t=v(e);if(!t)return;let n=e.relatedTarget;n instanceof Node&&t.contains(n)||t.classList.remove(`is-scrollbar-visible`)}function x(e){let t=e.target;if(!t)return;let n=t.closest(`.acu-mermaid-toggle`);if(n){Dyt(n.closest(`.acu-mermaid`));return}let r=t.closest(`.acu-mermaid-zoom`);if(r){O(r.closest(`.acu-mermaid`));return}let i=t.closest(`.acu-mermaid-canvas`);if(i&&!t.closest(`a`)){let e=window.getSelection?.call(window);if(e&&!e.isCollapsed)return;let t=i.closest(`.acu-mermaid`);if(t?.dataset.state===`done`){O(t);return}}k(t)}let S=_e(!1),w=_e(``),T=_e(`light`),D=d(()=>tyt());function O(e){if(!e)return;let t=wyt(e.querySelector(`.acu-mermaid-canvas`));t&&(w.value=t,T.value=e.dataset.mermaidTheme===`dark`?`dark`:`light`,S.value=!0)}function k(e){let t=e.closest(`.acu-code-copy`);if(!t)return;let n=t.getAttribute(`data-code`)||``,r=decodeURIComponent(n),i=t.querySelector(`.acu-code-copy-label`);(navigator.clipboard?.writeText(r)??Promise.reject(Error(`clipboard unavailable`))).then(()=>{t.classList.add(`is-copied`),i&&(i.textContent=`已复制`),setTimeout(()=>{t.classList.remove(`is-copied`),i&&(i.textContent=`复制`)},1500)}).catch(()=>{t.classList.add(`is-error`),i&&(i.textContent=`失败`),setTimeout(()=>{t.classList.remove(`is-error`),i&&(i.textContent=`复制`)},1500)})}return(e,t)=>(C(),a(E,null,[l(`div`,j({ref_key:`root`,ref:i,class:`acu-md`},e.$attrs,{innerHTML:r.value,onClick:x,onMouseover:y,onMouseout:b}),null,16,tbt),p(ebt,{visible:S.value,"onUpdate:visible":t[0]||=e=>S.value=e,svg:w.value,theme:T.value,labels:D.value},null,8,[`visible`,`svg`,`theme`,`labels`])],64))}}),rbt=[`aria-expanded`],ibt={class:`acu-thinking-title`},abt=[`title`],obt={key:1,class:`acu-typing-dots`,"aria-hidden":`true`},sbt={key:0,class:`acu-cursor`,"aria-hidden":`true`},cbt=24,lbt=K9(v({__name:`ThinkingBlock`,props:{content:{default:``},streaming:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:void 0},config:{default:void 0},durationMs:{default:void 0},startedAt:{default:void 0},endedAt:{default:void 0}},setup(e){let t=e,n=d(()=>t.config?.scrollable!==!1),r=d(()=>t.config?.followStream!==!1),i=d(()=>t.config?.scrollbar??`hover`),o=_e(!1),s=d(()=>n.value&&i.value===`hover`&&o.value);function u(){o.value=!0}function f(){o.value=!1}let h=d(()=>{var e;return(e=t.config)!=null&&e.maxHeight?{"--acu-thinking-max-height":`${t.config.maxHeight}px`}:void 0}),g=d(()=>t.config?.showDuration!==!1),v=_e(Date.now()),b=null;function x(){b&&=(clearInterval(b),null)}let S=d(()=>g.value&&t.streaming&&typeof t.durationMs!=`number`&&typeof t.startedAt==`number`);ue(S,e=>{x(),e&&(v.value=Date.now(),b=setInterval(()=>{v.value=Date.now()},100))},{immediate:!0}),_(x);let w=d(()=>{if(!g.value)return null;if(typeof t.durationMs==`number`)return t.durationMs;let e=t.startedAt;if(typeof e!=`number`)return null;if(t.streaming)return v.value-e;let n=t.endedAt;return typeof n==`number`&&n>e?n-e:null}),T=d(()=>{let e=w.value;return e===null||e<=0?``:A9(e)}),E=d(()=>t.streaming?`已思考时长`:`思考耗时(第一个思考分片 → 最后一个分片)`),D=_e(t.defaultExpanded??t.config?.defaultExpanded??t.streaming),O=_e(null),k=_e(!0);function A(){let e=O.value;e&&(k.value=e.scrollHeight-e.scrollTop-e.clientHeight<=cbt)}async function j(){if(!n.value||!r.value||!k.value)return;await m();let e=O.value;e&&(e.scrollTop=e.scrollHeight)}ue(()=>t.streaming,e=>{e&&(D.value=!0,k.value=!0)}),ue(()=>t.content,()=>{t.streaming&&j()}),ue(D,e=>{e&&j()}),M(()=>{t.streaming&&j()});function P(){D.value=!D.value}return(t,r)=>(C(),a(`div`,{class:N([`acu-thinking`,{"is-streaming":e.streaming}])},[l(`button`,{type:`button`,class:`acu-thinking-header`,"aria-expanded":D.value,onClick:P},[r[2]||=y(`<span class="acu-thinking-icon" data-v-42f4658c><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-42f4658c><path d="M9.5 2A4.5 4.5 0 0 0 5 6.5c0 .5.08.98.22 1.43A4 4 0 0 0 6 16a3.5 3.5 0 0 0 5 3.05" data-v-42f4658c></path><path d="M14.5 2A4.5 4.5 0 0 1 19 6.5c0 .5-.08.98-.22 1.43A4 4 0 0 1 18 16a3.5 3.5 0 0 1-5 3.05" data-v-42f4658c></path><path d="M12 4v16" data-v-42f4658c></path></svg></span>`,1),l(`span`,ibt,V(e.streaming?`思考中`:`思考`),1),T.value?(C(),a(`span`,{key:0,class:`acu-thinking-duration`,title:E.value},V(T.value),9,abt)):B(``,!0),e.streaming?(C(),a(`span`,obt,[...r[0]||=[l(`span`,null,null,-1),l(`span`,null,null,-1),l(`span`,null,null,-1)]])):(C(),a(`svg`,{key:2,class:N([`acu-thinking-chevron`,{"is-open":D.value}]),viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...r[1]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],8,rbt),p(ie,{name:`acu-collapse`},{default:ae(()=>[de(l(`div`,{ref_key:`bodyRef`,ref:O,class:N([`acu-thinking-body`,[{"is-scrollable":n.value},n.value?`is-scrollbar-${i.value}`:``,{"is-scrollbar-visible":s.value}]]),style:F(h.value),onScrollPassive:A,onMouseenter:u,onMouseleave:f},[p(q9,{source:e.content,streaming:!!e.streaming},null,8,[`source`,`streaming`]),e.streaming&&e.content?(C(),a(`span`,sbt)):B(``,!0)],38),[[ve,D.value]])]),_:1})],2))}}),[[`__scopeId`,`data-v-42f4658c`]]),ubt=200,dbt=300,fbt=600,pbt=new Set([`updateplan`,`writetodos`,`todowrite`,`todotrite`,`todorewrite`,`updateplanlist`,`createplan`,`setplan`,`plan`]);function mbt(e){return String(e||``).toLowerCase().replace(/[^a-z]/g,``)}function J9(e){return pbt.has(mbt(String(e||``)))}function hbt(e){let t=String(e??``).toLowerCase().replace(/[^a-z]/g,``);return[`completed`,`complete`,`done`,`finished`,`checked`].includes(t)?`completed`:[`inprogress`,`active`,`doing`,`running`,`current`,`started`].includes(t)?`in_progress`:`pending`}function Y9(e,t){let n=String(e??``).replace(/\s+/g,` `).trim();return n.length>t?n.slice(0,t)+`…`:n}function X9(e){if(typeof e==`string`){let t=Y9(e,ubt);return t?{content:t,status:`pending`}:null}if(!e||typeof e!=`object`)return null;let t=e,n=Y9(t.content??t.text??t.title??t.task??t.step??t.name,ubt);if(!n)return null;let r={content:n,status:hbt(t.status??t.state)},i=Y9(t.note??t.detail??t.details??(r.status===`in_progress`?t.activeForm:``),dbt);return i&&(r.note=i),r}function gbt(e){if(Array.isArray(e))return e;if(!e||typeof e!=`object`)return null;let t=e;for(let e of[`steps`,`todos`,`plan`,`items`,`task_list`,`taskList`])if(Array.isArray(t[e]))return t[e];return null}function _bt(e){if(!e||typeof e!=`object`||Array.isArray(e))return;let t=e;return Y9(t.explanation??t.summary??t.note??t.reason,fbt)||void 0}function Z9(e,t){if(!e)return null;if(typeof e==`object`&&!Array.isArray(e)&&(`name`in e||`arguments`in e||`plan`in e)){let n=e,r=n.name??t??``;return r&&!J9(r)&&!n.plan?null:Array.isArray(n.plan)&&n.plan.length?n.plan.map(e=>X9(e)).filter(e=>!!e).slice(0,20):Z9(n.arguments,r)}if(typeof e==`string`){if(t&&!J9(t))return null;let n=e.trim();if(!n)return null;let r;try{r=JSON.parse(n)}catch{return null}let i=gbt(r);if(!i)return null;let a=i.map(X9).filter(e=>!!e).slice(0,20);return a.length?a:null}if(t&&!J9(t))return null;let n=gbt(e);if(!n)return null;let r=n.map(X9).filter(e=>!!e).slice(0,20);return r.length?r:null}function vbt(e){if(!e)return;if(typeof e==`object`)return e.planNote?e.planNote:vbt(e.arguments);let t=e.trim();if(t)try{return _bt(JSON.parse(t))}catch{return}}function ybt(e){if(!e)return null;let t=Z9(e);if(!t)return null;let n=vbt(e);return n?{steps:t,note:n}:{steps:t}}function bbt(e){let t=e||[],n=0,r=0,i=0;for(let e of t)e.status===`completed`?n++:e.status===`in_progress`?r++:i++;return{total:t.length,done:n,active:r,pending:i}}var xbt=20,Sbt=500,Cbt=new Set([`askuser`,`askquestion`,`asktheuser`]);function wbt(e){return String(e||``).toLowerCase().replace(/[^a-z]/g,``)}function Tbt(e){return Cbt.has(wbt(String(e||``)))}function Ebt(e){if(!e)return null;let t;try{t=JSON.parse(String(e))}catch{return null}if(!t||typeof t!=`object`||Array.isArray(t))return null;let n=String(t.question??t.prompt??``).trim();if(!n)return null;let r=Array.isArray(t.options)?t.options.map(e=>String(e??``).trim()).filter(Boolean).slice(0,xbt):[];return{question:n,options:r,allowFreeText:r.length===0||t.allow_free_text!==!1,multiple:t.multiple===!0&&r.length>0}}function Dbt(e){let t=String(e??``).trim();if(!t)return[];if(t.startsWith(`[`))try{let e=JSON.parse(t);if(Array.isArray(e))return e.map(e=>String(e??``).trim()).filter(Boolean).slice(0,xbt)}catch{}return[t.length>Sbt?`${t.slice(0,Sbt)}…`:t]}function Q9(e){if(!e||!Tbt(e.name)||e.status&&e.status!==`done`)return null;let t=Ebt(e.arguments);if(!t)return null;let n=Dbt(e.result);return n.length?{...t,answers:n}:null}var Obt={class:`acu-plan-icon`},kbt={key:0,class:`acu-spin`,viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`},Abt={key:1,viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.9`,"stroke-linecap":`round`,"stroke-linejoin":`round`},jbt={class:`acu-plan-title`},Mbt={key:0,class:`acu-plan-count`},Nbt={key:0,class:`acu-plan-bar`,role:`presentation`},Pbt={class:`acu-plan-detail`},Fbt={key:0,class:`acu-plan-note`},Ibt={class:`acu-plan-steps`},Lbt={class:`acu-plan-marker`,"aria-hidden":`true`},Rbt={key:0,viewBox:`0 0 24 24`,width:`11`,height:`11`,fill:`none`,stroke:`currentColor`,"stroke-width":`3.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},zbt={key:1,class:`acu-plan-dot`},Bbt={class:`acu-plan-body`},Vbt={class:`acu-plan-content`},Hbt={key:0,class:`acu-plan-step-note`},Ubt=K9(v({__name:`PlanBlock`,props:{steps:{},note:{default:void 0},status:{default:`done`},config:{default:void 0}},setup(e){let t=e,n=d(()=>t.config?.title||t.config?.labels?.title||`计划`),r=d(()=>t.config?.progress!==!1&&h.value.total>0),i=d(()=>(t.config?.labels?.progress||`{done}/{total}`).replace(`{done}`,String(h.value.done)).replace(`{total}`,String(h.value.total))),o=d(()=>t.config?.progressBar!==!1&&h.value.total>0),s=d(()=>t.config?.collapsible!==!1),u=_e(t.config?.defaultCollapsed!==!0);function f(){s.value&&(u.value=!u.value)}let m=d(()=>{let{done:e,total:t}=h.value;return t?`${Math.round(e/t*100)}%`:`0%`}),h=d(()=>bbt(t.steps));function g(e){return e.status||`pending`}return(t,d)=>(C(),a(`div`,{class:N([`acu-plan`,{"is-running":e.status===`running`,"is-collapsed":s.value&&!u.value}])},[(C(),x(le(s.value?`button`:`div`),{class:`acu-plan-header`,type:s.value?`button`:void 0,"aria-expanded":s.value?u.value:void 0,onClick:f},{default:ae(()=>[l(`span`,Obt,[e.status===`running`?(C(),a(`svg`,kbt,[...d[0]||=[l(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`},null,-1)]])):(C(),a(`svg`,Abt,[...d[1]||=[l(`path`,{d:`M9 11l3 3L22 4`},null,-1),l(`path`,{d:`M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11`},null,-1)]]))]),l(`span`,jbt,V(n.value),1),r.value?(C(),a(`span`,Mbt,V(i.value),1)):B(``,!0),s.value?(C(),a(`svg`,{key:1,class:N([`acu-plan-chevron`,{"is-open":u.value}]),viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[...d[2]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)):B(``,!0)]),_:1},8,[`type`,`aria-expanded`])),o.value?(C(),a(`div`,Nbt,[l(`span`,{class:`acu-plan-bar-fill`,style:F({width:m.value})},null,4)])):B(``,!0),p(ie,{name:`acu-collapse`},{default:ae(()=>[de(l(`div`,Pbt,[e.note?(C(),a(`p`,Fbt,V(e.note),1)):B(``,!0),l(`ul`,Ibt,[(C(!0),a(E,null,ee(e.steps,(e,t)=>(C(),a(`li`,{key:`${t}-${e.content}`,class:N([`acu-plan-step`,`is-${g(e)}`])},[l(`span`,Lbt,[g(e)===`completed`?(C(),a(`svg`,Rbt,[...d[3]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):g(e)===`in_progress`?(C(),a(`span`,zbt)):B(``,!0)]),l(`span`,Bbt,[l(`span`,Vbt,V(e.content),1),e.note?(C(),a(`span`,Hbt,V(e.note),1)):B(``,!0)])],2))),128))])],512),[[ve,!s.value||u.value]])]),_:1})],2))}}),[[`__scopeId`,`data-v-2161ee3f`]]),Wbt=[`aria-labelledby`,`aria-busy`],Gbt=[`id`,`aria-expanded`,`aria-label`],Kbt={class:`acu-ask-user-title-text`},qbt={class:`acu-ask-user-title-answer`},Jbt=[`id`],Ybt={class:`acu-ask-user-question`},Xbt={key:0,class:`acu-ask-user-options`},Zbt=[`checked`,`disabled`,`onChange`],Qbt=[`disabled`,`onClick`],$bt={key:0,class:`acu-ask-user-check`,"aria-hidden":`true`,viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.6`,"stroke-linecap":`round`,"stroke-linejoin":`round`},ext={key:1,class:`acu-ask-user-extras`},txt=[`placeholder`,`aria-label`,`disabled`],nxt=[`disabled`],rxt=[`disabled`],ixt=K9(v({__name:`AskUserPanel`,props:{question:{},options:{default:()=>[]},multiple:{type:Boolean,default:!1},allowFreeText:{type:Boolean,default:!0},submitting:{type:Boolean,default:!1},answers:{default:()=>[]},defaultAnsweredExpanded:{type:Boolean,default:!1},labels:{default:void 0}},emits:[`answer`],setup(e,{emit:t}){let n=e,r=t,i=k9(`acu-ask-user-title`),o=_e(``),s=_e(n.defaultAnsweredExpanded),f=_e([]),p=_e(!1),m=d(()=>n.answers.length>0),h=d(()=>m.value||p.value),g=d(()=>m.value?n.answers:f.value),_=d(()=>n.multiple||h.value?g.value:[]),v=d(()=>n.submitting||p.value||m.value),y=d(()=>!m.value&&(n.allowFreeText||n.options.length===0)),b=d(()=>n.labels?.placeholder??`输入回答`),x=d(()=>n.labels?.title??`等待你的回答`),S=d(()=>n.labels?.answered??`已回答`),w=d(()=>n.labels?.expand??`展开完整问答`),T=d(()=>n.labels?.collapse??`收起完整问答`),D=d(()=>m.value?g.value.filter(e=>!n.options.includes(e)):[]),O=d(()=>v.value?!0:n.multiple?f.value.length===0&&!o.value.trim():!o.value.trim());function k(e){return h.value&&!g.value.includes(e)}ue(()=>n.question,()=>{f.value=[],o.value=``,p.value=!1}),ue(m,e=>{e&&(s.value=n.defaultAnsweredExpanded)}),ue(()=>n.submitting,(e,t)=>{!t||e||(p.value=!1,n.multiple||(f.value=[]))});function A(e){if(v.value)return;let t=f.value.indexOf(e);t>=0?f.value.splice(t,1):f.value.push(e)}function j(e){v.value||(f.value=[e],p.value=!0,r(`answer`,[e]))}function M(){if(O.value)return;let e=n.multiple?[...f.value]:[],t=o.value.trim();t&&e.push(t),e.length&&(p.value=!0,r(`answer`,e))}return(t,n)=>(C(),a(`section`,{class:N([`acu-ask-user`,{"is-answered":h.value,"is-collapsed":m.value&&!s.value}]),role:`group`,"aria-live":`polite`,"aria-labelledby":u(i),"aria-busy":e.submitting},[m.value?(C(),a(`button`,{key:0,id:u(i),type:`button`,class:`acu-ask-user-title is-toggle`,"aria-expanded":s.value,"aria-label":s.value?T.value:w.value,onClick:n[0]||=e=>s.value=!s.value},[n[3]||=l(`span`,{class:`acu-ask-user-icon`,"aria-hidden":`true`},[l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`20 6 9 17 4 12`})])],-1),l(`span`,Kbt,V(S.value),1),l(`span`,qbt,V(g.value.join(` / `)),1),(C(),a(`svg`,{class:N([`acu-ask-user-chevron`,{"is-expanded":s.value}]),"aria-hidden":`true`,viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...n[2]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],8,Gbt)):(C(),a(`div`,{key:1,id:u(i),class:`acu-ask-user-title`},[n[4]||=l(`span`,{class:`acu-ask-user-icon`,"aria-hidden":`true`},[l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z`})])],-1),l(`span`,null,V(x.value),1)],8,Jbt)),!m.value||s.value?(C(),a(E,{key:2},[l(`div`,Ybt,V(e.question),1),e.options.length?(C(),a(`div`,Xbt,[e.multiple?(C(!0),a(E,{key:0},ee(e.options,e=>(C(),a(`label`,{key:e,class:N([`acu-ask-user-option is-checkbox`,{"is-selected":g.value.includes(e),"is-dimmed":k(e)}])},[l(`input`,{type:`checkbox`,checked:g.value.includes(e),disabled:v.value,onChange:t=>A(e)},null,40,Zbt),l(`span`,null,V(e),1)],2))),128)):(C(!0),a(E,{key:1},ee(e.options,e=>(C(),a(`button`,{key:e,type:`button`,class:N([`acu-ask-user-option`,{"is-selected":_.value.includes(e),"is-dimmed":k(e)}]),disabled:v.value,onClick:t=>j(e)},[_.value.includes(e)?(C(),a(`svg`,$bt,[...n[5]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):B(``,!0),l(`span`,null,V(e),1)],10,Qbt))),128))])):B(``,!0),D.value.length?(C(),a(`div`,ext,[(C(!0),a(E,null,ee(D.value,e=>(C(),a(`span`,{key:e,class:`acu-ask-user-extra`},V(e),1))),128))])):B(``,!0)],64)):B(``,!0),y.value?(C(),a(`form`,{key:3,class:`acu-ask-user-form`,onSubmit:ge(M,[`prevent`])},[de(l(`input`,{"onUpdate:modelValue":n[1]||=e=>o.value=e,type:`text`,class:`acu-ask-user-input`,placeholder:b.value,"aria-label":b.value,disabled:v.value},null,8,txt),[[fe,o.value]]),l(`button`,{type:`submit`,class:`acu-ask-user-submit`,disabled:O.value},[n[6]||=l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`20 6 9 17 4 12`})],-1),l(`span`,null,V(e.labels?.submit??`提交回答`),1)],8,nxt)],32)):e.multiple&&!m.value?(C(),a(`button`,{key:4,type:`button`,class:`acu-ask-user-submit is-standalone`,disabled:O.value,onClick:M},[n[7]||=l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`20 6 9 17 4 12`})],-1),l(`span`,null,V(e.labels?.submit??`提交回答`),1)],8,rxt)):B(``,!0)],10,Wbt))}}),[[`__scopeId`,`data-v-acd35a50`]]),axt={key:1,class:`acu-plan-wrap`},oxt={key:0,class:`acu-plan-raw`},sxt={key:2,class:`acu-toolcall`},cxt={key:0,class:`acu-spin`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`},lxt={key:1,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},uxt={key:2,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},dxt={key:3,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},fxt={class:`acu-toolcall-name`},pxt={key:0,class:`acu-toolcall-args`},mxt={key:0,class:`acu-toolcall-body`},hxt={key:0,class:`acu-toolcall-section`},gxt={class:`acu-toolcall-pre`},_xt={key:1,class:`acu-toolcall-section`},$9=K9(v({__name:`ToolCallBlock`,props:{toolCall:{},planConfig:{default:void 0},askUserLabels:{default:void 0}},setup(e){let t=e,n=_e(!1),r=d(()=>t.toolCall.status||`pending`),i=d(()=>ybt(t.toolCall)),o=d(()=>Q9(t.toolCall)),s=d(()=>t.planConfig?.labels?.raw||`原始参数`);function u(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}return(t,d)=>o.value?(C(),x(ixt,{key:0,class:`acu-toolcall-askuser`,question:o.value.question,options:o.value.options,multiple:o.value.multiple,"allow-free-text":o.value.allowFreeText,answers:o.value.answers,labels:e.askUserLabels},null,8,[`question`,`options`,`multiple`,`allow-free-text`,`answers`,`labels`])):i.value?(C(),a(`div`,axt,[p(Ubt,{steps:i.value.steps,note:i.value.note,status:r.value,config:e.planConfig},null,8,[`steps`,`note`,`status`,`config`]),e.toolCall.arguments?(C(),a(`details`,oxt,[l(`summary`,null,V(s.value),1),l(`pre`,null,V(u(e.toolCall.arguments)),1)])):B(``,!0)])):(C(),a(`div`,sxt,[l(`button`,{type:`button`,class:N([`acu-toolcall-header`,{expanded:n.value}]),onClick:d[0]||=e=>n.value=!n.value},[l(`span`,{class:N([`acu-toolcall-status`,`is-${r.value}`])},[r.value===`running`?(C(),a(`svg`,cxt,[...d[1]||=[l(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`},null,-1)]])):r.value===`done`?(C(),a(`svg`,lxt,[...d[2]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):r.value===`error`?(C(),a(`svg`,uxt,[...d[3]||=[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)]])):(C(),a(`svg`,dxt,[...d[4]||=[l(`circle`,{cx:`12`,cy:`12`,r:`10`},null,-1),l(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`},null,-1),l(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`},null,-1)]]))],2),d[6]||=l(`span`,{class:`acu-toolcall-icon`},[l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`})])],-1),l(`span`,fxt,V(e.toolCall.name),1),e.toolCall.argsPreview?(C(),a(`span`,pxt,V(e.toolCall.argsPreview),1)):B(``,!0),(C(),a(`svg`,{class:N([`acu-toolcall-chevron`,{expanded:n.value}]),viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...d[5]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],2),p(ie,{name:`acu-toolcall-slide`},{default:ae(()=>[n.value?(C(),a(`div`,mxt,[e.toolCall.arguments?(C(),a(`div`,hxt,[d[7]||=l(`div`,{class:`acu-toolcall-section-label`},`参数`,-1),l(`pre`,gxt,V(u(e.toolCall.arguments)),1)])):B(``,!0),e.toolCall.result===void 0?B(``,!0):(C(),a(`div`,_xt,[d[8]||=l(`div`,{class:`acu-toolcall-section-label`},`结果`,-1),l(`pre`,{class:N([`acu-toolcall-pre acu-toolcall-result`,`is-${r.value}`])},V(e.toolCall.result),3)]))])):B(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-f523af7b`]]),vxt={class:`acu-toolgroup`},yxt=[`aria-expanded`],bxt={key:0,class:`acu-spin`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`},xxt={key:1,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Sxt={key:2,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Cxt={key:3,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},wxt={class:`acu-toolgroup-label`},Txt={class:`acu-toolgroup-hint`},Ext={class:`acu-toolgroup-list`},Dxt={key:1,class:`acu-toolgroup-plan`},Oxt={key:2,class:`acu-toolgroup-askuser`},kxt=K9(v({__name:`ToolCallGroup`,props:{toolCalls:{},config:{default:void 0},planConfig:{default:void 0},askUserLabels:{default:void 0}},setup(e){let t=e,n=d(()=>Math.max(2,t.config?.collapseThreshold??2)),r=d(()=>t.config?.group!==!1&&t.toolCalls.length>=n.value),i=_e(t.config?.defaultExpanded??!1);ue(()=>t.config?.defaultExpanded,e=>{i.value=e??!1});function o(){i.value=!i.value}let s=d(()=>{if(!r.value||i.value)return null;for(let e=t.toolCalls.length-1;e>=0;e--)if(ybt(t.toolCalls[e]))return t.toolCalls[e];return null}),u=d(()=>!r.value||i.value?[]:t.toolCalls.filter(e=>Q9(e))),f=d(()=>{if(!r.value||i.value)return t.toolCalls;let e=t.toolCalls[t.toolCalls.length-1];if(!e)return[];let n=s.value;return n&&e.id===n.id||Q9(e)?[]:[e]}),m=d(()=>{let e=0,n=0,r=0;for(let i of t.toolCalls){let t=i.status||`pending`;t===`running`?e++:t===`error`?n++:t===`done`&&r++}return{total:t.toolCalls.length,running:e,error:n,done:r}}),h=d(()=>{let e=m.value;return e.running>0?`running`:e.error>0?`error`:e.done>0?`done`:`pending`}),g=d(()=>{let e=m.value;return e.running>0?`正在调用工具 ${e.done}/${e.total}`:e.error>0?`已调用 ${e.total} 个工具 · ${e.error} 个失败`:`已调用 ${e.total} 个工具`});return(t,n)=>(C(),a(`div`,vxt,[r.value?(C(),a(`button`,{key:0,type:`button`,class:N([`acu-toolgroup-header`,{"is-expanded":i.value}]),"aria-expanded":i.value,onClick:o},[l(`span`,{class:N([`acu-toolgroup-status`,`is-${h.value}`])},[h.value===`running`?(C(),a(`svg`,bxt,[...n[0]||=[l(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`},null,-1)]])):h.value===`done`?(C(),a(`svg`,xxt,[...n[1]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):h.value===`error`?(C(),a(`svg`,Sxt,[...n[2]||=[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)]])):(C(),a(`svg`,Cxt,[...n[3]||=[l(`circle`,{cx:`12`,cy:`12`,r:`10`},null,-1),l(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`},null,-1),l(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`},null,-1)]]))],2),n[5]||=y(`<span class="acu-toolgroup-icon" data-v-52a9bccb><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-52a9bccb><path d="M12 2 2 7l10 5 10-5-10-5z" data-v-52a9bccb></path><path d="m2 12 10 5 10-5" data-v-52a9bccb></path><path d="m2 17 10 5 10-5" data-v-52a9bccb></path></svg></span>`,1),l(`span`,wxt,V(g.value),1),l(`span`,Txt,V(i.value?`收起`:`全部`),1),(C(),a(`svg`,{class:N([`acu-toolgroup-chevron`,{expanded:i.value}]),viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...n[4]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],10,yxt)):B(``,!0),l(`div`,Ext,[(C(!0),a(E,null,ee(f.value,t=>(C(),x($9,{key:t.id,"tool-call":t,"plan-config":e.planConfig,"ask-user-labels":e.askUserLabels},null,8,[`tool-call`,`plan-config`,`ask-user-labels`]))),128))]),s.value?(C(),a(`div`,Dxt,[p($9,{"tool-call":s.value,"plan-config":e.planConfig},null,8,[`tool-call`,`plan-config`])])):B(``,!0),u.value.length?(C(),a(`div`,Oxt,[(C(!0),a(E,null,ee(u.value,t=>(C(),x($9,{key:t.id,"tool-call":t,"ask-user-labels":e.askUserLabels},null,8,[`tool-call`,`ask-user-labels`]))),128))])):B(``,!0)]))}}),[[`__scopeId`,`data-v-52a9bccb`]]),Axt=[`aria-label`,`title`],jxt={key:0,viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Mxt={key:1,viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Nxt={key:0,class:`acu-action-tip`},Pxt=K9(v({__name:`MessageActions`,props:{role:{},copyText:{},showCopy:{type:Boolean,default:!0},showRetry:{type:Boolean,default:!1},copiedDuration:{default:1600}},emits:[`retry`],setup(e){let t=e,n=_e(!1),r=null;function i(){r&&=(clearTimeout(r),null)}_(i),ue(()=>t.copyText,()=>{n.value&&(n.value=!1,i())});async function o(e){try{if(typeof navigator<`u`&&navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.select(),t.setSelectionRange(0,t.value.length);let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}}async function s(){let e=t.copyText||``;!e||!await o(e)||(n.value=!0,i(),r=setTimeout(()=>{n.value=!1,r=null},t.copiedDuration))}return(t,r)=>(C(),a(`div`,{class:N([`acu-message-actions`,`is-${e.role}`])},[e.showCopy?(C(),a(`button`,{key:0,type:`button`,class:N([`acu-action-btn`,{"is-done":n.value}]),"aria-label":n.value?`已复制`:`复制`,title:n.value?`已复制`:`复制`,onClick:s},[n.value?(C(),a(`svg`,jxt,[...r[1]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):(C(),a(`svg`,Mxt,[...r[2]||=[l(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`},null,-1),l(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`},null,-1)]])),p(ie,{name:`acu-tip`},{default:ae(()=>[n.value?(C(),a(`span`,Nxt,`已复制`)):B(``,!0)]),_:1})],10,Axt)):B(``,!0),e.showRetry?(C(),a(`button`,{key:1,type:`button`,class:`acu-action-btn`,"aria-label":`重新生成`,title:`重新生成`,onClick:r[0]||=e=>t.$emit(`retry`)},[...r[3]||=[y(`<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-f8edafef><path d="M21 2v6h-6" data-v-f8edafef></path><path d="M3 12a9 9 0 0 1 15-6.7L21 8" data-v-f8edafef></path><path d="M3 22v-6h6" data-v-f8edafef></path><path d="M21 12a9 9 0 0 1-15 6.7L3 16" data-v-f8edafef></path></svg>`,1)]])):B(``,!0)],2))}}),[[`__scopeId`,`data-v-f8edafef`]]),Fxt=[`title`],Ixt=K9(v({__name:`MessageMeta`,props:{message:{},config:{default:()=>({})}},setup(e){let t=e,n=d(()=>t.config.items??[`duration`,`tokens`]),r=d(()=>t.message.createdAt??0),i=d(()=>t.message.status===`streaming`||t.message.status===`pending`),o=_e(Date.now()),s=null;function l(){s&&=(clearInterval(s),null)}ue([i,()=>n.value.includes(`duration`),r],([e,t,n])=>{l(),e&&t&&n&&(o.value=Date.now(),s=setInterval(()=>{o.value=Date.now()},100))},{immediate:!0}),_(l);let u=d(()=>{let e=t.message.meta?.durationMs;if(typeof e==`number`)return A9(e);let n=r.value;if(!n)return``;let a=t.message.finishedAt;return typeof a==`number`&&a>n?A9(a-n):i.value?A9(o.value-n):``}),f=d(()=>{let e=t.message.meta?.firstTokenMs;if(typeof e==`number`&&e>=0)return A9(e);let n=r.value,i=t.message.firstTokenAt;return n&&typeof i==`number`&&i>=n?A9(i-n):``}),p=d(()=>{let e=t.message.meta?.usage;if(!e)return``;if(typeof e.prompt==`number`&&typeof e.completion==`number`)return`↑${j9(e.prompt)} ↓${j9(e.completion)}`;let n=typeof e.total==`number`?e.total:e.prompt??e.completion;return typeof n==`number`?`${j9(n)} tokens`:``}),m=d(()=>{let e=t.message.meta?.usage;if(!e)return``;let n=e.total??(e.prompt??0)+(e.completion??0),r=[];return n&&r.push(`共 ${n.toLocaleString(`en-US`)} tokens`),typeof e.prompt==`number`&&r.push(`输入 ${e.prompt.toLocaleString(`en-US`)}`),typeof e.completion==`number`&&r.push(`输出 ${e.completion.toLocaleString(`en-US`)}`),typeof e.reasoning==`number`&&r.push(`思考 ${e.reasoning.toLocaleString(`en-US`)}`),typeof e.cached==`number`&&r.push(`缓存命中 ${e.cached.toLocaleString(`en-US`)}`),r.join(` · `)}),h=d(()=>r.value?zvt(r.value):``);function g(e){switch(e){case`duration`:return u.value?{key:e,value:u.value,title:`回答耗时`}:null;case`firstToken`:return f.value?{key:e,value:f.value,title:`首字延迟(从发送到第一个字到达)`}:null;case`tokens`:return p.value?{key:e,value:p.value,title:m.value}:null;case`time`:return h.value?{key:e,value:h.value,title:`发送时间`}:null;default:return null}}let v=d(()=>{let e=[];for(let t of n.value){let n=g(t);n&&e.push(n)}for(let n of t.message.meta?.extra??[])n!=null&&n.value&&e.push({key:`extra`,value:n.label?`${n.label} ${n.value}`:n.value,title:n.title});return e});return(t,n)=>v.value.length?(C(),a(`div`,{key:0,class:N([`acu-message-meta`,`is-${e.message.role}`])},[(C(!0),a(E,null,ee(v.value,(e,t)=>(C(),a(`span`,{key:t,class:N([`acu-meta-item`,`is-${e.key}`]),title:e.title||void 0},V(e.value),11,Fxt))),128))],2)):B(``,!0)}}),[[`__scopeId`,`data-v-80210f5c`]]),Lxt=[`src`,`alt`],Rxt={class:`acu-ip-counter`},zxt=[`title`],Bxt=K9(v({__name:`ImagePreview`,props:{visible:{type:Boolean},images:{},index:{default:0}},emits:[`update:visible`,`update:index`],setup(e,{emit:t}){let n=e,r=t,i=_e(0),o=d(()=>n.images[i.value]);ue([()=>n.visible,()=>n.index,()=>n.images.length],([e,t,n])=>{e&&(i.value=n?Math.min(Math.max(t,0),n-1):0)},{immediate:!0});function s(e){let t=n.images.length;t<2||(i.value=(i.value+e+t)%t,r(`update:index`,i.value))}function u(){r(`update:visible`,!1)}function f(e){n.visible&&(e.key===`Escape`?(e.preventDefault(),u()):e.key===`ArrowLeft`?(e.preventDefault(),s(-1)):e.key===`ArrowRight`&&(e.preventDefault(),s(1)))}return ue(()=>n.visible,e=>{typeof window>`u`||(e?window.addEventListener(`keydown`,f):window.removeEventListener(`keydown`,f))},{immediate:!0}),_(()=>{typeof window<`u`&&window.removeEventListener(`keydown`,f)}),(t,n)=>{var r;return e.visible?(C(),x(me,{key:0,to:`body`},[l(`div`,{class:`acu-image-preview`,role:`dialog`,"aria-modal":`true`,"aria-label":`图片预览`,onClick:ge(u,[`self`]),onWheel:n[3]||=ge(()=>{},[`prevent`])},[o.value?(C(),a(`img`,{key:0,class:`acu-image-preview-img`,src:o.value.src,alt:o.value.name||``,onClick:n[0]||=ge(()=>{},[`stop`])},null,8,Lxt)):B(``,!0),l(`button`,{type:`button`,class:`acu-ip-btn is-close`,"aria-label":`关闭预览(Esc)`,onClick:u},[...n[4]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]]),e.images.length>1?(C(),a(E,{key:1},[l(`button`,{type:`button`,class:`acu-ip-btn is-prev`,"aria-label":`上一张`,onClick:n[1]||=ge(e=>s(-1),[`stop`])},[...n[5]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`15 18 9 12 15 6`})],-1)]]),l(`button`,{type:`button`,class:`acu-ip-btn is-next`,"aria-label":`下一张`,onClick:n[2]||=ge(e=>s(1),[`stop`])},[...n[6]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`9 18 15 12 9 6`})],-1)]]),l(`div`,Rxt,V(i.value+1)+` / `+V(e.images.length),1)],64)):B(``,!0),(r=o.value)!=null&&r.name?(C(),a(`div`,{key:2,class:`acu-ip-name`,title:o.value.name},V(o.value.name),9,zxt)):B(``,!0)],32)])):B(``,!0)}}}),[[`__scopeId`,`data-v-4cc2d641`]]),Vxt=[`data-msg-id`],Hxt={key:0,class:`acu-avatar acu-avatar--left`},Uxt=[`src`],Wxt={key:1,viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Gxt={class:`acu-bubble-main`},Kxt={key:0,class:`acu-bubble-name`},qxt=[`aria-label`,`title`,`onClick`,`onKeydown`],Jxt=[`src`,`alt`],Yxt={key:1,class:`acu-att-file`},Xxt={class:`acu-att-file-info`},Zxt=[`title`],Qxt={class:`acu-att-file-size`},$xt={key:1,class:`acu-bubble-toolcalls`},eSt={key:2,class:`acu-bubble-content`},tSt={key:0,class:`acu-cursor`,"aria-hidden":`true`},nSt={key:3,class:`acu-pending`},rSt={key:4,class:`acu-bubble-error`},iSt={key:1,class:`acu-avatar acu-avatar--right`},aSt=[`src`],oSt={key:1,viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},sSt=K9(v({__name:`MessageBubble`,props:{message:{},assistantName:{default:`AI 助手`},assistantAvatar:{default:``},userAvatar:{default:``},showAvatar:{type:Boolean,default:!0},toolCallsConfig:{default:void 0},planConfig:{default:void 0},askUserLabels:{default:void 0},thinkingConfig:{default:void 0},actionsConfig:{default:void 0},messageMetaConfig:{default:void 0},isLastAssistant:{type:Boolean,default:!1}},emits:[`retry`],setup(e){let t=e,n=d(()=>t.message.avatar||t.assistantAvatar),r=d(()=>t.message.avatar||t.userAvatar),i=d(()=>{var e;return!!((e=t.message.attachments)!=null&&e.length)}),o=d(()=>{var e;return!!((e=t.message.toolCalls)!=null&&e.length)}),s=d(()=>{let e=t.message.content||``;return e?t.message.reasoningStatus===`streaming`?{reasoning:``,content:e.replace(/<think>[\s\S]*?<\/think>/g,``).trim()}:Ryt(e):{reasoning:``,content:``}}),f=d(()=>s.value.reasoning),m=d(()=>s.value.content),h=d(()=>t.message.reasoning||f.value),g=d(()=>t.message.role===`assistant`&&t.message.status===`streaming`&&!!m.value),_=d(()=>t.message.role!==`system`&&t.actionsConfig?.enable!==!1),v=d(()=>!(t.messageMetaConfig?.enable!==!0||t.message.role===`system`||t.message.role===`user`&&t.messageMetaConfig?.showForUser!==!0)),y=d(()=>t.messageMetaConfig?.position??`inline`),b=d(()=>_.value||v.value),S=d(()=>v.value&&(t.messageMetaConfig?.visibility??`hover`)===`hover`),w=_e(!1),T=_e(0),D=d(()=>(t.message.attachments??[]).filter(e=>O9(e.type)&&!!e.preview).map(e=>({src:e.preview,name:e.name})));function O(e){let t=D.value.findIndex(t=>t.src===e.preview);t<0||(T.value=t,w.value=!0)}let k=d(()=>t.message.role===`assistant`?m.value:t.message.content||``),A=d(()=>t.actionsConfig?.copy!==!1&&!!k.value),j=d(()=>!(t.message.role!==`assistant`||t.actionsConfig?.retry===!1||t.message.status!==`done`||(t.actionsConfig?.retryOnlyLast??!0)&&!t.isLastAssistant));return(t,s)=>(C(),a(`div`,{class:N([`acu-bubble-row`,[`is-${e.message.role}`,{"is-meta-hover":S.value}]]),"data-msg-id":e.message.id},[e.message.role===`assistant`&&e.showAvatar?(C(),a(`div`,Hxt,[n.value?(C(),a(`img`,{key:0,src:n.value,alt:``},null,8,Uxt)):(C(),a(`svg`,Wxt,[...s[4]||=[l(`path`,{d:`M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9L12 3z`},null,-1),l(`path`,{d:`M19 14l.8 1.9L21.7 17l-1.9.8L19 19.7l-.8-1.9L16.3 17l1.9-.8L19 14z`},null,-1)]]))])):B(``,!0),l(`div`,Gxt,[e.message.role===`assistant`?(C(),a(`div`,Kxt,V(e.assistantName),1)):B(``,!0),i.value?(C(),a(`div`,{key:1,class:N([`acu-attachments`,`is-${e.message.role}`])},[(C(!0),a(E,null,ee(e.message.attachments,e=>(C(),a(E,{key:e.id},[u(O9)(e.type)&&e.preview?(C(),a(`div`,{key:0,class:`acu-att-thumb`,role:`button`,tabindex:`0`,"aria-label":`预览 ${e.name}`,title:`点击预览 ${e.name}`,onClick:t=>O(e),onKeydown:[L(ge(t=>O(e),[`prevent`]),[`enter`]),L(ge(t=>O(e),[`prevent`]),[`space`])]},[l(`img`,{src:e.preview,alt:e.name,loading:`lazy`},null,8,Jxt)],40,qxt)):(C(),a(`div`,Yxt,[s[5]||=l(`span`,{class:`acu-att-file-icon`},[l(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),l(`polyline`,{points:`14 2 14 8 20 8`})])],-1),l(`span`,Xxt,[l(`span`,{class:`cu-att-file-name`,title:e.name},V(e.name),9,Zxt),l(`span`,Qxt,V(u(Rvt)(e.size)),1)])]))],64))),128))],2)):B(``,!0),l(`div`,{class:N([`acu-bubble`,`is-${e.message.role}`])},[e.message.role===`assistant`&&h.value?(C(),x(lbt,{key:0,content:h.value,streaming:e.message.reasoningStatus===`streaming`,config:e.thinkingConfig,"duration-ms":e.message.meta?.reasoningMs,"started-at":e.message.reasoningStartedAt,"ended-at":e.message.reasoningEndedAt},null,8,[`content`,`streaming`,`config`,`duration-ms`,`started-at`,`ended-at`])):B(``,!0),o.value?(C(),a(`div`,$xt,[p(kxt,{"tool-calls":e.message.toolCalls||[],config:e.toolCallsConfig,"plan-config":e.planConfig,"ask-user-labels":e.askUserLabels},null,8,[`tool-calls`,`config`,`plan-config`,`ask-user-labels`])])):B(``,!0),m.value?(C(),a(`div`,eSt,[p(q9,{source:m.value,streaming:g.value},null,8,[`source`,`streaming`]),g.value?(C(),a(`span`,tSt)):B(``,!0)])):e.message.role===`assistant`&&e.message.status===`pending`?(C(),a(`div`,nSt,[...s[6]||=[l(`span`,{class:`acu-typing-dots`,"aria-label":`正在思考`},[l(`span`),l(`span`),l(`span`)],-1)]])):B(``,!0),e.message.status===`error`?(C(),a(`div`,rSt,[s[7]||=l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`circle`,{cx:`12`,cy:`12`,r:`10`}),l(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),l(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})],-1),l(`span`,null,V(e.message.error||`生成失败,请重试`),1),l(`button`,{type:`button`,class:`acu-retry-btn`,onClick:s[0]||=n=>t.$emit(`retry`,e.message)},`重试`)])):B(``,!0)],2),b.value?(C(),a(`div`,{key:2,class:N([`acu-bubble-footer`,[`is-${e.message.role}`,`is-meta-${y.value}`]])},[_.value?(C(),x(Pxt,{key:0,role:e.message.role,"copy-text":k.value,"show-copy":A.value,"show-retry":j.value,"copied-duration":e.actionsConfig?.copiedDuration??1600,onRetry:s[1]||=n=>t.$emit(`retry`,e.message)},null,8,[`role`,`copy-text`,`show-copy`,`show-retry`,`copied-duration`])):B(``,!0),v.value?(C(),x(Ixt,{key:1,message:e.message,config:e.messageMetaConfig},null,8,[`message`,`config`])):B(``,!0)],2)):B(``,!0)]),e.message.role===`user`&&e.showAvatar?(C(),a(`div`,iSt,[r.value?(C(),a(`img`,{key:0,src:r.value,alt:``},null,8,aSt)):(C(),a(`svg`,oSt,[...s[8]||=[l(`path`,{d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2`},null,-1),l(`circle`,{cx:`12`,cy:`7`,r:`4`},null,-1)]]))])):B(``,!0),p(Bxt,{visible:w.value,"onUpdate:visible":s[2]||=e=>w.value=e,index:T.value,"onUpdate:index":s[3]||=e=>T.value=e,images:D.value},null,8,[`visible`,`index`,`images`])],10,Vxt))}}),[[`__scopeId`,`data-v-6c4a53e2`]]),cSt={key:0,class:`acu-followup-title`},lSt={key:0},uSt={key:1,class:`acu-followup-loading`},dSt={class:`acu-followup-list`},fSt=[`onClick`],pSt={class:`acu-followup-item-label`},mSt=K9(v({__name:`FollowupSuggestions`,props:{items:{default:()=>[]},title:{default:`继续追问`},loading:{type:Boolean,default:!1}},emits:[`select`],setup(e){let t=e,n=d(()=>t.loading||t.items&&t.items.length>0);return(t,r)=>n.value?(C(),a(`div`,{key:0,class:N([`acu-followup`,{"is-loading":e.loading}])},[e.title||e.loading?(C(),a(`div`,cSt,[e.loading?(C(),a(`span`,uSt,[...r[0]||=[l(`span`,{class:`acu-followup-dot`},null,-1),l(`span`,{class:`acu-followup-dot`},null,-1),l(`span`,{class:`acu-followup-dot`},null,-1),S(` 正在生成追问… `,-1)]])):(C(),a(`span`,lSt,V(e.title),1))])):B(``,!0),l(`div`,dSt,[(C(!0),a(E,null,ee(e.items,e=>(C(),a(`button`,{key:e.id,type:`button`,class:`acu-followup-item`,onClick:n=>t.$emit(`select`,e)},[l(`span`,pSt,V(e.label),1),r[1]||=l(`svg`,{class:`acu-followup-item-arrow`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[l(`line`,{x1:`7`,y1:`17`,x2:`17`,y2:`7`}),l(`polyline`,{points:`7 7 17 7 17 17`})],-1)],8,fSt))),128))])],2)):B(``,!0)}}),[[`__scopeId`,`data-v-3a8d51cc`]]),hSt=[`data-turn-id`,`aria-label`,`aria-current`,`onClick`,`onMouseenter`,`onFocus`],gSt={key:0,class:`acu-rail-tip-q`},_St={class:`acu-rail-tip-a`},vSt=K9(v({__name:`MessageRail`,props:{messages:{},activeId:{default:null},config:{default:void 0},assistantName:{default:`AI`}},emits:[`select`],setup(e,{expose:t,emit:n}){let r=e,i=n,o=d(()=>{let e=r.config??{};return{widthBy:e.widthBy??`length`,minWidth:e.minWidth??8,maxWidth:e.maxWidth??26,barHeight:e.barHeight??3,maxGap:e.maxGap??10,maxHeight:e.maxHeight??320,idleOpacity:e.idleOpacity??.3,showTooltip:e.showTooltip??!0,clickToScroll:e.clickToScroll??!0}}),s=d(()=>o.value.barHeight),u=d(()=>o.value.maxHeight),f=d(()=>o.value.idleOpacity),p=d(()=>o.value.showTooltip);function m(e){return(e.content||e.reasoning||``).replace(/\s+/g,` `).trim()}function h(e,t){return e.length>t?`${e.slice(0,t)}…`:e}let g=d(()=>{let e=[];for(let t of r.messages){let n=e[e.length-1];(t.role===`user`||!n)&&(n={anchor:t,question:``,answer:``,msgIds:[],chars:0,streaming:!1},e.push(n)),n.msgIds.push(t.id),n.chars+=(t.content?.length??0)+(t.reasoning?.length??0)*.5,(t.status===`streaming`||t.status===`pending`)&&(n.streaming=!0);let r=m(t);t.role===`user`?n.question||(n.question=r):r&&(n.answer=r)}return e}),_=d(()=>{let e=g.value,{widthBy:t,minWidth:n,maxWidth:r}=o.value;if(!e.length)return[];if(t===`even`)return e.map(()=>r);let i=e.map(e=>Math.max(4,e.chars)),a=Math.min(...i),s=Math.max(...i);if(s-a<1)return e.map(()=>r);let l=Math.log10(a),u=Math.log10(s)-l;return i.map(e=>{let t=Math.min(1,Math.max(0,(Math.log10(e)-l)/u));return Math.round(n+t*(r-n))})}),v=d(()=>g.value.map((e,t)=>{let n=e.answer?h(e.answer,72):e.streaming?`正在生成…`:`(暂无回答)`,r=h(e.question,40);return{id:e.anchor.id,question:r,answer:n,title:`${r||`对话`} — ${n}`,width:_.value[t]??o.value.minWidth,streaming:e.streaming}})),y=d(()=>{let e=r.activeId;return e?g.value.find(t=>t.msgIds.includes(e))?.anchor.id??null:null}),b=d(()=>{let e=v.value.length;if(e<=1)return o.value.maxGap;let{maxGap:t,maxHeight:n,barHeight:r}=o.value,i=(n-r)/(e-1);return Math.round(Math.min(t,Math.max(4,i-r)))}),x=_e(!1),S=_e(-1),w=_e(null),T=_e(0),D=d(()=>S.value>=0?v.value[S.value]??null:null),O=d(()=>{let e=s.value+b.value;return S.value*e+s.value/2-T.value});function k(){T.value=w.value?.scrollTop??0}function A(){x.value=!1,S.value=-1}function j(e){if(!o.value.clickToScroll)return;let t=g.value[e];t&&i(`select`,t.anchor,e)}return ue(y,()=>{let e=v.value.findIndex(e=>e.id===y.value),t=w.value;if(e<0||!t)return;let n=s.value+b.value,r=e*n;r<t.scrollTop?t.scrollTop=r:r+n>t.scrollTop+t.clientHeight&&(t.scrollTop=r+n-t.clientHeight)}),t({hovering:x}),(e,t)=>v.value.length>1?(C(),a(`div`,{key:0,class:`acu-rail`,style:F({"--acu-rail-idle":f.value}),role:`navigation`,"aria-label":`对话轮次导航`,onMouseenter:t[0]||=e=>x.value=!0,onMouseleave:A},[l(`div`,{ref_key:`stackRef`,ref:w,class:`acu-rail-stack`,style:F({gap:`${b.value}px`,maxHeight:`${u.value}px`}),onScroll:k},[(C(!0),a(E,null,ee(v.value,(e,t)=>(C(),a(`button`,{key:e.id,type:`button`,class:N([`acu-rail-bar`,{"is-active":e.id===y.value,"is-streaming":e.streaming,"is-hot":t===S.value}]),style:F({width:`${e.width}px`,height:`${s.value}px`}),"data-turn-id":e.id,"aria-label":e.title,"aria-current":e.id===y.value?`true`:void 0,onClick:e=>j(t),onMouseenter:e=>S.value=t,onFocus:e=>S.value=t},null,46,hSt))),128))],36),p.value&&D.value?(C(),a(`div`,{key:0,class:`acu-rail-tip`,style:F({top:`${O.value}px`})},[D.value.question?(C(),a(`div`,gSt,V(D.value.question),1)):B(``,!0),l(`div`,_St,V(D.value.answer),1)],4)):B(``,!0)],36)):B(``,!0)}}),[[`__scopeId`,`data-v-b92af984`]]),ySt={class:`acu-message-list-inner`},bSt=80,xSt=40,SSt=6,CSt=8,wSt=K9(v({__name:`MessageList`,props:{messages:{},assistantName:{default:`AI 助手`},assistantAvatar:{default:``},userAvatar:{default:``},showAvatar:{type:Boolean,default:!0},followup:{default:void 0},toolCallsConfig:{default:void 0},planConfig:{default:void 0},askUserLabels:{default:void 0},thinkingConfig:{default:void 0},actionsConfig:{default:void 0},messageMetaConfig:{default:void 0},messageRailConfig:{default:void 0}},emits:[`retry`,`followup-select`],setup(e,{expose:t,emit:n}){let r=e,i=d(()=>{if(r.followup)return Array.isArray(r.followup)?{items:r.followup,mode:`latest`,autoSend:!0}:r.followup}),o=d(()=>i.value?.title??`继续追问`),s=d(()=>i.value?.mode??`latest`),u=d(()=>i.value?.showDuringStreaming??!1),f=ye({}),h=d(()=>{for(let e=r.messages.length-1;e>=0;e--){let t=r.messages[e];if(t.role===`assistant`&&t.status===`done`)return t.id}return null}),g=d(()=>{for(let e=r.messages.length-1;e>=0;e--)if(r.messages[e].role===`assistant`)return r.messages[e].id;return null});function v(e){return e.role!==`assistant`||e.status===`error`?!1:e.status===`streaming`||e.status===`pending`?u.value:s.value===`latest`?e.id===h.value:e.status===`done`}let y=0;async function b(e){let t=i.value;if(!t||typeof t.provider!=`function`)return;if(t.items&&t.items.length){f[e.id]={items:t.items,loading:!1};return}let n=++y;f[e.id]={items:[],loading:!0};try{let i=await t.provider(e,r.messages);if(n!==y)return;let a=Array.isArray(i)?i:[];f[e.id]={items:a,loading:!1}}catch(t){if(n!==y)return;f[e.id]={items:[],loading:!1},console.warn(`[ai-chat-ui] followup provider error:`,t)}}ue(()=>r.messages.map(e=>`${e.id}:${e.status}:${e.content.length}`).join(`|`),()=>{w()},{immediate:!0});function S(){let e=new Set;for(let t of r.messages)v(t)&&e.add(t.id);for(let t of Object.keys(f))e.has(t)||delete f[t]}function w(){let e=i.value;if(!e){for(let e of Object.keys(f))delete f[e];return}if(e.items&&e.items.length){for(let t of r.messages)v(t)&&(f[t.id]={items:e.items,loading:!1});S();return}if(typeof e.provider==`function`){for(let e of r.messages)v(e)&&!f[e.id]&&b(e);S()}}ue(()=>r.followup,()=>{for(let e of Object.keys(f))delete f[e];y++,w()});let T=_e(null),D=_e(!0),O=d(()=>r.messageRailConfig?.enable===!0),k=_e(null),A=_e(null),j=_e(null),N=_e(0),P=_e(null),I=null,L=d(()=>P.value===null?void 0:{left:`${P.value}px`});function R(e){(A.value?.closest(`.acu-chat`)||A.value)?.style.setProperty(`--acu-rail-lane`,`${e}px`)}function te(){let e=A.value;if(!e)return;let t=j.value?.$el,n=e.querySelector(`.acu-message-list-inner`);if(!O.value||!t||!n){P.value=null,N.value!==0&&(N.value=0,R(0));return}let r=e.getBoundingClientRect().left,i=n.getBoundingClientRect().left-r-N.value,a=t.getBoundingClientRect().width||38,o=Math.max(SSt,i-xSt);P.value=o;let s=o+a-i,l=s>0?Math.ceil(s+CSt):0;l!==N.value&&(N.value=l,R(l))}ue(O,e=>{e&&m(()=>te())}),ue(()=>r.messages.length,()=>{m(()=>te())}),M(()=>{O.value&&typeof ResizeObserver<`u`&&A.value&&(I=new ResizeObserver(()=>te()),I.observe(A.value)),m(()=>te())}),_(()=>{I?.disconnect(),I=null,R(0)});function z(){let e=T.value;if(!e)return;let t=e.getBoundingClientRect(),n=t.top+t.height/2,i=null;for(let t of e.querySelectorAll(`[data-msg-id]`))if(t.getBoundingClientRect().top<=n)i=t.dataset.msgId??null;else break;k.value=i??r.messages[0]?.id??null}function ne(e){let t=T.value;if(!t)return;let n=typeof CSS<`u`&&CSS.escape?CSS.escape(e.id):e.id,r=t.querySelector(`[data-msg-id="${n}"]`);r&&t.scrollTo({top:Math.max(0,r.offsetTop-16),behavior:`smooth`})}function re(){let e=T.value;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight;D.value=t<bSt,O.value&&z()}function oe(e=!1){let t=T.value;t&&(t.scrollTo({top:t.scrollHeight,behavior:e?`smooth`:`auto`}),D.value=!0)}function se(){let e=r.messages[r.messages.length-1];return e?`${r.messages.length}:${e.id}:${e.content.length}:${e.reasoning?.length??0}`:``}return ue(se,()=>{D.value&&m(()=>oe(!1))}),ue(()=>r.messages.length,()=>{m(()=>{oe(!1),O.value&&z()})}),ue(O,e=>{e&&m(()=>{z(),te()})}),M(()=>{oe(!1),m(()=>z())}),t({scrollToBottom:oe}),(t,n)=>(C(),a(`div`,{ref_key:`wrapRef`,ref:A,class:`acu-message-list-wrap`},[l(`div`,{ref_key:`scrollRef`,ref:T,class:`acu-message-list`,onScroll:re},[l(`div`,ySt,[(C(!0),a(E,null,ee(e.messages,r=>(C(),a(E,{key:r.id},[p(sSt,{message:r,"assistant-name":e.assistantName,"assistant-avatar":e.assistantAvatar,"user-avatar":e.userAvatar,"show-avatar":e.showAvatar,"tool-calls-config":e.toolCallsConfig,"plan-config":e.planConfig,"ask-user-labels":e.askUserLabels,"thinking-config":e.thinkingConfig,"actions-config":e.actionsConfig,"message-meta-config":e.messageMetaConfig,"is-last-assistant":r.id===g.value,onRetry:n[0]||=e=>t.$emit(`retry`,e)},null,8,[`message`,`assistant-name`,`assistant-avatar`,`user-avatar`,`show-avatar`,`tool-calls-config`,`plan-config`,`ask-user-labels`,`thinking-config`,`actions-config`,`message-meta-config`,`is-last-assistant`]),v(r)?(C(),x(mSt,{key:0,items:f[r.id]?.items??[],title:o.value,loading:f[r.id]?.loading??!1,onSelect:e=>t.$emit(`followup-select`,e,r)},null,8,[`items`,`title`,`loading`,`onSelect`])):B(``,!0)],64))),128))]),p(ie,{name:`acu-fade`},{default:ae(()=>[de(l(`button`,{type:`button`,class:`acu-scroll-btn`,"aria-label":`回到底部`,onClick:n[1]||=e=>oe(!0)},[...n[2]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`6 9 12 15 18 9`})],-1)]],512),[[ve,!D.value&&e.messages.length>0]])]),_:1})],544),O.value?(C(),x(vSt,{key:0,ref_key:`railRef`,ref:j,messages:e.messages,"active-id":k.value,config:e.messageRailConfig,"assistant-name":e.assistantName,style:F(L.value),onSelect:ne},null,8,[`messages`,`active-id`,`config`,`assistant-name`,`style`])):B(``,!0)],512))}}),[[`__scopeId`,`data-v-691082b9`]]),TSt={class:`acu-welcome`},ESt={class:`acu-welcome-title`},DSt={key:0,class:`acu-welcome-desc`},OSt={key:1,class:`acu-welcome-grid`},kSt=[`onClick`],ASt={class:`acu-preset-q-index`,"aria-hidden":`true`},jSt={class:`acu-preset-q-body`},MSt={class:`acu-preset-q-label`},NSt={key:0,class:`acu-preset-q-prompt`},PSt=K9(v({__name:`WelcomeScreen`,props:{title:{default:`你好,有什么可以帮你?`},description:{default:`试着问我任何问题,或选择下方的话题开始对话。`},questions:{default:()=>[]},maxWidth:{default:`var(--acu-max-width)`}},emits:[`select`],setup(e){let t=e,n=d(()=>typeof t.maxWidth==`number`?`${t.maxWidth}px`:t.maxWidth);return(t,r)=>(C(),a(`div`,TSt,[l(`div`,{class:`acu-welcome-inner`,style:F({maxWidth:n.value})},[r[1]||=y(`<div class="acu-welcome-logo" data-v-1a6da807><svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-1a6da807><path d="M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9L12 3z" data-v-1a6da807></path><path d="M19 14l.8 1.9L21.7 17l-1.9.8L19 19.7l-.8-1.9L16.3 17l1.9-.8L19 14z" data-v-1a6da807></path><path d="M5 15l.6 1.5L7.1 17l-1.5.6L5 19.1l-.6-1.5L2.9 17l1.5-.6L5 15z" data-v-1a6da807></path></svg></div>`,1),l(`h2`,ESt,V(e.title),1),e.description?(C(),a(`p`,DSt,V(e.description),1)):B(``,!0),e.questions.length?(C(),a(`div`,OSt,[(C(!0),a(E,null,ee(e.questions,(e,n)=>(C(),a(`button`,{key:e.id,type:`button`,class:`acu-preset-q`,onClick:n=>t.$emit(`select`,e)},[l(`span`,ASt,V(String(n+1).padStart(2,`0`)),1),l(`span`,jSt,[l(`span`,MSt,V(e.label),1),e.prompt?(C(),a(`span`,NSt,V(e.prompt),1)):B(``,!0)]),r[0]||=l(`svg`,{class:`acu-preset-q-arrow`,viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`7`,y1:`17`,x2:`17`,y2:`7`}),l(`polyline`,{points:`7 7 17 7 17 17`})],-1)],8,kSt))),128))])):B(``,!0)],4)]))}}),[[`__scopeId`,`data-v-1a6da807`]]),FSt={key:0,class:`acu-input-drop-hint`},ISt={key:1,class:`acu-input-queue`},LSt={class:`acu-input-queue-head`},RSt={class:`acu-input-queue-title`},zSt={class:`acu-input-queue-count`},BSt={class:`acu-input-queue-hint`},VSt={class:`acu-input-queue-index`},HSt=[`title`],USt=[`title`],WSt={class:`acu-input-queue-att-name`},GSt=[`title`,`aria-label`,`onClick`],KSt={key:2,class:`acu-input-attachments`},qSt=[`aria-label`,`title`,`onClick`,`onKeydown`],JSt=[`src`,`alt`],YSt={key:1,class:`acu-input-att-file`},XSt=[`title`],ZSt=[`onClick`],QSt={class:`acu-input-row`},$St=[`disabled`],eCt=[`accept`,`multiple`],tCt=[`placeholder`,`disabled`],nCt=[`aria-label`],rCt={class:`acu-input-usage-text`,role:`tooltip`},iCt={class:`acu-input-usage-ring`,viewBox:`0 0 36 36`,"aria-hidden":`true`},aCt=[`stroke-dasharray`],oCt=[`disabled`,`aria-label`,`title`],sCt=K9(v({__name:`ChatInput`,props:{placeholder:{default:`输入消息,Enter 发送,Shift+Enter 换行`},disabled:{type:Boolean,default:!1},generating:{type:Boolean,default:!1},allowQueue:{type:Boolean,default:!1},queued:{default:()=>[]},queuePaused:{type:Boolean,default:!1},queueLabels:{default:()=>({})},uploadConfig:{default:()=>({})},maxLength:{default:4e3},contextUsage:{default:null}},emits:[`send`,`stop`,`unqueue`,`flush-queued`],setup(e,{expose:t,emit:n}){let r=e,i=n,o=_e(``),s=_e([]),u=_e(null),f=_e(null),h=_e(!1),g=_e(!1),_=0,v=_e(!1),y=_e(0),b=d(()=>s.value.filter(e=>!!e.preview).map(e=>({src:e.preview,name:e.file.name})));function x(e){let t=b.value.findIndex(t=>t.src===e.preview);t<0||(y.value=t,v.value=!0)}let S=d(()=>({enabled:!0,multiple:!0,accept:``,maxCount:10,maxSize:20971520,...r.uploadConfig}));function w(e){if(!Number.isFinite(e))return`—`;let t=/^K/i.test(r.contextUsage?.unit||``),n=t?e/1e3:e;return t?n.toFixed(1):String(Math.round(n))}let T=d(()=>{let e=r.contextUsage;if(!e)return null;let t=Number.isFinite(e.ratio)?e.ratio:0,n=e.unit||``,i=t*100,a=e.level||(t>=1?`full`:t>=.8?`warn`:`normal`),o=`${i.toFixed(1)}% · ${w(e.current)}${n} / ${w(e.total)}${n}`+(e.suffix?` ${e.suffix}`:``),s=2*Math.PI*15,l=Math.min(Math.max(t,0),1);return{level:a,summary:o,detail:e.detail||o,dashArray:`${(s*l).toFixed(2)} ${s.toFixed(2)}`}}),D=d(()=>S.value.enabled),O=d(()=>({title:r.queueLabels.title||`排队中`,hint:r.queueLabels.hint||`等本轮跑完依次发送`,pausedHint:r.queueLabels.pausedHint||`已暂停,点「立即发送」继续`,send:r.queueLabels.send||`加入队列`,flush:r.queueLabels.flush||`立即发送`,remove:r.queueLabels.remove||`移出队列`})),k=d(()=>o.value.trim().length>0||s.value.length>0);function A(e){e.key===`Enter`&&!e.shiftKey&&!g.value&&!e.isComposing&&(e.preventDefault(),I())}function j(){g.value=!0}function P(){g.value=!1}function F(){let e=u.value;if(!e)return;e.style.height=`auto`;let t=e.scrollHeight;e.style.height=Math.min(t,200)+`px`;let n=t>200?`auto`:`hidden`;e.style.overflowY!==n&&(e.style.overflowY=n)}function I(){if(r.generating&&!r.allowQueue||!k.value||r.disabled)return;let e=o.value.trim();!e&&s.value.length===0||(i(`send`,{text:e,files:[...s.value]}),o.value=``,s.value=[],m(()=>{var e;F(),(e=u.value)==null||e.focus()}))}function R(){var e;(e=f.value)==null||e.click()}function te(e){let t=e.target;t.files&&z(Array.from(t.files)),t.value=``}function z(e){let t=S.value;for(let n of e){if(t.maxCount&&s.value.length>=t.maxCount)break;if(t.maxSize&&n.size>t.maxSize)continue;let e={file:n,id:k9(`file`)};O9(n.type)&&(e.preview=URL.createObjectURL(n)),s.value.push(e)}}function ne(e){let t=s.value.findIndex(t=>t.id===e);if(t>=0){let e=s.value[t];e.preview&&URL.revokeObjectURL(e.preview),s.value.splice(t,1)}}function re(e){if(r.disabled||!D.value)return;let t=e.clipboardData?.items;if(!t||t.length===0)return;let n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r.kind===`file`){let e=r.getAsFile();e&&n.push(e)}}n.length!==0&&(e.preventDefault(),z(n))}function ie(e){var t;r.disabled||!D.value||(t=e.dataTransfer)!=null&&t.types.includes(`Files`)&&(_++,h.value=!0)}function ae(){_=Math.max(0,_-1),_===0&&(h.value=!1)}function oe(e){var t;if(_=0,h.value=!1,r.disabled||!D.value)return;let n=(t=e.dataTransfer)!=null&&t.files?Array.from(e.dataTransfer.files):[];n.length&&z(n)}return M(()=>F()),t({focus:()=>u.value?.focus(),clear:()=>{o.value=``,s.value=[],m(F)}}),(t,n)=>(C(),a(`div`,{class:N([`acu-input-wrap`,{"is-dragging":h.value,"is-disabled":e.disabled}]),onDragenter:ie,onDragover:n[5]||=ge(()=>{},[`prevent`]),onDragleave:ae,onDrop:ge(oe,[`prevent`])},[h.value?(C(),a(`div`,FSt,[...n[6]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),l(`polyline`,{points:`17 8 12 3 7 8`}),l(`line`,{x1:`12`,y1:`3`,x2:`12`,y2:`15`})],-1),l(`span`,null,`松开以添加文件`,-1)]])):B(``,!0),e.queued.length?(C(),a(`div`,ISt,[l(`div`,LSt,[l(`span`,RSt,V(O.value.title),1),l(`span`,zSt,V(e.queued.length),1),l(`span`,BSt,V(e.queuePaused?O.value.pausedHint:O.value.hint),1)]),(C(!0),a(E,null,ee(e.queued,(t,r)=>(C(),a(`div`,{key:t.id,class:`acu-input-queue-item`},[l(`span`,VSt,V(r+1),1),l(`span`,{class:`acu-input-queue-text`,title:t.text},V(t.text),9,HSt),t.attachmentNames&&t.attachmentNames.length?(C(),a(`span`,{key:0,class:`acu-input-queue-atts`,title:t.attachmentNames.join(`、`)},[n[7]||=l(`svg`,{viewBox:`0 0 24 24`,width:`11`,height:`11`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48`})],-1),l(`span`,WSt,V(t.attachmentNames.join(`、`)),1)],8,USt)):B(``,!0),r===0&&e.queuePaused?(C(),a(`button`,{key:1,type:`button`,class:`acu-input-queue-btn`,onClick:n[0]||=e=>i(`flush-queued`)},V(O.value.flush),1)):B(``,!0),l(`button`,{type:`button`,class:`acu-input-queue-remove`,title:O.value.remove,"aria-label":O.value.remove,onClick:e=>i(`unqueue`,t.id)},[...n[8]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`11`,height:`11`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.4`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,GSt)]))),128))])):B(``,!0),s.value.length?(C(),a(`div`,KSt,[(C(!0),a(E,null,ee(s.value,e=>(C(),a(`div`,{key:e.id,class:`acu-input-att`},[e.preview?(C(),a(`div`,{key:0,class:`acu-input-att-thumb`,role:`button`,tabindex:`0`,"aria-label":`预览 ${e.file.name}`,title:`点击预览 ${e.file.name}`,onClick:t=>x(e),onKeydown:[L(ge(t=>x(e),[`prevent`]),[`enter`]),L(ge(t=>x(e),[`prevent`]),[`space`])]},[l(`img`,{src:e.preview,alt:e.file.name},null,8,JSt)],40,qSt)):(C(),a(`div`,YSt,[n[9]||=l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.7`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),l(`polyline`,{points:`14 2 14 8 20 8`})],-1),l(`span`,{class:`acu-input-att-name`,title:e.file.name},V(e.file.name),9,XSt)])),l(`button`,{type:`button`,class:`acu-input-att-remove`,"aria-label":`移除`,onClick:t=>ne(e.id)},[...n[10]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.4`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,ZSt)]))),128))])):B(``,!0),p(Bxt,{visible:v.value,"onUpdate:visible":n[1]||=e=>v.value=e,index:y.value,"onUpdate:index":n[2]||=e=>y.value=e,images:b.value},null,8,[`visible`,`index`,`images`]),l(`div`,QSt,[D.value?(C(),a(`button`,{key:0,type:`button`,class:`acu-input-icon-btn`,disabled:e.disabled,"aria-label":`添加附件`,onClick:R},[...n[11]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48`})],-1)]],8,$St)):B(``,!0),l(`input`,{ref_key:`fileInputRef`,ref:f,type:`file`,class:`acu-input-file`,accept:S.value.accept,multiple:S.value.multiple,onChange:te},null,40,eCt),de(l(`textarea`,{ref_key:`textareaRef`,ref:u,"onUpdate:modelValue":n[3]||=e=>o.value=e,class:`acu-input-textarea`,placeholder:e.placeholder,rows:1,disabled:e.disabled,onKeydown:A,onInput:F,onCompositionstart:j,onCompositionend:P,onPaste:re},null,40,tCt),[[fe,o.value]]),T.value?(C(),a(`div`,{key:1,class:N([`acu-input-usage`,`is-${T.value.level}`]),role:`img`,"aria-label":T.value.summary,tabindex:`0`},[l(`span`,rCt,V(T.value.summary),1),(C(),a(`svg`,iCt,[n[12]||=l(`circle`,{class:`acu-input-usage-track`,cx:`18`,cy:`18`,r:`15`},null,-1),l(`circle`,{class:`acu-input-usage-arc`,cx:`18`,cy:`18`,r:`15`,"stroke-dasharray":T.value.dashArray},null,8,aCt)]))],10,nCt)):B(``,!0),!e.generating||e.allowQueue?(C(),a(`button`,{key:2,type:`button`,class:`acu-input-send`,disabled:!k.value||e.disabled,"aria-label":e.generating?O.value.send:`发送`,title:e.generating?O.value.send:`发送`,onClick:I},[...n[13]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`5`}),l(`polyline`,{points:`5 12 12 5 19 12`})],-1)]],8,oCt)):B(``,!0),e.generating?(C(),a(`button`,{key:3,type:`button`,class:`acu-input-send is-stop`,"aria-label":`停止生成`,title:`停止生成`,onClick:n[4]||=e=>i(`stop`)},[...n[14]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2.5`})],-1)]])):B(``,!0)])],34))}}),[[`__scopeId`,`data-v-67ee4aac`]]);function cCt(e){let t=_e(!1),n=null;function r(e){t.value=e.matches}return M(()=>{typeof window>`u`||!window.matchMedia||(n=window.matchMedia(`(prefers-color-scheme: dark)`),r(n),n.addEventListener(`change`,r))}),_(()=>{n?.removeEventListener(`change`,r),n=null}),d(()=>{let n=f(e);return n===`auto`?t.value?`dark`:`light`:n})}var lCt=[`data-theme`],uCt={class:`acu-chat-body`},dCt={key:0,class:`acu-chat-question`},fCt={key:0,class:`acu-chat-footer`},pCt=K9(v({__name:`ChatContainer`,props:{messages:{},presetQuestions:{default:()=>[]},welcomeTitle:{default:`你好,有什么可以帮你?`},welcomeDescription:{default:`试着问我任何问题,或选择下方的话题开始对话。`},assistantName:{default:`AI 助手`},assistantAvatar:{default:``},userAvatar:{default:``},showAvatar:{type:Boolean,default:!0},theme:{default:`light`},placeholder:{default:`输入消息,Enter 发送,Shift+Enter 换行`},disabled:{type:Boolean,default:!1},generating:{type:Boolean,default:!1},allowQueue:{type:Boolean,default:!1},queued:{default:()=>[]},queuePaused:{type:Boolean,default:!1},queueLabels:{default:void 0},showInput:{type:Boolean,default:!0},question:{default:null},questionAnswers:{default:()=>[]},questionSubmitting:{type:Boolean,default:!1},questionLabels:{default:void 0},uploadConfig:{default:()=>({})},contextUsage:{default:null},followup:{default:void 0},toolCallsConfig:{default:void 0},planConfig:{default:void 0},thinkingConfig:{default:void 0},actionsConfig:{default:void 0},messageMetaConfig:{default:void 0},messageRailConfig:{default:void 0},maxWidth:{default:void 0}},emits:[`send`,`retry`,`select`,`followup-select`,`stop`,`unqueue`,`flush-queued`,`answer`],setup(e,{expose:t,emit:n}){let r=e,i=d(()=>r.maxWidth===void 0?void 0:typeof r.maxWidth==`number`?`${r.maxWidth}px`:r.maxWidth),o=n,s=_e(null),f=cCt(()=>r.theme);function m(e){o(`send`,e)}function h(e){o(`select`,e)}function g(e,t){o(`followup-select`,e,t);let n=r.followup;(Array.isArray(n)||n?.autoSend!==!1)&&o(`send`,{text:e.prompt,files:[]})}return t({scrollToBottom:e=>s.value?.scrollToBottom(e)}),(t,n)=>(C(),a(`div`,{class:`acu-root acu-chat`,"data-theme":u(f),style:F({"--acu-max-width":i.value})},[l(`div`,uCt,[e.messages.length?(C(),x(wSt,{key:1,ref_key:`listRef`,ref:s,messages:e.messages,"assistant-name":e.assistantName,"assistant-avatar":e.assistantAvatar,"user-avatar":e.userAvatar,"show-avatar":e.showAvatar,followup:e.followup,"tool-calls-config":e.toolCallsConfig,"plan-config":e.planConfig,"thinking-config":e.thinkingConfig,"actions-config":e.actionsConfig,"message-meta-config":e.messageMetaConfig,"message-rail-config":e.messageRailConfig,"ask-user-labels":e.questionLabels,onRetry:n[0]||=e=>t.$emit(`retry`,e),onFollowupSelect:g},null,8,[`messages`,`assistant-name`,`assistant-avatar`,`user-avatar`,`show-avatar`,`followup`,`tool-calls-config`,`plan-config`,`thinking-config`,`actions-config`,`message-meta-config`,`message-rail-config`,`ask-user-labels`])):(C(),x(PSt,{key:0,title:e.welcomeTitle,description:e.welcomeDescription,questions:e.presetQuestions,"max-width":i.value,onSelect:h},null,8,[`title`,`description`,`questions`,`max-width`]))]),p(ie,{name:`acu-collapse`},{default:ae(()=>[e.question?(C(),a(`div`,dCt,[p(ixt,{question:e.question.question,options:e.question.options,multiple:e.question.multiple,"allow-free-text":e.question.allowFreeText,submitting:e.questionSubmitting,answers:e.questionAnswers,labels:e.questionLabels,onAnswer:n[1]||=e=>t.$emit(`answer`,e)},null,8,[`question`,`options`,`multiple`,`allow-free-text`,`submitting`,`answers`,`labels`])])):B(``,!0)]),_:1}),e.showInput?(C(),a(`div`,fCt,[p(sCt,{placeholder:e.placeholder,disabled:e.disabled,generating:e.generating,"allow-queue":e.allowQueue,queued:e.queued,"queue-paused":e.queuePaused,"queue-labels":e.queueLabels,"upload-config":e.uploadConfig,"context-usage":e.contextUsage,onSend:m,onStop:n[2]||=e=>t.$emit(`stop`),onUnqueue:n[3]||=e=>t.$emit(`unqueue`,e),onFlushQueued:n[4]||=e=>t.$emit(`flush-queued`)},null,8,[`placeholder`,`disabled`,`generating`,`allow-queue`,`queued`,`queue-paused`,`queue-labels`,`upload-config`,`context-usage`])])):B(``,!0)],12,lCt))}}),[[`__scopeId`,`data-v-4ecead08`]]),mCt={key:0,class:`acu-conv-toolbar`},hCt={key:1,class:`acu-conv-search`},gCt=[`placeholder`,`aria-label`],_Ct=[`data-id`],vCt=[`aria-label`,`onKeydown`],yCt=[`aria-current`,`onClick`,`onDblclick`],bCt={class:`acu-conv-title`},xCt={key:0,class:`acu-conv-meta is-generating`},SCt={key:1,class:`acu-conv-meta`},CCt={key:0,class:`acu-conv-badge`},wCt={key:1,class:`acu-conv-meta-text`},TCt={class:`acu-conv-actions`},ECt=[`title`,`aria-label`,`onClick`],DCt=[`title`,`aria-label`,`onClick`],OCt={key:1,class:`acu-conv-empty`},kCt={key:0,class:`acu-conv-empty-hint`},ACt=K9(v({__name:`ConversationList`,props:{items:{},activeId:{default:null},loading:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!0},showNew:{type:Boolean,default:!0},compact:{type:Boolean,default:!1},labels:{default:void 0}},emits:[`select`,`new`,`rename`,`delete`],setup(e,{emit:t}){let n=e,r=t,i={newConversation:`新建会话`,searchPlaceholder:`搜索会话...`,empty:`暂无会话`,emptyHint:`点击上方按钮开始对话`,noResult:`未找到匹配的会话`,loading:`加载会话中...`,rename:`重命名`,delete:`删除`,untitled:`无标题`},o=d(()=>({...i,...n.labels})),s=_e(``),u=d(()=>{let e=s.value.trim().toLowerCase();return e?n.items.filter(t=>`${t.title||``} ${t.searchText||``}`.toLowerCase().includes(e)):n.items}),f=_e(null),p=_e(``),h=_e(null);function g(e){h.value=e||null}function _(e,t){f.value=e,p.value=t||``,m(()=>{var e,t;(e=h.value)==null||e.focus(),(t=h.value)==null||t.select()})}function v(){let e=f.value;if(!e)return;let t=p.value.trim();f.value=null;let i=n.items.find(t=>t.id===e)?.title||``;t&&t!==i&&r(`rename`,e,t)}function b(){f.value=null}let x=_e(null);ue(()=>n.activeId,async e=>{var t;e&&(await m(),(t=x.value?.querySelector(`[data-id="${CSS.escape(e)}"]`))==null||t.scrollIntoView({block:`nearest`}))});let S=d(()=>u.value.length?``:n.items.length?o.value.noResult:n.loading?o.value.loading:o.value.empty),w=d(()=>!n.items.length&&!n.loading);return(t,n)=>(C(),a(`div`,{class:N([`acu-conv`,{"is-compact":e.compact}])},[e.showNew||e.showSearch?(C(),a(`div`,mCt,[e.showNew?(C(),a(`button`,{key:0,type:`button`,class:`acu-conv-new`,onClick:n[0]||=e=>r(`new`)},[n[3]||=l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),l(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1),l(`span`,null,V(o.value.newConversation),1)])):B(``,!0),e.showSearch?(C(),a(`div`,hCt,[n[4]||=l(`svg`,{viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[l(`circle`,{cx:`11`,cy:`11`,r:`7`}),l(`line`,{x1:`20`,y1:`20`,x2:`16.2`,y2:`16.2`})],-1),de(l(`input`,{"onUpdate:modelValue":n[1]||=e=>s.value=e,type:`search`,class:`acu-conv-search-input`,placeholder:o.value.searchPlaceholder,"aria-label":o.value.searchPlaceholder},null,8,gCt),[[fe,s.value]])])):B(``,!0)])):B(``,!0),l(`ul`,{ref_key:`listRef`,ref:x,class:`acu-conv-list`},[(C(!0),a(E,null,ee(u.value,t=>(C(),a(`li`,{key:t.id,class:N([`acu-conv-item`,{"is-active":t.id===e.activeId,"is-editing":f.value===t.id}]),"data-id":t.id},[f.value===t.id?de((C(),a(`input`,{key:0,ref_for:!0,ref:g,"onUpdate:modelValue":n[2]||=e=>p.value=e,type:`text`,class:`acu-conv-rename`,"aria-label":o.value.rename,onKeydown:[L(ge(v,[`prevent`]),[`enter`]),L(ge(b,[`prevent`]),[`esc`])],onBlur:v},null,40,vCt)),[[fe,p.value]]):(C(),a(E,{key:1},[l(`button`,{type:`button`,class:`acu-conv-main`,"aria-current":t.id===e.activeId?`true`:void 0,onClick:e=>r(`select`,t.id,t),onDblclick:e=>_(t.id,t.title)},[l(`span`,bCt,V(t.title||o.value.untitled),1),t.generatingText?(C(),a(`span`,xCt,[n[5]||=l(`span`,{class:`acu-conv-dot`,"aria-hidden":`true`},null,-1),l(`span`,null,V(t.generatingText),1)])):t.meta||t.badge?(C(),a(`span`,SCt,[t.badge?(C(),a(`span`,CCt,V(t.badge),1)):B(``,!0),t.meta?(C(),a(`span`,wCt,V(t.meta),1)):B(``,!0)])):B(``,!0)],40,yCt),l(`span`,TCt,[l(`button`,{type:`button`,class:`acu-conv-action`,title:o.value.rename,"aria-label":o.value.rename,onClick:e=>_(t.id,t.title)},[...n[6]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M12 20h9`}),l(`path`,{d:`M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z`})],-1)]],8,ECt),l(`button`,{type:`button`,class:`acu-conv-action`,title:o.value.delete,"aria-label":o.value.delete,onClick:e=>r(`delete`,t.id,t)},[...n[7]||=[y(`<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-1b4656e1><polyline points="3 6 5 6 21 6" data-v-1b4656e1></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6" data-v-1b4656e1></path><path d="M10 11v6M14 11v6" data-v-1b4656e1></path><path d="M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2" data-v-1b4656e1></path></svg>`,1)]],8,DCt)])],64))],10,_Ct))),128))],512),S.value?(C(),a(`p`,OCt,[l(`span`,null,V(S.value),1),w.value?(C(),a(`span`,kCt,V(o.value.emptyHint),1)):B(``,!0)])):B(``,!0)],2))}}),[[`__scopeId`,`data-v-1b4656e1`]]),jCt={claude:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(5.43687 4.33024) scale(0.05188)' fill='%23D97757'%3E%3Cpath d='M895.914667 467.157333H1024v132.352h-128v129.194667h-63.445333V853.333333H768v-124.629333h-63.445333V853.333333H640v-124.629333H384V853.333333H319.488v-124.629333H256V853.333333H191.445333v-124.629333H128V599.466667H0v-132.266667h128V213.333333h767.914667v253.824zM256 467.157333h63.488V345.685333H256v121.472z m448.426667 0H768V345.685333h-63.573333v121.472z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E`,codex:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(10.86293 10.85412) scale(1.76216)' fill='%23000000'%3E%3Cpath d='M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997z'/%3E%3C/g%3E%3C/svg%3E`,kimi:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(11 11) scale(0.04102)'%3E%3Cpath d='M0 0m204.8 0l614.4 0q204.8 0 204.8 204.8l0 614.4q0 204.8-204.8 204.8l-614.4 0q-204.8 0-204.8-204.8l0-614.4q0-204.8 204.8-204.8Z' fill='%23000000'%3E%3C/path%3E%3Cpath d='M827.093333 128a61.525333 61.525333 0 1 1 0 123.072h-54.293333a7.210667 7.210667 0 0 1-7.253333-7.232V189.525333A61.546667 61.546667 0 0 1 827.072 128z' fill='%231783FF'%3E%3C/path%3E%3Cpath d='M482.090667 486.4L714.304 256c4.394667-4.352 1.92-13.12-3.712-13.12H585.6a5.226667 5.226667 0 0 0-3.733333 1.621333l-250.24 248.192c-3.925333 3.84-9.685333 0.426667-9.685334-5.717333V250.24c0-4.053333-2.645333-7.36-5.909333-7.36h-86.08c-3.306667 0-5.952 3.306667-5.952 7.36v510.4c0 4.096 2.645333 7.36 5.952 7.36h86.08c3.306667 0 5.952-3.264 5.952-7.36v-104c0-2.197333 0.789333-4.309333 2.218667-5.696l77.568-76.992a5.056 5.056 0 0 1 6.549333-0.725333l207.488 152.704a245.696 245.696 0 0 0 110.506667 41.045333c3.456 0.384 6.4-3.029333 6.4-7.36v-97.92c0-3.733333-2.24-6.784-5.248-7.253333a160.917333 160.917333 0 0 1-64.874667-25.813334l-179.626667-130.069333c-3.733333-2.496-4.202667-8.917333-0.874666-12.181333z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E`,opencode:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(8.52129 8.52129) scale(0.04586)'%3E%3Cpath d='M716.8 819.2H307.2V409.6h409.6v409.6z' fill='%23CFCECD'%3E%3C/path%3E%3Cpath d='M716.8 204.8H307.2v614.4h409.6V204.8z m204.8 819.2H102.4V0h819.2v1024z' fill='%23211E1E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E`,zcode:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(8.68048 8.68825) scale(1.55412)'%3E%3Cpath d='M24.51,28.51H5.49c-2.21,0-4-1.79-4-4V5.49c0-2.21,1.79-4,4-4h19.03c2.21,0,4,1.79,4,4v19.03C28.51,26.72,26.72,28.51,24.51,28.51z' fill='%232D2D2D' stroke='%23FFFFFF' stroke-width='0.6' stroke-miterlimit='10'/%3E %3Cpath d='M15.47,7.1l-1.3,1.85c-0.2,0.29-0.54,0.47-0.9,0.47h-7.1V7.09C6.16,7.1,15.47,7.1,15.47,7.1z' fill='%23FFFFFF'/%3E %3Cpolygon points='24.3,7.1 13.14,22.91 5.7,22.91 16.86,7.1' fill='%23FFFFFF'/%3E %3Cpath d='M14.53,22.91l1.31-1.86c0.2-0.29,0.54-0.47,0.9-0.47h7.09v2.33H14.53z' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E`,openai:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(10.86293 10.85412) scale(1.76216)' fill='%23000000'%3E%3Ctitle%3EOpenAI%3C/title%3E%3Cpath d='M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z'/%3E%3C/g%3E%3C/svg%3E`,gemini:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(11 11) scale(1.75)' fill='%234285F4'%3E%3Ctitle%3EGoogle Gemini%3C/title%3E%3Cpath d='M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81'/%3E%3C/g%3E%3C/svg%3E`,mistral:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(7.15039 7.15039) scale(2.0708)' fill='%23FA520F'%3E%3Ctitle%3EMistral AI%3C/title%3E%3Cpath d='M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z'/%3E%3C/g%3E%3C/svg%3E`,copilot:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.01862 9.01862) scale(1.91511)' fill='%23000000'%3E%3Ctitle%3EGitHub Copilot%3C/title%3E%3Cpath d='M23.922 16.997C23.061 18.492 18.063 22.02 12 22.02 5.937 22.02.939 18.492.078 16.997A.641.641 0 0 1 0 16.741v-2.869a.883.883 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.098 10.098 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952C7.255 2.937 9.248 1.98 11.978 1.98c2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.841.841 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256Zm-11.75-5.992h-.344a4.359 4.359 0 0 1-.355.508c-.77.947-1.918 1.492-3.508 1.492-1.725 0-2.989-.359-3.782-1.259a2.137 2.137 0 0 1-.085-.104L4 11.746v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.359 4.359 0 0 1-.355-.508Zm2.328 3.25c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm-5 0c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm3.313-6.185c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z'/%3E%3C/g%3E%3C/svg%3E`,cursor:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.58206 9.58206) scale(1.86816)' fill='%23000000'%3E%3Ctitle%3ECursor%3C/title%3E%3Cpath d='M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23'/%3E%3C/g%3E%3C/svg%3E`,perplexity:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.44238 9.44238) scale(1.8798)' fill='%231FB8CC'%3E%3Ctitle%3EPerplexity%3C/title%3E%3Cpath d='M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z'/%3E%3C/g%3E%3C/svg%3E`,ollama:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(7.85835 7.85835) scale(2.0118)' fill='%23000000'%3E%3Ctitle%3EOllama%3C/title%3E%3Cpath d='M16.361 10.26a.894.894 0 0 0-.558.47l-.072.148.001.207c0 .193.004.217.059.353.076.193.152.312.291.448.24.238.51.3.872.205a.86.86 0 0 0 .517-.436.752.752 0 0 0 .08-.498c-.064-.453-.33-.782-.724-.897a1.06 1.06 0 0 0-.466 0zm-9.203.005c-.305.096-.533.32-.65.639a1.187 1.187 0 0 0-.06.52c.057.309.31.59.598.667.362.095.632.033.872-.205.14-.136.215-.255.291-.448.055-.136.059-.16.059-.353l.001-.207-.072-.148a.894.894 0 0 0-.565-.472 1.02 1.02 0 0 0-.474.007Zm4.184 2c-.131.071-.223.25-.195.383.031.143.157.288.353.407.105.063.112.072.117.136.004.038-.01.146-.029.243-.02.094-.036.194-.036.222.002.074.07.195.143.253.064.052.076.054.255.059.164.005.198.001.264-.03.169-.082.212-.234.15-.525-.052-.243-.042-.28.087-.355.137-.08.281-.219.324-.314a.365.365 0 0 0-.175-.48.394.394 0 0 0-.181-.033c-.126 0-.207.03-.355.124l-.085.053-.053-.032c-.219-.13-.259-.145-.391-.143a.396.396 0 0 0-.193.032zm.39-2.195c-.373.036-.475.05-.654.086-.291.06-.68.195-.951.328-.94.46-1.589 1.226-1.787 2.114-.04.176-.045.234-.045.53 0 .294.005.357.043.524.264 1.16 1.332 2.017 2.714 2.173.3.033 1.596.033 1.896 0 1.11-.125 2.064-.727 2.493-1.571.114-.226.169-.372.22-.602.039-.167.044-.23.044-.523 0-.297-.005-.355-.045-.531-.288-1.29-1.539-2.304-3.072-2.497a6.873 6.873 0 0 0-.855-.031zm.645.937a3.283 3.283 0 0 1 1.44.514c.223.148.537.458.671.662.166.251.26.508.303.82.02.143.01.251-.043.482-.08.345-.332.705-.672.957a3.115 3.115 0 0 1-.689.348c-.382.122-.632.144-1.525.138-.582-.006-.686-.01-.853-.042-.57-.107-1.022-.334-1.35-.68-.264-.28-.385-.535-.45-.946-.03-.192.025-.509.137-.776.136-.326.488-.73.836-.963.403-.269.934-.46 1.422-.512.187-.02.586-.02.773-.002zm-5.503-11a1.653 1.653 0 0 0-.683.298C5.617.74 5.173 1.666 4.985 2.819c-.07.436-.119 1.04-.119 1.503 0 .544.064 1.24.155 1.721.02.107.031.202.023.208a8.12 8.12 0 0 1-.187.152 5.324 5.324 0 0 0-.949 1.02 5.49 5.49 0 0 0-.94 2.339 6.625 6.625 0 0 0-.023 1.357c.091.78.325 1.438.727 2.04l.13.195-.037.064c-.269.452-.498 1.105-.605 1.732-.084.496-.095.629-.095 1.294 0 .67.009.803.088 1.266.095.555.288 1.143.503 1.534.071.128.243.393.264.407.007.003-.014.067-.046.141a7.405 7.405 0 0 0-.548 1.873c-.062.417-.071.552-.071.991 0 .56.031.832.148 1.279L3.42 24h1.478l-.05-.091c-.297-.552-.325-1.575-.068-2.597.117-.472.25-.819.498-1.296l.148-.29v-.177c0-.165-.003-.184-.057-.293a.915.915 0 0 0-.194-.25 1.74 1.74 0 0 1-.385-.543c-.424-.92-.506-2.286-.208-3.451.124-.486.329-.918.544-1.154a.787.787 0 0 0 .223-.531c0-.195-.07-.355-.224-.522a3.136 3.136 0 0 1-.817-1.729c-.14-.96.114-2.005.69-2.834.563-.814 1.353-1.336 2.237-1.475.199-.033.57-.028.776.01.226.04.367.028.512-.041.179-.085.268-.19.374-.431.093-.215.165-.333.36-.576.234-.29.46-.489.822-.729.413-.27.884-.467 1.352-.561.17-.035.25-.04.569-.04.319 0 .398.005.569.04a4.07 4.07 0 0 1 1.914.997c.117.109.398.457.488.602.034.057.095.177.132.267.105.241.195.346.374.43.14.068.286.082.503.045.343-.058.607-.053.943.016 1.144.23 2.14 1.173 2.581 2.437.385 1.108.276 2.267-.296 3.153-.097.15-.193.27-.333.419-.301.322-.301.722-.001 1.053.493.539.801 1.866.708 3.036-.062.772-.26 1.463-.533 1.854a2.096 2.096 0 0 1-.224.258.916.916 0 0 0-.194.25c-.054.109-.057.128-.057.293v.178l.148.29c.248.476.38.823.498 1.295.253 1.008.231 2.01-.059 2.581a.845.845 0 0 0-.044.098c0 .006.329.009.732.009h.73l.02-.074.036-.134c.019-.076.057-.3.088-.516.029-.217.029-1.016 0-1.258-.11-.875-.295-1.57-.597-2.226-.032-.074-.053-.138-.046-.141.008-.005.057-.074.108-.152.376-.569.607-1.284.724-2.228.031-.26.031-1.378 0-1.628-.083-.645-.182-1.082-.348-1.525a6.083 6.083 0 0 0-.329-.7l-.038-.064.131-.194c.402-.604.636-1.262.727-2.04a6.625 6.625 0 0 0-.024-1.358 5.512 5.512 0 0 0-.939-2.339 5.325 5.325 0 0 0-.95-1.02 8.097 8.097 0 0 1-.186-.152.692.692 0 0 1 .023-.208c.208-1.087.201-2.443-.017-3.503-.19-.924-.535-1.658-.98-2.082-.354-.338-.716-.482-1.15-.455-.996.059-1.8 1.205-2.116 3.01a6.805 6.805 0 0 0-.097.726c0 .036-.007.066-.015.066a.96.96 0 0 1-.149-.078A4.857 4.857 0 0 0 12 3.03c-.832 0-1.687.243-2.456.698a.958.958 0 0 1-.148.078c-.008 0-.015-.03-.015-.066a6.71 6.71 0 0 0-.097-.725C8.997 1.392 8.337.319 7.46.048a2.096 2.096 0 0 0-.585-.041Zm.293 1.402c.248.197.523.759.682 1.388.03.113.06.244.069.292.007.047.026.152.041.233.067.365.098.76.102 1.24l.002.475-.12.175-.118.178h-.278c-.324 0-.646.041-.954.124l-.238.06c-.033.007-.038-.003-.057-.144a8.438 8.438 0 0 1 .016-2.323c.124-.788.413-1.501.696-1.711.067-.05.079-.049.157.013zm9.825-.012c.17.126.358.46.498.888.28.854.36 2.028.212 3.145-.019.14-.024.151-.057.144l-.238-.06a3.693 3.693 0 0 0-.954-.124h-.278l-.119-.178-.119-.175.002-.474c.004-.669.066-1.19.214-1.772.157-.623.434-1.185.68-1.382.078-.062.09-.063.159-.012z'/%3E%3C/g%3E%3C/svg%3E`,huggingface:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.93545 9.93545) scale(1.83871)' fill='%23FFD21E'%3E%3Ctitle%3EHugging Face%3C/title%3E%3Cpath d='M12.025 1.13c-5.77 0-10.449 4.647-10.449 10.378 0 1.112.178 2.181.503 3.185.064-.222.203-.444.416-.577a.96.96 0 0 1 .524-.15c.293 0 .584.124.84.284.278.173.48.408.71.694.226.282.458.611.684.951v-.014c.017-.324.106-.622.264-.874s.403-.487.762-.543c.3-.047.596.06.787.203s.31.313.4.467c.15.257.212.468.233.542.01.026.653 1.552 1.657 2.54.616.605 1.01 1.223 1.082 1.912.055.537-.096 1.059-.38 1.572.637.121 1.294.187 1.967.187.657 0 1.298-.063 1.921-.178-.287-.517-.44-1.041-.384-1.581.07-.69.465-1.307 1.081-1.913 1.004-.987 1.647-2.513 1.657-2.539.021-.074.083-.285.233-.542.09-.154.208-.323.4-.467a1.08 1.08 0 0 1 .787-.203c.359.056.604.29.762.543s.247.55.265.874v.015c.225-.34.457-.67.683-.952.23-.286.432-.52.71-.694.257-.16.547-.284.84-.285a.97.97 0 0 1 .524.151c.228.143.373.388.43.625l.006.04a10.3 10.3 0 0 0 .534-3.273c0-5.731-4.678-10.378-10.449-10.378M8.327 6.583a1.5 1.5 0 0 1 .713.174 1.487 1.487 0 0 1 .617 2.013c-.183.343-.762-.214-1.102-.094-.38.134-.532.914-.917.71a1.487 1.487 0 0 1 .69-2.803m7.486 0a1.487 1.487 0 0 1 .689 2.803c-.385.204-.536-.576-.916-.71-.34-.12-.92.437-1.103.094a1.487 1.487 0 0 1 .617-2.013 1.5 1.5 0 0 1 .713-.174m-10.68 1.55a.96.96 0 1 1 0 1.921.96.96 0 0 1 0-1.92m13.838 0a.96.96 0 1 1 0 1.92.96.96 0 0 1 0-1.92M8.489 11.458c.588.01 1.965 1.157 3.572 1.164 1.607-.007 2.984-1.155 3.572-1.164.196-.003.305.12.305.454 0 .886-.424 2.328-1.563 3.202-.22-.756-1.396-1.366-1.63-1.32q-.011.001-.02.006l-.044.026-.01.008-.03.024q-.018.017-.035.036l-.032.04a1 1 0 0 0-.058.09l-.014.025q-.049.088-.11.19a1 1 0 0 1-.083.116 1.2 1.2 0 0 1-.173.18q-.035.029-.075.058a1.3 1.3 0 0 1-.251-.243 1 1 0 0 1-.076-.107c-.124-.193-.177-.363-.337-.444-.034-.016-.104-.008-.2.022q-.094.03-.216.087-.06.028-.125.063l-.13.074q-.067.04-.136.086a3 3 0 0 0-.135.096 3 3 0 0 0-.26.219 2 2 0 0 0-.12.121 2 2 0 0 0-.106.128l-.002.002a2 2 0 0 0-.09.132l-.001.001a1.2 1.2 0 0 0-.105.212q-.013.036-.024.073c-1.139-.875-1.563-2.317-1.563-3.203 0-.334.109-.457.305-.454m.836 10.354c.824-1.19.766-2.082-.365-3.194-1.13-1.112-1.789-2.738-1.789-2.738s-.246-.945-.806-.858-.97 1.499.202 2.362c1.173.864-.233 1.45-.685.64-.45-.812-1.683-2.896-2.322-3.295s-1.089-.175-.938.647 2.822 2.813 2.562 3.244-1.176-.506-1.176-.506-2.866-2.567-3.49-1.898.473 1.23 2.037 2.16c1.564.932 1.686 1.178 1.464 1.53s-3.675-2.511-4-1.297c-.323 1.214 3.524 1.567 3.287 2.405-.238.839-2.71-1.587-3.216-.642-.506.946 3.49 2.056 3.522 2.064 1.29.33 4.568 1.028 5.713-.624m5.349 0c-.824-1.19-.766-2.082.365-3.194 1.13-1.112 1.789-2.738 1.789-2.738s.246-.945.806-.858.97 1.499-.202 2.362c-1.173.864.233 1.45.685.64.451-.812 1.683-2.896 2.322-3.295s1.089-.175.938.647-2.822 2.813-2.562 3.244 1.176-.506 1.176-.506 2.866-2.567 3.49-1.898-.473 1.23-2.037 2.16c-1.564.932-1.686 1.178-1.464 1.53s3.675-2.511 4-1.297c.323 1.214-3.524 1.567-3.287 2.405.238.839 2.71-1.587 3.216-.642.506.946-3.49 2.056-3.522 2.064-1.29.33-4.568 1.028-5.713-.624'/%3E%3C/g%3E%3C/svg%3E`};function MCt(e){return e&&(jCt[e]??e)}export{Yre as C,Jre as S,ode as _,pCt as a,ks as b,Z9 as c,dGe as d,Tpe as f,cde as g,Jue as h,MCt as i,q9 as l,Efe as m,sCt as n,k9 as o,mpe as p,ACt as r,Ryt as s,bbt as t,Qit as u,Yue as v,Ure as x,Foe as y};
3576
+ `).length}function Vyt(){return{render(e,t){let n=e||``,r=t!=null&&t.streaming?{streaming:!0,totalLines:Byt(n)}:{};return W9.render(n,r)},renderInline(e){return W9.renderInline(e||``)},ensureHighlighter:jyt}}var Hyt=[`aria-label`],Uyt=[`data-theme`,`data-scale`,`innerHTML`],Wyt=[`aria-label`,`title`],Gyt={class:`acu-mz-bar`},Kyt=[`aria-label`,`title`],qyt=[`title`],Jyt={class:`acu-mz-pct`},Yyt=[`aria-label`,`title`],Xyt={class:`acu-mz-hint`},Zyt=.2,Qyt=6,$yt=v({__name:`MermaidPreview`,props:{visible:{type:Boolean,default:!1},svg:{},theme:{default:`light`},labels:{default:()=>({})}},emits:[`update:visible`],setup(e,{emit:t}){let n=e,r=t,i=_e(null),a=_e(null),o=_e(1),s=ye({x:0,y:0}),u=_e(!1),f={x:0,y:0,px:0,py:0},p=!1,h=d(()=>Math.round(o.value*100)),g=d(()=>({transform:`translate(-50%, -50%) translate(${s.x}px, ${s.y}px) scale(${o.value})`}));function v(e){return Math.min(Qyt,Math.max(Zyt,e))}function y(){let e=a.value,t=i.value;if(!e||!t)return 1;let n=e.offsetWidth,r=e.offsetHeight;if(!n||!r)return 1;let o=Math.min((t.clientWidth-48)/n,(t.clientHeight-96)/r);return v(Math.min(1,o))}function b(){o.value=1,s.x=0,s.y=0;let e=y();e<1&&(o.value=e)}function w(e){o.value=v(o.value*e)}function T(e){let t=i.value;if(!t)return;let n=o.value,r=v(n*(e.deltaY<0?1.12:1/1.12));if(r===n)return;let a=t.getBoundingClientRect(),l=e.clientX-(a.left+a.width/2),u=e.clientY-(a.top+a.height/2),d=r/n;s.x=l-d*(l-s.x),s.y=u-d*(u-s.y),o.value=r}function E(e){e.button===0&&(u.value=!0,p=!1,f={x:e.clientX,y:e.clientY,px:s.x,py:s.y},window.addEventListener(`pointermove`,D),window.addEventListener(`pointerup`,k),window.addEventListener(`pointercancel`,k))}function D(e){if(!u.value)return;let t=e.clientX-f.x,n=e.clientY-f.y;(Math.abs(t)>3||Math.abs(n)>3)&&(p=!0),s.x=f.px+t,s.y=f.py+n}function O(e){if(p){p=!1;return}e.target===e.currentTarget&&A()}function k(){u.value=!1,window.removeEventListener(`pointermove`,D),window.removeEventListener(`pointerup`,k),window.removeEventListener(`pointercancel`,k)}function A(){r(`update:visible`,!1)}function j(e){e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),A())}return ue(()=>n.visible,e=>{e?(window.addEventListener(`keydown`,j,!0),m(()=>b())):(window.removeEventListener(`keydown`,j,!0),k(),u.value=!1,s.x=0,s.y=0,o.value=1)},{immediate:!0}),_(()=>window.removeEventListener(`keydown`,j,!0)),(t,n)=>e.visible?(C(),x(me,{key:0,to:`body`},[l(`div`,{class:`acu-mz`,role:`dialog`,"aria-modal":`true`,"aria-label":e.labels.zoom||`图表预览`,onClick:ge(A,[`self`])},[l(`div`,{ref_key:`viewportRef`,ref:i,class:N([`acu-mz-viewport`,{"is-dragging":u.value}]),onWheel:ge(T,[`prevent`]),onPointerdown:E,onDblclick:b,onClick:O},[l(`div`,{ref_key:`stageRef`,ref:a,class:`acu-mz-stage`,"data-theme":e.theme,"data-scale":o.value.toFixed(3),style:F(g.value),innerHTML:e.svg},null,12,Uyt)],34),l(`button`,{type:`button`,class:`acu-mz-btn is-close`,"aria-label":e.labels.close,title:e.labels.close,onClick:A},[...n[2]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,Wyt),l(`div`,Gyt,[l(`button`,{type:`button`,class:`acu-mz-btn is-step`,"aria-label":e.labels.zoomOut,title:e.labels.zoomOut,onClick:n[0]||=e=>w(1/1.3)},[...n[3]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`},[l(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,Kyt),l(`button`,{type:`button`,class:`acu-mz-btn is-fit`,title:e.labels.zoomReset,onClick:b},[S(V(e.labels.zoomReset),1),l(`span`,Jyt,V(h.value)+`%`,1)],8,qyt),l(`button`,{type:`button`,class:`acu-mz-btn is-step`,"aria-label":e.labels.zoomIn,title:e.labels.zoomIn,onClick:n[1]||=e=>w(1.3)},[...n[4]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`},[l(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),l(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,Yyt)]),l(`p`,Xyt,V(e.labels.zoomHint),1)],8,Hyt)])):B(``,!0)}}),K9=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},ebt=K9($yt,[[`__scopeId`,`data-v-57821160`]]),tbt=[`innerHTML`],nbt=120,q9=v({inheritAttrs:!1,__name:`MarkdownRenderer`,props:{source:{},streaming:{type:Boolean,default:!1}},setup(e){let t=e,{render:n}=Vyt(),r=_e(``),i=_e(null),o=0,s=0;function u(){Eyt(i.value,{streaming:t.streaming})}function f(e=nbt){window.clearTimeout(s),s=window.setTimeout(()=>{s=0,u()},e)}function h(){cancelAnimationFrame(o),o=requestAnimationFrame(()=>{r.value=n(t.source,{streaming:t.streaming}),m(()=>f())})}ue(()=>t.source,h,{immediate:!0}),ue(Ayt,e=>{e&&h()}),ue(()=>t.streaming,()=>h());let g=null;M(()=>{g=dyt(i.value,()=>{f(0)})}),_(()=>{cancelAnimationFrame(o),window.clearTimeout(s),g?.()});function v(e){let t=e.target;return t instanceof Element?t.closest(`.acu-thinking-body.is-scrollbar-hover`):null}function y(e){var t;(t=v(e))==null||t.classList.add(`is-scrollbar-visible`)}function b(e){let t=v(e);if(!t)return;let n=e.relatedTarget;n instanceof Node&&t.contains(n)||t.classList.remove(`is-scrollbar-visible`)}function x(e){let t=e.target;if(!t)return;let n=t.closest(`.acu-mermaid-toggle`);if(n){Dyt(n.closest(`.acu-mermaid`));return}let r=t.closest(`.acu-mermaid-zoom`);if(r){O(r.closest(`.acu-mermaid`));return}let i=t.closest(`.acu-mermaid-canvas`);if(i&&!t.closest(`a`)){let e=window.getSelection?.call(window);if(e&&!e.isCollapsed)return;let t=i.closest(`.acu-mermaid`);if(t?.dataset.state===`done`){O(t);return}}k(t)}let S=_e(!1),w=_e(``),T=_e(`light`),D=d(()=>tyt());function O(e){if(!e)return;let t=wyt(e.querySelector(`.acu-mermaid-canvas`));t&&(w.value=t,T.value=e.dataset.mermaidTheme===`dark`?`dark`:`light`,S.value=!0)}function k(e){let t=e.closest(`.acu-code-copy`);if(!t)return;let n=t.getAttribute(`data-code`)||``,r=decodeURIComponent(n),i=t.querySelector(`.acu-code-copy-label`);(navigator.clipboard?.writeText(r)??Promise.reject(Error(`clipboard unavailable`))).then(()=>{t.classList.add(`is-copied`),i&&(i.textContent=`已复制`),setTimeout(()=>{t.classList.remove(`is-copied`),i&&(i.textContent=`复制`)},1500)}).catch(()=>{t.classList.add(`is-error`),i&&(i.textContent=`失败`),setTimeout(()=>{t.classList.remove(`is-error`),i&&(i.textContent=`复制`)},1500)})}return(e,t)=>(C(),a(E,null,[l(`div`,j({ref_key:`root`,ref:i,class:`acu-md`},e.$attrs,{innerHTML:r.value,onClick:x,onMouseover:y,onMouseout:b}),null,16,tbt),p(ebt,{visible:S.value,"onUpdate:visible":t[0]||=e=>S.value=e,svg:w.value,theme:T.value,labels:D.value},null,8,[`visible`,`svg`,`theme`,`labels`])],64))}}),rbt=[`aria-expanded`],ibt={class:`acu-thinking-title`},abt=[`title`],obt={key:1,class:`acu-typing-dots`,"aria-hidden":`true`},sbt={key:0,class:`acu-cursor`,"aria-hidden":`true`},cbt=24,lbt=K9(v({__name:`ThinkingBlock`,props:{content:{default:``},streaming:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:void 0},config:{default:void 0},durationMs:{default:void 0},startedAt:{default:void 0},endedAt:{default:void 0}},setup(e){let t=e,n=d(()=>t.config?.scrollable!==!1),r=d(()=>t.config?.followStream!==!1),i=d(()=>t.config?.scrollbar??`hover`),o=_e(!1),s=d(()=>n.value&&i.value===`hover`&&o.value);function u(){o.value=!0}function f(){o.value=!1}let h=d(()=>{var e;return(e=t.config)!=null&&e.maxHeight?{"--acu-thinking-max-height":`${t.config.maxHeight}px`}:void 0}),g=d(()=>t.config?.showDuration!==!1),v=_e(Date.now()),b=null;function x(){b&&=(clearInterval(b),null)}let S=d(()=>g.value&&t.streaming&&typeof t.durationMs!=`number`&&typeof t.startedAt==`number`);ue(S,e=>{x(),e&&(v.value=Date.now(),b=setInterval(()=>{v.value=Date.now()},100))},{immediate:!0}),_(x);let w=d(()=>{if(!g.value)return null;if(typeof t.durationMs==`number`)return t.durationMs;let e=t.startedAt;if(typeof e!=`number`)return null;if(t.streaming)return v.value-e;let n=t.endedAt;return typeof n==`number`&&n>e?n-e:null}),T=d(()=>{let e=w.value;return e===null||e<=0?``:A9(e)}),E=d(()=>t.streaming?`已思考时长`:`思考耗时(第一个思考分片 → 最后一个分片)`),D=_e(t.defaultExpanded??t.config?.defaultExpanded??t.streaming),O=_e(null),k=_e(!0);function A(){let e=O.value;e&&(k.value=e.scrollHeight-e.scrollTop-e.clientHeight<=cbt)}async function j(){if(!n.value||!r.value||!k.value)return;await m();let e=O.value;e&&(e.scrollTop=e.scrollHeight)}ue(()=>t.streaming,e=>{e&&(D.value=!0,k.value=!0)}),ue(()=>t.content,()=>{t.streaming&&j()}),ue(D,e=>{e&&j()}),M(()=>{t.streaming&&j()});function P(){D.value=!D.value}return(t,r)=>(C(),a(`div`,{class:N([`acu-thinking`,{"is-streaming":e.streaming}])},[l(`button`,{type:`button`,class:`acu-thinking-header`,"aria-expanded":D.value,onClick:P},[r[2]||=y(`<span class="acu-thinking-icon" data-v-42f4658c><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-42f4658c><path d="M9.5 2A4.5 4.5 0 0 0 5 6.5c0 .5.08.98.22 1.43A4 4 0 0 0 6 16a3.5 3.5 0 0 0 5 3.05" data-v-42f4658c></path><path d="M14.5 2A4.5 4.5 0 0 1 19 6.5c0 .5-.08.98-.22 1.43A4 4 0 0 1 18 16a3.5 3.5 0 0 1-5 3.05" data-v-42f4658c></path><path d="M12 4v16" data-v-42f4658c></path></svg></span>`,1),l(`span`,ibt,V(e.streaming?`思考中`:`思考`),1),T.value?(C(),a(`span`,{key:0,class:`acu-thinking-duration`,title:E.value},V(T.value),9,abt)):B(``,!0),e.streaming?(C(),a(`span`,obt,[...r[0]||=[l(`span`,null,null,-1),l(`span`,null,null,-1),l(`span`,null,null,-1)]])):(C(),a(`svg`,{key:2,class:N([`acu-thinking-chevron`,{"is-open":D.value}]),viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...r[1]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],8,rbt),p(ie,{name:`acu-collapse`},{default:ae(()=>[de(l(`div`,{ref_key:`bodyRef`,ref:O,class:N([`acu-thinking-body`,[{"is-scrollable":n.value},n.value?`is-scrollbar-${i.value}`:``,{"is-scrollbar-visible":s.value}]]),style:F(h.value),onScrollPassive:A,onMouseenter:u,onMouseleave:f},[p(q9,{source:e.content,streaming:!!e.streaming},null,8,[`source`,`streaming`]),e.streaming&&e.content?(C(),a(`span`,sbt)):B(``,!0)],38),[[ve,D.value]])]),_:1})],2))}}),[[`__scopeId`,`data-v-42f4658c`]]),ubt=200,dbt=300,fbt=600,pbt=new Set([`updateplan`,`writetodos`,`todowrite`,`todotrite`,`todorewrite`,`updateplanlist`,`createplan`,`setplan`,`plan`]);function mbt(e){return String(e||``).toLowerCase().replace(/[^a-z]/g,``)}function J9(e){return pbt.has(mbt(String(e||``)))}function hbt(e){let t=String(e??``).toLowerCase().replace(/[^a-z]/g,``);return[`completed`,`complete`,`done`,`finished`,`checked`].includes(t)?`completed`:[`inprogress`,`active`,`doing`,`running`,`current`,`started`].includes(t)?`in_progress`:`pending`}function Y9(e,t){let n=String(e??``).replace(/\s+/g,` `).trim();return n.length>t?n.slice(0,t)+`…`:n}function X9(e){if(typeof e==`string`){let t=Y9(e,ubt);return t?{content:t,status:`pending`}:null}if(!e||typeof e!=`object`)return null;let t=e,n=Y9(t.content??t.text??t.title??t.task??t.step??t.name,ubt);if(!n)return null;let r={content:n,status:hbt(t.status??t.state)},i=Y9(t.note??t.detail??t.details??(r.status===`in_progress`?t.activeForm:``),dbt);return i&&(r.note=i),r}function gbt(e){if(Array.isArray(e))return e;if(!e||typeof e!=`object`)return null;let t=e;for(let e of[`steps`,`todos`,`plan`,`items`,`task_list`,`taskList`])if(Array.isArray(t[e]))return t[e];return null}function _bt(e){if(!e||typeof e!=`object`||Array.isArray(e))return;let t=e;return Y9(t.explanation??t.summary??t.note??t.reason,fbt)||void 0}function Z9(e,t){if(!e)return null;if(typeof e==`object`&&!Array.isArray(e)&&(`name`in e||`arguments`in e||`plan`in e)){let n=e,r=n.name??t??``;return r&&!J9(r)&&!n.plan?null:Array.isArray(n.plan)&&n.plan.length?n.plan.map(e=>X9(e)).filter(e=>!!e).slice(0,20):Z9(n.arguments,r)}if(typeof e==`string`){if(t&&!J9(t))return null;let n=e.trim();if(!n)return null;let r;try{r=JSON.parse(n)}catch{return null}let i=gbt(r);if(!i)return null;let a=i.map(X9).filter(e=>!!e).slice(0,20);return a.length?a:null}if(t&&!J9(t))return null;let n=gbt(e);if(!n)return null;let r=n.map(X9).filter(e=>!!e).slice(0,20);return r.length?r:null}function vbt(e){if(!e)return;if(typeof e==`object`)return e.planNote?e.planNote:vbt(e.arguments);let t=e.trim();if(t)try{return _bt(JSON.parse(t))}catch{return}}function ybt(e){if(!e)return null;let t=Z9(e);if(!t)return null;let n=vbt(e);return n?{steps:t,note:n}:{steps:t}}function bbt(e){let t=e||[],n=0,r=0,i=0;for(let e of t)e.status===`completed`?n++:e.status===`in_progress`?r++:i++;return{total:t.length,done:n,active:r,pending:i}}var xbt=20,Sbt=500,Cbt=new Set([`askuser`,`askquestion`,`asktheuser`]);function wbt(e){return String(e||``).toLowerCase().replace(/[^a-z]/g,``)}function Tbt(e){return Cbt.has(wbt(String(e||``)))}function Ebt(e){if(!e)return null;let t;try{t=JSON.parse(String(e))}catch{return null}if(!t||typeof t!=`object`||Array.isArray(t))return null;let n=String(t.question??t.prompt??``).trim();if(!n)return null;let r=Array.isArray(t.options)?t.options.map(e=>String(e??``).trim()).filter(Boolean).slice(0,xbt):[];return{question:n,options:r,allowFreeText:r.length===0||t.allow_free_text!==!1,multiple:t.multiple===!0&&r.length>0}}function Dbt(e){let t=String(e??``).trim();if(!t)return[];if(t.startsWith(`[`))try{let e=JSON.parse(t);if(Array.isArray(e))return e.map(e=>String(e??``).trim()).filter(Boolean).slice(0,xbt)}catch{}return[t.length>Sbt?`${t.slice(0,Sbt)}…`:t]}function Q9(e){if(!e||!Tbt(e.name)||e.status&&e.status!==`done`)return null;let t=Ebt(e.arguments);if(!t)return null;let n=Dbt(e.result);return n.length?{...t,answers:n}:null}var Obt={class:`acu-plan-icon`},kbt={key:0,class:`acu-spin`,viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`},Abt={key:1,viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.9`,"stroke-linecap":`round`,"stroke-linejoin":`round`},jbt={class:`acu-plan-title`},Mbt={key:0,class:`acu-plan-count`},Nbt={key:0,class:`acu-plan-bar`,role:`presentation`},Pbt={class:`acu-plan-detail`},Fbt={key:0,class:`acu-plan-note`},Ibt={class:`acu-plan-steps`},Lbt={class:`acu-plan-marker`,"aria-hidden":`true`},Rbt={key:0,viewBox:`0 0 24 24`,width:`11`,height:`11`,fill:`none`,stroke:`currentColor`,"stroke-width":`3.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},zbt={key:1,class:`acu-plan-dot`},Bbt={class:`acu-plan-body`},Vbt={class:`acu-plan-content`},Hbt={key:0,class:`acu-plan-step-note`},Ubt=K9(v({__name:`PlanBlock`,props:{steps:{},note:{default:void 0},status:{default:`done`},config:{default:void 0}},setup(e){let t=e,n=d(()=>t.config?.title||t.config?.labels?.title||`计划`),r=d(()=>t.config?.progress!==!1&&h.value.total>0),i=d(()=>(t.config?.labels?.progress||`{done}/{total}`).replace(`{done}`,String(h.value.done)).replace(`{total}`,String(h.value.total))),o=d(()=>t.config?.progressBar!==!1&&h.value.total>0),s=d(()=>t.config?.collapsible!==!1),u=_e(t.config?.defaultCollapsed!==!0);function f(){s.value&&(u.value=!u.value)}let m=d(()=>{let{done:e,total:t}=h.value;return t?`${Math.round(e/t*100)}%`:`0%`}),h=d(()=>bbt(t.steps));function g(e){return e.status||`pending`}return(t,d)=>(C(),a(`div`,{class:N([`acu-plan`,{"is-running":e.status===`running`,"is-collapsed":s.value&&!u.value}])},[(C(),x(le(s.value?`button`:`div`),{class:`acu-plan-header`,type:s.value?`button`:void 0,"aria-expanded":s.value?u.value:void 0,onClick:f},{default:ae(()=>[l(`span`,Obt,[e.status===`running`?(C(),a(`svg`,kbt,[...d[0]||=[l(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`},null,-1)]])):(C(),a(`svg`,Abt,[...d[1]||=[l(`path`,{d:`M9 11l3 3L22 4`},null,-1),l(`path`,{d:`M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11`},null,-1)]]))]),l(`span`,jbt,V(n.value),1),r.value?(C(),a(`span`,Mbt,V(i.value),1)):B(``,!0),s.value?(C(),a(`svg`,{key:1,class:N([`acu-plan-chevron`,{"is-open":u.value}]),viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[...d[2]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)):B(``,!0)]),_:1},8,[`type`,`aria-expanded`])),o.value?(C(),a(`div`,Nbt,[l(`span`,{class:`acu-plan-bar-fill`,style:F({width:m.value})},null,4)])):B(``,!0),p(ie,{name:`acu-collapse`},{default:ae(()=>[de(l(`div`,Pbt,[e.note?(C(),a(`p`,Fbt,V(e.note),1)):B(``,!0),l(`ul`,Ibt,[(C(!0),a(E,null,ee(e.steps,(e,t)=>(C(),a(`li`,{key:`${t}-${e.content}`,class:N([`acu-plan-step`,`is-${g(e)}`])},[l(`span`,Lbt,[g(e)===`completed`?(C(),a(`svg`,Rbt,[...d[3]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):g(e)===`in_progress`?(C(),a(`span`,zbt)):B(``,!0)]),l(`span`,Bbt,[l(`span`,Vbt,V(e.content),1),e.note?(C(),a(`span`,Hbt,V(e.note),1)):B(``,!0)])],2))),128))])],512),[[ve,!s.value||u.value]])]),_:1})],2))}}),[[`__scopeId`,`data-v-2161ee3f`]]),Wbt=[`aria-labelledby`,`aria-busy`],Gbt=[`id`,`aria-expanded`,`aria-label`],Kbt={class:`acu-ask-user-title-text`},qbt={class:`acu-ask-user-title-answer`},Jbt=[`id`],Ybt={class:`acu-ask-user-question`},Xbt={key:0,class:`acu-ask-user-options`},Zbt=[`checked`,`disabled`,`onChange`],Qbt=[`disabled`,`onClick`],$bt={key:0,class:`acu-ask-user-check`,"aria-hidden":`true`,viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.6`,"stroke-linecap":`round`,"stroke-linejoin":`round`},ext={key:1,class:`acu-ask-user-extras`},txt=[`placeholder`,`aria-label`,`disabled`],nxt=[`disabled`],rxt=[`disabled`],ixt=K9(v({__name:`AskUserPanel`,props:{question:{},options:{default:()=>[]},multiple:{type:Boolean,default:!1},allowFreeText:{type:Boolean,default:!0},submitting:{type:Boolean,default:!1},answers:{default:()=>[]},defaultAnsweredExpanded:{type:Boolean,default:!1},labels:{default:void 0}},emits:[`answer`],setup(e,{emit:t}){let n=e,r=t,i=k9(`acu-ask-user-title`),o=_e(``),s=_e(n.defaultAnsweredExpanded),f=_e([]),p=_e(!1),m=d(()=>n.answers.length>0),h=d(()=>m.value||p.value),g=d(()=>m.value?n.answers:f.value),_=d(()=>n.multiple||h.value?g.value:[]),v=d(()=>n.submitting||p.value||m.value),y=d(()=>!m.value&&(n.allowFreeText||n.options.length===0)),b=d(()=>n.labels?.placeholder??`输入回答`),x=d(()=>n.labels?.title??`等待你的回答`),S=d(()=>n.labels?.answered??`已回答`),w=d(()=>n.labels?.expand??`展开完整问答`),T=d(()=>n.labels?.collapse??`收起完整问答`),D=d(()=>m.value?g.value.filter(e=>!n.options.includes(e)):[]),O=d(()=>v.value?!0:n.multiple?f.value.length===0&&!o.value.trim():!o.value.trim());function k(e){return h.value&&!g.value.includes(e)}ue(()=>n.question,()=>{f.value=[],o.value=``,p.value=!1}),ue(m,e=>{e&&(s.value=n.defaultAnsweredExpanded)}),ue(()=>n.submitting,(e,t)=>{!t||e||(p.value=!1,n.multiple||(f.value=[]))});function A(e){if(v.value)return;let t=f.value.indexOf(e);t>=0?f.value.splice(t,1):f.value.push(e)}function j(e){v.value||(f.value=[e],p.value=!0,r(`answer`,[e]))}function M(){if(O.value)return;let e=n.multiple?[...f.value]:[],t=o.value.trim();t&&e.push(t),e.length&&(p.value=!0,r(`answer`,e))}return(t,n)=>(C(),a(`section`,{class:N([`acu-ask-user`,{"is-answered":h.value,"is-collapsed":m.value&&!s.value}]),role:`group`,"aria-live":`polite`,"aria-labelledby":u(i),"aria-busy":e.submitting},[m.value?(C(),a(`button`,{key:0,id:u(i),type:`button`,class:`acu-ask-user-title is-toggle`,"aria-expanded":s.value,"aria-label":s.value?T.value:w.value,onClick:n[0]||=e=>s.value=!s.value},[n[3]||=l(`span`,{class:`acu-ask-user-icon`,"aria-hidden":`true`},[l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`20 6 9 17 4 12`})])],-1),l(`span`,Kbt,V(S.value),1),l(`span`,qbt,V(g.value.join(` / `)),1),(C(),a(`svg`,{class:N([`acu-ask-user-chevron`,{"is-expanded":s.value}]),"aria-hidden":`true`,viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...n[2]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],8,Gbt)):(C(),a(`div`,{key:1,id:u(i),class:`acu-ask-user-title`},[n[4]||=l(`span`,{class:`acu-ask-user-icon`,"aria-hidden":`true`},[l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z`})])],-1),l(`span`,null,V(x.value),1)],8,Jbt)),!m.value||s.value?(C(),a(E,{key:2},[l(`div`,Ybt,V(e.question),1),e.options.length?(C(),a(`div`,Xbt,[e.multiple?(C(!0),a(E,{key:0},ee(e.options,e=>(C(),a(`label`,{key:e,class:N([`acu-ask-user-option is-checkbox`,{"is-selected":g.value.includes(e),"is-dimmed":k(e)}])},[l(`input`,{type:`checkbox`,checked:g.value.includes(e),disabled:v.value,onChange:t=>A(e)},null,40,Zbt),l(`span`,null,V(e),1)],2))),128)):(C(!0),a(E,{key:1},ee(e.options,e=>(C(),a(`button`,{key:e,type:`button`,class:N([`acu-ask-user-option`,{"is-selected":_.value.includes(e),"is-dimmed":k(e)}]),disabled:v.value,onClick:t=>j(e)},[_.value.includes(e)?(C(),a(`svg`,$bt,[...n[5]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):B(``,!0),l(`span`,null,V(e),1)],10,Qbt))),128))])):B(``,!0),D.value.length?(C(),a(`div`,ext,[(C(!0),a(E,null,ee(D.value,e=>(C(),a(`span`,{key:e,class:`acu-ask-user-extra`},V(e),1))),128))])):B(``,!0)],64)):B(``,!0),y.value?(C(),a(`form`,{key:3,class:`acu-ask-user-form`,onSubmit:ge(M,[`prevent`])},[de(l(`input`,{"onUpdate:modelValue":n[1]||=e=>o.value=e,type:`text`,class:`acu-ask-user-input`,placeholder:b.value,"aria-label":b.value,disabled:v.value},null,8,txt),[[fe,o.value]]),l(`button`,{type:`submit`,class:`acu-ask-user-submit`,disabled:O.value},[n[6]||=l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`20 6 9 17 4 12`})],-1),l(`span`,null,V(e.labels?.submit??`提交回答`),1)],8,nxt)],32)):e.multiple&&!m.value?(C(),a(`button`,{key:4,type:`button`,class:`acu-ask-user-submit is-standalone`,disabled:O.value,onClick:M},[n[7]||=l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`20 6 9 17 4 12`})],-1),l(`span`,null,V(e.labels?.submit??`提交回答`),1)],8,rxt)):B(``,!0)],10,Wbt))}}),[[`__scopeId`,`data-v-acd35a50`]]),axt={key:1,class:`acu-plan-wrap`},oxt={key:0,class:`acu-plan-raw`},sxt={key:2,class:`acu-toolcall`},cxt={key:0,class:`acu-spin`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`},lxt={key:1,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},uxt={key:2,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},dxt={key:3,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},fxt={class:`acu-toolcall-name`},pxt={key:0,class:`acu-toolcall-args`},mxt={key:0,class:`acu-toolcall-body`},hxt={key:0,class:`acu-toolcall-section`},gxt={class:`acu-toolcall-pre`},_xt={key:1,class:`acu-toolcall-section`},$9=K9(v({__name:`ToolCallBlock`,props:{toolCall:{},planConfig:{default:void 0},askUserLabels:{default:void 0}},setup(e){let t=e,n=_e(!1),r=d(()=>t.toolCall.status||`pending`),i=d(()=>ybt(t.toolCall)),o=d(()=>Q9(t.toolCall)),s=d(()=>t.planConfig?.labels?.raw||`原始参数`);function u(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}return(t,d)=>o.value?(C(),x(ixt,{key:0,class:`acu-toolcall-askuser`,question:o.value.question,options:o.value.options,multiple:o.value.multiple,"allow-free-text":o.value.allowFreeText,answers:o.value.answers,labels:e.askUserLabels},null,8,[`question`,`options`,`multiple`,`allow-free-text`,`answers`,`labels`])):i.value?(C(),a(`div`,axt,[p(Ubt,{steps:i.value.steps,note:i.value.note,status:r.value,config:e.planConfig},null,8,[`steps`,`note`,`status`,`config`]),e.toolCall.arguments?(C(),a(`details`,oxt,[l(`summary`,null,V(s.value),1),l(`pre`,null,V(u(e.toolCall.arguments)),1)])):B(``,!0)])):(C(),a(`div`,sxt,[l(`button`,{type:`button`,class:N([`acu-toolcall-header`,{expanded:n.value}]),onClick:d[0]||=e=>n.value=!n.value},[l(`span`,{class:N([`acu-toolcall-status`,`is-${r.value}`])},[r.value===`running`?(C(),a(`svg`,cxt,[...d[1]||=[l(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`},null,-1)]])):r.value===`done`?(C(),a(`svg`,lxt,[...d[2]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):r.value===`error`?(C(),a(`svg`,uxt,[...d[3]||=[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)]])):(C(),a(`svg`,dxt,[...d[4]||=[l(`circle`,{cx:`12`,cy:`12`,r:`10`},null,-1),l(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`},null,-1),l(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`},null,-1)]]))],2),d[6]||=l(`span`,{class:`acu-toolcall-icon`},[l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`})])],-1),l(`span`,fxt,V(e.toolCall.name),1),e.toolCall.argsPreview?(C(),a(`span`,pxt,V(e.toolCall.argsPreview),1)):B(``,!0),(C(),a(`svg`,{class:N([`acu-toolcall-chevron`,{expanded:n.value}]),viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...d[5]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],2),p(ie,{name:`acu-toolcall-slide`},{default:ae(()=>[n.value?(C(),a(`div`,mxt,[e.toolCall.arguments?(C(),a(`div`,hxt,[d[7]||=l(`div`,{class:`acu-toolcall-section-label`},`参数`,-1),l(`pre`,gxt,V(u(e.toolCall.arguments)),1)])):B(``,!0),e.toolCall.result===void 0?B(``,!0):(C(),a(`div`,_xt,[d[8]||=l(`div`,{class:`acu-toolcall-section-label`},`结果`,-1),l(`pre`,{class:N([`acu-toolcall-pre acu-toolcall-result`,`is-${r.value}`])},V(e.toolCall.result),3)]))])):B(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-f523af7b`]]),vxt={class:`acu-toolgroup`},yxt=[`aria-expanded`],bxt={key:0,class:`acu-spin`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`},xxt={key:1,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Sxt={key:2,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Cxt={key:3,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},wxt={class:`acu-toolgroup-label`},Txt={class:`acu-toolgroup-hint`},Ext={class:`acu-toolgroup-list`},Dxt={key:1,class:`acu-toolgroup-plan`},Oxt={key:2,class:`acu-toolgroup-askuser`},kxt=K9(v({__name:`ToolCallGroup`,props:{toolCalls:{},config:{default:void 0},planConfig:{default:void 0},askUserLabels:{default:void 0}},setup(e){let t=e,n=d(()=>Math.max(2,t.config?.collapseThreshold??2)),r=d(()=>t.config?.group!==!1&&t.toolCalls.length>=n.value),i=_e(t.config?.defaultExpanded??!1);ue(()=>t.config?.defaultExpanded,e=>{i.value=e??!1});function o(){i.value=!i.value}let s=d(()=>{if(!r.value||i.value)return null;for(let e=t.toolCalls.length-1;e>=0;e--)if(ybt(t.toolCalls[e]))return t.toolCalls[e];return null}),u=d(()=>!r.value||i.value?[]:t.toolCalls.filter(e=>Q9(e))),f=d(()=>{if(!r.value||i.value)return t.toolCalls;let e=t.toolCalls[t.toolCalls.length-1];if(!e)return[];let n=s.value;return n&&e.id===n.id||Q9(e)?[]:[e]}),m=d(()=>{let e=0,n=0,r=0;for(let i of t.toolCalls){let t=i.status||`pending`;t===`running`?e++:t===`error`?n++:t===`done`&&r++}return{total:t.toolCalls.length,running:e,error:n,done:r}}),h=d(()=>{let e=m.value;return e.running>0?`running`:e.error>0?`error`:e.done>0?`done`:`pending`}),g=d(()=>{let e=m.value;return e.running>0?`正在调用工具 ${e.done}/${e.total}`:e.error>0?`已调用 ${e.total} 个工具 · ${e.error} 个失败`:`已调用 ${e.total} 个工具`});return(t,n)=>(C(),a(`div`,vxt,[r.value?(C(),a(`button`,{key:0,type:`button`,class:N([`acu-toolgroup-header`,{"is-expanded":i.value}]),"aria-expanded":i.value,onClick:o},[l(`span`,{class:N([`acu-toolgroup-status`,`is-${h.value}`])},[h.value===`running`?(C(),a(`svg`,bxt,[...n[0]||=[l(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`},null,-1)]])):h.value===`done`?(C(),a(`svg`,xxt,[...n[1]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):h.value===`error`?(C(),a(`svg`,Sxt,[...n[2]||=[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)]])):(C(),a(`svg`,Cxt,[...n[3]||=[l(`circle`,{cx:`12`,cy:`12`,r:`10`},null,-1),l(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`},null,-1),l(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`},null,-1)]]))],2),n[5]||=y(`<span class="acu-toolgroup-icon" data-v-52a9bccb><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-52a9bccb><path d="M12 2 2 7l10 5 10-5-10-5z" data-v-52a9bccb></path><path d="m2 12 10 5 10-5" data-v-52a9bccb></path><path d="m2 17 10 5 10-5" data-v-52a9bccb></path></svg></span>`,1),l(`span`,wxt,V(g.value),1),l(`span`,Txt,V(i.value?`收起`:`全部`),1),(C(),a(`svg`,{class:N([`acu-toolgroup-chevron`,{expanded:i.value}]),viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...n[4]||=[l(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],10,yxt)):B(``,!0),l(`div`,Ext,[(C(!0),a(E,null,ee(f.value,t=>(C(),x($9,{key:t.id,"tool-call":t,"plan-config":e.planConfig,"ask-user-labels":e.askUserLabels},null,8,[`tool-call`,`plan-config`,`ask-user-labels`]))),128))]),s.value?(C(),a(`div`,Dxt,[p($9,{"tool-call":s.value,"plan-config":e.planConfig},null,8,[`tool-call`,`plan-config`])])):B(``,!0),u.value.length?(C(),a(`div`,Oxt,[(C(!0),a(E,null,ee(u.value,t=>(C(),x($9,{key:t.id,"tool-call":t,"ask-user-labels":e.askUserLabels},null,8,[`tool-call`,`ask-user-labels`]))),128))])):B(``,!0)]))}}),[[`__scopeId`,`data-v-52a9bccb`]]),Axt=[`aria-label`,`title`],jxt={key:0,viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Mxt={key:1,viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Nxt={key:0,class:`acu-action-tip`},Pxt=K9(v({__name:`MessageActions`,props:{role:{},copyText:{},showCopy:{type:Boolean,default:!0},showRetry:{type:Boolean,default:!1},copiedDuration:{default:1600}},emits:[`retry`],setup(e){let t=e,n=_e(!1),r=null;function i(){r&&=(clearTimeout(r),null)}_(i),ue(()=>t.copyText,()=>{n.value&&(n.value=!1,i())});async function o(e){try{if(typeof navigator<`u`&&navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.select(),t.setSelectionRange(0,t.value.length);let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}}async function s(){let e=t.copyText||``;!e||!await o(e)||(n.value=!0,i(),r=setTimeout(()=>{n.value=!1,r=null},t.copiedDuration))}return(t,r)=>(C(),a(`div`,{class:N([`acu-message-actions`,`is-${e.role}`])},[e.showCopy?(C(),a(`button`,{key:0,type:`button`,class:N([`acu-action-btn`,{"is-done":n.value}]),"aria-label":n.value?`已复制`:`复制`,title:n.value?`已复制`:`复制`,onClick:s},[n.value?(C(),a(`svg`,jxt,[...r[1]||=[l(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):(C(),a(`svg`,Mxt,[...r[2]||=[l(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`},null,-1),l(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`},null,-1)]])),p(ie,{name:`acu-tip`},{default:ae(()=>[n.value?(C(),a(`span`,Nxt,`已复制`)):B(``,!0)]),_:1})],10,Axt)):B(``,!0),e.showRetry?(C(),a(`button`,{key:1,type:`button`,class:`acu-action-btn`,"aria-label":`重新生成`,title:`重新生成`,onClick:r[0]||=e=>t.$emit(`retry`)},[...r[3]||=[y(`<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-f8edafef><path d="M21 2v6h-6" data-v-f8edafef></path><path d="M3 12a9 9 0 0 1 15-6.7L21 8" data-v-f8edafef></path><path d="M3 22v-6h6" data-v-f8edafef></path><path d="M21 12a9 9 0 0 1-15 6.7L3 16" data-v-f8edafef></path></svg>`,1)]])):B(``,!0)],2))}}),[[`__scopeId`,`data-v-f8edafef`]]),Fxt=[`title`],Ixt=K9(v({__name:`MessageMeta`,props:{message:{},config:{default:()=>({})}},setup(e){let t=e,n=d(()=>t.config.items??[`duration`,`tokens`]),r=d(()=>t.message.createdAt??0),i=d(()=>t.message.status===`streaming`||t.message.status===`pending`),o=_e(Date.now()),s=null;function l(){s&&=(clearInterval(s),null)}ue([i,()=>n.value.includes(`duration`),r],([e,t,n])=>{l(),e&&t&&n&&(o.value=Date.now(),s=setInterval(()=>{o.value=Date.now()},100))},{immediate:!0}),_(l);let u=d(()=>{let e=t.message.meta?.durationMs;if(typeof e==`number`)return A9(e);let n=r.value;if(!n)return``;let a=t.message.finishedAt;return typeof a==`number`&&a>n?A9(a-n):i.value?A9(o.value-n):``}),f=d(()=>{let e=t.message.meta?.firstTokenMs;if(typeof e==`number`&&e>=0)return A9(e);let n=r.value,i=t.message.firstTokenAt;return n&&typeof i==`number`&&i>=n?A9(i-n):``}),p=d(()=>{let e=t.message.meta?.usage;if(!e)return``;if(typeof e.prompt==`number`&&typeof e.completion==`number`)return`↑${j9(e.prompt)} ↓${j9(e.completion)}`;let n=typeof e.total==`number`?e.total:e.prompt??e.completion;return typeof n==`number`?`${j9(n)} tokens`:``}),m=d(()=>{let e=t.message.meta?.usage;if(!e)return``;let n=e.total??(e.prompt??0)+(e.completion??0),r=[];return n&&r.push(`共 ${n.toLocaleString(`en-US`)} tokens`),typeof e.prompt==`number`&&r.push(`输入 ${e.prompt.toLocaleString(`en-US`)}`),typeof e.completion==`number`&&r.push(`输出 ${e.completion.toLocaleString(`en-US`)}`),typeof e.reasoning==`number`&&r.push(`思考 ${e.reasoning.toLocaleString(`en-US`)}`),typeof e.cached==`number`&&r.push(`缓存命中 ${e.cached.toLocaleString(`en-US`)}`),r.join(` · `)}),h=d(()=>r.value?zvt(r.value):``);function g(e){switch(e){case`duration`:return u.value?{key:e,value:u.value,title:`回答耗时`}:null;case`firstToken`:return f.value?{key:e,value:f.value,title:`首字延迟(从发送到第一个字到达)`}:null;case`tokens`:return p.value?{key:e,value:p.value,title:m.value}:null;case`time`:return h.value?{key:e,value:h.value,title:`发送时间`}:null;default:return null}}let v=d(()=>{let e=[];for(let t of n.value){let n=g(t);n&&e.push(n)}for(let n of t.message.meta?.extra??[])n!=null&&n.value&&e.push({key:`extra`,value:n.label?`${n.label} ${n.value}`:n.value,title:n.title});return e});return(t,n)=>v.value.length?(C(),a(`div`,{key:0,class:N([`acu-message-meta`,`is-${e.message.role}`])},[(C(!0),a(E,null,ee(v.value,(e,t)=>(C(),a(`span`,{key:t,class:N([`acu-meta-item`,`is-${e.key}`]),title:e.title||void 0},V(e.value),11,Fxt))),128))],2)):B(``,!0)}}),[[`__scopeId`,`data-v-80210f5c`]]),Lxt=[`src`,`alt`],Rxt={class:`acu-ip-counter`},zxt=[`title`],Bxt=K9(v({__name:`ImagePreview`,props:{visible:{type:Boolean},images:{},index:{default:0}},emits:[`update:visible`,`update:index`],setup(e,{emit:t}){let n=e,r=t,i=_e(0),o=d(()=>n.images[i.value]);ue([()=>n.visible,()=>n.index,()=>n.images.length],([e,t,n])=>{e&&(i.value=n?Math.min(Math.max(t,0),n-1):0)},{immediate:!0});function s(e){let t=n.images.length;t<2||(i.value=(i.value+e+t)%t,r(`update:index`,i.value))}function u(){r(`update:visible`,!1)}function f(e){n.visible&&(e.key===`Escape`?(e.preventDefault(),u()):e.key===`ArrowLeft`?(e.preventDefault(),s(-1)):e.key===`ArrowRight`&&(e.preventDefault(),s(1)))}return ue(()=>n.visible,e=>{typeof window>`u`||(e?window.addEventListener(`keydown`,f):window.removeEventListener(`keydown`,f))},{immediate:!0}),_(()=>{typeof window<`u`&&window.removeEventListener(`keydown`,f)}),(t,n)=>{var r;return e.visible?(C(),x(me,{key:0,to:`body`},[l(`div`,{class:`acu-image-preview`,role:`dialog`,"aria-modal":`true`,"aria-label":`图片预览`,onClick:ge(u,[`self`]),onWheel:n[3]||=ge(()=>{},[`prevent`])},[o.value?(C(),a(`img`,{key:0,class:`acu-image-preview-img`,src:o.value.src,alt:o.value.name||``,onClick:n[0]||=ge(()=>{},[`stop`])},null,8,Lxt)):B(``,!0),l(`button`,{type:`button`,class:`acu-ip-btn is-close`,"aria-label":`关闭预览(Esc)`,onClick:u},[...n[4]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]]),e.images.length>1?(C(),a(E,{key:1},[l(`button`,{type:`button`,class:`acu-ip-btn is-prev`,"aria-label":`上一张`,onClick:n[1]||=ge(e=>s(-1),[`stop`])},[...n[5]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`15 18 9 12 15 6`})],-1)]]),l(`button`,{type:`button`,class:`acu-ip-btn is-next`,"aria-label":`下一张`,onClick:n[2]||=ge(e=>s(1),[`stop`])},[...n[6]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`9 18 15 12 9 6`})],-1)]]),l(`div`,Rxt,V(i.value+1)+` / `+V(e.images.length),1)],64)):B(``,!0),(r=o.value)!=null&&r.name?(C(),a(`div`,{key:2,class:`acu-ip-name`,title:o.value.name},V(o.value.name),9,zxt)):B(``,!0)],32)])):B(``,!0)}}}),[[`__scopeId`,`data-v-4cc2d641`]]),Vxt=[`data-msg-id`],Hxt={key:0,class:`acu-avatar acu-avatar--left`},Uxt=[`src`],Wxt={key:1,viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Gxt={class:`acu-bubble-main`},Kxt={key:0,class:`acu-bubble-name`},qxt=[`aria-label`,`title`,`onClick`,`onKeydown`],Jxt=[`src`,`alt`],Yxt={key:1,class:`acu-att-file`},Xxt={class:`acu-att-file-info`},Zxt=[`title`],Qxt={class:`acu-att-file-size`},$xt={key:1,class:`acu-bubble-toolcalls`},eSt={key:2,class:`acu-bubble-content`},tSt={key:0,class:`acu-cursor`,"aria-hidden":`true`},nSt={key:3,class:`acu-pending`},rSt={key:4,class:`acu-bubble-error`},iSt={key:1,class:`acu-avatar acu-avatar--right`},aSt=[`src`],oSt={key:1,viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},sSt=K9(v({__name:`MessageBubble`,props:{message:{},assistantName:{default:`AI 助手`},assistantAvatar:{default:``},userAvatar:{default:``},showAvatar:{type:Boolean,default:!0},toolCallsConfig:{default:void 0},planConfig:{default:void 0},askUserLabels:{default:void 0},thinkingConfig:{default:void 0},actionsConfig:{default:void 0},messageMetaConfig:{default:void 0},isLastAssistant:{type:Boolean,default:!1}},emits:[`retry`],setup(e){let t=e,n=d(()=>t.message.avatar||t.assistantAvatar),r=d(()=>t.message.avatar||t.userAvatar),i=d(()=>{var e;return!!((e=t.message.attachments)!=null&&e.length)}),o=d(()=>{var e;return!!((e=t.message.toolCalls)!=null&&e.length)}),s=d(()=>{let e=t.message.content||``;return e?t.message.reasoningStatus===`streaming`?{reasoning:``,content:e.replace(/<think>[\s\S]*?<\/think>/g,``).trim()}:Ryt(e):{reasoning:``,content:``}}),f=d(()=>s.value.reasoning),m=d(()=>s.value.content),h=d(()=>t.message.reasoning||f.value),g=d(()=>t.message.role===`assistant`&&t.message.status===`streaming`&&!!m.value),_=d(()=>t.message.role!==`system`&&t.actionsConfig?.enable!==!1),v=d(()=>!(t.messageMetaConfig?.enable!==!0||t.message.role===`system`||t.message.role===`user`&&t.messageMetaConfig?.showForUser!==!0)),y=d(()=>t.messageMetaConfig?.position??`inline`),b=d(()=>_.value||v.value),S=d(()=>v.value&&(t.messageMetaConfig?.visibility??`hover`)===`hover`),w=_e(!1),T=_e(0),D=d(()=>(t.message.attachments??[]).filter(e=>O9(e.type)&&!!e.preview).map(e=>({src:e.preview,name:e.name})));function O(e){let t=D.value.findIndex(t=>t.src===e.preview);t<0||(T.value=t,w.value=!0)}let k=d(()=>t.message.role===`assistant`?m.value:t.message.content||``),A=d(()=>t.actionsConfig?.copy!==!1&&!!k.value),j=d(()=>!(t.message.role!==`assistant`||t.actionsConfig?.retry===!1||t.message.status!==`done`||(t.actionsConfig?.retryOnlyLast??!0)&&!t.isLastAssistant));return(t,s)=>(C(),a(`div`,{class:N([`acu-bubble-row`,[`is-${e.message.role}`,{"is-meta-hover":S.value}]]),"data-msg-id":e.message.id},[e.message.role===`assistant`&&e.showAvatar?(C(),a(`div`,Hxt,[n.value?(C(),a(`img`,{key:0,src:n.value,alt:``},null,8,Uxt)):(C(),a(`svg`,Wxt,[...s[4]||=[l(`path`,{d:`M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9L12 3z`},null,-1),l(`path`,{d:`M19 14l.8 1.9L21.7 17l-1.9.8L19 19.7l-.8-1.9L16.3 17l1.9-.8L19 14z`},null,-1)]]))])):B(``,!0),l(`div`,Gxt,[e.message.role===`assistant`?(C(),a(`div`,Kxt,V(e.assistantName),1)):B(``,!0),i.value?(C(),a(`div`,{key:1,class:N([`acu-attachments`,`is-${e.message.role}`])},[(C(!0),a(E,null,ee(e.message.attachments,e=>(C(),a(E,{key:e.id},[u(O9)(e.type)&&e.preview?(C(),a(`div`,{key:0,class:`acu-att-thumb`,role:`button`,tabindex:`0`,"aria-label":`预览 ${e.name}`,title:`点击预览 ${e.name}`,onClick:t=>O(e),onKeydown:[L(ge(t=>O(e),[`prevent`]),[`enter`]),L(ge(t=>O(e),[`prevent`]),[`space`])]},[l(`img`,{src:e.preview,alt:e.name,loading:`lazy`},null,8,Jxt)],40,qxt)):(C(),a(`div`,Yxt,[s[5]||=l(`span`,{class:`acu-att-file-icon`},[l(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),l(`polyline`,{points:`14 2 14 8 20 8`})])],-1),l(`span`,Xxt,[l(`span`,{class:`cu-att-file-name`,title:e.name},V(e.name),9,Zxt),l(`span`,Qxt,V(u(Rvt)(e.size)),1)])]))],64))),128))],2)):B(``,!0),l(`div`,{class:N([`acu-bubble`,`is-${e.message.role}`])},[e.message.role===`assistant`&&h.value?(C(),x(lbt,{key:0,content:h.value,streaming:e.message.reasoningStatus===`streaming`,config:e.thinkingConfig,"duration-ms":e.message.meta?.reasoningMs,"started-at":e.message.reasoningStartedAt,"ended-at":e.message.reasoningEndedAt},null,8,[`content`,`streaming`,`config`,`duration-ms`,`started-at`,`ended-at`])):B(``,!0),o.value?(C(),a(`div`,$xt,[p(kxt,{"tool-calls":e.message.toolCalls||[],config:e.toolCallsConfig,"plan-config":e.planConfig,"ask-user-labels":e.askUserLabels},null,8,[`tool-calls`,`config`,`plan-config`,`ask-user-labels`])])):B(``,!0),m.value?(C(),a(`div`,eSt,[p(q9,{source:m.value,streaming:g.value},null,8,[`source`,`streaming`]),g.value?(C(),a(`span`,tSt)):B(``,!0)])):e.message.role===`assistant`&&e.message.status===`pending`?(C(),a(`div`,nSt,[...s[6]||=[l(`span`,{class:`acu-typing-dots`,"aria-label":`正在思考`},[l(`span`),l(`span`),l(`span`)],-1)]])):B(``,!0),e.message.status===`error`?(C(),a(`div`,rSt,[s[7]||=l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`circle`,{cx:`12`,cy:`12`,r:`10`}),l(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),l(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})],-1),l(`span`,null,V(e.message.error||`生成失败,请重试`),1),l(`button`,{type:`button`,class:`acu-retry-btn`,onClick:s[0]||=n=>t.$emit(`retry`,e.message)},`重试`)])):B(``,!0)],2),b.value?(C(),a(`div`,{key:2,class:N([`acu-bubble-footer`,[`is-${e.message.role}`,`is-meta-${y.value}`]])},[_.value?(C(),x(Pxt,{key:0,role:e.message.role,"copy-text":k.value,"show-copy":A.value,"show-retry":j.value,"copied-duration":e.actionsConfig?.copiedDuration??1600,onRetry:s[1]||=n=>t.$emit(`retry`,e.message)},null,8,[`role`,`copy-text`,`show-copy`,`show-retry`,`copied-duration`])):B(``,!0),v.value?(C(),x(Ixt,{key:1,message:e.message,config:e.messageMetaConfig},null,8,[`message`,`config`])):B(``,!0)],2)):B(``,!0)]),e.message.role===`user`&&e.showAvatar?(C(),a(`div`,iSt,[r.value?(C(),a(`img`,{key:0,src:r.value,alt:``},null,8,aSt)):(C(),a(`svg`,oSt,[...s[8]||=[l(`path`,{d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2`},null,-1),l(`circle`,{cx:`12`,cy:`7`,r:`4`},null,-1)]]))])):B(``,!0),p(Bxt,{visible:w.value,"onUpdate:visible":s[2]||=e=>w.value=e,index:T.value,"onUpdate:index":s[3]||=e=>T.value=e,images:D.value},null,8,[`visible`,`index`,`images`])],10,Vxt))}}),[[`__scopeId`,`data-v-6c4a53e2`]]),cSt={key:0,class:`acu-followup-title`},lSt={key:0},uSt={key:1,class:`acu-followup-loading`},dSt={class:`acu-followup-list`},fSt=[`onClick`],pSt={class:`acu-followup-item-label`},mSt=K9(v({__name:`FollowupSuggestions`,props:{items:{default:()=>[]},title:{default:`继续追问`},loading:{type:Boolean,default:!1}},emits:[`select`],setup(e){let t=e,n=d(()=>t.loading||t.items&&t.items.length>0);return(t,r)=>n.value?(C(),a(`div`,{key:0,class:N([`acu-followup`,{"is-loading":e.loading}])},[e.title||e.loading?(C(),a(`div`,cSt,[e.loading?(C(),a(`span`,uSt,[...r[0]||=[l(`span`,{class:`acu-followup-dot`},null,-1),l(`span`,{class:`acu-followup-dot`},null,-1),l(`span`,{class:`acu-followup-dot`},null,-1),S(` 正在生成追问… `,-1)]])):(C(),a(`span`,lSt,V(e.title),1))])):B(``,!0),l(`div`,dSt,[(C(!0),a(E,null,ee(e.items,e=>(C(),a(`button`,{key:e.id,type:`button`,class:`acu-followup-item`,onClick:n=>t.$emit(`select`,e)},[l(`span`,pSt,V(e.label),1),r[1]||=l(`svg`,{class:`acu-followup-item-arrow`,viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[l(`line`,{x1:`7`,y1:`17`,x2:`17`,y2:`7`}),l(`polyline`,{points:`7 7 17 7 17 17`})],-1)],8,fSt))),128))])],2)):B(``,!0)}}),[[`__scopeId`,`data-v-3a8d51cc`]]),hSt=[`data-turn-id`,`aria-label`,`aria-current`,`onClick`,`onMouseenter`,`onFocus`],gSt={key:0,class:`acu-rail-tip-q`},_St={class:`acu-rail-tip-a`},vSt=K9(v({__name:`MessageRail`,props:{messages:{},activeId:{default:null},config:{default:void 0},assistantName:{default:`AI`}},emits:[`select`],setup(e,{expose:t,emit:n}){let r=e,i=n,o=d(()=>{let e=r.config??{};return{widthBy:e.widthBy??`length`,minWidth:e.minWidth??8,maxWidth:e.maxWidth??26,barHeight:e.barHeight??3,maxGap:e.maxGap??10,maxHeight:e.maxHeight??320,idleOpacity:e.idleOpacity??.3,showTooltip:e.showTooltip??!0,clickToScroll:e.clickToScroll??!0}}),s=d(()=>o.value.barHeight),u=d(()=>o.value.maxHeight),f=d(()=>o.value.idleOpacity),p=d(()=>o.value.showTooltip);function m(e){return(e.content||e.reasoning||``).replace(/\s+/g,` `).trim()}function h(e,t){return e.length>t?`${e.slice(0,t)}…`:e}let g=d(()=>{let e=[];for(let t of r.messages){let n=e[e.length-1];(t.role===`user`||!n)&&(n={anchor:t,question:``,answer:``,msgIds:[],chars:0,streaming:!1},e.push(n)),n.msgIds.push(t.id),n.chars+=(t.content?.length??0)+(t.reasoning?.length??0)*.5,(t.status===`streaming`||t.status===`pending`)&&(n.streaming=!0);let r=m(t);t.role===`user`?n.question||(n.question=r):r&&(n.answer=r)}return e}),_=d(()=>{let e=g.value,{widthBy:t,minWidth:n,maxWidth:r}=o.value;if(!e.length)return[];if(t===`even`)return e.map(()=>r);let i=e.map(e=>Math.max(4,e.chars)),a=Math.min(...i),s=Math.max(...i);if(s-a<1)return e.map(()=>r);let l=Math.log10(a),u=Math.log10(s)-l;return i.map(e=>{let t=Math.min(1,Math.max(0,(Math.log10(e)-l)/u));return Math.round(n+t*(r-n))})}),v=d(()=>g.value.map((e,t)=>{let n=e.answer?h(e.answer,72):e.streaming?`正在生成…`:`(暂无回答)`,r=h(e.question,40);return{id:e.anchor.id,question:r,answer:n,title:`${r||`对话`} — ${n}`,width:_.value[t]??o.value.minWidth,streaming:e.streaming}})),y=d(()=>{let e=r.activeId;return e?g.value.find(t=>t.msgIds.includes(e))?.anchor.id??null:null}),b=d(()=>{let e=v.value.length;if(e<=1)return o.value.maxGap;let{maxGap:t,maxHeight:n,barHeight:r}=o.value,i=(n-r)/(e-1);return Math.round(Math.min(t,Math.max(4,i-r)))}),x=_e(!1),S=_e(-1),w=_e(null),T=_e(0),D=d(()=>S.value>=0?v.value[S.value]??null:null),O=d(()=>{let e=s.value+b.value;return S.value*e+s.value/2-T.value});function k(){T.value=w.value?.scrollTop??0}function A(){x.value=!1,S.value=-1}function j(e){if(!o.value.clickToScroll)return;let t=g.value[e];t&&i(`select`,t.anchor,e)}return ue(y,()=>{let e=v.value.findIndex(e=>e.id===y.value),t=w.value;if(e<0||!t)return;let n=s.value+b.value,r=e*n;r<t.scrollTop?t.scrollTop=r:r+n>t.scrollTop+t.clientHeight&&(t.scrollTop=r+n-t.clientHeight)}),t({hovering:x}),(e,t)=>v.value.length>1?(C(),a(`div`,{key:0,class:`acu-rail`,style:F({"--acu-rail-idle":f.value}),role:`navigation`,"aria-label":`对话轮次导航`,onMouseenter:t[0]||=e=>x.value=!0,onMouseleave:A},[l(`div`,{ref_key:`stackRef`,ref:w,class:`acu-rail-stack`,style:F({gap:`${b.value}px`,maxHeight:`${u.value}px`}),onScroll:k},[(C(!0),a(E,null,ee(v.value,(e,t)=>(C(),a(`button`,{key:e.id,type:`button`,class:N([`acu-rail-bar`,{"is-active":e.id===y.value,"is-streaming":e.streaming,"is-hot":t===S.value}]),style:F({width:`${e.width}px`,height:`${s.value}px`}),"data-turn-id":e.id,"aria-label":e.title,"aria-current":e.id===y.value?`true`:void 0,onClick:e=>j(t),onMouseenter:e=>S.value=t,onFocus:e=>S.value=t},null,46,hSt))),128))],36),p.value&&D.value?(C(),a(`div`,{key:0,class:`acu-rail-tip`,style:F({top:`${O.value}px`})},[D.value.question?(C(),a(`div`,gSt,V(D.value.question),1)):B(``,!0),l(`div`,_St,V(D.value.answer),1)],4)):B(``,!0)],36)):B(``,!0)}}),[[`__scopeId`,`data-v-b92af984`]]),ySt={class:`acu-message-list-inner`},bSt=80,xSt=40,SSt=6,CSt=8,wSt=K9(v({__name:`MessageList`,props:{messages:{},assistantName:{default:`AI 助手`},assistantAvatar:{default:``},userAvatar:{default:``},showAvatar:{type:Boolean,default:!0},followup:{default:void 0},toolCallsConfig:{default:void 0},planConfig:{default:void 0},askUserLabels:{default:void 0},thinkingConfig:{default:void 0},actionsConfig:{default:void 0},messageMetaConfig:{default:void 0},messageRailConfig:{default:void 0}},emits:[`retry`,`followup-select`],setup(e,{expose:t,emit:n}){let r=e,i=d(()=>{if(r.followup)return Array.isArray(r.followup)?{items:r.followup,mode:`latest`,autoSend:!0}:r.followup}),o=d(()=>i.value?.title??`继续追问`),s=d(()=>i.value?.mode??`latest`),u=d(()=>i.value?.showDuringStreaming??!1),f=ye({}),h=d(()=>{for(let e=r.messages.length-1;e>=0;e--){let t=r.messages[e];if(t.role===`assistant`&&t.status===`done`)return t.id}return null}),g=d(()=>{for(let e=r.messages.length-1;e>=0;e--)if(r.messages[e].role===`assistant`)return r.messages[e].id;return null});function v(e){return e.role!==`assistant`||e.status===`error`?!1:e.status===`streaming`||e.status===`pending`?u.value:s.value===`latest`?e.id===h.value:e.status===`done`}let y=0;async function b(e){let t=i.value;if(!t||typeof t.provider!=`function`)return;if(t.items&&t.items.length){f[e.id]={items:t.items,loading:!1};return}let n=++y;f[e.id]={items:[],loading:!0};try{let i=await t.provider(e,r.messages);if(n!==y)return;let a=Array.isArray(i)?i:[];f[e.id]={items:a,loading:!1}}catch(t){if(n!==y)return;f[e.id]={items:[],loading:!1},console.warn(`[ai-chat-ui] followup provider error:`,t)}}ue(()=>r.messages.map(e=>`${e.id}:${e.status}:${e.content.length}`).join(`|`),()=>{w()},{immediate:!0});function S(){let e=new Set;for(let t of r.messages)v(t)&&e.add(t.id);for(let t of Object.keys(f))e.has(t)||delete f[t]}function w(){let e=i.value;if(!e){for(let e of Object.keys(f))delete f[e];return}if(e.items&&e.items.length){for(let t of r.messages)v(t)&&(f[t.id]={items:e.items,loading:!1});S();return}if(typeof e.provider==`function`){for(let e of r.messages)v(e)&&!f[e.id]&&b(e);S()}}ue(()=>r.followup,()=>{for(let e of Object.keys(f))delete f[e];y++,w()});let T=_e(null),D=_e(!0),O=d(()=>r.messageRailConfig?.enable===!0),k=_e(null),A=_e(null),j=_e(null),N=_e(0),P=_e(null),I=null,L=d(()=>P.value===null?void 0:{left:`${P.value}px`});function R(e){(A.value?.closest(`.acu-chat`)||A.value)?.style.setProperty(`--acu-rail-lane`,`${e}px`)}function te(){let e=A.value;if(!e)return;let t=j.value?.$el,n=e.querySelector(`.acu-message-list-inner`);if(!O.value||!t||!n){P.value=null,N.value!==0&&(N.value=0,R(0));return}let r=e.getBoundingClientRect().left,i=n.getBoundingClientRect().left-r-N.value,a=t.getBoundingClientRect().width||38,o=Math.max(SSt,i-xSt);P.value=o;let s=o+a-i,l=s>0?Math.ceil(s+CSt):0;l!==N.value&&(N.value=l,R(l))}ue(O,e=>{e&&m(()=>te())}),ue(()=>r.messages.length,()=>{m(()=>te())}),M(()=>{O.value&&typeof ResizeObserver<`u`&&A.value&&(I=new ResizeObserver(()=>te()),I.observe(A.value)),m(()=>te())}),_(()=>{I?.disconnect(),I=null,R(0)});function z(){let e=T.value;if(!e)return;let t=e.getBoundingClientRect(),n=t.top+t.height/2,i=null;for(let t of e.querySelectorAll(`[data-msg-id]`))if(t.getBoundingClientRect().top<=n)i=t.dataset.msgId??null;else break;k.value=i??r.messages[0]?.id??null}function ne(e){let t=T.value;if(!t)return;let n=typeof CSS<`u`&&CSS.escape?CSS.escape(e.id):e.id,r=t.querySelector(`[data-msg-id="${n}"]`);r&&t.scrollTo({top:Math.max(0,r.offsetTop-16),behavior:`smooth`})}function re(){let e=T.value;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight;D.value=t<bSt,O.value&&z()}function oe(e=!1){let t=T.value;t&&(t.scrollTo({top:t.scrollHeight,behavior:e?`smooth`:`auto`}),D.value=!0)}function se(){let e=r.messages[r.messages.length-1];return e?`${r.messages.length}:${e.id}:${e.content.length}:${e.reasoning?.length??0}`:``}return ue(se,()=>{D.value&&m(()=>oe(!1))}),ue(()=>r.messages.length,()=>{m(()=>{oe(!1),O.value&&z()})}),ue(O,e=>{e&&m(()=>{z(),te()})}),M(()=>{oe(!1),m(()=>z())}),t({scrollToBottom:oe}),(t,n)=>(C(),a(`div`,{ref_key:`wrapRef`,ref:A,class:`acu-message-list-wrap`},[l(`div`,{ref_key:`scrollRef`,ref:T,class:`acu-message-list`,onScroll:re},[l(`div`,ySt,[(C(!0),a(E,null,ee(e.messages,r=>(C(),a(E,{key:r.id},[p(sSt,{message:r,"assistant-name":e.assistantName,"assistant-avatar":e.assistantAvatar,"user-avatar":e.userAvatar,"show-avatar":e.showAvatar,"tool-calls-config":e.toolCallsConfig,"plan-config":e.planConfig,"ask-user-labels":e.askUserLabels,"thinking-config":e.thinkingConfig,"actions-config":e.actionsConfig,"message-meta-config":e.messageMetaConfig,"is-last-assistant":r.id===g.value,onRetry:n[0]||=e=>t.$emit(`retry`,e)},null,8,[`message`,`assistant-name`,`assistant-avatar`,`user-avatar`,`show-avatar`,`tool-calls-config`,`plan-config`,`ask-user-labels`,`thinking-config`,`actions-config`,`message-meta-config`,`is-last-assistant`]),v(r)?(C(),x(mSt,{key:0,items:f[r.id]?.items??[],title:o.value,loading:f[r.id]?.loading??!1,onSelect:e=>t.$emit(`followup-select`,e,r)},null,8,[`items`,`title`,`loading`,`onSelect`])):B(``,!0)],64))),128))]),p(ie,{name:`acu-fade`},{default:ae(()=>[de(l(`button`,{type:`button`,class:`acu-scroll-btn`,"aria-label":`回到底部`,onClick:n[1]||=e=>oe(!0)},[...n[2]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`polyline`,{points:`6 9 12 15 18 9`})],-1)]],512),[[ve,!D.value&&e.messages.length>0]])]),_:1})],544),O.value?(C(),x(vSt,{key:0,ref_key:`railRef`,ref:j,messages:e.messages,"active-id":k.value,config:e.messageRailConfig,"assistant-name":e.assistantName,style:F(L.value),onSelect:ne},null,8,[`messages`,`active-id`,`config`,`assistant-name`,`style`])):B(``,!0)],512))}}),[[`__scopeId`,`data-v-691082b9`]]),TSt={class:`acu-welcome`},ESt={class:`acu-welcome-title`},DSt={key:0,class:`acu-welcome-desc`},OSt={key:1,class:`acu-welcome-grid`},kSt=[`onClick`],ASt={class:`acu-preset-q-index`,"aria-hidden":`true`},jSt={class:`acu-preset-q-body`},MSt={class:`acu-preset-q-label`},NSt={key:0,class:`acu-preset-q-prompt`},PSt=K9(v({__name:`WelcomeScreen`,props:{title:{default:`你好,有什么可以帮你?`},description:{default:`试着问我任何问题,或选择下方的话题开始对话。`},questions:{default:()=>[]},maxWidth:{default:`var(--acu-max-width)`}},emits:[`select`],setup(e){let t=e,n=d(()=>typeof t.maxWidth==`number`?`${t.maxWidth}px`:t.maxWidth);return(t,r)=>(C(),a(`div`,TSt,[l(`div`,{class:`acu-welcome-inner`,style:F({maxWidth:n.value})},[r[1]||=y(`<div class="acu-welcome-logo" data-v-1a6da807><svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-1a6da807><path d="M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9L12 3z" data-v-1a6da807></path><path d="M19 14l.8 1.9L21.7 17l-1.9.8L19 19.7l-.8-1.9L16.3 17l1.9-.8L19 14z" data-v-1a6da807></path><path d="M5 15l.6 1.5L7.1 17l-1.5.6L5 19.1l-.6-1.5L2.9 17l1.5-.6L5 15z" data-v-1a6da807></path></svg></div>`,1),l(`h2`,ESt,V(e.title),1),e.description?(C(),a(`p`,DSt,V(e.description),1)):B(``,!0),e.questions.length?(C(),a(`div`,OSt,[(C(!0),a(E,null,ee(e.questions,(e,n)=>(C(),a(`button`,{key:e.id,type:`button`,class:`acu-preset-q`,onClick:n=>t.$emit(`select`,e)},[l(`span`,ASt,V(String(n+1).padStart(2,`0`)),1),l(`span`,jSt,[l(`span`,MSt,V(e.label),1),e.prompt?(C(),a(`span`,NSt,V(e.prompt),1)):B(``,!0)]),r[0]||=l(`svg`,{class:`acu-preset-q-arrow`,viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`7`,y1:`17`,x2:`17`,y2:`7`}),l(`polyline`,{points:`7 7 17 7 17 17`})],-1)],8,kSt))),128))])):B(``,!0)],4)]))}}),[[`__scopeId`,`data-v-1a6da807`]]),FSt={key:0,class:`acu-input-drop-hint`},ISt={key:1,class:`acu-input-queue`},LSt={class:`acu-input-queue-head`},RSt={class:`acu-input-queue-title`},zSt={class:`acu-input-queue-count`},BSt={class:`acu-input-queue-hint`},VSt={class:`acu-input-queue-index`},HSt=[`title`],USt=[`title`],WSt={class:`acu-input-queue-att-name`},GSt=[`title`,`aria-label`,`onClick`],KSt={key:2,class:`acu-input-attachments`},qSt=[`aria-label`,`title`,`onClick`,`onKeydown`],JSt=[`src`,`alt`],YSt={key:1,class:`acu-input-att-file`},XSt=[`title`],ZSt=[`onClick`],QSt={class:`acu-input-row`},$St=[`placeholder`,`disabled`],eCt={class:`acu-input-toolbar`},tCt=[`disabled`],nCt=[`accept`,`multiple`],rCt=[`title`],iCt={class:`acu-input-chip-label`},aCt=[`aria-label`],oCt={class:`acu-input-usage-text`,role:`tooltip`},sCt={class:`acu-input-usage-ring`,viewBox:`0 0 36 36`,"aria-hidden":`true`},cCt=[`stroke-dasharray`],lCt=[`title`],uCt={class:`acu-input-chip-label`},dCt=[`disabled`,`aria-label`,`title`],fCt=K9(v({__name:`ChatInput`,props:{placeholder:{default:`输入消息,Enter 发送,Shift+Enter 换行`},disabled:{type:Boolean,default:!1},generating:{type:Boolean,default:!1},allowQueue:{type:Boolean,default:!1},queued:{default:()=>[]},queuePaused:{type:Boolean,default:!1},queueLabels:{default:()=>({})},uploadConfig:{default:()=>({})},maxLength:{default:4e3},gitBranch:{default:``},model:{default:``},contextUsage:{default:null}},emits:[`send`,`stop`,`unqueue`,`flush-queued`],setup(e,{expose:t,emit:n}){let r=e,i=n,o=_e(``),s=_e([]),u=_e(null),f=_e(null),h=_e(!1),g=_e(!1),_=0,v=_e(!1),b=_e(0),x=d(()=>s.value.filter(e=>!!e.preview).map(e=>({src:e.preview,name:e.file.name})));function S(e){let t=x.value.findIndex(t=>t.src===e.preview);t<0||(b.value=t,v.value=!0)}let w=d(()=>({enabled:!0,multiple:!0,accept:``,maxCount:10,maxSize:20971520,...r.uploadConfig}));function T(e){if(!Number.isFinite(e))return`—`;let t=/^K/i.test(r.contextUsage?.unit||``),n=t?e/1e3:e;return t?n.toFixed(1):String(Math.round(n))}let D=d(()=>{let e=r.contextUsage;if(!e)return null;let t=Number.isFinite(e.ratio)?e.ratio:0,n=e.unit||``,i=t*100,a=e.level||(t>=1?`full`:t>=.8?`warn`:`normal`),o=`${i.toFixed(1)}% · ${T(e.current)}${n} / ${T(e.total)}${n}`+(e.suffix?` ${e.suffix}`:``),s=2*Math.PI*15,l=Math.min(Math.max(t,0),1);return{level:a,summary:o,detail:e.detail||o,dashArray:`${(s*l).toFixed(2)} ${s.toFixed(2)}`}}),O=d(()=>w.value.enabled),k=d(()=>({title:r.queueLabels.title||`排队中`,hint:r.queueLabels.hint||`等本轮跑完依次发送`,pausedHint:r.queueLabels.pausedHint||`已暂停,点「立即发送」继续`,send:r.queueLabels.send||`加入队列`,flush:r.queueLabels.flush||`立即发送`,remove:r.queueLabels.remove||`移出队列`})),A=d(()=>o.value.trim().length>0||s.value.length>0);function j(e){e.key===`Enter`&&!e.shiftKey&&!g.value&&!e.isComposing&&(e.preventDefault(),R())}function P(){g.value=!0}function F(){g.value=!1}function I(){let e=u.value;if(!e)return;e.style.height=`auto`;let t=e.scrollHeight;e.style.height=Math.min(t,200)+`px`;let n=t>200?`auto`:`hidden`;e.style.overflowY!==n&&(e.style.overflowY=n)}function R(){if(r.generating&&!r.allowQueue||!A.value||r.disabled)return;let e=o.value.trim();!e&&s.value.length===0||(i(`send`,{text:e,files:[...s.value]}),o.value=``,s.value=[],m(()=>{var e;I(),(e=u.value)==null||e.focus()}))}function te(){var e;(e=f.value)==null||e.click()}function z(e){let t=e.target;t.files&&ne(Array.from(t.files)),t.value=``}function ne(e){let t=w.value;for(let n of e){if(t.maxCount&&s.value.length>=t.maxCount)break;if(t.maxSize&&n.size>t.maxSize)continue;let e={file:n,id:k9(`file`)};O9(n.type)&&(e.preview=URL.createObjectURL(n)),s.value.push(e)}}function re(e){let t=s.value.findIndex(t=>t.id===e);if(t>=0){let e=s.value[t];e.preview&&URL.revokeObjectURL(e.preview),s.value.splice(t,1)}}function ie(e){if(r.disabled||!O.value)return;let t=e.clipboardData?.items;if(!t||t.length===0)return;let n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r.kind===`file`){let e=r.getAsFile();e&&n.push(e)}}n.length!==0&&(e.preventDefault(),ne(n))}function ae(e){var t;r.disabled||!O.value||(t=e.dataTransfer)!=null&&t.types.includes(`Files`)&&(_++,h.value=!0)}function oe(){_=Math.max(0,_-1),_===0&&(h.value=!1)}function se(e){var t;if(_=0,h.value=!1,r.disabled||!O.value)return;let n=(t=e.dataTransfer)!=null&&t.files?Array.from(e.dataTransfer.files):[];n.length&&ne(n)}return M(()=>I()),t({focus:()=>u.value?.focus(),clear:()=>{o.value=``,s.value=[],m(I)}}),(t,n)=>(C(),a(`div`,{class:N([`acu-input-wrap`,{"is-dragging":h.value,"is-disabled":e.disabled}]),onDragenter:ae,onDragover:n[5]||=ge(()=>{},[`prevent`]),onDragleave:oe,onDrop:ge(se,[`prevent`])},[h.value?(C(),a(`div`,FSt,[...n[6]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),l(`polyline`,{points:`17 8 12 3 7 8`}),l(`line`,{x1:`12`,y1:`3`,x2:`12`,y2:`15`})],-1),l(`span`,null,`松开以添加文件`,-1)]])):B(``,!0),e.queued.length?(C(),a(`div`,ISt,[l(`div`,LSt,[l(`span`,RSt,V(k.value.title),1),l(`span`,zSt,V(e.queued.length),1),l(`span`,BSt,V(e.queuePaused?k.value.pausedHint:k.value.hint),1)]),(C(!0),a(E,null,ee(e.queued,(t,r)=>(C(),a(`div`,{key:t.id,class:`acu-input-queue-item`},[l(`span`,VSt,V(r+1),1),l(`span`,{class:`acu-input-queue-text`,title:t.text},V(t.text),9,HSt),t.attachmentNames&&t.attachmentNames.length?(C(),a(`span`,{key:0,class:`acu-input-queue-atts`,title:t.attachmentNames.join(`、`)},[n[7]||=l(`svg`,{viewBox:`0 0 24 24`,width:`11`,height:`11`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48`})],-1),l(`span`,WSt,V(t.attachmentNames.join(`、`)),1)],8,USt)):B(``,!0),r===0&&e.queuePaused?(C(),a(`button`,{key:1,type:`button`,class:`acu-input-queue-btn`,onClick:n[0]||=e=>i(`flush-queued`)},V(k.value.flush),1)):B(``,!0),l(`button`,{type:`button`,class:`acu-input-queue-remove`,title:k.value.remove,"aria-label":k.value.remove,onClick:e=>i(`unqueue`,t.id)},[...n[8]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`11`,height:`11`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.4`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,GSt)]))),128))])):B(``,!0),s.value.length?(C(),a(`div`,KSt,[(C(!0),a(E,null,ee(s.value,e=>(C(),a(`div`,{key:e.id,class:`acu-input-att`},[e.preview?(C(),a(`div`,{key:0,class:`acu-input-att-thumb`,role:`button`,tabindex:`0`,"aria-label":`预览 ${e.file.name}`,title:`点击预览 ${e.file.name}`,onClick:t=>S(e),onKeydown:[L(ge(t=>S(e),[`prevent`]),[`enter`]),L(ge(t=>S(e),[`prevent`]),[`space`])]},[l(`img`,{src:e.preview,alt:e.file.name},null,8,JSt)],40,qSt)):(C(),a(`div`,YSt,[n[9]||=l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.7`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),l(`polyline`,{points:`14 2 14 8 20 8`})],-1),l(`span`,{class:`acu-input-att-name`,title:e.file.name},V(e.file.name),9,XSt)])),l(`button`,{type:`button`,class:`acu-input-att-remove`,"aria-label":`移除`,onClick:t=>re(e.id)},[...n[10]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.4`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),l(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,ZSt)]))),128))])):B(``,!0),p(Bxt,{visible:v.value,"onUpdate:visible":n[1]||=e=>v.value=e,index:b.value,"onUpdate:index":n[2]||=e=>b.value=e,images:x.value},null,8,[`visible`,`index`,`images`]),l(`div`,QSt,[de(l(`textarea`,{ref_key:`textareaRef`,ref:u,"onUpdate:modelValue":n[3]||=e=>o.value=e,class:`acu-input-textarea`,placeholder:e.placeholder,rows:1,disabled:e.disabled,onKeydown:j,onInput:I,onCompositionstart:P,onCompositionend:F,onPaste:ie},null,40,$St),[[fe,o.value]])]),l(`div`,eCt,[O.value?(C(),a(`button`,{key:0,type:`button`,class:`acu-input-icon-btn`,disabled:e.disabled,"aria-label":`添加附件`,onClick:te},[...n[11]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48`})],-1)]],8,tCt)):B(``,!0),l(`input`,{ref_key:`fileInputRef`,ref:f,type:`file`,class:`acu-input-file`,accept:w.value.accept,multiple:w.value.multiple,onChange:z},null,40,nCt),e.gitBranch?(C(),a(`span`,{key:1,class:`acu-input-chip is-git`,title:e.gitBranch},[n[12]||=y(`<span class="acu-input-chip-icon" aria-hidden="true" data-v-7df93c1b><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-7df93c1b><line x1="6" y1="3" x2="6" y2="15" data-v-7df93c1b></line><circle cx="18" cy="6" r="3" data-v-7df93c1b></circle><circle cx="6" cy="18" r="3" data-v-7df93c1b></circle><path d="M18 9a9 9 0 0 1-9 9" data-v-7df93c1b></path></svg></span>`,1),l(`span`,iCt,V(e.gitBranch),1)],8,rCt)):B(``,!0),n[17]||=l(`div`,{class:`acu-input-toolbar-spacer`},null,-1),D.value?(C(),a(`div`,{key:2,class:N([`acu-input-usage`,`is-${D.value.level}`]),role:`img`,"aria-label":D.value.summary,tabindex:`0`},[l(`span`,oCt,V(D.value.summary),1),(C(),a(`svg`,sCt,[n[13]||=l(`circle`,{class:`acu-input-usage-track`,cx:`18`,cy:`18`,r:`15`},null,-1),l(`circle`,{class:`acu-input-usage-arc`,cx:`18`,cy:`18`,r:`15`,"stroke-dasharray":D.value.dashArray},null,8,cCt)]))],10,aCt)):B(``,!0),e.model?(C(),a(`span`,{key:3,class:`acu-input-chip is-model`,title:e.model},[n[14]||=l(`span`,{class:`acu-input-chip-icon`,"aria-hidden":`true`},[l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9L12 3z`})])],-1),l(`span`,uCt,V(e.model),1)],8,lCt)):B(``,!0),!e.generating||e.allowQueue?(C(),a(`button`,{key:4,type:`button`,class:`acu-input-send`,disabled:!A.value||e.disabled,"aria-label":e.generating?k.value.send:`发送`,title:e.generating?k.value.send:`发送`,onClick:R},[...n[15]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`5`}),l(`polyline`,{points:`5 12 12 5 19 12`})],-1)]],8,dCt)):B(``,!0),e.generating?(C(),a(`button`,{key:5,type:`button`,class:`acu-input-send is-stop`,"aria-label":`停止生成`,title:`停止生成`,onClick:n[4]||=e=>i(`stop`)},[...n[16]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2.5`})],-1)]])):B(``,!0)])],34))}}),[[`__scopeId`,`data-v-7df93c1b`]]);function pCt(e){let t=_e(!1),n=null;function r(e){t.value=e.matches}return M(()=>{typeof window>`u`||!window.matchMedia||(n=window.matchMedia(`(prefers-color-scheme: dark)`),r(n),n.addEventListener(`change`,r))}),_(()=>{n?.removeEventListener(`change`,r),n=null}),d(()=>{let n=f(e);return n===`auto`?t.value?`dark`:`light`:n})}var mCt=[`data-theme`],hCt={class:`acu-chat-body`},gCt={key:0,class:`acu-chat-question`},_Ct={key:0,class:`acu-chat-footer`},vCt=K9(v({__name:`ChatContainer`,props:{messages:{},presetQuestions:{default:()=>[]},welcomeTitle:{default:`你好,有什么可以帮你?`},welcomeDescription:{default:`试着问我任何问题,或选择下方的话题开始对话。`},assistantName:{default:`AI 助手`},assistantAvatar:{default:``},userAvatar:{default:``},showAvatar:{type:Boolean,default:!0},theme:{default:`light`},placeholder:{default:`输入消息,Enter 发送,Shift+Enter 换行`},disabled:{type:Boolean,default:!1},generating:{type:Boolean,default:!1},allowQueue:{type:Boolean,default:!1},queued:{default:()=>[]},queuePaused:{type:Boolean,default:!1},queueLabels:{default:void 0},showInput:{type:Boolean,default:!0},question:{default:null},questionAnswers:{default:()=>[]},questionSubmitting:{type:Boolean,default:!1},questionLabels:{default:void 0},uploadConfig:{default:()=>({})},contextUsage:{default:null},gitBranch:{default:``},model:{default:``},followup:{default:void 0},toolCallsConfig:{default:void 0},planConfig:{default:void 0},thinkingConfig:{default:void 0},actionsConfig:{default:void 0},messageMetaConfig:{default:void 0},messageRailConfig:{default:void 0},maxWidth:{default:void 0}},emits:[`send`,`retry`,`select`,`followup-select`,`stop`,`unqueue`,`flush-queued`,`answer`],setup(e,{expose:t,emit:n}){let r=e,i=d(()=>r.maxWidth===void 0?void 0:typeof r.maxWidth==`number`?`${r.maxWidth}px`:r.maxWidth),o=n,s=_e(null),f=pCt(()=>r.theme);function m(e){o(`send`,e)}function h(e){o(`select`,e)}function g(e,t){o(`followup-select`,e,t);let n=r.followup;(Array.isArray(n)||n?.autoSend!==!1)&&o(`send`,{text:e.prompt,files:[]})}return t({scrollToBottom:e=>s.value?.scrollToBottom(e)}),(t,n)=>(C(),a(`div`,{class:`acu-root acu-chat`,"data-theme":u(f),style:F({"--acu-max-width":i.value})},[l(`div`,hCt,[e.messages.length?(C(),x(wSt,{key:1,ref_key:`listRef`,ref:s,messages:e.messages,"assistant-name":e.assistantName,"assistant-avatar":e.assistantAvatar,"user-avatar":e.userAvatar,"show-avatar":e.showAvatar,followup:e.followup,"tool-calls-config":e.toolCallsConfig,"plan-config":e.planConfig,"thinking-config":e.thinkingConfig,"actions-config":e.actionsConfig,"message-meta-config":e.messageMetaConfig,"message-rail-config":e.messageRailConfig,"ask-user-labels":e.questionLabels,onRetry:n[0]||=e=>t.$emit(`retry`,e),onFollowupSelect:g},null,8,[`messages`,`assistant-name`,`assistant-avatar`,`user-avatar`,`show-avatar`,`followup`,`tool-calls-config`,`plan-config`,`thinking-config`,`actions-config`,`message-meta-config`,`message-rail-config`,`ask-user-labels`])):(C(),x(PSt,{key:0,title:e.welcomeTitle,description:e.welcomeDescription,questions:e.presetQuestions,"max-width":i.value,onSelect:h},null,8,[`title`,`description`,`questions`,`max-width`]))]),p(ie,{name:`acu-collapse`},{default:ae(()=>[e.question?(C(),a(`div`,gCt,[p(ixt,{question:e.question.question,options:e.question.options,multiple:e.question.multiple,"allow-free-text":e.question.allowFreeText,submitting:e.questionSubmitting,answers:e.questionAnswers,labels:e.questionLabels,onAnswer:n[1]||=e=>t.$emit(`answer`,e)},null,8,[`question`,`options`,`multiple`,`allow-free-text`,`submitting`,`answers`,`labels`])])):B(``,!0)]),_:1}),e.showInput?(C(),a(`div`,_Ct,[p(fCt,{placeholder:e.placeholder,disabled:e.disabled,generating:e.generating,"allow-queue":e.allowQueue,queued:e.queued,"queue-paused":e.queuePaused,"queue-labels":e.queueLabels,"upload-config":e.uploadConfig,"context-usage":e.contextUsage,"git-branch":e.gitBranch,model:e.model,onSend:m,onStop:n[2]||=e=>t.$emit(`stop`),onUnqueue:n[3]||=e=>t.$emit(`unqueue`,e),onFlushQueued:n[4]||=e=>t.$emit(`flush-queued`)},null,8,[`placeholder`,`disabled`,`generating`,`allow-queue`,`queued`,`queue-paused`,`queue-labels`,`upload-config`,`context-usage`,`git-branch`,`model`])])):B(``,!0)],12,mCt))}}),[[`__scopeId`,`data-v-855a8516`]]),yCt=[`title`,`aria-label`],bCt={class:`acu-conv-rail-text`},xCt={class:`acu-conv-toolbar`},SCt={class:`acu-conv-toolbar-row`},CCt=[`title`,`aria-label`],wCt={key:0,class:`acu-conv-search`},TCt=[`placeholder`,`aria-label`],ECt=[`data-id`],DCt=[`aria-label`,`onKeydown`],OCt=[`aria-current`,`onClick`,`onDblclick`],kCt={class:`acu-conv-title`},ACt={key:0,class:`acu-conv-meta is-generating`},jCt={key:1,class:`acu-conv-meta`},MCt={key:0,class:`acu-conv-badge`},NCt={key:1,class:`acu-conv-meta-text`},PCt={class:`acu-conv-actions`},FCt=[`title`,`aria-label`,`onClick`],ICt=[`title`,`aria-label`,`onClick`],LCt={key:1,class:`acu-conv-empty`},RCt={key:0,class:`acu-conv-empty-hint`},zCt=K9(v({__name:`ConversationList`,props:{items:{},activeId:{default:null},loading:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!0},showNew:{type:Boolean,default:!0},compact:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:void 0},labels:{default:void 0}},emits:[`select`,`new`,`rename`,`delete`,`update:collapsed`],setup(e,{emit:t}){let n=e,r=t,i=_e(!1),o=d(()=>n.collapsed??i.value);function s(e){o.value!==e&&(i.value=e,r(`update:collapsed`,e))}let u={newConversation:`新建会话`,searchPlaceholder:`搜索会话...`,empty:`暂无会话`,emptyHint:`点击上方按钮开始对话`,noResult:`未找到匹配的会话`,loading:`加载会话中...`,rename:`重命名`,delete:`删除`,untitled:`无标题`,collapse:`收起会话列表`,expand:`展开会话列表`},f=d(()=>({...u,...n.labels})),p=_e(``),h=d(()=>{let e=p.value.trim().toLowerCase();return e?n.items.filter(t=>`${t.title||``} ${t.searchText||``}`.toLowerCase().includes(e)):n.items}),g=_e(null),_=_e(``),v=_e(null);function b(e){v.value=e||null}function x(e,t){g.value=e,_.value=t||``,m(()=>{var e,t;(e=v.value)==null||e.focus(),(t=v.value)==null||t.select()})}function S(){let e=g.value;if(!e)return;let t=_.value.trim();g.value=null;let i=n.items.find(t=>t.id===e)?.title||``;t&&t!==i&&r(`rename`,e,t)}function w(){g.value=null}let T=_e(null);ue(()=>n.activeId,async e=>{var t;e&&(await m(),(t=T.value?.querySelector(`[data-id="${CSS.escape(e)}"]`))==null||t.scrollIntoView({block:`nearest`}))});let D=d(()=>h.value.length?``:n.items.length?f.value.noResult:n.loading?f.value.loading:f.value.empty),O=d(()=>!n.items.length&&!n.loading);return(t,n)=>(C(),a(`div`,{class:N([`acu-conv`,{"is-compact":e.compact,"is-collapsed":e.collapsible&&o.value}])},[e.collapsible&&o.value?(C(),a(`button`,{key:0,type:`button`,class:`acu-conv-rail`,title:f.value.expand,"aria-label":f.value.expand,"aria-expanded":!1,onClick:n[0]||=e=>s(!1)},[n[5]||=l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[l(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`}),l(`line`,{x1:`9`,y1:`4`,x2:`9`,y2:`20`}),l(`polyline`,{points:`13.5 9.5 16 12 13.5 14.5`})],-1),l(`span`,bCt,V(f.value.expand),1)],8,yCt)):B(``,!0),de(l(`div`,xCt,[l(`div`,SCt,[e.showNew?(C(),a(`button`,{key:0,type:`button`,class:`acu-conv-new`,onClick:n[1]||=e=>r(`new`)},[n[6]||=l(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),l(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1),l(`span`,null,V(f.value.newConversation),1)])):B(``,!0),e.collapsible?(C(),a(`button`,{key:1,type:`button`,class:`acu-conv-collapse`,title:f.value.collapse,"aria-label":f.value.collapse,"aria-expanded":!0,onClick:n[2]||=e=>s(!0)},[...n[7]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[l(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`}),l(`line`,{x1:`9`,y1:`4`,x2:`9`,y2:`20`}),l(`polyline`,{points:`16 9.5 13.5 12 16 14.5`})],-1)]],8,CCt)):B(``,!0)]),e.showSearch?(C(),a(`div`,wCt,[n[8]||=l(`svg`,{viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[l(`circle`,{cx:`11`,cy:`11`,r:`7`}),l(`line`,{x1:`20`,y1:`20`,x2:`16.2`,y2:`16.2`})],-1),de(l(`input`,{"onUpdate:modelValue":n[3]||=e=>p.value=e,type:`search`,class:`acu-conv-search-input`,placeholder:f.value.searchPlaceholder,"aria-label":f.value.searchPlaceholder},null,8,TCt),[[fe,p.value]])])):B(``,!0)],512),[[ve,!o.value]]),de(l(`ul`,{ref_key:`listRef`,ref:T,class:`acu-conv-list`},[(C(!0),a(E,null,ee(h.value,t=>(C(),a(`li`,{key:t.id,class:N([`acu-conv-item`,{"is-active":t.id===e.activeId,"is-editing":g.value===t.id}]),"data-id":t.id},[g.value===t.id?de((C(),a(`input`,{key:0,ref_for:!0,ref:b,"onUpdate:modelValue":n[4]||=e=>_.value=e,type:`text`,class:`acu-conv-rename`,"aria-label":f.value.rename,onKeydown:[L(ge(S,[`prevent`]),[`enter`]),L(ge(w,[`prevent`]),[`esc`])],onBlur:S},null,40,DCt)),[[fe,_.value]]):(C(),a(E,{key:1},[l(`button`,{type:`button`,class:`acu-conv-main`,"aria-current":t.id===e.activeId?`true`:void 0,onClick:e=>r(`select`,t.id,t),onDblclick:e=>x(t.id,t.title)},[l(`span`,kCt,V(t.title||f.value.untitled),1),t.generatingText?(C(),a(`span`,ACt,[n[9]||=l(`span`,{class:`acu-conv-dot`,"aria-hidden":`true`},null,-1),l(`span`,null,V(t.generatingText),1)])):t.meta||t.badge?(C(),a(`span`,jCt,[t.badge?(C(),a(`span`,MCt,V(t.badge),1)):B(``,!0),t.meta?(C(),a(`span`,NCt,V(t.meta),1)):B(``,!0)])):B(``,!0)],40,OCt),l(`span`,PCt,[l(`button`,{type:`button`,class:`acu-conv-action`,title:f.value.rename,"aria-label":f.value.rename,onClick:e=>x(t.id,t.title)},[...n[10]||=[l(`svg`,{viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[l(`path`,{d:`M12 20h9`}),l(`path`,{d:`M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z`})],-1)]],8,FCt),l(`button`,{type:`button`,class:`acu-conv-action`,title:f.value.delete,"aria-label":f.value.delete,onClick:e=>r(`delete`,t.id,t)},[...n[11]||=[y(`<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-fd2d5322><polyline points="3 6 5 6 21 6" data-v-fd2d5322></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6" data-v-fd2d5322></path><path d="M10 11v6M14 11v6" data-v-fd2d5322></path><path d="M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2" data-v-fd2d5322></path></svg>`,1)]],8,ICt)])],64))],10,ECt))),128))],512),[[ve,!o.value]]),D.value&&!o.value?(C(),a(`p`,LCt,[l(`span`,null,V(D.value),1),O.value?(C(),a(`span`,RCt,V(f.value.emptyHint),1)):B(``,!0)])):B(``,!0)],2))}}),[[`__scopeId`,`data-v-fd2d5322`]]),BCt={claude:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(5.43687 4.33024) scale(0.05188)' fill='%23D97757'%3E%3Cpath d='M895.914667 467.157333H1024v132.352h-128v129.194667h-63.445333V853.333333H768v-124.629333h-63.445333V853.333333H640v-124.629333H384V853.333333H319.488v-124.629333H256V853.333333H191.445333v-124.629333H128V599.466667H0v-132.266667h128V213.333333h767.914667v253.824zM256 467.157333h63.488V345.685333H256v121.472z m448.426667 0H768V345.685333h-63.573333v121.472z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E`,codex:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(10.86293 10.85412) scale(1.76216)' fill='%23000000'%3E%3Cpath d='M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997z'/%3E%3C/g%3E%3C/svg%3E`,kimi:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(11 11) scale(0.04102)'%3E%3Cpath d='M0 0m204.8 0l614.4 0q204.8 0 204.8 204.8l0 614.4q0 204.8-204.8 204.8l-614.4 0q-204.8 0-204.8-204.8l0-614.4q0-204.8 204.8-204.8Z' fill='%23000000'%3E%3C/path%3E%3Cpath d='M827.093333 128a61.525333 61.525333 0 1 1 0 123.072h-54.293333a7.210667 7.210667 0 0 1-7.253333-7.232V189.525333A61.546667 61.546667 0 0 1 827.072 128z' fill='%231783FF'%3E%3C/path%3E%3Cpath d='M482.090667 486.4L714.304 256c4.394667-4.352 1.92-13.12-3.712-13.12H585.6a5.226667 5.226667 0 0 0-3.733333 1.621333l-250.24 248.192c-3.925333 3.84-9.685333 0.426667-9.685334-5.717333V250.24c0-4.053333-2.645333-7.36-5.909333-7.36h-86.08c-3.306667 0-5.952 3.306667-5.952 7.36v510.4c0 4.096 2.645333 7.36 5.952 7.36h86.08c3.306667 0 5.952-3.264 5.952-7.36v-104c0-2.197333 0.789333-4.309333 2.218667-5.696l77.568-76.992a5.056 5.056 0 0 1 6.549333-0.725333l207.488 152.704a245.696 245.696 0 0 0 110.506667 41.045333c3.456 0.384 6.4-3.029333 6.4-7.36v-97.92c0-3.733333-2.24-6.784-5.248-7.253333a160.917333 160.917333 0 0 1-64.874667-25.813334l-179.626667-130.069333c-3.733333-2.496-4.202667-8.917333-0.874666-12.181333z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E`,opencode:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(8.52129 8.52129) scale(0.04586)'%3E%3Cpath d='M716.8 819.2H307.2V409.6h409.6v409.6z' fill='%23CFCECD'%3E%3C/path%3E%3Cpath d='M716.8 204.8H307.2v614.4h409.6V204.8z m204.8 819.2H102.4V0h819.2v1024z' fill='%23211E1E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E`,zcode:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(8.68048 8.68825) scale(1.55412)'%3E%3Cpath d='M24.51,28.51H5.49c-2.21,0-4-1.79-4-4V5.49c0-2.21,1.79-4,4-4h19.03c2.21,0,4,1.79,4,4v19.03C28.51,26.72,26.72,28.51,24.51,28.51z' fill='%232D2D2D' stroke='%23FFFFFF' stroke-width='0.6' stroke-miterlimit='10'/%3E %3Cpath d='M15.47,7.1l-1.3,1.85c-0.2,0.29-0.54,0.47-0.9,0.47h-7.1V7.09C6.16,7.1,15.47,7.1,15.47,7.1z' fill='%23FFFFFF'/%3E %3Cpolygon points='24.3,7.1 13.14,22.91 5.7,22.91 16.86,7.1' fill='%23FFFFFF'/%3E %3Cpath d='M14.53,22.91l1.31-1.86c0.2-0.29,0.54-0.47,0.9-0.47h7.09v2.33H14.53z' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E`,openai:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(10.86293 10.85412) scale(1.76216)' fill='%23000000'%3E%3Ctitle%3EOpenAI%3C/title%3E%3Cpath d='M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z'/%3E%3C/g%3E%3C/svg%3E`,gemini:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(11 11) scale(1.75)' fill='%234285F4'%3E%3Ctitle%3EGoogle Gemini%3C/title%3E%3Cpath d='M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81'/%3E%3C/g%3E%3C/svg%3E`,mistral:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(7.15039 7.15039) scale(2.0708)' fill='%23FA520F'%3E%3Ctitle%3EMistral AI%3C/title%3E%3Cpath d='M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z'/%3E%3C/g%3E%3C/svg%3E`,copilot:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.01862 9.01862) scale(1.91511)' fill='%23000000'%3E%3Ctitle%3EGitHub Copilot%3C/title%3E%3Cpath d='M23.922 16.997C23.061 18.492 18.063 22.02 12 22.02 5.937 22.02.939 18.492.078 16.997A.641.641 0 0 1 0 16.741v-2.869a.883.883 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.098 10.098 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952C7.255 2.937 9.248 1.98 11.978 1.98c2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.841.841 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256Zm-11.75-5.992h-.344a4.359 4.359 0 0 1-.355.508c-.77.947-1.918 1.492-3.508 1.492-1.725 0-2.989-.359-3.782-1.259a2.137 2.137 0 0 1-.085-.104L4 11.746v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.359 4.359 0 0 1-.355-.508Zm2.328 3.25c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm-5 0c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm3.313-6.185c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z'/%3E%3C/g%3E%3C/svg%3E`,cursor:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.58206 9.58206) scale(1.86816)' fill='%23000000'%3E%3Ctitle%3ECursor%3C/title%3E%3Cpath d='M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23'/%3E%3C/g%3E%3C/svg%3E`,perplexity:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.44238 9.44238) scale(1.8798)' fill='%231FB8CC'%3E%3Ctitle%3EPerplexity%3C/title%3E%3Cpath d='M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z'/%3E%3C/g%3E%3C/svg%3E`,ollama:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(7.85835 7.85835) scale(2.0118)' fill='%23000000'%3E%3Ctitle%3EOllama%3C/title%3E%3Cpath d='M16.361 10.26a.894.894 0 0 0-.558.47l-.072.148.001.207c0 .193.004.217.059.353.076.193.152.312.291.448.24.238.51.3.872.205a.86.86 0 0 0 .517-.436.752.752 0 0 0 .08-.498c-.064-.453-.33-.782-.724-.897a1.06 1.06 0 0 0-.466 0zm-9.203.005c-.305.096-.533.32-.65.639a1.187 1.187 0 0 0-.06.52c.057.309.31.59.598.667.362.095.632.033.872-.205.14-.136.215-.255.291-.448.055-.136.059-.16.059-.353l.001-.207-.072-.148a.894.894 0 0 0-.565-.472 1.02 1.02 0 0 0-.474.007Zm4.184 2c-.131.071-.223.25-.195.383.031.143.157.288.353.407.105.063.112.072.117.136.004.038-.01.146-.029.243-.02.094-.036.194-.036.222.002.074.07.195.143.253.064.052.076.054.255.059.164.005.198.001.264-.03.169-.082.212-.234.15-.525-.052-.243-.042-.28.087-.355.137-.08.281-.219.324-.314a.365.365 0 0 0-.175-.48.394.394 0 0 0-.181-.033c-.126 0-.207.03-.355.124l-.085.053-.053-.032c-.219-.13-.259-.145-.391-.143a.396.396 0 0 0-.193.032zm.39-2.195c-.373.036-.475.05-.654.086-.291.06-.68.195-.951.328-.94.46-1.589 1.226-1.787 2.114-.04.176-.045.234-.045.53 0 .294.005.357.043.524.264 1.16 1.332 2.017 2.714 2.173.3.033 1.596.033 1.896 0 1.11-.125 2.064-.727 2.493-1.571.114-.226.169-.372.22-.602.039-.167.044-.23.044-.523 0-.297-.005-.355-.045-.531-.288-1.29-1.539-2.304-3.072-2.497a6.873 6.873 0 0 0-.855-.031zm.645.937a3.283 3.283 0 0 1 1.44.514c.223.148.537.458.671.662.166.251.26.508.303.82.02.143.01.251-.043.482-.08.345-.332.705-.672.957a3.115 3.115 0 0 1-.689.348c-.382.122-.632.144-1.525.138-.582-.006-.686-.01-.853-.042-.57-.107-1.022-.334-1.35-.68-.264-.28-.385-.535-.45-.946-.03-.192.025-.509.137-.776.136-.326.488-.73.836-.963.403-.269.934-.46 1.422-.512.187-.02.586-.02.773-.002zm-5.503-11a1.653 1.653 0 0 0-.683.298C5.617.74 5.173 1.666 4.985 2.819c-.07.436-.119 1.04-.119 1.503 0 .544.064 1.24.155 1.721.02.107.031.202.023.208a8.12 8.12 0 0 1-.187.152 5.324 5.324 0 0 0-.949 1.02 5.49 5.49 0 0 0-.94 2.339 6.625 6.625 0 0 0-.023 1.357c.091.78.325 1.438.727 2.04l.13.195-.037.064c-.269.452-.498 1.105-.605 1.732-.084.496-.095.629-.095 1.294 0 .67.009.803.088 1.266.095.555.288 1.143.503 1.534.071.128.243.393.264.407.007.003-.014.067-.046.141a7.405 7.405 0 0 0-.548 1.873c-.062.417-.071.552-.071.991 0 .56.031.832.148 1.279L3.42 24h1.478l-.05-.091c-.297-.552-.325-1.575-.068-2.597.117-.472.25-.819.498-1.296l.148-.29v-.177c0-.165-.003-.184-.057-.293a.915.915 0 0 0-.194-.25 1.74 1.74 0 0 1-.385-.543c-.424-.92-.506-2.286-.208-3.451.124-.486.329-.918.544-1.154a.787.787 0 0 0 .223-.531c0-.195-.07-.355-.224-.522a3.136 3.136 0 0 1-.817-1.729c-.14-.96.114-2.005.69-2.834.563-.814 1.353-1.336 2.237-1.475.199-.033.57-.028.776.01.226.04.367.028.512-.041.179-.085.268-.19.374-.431.093-.215.165-.333.36-.576.234-.29.46-.489.822-.729.413-.27.884-.467 1.352-.561.17-.035.25-.04.569-.04.319 0 .398.005.569.04a4.07 4.07 0 0 1 1.914.997c.117.109.398.457.488.602.034.057.095.177.132.267.105.241.195.346.374.43.14.068.286.082.503.045.343-.058.607-.053.943.016 1.144.23 2.14 1.173 2.581 2.437.385 1.108.276 2.267-.296 3.153-.097.15-.193.27-.333.419-.301.322-.301.722-.001 1.053.493.539.801 1.866.708 3.036-.062.772-.26 1.463-.533 1.854a2.096 2.096 0 0 1-.224.258.916.916 0 0 0-.194.25c-.054.109-.057.128-.057.293v.178l.148.29c.248.476.38.823.498 1.295.253 1.008.231 2.01-.059 2.581a.845.845 0 0 0-.044.098c0 .006.329.009.732.009h.73l.02-.074.036-.134c.019-.076.057-.3.088-.516.029-.217.029-1.016 0-1.258-.11-.875-.295-1.57-.597-2.226-.032-.074-.053-.138-.046-.141.008-.005.057-.074.108-.152.376-.569.607-1.284.724-2.228.031-.26.031-1.378 0-1.628-.083-.645-.182-1.082-.348-1.525a6.083 6.083 0 0 0-.329-.7l-.038-.064.131-.194c.402-.604.636-1.262.727-2.04a6.625 6.625 0 0 0-.024-1.358 5.512 5.512 0 0 0-.939-2.339 5.325 5.325 0 0 0-.95-1.02 8.097 8.097 0 0 1-.186-.152.692.692 0 0 1 .023-.208c.208-1.087.201-2.443-.017-3.503-.19-.924-.535-1.658-.98-2.082-.354-.338-.716-.482-1.15-.455-.996.059-1.8 1.205-2.116 3.01a6.805 6.805 0 0 0-.097.726c0 .036-.007.066-.015.066a.96.96 0 0 1-.149-.078A4.857 4.857 0 0 0 12 3.03c-.832 0-1.687.243-2.456.698a.958.958 0 0 1-.148.078c-.008 0-.015-.03-.015-.066a6.71 6.71 0 0 0-.097-.725C8.997 1.392 8.337.319 7.46.048a2.096 2.096 0 0 0-.585-.041Zm.293 1.402c.248.197.523.759.682 1.388.03.113.06.244.069.292.007.047.026.152.041.233.067.365.098.76.102 1.24l.002.475-.12.175-.118.178h-.278c-.324 0-.646.041-.954.124l-.238.06c-.033.007-.038-.003-.057-.144a8.438 8.438 0 0 1 .016-2.323c.124-.788.413-1.501.696-1.711.067-.05.079-.049.157.013zm9.825-.012c.17.126.358.46.498.888.28.854.36 2.028.212 3.145-.019.14-.024.151-.057.144l-.238-.06a3.693 3.693 0 0 0-.954-.124h-.278l-.119-.178-.119-.175.002-.474c.004-.669.066-1.19.214-1.772.157-.623.434-1.185.68-1.382.078-.062.09-.063.159-.012z'/%3E%3C/g%3E%3C/svg%3E`,huggingface:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg transform='translate(9.93545 9.93545) scale(1.83871)' fill='%23FFD21E'%3E%3Ctitle%3EHugging Face%3C/title%3E%3Cpath d='M12.025 1.13c-5.77 0-10.449 4.647-10.449 10.378 0 1.112.178 2.181.503 3.185.064-.222.203-.444.416-.577a.96.96 0 0 1 .524-.15c.293 0 .584.124.84.284.278.173.48.408.71.694.226.282.458.611.684.951v-.014c.017-.324.106-.622.264-.874s.403-.487.762-.543c.3-.047.596.06.787.203s.31.313.4.467c.15.257.212.468.233.542.01.026.653 1.552 1.657 2.54.616.605 1.01 1.223 1.082 1.912.055.537-.096 1.059-.38 1.572.637.121 1.294.187 1.967.187.657 0 1.298-.063 1.921-.178-.287-.517-.44-1.041-.384-1.581.07-.69.465-1.307 1.081-1.913 1.004-.987 1.647-2.513 1.657-2.539.021-.074.083-.285.233-.542.09-.154.208-.323.4-.467a1.08 1.08 0 0 1 .787-.203c.359.056.604.29.762.543s.247.55.265.874v.015c.225-.34.457-.67.683-.952.23-.286.432-.52.71-.694.257-.16.547-.284.84-.285a.97.97 0 0 1 .524.151c.228.143.373.388.43.625l.006.04a10.3 10.3 0 0 0 .534-3.273c0-5.731-4.678-10.378-10.449-10.378M8.327 6.583a1.5 1.5 0 0 1 .713.174 1.487 1.487 0 0 1 .617 2.013c-.183.343-.762-.214-1.102-.094-.38.134-.532.914-.917.71a1.487 1.487 0 0 1 .69-2.803m7.486 0a1.487 1.487 0 0 1 .689 2.803c-.385.204-.536-.576-.916-.71-.34-.12-.92.437-1.103.094a1.487 1.487 0 0 1 .617-2.013 1.5 1.5 0 0 1 .713-.174m-10.68 1.55a.96.96 0 1 1 0 1.921.96.96 0 0 1 0-1.92m13.838 0a.96.96 0 1 1 0 1.92.96.96 0 0 1 0-1.92M8.489 11.458c.588.01 1.965 1.157 3.572 1.164 1.607-.007 2.984-1.155 3.572-1.164.196-.003.305.12.305.454 0 .886-.424 2.328-1.563 3.202-.22-.756-1.396-1.366-1.63-1.32q-.011.001-.02.006l-.044.026-.01.008-.03.024q-.018.017-.035.036l-.032.04a1 1 0 0 0-.058.09l-.014.025q-.049.088-.11.19a1 1 0 0 1-.083.116 1.2 1.2 0 0 1-.173.18q-.035.029-.075.058a1.3 1.3 0 0 1-.251-.243 1 1 0 0 1-.076-.107c-.124-.193-.177-.363-.337-.444-.034-.016-.104-.008-.2.022q-.094.03-.216.087-.06.028-.125.063l-.13.074q-.067.04-.136.086a3 3 0 0 0-.135.096 3 3 0 0 0-.26.219 2 2 0 0 0-.12.121 2 2 0 0 0-.106.128l-.002.002a2 2 0 0 0-.09.132l-.001.001a1.2 1.2 0 0 0-.105.212q-.013.036-.024.073c-1.139-.875-1.563-2.317-1.563-3.203 0-.334.109-.457.305-.454m.836 10.354c.824-1.19.766-2.082-.365-3.194-1.13-1.112-1.789-2.738-1.789-2.738s-.246-.945-.806-.858-.97 1.499.202 2.362c1.173.864-.233 1.45-.685.64-.45-.812-1.683-2.896-2.322-3.295s-1.089-.175-.938.647 2.822 2.813 2.562 3.244-1.176-.506-1.176-.506-2.866-2.567-3.49-1.898.473 1.23 2.037 2.16c1.564.932 1.686 1.178 1.464 1.53s-3.675-2.511-4-1.297c-.323 1.214 3.524 1.567 3.287 2.405-.238.839-2.71-1.587-3.216-.642-.506.946 3.49 2.056 3.522 2.064 1.29.33 4.568 1.028 5.713-.624m5.349 0c-.824-1.19-.766-2.082.365-3.194 1.13-1.112 1.789-2.738 1.789-2.738s.246-.945.806-.858.97 1.499-.202 2.362c-1.173.864.233 1.45.685.64.451-.812 1.683-2.896 2.322-3.295s1.089-.175.938.647-2.822 2.813-2.562 3.244 1.176-.506 1.176-.506 2.866-2.567 3.49-1.898-.473 1.23-2.037 2.16c-1.564.932-1.686 1.178-1.464 1.53s3.675-2.511 4-1.297c.323 1.214-3.524 1.567-3.287 2.405.238.839 2.71-1.587 3.216-.642.506.946-3.49 2.056-3.522 2.064-1.29.33-4.568 1.028-5.713-.624'/%3E%3C/g%3E%3C/svg%3E`};function VCt(e){return e&&(BCt[e]??e)}export{Yre as C,Jre as S,ode as _,Ryt as a,ks as b,vCt as c,dGe as d,Tpe as f,cde as g,Jue as h,k9 as i,fCt as l,Efe as m,VCt as n,Z9 as o,mpe as p,bbt as r,q9 as s,zCt as t,Qit as u,Yue as v,Ure as x,Foe as y};