scrum-skills 0.3.4 → 0.3.6

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 (33) hide show
  1. package/.agents/skills/scrum-planning/references/schema.md +3 -2
  2. package/.agents/skills/scrum-sprint/SKILL.md +1 -0
  3. package/README.md +3 -3
  4. package/assets/board/200.html +1 -1
  5. package/assets/board/404.html +1 -1
  6. package/assets/board/_nuxt/D5AHQ-N9.js +3 -0
  7. package/assets/board/_nuxt/D_ct-Stz.js +1 -1
  8. package/assets/board/_nuxt/{BU8vdZUs.js → Dh0tYNMD.js} +61 -50
  9. package/assets/board/_nuxt/NtgBvUDk.js +1 -0
  10. package/assets/board/_nuxt/builds/latest.json +1 -1
  11. package/assets/board/_nuxt/builds/meta/36a46dc2-c9fd-444c-a454-4487435c77b9.json +1 -0
  12. package/assets/board/_nuxt/{entry.BBv-sBnP.css → entry.Birf8F5Z.css} +1 -1
  13. package/assets/board/_nuxt/last-change._l3ydJ-o.css +1 -0
  14. package/assets/board/_nuxt/milestones.Bp6jmeAm.css +1 -0
  15. package/assets/board/burndown/index.html +1 -1
  16. package/assets/board/diagrams/index.html +1 -1
  17. package/assets/board/epics/index.html +1 -1
  18. package/assets/board/gantt/index.html +1 -1
  19. package/assets/board/index.html +1 -1
  20. package/assets/board/last-change/index.html +1 -1
  21. package/assets/board/milestones/index.html +1 -1
  22. package/assets/board/tests/index.html +1 -1
  23. package/bin/scrum-skills.mjs +0 -0
  24. package/docs/ai-assistant-guide.md +2 -1
  25. package/package.json +41 -42
  26. package/tools/ai.mjs +46 -2
  27. package/tools/serve.mjs +3 -1
  28. package/tools/validate.mjs +4 -2
  29. package/assets/board/_nuxt/Dmg78zOY.js +0 -3
  30. package/assets/board/_nuxt/Utb4TVOl.js +0 -1
  31. package/assets/board/_nuxt/builds/meta/08bebe14-0f1b-4d2a-8de4-e84e122d10e9.json +0 -1
  32. package/assets/board/_nuxt/last-change.1Su4GrCN.css +0 -1
  33. package/assets/board/_nuxt/milestones.U0xKCsEo.css +0 -1
@@ -1,23 +1,23 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C-fx-vFO.js","./DJM7u8P3.js","./BxuBMtk_.js","./DUgGsde6.js","./BrWE0up6.js","./D_ct-Stz.js","./DK3Fl9T5.js","./P6qlvBHA.js","./CFCM18fF.js","./BW3xJdEx.js","./CdPGFZyy.js","./SrNUvNwO.js","./Bubk0xn-.js","./CI0scS-N.js","./DxBwVNyP.js","./BygIGL69.js","./SywdkA98.js","./_id_.B6iqDPxe.css","./CoipdpDu.js","./OKKaKILz.js","./BE6t7Q2m.js","./DqUSsCJ2.js","./q_8bxRMt.js","./BQgzP7ur.js","./CgQ30j_6.js","./C9MgRdhu.js","./DzmVW5-D.js","./B0C2jsdk.js","./CYGiZn-X.js","./DFQDFspC.js","./C3SpAhCW.js","./Cdf_T8Xa.js","./DV4ti-Pq.js","./CXG7GZes.js","./BY36DFyj.js","./DLr85ebo.js","./Dki9VkAL.js","./burndown.Do6IbM6o.css","./DwzGxoX2.js","./diagrams.pyhqNtmr.css","./BmrSh0rL.js","./epics.Dmessplu.css","./Cajxc4Dw.js","./gantt.Dmp00GUo.css","./Dmg78zOY.js","./last-change.1Su4GrCN.css","./Utb4TVOl.js","./milestones.U0xKCsEo.css","./DwCE3305.js","./tests.dXlUX16A.css","./b7xtxFRl.js","./pages.Dbj2IVk8.css","./I-sGtDIB.js","./BuBzMkFZ.js","./D166WVUG.js","./DuRiEXn4.js","./DHihWhf5.js","./BRZIF_wo.js","./Zv9-SOQF.js","./D5i92OZO.js","./CJs9B42o.js","./DbWAComO.js","./C8qB5llI.js","./jbri6q1p.js","./Lozm7hhE.js","./DlNJhOoc.js","./DbwlcHAt.js","./CCA81-4P.js","./B3LKy6o2.js","./BZlZD94i.js","./5okfNy5D.js","./4gQF_HS3.js","./BZvXNwev.js","./COmtTtfB.js","./C6o03JHe.js","./DU6ArlUN.js","./Ccgv3lDj.js","./BlKmZhhF.js","./Cq7hsCKB.js","./C4WdPP6K.js","./By1KXXLR.js","./BiWrMOsL.js","./CPYm4J_K.js","./D6dUp4Nm.js","./C2YPmTzt.js","./TBIRpVLG.js","./Bs52qkgk.js","./CGXljzd_.js","./DOMM1wfl.js","./CaE8VlUp.js","./C3ZRWz5L.js","./BkoKCNUY.js","./MS7CGmCB.js","./CcGiNUgA.js","./B1j6UC4U.js","./Ck0-FqVI.js","./CkWKLtjO.js","./DHX2tw9J.js","./Du2F4WXh.js","./TlTrMIMm.js","./MMsTMkcB.js","./D4Dpzo9e.js","./DqG7CtD4.js","./BLvbupFS.js","./JU9-x68N.js","./BmBpmU73.js","./BAQQngAq.js","./D1V1gysQ.js","./error-404.CgJNdpB5.css","./BGwhkDRl.js","./error-500.WYSoH44y.css"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./DK3Fl9T5.js";import{_ as t,b as n,c as r,d as i,f as a,h as o,i as s,m as c,n as l,o as u,s as d,t as f,u as p,v as m,y as h}from"./CFCM18fF.js";import{$ as g,A as _,B as v,C as y,D as b,E as x,F as S,G as C,H as w,I as ee,J as te,K as ne,L as re,M as ie,N as ae,O as oe,P as se,Q as ce,R as le,S as ue,T as de,U as fe,V as pe,W as me,X as he,Y as ge,Z as _e,_ as T,_t as ve,a as ye,b as be,ct as xe,d as Se,dt as Ce,et as we,f as Te,ft as Ee,g as De,h as Oe,i as ke,it as Ae,j as je,k as Me,lt as Ne,m as Pe,mt as Fe,nt as Ie,o as Le,ot as Re,p as ze,pt as Be,q as Ve,r as He,rt as Ue,s as We,t as Ge,tt as Ke,u as qe,ut as Je,v as Ye,vt as Xe,w as Ze,x as Qe,y as $e,z as et}from"./DxBwVNyP.js";import{c as tt,i as nt,o as rt,r as it,s as at,t as ot}from"./BygIGL69.js";import{$ as st,A as ct,At as E,B as lt,C as ut,Dt as dt,E as ft,Et as pt,F as mt,G as ht,Ht as gt,I as _t,Jt as D,K as vt,M as O,N as yt,O as bt,Ot as xt,Q as St,S as k,St as Ct,T as A,Tt as wt,U as j,V as Tt,W as Et,Xt as M,Y as Dt,Yt as Ot,_ as kt,_t as At,a as jt,at as Mt,b as N,ct as Nt,d as P,et as Pt,f as F,gt as Ft,ht as It,i as I,j as Lt,k as Rt,l as zt,lt as L,m as R,mt as Bt,nt as Vt,o as Ht,ot as Ut,p as z,q as B,qt as V,rt as Wt,s as Gt,tt as Kt,u as H,ut as qt,vt as Jt,wt as Yt,x as U,xt as W,y as Xt,yt as Zt,z as Qt}from"./BxuBMtk_.js";import{a as $t,d as en,i as tn,l as nn,n as rn,o as an,p as on,r as sn}from"./SywdkA98.js";import{a as cn,c as ln,d as un,f as dn,i as fn,l as pn,n as mn,o as hn,r as gn,s as _n,t as vn,u as yn}from"./SrNUvNwO.js";import{a as bn,o as xn,r as Sn,s as Cn,t as wn}from"./CI0scS-N.js";import{a as G,i as Tn,r as En}from"./D_ct-Stz.js";import{t as Dn}from"./P6qlvBHA.js";import{t as On}from"./CdPGFZyy.js";import{t as kn}from"./DJM7u8P3.js";import{t as An}from"./BW3xJdEx.js";import{c as jn,d as Mn,h as Nn,i as Pn,l as Fn,m as In,n as Ln,s as Rn,t as zn}from"./BE6t7Q2m.js";import{t as Bn}from"./DqUSsCJ2.js";import{t as K}from"./DFQDFspC.js";import{S as Vn,_ as Hn,a as Un,c as Wn,d as Gn,f as Kn,g as qn,h as Jn,i as Yn,l as Xn,m as Zn,n as Qn,o as $n,p as er,r as tr,s as nr,t as rr,u as ir,v as ar,x as or,y as sr}from"./BQgzP7ur.js";import{c as cr,i as lr,l as ur,o as dr,p as fr,r as pr,s as mr,t as hr}from"./C9MgRdhu.js";import{n as gr,r as _r,t as vr}from"./q_8bxRMt.js";import{t as yr}from"./DzmVW5-D.js";import{C as br,T as xr,a as Sr,b as Cr,g as wr,h as Tr,m as Er,p as Dr,r as Or}from"./BrWE0up6.js";import{n as kr,t as Ar}from"./CYGiZn-X.js";import{n as jr,r as Mr,t as Nr}from"./CgQ30j_6.js";import{t as Pr}from"./Dki9VkAL.js";import{n as Fr}from"./B0C2jsdk.js";import{i as Ir,n as Lr,t as Rr}from"./DLr85ebo.js";import{t as zr}from"./DUgGsde6.js";import{i as Br,n as Vr,t as Hr}from"./Cdf_T8Xa.js";import{a as Ur,i as Wr,n as Gr,r as Kr,t as qr}from"./CXG7GZes.js";import{n as Jr,t as Yr}from"./DV4ti-Pq.js";import{t as Xr}from"./C3SpAhCW.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Zr=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Qr=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,$r=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ei(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t)ti(e);else return t}function ti(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ni(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!$r.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Zr.test(e)||Qr.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,ei)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var ri=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function ii(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new ri(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var ai=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function oi(e=`GET`){return ai.has(e.toUpperCase())}function si(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var ci=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),li=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function ui(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return li.test(t)?`json`:t===`text/event-stream`?`stream`:ci.has(t)||t.startsWith(`text/`)?`text`:`blob`}function di(e,t,n,r){let i=fi(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function fi(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function pi(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}var mi=new Set([408,409,425,429,500,502,503,504]),hi=new Set([101,204,205,304]);function gi(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!oi(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):mi.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=ii(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:di(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await pi(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=nn(s.request,s.options.baseURL)),s.options.query&&(s.request=en(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&oi(s.options.method)){if(si(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`))}let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await pi(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!hi.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||ui(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||ni;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await pi(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await pi(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>gi({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var _i=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),vi=_i.fetch?(...e)=>_i.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),yi=_i.Headers,bi=_i.AbortController,xi=gi({fetch:vi,Headers:yi,AbortController:bi}),Si=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Ci=()=>Si().app,wi=()=>Ci().baseURL,Ti=()=>Ci().buildAssetsDir,Ei=(...e)=>$t(Di(),Ti(),...e),Di=(...e)=>{let t=Ci(),n=t.cdnURL||t.baseURL;return e.length?$t(n,...e):n};globalThis.__buildAssetsURL=Ei,globalThis.__publicAssetsURL=Di,globalThis.$fetch||(globalThis.$fetch=xi.create({baseURL:wi()}));var Oi=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);function ki(e,t){t.push(r),e.vueApp.use(t);let n=!0,i=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||i()}),e.hooks.hook(`app:error`,i),e.hooks.hook(`app:suspense:resolve`,i);let a=t.push.bind(t);t.push=((t,n)=>{let r=a(t,n),i=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(i):i()},r})}function Ai(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function ji(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>Ai(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}function Mi(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>Ai(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Ni=/\s+/;function Pi(e={}){return t=>Li(t,e)}function Fi(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Ii(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Ni))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Li(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!Fi(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(pn(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Ii(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=ln(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};e.tag===`meta`&&e._d&&hn(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`?(n.title=e.textContent,o(`title:`,()=>n.title=d._t)):(i.$el=d._e.get(r),i.$el?c(i):un.has(e.tag)&&p.push(i))}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!un.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=_n({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=fn(i)||cn(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,pn(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||Fi(e))&&Li(e,t),a}var Ri=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(dn[e.tagPriority]||0);function zi(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Pi({document:e.document}),n=Mi(ji(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Ri,init:[]}),yn(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function Bi(e,t){return t&&typeof e==`function`&&(e.key=t),e}var Vi=/\\/g,Hi=/</g,Ui=/"/g,Wi=/%\w+(?:\.\w+)?/g,Gi=`%separator`;function Ki(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0){let e=String(typeof r==`number`?r:r||``);return n?e.replace(Vi,`\\\\`).replace(Hi,`\\u003C`).replace(Ui,`\\"`):e}}function qi(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(Wi);if(!a)return e;let o=e.includes(Gi);return e=e.replace(Wi,e=>{if(e===Gi||!a.includes(e))return e;let n=Ki(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(Gi).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var Ji=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Yi=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),Xi=Bi({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=Yi(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=Yi(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Ji))}}}),Zi=Bi({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function Qi(e){return typeof e?.then==`function`}var $i=256;function ea(e,t){if(t===e.length)return;if(t===$i){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=na(e[t]);n[t]=i,r||=Qi(i)}return r?n:void 0}let n=na(e[t]);if(Qi(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=na(e[n]);return r}let r=ea(e,t+1);return r&&(r[t]=n),r}function ta(e,t,n){if(n===t.length)return;if(n===$i){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=na(e[t[n]]);r[n]=a,i||=Qi(a)}return i?r:void 0}let r=na(e[t[n]]);if(Qi(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=na(e[t[r]]);return i}let i=ta(e,t,n+1);return i&&(i[n]=r),i}function na(e){if(typeof e==`function`)return e;if(Qi(e))return Promise.resolve(e).then(na);if(Array.isArray(e)){let t=ea(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=ta(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var ra=Bi(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=na(a);Qi(o)?(t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})):t.delete(i)}}}}},`promises`),ia={meta:`content`,link:`href`,htmlAttrs:`lang`},aa=[`innerHTML`,`textContent`];function oa(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?qi(e,t,n,r):e}var sa=Bi(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=oa(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=ia[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=oa(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of aa)typeof e[t]==`string`&&(e[t]=oa(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=oa(n.textContent,e._templateParams,e._separator))}}}),`template-params`);function ca(e={}){let t=Pi(),n,r=0;return n=zi({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=gn(n),n}var la={disableDefaults:!0,plugins:[Zi,ra,sa,Xi]},ua=s({name:`nuxt:head`,enforce:`pre`,setup(e){ki(e,ca(la))}}),da=/(:\w+)\([^)]+\)/g,fa=/(:\w+)[?+*]/g,pa=/:\w+/g,ma=(e,t)=>t.path.replace(da,`$1`).replace(fa,`$1`).replace(pa,t=>e.params[t.slice(1)]?.toString()||``),ha=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&ma(e.route,n));return typeof r==`function`?r(e.route):r},ga=(e,t)=>({default:()=>e?ft(jt,e===!0?{}:e,t):t});function _a(e){return Array.isArray(e)?e:[e]}var va=()=>({}),ya=()=>location.protocol+`//`+location.host;function ba(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),he(n,``)}return he(n,e)+r+i}function xa(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=ba(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Pe.pop,direction:u?u>0?Te.forward:Te.back:Te.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(T({},e.state,{scroll:Ye()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Sa(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Ye():null}}function Ca(e){let{history:t,location:n}=window,r={value:ba(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ya()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,T({},t.state,Sa(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=T({},i.value,t.state,{forward:e,scroll:Ye()});a(o.current,o,!0),a(e,T({},Sa(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function wa(e){e=et(e);let t=Ca(e),n=xa(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=T({location:``,base:e,go:r,createHref:$e.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Ta=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Ea=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Ea||{}),Da={type:Ta.Static,value:``},Oa=/[a-zA-Z0-9_]/;function ka(e){if(!e)return[[]];if(e===`/`)return[[Da]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Ea.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Ea.Static?a.push({type:Ta.Static,value:l}):n===Ea.Param||n===Ea.ParamRegExp||n===Ea.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Ta.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)if(c=e[s++],c===`\\`&&n!==Ea.ParamRegExp)r=n,n=Ea.EscapeNext;else switch(n){case Ea.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Ea.Param):f();break;case Ea.EscapeNext:f(),n=r;break;case Ea.Param:c===`(`?n=Ea.ParamRegExp:Oa.test(c)?f():(d(),n=Ea.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Ea.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Ea.ParamRegExpEnd:u+=c;break;case Ea.ParamRegExpEnd:d(),n=Ea.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===Ea.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Aa=`[^/]+?`,ja={sensitive:!1,strict:!1,start:!0,end:!0},Ma=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(Ma||{}),Na=/[.+*?^${}()[\]/\\]/g;function Pa(e,t){let n=T({},ja,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Ma.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Ma.Segment+(n.sensitive?Ma.BonusCaseSensitive:0);if(o.type===Ta.Static)r||(i+=`/`),i+=o.value.replace(Na,`\\$&`),s+=Ma.Static;else if(o.type===Ta.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Aa;if(u!==Aa){s+=Ma.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Ma.Dynamic,c&&(s+=Ma.BonusOptional),n&&(s+=Ma.BonusRepeatable),u===`.*`&&(s+=Ma.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Ma.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){r&&n.endsWith(`/`)||(n+=`/`),r=!1;for(let e of i)if(e.type===Ta.Static)n+=e.value;else if(e.type===Ta.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Me(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Me(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Fa(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Ma.Static+Ma.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ma.Static+Ma.Segment?1:-1:0}function Ia(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Fa(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(La(r))return 1;if(La(i))return-1}return i.length-r.length}function La(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Ra={strict:!1,end:!0,sensitive:!1};function za(e,t,n){let r=Pa(ka(e.path),n),i=T(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Ba(e,t){let n=[],r=new Map;t=re(Ra,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ha(e);s.aliasOf=r&&r.record;let l=re(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ha(T({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=za(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Wa(d)&&o(e.name)),Ja(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:le}function o(e){if(ie(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ka(e,n);n.splice(t,0,e),e.record.name&&!Wa(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw be(Se.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=T(Va(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Va(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw be(Se.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=T({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Ga(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Va(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ha(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ua(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ua(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ga(e){return e.reduce((e,t)=>T(e,t.meta),{})}function Ka(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ia(e,t[i])<0?r=i:n=i+1}let i=qa(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function qa(e){let t=e;for(;t=t.parent;)if(Ja(t)&&Ia(e,t)===0)return t}function Ja({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ya(e){let t=bt(me),n=bt(fe),r=H(()=>{let n=E(e.to);return t.resolve(n)}),i=H(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(S.bind(null,i));if(o>-1)return o;let s=eo(e[t-2]);return t>1&&eo(i)===s&&a[a.length-1].path!==s?a.findIndex(S.bind(null,e[t-2])):o}),a=H(()=>i.value>-1&&$a(n.params,r.value.params)),o=H(()=>i.value>-1&&i.value===n.matched.length-1&&se(n.params,r.value.params));function s(n={}){if(Qa(n)){let n=t[E(e.replace)?`replace`:`push`](E(e.to)).catch(le);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:H(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Xa(e){return e.length===1?e[0]:e}var Za=k({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ya,setup(e,{slots:t}){let n=Zt(Ya(e)),{options:r}=bt(me),i=H(()=>({[to(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[to(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Xa(t.default(n));return e.custom?r:ft(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Qa(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $a(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Me(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function eo(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var to=(e,t,n)=>e??t??n,no=k({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=bt(C),i=H(()=>e.route||r.value),a=bt(ce,0),o=H(()=>{let e=E(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=H(()=>i.value.matched[o.value]);Et(ce,H(()=>o.value+1)),Et(ee,s),Et(C,i);let c=W();return Mt(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&S(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return ro(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=ft(l,T({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return ro(n.default,{Component:f,route:r})||f}}});function ro(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var io=no;function ao(e){let t=Ba(e.routes,e),n=e.parseQuery||pe,r=e.stringifyQuery||te,i=e.history,a=_e(),o=_e(),s=_e(),c=Yt(Oe),l=Oe;_&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=De.bind(null,e=>``+e),d=De.bind(null,y),f=De.bind(null,Qe);function p(e,n){let r,i;return ie(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function S(e,a){if(a=T({},a||c.value),typeof e==`string`){let r=w(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return T(r,o,{params:f(o.params),hash:Qe(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=T({},e,{path:w(n,e.path,a.path).path});else{let t=T({},e.params);for(let e in t)t[e]??delete t[e];o=T({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=ge(r,T({},e,{hash:ue(l),path:s.path})),m=i.createHref(p);return T({fullPath:p,hash:l,query:r===te?v(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function ee(e){return typeof e==`string`?w(n,e,c.value.path):T({},e)}function re(e,t){if(l!==e)return be(Se.NAVIGATION_CANCELLED,{from:t,to:e})}function se(e){return ve(e)}function ce(e){return se(T(ee(e),{replace:!0}))}function he(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=ee(i):{path:i},i.params={}),T({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function ve(e,t){let n=l=S(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=he(n,i);if(u)return ve(T(ee(u),{state:typeof u==`object`?T({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ae(r,i,n)&&(f=be(Se.NAVIGATION_DUPLICATED,{to:d,from:i}),ze(i,i,!0,!1)),(f?Promise.resolve(f):Ce(d,i)).catch(e=>je(e)?je(e,Se.NAVIGATION_GUARD_REDIRECT)?e:Re(e):Ie(e,d,i)).then(e=>{if(e){if(je(e,Se.NAVIGATION_GUARD_REDIRECT))return ve(T({replace:s},ee(e.to),{state:typeof e.to==`object`?T({},a,e.to.state):a,force:o}),t||d)}else e=Te(d,i,!0,s,a);return we(d,i,e),e})}function ye(e,t){let n=re(e,t);return n?Promise.reject(n):Promise.resolve()}function xe(e){let t=Ue.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function Ce(e,t){let n,[r,i,s]=Ze(e,t);n=de(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(oe(r,e,t))});let c=ye.bind(null,e,t);return n.push(c),Ge(n).then(()=>{n=[];for(let r of a.list())n.push(oe(r,e,t));return n.push(c),Ge(n)}).then(()=>{n=de(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(oe(r,e,t))});return n.push(c),Ge(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(Me(r.beforeEnter))for(let i of r.beforeEnter)n.push(oe(i,e,t));else n.push(oe(r.beforeEnter,e,t))}return n.push(c),Ge(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=de(s,`beforeRouteEnter`,e,t,xe),n.push(c),Ge(n))).then(()=>{n=[];for(let r of o.list())n.push(oe(r,e,t));return n.push(c),Ge(n)}).catch(e=>je(e,Se.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function we(e,t,n){s.list().forEach(r=>xe(()=>r(e,t,n)))}function Te(e,t,n,r,a){let o=re(e,t);if(o)return o;let s=t===Oe,l=_?history.state:{};n&&(r||s?i.replace(e.fullPath,T({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ze(e,t,n,s),Re()}let Ee;function ke(){Ee||=i.listen((e,t,n)=>{if(!We.listening)return;let r=S(e),a=he(r,We.currentRoute.value);if(a){ve(T(a,{replace:!0,force:!0}),r).catch(le);return}l=r;let o=c.value;_&&ne(b(o.fullPath,n.delta),Ye()),Ce(r,o).catch(e=>je(e,Se.NAVIGATION_ABORTED|Se.NAVIGATION_CANCELLED)?e:je(e,Se.NAVIGATION_GUARD_REDIRECT)?(ve(T(ee(e.to),{force:!0}),r).then(e=>{je(e,Se.NAVIGATION_ABORTED|Se.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Pe.pop&&i.go(-1,!1)}).catch(le),Promise.reject()):(n.delta&&i.go(-n.delta,!1),Ie(e,r,o))).then(e=>{e||=Te(r,o,!1),e&&(n.delta&&!je(e,Se.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Pe.pop&&je(e,Se.NAVIGATION_ABORTED|Se.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),we(r,o,e)}).catch(le)})}let Ae=_e(),Ne=_e(),Fe;function Ie(e,t,n){Re(e);let r=Ne.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function Le(){return Fe&&c.value!==Oe?Promise.resolve():new Promise((e,t)=>{Ae.add([e,t])})}function Re(e){return Fe||(Fe=!e,ke(),Ae.list().forEach(([t,n])=>e?n(e):t()),Ae.reset()),e}function ze(t,n,r,i){let{scrollBehavior:a}=e;if(!_||!a)return Promise.resolve();let o=!r&&x(b(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return yt().then(()=>a(t,n,o)).then(e=>e&&Ve(e)).catch(e=>Ie(e,t,n))}let Be=e=>i.go(e),He,Ue=new Set,We={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:S,options:e,push:se,replace:ce,go:Be,back:()=>Be(-1),forward:()=>Be(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:Ne.add,isReady:Le,install(e){e.component(`RouterLink`,Za),e.component(`RouterView`,io),e.config.globalProperties.$router=We,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>E(c)}),_&&!He&&c.value===Oe&&(He=!0,se(i.location).catch(e=>{}));let t={};for(let e in Oe)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(me,We),e.provide(fe,Ct(t)),e.provide(C,c);let n=e.unmount;Ue.add(e),e.unmount=function(){Ue.delete(e),Ue.size<1&&(l=Oe,Ee&&Ee(),Ee=null,c.value=Oe,He=!1,Fe=!1),n()}}};function Ge(e){return e.reduce((e,t)=>e.then(()=>xe(t)),Promise.resolve())}return We}var oo=Ae(async e=>{if(!e.meta?.validate)return;let t=await Promise.resolve(e.meta.validate(e));if(t!==!0)return ve({fatal:!0,status:t&&(t.status||t.statusCode)||404,statusText:t&&(t.statusText||t.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})}),so=n({docsBase:m,reporters:h}),co=Oi;function lo(e){return va(e)}var uo;function fo(){let e;return e=co(Ei(`builds/meta/${d().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw so.NUXT_E5004();return e}),uo=e,e.catch(t=>{uo===e&&(uo=void 0),so.NUXT_E5002({cause:t})}),e}function po(){return uo||fo()}function mo(e){let t=typeof e==`string`?e:e.path;try{return lo(t)}catch(e){return so.NUXT_E5003({path:t,cause:e}),{}}}var ho=[oo,Ae(e=>{let t=mo({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return Be(n)?(window.location.href=n,!1):n}})],go={},_o=[{name:`story-id`,path:`/story/:id()`,component:()=>G(()=>import(`./C-fx-vFO.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)},{name:`burndown`,path:`/burndown`,component:()=>G(()=>import(`./CoipdpDu.js`),__vite__mapDeps([18,19,7,8,2,9,15,20,16,21,22,23,24,25,4,26,27,28,29,3,30,1,5,6,10,11,12,31,32,33,13,14,34,35,36,37]),import.meta.url)},{name:`diagrams`,path:`/diagrams`,component:()=>G(()=>import(`./DwzGxoX2.js`),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,39]),import.meta.url)},{name:`epics`,path:`/epics`,component:()=>G(()=>import(`./BmrSh0rL.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41]),import.meta.url)},{name:`gantt`,path:`/gantt`,component:()=>G(()=>import(`./Cajxc4Dw.js`),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,43]),import.meta.url)},{name:`last-change`,path:`/last-change`,component:()=>G(()=>import(`./Dmg78zOY.js`),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,45]),import.meta.url)},{name:`milestones`,path:`/milestones`,component:()=>G(()=>import(`./Utb4TVOl.js`),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,47]),import.meta.url)},{name:`tests`,path:`/tests`,component:()=>G(()=>import(`./DwCE3305.js`),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,49]),import.meta.url)},{name:`index`,path:`/`,component:()=>G(()=>import(`./b7xtxFRl.js`),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,10,11,12,19,15,20,16,21,22,23,24,25,26,27,28,29,30,31,32,33,13,14,34,35,36,51]),import.meta.url)}],vo=/\/(?=$|[?#])/;function yo(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),on(n,``)}let s=on(r,e),c=!n||sn(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var bo=s({name:`nuxt:router`,enforce:`pre`,async setup(e){let t=d().app.baseURL,n=Cn.history?.(t)??wa(t),r=Cn.routes?await Cn.routes(_o)??_o:_o,i,a=ao({...Cn,scrollBehavior:(e,t,n)=>{if(t===Oe)i=n;else if(Cn.scrollBehavior){if(a.options.scrollBehavior=Cn.scrollBehavior,`scrollRestoration`in window.history){let e=a.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return Cn.scrollBehavior(e,Oe,i||n)}},history:n,routes:r});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(a);let o=Yt(a.currentRoute.value);a.afterEach((e,t)=>{o.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>o.value});let s=yo(t,window.location,e.payload.path),c=on(window.location.pathname,t),l=Yt(a.currentRoute.value),u=()=>{l.value=a.currentRoute.value};a.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;n===r?ha({route:e,Component:{type:n}})===ha({route:t,Component:{type:r}})&&u():e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&u()});let f={sync:u};for(let e in l.value)Object.defineProperty(f,e,{get:()=>l.value[e],enumerable:!0});e._route=Ct(f),e._middleware||={global:[],named:{}};let p=Ue();function m(t){e._middlewareTo&&(e._middlewareTo.redirectedFrom??e._middlewareTo)===(t.redirectedFrom??t)&&delete e._middlewareTo}a.afterEach(async(t,n,r)=>{m(t),!e.isHydrating&&p.value&&!je(r,ze.aborted|ze.cancelled)&&await e.runWithContext(Ke),r&&await e.callHook(`page:loading:end`)}),a.onError(async(t,n)=>{m(n),await e.callHook(`page:loading:end`)});try{await a.isReady()}catch(t){await we(e,t)}let h=s===a.currentRoute.value.fullPath?a.currentRoute.value:a.resolve(s),g=a.currentRoute.value.fullPath,_=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&s.replace(vo,``)!==e.payload.path.replace(vo,``)&&sn(a.currentRoute.value.path,e.payload.path);u();function v(r){!e.isHydrating&&r.fullPath!==yo(t,window.location)&&n.push(r.fullPath)}a.beforeEach(t=>{if(!e.isHydrating&&va(t.path).noScripts)return window.location.assign(a.resolve(t.fullPath).href),!1}),a.beforeResolve(e=>{if(e.matched.length||sn(e.path,c))return;let n=new URL(nn(e.fullPath,t),window.location.href);if(n.origin===window.location.origin)return window.location.assign(n),!1});let y=e.payload.state._layout,b=0;a.beforeEach(async(t,n)=>{b++;try{return await x(t,n)}finally{--b===0&&delete e._processingMiddleware}});async function x(t,n){await e.callHook(`page:loading:start`),t.meta=Zt(t.meta),e.isHydrating&&y&&!It(t.meta.layout)&&(t.meta.layout=y),e._processingMiddleware=!0,e._middlewareTo=t;{let r=new Set([...ho,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of _a(t))r.add(e)}let i=mo({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await go[i]?.().then(e=>e.default||e):i;if(!r)throw Je.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||ve({status:404,statusText:`Page Not Found: ${s}`});return await e.runWithContext(()=>Ie(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Xe(i)&&i.fatal&&(await e.runWithContext(()=>Ie(i)),v(t)),i}catch(n){let r=ve(n);return r.fatal&&(await e.runWithContext(()=>Ie(r)),v(t)),r}}}}return a.afterEach((t,n,r)=>{if(t.matched.length===0&&!p.value&&!je(r,ze.aborted|ze.cancelled))return e.runWithContext(()=>Ie(ve({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in h&&(h.name=void 0),a.currentRoute.value.fullPath===g){if(_){let t=a.resolve(e.payload.path);`name`in t&&(t.name=void 0),await a.replace({...t,force:!0});let n=()=>{if(!e[`~restoreDeferredRoute`])return;e[`~restoreDeferredRoute`]=void 0;let t=a.currentRoute,n=a.resolve(s);n.matched.at(-1)===t.value.matched.at(-1)&&(n.meta=t.value.meta),t.value=n,u(),a.replace({...h,force:!0}).catch(()=>{})};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await a.replace({...h,force:!0})}a.options.scrollBehavior=Cn.scrollBehavior}catch(t){await we(e,t)}}),{provide:{router:a}}}}),xo=s(()=>{let e=Ne();Ge(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),So=s(e=>{let t;async function n(){let r;try{r=await po()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,c);try{let n=await Oi(Ei(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}Ge(()=>{t=setTimeout(n,c)})});function Co(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw Je.NUXT_E2010({path:t});if(n.protocol&&tn(n.protocol))throw Je.NUXT_E2002({toPath:t,protocol:n.protocol});let r={};try{r=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:u().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var wo=s({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&Fe(navigator.userAgent)&&Co()})}}),To=s({name:`nuxt:chunk-reload`,setup(e){let t=Ne(),n=d(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){Co({path:an(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),Eo=s({name:`nuxt:island-link-navigation`,setup(e){}}),Do=Oi;function Oo(){return Do}var ko=[`https://api.iconify.design`],Ao,jo,Mo,No;function Po(e){Ao=e}function Fo({addAPIProvider:e,_api:t,setCustomIconsLoader:n}){if(!Ao||jo===Ao)return;let r=jo=Ao,i=t.getFetch();r.resources.length&&i!==globalThis.fetch&&i!==Mo||(t.setFetch(r.fetch),Mo=r.fetch);let a=t.getAPIConfig(``),o=!a||a===No||a.resources.length===ko.length&&a.resources.every((e,t)=>e===ko[t]);r.resources.length&&o&&(e(``,{resources:r.resources}),No=t.getAPIConfig(``));for(let e of r.customCollections)e&&n(r.customIconsLoader,e)}function Io(e,t){return typeof e==`object`?e?.[t]:e}var Lo=s({name:`@nuxt/icon`,async setup(e){let t=d(),n=Dn().icon,r=Oo(),i=r.native,a=Io(n.provider,`client`),o=[];if(a===`server`){let e=t.app?.baseURL?.replace(/\/$/,``)??``;o.push(e+(n.localApiEndpoint||`/api/_nuxt_icon`)),(n.fallbackToApi===!0||n.fallbackToApi===`client-only`)&&o.push(n.iconifyApiEndpoint)}else a!==`none`&&o.push(n.iconifyApiEndpoint);async function s(e,t){try{let n=await r(o[0]+`/`+t+`.json`,{query:{icons:e.join(`,`)}});if(!n||n.prefix!==t||!n.icons)throw Error(`Invalid data`+JSON.stringify(n));return n}catch(e){return console.error(`Failed to load custom icons`,e),null}}async function c(e,t){let n=[[]],r=0;for(let t of e){let e=encodeURIComponent(t).length;r+e>2e3&&n.at(-1).length&&(n.push([]),r=0),n.at(-1).push(t),r+=e+1}let i=(await Promise.all(n.map(e=>s(e,t)))).filter(e=>!!e);return i.length?i.reduce((e,t)=>({...e,...t,icons:{...e.icons,...t.icons},aliases:{...e.aliases,...t.aliases}})):null}if(Po({resources:o,fetch:a===`none`?()=>Promise.resolve(new Response):(e,t)=>{let n=globalThis.$fetch?.native;return(i||n||globalThis.fetch)(e,t)},customIconsLoader:c,customCollections:n.customCollections||[]}),n.mode!==`svg`){let t=()=>G(()=>import(`./I-sGtDIB.js`).then(e=>e.setupIconify()),__vite__mapDeps([52,53,2,12,7,8,9]),import.meta.url).catch(()=>{});e.isHydrating?Ge(t):t()}}}),Ro=U(()=>G(()=>import(`./D166WVUG.js`).then(e=>e.default||e.default||e),__vite__mapDeps([54,7,8,2,9,20,16,33,13,14,15,3,26,4]),import.meta.url)),zo=U(()=>G(()=>import(`./DuRiEXn4.js`).then(e=>e.default||e.default||e),__vite__mapDeps([55,7,8,2,9,20,16,21,22,29,25,4,26,56,15,28,1,3,5,6,10,11,12]),import.meta.url)),Bo=U(()=>G(()=>import(`./BRZIF_wo.js`).then(e=>e.default||e.default||e),__vite__mapDeps([57,7,8,2,9,20,16]),import.meta.url)),Vo=U(()=>G(()=>import(`./Zv9-SOQF.js`).then(e=>e.default||e.default||e),__vite__mapDeps([58,7,8,2,9,59,20,16,60,26,31,1,3,4,5,6,10,11,12]),import.meta.url)),Ho=U(()=>G(()=>import(`./DbWAComO.js`).then(e=>e.default||e.default||e),__vite__mapDeps([61,7,8,2,9,20,16]),import.meta.url)),Uo=U(()=>G(()=>import(`./C8qB5llI.js`).then(e=>e.default||e.default||e),__vite__mapDeps([62,7,8,2,9,59,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),Wo=U(()=>G(()=>import(`./jbri6q1p.js`).then(e=>e.default||e.default||e),__vite__mapDeps([63,7,8,2,9,59,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),Go=U(()=>G(()=>import(`./Lozm7hhE.js`).then(e=>e.default||e.default||e),__vite__mapDeps([64,7,8,2,9,20,16]),import.meta.url)),Ko=U(()=>G(()=>import(`./DlNJhOoc.js`).then(e=>e.default||e.default||e),__vite__mapDeps([65,7,8,2,9,20,16]),import.meta.url)),qo=U(()=>G(()=>import(`./DbwlcHAt.js`).then(e=>e.default||e.default||e),__vite__mapDeps([66,7,8,2,9,20,16,32,28,31,26,1,3,4,5,6,10,11,12,33,13,14,15]),import.meta.url)),Jo=U(()=>G(()=>import(`./CCA81-4P.js`).then(e=>e.default||e.default||e),__vite__mapDeps([67,5,6,7,8,2,9,10,11,12,68,15,20,16,25,4,26,22,21,29,36,69,24,35,70,1,3]),import.meta.url)),Yo=U(()=>G(()=>import(`./5okfNy5D.js`).then(e=>e.default||e.default||e),__vite__mapDeps([70,7,8,2,9,1,3,4,5,6,10,11,12]),import.meta.url)),Xo=U(()=>G(()=>import(`./4gQF_HS3.js`).then(e=>e.default||e.default||e),__vite__mapDeps([71,7,8,2,9,20,16]),import.meta.url)),Zo=U(()=>G(()=>import(`./BZvXNwev.js`).then(e=>e.default||e.default||e),__vite__mapDeps([72,7,8,2,9,20,16,24,25,4,26,21,22,34,27,35,15,69,29,70,1,3,5,6,10,11,12]),import.meta.url)),Qo=U(()=>G(()=>import(`./COmtTtfB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([73,7,8,2,9,20,16,28,4,1,3,5,6,10,11,12]),import.meta.url)),$o=U(()=>G(()=>import(`./C6o03JHe.js`).then(e=>e.default||e.default||e),__vite__mapDeps([74,7,8,2,9,20,16]),import.meta.url)),es=U(()=>G(()=>import(`./DU6ArlUN.js`).then(e=>e.default||e.default||e),__vite__mapDeps([75,7,8,2,9,59,26,20,16]),import.meta.url)),ts=U(()=>G(()=>import(`./Ccgv3lDj.js`).then(e=>e.default||e.default||e),__vite__mapDeps([76,7,8,2,9,26,20,16]),import.meta.url)),ns=U(()=>G(()=>import(`./BlKmZhhF.js`).then(e=>e.default||e.default||e),__vite__mapDeps([77,7,8,2,9,20,16]),import.meta.url)),rs=U(()=>G(()=>import(`./Cq7hsCKB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([78,8,2,7,9,20,16,1,3,4,5,6,10,11,12]),import.meta.url)),is=U(()=>G(()=>import(`./C4WdPP6K.js`).then(e=>e.default||e.default||e),__vite__mapDeps([79,8,2,7,9,20,16,1,3,4,5,6,10,11,12]),import.meta.url)),as=U(()=>G(()=>import(`./By1KXXLR.js`).then(e=>e.default||e.default||e),__vite__mapDeps([80,8,2,7,9,20,16]),import.meta.url)),os=U(()=>G(()=>import(`./BiWrMOsL.js`).then(e=>e.default||e.default||e),__vite__mapDeps([81,7,8,2,9,20,16]),import.meta.url)),ss=U(()=>G(()=>import(`./CPYm4J_K.js`).then(e=>e.default||e.default||e),__vite__mapDeps([82,7,8,2,9,20,16,1,3,4,5,6,10,11,12]),import.meta.url)),cs=U(()=>G(()=>import(`./D6dUp4Nm.js`).then(e=>e.default||e.default||e),__vite__mapDeps([83,8,2,7,9,20,16,25,4,29,22,26,15]),import.meta.url)),ls=U(()=>G(()=>import(`./C2YPmTzt.js`).then(e=>e.default||e.default||e),__vite__mapDeps([84,7,8,2,9,20,16]),import.meta.url)),us=U(()=>G(()=>import(`./TBIRpVLG.js`).then(e=>e.default||e.default||e),__vite__mapDeps([85,7,8,2,9,20,16]),import.meta.url)),ds=U(()=>G(()=>import(`./Bs52qkgk.js`).then(e=>e.default||e.default||e),__vite__mapDeps([86,7,8,2,9,20,16]),import.meta.url)),fs=U(()=>G(()=>import(`./CGXljzd_.js`).then(e=>e.default||e.default||e),__vite__mapDeps([87,7,8,2,9,20,16]),import.meta.url)),ps=U(()=>G(()=>import(`./DOMM1wfl.js`).then(e=>e.default||e.default||e),__vite__mapDeps([88,7,8,2,9,25,4,20,16,70,1,3,5,6,10,11,12,32,28,31,26,33,13,14,15]),import.meta.url)),ms=U(()=>G(()=>import(`./CaE8VlUp.js`).then(e=>e.default||e.default||e),__vite__mapDeps([89,7,8,2,9,25,4,20,16,1,3,5,6,10,11,12,32,28,31,26,33,13,14,15]),import.meta.url)),hs=U(()=>G(()=>import(`./C3ZRWz5L.js`).then(e=>e.default||e.default||e),__vite__mapDeps([90,2]),import.meta.url)),gs=U(()=>G(()=>import(`./BkoKCNUY.js`).then(e=>e.default||e.default||e),__vite__mapDeps([91,7,8,2,9,20,16]),import.meta.url)),_s=U(()=>G(()=>import(`./MS7CGmCB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([92,7,8,2,9,20,16]),import.meta.url)),vs=U(()=>G(()=>import(`./CcGiNUgA.js`).then(e=>e.default||e.default||e),__vite__mapDeps([93,7,8,2,9,20,16]),import.meta.url)),ys=U(()=>G(()=>import(`./B1j6UC4U.js`).then(e=>e.default||e.default||e),__vite__mapDeps([94,5,6,7,8,2,9,10,11,12,20,16,68,15,25,4,26,22,21,29,36,69,24,35,28,1,3,31,60]),import.meta.url)),bs=U(()=>G(()=>import(`./Ck0-FqVI.js`).then(e=>e.default||e.default||e),__vite__mapDeps([95,7,8,2,9,20,16]),import.meta.url)),xs=U(()=>G(()=>import(`./CkWKLtjO.js`).then(e=>e.default||e.default||e),__vite__mapDeps([96,7,8,2,9,20,16]),import.meta.url)),Ss=U(()=>G(()=>import(`./DHX2tw9J.js`).then(e=>e.default||e.default||e),__vite__mapDeps([97,7,8,2,9,20,16]),import.meta.url)),Cs=U(()=>G(()=>import(`./Du2F4WXh.js`).then(e=>e.default||e.default||e),__vite__mapDeps([98,7,8,2,9,20,16]),import.meta.url)),ws=U(()=>G(()=>import(`./TlTrMIMm.js`).then(e=>e.default||e.default||e),__vite__mapDeps([99,7,8,2,9,20,16]),import.meta.url)),Ts=U(()=>G(()=>import(`./MMsTMkcB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([100,7,8,2,9,20,16]),import.meta.url)),Es=U(()=>G(()=>import(`./D4Dpzo9e.js`).then(e=>e.default||e.default||e),__vite__mapDeps([101,7,8,2,9,20,16]),import.meta.url)),Ds=U(()=>G(()=>import(`./DqG7CtD4.js`).then(e=>e.default||e.default||e),__vite__mapDeps([102,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),Os=U(()=>G(()=>import(`./BLvbupFS.js`).then(e=>e.default||e.default||e),__vite__mapDeps([103,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),ks=U(()=>G(()=>import(`./JU9-x68N.js`).then(e=>e.default||e.default||e),__vite__mapDeps([104,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),As=U(()=>G(()=>import(`./BmBpmU73.js`).then(e=>e.default||e.default||e),__vite__mapDeps([105,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),js=U(()=>G(()=>import(`./D_ct-Stz.js`).then(e=>e.n).then(e=>e.default||e.default||e),__vite__mapDeps([5,6,7,8,2,9,10,11,12]),import.meta.url)),Ms=[[`ProseA`,Ro],[`ProseAccordion`,zo],[`ProseAccordionItem`,Bo],[`ProseBadge`,Vo],[`ProseBlockquote`,Ho],[`ProseCallout`,Uo],[`ProseCard`,Wo],[`ProseCardGroup`,Go],[`ProseCode`,Ko],[`ProseCodeCollapse`,qo],[`ProseCodeGroup`,Jo],[`ProseCodeIcon`,Yo],[`ProseCodePreview`,Xo],[`ProseCodeTree`,Zo],[`ProseCollapsible`,Qo],[`ProseEm`,$o],[`ProseField`,es],[`ProseFieldGroup`,ts],[`ProseH1`,ns],[`ProseH2`,rs],[`ProseH3`,is],[`ProseH4`,as],[`ProseHr`,os],[`ProseIcon`,ss],[`ProseImg`,cs],[`ProseKbd`,ls],[`ProseLi`,us],[`ProseOl`,ds],[`ProseP`,fs],[`ProsePre`,ps],[`ProsePrompt`,ms],[`ProseScript`,hs],[`ProseSteps`,gs],[`ProseStrong`,_s],[`ProseTable`,vs],[`ProseTabs`,ys],[`ProseTabsItem`,bs],[`ProseTbody`,xs],[`ProseTd`,Ss],[`ProseTh`,Cs],[`ProseThead`,ws],[`ProseTr`,Ts],[`ProseUl`,Es],[`ProseCaution`,Ds],[`ProseNote`,Os],[`ProseTip`,ks],[`ProseWarning`,As],[`Icon`,js]],Ns=s({name:`nuxt:global-components`,setup(e){for(let[t,n]of Ms)e.vueApp.component(t,n),e.vueApp.component(`Lazy`+t,n)}}),Ps={},Fs=[`route`,`payload`,`island`,`hint`],Is=12,Ls={route:8,payload:8,island:4,hint:8};function Rs(e={}){let t={...Ls,...e.concurrency},n=e.total??Is,r=e.canPrefetch,i=e.defer,a={route:[],payload:[],island:[],hint:[]},o=Fs.map(e=>a[e]),s=new WeakSet,c=new Map,l={route:0,payload:0,island:0,hint:0},u=0,d=new Map,f=new AbortController,p=new AbortController;p.abort();function m(e){c.get(e.key)===e&&c.delete(e.key)}function h(e){m(e),Promise.resolve().then(()=>e.run(p.signal,!1)).catch(()=>{})}function g(){if(!r||r())for(;u<n;){let e=Fs.find(e=>a[e].length&&l[e]<t[e]);if(!e)return;let n=a[e].shift();_(n,s.delete(n))}}function _(e,t){let n=e.scope===`app`?f:new AbortController;e.scope===`navigation`&&d.set(e,n),l[e.priority]++,u++;let r=!1,a=()=>{r||(r=!0,l[e.priority]--,u--,d.delete(e),m(e),g())};n.signal.addEventListener(`abort`,a,{once:!0});let o=()=>Promise.resolve().then(()=>e.run(n.signal,t)).then(a,a);i?i(o,t,e.priority):o()}let v=(e,t)=>t!==void 0&&e.group===t&&e.priority!==`hint`;return{schedule(e){let t=[];for(let n of Array.isArray(e)?e:[e])c.has(n.key)?h(n):(c.set(n.key,n),t.push(n));for(let e=t.length-1;e>=0;e--)a[t[e].priority].unshift(t[e]);g()},promote(e){for(let t of o){let n=[],r=[];for(let i of t)i.group===e&&s.add(i),(i.group===e?n:r).push(i);t.length=0,t.push(...n,...r)}g()},reset(e){for(let t of o)for(let n=t.length-1;n>=0;n--){let r=t[n];r.scope===`navigation`&&!v(r,e)&&(t.splice(n,1),h(r))}for(let[t,n]of[...d])v(t,e)||n.abort();g()},resume:g}}var zs=1e3;function Bs(e,t,n){if(t||n===`route`)return e();let r=globalThis.scheduler;r?.postTask?r.postTask(e,{priority:`background`}).catch(()=>{}):He(e,{timeout:zs})}function Vs(e=u()){if(e._prefetch)return e._prefetch;let t=!1,n=Rs({canPrefetch:()=>bn()&&!t&&document.visibilityState!==`hidden`,defer:Bs});e._prefetch=n,navigator.connection?.addEventListener?.(`change`,()=>n.resume()),document.addEventListener(`visibilitychange`,()=>n.resume());let r=e.$router;return r.beforeEach(()=>{t=!0}),r.afterEach(e=>{t=!1,n.reset(xn(e.fullPath))}),r.onError(()=>{t=!1,n.resume()}),n}var Hs=s({name:`nuxt:prefetch`,setup(e){let t=Ne();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;typeof t==`string`&&t in Ps&&await Sn(Ps[t])})});let{schedule:n}=Vs(e);e.hooks.hook(`link:prefetch`,async e=>{if(rn(e))return;let r=t.resolve(e);if(!r)return;let i=r.meta.layout,a=_a(r.meta.middleware).filter(e=>typeof e==`string`);n({key:`route:chunks:${e}`,priority:`route`,scope:`navigation`,group:xn(e),run:e=>{if(e.aborted)return;let t=[];for(let e of a){let n=go[e];typeof n==`function`&&t.push(n())}return typeof i==`string`&&i in Ps&&t.push(Sn(Ps[i])),Promise.all(t).catch(()=>{})}})})}}),Us={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 none)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 none)`,100:`oklch(97% 0 none)`,200:`oklch(92.2% 0 none)`,300:`oklch(87% 0 none)`,400:`oklch(70.8% 0 none)`,500:`oklch(55.6% 0 none)`,600:`oklch(43.9% 0 none)`,700:`oklch(37.1% 0 none)`,800:`oklch(26.9% 0 none)`,900:`oklch(20.5% 0 none)`,950:`oklch(14.5% 0 none)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 none)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}},Ws=[50,100,200,300,400,500,600,700,800,900,950];function Gs(e,t){return e in Us&&typeof Us[e]==`object`&&t in Us[e]?Us[e][t]:``}function Ks(e,t,n){let r=n?`${n}-`:``;return`${Ws.map(n=>`--ui-color-${e}-${n}: var(--${r}color-${t===`neutral`?`old-neutral`:t}-${n}, ${Gs(t,n)});`).join(`
3
- `)}`}function qs(e,t){return`--ui-${e}: var(--ui-color-${e}-${t});`}function Js(){document.querySelector(`[data-nuxt-ui-colors]`)?.remove()}var Ys=[ua,bo,xo,So,wo,To,Eo,Lo,Ns,Hs,s(()=>{let e=Dn(),t=u(),n=H(()=>{let{neutral:t,...n}=e.ui.colors,r=e.ui.prefix;return`@layer theme {
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C-fx-vFO.js","./DJM7u8P3.js","./BxuBMtk_.js","./DUgGsde6.js","./BrWE0up6.js","./D_ct-Stz.js","./DK3Fl9T5.js","./P6qlvBHA.js","./CFCM18fF.js","./BW3xJdEx.js","./CdPGFZyy.js","./SrNUvNwO.js","./Bubk0xn-.js","./CI0scS-N.js","./DxBwVNyP.js","./BygIGL69.js","./SywdkA98.js","./_id_.B6iqDPxe.css","./CoipdpDu.js","./OKKaKILz.js","./BE6t7Q2m.js","./DqUSsCJ2.js","./q_8bxRMt.js","./BQgzP7ur.js","./CgQ30j_6.js","./C9MgRdhu.js","./DzmVW5-D.js","./B0C2jsdk.js","./CYGiZn-X.js","./DFQDFspC.js","./C3SpAhCW.js","./Cdf_T8Xa.js","./DV4ti-Pq.js","./CXG7GZes.js","./BY36DFyj.js","./DLr85ebo.js","./Dki9VkAL.js","./burndown.Do6IbM6o.css","./DwzGxoX2.js","./diagrams.pyhqNtmr.css","./BmrSh0rL.js","./epics.Dmessplu.css","./Cajxc4Dw.js","./gantt.Dmp00GUo.css","./D5AHQ-N9.js","./last-change._l3ydJ-o.css","./NtgBvUDk.js","./milestones.Bp6jmeAm.css","./DwCE3305.js","./tests.dXlUX16A.css","./b7xtxFRl.js","./pages.Dbj2IVk8.css","./I-sGtDIB.js","./BuBzMkFZ.js","./D166WVUG.js","./DuRiEXn4.js","./DHihWhf5.js","./BRZIF_wo.js","./Zv9-SOQF.js","./D5i92OZO.js","./CJs9B42o.js","./DbWAComO.js","./C8qB5llI.js","./jbri6q1p.js","./Lozm7hhE.js","./DlNJhOoc.js","./DbwlcHAt.js","./CCA81-4P.js","./B3LKy6o2.js","./BZlZD94i.js","./5okfNy5D.js","./4gQF_HS3.js","./BZvXNwev.js","./COmtTtfB.js","./C6o03JHe.js","./DU6ArlUN.js","./Ccgv3lDj.js","./BlKmZhhF.js","./Cq7hsCKB.js","./C4WdPP6K.js","./By1KXXLR.js","./BiWrMOsL.js","./CPYm4J_K.js","./D6dUp4Nm.js","./C2YPmTzt.js","./TBIRpVLG.js","./Bs52qkgk.js","./CGXljzd_.js","./DOMM1wfl.js","./CaE8VlUp.js","./C3ZRWz5L.js","./BkoKCNUY.js","./MS7CGmCB.js","./CcGiNUgA.js","./B1j6UC4U.js","./Ck0-FqVI.js","./CkWKLtjO.js","./DHX2tw9J.js","./Du2F4WXh.js","./TlTrMIMm.js","./MMsTMkcB.js","./D4Dpzo9e.js","./DqG7CtD4.js","./BLvbupFS.js","./JU9-x68N.js","./BmBpmU73.js","./BAQQngAq.js","./D1V1gysQ.js","./error-404.CgJNdpB5.css","./BGwhkDRl.js","./error-500.WYSoH44y.css"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./DK3Fl9T5.js";import{_ as t,b as n,c as r,d as i,f as a,h as o,i as s,m as c,n as l,o as u,s as d,t as f,u as p,v as m,y as h}from"./CFCM18fF.js";import{$ as g,A as _,B as v,C as y,D as b,E as x,F as S,G as C,H as w,I as ee,J as te,K as ne,L as re,M as ie,N as ae,O as oe,P as se,Q as ce,R as le,S as ue,T as de,U as fe,V as pe,W as me,X as he,Y as ge,Z as _e,_ as ve,_t as ye,a as be,b as xe,ct as Se,d as Ce,dt as we,et as Te,f as Ee,ft as De,g as Oe,h as ke,i as Ae,it as je,j as Me,k as Ne,lt as Pe,m as Fe,mt as Ie,nt as Le,o as Re,ot as ze,p as Be,pt as Ve,q as He,r as Ue,rt as We,s as Ge,t as Ke,tt as qe,u as Je,ut as Ye,v as Xe,vt as Ze,w as Qe,x as $e,y as et,z as tt}from"./DxBwVNyP.js";import{c as nt,i as rt,o as it,r as at,s as ot,t as st}from"./BygIGL69.js";import{$ as ct,A as lt,At as T,B as ut,C as dt,Dt as ft,E as pt,Et as mt,F as ht,G as gt,Ht as _t,I as vt,Jt as E,K as yt,M as D,N as bt,O as xt,Ot as St,Q as Ct,S as O,St as wt,T as k,Tt,U as A,V as Et,W as Dt,Xt as j,Y as Ot,Yt as kt,_ as At,_t as jt,a as Mt,at as Nt,b as M,ct as Pt,d as N,et as Ft,f as P,gt as It,ht as Lt,i as F,j as Rt,k as zt,l as Bt,lt as I,m as L,mt as Vt,nt as Ht,o as Ut,ot as Wt,p as R,q as z,qt as B,rt as Gt,s as Kt,tt as qt,u as V,ut as Jt,vt as Yt,wt as Xt,x as H,xt as U,y as Zt,yt as Qt,z as $t}from"./BxuBMtk_.js";import{a as en,d as tn,i as nn,l as rn,n as an,o as on,p as sn,r as cn}from"./SywdkA98.js";import{a as ln,c as un,d as dn,f as fn,i as pn,l as mn,n as hn,o as gn,r as _n,s as vn,t as yn,u as bn}from"./SrNUvNwO.js";import{a as xn,o as Sn,r as Cn,s as wn,t as Tn}from"./CI0scS-N.js";import{a as W,i as En,r as Dn}from"./D_ct-Stz.js";import{t as On}from"./P6qlvBHA.js";import{t as kn}from"./CdPGFZyy.js";import{t as An}from"./DJM7u8P3.js";import{t as jn}from"./BW3xJdEx.js";import{c as Mn,d as Nn,h as Pn,i as Fn,l as In,m as Ln,n as Rn,s as zn,t as Bn}from"./BE6t7Q2m.js";import{t as Vn}from"./DqUSsCJ2.js";import{t as G}from"./DFQDFspC.js";import{S as Hn,_ as Un,a as Wn,c as Gn,d as Kn,f as qn,g as Jn,h as Yn,i as Xn,l as Zn,m as Qn,n as $n,o as er,p as tr,r as nr,s as rr,t as ir,u as ar,v as or,x as sr,y as cr}from"./BQgzP7ur.js";import{c as lr,i as ur,l as dr,o as fr,p as pr,r as mr,s as hr,t as gr}from"./C9MgRdhu.js";import{n as _r,r as vr,t as yr}from"./q_8bxRMt.js";import{t as br}from"./DzmVW5-D.js";import{C as xr,T as Sr,a as Cr,b as wr,g as Tr,h as Er,m as Dr,p as Or,r as kr}from"./BrWE0up6.js";import{n as Ar,t as jr}from"./CYGiZn-X.js";import{n as Mr,r as Nr,t as Pr}from"./CgQ30j_6.js";import{t as Fr}from"./Dki9VkAL.js";import{n as Ir}from"./B0C2jsdk.js";import{i as Lr,n as Rr,t as zr}from"./DLr85ebo.js";import{t as Br}from"./DUgGsde6.js";import{i as Vr,n as Hr,t as Ur}from"./Cdf_T8Xa.js";import{a as Wr,i as Gr,n as Kr,r as qr,t as Jr}from"./CXG7GZes.js";import{n as Yr,t as Xr}from"./DV4ti-Pq.js";import{t as Zr}from"./C3SpAhCW.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Qr=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,$r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ei=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ti(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t)ni(e);else return t}function ni(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ri(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!ei.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Qr.test(e)||$r.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,ti)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var ii=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function ai(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new ii(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var oi=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function si(e=`GET`){return oi.has(e.toUpperCase())}function ci(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var li=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),ui=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function di(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return ui.test(t)?`json`:t===`text/event-stream`?`stream`:li.has(t)||t.startsWith(`text/`)?`text`:`blob`}function fi(e,t,n,r){let i=pi(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function pi(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function mi(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}var hi=new Set([408,409,425,429,500,502,503,504]),gi=new Set([101,204,205,304]);function _i(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!si(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):hi.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=ai(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:fi(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await mi(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=rn(s.request,s.options.baseURL)),s.options.query&&(s.request=tn(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&si(s.options.method)){if(ci(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`))}let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await mi(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!gi.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||di(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||ri;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await mi(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await mi(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>_i({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var vi=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),yi=vi.fetch?(...e)=>vi.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),bi=vi.Headers,xi=vi.AbortController,Si=_i({fetch:yi,Headers:bi,AbortController:xi}),Ci=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,wi=()=>Ci().app,Ti=()=>wi().baseURL,Ei=()=>wi().buildAssetsDir,Di=(...e)=>en(Oi(),Ei(),...e),Oi=(...e)=>{let t=wi(),n=t.cdnURL||t.baseURL;return e.length?en(n,...e):n};globalThis.__buildAssetsURL=Di,globalThis.__publicAssetsURL=Oi,globalThis.$fetch||(globalThis.$fetch=Si.create({baseURL:Ti()}));var ki=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);function Ai(e,t){t.push(r),e.vueApp.use(t);let n=!0,i=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||i()}),e.hooks.hook(`app:error`,i),e.hooks.hook(`app:suspense:resolve`,i);let a=t.push.bind(t);t.push=((t,n)=>{let r=a(t,n),i=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(i):i()},r})}function ji(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function Mi(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>ji(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}function Ni(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>ji(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Pi=/\s+/;function Fi(e={}){return t=>Ri(t,e)}function Ii(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Li(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Pi))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Ri(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!Ii(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(mn(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Li(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=un(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};e.tag===`meta`&&e._d&&gn(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`?(n.title=e.textContent,o(`title:`,()=>n.title=d._t)):(i.$el=d._e.get(r),i.$el?c(i):dn.has(e.tag)&&p.push(i))}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!dn.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=vn({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=pn(i)||ln(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,mn(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||Ii(e))&&Ri(e,t),a}var zi=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(fn[e.tagPriority]||0);function Bi(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Fi({document:e.document}),n=Ni(Mi(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:zi,init:[]}),bn(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function Vi(e,t){return t&&typeof e==`function`&&(e.key=t),e}var Hi=/\\/g,Ui=/</g,Wi=/"/g,Gi=/%\w+(?:\.\w+)?/g,Ki=`%separator`;function qi(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0){let e=String(typeof r==`number`?r:r||``);return n?e.replace(Hi,`\\\\`).replace(Ui,`\\u003C`).replace(Wi,`\\"`):e}}function Ji(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(Gi);if(!a)return e;let o=e.includes(Ki);return e=e.replace(Gi,e=>{if(e===Ki||!a.includes(e))return e;let n=qi(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(Ki).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var Yi=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Xi=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),Zi=Vi({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=Xi(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=Xi(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Yi))}}}),Qi=Vi({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function $i(e){return typeof e?.then==`function`}var ea=256;function ta(e,t){if(t===e.length)return;if(t===ea){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=ra(e[t]);n[t]=i,r||=$i(i)}return r?n:void 0}let n=ra(e[t]);if($i(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=ra(e[n]);return r}let r=ta(e,t+1);return r&&(r[t]=n),r}function na(e,t,n){if(n===t.length)return;if(n===ea){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=ra(e[t[n]]);r[n]=a,i||=$i(a)}return i?r:void 0}let r=ra(e[t[n]]);if($i(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=ra(e[t[r]]);return i}let i=na(e,t,n+1);return i&&(i[n]=r),i}function ra(e){if(typeof e==`function`)return e;if($i(e))return Promise.resolve(e).then(ra);if(Array.isArray(e)){let t=ta(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=na(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var ia=Vi(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=ra(a);$i(o)?(t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})):t.delete(i)}}}}},`promises`),aa={meta:`content`,link:`href`,htmlAttrs:`lang`},oa=[`innerHTML`,`textContent`];function sa(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?Ji(e,t,n,r):e}var ca=Vi(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=sa(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=aa[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=sa(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of oa)typeof e[t]==`string`&&(e[t]=sa(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=sa(n.textContent,e._templateParams,e._separator))}}}),`template-params`);function la(e={}){let t=Fi(),n,r=0;return n=Bi({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=_n(n),n}var ua={disableDefaults:!0,plugins:[Qi,ia,ca,Zi]},da=s({name:`nuxt:head`,enforce:`pre`,setup(e){Ai(e,la(ua))}}),fa=/(:\w+)\([^)]+\)/g,pa=/(:\w+)[?+*]/g,ma=/:\w+/g,ha=(e,t)=>t.path.replace(fa,`$1`).replace(pa,`$1`).replace(ma,t=>e.params[t.slice(1)]?.toString()||``),ga=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&ha(e.route,n));return typeof r==`function`?r(e.route):r},_a=(e,t)=>({default:()=>e?pt(Mt,e===!0?{}:e,t):t});function va(e){return Array.isArray(e)?e:[e]}var ya=()=>({}),ba=()=>location.protocol+`//`+location.host;function xa(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),he(n,``)}return he(n,e)+r+i}function Sa(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=xa(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Fe.pop,direction:u?u>0?Ee.forward:Ee.back:Ee.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(ve({},e.state,{scroll:Xe()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ca(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Xe():null}}function wa(e){let{history:t,location:n}=window,r={value:xa(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ba()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,ve({},t.state,Ca(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=ve({},i.value,t.state,{forward:e,scroll:Xe()});a(o.current,o,!0),a(e,ve({},Ca(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Ta(e){e=tt(e);let t=wa(e),n=Sa(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=ve({location:``,base:e,go:r,createHref:et.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Ea=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Da=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Da||{}),Oa={type:Ea.Static,value:``},ka=/[a-zA-Z0-9_]/;function Aa(e){if(!e)return[[]];if(e===`/`)return[[Oa]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Da.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Da.Static?a.push({type:Ea.Static,value:l}):n===Da.Param||n===Da.ParamRegExp||n===Da.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Ea.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)if(c=e[s++],c===`\\`&&n!==Da.ParamRegExp)r=n,n=Da.EscapeNext;else switch(n){case Da.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Da.Param):f();break;case Da.EscapeNext:f(),n=r;break;case Da.Param:c===`(`?n=Da.ParamRegExp:ka.test(c)?f():(d(),n=Da.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Da.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Da.ParamRegExpEnd:u+=c;break;case Da.ParamRegExpEnd:d(),n=Da.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===Da.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ja=`[^/]+?`,Ma={sensitive:!1,strict:!1,start:!0,end:!0},Na=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(Na||{}),Pa=/[.+*?^${}()[\]/\\]/g;function Fa(e,t){let n=ve({},Ma,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Na.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Na.Segment+(n.sensitive?Na.BonusCaseSensitive:0);if(o.type===Ea.Static)r||(i+=`/`),i+=o.value.replace(Pa,`\\$&`),s+=Na.Static;else if(o.type===Ea.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ja;if(u!==ja){s+=Na.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Na.Dynamic,c&&(s+=Na.BonusOptional),n&&(s+=Na.BonusRepeatable),u===`.*`&&(s+=Na.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Na.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){r&&n.endsWith(`/`)||(n+=`/`),r=!1;for(let e of i)if(e.type===Ea.Static)n+=e.value;else if(e.type===Ea.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Ne(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Ne(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Ia(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Na.Static+Na.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Na.Static+Na.Segment?1:-1:0}function La(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Ia(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ra(r))return 1;if(Ra(i))return-1}return i.length-r.length}function Ra(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var za={strict:!1,end:!0,sensitive:!1};function Ba(e,t,n){let r=Fa(Aa(e.path),n),i=ve(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Va(e,t){let n=[],r=new Map;t=re(za,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ua(e);s.aliasOf=r&&r.record;let l=re(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ua(ve({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ba(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Ga(d)&&o(e.name)),Ya(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:le}function o(e){if(ie(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=qa(e,n);n.splice(t,0,e),e.record.name&&!Ga(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw xe(Ce.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=ve(Ha(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ha(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw xe(Ce.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=ve({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Ka(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ha(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ua(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Wa(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Wa(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Ga(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ka(e){return e.reduce((e,t)=>ve(e,t.meta),{})}function qa(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;La(e,t[i])<0?r=i:n=i+1}let i=Ja(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ja(e){let t=e;for(;t=t.parent;)if(Ya(t)&&La(e,t)===0)return t}function Ya({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xa(e){let t=xt(me),n=xt(fe),r=V(()=>{let n=T(e.to);return t.resolve(n)}),i=V(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(S.bind(null,i));if(o>-1)return o;let s=to(e[t-2]);return t>1&&to(i)===s&&a[a.length-1].path!==s?a.findIndex(S.bind(null,e[t-2])):o}),a=V(()=>i.value>-1&&eo(n.params,r.value.params)),o=V(()=>i.value>-1&&i.value===n.matched.length-1&&se(n.params,r.value.params));function s(n={}){if($a(n)){let n=t[T(e.replace)?`replace`:`push`](T(e.to)).catch(le);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Za(e){return e.length===1?e[0]:e}var Qa=O({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Xa,setup(e,{slots:t}){let n=Qt(Xa(e)),{options:r}=xt(me),i=V(()=>({[no(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[no(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Za(t.default(n));return e.custom?r:pt(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function $a(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function eo(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Ne(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function to(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var no=(e,t,n)=>e??t??n,ro=O({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=xt(C),i=V(()=>e.route||r.value),a=xt(ce,0),o=V(()=>{let e=T(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=V(()=>i.value.matched[o.value]);Dt(ce,V(()=>o.value+1)),Dt(ee,s),Dt(C,i);let c=U();return Nt(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&S(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return io(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=pt(l,ve({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return io(n.default,{Component:f,route:r})||f}}});function io(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ao=ro;function oo(e){let t=Va(e.routes,e),n=e.parseQuery||pe,r=e.stringifyQuery||te,i=e.history,a=_e(),o=_e(),s=_e(),c=Xt(ke),l=ke;_&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Oe.bind(null,e=>``+e),d=Oe.bind(null,y),f=Oe.bind(null,$e);function p(e,n){let r,i;return ie(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function S(e,a){if(a=ve({},a||c.value),typeof e==`string`){let r=w(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return ve(r,o,{params:f(o.params),hash:$e(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=ve({},e,{path:w(n,e.path,a.path).path});else{let t=ve({},e.params);for(let e in t)t[e]??delete t[e];o=ve({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=ge(r,ve({},e,{hash:ue(l),path:s.path})),m=i.createHref(p);return ve({fullPath:p,hash:l,query:r===te?v(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function ee(e){return typeof e==`string`?w(n,e,c.value.path):ve({},e)}function re(e,t){if(l!==e)return xe(Ce.NAVIGATION_CANCELLED,{from:t,to:e})}function se(e){return ye(e)}function ce(e){return se(ve(ee(e),{replace:!0}))}function he(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=ee(i):{path:i},i.params={}),ve({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function ye(e,t){let n=l=S(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=he(n,i);if(u)return ye(ve(ee(u),{state:typeof u==`object`?ve({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ae(r,i,n)&&(f=xe(Ce.NAVIGATION_DUPLICATED,{to:d,from:i}),Be(i,i,!0,!1)),(f?Promise.resolve(f):we(d,i)).catch(e=>Me(e)?Me(e,Ce.NAVIGATION_GUARD_REDIRECT)?e:ze(e):Le(e,d,i)).then(e=>{if(e){if(Me(e,Ce.NAVIGATION_GUARD_REDIRECT))return ye(ve({replace:s},ee(e.to),{state:typeof e.to==`object`?ve({},a,e.to.state):a,force:o}),t||d)}else e=Ee(d,i,!0,s,a);return Te(d,i,e),e})}function be(e,t){let n=re(e,t);return n?Promise.reject(n):Promise.resolve()}function Se(e){let t=We.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function we(e,t){let n,[r,i,s]=Qe(e,t);n=de(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(oe(r,e,t))});let c=be.bind(null,e,t);return n.push(c),Ke(n).then(()=>{n=[];for(let r of a.list())n.push(oe(r,e,t));return n.push(c),Ke(n)}).then(()=>{n=de(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(oe(r,e,t))});return n.push(c),Ke(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(Ne(r.beforeEnter))for(let i of r.beforeEnter)n.push(oe(i,e,t));else n.push(oe(r.beforeEnter,e,t))}return n.push(c),Ke(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=de(s,`beforeRouteEnter`,e,t,Se),n.push(c),Ke(n))).then(()=>{n=[];for(let r of o.list())n.push(oe(r,e,t));return n.push(c),Ke(n)}).catch(e=>Me(e,Ce.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function Te(e,t,n){s.list().forEach(r=>Se(()=>r(e,t,n)))}function Ee(e,t,n,r,a){let o=re(e,t);if(o)return o;let s=t===ke,l=_?history.state:{};n&&(r||s?i.replace(e.fullPath,ve({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,Be(e,t,n,s),ze()}let De;function Ae(){De||=i.listen((e,t,n)=>{if(!Ge.listening)return;let r=S(e),a=he(r,Ge.currentRoute.value);if(a){ye(ve(a,{replace:!0,force:!0}),r).catch(le);return}l=r;let o=c.value;_&&ne(b(o.fullPath,n.delta),Xe()),we(r,o).catch(e=>Me(e,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_CANCELLED)?e:Me(e,Ce.NAVIGATION_GUARD_REDIRECT)?(ye(ve(ee(e.to),{force:!0}),r).then(e=>{Me(e,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Fe.pop&&i.go(-1,!1)}).catch(le),Promise.reject()):(n.delta&&i.go(-n.delta,!1),Le(e,r,o))).then(e=>{e||=Ee(r,o,!1),e&&(n.delta&&!Me(e,Ce.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Fe.pop&&Me(e,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),Te(r,o,e)}).catch(le)})}let je=_e(),Pe=_e(),Ie;function Le(e,t,n){ze(e);let r=Pe.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function Re(){return Ie&&c.value!==ke?Promise.resolve():new Promise((e,t)=>{je.add([e,t])})}function ze(e){return Ie||(Ie=!e,Ae(),je.list().forEach(([t,n])=>e?n(e):t()),je.reset()),e}function Be(t,n,r,i){let{scrollBehavior:a}=e;if(!_||!a)return Promise.resolve();let o=!r&&x(b(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return bt().then(()=>a(t,n,o)).then(e=>e&&He(e)).catch(e=>Le(e,t,n))}let Ve=e=>i.go(e),Ue,We=new Set,Ge={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:S,options:e,push:se,replace:ce,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:Pe.add,isReady:Re,install(e){e.component(`RouterLink`,Qa),e.component(`RouterView`,ao),e.config.globalProperties.$router=Ge,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>T(c)}),_&&!Ue&&c.value===ke&&(Ue=!0,se(i.location).catch(e=>{}));let t={};for(let e in ke)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(me,Ge),e.provide(fe,wt(t)),e.provide(C,c);let n=e.unmount;We.add(e),e.unmount=function(){We.delete(e),We.size<1&&(l=ke,De&&De(),De=null,c.value=ke,Ue=!1,Ie=!1),n()}}};function Ke(e){return e.reduce((e,t)=>e.then(()=>Se(t)),Promise.resolve())}return Ge}var so=je(async e=>{if(!e.meta?.validate)return;let t=await Promise.resolve(e.meta.validate(e));if(t!==!0)return ye({fatal:!0,status:t&&(t.status||t.statusCode)||404,statusText:t&&(t.statusText||t.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})}),co=n({docsBase:m,reporters:h}),lo=ki;function uo(e){return ya(e)}var fo;function po(){let e;return e=lo(Di(`builds/meta/${d().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw co.NUXT_E5004();return e}),fo=e,e.catch(t=>{fo===e&&(fo=void 0),co.NUXT_E5002({cause:t})}),e}function mo(){return fo||po()}function ho(e){let t=typeof e==`string`?e:e.path;try{return uo(t)}catch(e){return co.NUXT_E5003({path:t,cause:e}),{}}}var go=[so,je(e=>{let t=ho({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return Ve(n)?(window.location.href=n,!1):n}})],_o={},vo=[{name:`story-id`,path:`/story/:id()`,component:()=>W(()=>import(`./C-fx-vFO.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)},{name:`burndown`,path:`/burndown`,component:()=>W(()=>import(`./CoipdpDu.js`),__vite__mapDeps([18,19,7,8,2,9,15,20,16,21,22,23,24,25,4,26,27,28,29,3,30,1,5,6,10,11,12,31,32,33,13,14,34,35,36,37]),import.meta.url)},{name:`diagrams`,path:`/diagrams`,component:()=>W(()=>import(`./DwzGxoX2.js`),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,39]),import.meta.url)},{name:`epics`,path:`/epics`,component:()=>W(()=>import(`./BmrSh0rL.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41]),import.meta.url)},{name:`gantt`,path:`/gantt`,component:()=>W(()=>import(`./Cajxc4Dw.js`),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,43]),import.meta.url)},{name:`last-change`,path:`/last-change`,component:()=>W(()=>import(`./D5AHQ-N9.js`),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,45]),import.meta.url)},{name:`milestones`,path:`/milestones`,component:()=>W(()=>import(`./NtgBvUDk.js`),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,47]),import.meta.url)},{name:`tests`,path:`/tests`,component:()=>W(()=>import(`./DwCE3305.js`),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,49]),import.meta.url)},{name:`index`,path:`/`,component:()=>W(()=>import(`./b7xtxFRl.js`),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,10,11,12,19,15,20,16,21,22,23,24,25,26,27,28,29,30,31,32,33,13,14,34,35,36,51]),import.meta.url)}],yo=/\/(?=$|[?#])/;function bo(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),sn(n,``)}let s=sn(r,e),c=!n||cn(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var xo=s({name:`nuxt:router`,enforce:`pre`,async setup(e){let t=d().app.baseURL,n=wn.history?.(t)??Ta(t),r=wn.routes?await wn.routes(vo)??vo:vo,i,a=oo({...wn,scrollBehavior:(e,t,n)=>{if(t===ke)i=n;else if(wn.scrollBehavior){if(a.options.scrollBehavior=wn.scrollBehavior,`scrollRestoration`in window.history){let e=a.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return wn.scrollBehavior(e,ke,i||n)}},history:n,routes:r});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(a);let o=Xt(a.currentRoute.value);a.afterEach((e,t)=>{o.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>o.value});let s=bo(t,window.location,e.payload.path),c=sn(window.location.pathname,t),l=Xt(a.currentRoute.value),u=()=>{l.value=a.currentRoute.value};a.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;n===r?ga({route:e,Component:{type:n}})===ga({route:t,Component:{type:r}})&&u():e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&u()});let f={sync:u};for(let e in l.value)Object.defineProperty(f,e,{get:()=>l.value[e],enumerable:!0});e._route=wt(f),e._middleware||={global:[],named:{}};let p=We();function m(t){e._middlewareTo&&(e._middlewareTo.redirectedFrom??e._middlewareTo)===(t.redirectedFrom??t)&&delete e._middlewareTo}a.afterEach(async(t,n,r)=>{m(t),!e.isHydrating&&p.value&&!Me(r,Be.aborted|Be.cancelled)&&await e.runWithContext(qe),r&&await e.callHook(`page:loading:end`)}),a.onError(async(t,n)=>{m(n),await e.callHook(`page:loading:end`)});try{await a.isReady()}catch(t){await Te(e,t)}let h=s===a.currentRoute.value.fullPath?a.currentRoute.value:a.resolve(s),g=a.currentRoute.value.fullPath,_=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&s.replace(yo,``)!==e.payload.path.replace(yo,``)&&cn(a.currentRoute.value.path,e.payload.path);u();function v(r){!e.isHydrating&&r.fullPath!==bo(t,window.location)&&n.push(r.fullPath)}a.beforeEach(t=>{if(!e.isHydrating&&ya(t.path).noScripts)return window.location.assign(a.resolve(t.fullPath).href),!1}),a.beforeResolve(e=>{if(e.matched.length||cn(e.path,c))return;let n=new URL(rn(e.fullPath,t),window.location.href);if(n.origin===window.location.origin)return window.location.assign(n),!1});let y=e.payload.state._layout,b=0;a.beforeEach(async(t,n)=>{b++;try{return await x(t,n)}finally{--b===0&&delete e._processingMiddleware}});async function x(t,n){await e.callHook(`page:loading:start`),t.meta=Qt(t.meta),e.isHydrating&&y&&!Lt(t.meta.layout)&&(t.meta.layout=y),e._processingMiddleware=!0,e._middlewareTo=t;{let r=new Set([...go,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of va(t))r.add(e)}let i=ho({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await _o[i]?.().then(e=>e.default||e):i;if(!r)throw Ye.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||ye({status:404,statusText:`Page Not Found: ${s}`});return await e.runWithContext(()=>Le(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Ze(i)&&i.fatal&&(await e.runWithContext(()=>Le(i)),v(t)),i}catch(n){let r=ye(n);return r.fatal&&(await e.runWithContext(()=>Le(r)),v(t)),r}}}}return a.afterEach((t,n,r)=>{if(t.matched.length===0&&!p.value&&!Me(r,Be.aborted|Be.cancelled))return e.runWithContext(()=>Le(ye({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in h&&(h.name=void 0),a.currentRoute.value.fullPath===g){if(_){let t=a.resolve(e.payload.path);`name`in t&&(t.name=void 0),await a.replace({...t,force:!0});let n=()=>{if(!e[`~restoreDeferredRoute`])return;e[`~restoreDeferredRoute`]=void 0;let t=a.currentRoute,n=a.resolve(s);n.matched.at(-1)===t.value.matched.at(-1)&&(n.meta=t.value.meta),t.value=n,u(),a.replace({...h,force:!0}).catch(()=>{})};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await a.replace({...h,force:!0})}a.options.scrollBehavior=wn.scrollBehavior}catch(t){await Te(e,t)}}),{provide:{router:a}}}}),So=s(()=>{let e=Pe();Ke(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),Co=s(e=>{let t;async function n(){let r;try{r=await mo()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,c);try{let n=await ki(Di(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}Ke(()=>{t=setTimeout(n,c)})});function wo(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw Ye.NUXT_E2010({path:t});if(n.protocol&&nn(n.protocol))throw Ye.NUXT_E2002({toPath:t,protocol:n.protocol});let r={};try{r=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:u().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var To=s({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&Ie(navigator.userAgent)&&wo()})}}),Eo=s({name:`nuxt:chunk-reload`,setup(e){let t=Pe(),n=d(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){wo({path:on(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),Do=s({name:`nuxt:island-link-navigation`,setup(e){}}),Oo=ki;function ko(){return Oo}var Ao=[`https://api.iconify.design`],jo,Mo,No,Po;function Fo(e){jo=e}function Io({addAPIProvider:e,_api:t,setCustomIconsLoader:n}){if(!jo||Mo===jo)return;let r=Mo=jo,i=t.getFetch();r.resources.length&&i!==globalThis.fetch&&i!==No||(t.setFetch(r.fetch),No=r.fetch);let a=t.getAPIConfig(``),o=!a||a===Po||a.resources.length===Ao.length&&a.resources.every((e,t)=>e===Ao[t]);r.resources.length&&o&&(e(``,{resources:r.resources}),Po=t.getAPIConfig(``));for(let e of r.customCollections)e&&n(r.customIconsLoader,e)}function Lo(e,t){return typeof e==`object`?e?.[t]:e}var Ro=s({name:`@nuxt/icon`,async setup(e){let t=d(),n=On().icon,r=ko(),i=r.native,a=Lo(n.provider,`client`),o=[];if(a===`server`){let e=t.app?.baseURL?.replace(/\/$/,``)??``;o.push(e+(n.localApiEndpoint||`/api/_nuxt_icon`)),(n.fallbackToApi===!0||n.fallbackToApi===`client-only`)&&o.push(n.iconifyApiEndpoint)}else a!==`none`&&o.push(n.iconifyApiEndpoint);async function s(e,t){try{let n=await r(o[0]+`/`+t+`.json`,{query:{icons:e.join(`,`)}});if(!n||n.prefix!==t||!n.icons)throw Error(`Invalid data`+JSON.stringify(n));return n}catch(e){return console.error(`Failed to load custom icons`,e),null}}async function c(e,t){let n=[[]],r=0;for(let t of e){let e=encodeURIComponent(t).length;r+e>2e3&&n.at(-1).length&&(n.push([]),r=0),n.at(-1).push(t),r+=e+1}let i=(await Promise.all(n.map(e=>s(e,t)))).filter(e=>!!e);return i.length?i.reduce((e,t)=>({...e,...t,icons:{...e.icons,...t.icons},aliases:{...e.aliases,...t.aliases}})):null}if(Fo({resources:o,fetch:a===`none`?()=>Promise.resolve(new Response):(e,t)=>{let n=globalThis.$fetch?.native;return(i||n||globalThis.fetch)(e,t)},customIconsLoader:c,customCollections:n.customCollections||[]}),n.mode!==`svg`){let t=()=>W(()=>import(`./I-sGtDIB.js`).then(e=>e.setupIconify()),__vite__mapDeps([52,53,2,12,7,8,9]),import.meta.url).catch(()=>{});e.isHydrating?Ke(t):t()}}}),zo=H(()=>W(()=>import(`./D166WVUG.js`).then(e=>e.default||e.default||e),__vite__mapDeps([54,7,8,2,9,20,16,33,13,14,15,3,26,4]),import.meta.url)),Bo=H(()=>W(()=>import(`./DuRiEXn4.js`).then(e=>e.default||e.default||e),__vite__mapDeps([55,7,8,2,9,20,16,21,22,29,25,4,26,56,15,28,1,3,5,6,10,11,12]),import.meta.url)),Vo=H(()=>W(()=>import(`./BRZIF_wo.js`).then(e=>e.default||e.default||e),__vite__mapDeps([57,7,8,2,9,20,16]),import.meta.url)),Ho=H(()=>W(()=>import(`./Zv9-SOQF.js`).then(e=>e.default||e.default||e),__vite__mapDeps([58,7,8,2,9,59,20,16,60,26,31,1,3,4,5,6,10,11,12]),import.meta.url)),Uo=H(()=>W(()=>import(`./DbWAComO.js`).then(e=>e.default||e.default||e),__vite__mapDeps([61,7,8,2,9,20,16]),import.meta.url)),Wo=H(()=>W(()=>import(`./C8qB5llI.js`).then(e=>e.default||e.default||e),__vite__mapDeps([62,7,8,2,9,59,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),Go=H(()=>W(()=>import(`./jbri6q1p.js`).then(e=>e.default||e.default||e),__vite__mapDeps([63,7,8,2,9,59,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),Ko=H(()=>W(()=>import(`./Lozm7hhE.js`).then(e=>e.default||e.default||e),__vite__mapDeps([64,7,8,2,9,20,16]),import.meta.url)),qo=H(()=>W(()=>import(`./DlNJhOoc.js`).then(e=>e.default||e.default||e),__vite__mapDeps([65,7,8,2,9,20,16]),import.meta.url)),Jo=H(()=>W(()=>import(`./DbwlcHAt.js`).then(e=>e.default||e.default||e),__vite__mapDeps([66,7,8,2,9,20,16,32,28,31,26,1,3,4,5,6,10,11,12,33,13,14,15]),import.meta.url)),Yo=H(()=>W(()=>import(`./CCA81-4P.js`).then(e=>e.default||e.default||e),__vite__mapDeps([67,5,6,7,8,2,9,10,11,12,68,15,20,16,25,4,26,22,21,29,36,69,24,35,70,1,3]),import.meta.url)),Xo=H(()=>W(()=>import(`./5okfNy5D.js`).then(e=>e.default||e.default||e),__vite__mapDeps([70,7,8,2,9,1,3,4,5,6,10,11,12]),import.meta.url)),Zo=H(()=>W(()=>import(`./4gQF_HS3.js`).then(e=>e.default||e.default||e),__vite__mapDeps([71,7,8,2,9,20,16]),import.meta.url)),Qo=H(()=>W(()=>import(`./BZvXNwev.js`).then(e=>e.default||e.default||e),__vite__mapDeps([72,7,8,2,9,20,16,24,25,4,26,21,22,34,27,35,15,69,29,70,1,3,5,6,10,11,12]),import.meta.url)),$o=H(()=>W(()=>import(`./COmtTtfB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([73,7,8,2,9,20,16,28,4,1,3,5,6,10,11,12]),import.meta.url)),es=H(()=>W(()=>import(`./C6o03JHe.js`).then(e=>e.default||e.default||e),__vite__mapDeps([74,7,8,2,9,20,16]),import.meta.url)),ts=H(()=>W(()=>import(`./DU6ArlUN.js`).then(e=>e.default||e.default||e),__vite__mapDeps([75,7,8,2,9,59,26,20,16]),import.meta.url)),ns=H(()=>W(()=>import(`./Ccgv3lDj.js`).then(e=>e.default||e.default||e),__vite__mapDeps([76,7,8,2,9,26,20,16]),import.meta.url)),rs=H(()=>W(()=>import(`./BlKmZhhF.js`).then(e=>e.default||e.default||e),__vite__mapDeps([77,7,8,2,9,20,16]),import.meta.url)),is=H(()=>W(()=>import(`./Cq7hsCKB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([78,8,2,7,9,20,16,1,3,4,5,6,10,11,12]),import.meta.url)),as=H(()=>W(()=>import(`./C4WdPP6K.js`).then(e=>e.default||e.default||e),__vite__mapDeps([79,8,2,7,9,20,16,1,3,4,5,6,10,11,12]),import.meta.url)),os=H(()=>W(()=>import(`./By1KXXLR.js`).then(e=>e.default||e.default||e),__vite__mapDeps([80,8,2,7,9,20,16]),import.meta.url)),ss=H(()=>W(()=>import(`./BiWrMOsL.js`).then(e=>e.default||e.default||e),__vite__mapDeps([81,7,8,2,9,20,16]),import.meta.url)),cs=H(()=>W(()=>import(`./CPYm4J_K.js`).then(e=>e.default||e.default||e),__vite__mapDeps([82,7,8,2,9,20,16,1,3,4,5,6,10,11,12]),import.meta.url)),ls=H(()=>W(()=>import(`./D6dUp4Nm.js`).then(e=>e.default||e.default||e),__vite__mapDeps([83,8,2,7,9,20,16,25,4,29,22,26,15]),import.meta.url)),us=H(()=>W(()=>import(`./C2YPmTzt.js`).then(e=>e.default||e.default||e),__vite__mapDeps([84,7,8,2,9,20,16]),import.meta.url)),ds=H(()=>W(()=>import(`./TBIRpVLG.js`).then(e=>e.default||e.default||e),__vite__mapDeps([85,7,8,2,9,20,16]),import.meta.url)),fs=H(()=>W(()=>import(`./Bs52qkgk.js`).then(e=>e.default||e.default||e),__vite__mapDeps([86,7,8,2,9,20,16]),import.meta.url)),ps=H(()=>W(()=>import(`./CGXljzd_.js`).then(e=>e.default||e.default||e),__vite__mapDeps([87,7,8,2,9,20,16]),import.meta.url)),ms=H(()=>W(()=>import(`./DOMM1wfl.js`).then(e=>e.default||e.default||e),__vite__mapDeps([88,7,8,2,9,25,4,20,16,70,1,3,5,6,10,11,12,32,28,31,26,33,13,14,15]),import.meta.url)),hs=H(()=>W(()=>import(`./CaE8VlUp.js`).then(e=>e.default||e.default||e),__vite__mapDeps([89,7,8,2,9,25,4,20,16,1,3,5,6,10,11,12,32,28,31,26,33,13,14,15]),import.meta.url)),gs=H(()=>W(()=>import(`./C3ZRWz5L.js`).then(e=>e.default||e.default||e),__vite__mapDeps([90,2]),import.meta.url)),_s=H(()=>W(()=>import(`./BkoKCNUY.js`).then(e=>e.default||e.default||e),__vite__mapDeps([91,7,8,2,9,20,16]),import.meta.url)),vs=H(()=>W(()=>import(`./MS7CGmCB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([92,7,8,2,9,20,16]),import.meta.url)),ys=H(()=>W(()=>import(`./CcGiNUgA.js`).then(e=>e.default||e.default||e),__vite__mapDeps([93,7,8,2,9,20,16]),import.meta.url)),bs=H(()=>W(()=>import(`./B1j6UC4U.js`).then(e=>e.default||e.default||e),__vite__mapDeps([94,5,6,7,8,2,9,10,11,12,20,16,68,15,25,4,26,22,21,29,36,69,24,35,28,1,3,31,60]),import.meta.url)),xs=H(()=>W(()=>import(`./Ck0-FqVI.js`).then(e=>e.default||e.default||e),__vite__mapDeps([95,7,8,2,9,20,16]),import.meta.url)),Ss=H(()=>W(()=>import(`./CkWKLtjO.js`).then(e=>e.default||e.default||e),__vite__mapDeps([96,7,8,2,9,20,16]),import.meta.url)),Cs=H(()=>W(()=>import(`./DHX2tw9J.js`).then(e=>e.default||e.default||e),__vite__mapDeps([97,7,8,2,9,20,16]),import.meta.url)),ws=H(()=>W(()=>import(`./Du2F4WXh.js`).then(e=>e.default||e.default||e),__vite__mapDeps([98,7,8,2,9,20,16]),import.meta.url)),Ts=H(()=>W(()=>import(`./TlTrMIMm.js`).then(e=>e.default||e.default||e),__vite__mapDeps([99,7,8,2,9,20,16]),import.meta.url)),Es=H(()=>W(()=>import(`./MMsTMkcB.js`).then(e=>e.default||e.default||e),__vite__mapDeps([100,7,8,2,9,20,16]),import.meta.url)),Ds=H(()=>W(()=>import(`./D4Dpzo9e.js`).then(e=>e.default||e.default||e),__vite__mapDeps([101,7,8,2,9,20,16]),import.meta.url)),Os=H(()=>W(()=>import(`./DqG7CtD4.js`).then(e=>e.default||e.default||e),__vite__mapDeps([102,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),ks=H(()=>W(()=>import(`./BLvbupFS.js`).then(e=>e.default||e.default||e),__vite__mapDeps([103,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),As=H(()=>W(()=>import(`./JU9-x68N.js`).then(e=>e.default||e.default||e),__vite__mapDeps([104,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),js=H(()=>W(()=>import(`./BmBpmU73.js`).then(e=>e.default||e.default||e),__vite__mapDeps([105,7,8,2,9,59,62,20,16,33,13,14,15,3,26,4,1,5,6,10,11,12]),import.meta.url)),Ms=H(()=>W(()=>import(`./D_ct-Stz.js`).then(e=>e.n).then(e=>e.default||e.default||e),__vite__mapDeps([5,6,7,8,2,9,10,11,12]),import.meta.url)),Ns=[[`ProseA`,zo],[`ProseAccordion`,Bo],[`ProseAccordionItem`,Vo],[`ProseBadge`,Ho],[`ProseBlockquote`,Uo],[`ProseCallout`,Wo],[`ProseCard`,Go],[`ProseCardGroup`,Ko],[`ProseCode`,qo],[`ProseCodeCollapse`,Jo],[`ProseCodeGroup`,Yo],[`ProseCodeIcon`,Xo],[`ProseCodePreview`,Zo],[`ProseCodeTree`,Qo],[`ProseCollapsible`,$o],[`ProseEm`,es],[`ProseField`,ts],[`ProseFieldGroup`,ns],[`ProseH1`,rs],[`ProseH2`,is],[`ProseH3`,as],[`ProseH4`,os],[`ProseHr`,ss],[`ProseIcon`,cs],[`ProseImg`,ls],[`ProseKbd`,us],[`ProseLi`,ds],[`ProseOl`,fs],[`ProseP`,ps],[`ProsePre`,ms],[`ProsePrompt`,hs],[`ProseScript`,gs],[`ProseSteps`,_s],[`ProseStrong`,vs],[`ProseTable`,ys],[`ProseTabs`,bs],[`ProseTabsItem`,xs],[`ProseTbody`,Ss],[`ProseTd`,Cs],[`ProseTh`,ws],[`ProseThead`,Ts],[`ProseTr`,Es],[`ProseUl`,Ds],[`ProseCaution`,Os],[`ProseNote`,ks],[`ProseTip`,As],[`ProseWarning`,js],[`Icon`,Ms]],Ps=s({name:`nuxt:global-components`,setup(e){for(let[t,n]of Ns)e.vueApp.component(t,n),e.vueApp.component(`Lazy`+t,n)}}),Fs={},Is=[`route`,`payload`,`island`,`hint`],Ls=12,Rs={route:8,payload:8,island:4,hint:8};function zs(e={}){let t={...Rs,...e.concurrency},n=e.total??Ls,r=e.canPrefetch,i=e.defer,a={route:[],payload:[],island:[],hint:[]},o=Is.map(e=>a[e]),s=new WeakSet,c=new Map,l={route:0,payload:0,island:0,hint:0},u=0,d=new Map,f=new AbortController,p=new AbortController;p.abort();function m(e){c.get(e.key)===e&&c.delete(e.key)}function h(e){m(e),Promise.resolve().then(()=>e.run(p.signal,!1)).catch(()=>{})}function g(){if(!r||r())for(;u<n;){let e=Is.find(e=>a[e].length&&l[e]<t[e]);if(!e)return;let n=a[e].shift();_(n,s.delete(n))}}function _(e,t){let n=e.scope===`app`?f:new AbortController;e.scope===`navigation`&&d.set(e,n),l[e.priority]++,u++;let r=!1,a=()=>{r||(r=!0,l[e.priority]--,u--,d.delete(e),m(e),g())};n.signal.addEventListener(`abort`,a,{once:!0});let o=()=>Promise.resolve().then(()=>e.run(n.signal,t)).then(a,a);i?i(o,t,e.priority):o()}let v=(e,t)=>t!==void 0&&e.group===t&&e.priority!==`hint`;return{schedule(e){let t=[];for(let n of Array.isArray(e)?e:[e])c.has(n.key)?h(n):(c.set(n.key,n),t.push(n));for(let e=t.length-1;e>=0;e--)a[t[e].priority].unshift(t[e]);g()},promote(e){for(let t of o){let n=[],r=[];for(let i of t)i.group===e&&s.add(i),(i.group===e?n:r).push(i);t.length=0,t.push(...n,...r)}g()},reset(e){for(let t of o)for(let n=t.length-1;n>=0;n--){let r=t[n];r.scope===`navigation`&&!v(r,e)&&(t.splice(n,1),h(r))}for(let[t,n]of[...d])v(t,e)||n.abort();g()},resume:g}}var Bs=1e3;function Vs(e,t,n){if(t||n===`route`)return e();let r=globalThis.scheduler;r?.postTask?r.postTask(e,{priority:`background`}).catch(()=>{}):Ue(e,{timeout:Bs})}function Hs(e=u()){if(e._prefetch)return e._prefetch;let t=!1,n=zs({canPrefetch:()=>xn()&&!t&&document.visibilityState!==`hidden`,defer:Vs});e._prefetch=n,navigator.connection?.addEventListener?.(`change`,()=>n.resume()),document.addEventListener(`visibilitychange`,()=>n.resume());let r=e.$router;return r.beforeEach(()=>{t=!0}),r.afterEach(e=>{t=!1,n.reset(Sn(e.fullPath))}),r.onError(()=>{t=!1,n.resume()}),n}var Us=s({name:`nuxt:prefetch`,setup(e){let t=Pe();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;typeof t==`string`&&t in Fs&&await Cn(Fs[t])})});let{schedule:n}=Hs(e);e.hooks.hook(`link:prefetch`,async e=>{if(an(e))return;let r=t.resolve(e);if(!r)return;let i=r.meta.layout,a=va(r.meta.middleware).filter(e=>typeof e==`string`);n({key:`route:chunks:${e}`,priority:`route`,scope:`navigation`,group:Sn(e),run:e=>{if(e.aborted)return;let t=[];for(let e of a){let n=_o[e];typeof n==`function`&&t.push(n())}return typeof i==`string`&&i in Fs&&t.push(Cn(Fs[i])),Promise.all(t).catch(()=>{})}})})}}),Ws={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 none)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 none)`,100:`oklch(97% 0 none)`,200:`oklch(92.2% 0 none)`,300:`oklch(87% 0 none)`,400:`oklch(70.8% 0 none)`,500:`oklch(55.6% 0 none)`,600:`oklch(43.9% 0 none)`,700:`oklch(37.1% 0 none)`,800:`oklch(26.9% 0 none)`,900:`oklch(20.5% 0 none)`,950:`oklch(14.5% 0 none)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 none)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}},Gs=[50,100,200,300,400,500,600,700,800,900,950];function Ks(e,t){return e in Ws&&typeof Ws[e]==`object`&&t in Ws[e]?Ws[e][t]:``}function qs(e,t,n){let r=n?`${n}-`:``;return`${Gs.map(n=>`--ui-color-${e}-${n}: var(--${r}color-${t===`neutral`?`old-neutral`:t}-${n}, ${Ks(t,n)});`).join(`
3
+ `)}`}function Js(e,t){return`--ui-${e}: var(--ui-color-${e}-${t});`}function Ys(){document.querySelector(`[data-nuxt-ui-colors]`)?.remove()}var Xs=[da,xo,So,Co,To,Eo,Do,Ro,Ps,Us,s(()=>{let e=On(),t=u(),n=V(()=>{let{neutral:t,...n}=e.ui.colors,r=e.ui.prefix;return`@layer theme {
4
4
  :root, :host {
5
- ${Object.entries(e.ui.colors).map(([e,t])=>Ks(e,t,r)).join(`
5
+ ${Object.entries(e.ui.colors).map(([e,t])=>qs(e,t,r)).join(`
6
6
  `)}
7
7
  }
8
8
  :root, :host, .light {
9
- ${Object.keys(n).map(e=>qs(e,500)).join(`
9
+ ${Object.keys(n).map(e=>Js(e,500)).join(`
10
10
  `)}
11
11
  }
12
12
  .dark {
13
- ${Object.keys(n).map(e=>qs(e,400)).join(`
13
+ ${Object.keys(n).map(e=>Js(e,400)).join(`
14
14
  `)}
15
15
  }
16
- }`}),r={style:[{innerHTML:n,tagPriority:`critical`,id:`nuxt-ui-colors`}]};if(t.isHydrating&&!t.payload.serverRendered){let e=document.createElement(`style`);e.innerHTML=n.value,e.setAttribute(`data-nuxt-ui-colors`,``),document.head.appendChild(e);let t=vn().hooks?.hook(`dom:rendered`,()=>{Js(),t?.()})}mn(r)})];function Xs(e){if(typeof window>`u`||typeof e!=`object`||!e)return!1;let t=e.ownerDocument?.defaultView??window;return e instanceof HTMLElement||e instanceof t.HTMLElement}var Zs=[`INPUT`,`TEXTAREA`];function Qs(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Zs.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=$s(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function $s(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?$s(e,o,n,r):o:null}function ec(){let e=ut()?.vnode?.scopeId;return e?{[e]:``}:{}}function tc(e,t){let n=Tr(!1,300);Cr(()=>{n.value=!1});let r=W(null),i=Or();function a(){r.value=null,n.value=!1}function o(e,t){if(!t)return;let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=rc(a,nc(a,i.getBoundingClientRect()),1),s=ic(t.getBoundingClientRect()),c=oc([...o,...s]);r.value=c,n.value=!0}return Ut(n=>{if(e.value&&t.value){let r=e.value,i=t.value,a=e=>o(e,i),s=e=>o(e,r);r.addEventListener(`pointerleave`,a),i.addEventListener(`pointerleave`,s),n(()=>{r.removeEventListener(`pointerleave`,a),i.removeEventListener(`pointerleave`,s)})}}),Ut(n=>{if(r.value){let o=n=>{if(!r.value||!(n.target instanceof Element))return;let o=n.target,s={x:n.clientX,y:n.clientY},c=e.value?.contains(o)||t.value?.contains(o),l=!ac(s,r.value),u=!!o.closest(`[data-grace-area-trigger]`);c?a():(l||u)&&(a(),i.trigger())},s=e.value?.ownerDocument;s?.addEventListener(`pointermove`,o),n(()=>s?.removeEventListener(`pointermove`,o))}}),{isPointerInTransit:n,onPointerExit:i.on}}function nc(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function rc(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function ic(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ac(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function oc(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),sc(t)}function sc(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t.at(-1),n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n.at(-1),t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var[cc,lc]=Nn(`CollapsibleRoot`),uc=k({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=fr(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=dt(r);return lc({contentId:``,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),K(),(t,n)=>(j(),F(E(yr),{as:e.as,"as-child":r.asChild,"data-state":E(i)?`open`:`closed`,"data-disabled":E(a)?``:void 0},{default:L(()=>[B(t.$slots,`default`,{open:E(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),dc=k({inheritAttrs:!1,__name:`CollapsibleContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`contentFound`],setup(e,{emit:t}){let n=e,r=t,i=cc();i.contentId||=vr(void 0,`reka-collapsible-content`);let a=W(),{forwardRef:o,currentElement:s}=K(),c=W(0),l=W(0),u=H(()=>i.open.value),d=W(u.value),f=W();Mt(()=>[u.value,a.value?.present],async()=>{await yt();let e=s.value;if(!e)return;f.value=f.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();l.value=t.height,c.value=t.width,d.value||(e.style.transitionDuration=f.value.transitionDuration,e.style.animationName=f.value.animationName)},{immediate:!0});let p=H(()=>d.value&&i.open.value);return lt(()=>{requestAnimationFrame(()=>{d.value=!1})}),mr(s,`beforematch`,e=>{requestAnimationFrame(()=>{i.onOpenToggle(),r(`contentFound`)})}),(t,r)=>(j(),F(E(Pr),{ref_key:`presentRef`,ref:a,present:e.forceMount||E(i).open.value,"force-mount":!0},{default:L(({present:r})=>[N(E(yr),O(t.$attrs,{id:E(i).contentId,ref:E(o),"as-child":n.asChild,as:e.as,hidden:r?void 0:E(i).unmountOnHide.value?``:`until-found`,"data-state":p.value?void 0:E(i).open.value?`open`:`closed`,"data-disabled":E(i).disabled?.value?``:void 0,style:{"--reka-collapsible-content-height":`${l.value}px`,"--reka-collapsible-content-width":`${c.value}px`}}),{default:L(()=>[!E(i).unmountOnHide.value||r?B(t.$slots,`default`,{},void 0,void 0,0):z(`v-if`,!0)]),_:2},1040,[`id`,`as-child`,`as`,`hidden`,`data-state`,`data-disabled`,`style`])]),_:3},8,[`present`]))}}),fc=k({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;K();let n=cc();return(r,i)=>(j(),F(E(yr),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":E(n).contentId,"aria-expanded":E(n).open.value,"data-state":E(n).open.value?`open`:`closed`,"data-disabled":E(n).disabled?.value?``:void 0,disabled:E(n).disabled?.value,onClick:E(n).onOpenToggle},{default:L(()=>[B(r.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`]))}}),pc=k({__name:`DismissableLayerBranch`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=K(),i=null;return lt(()=>{i=r.value,i&&Jn.branches.add(i)}),Tt(()=>{i&&=(Jn.branches.delete(i),null)}),(e,r)=>(j(),F(E(yr),O({ref:E(n)},t),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),mc=`menu.itemSelect`,hc=[`Enter`,` `],gc=[`ArrowDown`,`PageUp`,`Home`],_c=[`ArrowUp`,`PageDown`,`End`],vc=[...gc,..._c],yc={ltr:[...hc,`ArrowRight`],rtl:[...hc,`ArrowLeft`]},bc={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]};function xc(e){return e?`open`:`closed`}function Sc(e){return e===`indeterminate`}function Cc(e){return Sc(e)?`indeterminate`:e?`checked`:`unchecked`}function wc(e){let{onEntryFocus:t,onEntryFocusOnce:n,...r}=e;return r}function Tc(e){let t=Mr();for(let n of e)if(n===t||(n.focus(),Mr()!==t))return}function Ec(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Dc(e,t){return t?Ec({x:e.clientX,y:e.clientY},t):!1}function Oc(e){return e.pointerType===`mouse`}var kc=k({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,n=_r({}),r=H(()=>t.to??n.teleportTo?.value??`body`),i=cr();return(t,n)=>E(i)||e.forceMount?(j(),F(Gt,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[B(t.$slots,`default`)],8,[`to`,`disabled`,`defer`])):z(`v-if`,!0)}}),[Ac,jc]=Nn(`RovingFocusGroup`),Mc=k({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=dt(r),c=Bn(s),l=fr(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=W(!1),d=W(!1),f=W(0),{getItems:p,CollectionSlot:m}=Nr({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(Rr,Lr);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``),t=[e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===l.value),...e].filter(Boolean);Ir(t,r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),jc({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(t,n)=>(j(),F(E(m),null,{default:L(()=>[N(E(yr),{tabindex:u.value||f.value===0?-1:0,"data-orientation":E(o),as:e.as,"as-child":e.asChild,dir:E(c),style:{outline:`none`},onMousedown:n[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:n[1]||=e=>u.value=!1},{default:L(()=>[B(t.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),Nc=k({__name:`Label`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`label`}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(yr),O(t,{onMousedown:n[0]||=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Pc=k({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(Wn),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Fc=k({__name:`MenuArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(Un),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}});function Ic(){let e=W(!1);return lt(()=>{mr(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),mr([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var Lc=Sr(Ic),[Rc,zc]=Nn([`MenuRoot`,`MenuSub`],`MenuContext`),[Bc,Vc]=Nn(`MenuRoot`),Hc=k({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=dt(n),o=Bn(a),s=fr(n,`open`,r),c=W(),l=Lc();return zc({open:s,onOpenChange:e=>{s.value=e},content:c,onContentChange:e=>{c.value=e}}),Vc({onClose:()=>{s.value=!1},isUsingKeyboardRef:l,dir:o,modal:i}),(e,t)=>(j(),F(E(Xn),null,{default:L(()=>[B(e.$slots,`default`)]),_:3}))}}),[Uc,Wc]=Nn(`MenuContent`),Gc=k({__name:`MenuContentImpl`,props:ct({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...$n}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=Rc(),a=Bc(),{trapFocus:o,disableOutsidePointerEvents:s,loop:c}=dt(n);sr(),Vn(s.value);let l=W(``),u=W(0),d=W(0),f=W(null),p=W(`right`),m=W(0),h=W(null),g=W(),{forwardRef:_,currentElement:v}=K(),{handleTypeaheadSearch:y}=Fr(),b=W();function x(e){let t=Qs(e,b.value||Mr(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(b.value=t,t.scrollIntoView({block:`nearest`}))}function S(){b.value&&b.value.click()}let C=W(),w=W();Mt(b,e=>{if(w.value&&(e===void 0||e!==w.value.trigger.value)){if(e===void 0)return;w.value.onOpenChange(!1),w.value=void 0}}),Mt(v,e=>{i.onContentChange(e)}),Tt(()=>{window.clearTimeout(u.value)});function ee(e){return p.value===f.value?.side&&Dc(e,f.value?.area)}async function te(e){r(`openAutoFocus`,e),e.defaultPrevented||(e.preventDefault(),v.value?.focus({preventScroll:!0}))}function ne(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,s=Qs(e,Mr(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(s)return s?.focus();if(e.code===`Space`)return;let l=g.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&y(e.key,l)),e.target!==v.value||!vc.includes(e.key))return;e.preventDefault();let u=[...l.map(e=>e.ref)];_c.includes(e.key)&&u.reverse(),Tc(u)}function re(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(u.value),l.value=``)}function ie(e){if(!Oc(e))return;let t=e.target,n=m.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>m.value?`right`:`left`;p.value=t,m.value=e.clientX}}function ae(e){Oc(e)&&C.value&&C.value.focus()}return Wc({onItemEnter:e=>!!ee(e),onItemLeave:e=>ee(e)?!0:([`INPUT`,`TEXTAREA`].includes(Mr()?.tagName||``)||v.value?.focus(),h.value=null,!1),onTriggerLeave:e=>!!ee(e),searchRef:l,highlightedElement:b,onKeydownNavigation:x,onKeydownEnter:S,filterElement:C,onFilterElementChange:e=>{C.value=e},activeSubmenuContext:w,pointerGraceTimerRef:d,onPointerGraceIntentChange:e=>{f.value=e}}),(t,n)=>(j(),F(E(Gn),{"as-child":``,trapped:E(o),onMountAutoFocus:te,onUnmountAutoFocus:n[7]||=e=>r(`closeAutoFocus`,e)},{default:L(()=>[N(E(Zn),{"as-child":``,"disable-outside-pointer-events":E(s),onEscapeKeyDown:n[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:n[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:n[4]||=e=>r(`focusOutside`,e),onInteractOutside:n[5]||=e=>r(`interactOutside`,e),onDismiss:n[6]||=e=>r(`dismiss`)},{default:L(()=>[N(E(Mc),{ref_key:`rovingFocusGroupRef`,ref:g,"current-tab-stop-id":h.value,"onUpdate:currentTabStopId":n[0]||=e=>h.value=e,"as-child":``,orientation:`vertical`,dir:E(a).dir.value,loop:E(c),onEntryFocus:n[1]||=e=>{r(`entryFocus`,e),E(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:L(()=>[N(E(nr),{ref:E(_),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":E(xc)(E(i).open.value),dir:E(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:ne,onBlur:re,onPointermove:ie,onPointerenter:ae},{default:L(()=>[B(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),Kc=k({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Uc(),{forwardRef:r,currentElement:i}=K(),{CollectionItem:a}=Nr(),o=W(!1),s=H(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function c(e){if(!e.defaultPrevented&&Oc(e)){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(Mr()?.tagName||``)||t.focus({preventScroll:!0})}}}async function l(e){await yt(),e.defaultPrevented||Oc(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(t,i)=>(j(),F(E(a),{value:{textValue:e.textValue}},{default:L(()=>[N(E(yr),O({ref:E(r),role:`menuitem`,tabindex:`-1`},t.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":s.value?``:void 0,onPointermove:c,onPointerleave:l,onFocus:i[0]||=async t=>{let r=t.currentTarget;await yt(),t.defaultPrevented||e.disabled||(o.value=!0,E(n).highlightedElement.value=r)},onBlur:i[1]||=async e=>{await yt(),e.defaultPrevented||(o.value=!1)}}),{default:L(()=>[B(t.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),qc=k({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=K(),o=Bc(),s=Uc(),c=W(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(mc,{bubbles:!0,cancelable:!0});r(`select`,e),await yt(),e.defaultPrevented?c.value=!1:o.onClose()}}return(t,r)=>(j(),F(Kc,O(n,{ref:E(i),onClick:l,onPointerdown:r[0]||=()=>{c.value=!0},onPointerup:r[1]||=async e=>{await yt(),e.defaultPrevented||c.value||e.currentTarget?.click()},onKeydown:r[2]||=async t=>{let n=E(s).searchRef.value!==``;e.disabled||n&&t.key===` `||E(hc).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:L(()=>[B(t.$slots,`default`)]),_:3},16))}}),[Jc,Yc]=Nn([`MenuCheckboxItem`,`MenuRadioItem`],`MenuItemIndicatorContext`),Xc=k({__name:`MenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Jc({modelValue:W(!1)});return(n,r)=>(j(),F(E(Pr),{present:e.forceMount||E(Sc)(E(t).modelValue.value)||E(t).modelValue.value===!0},{default:L(()=>[N(E(yr),{as:e.as,"as-child":e.asChild,"data-state":E(Cc)(E(t).modelValue.value)},{default:L(()=>[B(n.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`])]),_:3},8,[`present`]))}}),Zc=k({__name:`MenuCheckboxItem`,props:{modelValue:{type:[Boolean,String],required:!1,default:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=Dr(n,[`modelValue`]),a=zr(i),o=fr(n,`modelValue`,r);return Yc({modelValue:o}),(e,t)=>(j(),F(qc,O({role:`menuitemcheckbox`},E(a),{"aria-checked":E(Sc)(E(o))?`mixed`:E(o),"data-state":E(Cc)(E(o)),onSelect:t[0]||=async e=>{r(`select`,e),E(Sc)(E(o))?o.value=!0:o.value=!E(o)}}),{default:L(()=>[B(e.$slots,`default`,{checked:E(o),modelValue:E(o)})]),_:3},16,[`aria-checked`,`data-state`]))}}),Qc=k({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Hn(n,r),a=Rc(),{forwardRef:o,currentElement:s}=K();return qn(s),(e,t)=>(j(),F(Gc,O(E(i),{ref:E(o),"trap-focus":E(a).open.value,"disable-outside-pointer-events":E(a).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>E(a).onOpenChange(!1),onFocusOutside:t[1]||=tt(e=>r(`focusOutside`,e),[`prevent`])}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),$c=k({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Hn(e,t),r=Rc();return(e,t)=>(j(),F(Gc,O(E(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>E(r).onOpenChange(!1)}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),el=k({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Hn(e,t),r=Rc(),i=Bc();return(t,a)=>(j(),F(E(Pr),{present:e.forceMount||E(r).open.value},{default:L(()=>[E(i).modal.value?(j(),F(Qc,D(O({key:0},{...t.$attrs,...E(n)})),{default:L(()=>[B(t.$slots,`default`)]),_:3},16)):(j(),F($c,D(O({key:1},{...t.$attrs,...E(n)})),{default:L(()=>[B(t.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),[tl,nl]=Nn(`MenuGroup`),rl=k({__name:`MenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=vr(void 0,`reka-menu-group`);return nl({id:n}),(e,r)=>(j(),F(E(yr),O({role:`group`},t,{"aria-labelledby":E(n)}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),il=k({__name:`MenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=tl({id:``});return(e,r)=>(j(),F(E(yr),O(t,{id:E(n).id||void 0}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16,[`id`]))}}),al=k({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(kc),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),ol=k({__name:`MenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(yr),O(t,{role:`separator`,"aria-orientation":`horizontal`}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),[sl,cl]=Nn(`MenuSub`),ll=k({__name:`MenuSub`,props:{open:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=fr(n,`open`,t,{defaultValue:!1,passive:n.open===void 0}),i=Rc(),a=W(),o=W();return Ut(e=>{i?.open.value===!1&&(r.value=!1),e(()=>r.value=!1)}),zc({open:r,onOpenChange:e=>{r.value=e},content:o,onContentChange:e=>{o.value=e}}),cl({triggerId:``,contentId:``,trigger:a,onTriggerChange:e=>{a.value=e}}),(e,t)=>(j(),F(E(Xn),null,{default:L(()=>[B(e.$slots,`default`)]),_:3}))}}),ul=k({__name:`MenuSubContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1,default:!0},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Hn(e,t),r=Rc(),i=Bc(),a=sl(),o=Uc(),{forwardRef:s,currentElement:c}=K();return a.contentId||=vr(void 0,`reka-menu-sub-content`),(t,l)=>(j(),F(E(Pr),{present:e.forceMount||E(r).open.value},{default:L(()=>[N(Gc,O(E(n),{id:E(a).contentId,ref:E(s),"aria-labelledby":E(a).triggerId,align:`start`,side:E(i).dir.value===`rtl`?`left`:`right`,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:l[0]||=tt(e=>{E(i).isUsingKeyboardRef.value&&E(c)?.focus()},[`prevent`]),onCloseAutoFocus:l[1]||=tt(()=>{},[`prevent`]),onFocusOutside:l[2]||=e=>{if(e.defaultPrevented)return;let t=E(o).filterElement.value?.contains(e.target);e.target!==E(a).trigger.value&&!t&&E(r).onOpenChange(!1)},onEscapeKeyDown:l[3]||=e=>{E(i).onClose(),e.preventDefault()},onKeydown:l[4]||=e=>{let t=e.currentTarget?.contains(e.target),n=E(bc)[E(i).dir.value].includes(e.key);t&&n&&(E(r).onOpenChange(!1),E(o).filterElement.value?(E(o).filterElement.value.focus(),E(o).highlightedElement.value=E(a).trigger.value,E(a).trigger.value?.scrollIntoView({block:`nearest`})):E(a).trigger.value?.focus(),e.preventDefault())}}),{default:L(()=>[B(t.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`side`])]),_:3},8,[`present`]))}}),dl=k({__name:`MenuSubTrigger`,props:{graceDuration:{type:Number,required:!1,default:300},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Dr(t,`graceDuration`),r=Rc(),i=Bc(),a=sl(),o=Uc();Mt(r.open,e=>{e?o.activeSubmenuContext.value={onOpenChange:r.onOpenChange,trigger:a.trigger}:o.activeSubmenuContext.value?.trigger.value===a.trigger.value&&(o.activeSubmenuContext.value=void 0)});let s=W(null);a.triggerId||=vr(void 0,`reka-menu-sub-trigger`);function c(){s.value&&window.clearTimeout(s.value),s.value=null}Tt(()=>{c()});function l(e){Oc(e)&&(o.onItemEnter(e)||t.disabled||r.open.value||s.value||(o.onPointerGraceIntentChange(null),s.value=window.setTimeout(()=>{r.onOpenChange(!0),c()},100)))}async function u(e){if(!Oc(e))return;c();let n=r.content.value?.getBoundingClientRect();if(n?.width){let i=r.content.value?.dataset.side,a=i===`right`,s=a?-5:5,c=n[a?`left`:`right`],l=n[a?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:c,y:n.top},{x:l,y:n.top},{x:l,y:n.bottom},{x:c,y:n.bottom}],side:i}),window.clearTimeout(o.pointerGraceTimerRef.value),o.pointerGraceTimerRef.value=window.setTimeout(()=>o.onPointerGraceIntentChange(null),t.graceDuration)}else{if(o.onTriggerLeave(e))return;o.onPointerGraceIntentChange(null)}}async function d(e){let n=o.searchRef.value!==``;t.disabled||n&&e.key===` `||yc[i.dir.value].includes(e.key)&&(r.onOpenChange(!0),await yt(),r.content.value?.focus(),e.preventDefault())}return(e,i)=>(j(),F(Pc,{"as-child":``},{default:L(()=>[N(Kc,O(E(n),{id:E(a).triggerId,ref:e=>{e&&E(a)?.onTriggerChange(e?.$el)},"aria-haspopup":`menu`,"aria-expanded":E(r).open.value,"aria-controls":E(a).contentId,"data-state":E(xc)(E(r).open.value),onClick:i[0]||=async e=>{t.disabled||e.defaultPrevented||(e.currentTarget?.focus(),E(r).open.value||E(r).onOpenChange(!0))},onPointermove:l,onPointerleave:u,onKeydown:d}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16,[`id`,`aria-expanded`,`aria-controls`,`data-state`])]),_:3}))}}),[fl,pl]=Nn(`PopoverRoot`),ml=k({__name:`PopoverRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i}=dt(n),a=fr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return pl({contentId:``,triggerId:``,modal:i,open:a,onOpenChange:e=>{a.value=e},onOpenToggle:()=>{a.value=!a.value},triggerElement:W(),hasCustomAnchor:W(!1)}),(e,t)=>(j(),F(E(Xn),null,{default:L(()=>[B(e.$slots,`default`,{open:E(a),close:()=>a.value=!1})]),_:3}))}}),hl=k({__name:`PopoverAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;K();let n=fl();return mt(()=>{n.hasCustomAnchor.value=!0}),Tt(()=>{n.hasCustomAnchor.value=!1}),(e,n)=>(j(),F(E(Wn),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),gl=k({__name:`PopoverArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(Un),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),_l=k({__name:`PopoverContentImpl`,props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=zr(Dr(n,`trapFocus`,`disableOutsidePointerEvents`)),{forwardRef:a}=K(),o=fl();return sr(),(t,n)=>(j(),F(E(Gn),{"as-child":``,loop:``,trapped:e.trapFocus,onMountAutoFocus:n[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:n[6]||=e=>r(`closeAutoFocus`,e)},{default:L(()=>[N(E(Zn),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onPointerDownOutside:n[0]||=e=>r(`pointerDownOutside`,e),onInteractOutside:n[1]||=e=>r(`interactOutside`,e),onEscapeKeyDown:n[2]||=e=>r(`escapeKeyDown`,e),onFocusOutside:n[3]||=e=>r(`focusOutside`,e),onDismiss:n[4]||=e=>E(o).onOpenChange(!1)},{default:L(()=>[N(E(nr),O(E(i),{id:E(o).contentId,ref:E(a),"data-state":E(o).open.value?`open`:`closed`,"aria-labelledby":E(o).triggerId,style:{"--reka-popover-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-popover-content-available-width":`var(--reka-popper-available-width)`,"--reka-popover-content-available-height":`var(--reka-popper-available-height)`,"--reka-popover-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-popover-trigger-height":`var(--reka-popper-anchor-height)`},role:`dialog`}),{default:L(()=>[B(t.$slots,`default`)]),_:3},16,[`id`,`data-state`,`aria-labelledby`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),vl=k({__name:`PopoverContentModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=fl(),a=W(!1);Vn(!0);let o=Hn(n,r),{forwardRef:s,currentElement:c}=K();return qn(c),(e,t)=>(j(),F(_l,O(E(o),{ref:E(s),"trap-focus":E(i).open.value,"disable-outside-pointer-events":``,onCloseAutoFocus:t[0]||=tt(e=>{r(`closeAutoFocus`,e),a.value||E(i).triggerElement.value?.focus()},[`prevent`]),onPointerDownOutside:t[1]||=e=>{r(`pointerDownOutside`,e);let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,i=t.button===2||n;a.value=i},onFocusOutside:t[2]||=tt(()=>{},[`prevent`])}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),yl=k({__name:`PopoverContentNonModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=fl(),a=W(!1),o=W(!1),s=Hn(n,r);return(e,t)=>(j(),F(_l,O(E(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{r(`closeAutoFocus`,e),e.defaultPrevented||(a.value||E(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=async e=>{r(`interactOutside`,e),e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;E(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),bl=k({__name:`PopoverContent`,props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=fl(),a=Hn(n,r),{forwardRef:o}=K();return i.contentId||=vr(void 0,`reka-popover-content`),(t,n)=>(j(),F(E(Pr),{present:e.forceMount||E(i).open.value},{default:L(()=>[E(i).modal.value?(j(),F(vl,O({key:0},E(a),{ref:E(o)}),{default:L(()=>[B(t.$slots,`default`)]),_:3},16)):(j(),F(yl,O({key:1},E(a),{ref:E(o)}),{default:L(()=>[B(t.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),xl=k({__name:`PopoverPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(kc),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Sl=k({__name:`PopoverTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=fl(),{forwardRef:r,currentElement:i}=K();return n.triggerId||=vr(void 0,`reka-popover-trigger`),n.contentId||=vr(void 0,`reka-popover-content`),lt(()=>{n.triggerElement.value=i.value}),(i,a)=>(j(),F(Dt(E(n).hasCustomAnchor.value?E(yr):E(Wn)),{"as-child":``},{default:L(()=>[N(E(yr),{id:E(n).triggerId,ref:E(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":E(n).open.value,"aria-controls":E(n).open.value?E(n).contentId:void 0,"data-state":E(n).open.value?`open`:`closed`,as:e.as,"as-child":t.asChild,onClick:E(n).onOpenToggle},{default:L(()=>[B(i.$slots,`default`)]),_:3},8,[`id`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`as`,`as-child`,`onClick`])]),_:3}))}}),Cl=k({__name:`DropdownMenuArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(Fc),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),wl=k({__name:`DropdownMenuCheckboxItem`,props:{modelValue:{type:[Boolean,String],required:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=kr(t);return K(),(e,t)=>(j(),F(E(Zc),D(A({...n,...E(r)})),{default:L(t=>[B(e.$slots,`default`,D(A(t)))]),_:3},16))}}),[Tl,El]=Nn(`DropdownMenuRoot`),Dl=k({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;K();let i=fr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=W(),{modal:o,dir:s}=dt(n),c=Bn(s);return El({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:o,dir:c}),(e,t)=>(j(),F(E(Hc),{open:E(i),"onUpdate:open":t[0]||=e=>Ft(i)?i.value=e:null,dir:E(c),modal:E(o)},{default:L(()=>[B(e.$slots,`default`,{open:E(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),Ol=k({inheritAttrs:!1,__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Hn(e,t);K();let r=Tl(),i=W(!1);function a(e){e.defaultPrevented||(i.value||setTimeout(()=>{r.triggerElement.value?.focus()},0),i.value=!1,e.preventDefault())}return r.contentId||=vr(void 0,`reka-dropdown-menu-content`),(e,t)=>(j(),F(E(el),O({id:E(r).contentId,"aria-labelledby":E(r)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`}},{...E(n),...E(wc)(e.$attrs)},{onCloseAutoFocus:a,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,a=t.button===2||n;(!E(r).modal.value||a)&&(i.value=!0),E(r).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),kl=k({__name:`DropdownMenuFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=fr(n,`modelValue`,t,{defaultValue:``,passive:n.modelValue===void 0}),i=Bc(),a=Uc(),o=sl(null);Mt(r,e=>{a.searchRef.value=e??``},{immediate:!0});let{primitiveElement:s,currentElement:c}=jr(),l=H(()=>n.disabled||!1),u=W();Nt(()=>u.value=a.highlightedElement.value?.id),lt(()=>{a.onFilterElementChange(c.value),setTimeout(()=>{n.autoFocus&&(!o||i.isUsingKeyboardRef.value)&&c.value?.focus()},1)}),Tt(()=>{a.onFilterElementChange(void 0),a.searchRef.value=``});let{isComposing:d,shouldDeferInput:f,handleCompositionStart:p,handleCompositionUpdate:m,handleCompositionEnd:h}=or(e=>{let t=e.target;t&&(r.value=t.value,a.searchRef.value=t.value)});function g(e){if(l.value||f.value)return;let t=e.target;r.value=t.value,a.searchRef.value=t.value}function _(e){l.value||(d.value?e.stopPropagation():[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)?(e.preventDefault(),a.onKeydownNavigation(e)):e.key===`Enter`?(e.preventDefault(),a.onKeydownEnter(e)):e.key===`Escape`&&r.value&&(e.stopPropagation(),r.value=``,a.searchRef.value=``))}return(t,n)=>(j(),F(E(yr),{ref_key:`primitiveElement`,ref:s,as:e.as,"as-child":e.asChild,value:E(r),disabled:l.value?``:void 0,"data-disabled":l.value?``:void 0,"aria-disabled":l.value?!0:void 0,"aria-activedescendant":u.value,type:`text`,role:`searchbox`,onInput:g,onKeydown:_,onCompositionstart:E(p),onCompositionupdate:E(m),onCompositionend:E(h)},{default:L(()=>[B(t.$slots,`default`,{modelValue:E(r)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`]))}}),Al=k({__name:`DropdownMenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(rl),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),jl=k({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=kr(t);return K(),(e,t)=>(j(),F(E(qc),D(A({...n,...E(r)})),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Ml=k({__name:`DropdownMenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(Xc),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Nl=k({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(il),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Pl=k({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(al),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Fl=k({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(ol),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Il=k({__name:`DropdownMenuSub`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=fr(n,`open`,t,{passive:n.open===void 0,defaultValue:n.defaultOpen??!1});return K(),(e,t)=>(j(),F(E(ll),{open:E(r),"onUpdate:open":t[0]||=e=>Ft(r)?r.value=e:null},{default:L(()=>[B(e.$slots,`default`,{open:E(r)})]),_:3},8,[`open`]))}}),Ll=k({__name:`DropdownMenuSubContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Hn(e,t);return K(),(e,t)=>(j(),F(E(ul),O(E(n),{style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Rl=k({__name:`DropdownMenuSubTrigger`,props:{graceDuration:{type:Number,required:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(dl),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),zl=k({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Tl(),{forwardRef:r,currentElement:i}=K();return lt(()=>{n.triggerElement=i}),n.triggerId||=vr(void 0,`reka-dropdown-menu-trigger`),(i,a)=>(j(),F(E(Pc),{"as-child":``},{default:L(()=>[N(E(yr),{id:E(n).triggerId,ref:E(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":E(n).open.value,"aria-controls":E(n).open.value?E(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":E(n).open.value?`open`:`closed`,onClick:a[0]||=async t=>{t.defaultPrevented||!e.disabled&&t.button===0&&t.ctrlKey===!1&&(E(n)?.onOpenToggle(),await yt(),E(n).open.value&&t.preventDefault())},onKeydown:a[1]||=at(t=>{e.disabled||t.defaultPrevented||([`Enter`,` `].includes(t.key)&&E(n).onOpenToggle(),t.key===`ArrowDown`&&E(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:L(()=>[B(i.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),Bl=k({__name:`HoverCardArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(Un),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),[Vl,Hl]=Nn(`HoverCardRoot`),Ul=k({__name:`HoverCardRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},openDelay:{type:Number,required:!1,default:700},closeDelay:{type:Number,required:!1,default:300},enableTouch:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{openDelay:i,closeDelay:a,enableTouch:o}=dt(n);K();let s=fr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),c=W(0),l=W(0),u=W(!1),d=W(!1),f=W(!1),p=W();function m(){clearTimeout(l.value),c.value=window.setTimeout(()=>s.value=!0,i.value)}function h(){clearTimeout(c.value),!u.value&&!d.value&&(l.value=window.setTimeout(()=>s.value=!1,a.value))}function g(){clearTimeout(c.value),s.value=!1}return Hl({open:s,onOpenChange(e){s.value=e},onOpen:m,onClose:h,onDismiss:g,hasSelectionRef:u,isPointerDownOnContentRef:d,isPointerInTransitRef:f,triggerElement:p,enableTouch:o}),(e,t)=>(j(),F(E(Xn),null,{default:L(()=>[B(e.$slots,`default`,{open:E(s)})]),_:3}))}});function Wl(e){return t=>t.pointerType===`touch`?void 0:e()}function Gl(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var Kl=k({__name:`HoverCardContentImpl`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,i=zr(n),{forwardRef:a,currentElement:o}=K(),s=Vl(),{isPointerInTransit:c,onPointerExit:l}=tc(s.triggerElement,o);wr(s.isPointerInTransitRef,c,{direction:`rtl`}),l(()=>{s.onClose()});let u=W(!1),d;Ut(e=>{if(u.value){let t=document.body;d=t.style.userSelect||t.style.webkitUserSelect,t.style.userSelect=`none`,t.style.webkitUserSelect=`none`,e(()=>{t.style.userSelect=d,t.style.webkitUserSelect=d})}});function f(){u.value=!1,s.isPointerDownOnContentRef.value=!1,yt(()=>{document.getSelection()?.toString()!==``&&(s.hasSelectionRef.value=!0)})}return lt(()=>{o.value&&(document.addEventListener(`pointerup`,f),Gl(o.value).forEach(e=>e.setAttribute(`tabindex`,`-1`))),mr(window,`scroll`,e=>{e.target?.contains(s.triggerElement.value)&&s.onDismiss()},{capture:!0})}),Tt(()=>{document.removeEventListener(`pointerup`,f),s.hasSelectionRef.value=!1,s.isPointerDownOnContentRef.value=!1}),(e,t)=>(j(),F(E(Zn),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[2]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[3]||=tt(e=>r(`focusOutside`,e),[`prevent`]),onDismiss:E(s).onDismiss},{default:L(()=>[N(E(nr),O({...E(i),...e.$attrs},{ref:E(a),"data-state":E(s).open.value?`open`:`closed`,style:{userSelect:u.value?`text`:void 0,WebkitUserSelect:u.value?`text`:void 0,"--reka-hover-card-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-hover-card-content-available-width":`var(--reka-popper-available-width)`,"--reka-hover-card-content-available-height":`var(--reka-popper-available-height)`,"--reka-hover-card-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-hover-card-trigger-height":`var(--reka-popper-anchor-height)`},onPointerdown:t[0]||=e=>{e.currentTarget.contains(e.target)&&(u.value=!0),E(s).hasSelectionRef.value=!1,E(s).isPointerDownOnContentRef.value=!0}}),{default:L(()=>[B(e.$slots,`default`)]),_:3},16,[`data-state`,`style`])]),_:3},8,[`onDismiss`]))}}),ql=k({__name:`HoverCardContent`,props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=Hn(e,t),{forwardRef:r}=K(),i=Vl();return(t,a)=>(j(),F(E(Pr),{present:e.forceMount||E(i).open.value},{default:L(()=>[N(Kl,O(E(n),{ref:E(r),onPointerenter:a[0]||=e=>E(Wl)(E(i).onOpen)(e)}),{default:L(()=>[B(t.$slots,`default`)]),_:3},16)]),_:3},8,[`present`]))}}),Jl=k({__name:`HoverCardPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(kc),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Yl=k({__name:`HoverCardTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`a`}},setup(e){let{forwardRef:t,currentElement:n}=K(),r=Vl();r.triggerElement=n;function i(){setTimeout(()=>{!r.isPointerInTransitRef.value&&!r.open.value&&r.onClose()},0)}function a(e){r.enableTouch.value&&e.pointerType===`touch`&&(r.open.value?r.onDismiss():r.onOpenChange(!0))}return(n,o)=>(j(),F(E(Wn),{"as-child":``,reference:e.reference},{default:L(()=>[N(E(yr),{ref:E(t),"as-child":e.asChild,as:e.as,"data-state":E(r).open.value?`open`:`closed`,"data-grace-area-trigger":``,onPointerenter:o[0]||=e=>E(Wl)(E(r).onOpen)(e),onPointerleave:o[1]||=e=>E(Wl)(i)(e),onPointerup:a,onFocus:o[2]||=e=>E(r).onOpen(),onBlur:o[3]||=e=>E(r).onClose()},{default:L(()=>[B(n.$slots,`default`)]),_:3},8,[`as-child`,`as`,`data-state`])]),_:3},8,[`reference`]))}}),[Xl,Zl]=Nn(`SwitchRoot`),Ql=k({inheritAttrs:!1,__name:`SwitchRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:`on`},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{disabled:i}=dt(n),a=fr(n,`modelValue`,r,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),o=H(()=>a.value===n.trueValue);function s(){i.value||(a.value=o.value?n.falseValue:n.trueValue)}let{forwardRef:c,currentElement:l}=K(),u=ar(l),d=ec(),f=H(()=>n.id&&l.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return Zl({checked:o,toggleCheck:s,disabled:i}),(t,n)=>(j(),R(I,null,[N(E(yr),O({id:e.id,ref:E(c),role:`switch`,type:e.as===`button`?`button`:void 0,value:e.value,"aria-label":t.$attrs[`aria-label`]||f.value,"aria-checked":o.value,"aria-required":e.required,"data-state":o.value?`checked`:`unchecked`,"data-disabled":E(i)?``:void 0,"as-child":e.asChild,as:e.as,disabled:E(i)},{...E(d),...t.$attrs},{onClick:s,onKeydown:at(tt(s,[`prevent`]),[`enter`])}),{default:L(()=>[B(t.$slots,`default`,{modelValue:E(a),checked:o.value})]),_:3},16,[`id`,`type`,`value`,`aria-label`,`aria-checked`,`aria-required`,`data-state`,`data-disabled`,`as-child`,`as`,`disabled`,`onKeydown`]),E(u)&&e.name?(j(),F(E(ir),O({key:0,type:`checkbox`,name:e.name,disabled:E(i),required:e.required,value:e.value,checked:o.value},E(d)),null,16,[`name`,`disabled`,`required`,`value`,`checked`])):z(`v-if`,!0)],64))}}),$l=k({__name:`SwitchThumb`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Xl();return K(),(n,r)=>(j(),F(E(yr),{"data-state":E(t).checked.value?`checked`:`unchecked`,"data-disabled":E(t).disabled.value?``:void 0,"as-child":e.asChild,as:e.as},{default:L(()=>[B(n.$slots,`default`)]),_:3},8,[`data-state`,`data-disabled`,`as-child`,`as`]))}}),eu=Symbol(`ToastManagerSubscribe`),tu=0;function nu(){return tu=(tu+1)%(2**53-1),`reka-toast-${tu}`}function ru(e,t){let n=typeof e==`function`?e(t):e;return typeof n==`string`?{description:n}:n}function iu(e,t,n,r){let i=n({...typeof t.loading==`string`?{description:t.loading}:t.loading,status:`loading`});return e.then(e=>(r(i,{...ru(t.success,e),status:`success`}),e),e=>{throw r(i,{...ru(t.error,e),status:`error`}),e})}function au(){let e=Yt([]),t=Zt(new Map);function n(t){return e.value.find(e=>e.id===t)}function r(t,n){e.value=e.value.map(e=>e.id===t?n:e)}function i(r){let i=n(r);i&&!i.open&&(e.value=e.value.filter(e=>e.id!==r),t.delete(r),i.onRemove?.())}function a(i){let a=i.id??nu(),o=n(a);if(o?.open){let{id:e,...n}=i;return r(a,{...o,...n,updateKey:o.updateKey+1}),t.set(a,(t.get(a)??0)+1),a}let s=o?e.value.filter(e=>e.id!==a):e.value;return e.value=[{...i,id:a,open:!0,updateKey:0},...s],a}function o(t){let n=e.value.filter(e=>e.open&&(t===void 0||e.id===t));n.length&&(e.value=e.value.map(e=>n.includes(e)?{...e,open:!1}:e),n.forEach(e=>e.onClose?.()))}function s(e,t){let i=n(e);if(!i?.open)return;let a=typeof t==`function`?t(i):t,o=n(e);o?.open&&r(e,{...o,...a,id:e,open:!0,updateKey:o.updateKey+1})}return{toasts:e,add:a,close:o,update:s,promise:(e,t)=>iu(e,t,a,s),remove:i,getRestartKey:e=>t.get(e)??0}}var[ou,su]=Nn(`ToastProvider`),cu=k({inheritAttrs:!1,__name:`ToastProvider`,props:{label:{type:String,required:!1,default:`Notification`},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeDirection:{type:String,required:!1,default:`right`},swipeThreshold:{type:Number,required:!1,default:50},limit:{type:Number,required:!1},toastManager:{type:Object,required:!1}},setup(e){let t=e,{label:n,duration:r,disableSwipe:i,swipeDirection:a,swipeThreshold:o}=dt(t);Nr({isProvider:!0});let s=W(),c=W(0),l=W(!1),u=W(!1),d=au();lt(()=>{Mt(()=>t.toastManager,(e,t,n)=>{e&&n(e[eu](e=>{e.action===`add`?d.add(e.options):e.action===`close`?d.close(e.id):d.update(e.id,e.updates)}))},{immediate:!0})});let f=Ct([]),p=0,m=H(()=>{let e=[...f].sort((e,t)=>t.seq-e.seq),n=new Map,r=0,i=0;return e.forEach((e,a)=>{let o=!e.open;n.set(e,{index:o?a:r,offsetY:i,limited:!o&&t.limit!==void 0&&r>=t.limit}),o||(i+=e.height,r++)}),{ordered:e,states:n}}),h=W(!1),g=W(!1);if(t.label&&typeof t.label==`string`&&!t.label.trim())throw Error("Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.");return su({label:n,duration:r,disableSwipe:i,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:s,onViewportChange(e){s.value=e},onToastAdd(){c.value++},onToastRemove(){c.value--},isFocusedToastEscapeKeyDownRef:l,isClosePausedRef:u,toastStore:d,hovering:h,focused:g,expanded:H(()=>h.value||g.value),frontmostHeight:H(()=>m.value.ordered.find(e=>e.open)?.height||void 0),closingCount:H(()=>f.filter(e=>!e.open).length),registerToast(e){return e.seq=++p,f.push(e),()=>{let t=f.indexOf(e);t!==-1&&f.splice(t,1)}},reopenToast(e){e.seq=++p},getToastStack(e){return m.value.states.get(e)??{index:0,offsetY:0,limited:!1}}}),(e,t)=>B(e.$slots,`default`)}}),lu=`toast.swipeStart`,uu=`toast.swipeMove`,du=`toast.swipeCancel`,fu=`toast.swipeEnd`,pu=`toast.viewportPause`,mu=`toast.viewportResume`;function hu(e,t,n){let r=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function gu(e,t,n=0){let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n}function _u(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Xs(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.rekaToastAnnounceExclude===``;if(!n){if(r){let n=e.dataset.rekaToastAnnounceAlt;n&&t.push(n)}else t.push(..._u(e))}}}),t}var vu=k({__name:`ToastPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(kc),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),yu=k({__name:`FocusProxy`,emits:[`focusFromOutsideViewport`],setup(e,{emit:t}){let n=t,r=ou();return(e,t)=>(j(),F(E(Xr),{tabindex:`0`,style:{position:`fixed`},onFocus:t[0]||=e=>{let t=e.relatedTarget;E(r).viewport.value?.contains(t)||n(`focusFromOutsideViewport`)}},{default:L(()=>[B(e.$slots,`default`)]),_:3}))}}),bu=k({inheritAttrs:!1,__name:`ToastViewport`,props:{hotkey:{type:Array,required:!1,default:()=>[`F8`]},label:{type:[String,Function],required:!1,default:`Notifications ({hotkey})`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ol`}},setup(e){let{hotkey:t,label:n}=dt(e),{forwardRef:r,currentElement:i}=K(),{CollectionSlot:a,getItems:o}=Nr(),s=ou(),c=H(()=>s.toastCount.value>0),l=W(),u=W(),d=/Key/g,f=/Digit/g,p=H(()=>t.value.join(`+`).replace(d,``).replace(f,``));pr(t.value,()=>{i.value.focus()}),lt(()=>{s.onViewportChange(i.value)});let m=W(!1);Mt([m,s.closingCount],([e,t])=>{e&&t===0&&(s.hovering.value=!1,m.value=!1)}),Mt(c,e=>{e||(s.hovering.value=!1,s.focused.value=!1,m.value=!1)}),Ut(e=>{let t=i.value;if(c.value&&t){let n=()=>{if(!s.isClosePausedRef.value){let e=new CustomEvent(pu);t.dispatchEvent(e),s.isClosePausedRef.value=!0}},r=()=>{if(s.isClosePausedRef.value){let e=new CustomEvent(mu);t.dispatchEvent(e),s.isClosePausedRef.value=!1}},i=e=>{t.contains(e.relatedTarget)||(s.focused.value=!1,r())},a=()=>{m.value=!0,t.contains(Mr())||r()},o=()=>{m.value=!1,s.hovering.value=!0},c=()=>{s.focused.value=!0},d=e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n){let n=Mr(),r=e.shiftKey;if(e.target===t&&r){l.value?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);Kn(i.slice(a+1))?e.preventDefault():r?l.value?.focus():u.value?.focus()}};t.addEventListener(`focusin`,n),t.addEventListener(`focusin`,c),t.addEventListener(`focusout`,i),t.addEventListener(`pointermove`,n),t.addEventListener(`pointermove`,o),t.addEventListener(`pointerleave`,a),t.addEventListener(`keydown`,d),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),e(()=>{t.removeEventListener(`focusin`,n),t.removeEventListener(`focusin`,c),t.removeEventListener(`focusout`,i),t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointermove`,o),t.removeEventListener(`pointerleave`,a),t.removeEventListener(`keydown`,d),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)})}});function h({tabbingDirection:e}){let t=o().map(e=>e.ref).map(t=>{let n=[t,...er(t)];return e===`forwards`?n:n.reverse()});return(e===`forwards`?t.reverse():t).flat()}return(t,i)=>(j(),F(E(pc),{role:`region`,"aria-label":typeof E(n)==`string`?E(n).replace(`{hotkey}`,p.value):E(n)(p.value),tabindex:`-1`,style:Ot({pointerEvents:c.value?void 0:`none`})},{default:L(()=>[c.value?(j(),F(yu,{key:0,ref:e=>{e&&(l.value=E(lr)(e))},onFocusFromOutsideViewport:i[0]||=()=>{let e=h({tabbingDirection:`forwards`});E(Kn)(e)}},null,512)):z(`v-if`,!0),N(E(a),null,{default:L(()=>[N(E(yr),O({ref:E(r),tabindex:`-1`,as:e.as,"as-child":e.asChild,"data-expanded":E(s).expanded.value?``:void 0,style:{"--reka-toast-frontmost-height":E(s).frontmostHeight.value?`${E(s).frontmostHeight.value}px`:void 0}},t.$attrs),{default:L(()=>[B(t.$slots,`default`)]),_:3},16,[`as`,`as-child`,`data-expanded`,`style`])]),_:3}),c.value?(j(),F(yu,{key:1,ref:e=>{e&&(u.value=E(lr)(e))},onFocusFromOutsideViewport:i[1]||=()=>{let e=h({tabbingDirection:`backwards`});E(Kn)(e)}},null,512)):z(`v-if`,!0)]),_:3},8,[`aria-label`,`style`]))}}),xu=k({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return K(),(e,n)=>(j(),F(E(Un),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),[Su,Cu]=Nn(`TooltipProvider`),wu=k({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){let{delayDuration:t,skipDelayDuration:n,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:a,disabled:o,content:s}=dt(e);K();let c=W(!0),l=W(!1),{start:u,stop:d}=br(()=>{c.value=!0},n,{immediate:!1});return Cu({isOpenDelayed:c,delayDuration:t,onOpen(){d(),c.value=!1},onClose(){u()},isPointerInTransitRef:l,disableHoverableContent:r,disableClosingTrigger:i,disabled:o,ignoreNonKeyboardFocus:a,content:s}),(e,t)=>B(e.$slots,`default`)}}),Tu=`tooltip.open`,[Eu,Du]=Nn(`TooltipRoot`),Ou=k({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;K();let i=Su(),a=H(()=>n.disableHoverableContent??i.disableHoverableContent.value),o=H(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=H(()=>n.disabled??i.disabled.value),c=H(()=>n.delayDuration??i.delayDuration.value),l=H(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=fr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Mt(u,e=>{i.onClose&&(e?(i.onOpen(),document.dispatchEvent(new CustomEvent(Tu))):i.onClose())});let d=W(!1),f=W(),p=H(()=>u.value?d.value?`delayed-open`:`instant-open`:`closed`),{start:m,stop:h}=br(()=>{d.value=!0,u.value=!0},c,{immediate:!1});function g(){h(),d.value=!1,u.value=!0}function _(){h(),u.value=!1}function v(){m()}return Du({contentId:``,open:u,stateAttribute:p,trigger:f,onTriggerChange(e){f.value=e},onTriggerEnter(){i.isOpenDelayed.value?v():g()},onTriggerLeave(){a.value?_():h()},onOpen:g,onClose:_,disableHoverableContent:a,disableClosingTrigger:o,disabled:s,ignoreNonKeyboardFocus:l}),(e,t)=>(j(),F(E(Xn),null,{default:L(()=>[B(e.$slots,`default`,{open:E(u)})]),_:3}))}}),ku=k({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=Eu(),a=Su(),{forwardRef:o,currentElement:s}=K(),c=H(()=>n.ariaLabel||s.value?.textContent),l=H(()=>{let{ariaLabel:e,...t}=n;return An(t,a.content.value??{},{side:`top`,sideOffset:0,align:`center`,avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:`partial`,hideWhenDetached:!1})});return lt(()=>{mr(window,`scroll`,e=>{e.target?.contains(i.trigger.value)&&i.onClose()},{capture:!0}),mr(document,Tu,i.onClose)}),(e,t)=>(j(),F(E(Zn),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[0]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[1]||=e=>{E(i).disableClosingTrigger.value&&E(i).trigger.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)},onFocusOutside:t[2]||=tt(()=>{},[`prevent`]),onDismiss:t[3]||=e=>E(i).onClose()},{default:L(()=>[N(E(nr),O({ref:E(o),"data-state":E(i).stateAttribute.value},{...e.$attrs,...l.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:L(()=>[B(e.$slots,`default`),N(E(Xr),{id:E(i).contentId,role:`tooltip`},{default:L(()=>[Xt(M(c.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),Au=k({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let t=zr(e),{forwardRef:n,currentElement:r}=K(),{trigger:i,onClose:a}=Eu(),o=Su(),{isPointerInTransit:s,onPointerExit:c}=tc(i,r);return o.isPointerInTransitRef=s,c(()=>{a()}),mr(r,`pointermove`,e=>{let t=r.value;t&&e.pointerType!==`touch`&&t.ownerDocument.elementsFromPoint?.(e.clientX,e.clientY).some(e=>{if(t.contains(e))return!1;let n=e.closest(`[data-grace-area-trigger]`);return!!n&&n!==i.value})&&a()}),(e,r)=>(j(),F(ku,O({ref:E(n)},E(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),ju=k({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=Eu(),a=Hn(n,r),{forwardRef:o}=K();return(t,n)=>(j(),F(E(Pr),{present:e.forceMount||E(i).open.value},{default:L(()=>[(j(),F(Dt(E(i).disableHoverableContent.value?ku:Au),O({ref:E(o)},E(a)),{default:L(()=>[B(t.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Mu=k({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(j(),F(E(kc),D(A(t)),{default:L(()=>[B(e.$slots,`default`)]),_:3},16))}}),Nu=k({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Eu(),r=Su();n.contentId||=vr(void 0,`reka-tooltip-content`);let{forwardRef:i,currentElement:a}=K(),o=W(!1),s=W(!1),c=H(()=>n.disabled.value?{}:{click:h,focus:p,pointermove:d,pointerleave:f,pointerdown:u,blur:m});Mt(a,e=>{n.onTriggerChange(e)},{immediate:!0});function l(){setTimeout(()=>{o.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),o.value=!0,document.addEventListener(`pointerup`,l,{once:!0})}function d(e){e.pointerType!==`touch`&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function f(){n.onTriggerLeave(),s.value=!1}function p(e){o.value||(!n.ignoreNonKeyboardFocus.value||e.target.matches?.(`:focus-visible`))&&n.onOpen()}function m(){n.onClose()}function h(){n.disableClosingTrigger.value||n.onClose()}return(r,o)=>(j(),F(E(Wn),{"as-child":``,reference:e.reference??E(a)},{default:L(()=>[N(E(yr),O({ref:E(i),"aria-describedby":E(n).open.value?E(n).contentId:void 0,"data-state":E(n).stateAttribute.value,as:e.as,"as-child":t.asChild,"data-grace-area-trigger":``},St(c.value)),{default:L(()=>[B(r.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}});function Pu(e){return(t,n)=>Fu(t,n,E(e))}function Fu(e,t,n){return Pn(n,`messages.${e}`,e).replace(/\{(\w+)\}/g,(e,n)=>`${t?.[n]??`{${n}}`}`)}function Iu(e){return{lang:H(()=>E(e).name),code:H(()=>E(e).code),dir:H(()=>E(e).dir),locale:Ft(e)?e:W(e),t:Pu(e)}}function Lu(e){return An(e,{dir:`ltr`})}var Ru=Lu({name:`English`,code:`en`,messages:{alert:{close:`Close`},authForm:{hidePassword:`Hide password`,showPassword:`Show password`,submit:`Continue`},banner:{close:`Close`},breadcrumb:{label:`breadcrumb`},calendar:{label:`Event date`,monthPicker:`Month picker`,nextMonth:`Next month`,nextYear:`Next year`,prevMonth:`Previous month`,prevYear:`Previous year`,yearPicker:`Year picker`},carousel:{dots:`Choose slide to display`,goto:`Go to slide {slide}`,next:`Next`,prev:`Prev`,roledescription:`carousel`,slide:`slide`},chatMessages:{autoScroll:`Scroll to bottom`},chatPrompt:{placeholder:`Type your message here…`},chatPromptSubmit:{label:`Send prompt`,reload:`Retry`,stop:`Stop generating`},colorMode:{dark:`Dark`,light:`Light`,switchToDark:`Switch to dark mode`,switchToLight:`Switch to light mode`,system:`System`},commandPalette:{back:`Back`,close:`Close`,noData:`No data`,noMatch:`No matching data`,placeholder:`Type a command or search…`,results:`Results`},contentSearch:{links:`Links`,search:`Results`,theme:`Theme`},contentSearchButton:{label:`Search…`},contentToc:{title:`On this page`},dropdownMenu:{noMatch:`No matching data`,search:`Search…`},dashboardSearch:{theme:`Theme`},dashboardSearchButton:{label:`Search…`},dashboardSidebarCollapse:{collapse:`Collapse sidebar`,expand:`Expand sidebar`},dashboardSidebarToggle:{close:`Close sidebar`,open:`Open sidebar`},drawer:{close:`Close`},error:{clear:`Back to home`},fileUpload:{removeFile:`Remove {filename}`},header:{close:`Close menu`,open:`Open menu`},inputDate:{day:`day`,dayPeriod:`AM/PM`,era:`era`,hour:`hour`,minute:`minute`,month:`month`,second:`second`,timeZoneName:`timezone`,year:`year`},inputMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`,trigger:`Show options`},inputNumber:{decrement:`Decrement`,increment:`Increment`,roledescription:`number field`},inputRating:{rate:`Rate {value} out of {length}`},inputTime:{dayPeriod:`AM/PM`,hour:`hour`,minute:`minute`,second:`second`,timeZoneName:`timezone`},listbox:{noData:`No data`,noMatch:`No matching data`,search:`Search…`},modal:{close:`Close`},pagination:{first:`First page`,last:`Last page`,next:`Next page`,page:`Page {page}`,prev:`Previous page`},pinInput:{input:`pin input {index} of {length}`},pricingTable:{caption:`Pricing plan comparison`},prose:{codeCollapse:{closeText:`Collapse`,name:`code`,openText:`Expand`},collapsible:{closeText:`Hide`,name:`properties`,openText:`Show`},pre:{copy:`Copy code to clipboard`},prompt:{copy:`Copy prompt`,openIn:`Open in {name}`}},chatReasoning:{thinking:`Thinking…`,thought:`Thought`,thoughtFor:`Thought for {duration}`},sidebar:{close:`Close`,toggle:`Toggle`},selectMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`,search:`Search…`},skeleton:{label:`loading`},slideover:{close:`Close`},slider:{max:`Maximum`,min:`Minimum`,thumb:`Thumb`,value:`Value {index} of {total}`},stepper:{label:`progress`},table:{noData:`No data`},toast:{close:`Close`},toaster:{label:`Notification`,viewport:`Notifications ({hotkey})`}}}),zu=Symbol.for(`nuxt-ui.locale-context`),Bu=Sr(e=>{let t=e||pt(bt(zu,Ru));return Iu(H(()=>t.value||Ru))}),Vu={meta:``,ctrl:``,alt:``,win:`⊞`,command:`⌘`,shift:`⇧`,control:`⌃`,option:`⌥`,enter:`↵`,delete:`⌦`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,capslock:`⇪`,arrowup:`↑`,arrowright:`→`,arrowdown:`↓`,arrowleft:`←`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`},Hu={meta:{macos:Vu.command,other:`Ctrl`},ctrl:{macos:Vu.control,other:`Ctrl`},alt:{macos:Vu.option,other:`Alt`}},Uu=Sr(()=>{let e=H(()=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/));return e.value&&document.documentElement.classList.add(`ui-macos`),{macOS:e}});function Wu(){let{macOS:e}=Uu(),t=ut()?cr():Yt(!0);function n(n){if(n)return[`meta`,`alt`,`ctrl`].includes(n)?t.value?Hu[n][e.value?`macos`:`other`]:` `:Vu[n]||n}return{macOS:e,getKbdKey:n}}function Gu(){let e=Dn().ui?.prefix;return t=>!e||!t?t:t.split(/\s+/).filter(Boolean).map(t=>`${e}:${t}`).join(` `)}var Ku={base:`inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase`,variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{sm:`h-4 min-w-[16px] text-[10px]`,md:`h-5 min-w-[20px] text-[11px]`,lg:`h-6 min-w-[24px] text-[12px]`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`}],defaultVariants:{variant:`outline`,color:`neutral`,size:`md`}},qu={__name:`UKbd`,props:{as:{type:null,required:!1,default:`kbd`},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=Ln(`kbd`,e),{getKbdKey:n}=Wu(),r=Dn(),i=Gu(),a=H(()=>t.value&&Object.hasOwn(Hu,t.value)?Hu[t.value]:void 0),o=H(()=>zn({extend:Ku,...r.ui?.kbd||{}}));return(e,r)=>(j(),F(E(yr),{as:E(t).as,class:V(o.value({class:[E(t).ui?.base,E(t).class],color:E(t).color,variant:E(t).variant,size:E(t).size}))},{default:L(()=>[B(e.$slots,`default`,{},()=>[a.value?(j(),R(I,{key:0},[P(`span`,{class:V(E(i)(`hidden in-[.ui-macos]:inline`))},M(a.value.macos),3),P(`span`,{class:V(E(i)(`in-[.ui-macos]:hidden`))},M(a.value.other),3)],64)):(j(),R(I,{key:1},[Xt(M(E(n)(E(t).value)),1)],64))])]),_:3},8,[`as`,`class`]))}},Ju={__name:`UDropdownMenuContent`,props:{items:{type:null,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0},sub:{type:Boolean,required:!1},labelKey:{type:null,required:!0},descriptionKey:{type:null,required:!0},checkedIcon:{type:null,required:!1},loadingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0},size:{type:null,required:!1},filter:{type:[Boolean,Object],required:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1},searchTerm:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!0},uiOverride:{type:Object,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1}},emits:[`update:searchTerm`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n={Portal:Pl,Content:Ol,Item:jl,Group:Al,Separator:Fl,CheckboxItem:wl,ItemIndicator:Ml,Label:Nl,Sub:Il,SubContent:Ll,SubTrigger:Rl,Filter:kl},r=e,i=t,a=Vt(),{t:o,dir:s}=Bu(),c=Dn(),{filterGroups:l}=Yn(),u=W(``),d=H({get:()=>r.searchTerm??u.value,set:e=>{u.value=e,i(`update:searchTerm`,e)}}),f=pt(()=>An(r.filter,{placeholder:o(`dropdownMenu.search`),variant:`none`})),p=tr(pt(()=>r.portal)),m=Hn(Dr(r,`sub`,`items`,`portal`,`labelKey`,`descriptionKey`,`checkedIcon`,`loadingIcon`,`externalIcon`,`size`,`filter`,`filterFields`,`ignoreFilter`,`searchTerm`,`class`,`ui`,`uiOverride`),i),h=()=>Mn(a,[`default`]),[g,_]=hr(),v=H(()=>s.value===`rtl`?c.ui.icons.chevronLeft:c.ui.icons.chevronRight),y=H(()=>r.items?.length?Rn(r.items)?r.items:[r.items]:[]),b=e=>!!e.type&&[`label`,`separator`].includes(e.type),x=H(()=>{if(!r.filter||r.ignoreFilter||!d.value)return y.value;let e=Array.isArray(r.filterFields)&&r.filterFields.length?r.filterFields:[r.labelKey];return l(y.value,d.value,{fields:e,isStructural:b})}),S=H(()=>x.value.some(e=>e.some(e=>!b(e))));return(t,i)=>(j(),R(I,null,[N(E(g),null,{default:L(({item:i,active:o,index:s})=>[B(t.$slots,i.slot||`item`,{item:i,index:s,ui:e.ui},()=>[B(t.$slots,i.slot?`${i.slot}-leading`:`item-leading`,{item:i,active:o,index:s,ui:e.ui},()=>[i.loading?(j(),F(kn,{key:0,name:e.loadingIcon||E(c).ui.icons.loading,"data-slot":`itemLeadingIcon`,class:V(e.ui.itemLeadingIcon({class:[e.uiOverride?.itemLeadingIcon,i.ui?.itemLeadingIcon],color:i?.color,loading:!0}))},null,8,[`name`,`class`])):i.icon?(j(),F(kn,{key:1,name:i.icon,"data-slot":`itemLeadingIcon`,class:V(e.ui.itemLeadingIcon({class:[e.uiOverride?.itemLeadingIcon,i.ui?.itemLeadingIcon],color:i?.color,active:o}))},null,8,[`name`,`class`])):i.avatar?(j(),F(Vr,O({key:2,size:i.ui?.itemLeadingAvatarSize||e.uiOverride?.itemLeadingAvatarSize||e.ui.itemLeadingAvatarSize()},i.avatar,{"data-slot":`itemLeadingAvatar`,class:e.ui.itemLeadingAvatar({class:[e.uiOverride?.itemLeadingAvatar,i.ui?.itemLeadingAvatar],active:o})}),null,16,[`size`,`class`])):z(``,!0)]),E(Pn)(i,r.labelKey)||a[i.slot?`${i.slot}-label`:`item-label`]||E(Pn)(i,r.descriptionKey)||a[i.slot?`${i.slot}-description`:`item-description`]?(j(),R(`span`,{key:0,"data-slot":`itemWrapper`,class:V(e.ui.itemWrapper({class:[e.uiOverride?.itemWrapper,i.ui?.itemWrapper]}))},[P(`span`,{"data-slot":`itemLabel`,class:V(e.ui.itemLabel({class:[e.uiOverride?.itemLabel,i.ui?.itemLabel],active:o}))},[B(t.$slots,i.slot?`${i.slot}-label`:`item-label`,{item:i,active:o,index:s},()=>[Xt(M(E(Pn)(i,r.labelKey)),1)]),i.target===`_blank`&&e.externalIcon!==!1?(j(),F(kn,{key:0,name:typeof e.externalIcon==`string`?e.externalIcon:E(c).ui.icons.external,"data-slot":`itemLabelExternalIcon`,class:V(e.ui.itemLabelExternalIcon({class:[e.uiOverride?.itemLabelExternalIcon,i.ui?.itemLabelExternalIcon],color:i?.color,active:o}))},null,8,[`name`,`class`])):z(``,!0)],2),E(Pn)(i,r.descriptionKey)||a[i.slot?`${i.slot}-description`:`item-description`]?(j(),R(`span`,{key:0,"data-slot":`itemDescription`,class:V(e.ui.itemDescription({class:[e.uiOverride?.itemDescription,i.ui?.itemDescription]}))},[B(t.$slots,i.slot?`${i.slot}-description`:`item-description`,{item:i,active:o,index:s},()=>[Xt(M(E(Pn)(i,r.descriptionKey)),1)])],2)):z(``,!0)],2)):z(``,!0),P(`span`,{"data-slot":`itemTrailing`,class:V(e.ui.itemTrailing({class:[e.uiOverride?.itemTrailing,i.ui?.itemTrailing]}))},[B(t.$slots,i.slot?`${i.slot}-trailing`:`item-trailing`,{item:i,active:o,index:s,ui:e.ui},()=>[i.children?.length?(j(),F(kn,{key:0,name:v.value,"data-slot":`itemTrailingIcon`,class:V(e.ui.itemTrailingIcon({class:[e.uiOverride?.itemTrailingIcon,i.ui?.itemTrailingIcon],color:i?.color,active:o}))},null,8,[`name`,`class`])):i.kbds?.length?(j(),R(`span`,{key:1,"data-slot":`itemTrailingKbds`,class:V(e.ui.itemTrailingKbds({class:[e.uiOverride?.itemTrailingKbds,i.ui?.itemTrailingKbds]}))},[(j(!0),R(I,null,vt(i.kbds,(t,n)=>(j(),F(qu,O({key:n,size:i.ui?.itemTrailingKbdsSize||e.uiOverride?.itemTrailingKbdsSize||e.ui.itemTrailingKbdsSize()},{ref_for:!0},typeof t==`string`?{value:t}:t),null,16,[`size`]))),128))],2)):z(``,!0)]),N(n.ItemIndicator,{"as-child":``},{default:L(()=>[N(kn,{name:e.checkedIcon||E(c).ui.icons.check,"data-slot":`itemTrailingIcon`,class:V(e.ui.itemTrailingIcon({class:[e.uiOverride?.itemTrailingIcon,i.ui?.itemTrailingIcon],color:i?.color}))},null,8,[`name`,`class`])]),_:2},1024)],2)])]),_:3}),N(n.Portal,D(A(E(p))),{default:L(()=>[N(E(Br),null,{default:L(()=>[(j(),F(Dt(e.sub?n.SubContent:n.Content),O({"data-slot":`content`,class:e.ui.content({class:[e.uiOverride?.content,r.class]})},E(m)),{default:L(()=>[e.filter?(j(),F(n.Filter,{key:0,modelValue:d.value,"onUpdate:modelValue":i[1]||=e=>d.value=e,"as-child":``},{default:L(()=>[N(rr,O({autofocus:``,autocomplete:`off`,size:e.size},f.value,{"data-slot":`input`,class:e.ui.input({class:e.uiOverride?.input}),onChange:i[0]||=tt(()=>{},[`stop`])}),null,16,[`size`,`class`])]),_:1},8,[`modelValue`])):z(``,!0),B(t.$slots,`content-top`,{sub:e.sub??!1}),!d.value||S.value?(j(),R(`div`,{key:1,role:`presentation`,"data-slot":`viewport`,class:V(e.ui.viewport({class:e.uiOverride?.viewport}))},[(j(!0),R(I,null,vt(x.value,(i,a)=>(j(),F(n.Group,{key:`group-${a}`,"data-slot":`group`,class:V(e.ui.group({class:e.uiOverride?.group}))},{default:L(()=>[(j(!0),R(I,null,vt(i,(i,o)=>(j(),R(I,{key:`group-${a}-${o}`},[i.type===`label`?(j(),F(n.Label,{key:0,"data-slot":`label`,class:V(e.ui.label({class:[e.uiOverride?.label,i.ui?.label,i.class]}))},{default:L(()=>[N(E(_),{item:i,index:o},null,8,[`item`,`index`])]),_:2},1032,[`class`])):i.type===`separator`?(j(),F(n.Separator,{key:1,"data-slot":`separator`,class:V(e.ui.separator({class:[e.uiOverride?.separator,i.ui?.separator,i.class]}))},null,8,[`class`])):i?.children?.length?(j(),F(n.Sub,{key:2,open:i.open,"default-open":i.defaultOpen},{default:L(()=>[N(n.SubTrigger,{as:`button`,type:`button`,disabled:i.disabled,"text-value":E(Pn)(i,r.labelKey),"data-slot":`item`,class:V(e.ui.item({class:[e.uiOverride?.item,i.ui?.item,i.class],color:i?.color}))},{default:L(()=>[N(E(_),{item:i,index:o},null,8,[`item`,`index`])]),_:2},1032,[`disabled`,`text-value`,`class`]),N(Ju,O({sub:``,class:i.ui?.content,ui:e.ui,"ui-override":e.uiOverride,portal:e.portal,items:i.children,align:`start`,"align-offset":-4,"side-offset":3,"label-key":e.labelKey,"description-key":e.descriptionKey,"checked-icon":e.checkedIcon,"loading-icon":e.loadingIcon,"external-icon":e.externalIcon,size:e.size,filter:i.filter,"filter-fields":i.filterFields||e.filterFields,"ignore-filter":i.ignoreFilter??e.ignoreFilter},{ref_for:!0},i.content),kt({_:2},[vt(h(),(e,n)=>({name:n,fn:L(e=>[B(t.$slots,n,O({ref_for:!0},e))])}))]),1040,[`class`,`ui`,`ui-override`,`portal`,`items`,`label-key`,`description-key`,`checked-icon`,`loading-icon`,`external-icon`,`size`,`filter`,`filter-fields`,`ignore-filter`])]),_:2},1032,[`open`,`default-open`])):i.type===`checkbox`?(j(),F(n.CheckboxItem,{key:3,"model-value":i.checked,disabled:i.disabled,"text-value":E(Pn)(i,r.labelKey),"data-slot":`item`,class:V(e.ui.item({class:[e.uiOverride?.item,i.ui?.item,i.class],color:i?.color})),"onUpdate:modelValue":i.onUpdateChecked,onSelect:i.onSelect},{default:L(()=>[N(E(_),{item:i,index:o},null,8,[`item`,`index`])]),_:2},1032,[`model-value`,`disabled`,`text-value`,`class`,`onUpdate:modelValue`,`onSelect`])):(j(),F(qr,O({key:4,ref_for:!0},E(Ur)(i),{custom:``}),{default:L(({active:t,...a})=>[N(n.Item,{"as-child":``,disabled:i.disabled,"text-value":E(Pn)(i,r.labelKey),onSelect:i.onSelect},{default:L(()=>[N(Wr,O({ref_for:!0},a,{"data-slot":`item`,class:e.ui.item({class:[e.uiOverride?.item,i.ui?.item,i.class],color:i?.color,active:t})}),{default:L(()=>[N(E(_),{item:i,active:t,index:o},null,8,[`item`,`active`,`index`])]),_:2},1040,[`class`])]),_:2},1032,[`disabled`,`text-value`,`onSelect`])]),_:2},1040))],64))),128))]),_:2},1032,[`class`]))),128))],2)):z(``,!0),d.value&&!S.value?(j(),R(`div`,{key:2,"data-slot":`empty`,class:V(e.ui.empty({class:e.uiOverride?.empty}))},[B(t.$slots,`empty`,{searchTerm:d.value},()=>[Xt(M(E(o)(`dropdownMenu.noMatch`,{searchTerm:d.value})),1)])],2)):z(``,!0),B(t.$slots,`default`),B(t.$slots,`content-bottom`,{sub:e.sub??!1})]),_:3},16,[`class`]))]),_:3})]),_:3},16)],64))}},Yu={slots:{content:`min-w-32 max-h-(--reka-dropdown-menu-content-available-height) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col`,input:`border-b border-default`,empty:`text-center text-muted`,viewport:`relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1`,arrow:`fill-bg stroke-default`,group:`p-1 isolate`,label:`w-full flex items-center font-semibold text-highlighted`,separator:`-mx-1 my-1 h-px bg-border`,item:`group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75`,itemLeadingIcon:`shrink-0`,itemLeadingAvatar:`shrink-0`,itemLeadingAvatarSize:``,itemTrailing:`ms-auto inline-flex gap-1.5 items-center`,itemTrailingIcon:`shrink-0`,itemTrailingKbds:`hidden lg:inline-flex items-center shrink-0`,itemTrailingKbdsSize:``,itemWrapper:`flex-1 flex flex-col text-start min-w-0`,itemLabel:`truncate`,itemDescription:`truncate text-muted`,itemLabelExternalIcon:`inline-block size-3 align-top text-dimmed`},variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},active:{true:{item:`text-highlighted before:bg-elevated`,itemLeadingIcon:`text-default`},false:{item:[`text-default data-highlighted:text-highlighted data-[state=open]:text-highlighted data-highlighted:before:bg-elevated/50 data-[state=open]:before:bg-elevated/50`,`transition-colors before:transition-colors`],itemLeadingIcon:[`text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default`,`transition-colors`]}},loading:{true:{itemLeadingIcon:`animate-spin`}},size:{xs:{label:`p-1 text-xs gap-1`,item:`p-1 text-xs gap-1`,empty:`p-2 text-xs`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemTrailingIcon:`size-4`,itemTrailingKbds:`gap-0.5`,itemTrailingKbdsSize:`sm`},sm:{label:`p-1.5 text-xs gap-1.5`,item:`p-1.5 text-xs gap-1.5`,empty:`p-2.5 text-xs`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemTrailingIcon:`size-4`,itemTrailingKbds:`gap-0.5`,itemTrailingKbdsSize:`sm`},md:{label:`p-1.5 text-sm gap-1.5`,item:`p-1.5 text-sm gap-1.5`,empty:`p-2.5 text-sm`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemTrailingIcon:`size-5`,itemTrailingKbds:`gap-0.5`,itemTrailingKbdsSize:`md`},lg:{label:`p-2 text-sm gap-2`,item:`p-2 text-sm gap-2`,empty:`p-3 text-sm`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemTrailingIcon:`size-5`,itemTrailingKbds:`gap-1`,itemTrailingKbdsSize:`md`},xl:{label:`p-2 text-base gap-2`,item:`p-2 text-base gap-2`,empty:`p-3 text-base`,itemLeadingIcon:`size-6`,itemLeadingAvatarSize:`xs`,itemTrailingIcon:`size-6`,itemTrailingKbds:`gap-1`,itemTrailingKbdsSize:`lg`}}},compoundVariants:[{color:`primary`,active:!1,class:{item:`text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10`,itemLeadingIcon:`text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary`}},{color:`secondary`,active:!1,class:{item:`text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10`,itemLeadingIcon:`text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary`}},{color:`success`,active:!1,class:{item:`text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10`,itemLeadingIcon:`text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success`}},{color:`info`,active:!1,class:{item:`text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10`,itemLeadingIcon:`text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info`}},{color:`warning`,active:!1,class:{item:`text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10`,itemLeadingIcon:`text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning`}},{color:`error`,active:!1,class:{item:`text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10`,itemLeadingIcon:`text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error`}},{color:`primary`,active:!0,class:{item:`text-primary before:bg-primary/10`,itemLeadingIcon:`text-primary`}},{color:`secondary`,active:!0,class:{item:`text-secondary before:bg-secondary/10`,itemLeadingIcon:`text-secondary`}},{color:`success`,active:!0,class:{item:`text-success before:bg-success/10`,itemLeadingIcon:`text-success`}},{color:`info`,active:!0,class:{item:`text-info before:bg-info/10`,itemLeadingIcon:`text-info`}},{color:`warning`,active:!0,class:{item:`text-warning before:bg-warning/10`,itemLeadingIcon:`text-warning`}},{color:`error`,active:!0,class:{item:`text-error before:bg-error/10`,itemLeadingIcon:`text-error`}}],defaultVariants:{size:`md`}},Xu={__name:`UDropdownMenu`,props:Lt({size:{type:null,required:!1},items:{type:null,required:!1},checkedIcon:{type:null,required:!1},loadingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},filter:{type:[Boolean,Object],required:!1,default:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0}},{searchTerm:{type:String,default:``},searchTermModifiers:{}}),emits:Lt([`update:open`],[`update:searchTerm`]),setup(e,{emit:t}){let n=e,r=t,i=Vt(),a=Kt(e,`searchTerm`,{type:String,default:``}),o=Ln(`dropdownMenu`,n),s=Dn(),c=Ar(Er(o,`defaultOpen`,`open`,`modal`),r),l=pt(()=>An(o.content,{side:`bottom`,sideOffset:8,collisionPadding:8})),u=pt(()=>An(o.arrow,{rounded:!0})),d=()=>Mn(i,[`default`]),f=H(()=>zn({extend:Yu,...s.ui?.dropdownMenu||{}})({size:o.size}));return(e,t)=>(j(),F(E(Dl),D(A(E(c))),{default:L(({open:n})=>[i.default?(j(),F(E(zl),{key:0,"as-child":``,class:V(E(o).class),disabled:E(o).disabled},{default:L(()=>[B(e.$slots,`default`,{open:n})]),_:2},1032,[`class`,`disabled`])):z(``,!0),N(Ju,O({"search-term":a.value,"onUpdate:searchTerm":t[0]||=e=>a.value=e,class:f.value.content({class:[!i.default&&E(o).class,E(o).ui?.content]}),ui:f.value,"ui-override":E(o).ui},l.value,{items:E(o).items,portal:E(o).portal,"label-key":E(o).labelKey,"description-key":E(o).descriptionKey,"checked-icon":E(o).checkedIcon,"loading-icon":E(o).loadingIcon,"external-icon":E(o).externalIcon,size:E(o).size,filter:E(o).filter,"filter-fields":E(o).filterFields,"ignore-filter":E(o).ignoreFilter}),kt({default:L(()=>[E(o).arrow?(j(),F(E(Cl),O({key:0},u.value,{"data-slot":`arrow`,class:f.value.arrow({class:E(o).ui?.arrow})}),null,16,[`class`])):z(``,!0)]),_:2},[vt(d(),(t,n)=>({name:n,fn:L(t=>[B(e.$slots,n,D(A(t)))])}))]),1040,[`search-term`,`class`,`ui`,`ui-override`,`items`,`portal`,`label-key`,`description-key`,`checked-icon`,`loading-icon`,`external-icon`,`size`,`filter`,`filter-fields`,`ignore-filter`])]),_:3},16))}};function Zu(e,t){if(e===null)return`L`;let n,r=0,i=e,a=typeof e;if(a!==`object`)return a===`number`?e-e===0?`n`+e:`L`:a===`string`?`s`+e:a===`bigint`?`n`+e:a===`boolean`?e?`T`:`F`:void 0;let o=Array.isArray(e);if(!o){if(e instanceof Date)return`d`+ +e;if(e instanceof RegExp)return`r`+e.source+e.flags}if(a=t.indexOf(e),~a)return`~`+(a+1);if(typeof e.toJSON==`function`&&!ArrayBuffer.isView(e)){if(e=e.toJSON(),typeof e!=`object`||!e)return Zu(e,t);if(a=t.indexOf(e),~a)return`~`+(a+1);o=Array.isArray(e)}if(t.push(i),o)for(n=`a`;r<e.length;n+=(a=Zu(e[r++],t))===void 0?`L`:a);else if(e instanceof Set){n=`e`;for(let r of e)n+=(a=Zu(r,t))===void 0?`L`:a}else if(e instanceof Map)for(i=[...e.keys()],i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=Zu(e.get(i[r]),t))!==void 0&&(n+=i[r]+a);else if(e[Symbol.toStringTag]===void 0||ArrayBuffer.isView(e))for(i=Object.keys(e),i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=Zu(e[i[r]],t))!==void 0&&(n+=i[r]+a);else throw Error(`Unsupported value`);return t.pop(),n}function Qu(e){return Zu(e,[])??`U`}function $u(e){return En(Qu(e))}var ed=n({docsBase:m,reporters:h});function td(e,t={}){let n,r=!1,i=[],a,o,s=(t,n)=>{let i=nd(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,s(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let c=t.leading&&!r;r||(r=!0,ht(()=>{r=!1;let a=o??e;o=void 0;let c=t.leading?n:s(this,a);for(let e of i)e(c);i=[]})),c?(n=s(this,e),a(n)):i.push(a)})}}async function nd(e,t,n){return await e.apply(t,n)}k({name:`ServerPlaceholder`,render(){return R(`div`)}});var rd=Symbol.for(`nuxt:client-only`);k({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=Yt(!1);lt(()=>{r.value=!0});let i=ut();return i&&(i._nuxtClientOnly=!0),Et(rd,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[zt(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return ft(i);let a=e.fallback||e.placeholder||``,o=qe(e.fallbackTag||e.placeholderTag,`span`);return R(o,n,a)}}});function id(e={}){{function t(...t){let n=typeof t[t.length-1]==`string`?t.pop():void 0;sd(t[0],t[1])&&t.unshift(n);let[r,a,o={}]=t,s=!1,c=Ft(r)||typeof r==`function`,l=c?H(()=>xt(r)):{value:r};if(!l.value||typeof l.value!=`string`)throw ed.NUXT_E3008();if(typeof a!=`function`)throw ed.NUXT_E3009();let d=typeof e==`function`,f=u(),p=d?e(o):e;if(!d)for(let e in p)p[e]!==void 0&&o[e]===void 0&&(o[e]=p[e]);if(o.server??=!0,o.default??=dd,o.getCachedData??=fd,o.lazy??=!1,o.immediate??=!0,o.deep??=i.deep,o.dedupe??=`cancel`,o.enabled??=!0,d)for(let e in p)p[e]!==void 0&&(o[e]=p[e]);f._asyncData[l.value];let m,h=()=>f._asyncData[l.value]??m;function g(){let e={cause:`initial`,dedupe:o.dedupe},t=f._asyncData[l.value];return t?._init?f._asyncDataPromises[l.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=o.getCachedData(l.value,f,{cause:`initial`}),f._asyncData[l.value]=ud(f,l.value,a,o,e.cachedData),f._asyncData[l.value]._initialCachedData=e.cachedData),m=f._asyncData[l.value],()=>f._asyncData[l.value].execute(e)}let _=g(),v=f._asyncData[l.value];v._deps++;let y=o.server!==!1&&f.payload.serverRendered,b=()=>!1;{let e=ut(),t=!!e||b();if(y&&o.immediate&&On(),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;mt(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),Tt(()=>t.splice(0,t.length))}let n=t&&(e?._nuxtClientOnly||bt(rd,!1)),r=l.value in f.payload.data;y&&f.isHydrating&&(v.error.value||v.data.value!==void 0&&(r||v._initialCachedData!==void 0))?v.status.value=v.error.value?`error`:`success`:t&&(!n&&f.payload.serverRendered&&f.isHydrating&&(!y||r)||o.lazy)&&o.immediate?e?e._nuxtOnBeforeMountCbs.push(_):mt(()=>{_()}):o.immediate&&v.status.value!==`success`&&_();function i(e){let t=f._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let u=Bt(),d=()=>{},p=c?Mt(l,(e,t)=>{if((e||t)&&e!==t){s=!0;let n=f._asyncData[t]?.data.value!==void 0,r=f._asyncDataPromises[t]!==void 0,c={cause:`initial`,dedupe:o.dedupe};if(!f._asyncData[e]?._init){let r=o.getCachedData(e,f,{cause:`initial`});c.cachedData=r;let i=t&&n&&r===void 0?f._asyncData[t].data.value:r;f._asyncData[e]=ud(f,e,a,o,i),f._asyncData[e]._initialCachedData=r}f._asyncData[e]._deps++,m=f._asyncData[e],t&&i(t),o._keyTriggersExecute!==!1&&(o.immediate||n||r)&&f._asyncData[e].execute(c),ht(()=>{s=!1})}},{flush:`sync`}):d,h=o.watch?Mt(o.watch,()=>{s||f._asyncData[l.value]?._execute({cause:`watch`,dedupe:o.dedupe})}):d,g=Ft(o.enabled)||typeof o.enabled==`function`?Mt(()=>xt(o.enabled),e=>{let t=f._asyncData[l.value];!e&&t&&f._asyncDataPromises[l.value]&&(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete f._asyncDataPromises[l.value],t.status.value=`idle`)}):d;u&&Jt(()=>{p(),h(),g(),i(l.value)})}let x={data:od(()=>h()?.data,!o.deep),pending:od(()=>h()?.pending),status:od(()=>h()?.status),error:od(()=>h()?.error),refresh:(...e)=>f._asyncData[l.value]?._init?f._asyncData[l.value].execute(...e):g()(),execute:(...e)=>x.refresh(...e),clear:()=>{let e=f._asyncData[l.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}cd(f,l.value)}},S=Promise.resolve(o.lazy?void 0:f._asyncDataPromises[l.value]).then(()=>x);return Object.assign(S,x),Object.defineProperties(S,{then:{enumerable:!0,value:S.then.bind(S)},catch:{enumerable:!0,value:S.catch.bind(S)},finally:{enumerable:!0,value:S.finally.bind(S)}}),S}return t}}var ad=id();function od(e,t=!1){let n=H({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}});return t&&(n.__v_isShallow=!0),n}function sd(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function cd(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=E(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function ld(e,t){let n={};for(let r of t)n[r]=e[r];return n}function ud(e,t,n,r,i){e.payload._errors[t]??=void 0;let a=r.getCachedData!==fd,o=n,s=r.deep?W:Yt,c=i!==void 0,l=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await u.execute({cause:`refresh:hook`})}),u={data:s(c?i:r.default()),pending:H(()=>u.status.value===`pending`),error:pt(e.payload._errors,t),status:Yt(`idle`),execute:(...n)=>{let[i,a=void 0]=n,s=i&&a===void 0&&typeof i==`object`?i:{};if(e._asyncDataPromises[t]&&(s.dedupe??r.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in s?s.cachedData:r.getCachedData(t,e,{cause:s.cause??`refresh:manual`});if(n!==void 0)return r.serialize!==!1&&(e.payload.data[t]=n),u.data.value=n,u.error.value=void 0,u.status.value=`success`,Promise.resolve(n)}if(xt(r.enabled)===!1)return Promise.resolve(u.data.value);u._abortController&&u._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),u._abortController=new AbortController,u.status.value=`pending`;let c=new AbortController,l=new Promise((t,n)=>{try{let i=s.timeout??r.timeout,a=pd([u._abortController?.signal,s?.signal],c.signal,i);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:c.signal});let l={signal:a},d=()=>Promise.resolve(o(e,l));if(r.middleware?.length)for(let e=r.middleware.length-1;e>=0;e--){let t=r.middleware[e],n=d;d=()=>Promise.resolve(t(n,l))}return d().then(t,n)}catch(e){n(e)}}).then(async n=>{if(e._asyncDataPromises[t]!==l)return;let i=n;r.transform&&(i=await r.transform(n)),r.pick&&(i=ld(i,r.pick)),r.serialize!==!1&&(e.payload.data[t]=i),u.data.value=i,u.error.value=void 0,u.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]!==l||u._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return u.status.value=`idle`,e._asyncDataPromises[t];u.error.value=ve(n),u.data.value=E(r.default()),u.status.value=`error`}).finally(()=>{c.abort(),e._asyncDataPromises[t]===l&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=l,e._asyncDataPromises[t]},_execute:td((...e)=>u.execute(...e)),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),e._asyncData[t]===u&&(e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(u._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[t],u.status.value===`pending`&&(u.status.value=`idle`)),a||yt(()=>{u._deps>0||(u.execute=()=>Promise.resolve(),e._asyncData[t]===u&&(cd(e,t),delete e._asyncData[t]))}))}};return u}var dd=()=>void 0,fd=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function pd(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var md=Oi,hd=[`method`,`baseURL`,`query`,`params`,`body`,`headers`];function gd(e){let t=[xt(e.method)?.toUpperCase()||`GET`,xt(e.baseURL)];for(let n of[e.query||e.params]){let e=xt(n);if(!e)continue;let r={};for(let[t,n]of Object.entries(e))r[xt(t)]=xt(n);t.push(r)}if(e.body){let n=xt(e.body);if(!n)t.push($u(n));else if(n instanceof ArrayBuffer)t.push($u(Object.fromEntries([...new Uint8Array(n).entries()].map(([e,t])=>[e,t.toString()]))));else if(n instanceof FormData){let e=[];for(let t of n.entries()){let[n,r]=t;e.push([n,r instanceof File?`${r.name}:${r.size}:${r.lastModified}`:r])}t.push($u(e))}else if(gt(n))t.push($u(Zt(n)));else try{t.push($u(n))}catch{ed.NUXT_E3002({cause:n})}}return t}function _d(e={}){{function t(t,n,r){let[i={},o]=typeof n==`string`?[{},n]:[n,r],s=typeof e==`function`?e(i):e,{server:c,lazy:l,default:u,transform:d,pick:f,watch:p,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,serialize:b,middleware:x,_keySegments:S,...C}={...typeof e==`function`?{}:s,...i,...typeof e==`function`?s:{}},w=H(()=>xt(t)),ee=H(()=>xt(C.key)||`$f`+$u([o,typeof w.value==`string`?w.value:``,...gd(C),...S?S.map(e=>xt(e)):[]]));if(!C.baseURL&&typeof w.value==`string`&&w.value[0]===`/`&&w.value[1]===`/`)throw ed.NUXT_E3001({url:w.value});let te=Zt({...a,...C,cache:typeof C.cache==`boolean`?void 0:C.cache}),ne={server:c,lazy:l,default:u,transform:d,pick:f,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,serialize:b,middleware:x,watch:p===!1?[]:[...p||[],te]};return p===!1&&(ne._keyTriggersExecute=!1),ad(ee,(e,{signal:t})=>{let n=C.$fetch||md,r={signal:t,...te};for(let e of hd)typeof r[e]==`function`&&(r[e]=xt(r[e]));return n(w.value,r)},ne)}return t}}var vd=_d(),yd=[`frontend`,`backend`,`e2e`],bd={frontend:`前端`,backend:`后端`,e2e:`端到端`},xd={unit:`单元`,integration:`集成`,e2e:`端到端`},Sd=[`pass`,`fail`,`skipped`,`blocked`,`not-run`],Cd={pass:`通过`,fail:`失败`,skipped:`跳过`,blocked:`阻塞`,"not-run":`未执行`},wd={pass:`success`,fail:`error`,skipped:`neutral`,blocked:`warning`,"not-run":`info`},Td={pass:`#6aa844`,fail:`#cf4759`,skipped:`#b6bac1`,blocked:`#d29a2c`,"not-run":`#3f7fd4`},Ed=(e,t)=>`${e}-A${t+1}`,Dd=e=>!!e&&e.status!==`draft`&&e.status!==`cancelled`,Od={P0:0,P1:1,P2:2,P3:3};function kd(e){return(e??[]).flatMap(e=>(e.cases??[]).map(t=>({...t,suiteId:e.id,suiteName:e.name,layer:e.layer,level:e.level,runner:e.runner})))}var Ad=()=>({total:0,pass:0,fail:0,skipped:0,blocked:0,notRun:0});function jd(e){let t=kd(e),n=Object.fromEntries(yd.map(e=>[e,Ad()])),r=Object.fromEntries(Sd.map(e=>[e,0]));for(let e of t){n[e.layer]||(n[e.layer]=Ad());let t=n[e.layer];t.total++;let i=e.status===`not-run`?`notRun`:e.status;i in t&&t[i]++,r[e.status]=(r[e.status]??0)+1}return{total:t.length,automated:t.filter(e=>e.automated).length,manual:t.filter(e=>!e.automated).length,byStatus:r,byLayer:n,failed:r.fail??0}}function Md(e,t){let n=[];for(let t of e??[])Dd(t)&&(t.acceptance??[]).forEach((e,r)=>{n.push({ref:Ed(t.id,r),storyId:t.id,storyTitle:t.title,priority:t.priority,storyStatus:t.status,text:[e.given,e.when,e.then].filter(Boolean).join(` → `)})});let r=new Map;for(let e of kd(t))for(let t of e.covers??[]){let n=r.get(t)??{covered:!1,verified:!1};n.covered=!0,e.status===`pass`&&(n.verified=!0),r.set(t,n)}let i=n.filter(e=>r.has(e.ref)),a=n.filter(e=>r.get(e.ref)?.verified),o=n.filter(e=>!r.has(e.ref)).sort((e,t)=>(Od[e.priority]??9)-(Od[t.priority]??9)||e.storyId.localeCompare(t.storyId)||e.ref.localeCompare(t.ref)),s=(e,t)=>t?Math.round(e/t*100):0;return{total:n.length,covered:i.length,verified:a.length,rate:s(i.length,n.length),verifiedRate:s(a.length,n.length),gaps:o,rows:n}}function Nd(e,t){let n=kd(t);return(e??[]).filter(Dd).map(e=>{let t=(e.acceptance??[]).map((t,n)=>Ed(e.id,n)),r=Object.fromEntries(yd.map(e=>[e,0])),i=new Set;for(let e of n){let n=(e.covers??[]).filter(e=>t.includes(e));n.length&&(r[e.layer]!==void 0&&(r[e.layer]+=n.length),n.forEach(e=>i.add(e)))}return{id:e.id,title:e.title,priority:e.priority,status:e.status,layers:r,covered:i.size,total:t.length,allCovered:t.length>0&&i.size===t.length}}).sort((e,t)=>(Od[e.priority]??9)-(Od[t.priority]??9)||e.id.localeCompare(t.id))}var Pd=e=>e?.length?e[e.length-1]:null;function Fd(e){let t=e?.coverage??{};return Object.entries(t).map(([e,t])=>({layer:e,label:bd[e]??e,tool:t?.tool??``,lines:t?.lines,branches:t?.branches,functions:t?.functions,report:t?.report}))}var Id=[`architecture`,`sequence`,`flow`,`erd`,`state`,`deploy`,`other`],Ld={architecture:`架构`,sequence:`时序`,flow:`流程`,erd:`ER 关系`,state:`状态`,deploy:`部署`,other:`其它`},Rd={architecture:`i-lucide-network`,sequence:`i-lucide-arrow-left-right`,flow:`i-lucide-workflow`,erd:`i-lucide-database`,state:`i-lucide-circle-dot`,deploy:`i-lucide-cloud`,other:`i-lucide-shapes`},zd={architecture:`#8a63f7`,sequence:`#3f7fd4`,flow:`#6aa844`,erd:`#d29a2c`,state:`#cf4759`,deploy:`#5a8f8a`,other:`#b6bac1`};function Bd(e){return(e?.diagrams??[]).map(e=>({...e,storyIds:Array.isArray(e.storyIds)?e.storyIds:[],kind:Id.includes(e.kind)?e.kind:`other`,updatedAt:e.updatedAt??e.createdAt??``}))}function Vd(e){let t=Object.fromEntries(Id.map(e=>[e,0]));for(let n of e??[])t[n.kind]=(t[n.kind]??0)+1;return{total:(e??[]).length,byKind:t}}function Hd(e){let t=new Map;for(let n of e??[])for(let e of n.storyIds??[])t.has(e)||t.set(e,[]),t.get(e).push(n);return t}function Ud(e,t){let n=new Map((t??[]).map(e=>[e.taskId,e])),r=new Map;for(let t of e??[]){let e=``;for(let r of t.tasks??[])for(let t of n.get(r.id)?.entries??[])/^pass/i.test(t.result??``)&&t.date>e&&(e=t.date);e&&r.set(t.id,e)}return r}function Wd(e,t){let n=new Set;for(let r of e??[])for(let e of r.storyIds??[]){let i=t?.get?.(e);if(i&&r.updatedAt&&r.updatedAt<i){n.add(r.id);break}}return n}function Gd(e,t,n=16){let r=Math.max(0,(t?.width??0)-n*2),i=Math.max(0,(t?.height??0)-n*2);if(!e?.w||!e?.h||!r||!i)return{scale:1,x:0,y:0};let a=Math.min(r/e.w,i/e.h);return{scale:a,x:((t.width??0)-e.w*a)/2,y:((t.height??0)-e.h*a)/2}}function Kd(e,t,n){let r=t/(e?.scale||1);return{scale:t,x:n.x-(n.x-e.x)*r,y:n.y-(n.y-e.y)*r}}function qd(e,t,n=.5,r=12){let i=t*n,a=t*r;return Math.min(Math.max(e,i),a)}function Jd(e){return Math.round((e||0)*100)}function Yd(e){let t=/viewBox\s*=\s*["']\s*([-\d.,\s]+?)\s*["']/i.exec(String(e??``));if(!t)return null;let n=t[1].trim().split(/[\s,]+/).map(Number);return n.length===4&&n.every(Number.isFinite)?n:null}function Xd(e,t,{minWidth:n=3200,minScale:r=3,maxPixels:i=16e6}={}){if(!e||!t)return r;let a=Math.min(Math.max(r,n/e),Math.sqrt(i/(e*t)));return Math.max(1,Math.floor(a*10)/10)}function Zd(e,t,n){let r=String(e??``);return/<svg\b/i.test(r)?r.replace(/<svg\b([^>]*?)(\/?)>/i,(e,r,i)=>`<svg${String(r).replace(/\swidth\s*=\s*"[^"]*"/gi,``).replace(/\sheight\s*=\s*"[^"]*"/gi,``).replace(/\swidth\s*=\s*'[^']*'/gi,``).replace(/\sheight\s*=\s*'[^']*'/gi,``)} width="${Math.round(t)}" height="${Math.round(n)}"${i?` /`:``}>`):r}function Qd(e,{kind:t=`all`,keyword:n=``,storyId:r=``,onlyStale:i=!1,stale:a=new Set}={}){let o=String(n).trim().toLowerCase();return(e??[]).filter(e=>t!==`all`&&e.kind!==t||r&&!(e.storyIds??[]).includes(r)||i&&!a.has(e.id)?!1:!o||[e.id,e.title,e.summary??``,...e.storyIds??[]].join(` `).toLowerCase().includes(o))}var $d=[`mint`,`sky`,`lilac`,`ink`,`amber`,`rose`],ef=e=>$d[e%$d.length],tf=e=>`tone-${ef(e)}`,nf=864e5,rf=e=>new Date(`${e}T00:00:00Z`),af=(e,t)=>new Date(+rf(e)+t*nf).toISOString().slice(0,10),of=(e,t)=>Math.round((+rf(t)-rf(e))/nf),sf=e=>e.slice(5).replace(`-`,`/`),cf=()=>{let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`},lf=[`draft`,`ready`,`in-progress`,`review`,`done`,`cancelled`],uf={draft:`草稿`,ready:`就绪`,"in-progress":`进行中`,review:`评审`,done:`完成`,cancelled:`已取消`},df={todo:`待办`,red:`红(测试失败)`,green:`绿(测试通过)`,refactored:`已重构`,done:`完成`},ff={mvp:`MVP 节点`,release:`发布`,checkpoint:`检查点`},pf={planned:`计划中`,"at-risk":`有风险`,reached:`已达成`,missed:`已错过`},mf={draft:`#b6bac1`,ready:`#8b6cf7`,"in-progress":`#3f7fd4`,review:`#d29a2c`,done:`#6aa844`,cancelled:`#cf4759`},hf={draft:`草稿`,ready:`就绪`,"in-progress":`进行`,review:`评审`,done:`完成`,cancelled:`取消`},gf={draft:`neutral`,ready:`primary`,"in-progress":`info`,review:`warning`,done:`success`,cancelled:`error`},_f={todo:`neutral`,red:`error`,green:`success`,refactored:`info`,done:`success`},vf={planned:`neutral`,"at-risk":`warning`,reached:`success`,missed:`error`},yf={mvp:`warning`,release:`primary`,checkpoint:`neutral`},bf={mvp:`i-lucide-flag`,release:`i-lucide-rocket`,checkpoint:`i-lucide-map-pin`},xf={feature:`功能`,bug:`缺陷`,debt:`技术债`,spike:`调研`},Sf={feature:`primary`,bug:`error`,debt:`neutral`,spike:`secondary`},Cf={feature:`i-lucide-sparkles`,bug:`i-lucide-bug`,debt:`i-lucide-wrench`,spike:`i-lucide-flask-conical`},wf={P0:`error`,P1:`warning`,P2:`info`,P3:`neutral`},Tf={blocker:`致命`,major:`严重`,minor:`次要`,trivial:`轻微`},Ef={blocker:`error`,major:`error`,minor:`warning`,trivial:`neutral`},Df={"added-mid-sprint":`迭代中途插入`,split:`拆分产生`,expanded:`范围扩大`};function Of(){let e=Tn(`agile-root`,()=>``),{data:t,error:n,refresh:r,status:i}=vd(`/api/agile`,{key:`agile-data`,query:H(()=>({root:e.value||void 0})),watch:!1,onResponse({response:t}){t.ok&&t._data?.meta?.root&&(e.value=t._data.meta.root)}},`$UZ59C_AfU2`),a=H(()=>t.value?.backlog?.epics??[]),o=H(()=>t.value?.backlog?.stories??[]),s=H(()=>t.value?.sprints?.sprints??[]),c=H(()=>t.value?.sprints?.milestones??[]),l=H(()=>t.value?.journal?.journals??[]),u=H(()=>t.value?.meta?.root??``),d=H(()=>t.value?.lastChange?.lastChange??null),f=H(()=>t.value?.meta?.lastChangeGit??null),p=H(()=>t.value?.tests?.suites??[]),m=H(()=>t.value?.tests?.runs??[]),h=H(()=>kd(p.value)),g=H(()=>jd(p.value)),_=H(()=>Md(o.value,p.value)),v=H(()=>Nd(o.value,p.value)),y=H(()=>Pd(m.value)),b=H(()=>Fd(y.value)),x=H(()=>Bd(t.value?.diagrams)),S=H(()=>Vd(x.value)),C=H(()=>new Map(x.value.map(e=>[e.id,e]))),w=H(()=>Hd(x.value)),ee=H(()=>Wd(x.value,Ud(o.value,l.value))),te=H(()=>new Map(o.value.map(e=>[e.id,e]))),ne=H(()=>new Map(a.value.map(e=>[e.id,e]))),re=H(()=>new Map(s.value.map(e=>[e.id,e]))),ie=H(()=>new Map(l.value.map(e=>[e.taskId,e]))),ae=cf(),oe=H(()=>s.value.find(e=>e.start<=ae&&e.end>=ae)??null),se=H(()=>s.value[s.value.length-1]??null),ce=H(()=>oe.value??se.value),le=lf,ue=e=>o.value.filter(t=>t.status===e),de=e=>{let t=e.tasks?.length??0,n=(e.tasks??[]).filter(e=>e.status===`done`).length;return{done:n,total:t,pct:t?Math.round(n/t*100):0}},fe=e=>{let t=(e.tasks??[]).flatMap(e=>ie.value.get(e.id)?.entries??[]).map(e=>e.date).filter(Boolean).sort();return t.length?{start:t[0],end:t[t.length-1]}:null},pe=e=>e.reduce((e,t)=>e+(te.value.get(t)?.points??0),0);return{data:t,error:n,refresh:r,status:i,root:u,epics:a,stories:o,sprints:s,milestones:c,journals:l,lastChange:d,lastChangeGit:f,testSuites:p,testRuns:m,testCases:h,testStats:g,requirement:_,matrixRows:v,lastRun:y,coverageRows:b,diagrams:x,diagramStats:S,diagramById:C,storyDiagrams:w,staleDiagrams:ee,DIAGRAM_KINDS:Id,DIAGRAM_KIND_LABEL:Ld,DIAGRAM_KIND_ICON:Rd,DIAGRAM_KIND_DOT:zd,storyById:te,epicById:ne,sprintById:re,journalByTask:ie,activeSprint:oe,currentSprint:ce,now:ae,states:le,columnOf:ue,progress:de,actualRange:fe,pointsOf:pe,milestoneOfStory:e=>c.value.filter(t=>(t.stories??[]).includes(e)),milestoneProgress:e=>{let t=(e.stories??[]).map(e=>te.value.get(e)).filter(Boolean),n=t.filter(e=>e.status===`cancelled`).length,r=t.filter(e=>e.status!==`cancelled`);return{list:t,live:r,cancelled:n,done:r.filter(e=>e.status===`done`).length,total:r.length,points:r.reduce((e,t)=>e+t.points,0)}},burndown:e=>{let t=(e.stories??[]).filter(e=>{let t=te.value.get(e);return!t||t.status!==`cancelled`}),n=pe(t),r=new Map;for(let e of l.value){let t=(e.entries??[]).filter(e=>/^pass/i.test(e.result??``));t.length&&r.set(e.taskId,t[t.length-1].date)}let i=[],a=of(e.start,e.end);for(let o=0;o<=a;o++){let s=af(e.start,o),c=0;for(let e of t){let t=te.value.get(e);if(!t||t.status!==`done`||!t.tasks?.length)continue;let n=t.tasks.filter(e=>{let t=r.get(e.id);return t&&t<=s}).length;c+=t.points*(n/t.tasks.length)}i.push({date:s,ideal:Math.round(n*(1-o/(a||1))*10)/10,actual:Math.round((n-c)*10)/10})}return{total:n,days:i}},sprintCommit:e=>(e.stories??[]).reduce((e,t)=>{let n=te.value.get(t);return n&&n.status!==`cancelled`?e+n.points:e},0),wsjf:e=>e.points?Math.round(e.value/e.points*100)/100:0,dependentsOf:e=>o.value.filter(t=>(t.dependsOn??[]).includes(e)),blockedStories:H(()=>o.value.filter(e=>e.blocked)),dependencyPairs:H(()=>o.value.flatMap(e=>(e.dependsOn??[]).map(t=>({from:t,to:e.id})))),toDate:rf,addDays:af,diffDays:of,md:sf,STATE_LABEL:uf,TASK_LABEL:df,KIND_LABEL:ff,MS_LABEL:pf,STATE_COLOR:gf,STATE_DOT:mf,STATE_SHORT:hf,TASK_COLOR:_f,MS_COLOR:vf,KIND_COLOR:yf,KIND_ICON:bf,TYPE_LABEL:xf,TYPE_COLOR:Sf,TYPE_ICON:Cf,PRIORITY_COLOR:wf,SEVERITY_LABEL:Tf,SEVERITY_COLOR:Ef,SCOPE_LABEL:Df,LAYERS:yd,LAYER_LABEL:bd,LEVEL_LABEL:xd,CASE_STATUSES:Sd,CASE_STATUS_LABEL:Cd,CASE_STATUS_COLOR:wd,CASE_STATUS_DOT:Td}}var kf=[`aria-busy`],Af=[`title`,`disabled`],jf={class:`project-avatar`},Mf={class:`project-text`},Nf={class:`mono`},Pf=[`disabled`],Ff={key:0,role:`alert`,class:`project-error`},If=k({__name:`ProjectSwitcher`,setup(e){let{root:t,data:n,error:r,status:i}=Of(),a=Tn(`agile-root`,()=>``),o=W([]),s=W(``),c=W(!1),l=W(``),u=e=>e.split(/[\\/]/).filter(Boolean).pop()||`选择项目`;async function d(){let e=await Oi(`/api/projects`);o.value=e.recent,s.value=e.token}async function f(e){if(!c.value){c.value=!0,l.value=``;try{s.value||await d();let t=await Oi(e?`/api/projects/open`:`/api/projects/select`,{method:`POST`,headers:{"x-project-token":s.value},body:e?{root:e}:void 0});if(!t)return;a.value=t.data.meta.root,n.value=t.data,r.value=void 0,o.value=t.recent,await Re(`/`)}catch(e){l.value=e.data?.error||e.message||`打开项目失败,请重试。`}finally{c.value=!1}}}let p=H(()=>(t.value||`选择含 agile/ 的文件夹`).match(/[^\\/]+[\\/]?/g)??[]),m=H(()=>[[{label:`最近打开的项目`,type:`label`}],o.value.map(e=>({label:u(e),description:e,icon:e===t.value?`i-lucide-check`:`i-lucide-folder`,disabled:c.value,onSelect:()=>f(e)})),[{label:`选择其他文件夹…`,icon:`i-lucide-folder-open`,disabled:c.value,onSelect:()=>f()}]]);return lt(()=>d().catch(e=>{l.value=e.data?.error||`无法加载最近项目,请重启看板服务后重试。`})),(e,n)=>{let r=kn,a=Xu;return j(),R(`div`,null,[P(`div`,{class:`project-switcher`,"aria-busy":E(c)},[P(`button`,{class:`project-open`,title:`${E(t)||`选择项目`}\n点击选择项目文件夹`,disabled:E(c)||E(i)===`pending`,onClick:n[0]||=e=>f()},[P(`span`,jf,[N(r,{name:E(c)?`i-lucide-loader-circle`:`i-lucide-folder-open`,class:V({"animate-spin":E(c)})},null,8,[`name`,`class`])]),P(`span`,Mf,[P(`b`,null,M(E(c)?`正在打开项目…`:u(E(t))),1),P(`small`,Nf,[(j(!0),R(I,null,vt(E(p),(e,t)=>(j(),R(I,{key:t},[Xt(M(e),1),n[1]||=P(`wbr`,null,null,-1)],64))),128))])])],8,Af),N(a,{items:E(m),content:{align:`start`,side:`bottom`},ui:{content:`w-80`,itemDescription:`truncate`}},{default:L(()=>[P(`button`,{class:`project-recent`,"aria-label":`切换最近项目`,title:`最近打开的项目`,disabled:E(c)||E(i)===`pending`},[N(r,{name:`i-lucide-chevron-down`})],8,Pf)]),_:1},8,[`items`])],8,kf),E(l)?(j(),R(`p`,Ff,M(E(l)),1)):z(``,!0)])}}}),Lf=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Rf=Object.assign(Lf(If,[[`__scopeId`,`data-v-bc44ea56`]]),{__name:`ProjectSwitcher`}),zf={class:`card-blobs`,"aria-hidden":`true`},Bf=Object.assign(k({__name:`CardBlobs`,props:{tone:{default:`mint`},min:{default:3},max:{default:6},size:{default:`lg`}},setup(e){let t=e,n={sm:{size:[46,110]},lg:{size:[110,260]},xl:{size:[180,380]}},r={mint:[`120, 172, 40`,`150, 196, 74`,`186, 214, 122`],lilac:[`110, 74, 230`,`124, 88, 242`,`168, 140, 250`],ink:[`154, 124, 250`,`211, 240, 164`,`120, 104, 190`],green:[`120, 172, 40`,`150, 196, 74`,`96, 150, 32`],violet:[`110, 74, 230`,`154, 124, 250`,`190, 170, 250`],sky:[`56, 132, 214`,`92, 156, 226`,`138, 186, 242`],amber:[`198, 138, 32`,`216, 164, 62`,`234, 198, 112`],rose:[`207, 71, 89`,`223, 112, 126`,`243, 160, 168`]},i=(e,t)=>e+Math.random()*(t-e),a=e=>Math.round(e),o=e=>e[Math.floor(Math.random()*e.length)];function s(e){let s=n[t.size],c=o(r[t.tone]),l=i(s.size[0],s.size[1]),u=i(.55,.8).toFixed(2),d=a(i(58,76)),f=l*i(.04,.12);return{key:e,style:{left:`${a(i(-14,84))}%`,top:`${a(i(-20,80))}%`,width:`${a(l)}px`,height:`${a(l)}px`,borderRadius:`50%`,background:`radial-gradient(circle at 50% 50%, rgba(${c}, ${u}) 0%, rgba(${c}, 0) ${d}%)`,filter:`blur(${a(f)}px)`,opacity:i(.5,.95).toFixed(2)}}}let c=W([]);return lt(()=>{let e=a(i(t.min,t.max));c.value=Array.from({length:e},(e,t)=>s(t))}),(e,t)=>(j(),R(`div`,zf,[(j(!0),R(I,null,vt(E(c),e=>(j(),R(`i`,{key:e.key,style:Ot(e.style)},null,4))),128))]))}}),{__name:`CardBlobs`}),Vf={class:`cal`},Hf={class:`cal-hd`},Uf={class:`cal-title`},Wf={class:`cal-nav`},Gf={class:`cal-week`},Kf={class:`cal-grid`},qf=[`title`,`onClick`],Jf={class:`cal-num`},Yf=[`data-kind`],Xf={class:`cal-foot`},Zf={class:`cal-band-note`},Qf={key:0,class:`cal-ms`},$f=[`data-kind`],ep={key:1,class:`cal-hint`},tp=Object.assign(Lf(k({__name:`SideCalendar`,setup(e){let{currentSprint:t,milestones:n}=Of(),r=[`一`,`二`,`三`,`四`,`五`,`六`,`日`],i=cf(),a=W(i),o=W(i.slice(0,7)),s=H(()=>{let e=`${o.value}-01`,t=af(e,-((rf(e).getUTCDay()+6)%7));return Array.from({length:42},(e,n)=>{let r=af(t,n);return{date:r,day:Number(r.slice(8,10)),inMonth:r.slice(0,7)===o.value}})}),c=H(()=>t.value?.start??``),l=H(()=>t.value?.end??``),u=e=>!!c.value&&e>=c.value&&e<=l.value,d=H(()=>u(a.value)?of(c.value,a.value)+1:0),f=H(()=>{let e=new Map;for(let t of n.value)t.due&&e.set(t.due,[...e.get(t.due)??[],t]);return e}),p=H(()=>f.value.get(a.value)??[]),m=H(()=>`${o.value.slice(0,4)} · ${Number(o.value.slice(5,7))} 月`),h={mvp:`i-lucide-flag`,release:`i-lucide-rocket`,checkpoint:`i-lucide-map-pin`};function g(e){let[t,n]=o.value.split(`-`).map(Number),r=new Date(Date.UTC(t,n-1+e,1));o.value=r.toISOString().slice(0,7)}function _(e){a.value=e,e.slice(0,7)!==o.value&&(o.value=e.slice(0,7))}function v(){a.value=i,o.value=i.slice(0,7)}return(e,t)=>{let n=Bf,o=kn;return j(),R(`div`,Vf,[N(n,{tone:`lilac`,size:`sm`,min:2,max:3}),P(`div`,Hf,[P(`span`,Uf,[N(o,{name:`i-lucide-calendar-days`}),t[2]||=Xt(`日历`,-1)]),P(`div`,Wf,[P(`button`,{type:`button`,"aria-label":`上个月`,onClick:t[0]||=e=>g(-1)},[N(o,{name:`i-lucide-chevron-left`})]),P(`button`,{type:`button`,class:`cal-month`,title:`回到今天`,onClick:v},M(E(m)),1),P(`button`,{type:`button`,"aria-label":`下个月`,onClick:t[1]||=e=>g(1)},[N(o,{name:`i-lucide-chevron-right`})])])]),P(`div`,Gf,[(j(),R(I,null,vt(r,e=>P(`span`,{key:e},M(e),1)),64))]),P(`div`,Kf,[(j(!0),R(I,null,vt(E(s),e=>(j(),R(`button`,{key:e.date,type:`button`,class:V([`cal-d`,{out:!e.inMonth,band:u(e.date),sel:e.date===E(a),now:e.date===E(i),"has-ms":E(f).has(e.date)}]),title:e.date,onClick:t=>_(e.date)},[P(`span`,Jf,M(e.day),1),E(f).has(e.date)?(j(),R(`i`,{key:0,class:`cal-dot`,"data-kind":E(f).get(e.date)?.[0]?.kind},null,8,Yf)):z(``,!0)],10,qf))),128))]),P(`div`,Xf,[P(`p`,Zf,[t[3]||=P(`i`,{class:`cal-swatch`},null,-1),E(c)?(j(),R(I,{key:0},[Xt(` 冲刺 `+M((`md`in e?e.md:E(sf))(E(c)))+` – `+M((`md`in e?e.md:E(sf))(E(l)))+` `,1),E(d)?(j(),R(I,{key:0},[Xt(`· 第 `+M(E(d))+` 天`,1)],64)):z(``,!0)],64)):(j(),R(I,{key:1},[Xt(`当前没有进行中的冲刺`)],64))]),E(p).length?(j(),R(`div`,Qf,[(j(!0),R(I,null,vt(E(p),t=>(j(),R(`p`,{key:t.id,class:`cal-ms-row`,"data-kind":t.kind},[N(o,{name:h[t.kind]??`i-lucide-flag`},null,8,[`name`]),P(`b`,null,M(t.title),1),P(`small`,null,M((`MS_LABEL`in e?e.MS_LABEL:E(pf))[t.status]),1)],8,$f))),128))])):(j(),R(`p`,ep,[Xt(M((`md`in e?e.md:E(sf))(E(a)))+` 周`+M(r[((`toDate`in e?e.toDate:E(rf))(E(a)).getUTCDay()+6)%7])+` `,1),u(E(a))?(j(),R(I,{key:0},[Xt(` · 冲刺期内`)],64)):z(``,!0)]))])])}}}),[[`__scopeId`,`data-v-3156dafd`]]),{__name:`SideCalendar`}),np=(e=`RouteProvider`)=>k({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return Et(Ee,Ct(r)),()=>e.vnode?ft(e.vnode,{ref:e.vnodeRef}):e.vnode}}),rp=np(),ip=new WeakMap,ap=k({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=u(),a=W(),o=bt(Ee,null),s=new Set,c;r({pageRef:a});let l=bt(Ce,null),d,f=i.deferHydration(),p=!1,m=!1,h,g=0;if(i.isHydrating){let e=i.hooks.hookOnce(`app:error`,f),t=Ne().beforeEach(()=>{e(),t()})}e.pageKey&&Mt(()=>e.pageKey,(e,t)=>{e!==t&&i.callHook(`page:loading:start`)});let _=!1;{let e=Ne().beforeResolve(()=>{_=!1});_t(()=>{e(),f()})}return()=>ft(io,{name:e.name,route:e.route,...t},{default:cp(t=>{let r=op(o,t.route,t.Component),u=o&&o.matched.length===t.route.matched.length;if(!t.Component)return d&&!u&&!up(d)?d:(f(),e.transition??t.route.meta.pageTransition??!1?We(ye([e.transition,t.route.meta.pageTransition,!1]),null).default():void 0);if(d&&l&&!up(d)&&!l.isCurrent(t.route))return d;if(r&&o&&(!l||l?.isCurrent(o)))return(u||d)&&!up(d)?d:null;let v=ha(t,e.pageKey),y=sp(o,t.route,t.Component);!i.isHydrating&&c===v&&!y&&yt(()=>{_||(_=!0,i.callHook(`page:loading:end`))}),p&&c!==v&&m&&g++,c=v;let b=!!(e.transition??t.route.meta.pageTransition??!1),x=b&&ye([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){ke(i),i.callHook(`page:transition:finish`,t.Component)}}]),S=e.keepalive??t.route.meta.keepalive??!1,C=t.Component.type,w=C.name||C.__name;t.route.meta.keepalive&&w&&s.add(w);let ee;if(s.size>0&&e.keepalive==null&&(!S||typeof S==`object`&&S&&S.include)){let e=typeof S==`object`&&S?{...S}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];ee={...e,include:Array.from(new Set([...t,...s]))}}else ee=S;return d=We(b&&x,ga(ee,ft(Ht,{key:g,suspensible:!0,onPending:()=>{p=!0,b&&m&&Le(i),h=i.callHook(`page:start`,t.Component)},onResolve:async()=>{p=!1,m=!0,i.isHydrating&&i[`~restoreDeferredRoute`]?.();try{await yt(),i._route.sync?.(),await h,await i.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await i.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:n.default?lp(n.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:b,vnodeRef:a,routeRecord:void 0};if(!ee)return ft(rp,e);let r=C,i=ip.get(r);return i||(i=np(w),ip.set(r,i)),ft(i,e)}}))).default(),d})})}});function op(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&ha({route:t,Component:n})!==ha({route:e,Component:n})}function sp(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function cp(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!Rt(n)?[z()]:[n]});return t._n=!0,t}function lp(e,t){let n=e(t);return n.length===1?ft(n[0]):ft(I,void 0,n)}function up(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var dp={slots:{root:`relative inline-flex items-center`,base:[`w-full rounded-md border-0 appearance-none placeholder:text-dimmed disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute start-0 flex items-start`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute end-0 flex items-start`,trailingIcon:`shrink-0 text-dimmed`},variants:{fieldGroup:{horizontal:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none`},vertical:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none`}},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2 inset-y-1`,trailing:`pe-2 inset-y-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5 inset-y-1.5`,trailing:`pe-2.5 inset-y-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5 inset-y-1.5`,trailing:`pe-2.5 inset-y-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3 inset-y-2`,trailing:`pe-3 inset-y-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3 inset-y-2`,trailing:`pe-3 inset-y-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},autoresize:{true:{base:`resize-none`}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`}},fp=[`id`,`value`,`name`,`rows`,`placeholder`,`disabled`,`required`],pp=Object.assign({inheritAttrs:!1},{__name:`UTextarea`,props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},autoresize:{type:Boolean,required:!1},autoresizeDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},rows:{type:Number,required:!1,default:3},maxrows:{type:Number,required:!1,default:0},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`update:modelValue`,`blur`,`change`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Vt(),o=Ln(`textarea`,r),s=fr(o,`modelValue`,i,{defaultValue:o.defaultValue}),c=Dn(),{emitFormFocus:l,emitFormBlur:u,emitFormInput:d,emitFormChange:f,size:p,color:m,id:h,name:g,highlight:_,disabled:v,ariaAttrs:y}=Jr(r,{deferInputValidation:!0}),b=H(()=>m.value??o.color),x=H(()=>_.value??o.highlight),S=H(()=>p.value??o.size),C=H(()=>v.value??o.disabled),{isLeading:w,isTrailing:ee,leadingIconName:te,trailingIconName:ne}=Hr(o),re=H(()=>zn({extend:dp,...c.ui?.textarea||{}})({color:b.value,variant:o.variant,size:S.value,loading:o.loading,highlight:x.value,fixed:o.fixed,autoresize:o.autoresize,leading:w.value||!!o.avatar||!!a.leading,trailing:ee.value||!!a.trailing})),ie=Wt(`textareaRef`);function ae(e){o.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),o.modelModifiers?.number&&(e=Fn(e)),o.modelModifiers?.nullable&&jn(e)&&(e=null),o.modelModifiers?.optional&&!o.modelModifiers?.nullable&&e!==null&&jn(e)&&(e=void 0),s.value=e,d()}function oe(e){ue(),o.modelModifiers?.lazy||ae(e.target.value)}function se(e){let t=e.target.value;o.modelModifiers?.lazy&&ae(t),o.modelModifiers?.trim&&(e.target.value=t.trim()),f(),i(`change`,e)}function ce(e){u(),i(`blur`,e)}function le(){o.autofocus&&ie.value?.focus()}function ue(){if(o.autoresize&&ie.value){ie.value.rows=o.rows;let e=ie.value.style.overflow;ie.value.style.overflow=`hidden`;let t=window.getComputedStyle(ie.value),n=Number.parseInt(t.paddingTop)+Number.parseInt(t.paddingBottom),r=Number.parseInt(t.lineHeight),{scrollHeight:i}=ie.value,a=(i-n)/r;a>o.rows&&(ie.value.rows=o.maxrows?Math.min(a,o.maxrows):a),ie.value.style.overflow=e}}Mt(s,()=>{yt(ue)});let de,fe;return lt(()=>{de=setTimeout(()=>{le()},o.autofocusDelay),fe=setTimeout(async()=>{await yt(),ue()},o.autoresizeDelay)}),Jt(()=>{clearTimeout(de),clearTimeout(fe)}),t({textareaRef:ie,autoResize:ue}),(e,t)=>(j(),F(E(yr),{as:E(o).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:V(re.value.root({class:[E(o).ui?.root,E(o).class]}))},{default:L(()=>[P(`textarea`,O({id:E(h),ref_key:`textareaRef`,ref:ie,value:E(s),name:E(g),rows:E(o).rows,placeholder:E(o).placeholder,class:re.value.base({class:E(o).ui?.base}),disabled:C.value,required:E(o).required},{...e.$attrs,...E(y)},{"data-slot":`base`,onInput:oe,onBlur:ce,onChange:se,onFocus:t[0]||=(...e)=>E(l)&&E(l)(...e)}),null,16,fp),B(e.$slots,`default`,{ui:re.value}),E(w)||E(o).avatar||a.leading?(j(),R(`span`,{key:0,"data-slot":`leading`,class:V(re.value.leading({class:E(o).ui?.leading}))},[B(e.$slots,`leading`,{ui:re.value},()=>[E(w)&&E(te)?(j(),F(kn,{key:0,name:E(te),"data-slot":`leadingIcon`,class:V(re.value.leadingIcon({class:E(o).ui?.leadingIcon}))},null,8,[`name`,`class`])):E(o).avatar?(j(),F(Vr,O({key:1,size:E(o).ui?.leadingAvatarSize||re.value.leadingAvatarSize()},E(o).avatar,{"data-slot":`leadingAvatar`,class:re.value.leadingAvatar({class:E(o).ui?.leadingAvatar})}),null,16,[`size`,`class`])):z(``,!0)])],2)):z(``,!0),E(ee)||a.trailing?(j(),R(`span`,{key:1,"data-slot":`trailing`,class:V(re.value.trailing({class:E(o).ui?.trailing}))},[B(e.$slots,`trailing`,{ui:re.value},()=>[E(ne)?(j(),F(kn,{key:0,name:E(ne),"data-slot":`trailingIcon`,class:V(re.value.trailingIcon({class:E(o).ui?.trailingIcon,leading:E(w)}))},null,8,[`name`,`class`])):z(``,!0)])],2)):z(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),mp={slots:{root:`relative flex items-start`,base:[`inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-3 data-[state=unchecked]:bg-accented`,`transition-[background] duration-200 ease-out`],container:`flex items-center`,thumb:`group pointer-events-none rounded-full bg-default shadow-lg ring-0 transition-transform duration-200 ease-out motion-reduce:transition-none data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center`,icon:[`absolute shrink-0 group-data-[state=unchecked]:text-dimmed opacity-0 size-10/12`,`transition-[color,opacity] duration-200 ease-out`],wrapper:`ms-2`,label:`block font-medium text-default`,description:`text-muted`},variants:{color:{primary:{base:`data-[state=checked]:bg-primary outline-primary/25`,icon:`group-data-[state=checked]:text-primary`},secondary:{base:`data-[state=checked]:bg-secondary outline-secondary/25`,icon:`group-data-[state=checked]:text-secondary`},success:{base:`data-[state=checked]:bg-success outline-success/25`,icon:`group-data-[state=checked]:text-success`},info:{base:`data-[state=checked]:bg-info outline-info/25`,icon:`group-data-[state=checked]:text-info`},warning:{base:`data-[state=checked]:bg-warning outline-warning/25`,icon:`group-data-[state=checked]:text-warning`},error:{base:`data-[state=checked]:bg-error outline-error/25`,icon:`group-data-[state=checked]:text-error`},neutral:{base:`data-[state=checked]:bg-inverted outline-inverted/25`,icon:`group-data-[state=checked]:text-highlighted`}},size:{xs:{base:`w-7`,container:`h-4`,thumb:`size-3 data-[state=checked]:translate-x-3 data-[state=checked]:rtl:-translate-x-3`,wrapper:`text-xs`},sm:{base:`w-8`,container:`h-4`,thumb:`size-3.5 data-[state=checked]:translate-x-3.5 data-[state=checked]:rtl:-translate-x-3.5`,wrapper:`text-xs`},md:{base:`w-9`,container:`h-5`,thumb:`size-4 data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4`,wrapper:`text-sm`},lg:{base:`w-10`,container:`h-5`,thumb:`size-4.5 data-[state=checked]:translate-x-4.5 data-[state=checked]:rtl:-translate-x-4.5`,wrapper:`text-sm`},xl:{base:`w-11`,container:`h-6`,thumb:`size-5 data-[state=checked]:translate-x-5 data-[state=checked]:rtl:-translate-x-5`,wrapper:`text-base`}},checked:{true:{icon:`group-data-[state=checked]:opacity-100`}},unchecked:{true:{icon:`group-data-[state=unchecked]:opacity-100`}},loading:{true:{icon:`animate-spin`}},highlight:{true:``},required:{true:{label:`after:content-['*'] after:ms-0.5 after:text-error`}},disabled:{true:{root:`opacity-75`,base:`cursor-not-allowed`,label:`cursor-not-allowed`,description:`cursor-not-allowed`}}},compoundVariants:[{color:`primary`,highlight:!0,class:{base:`ring ring-primary`}},{color:`secondary`,highlight:!0,class:{base:`ring ring-secondary`}},{color:`success`,highlight:!0,class:{base:`ring ring-success`}},{color:`info`,highlight:!0,class:{base:`ring ring-info`}},{color:`warning`,highlight:!0,class:{base:`ring ring-warning`}},{color:`error`,highlight:!0,class:{base:`ring ring-error`}},{color:`neutral`,highlight:!0,class:{base:`ring ring-inverted`}}],defaultVariants:{color:`primary`,size:`md`}},hp=Object.assign({inheritAttrs:!1},{__name:`USwitch`,props:{as:{type:null,required:!1},color:{type:null,required:!1},size:{type:null,required:!1},highlight:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},checkedIcon:{type:null,required:!1},uncheckedIcon:{type:null,required:!1},label:{type:String,required:!1},description:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},value:{type:String,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},trueValue:{type:null,required:!1},falseValue:{type:null,required:!1}},emits:[`change`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=Vt(),i=t,a=Ln(`switch`,n),o=Dn(),s=Ar(Er(a,`required`,`value`,`defaultValue`,`modelValue`,`trueValue`,`falseValue`),i),{id:c,emitFormChange:l,emitFormInput:u,size:d,color:f,highlight:p,name:m,disabled:h,ariaAttrs:g}=Jr(n),_=c.value??Pt(),v=H(()=>f.value??a.color),y=H(()=>p.value??a.highlight),b=H(()=>d.value??a.size),x=H(()=>h.value??a.disabled),S=st(),C=H(()=>{let{"data-state":e,...t}=S;return t}),w=H(()=>zn({extend:mp,...o.ui?.switch||{}})({size:b.value,color:v.value,highlight:y.value,required:a.required,loading:a.loading,disabled:x.value||a.loading}));function ee(e){let t=new Event(`change`,{target:{value:e}});i(`change`,t),l(),u()}return(e,t)=>(j(),F(E(yr),{as:E(a).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:V(w.value.root({class:[E(a).ui?.root,E(a).class]}))},{default:L(()=>[P(`div`,{"data-slot":`container`,class:V(w.value.container({class:E(a).ui?.container}))},[N(E(Ql),O({id:E(_)},{...E(s),...C.value,...E(g)},{name:E(m),disabled:x.value||E(a).loading,"data-slot":`base`,class:w.value.base({class:E(a).ui?.base}),"onUpdate:modelValue":ee}),{default:L(()=>[N(E($l),{"data-slot":`thumb`,class:V(w.value.thumb({class:E(a).ui?.thumb}))},{default:L(()=>[E(a).loading?(j(),F(kn,{key:0,name:E(a).loadingIcon||E(o).ui.icons.loading,"data-slot":`icon`,class:V(w.value.icon({class:E(a).ui?.icon,checked:!0,unchecked:!0}))},null,8,[`name`,`class`])):(j(),R(I,{key:1},[E(a).checkedIcon?(j(),F(kn,{key:0,name:E(a).checkedIcon,"data-slot":`icon`,class:V(w.value.icon({class:E(a).ui?.icon,checked:!0}))},null,8,[`name`,`class`])):z(``,!0),E(a).uncheckedIcon?(j(),F(kn,{key:1,name:E(a).uncheckedIcon,"data-slot":`icon`,class:V(w.value.icon({class:E(a).ui?.icon,unchecked:!0}))},null,8,[`name`,`class`])):z(``,!0)],64))]),_:1},8,[`class`])]),_:1},16,[`id`,`name`,`disabled`,`class`])],2),E(a).label||r.label||E(a).description||r.description?(j(),R(`div`,{key:0,"data-slot":`wrapper`,class:V(w.value.wrapper({class:E(a).ui?.wrapper}))},[E(a).label||r.label?(j(),F(E(Nc),{key:0,for:E(_),"data-slot":`label`,class:V(w.value.label({class:E(a).ui?.label}))},{default:L(()=>[B(e.$slots,`label`,{label:E(a).label},()=>[Xt(M(E(a).label),1)])]),_:3},8,[`for`,`class`])):z(``,!0),E(a).description||r.description?(j(),R(`p`,{key:1,"data-slot":`description`,class:V(w.value.description({class:E(a).ui?.description}))},[B(e.$slots,`description`,{description:E(a).description},()=>[Xt(M(E(a).description),1)])],2)):z(``,!0)],2)):z(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),gp={base:`text-transparent bg-clip-text bg-no-repeat bg-size-[calc(200%+var(--spread)*2+2px)_100%,auto] bg-[image:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--ui-text-highlighted),#0000_calc(50%+var(--spread))),linear-gradient(var(--ui-text-muted),var(--ui-text-muted))] motion-safe:animate-[shimmer_var(--duration)_linear_infinite] motion-safe:rtl:animate-[shimmer-rtl_var(--duration)_linear_infinite] will-change-[background-position] motion-reduce:bg-none motion-reduce:text-muted`},_p={__name:`UChatShimmer`,props:{as:{type:null,required:!1,default:`span`},text:{type:String,required:!0},duration:{type:Number,required:!1,default:2},spread:{type:Number,required:!1,default:2},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=Ln(`chatShimmer`,e),n=Dn(),r=H(()=>zn({extend:gp,...n.ui?.chatShimmer||{}})),i=H(()=>t.text.length*t.spread);return(e,n)=>(j(),F(E(yr),{as:E(t).as,style:Ot({"--spread":`${i.value}px`,"--duration":`${E(t).duration}s`}),"data-slot":`base`,class:V(r.value({class:[E(t).ui?.base,E(t).class]}))},{default:L(()=>[Xt(M(E(t).text),1)]),_:1},8,[`as`,`style`,`class`]))}};function vp(e){let t=[],n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i],o=a===`|`&&i>0&&e[i-1]===`\\`;a===`|`&&!o?(r&&n&&(t.push(n.length),n=``),r=!0):r&&(n+=a)}return r&&n&&t.push(n.length),t}function yp(e){let t=[],n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i],o=a===`|`&&i>0&&e[i-1]===`\\`;a===`|`&&!o?(r&&(t.push(n.trim()),n=``),r=!0):r&&(n+=a)}return n.trim()&&t.push(n.trim()),t}function bp(e){let t=e.split(`
17
- `),n=[],r=-1;for(let e=0;e<t.length;e++)t[e].trim().startsWith(`|`)?r===-1&&(r=e):r!==-1&&(n.push({start:r,end:e-1}),r=-1);if(r!==-1&&n.push({start:r,end:t.length-1}),n.length===0)return e;let{start:i,end:a}=n[n.length-1];t[i].trim().endsWith(`|`)||(t[i]+=` |`);let o=vp(t[i].trim()).length,s=()=>`| `+Array(o).fill(`---`).join(` | `)+` |`,c=a-i>=1?t[i+1].trim():``,l=c.startsWith(`|`)&&(c.includes(`-`)||c.includes(`:`)),u=t[a].trim();if(u.startsWith(`|`)&&(u.includes(`-`)||u.includes(`:`))){let e=yp(u).map(e=>{let t=e.startsWith(`:`),n=e.endsWith(`:`)&&e.length>1,r=e.replace(/^:/,``).replace(/:$/,``);if(t&&n)return r.length<1&&(r=`-`),`:`+r+`:`;if(t)return r.length<1&&(r=`-`),`:`+r;if(n)return r.length<1&&(r=`-`),r+`:`;for(;r.length<3;)r+=`-`;return r});for(;e.length<o;)e.push(`---`);t[a]=`| `+e.join(` | `)+` |`}else if(u.startsWith(`|`)&&!u.endsWith(`|`)){let e=t[i].trim();for(let n=i+(l?2:1);n<a;n++){let r=t[n].trim();if(r.startsWith(`|`)&&r.endsWith(`|`)&&!r.includes(`-`)){e=r;break}}let n=vp(e),r=yp(u),o=r[r.length-1]??``,s=/(?:\*\*?|__?|~~|`|\$)$/.test(o)||/(?:\*\*|__|~~|`)[^\s*_~`]+$/.test(o),c=`| `+r.map((e,t)=>{let r=n[t]||e.length+2;return e+` `.repeat(Math.max(0,r-e.length-2))}).join(` | `);t[a]=s?c:c+` |`}return l||t.splice(i+1,0,s()),t.join(`
18
- `)}function xp(e,t={}){if(!e)return e;let n=t.syntax!==!1,r=t.attributes??n,i=t.linkMode??`protocol`,a=t.incompleteLinkPlaceholder??`comark:incomplete-link`,o=t.incompleteImagePlaceholder??`comark:incomplete-image`,s=t.math===!0;t.dropTrailingOpeners===!0&&(e=Ep(e));let c=e.split(`
19
- `),l=c.length,u=!1,d=!1,f=-1,p=null,m=!1,h=!1,g=[],_=/^<(script|pre|style|textarea)(\s|>|$)/i;for(let e=0;e<l;e++){let r=c[e],i=r.trim();if(p){RegExp(`</${p}\\s*>`,`i`).test(r)&&(p=null);continue}let a=i.match(_);if(a){let e=a[1].toLowerCase();RegExp(`</${e}\\s*>`,`i`).test(r)||(p=e)}else if(Sp(r)){let e=r.trim();if(e.startsWith("```")&&e.endsWith("``")&&!e.endsWith("```")&&!e.slice(3).includes("```"))continue;m=!m}else if(!m){if(s&&i===`$$`)h=!h;else if(e===0&&t.frontmatter&&i===`---`)u=!0;else if(u)i===`---`?u=!1:i&&(d=!0);else if(i===`---`&&g.length>0){let e=g[g.length-1];e.hasYamlProps=!e.hasYamlProps}else{if(i.startsWith(`|`)?f=f===-1?e:f:f!==-1&&(f=-1),e===l-1&&n&&i[0]===`:`&&g.length===0){let t=0;for(;t<i.length&&i[t]===`:`;)t++;i.slice(t).trim()===``&&(c[e]=``)}if(n&&i[0]===`:`){let e=0;for(;e<i.length&&i[e]===`:`;)e++;if(e>=2){let t=0;for(;t<r.length&&(r[t]===` `||r[t]===` `);)t++;let n=r.slice(0,t),a=i[e]??``;if(a>=`a`&&a<=`z`||a>=`A`&&a<=`Z`||a===`$`){let t=e;for(;t<i.length;){let e=i[t];if(!(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`.`||e===`-`||e===`_`))break;t++}g.push({depth:e,name:i.slice(e,t),indent:n,hasYamlProps:!1})}else e===i.length&&g.length>0&&g[g.length-1].depth===e&&g.pop()}}}}}if(!m&&!u&&!h){let e=l-1;for(;e>0&&c[e]===``;)e--;let t=e>=0?c[e]:``,n=t.trim(),u=n.startsWith("```")&&n.endsWith("``")&&!n.endsWith("```");t!==``&&n!==`$$`&&(!Sp(t)||u)&&(c[e]=Dp(t,{attributesEnabled:r,linkMode:i,linkPh:a,imagePh:o,math:s}))}let v=c.join(`
20
- `);if(v=Np(v),f!==-1&&(v=bp(v)),s&&h&&(v+=v.endsWith(`
16
+ }`}),r={style:[{innerHTML:n,tagPriority:`critical`,id:`nuxt-ui-colors`}]};if(t.isHydrating&&!t.payload.serverRendered){let e=document.createElement(`style`);e.innerHTML=n.value,e.setAttribute(`data-nuxt-ui-colors`,``),document.head.appendChild(e);let t=yn().hooks?.hook(`dom:rendered`,()=>{Ys(),t?.()})}hn(r)})];function Zs(e){if(typeof window>`u`||typeof e!=`object`||!e)return!1;let t=e.ownerDocument?.defaultView??window;return e instanceof HTMLElement||e instanceof t.HTMLElement}var Qs=[`INPUT`,`TEXTAREA`];function $s(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Qs.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=ec(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function ec(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?ec(e,o,n,r):o:null}function tc(){let e=dt()?.vnode?.scopeId;return e?{[e]:``}:{}}function nc(e,t){let n=Er(!1,300);wr(()=>{n.value=!1});let r=U(null),i=kr();function a(){r.value=null,n.value=!1}function o(e,t){if(!t)return;let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=ic(a,rc(a,i.getBoundingClientRect()),1),s=ac(t.getBoundingClientRect()),c=sc([...o,...s]);r.value=c,n.value=!0}return Wt(n=>{if(e.value&&t.value){let r=e.value,i=t.value,a=e=>o(e,i),s=e=>o(e,r);r.addEventListener(`pointerleave`,a),i.addEventListener(`pointerleave`,s),n(()=>{r.removeEventListener(`pointerleave`,a),i.removeEventListener(`pointerleave`,s)})}}),Wt(n=>{if(r.value){let o=n=>{if(!r.value||!(n.target instanceof Element))return;let o=n.target,s={x:n.clientX,y:n.clientY},c=e.value?.contains(o)||t.value?.contains(o),l=!oc(s,r.value),u=!!o.closest(`[data-grace-area-trigger]`);c?a():(l||u)&&(a(),i.trigger())},s=e.value?.ownerDocument;s?.addEventListener(`pointermove`,o),n(()=>s?.removeEventListener(`pointermove`,o))}}),{isPointerInTransit:n,onPointerExit:i.on}}function rc(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function ic(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function ac(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function oc(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function sc(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),cc(t)}function cc(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t.at(-1),n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n.at(-1),t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var[lc,uc]=Pn(`CollapsibleRoot`),dc=O({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=pr(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=ft(r);return uc({contentId:``,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),G(),(t,n)=>(A(),P(T(br),{as:e.as,"as-child":r.asChild,"data-state":T(i)?`open`:`closed`,"data-disabled":T(a)?``:void 0},{default:I(()=>[z(t.$slots,`default`,{open:T(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),fc=O({inheritAttrs:!1,__name:`CollapsibleContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`contentFound`],setup(e,{emit:t}){let n=e,r=t,i=lc();i.contentId||=yr(void 0,`reka-collapsible-content`);let a=U(),{forwardRef:o,currentElement:s}=G(),c=U(0),l=U(0),u=V(()=>i.open.value),d=U(u.value),f=U();Nt(()=>[u.value,a.value?.present],async()=>{await bt();let e=s.value;if(!e)return;f.value=f.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();l.value=t.height,c.value=t.width,d.value||(e.style.transitionDuration=f.value.transitionDuration,e.style.animationName=f.value.animationName)},{immediate:!0});let p=V(()=>d.value&&i.open.value);return ut(()=>{requestAnimationFrame(()=>{d.value=!1})}),hr(s,`beforematch`,e=>{requestAnimationFrame(()=>{i.onOpenToggle(),r(`contentFound`)})}),(t,r)=>(A(),P(T(Fr),{ref_key:`presentRef`,ref:a,present:e.forceMount||T(i).open.value,"force-mount":!0},{default:I(({present:r})=>[M(T(br),D(t.$attrs,{id:T(i).contentId,ref:T(o),"as-child":n.asChild,as:e.as,hidden:r?void 0:T(i).unmountOnHide.value?``:`until-found`,"data-state":p.value?void 0:T(i).open.value?`open`:`closed`,"data-disabled":T(i).disabled?.value?``:void 0,style:{"--reka-collapsible-content-height":`${l.value}px`,"--reka-collapsible-content-width":`${c.value}px`}}),{default:I(()=>[!T(i).unmountOnHide.value||r?z(t.$slots,`default`,{},void 0,void 0,0):R(`v-if`,!0)]),_:2},1040,[`id`,`as-child`,`as`,`hidden`,`data-state`,`data-disabled`,`style`])]),_:3},8,[`present`]))}}),pc=O({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;G();let n=lc();return(r,i)=>(A(),P(T(br),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":T(n).contentId,"aria-expanded":T(n).open.value,"data-state":T(n).open.value?`open`:`closed`,"data-disabled":T(n).disabled?.value?``:void 0,disabled:T(n).disabled?.value,onClick:T(n).onOpenToggle},{default:I(()=>[z(r.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`]))}}),mc=O({__name:`DismissableLayerBranch`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=G(),i=null;return ut(()=>{i=r.value,i&&Yn.branches.add(i)}),Et(()=>{i&&=(Yn.branches.delete(i),null)}),(e,r)=>(A(),P(T(br),D({ref:T(n)},t),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),hc=`menu.itemSelect`,gc=[`Enter`,` `],_c=[`ArrowDown`,`PageUp`,`Home`],vc=[`ArrowUp`,`PageDown`,`End`],yc=[..._c,...vc],bc={ltr:[...gc,`ArrowRight`],rtl:[...gc,`ArrowLeft`]},xc={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]};function Sc(e){return e?`open`:`closed`}function Cc(e){return e===`indeterminate`}function wc(e){return Cc(e)?`indeterminate`:e?`checked`:`unchecked`}function Tc(e){let{onEntryFocus:t,onEntryFocusOnce:n,...r}=e;return r}function Ec(e){let t=Nr();for(let n of e)if(n===t||(n.focus(),Nr()!==t))return}function Dc(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Oc(e,t){return t?Dc({x:e.clientX,y:e.clientY},t):!1}function kc(e){return e.pointerType===`mouse`}var Ac=O({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,n=vr({}),r=V(()=>t.to??n.teleportTo?.value??`body`),i=lr();return(t,n)=>T(i)||e.forceMount?(A(),P(Kt,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[z(t.$slots,`default`)],8,[`to`,`disabled`,`defer`])):R(`v-if`,!0)}}),[jc,Mc]=Pn(`RovingFocusGroup`),Nc=O({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=ft(r),c=Vn(s),l=pr(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=U(!1),d=U(!1),f=U(0),{getItems:p,CollectionSlot:m}=Pr({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(zr,Rr);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``),t=[e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===l.value),...e].filter(Boolean);Lr(t,r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),Mc({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(t,n)=>(A(),P(T(m),null,{default:I(()=>[M(T(br),{tabindex:u.value||f.value===0?-1:0,"data-orientation":T(o),as:e.as,"as-child":e.asChild,dir:T(c),style:{outline:`none`},onMousedown:n[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:n[1]||=e=>u.value=!1},{default:I(()=>[z(t.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),Pc=O({__name:`Label`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`label`}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(br),D(t,{onMousedown:n[0]||=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Fc=O({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(Gn),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Ic=O({__name:`MenuArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(Wn),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}});function Lc(){let e=U(!1);return ut(()=>{hr(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),hr([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var Rc=Cr(Lc),[zc,Bc]=Pn([`MenuRoot`,`MenuSub`],`MenuContext`),[Vc,Hc]=Pn(`MenuRoot`),Uc=O({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=ft(n),o=Vn(a),s=pr(n,`open`,r),c=U(),l=Rc();return Bc({open:s,onOpenChange:e=>{s.value=e},content:c,onContentChange:e=>{c.value=e}}),Hc({onClose:()=>{s.value=!1},isUsingKeyboardRef:l,dir:o,modal:i}),(e,t)=>(A(),P(T(Zn),null,{default:I(()=>[z(e.$slots,`default`)]),_:3}))}}),[Wc,Gc]=Pn(`MenuContent`),Kc=O({__name:`MenuContentImpl`,props:lt({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...er}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=zc(),a=Vc(),{trapFocus:o,disableOutsidePointerEvents:s,loop:c}=ft(n);cr(),Hn(s.value);let l=U(``),u=U(0),d=U(0),f=U(null),p=U(`right`),m=U(0),h=U(null),g=U(),{forwardRef:_,currentElement:v}=G(),{handleTypeaheadSearch:y}=Ir(),b=U();function x(e){let t=$s(e,b.value||Nr(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(b.value=t,t.scrollIntoView({block:`nearest`}))}function S(){b.value&&b.value.click()}let C=U(),w=U();Nt(b,e=>{if(w.value&&(e===void 0||e!==w.value.trigger.value)){if(e===void 0)return;w.value.onOpenChange(!1),w.value=void 0}}),Nt(v,e=>{i.onContentChange(e)}),Et(()=>{window.clearTimeout(u.value)});function ee(e){return p.value===f.value?.side&&Oc(e,f.value?.area)}async function te(e){r(`openAutoFocus`,e),e.defaultPrevented||(e.preventDefault(),v.value?.focus({preventScroll:!0}))}function ne(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,s=$s(e,Nr(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(s)return s?.focus();if(e.code===`Space`)return;let l=g.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&y(e.key,l)),e.target!==v.value||!yc.includes(e.key))return;e.preventDefault();let u=[...l.map(e=>e.ref)];vc.includes(e.key)&&u.reverse(),Ec(u)}function re(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(u.value),l.value=``)}function ie(e){if(!kc(e))return;let t=e.target,n=m.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>m.value?`right`:`left`;p.value=t,m.value=e.clientX}}function ae(e){kc(e)&&C.value&&C.value.focus()}return Gc({onItemEnter:e=>!!ee(e),onItemLeave:e=>ee(e)?!0:([`INPUT`,`TEXTAREA`].includes(Nr()?.tagName||``)||v.value?.focus(),h.value=null,!1),onTriggerLeave:e=>!!ee(e),searchRef:l,highlightedElement:b,onKeydownNavigation:x,onKeydownEnter:S,filterElement:C,onFilterElementChange:e=>{C.value=e},activeSubmenuContext:w,pointerGraceTimerRef:d,onPointerGraceIntentChange:e=>{f.value=e}}),(t,n)=>(A(),P(T(Kn),{"as-child":``,trapped:T(o),onMountAutoFocus:te,onUnmountAutoFocus:n[7]||=e=>r(`closeAutoFocus`,e)},{default:I(()=>[M(T(Qn),{"as-child":``,"disable-outside-pointer-events":T(s),onEscapeKeyDown:n[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:n[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:n[4]||=e=>r(`focusOutside`,e),onInteractOutside:n[5]||=e=>r(`interactOutside`,e),onDismiss:n[6]||=e=>r(`dismiss`)},{default:I(()=>[M(T(Nc),{ref_key:`rovingFocusGroupRef`,ref:g,"current-tab-stop-id":h.value,"onUpdate:currentTabStopId":n[0]||=e=>h.value=e,"as-child":``,orientation:`vertical`,dir:T(a).dir.value,loop:T(c),onEntryFocus:n[1]||=e=>{r(`entryFocus`,e),T(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:I(()=>[M(T(rr),{ref:T(_),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":T(Sc)(T(i).open.value),dir:T(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:ne,onBlur:re,onPointermove:ie,onPointerenter:ae},{default:I(()=>[z(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),qc=O({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Wc(),{forwardRef:r,currentElement:i}=G(),{CollectionItem:a}=Pr(),o=U(!1),s=V(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function c(e){if(!e.defaultPrevented&&kc(e)){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(Nr()?.tagName||``)||t.focus({preventScroll:!0})}}}async function l(e){await bt(),e.defaultPrevented||kc(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(t,i)=>(A(),P(T(a),{value:{textValue:e.textValue}},{default:I(()=>[M(T(br),D({ref:T(r),role:`menuitem`,tabindex:`-1`},t.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":s.value?``:void 0,onPointermove:c,onPointerleave:l,onFocus:i[0]||=async t=>{let r=t.currentTarget;await bt(),t.defaultPrevented||e.disabled||(o.value=!0,T(n).highlightedElement.value=r)},onBlur:i[1]||=async e=>{await bt(),e.defaultPrevented||(o.value=!1)}}),{default:I(()=>[z(t.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),Jc=O({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=G(),o=Vc(),s=Wc(),c=U(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(hc,{bubbles:!0,cancelable:!0});r(`select`,e),await bt(),e.defaultPrevented?c.value=!1:o.onClose()}}return(t,r)=>(A(),P(qc,D(n,{ref:T(i),onClick:l,onPointerdown:r[0]||=()=>{c.value=!0},onPointerup:r[1]||=async e=>{await bt(),e.defaultPrevented||c.value||e.currentTarget?.click()},onKeydown:r[2]||=async t=>{let n=T(s).searchRef.value!==``;e.disabled||n&&t.key===` `||T(gc).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:I(()=>[z(t.$slots,`default`)]),_:3},16))}}),[Yc,Xc]=Pn([`MenuCheckboxItem`,`MenuRadioItem`],`MenuItemIndicatorContext`),Zc=O({__name:`MenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Yc({modelValue:U(!1)});return(n,r)=>(A(),P(T(Fr),{present:e.forceMount||T(Cc)(T(t).modelValue.value)||T(t).modelValue.value===!0},{default:I(()=>[M(T(br),{as:e.as,"as-child":e.asChild,"data-state":T(wc)(T(t).modelValue.value)},{default:I(()=>[z(n.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`])]),_:3},8,[`present`]))}}),Qc=O({__name:`MenuCheckboxItem`,props:{modelValue:{type:[Boolean,String],required:!1,default:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=Or(n,[`modelValue`]),a=Br(i),o=pr(n,`modelValue`,r);return Xc({modelValue:o}),(e,t)=>(A(),P(Jc,D({role:`menuitemcheckbox`},T(a),{"aria-checked":T(Cc)(T(o))?`mixed`:T(o),"data-state":T(wc)(T(o)),onSelect:t[0]||=async e=>{r(`select`,e),T(Cc)(T(o))?o.value=!0:o.value=!T(o)}}),{default:I(()=>[z(e.$slots,`default`,{checked:T(o),modelValue:T(o)})]),_:3},16,[`aria-checked`,`data-state`]))}}),$c=O({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Un(n,r),a=zc(),{forwardRef:o,currentElement:s}=G();return Jn(s),(e,t)=>(A(),P(Kc,D(T(i),{ref:T(o),"trap-focus":T(a).open.value,"disable-outside-pointer-events":T(a).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>T(a).onOpenChange(!1),onFocusOutside:t[1]||=nt(e=>r(`focusOutside`,e),[`prevent`])}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),el=O({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Un(e,t),r=zc();return(e,t)=>(A(),P(Kc,D(T(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>T(r).onOpenChange(!1)}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),tl=O({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Un(e,t),r=zc(),i=Vc();return(t,a)=>(A(),P(T(Fr),{present:e.forceMount||T(r).open.value},{default:I(()=>[T(i).modal.value?(A(),P($c,E(D({key:0},{...t.$attrs,...T(n)})),{default:I(()=>[z(t.$slots,`default`)]),_:3},16)):(A(),P(el,E(D({key:1},{...t.$attrs,...T(n)})),{default:I(()=>[z(t.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),[nl,rl]=Pn(`MenuGroup`),il=O({__name:`MenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=yr(void 0,`reka-menu-group`);return rl({id:n}),(e,r)=>(A(),P(T(br),D({role:`group`},t,{"aria-labelledby":T(n)}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),al=O({__name:`MenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=nl({id:``});return(e,r)=>(A(),P(T(br),D(t,{id:T(n).id||void 0}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`]))}}),ol=O({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(Ac),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),sl=O({__name:`MenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(br),D(t,{role:`separator`,"aria-orientation":`horizontal`}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),[cl,ll]=Pn(`MenuSub`),ul=O({__name:`MenuSub`,props:{open:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=pr(n,`open`,t,{defaultValue:!1,passive:n.open===void 0}),i=zc(),a=U(),o=U();return Wt(e=>{i?.open.value===!1&&(r.value=!1),e(()=>r.value=!1)}),Bc({open:r,onOpenChange:e=>{r.value=e},content:o,onContentChange:e=>{o.value=e}}),ll({triggerId:``,contentId:``,trigger:a,onTriggerChange:e=>{a.value=e}}),(e,t)=>(A(),P(T(Zn),null,{default:I(()=>[z(e.$slots,`default`)]),_:3}))}}),dl=O({__name:`MenuSubContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1,default:!0},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Un(e,t),r=zc(),i=Vc(),a=cl(),o=Wc(),{forwardRef:s,currentElement:c}=G();return a.contentId||=yr(void 0,`reka-menu-sub-content`),(t,l)=>(A(),P(T(Fr),{present:e.forceMount||T(r).open.value},{default:I(()=>[M(Kc,D(T(n),{id:T(a).contentId,ref:T(s),"aria-labelledby":T(a).triggerId,align:`start`,side:T(i).dir.value===`rtl`?`left`:`right`,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:l[0]||=nt(e=>{T(i).isUsingKeyboardRef.value&&T(c)?.focus()},[`prevent`]),onCloseAutoFocus:l[1]||=nt(()=>{},[`prevent`]),onFocusOutside:l[2]||=e=>{if(e.defaultPrevented)return;let t=T(o).filterElement.value?.contains(e.target);e.target!==T(a).trigger.value&&!t&&T(r).onOpenChange(!1)},onEscapeKeyDown:l[3]||=e=>{T(i).onClose(),e.preventDefault()},onKeydown:l[4]||=e=>{let t=e.currentTarget?.contains(e.target),n=T(xc)[T(i).dir.value].includes(e.key);t&&n&&(T(r).onOpenChange(!1),T(o).filterElement.value?(T(o).filterElement.value.focus(),T(o).highlightedElement.value=T(a).trigger.value,T(a).trigger.value?.scrollIntoView({block:`nearest`})):T(a).trigger.value?.focus(),e.preventDefault())}}),{default:I(()=>[z(t.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`side`])]),_:3},8,[`present`]))}}),fl=O({__name:`MenuSubTrigger`,props:{graceDuration:{type:Number,required:!1,default:300},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Or(t,`graceDuration`),r=zc(),i=Vc(),a=cl(),o=Wc();Nt(r.open,e=>{e?o.activeSubmenuContext.value={onOpenChange:r.onOpenChange,trigger:a.trigger}:o.activeSubmenuContext.value?.trigger.value===a.trigger.value&&(o.activeSubmenuContext.value=void 0)});let s=U(null);a.triggerId||=yr(void 0,`reka-menu-sub-trigger`);function c(){s.value&&window.clearTimeout(s.value),s.value=null}Et(()=>{c()});function l(e){kc(e)&&(o.onItemEnter(e)||t.disabled||r.open.value||s.value||(o.onPointerGraceIntentChange(null),s.value=window.setTimeout(()=>{r.onOpenChange(!0),c()},100)))}async function u(e){if(!kc(e))return;c();let n=r.content.value?.getBoundingClientRect();if(n?.width){let i=r.content.value?.dataset.side,a=i===`right`,s=a?-5:5,c=n[a?`left`:`right`],l=n[a?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:c,y:n.top},{x:l,y:n.top},{x:l,y:n.bottom},{x:c,y:n.bottom}],side:i}),window.clearTimeout(o.pointerGraceTimerRef.value),o.pointerGraceTimerRef.value=window.setTimeout(()=>o.onPointerGraceIntentChange(null),t.graceDuration)}else{if(o.onTriggerLeave(e))return;o.onPointerGraceIntentChange(null)}}async function d(e){let n=o.searchRef.value!==``;t.disabled||n&&e.key===` `||bc[i.dir.value].includes(e.key)&&(r.onOpenChange(!0),await bt(),r.content.value?.focus(),e.preventDefault())}return(e,i)=>(A(),P(Fc,{"as-child":``},{default:I(()=>[M(qc,D(T(n),{id:T(a).triggerId,ref:e=>{e&&T(a)?.onTriggerChange(e?.$el)},"aria-haspopup":`menu`,"aria-expanded":T(r).open.value,"aria-controls":T(a).contentId,"data-state":T(Sc)(T(r).open.value),onClick:i[0]||=async e=>{t.disabled||e.defaultPrevented||(e.currentTarget?.focus(),T(r).open.value||T(r).onOpenChange(!0))},onPointermove:l,onPointerleave:u,onKeydown:d}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`aria-expanded`,`aria-controls`,`data-state`])]),_:3}))}}),[pl,ml]=Pn(`PopoverRoot`),hl=O({__name:`PopoverRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i}=ft(n),a=pr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return ml({contentId:``,triggerId:``,modal:i,open:a,onOpenChange:e=>{a.value=e},onOpenToggle:()=>{a.value=!a.value},triggerElement:U(),hasCustomAnchor:U(!1)}),(e,t)=>(A(),P(T(Zn),null,{default:I(()=>[z(e.$slots,`default`,{open:T(a),close:()=>a.value=!1})]),_:3}))}}),gl=O({__name:`PopoverAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;G();let n=pl();return ht(()=>{n.hasCustomAnchor.value=!0}),Et(()=>{n.hasCustomAnchor.value=!1}),(e,n)=>(A(),P(T(Gn),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),_l=O({__name:`PopoverArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(Wn),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),vl=O({__name:`PopoverContentImpl`,props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Br(Or(n,`trapFocus`,`disableOutsidePointerEvents`)),{forwardRef:a}=G(),o=pl();return cr(),(t,n)=>(A(),P(T(Kn),{"as-child":``,loop:``,trapped:e.trapFocus,onMountAutoFocus:n[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:n[6]||=e=>r(`closeAutoFocus`,e)},{default:I(()=>[M(T(Qn),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onPointerDownOutside:n[0]||=e=>r(`pointerDownOutside`,e),onInteractOutside:n[1]||=e=>r(`interactOutside`,e),onEscapeKeyDown:n[2]||=e=>r(`escapeKeyDown`,e),onFocusOutside:n[3]||=e=>r(`focusOutside`,e),onDismiss:n[4]||=e=>T(o).onOpenChange(!1)},{default:I(()=>[M(T(rr),D(T(i),{id:T(o).contentId,ref:T(a),"data-state":T(o).open.value?`open`:`closed`,"aria-labelledby":T(o).triggerId,style:{"--reka-popover-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-popover-content-available-width":`var(--reka-popper-available-width)`,"--reka-popover-content-available-height":`var(--reka-popper-available-height)`,"--reka-popover-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-popover-trigger-height":`var(--reka-popper-anchor-height)`},role:`dialog`}),{default:I(()=>[z(t.$slots,`default`)]),_:3},16,[`id`,`data-state`,`aria-labelledby`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),yl=O({__name:`PopoverContentModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=pl(),a=U(!1);Hn(!0);let o=Un(n,r),{forwardRef:s,currentElement:c}=G();return Jn(c),(e,t)=>(A(),P(vl,D(T(o),{ref:T(s),"trap-focus":T(i).open.value,"disable-outside-pointer-events":``,onCloseAutoFocus:t[0]||=nt(e=>{r(`closeAutoFocus`,e),a.value||T(i).triggerElement.value?.focus()},[`prevent`]),onPointerDownOutside:t[1]||=e=>{r(`pointerDownOutside`,e);let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,i=t.button===2||n;a.value=i},onFocusOutside:t[2]||=nt(()=>{},[`prevent`])}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),bl=O({__name:`PopoverContentNonModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=pl(),a=U(!1),o=U(!1),s=Un(n,r);return(e,t)=>(A(),P(vl,D(T(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{r(`closeAutoFocus`,e),e.defaultPrevented||(a.value||T(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=async e=>{r(`interactOutside`,e),e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;T(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),xl=O({__name:`PopoverContent`,props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=pl(),a=Un(n,r),{forwardRef:o}=G();return i.contentId||=yr(void 0,`reka-popover-content`),(t,n)=>(A(),P(T(Fr),{present:e.forceMount||T(i).open.value},{default:I(()=>[T(i).modal.value?(A(),P(yl,D({key:0},T(a),{ref:T(o)}),{default:I(()=>[z(t.$slots,`default`)]),_:3},16)):(A(),P(bl,D({key:1},T(a),{ref:T(o)}),{default:I(()=>[z(t.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Sl=O({__name:`PopoverPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(Ac),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Cl=O({__name:`PopoverTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=pl(),{forwardRef:r,currentElement:i}=G();return n.triggerId||=yr(void 0,`reka-popover-trigger`),n.contentId||=yr(void 0,`reka-popover-content`),ut(()=>{n.triggerElement.value=i.value}),(i,a)=>(A(),P(Ot(T(n).hasCustomAnchor.value?T(br):T(Gn)),{"as-child":``},{default:I(()=>[M(T(br),{id:T(n).triggerId,ref:T(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":T(n).open.value,"aria-controls":T(n).open.value?T(n).contentId:void 0,"data-state":T(n).open.value?`open`:`closed`,as:e.as,"as-child":t.asChild,onClick:T(n).onOpenToggle},{default:I(()=>[z(i.$slots,`default`)]),_:3},8,[`id`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`as`,`as-child`,`onClick`])]),_:3}))}}),wl=O({__name:`DropdownMenuArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(Ic),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Tl=O({__name:`DropdownMenuCheckboxItem`,props:{modelValue:{type:[Boolean,String],required:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=Ar(t);return G(),(e,t)=>(A(),P(T(Qc),E(k({...n,...T(r)})),{default:I(t=>[z(e.$slots,`default`,E(k(t)))]),_:3},16))}}),[El,Dl]=Pn(`DropdownMenuRoot`),Ol=O({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;G();let i=pr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=U(),{modal:o,dir:s}=ft(n),c=Vn(s);return Dl({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:o,dir:c}),(e,t)=>(A(),P(T(Uc),{open:T(i),"onUpdate:open":t[0]||=e=>It(i)?i.value=e:null,dir:T(c),modal:T(o)},{default:I(()=>[z(e.$slots,`default`,{open:T(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),kl=O({inheritAttrs:!1,__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Un(e,t);G();let r=El(),i=U(!1);function a(e){e.defaultPrevented||(i.value||setTimeout(()=>{r.triggerElement.value?.focus()},0),i.value=!1,e.preventDefault())}return r.contentId||=yr(void 0,`reka-dropdown-menu-content`),(e,t)=>(A(),P(T(tl),D({id:T(r).contentId,"aria-labelledby":T(r)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`}},{...T(n),...T(Tc)(e.$attrs)},{onCloseAutoFocus:a,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,a=t.button===2||n;(!T(r).modal.value||a)&&(i.value=!0),T(r).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),Al=O({__name:`DropdownMenuFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=pr(n,`modelValue`,t,{defaultValue:``,passive:n.modelValue===void 0}),i=Vc(),a=Wc(),o=cl(null);Nt(r,e=>{a.searchRef.value=e??``},{immediate:!0});let{primitiveElement:s,currentElement:c}=Mr(),l=V(()=>n.disabled||!1),u=U();Pt(()=>u.value=a.highlightedElement.value?.id),ut(()=>{a.onFilterElementChange(c.value),setTimeout(()=>{n.autoFocus&&(!o||i.isUsingKeyboardRef.value)&&c.value?.focus()},1)}),Et(()=>{a.onFilterElementChange(void 0),a.searchRef.value=``});let{isComposing:d,shouldDeferInput:f,handleCompositionStart:p,handleCompositionUpdate:m,handleCompositionEnd:h}=sr(e=>{let t=e.target;t&&(r.value=t.value,a.searchRef.value=t.value)});function g(e){if(l.value||f.value)return;let t=e.target;r.value=t.value,a.searchRef.value=t.value}function _(e){l.value||(d.value?e.stopPropagation():[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)?(e.preventDefault(),a.onKeydownNavigation(e)):e.key===`Enter`?(e.preventDefault(),a.onKeydownEnter(e)):e.key===`Escape`&&r.value&&(e.stopPropagation(),r.value=``,a.searchRef.value=``))}return(t,n)=>(A(),P(T(br),{ref_key:`primitiveElement`,ref:s,as:e.as,"as-child":e.asChild,value:T(r),disabled:l.value?``:void 0,"data-disabled":l.value?``:void 0,"aria-disabled":l.value?!0:void 0,"aria-activedescendant":u.value,type:`text`,role:`searchbox`,onInput:g,onKeydown:_,onCompositionstart:T(p),onCompositionupdate:T(m),onCompositionend:T(h)},{default:I(()=>[z(t.$slots,`default`,{modelValue:T(r)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`]))}}),jl=O({__name:`DropdownMenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(il),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Ml=O({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=Ar(t);return G(),(e,t)=>(A(),P(T(Jc),E(k({...n,...T(r)})),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Nl=O({__name:`DropdownMenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(Zc),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Pl=O({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(al),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Fl=O({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(ol),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Il=O({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(sl),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Ll=O({__name:`DropdownMenuSub`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=pr(n,`open`,t,{passive:n.open===void 0,defaultValue:n.defaultOpen??!1});return G(),(e,t)=>(A(),P(T(ul),{open:T(r),"onUpdate:open":t[0]||=e=>It(r)?r.value=e:null},{default:I(()=>[z(e.$slots,`default`,{open:T(r)})]),_:3},8,[`open`]))}}),Rl=O({__name:`DropdownMenuSubContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Un(e,t);return G(),(e,t)=>(A(),P(T(dl),D(T(n),{style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),zl=O({__name:`DropdownMenuSubTrigger`,props:{graceDuration:{type:Number,required:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(fl),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Bl=O({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=El(),{forwardRef:r,currentElement:i}=G();return ut(()=>{n.triggerElement=i}),n.triggerId||=yr(void 0,`reka-dropdown-menu-trigger`),(i,a)=>(A(),P(T(Fc),{"as-child":``},{default:I(()=>[M(T(br),{id:T(n).triggerId,ref:T(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":T(n).open.value,"aria-controls":T(n).open.value?T(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":T(n).open.value?`open`:`closed`,onClick:a[0]||=async t=>{t.defaultPrevented||!e.disabled&&t.button===0&&t.ctrlKey===!1&&(T(n)?.onOpenToggle(),await bt(),T(n).open.value&&t.preventDefault())},onKeydown:a[1]||=ot(t=>{e.disabled||t.defaultPrevented||([`Enter`,` `].includes(t.key)&&T(n).onOpenToggle(),t.key===`ArrowDown`&&T(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:I(()=>[z(i.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),Vl=O({__name:`HoverCardArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(Wn),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),[Hl,Ul]=Pn(`HoverCardRoot`),Wl=O({__name:`HoverCardRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},openDelay:{type:Number,required:!1,default:700},closeDelay:{type:Number,required:!1,default:300},enableTouch:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{openDelay:i,closeDelay:a,enableTouch:o}=ft(n);G();let s=pr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),c=U(0),l=U(0),u=U(!1),d=U(!1),f=U(!1),p=U();function m(){clearTimeout(l.value),c.value=window.setTimeout(()=>s.value=!0,i.value)}function h(){clearTimeout(c.value),!u.value&&!d.value&&(l.value=window.setTimeout(()=>s.value=!1,a.value))}function g(){clearTimeout(c.value),s.value=!1}return Ul({open:s,onOpenChange(e){s.value=e},onOpen:m,onClose:h,onDismiss:g,hasSelectionRef:u,isPointerDownOnContentRef:d,isPointerInTransitRef:f,triggerElement:p,enableTouch:o}),(e,t)=>(A(),P(T(Zn),null,{default:I(()=>[z(e.$slots,`default`,{open:T(s)})]),_:3}))}});function Gl(e){return t=>t.pointerType===`touch`?void 0:e()}function Kl(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var ql=O({__name:`HoverCardContentImpl`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,i=Br(n),{forwardRef:a,currentElement:o}=G(),s=Hl(),{isPointerInTransit:c,onPointerExit:l}=nc(s.triggerElement,o);Tr(s.isPointerInTransitRef,c,{direction:`rtl`}),l(()=>{s.onClose()});let u=U(!1),d;Wt(e=>{if(u.value){let t=document.body;d=t.style.userSelect||t.style.webkitUserSelect,t.style.userSelect=`none`,t.style.webkitUserSelect=`none`,e(()=>{t.style.userSelect=d,t.style.webkitUserSelect=d})}});function f(){u.value=!1,s.isPointerDownOnContentRef.value=!1,bt(()=>{document.getSelection()?.toString()!==``&&(s.hasSelectionRef.value=!0)})}return ut(()=>{o.value&&(document.addEventListener(`pointerup`,f),Kl(o.value).forEach(e=>e.setAttribute(`tabindex`,`-1`))),hr(window,`scroll`,e=>{e.target?.contains(s.triggerElement.value)&&s.onDismiss()},{capture:!0})}),Et(()=>{document.removeEventListener(`pointerup`,f),s.hasSelectionRef.value=!1,s.isPointerDownOnContentRef.value=!1}),(e,t)=>(A(),P(T(Qn),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[2]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[3]||=nt(e=>r(`focusOutside`,e),[`prevent`]),onDismiss:T(s).onDismiss},{default:I(()=>[M(T(rr),D({...T(i),...e.$attrs},{ref:T(a),"data-state":T(s).open.value?`open`:`closed`,style:{userSelect:u.value?`text`:void 0,WebkitUserSelect:u.value?`text`:void 0,"--reka-hover-card-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-hover-card-content-available-width":`var(--reka-popper-available-width)`,"--reka-hover-card-content-available-height":`var(--reka-popper-available-height)`,"--reka-hover-card-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-hover-card-trigger-height":`var(--reka-popper-anchor-height)`},onPointerdown:t[0]||=e=>{e.currentTarget.contains(e.target)&&(u.value=!0),T(s).hasSelectionRef.value=!1,T(s).isPointerDownOnContentRef.value=!0}}),{default:I(()=>[z(e.$slots,`default`)]),_:3},16,[`data-state`,`style`])]),_:3},8,[`onDismiss`]))}}),Jl=O({__name:`HoverCardContent`,props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=Un(e,t),{forwardRef:r}=G(),i=Hl();return(t,a)=>(A(),P(T(Fr),{present:e.forceMount||T(i).open.value},{default:I(()=>[M(ql,D(T(n),{ref:T(r),onPointerenter:a[0]||=e=>T(Gl)(T(i).onOpen)(e)}),{default:I(()=>[z(t.$slots,`default`)]),_:3},16)]),_:3},8,[`present`]))}}),Yl=O({__name:`HoverCardPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(Ac),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Xl=O({__name:`HoverCardTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`a`}},setup(e){let{forwardRef:t,currentElement:n}=G(),r=Hl();r.triggerElement=n;function i(){setTimeout(()=>{!r.isPointerInTransitRef.value&&!r.open.value&&r.onClose()},0)}function a(e){r.enableTouch.value&&e.pointerType===`touch`&&(r.open.value?r.onDismiss():r.onOpenChange(!0))}return(n,o)=>(A(),P(T(Gn),{"as-child":``,reference:e.reference},{default:I(()=>[M(T(br),{ref:T(t),"as-child":e.asChild,as:e.as,"data-state":T(r).open.value?`open`:`closed`,"data-grace-area-trigger":``,onPointerenter:o[0]||=e=>T(Gl)(T(r).onOpen)(e),onPointerleave:o[1]||=e=>T(Gl)(i)(e),onPointerup:a,onFocus:o[2]||=e=>T(r).onOpen(),onBlur:o[3]||=e=>T(r).onClose()},{default:I(()=>[z(n.$slots,`default`)]),_:3},8,[`as-child`,`as`,`data-state`])]),_:3},8,[`reference`]))}}),[Zl,Ql]=Pn(`SwitchRoot`),$l=O({inheritAttrs:!1,__name:`SwitchRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:`on`},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{disabled:i}=ft(n),a=pr(n,`modelValue`,r,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),o=V(()=>a.value===n.trueValue);function s(){i.value||(a.value=o.value?n.falseValue:n.trueValue)}let{forwardRef:c,currentElement:l}=G(),u=or(l),d=tc(),f=V(()=>n.id&&l.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return Ql({checked:o,toggleCheck:s,disabled:i}),(t,n)=>(A(),L(F,null,[M(T(br),D({id:e.id,ref:T(c),role:`switch`,type:e.as===`button`?`button`:void 0,value:e.value,"aria-label":t.$attrs[`aria-label`]||f.value,"aria-checked":o.value,"aria-required":e.required,"data-state":o.value?`checked`:`unchecked`,"data-disabled":T(i)?``:void 0,"as-child":e.asChild,as:e.as,disabled:T(i)},{...T(d),...t.$attrs},{onClick:s,onKeydown:ot(nt(s,[`prevent`]),[`enter`])}),{default:I(()=>[z(t.$slots,`default`,{modelValue:T(a),checked:o.value})]),_:3},16,[`id`,`type`,`value`,`aria-label`,`aria-checked`,`aria-required`,`data-state`,`data-disabled`,`as-child`,`as`,`disabled`,`onKeydown`]),T(u)&&e.name?(A(),P(T(ar),D({key:0,type:`checkbox`,name:e.name,disabled:T(i),required:e.required,value:e.value,checked:o.value},T(d)),null,16,[`name`,`disabled`,`required`,`value`,`checked`])):R(`v-if`,!0)],64))}}),eu=O({__name:`SwitchThumb`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Zl();return G(),(n,r)=>(A(),P(T(br),{"data-state":T(t).checked.value?`checked`:`unchecked`,"data-disabled":T(t).disabled.value?``:void 0,"as-child":e.asChild,as:e.as},{default:I(()=>[z(n.$slots,`default`)]),_:3},8,[`data-state`,`data-disabled`,`as-child`,`as`]))}}),tu=Symbol(`ToastManagerSubscribe`),nu=0;function ru(){return nu=(nu+1)%(2**53-1),`reka-toast-${nu}`}function iu(e,t){let n=typeof e==`function`?e(t):e;return typeof n==`string`?{description:n}:n}function au(e,t,n,r){let i=n({...typeof t.loading==`string`?{description:t.loading}:t.loading,status:`loading`});return e.then(e=>(r(i,{...iu(t.success,e),status:`success`}),e),e=>{throw r(i,{...iu(t.error,e),status:`error`}),e})}function ou(){let e=Xt([]),t=Qt(new Map);function n(t){return e.value.find(e=>e.id===t)}function r(t,n){e.value=e.value.map(e=>e.id===t?n:e)}function i(r){let i=n(r);i&&!i.open&&(e.value=e.value.filter(e=>e.id!==r),t.delete(r),i.onRemove?.())}function a(i){let a=i.id??ru(),o=n(a);if(o?.open){let{id:e,...n}=i;return r(a,{...o,...n,updateKey:o.updateKey+1}),t.set(a,(t.get(a)??0)+1),a}let s=o?e.value.filter(e=>e.id!==a):e.value;return e.value=[{...i,id:a,open:!0,updateKey:0},...s],a}function o(t){let n=e.value.filter(e=>e.open&&(t===void 0||e.id===t));n.length&&(e.value=e.value.map(e=>n.includes(e)?{...e,open:!1}:e),n.forEach(e=>e.onClose?.()))}function s(e,t){let i=n(e);if(!i?.open)return;let a=typeof t==`function`?t(i):t,o=n(e);o?.open&&r(e,{...o,...a,id:e,open:!0,updateKey:o.updateKey+1})}return{toasts:e,add:a,close:o,update:s,promise:(e,t)=>au(e,t,a,s),remove:i,getRestartKey:e=>t.get(e)??0}}var[su,cu]=Pn(`ToastProvider`),lu=O({inheritAttrs:!1,__name:`ToastProvider`,props:{label:{type:String,required:!1,default:`Notification`},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeDirection:{type:String,required:!1,default:`right`},swipeThreshold:{type:Number,required:!1,default:50},limit:{type:Number,required:!1},toastManager:{type:Object,required:!1}},setup(e){let t=e,{label:n,duration:r,disableSwipe:i,swipeDirection:a,swipeThreshold:o}=ft(t);Pr({isProvider:!0});let s=U(),c=U(0),l=U(!1),u=U(!1),d=ou();ut(()=>{Nt(()=>t.toastManager,(e,t,n)=>{e&&n(e[tu](e=>{e.action===`add`?d.add(e.options):e.action===`close`?d.close(e.id):d.update(e.id,e.updates)}))},{immediate:!0})});let f=wt([]),p=0,m=V(()=>{let e=[...f].sort((e,t)=>t.seq-e.seq),n=new Map,r=0,i=0;return e.forEach((e,a)=>{let o=!e.open;n.set(e,{index:o?a:r,offsetY:i,limited:!o&&t.limit!==void 0&&r>=t.limit}),o||(i+=e.height,r++)}),{ordered:e,states:n}}),h=U(!1),g=U(!1);if(t.label&&typeof t.label==`string`&&!t.label.trim())throw Error("Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.");return cu({label:n,duration:r,disableSwipe:i,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:s,onViewportChange(e){s.value=e},onToastAdd(){c.value++},onToastRemove(){c.value--},isFocusedToastEscapeKeyDownRef:l,isClosePausedRef:u,toastStore:d,hovering:h,focused:g,expanded:V(()=>h.value||g.value),frontmostHeight:V(()=>m.value.ordered.find(e=>e.open)?.height||void 0),closingCount:V(()=>f.filter(e=>!e.open).length),registerToast(e){return e.seq=++p,f.push(e),()=>{let t=f.indexOf(e);t!==-1&&f.splice(t,1)}},reopenToast(e){e.seq=++p},getToastStack(e){return m.value.states.get(e)??{index:0,offsetY:0,limited:!1}}}),(e,t)=>z(e.$slots,`default`)}}),uu=`toast.swipeStart`,du=`toast.swipeMove`,fu=`toast.swipeCancel`,pu=`toast.swipeEnd`,mu=`toast.viewportPause`,hu=`toast.viewportResume`;function gu(e,t,n){let r=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function _u(e,t,n=0){let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n}function vu(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Zs(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.rekaToastAnnounceExclude===``;if(!n){if(r){let n=e.dataset.rekaToastAnnounceAlt;n&&t.push(n)}else t.push(...vu(e))}}}),t}var yu=O({__name:`ToastPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(Ac),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),bu=O({__name:`FocusProxy`,emits:[`focusFromOutsideViewport`],setup(e,{emit:t}){let n=t,r=su();return(e,t)=>(A(),P(T(Zr),{tabindex:`0`,style:{position:`fixed`},onFocus:t[0]||=e=>{let t=e.relatedTarget;T(r).viewport.value?.contains(t)||n(`focusFromOutsideViewport`)}},{default:I(()=>[z(e.$slots,`default`)]),_:3}))}}),xu=O({inheritAttrs:!1,__name:`ToastViewport`,props:{hotkey:{type:Array,required:!1,default:()=>[`F8`]},label:{type:[String,Function],required:!1,default:`Notifications ({hotkey})`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ol`}},setup(e){let{hotkey:t,label:n}=ft(e),{forwardRef:r,currentElement:i}=G(),{CollectionSlot:a,getItems:o}=Pr(),s=su(),c=V(()=>s.toastCount.value>0),l=U(),u=U(),d=/Key/g,f=/Digit/g,p=V(()=>t.value.join(`+`).replace(d,``).replace(f,``));mr(t.value,()=>{i.value.focus()}),ut(()=>{s.onViewportChange(i.value)});let m=U(!1);Nt([m,s.closingCount],([e,t])=>{e&&t===0&&(s.hovering.value=!1,m.value=!1)}),Nt(c,e=>{e||(s.hovering.value=!1,s.focused.value=!1,m.value=!1)}),Wt(e=>{let t=i.value;if(c.value&&t){let n=()=>{if(!s.isClosePausedRef.value){let e=new CustomEvent(mu);t.dispatchEvent(e),s.isClosePausedRef.value=!0}},r=()=>{if(s.isClosePausedRef.value){let e=new CustomEvent(hu);t.dispatchEvent(e),s.isClosePausedRef.value=!1}},i=e=>{t.contains(e.relatedTarget)||(s.focused.value=!1,r())},a=()=>{m.value=!0,t.contains(Nr())||r()},o=()=>{m.value=!1,s.hovering.value=!0},c=()=>{s.focused.value=!0},d=e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n){let n=Nr(),r=e.shiftKey;if(e.target===t&&r){l.value?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);qn(i.slice(a+1))?e.preventDefault():r?l.value?.focus():u.value?.focus()}};t.addEventListener(`focusin`,n),t.addEventListener(`focusin`,c),t.addEventListener(`focusout`,i),t.addEventListener(`pointermove`,n),t.addEventListener(`pointermove`,o),t.addEventListener(`pointerleave`,a),t.addEventListener(`keydown`,d),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),e(()=>{t.removeEventListener(`focusin`,n),t.removeEventListener(`focusin`,c),t.removeEventListener(`focusout`,i),t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointermove`,o),t.removeEventListener(`pointerleave`,a),t.removeEventListener(`keydown`,d),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)})}});function h({tabbingDirection:e}){let t=o().map(e=>e.ref).map(t=>{let n=[t,...tr(t)];return e===`forwards`?n:n.reverse()});return(e===`forwards`?t.reverse():t).flat()}return(t,i)=>(A(),P(T(mc),{role:`region`,"aria-label":typeof T(n)==`string`?T(n).replace(`{hotkey}`,p.value):T(n)(p.value),tabindex:`-1`,style:kt({pointerEvents:c.value?void 0:`none`})},{default:I(()=>[c.value?(A(),P(bu,{key:0,ref:e=>{e&&(l.value=T(ur)(e))},onFocusFromOutsideViewport:i[0]||=()=>{let e=h({tabbingDirection:`forwards`});T(qn)(e)}},null,512)):R(`v-if`,!0),M(T(a),null,{default:I(()=>[M(T(br),D({ref:T(r),tabindex:`-1`,as:e.as,"as-child":e.asChild,"data-expanded":T(s).expanded.value?``:void 0,style:{"--reka-toast-frontmost-height":T(s).frontmostHeight.value?`${T(s).frontmostHeight.value}px`:void 0}},t.$attrs),{default:I(()=>[z(t.$slots,`default`)]),_:3},16,[`as`,`as-child`,`data-expanded`,`style`])]),_:3}),c.value?(A(),P(bu,{key:1,ref:e=>{e&&(u.value=T(ur)(e))},onFocusFromOutsideViewport:i[1]||=()=>{let e=h({tabbingDirection:`backwards`});T(qn)(e)}},null,512)):R(`v-if`,!0)]),_:3},8,[`aria-label`,`style`]))}}),Su=O({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return G(),(e,n)=>(A(),P(T(Wn),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),[Cu,wu]=Pn(`TooltipProvider`),Tu=O({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){let{delayDuration:t,skipDelayDuration:n,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:a,disabled:o,content:s}=ft(e);G();let c=U(!0),l=U(!1),{start:u,stop:d}=xr(()=>{c.value=!0},n,{immediate:!1});return wu({isOpenDelayed:c,delayDuration:t,onOpen(){d(),c.value=!1},onClose(){u()},isPointerInTransitRef:l,disableHoverableContent:r,disableClosingTrigger:i,disabled:o,ignoreNonKeyboardFocus:a,content:s}),(e,t)=>z(e.$slots,`default`)}}),Eu=`tooltip.open`,[Du,Ou]=Pn(`TooltipRoot`),ku=O({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;G();let i=Cu(),a=V(()=>n.disableHoverableContent??i.disableHoverableContent.value),o=V(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=V(()=>n.disabled??i.disabled.value),c=V(()=>n.delayDuration??i.delayDuration.value),l=V(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=pr(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Nt(u,e=>{i.onClose&&(e?(i.onOpen(),document.dispatchEvent(new CustomEvent(Eu))):i.onClose())});let d=U(!1),f=U(),p=V(()=>u.value?d.value?`delayed-open`:`instant-open`:`closed`),{start:m,stop:h}=xr(()=>{d.value=!0,u.value=!0},c,{immediate:!1});function g(){h(),d.value=!1,u.value=!0}function _(){h(),u.value=!1}function v(){m()}return Ou({contentId:``,open:u,stateAttribute:p,trigger:f,onTriggerChange(e){f.value=e},onTriggerEnter(){i.isOpenDelayed.value?v():g()},onTriggerLeave(){a.value?_():h()},onOpen:g,onClose:_,disableHoverableContent:a,disableClosingTrigger:o,disabled:s,ignoreNonKeyboardFocus:l}),(e,t)=>(A(),P(T(Zn),null,{default:I(()=>[z(e.$slots,`default`,{open:T(u)})]),_:3}))}}),Au=O({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=Du(),a=Cu(),{forwardRef:o,currentElement:s}=G(),c=V(()=>n.ariaLabel||s.value?.textContent),l=V(()=>{let{ariaLabel:e,...t}=n;return jn(t,a.content.value??{},{side:`top`,sideOffset:0,align:`center`,avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:`partial`,hideWhenDetached:!1})});return ut(()=>{hr(window,`scroll`,e=>{e.target?.contains(i.trigger.value)&&i.onClose()},{capture:!0}),hr(document,Eu,i.onClose)}),(e,t)=>(A(),P(T(Qn),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[0]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[1]||=e=>{T(i).disableClosingTrigger.value&&T(i).trigger.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)},onFocusOutside:t[2]||=nt(()=>{},[`prevent`]),onDismiss:t[3]||=e=>T(i).onClose()},{default:I(()=>[M(T(rr),D({ref:T(o),"data-state":T(i).stateAttribute.value},{...e.$attrs,...l.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:I(()=>[z(e.$slots,`default`),M(T(Zr),{id:T(i).contentId,role:`tooltip`},{default:I(()=>[Zt(j(c.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),ju=O({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let t=Br(e),{forwardRef:n,currentElement:r}=G(),{trigger:i,onClose:a}=Du(),o=Cu(),{isPointerInTransit:s,onPointerExit:c}=nc(i,r);return o.isPointerInTransitRef=s,c(()=>{a()}),hr(r,`pointermove`,e=>{let t=r.value;t&&e.pointerType!==`touch`&&t.ownerDocument.elementsFromPoint?.(e.clientX,e.clientY).some(e=>{if(t.contains(e))return!1;let n=e.closest(`[data-grace-area-trigger]`);return!!n&&n!==i.value})&&a()}),(e,r)=>(A(),P(Au,D({ref:T(n)},T(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Mu=O({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=Du(),a=Un(n,r),{forwardRef:o}=G();return(t,n)=>(A(),P(T(Fr),{present:e.forceMount||T(i).open.value},{default:I(()=>[(A(),P(Ot(T(i).disableHoverableContent.value?Au:ju),D({ref:T(o)},T(a)),{default:I(()=>[z(t.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Nu=O({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(A(),P(T(Ac),E(k(t)),{default:I(()=>[z(e.$slots,`default`)]),_:3},16))}}),Pu=O({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Du(),r=Cu();n.contentId||=yr(void 0,`reka-tooltip-content`);let{forwardRef:i,currentElement:a}=G(),o=U(!1),s=U(!1),c=V(()=>n.disabled.value?{}:{click:h,focus:p,pointermove:d,pointerleave:f,pointerdown:u,blur:m});Nt(a,e=>{n.onTriggerChange(e)},{immediate:!0});function l(){setTimeout(()=>{o.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),o.value=!0,document.addEventListener(`pointerup`,l,{once:!0})}function d(e){e.pointerType!==`touch`&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function f(){n.onTriggerLeave(),s.value=!1}function p(e){o.value||(!n.ignoreNonKeyboardFocus.value||e.target.matches?.(`:focus-visible`))&&n.onOpen()}function m(){n.onClose()}function h(){n.disableClosingTrigger.value||n.onClose()}return(r,o)=>(A(),P(T(Gn),{"as-child":``,reference:e.reference??T(a)},{default:I(()=>[M(T(br),D({ref:T(i),"aria-describedby":T(n).open.value?T(n).contentId:void 0,"data-state":T(n).stateAttribute.value,as:e.as,"as-child":t.asChild,"data-grace-area-trigger":``},Ct(c.value)),{default:I(()=>[z(r.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}});function Fu(e){return(t,n)=>Iu(t,n,T(e))}function Iu(e,t,n){return Fn(n,`messages.${e}`,e).replace(/\{(\w+)\}/g,(e,n)=>`${t?.[n]??`{${n}}`}`)}function Lu(e){return{lang:V(()=>T(e).name),code:V(()=>T(e).code),dir:V(()=>T(e).dir),locale:It(e)?e:U(e),t:Fu(e)}}function Ru(e){return jn(e,{dir:`ltr`})}var zu=Ru({name:`English`,code:`en`,messages:{alert:{close:`Close`},authForm:{hidePassword:`Hide password`,showPassword:`Show password`,submit:`Continue`},banner:{close:`Close`},breadcrumb:{label:`breadcrumb`},calendar:{label:`Event date`,monthPicker:`Month picker`,nextMonth:`Next month`,nextYear:`Next year`,prevMonth:`Previous month`,prevYear:`Previous year`,yearPicker:`Year picker`},carousel:{dots:`Choose slide to display`,goto:`Go to slide {slide}`,next:`Next`,prev:`Prev`,roledescription:`carousel`,slide:`slide`},chatMessages:{autoScroll:`Scroll to bottom`},chatPrompt:{placeholder:`Type your message here…`},chatPromptSubmit:{label:`Send prompt`,reload:`Retry`,stop:`Stop generating`},colorMode:{dark:`Dark`,light:`Light`,switchToDark:`Switch to dark mode`,switchToLight:`Switch to light mode`,system:`System`},commandPalette:{back:`Back`,close:`Close`,noData:`No data`,noMatch:`No matching data`,placeholder:`Type a command or search…`,results:`Results`},contentSearch:{links:`Links`,search:`Results`,theme:`Theme`},contentSearchButton:{label:`Search…`},contentToc:{title:`On this page`},dropdownMenu:{noMatch:`No matching data`,search:`Search…`},dashboardSearch:{theme:`Theme`},dashboardSearchButton:{label:`Search…`},dashboardSidebarCollapse:{collapse:`Collapse sidebar`,expand:`Expand sidebar`},dashboardSidebarToggle:{close:`Close sidebar`,open:`Open sidebar`},drawer:{close:`Close`},error:{clear:`Back to home`},fileUpload:{removeFile:`Remove {filename}`},header:{close:`Close menu`,open:`Open menu`},inputDate:{day:`day`,dayPeriod:`AM/PM`,era:`era`,hour:`hour`,minute:`minute`,month:`month`,second:`second`,timeZoneName:`timezone`,year:`year`},inputMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`,trigger:`Show options`},inputNumber:{decrement:`Decrement`,increment:`Increment`,roledescription:`number field`},inputRating:{rate:`Rate {value} out of {length}`},inputTime:{dayPeriod:`AM/PM`,hour:`hour`,minute:`minute`,second:`second`,timeZoneName:`timezone`},listbox:{noData:`No data`,noMatch:`No matching data`,search:`Search…`},modal:{close:`Close`},pagination:{first:`First page`,last:`Last page`,next:`Next page`,page:`Page {page}`,prev:`Previous page`},pinInput:{input:`pin input {index} of {length}`},pricingTable:{caption:`Pricing plan comparison`},prose:{codeCollapse:{closeText:`Collapse`,name:`code`,openText:`Expand`},collapsible:{closeText:`Hide`,name:`properties`,openText:`Show`},pre:{copy:`Copy code to clipboard`},prompt:{copy:`Copy prompt`,openIn:`Open in {name}`}},chatReasoning:{thinking:`Thinking…`,thought:`Thought`,thoughtFor:`Thought for {duration}`},sidebar:{close:`Close`,toggle:`Toggle`},selectMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`,search:`Search…`},skeleton:{label:`loading`},slideover:{close:`Close`},slider:{max:`Maximum`,min:`Minimum`,thumb:`Thumb`,value:`Value {index} of {total}`},stepper:{label:`progress`},table:{noData:`No data`},toast:{close:`Close`},toaster:{label:`Notification`,viewport:`Notifications ({hotkey})`}}}),Bu=Symbol.for(`nuxt-ui.locale-context`),Vu=Cr(e=>{let t=e||mt(xt(Bu,zu));return Lu(V(()=>t.value||zu))}),Hu={meta:``,ctrl:``,alt:``,win:`⊞`,command:`⌘`,shift:`⇧`,control:`⌃`,option:`⌥`,enter:`↵`,delete:`⌦`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,capslock:`⇪`,arrowup:`↑`,arrowright:`→`,arrowdown:`↓`,arrowleft:`←`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`},Uu={meta:{macos:Hu.command,other:`Ctrl`},ctrl:{macos:Hu.control,other:`Ctrl`},alt:{macos:Hu.option,other:`Alt`}},Wu=Cr(()=>{let e=V(()=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/));return e.value&&document.documentElement.classList.add(`ui-macos`),{macOS:e}});function Gu(){let{macOS:e}=Wu(),t=dt()?lr():Xt(!0);function n(n){if(n)return[`meta`,`alt`,`ctrl`].includes(n)?t.value?Uu[n][e.value?`macos`:`other`]:` `:Hu[n]||n}return{macOS:e,getKbdKey:n}}function Ku(){let e=On().ui?.prefix;return t=>!e||!t?t:t.split(/\s+/).filter(Boolean).map(t=>`${e}:${t}`).join(` `)}var qu={base:`inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase`,variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{sm:`h-4 min-w-[16px] text-[10px]`,md:`h-5 min-w-[20px] text-[11px]`,lg:`h-6 min-w-[24px] text-[12px]`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`}],defaultVariants:{variant:`outline`,color:`neutral`,size:`md`}},Ju={__name:`UKbd`,props:{as:{type:null,required:!1,default:`kbd`},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=Rn(`kbd`,e),{getKbdKey:n}=Gu(),r=On(),i=Ku(),a=V(()=>t.value&&Object.hasOwn(Uu,t.value)?Uu[t.value]:void 0),o=V(()=>Bn({extend:qu,...r.ui?.kbd||{}}));return(e,r)=>(A(),P(T(br),{as:T(t).as,class:B(o.value({class:[T(t).ui?.base,T(t).class],color:T(t).color,variant:T(t).variant,size:T(t).size}))},{default:I(()=>[z(e.$slots,`default`,{},()=>[a.value?(A(),L(F,{key:0},[N(`span`,{class:B(T(i)(`hidden in-[.ui-macos]:inline`))},j(a.value.macos),3),N(`span`,{class:B(T(i)(`in-[.ui-macos]:hidden`))},j(a.value.other),3)],64)):(A(),L(F,{key:1},[Zt(j(T(n)(T(t).value)),1)],64))])]),_:3},8,[`as`,`class`]))}},Yu={__name:`UDropdownMenuContent`,props:{items:{type:null,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0},sub:{type:Boolean,required:!1},labelKey:{type:null,required:!0},descriptionKey:{type:null,required:!0},checkedIcon:{type:null,required:!1},loadingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0},size:{type:null,required:!1},filter:{type:[Boolean,Object],required:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1},searchTerm:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!0},uiOverride:{type:Object,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1}},emits:[`update:searchTerm`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n={Portal:Fl,Content:kl,Item:Ml,Group:jl,Separator:Il,CheckboxItem:Tl,ItemIndicator:Nl,Label:Pl,Sub:Ll,SubContent:Rl,SubTrigger:zl,Filter:Al},r=e,i=t,a=Ht(),{t:o,dir:s}=Vu(),c=On(),{filterGroups:l}=Xn(),u=U(``),d=V({get:()=>r.searchTerm??u.value,set:e=>{u.value=e,i(`update:searchTerm`,e)}}),f=mt(()=>jn(r.filter,{placeholder:o(`dropdownMenu.search`),variant:`none`})),p=nr(mt(()=>r.portal)),m=Un(Or(r,`sub`,`items`,`portal`,`labelKey`,`descriptionKey`,`checkedIcon`,`loadingIcon`,`externalIcon`,`size`,`filter`,`filterFields`,`ignoreFilter`,`searchTerm`,`class`,`ui`,`uiOverride`),i),h=()=>Nn(a,[`default`]),[g,_]=gr(),v=V(()=>s.value===`rtl`?c.ui.icons.chevronLeft:c.ui.icons.chevronRight),y=V(()=>r.items?.length?zn(r.items)?r.items:[r.items]:[]),b=e=>!!e.type&&[`label`,`separator`].includes(e.type),x=V(()=>{if(!r.filter||r.ignoreFilter||!d.value)return y.value;let e=Array.isArray(r.filterFields)&&r.filterFields.length?r.filterFields:[r.labelKey];return l(y.value,d.value,{fields:e,isStructural:b})}),S=V(()=>x.value.some(e=>e.some(e=>!b(e))));return(t,i)=>(A(),L(F,null,[M(T(g),null,{default:I(({item:i,active:o,index:s})=>[z(t.$slots,i.slot||`item`,{item:i,index:s,ui:e.ui},()=>[z(t.$slots,i.slot?`${i.slot}-leading`:`item-leading`,{item:i,active:o,index:s,ui:e.ui},()=>[i.loading?(A(),P(An,{key:0,name:e.loadingIcon||T(c).ui.icons.loading,"data-slot":`itemLeadingIcon`,class:B(e.ui.itemLeadingIcon({class:[e.uiOverride?.itemLeadingIcon,i.ui?.itemLeadingIcon],color:i?.color,loading:!0}))},null,8,[`name`,`class`])):i.icon?(A(),P(An,{key:1,name:i.icon,"data-slot":`itemLeadingIcon`,class:B(e.ui.itemLeadingIcon({class:[e.uiOverride?.itemLeadingIcon,i.ui?.itemLeadingIcon],color:i?.color,active:o}))},null,8,[`name`,`class`])):i.avatar?(A(),P(Hr,D({key:2,size:i.ui?.itemLeadingAvatarSize||e.uiOverride?.itemLeadingAvatarSize||e.ui.itemLeadingAvatarSize()},i.avatar,{"data-slot":`itemLeadingAvatar`,class:e.ui.itemLeadingAvatar({class:[e.uiOverride?.itemLeadingAvatar,i.ui?.itemLeadingAvatar],active:o})}),null,16,[`size`,`class`])):R(``,!0)]),T(Fn)(i,r.labelKey)||a[i.slot?`${i.slot}-label`:`item-label`]||T(Fn)(i,r.descriptionKey)||a[i.slot?`${i.slot}-description`:`item-description`]?(A(),L(`span`,{key:0,"data-slot":`itemWrapper`,class:B(e.ui.itemWrapper({class:[e.uiOverride?.itemWrapper,i.ui?.itemWrapper]}))},[N(`span`,{"data-slot":`itemLabel`,class:B(e.ui.itemLabel({class:[e.uiOverride?.itemLabel,i.ui?.itemLabel],active:o}))},[z(t.$slots,i.slot?`${i.slot}-label`:`item-label`,{item:i,active:o,index:s},()=>[Zt(j(T(Fn)(i,r.labelKey)),1)]),i.target===`_blank`&&e.externalIcon!==!1?(A(),P(An,{key:0,name:typeof e.externalIcon==`string`?e.externalIcon:T(c).ui.icons.external,"data-slot":`itemLabelExternalIcon`,class:B(e.ui.itemLabelExternalIcon({class:[e.uiOverride?.itemLabelExternalIcon,i.ui?.itemLabelExternalIcon],color:i?.color,active:o}))},null,8,[`name`,`class`])):R(``,!0)],2),T(Fn)(i,r.descriptionKey)||a[i.slot?`${i.slot}-description`:`item-description`]?(A(),L(`span`,{key:0,"data-slot":`itemDescription`,class:B(e.ui.itemDescription({class:[e.uiOverride?.itemDescription,i.ui?.itemDescription]}))},[z(t.$slots,i.slot?`${i.slot}-description`:`item-description`,{item:i,active:o,index:s},()=>[Zt(j(T(Fn)(i,r.descriptionKey)),1)])],2)):R(``,!0)],2)):R(``,!0),N(`span`,{"data-slot":`itemTrailing`,class:B(e.ui.itemTrailing({class:[e.uiOverride?.itemTrailing,i.ui?.itemTrailing]}))},[z(t.$slots,i.slot?`${i.slot}-trailing`:`item-trailing`,{item:i,active:o,index:s,ui:e.ui},()=>[i.children?.length?(A(),P(An,{key:0,name:v.value,"data-slot":`itemTrailingIcon`,class:B(e.ui.itemTrailingIcon({class:[e.uiOverride?.itemTrailingIcon,i.ui?.itemTrailingIcon],color:i?.color,active:o}))},null,8,[`name`,`class`])):i.kbds?.length?(A(),L(`span`,{key:1,"data-slot":`itemTrailingKbds`,class:B(e.ui.itemTrailingKbds({class:[e.uiOverride?.itemTrailingKbds,i.ui?.itemTrailingKbds]}))},[(A(!0),L(F,null,yt(i.kbds,(t,n)=>(A(),P(Ju,D({key:n,size:i.ui?.itemTrailingKbdsSize||e.uiOverride?.itemTrailingKbdsSize||e.ui.itemTrailingKbdsSize()},{ref_for:!0},typeof t==`string`?{value:t}:t),null,16,[`size`]))),128))],2)):R(``,!0)]),M(n.ItemIndicator,{"as-child":``},{default:I(()=>[M(An,{name:e.checkedIcon||T(c).ui.icons.check,"data-slot":`itemTrailingIcon`,class:B(e.ui.itemTrailingIcon({class:[e.uiOverride?.itemTrailingIcon,i.ui?.itemTrailingIcon],color:i?.color}))},null,8,[`name`,`class`])]),_:2},1024)],2)])]),_:3}),M(n.Portal,E(k(T(p))),{default:I(()=>[M(T(Vr),null,{default:I(()=>[(A(),P(Ot(e.sub?n.SubContent:n.Content),D({"data-slot":`content`,class:e.ui.content({class:[e.uiOverride?.content,r.class]})},T(m)),{default:I(()=>[e.filter?(A(),P(n.Filter,{key:0,modelValue:d.value,"onUpdate:modelValue":i[1]||=e=>d.value=e,"as-child":``},{default:I(()=>[M(ir,D({autofocus:``,autocomplete:`off`,size:e.size},f.value,{"data-slot":`input`,class:e.ui.input({class:e.uiOverride?.input}),onChange:i[0]||=nt(()=>{},[`stop`])}),null,16,[`size`,`class`])]),_:1},8,[`modelValue`])):R(``,!0),z(t.$slots,`content-top`,{sub:e.sub??!1}),!d.value||S.value?(A(),L(`div`,{key:1,role:`presentation`,"data-slot":`viewport`,class:B(e.ui.viewport({class:e.uiOverride?.viewport}))},[(A(!0),L(F,null,yt(x.value,(i,a)=>(A(),P(n.Group,{key:`group-${a}`,"data-slot":`group`,class:B(e.ui.group({class:e.uiOverride?.group}))},{default:I(()=>[(A(!0),L(F,null,yt(i,(i,o)=>(A(),L(F,{key:`group-${a}-${o}`},[i.type===`label`?(A(),P(n.Label,{key:0,"data-slot":`label`,class:B(e.ui.label({class:[e.uiOverride?.label,i.ui?.label,i.class]}))},{default:I(()=>[M(T(_),{item:i,index:o},null,8,[`item`,`index`])]),_:2},1032,[`class`])):i.type===`separator`?(A(),P(n.Separator,{key:1,"data-slot":`separator`,class:B(e.ui.separator({class:[e.uiOverride?.separator,i.ui?.separator,i.class]}))},null,8,[`class`])):i?.children?.length?(A(),P(n.Sub,{key:2,open:i.open,"default-open":i.defaultOpen},{default:I(()=>[M(n.SubTrigger,{as:`button`,type:`button`,disabled:i.disabled,"text-value":T(Fn)(i,r.labelKey),"data-slot":`item`,class:B(e.ui.item({class:[e.uiOverride?.item,i.ui?.item,i.class],color:i?.color}))},{default:I(()=>[M(T(_),{item:i,index:o},null,8,[`item`,`index`])]),_:2},1032,[`disabled`,`text-value`,`class`]),M(Yu,D({sub:``,class:i.ui?.content,ui:e.ui,"ui-override":e.uiOverride,portal:e.portal,items:i.children,align:`start`,"align-offset":-4,"side-offset":3,"label-key":e.labelKey,"description-key":e.descriptionKey,"checked-icon":e.checkedIcon,"loading-icon":e.loadingIcon,"external-icon":e.externalIcon,size:e.size,filter:i.filter,"filter-fields":i.filterFields||e.filterFields,"ignore-filter":i.ignoreFilter??e.ignoreFilter},{ref_for:!0},i.content),At({_:2},[yt(h(),(e,n)=>({name:n,fn:I(e=>[z(t.$slots,n,D({ref_for:!0},e))])}))]),1040,[`class`,`ui`,`ui-override`,`portal`,`items`,`label-key`,`description-key`,`checked-icon`,`loading-icon`,`external-icon`,`size`,`filter`,`filter-fields`,`ignore-filter`])]),_:2},1032,[`open`,`default-open`])):i.type===`checkbox`?(A(),P(n.CheckboxItem,{key:3,"model-value":i.checked,disabled:i.disabled,"text-value":T(Fn)(i,r.labelKey),"data-slot":`item`,class:B(e.ui.item({class:[e.uiOverride?.item,i.ui?.item,i.class],color:i?.color})),"onUpdate:modelValue":i.onUpdateChecked,onSelect:i.onSelect},{default:I(()=>[M(T(_),{item:i,index:o},null,8,[`item`,`index`])]),_:2},1032,[`model-value`,`disabled`,`text-value`,`class`,`onUpdate:modelValue`,`onSelect`])):(A(),P(Jr,D({key:4,ref_for:!0},T(Wr)(i),{custom:``}),{default:I(({active:t,...a})=>[M(n.Item,{"as-child":``,disabled:i.disabled,"text-value":T(Fn)(i,r.labelKey),onSelect:i.onSelect},{default:I(()=>[M(Gr,D({ref_for:!0},a,{"data-slot":`item`,class:e.ui.item({class:[e.uiOverride?.item,i.ui?.item,i.class],color:i?.color,active:t})}),{default:I(()=>[M(T(_),{item:i,active:t,index:o},null,8,[`item`,`active`,`index`])]),_:2},1040,[`class`])]),_:2},1032,[`disabled`,`text-value`,`onSelect`])]),_:2},1040))],64))),128))]),_:2},1032,[`class`]))),128))],2)):R(``,!0),d.value&&!S.value?(A(),L(`div`,{key:2,"data-slot":`empty`,class:B(e.ui.empty({class:e.uiOverride?.empty}))},[z(t.$slots,`empty`,{searchTerm:d.value},()=>[Zt(j(T(o)(`dropdownMenu.noMatch`,{searchTerm:d.value})),1)])],2)):R(``,!0),z(t.$slots,`default`),z(t.$slots,`content-bottom`,{sub:e.sub??!1})]),_:3},16,[`class`]))]),_:3})]),_:3},16)],64))}},Xu={slots:{content:`min-w-32 max-h-(--reka-dropdown-menu-content-available-height) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col`,input:`border-b border-default`,empty:`text-center text-muted`,viewport:`relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1`,arrow:`fill-bg stroke-default`,group:`p-1 isolate`,label:`w-full flex items-center font-semibold text-highlighted`,separator:`-mx-1 my-1 h-px bg-border`,item:`group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75`,itemLeadingIcon:`shrink-0`,itemLeadingAvatar:`shrink-0`,itemLeadingAvatarSize:``,itemTrailing:`ms-auto inline-flex gap-1.5 items-center`,itemTrailingIcon:`shrink-0`,itemTrailingKbds:`hidden lg:inline-flex items-center shrink-0`,itemTrailingKbdsSize:``,itemWrapper:`flex-1 flex flex-col text-start min-w-0`,itemLabel:`truncate`,itemDescription:`truncate text-muted`,itemLabelExternalIcon:`inline-block size-3 align-top text-dimmed`},variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},active:{true:{item:`text-highlighted before:bg-elevated`,itemLeadingIcon:`text-default`},false:{item:[`text-default data-highlighted:text-highlighted data-[state=open]:text-highlighted data-highlighted:before:bg-elevated/50 data-[state=open]:before:bg-elevated/50`,`transition-colors before:transition-colors`],itemLeadingIcon:[`text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default`,`transition-colors`]}},loading:{true:{itemLeadingIcon:`animate-spin`}},size:{xs:{label:`p-1 text-xs gap-1`,item:`p-1 text-xs gap-1`,empty:`p-2 text-xs`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemTrailingIcon:`size-4`,itemTrailingKbds:`gap-0.5`,itemTrailingKbdsSize:`sm`},sm:{label:`p-1.5 text-xs gap-1.5`,item:`p-1.5 text-xs gap-1.5`,empty:`p-2.5 text-xs`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemTrailingIcon:`size-4`,itemTrailingKbds:`gap-0.5`,itemTrailingKbdsSize:`sm`},md:{label:`p-1.5 text-sm gap-1.5`,item:`p-1.5 text-sm gap-1.5`,empty:`p-2.5 text-sm`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemTrailingIcon:`size-5`,itemTrailingKbds:`gap-0.5`,itemTrailingKbdsSize:`md`},lg:{label:`p-2 text-sm gap-2`,item:`p-2 text-sm gap-2`,empty:`p-3 text-sm`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemTrailingIcon:`size-5`,itemTrailingKbds:`gap-1`,itemTrailingKbdsSize:`md`},xl:{label:`p-2 text-base gap-2`,item:`p-2 text-base gap-2`,empty:`p-3 text-base`,itemLeadingIcon:`size-6`,itemLeadingAvatarSize:`xs`,itemTrailingIcon:`size-6`,itemTrailingKbds:`gap-1`,itemTrailingKbdsSize:`lg`}}},compoundVariants:[{color:`primary`,active:!1,class:{item:`text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10`,itemLeadingIcon:`text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary`}},{color:`secondary`,active:!1,class:{item:`text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10`,itemLeadingIcon:`text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary`}},{color:`success`,active:!1,class:{item:`text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10`,itemLeadingIcon:`text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success`}},{color:`info`,active:!1,class:{item:`text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10`,itemLeadingIcon:`text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info`}},{color:`warning`,active:!1,class:{item:`text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10`,itemLeadingIcon:`text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning`}},{color:`error`,active:!1,class:{item:`text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10`,itemLeadingIcon:`text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error`}},{color:`primary`,active:!0,class:{item:`text-primary before:bg-primary/10`,itemLeadingIcon:`text-primary`}},{color:`secondary`,active:!0,class:{item:`text-secondary before:bg-secondary/10`,itemLeadingIcon:`text-secondary`}},{color:`success`,active:!0,class:{item:`text-success before:bg-success/10`,itemLeadingIcon:`text-success`}},{color:`info`,active:!0,class:{item:`text-info before:bg-info/10`,itemLeadingIcon:`text-info`}},{color:`warning`,active:!0,class:{item:`text-warning before:bg-warning/10`,itemLeadingIcon:`text-warning`}},{color:`error`,active:!0,class:{item:`text-error before:bg-error/10`,itemLeadingIcon:`text-error`}}],defaultVariants:{size:`md`}},Zu={__name:`UDropdownMenu`,props:Rt({size:{type:null,required:!1},items:{type:null,required:!1},checkedIcon:{type:null,required:!1},loadingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},filter:{type:[Boolean,Object],required:!1,default:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0}},{searchTerm:{type:String,default:``},searchTermModifiers:{}}),emits:Rt([`update:open`],[`update:searchTerm`]),setup(e,{emit:t}){let n=e,r=t,i=Ht(),a=qt(e,`searchTerm`,{type:String,default:``}),o=Rn(`dropdownMenu`,n),s=On(),c=jr(Dr(o,`defaultOpen`,`open`,`modal`),r),l=mt(()=>jn(o.content,{side:`bottom`,sideOffset:8,collisionPadding:8})),u=mt(()=>jn(o.arrow,{rounded:!0})),d=()=>Nn(i,[`default`]),f=V(()=>Bn({extend:Xu,...s.ui?.dropdownMenu||{}})({size:o.size}));return(e,t)=>(A(),P(T(Ol),E(k(T(c))),{default:I(({open:n})=>[i.default?(A(),P(T(Bl),{key:0,"as-child":``,class:B(T(o).class),disabled:T(o).disabled},{default:I(()=>[z(e.$slots,`default`,{open:n})]),_:2},1032,[`class`,`disabled`])):R(``,!0),M(Yu,D({"search-term":a.value,"onUpdate:searchTerm":t[0]||=e=>a.value=e,class:f.value.content({class:[!i.default&&T(o).class,T(o).ui?.content]}),ui:f.value,"ui-override":T(o).ui},l.value,{items:T(o).items,portal:T(o).portal,"label-key":T(o).labelKey,"description-key":T(o).descriptionKey,"checked-icon":T(o).checkedIcon,"loading-icon":T(o).loadingIcon,"external-icon":T(o).externalIcon,size:T(o).size,filter:T(o).filter,"filter-fields":T(o).filterFields,"ignore-filter":T(o).ignoreFilter}),At({default:I(()=>[T(o).arrow?(A(),P(T(wl),D({key:0},u.value,{"data-slot":`arrow`,class:f.value.arrow({class:T(o).ui?.arrow})}),null,16,[`class`])):R(``,!0)]),_:2},[yt(d(),(t,n)=>({name:n,fn:I(t=>[z(e.$slots,n,E(k(t)))])}))]),1040,[`search-term`,`class`,`ui`,`ui-override`,`items`,`portal`,`label-key`,`description-key`,`checked-icon`,`loading-icon`,`external-icon`,`size`,`filter`,`filter-fields`,`ignore-filter`])]),_:3},16))}};function Qu(e,t){if(e===null)return`L`;let n,r=0,i=e,a=typeof e;if(a!==`object`)return a===`number`?e-e===0?`n`+e:`L`:a===`string`?`s`+e:a===`bigint`?`n`+e:a===`boolean`?e?`T`:`F`:void 0;let o=Array.isArray(e);if(!o){if(e instanceof Date)return`d`+ +e;if(e instanceof RegExp)return`r`+e.source+e.flags}if(a=t.indexOf(e),~a)return`~`+(a+1);if(typeof e.toJSON==`function`&&!ArrayBuffer.isView(e)){if(e=e.toJSON(),typeof e!=`object`||!e)return Qu(e,t);if(a=t.indexOf(e),~a)return`~`+(a+1);o=Array.isArray(e)}if(t.push(i),o)for(n=`a`;r<e.length;n+=(a=Qu(e[r++],t))===void 0?`L`:a);else if(e instanceof Set){n=`e`;for(let r of e)n+=(a=Qu(r,t))===void 0?`L`:a}else if(e instanceof Map)for(i=[...e.keys()],i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=Qu(e.get(i[r]),t))!==void 0&&(n+=i[r]+a);else if(e[Symbol.toStringTag]===void 0||ArrayBuffer.isView(e))for(i=Object.keys(e),i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=Qu(e[i[r]],t))!==void 0&&(n+=i[r]+a);else throw Error(`Unsupported value`);return t.pop(),n}function $u(e){return Qu(e,[])??`U`}function ed(e){return Dn($u(e))}var td=n({docsBase:m,reporters:h});function nd(e,t={}){let n,r=!1,i=[],a,o,s=(t,n)=>{let i=rd(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,s(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let c=t.leading&&!r;r||(r=!0,gt(()=>{r=!1;let a=o??e;o=void 0;let c=t.leading?n:s(this,a);for(let e of i)e(c);i=[]})),c?(n=s(this,e),a(n)):i.push(a)})}}async function rd(e,t,n){return await e.apply(t,n)}O({name:`ServerPlaceholder`,render(){return L(`div`)}});var id=Symbol.for(`nuxt:client-only`);O({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=Xt(!1);ut(()=>{r.value=!0});let i=dt();return i&&(i._nuxtClientOnly=!0),Dt(id,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[Bt(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return pt(i);let a=e.fallback||e.placeholder||``,o=Je(e.fallbackTag||e.placeholderTag,`span`);return L(o,n,a)}}});function ad(e={}){{function t(...t){let n=typeof t[t.length-1]==`string`?t.pop():void 0;cd(t[0],t[1])&&t.unshift(n);let[r,a,o={}]=t,s=!1,c=It(r)||typeof r==`function`,l=c?V(()=>St(r)):{value:r};if(!l.value||typeof l.value!=`string`)throw td.NUXT_E3008();if(typeof a!=`function`)throw td.NUXT_E3009();let d=typeof e==`function`,f=u(),p=d?e(o):e;if(!d)for(let e in p)p[e]!==void 0&&o[e]===void 0&&(o[e]=p[e]);if(o.server??=!0,o.default??=fd,o.getCachedData??=pd,o.lazy??=!1,o.immediate??=!0,o.deep??=i.deep,o.dedupe??=`cancel`,o.enabled??=!0,d)for(let e in p)p[e]!==void 0&&(o[e]=p[e]);f._asyncData[l.value];let m,h=()=>f._asyncData[l.value]??m;function g(){let e={cause:`initial`,dedupe:o.dedupe},t=f._asyncData[l.value];return t?._init?f._asyncDataPromises[l.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=o.getCachedData(l.value,f,{cause:`initial`}),f._asyncData[l.value]=dd(f,l.value,a,o,e.cachedData),f._asyncData[l.value]._initialCachedData=e.cachedData),m=f._asyncData[l.value],()=>f._asyncData[l.value].execute(e)}let _=g(),v=f._asyncData[l.value];v._deps++;let y=o.server!==!1&&f.payload.serverRendered,b=()=>!1;{let e=dt(),t=!!e||b();if(y&&o.immediate&&kn(),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;ht(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),Et(()=>t.splice(0,t.length))}let n=t&&(e?._nuxtClientOnly||xt(id,!1)),r=l.value in f.payload.data;y&&f.isHydrating&&(v.error.value||v.data.value!==void 0&&(r||v._initialCachedData!==void 0))?v.status.value=v.error.value?`error`:`success`:t&&(!n&&f.payload.serverRendered&&f.isHydrating&&(!y||r)||o.lazy)&&o.immediate?e?e._nuxtOnBeforeMountCbs.push(_):ht(()=>{_()}):o.immediate&&v.status.value!==`success`&&_();function i(e){let t=f._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let u=Vt(),d=()=>{},p=c?Nt(l,(e,t)=>{if((e||t)&&e!==t){s=!0;let n=f._asyncData[t]?.data.value!==void 0,r=f._asyncDataPromises[t]!==void 0,c={cause:`initial`,dedupe:o.dedupe};if(!f._asyncData[e]?._init){let r=o.getCachedData(e,f,{cause:`initial`});c.cachedData=r;let i=t&&n&&r===void 0?f._asyncData[t].data.value:r;f._asyncData[e]=dd(f,e,a,o,i),f._asyncData[e]._initialCachedData=r}f._asyncData[e]._deps++,m=f._asyncData[e],t&&i(t),o._keyTriggersExecute!==!1&&(o.immediate||n||r)&&f._asyncData[e].execute(c),gt(()=>{s=!1})}},{flush:`sync`}):d,h=o.watch?Nt(o.watch,()=>{s||f._asyncData[l.value]?._execute({cause:`watch`,dedupe:o.dedupe})}):d,g=It(o.enabled)||typeof o.enabled==`function`?Nt(()=>St(o.enabled),e=>{let t=f._asyncData[l.value];!e&&t&&f._asyncDataPromises[l.value]&&(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete f._asyncDataPromises[l.value],t.status.value=`idle`)}):d;u&&Yt(()=>{p(),h(),g(),i(l.value)})}let x={data:sd(()=>h()?.data,!o.deep),pending:sd(()=>h()?.pending),status:sd(()=>h()?.status),error:sd(()=>h()?.error),refresh:(...e)=>f._asyncData[l.value]?._init?f._asyncData[l.value].execute(...e):g()(),execute:(...e)=>x.refresh(...e),clear:()=>{let e=f._asyncData[l.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}ld(f,l.value)}},S=Promise.resolve(o.lazy?void 0:f._asyncDataPromises[l.value]).then(()=>x);return Object.assign(S,x),Object.defineProperties(S,{then:{enumerable:!0,value:S.then.bind(S)},catch:{enumerable:!0,value:S.catch.bind(S)},finally:{enumerable:!0,value:S.finally.bind(S)}}),S}return t}}var od=ad();function sd(e,t=!1){let n=V({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}});return t&&(n.__v_isShallow=!0),n}function cd(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function ld(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=T(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function ud(e,t){let n={};for(let r of t)n[r]=e[r];return n}function dd(e,t,n,r,i){e.payload._errors[t]??=void 0;let a=r.getCachedData!==pd,o=n,s=r.deep?U:Xt,c=i!==void 0,l=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await u.execute({cause:`refresh:hook`})}),u={data:s(c?i:r.default()),pending:V(()=>u.status.value===`pending`),error:mt(e.payload._errors,t),status:Xt(`idle`),execute:(...n)=>{let[i,a=void 0]=n,s=i&&a===void 0&&typeof i==`object`?i:{};if(e._asyncDataPromises[t]&&(s.dedupe??r.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in s?s.cachedData:r.getCachedData(t,e,{cause:s.cause??`refresh:manual`});if(n!==void 0)return r.serialize!==!1&&(e.payload.data[t]=n),u.data.value=n,u.error.value=void 0,u.status.value=`success`,Promise.resolve(n)}if(St(r.enabled)===!1)return Promise.resolve(u.data.value);u._abortController&&u._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),u._abortController=new AbortController,u.status.value=`pending`;let c=new AbortController,l=new Promise((t,n)=>{try{let i=s.timeout??r.timeout,a=md([u._abortController?.signal,s?.signal],c.signal,i);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:c.signal});let l={signal:a},d=()=>Promise.resolve(o(e,l));if(r.middleware?.length)for(let e=r.middleware.length-1;e>=0;e--){let t=r.middleware[e],n=d;d=()=>Promise.resolve(t(n,l))}return d().then(t,n)}catch(e){n(e)}}).then(async n=>{if(e._asyncDataPromises[t]!==l)return;let i=n;r.transform&&(i=await r.transform(n)),r.pick&&(i=ud(i,r.pick)),r.serialize!==!1&&(e.payload.data[t]=i),u.data.value=i,u.error.value=void 0,u.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]!==l||u._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return u.status.value=`idle`,e._asyncDataPromises[t];u.error.value=ye(n),u.data.value=T(r.default()),u.status.value=`error`}).finally(()=>{c.abort(),e._asyncDataPromises[t]===l&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=l,e._asyncDataPromises[t]},_execute:nd((...e)=>u.execute(...e)),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),e._asyncData[t]===u&&(e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(u._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[t],u.status.value===`pending`&&(u.status.value=`idle`)),a||bt(()=>{u._deps>0||(u.execute=()=>Promise.resolve(),e._asyncData[t]===u&&(ld(e,t),delete e._asyncData[t]))}))}};return u}var fd=()=>void 0,pd=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function md(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var hd=ki,gd=[`method`,`baseURL`,`query`,`params`,`body`,`headers`];function _d(e){let t=[St(e.method)?.toUpperCase()||`GET`,St(e.baseURL)];for(let n of[e.query||e.params]){let e=St(n);if(!e)continue;let r={};for(let[t,n]of Object.entries(e))r[St(t)]=St(n);t.push(r)}if(e.body){let n=St(e.body);if(!n)t.push(ed(n));else if(n instanceof ArrayBuffer)t.push(ed(Object.fromEntries([...new Uint8Array(n).entries()].map(([e,t])=>[e,t.toString()]))));else if(n instanceof FormData){let e=[];for(let t of n.entries()){let[n,r]=t;e.push([n,r instanceof File?`${r.name}:${r.size}:${r.lastModified}`:r])}t.push(ed(e))}else if(_t(n))t.push(ed(Qt(n)));else try{t.push(ed(n))}catch{td.NUXT_E3002({cause:n})}}return t}function vd(e={}){{function t(t,n,r){let[i={},o]=typeof n==`string`?[{},n]:[n,r],s=typeof e==`function`?e(i):e,{server:c,lazy:l,default:u,transform:d,pick:f,watch:p,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,serialize:b,middleware:x,_keySegments:S,...C}={...typeof e==`function`?{}:s,...i,...typeof e==`function`?s:{}},w=V(()=>St(t)),ee=V(()=>St(C.key)||`$f`+ed([o,typeof w.value==`string`?w.value:``,..._d(C),...S?S.map(e=>St(e)):[]]));if(!C.baseURL&&typeof w.value==`string`&&w.value[0]===`/`&&w.value[1]===`/`)throw td.NUXT_E3001({url:w.value});let te=Qt({...a,...C,cache:typeof C.cache==`boolean`?void 0:C.cache}),ne={server:c,lazy:l,default:u,transform:d,pick:f,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,serialize:b,middleware:x,watch:p===!1?[]:[...p||[],te]};return p===!1&&(ne._keyTriggersExecute=!1),od(ee,(e,{signal:t})=>{let n=C.$fetch||hd,r={signal:t,...te};for(let e of gd)typeof r[e]==`function`&&(r[e]=St(r[e]));return n(w.value,r)},ne)}return t}}var yd=vd(),bd=[`frontend`,`backend`,`e2e`],xd={frontend:`前端`,backend:`后端`,e2e:`端到端`},Sd={unit:`单元`,integration:`集成`,e2e:`端到端`},Cd=[`pass`,`fail`,`skipped`,`blocked`,`not-run`],wd={pass:`通过`,fail:`失败`,skipped:`跳过`,blocked:`阻塞`,"not-run":`未执行`},Td={pass:`success`,fail:`error`,skipped:`neutral`,blocked:`warning`,"not-run":`info`},Ed={pass:`#6aa844`,fail:`#cf4759`,skipped:`#b6bac1`,blocked:`#d29a2c`,"not-run":`#3f7fd4`},Dd=(e,t)=>`${e}-A${t+1}`,Od=e=>!!e&&e.status!==`draft`&&e.status!==`cancelled`,kd={P0:0,P1:1,P2:2,P3:3};function Ad(e){return(e??[]).flatMap(e=>(e.cases??[]).map(t=>({...t,suiteId:e.id,suiteName:e.name,layer:e.layer,level:e.level,runner:e.runner})))}var jd=()=>({total:0,pass:0,fail:0,skipped:0,blocked:0,notRun:0});function Md(e){let t=Ad(e),n=Object.fromEntries(bd.map(e=>[e,jd()])),r=Object.fromEntries(Cd.map(e=>[e,0]));for(let e of t){n[e.layer]||(n[e.layer]=jd());let t=n[e.layer];t.total++;let i=e.status===`not-run`?`notRun`:e.status;i in t&&t[i]++,r[e.status]=(r[e.status]??0)+1}return{total:t.length,automated:t.filter(e=>e.automated).length,manual:t.filter(e=>!e.automated).length,byStatus:r,byLayer:n,failed:r.fail??0}}function Nd(e,t){let n=[];for(let t of e??[])Od(t)&&(t.acceptance??[]).forEach((e,r)=>{n.push({ref:Dd(t.id,r),storyId:t.id,storyTitle:t.title,priority:t.priority,storyStatus:t.status,text:[e.given,e.when,e.then].filter(Boolean).join(` → `)})});let r=new Map;for(let e of Ad(t))for(let t of e.covers??[]){let n=r.get(t)??{covered:!1,verified:!1};n.covered=!0,e.status===`pass`&&(n.verified=!0),r.set(t,n)}let i=n.filter(e=>r.has(e.ref)),a=n.filter(e=>r.get(e.ref)?.verified),o=n.filter(e=>!r.has(e.ref)).sort((e,t)=>(kd[e.priority]??9)-(kd[t.priority]??9)||e.storyId.localeCompare(t.storyId)||e.ref.localeCompare(t.ref)),s=(e,t)=>t?Math.round(e/t*100):0;return{total:n.length,covered:i.length,verified:a.length,rate:s(i.length,n.length),verifiedRate:s(a.length,n.length),gaps:o,rows:n}}function Pd(e,t){let n=Ad(t);return(e??[]).filter(Od).map(e=>{let t=(e.acceptance??[]).map((t,n)=>Dd(e.id,n)),r=Object.fromEntries(bd.map(e=>[e,0])),i=new Set;for(let e of n){let n=(e.covers??[]).filter(e=>t.includes(e));n.length&&(r[e.layer]!==void 0&&(r[e.layer]+=n.length),n.forEach(e=>i.add(e)))}return{id:e.id,title:e.title,priority:e.priority,status:e.status,layers:r,covered:i.size,total:t.length,allCovered:t.length>0&&i.size===t.length}}).sort((e,t)=>(kd[e.priority]??9)-(kd[t.priority]??9)||e.id.localeCompare(t.id))}var Fd=e=>e?.length?e[e.length-1]:null;function Id(e){let t=e?.coverage??{};return Object.entries(t).map(([e,t])=>({layer:e,label:xd[e]??e,tool:t?.tool??``,lines:t?.lines,branches:t?.branches,functions:t?.functions,report:t?.report}))}var Ld=[`architecture`,`sequence`,`flow`,`erd`,`state`,`deploy`,`other`],Rd={architecture:`架构`,sequence:`时序`,flow:`流程`,erd:`ER 关系`,state:`状态`,deploy:`部署`,other:`其它`},zd={architecture:`i-lucide-network`,sequence:`i-lucide-arrow-left-right`,flow:`i-lucide-workflow`,erd:`i-lucide-database`,state:`i-lucide-circle-dot`,deploy:`i-lucide-cloud`,other:`i-lucide-shapes`},Bd={architecture:`#8a63f7`,sequence:`#3f7fd4`,flow:`#6aa844`,erd:`#d29a2c`,state:`#cf4759`,deploy:`#5a8f8a`,other:`#b6bac1`};function Vd(e){return(e?.diagrams??[]).map(e=>({...e,storyIds:Array.isArray(e.storyIds)?e.storyIds:[],kind:Ld.includes(e.kind)?e.kind:`other`,updatedAt:e.updatedAt??e.createdAt??``}))}function Hd(e){let t=Object.fromEntries(Ld.map(e=>[e,0]));for(let n of e??[])t[n.kind]=(t[n.kind]??0)+1;return{total:(e??[]).length,byKind:t}}function Ud(e){let t=new Map;for(let n of e??[])for(let e of n.storyIds??[])t.has(e)||t.set(e,[]),t.get(e).push(n);return t}function Wd(e,t){let n=new Map((t??[]).map(e=>[e.taskId,e])),r=new Map;for(let t of e??[]){let e=``;for(let r of t.tasks??[])for(let t of n.get(r.id)?.entries??[])/^pass/i.test(t.result??``)&&t.date>e&&(e=t.date);e&&r.set(t.id,e)}return r}function Gd(e,t){let n=new Set;for(let r of e??[])for(let e of r.storyIds??[]){let i=t?.get?.(e);if(i&&r.updatedAt&&r.updatedAt<i){n.add(r.id);break}}return n}function Kd(e,t,n=16){let r=Math.max(0,(t?.width??0)-n*2),i=Math.max(0,(t?.height??0)-n*2);if(!e?.w||!e?.h||!r||!i)return{scale:1,x:0,y:0};let a=Math.min(r/e.w,i/e.h);return{scale:a,x:((t.width??0)-e.w*a)/2,y:((t.height??0)-e.h*a)/2}}function qd(e,t,n){let r=t/(e?.scale||1);return{scale:t,x:n.x-(n.x-e.x)*r,y:n.y-(n.y-e.y)*r}}function Jd(e,t,n=.5,r=12){let i=t*n,a=t*r;return Math.min(Math.max(e,i),a)}function Yd(e){return Math.round((e||0)*100)}function Xd(e){let t=/viewBox\s*=\s*["']\s*([-\d.,\s]+?)\s*["']/i.exec(String(e??``));if(!t)return null;let n=t[1].trim().split(/[\s,]+/).map(Number);return n.length===4&&n.every(Number.isFinite)?n:null}function Zd(e,t,{minWidth:n=3200,minScale:r=3,maxPixels:i=16e6}={}){if(!e||!t)return r;let a=Math.min(Math.max(r,n/e),Math.sqrt(i/(e*t)));return Math.max(1,Math.floor(a*10)/10)}function Qd(e,t,n){let r=String(e??``);return/<svg\b/i.test(r)?r.replace(/<svg\b([^>]*?)(\/?)>/i,(e,r,i)=>`<svg${String(r).replace(/\swidth\s*=\s*"[^"]*"/gi,``).replace(/\sheight\s*=\s*"[^"]*"/gi,``).replace(/\swidth\s*=\s*'[^']*'/gi,``).replace(/\sheight\s*=\s*'[^']*'/gi,``)} width="${Math.round(t)}" height="${Math.round(n)}"${i?` /`:``}>`):r}function $d(e,{kind:t=`all`,keyword:n=``,storyId:r=``,onlyStale:i=!1,stale:a=new Set}={}){let o=String(n).trim().toLowerCase();return(e??[]).filter(e=>t!==`all`&&e.kind!==t||r&&!(e.storyIds??[]).includes(r)||i&&!a.has(e.id)?!1:!o||[e.id,e.title,e.summary??``,...e.storyIds??[]].join(` `).toLowerCase().includes(o))}var ef=[`mint`,`sky`,`lilac`,`ink`,`amber`,`rose`],tf=e=>ef[e%ef.length],nf=e=>`tone-${tf(e)}`,rf=864e5,af=e=>new Date(`${e}T00:00:00Z`),of=(e,t)=>new Date(+af(e)+t*rf).toISOString().slice(0,10),sf=(e,t)=>Math.round((+af(t)-af(e))/rf),cf=e=>e.slice(5).replace(`-`,`/`),lf=()=>{let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`},uf=[`draft`,`ready`,`in-progress`,`review`,`done`,`cancelled`],df={draft:`草稿`,ready:`就绪`,"in-progress":`进行中`,review:`评审`,done:`完成`,cancelled:`已取消`},ff={todo:`待办`,red:`红(测试失败)`,green:`绿(测试通过)`,refactored:`已重构`,done:`完成`},pf={mvp:`MVP 节点`,release:`发布`,checkpoint:`检查点`},mf={planned:`计划中`,"at-risk":`有风险`,reached:`已达成`,missed:`已错过`,cancelled:`已取消`},hf={draft:`#b6bac1`,ready:`#8b6cf7`,"in-progress":`#3f7fd4`,review:`#d29a2c`,done:`#6aa844`,cancelled:`#cf4759`},gf={draft:`草稿`,ready:`就绪`,"in-progress":`进行`,review:`评审`,done:`完成`,cancelled:`取消`},_f={draft:`neutral`,ready:`primary`,"in-progress":`info`,review:`warning`,done:`success`,cancelled:`error`},vf={todo:`neutral`,red:`error`,green:`success`,refactored:`info`,done:`success`},yf={planned:`neutral`,"at-risk":`warning`,reached:`success`,missed:`error`,cancelled:`neutral`},bf={mvp:`warning`,release:`primary`,checkpoint:`neutral`},xf={mvp:`i-lucide-flag`,release:`i-lucide-rocket`,checkpoint:`i-lucide-map-pin`},Sf={feature:`功能`,bug:`缺陷`,debt:`技术债`,spike:`调研`},Cf={feature:`primary`,bug:`error`,debt:`neutral`,spike:`secondary`},wf={feature:`i-lucide-sparkles`,bug:`i-lucide-bug`,debt:`i-lucide-wrench`,spike:`i-lucide-flask-conical`},Tf={P0:`error`,P1:`warning`,P2:`info`,P3:`neutral`},Ef={blocker:`致命`,major:`严重`,minor:`次要`,trivial:`轻微`},Df={blocker:`error`,major:`error`,minor:`warning`,trivial:`neutral`},Of={"added-mid-sprint":`迭代中途插入`,split:`拆分产生`,expanded:`范围扩大`};function kf(){let e=En(`agile-root`,()=>``),{data:t,error:n,refresh:r,status:i}=yd(`/api/agile`,{key:`agile-data`,query:V(()=>({root:e.value||void 0})),watch:!1,onResponse({response:t}){t.ok&&t._data?.meta?.root&&(e.value=t._data.meta.root)}},`$UZ59C_AfU2`),a=V(()=>t.value?.backlog?.epics??[]),o=V(()=>t.value?.backlog?.stories??[]),s=V(()=>t.value?.sprints?.sprints??[]),c=V(()=>t.value?.sprints?.milestones??[]),l=V(()=>t.value?.journal?.journals??[]),u=V(()=>t.value?.meta?.root??``),d=V(()=>t.value?.lastChange?.lastChange??null),f=V(()=>t.value?.meta?.lastChangeGit??null),p=V(()=>t.value?.tests?.suites??[]),m=V(()=>t.value?.tests?.runs??[]),h=V(()=>Ad(p.value)),g=V(()=>Md(p.value)),_=V(()=>Nd(o.value,p.value)),v=V(()=>Pd(o.value,p.value)),y=V(()=>Fd(m.value)),b=V(()=>Id(y.value)),x=V(()=>Vd(t.value?.diagrams)),S=V(()=>Hd(x.value)),C=V(()=>new Map(x.value.map(e=>[e.id,e]))),w=V(()=>Ud(x.value)),ee=V(()=>Gd(x.value,Wd(o.value,l.value))),te=V(()=>new Map(o.value.map(e=>[e.id,e]))),ne=V(()=>new Map(a.value.map(e=>[e.id,e]))),re=V(()=>new Map(s.value.map(e=>[e.id,e]))),ie=V(()=>new Map(l.value.map(e=>[e.taskId,e]))),ae=lf(),oe=V(()=>s.value.find(e=>e.start<=ae&&e.end>=ae)??null),se=V(()=>s.value[s.value.length-1]??null),ce=V(()=>oe.value??se.value),le=uf,ue=e=>o.value.filter(t=>t.status===e),de=e=>{let t=e.tasks?.length??0,n=(e.tasks??[]).filter(e=>e.status===`done`).length;return{done:n,total:t,pct:t?Math.round(n/t*100):0}},fe=e=>{let t=(e.tasks??[]).flatMap(e=>ie.value.get(e.id)?.entries??[]).map(e=>e.date).filter(Boolean).sort();return t.length?{start:t[0],end:t[t.length-1]}:null},pe=e=>e.reduce((e,t)=>e+(te.value.get(t)?.points??0),0);return{data:t,error:n,refresh:r,status:i,root:u,epics:a,stories:o,sprints:s,milestones:c,journals:l,lastChange:d,lastChangeGit:f,testSuites:p,testRuns:m,testCases:h,testStats:g,requirement:_,matrixRows:v,lastRun:y,coverageRows:b,diagrams:x,diagramStats:S,diagramById:C,storyDiagrams:w,staleDiagrams:ee,DIAGRAM_KINDS:Ld,DIAGRAM_KIND_LABEL:Rd,DIAGRAM_KIND_ICON:zd,DIAGRAM_KIND_DOT:Bd,storyById:te,epicById:ne,sprintById:re,journalByTask:ie,activeSprint:oe,currentSprint:ce,now:ae,states:le,columnOf:ue,progress:de,actualRange:fe,pointsOf:pe,milestoneOfStory:e=>c.value.filter(t=>(t.stories??[]).includes(e)),milestoneProgress:e=>{let t=(e.stories??[]).map(e=>te.value.get(e)).filter(Boolean),n=t.filter(e=>e.status===`cancelled`).length,r=t.filter(e=>e.status!==`cancelled`);return{list:t,live:r,cancelled:n,done:r.filter(e=>e.status===`done`).length,total:r.length,points:r.reduce((e,t)=>e+t.points,0)}},burndown:e=>{let t=(e.stories??[]).filter(e=>{let t=te.value.get(e);return!t||t.status!==`cancelled`}),n=pe(t),r=new Map;for(let e of l.value){let t=(e.entries??[]).filter(e=>/^pass/i.test(e.result??``));t.length&&r.set(e.taskId,t[t.length-1].date)}let i=[],a=sf(e.start,e.end);for(let o=0;o<=a;o++){let s=of(e.start,o),c=0;for(let e of t){let t=te.value.get(e);if(!t||t.status!==`done`||!t.tasks?.length)continue;let n=t.tasks.filter(e=>{let t=r.get(e.id);return t&&t<=s}).length;c+=t.points*(n/t.tasks.length)}i.push({date:s,ideal:Math.round(n*(1-o/(a||1))*10)/10,actual:Math.round((n-c)*10)/10})}return{total:n,days:i}},sprintCommit:e=>(e.stories??[]).reduce((e,t)=>{let n=te.value.get(t);return n&&n.status!==`cancelled`?e+n.points:e},0),wsjf:e=>e.points?Math.round(e.value/e.points*100)/100:0,dependentsOf:e=>o.value.filter(t=>(t.dependsOn??[]).includes(e)),blockedStories:V(()=>o.value.filter(e=>e.blocked)),dependencyPairs:V(()=>o.value.flatMap(e=>(e.dependsOn??[]).map(t=>({from:t,to:e.id})))),toDate:af,addDays:of,diffDays:sf,md:cf,STATE_LABEL:df,TASK_LABEL:ff,KIND_LABEL:pf,MS_LABEL:mf,STATE_COLOR:_f,STATE_DOT:hf,STATE_SHORT:gf,TASK_COLOR:vf,MS_COLOR:yf,KIND_COLOR:bf,KIND_ICON:xf,TYPE_LABEL:Sf,TYPE_COLOR:Cf,TYPE_ICON:wf,PRIORITY_COLOR:Tf,SEVERITY_LABEL:Ef,SEVERITY_COLOR:Df,SCOPE_LABEL:Of,LAYERS:bd,LAYER_LABEL:xd,LEVEL_LABEL:Sd,CASE_STATUSES:Cd,CASE_STATUS_LABEL:wd,CASE_STATUS_COLOR:Td,CASE_STATUS_DOT:Ed}}var Af=[`aria-busy`],jf=[`title`,`disabled`],Mf={class:`project-avatar`},Nf={class:`project-text`},Pf={class:`mono`},Ff=[`disabled`],If={key:0,role:`alert`,class:`project-error`},Lf=O({__name:`ProjectSwitcher`,setup(e){let{root:t,data:n,error:r,status:i}=kf(),a=En(`agile-root`,()=>``),o=U([]),s=U(``),c=U(!1),l=U(``),u=e=>e.split(/[\\/]/).filter(Boolean).pop()||`选择项目`;async function d(){let e=await ki(`/api/projects`);o.value=e.recent,s.value=e.token}async function f(e){if(!c.value){c.value=!0,l.value=``;try{s.value||await d();let t=await ki(e?`/api/projects/open`:`/api/projects/select`,{method:`POST`,headers:{"x-project-token":s.value},body:e?{root:e}:void 0});if(!t)return;a.value=t.data.meta.root,n.value=t.data,r.value=void 0,o.value=t.recent,await ze(`/`)}catch(e){l.value=e.data?.error||e.message||`打开项目失败,请重试。`}finally{c.value=!1}}}let p=V(()=>(t.value||`选择含 agile/ 的文件夹`).match(/[^\\/]+[\\/]?/g)??[]),m=V(()=>[[{label:`最近打开的项目`,type:`label`}],o.value.map(e=>({label:u(e),description:e,icon:e===t.value?`i-lucide-check`:`i-lucide-folder`,disabled:c.value,onSelect:()=>f(e)})),[{label:`选择其他文件夹…`,icon:`i-lucide-folder-open`,disabled:c.value,onSelect:()=>f()}]]);return ut(()=>d().catch(e=>{l.value=e.data?.error||`无法加载最近项目,请重启看板服务后重试。`})),(e,n)=>{let r=An,a=Zu;return A(),L(`div`,null,[N(`div`,{class:`project-switcher`,"aria-busy":T(c)},[N(`button`,{class:`project-open`,title:`${T(t)||`选择项目`}\n点击选择项目文件夹`,disabled:T(c)||T(i)===`pending`,onClick:n[0]||=e=>f()},[N(`span`,Mf,[M(r,{name:T(c)?`i-lucide-loader-circle`:`i-lucide-folder-open`,class:B({"animate-spin":T(c)})},null,8,[`name`,`class`])]),N(`span`,Nf,[N(`b`,null,j(T(c)?`正在打开项目…`:u(T(t))),1),N(`small`,Pf,[(A(!0),L(F,null,yt(T(p),(e,t)=>(A(),L(F,{key:t},[Zt(j(e),1),n[1]||=N(`wbr`,null,null,-1)],64))),128))])])],8,jf),M(a,{items:T(m),content:{align:`start`,side:`bottom`},ui:{content:`w-80`,itemDescription:`truncate`}},{default:I(()=>[N(`button`,{class:`project-recent`,"aria-label":`切换最近项目`,title:`最近打开的项目`,disabled:T(c)||T(i)===`pending`},[M(r,{name:`i-lucide-chevron-down`})],8,Ff)]),_:1},8,[`items`])],8,Af),T(l)?(A(),L(`p`,If,j(T(l)),1)):R(``,!0)])}}}),Rf=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},zf=Object.assign(Rf(Lf,[[`__scopeId`,`data-v-bc44ea56`]]),{__name:`ProjectSwitcher`}),Bf={class:`card-blobs`,"aria-hidden":`true`},Vf=Object.assign(O({__name:`CardBlobs`,props:{tone:{default:`mint`},min:{default:3},max:{default:6},size:{default:`lg`}},setup(e){let t=e,n={sm:{size:[46,110]},lg:{size:[110,260]},xl:{size:[180,380]}},r={mint:[`120, 172, 40`,`150, 196, 74`,`186, 214, 122`],lilac:[`110, 74, 230`,`124, 88, 242`,`168, 140, 250`],ink:[`154, 124, 250`,`211, 240, 164`,`120, 104, 190`],green:[`120, 172, 40`,`150, 196, 74`,`96, 150, 32`],violet:[`110, 74, 230`,`154, 124, 250`,`190, 170, 250`],sky:[`56, 132, 214`,`92, 156, 226`,`138, 186, 242`],amber:[`198, 138, 32`,`216, 164, 62`,`234, 198, 112`],rose:[`207, 71, 89`,`223, 112, 126`,`243, 160, 168`]},i=(e,t)=>e+Math.random()*(t-e),a=e=>Math.round(e),o=e=>e[Math.floor(Math.random()*e.length)];function s(e){let s=n[t.size],c=o(r[t.tone]),l=i(s.size[0],s.size[1]),u=i(.55,.8).toFixed(2),d=a(i(58,76)),f=l*i(.04,.12);return{key:e,style:{left:`${a(i(-14,84))}%`,top:`${a(i(-20,80))}%`,width:`${a(l)}px`,height:`${a(l)}px`,borderRadius:`50%`,background:`radial-gradient(circle at 50% 50%, rgba(${c}, ${u}) 0%, rgba(${c}, 0) ${d}%)`,filter:`blur(${a(f)}px)`,opacity:i(.5,.95).toFixed(2)}}}let c=U([]);return ut(()=>{let e=a(i(t.min,t.max));c.value=Array.from({length:e},(e,t)=>s(t))}),(e,t)=>(A(),L(`div`,Bf,[(A(!0),L(F,null,yt(T(c),e=>(A(),L(`i`,{key:e.key,style:kt(e.style)},null,4))),128))]))}}),{__name:`CardBlobs`}),Hf={class:`cal`},Uf={class:`cal-hd`},Wf={class:`cal-title`},Gf={class:`cal-nav`},Kf={class:`cal-week`},qf={class:`cal-grid`},Jf=[`title`,`onClick`],Yf={class:`cal-num`},Xf=[`data-kind`],Zf={class:`cal-foot`},Qf={class:`cal-band-note`},$f={key:0,class:`cal-ms`},ep=[`data-kind`],tp={key:1,class:`cal-hint`},np=Object.assign(Rf(O({__name:`SideCalendar`,setup(e){let{currentSprint:t,milestones:n}=kf(),r=[`一`,`二`,`三`,`四`,`五`,`六`,`日`],i=lf(),a=U(i),o=U(i.slice(0,7)),s=V(()=>{let e=`${o.value}-01`,t=of(e,-((af(e).getUTCDay()+6)%7));return Array.from({length:42},(e,n)=>{let r=of(t,n);return{date:r,day:Number(r.slice(8,10)),inMonth:r.slice(0,7)===o.value}})}),c=V(()=>t.value?.start??``),l=V(()=>t.value?.end??``),u=e=>!!c.value&&e>=c.value&&e<=l.value,d=V(()=>u(a.value)?sf(c.value,a.value)+1:0),f=V(()=>{let e=new Map;for(let t of n.value)t.due&&e.set(t.due,[...e.get(t.due)??[],t]);return e}),p=V(()=>f.value.get(a.value)??[]),m=V(()=>`${o.value.slice(0,4)} · ${Number(o.value.slice(5,7))} 月`),h={mvp:`i-lucide-flag`,release:`i-lucide-rocket`,checkpoint:`i-lucide-map-pin`};function g(e){let[t,n]=o.value.split(`-`).map(Number),r=new Date(Date.UTC(t,n-1+e,1));o.value=r.toISOString().slice(0,7)}function _(e){a.value=e,e.slice(0,7)!==o.value&&(o.value=e.slice(0,7))}function v(){a.value=i,o.value=i.slice(0,7)}return(e,t)=>{let n=Vf,o=An;return A(),L(`div`,Hf,[M(n,{tone:`lilac`,size:`sm`,min:2,max:3}),N(`div`,Uf,[N(`span`,Wf,[M(o,{name:`i-lucide-calendar-days`}),t[2]||=Zt(`日历`,-1)]),N(`div`,Gf,[N(`button`,{type:`button`,"aria-label":`上个月`,onClick:t[0]||=e=>g(-1)},[M(o,{name:`i-lucide-chevron-left`})]),N(`button`,{type:`button`,class:`cal-month`,title:`回到今天`,onClick:v},j(T(m)),1),N(`button`,{type:`button`,"aria-label":`下个月`,onClick:t[1]||=e=>g(1)},[M(o,{name:`i-lucide-chevron-right`})])])]),N(`div`,Kf,[(A(),L(F,null,yt(r,e=>N(`span`,{key:e},j(e),1)),64))]),N(`div`,qf,[(A(!0),L(F,null,yt(T(s),e=>(A(),L(`button`,{key:e.date,type:`button`,class:B([`cal-d`,{out:!e.inMonth,band:u(e.date),sel:e.date===T(a),now:e.date===T(i),"has-ms":T(f).has(e.date)}]),title:e.date,onClick:t=>_(e.date)},[N(`span`,Yf,j(e.day),1),T(f).has(e.date)?(A(),L(`i`,{key:0,class:`cal-dot`,"data-kind":T(f).get(e.date)?.[0]?.kind},null,8,Xf)):R(``,!0)],10,Jf))),128))]),N(`div`,Zf,[N(`p`,Qf,[t[3]||=N(`i`,{class:`cal-swatch`},null,-1),T(c)?(A(),L(F,{key:0},[Zt(` 冲刺 `+j((`md`in e?e.md:T(cf))(T(c)))+` – `+j((`md`in e?e.md:T(cf))(T(l)))+` `,1),T(d)?(A(),L(F,{key:0},[Zt(`· 第 `+j(T(d))+` 天`,1)],64)):R(``,!0)],64)):(A(),L(F,{key:1},[Zt(`当前没有进行中的冲刺`)],64))]),T(p).length?(A(),L(`div`,$f,[(A(!0),L(F,null,yt(T(p),t=>(A(),L(`p`,{key:t.id,class:`cal-ms-row`,"data-kind":t.kind},[M(o,{name:h[t.kind]??`i-lucide-flag`},null,8,[`name`]),N(`b`,null,j(t.title),1),N(`small`,null,j((`MS_LABEL`in e?e.MS_LABEL:T(mf))[t.status]),1)],8,ep))),128))])):(A(),L(`p`,tp,[Zt(j((`md`in e?e.md:T(cf))(T(a)))+` 周`+j(r[((`toDate`in e?e.toDate:T(af))(T(a)).getUTCDay()+6)%7])+` `,1),u(T(a))?(A(),L(F,{key:0},[Zt(` · 冲刺期内`)],64)):R(``,!0)]))])])}}}),[[`__scopeId`,`data-v-3156dafd`]]),{__name:`SideCalendar`}),rp=(e=`RouteProvider`)=>O({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return Dt(De,wt(r)),()=>e.vnode?pt(e.vnode,{ref:e.vnodeRef}):e.vnode}}),ip=rp(),ap=new WeakMap,op=O({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=u(),a=U(),o=xt(De,null),s=new Set,c;r({pageRef:a});let l=xt(we,null),d,f=i.deferHydration(),p=!1,m=!1,h,g=0;if(i.isHydrating){let e=i.hooks.hookOnce(`app:error`,f),t=Pe().beforeEach(()=>{e(),t()})}e.pageKey&&Nt(()=>e.pageKey,(e,t)=>{e!==t&&i.callHook(`page:loading:start`)});let _=!1;{let e=Pe().beforeResolve(()=>{_=!1});vt(()=>{e(),f()})}return()=>pt(ao,{name:e.name,route:e.route,...t},{default:lp(t=>{let r=sp(o,t.route,t.Component),u=o&&o.matched.length===t.route.matched.length;if(!t.Component)return d&&!u&&!dp(d)?d:(f(),e.transition??t.route.meta.pageTransition??!1?Ge(be([e.transition,t.route.meta.pageTransition,!1]),null).default():void 0);if(d&&l&&!dp(d)&&!l.isCurrent(t.route))return d;if(r&&o&&(!l||l?.isCurrent(o)))return(u||d)&&!dp(d)?d:null;let v=ga(t,e.pageKey),y=cp(o,t.route,t.Component);!i.isHydrating&&c===v&&!y&&bt(()=>{_||(_=!0,i.callHook(`page:loading:end`))}),p&&c!==v&&m&&g++,c=v;let b=!!(e.transition??t.route.meta.pageTransition??!1),x=b&&be([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){Ae(i),i.callHook(`page:transition:finish`,t.Component)}}]),S=e.keepalive??t.route.meta.keepalive??!1,C=t.Component.type,w=C.name||C.__name;t.route.meta.keepalive&&w&&s.add(w);let ee;if(s.size>0&&e.keepalive==null&&(!S||typeof S==`object`&&S&&S.include)){let e=typeof S==`object`&&S?{...S}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];ee={...e,include:Array.from(new Set([...t,...s]))}}else ee=S;return d=Ge(b&&x,_a(ee,pt(Ut,{key:g,suspensible:!0,onPending:()=>{p=!0,b&&m&&Re(i),h=i.callHook(`page:start`,t.Component)},onResolve:async()=>{p=!1,m=!0,i.isHydrating&&i[`~restoreDeferredRoute`]?.();try{await bt(),i._route.sync?.(),await h,await i.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await i.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:n.default?up(n.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:b,vnodeRef:a,routeRecord:void 0};if(!ee)return pt(ip,e);let r=C,i=ap.get(r);return i||(i=rp(w),ap.set(r,i)),pt(i,e)}}))).default(),d})})}});function sp(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&ga({route:t,Component:n})!==ga({route:e,Component:n})}function cp(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function lp(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!zt(n)?[R()]:[n]});return t._n=!0,t}function up(e,t){let n=e(t);return n.length===1?pt(n[0]):pt(F,void 0,n)}function dp(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var fp={slots:{root:`relative inline-flex items-center`,base:[`w-full rounded-md border-0 appearance-none placeholder:text-dimmed disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute start-0 flex items-start`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute end-0 flex items-start`,trailingIcon:`shrink-0 text-dimmed`},variants:{fieldGroup:{horizontal:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none`},vertical:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none`}},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2 inset-y-1`,trailing:`pe-2 inset-y-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5 inset-y-1.5`,trailing:`pe-2.5 inset-y-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5 inset-y-1.5`,trailing:`pe-2.5 inset-y-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3 inset-y-2`,trailing:`pe-3 inset-y-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3 inset-y-2`,trailing:`pe-3 inset-y-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},autoresize:{true:{base:`resize-none`}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`}},pp=[`id`,`value`,`name`,`rows`,`placeholder`,`disabled`,`required`],mp=Object.assign({inheritAttrs:!1},{__name:`UTextarea`,props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},autoresize:{type:Boolean,required:!1},autoresizeDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},rows:{type:Number,required:!1,default:3},maxrows:{type:Number,required:!1,default:0},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`update:modelValue`,`blur`,`change`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Ht(),o=Rn(`textarea`,r),s=pr(o,`modelValue`,i,{defaultValue:o.defaultValue}),c=On(),{emitFormFocus:l,emitFormBlur:u,emitFormInput:d,emitFormChange:f,size:p,color:m,id:h,name:g,highlight:_,disabled:v,ariaAttrs:y}=Yr(r,{deferInputValidation:!0}),b=V(()=>m.value??o.color),x=V(()=>_.value??o.highlight),S=V(()=>p.value??o.size),C=V(()=>v.value??o.disabled),{isLeading:w,isTrailing:ee,leadingIconName:te,trailingIconName:ne}=Ur(o),re=V(()=>Bn({extend:fp,...c.ui?.textarea||{}})({color:b.value,variant:o.variant,size:S.value,loading:o.loading,highlight:x.value,fixed:o.fixed,autoresize:o.autoresize,leading:w.value||!!o.avatar||!!a.leading,trailing:ee.value||!!a.trailing})),ie=Gt(`textareaRef`);function ae(e){o.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),o.modelModifiers?.number&&(e=In(e)),o.modelModifiers?.nullable&&Mn(e)&&(e=null),o.modelModifiers?.optional&&!o.modelModifiers?.nullable&&e!==null&&Mn(e)&&(e=void 0),s.value=e,d()}function oe(e){ue(),o.modelModifiers?.lazy||ae(e.target.value)}function se(e){let t=e.target.value;o.modelModifiers?.lazy&&ae(t),o.modelModifiers?.trim&&(e.target.value=t.trim()),f(),i(`change`,e)}function ce(e){u(),i(`blur`,e)}function le(){o.autofocus&&ie.value?.focus()}function ue(){if(o.autoresize&&ie.value){ie.value.rows=o.rows;let e=ie.value.style.overflow;ie.value.style.overflow=`hidden`;let t=window.getComputedStyle(ie.value),n=Number.parseInt(t.paddingTop)+Number.parseInt(t.paddingBottom),r=Number.parseInt(t.lineHeight),{scrollHeight:i}=ie.value,a=(i-n)/r;a>o.rows&&(ie.value.rows=o.maxrows?Math.min(a,o.maxrows):a),ie.value.style.overflow=e}}Nt(s,()=>{bt(ue)});let de,fe;return ut(()=>{de=setTimeout(()=>{le()},o.autofocusDelay),fe=setTimeout(async()=>{await bt(),ue()},o.autoresizeDelay)}),Yt(()=>{clearTimeout(de),clearTimeout(fe)}),t({textareaRef:ie,autoResize:ue}),(e,t)=>(A(),P(T(br),{as:T(o).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:B(re.value.root({class:[T(o).ui?.root,T(o).class]}))},{default:I(()=>[N(`textarea`,D({id:T(h),ref_key:`textareaRef`,ref:ie,value:T(s),name:T(g),rows:T(o).rows,placeholder:T(o).placeholder,class:re.value.base({class:T(o).ui?.base}),disabled:C.value,required:T(o).required},{...e.$attrs,...T(y)},{"data-slot":`base`,onInput:oe,onBlur:ce,onChange:se,onFocus:t[0]||=(...e)=>T(l)&&T(l)(...e)}),null,16,pp),z(e.$slots,`default`,{ui:re.value}),T(w)||T(o).avatar||a.leading?(A(),L(`span`,{key:0,"data-slot":`leading`,class:B(re.value.leading({class:T(o).ui?.leading}))},[z(e.$slots,`leading`,{ui:re.value},()=>[T(w)&&T(te)?(A(),P(An,{key:0,name:T(te),"data-slot":`leadingIcon`,class:B(re.value.leadingIcon({class:T(o).ui?.leadingIcon}))},null,8,[`name`,`class`])):T(o).avatar?(A(),P(Hr,D({key:1,size:T(o).ui?.leadingAvatarSize||re.value.leadingAvatarSize()},T(o).avatar,{"data-slot":`leadingAvatar`,class:re.value.leadingAvatar({class:T(o).ui?.leadingAvatar})}),null,16,[`size`,`class`])):R(``,!0)])],2)):R(``,!0),T(ee)||a.trailing?(A(),L(`span`,{key:1,"data-slot":`trailing`,class:B(re.value.trailing({class:T(o).ui?.trailing}))},[z(e.$slots,`trailing`,{ui:re.value},()=>[T(ne)?(A(),P(An,{key:0,name:T(ne),"data-slot":`trailingIcon`,class:B(re.value.trailingIcon({class:T(o).ui?.trailingIcon,leading:T(w)}))},null,8,[`name`,`class`])):R(``,!0)])],2)):R(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),hp={slots:{root:`relative flex items-start`,base:[`inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-3 data-[state=unchecked]:bg-accented`,`transition-[background] duration-200 ease-out`],container:`flex items-center`,thumb:`group pointer-events-none rounded-full bg-default shadow-lg ring-0 transition-transform duration-200 ease-out motion-reduce:transition-none data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center`,icon:[`absolute shrink-0 group-data-[state=unchecked]:text-dimmed opacity-0 size-10/12`,`transition-[color,opacity] duration-200 ease-out`],wrapper:`ms-2`,label:`block font-medium text-default`,description:`text-muted`},variants:{color:{primary:{base:`data-[state=checked]:bg-primary outline-primary/25`,icon:`group-data-[state=checked]:text-primary`},secondary:{base:`data-[state=checked]:bg-secondary outline-secondary/25`,icon:`group-data-[state=checked]:text-secondary`},success:{base:`data-[state=checked]:bg-success outline-success/25`,icon:`group-data-[state=checked]:text-success`},info:{base:`data-[state=checked]:bg-info outline-info/25`,icon:`group-data-[state=checked]:text-info`},warning:{base:`data-[state=checked]:bg-warning outline-warning/25`,icon:`group-data-[state=checked]:text-warning`},error:{base:`data-[state=checked]:bg-error outline-error/25`,icon:`group-data-[state=checked]:text-error`},neutral:{base:`data-[state=checked]:bg-inverted outline-inverted/25`,icon:`group-data-[state=checked]:text-highlighted`}},size:{xs:{base:`w-7`,container:`h-4`,thumb:`size-3 data-[state=checked]:translate-x-3 data-[state=checked]:rtl:-translate-x-3`,wrapper:`text-xs`},sm:{base:`w-8`,container:`h-4`,thumb:`size-3.5 data-[state=checked]:translate-x-3.5 data-[state=checked]:rtl:-translate-x-3.5`,wrapper:`text-xs`},md:{base:`w-9`,container:`h-5`,thumb:`size-4 data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4`,wrapper:`text-sm`},lg:{base:`w-10`,container:`h-5`,thumb:`size-4.5 data-[state=checked]:translate-x-4.5 data-[state=checked]:rtl:-translate-x-4.5`,wrapper:`text-sm`},xl:{base:`w-11`,container:`h-6`,thumb:`size-5 data-[state=checked]:translate-x-5 data-[state=checked]:rtl:-translate-x-5`,wrapper:`text-base`}},checked:{true:{icon:`group-data-[state=checked]:opacity-100`}},unchecked:{true:{icon:`group-data-[state=unchecked]:opacity-100`}},loading:{true:{icon:`animate-spin`}},highlight:{true:``},required:{true:{label:`after:content-['*'] after:ms-0.5 after:text-error`}},disabled:{true:{root:`opacity-75`,base:`cursor-not-allowed`,label:`cursor-not-allowed`,description:`cursor-not-allowed`}}},compoundVariants:[{color:`primary`,highlight:!0,class:{base:`ring ring-primary`}},{color:`secondary`,highlight:!0,class:{base:`ring ring-secondary`}},{color:`success`,highlight:!0,class:{base:`ring ring-success`}},{color:`info`,highlight:!0,class:{base:`ring ring-info`}},{color:`warning`,highlight:!0,class:{base:`ring ring-warning`}},{color:`error`,highlight:!0,class:{base:`ring ring-error`}},{color:`neutral`,highlight:!0,class:{base:`ring ring-inverted`}}],defaultVariants:{color:`primary`,size:`md`}},gp=Object.assign({inheritAttrs:!1},{__name:`USwitch`,props:{as:{type:null,required:!1},color:{type:null,required:!1},size:{type:null,required:!1},highlight:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},checkedIcon:{type:null,required:!1},uncheckedIcon:{type:null,required:!1},label:{type:String,required:!1},description:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},value:{type:String,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},trueValue:{type:null,required:!1},falseValue:{type:null,required:!1}},emits:[`change`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=Ht(),i=t,a=Rn(`switch`,n),o=On(),s=jr(Dr(a,`required`,`value`,`defaultValue`,`modelValue`,`trueValue`,`falseValue`),i),{id:c,emitFormChange:l,emitFormInput:u,size:d,color:f,highlight:p,name:m,disabled:h,ariaAttrs:g}=Yr(n),_=c.value??Ft(),v=V(()=>f.value??a.color),y=V(()=>p.value??a.highlight),b=V(()=>d.value??a.size),x=V(()=>h.value??a.disabled),S=ct(),C=V(()=>{let{"data-state":e,...t}=S;return t}),w=V(()=>Bn({extend:hp,...o.ui?.switch||{}})({size:b.value,color:v.value,highlight:y.value,required:a.required,loading:a.loading,disabled:x.value||a.loading}));function ee(e){let t=new Event(`change`,{target:{value:e}});i(`change`,t),l(),u()}return(e,t)=>(A(),P(T(br),{as:T(a).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:B(w.value.root({class:[T(a).ui?.root,T(a).class]}))},{default:I(()=>[N(`div`,{"data-slot":`container`,class:B(w.value.container({class:T(a).ui?.container}))},[M(T($l),D({id:T(_)},{...T(s),...C.value,...T(g)},{name:T(m),disabled:x.value||T(a).loading,"data-slot":`base`,class:w.value.base({class:T(a).ui?.base}),"onUpdate:modelValue":ee}),{default:I(()=>[M(T(eu),{"data-slot":`thumb`,class:B(w.value.thumb({class:T(a).ui?.thumb}))},{default:I(()=>[T(a).loading?(A(),P(An,{key:0,name:T(a).loadingIcon||T(o).ui.icons.loading,"data-slot":`icon`,class:B(w.value.icon({class:T(a).ui?.icon,checked:!0,unchecked:!0}))},null,8,[`name`,`class`])):(A(),L(F,{key:1},[T(a).checkedIcon?(A(),P(An,{key:0,name:T(a).checkedIcon,"data-slot":`icon`,class:B(w.value.icon({class:T(a).ui?.icon,checked:!0}))},null,8,[`name`,`class`])):R(``,!0),T(a).uncheckedIcon?(A(),P(An,{key:1,name:T(a).uncheckedIcon,"data-slot":`icon`,class:B(w.value.icon({class:T(a).ui?.icon,unchecked:!0}))},null,8,[`name`,`class`])):R(``,!0)],64))]),_:1},8,[`class`])]),_:1},16,[`id`,`name`,`disabled`,`class`])],2),T(a).label||r.label||T(a).description||r.description?(A(),L(`div`,{key:0,"data-slot":`wrapper`,class:B(w.value.wrapper({class:T(a).ui?.wrapper}))},[T(a).label||r.label?(A(),P(T(Pc),{key:0,for:T(_),"data-slot":`label`,class:B(w.value.label({class:T(a).ui?.label}))},{default:I(()=>[z(e.$slots,`label`,{label:T(a).label},()=>[Zt(j(T(a).label),1)])]),_:3},8,[`for`,`class`])):R(``,!0),T(a).description||r.description?(A(),L(`p`,{key:1,"data-slot":`description`,class:B(w.value.description({class:T(a).ui?.description}))},[z(e.$slots,`description`,{description:T(a).description},()=>[Zt(j(T(a).description),1)])],2)):R(``,!0)],2)):R(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),_p={base:`text-transparent bg-clip-text bg-no-repeat bg-size-[calc(200%+var(--spread)*2+2px)_100%,auto] bg-[image:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--ui-text-highlighted),#0000_calc(50%+var(--spread))),linear-gradient(var(--ui-text-muted),var(--ui-text-muted))] motion-safe:animate-[shimmer_var(--duration)_linear_infinite] motion-safe:rtl:animate-[shimmer-rtl_var(--duration)_linear_infinite] will-change-[background-position] motion-reduce:bg-none motion-reduce:text-muted`},vp={__name:`UChatShimmer`,props:{as:{type:null,required:!1,default:`span`},text:{type:String,required:!0},duration:{type:Number,required:!1,default:2},spread:{type:Number,required:!1,default:2},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=Rn(`chatShimmer`,e),n=On(),r=V(()=>Bn({extend:_p,...n.ui?.chatShimmer||{}})),i=V(()=>t.text.length*t.spread);return(e,n)=>(A(),P(T(br),{as:T(t).as,style:kt({"--spread":`${i.value}px`,"--duration":`${T(t).duration}s`}),"data-slot":`base`,class:B(r.value({class:[T(t).ui?.base,T(t).class]}))},{default:I(()=>[Zt(j(T(t).text),1)]),_:1},8,[`as`,`style`,`class`]))}};function yp(e){let t=[],n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i],o=a===`|`&&i>0&&e[i-1]===`\\`;a===`|`&&!o?(r&&n&&(t.push(n.length),n=``),r=!0):r&&(n+=a)}return r&&n&&t.push(n.length),t}function bp(e){let t=[],n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i],o=a===`|`&&i>0&&e[i-1]===`\\`;a===`|`&&!o?(r&&(t.push(n.trim()),n=``),r=!0):r&&(n+=a)}return n.trim()&&t.push(n.trim()),t}function xp(e){let t=e.split(`
17
+ `),n=[],r=-1;for(let e=0;e<t.length;e++)t[e].trim().startsWith(`|`)?r===-1&&(r=e):r!==-1&&(n.push({start:r,end:e-1}),r=-1);if(r!==-1&&n.push({start:r,end:t.length-1}),n.length===0)return e;let{start:i,end:a}=n[n.length-1];t[i].trim().endsWith(`|`)||(t[i]+=` |`);let o=yp(t[i].trim()).length,s=()=>`| `+Array(o).fill(`---`).join(` | `)+` |`,c=a-i>=1?t[i+1].trim():``,l=c.startsWith(`|`)&&(c.includes(`-`)||c.includes(`:`)),u=t[a].trim();if(u.startsWith(`|`)&&(u.includes(`-`)||u.includes(`:`))){let e=bp(u).map(e=>{let t=e.startsWith(`:`),n=e.endsWith(`:`)&&e.length>1,r=e.replace(/^:/,``).replace(/:$/,``);if(t&&n)return r.length<1&&(r=`-`),`:`+r+`:`;if(t)return r.length<1&&(r=`-`),`:`+r;if(n)return r.length<1&&(r=`-`),r+`:`;for(;r.length<3;)r+=`-`;return r});for(;e.length<o;)e.push(`---`);t[a]=`| `+e.join(` | `)+` |`}else if(u.startsWith(`|`)&&!u.endsWith(`|`)){let e=t[i].trim();for(let n=i+(l?2:1);n<a;n++){let r=t[n].trim();if(r.startsWith(`|`)&&r.endsWith(`|`)&&!r.includes(`-`)){e=r;break}}let n=yp(e),r=bp(u),o=r[r.length-1]??``,s=/(?:\*\*?|__?|~~|`|\$)$/.test(o)||/(?:\*\*|__|~~|`)[^\s*_~`]+$/.test(o),c=`| `+r.map((e,t)=>{let r=n[t]||e.length+2;return e+` `.repeat(Math.max(0,r-e.length-2))}).join(` | `);t[a]=s?c:c+` |`}return l||t.splice(i+1,0,s()),t.join(`
18
+ `)}function Sp(e,t={}){if(!e)return e;let n=t.syntax!==!1,r=t.attributes??n,i=t.linkMode??`protocol`,a=t.incompleteLinkPlaceholder??`comark:incomplete-link`,o=t.incompleteImagePlaceholder??`comark:incomplete-image`,s=t.math===!0;t.dropTrailingOpeners===!0&&(e=Dp(e));let c=e.split(`
19
+ `),l=c.length,u=!1,d=!1,f=-1,p=null,m=!1,h=!1,g=[],_=/^<(script|pre|style|textarea)(\s|>|$)/i;for(let e=0;e<l;e++){let r=c[e],i=r.trim();if(p){RegExp(`</${p}\\s*>`,`i`).test(r)&&(p=null);continue}let a=i.match(_);if(a){let e=a[1].toLowerCase();RegExp(`</${e}\\s*>`,`i`).test(r)||(p=e)}else if(Cp(r)){let e=r.trim();if(e.startsWith("```")&&e.endsWith("``")&&!e.endsWith("```")&&!e.slice(3).includes("```"))continue;m=!m}else if(!m){if(s&&i===`$$`)h=!h;else if(e===0&&t.frontmatter&&i===`---`)u=!0;else if(u)i===`---`?u=!1:i&&(d=!0);else if(i===`---`&&g.length>0){let e=g[g.length-1];e.hasYamlProps=!e.hasYamlProps}else{if(i.startsWith(`|`)?f=f===-1?e:f:f!==-1&&(f=-1),e===l-1&&n&&i[0]===`:`&&g.length===0){let t=0;for(;t<i.length&&i[t]===`:`;)t++;i.slice(t).trim()===``&&(c[e]=``)}if(n&&i[0]===`:`){let e=0;for(;e<i.length&&i[e]===`:`;)e++;if(e>=2){let t=0;for(;t<r.length&&(r[t]===` `||r[t]===` `);)t++;let n=r.slice(0,t),a=i[e]??``;if(a>=`a`&&a<=`z`||a>=`A`&&a<=`Z`||a===`$`){let t=e;for(;t<i.length;){let e=i[t];if(!(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`.`||e===`-`||e===`_`))break;t++}g.push({depth:e,name:i.slice(e,t),indent:n,hasYamlProps:!1})}else e===i.length&&g.length>0&&g[g.length-1].depth===e&&g.pop()}}}}}if(!m&&!u&&!h){let e=l-1;for(;e>0&&c[e]===``;)e--;let t=e>=0?c[e]:``,n=t.trim(),u=n.startsWith("```")&&n.endsWith("``")&&!n.endsWith("```");t!==``&&n!==`$$`&&(!Cp(t)||u)&&(c[e]=Op(t,{attributesEnabled:r,linkMode:i,linkPh:a,imagePh:o,math:s}))}let v=c.join(`
20
+ `);if(v=Pp(v),f!==-1&&(v=xp(v)),s&&h&&(v+=v.endsWith(`
21
21
  `)?`$$`:`
22
22
  $$`),u&&d){let e=(v.includes(`
23
23
  `)?v.slice(v.lastIndexOf(`
@@ -27,69 +27,80 @@ $$`),u&&d){let e=(v.includes(`
27
27
  `)+1,t=v.slice(e),n=-1;for(let e=t.length-1;e>=0&&t[e]!==`}`;e--)if(t[e]===`{`){n=e;break}if(n>=0){let e=t.slice(n+1),r=0,i=0;for(let t=0;t<e.length;t++)e[t]===`"`&&r++,e[t]===`'`&&i++;v+=(r%2==1?`"`:``)+(i%2==1?`'`:``)+`}`}if(g.length>0){let e=g[g.length-1],t=v.slice(v.lastIndexOf(`
28
28
  `)+1).trim().replace(/\u200B/g,``);e.hasYamlProps&&(t===`-`||t===`--`)&&(v=v.replace(/\u200B+$/,``)+`-`.repeat(3-t.length),e.hasYamlProps=!1);let n=[];for(;g.length;){let e=g.pop();e.hasYamlProps&&n.push(e.indent+`---`),n.push(e.indent+`:`.repeat(e.depth))}v+=`
29
29
  `+n.join(`
30
- `)}}return v}function Sp(e){let t=0;for(;t<e.length&&(e[t]===` `||e[t]===` `);)t++;let n=e[t];if(n!=="`"&&n!==`~`)return!1;let r=0;for(;t+r<e.length&&e[t+r]===n;)r++;return r>=3}function Cp(e){if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95}function wp(e){return e===``||e===` `||e===` `||e===`
31
- `}var Tp=`*_$:[{!`;function Ep(e){let t=e.length;for(;t>0;){let n=e[t-1];if(n===` `||n===` `||n===`
32
- `||n===`\r`)t--;else break}if(t===0)return e;let n=t;for(;n>0&&Tp.includes(e[n-1])&&!(n>=2&&e[n-2]===`\\`);)n--;if(n===t)return e;let r=n>0?e[n-1]:``;if(r!==``&&r!==` `&&r!==` `&&r!==`
33
- `&&r!==`\r`)return e;let i=n;return i>0&&(e[i-1]===` `||e[i-1]===` `)&&i--,e.slice(0,i)+e.slice(t)}function Dp(e,t){if(e.endsWith(` `)&&!e.endsWith(` `)){let t=e.lastIndexOf(`
34
- `),n=t===-1?e:e.slice(t+1);/^[ \t]*[A-Za-z_][\w.-]*: $/.test(n)||(e=e.slice(0,-1))}let n=e.length,r=[],i=[],a=!1,o=!1,s=!1,c=!1,l=!1,u=!1,d=0,f=0,p=0,m=!1,h=-1,g=0,_=0,v=0,y=(e,t,n)=>{let r=!wp(t)&&i[i.length-1]===e,a=!wp(n);r?i.pop():a&&i.push(e)},b=e=>{i[i.length-1]===e?i.pop():i.push(e)};for(let x=0;x<n;x++){let S=e[x],C=x>0?e[x-1]:``,w=x+1<n?e[x+1]:``;if(S===`
30
+ `)}}return v}function Cp(e){let t=0;for(;t<e.length&&(e[t]===` `||e[t]===` `);)t++;let n=e[t];if(n!=="`"&&n!==`~`)return!1;let r=0;for(;t+r<e.length&&e[t+r]===n;)r++;return r>=3}function wp(e){if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95}function Tp(e){return e===``||e===` `||e===` `||e===`
31
+ `}var Ep=`*_$:[{!`;function Dp(e){let t=e.length;for(;t>0;){let n=e[t-1];if(n===` `||n===` `||n===`
32
+ `||n===`\r`)t--;else break}if(t===0)return e;let n=t;for(;n>0&&Ep.includes(e[n-1])&&!(n>=2&&e[n-2]===`\\`);)n--;if(n===t)return e;let r=n>0?e[n-1]:``;if(r!==``&&r!==` `&&r!==` `&&r!==`
33
+ `&&r!==`\r`)return e;let i=n;return i>0&&(e[i-1]===` `||e[i-1]===` `)&&i--,e.slice(0,i)+e.slice(t)}function Op(e,t){if(e.endsWith(` `)&&!e.endsWith(` `)){let t=e.lastIndexOf(`
34
+ `),n=t===-1?e:e.slice(t+1);/^[ \t]*[A-Za-z_][\w.-]*: $/.test(n)||(e=e.slice(0,-1))}let n=e.length,r=[],i=[],a=!1,o=!1,s=!1,c=!1,l=!1,u=!1,d=0,f=0,p=0,m=!1,h=-1,g=0,_=0,v=0,y=(e,t,n)=>{let r=!Tp(t)&&i[i.length-1]===e,a=!Tp(n);r?i.pop():a&&i.push(e)},b=e=>{i[i.length-1]===e?i.pop():i.push(e)};for(let x=0;x<n;x++){let S=e[x],C=x>0?e[x-1]:``,w=x+1<n?e[x+1]:``;if(S===`
35
35
  `)r.push(S),f=x+1;else{if(x===f||x>0&&e[x-1]===`
36
36
  `){let t=x;for(;t<n&&(e[t]===` `||e[t]===` `);)t++;let i=e[t];if(i==="`"||i===`~`){let o=0;for(;t+o<n&&e[t+o]===i;)o++;if(o>=3){let o=t;for(;o<n&&e[o]!==`
37
37
  `;)o++;let s=e.slice(t,o);if(i==="`"&&s.startsWith("```")&&s.endsWith("``")&&!s.endsWith("```")&&!s.slice(3).includes("```")){for(;x<o;)r.push(e[x]),x++;r.push("`"),x--;continue}for(a=!a;x<n&&e[x]!==`
38
38
  `;)r.push(e[x]),x++;x<n?(r.push(`
39
39
  `),f=x+1):x--;continue}}}if(a)r.push(S);else if(S===`\\`)r.push(S),x+1<n&&r.push(e[++x]);else{if(S===`>`){let t=x;for(;t>0&&e[t-1]!==`
40
- `;)t--;let n=e.slice(t,x);if(/^(\s*(?:[-*+]|\d+[.)]) +)$/.test(n)&&/^=?\s*\$?\d/.test(e.slice(x+1))){r.push(`\\`,`>`);continue}}if(S===`~`&&w!==`~`&&C!==`~`&&Cp(C)&&Cp(w)&&!o&&!s&&!c&&!Pp(e,x))r.push(`\\`,`~`);else if(S===`<`&&(w>=`a`&&w<=`z`||w>=`A`&&w<=`Z`||w===`/`)&&(h=r.length),S===`>`&&(h=-1),o)r.push(S),S==="`"&&w!=="`"&&C!=="`"&&(o=!1,i[i.length-1]==="`"&&i.pop());else if(c)r.push(S),S===`$`&&w===`$`&&(r.push(`$`),x++,c=!1,i[i.length-1]===`$$`&&i.pop());else if(s)r.push(S),S===`$`&&w!==`$`&&(s=!1,i[i.length-1]===`$`&&i.pop());else if(l)r.push(S),S===`\\`&&w===`)`&&(r.push(`)`),x++,l=!1);else if(u)r.push(S),S===`\\`&&w===`]`&&(r.push(`]`),x++,u=!1);else if(t.attributesEnabled&&S===`{`&&C&&C!==` `&&C!==` `&&C!==`
41
- `)d++,r.push(S);else if(t.attributesEnabled&&S===`}`)d>0&&d--,r.push(S);else if(d>0)r.push(S);else if(S===`[`)p++,r.push(S);else if(S===`]`)p>0&&p--,r.push(S),w===`(`&&(m=!0);else if(m)r.push(S),S===`)`&&p===0&&(m=!1);else if(p>0)r.push(S);else if(S==="`"){if(w==="`"&&e[x+2]==="`"){r.push("`","`","`"),x+=2;continue}r.push(S),o=!0,i.push("`")}else if(S===`$`)r.push(S),w===`$`?(r.push(`$`),x++,t.math&&(c=!c,b(`$$`))):t.math&&Fp(e,x)&&(s=!0,i.push(`$`));else if(S===`*`){let t=x;for(;t+1<n&&e[t+1]===`*`;)t++;let a=t-x+1,o=t+1<n?e[t+1]:``,s=wp(C),c=wp(o),l=a===1&&s&&c;for(let e=x;e<=t;e++)r.push(`*`);if(!l){if(a===1&&Cp(C)&&Cp(o)&&g%2==0){x=t;continue}if(g+=a,a===1)y(`*`,C,o);else if(a===2)_++,y(`**`,C,o);else if(a>=3){let r=x;for(;r>0&&e[r-1]!==`
40
+ `;)t--;let n=e.slice(t,x);if(/^(\s*(?:[-*+]|\d+[.)]) +)$/.test(n)&&/^=?\s*\$?\d/.test(e.slice(x+1))){r.push(`\\`,`>`);continue}}if(S===`~`&&w!==`~`&&C!==`~`&&wp(C)&&wp(w)&&!o&&!s&&!c&&!Fp(e,x))r.push(`\\`,`~`);else if(S===`<`&&(w>=`a`&&w<=`z`||w>=`A`&&w<=`Z`||w===`/`)&&(h=r.length),S===`>`&&(h=-1),o)r.push(S),S==="`"&&w!=="`"&&C!=="`"&&(o=!1,i[i.length-1]==="`"&&i.pop());else if(c)r.push(S),S===`$`&&w===`$`&&(r.push(`$`),x++,c=!1,i[i.length-1]===`$$`&&i.pop());else if(s)r.push(S),S===`$`&&w!==`$`&&(s=!1,i[i.length-1]===`$`&&i.pop());else if(l)r.push(S),S===`\\`&&w===`)`&&(r.push(`)`),x++,l=!1);else if(u)r.push(S),S===`\\`&&w===`]`&&(r.push(`]`),x++,u=!1);else if(t.attributesEnabled&&S===`{`&&C&&C!==` `&&C!==` `&&C!==`
41
+ `)d++,r.push(S);else if(t.attributesEnabled&&S===`}`)d>0&&d--,r.push(S);else if(d>0)r.push(S);else if(S===`[`)p++,r.push(S);else if(S===`]`)p>0&&p--,r.push(S),w===`(`&&(m=!0);else if(m)r.push(S),S===`)`&&p===0&&(m=!1);else if(p>0)r.push(S);else if(S==="`"){if(w==="`"&&e[x+2]==="`"){r.push("`","`","`"),x+=2;continue}r.push(S),o=!0,i.push("`")}else if(S===`$`)r.push(S),w===`$`?(r.push(`$`),x++,t.math&&(c=!c,b(`$$`))):t.math&&Ip(e,x)&&(s=!0,i.push(`$`));else if(S===`*`){let t=x;for(;t+1<n&&e[t+1]===`*`;)t++;let a=t-x+1,o=t+1<n?e[t+1]:``,s=Tp(C),c=Tp(o),l=a===1&&s&&c;for(let e=x;e<=t;e++)r.push(`*`);if(!l){if(a===1&&wp(C)&&wp(o)&&g%2==0){x=t;continue}if(g+=a,a===1)y(`*`,C,o);else if(a===2)_++,y(`**`,C,o);else if(a>=3){let r=x;for(;r>0&&e[r-1]!==`
42
42
  `;)r--;let c=t+1;for(;c<n&&e[c]!==`
43
- `;)c++;let l=e.slice(r,c),u=!0;for(let e=0;e<l.length;e++){let t=l[e];if(t!==`*`&&t!==` `&&t!==` `){u=!1;break}}if(u){x=t;continue}if(a===3){let e=i.includes(`*`),t=i.includes(`**`);if(e&&t&&!s){for(let e=i.length-1;e>=0;e--)(i[e]===`*`||i[e]===`**`)&&i.splice(e,1);_++}else v++,y(`***`,C,o)}else{let e=Math.floor(a/2);for(let t=0;t<e;t++)_++,y(`**`,C,o);a%2==1&&y(`*`,C,o)}x=t;continue}}x=t}else if(S===`_`){let t=x;for(;t+1<n&&e[t+1]===`_`;)t++;let i=t-x+1,a=t+1<n?e[t+1]:``,o=wp(C)&&wp(a);for(let e=x;e<=t;e++)r.push(`_`);if(i>=3){let r=x;for(;r>0&&e[r-1]!==`
43
+ `;)c++;let l=e.slice(r,c),u=!0;for(let e=0;e<l.length;e++){let t=l[e];if(t!==`*`&&t!==` `&&t!==` `){u=!1;break}}if(u){x=t;continue}if(a===3){let e=i.includes(`*`),t=i.includes(`**`);if(e&&t&&!s){for(let e=i.length-1;e>=0;e--)(i[e]===`*`||i[e]===`**`)&&i.splice(e,1);_++}else v++,y(`***`,C,o)}else{let e=Math.floor(a/2);for(let t=0;t<e;t++)_++,y(`**`,C,o);a%2==1&&y(`*`,C,o)}x=t;continue}}x=t}else if(S===`_`){let t=x;for(;t+1<n&&e[t+1]===`_`;)t++;let i=t-x+1,a=t+1<n?e[t+1]:``,o=Tp(C)&&Tp(a);for(let e=x;e<=t;e++)r.push(`_`);if(i>=3){let r=x;for(;r>0&&e[r-1]!==`
44
44
  `;)r--;let i=t+1;for(;i<n&&e[i]!==`
45
- `;)i++;let a=e.slice(r,i),o=!0;for(let e=0;e<a.length;e++){let t=a[e];if(t!==`_`&&t!==` `&&t!==` `){o=!1;break}}if(o){x=t;continue}}if(!(Cp(C)&&Cp(a))&&!o){if(i===1)y(`_`,C,a);else if(i>=2){let e=Math.floor(i/2);for(let t=0;t<e;t++)y(`__`,C,a);i%2==1&&y(`_`,C,a)}}x=t}else if(S===`~`){let t=x;for(;t+1<n&&e[t+1]===`~`;)t++;let i=t-x+1,a=t+1<n?e[t+1]:``,o=wp(C)&&wp(a);for(let e=x;e<=t;e++)r.push(`~`);if(!o&&i>=2){let e=Math.floor(i/2);for(let t=0;t<e;t++)y(`~~`,C,a)}x=t}else r.push(S)}}}let x=r.join(``);h>=0&&(x=Op(x));let S=jp(x,t);if(S!==x){if(t.linkMode===`protocol`&&(S.endsWith(`](${t.linkPh})`)||S.endsWith(`](${t.imagePh})`)))return S;x=S}if(i.length===0||kp(x))return x;if(o){let e=x.lastIndexOf("`");if((e>=0?x.slice(e+1):``).length>0){let e=-1;for(let t=0;t<i.length;t++)i[t]==="`"&&(e=t);let t=``;if(e>0)for(let n=e-1;n>=0;n--){let e=i[n];(e===`**`||e===`*`||e===`__`||e===`_`||e===`~~`||e===`***`)&&(t+=e)}for(let n=i.length-1;n>e;n--){let e=i[n];(e===`**`||e===`*`||e===`__`||e===`_`||e===`~~`||e===`***`)&&(t+=e)}return x+t+"`"}return x}return x=Ap(x,i,{asteriskTotal:g,doubleAsteriskCount:_,tripleCount:v}),x}function Op(e){for(let t=e.length-1;t>=0;t--){if(e[t]===`>`||e[t]===`
46
- `)return e;if(e[t]===`<`){let n=e[t+1]??``;return n>=`a`&&n<=`z`||n>=`A`&&n<=`Z`||n===`/`?e.slice(0,t).replace(/[ \t]+$/,``):e}}return e}function kp(e){let t=e.lastIndexOf(`
47
- `),n=(t===-1?e:e.slice(t+1)).trim();return n?!!(n===`*`||n===`**`||n===`***`||n===`****`||n===`_`||n===`__`||n===`___`||n===`~`||n===`~~`||n==="`"||/^\*{3,}$/.test(n)||/^_{3,}$/.test(n)||/^-{3,}$/.test(n)):!1}function Ap(e,t,n){if(/\*\*\*[^*]+\*{1,2}$/.test(e)&&!/\*{3}$/.test(e)){let r=e.match(/\*+$/)?.[0].length??0;if(r>=1&&r<=2&&(t.includes(`***`)||n.tripleCount%2==1))return e+`*`.repeat(3-r)}if(/\*\*[^*]+\*$/.test(e)&&t.includes(`**`)&&!t.includes(`***`))return e+`*`;if(/__[^_]+_$/.test(e)&&t.includes(`__`))return e+`_`;if(/~~[^~]+~$/.test(e)&&t.includes(`~~`))return e+`~`;let r=n.doubleAsteriskCount>=2&&n.doubleAsteriskCount%2==0&&n.asteriskTotal%2==0,i=t.slice();r&&(i=i.filter(e=>e!==`***`&&e!==`**`&&e!==`*`));let a=[];for(let t=i.length-1;t>=0;t--){let n=i[t];if(n===`$$`){a.push(`$$`);continue}if(n===`$`){a.push(`$`);continue}if(n==="`")continue;let r=n,o=e.lastIndexOf(r);o<0||Ip(e.slice(o+r.length))&&a.push(n)}if(a.length===0)return e;if(a.includes(`*`)||a.includes(`**`)||a.includes(`***`)){let e=null;for(let t of a)if(t===`*`||t===`**`||t===`***`){e=t;break}if(e===`*`&&a.includes(`**`)&&!a.includes(`***`)&&a[0]===`*`)for(let e=a.length-1;e>=0;e--)(a[e]===`**`||a[e]===`***`)&&a.splice(e,1)}let o=``;for(let t of a)if(t===`$$`){if(e.endsWith(`$`)&&!e.endsWith(`$$`))o+=`$`;else{let t=e.indexOf(`$$`),n=t!==-1&&e.indexOf(`
45
+ `;)i++;let a=e.slice(r,i),o=!0;for(let e=0;e<a.length;e++){let t=a[e];if(t!==`_`&&t!==` `&&t!==` `){o=!1;break}}if(o){x=t;continue}}if(!(wp(C)&&wp(a))&&!o){if(i===1)y(`_`,C,a);else if(i>=2){let e=Math.floor(i/2);for(let t=0;t<e;t++)y(`__`,C,a);i%2==1&&y(`_`,C,a)}}x=t}else if(S===`~`){let t=x;for(;t+1<n&&e[t+1]===`~`;)t++;let i=t-x+1,a=t+1<n?e[t+1]:``,o=Tp(C)&&Tp(a);for(let e=x;e<=t;e++)r.push(`~`);if(!o&&i>=2){let e=Math.floor(i/2);for(let t=0;t<e;t++)y(`~~`,C,a)}x=t}else r.push(S)}}}let x=r.join(``);h>=0&&(x=kp(x));let S=Mp(x,t);if(S!==x){if(t.linkMode===`protocol`&&(S.endsWith(`](${t.linkPh})`)||S.endsWith(`](${t.imagePh})`)))return S;x=S}if(i.length===0||Ap(x))return x;if(o){let e=x.lastIndexOf("`");if((e>=0?x.slice(e+1):``).length>0){let e=-1;for(let t=0;t<i.length;t++)i[t]==="`"&&(e=t);let t=``;if(e>0)for(let n=e-1;n>=0;n--){let e=i[n];(e===`**`||e===`*`||e===`__`||e===`_`||e===`~~`||e===`***`)&&(t+=e)}for(let n=i.length-1;n>e;n--){let e=i[n];(e===`**`||e===`*`||e===`__`||e===`_`||e===`~~`||e===`***`)&&(t+=e)}return x+t+"`"}return x}return x=jp(x,i,{asteriskTotal:g,doubleAsteriskCount:_,tripleCount:v}),x}function kp(e){for(let t=e.length-1;t>=0;t--){if(e[t]===`>`||e[t]===`
46
+ `)return e;if(e[t]===`<`){let n=e[t+1]??``;return n>=`a`&&n<=`z`||n>=`A`&&n<=`Z`||n===`/`?e.slice(0,t).replace(/[ \t]+$/,``):e}}return e}function Ap(e){let t=e.lastIndexOf(`
47
+ `),n=(t===-1?e:e.slice(t+1)).trim();return n?!!(n===`*`||n===`**`||n===`***`||n===`****`||n===`_`||n===`__`||n===`___`||n===`~`||n===`~~`||n==="`"||/^\*{3,}$/.test(n)||/^_{3,}$/.test(n)||/^-{3,}$/.test(n)):!1}function jp(e,t,n){if(/\*\*\*[^*]+\*{1,2}$/.test(e)&&!/\*{3}$/.test(e)){let r=e.match(/\*+$/)?.[0].length??0;if(r>=1&&r<=2&&(t.includes(`***`)||n.tripleCount%2==1))return e+`*`.repeat(3-r)}if(/\*\*[^*]+\*$/.test(e)&&t.includes(`**`)&&!t.includes(`***`))return e+`*`;if(/__[^_]+_$/.test(e)&&t.includes(`__`))return e+`_`;if(/~~[^~]+~$/.test(e)&&t.includes(`~~`))return e+`~`;let r=n.doubleAsteriskCount>=2&&n.doubleAsteriskCount%2==0&&n.asteriskTotal%2==0,i=t.slice();r&&(i=i.filter(e=>e!==`***`&&e!==`**`&&e!==`*`));let a=[];for(let t=i.length-1;t>=0;t--){let n=i[t];if(n===`$$`){a.push(`$$`);continue}if(n===`$`){a.push(`$`);continue}if(n==="`")continue;let r=n,o=e.lastIndexOf(r);o<0||Lp(e.slice(o+r.length))&&a.push(n)}if(a.length===0)return e;if(a.includes(`*`)||a.includes(`**`)||a.includes(`***`)){let e=null;for(let t of a)if(t===`*`||t===`**`||t===`***`){e=t;break}if(e===`*`&&a.includes(`**`)&&!a.includes(`***`)&&a[0]===`*`)for(let e=a.length-1;e>=0;e--)(a[e]===`**`||a[e]===`***`)&&a.splice(e,1)}let o=``;for(let t of a)if(t===`$$`){if(e.endsWith(`$`)&&!e.endsWith(`$$`))o+=`$`;else{let t=e.indexOf(`$$`),n=t!==-1&&e.indexOf(`
48
48
  `,t)!==-1;o+=n&&!e.endsWith(`
49
49
  `)?`
50
50
  $$`:`$$`}}else o+=t;if(e.endsWith(` `)&&!e.endsWith(` `))return e.slice(0,-1)+o;let s=e.length;for(;s>0&&e[s-1]===`
51
- `;)s--;return s<e.length?e.slice(0,s)+o+e.slice(s):e+o}function jp(e,t){let n=e.lastIndexOf(`](`);if(n!==-1&&!e.slice(n+2).includes(`)`)&&!Mp(e,n)){let r=1,i=-1;for(let t=n-1;t>=0;t--)if(e[t]===`]`)r++;else if(e[t]===`[`&&(r--,r===0)){i=t;break}if(i>=0&&!Mp(e,i)){let r=i>0&&e[i-1]===`!`,a=r?i-1:i,o=e.slice(0,a),s=e.slice(i+1,n);return r?`${o}![${s}](${t.imagePh})`:t.linkMode===`text-only`?o+s:`${o}[${s}](${t.linkPh})`}}for(let n=e.length-1;n>=0;n--){if(e[n]!==`[`||Mp(e,n))continue;let r=n>0&&e[n-1]===`!`,i=1,a=-1;for(let t=n+1;t<e.length;t++)if(e[t]===`[`)i++;else if(e[t]===`]`&&(i--,i===0)){a=t;break}if(a===-1){let i=r?n-1:n,a=e.slice(0,i);return r?`${a}![${e.slice(n+1)}](${t.imagePh})`:t.linkMode===`text-only`?e.slice(0,n)+e.slice(n+1):`${e}](${t.linkPh})`}if(r&&(a===e.length-1||e[a+1]!==`(`)&&e.slice(a+1).trim()===``)return`${e.slice(0,n-1)}![${e.slice(n+1,a)}](${t.imagePh})`}return e}function Mp(e,t){let n=!1,r=0;for(;r<t;){if(r===0||e[r-1]===`
51
+ `;)s--;return s<e.length?e.slice(0,s)+o+e.slice(s):e+o}function Mp(e,t){let n=e.lastIndexOf(`](`);if(n!==-1&&!e.slice(n+2).includes(`)`)&&!Np(e,n)){let r=1,i=-1;for(let t=n-1;t>=0;t--)if(e[t]===`]`)r++;else if(e[t]===`[`&&(r--,r===0)){i=t;break}if(i>=0&&!Np(e,i)){let r=i>0&&e[i-1]===`!`,a=r?i-1:i,o=e.slice(0,a),s=e.slice(i+1,n);return r?`${o}![${s}](${t.imagePh})`:t.linkMode===`text-only`?o+s:`${o}[${s}](${t.linkPh})`}}for(let n=e.length-1;n>=0;n--){if(e[n]!==`[`||Np(e,n))continue;let r=n>0&&e[n-1]===`!`,i=1,a=-1;for(let t=n+1;t<e.length;t++)if(e[t]===`[`)i++;else if(e[t]===`]`&&(i--,i===0)){a=t;break}if(a===-1){let i=r?n-1:n,a=e.slice(0,i);return r?`${a}![${e.slice(n+1)}](${t.imagePh})`:t.linkMode===`text-only`?e.slice(0,n)+e.slice(n+1):`${e}](${t.linkPh})`}if(r&&(a===e.length-1||e[a+1]!==`(`)&&e.slice(a+1).trim()===``)return`${e.slice(0,n-1)}![${e.slice(n+1,a)}](${t.imagePh})`}return e}function Np(e,t){let n=!1,r=0;for(;r<t;){if(r===0||e[r-1]===`
52
52
  `){let t=r;for(;t<e.length&&(e[t]===` `||e[t]===` `);)t++;let i=e[t];if(i==="`"||i===`~`){let a=0;for(;t+a<e.length&&e[t+a]===i;)a++;if(a>=3){for(n=!n;r<e.length&&e[r]!==`
53
- `;)r++;r<e.length&&r++;continue}}}r++}return n}function Np(e){let t=e.lastIndexOf(`
53
+ `;)r++;r<e.length&&r++;continue}}}r++}return n}function Pp(e){let t=e.lastIndexOf(`
54
54
  `);if(t===-1)return e;let n=e.slice(t+1),r=n.trim();if(!/^(-{1,2}|={1,2})$/.test(r)||/\s$/.test(n)&&n!==r)return e;let i=e.slice(0,t),a=i.lastIndexOf(`
55
- `),o=(a===-1?i:i.slice(a+1)).trim();return!o||o===`---`||/^[A-Za-z_][\w.-]*\s*:/.test(o)?e:e+`​`}function Pp(e,t){let n=t=>{if(e[t]!==`~`)return!1;let n=t>0?e[t-1]:``,r=t+1<e.length?e[t+1]:``;return n!==`~`&&r!==`~`},r=(t,n)=>{if(n-t<1)return!1;for(let r=t;r<n;r++){let t=e[r];if(t===`~`||t===` `||t===` `||t===`
55
+ `),o=(a===-1?i:i.slice(a+1)).trim();return!o||o===`---`||/^[A-Za-z_][\w.-]*\s*:/.test(o)?e:e+`​`}function Fp(e,t){let n=t=>{if(e[t]!==`~`)return!1;let n=t>0?e[t-1]:``,r=t+1<e.length?e[t+1]:``;return n!==`~`&&r!==`~`},r=(t,n)=>{if(n-t<1)return!1;for(let r=t;r<n;r++){let t=e[r];if(t===`~`||t===` `||t===` `||t===`
56
56
  `||t===`\r`)return!1}return!0};for(let i=t-1;i>=0&&e[i]!==`
57
- `;i--)if(e[i]===`~`)return!n(i)||!Cp(i>0?e[i-1]:``)||!Cp(t+1<e.length?e[t+1]:``)?!1:r(i+1,t);for(let i=t+1;i<e.length&&e[i]!==`
58
- `;i++)if(e[i]===`~`)return!n(i)||!Cp(t>0?e[t-1]:``)||!Cp(i+1<e.length?e[i+1]:``)?!1:r(t+1,i);return!1}function Fp(e,t){let n=t+1<e.length?e[t+1]:``;return!(!n||n===` `||n===` `||n===`
59
- `||n>=`0`&&n<=`9`||(t>0?e[t-1]:``)===`:`)}function Ip(e){for(let t=0;t<e.length;t++){let n=e[t];if(n!==` `&&n!==` `&&n!==`
60
- `&&n!==`\r`&&n!==`*`&&n!==`_`&&n!==`~`&&n!=="`")return!0}return!1}function Lp(e){if(typeof e==`string`||e.length<2)return e;let[t,n,...r]=e,i=r.filter(e=>typeof e!=`string`||e&&e.trim());if(i.length===0)return e;if(i.length>1||typeof i[0]==`string`||i[0][0]!==`p`)return[t,n,...r.map(e=>Lp(e))];let a=i[0][1];return[t,a&&Object.keys(a).length>0?{...a,...n}:n,...i[0].slice(2)]}var Rp=Object.defineProperty,zp=(e,t)=>{let n={};for(var r in e)Rp(n,r,{get:e[r],enumerable:!0});return t&&Rp(n,Symbol.toStringTag,{value:`Module`}),n},Bp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Vp=String.fromCodePoint??(e=>{let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function Hp(e){return e>=55296&&e<=57343||e>1114111?65533:Bp.get(e)??e}function Up(e){let t=typeof atob==`function`?atob(e):typeof Buffer.from==`function`?Buffer.from(e,`base64`).toString(`binary`):new Buffer(e,`base64`).toString(`binary`),n=t.length&-2,r=new Uint16Array(n/2);for(let e=0,i=0;e<n;e+=2){let n=t.charCodeAt(e),a=t.charCodeAt(e+1);r[i++]=n|a<<8}return r}var Wp=Up(`QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLA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ER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(Kp||={});var qp=32;function Jp(e){return e>=Kp.ZERO&&e<=Kp.NINE}function Yp(e){return e>=Kp.UPPER_A&&e<=Kp.UPPER_F||e>=Kp.LOWER_A&&e<=Kp.LOWER_F}function Xp(e){return e>=Kp.UPPER_A&&e<=Kp.UPPER_Z||e>=Kp.LOWER_A&&e<=Kp.LOWER_Z||Jp(e)}function Zp(e){return e===Kp.EQUALS||Xp(e)}var Qp;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(Qp||={});var $p;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})($p||={});var em=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Qp.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$p.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=Qp.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case Qp.EntityStart:return e.charCodeAt(t)===Kp.NUM?(this.state=Qp.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Qp.NamedEntity,this.stateNamedEntity(e,t));case Qp.NumericStart:return this.stateNumericStart(e,t);case Qp.NumericDecimal:return this.stateNumericDecimal(e,t);case Qp.NumericHex:return this.stateNumericHex(e,t);case Qp.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|qp)===Kp.LOWER_X?(this.state=Qp.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Qp.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(Jp(n)||Yp(n)){let e=n<=Kp.NINE?n-Kp.ZERO:(n|qp)-Kp.LOWER_A+10;this.result=this.result*16+e,this.consumed++,t++}else return this.emitNumericEntity(n,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(Jp(n))this.result=this.result*10+(n-Kp.ZERO),this.consumed++,t++;else return this.emitNumericEntity(n,2)}return-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Kp.SEMI)this.consumed+=1;else if(this.decodeMode===$p.Strict)return 0;return this.emitCodePoint(Hp(this.result),this.consumed),this.errors&&(e!==Kp.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&Gp.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(r&Gp.FLAG13)!==0){let a=(r&Gp.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let n=r&Gp.JUMP_TABLE;if(e.charCodeAt(t)!==n)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return-1;let r=this.runConsumed-1,i=n[this.treeIndex+1+(r>>1)],a=r%2==0?i&255:i>>8&255;if(e.charCodeAt(t)!==a)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),r=n[this.treeIndex],i=(r&Gp.VALUE_LENGTH)>>14}if(t>=e.length)break;let a=e.charCodeAt(t);if(a===Kp.SEMI&&i!==0&&(r&Gp.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=nm(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===$p.Attribute&&(i===0||Zp(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&Gp.VALUE_LENGTH)>>14,i!==0){if(a===Kp.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==$p.Strict&&(r&Gp.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Gp.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~(Gp.VALUE_LENGTH|Gp.FLAG13):r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Qp.NamedEntity:return this.result!==0&&(this.decodeMode!==$p.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qp.NumericDecimal:return this.emitNumericEntity(0,2);case Qp.NumericHex:return this.emitNumericEntity(0,3);case Qp.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qp.EntityStart:return 0}}};function tm(e){let t=``,n=new em(e,e=>t+=Vp(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function nm(e,t,n,r){let i=(t&Gp.BRANCH_LENGTH)>>7,a=t&Gp.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=i+1>>1,s=0,c=i-1;for(;s<=c;){let t=s+c>>>1,i=e[n+(t>>1)]>>(t&1)*8&255;if(i<r)s=t+1;else if(i>r)c=t-1;else return e[n+o+t]}return-1}var rm=tm(Wp);function im(e,t=$p.Legacy){return rm(e,t)}function am(e){return rm(e,$p.Strict)}var om={};function sm(e){let t=om[e];if(t)return t;t=om[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function cm(e,t){typeof t!=`string`&&(t=cm.defaultChars);let n=sm(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128)t+=n[a];else{if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;t+=e<128?`��`:String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;t+=e<2048||e>=55296&&e<=57343?`���`:String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}}return t})}cm.defaultChars=`;/?:@&=+$,#`,cm.componentChars=``;var lm={};function um(e){let t=lm[e];if(t)return t;t=lm[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function dm(e,t,n){typeof t!=`string`&&(n=t,t=dm.defaultChars),n===void 0&&(n=!0);let r=um(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))i+=e.slice(t,t+3),t+=2;else if(o<128)i+=r[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`}else i+=encodeURIComponent(e[t])}return i}dm.defaultChars=`;/?:@&=+$,-_.!~*'()#`,dm.componentChars=`-_.!~*'()`;function fm(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function pm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var mm=/^([a-z0-9.+-]+:)/i,hm=/:[0-9]*$/,gm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_m=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
61
- `,` `],vm=[`/`,`?`,`#`],ym=255,bm=/^[+a-z0-9A-Z_-]{0,63}$/,xm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Sm={javascript:!0,"javascript:":!0},Cm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function wm(e,t){if(e&&e instanceof pm)return e;let n=new pm;return n.parse(e,t),n}pm.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=gm.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=mm.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Sm[o])&&(a=a.substr(2),this.slashes=!0)),!Sm[o]&&(i||o&&!Cm[o])){let e=-1;for(let t=0;t<vm.length;t++)r=a.indexOf(vm[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<_m.length;t++)r=a.indexOf(_m[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(bm)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(bm)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(xm);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>ym&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),Cm[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},pm.prototype.parseHost=function(e){let t=hm.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Tm=e({decode:()=>cm,encode:()=>dm,format:()=>fm,parse:()=>wm}),Em=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Dm=/[\0-\x1F\x7F-\x9F]/,Om=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,km=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Am=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,jm=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Mm=e({Any:()=>Em,Cc:()=>Dm,Cf:()=>Om,P:()=>km,S:()=>Am,Z:()=>jm});function Nm(e){let t={};e||={},t.src_Any=Em.source,t.src_Cc=Dm.source,t.src_Z=jm.source,t.src_P=km.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Pm(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Fm(e){return Object.prototype.toString.call(e)}function Im(e){return Fm(e)===`[object String]`}function Lm(e){return Fm(e)===`[object Object]`}function Rm(e){return Fm(e)===`[object RegExp]`}function zm(e){return Fm(e)===`[object Function]`}function Bm(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Vm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Hm(e){return Object.keys(e||{}).reduce(function(e,t){return e||Vm.hasOwnProperty(t)},!1)}var Um={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Wm=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Gm=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Km(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function qm(){return function(e,t){t.normalize(e)}}function Jm(e){let t=e.re=Nm(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Wm),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,Lm(n)?(Rm(n.validate)?r.validate=Km(n.validate):zm(n.validate)?r.validate=n.validate:a(t,n),zm(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=qm()):Im(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:qm()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Bm).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Ym(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Xm(e,t){if(!(this instanceof Xm))return new Xm(e,t);t||Hm(e)&&(t=e,e={}),this.__opts__=Pm({},Vm,t),this.__schemas__=Pm({},Um,e),this.__compiled__={},this.__tlds__=Gm,this.__tlds_replaced__=!1,this.re={},Jm(this)}Xm.prototype.add=function(e,t){return this.__schemas__[e]=t,Jm(this),this},Xm.prototype.set=function(e){return this.__opts__=Pm(this.__opts__,e),this},Xm.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Xm.prototype.pretest=function(e){return this.re.pretest.test(e)},Xm.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Xm.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Ym(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},Xm.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Ym(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},Xm.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Jm(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Jm(this),this)},Xm.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},Xm.prototype.onCompile=function(){};var Zm=2147483647,Qm=36,$m=1,eh=26,th=38,nh=700,rh=72,ih=128,ah=`-`,oh=/^xn--/,sh=/[^\0-\x7F]/,ch=/[\x2E\u3002\uFF0E\uFF61]/g,lh={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},uh=35,dh=Math.floor,fh=String.fromCharCode;function ph(e){throw RangeError(lh[e])}function mh(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function hh(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(ch,`.`);let i=mh(e.split(`.`),t).join(`.`);return r+i}function gh(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var _h=e=>String.fromCodePoint(...e),vh=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Qm},yh=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},bh=function(e,t,n){let r=0;for(e=n?dh(e/nh):e>>1,e+=dh(e/t);e>455;r+=Qm)e=dh(e/uh);return dh(r+36*e/(e+th))},xh=function(e){let t=[],n=e.length,r=0,i=ih,a=rh,o=e.lastIndexOf(ah);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&ph(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Qm;;i+=Qm){s>=n&&ph(`invalid-input`);let o=vh(e.charCodeAt(s++));o>=Qm&&ph(`invalid-input`),o>dh((Zm-r)/t)&&ph(`overflow`),r+=o*t;let c=i<=a?$m:i>=a+eh?eh:i-a;if(o<c)break;let l=Qm-c;t>dh(Zm/l)&&ph(`overflow`),t*=l}let c=t.length+1;a=bh(r-o,c,o==0),dh(r/c)>Zm-i&&ph(`overflow`),i+=dh(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Sh=function(e){let t=[];e=gh(e);let n=e.length,r=ih,i=0,a=rh;for(let n of e)n<128&&t.push(fh(n));let o=t.length,s=o;for(o&&t.push(ah);s<n;){let n=Zm;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>dh((Zm-i)/c)&&ph(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Zm&&ph(`overflow`),n===r){let e=i;for(let n=Qm;;n+=Qm){let r=n<=a?$m:n>=a+eh?eh:n-a;if(e<r)break;let i=e-r,o=Qm-r;t.push(fh(yh(r+i%o,0))),e=dh(i/o)}t.push(fh(yh(e,0))),a=bh(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},Ch={version:`2.3.1`,ucs2:{decode:gh,encode:_h},decode:xh,encode:Sh,toASCII:function(e){return hh(e,function(e){return sh.test(e)?`xn--`+Sh(e):e})},toUnicode:function(e){return hh(e,function(e){return oh.test(e)?xh(e.slice(4).toLowerCase()):e})}},wh=zp({arrayReplaceAt:()=>kh,asciiTrim:()=>Qh,assign:()=>Oh,escapeHtml:()=>Hh,escapeRE:()=>Wh,fromCodePoint:()=>jh,has:()=>Dh,isMdAsciiPunct:()=>Yh,isPromiseLike:()=>$h,isPunctChar:()=>qh,isPunctCharCode:()=>Jh,isSpace:()=>Gh,isString:()=>Th,isValidEntityCode:()=>Ah,isWhiteSpace:()=>Kh,lib:()=>eg,normalizeReference:()=>Xh,unescapeAll:()=>Lh,unescapeMd:()=>Ih});function Th(e){return typeof e==`string`}var Eh=Object.prototype.hasOwnProperty;function Dh(e,t){return Eh.call(e,t)}function Oh(e,...t){for(let n of t)if(n){if(typeof n!=`object`)throw TypeError(`source must be object`);Object.assign(e,n)}return e}function kh(e,t,n){return e.slice(0,t).concat(n,e.slice(t+1))}function Ah(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function jh(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Mh=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Nh=RegExp(`${Mh.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),Ph=/^#(x[a-f0-9]{1,8}|\d{1,8})$/i;function Fh(e,t){if(t.charCodeAt(0)===35&&Ph.test(t)){let n=t[1].toLowerCase()===`x`?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return Ah(n)?jh(n):e}let n=im(e);return n===e?e:n}function Ih(e){return e.includes(`\\`)?e.replace(Mh,`$1`):e}function Lh(e){return!e.includes(`\\`)&&!e.includes(`&`)?e:e.replace(Nh,(e,t,n)=>t||Fh(e,n))}var Rh=/[&<>"]/,zh=/[&<>"]/g,Bh={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`};function Vh(e){return Bh[e]}function Hh(e){return Rh.test(e)?e.replace(zh,Vh):e}var Uh=/[.?*+^$[\]\\(){}|-]/g;function Wh(e){return e.replace(Uh,`\\$&`)}function Gh(e){switch(e){case 9:case 32:return!0}return!1}function Kh(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function qh(e){return km.test(e)||Am.test(e)}function Jh(e){return qh(jh(e))}function Yh(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Xh(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function Zh(e){return e===32||e===9||e===10||e===13}function Qh(e){let t=0;for(;t<e.length&&Zh(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Zh(e.charCodeAt(n));n--);return e.slice(t,n+1)}function $h(e){return typeof e?.then==`function`}var eg={mdurl:Tm,ucmicro:Mm},tg=class{type;tag;attrs=null;map=null;nesting;level=0;children=null;content=``;markup=``;info=``;meta=null;block=!1;hidden=!1;constructor(e,t,n){this.type=e,this.tag=t,this.nesting=n}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},ng=class{src;md;env;tokens;bMarks=[];eMarks=[];tShift=[];sCount=[];bsCount=[];blkIndent=0;line=0;lineMax=0;tight=!1;ddIndent=-1;listIndent=-1;parentType=`root`;level=0;Token=tg;constructor(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src,a=i.length;for(let e=0;e<a;){let t=i.indexOf(`
62
- `,e),n=t===-1?a:t,r=0,o=0,s=e;for(;s<n;){let e=i.charCodeAt(s);if(Gh(e))r++,o+=e===9?4-o%4:1,s++;else break}this.bMarks.push(e),this.eMarks.push(n),this.tShift.push(r),this.sCount.push(o),this.bsCount.push(0),e=n+1}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){let r=new tg(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){let t=this.src;for(let n=t.length;e<n&&Gh(t.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;let n=this.src;for(;e>t;)if(!Gh(n.charCodeAt(--e)))return e+1;return e}skipChars(e,t){let n=this.src;for(let r=n.length;e<r&&n.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;let r=this.src;for(;e>n;)if(t!==r.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;let i=Array(t-e),a=this.src;for(let o=0,s=e;s<t;s++,o++){let e=0,c=this.bMarks[s],l=c,u;for(u=s+1<t||r?this.eMarks[s]+1:this.eMarks[s];l<u&&e<n;){let t=a.charCodeAt(l);if(Gh(t))t===9?e+=4-(e+this.bsCount[s])%4:e++;else if(l-c<this.tShift[s])e++;else break;l++}e>n?i[o]=` `.repeat(e-n)+this.src.slice(l,u):i[o]=this.src.slice(l,u)}return i.join(``)}},rg=class{src;env;tokens=[];inlineMode=!1;md;constructor(e,t,n){this.src=e,this.env=n,this.md=t}Token=tg},ig=class{src;env;md;tokens;tokens_meta;pos=0;posMax;level=0;pending=``;pendingLevel=0;cache={};delimiters=[];_prev_delimiters=[];backticks={};backticksScanned=!1;linkLevel=0;constructor(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.posMax=this.src.length}pushPending(){let e=new tg(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e}push(e,t,n){this.pending&&this.pushPending();let r=new tg(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()??[]),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.src,r=this.posMax,i=n.charCodeAt(e),a;if(e===0)a=32;else if(e===1)a=this.src.charCodeAt(0),(a&63488)==55296&&(a=65533);else if(a=this.src.charCodeAt(e-1),(a&64512)==56320){let t=this.src.charCodeAt(e-2);a=(t&64512)==55296?65536+(t-55296<<10)+(a-56320):65533}else(a&64512)==55296&&(a=65533);let o=e;for(;o<r&&n.charCodeAt(o)===i;)o++;let s=o-e,c=o<r?this.src.charCodeAt(o):32;if((c&64512)==55296){let e=this.src.charCodeAt(o+1);c=(e&64512)==56320?65536+(c-55296<<10)+(e-56320):65533}else(c&64512)==56320&&(c=65533);let l=Yh(a)||Jh(a),u=Yh(c)||Jh(c),d=Kh(a),f=Kh(c),p=!f&&(!u||d||l),m=!d&&(!l||f||u);return{can_open:p&&(t||!m||l),can_close:m&&(t||!p||u),length:s}}Token=tg},ag=class{__rules__=[];__cache__=null;__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1}__compile__(){let e=new Set([``]);for(let t of this.__rules__)if(t.enabled)for(let n of t.alt)e.add(n);this.__cache__={};for(let t of e){let e=[];for(let n of this.__rules__)n.enabled&&(!t||n.alt.includes(t))&&e.push(n.fn);this.__cache__[t]=e}}at(e,t,n={}){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null}before(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null}after(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null}push(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null}enable(e,t){Array.isArray(e)||(e=[e]);let n=[];for(let r of e){let e=this.__find__(r);if(e<0){if(t)continue;throw Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[e].enabled=!0,n.push(r)}return this.__cache__=null,n}enableOnly(e,t){Array.isArray(e)||(e=[e]);for(let e of this.__rules__)e.enabled=!1;this.enable(e,t)}disable(e,t){Array.isArray(e)||(e=[e]);let n=[];for(let r of e){let e=this.__find__(r);if(e<0){if(t)continue;throw Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[e].enabled=!1,n.push(r)}return this.__cache__=null,n}getRules(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]}};function og(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(Gh(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function sg(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else if(e.sCount[r]-e.blkIndent>=4)r++,i=r;else break;e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=`${e.getLines(t,i,4+e.blkIndent,!1)}\n`,a.map=[t,e.line],!0}function cg(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.includes(String.fromCharCode(o)))return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function lg(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!Gh(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&Gh(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h${String(s)}`,1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=Qh(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h${String(s)}`,-1);return d.markup=`########`.slice(0,s),!0}function ug(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!Gh(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=String.fromCharCode(o).repeat(s),!0}var dg=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),fg=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,pg=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,mg=RegExp(`^(?:${fg}|${pg}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<\\?[\\s\\S]*?\\?>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),hg=RegExp(`^(?:${fg}|${pg})`),gg=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${dg.join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${hg.source}\\s*$`),/^$/,!1]];function _g(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<gg.length&&!gg[s][0].test(o);s++);if(s===gg.length)return!1;if(r)return gg[s][2];let c=t+1,l=gg[s][1].test(``);if(!gg[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),gg[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function vg(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a||o===void 0)return e.parentType=i,!1;let c=Qh(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h${String(a)}`,1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h${String(a)}`,-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function yg(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!Gh(e.src.charCodeAt(r))?-1:r}function bg(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!Gh(a))?-1:i}function xg(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Sg(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p=bg(e,c);if(p>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if(p=yg(e,c),p>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f.toString()]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=bg(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=yg(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&xg(e,h),!0}function Cg(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=Qh(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}function wg(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!Gh(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!Gh(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&Gh(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&Gh(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Xh(c.slice(1,l));if(!_)return!1;if(r)return!0;e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o;let v=e.push(`reference`,``,0);return v.map=[t,e.line],v.info=_,v.meta={title:g,href:d},!0}var Tg=65536;function Eg(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Dg(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function Og(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!Gh(s)||o===45&&Gh(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!Gh(t))return!1;a++}let c=Eg(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Eg(e,t).trim(),!c.includes(`|`)||e.sCount[t]-e.blkIndent>=4)return!1;l=Dg(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Eg(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=Dg(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>Tg))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}var kg=[[`table`,Og,[`paragraph`,`reference`]],[`code`,sg],[`fence`,cg,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,og,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,ug,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Sg,[`paragraph`,`reference`,`blockquote`]],[`reference`,wg],[`html_block`,_g,[`paragraph`,`reference`,`blockquote`]],[`heading`,lg,[`paragraph`,`reference`,`blockquote`]],[`lheading`,vg],[`paragraph`,Cg]],Ag=class{ruler;constructor(){this.ruler=new ag;for(let e=0;e<kg.length;e++)this.ruler.push(kg[e][0],kg[e][1],{alt:(kg[e][2]||[]).slice()})}tokenize(e,t,n,r){let i=this.ruler.getRules(``),a=i.length,o=e.md.options.maxNesting,s=t,c=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}let t=e.line,r=!1;for(let o=0;o<a;o++)if(r=i[o](e,s,n,!1),r){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!r)throw Error(`none of the block rules matched`);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),s=e.line,s<n&&e.isEmpty(s)&&(c=!0,s++,e.line=s)}}parse(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}State=ng};function jg(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Mg(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Ng(e){return/^<a[>\s]/i.test(e)}function Pg(e){return/^<\/a\s*>/i.test(e)}function Fg(e){if(!e.md.options.linkify)return;let t=e.tokens,n=e.md.linkify;for(let r=0,i=t.length;r<i;r++){if(t[r].type!==`inline`||!n.pretest(t[r].content))continue;let i=t[r].children,a=0;for(let t=i.length-1;t>=0;t--){let r=i[t];if(r.type===`link_close`)for(t--;i[t].level!==r.level&&i[t].type!==`link_open`;)t--;else if(r.type===`html_inline`&&(Ng(r.content)&&a>0&&a--,Pg(r.content)&&a++),!(a>0)&&r.type===`text`){let a=r.content;if(!n.pretest(a))continue;let o=n.match(a);if(!o?.length)continue;let s=[],c=r.level,l=0,u=+(o[0].index===0&&t>0&&i[t-1].type===`text_special`);for(let t=u;t<o.length;t++){let n=o[t],r=e.md.normalizeLink(n.url);if(!e.md.validateLink(r))continue;let i=n.text;i=n.schema?n.schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:${i}`).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://${i}`).replace(/^http:\/\//,``);let u=n.index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=n.lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.splice(t,1,...s)}}}}var Ig=/\r\n?|\n/g,Lg=/\0/g;function Rg(e){let t=e.src,n=t.includes(`\r`),r=t.includes(`\0`);(n||r)&&(n&&(t=t.replace(Ig,`
63
- `)),r&&(t=t.replace(Lg,`�`)),e.src=t)}var zg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Bg=/\((?:c|tm|r)\)/i,Vg=/\((c|tm|r)\)/gi,Hg={c:`©`,r:`®`,tm:`™`};function Ug(e,t){return Hg[t.toLowerCase()]}function Wg(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Vg,Ug)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Gg(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&zg.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Kg(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Bg.test(e.tokens[t].content)&&Wg(e.tokens[t].children),zg.test(e.tokens[t].content)&&Gg(e.tokens[t].children))}var qg=/['"]/,Jg=/['"]/g,Yg=`’`;function Xg(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Zg(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function Qg(e,t){let n,r=[],i={};for(let a=0;a<e.length;a++){let o=e[a],s=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!==`text`)continue;let c=o.content,l=0,u=c.length;OUTER:for(;l<u;){Jg.lastIndex=l;let o=Jg.exec(c);if(!o)break;let d=!0,f=!0;l=o.index+1;let p=o[0]===`'`,m=32;if(o.index-1>=0)m=c.charCodeAt(o.index-1);else for(n=a-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(l<u)h=c.charCodeAt(l);else for(n=a+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=Yh(m)||Jh(m),_=Yh(h)||Jh(h),v=Kh(m),y=Kh(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&o[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f)p&&Xg(i,a,o.index,Yg);else{if(f)for(n=r.length-1;n>=0;n--){let e=r[n];if(r[n].level<s)break;if(e.single===p&&r[n].level===s){e=r[n];let s,c;p?(s=t.md.options.quotes[2],c=t.md.options.quotes[3]):(s=t.md.options.quotes[0],c=t.md.options.quotes[1]),Xg(i,a,o.index,c),Xg(i,e.token,e.pos,s),r.length=n;continue OUTER}}d?r.push({token:a,pos:o.index,single:p,level:s}):f&&p&&Xg(i,a,o.index,Yg)}}}Object.keys(i).forEach(t=>{e[t].content=Zg(e[t].content,i[t])})}function $g(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&qg.test(e.tokens[t].content)&&Qg(e.tokens[t].children,e)}function e_(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var t_=[[`normalize`,Rg],[`block`,jg],[`inline`,Mg],[`linkify`,Fg],[`replacements`,Kg],[`smartquotes`,$g],[`text_join`,e_]],n_=class{ruler;constructor(){this.ruler=new ag;for(let e=0;e<t_.length;e++)this.ruler.push(t_[e][0],t_[e][1])}process(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)}State=rg};function r_(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=Lh(e.slice(t+1,i)),a.ok=!0,a;r===92&&i+1<n?i+=2:i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));)if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2}else{if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0||(a.str=Lh(e.slice(t,i)),a.pos=i,a.ok=!0),a}function i_(e,t,n=!1){let r,i=!1,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function a_(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=Lh(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=Lh(e.slice(t,a)),o}var o_={parseLinkDestination:r_,parseLinkLabel:i_,parseLinkTitle:a_},s_=/^([\w.!#$%&'*+/=?^`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*)$/i,c_=/^([a-z][a-z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/i;function l_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(c_.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(s_.test(a)){let n=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function u_(e,t){let n=e.pos,r=e.src;if(r.charCodeAt(n)!==96)return!1;let i=n;n++;let a=e.posMax;for(;n<a&&r.charCodeAt(n)===96;)n++;let o=r.slice(i,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=o),e.pos+=s,!0;let c=n,l;for(;l=r.indexOf("`",c),l!==-1;){for(c=l+1;c<a&&r.charCodeAt(c)===96;)c++;let i=c-l;if(i===s){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=o,t.content=r.slice(n,l).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=c,!0}e.backticks[i]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}function d_(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function f_(e){let t=e.tokens_meta,n=e.tokens_meta.length;d_(e.delimiters);for(let e=0;e<n;e++){let n=t[e]?.delimiters;n&&d_(n)}}function p_(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function m_(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function h_(e){let t=e.tokens_meta,n=e.tokens_meta.length;m_(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&m_(e,n)}}var g_={tokenize:p_,postProcess:h_},__=/^&#(x[a-f0-9]{1,6}|\d{1,7});/i,v_=/^&([a-z][a-z0-9]{1,31});/i;function y_(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(__);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?Number.parseInt(r[1].slice(1),16):Number.parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Ah(t)?jh(t):jh(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(v_);if(r){let n=am(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}var b_=[];for(let e=0;e<256;e++)b_.push(0);for(let e of`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``))b_[e.charCodeAt(0)]=1;function x_(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),Gh(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\${a}`;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&b_[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function S_(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}function C_(e){return/^<a[>\s]/i.test(e)}function w_(e){return/^<\/a\s*>/i.test(e)}function T_(e){let t=e|32;return t>=97&&t<=122}function E_(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!T_(i))return!1;let a=e.src.slice(r).match(mg);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],C_(t.content)&&e.linkLevel++,w_(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}function D_(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),Gh(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),Gh(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),Gh(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Xh(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}function O_(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),Gh(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),Gh(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),Gh(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Xh(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}var k_=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function A_(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(k_);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function j_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&Gh(e.src.charCodeAt(n));)n++;return e.pos=n,!0}function M_(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function N_(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function P_(e){let t=e.tokens_meta,n=e.tokens_meta.length;N_(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&N_(e,n)}}var F_={tokenize:M_,postProcess:P_};function I_(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function L_(e,t){let n=e.pos,r=e.src;for(;n<e.posMax&&!I_(r.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=r.slice(e.pos,n)),e.pos=n,!0)}var R_=[[`text`,L_],[`linkify`,A_],[`newline`,j_],[`escape`,x_],[`backticks`,u_],[`strikethrough`,F_.tokenize],[`emphasis`,g_.tokenize],[`link`,O_],[`image`,D_],[`autolink`,l_],[`html_inline`,E_],[`entity`,y_]],z_=[[`balance_pairs`,f_],[`strikethrough`,F_.postProcess],[`emphasis`,g_.postProcess],[`fragments_join`,S_]],B_=class{ruler;ruler2;constructor(){this.ruler=new ag;for(let e=0;e<R_.length;e++)this.ruler.push(R_[e][0],R_[e][1]);this.ruler2=new ag;for(let e=0;e<z_.length;e++)this.ruler2.push(z_[e][0],z_[e][1])}skipToken(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache,o=a[t];if(o!==void 0){e.pos=o;return}let s=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,s=n[i](e,!0),e.level--,s){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)}State=ig},V_=/^(vbscript|javascript|file|data):/,H_=/^data:image\/(gif|png|jpeg|webp);/;function U_(e){let t=e.trim().toLowerCase();return!V_.test(t)||H_.test(t)}var W_=[`http:`,`https:`,`mailto:`];function G_(e){let t=wm(e,!0);if(t.hostname&&(!t.protocol||W_.includes(t.protocol)))try{t.hostname=Ch.toASCII(t.hostname)}catch{}return dm(fm(t))}function K_(e){let t=wm(e,!0);if(t.hostname&&(!t.protocol||W_.includes(t.protocol)))try{t.hostname=Ch.toUnicode(t.hostname)}catch{}return cm(fm(t),`${cm.defaultChars}%`)}var q_={html:!1,linkify:!1,typographer:!1,quotes:`“”‘’`,maxNesting:100},J_=class{inline=new B_;block=new Ag;core=new n_;linkify=new Xm;validateLink=U_;normalizeLink=G_;normalizeLinkText=K_;helpers={...o_};options={...q_};parse(e,t={}){if(typeof e!=`string`)throw TypeError(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}parseInline(e,t={}){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}},Y_={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}},X_={options:{...q_,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,highlight:null},components:{core:{},block:{},inline:{}}},Z_={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},Q_={};Q_.code_inline=function(e,t,n,r,i){let a=e[t];return`<code${i.renderAttrs(a)}>${Hh(a.content)}</code>`},Q_.code_block=function(e,t,n,r,i){let a=e[t];return`<pre${i.renderAttrs(a)}><code>${Hh(e[t].content)}</code></pre>\n`},Q_.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Lh(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}function l(e){if(e.indexOf(`<pre`)===0)return`${e}\n`;if(o){let t=a.attrIndex(`class`),r=a.attrs?a.attrs.slice():[];t<0?r.push([`class`,n.langPrefix+s]):(r[t]=r[t].slice(),r[t][1]+=` ${n.langPrefix}${s}`);let o={attrs:r};return`<pre><code${i.renderAttrs(o)}>${e}</code></pre>\n`}return`<pre><code${i.renderAttrs(a)}>${e}</code></pre>\n`}let u=(()=>{if(!n.highlight)return Hh(a.content);let e=n.highlight(a.content,s,c,r);return $h(e)?e.then(e=>e||Hh(a.content)):e||Hh(a.content)})();return $h(u)?u.then(l):l(u)},Q_.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},Q_.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
57
+ `;i--)if(e[i]===`~`)return!n(i)||!wp(i>0?e[i-1]:``)||!wp(t+1<e.length?e[t+1]:``)?!1:r(i+1,t);for(let i=t+1;i<e.length&&e[i]!==`
58
+ `;i++)if(e[i]===`~`)return!n(i)||!wp(t>0?e[t-1]:``)||!wp(i+1<e.length?e[i+1]:``)?!1:r(t+1,i);return!1}function Ip(e,t){let n=t+1<e.length?e[t+1]:``;return!(!n||n===` `||n===` `||n===`
59
+ `||n>=`0`&&n<=`9`||(t>0?e[t-1]:``)===`:`)}function Lp(e){for(let t=0;t<e.length;t++){let n=e[t];if(n!==` `&&n!==` `&&n!==`
60
+ `&&n!==`\r`&&n!==`*`&&n!==`_`&&n!==`~`&&n!=="`")return!0}return!1}function Rp(e){if(typeof e==`string`||e.length<2)return e;let[t,n,...r]=e,i=r.filter(e=>typeof e!=`string`||e&&e.trim());if(i.length===0)return e;if(i.length>1||typeof i[0]==`string`||i[0][0]!==`p`)return[t,n,...r.map(e=>Rp(e))];let a=i[0][1];return[t,a&&Object.keys(a).length>0?{...a,...n}:n,...i[0].slice(2)]}var zp=Object.defineProperty,Bp=(e,t)=>{let n={};for(var r in e)zp(n,r,{get:e[r],enumerable:!0});return t&&zp(n,Symbol.toStringTag,{value:`Module`}),n},Vp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Hp=String.fromCodePoint??(e=>{let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function Up(e){return e>=55296&&e<=57343||e>1114111?65533:Vp.get(e)??e}function Wp(e){let t=typeof atob==`function`?atob(e):typeof Buffer.from==`function`?Buffer.from(e,`base64`).toString(`binary`):new Buffer(e,`base64`).toString(`binary`),n=t.length&-2,r=new Uint16Array(n/2);for(let e=0,i=0;e<n;e+=2){let n=t.charCodeAt(e),a=t.charCodeAt(e+1);r[i++]=n|a<<8}return r}var Gp=Wp(`QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAG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DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg`),Kp;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(Kp||={});var qp;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(qp||={});var Jp=32;function Yp(e){return e>=qp.ZERO&&e<=qp.NINE}function Xp(e){return e>=qp.UPPER_A&&e<=qp.UPPER_F||e>=qp.LOWER_A&&e<=qp.LOWER_F}function Zp(e){return e>=qp.UPPER_A&&e<=qp.UPPER_Z||e>=qp.LOWER_A&&e<=qp.LOWER_Z||Yp(e)}function Qp(e){return e===qp.EQUALS||Zp(e)}var $p;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})($p||={});var em;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(em||={});var tm=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=$p.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=em.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=$p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case $p.EntityStart:return e.charCodeAt(t)===qp.NUM?(this.state=$p.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=$p.NamedEntity,this.stateNamedEntity(e,t));case $p.NumericStart:return this.stateNumericStart(e,t);case $p.NumericDecimal:return this.stateNumericDecimal(e,t);case $p.NumericHex:return this.stateNumericHex(e,t);case $p.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Jp)===qp.LOWER_X?(this.state=$p.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=$p.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(Yp(n)||Xp(n)){let e=n<=qp.NINE?n-qp.ZERO:(n|Jp)-qp.LOWER_A+10;this.result=this.result*16+e,this.consumed++,t++}else return this.emitNumericEntity(n,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(Yp(n))this.result=this.result*10+(n-qp.ZERO),this.consumed++,t++;else return this.emitNumericEntity(n,2)}return-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===qp.SEMI)this.consumed+=1;else if(this.decodeMode===em.Strict)return 0;return this.emitCodePoint(Up(this.result),this.consumed),this.errors&&(e!==qp.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&Kp.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(r&Kp.FLAG13)!==0){let a=(r&Kp.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let n=r&Kp.JUMP_TABLE;if(e.charCodeAt(t)!==n)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return-1;let r=this.runConsumed-1,i=n[this.treeIndex+1+(r>>1)],a=r%2==0?i&255:i>>8&255;if(e.charCodeAt(t)!==a)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),r=n[this.treeIndex],i=(r&Kp.VALUE_LENGTH)>>14}if(t>=e.length)break;let a=e.charCodeAt(t);if(a===qp.SEMI&&i!==0&&(r&Kp.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=rm(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===em.Attribute&&(i===0||Qp(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&Kp.VALUE_LENGTH)>>14,i!==0){if(a===qp.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==em.Strict&&(r&Kp.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Kp.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~(Kp.VALUE_LENGTH|Kp.FLAG13):r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case $p.NamedEntity:return this.result!==0&&(this.decodeMode!==em.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case $p.NumericDecimal:return this.emitNumericEntity(0,2);case $p.NumericHex:return this.emitNumericEntity(0,3);case $p.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case $p.EntityStart:return 0}}};function nm(e){let t=``,n=new tm(e,e=>t+=Hp(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function rm(e,t,n,r){let i=(t&Kp.BRANCH_LENGTH)>>7,a=t&Kp.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=i+1>>1,s=0,c=i-1;for(;s<=c;){let t=s+c>>>1,i=e[n+(t>>1)]>>(t&1)*8&255;if(i<r)s=t+1;else if(i>r)c=t-1;else return e[n+o+t]}return-1}var im=nm(Gp);function am(e,t=em.Legacy){return im(e,t)}function om(e){return im(e,em.Strict)}var sm={};function cm(e){let t=sm[e];if(t)return t;t=sm[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function lm(e,t){typeof t!=`string`&&(t=lm.defaultChars);let n=cm(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128)t+=n[a];else{if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;t+=e<128?`��`:String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;t+=e<2048||e>=55296&&e<=57343?`���`:String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}}return t})}lm.defaultChars=`;/?:@&=+$,#`,lm.componentChars=``;var um={};function dm(e){let t=um[e];if(t)return t;t=um[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function fm(e,t,n){typeof t!=`string`&&(n=t,t=fm.defaultChars),n===void 0&&(n=!0);let r=dm(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))i+=e.slice(t,t+3),t+=2;else if(o<128)i+=r[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`}else i+=encodeURIComponent(e[t])}return i}fm.defaultChars=`;/?:@&=+$,-_.!~*'()#`,fm.componentChars=`-_.!~*'()`;function pm(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function mm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var hm=/^([a-z0-9.+-]+:)/i,gm=/:[0-9]*$/,_m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,vm=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
61
+ `,` `],ym=[`/`,`?`,`#`],bm=255,xm=/^[+a-z0-9A-Z_-]{0,63}$/,Sm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Cm={javascript:!0,"javascript:":!0},wm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Tm(e,t){if(e&&e instanceof mm)return e;let n=new mm;return n.parse(e,t),n}mm.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=_m.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=hm.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Cm[o])&&(a=a.substr(2),this.slashes=!0)),!Cm[o]&&(i||o&&!wm[o])){let e=-1;for(let t=0;t<ym.length;t++)r=a.indexOf(ym[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<vm.length;t++)r=a.indexOf(vm[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(xm)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(xm)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(Sm);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>bm&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),wm[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},mm.prototype.parseHost=function(e){let t=gm.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Em=e({decode:()=>lm,encode:()=>fm,format:()=>pm,parse:()=>Tm}),Dm=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Om=/[\0-\x1F\x7F-\x9F]/,km=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Am=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\u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375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\u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\uDF00-\uDF92\uDF94-\uDFCA]/,Mm=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Nm=e({Any:()=>Dm,Cc:()=>Om,Cf:()=>km,P:()=>Am,S:()=>jm,Z:()=>Mm});function Pm(e){let t={};e||={},t.src_Any=Dm.source,t.src_Cc=Om.source,t.src_Z=Mm.source,t.src_P=Am.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Fm(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Im(e){return Object.prototype.toString.call(e)}function Lm(e){return Im(e)===`[object String]`}function Rm(e){return Im(e)===`[object Object]`}function zm(e){return Im(e)===`[object RegExp]`}function Bm(e){return Im(e)===`[object Function]`}function Vm(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Hm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Um(e){return Object.keys(e||{}).reduce(function(e,t){return e||Hm.hasOwnProperty(t)},!1)}var Wm={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Gm=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Km=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function qm(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Jm(){return function(e,t){t.normalize(e)}}function Ym(e){let t=e.re=Pm(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Gm),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,Rm(n)?(zm(n.validate)?r.validate=qm(n.validate):Bm(n.validate)?r.validate=n.validate:a(t,n),Bm(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=Jm()):Lm(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:Jm()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Vm).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Xm(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Zm(e,t){if(!(this instanceof Zm))return new Zm(e,t);t||Um(e)&&(t=e,e={}),this.__opts__=Fm({},Hm,t),this.__schemas__=Fm({},Wm,e),this.__compiled__={},this.__tlds__=Km,this.__tlds_replaced__=!1,this.re={},Ym(this)}Zm.prototype.add=function(e,t){return this.__schemas__[e]=t,Ym(this),this},Zm.prototype.set=function(e){return this.__opts__=Fm(this.__opts__,e),this},Zm.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Zm.prototype.pretest=function(e){return this.re.pretest.test(e)},Zm.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Zm.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Xm(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},Zm.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Xm(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},Zm.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Ym(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ym(this),this)},Zm.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},Zm.prototype.onCompile=function(){};var Qm=2147483647,$m=36,eh=1,th=26,nh=38,rh=700,ih=72,ah=128,oh=`-`,sh=/^xn--/,ch=/[^\0-\x7F]/,lh=/[\x2E\u3002\uFF0E\uFF61]/g,uh={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},dh=35,fh=Math.floor,ph=String.fromCharCode;function mh(e){throw RangeError(uh[e])}function hh(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function gh(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(lh,`.`);let i=hh(e.split(`.`),t).join(`.`);return r+i}function _h(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var vh=e=>String.fromCodePoint(...e),yh=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:$m},bh=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},xh=function(e,t,n){let r=0;for(e=n?fh(e/rh):e>>1,e+=fh(e/t);e>455;r+=$m)e=fh(e/dh);return fh(r+36*e/(e+nh))},Sh=function(e){let t=[],n=e.length,r=0,i=ah,a=ih,o=e.lastIndexOf(oh);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&mh(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=$m;;i+=$m){s>=n&&mh(`invalid-input`);let o=yh(e.charCodeAt(s++));o>=$m&&mh(`invalid-input`),o>fh((Qm-r)/t)&&mh(`overflow`),r+=o*t;let c=i<=a?eh:i>=a+th?th:i-a;if(o<c)break;let l=$m-c;t>fh(Qm/l)&&mh(`overflow`),t*=l}let c=t.length+1;a=xh(r-o,c,o==0),fh(r/c)>Qm-i&&mh(`overflow`),i+=fh(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Ch=function(e){let t=[];e=_h(e);let n=e.length,r=ah,i=0,a=ih;for(let n of e)n<128&&t.push(ph(n));let o=t.length,s=o;for(o&&t.push(oh);s<n;){let n=Qm;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>fh((Qm-i)/c)&&mh(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Qm&&mh(`overflow`),n===r){let e=i;for(let n=$m;;n+=$m){let r=n<=a?eh:n>=a+th?th:n-a;if(e<r)break;let i=e-r,o=$m-r;t.push(ph(bh(r+i%o,0))),e=fh(i/o)}t.push(ph(bh(e,0))),a=xh(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},wh={version:`2.3.1`,ucs2:{decode:_h,encode:vh},decode:Sh,encode:Ch,toASCII:function(e){return gh(e,function(e){return ch.test(e)?`xn--`+Ch(e):e})},toUnicode:function(e){return gh(e,function(e){return sh.test(e)?Sh(e.slice(4).toLowerCase()):e})}},Th=Bp({arrayReplaceAt:()=>Ah,asciiTrim:()=>$h,assign:()=>kh,escapeHtml:()=>Uh,escapeRE:()=>Gh,fromCodePoint:()=>Mh,has:()=>Oh,isMdAsciiPunct:()=>Xh,isPromiseLike:()=>eg,isPunctChar:()=>Jh,isPunctCharCode:()=>Yh,isSpace:()=>Kh,isString:()=>Eh,isValidEntityCode:()=>jh,isWhiteSpace:()=>qh,lib:()=>tg,normalizeReference:()=>Zh,unescapeAll:()=>Rh,unescapeMd:()=>Lh});function Eh(e){return typeof e==`string`}var Dh=Object.prototype.hasOwnProperty;function Oh(e,t){return Dh.call(e,t)}function kh(e,...t){for(let n of t)if(n){if(typeof n!=`object`)throw TypeError(`source must be object`);Object.assign(e,n)}return e}function Ah(e,t,n){return e.slice(0,t).concat(n,e.slice(t+1))}function jh(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Mh(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Nh=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ph=RegExp(`${Nh.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),Fh=/^#(x[a-f0-9]{1,8}|\d{1,8})$/i;function Ih(e,t){if(t.charCodeAt(0)===35&&Fh.test(t)){let n=t[1].toLowerCase()===`x`?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return jh(n)?Mh(n):e}let n=am(e);return n===e?e:n}function Lh(e){return e.includes(`\\`)?e.replace(Nh,`$1`):e}function Rh(e){return!e.includes(`\\`)&&!e.includes(`&`)?e:e.replace(Ph,(e,t,n)=>t||Ih(e,n))}var zh=/[&<>"]/,Bh=/[&<>"]/g,Vh={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`};function Hh(e){return Vh[e]}function Uh(e){return zh.test(e)?e.replace(Bh,Hh):e}var Wh=/[.?*+^$[\]\\(){}|-]/g;function Gh(e){return e.replace(Wh,`\\$&`)}function Kh(e){switch(e){case 9:case 32:return!0}return!1}function qh(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Jh(e){return Am.test(e)||jm.test(e)}function Yh(e){return Jh(Mh(e))}function Xh(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Zh(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function Qh(e){return e===32||e===9||e===10||e===13}function $h(e){let t=0;for(;t<e.length&&Qh(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Qh(e.charCodeAt(n));n--);return e.slice(t,n+1)}function eg(e){return typeof e?.then==`function`}var tg={mdurl:Em,ucmicro:Nm},ng=class{type;tag;attrs=null;map=null;nesting;level=0;children=null;content=``;markup=``;info=``;meta=null;block=!1;hidden=!1;constructor(e,t,n){this.type=e,this.tag=t,this.nesting=n}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},rg=class{src;md;env;tokens;bMarks=[];eMarks=[];tShift=[];sCount=[];bsCount=[];blkIndent=0;line=0;lineMax=0;tight=!1;ddIndent=-1;listIndent=-1;parentType=`root`;level=0;Token=ng;constructor(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src,a=i.length;for(let e=0;e<a;){let t=i.indexOf(`
62
+ `,e),n=t===-1?a:t,r=0,o=0,s=e;for(;s<n;){let e=i.charCodeAt(s);if(Kh(e))r++,o+=e===9?4-o%4:1,s++;else break}this.bMarks.push(e),this.eMarks.push(n),this.tShift.push(r),this.sCount.push(o),this.bsCount.push(0),e=n+1}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){let r=new ng(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){let t=this.src;for(let n=t.length;e<n&&Kh(t.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;let n=this.src;for(;e>t;)if(!Kh(n.charCodeAt(--e)))return e+1;return e}skipChars(e,t){let n=this.src;for(let r=n.length;e<r&&n.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;let r=this.src;for(;e>n;)if(t!==r.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;let i=Array(t-e),a=this.src;for(let o=0,s=e;s<t;s++,o++){let e=0,c=this.bMarks[s],l=c,u;for(u=s+1<t||r?this.eMarks[s]+1:this.eMarks[s];l<u&&e<n;){let t=a.charCodeAt(l);if(Kh(t))t===9?e+=4-(e+this.bsCount[s])%4:e++;else if(l-c<this.tShift[s])e++;else break;l++}e>n?i[o]=` `.repeat(e-n)+this.src.slice(l,u):i[o]=this.src.slice(l,u)}return i.join(``)}},ig=class{src;env;tokens=[];inlineMode=!1;md;constructor(e,t,n){this.src=e,this.env=n,this.md=t}Token=ng},ag=class{src;env;md;tokens;tokens_meta;pos=0;posMax;level=0;pending=``;pendingLevel=0;cache={};delimiters=[];_prev_delimiters=[];backticks={};backticksScanned=!1;linkLevel=0;constructor(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.posMax=this.src.length}pushPending(){let e=new ng(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e}push(e,t,n){this.pending&&this.pushPending();let r=new ng(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()??[]),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.src,r=this.posMax,i=n.charCodeAt(e),a;if(e===0)a=32;else if(e===1)a=this.src.charCodeAt(0),(a&63488)==55296&&(a=65533);else if(a=this.src.charCodeAt(e-1),(a&64512)==56320){let t=this.src.charCodeAt(e-2);a=(t&64512)==55296?65536+(t-55296<<10)+(a-56320):65533}else(a&64512)==55296&&(a=65533);let o=e;for(;o<r&&n.charCodeAt(o)===i;)o++;let s=o-e,c=o<r?this.src.charCodeAt(o):32;if((c&64512)==55296){let e=this.src.charCodeAt(o+1);c=(e&64512)==56320?65536+(c-55296<<10)+(e-56320):65533}else(c&64512)==56320&&(c=65533);let l=Xh(a)||Yh(a),u=Xh(c)||Yh(c),d=qh(a),f=qh(c),p=!f&&(!u||d||l),m=!d&&(!l||f||u);return{can_open:p&&(t||!m||l),can_close:m&&(t||!p||u),length:s}}Token=ng},og=class{__rules__=[];__cache__=null;__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1}__compile__(){let e=new Set([``]);for(let t of this.__rules__)if(t.enabled)for(let n of t.alt)e.add(n);this.__cache__={};for(let t of e){let e=[];for(let n of this.__rules__)n.enabled&&(!t||n.alt.includes(t))&&e.push(n.fn);this.__cache__[t]=e}}at(e,t,n={}){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null}before(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null}after(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null}push(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null}enable(e,t){Array.isArray(e)||(e=[e]);let n=[];for(let r of e){let e=this.__find__(r);if(e<0){if(t)continue;throw Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[e].enabled=!0,n.push(r)}return this.__cache__=null,n}enableOnly(e,t){Array.isArray(e)||(e=[e]);for(let e of this.__rules__)e.enabled=!1;this.enable(e,t)}disable(e,t){Array.isArray(e)||(e=[e]);let n=[];for(let r of e){let e=this.__find__(r);if(e<0){if(t)continue;throw Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[e].enabled=!1,n.push(r)}return this.__cache__=null,n}getRules(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]}};function sg(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(Kh(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function cg(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else if(e.sCount[r]-e.blkIndent>=4)r++,i=r;else break;e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=`${e.getLines(t,i,4+e.blkIndent,!1)}\n`,a.map=[t,e.line],!0}function lg(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.includes(String.fromCharCode(o)))return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function ug(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!Kh(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&Kh(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h${String(s)}`,1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=$h(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h${String(s)}`,-1);return d.markup=`########`.slice(0,s),!0}function dg(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!Kh(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=String.fromCharCode(o).repeat(s),!0}var fg=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),pg=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,mg=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,hg=RegExp(`^(?:${pg}|${mg}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<\\?[\\s\\S]*?\\?>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),gg=RegExp(`^(?:${pg}|${mg})`),_g=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${fg.join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${gg.source}\\s*$`),/^$/,!1]];function vg(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<_g.length&&!_g[s][0].test(o);s++);if(s===_g.length)return!1;if(r)return _g[s][2];let c=t+1,l=_g[s][1].test(``);if(!_g[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),_g[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function yg(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a||o===void 0)return e.parentType=i,!1;let c=$h(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h${String(a)}`,1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h${String(a)}`,-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function bg(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!Kh(e.src.charCodeAt(r))?-1:r}function xg(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!Kh(a))?-1:i}function Sg(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Cg(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p=xg(e,c);if(p>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if(p=bg(e,c),p>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f.toString()]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=xg(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=bg(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Sg(e,h),!0}function wg(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=$h(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}function Tg(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!Kh(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!Kh(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&Kh(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&Kh(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Zh(c.slice(1,l));if(!_)return!1;if(r)return!0;e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o;let v=e.push(`reference`,``,0);return v.map=[t,e.line],v.info=_,v.meta={title:g,href:d},!0}var Eg=65536;function Dg(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Og(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function kg(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!Kh(s)||o===45&&Kh(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!Kh(t))return!1;a++}let c=Dg(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Dg(e,t).trim(),!c.includes(`|`)||e.sCount[t]-e.blkIndent>=4)return!1;l=Og(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Dg(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=Og(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>Eg))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}var Ag=[[`table`,kg,[`paragraph`,`reference`]],[`code`,cg],[`fence`,lg,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,sg,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,dg,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Cg,[`paragraph`,`reference`,`blockquote`]],[`reference`,Tg],[`html_block`,vg,[`paragraph`,`reference`,`blockquote`]],[`heading`,ug,[`paragraph`,`reference`,`blockquote`]],[`lheading`,yg],[`paragraph`,wg]],jg=class{ruler;constructor(){this.ruler=new og;for(let e=0;e<Ag.length;e++)this.ruler.push(Ag[e][0],Ag[e][1],{alt:(Ag[e][2]||[]).slice()})}tokenize(e,t,n,r){let i=this.ruler.getRules(``),a=i.length,o=e.md.options.maxNesting,s=t,c=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}let t=e.line,r=!1;for(let o=0;o<a;o++)if(r=i[o](e,s,n,!1),r){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!r)throw Error(`none of the block rules matched`);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),s=e.line,s<n&&e.isEmpty(s)&&(c=!0,s++,e.line=s)}}parse(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}State=rg};function Mg(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Ng(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Pg(e){return/^<a[>\s]/i.test(e)}function Fg(e){return/^<\/a\s*>/i.test(e)}function Ig(e){if(!e.md.options.linkify)return;let t=e.tokens,n=e.md.linkify;for(let r=0,i=t.length;r<i;r++){if(t[r].type!==`inline`||!n.pretest(t[r].content))continue;let i=t[r].children,a=0;for(let t=i.length-1;t>=0;t--){let r=i[t];if(r.type===`link_close`)for(t--;i[t].level!==r.level&&i[t].type!==`link_open`;)t--;else if(r.type===`html_inline`&&(Pg(r.content)&&a>0&&a--,Fg(r.content)&&a++),!(a>0)&&r.type===`text`){let a=r.content;if(!n.pretest(a))continue;let o=n.match(a);if(!o?.length)continue;let s=[],c=r.level,l=0,u=+(o[0].index===0&&t>0&&i[t-1].type===`text_special`);for(let t=u;t<o.length;t++){let n=o[t],r=e.md.normalizeLink(n.url);if(!e.md.validateLink(r))continue;let i=n.text;i=n.schema?n.schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:${i}`).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://${i}`).replace(/^http:\/\//,``);let u=n.index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=n.lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.splice(t,1,...s)}}}}var Lg=/\r\n?|\n/g,Rg=/\0/g;function zg(e){let t=e.src,n=t.includes(`\r`),r=t.includes(`\0`);(n||r)&&(n&&(t=t.replace(Lg,`
63
+ `)),r&&(t=t.replace(Rg,`�`)),e.src=t)}var Bg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Vg=/\((?:c|tm|r)\)/i,Hg=/\((c|tm|r)\)/gi,Ug={c:`©`,r:`®`,tm:`™`};function Wg(e,t){return Ug[t.toLowerCase()]}function Gg(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Hg,Wg)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Kg(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Bg.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function qg(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Vg.test(e.tokens[t].content)&&Gg(e.tokens[t].children),Bg.test(e.tokens[t].content)&&Kg(e.tokens[t].children))}var Jg=/['"]/,Yg=/['"]/g,Xg=`’`;function Zg(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Qg(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function $g(e,t){let n,r=[],i={};for(let a=0;a<e.length;a++){let o=e[a],s=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!==`text`)continue;let c=o.content,l=0,u=c.length;OUTER:for(;l<u;){Yg.lastIndex=l;let o=Yg.exec(c);if(!o)break;let d=!0,f=!0;l=o.index+1;let p=o[0]===`'`,m=32;if(o.index-1>=0)m=c.charCodeAt(o.index-1);else for(n=a-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(l<u)h=c.charCodeAt(l);else for(n=a+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=Xh(m)||Yh(m),_=Xh(h)||Yh(h),v=qh(m),y=qh(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&o[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f)p&&Zg(i,a,o.index,Xg);else{if(f)for(n=r.length-1;n>=0;n--){let e=r[n];if(r[n].level<s)break;if(e.single===p&&r[n].level===s){e=r[n];let s,c;p?(s=t.md.options.quotes[2],c=t.md.options.quotes[3]):(s=t.md.options.quotes[0],c=t.md.options.quotes[1]),Zg(i,a,o.index,c),Zg(i,e.token,e.pos,s),r.length=n;continue OUTER}}d?r.push({token:a,pos:o.index,single:p,level:s}):f&&p&&Zg(i,a,o.index,Xg)}}}Object.keys(i).forEach(t=>{e[t].content=Qg(e[t].content,i[t])})}function e_(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&Jg.test(e.tokens[t].content)&&$g(e.tokens[t].children,e)}function t_(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var n_=[[`normalize`,zg],[`block`,Mg],[`inline`,Ng],[`linkify`,Ig],[`replacements`,qg],[`smartquotes`,e_],[`text_join`,t_]],r_=class{ruler;constructor(){this.ruler=new og;for(let e=0;e<n_.length;e++)this.ruler.push(n_[e][0],n_[e][1])}process(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)}State=ig};function i_(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=Rh(e.slice(t+1,i)),a.ok=!0,a;r===92&&i+1<n?i+=2:i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));)if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2}else{if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0||(a.str=Rh(e.slice(t,i)),a.pos=i,a.ok=!0),a}function a_(e,t,n=!1){let r,i=!1,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function o_(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=Rh(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=Rh(e.slice(t,a)),o}var s_={parseLinkDestination:i_,parseLinkLabel:a_,parseLinkTitle:o_},c_=/^([\w.!#$%&'*+/=?^`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*)$/i,l_=/^([a-z][a-z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/i;function u_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(l_.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(c_.test(a)){let n=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function d_(e,t){let n=e.pos,r=e.src;if(r.charCodeAt(n)!==96)return!1;let i=n;n++;let a=e.posMax;for(;n<a&&r.charCodeAt(n)===96;)n++;let o=r.slice(i,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=o),e.pos+=s,!0;let c=n,l;for(;l=r.indexOf("`",c),l!==-1;){for(c=l+1;c<a&&r.charCodeAt(c)===96;)c++;let i=c-l;if(i===s){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=o,t.content=r.slice(n,l).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=c,!0}e.backticks[i]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}function f_(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function p_(e){let t=e.tokens_meta,n=e.tokens_meta.length;f_(e.delimiters);for(let e=0;e<n;e++){let n=t[e]?.delimiters;n&&f_(n)}}function m_(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function h_(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function g_(e){let t=e.tokens_meta,n=e.tokens_meta.length;h_(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&h_(e,n)}}var __={tokenize:m_,postProcess:g_},v_=/^&#(x[a-f0-9]{1,6}|\d{1,7});/i,y_=/^&([a-z][a-z0-9]{1,31});/i;function b_(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(v_);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?Number.parseInt(r[1].slice(1),16):Number.parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=jh(t)?Mh(t):Mh(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(y_);if(r){let n=om(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}var x_=[];for(let e=0;e<256;e++)x_.push(0);for(let e of`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``))x_[e.charCodeAt(0)]=1;function S_(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),Kh(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\${a}`;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&x_[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function C_(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}function w_(e){return/^<a[>\s]/i.test(e)}function T_(e){return/^<\/a\s*>/i.test(e)}function E_(e){let t=e|32;return t>=97&&t<=122}function D_(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!E_(i))return!1;let a=e.src.slice(r).match(hg);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],w_(t.content)&&e.linkLevel++,T_(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}function O_(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),Kh(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),Kh(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),Kh(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Zh(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}function k_(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),Kh(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),Kh(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),Kh(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Zh(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}var A_=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function j_(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(A_);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function M_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&Kh(e.src.charCodeAt(n));)n++;return e.pos=n,!0}function N_(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function P_(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function F_(e){let t=e.tokens_meta,n=e.tokens_meta.length;P_(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&P_(e,n)}}var I_={tokenize:N_,postProcess:F_};function L_(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function R_(e,t){let n=e.pos,r=e.src;for(;n<e.posMax&&!L_(r.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=r.slice(e.pos,n)),e.pos=n,!0)}var z_=[[`text`,R_],[`linkify`,j_],[`newline`,M_],[`escape`,S_],[`backticks`,d_],[`strikethrough`,I_.tokenize],[`emphasis`,__.tokenize],[`link`,k_],[`image`,O_],[`autolink`,u_],[`html_inline`,D_],[`entity`,b_]],B_=[[`balance_pairs`,p_],[`strikethrough`,I_.postProcess],[`emphasis`,__.postProcess],[`fragments_join`,C_]],V_=class{ruler;ruler2;constructor(){this.ruler=new og;for(let e=0;e<z_.length;e++)this.ruler.push(z_[e][0],z_[e][1]);this.ruler2=new og;for(let e=0;e<B_.length;e++)this.ruler2.push(B_[e][0],B_[e][1])}skipToken(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache,o=a[t];if(o!==void 0){e.pos=o;return}let s=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,s=n[i](e,!0),e.level--,s){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)}State=ag},H_=/^(vbscript|javascript|file|data):/,U_=/^data:image\/(gif|png|jpeg|webp);/;function W_(e){let t=e.trim().toLowerCase();return!H_.test(t)||U_.test(t)}var G_=[`http:`,`https:`,`mailto:`];function K_(e){let t=Tm(e,!0);if(t.hostname&&(!t.protocol||G_.includes(t.protocol)))try{t.hostname=wh.toASCII(t.hostname)}catch{}return fm(pm(t))}function q_(e){let t=Tm(e,!0);if(t.hostname&&(!t.protocol||G_.includes(t.protocol)))try{t.hostname=wh.toUnicode(t.hostname)}catch{}return lm(pm(t),`${lm.defaultChars}%`)}var J_={html:!1,linkify:!1,typographer:!1,quotes:`“”‘’`,maxNesting:100},Y_=class{inline=new V_;block=new jg;core=new r_;linkify=new Zm;validateLink=W_;normalizeLink=K_;normalizeLinkText=q_;helpers={...s_};options={...J_};parse(e,t={}){if(typeof e!=`string`)throw TypeError(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}parseInline(e,t={}){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}},X_={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}},Z_={options:{...J_,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,highlight:null},components:{core:{},block:{},inline:{}}},Q_={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},$_={};$_.code_inline=function(e,t,n,r,i){let a=e[t];return`<code${i.renderAttrs(a)}>${Uh(a.content)}</code>`},$_.code_block=function(e,t,n,r,i){let a=e[t];return`<pre${i.renderAttrs(a)}><code>${Uh(e[t].content)}</code></pre>\n`},$_.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Rh(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}function l(e){if(e.indexOf(`<pre`)===0)return`${e}\n`;if(o){let t=a.attrIndex(`class`),r=a.attrs?a.attrs.slice():[];t<0?r.push([`class`,n.langPrefix+s]):(r[t]=r[t].slice(),r[t][1]+=` ${n.langPrefix}${s}`);let o={attrs:r};return`<pre><code${i.renderAttrs(o)}>${e}</code></pre>\n`}return`<pre><code${i.renderAttrs(a)}>${e}</code></pre>\n`}let u=(()=>{if(!n.highlight)return Uh(a.content);let e=n.highlight(a.content,s,c,r);return eg(e)?e.then(e=>e||Uh(a.content)):e||Uh(a.content)})();return eg(u)?u.then(l):l(u)},$_.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},$_.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
64
64
  `:`<br>
65
- `},Q_.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
65
+ `},$_.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
66
66
  `:`<br>
67
67
  `:`
68
- `},Q_.text=function(e,t){return Hh(e[t].content)},Q_.html_block=function(e,t){return e[t].content},Q_.html_inline=function(e,t){return e[t].content},Q_.reference=function(e,t){return e[t].content};var $_=class{rules=Oh({},Q_);constructor(){}renderAttrs(e){let t=e.attrs;if(!t)return``;let n=t.length;if(n===0)return``;let r=``;for(let e=0;e<n;e++)r+=` ${Hh(t[e][0])}="${Hh(t[e][1])}"`;return r}renderToken(e,t,n,r={}){let i=e[t],a=``;if(i.hidden)return``;i.block&&i.nesting!==-1&&t&&e[t-1].hidden&&(a+=`
68
+ `},$_.text=function(e,t){return Uh(e[t].content)},$_.html_block=function(e,t){return e[t].content},$_.html_inline=function(e,t){return e[t].content},$_.reference=function(e,t){return e[t].content};var ev=class{rules=kh({},$_);constructor(){}renderAttrs(e){let t=e.attrs;if(!t)return``;let n=t.length;if(n===0)return``;let r=``;for(let e=0;e<n;e++)r+=` ${Uh(t[e][0])}="${Uh(t[e][1])}"`;return r}renderToken(e,t,n,r={}){let i=e[t],a=``;if(i.hidden)return``;i.block&&i.nesting!==-1&&t&&e[t-1].hidden&&(a+=`
69
69
  `),a+=(i.nesting===-1?`</`:`<`)+i.tag,a+=this.renderAttrs(i),i.nesting===0&&n.xhtmlOut&&(a+=` /`);let o=!1;if(i.block&&(o=!0,i.nesting===1&&t+1<e.length)){let n=e[t+1];(n.type===`inline`||n.type===`reference`||n.hidden||n.nesting===-1&&n.tag===i.tag)&&(o=!1)}return a+=o?`>
70
- `:`>`,a}renderInline(e,t,n={}){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=i[e[a].type];if(o){let i=o(e,a,t,n,this);if($h(i))throw Error(`Renderer.renderInline: async rule detected, use renderInlineAsync()`);r+=i}else r+=this.renderToken(e,a,t,n)}return r}renderInlineAsText(e,t,n={}){let r=``;for(let i=0,a=e.length;i<a;i++){let a=e[i];switch(a.type){case`text`:r+=a.content;break;case`image`:r+=this.renderInlineAsText(a.children,t,n);break;case`html_inline`:case`html_block`:r+=a.content;break;case`softbreak`:case`hardbreak`:r+=`
71
- `}}return r}render(e,t,n={}){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;if(o===`inline`)r+=this.renderInline(e[a].children,t,n);else{let s=i[o];if(s){let i=s(e,a,t,n,this);if($h(i))throw Error(`Renderer.render: async rule detected, use renderAsync()`);r+=i}else r+=this.renderToken(e,a,t,n)}}return r}async renderInlineAsync(e,t,n){let r=[],i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=i[e[a].type];o?r.push(Promise.resolve(o(e,a,t,n,this))):r.push(Promise.resolve(this.renderToken(e,a,t,n)))}return(await Promise.all(r)).join(``)}async renderAsync(e,t,n){let r=[],i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a],s=o.type;if(s===`inline`)r.push(this.renderInlineAsync(o.children,t,n));else{let o=i[s];o?r.push(Promise.resolve(o(e,a,t,n,this))):r.push(Promise.resolve(this.renderToken(e,a,t,n)))}}return(await Promise.all(r)).join(``)}},ev={default:X_,zero:Z_,commonmark:Y_},tv=class extends J_{renderer=new $_;utils=wh;options={...ev.default.options};constructor(e,t){super();let[n,r]=typeof e==`string`?[e,t]:[`default`,e];this.configure(n),r&&this.set(r)}set(e){return Oh(this.options,e),this}configure(e){if(typeof e==`string`){let t=e;if(e=ev[t],!e)throw Error(`Wrong \`markdown-exit\` preset "${t}", check name`)}if(!e)throw Error("Wrong `markdown-exit` preset, can't be empty");if(e.options&&this.set(e.options),e.components)for(let t of Object.keys(e.components)){let n=e.components[t];n.rules&&this[t].ruler.enableOnly(n.rules),n.rules2&&this[t].ruler2?.enableOnly(n.rules2)}return this}enable(e,t){let n=[];Array.isArray(e)||(e=[e]);for(let t of[`core`,`block`,`inline`])n=n.concat(this[t].ruler.enable(e,!0));n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(e=>!n.includes(e));if(r.length&&!t)throw Error(`MarkdownExit. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t){let n=[];Array.isArray(e)||(e=[e]);for(let t of[`core`,`block`,`inline`])n=n.concat(this[t].ruler.disable(e,!0));n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(e=>!n.includes(e));if(r.length&&!t)throw Error(`MarkdownExit. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}renderAsync(e,t={}){return this.renderer.renderAsync(this.parse(e,t),this.options,t)}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}renderInlineAsync(e,t={}){return this.renderer.renderAsync(this.parseInline(e,t),this.options,t)}};function nv(e){function t(...t){return new e(...t)}return Object.setPrototypeOf(t,tv),t.prototype=tv.prototype,t.prototype.constructor=t,t}var rv=nv(tv);function iv(e){let t=Promise.resolve(null);return(...n)=>(t=t.then(()=>e(...n)).catch(()=>null),t)}function av(e,t){let n=new Map;for(let t of e)n.set(t.name,t);let r=new Set;for(let e of t)r.has(e.name)||(r.add(e.name),n.delete(e.name),n.set(e.name,e));return[...n.values()]}function ov(e){return e}function sv(e,t){if(e[t]!==`[`)return-1;let n=t+1,r=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length)n+=2;else{if(e[n]===`[`)r++;else if(e[n]===`]`){if(r===0)return n;r--}n+=1}return-1}function cv(e,t){let n=sv(e,t);return n===-1?null:{content:e.slice(t+1,n),endIndex:n+1}}var lv=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function uv(e){return e===0||e>=55296&&e<=57343||e>1114111}function dv(e){return uv(e)?65533:e>=128&&e<=159&&lv[e-128]||e}function fv(e){return uv(e)?65533:e}function pv(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(dv(e))}var mv=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function hv(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=mv[e.charCodeAt(c++)];return t<a?t:t*91-s+mv[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=mv[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=mv[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=mv[e.charCodeAt(c++)];r+=89+(t<90?t*91+mv[e.charCodeAt(c++)]:mv[e.charCodeAt(c++)]*8281+mv[e.charCodeAt(c++)]*91+mv[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),x=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[x++]=b[e++]}else b[x++]=r}let S=new Uint16Array(t),C=0;for(;c<o;){let t=mv[e.charCodeAt(c++)];t>=a&&(t=t*91-s+mv[e.charCodeAt(c++)]);let n=f[t];if(n<0){let e=p[t],n=e+m[t];for(;e<n;)S[C++]=b[e++]}else S[C++]=n}return S}var gv=hv("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X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b|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61),_v=new Uint16Array([512,26465,29036,7,0,2,4,116,24638,116,24636,8693,29807,24610,621,1,0,0,3,112,24614,111,115,24615]),q;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(q||={});var vv;(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(vv||={});var yv=32,bv=21,xv=2097151,Sv=2047,Cv=0;function wv(e){let t=e>>>bv;return t===Sv?Cv:t}function Tv(e){return e-vv.ZERO>>>0<=9}function Ev(e){return(e|yv)-vv.LOWER_A>>>0<=5}function Dv(e){return(e|yv)-vv.LOWER_A>>>0<=25}function Ov(e){return e===vv.EQUALS||Dv(e)||Tv(e)}var kv;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(kv||={});var Av;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Av||={});var jv=class{decodeTree;emitCodePoint;errors;state=kv.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=Av.Strict;runConsumed=0;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}startEntity(e){this.decodeMode=e,this.state=kv.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case kv.EntityStart:return e.charCodeAt(t)===vv.NUM?(this.state=kv.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=kv.NamedEntity,this.stateNamedEntity(e,t));case kv.NumericStart:return this.stateNumericStart(e,t);case kv.NumericDecimal:return this.stateNumericDecimal(e,t);case kv.NumericHex:return this.stateNumericHex(e,t);default:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|yv)===vv.LOWER_X?(this.state=kv.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=kv.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t);if(Tv(n)||Ev(n)){let e=n<=vv.NINE?n-vv.ZERO:(n|yv)-vv.LOWER_A+10;r=r*16+e,i+=1,t+=1}else return this.result=r,this.consumed=i,this.emitNumericEntity(n,3)}return this.result=r,this.consumed=i,-1}stateNumericDecimal(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t)-vv.ZERO;if(n>>>0>9)return this.result=r,this.consumed=i,this.emitNumericEntity(n+vv.ZERO,2);r=r*10+n,i+=1,t+=1}return this.result=r,this.consumed=i,-1}emitNumericEntity(e,t){if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===vv.SEMI)this.consumed+=1;else if(this.decodeMode===Av.Strict)return 0;return this.emitCodePoint((this.decodeTree===_v?fv:dv)(this.result),this.consumed),this.errors&&(e!==vv.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}flushAndEmitLegacyOrReject(e,t,n,r){return this.consumed=e,this.excess=t,this.result===0||this.decodeMode===Av.Attribute&&(r===0||t>1||Ov(n))?0:this.emitNotTerminatedNamedEntity()}stateNamedEntity(e,t){let{decodeTree:n}=this,r=e.length,i=this.decodeMode===Av.Strict,{treeIndex:a}=this,{excess:o}=this,{consumed:s}=this,c=n[a];for(;t<r;){for(;(c&(q.VALUE_LENGTH|q.FLAG13))===0&&(c&q.JUMP_TABLE)!==0;){let i=e.charCodeAt(t),l=c&q.JUMP_TABLE,u=(c&q.BRANCH_LENGTH)>>7;if(u===0){if(i!==l)return this.flushAndEmitLegacyOrReject(s,o,i,0);a+=1}else{let e=i-l;if(e>>>0>=u)return this.flushAndEmitLegacyOrReject(s,o,i,0);let t=n[a+1+e];if(t===0)return this.flushAndEmitLegacyOrReject(s,o,i,0);a=a+u+t&65535}if(c=n[a],t+=1,o+=1,t>=r)break}if(t>=r)break;if((c&(q.VALUE_LENGTH|q.FLAG13))===q.FLAG13){let i=(c&q.BRANCH_LENGTH)>>7,{runConsumed:l}=this;if(l===0){let n=e.charCodeAt(t);if(n!==(c&q.JUMP_TABLE))return this.flushAndEmitLegacyOrReject(s,o,n,0);t+=1,o+=1,l=1}for(;l<i;){if(t>=r)return this.treeIndex=a,this.excess=o,this.consumed=s,this.runConsumed=l,-1;let i=l-1,c=n[a+1+(i>>1)]>>((i&1)<<3)&255,u=e.charCodeAt(t);if(u!==c)return this.runConsumed=0,this.flushAndEmitLegacyOrReject(s,o,u,0);t+=1,o+=1,l+=1}this.runConsumed=0,a+=1+(i>>1),c=n[a];continue}let l=c>>>14,u=e.charCodeAt(t);if(l!==0){if(!i&&(c&q.FLAG13)===0&&(this.result=a,s+=o-1,o=1),u===vv.SEMI)return this.emitNamedEntityData(a,l,s+o);if(l===1)return this.flushAndEmitLegacyOrReject(s,o,u,l)}let d=Mv(n,c,a+(l||1),u);if(d<0)return this.flushAndEmitLegacyOrReject(s,o,u,l);a=d,c=n[a],t+=1,o+=1}return!i&&c>>>14&&(c&q.FLAG13)===0&&(this.result=a,s+=o-1,o=1),this.treeIndex=a,this.excess=o,this.consumed=s,-1}emitNotTerminatedNamedEntity(){let{result:e,decodeTree:t}=this,n=t[e]>>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&q.VALUE_MASK:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case kv.NamedEntity:return this.result!==0&&(this.decodeMode!==Av.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case kv.NumericDecimal:return this.emitNumericEntity(0,2);case kv.NumericHex:return this.emitNumericEntity(0,3);case kv.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;default:return 0}}};function Mv(e,t,n,r){let i=(t&q.BRANCH_LENGTH)>>7,a=t&q.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}function Nv(e,t,n){return n===1?String.fromCharCode(e[t]&q.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function Pv(e,t,n){let r=t+1,i=0,a=r;if(r<n&&(e.charCodeAt(r)|yv)===vv.LOWER_X)for(r+=1,a=r;r<n;){let t=e.charCodeAt(r);if(Tv(t))i=i*16+(t-vv.ZERO);else if(Ev(t))i=i*16+((t|yv)-vv.LOWER_A+10);else break;r+=1}else for(;r<n;){let t=e.charCodeAt(r)-vv.ZERO;if(t>>>0>9)break;i=i*10+t,r+=1}if(r===a)return 0;r<n&&e.charCodeAt(r)===vv.SEMI&&(r+=1),i>1114111&&(i=1114112);let o=r-t;return o>=Sv&&(Cv=o,o=Sv),o<<bv|i}function Fv(e,t,n){let r=gv,i=e.indexOf(`&`);if(i<0)return e;let a=e.length,o=0,s=``,c=r[0],l=c&q.JUMP_TABLE,u=(c&q.BRANCH_LENGTH)>>7;do{let c=i+1,d=e.charCodeAt(c),f,p;if(d===vv.NUM){let n=Pv(e,c,a);f=wv(n),t&&f>0&&e.charCodeAt(c+f-1)!==vv.SEMI&&(f=0),p=f===0?``:pv(n&xv)}else if(Dv(d)){f=0,p=``;let n=d-l,i;if(n>>>0<u){let e=r[1+n];i=e===0?-1:u+e&65535}else i=-1;let o=0,s=0,m=i<0?0:r[i],h=c+1;trie:for(;h<a;){for(;(m&(q.VALUE_LENGTH|q.FLAG13))===0&&(m&q.JUMP_TABLE)!==0;){let t=m&q.JUMP_TABLE,n=(m&q.BRANCH_LENGTH)>>7;if(n===0){if(e.charCodeAt(h)!==t)break trie;i+=1}else{let a=e.charCodeAt(h)-t;if(a>>>0>=n)break trie;let o=r[i+1+a];if(o===0)break trie;i=i+n+o&65535}if(m=r[i],h+=1,h>=a)break trie}if((m&(q.VALUE_LENGTH|q.FLAG13))===q.FLAG13){let t=(m&q.BRANCH_LENGTH)>>7;if(e.charCodeAt(h)!==(m&q.JUMP_TABLE))break;h+=1;let n=t-1,a=i+1,o=0;for(;o+1<n;o+=2){let t=r[a];if(e.charCodeAt(h)!==(t&255)||(h+=1,e.charCodeAt(h)!==(t>>8&255)))break trie;h+=1,a+=1}if(o<n){if(e.charCodeAt(h)!==(r[a]&255))break;h+=1}i+=1+(t>>1),m=r[i];continue}let n=m>>>14,l=e.charCodeAt(h);if(n!==0){if(l===vv.SEMI){f=h-c+1,p=n===1?String.fromCharCode(m&q.VALUE_MASK):Nv(r,i,n);break}if(!t&&(m&q.FLAG13)===0&&(f=h-c,o=i,s=n),n===1)break}let u=Mv(r,m,i+(n||1),l);if(u<0)break;i=u,m=r[i],h+=1}if(p===``){let e=m>>>14;e!==0&&!t&&(m&q.FLAG13)===0&&(f=h-c,o=i,s=e),f>0&&(p=Nv(r,o,s))}}else f=0,p=``;f===0||n&&d!==vv.NUM&&e.charCodeAt(c+f-1)!==vv.SEMI&&c+f<a&&Ov(e.charCodeAt(c+f))?i=c:(o<i&&(s+=e.slice(o,i)),s+=p,i=o=c+f),e.charCodeAt(i)!==vv.AMP&&(i=e.indexOf(`&`,i))}while(i>=0);return s+e.slice(o)}function Iv(e,t=Av.Legacy){return Fv(e,t===Av.Strict,t===Av.Attribute)}var J=Symbol(`NOT_RESOLVED`);function Lv(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function Rv(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function zv(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}var Bv=Lv(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),Vv=[``,`~`,`null`,`Null`,`NULL`],Hv=Lv(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Vv.indexOf(e)===-1?J:null,identify:e=>e===null,represent:()=>`null`}),Uv=Lv(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:J,identify:e=>e===null,represent:()=>`null`}),Wv=[``,`~`,`null`,`Null`,`NULL`],Gv=Lv(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Wv.indexOf(e)===-1?J:null,identify:e=>e===null,represent:()=>`null`}),Kv=[`true`,`True`,`TRUE`],qv=[`false`,`False`,`FALSE`],Jv=Lv(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>Kv.indexOf(e)!==-1||qv.indexOf(e)===-1&&J,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Yv=[`true`],Xv=[`false`],Zv=Lv(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>Yv.indexOf(e)!==-1||Xv.indexOf(e)===-1&&J,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Qv=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],$v=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],ey=Lv(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>Qv.indexOf(e)!==-1||$v.indexOf(e)===-1&&J,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),ty=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),ny=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function ry(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function iy(e,t){if(t){if(!ny.test(e))return J}else if(!ty.test(e))return J;let n=ry(e);return Number.isFinite(n)?n:J}var ay=Lv(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:iy,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),oy=RegExp(`^-?(?:0|[1-9][0-9]*)$`),sy=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function cy(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ly(e,t){if(t){if(!sy.test(e))return J}else if(!oy.test(e))return J;let n=cy(e);return Number.isFinite(n)?n:J}var uy=Lv(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:ly,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),dy=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`);function fy(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function py(e){if(!dy.test(e))return J;let t=fy(e);return Number.isFinite(t)?t:J}var my=Lv(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:py,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),hy=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),gy=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function _y(e){if(!hy.test(e))return J;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||gy.test(e)?r:J}function vy(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var yy=Lv(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:_y,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:vy}),by=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),xy=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Sy(e,t){if(t){if(!xy.test(e))return J;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:J}if(!by.test(e))return J;let n=Number(e);return Number.isFinite(n)?n:J}function Cy(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var wy=Lv(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Sy,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Cy}),Ty=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Ey=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Dy(e){if(!Ty.test(e))return J;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Ey.test(e)?r:J}function Oy(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var ky=Lv(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Dy,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Oy}),Ay=Lv(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:J,identify:()=>!1}),jy=/^[A-Za-z0-9+/]*={0,2}$/;function My(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!jy.test(t))return J;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}function Ny(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Py=Lv(`tag:yaml.org,2002:binary`,{resolve:My,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Ny}),Fy=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Iy=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function Ly(e,t,n,r=0,i=0,a=0,o=0){let s=new Date(Date.UTC(e,t,n,r,i,a,o));return s.setUTCFullYear(e,t,n),s}function Ry(e){let t=Fy.exec(e);if(t===null&&(t=Iy.exec(e)),t===null)return J;let n=+t[1],r=t[2]-1,i=+t[3];if(!t[4]){let e=Ly(n,r,i);return e.getUTCFullYear()!==n||e.getUTCMonth()!==r||e.getUTCDate()!==i?J:e}let a=+t[4],o=+t[5],s=+t[6],c=0;if(a>23||o>59||s>59)return J;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;c=+e}let l=Ly(n,r,i,a,o,s,c);if(l.getUTCFullYear()!==n||l.getUTCMonth()!==r||l.getUTCDate()!==i)return J;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return J;let r=(e*60+n)*6e4;l.setTime(l.getTime()-(t[9]===`-`?-r:r))}return l}var zy=Lv(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Ry,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),By=Rv(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function Vy(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Hy(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var Uy=Rv(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Vy(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),Wy=Rv(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),Gy=zv(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Vy,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Ky=zv(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function qy(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Jy(){return{scalar:[],sequence:[],mapping:[]}}function Yy(e){let t=[];for(let n of e){let e=t.length;for(let r=0;r<t.length;r++){let i=t[r];if(i.nodeKind===n.nodeKind&&i.tagName===n.tagName&&i.matchByTagPrefix===n.matchByTagPrefix){e=r;break}}t[e]=n}return t}var Xy=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=Yy(e),n=[],r=qy(),i=Jy();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==J)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},Zy=new Xy([Bv,By,Gy]),Qy=new Xy([...Zy.tags,Uv,Zv,uy,wy]),$y=new Xy([...Zy.tags,Hv,Jv,ay,yy]);new Xy([...Zy.tags,Gv,ey,my,ky,zy,Ay,Py,Uy,Wy,Ky]).withTags({...my,resolve:(e,t,n)=>{let r=my.resolve(e,t,n);return r===J?ay.resolve(e,t,n):r}},{...ky,resolve:(e,t,n)=>{let r=ky.resolve(e,t,n);return r===J?yy.resolve(e,t,n):r}}),zv(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Vy(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}});function eb(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let e=0;e<t.length;e++){if(Array.isArray(t[e]))return null;typeof t[e]==`object`&&Object.prototype.toString.call(t[e])===`[object Object]`&&(t[e]=`[object Object]`)}return String(t)}return typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`?`[object Object]`:String(e)}zv(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Vy,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=eb(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=eb(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var tb={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function nb(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function rb(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function ib(e,t){if(!e.buffer)return null;let n={...tb,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let c=``,l=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=nb(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${rb((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=nb(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${rb((e.line+1).toString(),l)} | ${d.str}\n`,c+=`${`-`.repeat(n.indent+l+3+d.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=nb(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${rb((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function ab(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var ob=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=ab(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${ab(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);n===10?(a++,o=e+1):n===13&&(a++,t.charCodeAt(e+1)===10&&e++,o=e+1)}let s={name:i,buffer:t,position:n,line:a,column:n-o};throw s.snippet=ib(s),new e(r,s)}},sb={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Y={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},cb={BLOCK:1,FLOW:2},lb={CLIP:1,STRIP:2,KEEP:3},ub=-1;function db(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
72
- `;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}var fb=Array(256),pb=Array(256);for(let e=0;e<256;e++)fb[e]=+!!db(e),pb[e]=db(e);function mb(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function hb(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function gb(e){return e===120?2:e===117?4:8}function _b(e,t,n){let r=0;for(;t<n;){let n=e.charCodeAt(t);if(n===10)r++,t++;else if(n===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(n===32||n===9)t++;else break}return{position:t,breaks:r}}function vb(e){return e===1?` `:`
73
- `.repeat(e-1)}function yb(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===10||t===13){r+=e.slice(a,o);let t=_b(e,i,n);r+=vb(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,o)}function bb(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===39)r+=e.slice(a,i)+`'`,i+=2,a=o=i;else if(t===10||t===13){r+=e.slice(a,o);let t=_b(e,i,n);r+=vb(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function xb(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===92){r+=e.slice(a,i),i++;let t=e.charCodeAt(i);if(t===10||t===13)i=_b(e,i,n).position;else if(t<256&&fb[t])r+=pb[t],i++;else{let n=gb(t),a=0;for(;n>0;n--){i++;let t=hb(e.charCodeAt(i));a=(a<<4)+t}r+=mb(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=_b(e,i,n);r+=vb(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function Sb(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,`
70
+ `:`>`,a}renderInline(e,t,n={}){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=i[e[a].type];if(o){let i=o(e,a,t,n,this);if(eg(i))throw Error(`Renderer.renderInline: async rule detected, use renderInlineAsync()`);r+=i}else r+=this.renderToken(e,a,t,n)}return r}renderInlineAsText(e,t,n={}){let r=``;for(let i=0,a=e.length;i<a;i++){let a=e[i];switch(a.type){case`text`:r+=a.content;break;case`image`:r+=this.renderInlineAsText(a.children,t,n);break;case`html_inline`:case`html_block`:r+=a.content;break;case`softbreak`:case`hardbreak`:r+=`
71
+ `}}return r}render(e,t,n={}){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;if(o===`inline`)r+=this.renderInline(e[a].children,t,n);else{let s=i[o];if(s){let i=s(e,a,t,n,this);if(eg(i))throw Error(`Renderer.render: async rule detected, use renderAsync()`);r+=i}else r+=this.renderToken(e,a,t,n)}}return r}async renderInlineAsync(e,t,n){let r=[],i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=i[e[a].type];o?r.push(Promise.resolve(o(e,a,t,n,this))):r.push(Promise.resolve(this.renderToken(e,a,t,n)))}return(await Promise.all(r)).join(``)}async renderAsync(e,t,n){let r=[],i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a],s=o.type;if(s===`inline`)r.push(this.renderInlineAsync(o.children,t,n));else{let o=i[s];o?r.push(Promise.resolve(o(e,a,t,n,this))):r.push(Promise.resolve(this.renderToken(e,a,t,n)))}}return(await Promise.all(r)).join(``)}},tv={default:Z_,zero:Q_,commonmark:X_},nv=class extends Y_{renderer=new ev;utils=Th;options={...tv.default.options};constructor(e,t){super();let[n,r]=typeof e==`string`?[e,t]:[`default`,e];this.configure(n),r&&this.set(r)}set(e){return kh(this.options,e),this}configure(e){if(typeof e==`string`){let t=e;if(e=tv[t],!e)throw Error(`Wrong \`markdown-exit\` preset "${t}", check name`)}if(!e)throw Error("Wrong `markdown-exit` preset, can't be empty");if(e.options&&this.set(e.options),e.components)for(let t of Object.keys(e.components)){let n=e.components[t];n.rules&&this[t].ruler.enableOnly(n.rules),n.rules2&&this[t].ruler2?.enableOnly(n.rules2)}return this}enable(e,t){let n=[];Array.isArray(e)||(e=[e]);for(let t of[`core`,`block`,`inline`])n=n.concat(this[t].ruler.enable(e,!0));n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(e=>!n.includes(e));if(r.length&&!t)throw Error(`MarkdownExit. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t){let n=[];Array.isArray(e)||(e=[e]);for(let t of[`core`,`block`,`inline`])n=n.concat(this[t].ruler.disable(e,!0));n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(e=>!n.includes(e));if(r.length&&!t)throw Error(`MarkdownExit. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}renderAsync(e,t={}){return this.renderer.renderAsync(this.parse(e,t),this.options,t)}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}renderInlineAsync(e,t={}){return this.renderer.renderAsync(this.parseInline(e,t),this.options,t)}};function rv(e){function t(...t){return new e(...t)}return Object.setPrototypeOf(t,nv),t.prototype=nv.prototype,t.prototype.constructor=t,t}var iv=rv(nv);function av(e){let t=Promise.resolve(null);return(...n)=>(t=t.then(()=>e(...n)).catch(()=>null),t)}function ov(e,t){let n=new Map;for(let t of e)n.set(t.name,t);let r=new Set;for(let e of t)r.has(e.name)||(r.add(e.name),n.delete(e.name),n.set(e.name,e));return[...n.values()]}function sv(e){return e}function cv(e,t){if(e[t]!==`[`)return-1;let n=t+1,r=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length)n+=2;else{if(e[n]===`[`)r++;else if(e[n]===`]`){if(r===0)return n;r--}n+=1}return-1}function lv(e,t){let n=cv(e,t);return n===-1?null:{content:e.slice(t+1,n),endIndex:n+1}}var uv=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function dv(e){return e===0||e>=55296&&e<=57343||e>1114111}function fv(e){return dv(e)?65533:e>=128&&e<=159&&uv[e-128]||e}function pv(e){return dv(e)?65533:e}function mv(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(fv(e))}var hv=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function gv(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=hv[e.charCodeAt(c++)];return t<a?t:t*91-s+hv[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=hv[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=hv[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=hv[e.charCodeAt(c++)];r+=89+(t<90?t*91+hv[e.charCodeAt(c++)]:hv[e.charCodeAt(c++)]*8281+hv[e.charCodeAt(c++)]*91+hv[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),x=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[x++]=b[e++]}else b[x++]=r}let S=new Uint16Array(t),C=0;for(;c<o;){let t=hv[e.charCodeAt(c++)];t>=a&&(t=t*91-s+hv[e.charCodeAt(c++)]);let n=f[t];if(n<0){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#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61),vv=new Uint16Array([512,26465,29036,7,0,2,4,116,24638,116,24636,8693,29807,24610,621,1,0,0,3,112,24614,111,115,24615]),K;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(K||={});var yv;(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(yv||={});var bv=32,xv=21,Sv=2097151,Cv=2047,wv=0;function Tv(e){let t=e>>>xv;return t===Cv?wv:t}function Ev(e){return e-yv.ZERO>>>0<=9}function Dv(e){return(e|bv)-yv.LOWER_A>>>0<=5}function Ov(e){return(e|bv)-yv.LOWER_A>>>0<=25}function kv(e){return e===yv.EQUALS||Ov(e)||Ev(e)}var Av;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(Av||={});var jv;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(jv||={});var Mv=class{decodeTree;emitCodePoint;errors;state=Av.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=jv.Strict;runConsumed=0;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}startEntity(e){this.decodeMode=e,this.state=Av.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case Av.EntityStart:return e.charCodeAt(t)===yv.NUM?(this.state=Av.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Av.NamedEntity,this.stateNamedEntity(e,t));case Av.NumericStart:return this.stateNumericStart(e,t);case Av.NumericDecimal:return this.stateNumericDecimal(e,t);case Av.NumericHex:return this.stateNumericHex(e,t);default:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|bv)===yv.LOWER_X?(this.state=Av.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Av.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t);if(Ev(n)||Dv(n)){let e=n<=yv.NINE?n-yv.ZERO:(n|bv)-yv.LOWER_A+10;r=r*16+e,i+=1,t+=1}else return this.result=r,this.consumed=i,this.emitNumericEntity(n,3)}return this.result=r,this.consumed=i,-1}stateNumericDecimal(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t)-yv.ZERO;if(n>>>0>9)return this.result=r,this.consumed=i,this.emitNumericEntity(n+yv.ZERO,2);r=r*10+n,i+=1,t+=1}return this.result=r,this.consumed=i,-1}emitNumericEntity(e,t){if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===yv.SEMI)this.consumed+=1;else if(this.decodeMode===jv.Strict)return 0;return this.emitCodePoint((this.decodeTree===vv?pv:fv)(this.result),this.consumed),this.errors&&(e!==yv.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}flushAndEmitLegacyOrReject(e,t,n,r){return this.consumed=e,this.excess=t,this.result===0||this.decodeMode===jv.Attribute&&(r===0||t>1||kv(n))?0:this.emitNotTerminatedNamedEntity()}stateNamedEntity(e,t){let{decodeTree:n}=this,r=e.length,i=this.decodeMode===jv.Strict,{treeIndex:a}=this,{excess:o}=this,{consumed:s}=this,c=n[a];for(;t<r;){for(;(c&(K.VALUE_LENGTH|K.FLAG13))===0&&(c&K.JUMP_TABLE)!==0;){let i=e.charCodeAt(t),l=c&K.JUMP_TABLE,u=(c&K.BRANCH_LENGTH)>>7;if(u===0){if(i!==l)return this.flushAndEmitLegacyOrReject(s,o,i,0);a+=1}else{let e=i-l;if(e>>>0>=u)return this.flushAndEmitLegacyOrReject(s,o,i,0);let t=n[a+1+e];if(t===0)return this.flushAndEmitLegacyOrReject(s,o,i,0);a=a+u+t&65535}if(c=n[a],t+=1,o+=1,t>=r)break}if(t>=r)break;if((c&(K.VALUE_LENGTH|K.FLAG13))===K.FLAG13){let i=(c&K.BRANCH_LENGTH)>>7,{runConsumed:l}=this;if(l===0){let n=e.charCodeAt(t);if(n!==(c&K.JUMP_TABLE))return this.flushAndEmitLegacyOrReject(s,o,n,0);t+=1,o+=1,l=1}for(;l<i;){if(t>=r)return this.treeIndex=a,this.excess=o,this.consumed=s,this.runConsumed=l,-1;let i=l-1,c=n[a+1+(i>>1)]>>((i&1)<<3)&255,u=e.charCodeAt(t);if(u!==c)return this.runConsumed=0,this.flushAndEmitLegacyOrReject(s,o,u,0);t+=1,o+=1,l+=1}this.runConsumed=0,a+=1+(i>>1),c=n[a];continue}let l=c>>>14,u=e.charCodeAt(t);if(l!==0){if(!i&&(c&K.FLAG13)===0&&(this.result=a,s+=o-1,o=1),u===yv.SEMI)return this.emitNamedEntityData(a,l,s+o);if(l===1)return this.flushAndEmitLegacyOrReject(s,o,u,l)}let d=Nv(n,c,a+(l||1),u);if(d<0)return this.flushAndEmitLegacyOrReject(s,o,u,l);a=d,c=n[a],t+=1,o+=1}return!i&&c>>>14&&(c&K.FLAG13)===0&&(this.result=a,s+=o-1,o=1),this.treeIndex=a,this.excess=o,this.consumed=s,-1}emitNotTerminatedNamedEntity(){let{result:e,decodeTree:t}=this,n=t[e]>>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&K.VALUE_MASK:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case Av.NamedEntity:return this.result!==0&&(this.decodeMode!==jv.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Av.NumericDecimal:return this.emitNumericEntity(0,2);case Av.NumericHex:return this.emitNumericEntity(0,3);case Av.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;default:return 0}}};function Nv(e,t,n,r){let i=(t&K.BRANCH_LENGTH)>>7,a=t&K.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}function Pv(e,t,n){return n===1?String.fromCharCode(e[t]&K.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function Fv(e,t,n){let r=t+1,i=0,a=r;if(r<n&&(e.charCodeAt(r)|bv)===yv.LOWER_X)for(r+=1,a=r;r<n;){let t=e.charCodeAt(r);if(Ev(t))i=i*16+(t-yv.ZERO);else if(Dv(t))i=i*16+((t|bv)-yv.LOWER_A+10);else break;r+=1}else for(;r<n;){let t=e.charCodeAt(r)-yv.ZERO;if(t>>>0>9)break;i=i*10+t,r+=1}if(r===a)return 0;r<n&&e.charCodeAt(r)===yv.SEMI&&(r+=1),i>1114111&&(i=1114112);let o=r-t;return o>=Cv&&(wv=o,o=Cv),o<<xv|i}function Iv(e,t,n){let r=_v,i=e.indexOf(`&`);if(i<0)return e;let a=e.length,o=0,s=``,c=r[0],l=c&K.JUMP_TABLE,u=(c&K.BRANCH_LENGTH)>>7;do{let c=i+1,d=e.charCodeAt(c),f,p;if(d===yv.NUM){let n=Fv(e,c,a);f=Tv(n),t&&f>0&&e.charCodeAt(c+f-1)!==yv.SEMI&&(f=0),p=f===0?``:mv(n&Sv)}else if(Ov(d)){f=0,p=``;let n=d-l,i;if(n>>>0<u){let e=r[1+n];i=e===0?-1:u+e&65535}else i=-1;let o=0,s=0,m=i<0?0:r[i],h=c+1;trie:for(;h<a;){for(;(m&(K.VALUE_LENGTH|K.FLAG13))===0&&(m&K.JUMP_TABLE)!==0;){let t=m&K.JUMP_TABLE,n=(m&K.BRANCH_LENGTH)>>7;if(n===0){if(e.charCodeAt(h)!==t)break trie;i+=1}else{let a=e.charCodeAt(h)-t;if(a>>>0>=n)break trie;let o=r[i+1+a];if(o===0)break trie;i=i+n+o&65535}if(m=r[i],h+=1,h>=a)break trie}if((m&(K.VALUE_LENGTH|K.FLAG13))===K.FLAG13){let t=(m&K.BRANCH_LENGTH)>>7;if(e.charCodeAt(h)!==(m&K.JUMP_TABLE))break;h+=1;let n=t-1,a=i+1,o=0;for(;o+1<n;o+=2){let t=r[a];if(e.charCodeAt(h)!==(t&255)||(h+=1,e.charCodeAt(h)!==(t>>8&255)))break trie;h+=1,a+=1}if(o<n){if(e.charCodeAt(h)!==(r[a]&255))break;h+=1}i+=1+(t>>1),m=r[i];continue}let n=m>>>14,l=e.charCodeAt(h);if(n!==0){if(l===yv.SEMI){f=h-c+1,p=n===1?String.fromCharCode(m&K.VALUE_MASK):Pv(r,i,n);break}if(!t&&(m&K.FLAG13)===0&&(f=h-c,o=i,s=n),n===1)break}let u=Nv(r,m,i+(n||1),l);if(u<0)break;i=u,m=r[i],h+=1}if(p===``){let e=m>>>14;e!==0&&!t&&(m&K.FLAG13)===0&&(f=h-c,o=i,s=e),f>0&&(p=Pv(r,o,s))}}else f=0,p=``;f===0||n&&d!==yv.NUM&&e.charCodeAt(c+f-1)!==yv.SEMI&&c+f<a&&kv(e.charCodeAt(c+f))?i=c:(o<i&&(s+=e.slice(o,i)),s+=p,i=o=c+f),e.charCodeAt(i)!==yv.AMP&&(i=e.indexOf(`&`,i))}while(i>=0);return s+e.slice(o)}function Lv(e,t=jv.Legacy){return Iv(e,t===jv.Strict,t===jv.Attribute)}var q=Symbol(`NOT_RESOLVED`);function Rv(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function zv(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function Bv(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}var Vv=Rv(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),Hv=[``,`~`,`null`,`Null`,`NULL`],Uv=Rv(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Hv.indexOf(e)===-1?q:null,identify:e=>e===null,represent:()=>`null`}),Wv=Rv(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:q,identify:e=>e===null,represent:()=>`null`}),Gv=[``,`~`,`null`,`Null`,`NULL`],Kv=Rv(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Gv.indexOf(e)===-1?q:null,identify:e=>e===null,represent:()=>`null`}),qv=[`true`,`True`,`TRUE`],Jv=[`false`,`False`,`FALSE`],Yv=Rv(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>qv.indexOf(e)!==-1||Jv.indexOf(e)===-1&&q,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Xv=[`true`],Zv=[`false`],Qv=Rv(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>Xv.indexOf(e)!==-1||Zv.indexOf(e)===-1&&q,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),$v=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],ey=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],ty=Rv(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>$v.indexOf(e)!==-1||ey.indexOf(e)===-1&&q,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),ny=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),ry=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function iy(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ay(e,t){if(t){if(!ry.test(e))return q}else if(!ny.test(e))return q;let n=iy(e);return Number.isFinite(n)?n:q}var oy=Rv(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:ay,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),sy=RegExp(`^-?(?:0|[1-9][0-9]*)$`),cy=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function ly(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function uy(e,t){if(t){if(!cy.test(e))return q}else if(!sy.test(e))return q;let n=ly(e);return Number.isFinite(n)?n:q}var dy=Rv(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:uy,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),fy=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`);function py(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function my(e){if(!fy.test(e))return q;let t=py(e);return Number.isFinite(t)?t:q}var hy=Rv(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:my,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),gy=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),_y=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function vy(e){if(!gy.test(e))return q;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||_y.test(e)?r:q}function yy(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var by=Rv(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:vy,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:yy}),xy=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),Sy=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Cy(e,t){if(t){if(!Sy.test(e))return q;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:q}if(!xy.test(e))return q;let n=Number(e);return Number.isFinite(n)?n:q}function wy(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var Ty=Rv(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Cy,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:wy}),Ey=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Dy=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Oy(e){if(!Ey.test(e))return q;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Dy.test(e)?r:q}function ky(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var Ay=Rv(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Oy,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:ky}),jy=Rv(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:q,identify:()=>!1}),My=/^[A-Za-z0-9+/]*={0,2}$/;function Ny(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!My.test(t))return q;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}function Py(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Fy=Rv(`tag:yaml.org,2002:binary`,{resolve:Ny,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Py}),Iy=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Ly=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function Ry(e,t,n,r=0,i=0,a=0,o=0){let s=new Date(Date.UTC(e,t,n,r,i,a,o));return s.setUTCFullYear(e,t,n),s}function zy(e){let t=Iy.exec(e);if(t===null&&(t=Ly.exec(e)),t===null)return q;let n=+t[1],r=t[2]-1,i=+t[3];if(!t[4]){let e=Ry(n,r,i);return e.getUTCFullYear()!==n||e.getUTCMonth()!==r||e.getUTCDate()!==i?q:e}let a=+t[4],o=+t[5],s=+t[6],c=0;if(a>23||o>59||s>59)return q;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;c=+e}let l=Ry(n,r,i,a,o,s,c);if(l.getUTCFullYear()!==n||l.getUTCMonth()!==r||l.getUTCDate()!==i)return q;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return q;let r=(e*60+n)*6e4;l.setTime(l.getTime()-(t[9]===`-`?-r:r))}return l}var By=Rv(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:zy,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Vy=zv(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function Hy(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Uy(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var Wy=zv(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Hy(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),Gy=zv(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),Ky=Bv(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Hy,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),qy=Bv(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function Jy(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Yy(){return{scalar:[],sequence:[],mapping:[]}}function Xy(e){let t=[];for(let n of e){let e=t.length;for(let r=0;r<t.length;r++){let i=t[r];if(i.nodeKind===n.nodeKind&&i.tagName===n.tagName&&i.matchByTagPrefix===n.matchByTagPrefix){e=r;break}}t[e]=n}return t}var Zy=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=Xy(e),n=[],r=Jy(),i=Yy();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==q)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},Qy=new Zy([Vv,Vy,Ky]),$y=new Zy([...Qy.tags,Wv,Qv,dy,Ty]),eb=new Zy([...Qy.tags,Uv,Yv,oy,by]);new Zy([...Qy.tags,Kv,ty,hy,Ay,By,jy,Fy,Wy,Gy,qy]).withTags({...hy,resolve:(e,t,n)=>{let r=hy.resolve(e,t,n);return r===q?oy.resolve(e,t,n):r}},{...Ay,resolve:(e,t,n)=>{let r=Ay.resolve(e,t,n);return r===q?by.resolve(e,t,n):r}}),Bv(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Hy(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}});function tb(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let e=0;e<t.length;e++){if(Array.isArray(t[e]))return null;typeof t[e]==`object`&&Object.prototype.toString.call(t[e])===`[object Object]`&&(t[e]=`[object Object]`)}return String(t)}return typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`?`[object Object]`:String(e)}Bv(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Hy,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=tb(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=tb(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var nb={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function rb(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function ib(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function ab(e,t){if(!e.buffer)return null;let n={...nb,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let c=``,l=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=rb(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${ib((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=rb(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${ib((e.line+1).toString(),l)} | ${d.str}\n`,c+=`${`-`.repeat(n.indent+l+3+d.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=rb(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${ib((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function ob(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var sb=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=ob(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${ob(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);n===10?(a++,o=e+1):n===13&&(a++,t.charCodeAt(e+1)===10&&e++,o=e+1)}let s={name:i,buffer:t,position:n,line:a,column:n-o};throw s.snippet=ab(s),new e(r,s)}},cb={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},J={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},lb={BLOCK:1,FLOW:2},ub={CLIP:1,STRIP:2,KEEP:3},db=-1;function fb(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
72
+ `;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}var pb=Array(256),mb=Array(256);for(let e=0;e<256;e++)pb[e]=+!!fb(e),mb[e]=fb(e);function hb(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function gb(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function _b(e){return e===120?2:e===117?4:8}function vb(e,t,n){let r=0;for(;t<n;){let n=e.charCodeAt(t);if(n===10)r++,t++;else if(n===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(n===32||n===9)t++;else break}return{position:t,breaks:r}}function yb(e){return e===1?` `:`
73
+ `.repeat(e-1)}function bb(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===10||t===13){r+=e.slice(a,o);let t=vb(e,i,n);r+=yb(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,o)}function xb(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===39)r+=e.slice(a,i)+`'`,i+=2,a=o=i;else if(t===10||t===13){r+=e.slice(a,o);let t=vb(e,i,n);r+=yb(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function Sb(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===92){r+=e.slice(a,i),i++;let t=e.charCodeAt(i);if(t===10||t===13)i=vb(e,i,n).position;else if(t<256&&pb[t])r+=mb[t],i++;else{let n=_b(t),a=0;for(;n>0;n--){i++;let t=gb(e.charCodeAt(i));a=(a<<4)+t}r+=hb(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=vb(e,i,n);r+=yb(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function Cb(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,`
74
74
  `),c=s===``?[]:(s.endsWith(`
75
75
  `)?s.slice(0,-1):s).split(`
76
76
  `),l=``,u=!1,d=0,f=!1;for(let e of c){let t=0;for(;t<o&&e.charCodeAt(t)===32;)t++;if(r<0||t>=e.length){d++;continue}let n=e.slice(o),i=n.charCodeAt(0);a?i===32||i===9?(f=!0,l+=`
77
77
  `.repeat(u?1+d:d)):f?(f=!1,l+=`
78
78
  `.repeat(d+1)):d===0?u&&(l+=` `):l+=`
79
79
  `.repeat(d):l+=`
80
- `.repeat(u?1+d:d),l+=n,u=!0,d=0}return i===lb.KEEP?l+=`
81
- `.repeat(u?1+d:d):i!==lb.STRIP&&u&&(l+=`
82
- `),l}function Cb(e,t){if(t.valueStart===ub)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case Y.SINGLE_QUOTED:return bb(e,n,r);case Y.DOUBLE_QUOTED:return xb(e,n,r);case Y.LITERAL_BLOCK:return Sb(e,n,r,t.indent,t.chomping,!1);case Y.FOLDED_BLOCK:return Sb(e,n,r,t.indent,t.chomping,!0);default:return yb(e,n,r)}}var wb=Object.assign(Object.create(null),{"!":`!`,"!!":`tag:yaml.org,2002:`});function Tb(e){let t=``,n=0;for(;n<e.length;){if(e.charCodeAt(n)!==37){t+=e[n++];continue}let r=parseInt(e.slice(n+1,n+3),16);if(n+=3,r>=192){let t=r<224?1:r<240?2:3;for(r&=(1<<6-t)-1;t-->0;)r=r<<6|parseInt(e.slice(n+1,n+3),16)&63,n+=3}r<65536?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023))}return t}function Eb(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return Tb(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1);return Tb(t?.[r]??wb[r]??r)+Tb(e.slice(r.length))}var Db=-1,Ob=`tag:yaml.org,2002:merge`,kb={filename:``,schema:$y,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Ab(e){return`tagStart`in e&&e.tagStart!==Db?e.tagStart:`anchorStart`in e&&e.anchorStart!==Db?e.anchorStart:`valueStart`in e&&e.valueStart!==Db?e.valueStart:`start`in e?e.start:0}function jb(e,t){ob.throwAt(e.source,e.position,t,e.filename)}function Mb(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof ob)throw n;ob.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function Nb(e,t){let n=Cb(e.source,t),r=t.tagStart===Db?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=Eb(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===J&&jb(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&jb(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:Mb(e,e.position,o,r),tag:o}}jb(e,`unknown scalar tag !<${t}>`)}return t.style===Y.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function Pb(e,t,n){let r=t.tagStart===Db?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:Eb(r,e.tagHandlers)}function Fb(e){return e.nodeKind===`mapping`}function Ib(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&jb(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function Lb(e,t,n,r){Ib(e);for(let i of r.keys(n)){if(Ib(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&jb(e,a),t.overridable??=new Set,t.overridable.add(i)}}function Rb(e,t,n,r){if(e.position=t.keyPosition,Fb(r))Lb(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&jb(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||jb(e,`cannot merge mappings; the provided source object is unacceptable`),Lb(e,t,r,n)}}else jb(e,`cannot merge mappings; the provided source object is unacceptable`)}function zb(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){Rb(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&jb(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&jb(e,a),t.overridable?.delete(n)}function Bb(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){Fb(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&jb(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,zb(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===Ob}function Vb(e,t,n,r,i){if(t.anchorStart!==Db){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function Hb(e,t){let n={...kb,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){let e=n.events[n.eventIndex++];switch(n.position=Ab(e),e.type){case sb.DOCUMENT:n.anchors=new Map,n.nodeTags=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(let t of e.directives)t.kind===`tag`&&(n.tagHandlers[t.handle]=t.prefix);n.frames.push({kind:`document`,position:n.position,value:void 0,hasValue:!1});break;case sb.SCALAR:{let{value:t,tag:r}=Nb(n,e);Vb(n,e,t,r,!0),Bb(n,t,r);break}case sb.SEQUENCE:{let t=Pb(n,e,`tag:yaml.org,2002:seq`),r=n.schema.lookupSequenceTag(t);r||jb(n,`unknown sequence tag !<${t}>`);let i=r.create(t),a=Vb(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case sb.MAPPING:{let t=Pb(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||jb(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=Vb(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case sb.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&jb(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||jb(n,`unidentified alias "${t}"`),r.isValueFinal||jb(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),Bb(n,r.value,r.tag);break}case sb.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,jb(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:Mb(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),Bb(n,t,e.tag)}break}}}return n.documents}var Ub=-1,Wb=Object.prototype.hasOwnProperty,Gb=1,Kb=2,qb=3,Jb=4,Yb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Xb=/[,\[\]{}]/,Zb=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Qb=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,$b=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,ex=RegExp(`^(?:${Qb})*$`),tx=RegExp(`^(?:${$b})+$`),nx=RegExp(`^(?:!(?:${Qb})*|${$b}(?:${Qb})*)$`),rx={filename:``,maxDepth:100};function ix(e,t,n){e.events.push({type:sb.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function ax(e,t,n,r,i,a,o){e.events.push({type:sb.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function ox(e,t,n,r,i,a,o){e.events.push({type:sb.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function sx(e,t){e.events.splice(t.eventsLength,0,{type:sb.MAPPING,start:t.position,anchorStart:Ub,anchorEnd:Ub,tagStart:Ub,tagEnd:Ub,style:cb.FLOW})}function cx(e,t,n,r,i,a,o,s,c=lb.CLIP,l=-1,u=!1){e.events.push({type:sb.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:c,indent:l,fast:u})}function lx(e,t,n){e.events.push({type:sb.ALIAS,anchorStart:t,anchorEnd:n})}function ux(e){e.events.push({type:sb.POP})}function dx(e){cx(e,Ub,Ub,Ub,Ub,Ub,Ub,Y.PLAIN)}function fx(){return{anchorStart:Ub,anchorEnd:Ub,tagStart:Ub,tagEnd:Ub}}function px(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function mx(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function X(e,t){ob.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function hx(e){return e===10||e===13}function gx(e){return e===9||e===32}function _x(e){return gx(e)||hx(e)}function vx(e){return e===0||_x(e)}function yx(e){return e===44||e===91||e===93||e===123||e===125}function bx(e){return e>=48&&e<=57?e-48:-1}function xx(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function Sx(e){return e===120?2:e===117?4:e===85?8:0}function Cx(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function wx(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function Tx(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||_x(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;gx(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!hx(r)&&r!==0);if(!hx(r))break;for(wx(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function Ex(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||_x(n)}return!1}function Dx(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function Ox(e){if(e.position!==e.lineStart)return!1;if(Ex(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=px(e);Dx(e),Tx(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&Ex(e));return mx(e,t),r}function kx(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!hx(t);)t=e.input.charCodeAt(++e.position)}function Ax(e,t,n){let r=Yb.exec(e.input.slice(t,n));r!==null&&(e.position=t+r.index+r[0].length-1,X(e,`the stream contains non-printable characters`))}function jx(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Ub&&X(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let c=e.position,l;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&X(e,`unexpected end of the stream within a verbatim tag`),l=e.input.slice(c,e.position),e.position++}else{for(;s!==0&&!_x(s)&&!(n&&yx(s));)s===33&&(a?X(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(c-1,e.position+1),Zb.test(o)||X(e,`named tag handle cannot contain such characters`),a=!0,c=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),Xb.test(l)&&X(e,`tag suffix cannot contain flow indicator characters`)}return l&&!(i?ex.test(l):tx.test(l))&&X(e,`tag name cannot contain such characters: ${l}`),!i&&o!==`!`&&o!==`!!`&&!Wb.call(e.tagHandlers,o)&&X(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function Mx(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Ub&&X(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position))&&!yx(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&X(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function Nx(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Ub||t.tagStart!==Ub)&&X(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position))&&!yx(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&X(e,`name of an alias node must contain at least one character`),lx(e,n,e.position),!0}function Px(e,t){Tx(e,!1),e.lineIndent<t&&X(e,`deficient indentation`)}function Fx(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}let t=e.position;return e.position++,cx(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Y.SINGLE_QUOTED,lb.CLIP,-1,i),!0}hx(a)?(i=!1,Px(e,t)):e.position===e.lineStart&&Ex(e)?X(e,`unexpected end of the document within a single quoted scalar`):a!==9&&a<32?X(e,`expected valid JSON character`):e.position++}X(e,`unexpected end of the stream within a single quoted scalar`)}function Ix(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===34){let t=e.position;return e.position++,cx(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Y.DOUBLE_QUOTED,lb.CLIP,-1,i),!0}if(a===92){i=!1;let n=e.input.charCodeAt(++e.position);if(hx(n))Px(e,t);else if(Cx(n))e.position++;else{let t=Sx(n);for(t===0&&X(e,`unknown escape sequence`);t-->0;)e.position++,xx(e.input.charCodeAt(e.position))<0&&X(e,`expected hexadecimal character`);e.position++}}else hx(a)?(i=!1,Px(e,t)):e.position===e.lineStart&&Ex(e)?X(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?X(e,`expected valid JSON character`):e.position++}X(e,`unexpected end of the stream within a double quoted scalar`)}function Lx(e,t,n){let r=e.input.charCodeAt(e.position),i=lb.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?Y.LITERAL_BLOCK:Y.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=bx(n);if(n===43||n===45)i!==lb.CLIP&&X(e,`repeat of a chomping mode identifier`),i=n===43?lb.KEEP:lb.STRIP,e.position++;else if(r>=0)r===0&&X(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&X(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let c=!1;for(;gx(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&kx(e),hx(e.input.charCodeAt(e.position))?wx(e):e.input.charCodeAt(e.position)!==0&&X(e,`a line break is expected`);let l=o?a:-1,u=0,d=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){l>=0?r>l&&(f=n+r):r>0&&(f=n+r);break}if(Ox(e))break;if(!o&&l===-1&&hx(i)&&(u=Math.max(u,r)),!o&&l===-1&&!hx(i)&&(i===9&&r<t&&(e.position=n+r,X(e,`tab characters must not be used in indentation`)),r>=t&&r<u&&(e.position=n+r,X(e,`bad indentation of a mapping entry`))),l===-1&&i!==0&&!hx(i)&&r<t){e.lineIndent=r,e.position=n+r;break}!o&&i!==0&&!hx(i)&&l===-1&&(l=r);let a=l===-1?t+1:l;if(i!==0&&!hx(i)&&r<a){e.lineIndent=r,e.position=n+r;break}kx(e),f=e.position,hx(e.input.charCodeAt(e.position))&&(wx(e),f=e.position)}return Ax(e,d,f),cx(e,d,f,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,s,i,l),!0}function Rx(e,t){let n=e.input.charCodeAt(e.position),r=t===Gb;if(n===0||_x(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||yx(n))return!1;if(n===63||n===45){let t=e.input.charCodeAt(e.position+1);if(vx(t)||r&&yx(t))return!1}return!0}function zx(e,t,n,r){if(!Rx(e,n))return!1;let i=e.position,a=e.position,o=e.input.charCodeAt(e.position),s=n===Gb,c=!1;for(;o!==0&&!Ox(e);){if(o===58){let t=e.input.charCodeAt(e.position+1);if(vx(t)||s&&yx(t))break}else if(o===35){if(_x(e.input.charCodeAt(e.position-1)))break}else if(s&&yx(o))break;else if(hx(o)){let n=e.position,r=e.line,i=e.lineStart,a=e.lineIndent;if(Tx(e,!1),e.lineIndent>=t){c=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}gx(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(Ax(e,i,a),cx(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Y.PLAIN,lb.CLIP,-1,!c),!0)}function Bx(e,t){let n=e.line;Tx(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&X(e,`deficient indentation`)}function Vx(e,t,n){let r=e.input.charCodeAt(e.position),i=r===123,a=e.position,o=!0;if(r!==91&&r!==123)return!1;let s=i?125:93;for(i?ox(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,cb.FLOW):ax(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,cb.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){Bx(e,t);let n=e.input.charCodeAt(e.position);if(n===s)return e.position++,ux(e),!0;o?n===44&&X(e,`expected the node content, but found ','`):X(e,`missed comma between flow collection entries`);let r=!1,a=!1;n===63&&_x(e.input.charCodeAt(e.position+1))&&(r=a=!0,e.position+=1,Bx(e,t));let c=e.line,l=px(e),u=Wx(e,t,Gb,!1,!0);Bx(e,t),n=e.input.charCodeAt(e.position),(i||a||e.line===c)&&n===58?(r=!0,e.position++,Bx(e,t),i||sx(e,l),u||dx(e),Wx(e,t,Gb,!1,!0)||dx(e),Bx(e,t),i||ux(e)):i&&r?(u||dx(e),dx(e)):i?dx(e):r&&(sx(e,l),u||dx(e),dx(e),ux(e)),n=e.input.charCodeAt(e.position),n===44?(o=!0,e.position++):o=!1}X(e,`unexpected end of the stream within a flow collection`)}function Hx(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!vx(e.input.charCodeAt(e.position+1)))return!1;for(ax(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,cb.BLOCK);e.input.charCodeAt(e.position)===45&&vx(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,X(e,`tab characters must not be used in indentation`));let n=e.line;e.position++;let r=Tx(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&vx(e.input.charCodeAt(e.position+1))&&X(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?dx(e):Wx(e,t,qb,!1,!0),Tx(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&X(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&vx(e.input.charCodeAt(e.position+1))&&X(e,`bad indentation of a sequence entry`)}return ux(e),!0}function Ux(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,X(e,`tab characters must not be used in indentation`));let l=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&vx(l))o||=(ox(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,cb.BLOCK),!0),c===63?(i&&dx(e),a=!0,i=!0):(i||(dx(e),a=!0),i=!1),e.position+=1,s=!0;else{i&&=(dx(e),!1);let t=px(e);if(!Wx(e,n,Kb,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);gx(c);)c=e.input.charCodeAt(++e.position);if(c===58)c=e.input.charCodeAt(++e.position),vx(c)||X(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:sb.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:cb.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)X(e,`expected ':' after a mapping key`);else return r.anchorStart!==Ub||r.tagStart!==Ub?(mx(e,t),!1):!0}else if(a)X(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==Ub||r.tagStart!==Ub?(mx(e,t),!1):!0}if(Wx(e,t,Jb,!0,s)&&(s=!1),i||(s&&=(dx(e),!1)),Tx(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&c!==0)X(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return a?(i&&dx(e),o&&ux(e),!0):!1}function Wx(e,t,n,r,i,a=!0){e.depth>=e.maxDepth&&X(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,c=!1,l=null,u=fx(),d=n===Jb||n===qb,f=d,p=d;if(r&&Tx(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=px(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&p&&(u.tagStart!==Ub||u.anchorStart!==Ub)&&(r===33||r===38)){let n=px(e),r=t+1;if(Ux(e,e.position-e.lineStart,r,u)&&e.events[n.eventsLength]?.type===sb.MAPPING)return e.depth--,!0;mx(e,n)}if(s&&(r===33&&u.tagStart!==Ub||r===38&&u.anchorStart!==Ub)||!jx(e,u,n===Gb)&&!Mx(e,u))break;l===null&&(l=i),Tx(e,!0)?(s=!0,f=p,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&=s||i,o===1||n===Jb){let r=n===Gb||n===Kb?t:t+1,i=e.position-e.lineStart;if(o===1){if(f&&(Hx(e,i,u)||Ux(e,i,r,u))||Vx(e,r,u))c=!0;else{let t=e.input.charCodeAt(e.position);if(l!==null&&a&&p&&!f&&t!==124&&t!==62){let t=px(e),n=l.position-l.lineStart;mx(e,l),Ux(e,n,r,fx())&&e.events[t.eventsLength]?.type===sb.MAPPING?c=!0:mx(e,t)}!c&&(d&&Lx(e,r,u)||Fx(e,r,u)||Ix(e,r,u)||Nx(e,u)||zx(e,r,n,u))&&(c=!0)}}else o===0&&(c=f&&Hx(e,i,u))}return d&&=!c,!c&&(u.anchorStart!==Ub||u.tagStart!==Ub||d)&&(cx(e,Ub,Ub,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,Y.PLAIN),c=!0),e.depth--,c||u.anchorStart!==Ub||u.tagStart!==Ub}function Gx(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&X(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!hx(e.input.charCodeAt(e.position));){for(;gx(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||hx(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(hx(e.input.charCodeAt(e.position))&&wx(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&X(e,`duplication of %YAML directive`),r.length!==1&&X(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&X(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&X(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&X(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Zb.test(t)||X(e,`ill-formed tag handle (first argument) of the TAG directive`),Wb.call(e.tagHandlers,t)&&X(e,`there is a previously declared suffix for "${t}" tag handle`),nx.test(n)||X(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function Kx(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(Tx(e,!0);Gx(e);)t=!0,Tx(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&vx(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,Tx(e,!0),i=e.line>t}else t&&X(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&Ex(e)){e.position+=3,Tx(e,!0);return}if(ix(e,n,!1),Wx(e,e.lineIndent-1,Jb,!1,i,i)||dx(e),Tx(e,!0),e.position===e.lineStart&&Ex(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,Tx(e,!0),e.line===t&&e.position<e.length&&X(e,`end of the stream or a document separator is expected`)}let o=e.events[a];o?.type===sb.DOCUMENT&&(o.explicitEnd=r),ux(e),!r&&e.position<e.length&&!Ox(e)&&X(e,`end of the stream or a document separator is expected`)}function qx(e,t){let n=e.length,r={...rx,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf(`\0`);for(i!==-1&&ob.throwAt(e,i,`null byte is not allowed in input`,r.filename);r.position<r.length&&(Dx(r),Tx(r,!0),!(r.position>=r.length));){let e=r.position;Kx(r),r.position===e&&X(r,`can not read a document`)}return r.events}var Jx={...rx,...kb};function Yx(e,t={}){let n={...Jx,...t},r=String(e),i=Object.keys(rx),a=Object.keys(kb);return Hb(qx(r,Hy(n,i)),{...Hy(n,a),source:r})}function Xx(e,t,n){let r=null;typeof t==`function`?r=t:typeof t==`object`&&t&&(n=t);let i=Yx(e,n);if(r===null)return i;for(let e of i)r(e)}function Zx(e,t){return!!(e&1<<t)}var Qx={applyQuoteFlowKeysOption:eS,doubleQuoteForInvisibles:tS,doubleQuoteWhitespaceOnly:nS,applyForceQuotesOption:rS,tryLongOrMultilineAsBlock:iS,quoteInvalidPlain:aS,fallbackToDoubleQuoted:oS};function $x(e){return e.presenterOptions.quoteStyle===`single`&&Zx(e.allowedStylesMask,Y.SINGLE_QUOTED)?Y.SINGLE_QUOTED:Y.DOUBLE_QUOTED}function eS(e){e.presenterOptions.quoteFlowKeys&&e.isKey&&e.flowOnly&&e.style===Y.PLAIN&&(e.style=Y.DOUBLE_QUOTED)}function tS(e){e.style===Y.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=Y.DOUBLE_QUOTED)}function nS(e){e.style===Y.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=Y.DOUBLE_QUOTED)}function rS(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==Y.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(`
83
- `)?Y.DOUBLE_QUOTED:$x(e)))}function iS(e){if(e.style!==Y.PLAIN||e.isKey)return;let t=e.node.value,n=t.indexOf(`
84
- `)!==-1;if(!Zx(e.allowedStylesMask,Y.LITERAL_BLOCK)){n&&(e.style=Y.DOUBLE_QUOTED);return}let r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=Y.LITERAL_BLOCK);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),a=0,o=!1;for(;a<=t.length;){let e=t.length,n=t.indexOf(`
85
- `,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=Y.FOLDED_BLOCK:n&&(e.style=Y.LITERAL_BLOCK)}function aS(e){e.style===Y.PLAIN&&!Zx(e.allowedStylesMask,Y.PLAIN)&&(e.style=$x(e))}function oS(e){Zx(e.allowedStylesMask,e.style)||(e.style=Y.DOUBLE_QUOTED)}var sS=`[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]`,cS=`[\\n\\r]`,lS=`\\uFEFF`,uS=`[ \\t]`,dS=`(?:(?!(?:${cS}|${lS}))${sS})`,fS=`(?:(?!${uS})${dS})`,pS=`[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]`,mS=`[-?:,\\[\\]{}#&*!|>'"%@\`]`,hS=`[,\\[\\]{}]`,gS=fS,_S=`(?:(?!${hS})${fS})`,vS=`(?:(?:(?!${mS})${fS})|[?:-](?=${gS}))`,yS=`(?:(?:(?!${mS})${fS})|[?:-](?=${_S}))`,bS=`(?:(?:(?![:#])${gS})|:(?=${gS}))#*`,xS=`(?:(?:(?![:#])${_S})|:(?=${_S}))#*`,SS=`(?:${uS}*${bS})*`,CS=`(?:${uS}*${xS})*`,wS=`${vS}#*${SS}`,TS=`${yS}#*${CS}`,ES=wS,DS=TS,OS=`\\n+${bS}${SS}`,kS=`\\n+${xS}${CS}`,AS=`${wS}(?:${OS})*`,jS=`${TS}(?:${kS})*`;RegExp(`^(?:${AS})$`,`u`),RegExp(`^(?:${jS})$`,`u`),RegExp(`^(?:${ES})$`,`u`),RegExp(`^(?:${DS})$`,`u`),RegExp(`^(?:${pS})*$`,`u`),RegExp(`^(?:${pS}|\\n)*$`,`u`),RegExp(`^(?:${dS}|\\n)*$`,`u`),Object.keys(Qx).map(e=>Reflect.get(Qx,e)),sb.DOCUMENT,sb.SEQUENCE,sb.MAPPING,sb.SCALAR,sb.ALIAS,sb.POP,Y.PLAIN,Y.SINGLE_QUOTED,Y.DOUBLE_QUOTED,Y.LITERAL_BLOCK,Y.FOLDED_BLOCK,cb.BLOCK,cb.FLOW,lb.CLIP,lb.STRIP,lb.KEEP;function MS(e){let t=Xx(e,{schema:Qy});if(t.length>1)throw new ob(`expected a single document in the stream, but found more`);return t[0]}var NS=[`javascript:`,`data:text/html`,`vbscript:`,`data:text/javascript`,`data:text/vbscript`,`data:text/css`,`data:text/plain`,`data:text/xml`],PS={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,colon:`:`,sol:`/`,bsol:`\\`,Tab:` `,NewLine:`
86
- `};function FS(e){let t=e;for(let e=0;e<10;e++){let e=t.replace(/&#x([0-9a-f]+);?/gi,(e,t)=>{let n=Number.parseInt(t,16);return n<=1114111?String.fromCodePoint(n):e}).replace(/&#(\d+);?/g,(e,t)=>{let n=Number.parseInt(t,10);return n<=1114111?String.fromCodePoint(n):e}).replace(/&([a-z]+);?/gi,(e,t)=>PS[t]??e);if(e===t)break;t=e}return t}function IS(e){let t=e;try{t=decodeURIComponent(e)}catch{}let n=FS(t),r;try{r=new URL(n)}catch{return!1}return NS.some(e=>r.href.toLowerCase().startsWith(e))}var LS=new Set([`innerhtml`,`dangerouslysetinnerhtml`,`textcontent`]);function RS(e,t,n={}){let r={};for(let i in e){if(i===`$`)continue;let a=e[i],o=i.charCodeAt(0)===58,s=o?i.slice(1):i;if(LS.has(s.toLowerCase()))continue;let c,l=i;if(n.parseJson&&o){if(typeof a==`string`)try{c=JSON.parse(a)}catch{c=KS(t,a)}else c=a;l=s}else if(o&&typeof a==`string`){let e=KS(t,a);e===void 0?c=a:(c=e,l=s)}else c=a;let u=s.toLowerCase();(!o||u!==`href`&&u!==`src`&&u!==`xlink:href`||typeof c!=`string`||!IS(c))&&(r[l]=c)}return r}function zS(e){return!!e&&typeof e==`object`&&Array.isArray(e.nodes)}function BS(e,t={}){if(typeof e==`string`)return t.decodeUnicodeEntities?Iv(e):e;let n=``,r=e.length;for(let i=2;i<r;i++)n+=BS(e[i],t);return n}function*VS(e,t){function*n(e,r,i){let a=e;if(t(e)){let t=yield e;if(t===!1)return r.splice(i,1),!0;t!==void 0&&(r[i]=t,a=t)}if(Array.isArray(a)&&a.length>2){let e=2;for(;e<a.length;)(yield*n(a[e],a,e))||(e+=1)}return!1}let r=0;for(;r<e.nodes.length;)(yield*n(e.nodes[r],e.nodes,r))||(r+=1)}function HS(e,t,n){let r=VS(e,t),i=r.next();for(;!i.done;){let e=n(i.value);i=r.next(e)}}function US(e){return e?GS(e).map(e=>e?e[0].toUpperCase()+e.slice(1):``).join(``):``}function WS(e){return e?GS(e).map(e=>e.toLowerCase()).join(`-`):``}function GS(e){let t=[];if(!e)return t;let n=``,r,i;for(let a=0;a<e.length;a++){let o=e[a],s=o===`-`||o===`_`||o===`/`||o===`.`;if(s===!0){t.push(n),n=``,r=void 0;continue}let c=o.charCodeAt(0),l=c>=48&&c<=57?void 0:c>=65&&c<=90;if(i===!1){if(r===!1&&l===!0){t.push(n),n=o,r=l;continue}if(r===!0&&l===!1&&n.length>1){let e=n[n.length-1];t.push(n.slice(0,n.length-1)),n=e+o,r=l;continue}}n+=o,r=l,i=s}return t.push(n),t}function KS(e,t){let n=t.split(`.`),r=e;for(let e of n)if(r&&typeof r==`object`&&e in r)r=r[e];else return;return r}var qS={"[":`]`,"{":`}`,"(":`)`},JS={"'":`'`,'"':`"`,"`":"`"};function YS(e,t=0){if(e[t]!==`{`)throw Error(`Invalid props, expected \`{\` but got '${e[t]}'`);let n=[];if(e[t+1]===`{`)return;for(t+=1;t<e.length;)if(e[t]===`\\`)t+=2;else if(e[t]===`}`){t+=1;break}else if(e[t]===` `)t+=1;else if(e[t]===`.`)t+=1,n.push([`class`,r(` #.}`)]);else if(e[t]===`#`)t+=1,n.push([`id`,r(` #.}`)]);else{let r=t;for(;t<e.length&&(t+=1,!` }=`.includes(e[t])););let a=e[t];if(r!==t){let o=e.slice(r,t).trim(),s=``;a===`=`?(t+=1,s=i()):(o=o[0]===`:`?o:`:${o}`,s=`true`),o.match(/^:?[a-z_][a-z0-9_-]*$/gi)&&n.push([o,s])}}function r(n){let r=t;for(;t<e.length&&(t+=1,e[t]===`\\`&&(t+=2),!n.includes(e[t])););return e.slice(r,t)}function i(){let n=t;return e[t]in qS?(a(qS[e[t]]),t+=1,e.slice(n,t)):e[t]in JS?(o(JS[e[t]]),t+=1,e.slice(n,t)):r(` }`)}function a(n){for(;t<e.length;)if(t++,e[t]in JS)o(JS[e[t]]);else if(e[t]in qS)a(qS[e[t]]);else if(e[t]===n)return}function o(e){return r(e)}return n.forEach(e=>{/^(['"`]).*\1$/.test(e[1])&&(e[1]=e[1].slice(1,-1))}),{props:n,index:t}}var XS=/^[a-z$][$\w.-]*/i;function ZS(e){if(e=e.trim(),!e)return{name:``};let t=e.match(XS)?.[0];if(!t)throw Error(`Invalid block params: ${e}`);let n=e.slice(t.length).trim(),r,i,a;if(n.startsWith(`[`)){let e=cv(n,0);e&&(r=e.content,n=n.slice(e.endIndex).trim())}if(n.startsWith(`{`)){let e=YS(n,0);if(e){i=e.props;let t=n.slice(e.index).trim();t&&(a=t)}}else n&&(a=n);let o={name:WS(t)};return r!==void 0&&(o.content=r),i!==void 0&&(o.props=i),a&&(o.remaining=a),o}function QS(e,t,n){let r=e.bMarks[t],i=e.eMarks[t],a=r,o=0;for(;a<i&&o<n;){let r=e.src.charCodeAt(a);if(r===32)o++;else if(r===9){let r=4-(o+e.bsCount[t])%4;if(o+r>n)return!1;o+=r}else break;a++}return o>0&&(e.bMarks[t]=a,e.bsCount[t]+=o,e.sCount[t]-=o,e.tShift[t]-=a-r),!0}function $S(e,t,n,r){let i=[],a=[],o=[],s=[];for(let c=t;c<n;c++)if(i.push(e.bMarks[c]),a.push(e.bsCount[c]),o.push(e.sCount[c]),s.push(e.tShift[c]),!QS(e,c,r[c-t]))return eC(e,t,i,a,o,s),!1;let c=e.blkIndent;return e.blkIndent=0,e.md.block.tokenize(e,t,n),e.blkIndent=c,eC(e,t,i,a,o,s),!0}function eC(e,t,n,r,i,a){for(let o=0;o<n.length;o++){let s=t+o;e.bMarks[s]=n[o],e.bsCount[s]=r[o],e.sCount[s]=i[o],e.tShift[s]=a[o]}}var tC=/^[a-z$][\w$-]*/i;function nC(e){return tC.test(e)}var rC={"---":`---`,"```yaml [props]":"```","~~~yaml [props]":`~~~`,"```yml [props]":"```","~~~yml [props]":`~~~`},iC=e=>{e.block.ruler.before(`fence`,`comark_block_shorthand`,function(e,t,n,r){let i=e.src.slice(e.bMarks[t]+e.tShift[t],e.eMarks[t]);if(i[0]!==`:`||!nC(i.slice(1)))return!1;let{name:a,content:o,props:s,remaining:c}=ZS(i.slice(1));if(c)return!1;if(!r){if(o!==void 0){let n=e.push(`mdc_block_shorthand`,a,1);s?.forEach(([e,t])=>{e===`class`?n.attrJoin(e,t):n.attrSet(e,t)}),n.map=[t,t+1];let r=e.push(`inline`,``,0);r.content=o,r.children=[];let i=e.push(`mdc_block_shorthand`,a,-1);i.map=[t,t+1]}else{let n=e.push(`mdc_block_shorthand`,a,0);n.map=[t,t+1],s?.forEach(([e,t])=>{e===`class`?n.attrJoin(e,t):n.attrSet(e,t)})}}return e.line=t+1,!0}),e.block.ruler.before(`fence`,`comark_block`,function(e,t,n,r){let i,a,o=!1,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t],l=e.sCount[t],u=!1,d=0,f=0,p=0;if(e.src[s]!==`:`)return!1;for(i=s+1;i<=c&&e.src[i]===`:`;i++);let m=Math.floor(i-s);if(m<2)return!1;let h=e.src.slice(s,i),g=e.skipSpaces(i);if(g<c&&!nC(e.src.slice(g,c)))return!1;let _=ZS(e.src.slice(i,c));if(!_.name)return!1;if(r)return!0;let v=[],y=0,b=!1;for(a=t;a++,!(a>=n||(s=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],s<c&&e.sCount[a]<e.blkIndent));){let t=s>=c?l:e.sCount[a];t<l&&(b=!0),v.push(s>=c?0:u?y:Math.min(l,t));let n=e.src.charCodeAt(s);if(u){if(n===d){let t=s+1;for(;t<c&&e.src.charCodeAt(t)===d;)t++;t-s>=f&&e.skipSpaces(t)>=c&&(u=!1)}}else{if(n===96||n===126){let t=s+1;for(;t<c&&e.src.charCodeAt(t)===n;)t++;if(t-s>=3){u=!0,d=n,f=t-s,y=v[v.length-1];continue}}if(n===58){for(i=s+1;i<=c&&e.src[i]===`:`;i++);if(i-s===m){if(i=e.skipSpaces(i),i<c)p++;else if(p>0)p--;else{o=!0;break}}}}}let x=e.parentType,S=e.lineMax;e.parentType=`comark_block`,e.lineMax=a;let C=e.push(`mdc_block_open`,_.name,1);if(C.markup=h,C.block=!0,C.info=_.name,C.map=[t,a],_.props?.forEach(([e,t])=>{e===`class`?C.attrJoin(e,t):C.attrSet(e,t)}),_.content!==void 0){let n=e.push(`paragraph_open`,`p`,1);n.map=[t,t+1];let r=e.push(`inline`,``,0);r.content=_.content,r.children=[],e.push(`paragraph_close`,`p`,-1)}if(e.env.comarkBlockTokens||=[],e.env.comarkBlockTokens.unshift(C),!b||!$S(e,t+1,a,v)){let n=e.blkIndent;e.blkIndent=l,e.md.block.tokenize(e,t+1,a),e.blkIndent=n}e.env.comarkBlockTokens.shift();let w=e.push(`mdc_block_close`,_.name,-1);return w.map=[t,a],w.markup=e.src.slice(s,i),w.block=!0,e.tokens.slice(e.tokens.indexOf(C)+1,e.tokens.indexOf(w)).filter(e=>e.level===C.level+1).forEach((e,t,n)=>{n.length<=2&&e.tag===`p`&&(e.hidden=!0)}),e.parentType=x,e.lineMax=S,e.line=a+ +!!o,!0},{alt:[`paragraph`,`reference`,`blockquote`,`list`]}),e.block.ruler.after(`code`,`comark_block_yaml`,function(e,t,n,r){if(!e.env.comarkBlockTokens?.length)return!1;let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.src.slice(i,a),s=rC[o]||``;if(!s)return!1;if(o===`---`){let n=e.env.comarkBlockTokens[0].map?.[0];if(n===void 0||t!==n+1)return!1}let c=t+1,l=!1;for(;c<n;){if(e.src.slice(e.bMarks[c]+e.tShift[t],e.eMarks[c])===s){l=!0;break}c+=1}if(!l)return!1;if(!r){let n=MS(e.getLines(t+1,c,e.blkIndent,!1)),r=e.env.comarkBlockTokens[0];Object.entries(n||{}).forEach(([e,t])=>{e===`class`?r.attrJoin(e,t):typeof t==`string`?r.attrSet(e,t):r.attrSet(`:${e}`,JSON.stringify(t))})}return e.line=c+1,!0}),e.block.ruler.after(`code`,`comark_block_slots`,function(e,t,n,r){if(!e.env.comarkBlockTokens?.length)return!1;let i=e.bMarks[t]+e.tShift[t];if(e.src[i]!==`#`||e.src[i+1]===` `||e.src[i+1]===`#`)return!1;let{name:a,props:o}=ZS(e.src.slice(i,e.eMarks[t]).slice(1)),s=t+1,c=!1,l=``,u=0;for(;s<n;){let n=e.src.slice(e.bMarks[s]+e.tShift[t],e.eMarks[s]);if(c){if(n[0]===l){let e=1;for(;e<n.length&&n[e]===l;)e++;e>=u&&n.slice(e).trim()===``&&(c=!1)}s+=1}else{if(n[0]==="`"||n[0]===`~`){let e=n[0],t=1;for(;t<n.length&&n[t]===e;)t++;if(t>=3){c=!0,l=e,u=t,s+=1;continue}}if(/^#\w+/.test(n)||n.startsWith(`::`))break;s+=1}}if(r)return e.line=s,!0;let d=e.lineMax,f=e.push(`mdc_block_slot`,`template`,1);return f.attrSet(`#${a}`,``),o?.forEach(([e,t])=>{e===`class`?f.attrJoin(e,t):f.attrSet(e,t)}),e.line=t+1,e.lineMax=s,e.md.block.tokenize(e,t+1,s),e.push(`mdc_block_slot`,`template`,-1),e.line=s,e.lineMax=d,!0})},aC=new Set([` `,` `,`
87
- `,`*`,`_`,`[`]),oC=e=>{e.inline.ruler.after(`entity`,`comark_inline_component`,(e,t)=>{let n=e.pos;if(e.src[n]!==`:`)return!1;let r=e.src[n-1];if(n>0&&!aC.has(r))return!1;let i=n+1,a=-1,o=-1,s=-1;for(;i<e.src.length;){let t=e.src[i];if(t===`[`){a=i;let t=cv(e.src,i);t&&(o=i+1,s=t.endIndex-1,i=t.endIndex);break}if(!/[\w$-]/.test(t))break;i+=1}if(a===-1&&(a=i),a<=n+1)return!1;let c=e.src.slice(n+1,a);if(!nC(c))return!1;if(e.pos=i,t)return!0;if(o!==-1){e.push(`mdc_inline_component`,c,1);let t=e.pos,n=e.posMax;e.pos=o,e.posMax=s,e.md.inline.tokenize(e),e.pos=t,e.posMax=n,e.push(`mdc_inline_component`,c,-1)}else e.push(`mdc_inline_component`,c,0);return!0})},sC=e=>{e.inline.ruler.before(`link`,`comark_inline_span`,(e,t)=>{let n=e.pos;if(e.src[n]!==`[`)return!1;let r=sv(e.src,n),i=r===-1?e.src.length:r,a=e.src[i+1];if(a===`(`||a===`[`||e.linkLevel>0&&a!==`{`||t)return!1;e.push(`mdc_inline_span`,`span`,1);let o=e.pos,s=e.posMax;return e.pos=n+1,e.posMax=i,e.md.inline.tokenize(e),e.pos=o,e.posMax=s,e.push(`mdc_inline_span`,`span`,-1),e.pos=i+1,!0})},cC=e=>{e.use(iC),e.use(sC),e.use(oC)},lC=ov(()=>({name:`components`,markdownItPlugins:[cC]})),uC=e=>{e.inline.ruler.after(`entity`,`comark_inline_props`,(e,t)=>{let n=e.pos;if(e.src[n]!==`{`||e.src[n+1]===`{`||e.src[n-1]===`{`||e.src[n-1]===`$`)return!1;let r=YS(e.src,n);if(!r)return!1;let{props:i,index:a}=r;if(a===n)return!1;if(e.pos=a,t)return!0;let o=e.push(`mdc_inline_props`,`span`,0);return o.attrs=i,o.hidden=!0,!0}),e.renderer.rules.mdc_inline_props=()=>``;let t=e.parse;e.parse=function(e,n){let r=t.call(this,e,n);return r.forEach((e,t)=>{let n=r[t-1],i=r[t+1];if(!n||![`heading_open`,`paragraph_open`,`list_item_open`].includes(n.type)||n.hidden||(e.hidden&&i?.type===`inline`&&(e=i),e.type!==`inline`||!e.children?.length))return;let a=e.children[e.children.length-1];if(a.type!==`mdc_inline_props`)return;let o=e.children.length-2;for(;o>=0;){let t=e.children[o];if(t.type===`text`&&!t.content)o--;else break}let s=o>=0?e.children[o]:void 0;if(!s||s.type!==`text`)return;typeof s.content==`string`&&(s.content=s.content.replace(/[ \t]+$/,``));let c=a.attrs;e.children.length=s.content?o+1:o,c?.forEach(([e,t])=>{e===`class`?n.attrJoin(`class`,t):n.attrSet(e,t)})}),r},e.renderer.renderInline=dC(e.renderer.renderInline),`renderInlineAsync`in e.renderer&&(e.renderer.renderInlineAsync=dC(e.renderer.renderInlineAsync))};function dC(e){return function(t,n,r){return t=[...t],t.forEach((e,n)=>{if(e.type!==`mdc_inline_props`)return;let r=n-1,i=t[r];for(;r>=0&&i.type===`text`&&!i.content.trim();)r--,i=t[r];if(!i.tag&&i.type===`text`){i=new tg(`mdc_inline_span`,`span`,1),t.splice(n-1,0,i);let e=new tg(`mdc_inline_span`,`span`,-1);t.splice(n+2,0,e)}else if(i.nesting===-1){let e=n-1;for(;e>=0;){let n=t[e];if(n.nesting===1&&n.tag===i.tag&&n.level===i.level){i=n;break}e--}}if(i.nesting===-1)throw Error(`No matching opening tag found for ${JSON.stringify(i)}`);e.attrs?.forEach(([e,t])=>{e===`class`?i.attrJoin(`class`,t):i.attrSet(e,t)})}),e.call(this,t,n,r)}}var fC=uC,pC=ov(()=>({name:`attributes`,markdownItPlugins:[fC]}));function mC(e,t,n){let r=e.attrIndex(t),i=[t,n];r<0?(e.attrs||=[],e.attrs.push(i)):e.attrs[r]=i}function hC(e,t){let n=!(t?.enabled??!1);e.core.ruler.before(`inline`,`task-lists-mdc`,e=>{let t=e.tokens,n=[],r=[],i=[];for(let e=0;e<t.length;e++){let a=t[e];if(a.type===`bullet_list_open`||a.type===`ordered_list_open`)i.push(e);else if(a.type===`bullet_list_close`||a.type===`ordered_list_close`)i.pop();else if(a.type===`list_item_open`)n.push(e),r.push(i.length>0?i[i.length-1]:-1);else if(a.type===`list_item_close`)n.pop(),r.pop();else if(a.type===`inline`&&a.content&&n.length>0){let e=a.content.match(/^(\[[ x]\])\s+/i);if(e){let i=e[1].toLowerCase()===`[x]`;mC(t[n[n.length-1]],`class`,`task-list-item`);let o=r[r.length-1];o>=0&&mC(t[o],`class`,`contains-task-list`);let s=`TASK_CHECKBOX_${i?`CHECKED`:`UNCHECKED`} `;a.content=a.content.replace(/^\[[ x]\]\s+/i,s)}}}}),e.core.ruler.after(`inline`,`task-lists-mdc-post`,e=>{let t=e.tokens;for(let r=0;r<t.length;r++){let i=t[r];if(i.type===`inline`&&i.children)for(let t=0;t<i.children.length;t++){let r=i.children[t];if(r.type===`text`&&r.content){let a=r.content.match(/^TASK_CHECKBOX_CHECKED/),o=r.content.match(/^TASK_CHECKBOX_UNCHECKED/);if(a||o){let o=!!a,s=new e.Token(`mdc_inline_component`,`input`,0);s.attrs=[[`class`,`task-list-item-checkbox`],[`type`,`checkbox`]],n&&s.attrs.push([`:disabled`,`true`]),o&&s.attrs.push([`:checked`,`true`]),r.content=r.content.replace(/^TASK_CHECKBOX_(CHECKED|UNCHECKED)/,``),i.children.splice(t,0,s),t++}}}}})}var gC=ov(()=>({name:`task-list`,markdownItPlugins:[hC]})),_C={"!TIP":{type:`tip`,title:`Tip`,color:`#238636`},"!NOTE":{type:`note`,title:`Note`,color:`#1f6feb`},"!IMPORTANT":{type:`important`,title:`Important`,color:`#8957e5`},"!WARNING":{type:`warning`,title:`Warning`,color:`#9e6a03`},"!CAUTION":{type:`caution`,title:`Caution`,color:`#da3633`}},vC=ov(()=>({name:`alert`,post(e){HS(e.tree,e=>Array.isArray(e)&&e[0]===`blockquote`,e=>{let t=e;if(e[2]?.[0]===`span`){let n=_C[String(e[2][2]).toUpperCase()];n&&(typeof e[3]==`string`&&(t[3]=String(t[3]).trimStart()),t.splice(2,1),t[1].as=n.type)}else if(e[2]?.[0]===`p`){let n=e[2];if(n[2]?.[0]===`span`){let e=_C[String(n[2][2]).toUpperCase()];e&&(typeof n[3]==`string`&&(n[3]=String(n[3]).trimStart()),n.splice(2,1),t[1].as=e.type)}}})}})),yC=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),bC=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,xC=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,SC=RegExp(`^(?:${bC}|${xC}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<\\?[\\s\\S]*?\\?>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),CC=RegExp(`^(?:${bC}|${xC})`),wC=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${yC.join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${CC.source}\\s*$`),/^$/,!1]];function TC(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<wC.length&&!wC[s][0].test(o);s++);if(s===wC.length)return!1;if(r)return wC[s][2];let c=t+1;if(!wC[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),wC[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let l=e.push(`html_block`,``,1);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function EC(e){return/^<a[>\s]/i.test(e)}function DC(e){return/^<\/a\s*>/i.test(e)}function OC(e){let t=e|32;return t>=97&&t<=122}function kC(e,t){let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!OC(i))return!1;let a=e.src.slice(r).match(SC);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],EC(t.content)&&e.linkLevel++,DC(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}function AC(e){e.set({html:!0}),e.inline.ruler.before(`text`,`comark_html_inline`,kC),e.block.ruler.before(`html_block`,`comark_html_block`,TC,{alt:[`paragraph`,`reference`,`blockquote`]})}var jC=ov(()=>({name:`html`,markdownItPlugins:[AC]})),MC=`---`,NC=`\r`;function PC(e){let t={},n=``;if(e.startsWith(MC)){let r=e.indexOf(`
88
- ---`);if(r!==-1){let i=e[r-1]===NC;n=e.slice(4,r-+!!i),n&&(t=MS(n)??{},e=e.slice(r+4+ +!!i))}}return{content:e,data:t,frontmatterText:n}}var FC=ov(()=>({name:`frontmatter`,pre(e){let{content:t,data:n,frontmatterText:r}=PC(e.markdown);e.markdown=t,e.frontmatter=n,e.frontmatterText=r,t&&r&&(e.parsedLines=(e.parsedLines??0)+r.split(`
89
- `).length+1)}}));function IC(e){return e?e===!0?[`p`]:typeof e==`string`?e.split(/[,\s]/).map(e=>e.trim()).filter(Boolean):e.filter(Boolean):[]}function LC(e){return Array.isArray(e)&&typeof e[0]==`string`}function RC(e,t){return LC(e)&&(t===`*`||e[0]===t)}function zC(e,t){if(t.length===0)return e;let[n,...r]=t,i=[];for(let t of e){let e=RC(t,n)?t.slice(2):[t];for(let t of zC(e,r))i.push(t)}return i.filter(e=>typeof e!=`string`||e.trim()!==``)}function BC(e,t){if(t.length===0)return e;let n=zC(e,t),r=[];for(let e of n)typeof e==`string`&&typeof r[r.length-1]==`string`?r[r.length-1]=r[r.length-1]+e:r.push(e);return r}var Z;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(Z||={});var Q;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.DeclarationSequence=20]=`DeclarationSequence`,e[e.InSpecialComment=21]=`InSpecialComment`,e[e.InCommentLike=22]=`InCommentLike`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.InPlainText=25]=`InPlainText`,e[e.InEntity=26]=`InEntity`})(Q||={});function VC(e){return e===Z.Space||e===Z.NewLine||e===Z.Tab||e===Z.FormFeed||e===Z.CarriageReturn}function HC(e){return e===Z.Slash||e===Z.Gt||VC(e)}function UC(e){return e>=Z.LowerA&&e<=Z.LowerZ||e>=Z.UpperA&&e<=Z.UpperZ}var WC;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(WC||={});var $={Empty:new Uint8Array,Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,33,62]),Doctype:new Uint8Array([100,111,99,116,121,112,101]),IframeEnd:new Uint8Array([60,47,105,102,114,97,109,101]),NoembedEnd:new Uint8Array([60,47,110,111,101,109,98,101,100]),NoframesEnd:new Uint8Array([60,47,110,111,102,114,97,109,101,115]),Plaintext:new Uint8Array([60,47,112,108,97,105,110,116,101,120,116]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},GC=new Map([[$.IframeEnd[2],$.IframeEnd],[$.NoembedEnd[2],$.NoembedEnd],[$.Plaintext[2],$.Plaintext],[$.ScriptEnd[2],$.ScriptEnd],[$.TitleEnd[2],$.TitleEnd],[$.XmpEnd[2],$.XmpEnd]]),KC=class{cbs;state=Q.Text;buffer=``;sectionStart=0;index=0;entityStart=0;baseState=Q.Text;isSpecial=!1;running=!0;offset=0;xmlMode;decodeEntities;recognizeSelfClosing;entityDecoder;constructor({xmlMode:e=!1,decodeEntities:t=!0,recognizeSelfClosing:n=e},r){this.cbs=r,this.xmlMode=e,this.decodeEntities=t,this.recognizeSelfClosing=n,this.entityDecoder=new jv(e?_v:gv,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=Q.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=Q.Text,this.isSpecial=!1,this.currentSequence=$.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===Z.Lt||!this.decodeEntities&&this.fastForwardTo(Z.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Q.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Z.Amp&&this.startEntity()}currentSequence=$.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===$.Plaintext?(this.currentSequence=$.Empty,this.state=Q.InPlainText):this.isSpecial?(this.state=Q.InSpecialTag,this.sequenceIndex=0):this.state=Q.Text}stateSpecialStartSequence(e){let t=e|32;if(this.sequenceIndex<this.currentSequence.length){if(t===this.currentSequence[this.sequenceIndex]){this.sequenceIndex++;return}if(this.sequenceIndex===3){if(this.currentSequence===$.ScriptEnd&&t===$.StyleEnd[3]){this.currentSequence=$.StyleEnd,this.sequenceIndex=4;return}if(this.currentSequence===$.TitleEnd&&t===$.TextareaEnd[3]){this.currentSequence=$.TextareaEnd,this.sequenceIndex=4;return}}else if(this.sequenceIndex===4&&this.currentSequence===$.NoembedEnd&&t===$.NoframesEnd[4]){this.currentSequence=$.NoframesEnd,this.sequenceIndex=5;return}}else if(HC(e)){this.sequenceIndex=0,this.state=Q.InTagName,this.stateInTagName(e);return}this.isSpecial=!1,this.currentSequence=$.Empty,this.sequenceIndex=0,this.state=Q.InTagName,this.stateInTagName(e)}stateCDATASequence(e){e===$.Cdata[this.sequenceIndex]?++this.sequenceIndex===$.Cdata.length&&(this.state=Q.InCommentLike,this.currentSequence=$.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.xmlMode?(this.state=Q.InDeclaration,this.stateInDeclaration(e)):(this.state=Q.InSpecialComment,this.stateInSpecialComment(e)))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}emitComment(e){this.cbs.oncomment(this.sectionStart,this.index,e),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Q.Text}stateInCommentLike(e){!this.xmlMode&&this.currentSequence===$.CommentEnd&&this.sequenceIndex<=1&&this.index===this.sectionStart+this.sequenceIndex&&e===Z.Gt?this.emitComment(this.sequenceIndex):this.currentSequence===$.CommentEnd&&this.sequenceIndex===2&&e===Z.Gt?this.emitComment(2):this.currentSequence===$.CommentEnd&&this.sequenceIndex===this.currentSequence.length-1&&e!==Z.Gt?this.sequenceIndex=Number(e===Z.Dash):e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===$.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,3),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Q.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!HC(e):UC(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(HC(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===$.TitleEnd||this.currentSequence===$.TextareaEnd?this.decodeEntities&&e===Z.Amp&&this.startEntity():this.fastForwardTo(Z.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===Z.Lt)}stateBeforeTagName(e){if(e===Z.ExclamationMark)this.state=Q.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Z.Questionmark)this.xmlMode?(this.state=Q.InProcessingInstruction,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.state=Q.InSpecialComment,this.sectionStart=this.index);else if(this.isTagStartChar(e)){this.sectionStart=this.index;let t=this.xmlMode||this.cbs.isInForeignContext?.()?void 0:GC.get(e|32);t===void 0?this.state=Q.InTagName:(this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=3,this.state=Q.SpecialStartSequence)}else e===Z.Slash?this.state=Q.BeforeClosingTagName:(this.state=Q.Text,this.stateText(e))}stateInTagName(e){HC(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){VC(e)?this.xmlMode||(this.state=Q.InSpecialComment,this.sectionStart=this.index):e===Z.Gt?(this.state=Q.Text,this.xmlMode||(this.sectionStart=this.index+1)):(this.state=this.isTagStartChar(e)?Q.InClosingTagName:Q.InSpecialComment,this.sectionStart=this.index)}stateInClosingTagName(e){HC(e)&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=Q.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.state=Q.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Z.Gt?(this.cbs.onopentagend(this.index),this.enterTagBody(),this.sectionStart=this.index+1):e===Z.Slash?this.state=Q.InSelfClosingTag:VC(e)||(this.state=Q.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){if(e===Z.Gt){if(this.cbs.onselfclosingtag(this.index),this.sectionStart=this.index+1,!this.recognizeSelfClosing){this.enterTagBody();return}this.state=Q.Text,this.isSpecial=!1,this.currentSequence=$.Empty}else VC(e)||(this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===Z.Eq||HC(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=Q.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Z.Eq?this.state=Q.BeforeAttributeValue:e===Z.Slash||e===Z.Gt?(this.cbs.onattribend(WC.NoValue,this.sectionStart),this.sectionStart=-1,this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e)):VC(e)||(this.cbs.onattribend(WC.NoValue,this.sectionStart),this.state=Q.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Z.DoubleQuote?(this.state=Q.InAttributeValueDq,this.sectionStart=this.index+1):e===Z.SingleQuote?(this.state=Q.InAttributeValueSq,this.sectionStart=this.index+1):VC(e)||(this.sectionStart=this.index,this.state=Q.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Z.DoubleQuote?WC.Double:WC.Single,this.index+1),this.state=Q.BeforeAttributeName):this.decodeEntities&&e===Z.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Z.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Z.SingleQuote)}stateInAttributeValueNoQuotes(e){VC(e)||e===Z.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(WC.Unquoted,this.index),this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Z.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===Z.OpeningSquareBracket?(this.state=Q.CDATASequence,this.sequenceIndex=0):this.xmlMode?this.state=e===Z.Dash?Q.BeforeComment:Q.InDeclaration:(e|32)===$.Doctype[0]?(this.state=Q.DeclarationSequence,this.currentSequence=$.Doctype,this.sequenceIndex=1):e===Z.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1):this.state=e===Z.Dash?Q.BeforeComment:Q.InSpecialComment}stateDeclarationSequence(e){this.sequenceIndex===this.currentSequence.length?(this.state=Q.InDeclaration,this.stateInDeclaration(e)):(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:e===Z.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1):this.state=Q.InSpecialComment}stateInDeclaration(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=Q.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){e===Z.Questionmark?this.sequenceIndex=1:e===Z.Gt&&this.sequenceIndex===1?(this.cbs.onprocessinginstruction(this.sectionStart,this.index-1),this.sequenceIndex=0,this.state=Q.Text,this.sectionStart=this.index+1):this.sequenceIndex=Number(this.fastForwardTo(Z.Questionmark))}stateBeforeComment(e){e===Z.Dash?(this.state=Q.InCommentLike,this.currentSequence=$.CommentEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):this.xmlMode?this.state=Q.InDeclaration:e===Z.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1):this.state=Q.InSpecialComment}stateInSpecialComment(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1)}startEntity(){this.baseState=this.state,this.state=Q.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Av.Strict:this.baseState===Q.Text||this.baseState===Q.InSpecialTag?Av.Legacy:Av.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&--this.index;else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===Z.Amp){this.state=this.baseState,--this.index;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Q.Text||this.state===Q.InPlainText||this.state===Q.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Q.InAttributeValueDq||this.state===Q.InAttributeValueSq||this.state===Q.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case Q.Text:this.stateText(e);break;case Q.InPlainText:this.index=this.buffer.length+this.offset-1;break;case Q.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case Q.InSpecialTag:this.stateInSpecialTag(e);break;case Q.CDATASequence:this.stateCDATASequence(e);break;case Q.DeclarationSequence:this.stateDeclarationSequence(e);break;case Q.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case Q.InAttributeName:this.stateInAttributeName(e);break;case Q.InCommentLike:this.stateInCommentLike(e);break;case Q.InSpecialComment:this.stateInSpecialComment(e);break;case Q.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case Q.InTagName:this.stateInTagName(e);break;case Q.InClosingTagName:this.stateInClosingTagName(e);break;case Q.BeforeTagName:this.stateBeforeTagName(e);break;case Q.AfterAttributeName:this.stateAfterAttributeName(e);break;case Q.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case Q.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case Q.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case Q.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case Q.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case Q.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case Q.InDeclaration:this.stateInDeclaration(e);break;case Q.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case Q.BeforeComment:this.stateBeforeComment(e);break;case Q.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case Q.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===Q.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingCommentLikeData(e){if(this.state!==Q.InCommentLike)return!1;if(this.currentSequence===$.CdataEnd){if(this.xmlMode)this.sectionStart<e&&this.cbs.oncdata(this.sectionStart,e,0);else{let t=this.sectionStart-$.Cdata.length-1;this.cbs.oncomment(t,e,0)}}else{let t=this.xmlMode?0:Math.min(this.sequenceIndex,$.CommentEnd.length-1);this.cbs.oncomment(this.sectionStart,e,t)}return!0}handleTrailingMarkupDeclaration(e){if(this.xmlMode)switch(this.state){case Q.InSpecialComment:case Q.BeforeComment:case Q.CDATASequence:case Q.DeclarationSequence:case Q.InDeclaration:return this.cbs.ontext(this.sectionStart,e),!0;default:return!1}switch(this.state){case Q.BeforeDeclaration:case Q.InSpecialComment:case Q.BeforeComment:case Q.CDATASequence:return this.cbs.oncomment(this.sectionStart,e,0),!0;case Q.DeclarationSequence:return this.sequenceIndex!==$.Doctype.length&&this.cbs.oncomment(this.sectionStart,e,0),!0;case Q.InDeclaration:return!0;default:return!1}}handleTrailingData(){let e=this.buffer.length+this.offset;if(!(this.handleTrailingCommentLikeData(e)||this.handleTrailingMarkupDeclaration(e))&&!(this.sectionStart>=e))switch(this.state){case Q.InTagName:case Q.BeforeAttributeName:case Q.BeforeAttributeValue:case Q.AfterAttributeName:case Q.InAttributeName:case Q.InAttributeValueSq:case Q.InAttributeValueDq:case Q.InAttributeValueNq:case Q.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==Q.Text&&this.baseState!==Q.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}},{fromCodePoint:qC}=String,JC=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),YC=new Set([`p`]),XC=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`p`]),ZC=new Set([`thead`,`tbody`]),QC=new Set([`dd`,`dt`]),$C=new Set([`rt`,`rp`]),ew=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`a`,new Set([`a`])],[`li`,new Set([`li`])],[`p`,YC],[`h1`,XC],[`h2`,XC],[`h3`,XC],[`h4`,XC],[`h5`,XC],[`h6`,XC],[`select`,JC],[`input`,JC],[`output`,JC],[`button`,JC],[`datalist`,JC],[`textarea`,JC],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,QC],[`dt`,QC],[`address`,YC],[`article`,YC],[`aside`,YC],[`blockquote`,YC],[`details`,YC],[`div`,YC],[`dl`,YC],[`fieldset`,YC],[`figcaption`,YC],[`figure`,YC],[`footer`,YC],[`form`,YC],[`header`,YC],[`hr`,YC],[`main`,YC],[`nav`,YC],[`ol`,YC],[`pre`,YC],[`section`,YC],[`table`,YC],[`ul`,YC],[`rt`,$C],[`rp`,$C],[`tbody`,ZC],[`tfoot`,ZC]]),tw=`doctype`,nw=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),rw=new Set([`math`,`svg`]),iw=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),aw=new Map([[`altglyph`,`altGlyph`],[`altglyphdef`,`altGlyphDef`],[`altglyphitem`,`altGlyphItem`],[`animatecolor`,`animateColor`],[`animatemotion`,`animateMotion`],[`animatetransform`,`animateTransform`],[`clippath`,`clipPath`],[`feblend`,`feBlend`],[`fecolormatrix`,`feColorMatrix`],[`fecomponenttransfer`,`feComponentTransfer`],[`fecomposite`,`feComposite`],[`feconvolvematrix`,`feConvolveMatrix`],[`fediffuselighting`,`feDiffuseLighting`],[`fedisplacementmap`,`feDisplacementMap`],[`fedistantlight`,`feDistantLight`],[`fedropshadow`,`feDropShadow`],[`feflood`,`feFlood`],[`fefunca`,`feFuncA`],[`fefuncb`,`feFuncB`],[`fefuncg`,`feFuncG`],[`fefuncr`,`feFuncR`],[`fegaussianblur`,`feGaussianBlur`],[`feimage`,`feImage`],[`femerge`,`feMerge`],[`femergenode`,`feMergeNode`],[`femorphology`,`feMorphology`],[`feoffset`,`feOffset`],[`fepointlight`,`fePointLight`],[`fespecularlighting`,`feSpecularLighting`],[`fespotlight`,`feSpotLight`],[`fetile`,`feTile`],[`feturbulence`,`feTurbulence`],[`foreignobject`,`foreignObject`],[`glyphref`,`glyphRef`],[`lineargradient`,`linearGradient`],[`radialgradient`,`radialGradient`],[`textpath`,`textPath`]]),ow;(function(e){e[e.None=0]=`None`,e[e.Svg=1]=`Svg`,e[e.MathML=2]=`MathML`})(ow||={});var sw=/\s|\//,cw=class{options;startIndex=0;endIndex=0;openTagStart=0;tagname=``;attribname=``;attribvalue=``;attribs=null;stack=[];foreignContext;cbs;lowerCaseTagNames;lowerCaseAttributeNames;recognizeSelfClosing;htmlMode;tokenizer;buffers=[];bufferOffset=0;writeIndex=0;ended=!1;constructor(e,t={}){this.options=t,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=t.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=t.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(t.Tokenizer??KC)(this.options,this),this.foreignContext=[ow.None],this.cbs.onparserinit?.(this)}ontext(e,t){let n=this.getSlice(e,t);this.endIndex=t-1,this.cbs.ontext?.(n),this.startIndex=t}ontextentity(e,t){this.endIndex=t-1,this.cbs.ontext?.(qC(e)),this.startIndex=t}isInForeignContext(){return this.foreignContext[0]!==ow.None}isVoidElement(e){return this.htmlMode&&nw.has(e)}readTagName(e,t){let n=this.lowerCaseTagNames?this.getSlice(e,t).toLowerCase():this.getSlice(e,t);if(!(this.lowerCaseTagNames&&this.htmlMode))return n;if(this.foreignContext[0]===ow.Svg)return aw.get(n)??n;if(this.foreignContext.length>1){let e=aw.get(n);if(e!==void 0&&this.stack.includes(e))return e}return this.isInForeignContext()?n:n===`image`?`img`:n}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&e===`form`&&this.stack.includes(`form`)){this.tagname=``;return}let t=this.htmlMode&&ew.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(e===`svg`?this.foreignContext.unshift(ow.Svg):e===`math`?this.foreignContext.unshift(ow.MathML):iw.has(e)&&this.foreignContext.unshift(ow.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&=(this.cbs.onopentag?.(this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;let n=this.readTagName(e,t);if(this.isVoidElement(n))this.htmlMode&&n===`br`&&(this.cbs.onopentagname?.(`br`),this.cbs.onopentag?.(`br`,{},!0),this.cbs.onclosetag?.(`br`,!1));else{let e=this.stack.indexOf(n);if(e!==-1){for(let t=0;t<e;t++)this.popElement(!0);this.popElement(!1)}else this.htmlMode&&n===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.isInForeignContext()?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}popElement(e){let t=this.stack.shift();this.htmlMode&&(rw.has(t)||iw.has(t))&&this.foreignContext.shift(),this.cbs.onclosetag?.(t,e)}closeCurrentTag(e){let t=this.tagname;this.endOpenTag(e),this.stack[0]===t&&this.popElement(!e)}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=qC(e)}onattribend(e,t){this.endIndex=t,this.cbs.onattribute?.(this.attribname,this.attribvalue,e===WC.Double?`"`:e===WC.Single?`'`:e===WC.NoValue?void 0:null),this.attribs&&!Object.hasOwn(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(sw),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.htmlMode?this.lowerCaseTagNames?tw:n.slice(0,7):this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){this.endIndex=t,this.cbs.oncomment?.(this.getSlice(e,t-n)),this.cbs.oncommentend?.(),this.startIndex=t+1}oncdata(e,t,n){this.endIndex=t;let r=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(this.cbs.oncdatastart?.(),this.cbs.ontext?.(r),this.cbs.oncdataend?.()):this.isInForeignContext()?this.cbs.ontext?.(r):(this.cbs.oncomment?.(`[CDATA[${r}]]`),this.cbs.oncommentend?.()),this.startIndex=t+1}onend(){if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}this.cbs.onend?.()}reset(){this.cbs.onreset?.(),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,this.cbs.onparserinit?.(this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(ow.None),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){if(e===t)return``;for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){this.ended?this.cbs.onerror?.(Error(`.write() after done!`)):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){this.ended?this.cbs.onerror?.(Error(`.end() after done!`)):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}},lw=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function uw(e,t=!1){let n={$:{html:1,block:+!t}};for(let t in e){let r=e[t];r===``?n[`:${t}`]=`true`:n[t]=r}return n}function dw(e){let t=e.trim();if(!t.startsWith(`<`))return null;let n=t.match(/^<\/([a-z][a-z0-9]*)\s*>/i);if(n)return{tag:n[1].toLowerCase(),attrs:{},isVoid:!1,isClose:!0};let r=null,i=new cw({onopentag(e,t){r={tag:e,attrs:uw(t,!0),isVoid:lw.has(e),isClose:!1}}},{decodeEntities:!1});return i.write(t),i.end(),r}function fw(e){let t=[],n=[],r=new cw({onopentag(e,r){let i=uw(r);if(lw.has(e)){let r=[e,i];n.length>0?n[n.length-1].children.push(r):t.push(r)}else n.push({tag:e,attrs:i,children:[]})},ontext(e){let r=e.trim();r&&(n.length>0?n[n.length-1].children.push(r):t.push(r))},onclosetag(e){if(lw.has(e))return;let r=n.length-1;for(;r>=0&&n[r].tag!==e;)r--;if(r>=0)for(;n.length>r;){let e=n.pop(),r=e.children.length>0?[e.tag,e.attrs,...e.children]:[e.tag,e.attrs];n.length>0?n[n.length-1].children.push(r):t.push(r)}},oncomment(e){let r=[null,{},e];n.length>0?n[n.length-1].children.push(r):t.push(r)}},{decodeEntities:!0});return r.write(e.trim()),r.end(),t}var pw=new Set([`ul`,`ol`,`table`,`blockquote`,`pre`]),mw={blockquote_open:`blockquote`,ordered_list_open:`ol`,bullet_list_open:`ul`,list_item_open:`li`,paragraph_open:`p`,table_open:`table`,thead_open:`thead`,tbody_open:`tbody`,tr_open:`tr`,th_open:`th`,td_open:`td`},hw={strong_open:`strong`,em_open:`em`,s_open:`del`,sub_open:`sub`,sup_open:`sup`};function gw(e,t){let n={startLine:0,preservePositions:!1,headingIds:!0,...t},r={headingSlugCounts:new Map,headingStack:[],preservePositions:n.preservePositions,headingIds:n.headingIds??!0},i=[],a=0,o=n.startLine;for(;a<e.length;){if(e[a].type===`html_block`){let t=_w(e,a);i.push(...t.nodes),a=t.nextIndex;continue}let t=Sw(e,a,!1,r);if(t.node){if(n.preservePositions){for(let r=a;r<t.nextIndex;r++)e[r].map&&e[r].map[1]&&(o=e[r].map[1]+n.startLine+ +!!e[r].type?.endsWith(`_close`));t.node[1].$||(t.node[1].$={}),t.node[1].$.line=o}i.push(t.node)}a=t.nextIndex}return i}function _w(e,t){return{nodes:fw(typeof e[t]?.content==`string`?e[t].content:``),nextIndex:t+1}}function vw(e,t={}){let{handleJSON:n=!0,filterEmpty:r=!1}=t,i={};if(!e||!Array.isArray(e))return i;for(let t of e)if(Array.isArray(t)&&t.length>=2){let[e]=t,a=t[1];if(r&&(a===``||a==null))continue;if(n&&typeof a==`string`){if(a.startsWith(`{`)&&a.endsWith(`}`))try{a=JSON.parse(a)}catch{}else if(a.startsWith(`[`)&&a.endsWith(`]`))try{a=JSON.parse(a)}catch{}}i[e]=e===`class`&&typeof i[e]==`string`?`${i[e]} ${a}`:a}return i}var yw=1e3;function bw(e){if(!e)return{};let t={},n=e.trim(),r=n.match(/^([^\s[{}"'<>`]+)/);for(r&&(t.language=r[1],n=n.slice(r[1].length).trim());n&&(n.startsWith(`{`)||n.startsWith(`[`));)if(n.startsWith(`{`)){let e=n.match(/^\{([^}]+)\}/);if(e){let r=e[1];n=n.slice(e[0].length).trim();let i=[],a=r.split(`,`);for(let e of a){let t=e.trim();if(t.includes(`-`)){let[e,n]=t.split(`-`).map(e=>Number.parseInt(e.trim(),10));if(!Number.isNaN(e)&&!Number.isNaN(n)&&n-e<=yw)for(let t=e;t<=n&&i.length<yw;t++)i.push(t)}else{let e=Number.parseInt(t,10);!Number.isNaN(e)&&i.length<yw&&i.push(e)}}i.length>0&&(t.highlights=i)}else break}else if(n.startsWith(`[`)){let e=0,r=0;for(;r<n.length;r++)if(n[r]===`[`)e++;else if(n[r]===`]`&&(e--,e===0)){t.filename=n.slice(1,r).replace(/\\\\/g,``),n=n.slice(r+1).trim();break}if(e!==0)break}return n&&(t.meta=n),t}function xw(e,t,n=!0){let r=t;if(n)for(;r<e.length&&e[r].type===`text`&&!e[r].content?.trim();)r++;if(r<e.length&&e[r].type===`mdc_inline_props`){let t=e[r];return{attrs:vw(t.attrs),nextIndex:r+1}}return{attrs:{},nextIndex:t}}function Sw(e,t,n=!1,r){let i=e[t];if(i.type===`hr`)return{node:[`hr`,{}],nextIndex:t+1};if(i.type===`html_block`){let n=_w(e,t);return{node:n.nodes[0]??null,nextIndex:n.nextIndex}}if(i.type===`mdc_block_open`){let n=i.tag||`component`,a=vw(i.attrs),o=Cw(e,t+1,`mdc_block_close`,r);if(pw.has(n)&&o.nodes.length===1&&Array.isArray(o.nodes[0])&&o.nodes[0][0]===n){let e=o.nodes[0],t=e[1],r=e.slice(2);return{node:[n,{...t,...a},...r],nextIndex:o.nextIndex+1}}return{node:[n,a,...o.nodes],nextIndex:o.nextIndex+1}}if(i.type===`mdc_block_shorthand`){let n=t+1,r=i.tag||`component`,a=vw(i.attrs,{handleJSON:!1}),o=[];if(i.nesting===1)for(;n<e.length;){let t=e[n];if(n++,t.type===`mdc_block_shorthand`&&t.nesting===-1)break;if(t.type===`inline`){let e=Ow(t.children||[],!1);o.push(...e)}}return{node:[r,a,...o],nextIndex:n}}if(i.type===`math_block`)return{node:[`math`,{class:`math block`,content:i.content},i.content],nextIndex:t+1};if(i.type===`fence`||i.type===`fenced_code_block`||i.type===`code_block`){let e=i.content||``,n=bw(i.info||i.params||``),r=n,a={};return n.language&&n.language.trim()&&(r.language=n.language,a.class=`language-${n.language}`),{node:[`pre`,r,[`code`,a,e.endsWith(`
80
+ `.repeat(u?1+d:d),l+=n,u=!0,d=0}return i===ub.KEEP?l+=`
81
+ `.repeat(u?1+d:d):i!==ub.STRIP&&u&&(l+=`
82
+ `),l}function wb(e,t){if(t.valueStart===db)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case J.SINGLE_QUOTED:return xb(e,n,r);case J.DOUBLE_QUOTED:return Sb(e,n,r);case J.LITERAL_BLOCK:return Cb(e,n,r,t.indent,t.chomping,!1);case J.FOLDED_BLOCK:return Cb(e,n,r,t.indent,t.chomping,!0);default:return bb(e,n,r)}}var Tb=Object.assign(Object.create(null),{"!":`!`,"!!":`tag:yaml.org,2002:`});function Eb(e){let t=``,n=0;for(;n<e.length;){if(e.charCodeAt(n)!==37){t+=e[n++];continue}let r=parseInt(e.slice(n+1,n+3),16);if(n+=3,r>=192){let t=r<224?1:r<240?2:3;for(r&=(1<<6-t)-1;t-->0;)r=r<<6|parseInt(e.slice(n+1,n+3),16)&63,n+=3}r<65536?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023))}return t}function Db(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return Eb(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1);return Eb(t?.[r]??Tb[r]??r)+Eb(e.slice(r.length))}var Ob=-1,kb=`tag:yaml.org,2002:merge`,Ab={filename:``,schema:eb,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function jb(e){return`tagStart`in e&&e.tagStart!==Ob?e.tagStart:`anchorStart`in e&&e.anchorStart!==Ob?e.anchorStart:`valueStart`in e&&e.valueStart!==Ob?e.valueStart:`start`in e?e.start:0}function Mb(e,t){sb.throwAt(e.source,e.position,t,e.filename)}function Nb(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof sb)throw n;sb.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function Pb(e,t){let n=wb(e.source,t),r=t.tagStart===Ob?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=Db(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===q&&Mb(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&Mb(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:Nb(e,e.position,o,r),tag:o}}Mb(e,`unknown scalar tag !<${t}>`)}return t.style===J.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function Fb(e,t,n){let r=t.tagStart===Ob?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:Db(r,e.tagHandlers)}function Ib(e){return e.nodeKind===`mapping`}function Lb(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&Mb(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function Rb(e,t,n,r){Lb(e);for(let i of r.keys(n)){if(Lb(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&Mb(e,a),t.overridable??=new Set,t.overridable.add(i)}}function zb(e,t,n,r){if(e.position=t.keyPosition,Ib(r))Rb(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&Mb(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||Mb(e,`cannot merge mappings; the provided source object is unacceptable`),Rb(e,t,r,n)}}else Mb(e,`cannot merge mappings; the provided source object is unacceptable`)}function Bb(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){zb(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&Mb(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&Mb(e,a),t.overridable?.delete(n)}function Vb(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){Ib(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&Mb(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,Bb(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===kb}function Hb(e,t,n,r,i){if(t.anchorStart!==Ob){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function Ub(e,t){let n={...Ab,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){let e=n.events[n.eventIndex++];switch(n.position=jb(e),e.type){case cb.DOCUMENT:n.anchors=new Map,n.nodeTags=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(let t of e.directives)t.kind===`tag`&&(n.tagHandlers[t.handle]=t.prefix);n.frames.push({kind:`document`,position:n.position,value:void 0,hasValue:!1});break;case cb.SCALAR:{let{value:t,tag:r}=Pb(n,e);Hb(n,e,t,r,!0),Vb(n,t,r);break}case cb.SEQUENCE:{let t=Fb(n,e,`tag:yaml.org,2002:seq`),r=n.schema.lookupSequenceTag(t);r||Mb(n,`unknown sequence tag !<${t}>`);let i=r.create(t),a=Hb(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case cb.MAPPING:{let t=Fb(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||Mb(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=Hb(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case cb.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&Mb(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||Mb(n,`unidentified alias "${t}"`),r.isValueFinal||Mb(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),Vb(n,r.value,r.tag);break}case cb.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,Mb(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:Nb(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),Vb(n,t,e.tag)}break}}}return n.documents}var Y=-1,Wb=Object.prototype.hasOwnProperty,Gb=1,Kb=2,qb=3,Jb=4,Yb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Xb=/[,\[\]{}]/,Zb=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Qb=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,$b=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,ex=RegExp(`^(?:${Qb})*$`),tx=RegExp(`^(?:${$b})+$`),nx=RegExp(`^(?:!(?:${Qb})*|${$b}(?:${Qb})*)$`),rx={filename:``,maxDepth:100};function ix(e,t,n){e.events.push({type:cb.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function ax(e,t,n,r,i,a,o){e.events.push({type:cb.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function ox(e,t,n,r,i,a,o){e.events.push({type:cb.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function sx(e,t){e.events.splice(t.eventsLength,0,{type:cb.MAPPING,start:t.position,anchorStart:Y,anchorEnd:Y,tagStart:Y,tagEnd:Y,style:lb.FLOW})}function cx(e,t,n,r,i,a,o,s,c=ub.CLIP,l=-1,u=!1){e.events.push({type:cb.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:c,indent:l,fast:u})}function lx(e,t,n){e.events.push({type:cb.ALIAS,anchorStart:t,anchorEnd:n})}function ux(e){e.events.push({type:cb.POP})}function dx(e){cx(e,Y,Y,Y,Y,Y,Y,J.PLAIN)}function fx(){return{anchorStart:Y,anchorEnd:Y,tagStart:Y,tagEnd:Y}}function px(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function mx(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function X(e,t){sb.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function hx(e){return e===10||e===13}function gx(e){return e===9||e===32}function _x(e){return gx(e)||hx(e)}function vx(e){return e===0||_x(e)}function yx(e){return e===44||e===91||e===93||e===123||e===125}function bx(e){return e>=48&&e<=57?e-48:-1}function xx(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function Sx(e){return e===120?2:e===117?4:e===85?8:0}function Cx(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function wx(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function Tx(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||_x(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;gx(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!hx(r)&&r!==0);if(!hx(r))break;for(wx(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function Ex(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||_x(n)}return!1}function Dx(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function Ox(e){if(e.position!==e.lineStart)return!1;if(Ex(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=px(e);Dx(e),Tx(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&Ex(e));return mx(e,t),r}function kx(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!hx(t);)t=e.input.charCodeAt(++e.position)}function Ax(e,t,n){let r=Yb.exec(e.input.slice(t,n));r!==null&&(e.position=t+r.index+r[0].length-1,X(e,`the stream contains non-printable characters`))}function jx(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Y&&X(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let c=e.position,l;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&X(e,`unexpected end of the stream within a verbatim tag`),l=e.input.slice(c,e.position),e.position++}else{for(;s!==0&&!_x(s)&&!(n&&yx(s));)s===33&&(a?X(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(c-1,e.position+1),Zb.test(o)||X(e,`named tag handle cannot contain such characters`),a=!0,c=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),Xb.test(l)&&X(e,`tag suffix cannot contain flow indicator characters`)}return l&&!(i?ex.test(l):tx.test(l))&&X(e,`tag name cannot contain such characters: ${l}`),!i&&o!==`!`&&o!==`!!`&&!Wb.call(e.tagHandlers,o)&&X(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function Mx(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Y&&X(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position))&&!yx(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&X(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function Nx(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Y||t.tagStart!==Y)&&X(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position))&&!yx(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&X(e,`name of an alias node must contain at least one character`),lx(e,n,e.position),!0}function Px(e,t){Tx(e,!1),e.lineIndent<t&&X(e,`deficient indentation`)}function Fx(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}let t=e.position;return e.position++,cx(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,J.SINGLE_QUOTED,ub.CLIP,-1,i),!0}hx(a)?(i=!1,Px(e,t)):e.position===e.lineStart&&Ex(e)?X(e,`unexpected end of the document within a single quoted scalar`):a!==9&&a<32?X(e,`expected valid JSON character`):e.position++}X(e,`unexpected end of the stream within a single quoted scalar`)}function Ix(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===34){let t=e.position;return e.position++,cx(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,J.DOUBLE_QUOTED,ub.CLIP,-1,i),!0}if(a===92){i=!1;let n=e.input.charCodeAt(++e.position);if(hx(n))Px(e,t);else if(Cx(n))e.position++;else{let t=Sx(n);for(t===0&&X(e,`unknown escape sequence`);t-->0;)e.position++,xx(e.input.charCodeAt(e.position))<0&&X(e,`expected hexadecimal character`);e.position++}}else hx(a)?(i=!1,Px(e,t)):e.position===e.lineStart&&Ex(e)?X(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?X(e,`expected valid JSON character`):e.position++}X(e,`unexpected end of the stream within a double quoted scalar`)}function Lx(e,t,n){let r=e.input.charCodeAt(e.position),i=ub.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?J.LITERAL_BLOCK:J.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=bx(n);if(n===43||n===45)i!==ub.CLIP&&X(e,`repeat of a chomping mode identifier`),i=n===43?ub.KEEP:ub.STRIP,e.position++;else if(r>=0)r===0&&X(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&X(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let c=!1;for(;gx(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&kx(e),hx(e.input.charCodeAt(e.position))?wx(e):e.input.charCodeAt(e.position)!==0&&X(e,`a line break is expected`);let l=o?a:-1,u=0,d=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){l>=0?r>l&&(f=n+r):r>0&&(f=n+r);break}if(Ox(e))break;if(!o&&l===-1&&hx(i)&&(u=Math.max(u,r)),!o&&l===-1&&!hx(i)&&(i===9&&r<t&&(e.position=n+r,X(e,`tab characters must not be used in indentation`)),r>=t&&r<u&&(e.position=n+r,X(e,`bad indentation of a mapping entry`))),l===-1&&i!==0&&!hx(i)&&r<t){e.lineIndent=r,e.position=n+r;break}!o&&i!==0&&!hx(i)&&l===-1&&(l=r);let a=l===-1?t+1:l;if(i!==0&&!hx(i)&&r<a){e.lineIndent=r,e.position=n+r;break}kx(e),f=e.position,hx(e.input.charCodeAt(e.position))&&(wx(e),f=e.position)}return Ax(e,d,f),cx(e,d,f,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,s,i,l),!0}function Rx(e,t){let n=e.input.charCodeAt(e.position),r=t===Gb;if(n===0||_x(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||yx(n))return!1;if(n===63||n===45){let t=e.input.charCodeAt(e.position+1);if(vx(t)||r&&yx(t))return!1}return!0}function zx(e,t,n,r){if(!Rx(e,n))return!1;let i=e.position,a=e.position,o=e.input.charCodeAt(e.position),s=n===Gb,c=!1;for(;o!==0&&!Ox(e);){if(o===58){let t=e.input.charCodeAt(e.position+1);if(vx(t)||s&&yx(t))break}else if(o===35){if(_x(e.input.charCodeAt(e.position-1)))break}else if(s&&yx(o))break;else if(hx(o)){let n=e.position,r=e.line,i=e.lineStart,a=e.lineIndent;if(Tx(e,!1),e.lineIndent>=t){c=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}gx(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(Ax(e,i,a),cx(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,J.PLAIN,ub.CLIP,-1,!c),!0)}function Bx(e,t){let n=e.line;Tx(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&X(e,`deficient indentation`)}function Vx(e,t,n){let r=e.input.charCodeAt(e.position),i=r===123,a=e.position,o=!0;if(r!==91&&r!==123)return!1;let s=i?125:93;for(i?ox(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,lb.FLOW):ax(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,lb.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){Bx(e,t);let n=e.input.charCodeAt(e.position);if(n===s)return e.position++,ux(e),!0;o?n===44&&X(e,`expected the node content, but found ','`):X(e,`missed comma between flow collection entries`);let r=!1,a=!1;n===63&&_x(e.input.charCodeAt(e.position+1))&&(r=a=!0,e.position+=1,Bx(e,t));let c=e.line,l=px(e),u=Wx(e,t,Gb,!1,!0);Bx(e,t),n=e.input.charCodeAt(e.position),(i||a||e.line===c)&&n===58?(r=!0,e.position++,Bx(e,t),i||sx(e,l),u||dx(e),Wx(e,t,Gb,!1,!0)||dx(e),Bx(e,t),i||ux(e)):i&&r?(u||dx(e),dx(e)):i?dx(e):r&&(sx(e,l),u||dx(e),dx(e),ux(e)),n=e.input.charCodeAt(e.position),n===44?(o=!0,e.position++):o=!1}X(e,`unexpected end of the stream within a flow collection`)}function Hx(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!vx(e.input.charCodeAt(e.position+1)))return!1;for(ax(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,lb.BLOCK);e.input.charCodeAt(e.position)===45&&vx(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,X(e,`tab characters must not be used in indentation`));let n=e.line;e.position++;let r=Tx(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&vx(e.input.charCodeAt(e.position+1))&&X(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?dx(e):Wx(e,t,qb,!1,!0),Tx(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&X(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&vx(e.input.charCodeAt(e.position+1))&&X(e,`bad indentation of a sequence entry`)}return ux(e),!0}function Ux(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,X(e,`tab characters must not be used in indentation`));let l=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&vx(l))o||=(ox(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,lb.BLOCK),!0),c===63?(i&&dx(e),a=!0,i=!0):(i||(dx(e),a=!0),i=!1),e.position+=1,s=!0;else{i&&=(dx(e),!1);let t=px(e);if(!Wx(e,n,Kb,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);gx(c);)c=e.input.charCodeAt(++e.position);if(c===58)c=e.input.charCodeAt(++e.position),vx(c)||X(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:cb.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:lb.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)X(e,`expected ':' after a mapping key`);else return r.anchorStart!==Y||r.tagStart!==Y?(mx(e,t),!1):!0}else if(a)X(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==Y||r.tagStart!==Y?(mx(e,t),!1):!0}if(Wx(e,t,Jb,!0,s)&&(s=!1),i||(s&&=(dx(e),!1)),Tx(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&c!==0)X(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return a?(i&&dx(e),o&&ux(e),!0):!1}function Wx(e,t,n,r,i,a=!0){e.depth>=e.maxDepth&&X(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,c=!1,l=null,u=fx(),d=n===Jb||n===qb,f=d,p=d;if(r&&Tx(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=px(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&p&&(u.tagStart!==Y||u.anchorStart!==Y)&&(r===33||r===38)){let n=px(e),r=t+1;if(Ux(e,e.position-e.lineStart,r,u)&&e.events[n.eventsLength]?.type===cb.MAPPING)return e.depth--,!0;mx(e,n)}if(s&&(r===33&&u.tagStart!==Y||r===38&&u.anchorStart!==Y)||!jx(e,u,n===Gb)&&!Mx(e,u))break;l===null&&(l=i),Tx(e,!0)?(s=!0,f=p,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&=s||i,o===1||n===Jb){let r=n===Gb||n===Kb?t:t+1,i=e.position-e.lineStart;if(o===1){if(f&&(Hx(e,i,u)||Ux(e,i,r,u))||Vx(e,r,u))c=!0;else{let t=e.input.charCodeAt(e.position);if(l!==null&&a&&p&&!f&&t!==124&&t!==62){let t=px(e),n=l.position-l.lineStart;mx(e,l),Ux(e,n,r,fx())&&e.events[t.eventsLength]?.type===cb.MAPPING?c=!0:mx(e,t)}!c&&(d&&Lx(e,r,u)||Fx(e,r,u)||Ix(e,r,u)||Nx(e,u)||zx(e,r,n,u))&&(c=!0)}}else o===0&&(c=f&&Hx(e,i,u))}return d&&=!c,!c&&(u.anchorStart!==Y||u.tagStart!==Y||d)&&(cx(e,Y,Y,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,J.PLAIN),c=!0),e.depth--,c||u.anchorStart!==Y||u.tagStart!==Y}function Gx(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&X(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!hx(e.input.charCodeAt(e.position));){for(;gx(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||hx(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_x(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(hx(e.input.charCodeAt(e.position))&&wx(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&X(e,`duplication of %YAML directive`),r.length!==1&&X(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&X(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&X(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&X(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Zb.test(t)||X(e,`ill-formed tag handle (first argument) of the TAG directive`),Wb.call(e.tagHandlers,t)&&X(e,`there is a previously declared suffix for "${t}" tag handle`),nx.test(n)||X(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function Kx(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(Tx(e,!0);Gx(e);)t=!0,Tx(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&vx(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,Tx(e,!0),i=e.line>t}else t&&X(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&Ex(e)){e.position+=3,Tx(e,!0);return}if(ix(e,n,!1),Wx(e,e.lineIndent-1,Jb,!1,i,i)||dx(e),Tx(e,!0),e.position===e.lineStart&&Ex(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,Tx(e,!0),e.line===t&&e.position<e.length&&X(e,`end of the stream or a document separator is expected`)}let o=e.events[a];o?.type===cb.DOCUMENT&&(o.explicitEnd=r),ux(e),!r&&e.position<e.length&&!Ox(e)&&X(e,`end of the stream or a document separator is expected`)}function qx(e,t){let n=e.length,r={...rx,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf(`\0`);for(i!==-1&&sb.throwAt(e,i,`null byte is not allowed in input`,r.filename);r.position<r.length&&(Dx(r),Tx(r,!0),!(r.position>=r.length));){let e=r.position;Kx(r),r.position===e&&X(r,`can not read a document`)}return r.events}var Jx={...rx,...Ab};function Yx(e,t={}){let n={...Jx,...t},r=String(e),i=Object.keys(rx),a=Object.keys(Ab);return Ub(qx(r,Uy(n,i)),{...Uy(n,a),source:r})}function Xx(e,t,n){let r=null;typeof t==`function`?r=t:typeof t==`object`&&t&&(n=t);let i=Yx(e,n);if(r===null)return i;for(let e of i)r(e)}function Zx(e,t){return!!(e&1<<t)}var Qx={applyQuoteFlowKeysOption:eS,doubleQuoteForInvisibles:tS,doubleQuoteWhitespaceOnly:nS,applyForceQuotesOption:rS,tryLongOrMultilineAsBlock:iS,quoteInvalidPlain:aS,fallbackToDoubleQuoted:oS};function $x(e){return e.presenterOptions.quoteStyle===`single`&&Zx(e.allowedStylesMask,J.SINGLE_QUOTED)?J.SINGLE_QUOTED:J.DOUBLE_QUOTED}function eS(e){e.presenterOptions.quoteFlowKeys&&e.isKey&&e.flowOnly&&e.style===J.PLAIN&&(e.style=J.DOUBLE_QUOTED)}function tS(e){e.style===J.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=J.DOUBLE_QUOTED)}function nS(e){e.style===J.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=J.DOUBLE_QUOTED)}function rS(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==J.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(`
83
+ `)?J.DOUBLE_QUOTED:$x(e)))}function iS(e){if(e.style!==J.PLAIN||e.isKey)return;let t=e.node.value,n=t.indexOf(`
84
+ `)!==-1;if(!Zx(e.allowedStylesMask,J.LITERAL_BLOCK)){n&&(e.style=J.DOUBLE_QUOTED);return}let r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=J.LITERAL_BLOCK);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),a=0,o=!1;for(;a<=t.length;){let e=t.length,n=t.indexOf(`
85
+ `,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=J.FOLDED_BLOCK:n&&(e.style=J.LITERAL_BLOCK)}function aS(e){e.style===J.PLAIN&&!Zx(e.allowedStylesMask,J.PLAIN)&&(e.style=$x(e))}function oS(e){Zx(e.allowedStylesMask,e.style)||(e.style=J.DOUBLE_QUOTED)}var sS=`[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]`,cS=`[\\n\\r]`,lS=`\\uFEFF`,uS=`[ \\t]`,dS=`(?:(?!(?:${cS}|${lS}))${sS})`,fS=`(?:(?!${uS})${dS})`,pS=`[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]`,mS=`[-?:,\\[\\]{}#&*!|>'"%@\`]`,hS=`[,\\[\\]{}]`,gS=fS,_S=`(?:(?!${hS})${fS})`,vS=`(?:(?:(?!${mS})${fS})|[?:-](?=${gS}))`,yS=`(?:(?:(?!${mS})${fS})|[?:-](?=${_S}))`,bS=`(?:(?:(?![:#])${gS})|:(?=${gS}))#*`,xS=`(?:(?:(?![:#])${_S})|:(?=${_S}))#*`,SS=`(?:${uS}*${bS})*`,CS=`(?:${uS}*${xS})*`,wS=`${vS}#*${SS}`,TS=`${yS}#*${CS}`,ES=wS,DS=TS,OS=`\\n+${bS}${SS}`,kS=`\\n+${xS}${CS}`,AS=`${wS}(?:${OS})*`,jS=`${TS}(?:${kS})*`;RegExp(`^(?:${AS})$`,`u`),RegExp(`^(?:${jS})$`,`u`),RegExp(`^(?:${ES})$`,`u`),RegExp(`^(?:${DS})$`,`u`),RegExp(`^(?:${pS})*$`,`u`),RegExp(`^(?:${pS}|\\n)*$`,`u`),RegExp(`^(?:${dS}|\\n)*$`,`u`),Object.keys(Qx).map(e=>Reflect.get(Qx,e)),cb.DOCUMENT,cb.SEQUENCE,cb.MAPPING,cb.SCALAR,cb.ALIAS,cb.POP,J.PLAIN,J.SINGLE_QUOTED,J.DOUBLE_QUOTED,J.LITERAL_BLOCK,J.FOLDED_BLOCK,lb.BLOCK,lb.FLOW,ub.CLIP,ub.STRIP,ub.KEEP;function MS(e){let t=Xx(e,{schema:$y});if(t.length>1)throw new sb(`expected a single document in the stream, but found more`);return t[0]}var NS=[`javascript:`,`data:text/html`,`vbscript:`,`data:text/javascript`,`data:text/vbscript`,`data:text/css`,`data:text/plain`,`data:text/xml`],PS={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,colon:`:`,sol:`/`,bsol:`\\`,Tab:` `,NewLine:`
86
+ `};function FS(e){let t=e;for(let e=0;e<10;e++){let e=t.replace(/&#x([0-9a-f]+);?/gi,(e,t)=>{let n=Number.parseInt(t,16);return n<=1114111?String.fromCodePoint(n):e}).replace(/&#(\d+);?/g,(e,t)=>{let n=Number.parseInt(t,10);return n<=1114111?String.fromCodePoint(n):e}).replace(/&([a-z]+);?/gi,(e,t)=>PS[t]??e);if(e===t)break;t=e}return t}function IS(e){let t=e;try{t=decodeURIComponent(e)}catch{}let n=FS(t),r;try{r=new URL(n)}catch{return!1}return NS.some(e=>r.href.toLowerCase().startsWith(e))}var LS=new Set([`innerhtml`,`dangerouslysetinnerhtml`,`textcontent`]);function RS(e,t,n={}){let r={};for(let i in e){if(i===`$`)continue;let a=e[i],o=i.charCodeAt(0)===58,s=o?i.slice(1):i;if(LS.has(s.toLowerCase()))continue;let c,l=i;if(n.parseJson&&o){if(typeof a==`string`)try{c=JSON.parse(a)}catch{c=KS(t,a)}else c=a;l=s}else if(o&&typeof a==`string`){let e=KS(t,a);e===void 0?c=a:(c=e,l=s)}else c=a;let u=s.toLowerCase();(!o||u!==`href`&&u!==`src`&&u!==`xlink:href`||typeof c!=`string`||!IS(c))&&(r[l]=c)}return r}function zS(e){return!!e&&typeof e==`object`&&Array.isArray(e.nodes)}function BS(e,t={}){if(typeof e==`string`)return t.decodeUnicodeEntities?Lv(e):e;let n=``,r=e.length;for(let i=2;i<r;i++)n+=BS(e[i],t);return n}function*VS(e,t){function*n(e,r,i){let a=e;if(t(e)){let t=yield e;if(t===!1)return r.splice(i,1),!0;t!==void 0&&(r[i]=t,a=t)}if(Array.isArray(a)&&a.length>2){let e=2;for(;e<a.length;)(yield*n(a[e],a,e))||(e+=1)}return!1}let r=0;for(;r<e.nodes.length;)(yield*n(e.nodes[r],e.nodes,r))||(r+=1)}function HS(e,t,n){let r=VS(e,t),i=r.next();for(;!i.done;){let e=n(i.value);i=r.next(e)}}function US(e){return e?GS(e).map(e=>e?e[0].toUpperCase()+e.slice(1):``).join(``):``}function WS(e){return e?GS(e).map(e=>e.toLowerCase()).join(`-`):``}function GS(e){let t=[];if(!e)return t;let n=``,r,i;for(let a=0;a<e.length;a++){let o=e[a],s=o===`-`||o===`_`||o===`/`||o===`.`;if(s===!0){t.push(n),n=``,r=void 0;continue}let c=o.charCodeAt(0),l=c>=48&&c<=57?void 0:c>=65&&c<=90;if(i===!1){if(r===!1&&l===!0){t.push(n),n=o,r=l;continue}if(r===!0&&l===!1&&n.length>1){let e=n[n.length-1];t.push(n.slice(0,n.length-1)),n=e+o,r=l;continue}}n+=o,r=l,i=s}return t.push(n),t}function KS(e,t){let n=t.split(`.`),r=e;for(let e of n)if(r&&typeof r==`object`&&e in r)r=r[e];else return;return r}var qS={"[":`]`,"{":`}`,"(":`)`},JS={"'":`'`,'"':`"`,"`":"`"};function YS(e,t=0){if(e[t]!==`{`)throw Error(`Invalid props, expected \`{\` but got '${e[t]}'`);let n=[];if(e[t+1]===`{`)return;for(t+=1;t<e.length;)if(e[t]===`\\`)t+=2;else if(e[t]===`}`){t+=1;break}else if(e[t]===` `)t+=1;else if(e[t]===`.`)t+=1,n.push([`class`,r(` #.}`)]);else if(e[t]===`#`)t+=1,n.push([`id`,r(` #.}`)]);else{let r=t;for(;t<e.length&&(t+=1,!` }=`.includes(e[t])););let a=e[t];if(r!==t){let o=e.slice(r,t).trim(),s=``;a===`=`?(t+=1,s=i()):(o=o[0]===`:`?o:`:${o}`,s=`true`),o.match(/^:?[a-z_][a-z0-9_-]*$/gi)&&n.push([o,s])}}function r(n){let r=t;for(;t<e.length&&(t+=1,e[t]===`\\`&&(t+=2),!n.includes(e[t])););return e.slice(r,t)}function i(){let n=t;return e[t]in qS?(a(qS[e[t]]),t+=1,e.slice(n,t)):e[t]in JS?(o(JS[e[t]]),t+=1,e.slice(n,t)):r(` }`)}function a(n){for(;t<e.length;)if(t++,e[t]in JS)o(JS[e[t]]);else if(e[t]in qS)a(qS[e[t]]);else if(e[t]===n)return}function o(e){return r(e)}return n.forEach(e=>{/^(['"`]).*\1$/.test(e[1])&&(e[1]=e[1].slice(1,-1))}),{props:n,index:t}}var XS=/^[a-z$][$\w.-]*/i;function ZS(e){if(e=e.trim(),!e)return{name:``};let t=e.match(XS)?.[0];if(!t)throw Error(`Invalid block params: ${e}`);let n=e.slice(t.length).trim(),r,i,a;if(n.startsWith(`[`)){let e=lv(n,0);e&&(r=e.content,n=n.slice(e.endIndex).trim())}if(n.startsWith(`{`)){let e=YS(n,0);if(e){i=e.props;let t=n.slice(e.index).trim();t&&(a=t)}}else n&&(a=n);let o={name:WS(t)};return r!==void 0&&(o.content=r),i!==void 0&&(o.props=i),a&&(o.remaining=a),o}function QS(e,t,n){let r=e.bMarks[t],i=e.eMarks[t],a=r,o=0;for(;a<i&&o<n;){let r=e.src.charCodeAt(a);if(r===32)o++;else if(r===9){let r=4-(o+e.bsCount[t])%4;if(o+r>n)return!1;o+=r}else break;a++}return o>0&&(e.bMarks[t]=a,e.bsCount[t]+=o,e.sCount[t]-=o,e.tShift[t]-=a-r),!0}function $S(e,t,n,r){let i=[],a=[],o=[],s=[];for(let c=t;c<n;c++)if(i.push(e.bMarks[c]),a.push(e.bsCount[c]),o.push(e.sCount[c]),s.push(e.tShift[c]),!QS(e,c,r[c-t]))return eC(e,t,i,a,o,s),!1;let c=e.blkIndent;return e.blkIndent=0,e.md.block.tokenize(e,t,n),e.blkIndent=c,eC(e,t,i,a,o,s),!0}function eC(e,t,n,r,i,a){for(let o=0;o<n.length;o++){let s=t+o;e.bMarks[s]=n[o],e.bsCount[s]=r[o],e.sCount[s]=i[o],e.tShift[s]=a[o]}}var tC=/^[a-z$][\w$-]*/i;function nC(e){return tC.test(e)}var rC={"---":`---`,"```yaml [props]":"```","~~~yaml [props]":`~~~`,"```yml [props]":"```","~~~yml [props]":`~~~`},iC=e=>{e.block.ruler.before(`fence`,`comark_block_shorthand`,function(e,t,n,r){let i=e.src.slice(e.bMarks[t]+e.tShift[t],e.eMarks[t]);if(i[0]!==`:`||!nC(i.slice(1)))return!1;let{name:a,content:o,props:s,remaining:c}=ZS(i.slice(1));if(c)return!1;if(!r){if(o!==void 0){let n=e.push(`mdc_block_shorthand`,a,1);s?.forEach(([e,t])=>{e===`class`?n.attrJoin(e,t):n.attrSet(e,t)}),n.map=[t,t+1];let r=e.push(`inline`,``,0);r.content=o,r.children=[];let i=e.push(`mdc_block_shorthand`,a,-1);i.map=[t,t+1]}else{let n=e.push(`mdc_block_shorthand`,a,0);n.map=[t,t+1],s?.forEach(([e,t])=>{e===`class`?n.attrJoin(e,t):n.attrSet(e,t)})}}return e.line=t+1,!0}),e.block.ruler.before(`fence`,`comark_block`,function(e,t,n,r){let i,a,o=!1,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t],l=e.sCount[t],u=!1,d=0,f=0,p=0;if(e.src[s]!==`:`)return!1;for(i=s+1;i<=c&&e.src[i]===`:`;i++);let m=Math.floor(i-s);if(m<2)return!1;let h=e.src.slice(s,i),g=e.skipSpaces(i);if(g<c&&!nC(e.src.slice(g,c)))return!1;let _=ZS(e.src.slice(i,c));if(!_.name)return!1;if(r)return!0;let v=[],y=0,b=!1;for(a=t;a++,!(a>=n||(s=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],s<c&&e.sCount[a]<e.blkIndent));){let t=s>=c?l:e.sCount[a];t<l&&(b=!0),v.push(s>=c?0:u?y:Math.min(l,t));let n=e.src.charCodeAt(s);if(u){if(n===d){let t=s+1;for(;t<c&&e.src.charCodeAt(t)===d;)t++;t-s>=f&&e.skipSpaces(t)>=c&&(u=!1)}}else{if(n===96||n===126){let t=s+1;for(;t<c&&e.src.charCodeAt(t)===n;)t++;if(t-s>=3){u=!0,d=n,f=t-s,y=v[v.length-1];continue}}if(n===58){for(i=s+1;i<=c&&e.src[i]===`:`;i++);if(i-s===m){if(i=e.skipSpaces(i),i<c)p++;else if(p>0)p--;else{o=!0;break}}}}}let x=e.parentType,S=e.lineMax;e.parentType=`comark_block`,e.lineMax=a;let C=e.push(`mdc_block_open`,_.name,1);if(C.markup=h,C.block=!0,C.info=_.name,C.map=[t,a],_.props?.forEach(([e,t])=>{e===`class`?C.attrJoin(e,t):C.attrSet(e,t)}),_.content!==void 0){let n=e.push(`paragraph_open`,`p`,1);n.map=[t,t+1];let r=e.push(`inline`,``,0);r.content=_.content,r.children=[],e.push(`paragraph_close`,`p`,-1)}if(e.env.comarkBlockTokens||=[],e.env.comarkBlockTokens.unshift(C),!b||!$S(e,t+1,a,v)){let n=e.blkIndent;e.blkIndent=l,e.md.block.tokenize(e,t+1,a),e.blkIndent=n}e.env.comarkBlockTokens.shift();let w=e.push(`mdc_block_close`,_.name,-1);return w.map=[t,a],w.markup=e.src.slice(s,i),w.block=!0,e.tokens.slice(e.tokens.indexOf(C)+1,e.tokens.indexOf(w)).filter(e=>e.level===C.level+1).forEach((e,t,n)=>{n.length<=2&&e.tag===`p`&&(e.hidden=!0)}),e.parentType=x,e.lineMax=S,e.line=a+ +!!o,!0},{alt:[`paragraph`,`reference`,`blockquote`,`list`]}),e.block.ruler.after(`code`,`comark_block_yaml`,function(e,t,n,r){if(!e.env.comarkBlockTokens?.length)return!1;let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.src.slice(i,a),s=rC[o]||``;if(!s)return!1;if(o===`---`){let n=e.env.comarkBlockTokens[0].map?.[0];if(n===void 0||t!==n+1)return!1}let c=t+1,l=!1;for(;c<n;){if(e.src.slice(e.bMarks[c]+e.tShift[t],e.eMarks[c])===s){l=!0;break}c+=1}if(!l)return!1;if(!r){let n=MS(e.getLines(t+1,c,e.blkIndent,!1)),r=e.env.comarkBlockTokens[0];Object.entries(n||{}).forEach(([e,t])=>{e===`class`?r.attrJoin(e,t):typeof t==`string`?r.attrSet(e,t):r.attrSet(`:${e}`,JSON.stringify(t))})}return e.line=c+1,!0}),e.block.ruler.after(`code`,`comark_block_slots`,function(e,t,n,r){if(!e.env.comarkBlockTokens?.length)return!1;let i=e.bMarks[t]+e.tShift[t];if(e.src[i]!==`#`||e.src[i+1]===` `||e.src[i+1]===`#`)return!1;let{name:a,props:o}=ZS(e.src.slice(i,e.eMarks[t]).slice(1)),s=t+1,c=!1,l=``,u=0;for(;s<n;){let n=e.src.slice(e.bMarks[s]+e.tShift[t],e.eMarks[s]);if(c){if(n[0]===l){let e=1;for(;e<n.length&&n[e]===l;)e++;e>=u&&n.slice(e).trim()===``&&(c=!1)}s+=1}else{if(n[0]==="`"||n[0]===`~`){let e=n[0],t=1;for(;t<n.length&&n[t]===e;)t++;if(t>=3){c=!0,l=e,u=t,s+=1;continue}}if(/^#\w+/.test(n)||n.startsWith(`::`))break;s+=1}}if(r)return e.line=s,!0;let d=e.lineMax,f=e.push(`mdc_block_slot`,`template`,1);return f.attrSet(`#${a}`,``),o?.forEach(([e,t])=>{e===`class`?f.attrJoin(e,t):f.attrSet(e,t)}),e.line=t+1,e.lineMax=s,e.md.block.tokenize(e,t+1,s),e.push(`mdc_block_slot`,`template`,-1),e.line=s,e.lineMax=d,!0})},aC=new Set([` `,` `,`
87
+ `,`*`,`_`,`[`]),oC=e=>{e.inline.ruler.after(`entity`,`comark_inline_component`,(e,t)=>{let n=e.pos;if(e.src[n]!==`:`)return!1;let r=e.src[n-1];if(n>0&&!aC.has(r))return!1;let i=n+1,a=-1,o=-1,s=-1;for(;i<e.src.length;){let t=e.src[i];if(t===`[`){a=i;let t=lv(e.src,i);t&&(o=i+1,s=t.endIndex-1,i=t.endIndex);break}if(!/[\w$-]/.test(t))break;i+=1}if(a===-1&&(a=i),a<=n+1)return!1;let c=e.src.slice(n+1,a);if(!nC(c))return!1;if(e.pos=i,t)return!0;if(o!==-1){e.push(`mdc_inline_component`,c,1);let t=e.pos,n=e.posMax;e.pos=o,e.posMax=s,e.md.inline.tokenize(e),e.pos=t,e.posMax=n,e.push(`mdc_inline_component`,c,-1)}else e.push(`mdc_inline_component`,c,0);return!0})},sC=e=>{e.inline.ruler.before(`link`,`comark_inline_span`,(e,t)=>{let n=e.pos;if(e.src[n]!==`[`)return!1;let r=cv(e.src,n),i=r===-1?e.src.length:r,a=e.src[i+1];if(a===`(`||a===`[`||e.linkLevel>0&&a!==`{`||t)return!1;e.push(`mdc_inline_span`,`span`,1);let o=e.pos,s=e.posMax;return e.pos=n+1,e.posMax=i,e.md.inline.tokenize(e),e.pos=o,e.posMax=s,e.push(`mdc_inline_span`,`span`,-1),e.pos=i+1,!0})},cC=e=>{e.use(iC),e.use(sC),e.use(oC)},lC=sv(()=>({name:`components`,markdownItPlugins:[cC]})),uC=e=>{e.inline.ruler.after(`entity`,`comark_inline_props`,(e,t)=>{let n=e.pos;if(e.src[n]!==`{`||e.src[n+1]===`{`||e.src[n-1]===`{`||e.src[n-1]===`$`)return!1;let r=YS(e.src,n);if(!r)return!1;let{props:i,index:a}=r;if(a===n)return!1;if(e.pos=a,t)return!0;let o=e.push(`mdc_inline_props`,`span`,0);return o.attrs=i,o.hidden=!0,!0}),e.renderer.rules.mdc_inline_props=()=>``;let t=e.parse;e.parse=function(e,n){let r=t.call(this,e,n);return r.forEach((e,t)=>{let n=r[t-1],i=r[t+1];if(!n||![`heading_open`,`paragraph_open`,`list_item_open`].includes(n.type)||n.hidden||(e.hidden&&i?.type===`inline`&&(e=i),e.type!==`inline`||!e.children?.length))return;let a=e.children[e.children.length-1];if(a.type!==`mdc_inline_props`)return;let o=e.children.length-2;for(;o>=0;){let t=e.children[o];if(t.type===`text`&&!t.content)o--;else break}let s=o>=0?e.children[o]:void 0;if(!s||s.type!==`text`)return;typeof s.content==`string`&&(s.content=s.content.replace(/[ \t]+$/,``));let c=a.attrs;e.children.length=s.content?o+1:o,c?.forEach(([e,t])=>{e===`class`?n.attrJoin(`class`,t):n.attrSet(e,t)})}),r},e.renderer.renderInline=dC(e.renderer.renderInline),`renderInlineAsync`in e.renderer&&(e.renderer.renderInlineAsync=dC(e.renderer.renderInlineAsync))};function dC(e){return function(t,n,r){return t=[...t],t.forEach((e,n)=>{if(e.type!==`mdc_inline_props`)return;let r=n-1,i=t[r];for(;r>=0&&i.type===`text`&&!i.content.trim();)r--,i=t[r];if(!i.tag&&i.type===`text`){i=new ng(`mdc_inline_span`,`span`,1),t.splice(n-1,0,i);let e=new ng(`mdc_inline_span`,`span`,-1);t.splice(n+2,0,e)}else if(i.nesting===-1){let e=n-1;for(;e>=0;){let n=t[e];if(n.nesting===1&&n.tag===i.tag&&n.level===i.level){i=n;break}e--}}if(i.nesting===-1)throw Error(`No matching opening tag found for ${JSON.stringify(i)}`);e.attrs?.forEach(([e,t])=>{e===`class`?i.attrJoin(`class`,t):i.attrSet(e,t)})}),e.call(this,t,n,r)}}var fC=uC,pC=sv(()=>({name:`attributes`,markdownItPlugins:[fC]}));function mC(e,t,n){let r=e.attrIndex(t),i=[t,n];r<0?(e.attrs||=[],e.attrs.push(i)):e.attrs[r]=i}function hC(e,t){let n=!(t?.enabled??!1);e.core.ruler.before(`inline`,`task-lists-mdc`,e=>{let t=e.tokens,n=[],r=[],i=[];for(let e=0;e<t.length;e++){let a=t[e];if(a.type===`bullet_list_open`||a.type===`ordered_list_open`)i.push(e);else if(a.type===`bullet_list_close`||a.type===`ordered_list_close`)i.pop();else if(a.type===`list_item_open`)n.push(e),r.push(i.length>0?i[i.length-1]:-1);else if(a.type===`list_item_close`)n.pop(),r.pop();else if(a.type===`inline`&&a.content&&n.length>0){let e=a.content.match(/^(\[[ x]\])\s+/i);if(e){let i=e[1].toLowerCase()===`[x]`;mC(t[n[n.length-1]],`class`,`task-list-item`);let o=r[r.length-1];o>=0&&mC(t[o],`class`,`contains-task-list`);let s=`TASK_CHECKBOX_${i?`CHECKED`:`UNCHECKED`} `;a.content=a.content.replace(/^\[[ x]\]\s+/i,s)}}}}),e.core.ruler.after(`inline`,`task-lists-mdc-post`,e=>{let t=e.tokens;for(let r=0;r<t.length;r++){let i=t[r];if(i.type===`inline`&&i.children)for(let t=0;t<i.children.length;t++){let r=i.children[t];if(r.type===`text`&&r.content){let a=r.content.match(/^TASK_CHECKBOX_CHECKED/),o=r.content.match(/^TASK_CHECKBOX_UNCHECKED/);if(a||o){let o=!!a,s=new e.Token(`mdc_inline_component`,`input`,0);s.attrs=[[`class`,`task-list-item-checkbox`],[`type`,`checkbox`]],n&&s.attrs.push([`:disabled`,`true`]),o&&s.attrs.push([`:checked`,`true`]),r.content=r.content.replace(/^TASK_CHECKBOX_(CHECKED|UNCHECKED)/,``),i.children.splice(t,0,s),t++}}}}})}var gC=sv(()=>({name:`task-list`,markdownItPlugins:[hC]})),_C={"!TIP":{type:`tip`,title:`Tip`,color:`#238636`},"!NOTE":{type:`note`,title:`Note`,color:`#1f6feb`},"!IMPORTANT":{type:`important`,title:`Important`,color:`#8957e5`},"!WARNING":{type:`warning`,title:`Warning`,color:`#9e6a03`},"!CAUTION":{type:`caution`,title:`Caution`,color:`#da3633`}},vC=sv(()=>({name:`alert`,post(e){HS(e.tree,e=>Array.isArray(e)&&e[0]===`blockquote`,e=>{let t=e;if(e[2]?.[0]===`span`){let n=_C[String(e[2][2]).toUpperCase()];n&&(typeof e[3]==`string`&&(t[3]=String(t[3]).trimStart()),t.splice(2,1),t[1].as=n.type)}else if(e[2]?.[0]===`p`){let n=e[2];if(n[2]?.[0]===`span`){let e=_C[String(n[2][2]).toUpperCase()];e&&(typeof n[3]==`string`&&(n[3]=String(n[3]).trimStart()),n.splice(2,1),t[1].as=e.type)}}})}})),yC=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),bC=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,xC=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,SC=RegExp(`^(?:${bC}|${xC}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<\\?[\\s\\S]*?\\?>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),CC=RegExp(`^(?:${bC}|${xC})`),wC=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${yC.join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${CC.source}\\s*$`),/^$/,!1]];function TC(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<wC.length&&!wC[s][0].test(o);s++);if(s===wC.length)return!1;if(r)return wC[s][2];let c=t+1;if(!wC[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),wC[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let l=e.push(`html_block`,``,1);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function EC(e){return/^<a[>\s]/i.test(e)}function DC(e){return/^<\/a\s*>/i.test(e)}function OC(e){let t=e|32;return t>=97&&t<=122}function kC(e,t){let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!OC(i))return!1;let a=e.src.slice(r).match(SC);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],EC(t.content)&&e.linkLevel++,DC(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}function AC(e){e.set({html:!0}),e.inline.ruler.before(`text`,`comark_html_inline`,kC),e.block.ruler.before(`html_block`,`comark_html_block`,TC,{alt:[`paragraph`,`reference`,`blockquote`]})}var jC=sv(()=>({name:`html`,markdownItPlugins:[AC]})),MC=`---`,NC=`\r`;function PC(e){let t={},n=``;if(e.startsWith(MC)){let r=e.indexOf(`
88
+ ---`);if(r!==-1){let i=e[r-1]===NC;n=e.slice(4,r-+!!i),n&&(t=MS(n)??{},e=e.slice(r+4+ +!!i))}}return{content:e,data:t,frontmatterText:n}}var FC=sv(()=>({name:`frontmatter`,pre(e){let{content:t,data:n,frontmatterText:r}=PC(e.markdown);e.markdown=t,e.frontmatter=n,e.frontmatterText=r,t&&r&&(e.parsedLines=(e.parsedLines??0)+r.split(`
89
+ `).length+1)}}));function IC(e){return e?e===!0?[`p`]:typeof e==`string`?e.split(/[,\s]/).map(e=>e.trim()).filter(Boolean):e.filter(Boolean):[]}function LC(e){return Array.isArray(e)&&typeof e[0]==`string`}function RC(e,t){return LC(e)&&(t===`*`||e[0]===t)}function zC(e,t){if(t.length===0)return e;let[n,...r]=t,i=[];for(let t of e){let e=RC(t,n)?t.slice(2):[t];for(let t of zC(e,r))i.push(t)}return i.filter(e=>typeof e!=`string`||e.trim()!==``)}function BC(e,t){if(t.length===0)return e;let n=zC(e,t),r=[];for(let e of n)typeof e==`string`&&typeof r[r.length-1]==`string`?r[r.length-1]=r[r.length-1]+e:r.push(e);return r}var Z;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(Z||={});var Q;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.DeclarationSequence=20]=`DeclarationSequence`,e[e.InSpecialComment=21]=`InSpecialComment`,e[e.InCommentLike=22]=`InCommentLike`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.InPlainText=25]=`InPlainText`,e[e.InEntity=26]=`InEntity`})(Q||={});function VC(e){return e===Z.Space||e===Z.NewLine||e===Z.Tab||e===Z.FormFeed||e===Z.CarriageReturn}function HC(e){return e===Z.Slash||e===Z.Gt||VC(e)}function UC(e){return e>=Z.LowerA&&e<=Z.LowerZ||e>=Z.UpperA&&e<=Z.UpperZ}var WC;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(WC||={});var $={Empty:new Uint8Array,Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,33,62]),Doctype:new Uint8Array([100,111,99,116,121,112,101]),IframeEnd:new Uint8Array([60,47,105,102,114,97,109,101]),NoembedEnd:new Uint8Array([60,47,110,111,101,109,98,101,100]),NoframesEnd:new Uint8Array([60,47,110,111,102,114,97,109,101,115]),Plaintext:new Uint8Array([60,47,112,108,97,105,110,116,101,120,116]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},GC=new Map([[$.IframeEnd[2],$.IframeEnd],[$.NoembedEnd[2],$.NoembedEnd],[$.Plaintext[2],$.Plaintext],[$.ScriptEnd[2],$.ScriptEnd],[$.TitleEnd[2],$.TitleEnd],[$.XmpEnd[2],$.XmpEnd]]),KC=class{cbs;state=Q.Text;buffer=``;sectionStart=0;index=0;entityStart=0;baseState=Q.Text;isSpecial=!1;running=!0;offset=0;xmlMode;decodeEntities;recognizeSelfClosing;entityDecoder;constructor({xmlMode:e=!1,decodeEntities:t=!0,recognizeSelfClosing:n=e},r){this.cbs=r,this.xmlMode=e,this.decodeEntities=t,this.recognizeSelfClosing=n,this.entityDecoder=new Mv(e?vv:_v,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=Q.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=Q.Text,this.isSpecial=!1,this.currentSequence=$.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===Z.Lt||!this.decodeEntities&&this.fastForwardTo(Z.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Q.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Z.Amp&&this.startEntity()}currentSequence=$.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===$.Plaintext?(this.currentSequence=$.Empty,this.state=Q.InPlainText):this.isSpecial?(this.state=Q.InSpecialTag,this.sequenceIndex=0):this.state=Q.Text}stateSpecialStartSequence(e){let t=e|32;if(this.sequenceIndex<this.currentSequence.length){if(t===this.currentSequence[this.sequenceIndex]){this.sequenceIndex++;return}if(this.sequenceIndex===3){if(this.currentSequence===$.ScriptEnd&&t===$.StyleEnd[3]){this.currentSequence=$.StyleEnd,this.sequenceIndex=4;return}if(this.currentSequence===$.TitleEnd&&t===$.TextareaEnd[3]){this.currentSequence=$.TextareaEnd,this.sequenceIndex=4;return}}else if(this.sequenceIndex===4&&this.currentSequence===$.NoembedEnd&&t===$.NoframesEnd[4]){this.currentSequence=$.NoframesEnd,this.sequenceIndex=5;return}}else if(HC(e)){this.sequenceIndex=0,this.state=Q.InTagName,this.stateInTagName(e);return}this.isSpecial=!1,this.currentSequence=$.Empty,this.sequenceIndex=0,this.state=Q.InTagName,this.stateInTagName(e)}stateCDATASequence(e){e===$.Cdata[this.sequenceIndex]?++this.sequenceIndex===$.Cdata.length&&(this.state=Q.InCommentLike,this.currentSequence=$.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.xmlMode?(this.state=Q.InDeclaration,this.stateInDeclaration(e)):(this.state=Q.InSpecialComment,this.stateInSpecialComment(e)))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}emitComment(e){this.cbs.oncomment(this.sectionStart,this.index,e),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Q.Text}stateInCommentLike(e){!this.xmlMode&&this.currentSequence===$.CommentEnd&&this.sequenceIndex<=1&&this.index===this.sectionStart+this.sequenceIndex&&e===Z.Gt?this.emitComment(this.sequenceIndex):this.currentSequence===$.CommentEnd&&this.sequenceIndex===2&&e===Z.Gt?this.emitComment(2):this.currentSequence===$.CommentEnd&&this.sequenceIndex===this.currentSequence.length-1&&e!==Z.Gt?this.sequenceIndex=Number(e===Z.Dash):e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===$.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,3),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Q.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!HC(e):UC(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(HC(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===$.TitleEnd||this.currentSequence===$.TextareaEnd?this.decodeEntities&&e===Z.Amp&&this.startEntity():this.fastForwardTo(Z.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===Z.Lt)}stateBeforeTagName(e){if(e===Z.ExclamationMark)this.state=Q.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Z.Questionmark)this.xmlMode?(this.state=Q.InProcessingInstruction,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.state=Q.InSpecialComment,this.sectionStart=this.index);else if(this.isTagStartChar(e)){this.sectionStart=this.index;let t=this.xmlMode||this.cbs.isInForeignContext?.()?void 0:GC.get(e|32);t===void 0?this.state=Q.InTagName:(this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=3,this.state=Q.SpecialStartSequence)}else e===Z.Slash?this.state=Q.BeforeClosingTagName:(this.state=Q.Text,this.stateText(e))}stateInTagName(e){HC(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){VC(e)?this.xmlMode||(this.state=Q.InSpecialComment,this.sectionStart=this.index):e===Z.Gt?(this.state=Q.Text,this.xmlMode||(this.sectionStart=this.index+1)):(this.state=this.isTagStartChar(e)?Q.InClosingTagName:Q.InSpecialComment,this.sectionStart=this.index)}stateInClosingTagName(e){HC(e)&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=Q.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.state=Q.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Z.Gt?(this.cbs.onopentagend(this.index),this.enterTagBody(),this.sectionStart=this.index+1):e===Z.Slash?this.state=Q.InSelfClosingTag:VC(e)||(this.state=Q.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){if(e===Z.Gt){if(this.cbs.onselfclosingtag(this.index),this.sectionStart=this.index+1,!this.recognizeSelfClosing){this.enterTagBody();return}this.state=Q.Text,this.isSpecial=!1,this.currentSequence=$.Empty}else VC(e)||(this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===Z.Eq||HC(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=Q.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Z.Eq?this.state=Q.BeforeAttributeValue:e===Z.Slash||e===Z.Gt?(this.cbs.onattribend(WC.NoValue,this.sectionStart),this.sectionStart=-1,this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e)):VC(e)||(this.cbs.onattribend(WC.NoValue,this.sectionStart),this.state=Q.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Z.DoubleQuote?(this.state=Q.InAttributeValueDq,this.sectionStart=this.index+1):e===Z.SingleQuote?(this.state=Q.InAttributeValueSq,this.sectionStart=this.index+1):VC(e)||(this.sectionStart=this.index,this.state=Q.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Z.DoubleQuote?WC.Double:WC.Single,this.index+1),this.state=Q.BeforeAttributeName):this.decodeEntities&&e===Z.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Z.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Z.SingleQuote)}stateInAttributeValueNoQuotes(e){VC(e)||e===Z.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(WC.Unquoted,this.index),this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Z.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===Z.OpeningSquareBracket?(this.state=Q.CDATASequence,this.sequenceIndex=0):this.xmlMode?this.state=e===Z.Dash?Q.BeforeComment:Q.InDeclaration:(e|32)===$.Doctype[0]?(this.state=Q.DeclarationSequence,this.currentSequence=$.Doctype,this.sequenceIndex=1):e===Z.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1):this.state=e===Z.Dash?Q.BeforeComment:Q.InSpecialComment}stateDeclarationSequence(e){this.sequenceIndex===this.currentSequence.length?(this.state=Q.InDeclaration,this.stateInDeclaration(e)):(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:e===Z.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1):this.state=Q.InSpecialComment}stateInDeclaration(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=Q.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){e===Z.Questionmark?this.sequenceIndex=1:e===Z.Gt&&this.sequenceIndex===1?(this.cbs.onprocessinginstruction(this.sectionStart,this.index-1),this.sequenceIndex=0,this.state=Q.Text,this.sectionStart=this.index+1):this.sequenceIndex=Number(this.fastForwardTo(Z.Questionmark))}stateBeforeComment(e){e===Z.Dash?(this.state=Q.InCommentLike,this.currentSequence=$.CommentEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):this.xmlMode?this.state=Q.InDeclaration:e===Z.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1):this.state=Q.InSpecialComment}stateInSpecialComment(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1)}startEntity(){this.baseState=this.state,this.state=Q.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?jv.Strict:this.baseState===Q.Text||this.baseState===Q.InSpecialTag?jv.Legacy:jv.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&--this.index;else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===Z.Amp){this.state=this.baseState,--this.index;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Q.Text||this.state===Q.InPlainText||this.state===Q.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Q.InAttributeValueDq||this.state===Q.InAttributeValueSq||this.state===Q.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case Q.Text:this.stateText(e);break;case Q.InPlainText:this.index=this.buffer.length+this.offset-1;break;case Q.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case Q.InSpecialTag:this.stateInSpecialTag(e);break;case Q.CDATASequence:this.stateCDATASequence(e);break;case Q.DeclarationSequence:this.stateDeclarationSequence(e);break;case Q.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case Q.InAttributeName:this.stateInAttributeName(e);break;case Q.InCommentLike:this.stateInCommentLike(e);break;case Q.InSpecialComment:this.stateInSpecialComment(e);break;case Q.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case Q.InTagName:this.stateInTagName(e);break;case Q.InClosingTagName:this.stateInClosingTagName(e);break;case Q.BeforeTagName:this.stateBeforeTagName(e);break;case Q.AfterAttributeName:this.stateAfterAttributeName(e);break;case Q.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case Q.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case Q.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case Q.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case Q.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case Q.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case Q.InDeclaration:this.stateInDeclaration(e);break;case Q.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case Q.BeforeComment:this.stateBeforeComment(e);break;case Q.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case Q.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===Q.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingCommentLikeData(e){if(this.state!==Q.InCommentLike)return!1;if(this.currentSequence===$.CdataEnd){if(this.xmlMode)this.sectionStart<e&&this.cbs.oncdata(this.sectionStart,e,0);else{let t=this.sectionStart-$.Cdata.length-1;this.cbs.oncomment(t,e,0)}}else{let t=this.xmlMode?0:Math.min(this.sequenceIndex,$.CommentEnd.length-1);this.cbs.oncomment(this.sectionStart,e,t)}return!0}handleTrailingMarkupDeclaration(e){if(this.xmlMode)switch(this.state){case Q.InSpecialComment:case Q.BeforeComment:case Q.CDATASequence:case Q.DeclarationSequence:case Q.InDeclaration:return this.cbs.ontext(this.sectionStart,e),!0;default:return!1}switch(this.state){case Q.BeforeDeclaration:case Q.InSpecialComment:case Q.BeforeComment:case Q.CDATASequence:return this.cbs.oncomment(this.sectionStart,e,0),!0;case Q.DeclarationSequence:return this.sequenceIndex!==$.Doctype.length&&this.cbs.oncomment(this.sectionStart,e,0),!0;case Q.InDeclaration:return!0;default:return!1}}handleTrailingData(){let e=this.buffer.length+this.offset;if(!(this.handleTrailingCommentLikeData(e)||this.handleTrailingMarkupDeclaration(e))&&!(this.sectionStart>=e))switch(this.state){case Q.InTagName:case Q.BeforeAttributeName:case Q.BeforeAttributeValue:case Q.AfterAttributeName:case Q.InAttributeName:case Q.InAttributeValueSq:case Q.InAttributeValueDq:case Q.InAttributeValueNq:case Q.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==Q.Text&&this.baseState!==Q.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}},{fromCodePoint:qC}=String,JC=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),YC=new Set([`p`]),XC=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`p`]),ZC=new Set([`thead`,`tbody`]),QC=new Set([`dd`,`dt`]),$C=new Set([`rt`,`rp`]),ew=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`a`,new Set([`a`])],[`li`,new Set([`li`])],[`p`,YC],[`h1`,XC],[`h2`,XC],[`h3`,XC],[`h4`,XC],[`h5`,XC],[`h6`,XC],[`select`,JC],[`input`,JC],[`output`,JC],[`button`,JC],[`datalist`,JC],[`textarea`,JC],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,QC],[`dt`,QC],[`address`,YC],[`article`,YC],[`aside`,YC],[`blockquote`,YC],[`details`,YC],[`div`,YC],[`dl`,YC],[`fieldset`,YC],[`figcaption`,YC],[`figure`,YC],[`footer`,YC],[`form`,YC],[`header`,YC],[`hr`,YC],[`main`,YC],[`nav`,YC],[`ol`,YC],[`pre`,YC],[`section`,YC],[`table`,YC],[`ul`,YC],[`rt`,$C],[`rp`,$C],[`tbody`,ZC],[`tfoot`,ZC]]),tw=`doctype`,nw=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),rw=new Set([`math`,`svg`]),iw=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),aw=new Map([[`altglyph`,`altGlyph`],[`altglyphdef`,`altGlyphDef`],[`altglyphitem`,`altGlyphItem`],[`animatecolor`,`animateColor`],[`animatemotion`,`animateMotion`],[`animatetransform`,`animateTransform`],[`clippath`,`clipPath`],[`feblend`,`feBlend`],[`fecolormatrix`,`feColorMatrix`],[`fecomponenttransfer`,`feComponentTransfer`],[`fecomposite`,`feComposite`],[`feconvolvematrix`,`feConvolveMatrix`],[`fediffuselighting`,`feDiffuseLighting`],[`fedisplacementmap`,`feDisplacementMap`],[`fedistantlight`,`feDistantLight`],[`fedropshadow`,`feDropShadow`],[`feflood`,`feFlood`],[`fefunca`,`feFuncA`],[`fefuncb`,`feFuncB`],[`fefuncg`,`feFuncG`],[`fefuncr`,`feFuncR`],[`fegaussianblur`,`feGaussianBlur`],[`feimage`,`feImage`],[`femerge`,`feMerge`],[`femergenode`,`feMergeNode`],[`femorphology`,`feMorphology`],[`feoffset`,`feOffset`],[`fepointlight`,`fePointLight`],[`fespecularlighting`,`feSpecularLighting`],[`fespotlight`,`feSpotLight`],[`fetile`,`feTile`],[`feturbulence`,`feTurbulence`],[`foreignobject`,`foreignObject`],[`glyphref`,`glyphRef`],[`lineargradient`,`linearGradient`],[`radialgradient`,`radialGradient`],[`textpath`,`textPath`]]),ow;(function(e){e[e.None=0]=`None`,e[e.Svg=1]=`Svg`,e[e.MathML=2]=`MathML`})(ow||={});var sw=/\s|\//,cw=class{options;startIndex=0;endIndex=0;openTagStart=0;tagname=``;attribname=``;attribvalue=``;attribs=null;stack=[];foreignContext;cbs;lowerCaseTagNames;lowerCaseAttributeNames;recognizeSelfClosing;htmlMode;tokenizer;buffers=[];bufferOffset=0;writeIndex=0;ended=!1;constructor(e,t={}){this.options=t,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=t.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=t.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(t.Tokenizer??KC)(this.options,this),this.foreignContext=[ow.None],this.cbs.onparserinit?.(this)}ontext(e,t){let n=this.getSlice(e,t);this.endIndex=t-1,this.cbs.ontext?.(n),this.startIndex=t}ontextentity(e,t){this.endIndex=t-1,this.cbs.ontext?.(qC(e)),this.startIndex=t}isInForeignContext(){return this.foreignContext[0]!==ow.None}isVoidElement(e){return this.htmlMode&&nw.has(e)}readTagName(e,t){let n=this.lowerCaseTagNames?this.getSlice(e,t).toLowerCase():this.getSlice(e,t);if(!(this.lowerCaseTagNames&&this.htmlMode))return n;if(this.foreignContext[0]===ow.Svg)return aw.get(n)??n;if(this.foreignContext.length>1){let e=aw.get(n);if(e!==void 0&&this.stack.includes(e))return e}return this.isInForeignContext()?n:n===`image`?`img`:n}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&e===`form`&&this.stack.includes(`form`)){this.tagname=``;return}let t=this.htmlMode&&ew.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(e===`svg`?this.foreignContext.unshift(ow.Svg):e===`math`?this.foreignContext.unshift(ow.MathML):iw.has(e)&&this.foreignContext.unshift(ow.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&=(this.cbs.onopentag?.(this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;let n=this.readTagName(e,t);if(this.isVoidElement(n))this.htmlMode&&n===`br`&&(this.cbs.onopentagname?.(`br`),this.cbs.onopentag?.(`br`,{},!0),this.cbs.onclosetag?.(`br`,!1));else{let e=this.stack.indexOf(n);if(e!==-1){for(let t=0;t<e;t++)this.popElement(!0);this.popElement(!1)}else this.htmlMode&&n===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.isInForeignContext()?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}popElement(e){let t=this.stack.shift();this.htmlMode&&(rw.has(t)||iw.has(t))&&this.foreignContext.shift(),this.cbs.onclosetag?.(t,e)}closeCurrentTag(e){let t=this.tagname;this.endOpenTag(e),this.stack[0]===t&&this.popElement(!e)}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=qC(e)}onattribend(e,t){this.endIndex=t,this.cbs.onattribute?.(this.attribname,this.attribvalue,e===WC.Double?`"`:e===WC.Single?`'`:e===WC.NoValue?void 0:null),this.attribs&&!Object.hasOwn(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(sw),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.htmlMode?this.lowerCaseTagNames?tw:n.slice(0,7):this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){this.endIndex=t,this.cbs.oncomment?.(this.getSlice(e,t-n)),this.cbs.oncommentend?.(),this.startIndex=t+1}oncdata(e,t,n){this.endIndex=t;let r=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(this.cbs.oncdatastart?.(),this.cbs.ontext?.(r),this.cbs.oncdataend?.()):this.isInForeignContext()?this.cbs.ontext?.(r):(this.cbs.oncomment?.(`[CDATA[${r}]]`),this.cbs.oncommentend?.()),this.startIndex=t+1}onend(){if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}this.cbs.onend?.()}reset(){this.cbs.onreset?.(),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,this.cbs.onparserinit?.(this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(ow.None),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){if(e===t)return``;for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){this.ended?this.cbs.onerror?.(Error(`.write() after done!`)):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){this.ended?this.cbs.onerror?.(Error(`.end() after done!`)):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}},lw=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function uw(e,t=!1){let n={$:{html:1,block:+!t}};for(let t in e){let r=e[t];r===``?n[`:${t}`]=`true`:n[t]=r}return n}function dw(e){let t=e.trim();if(!t.startsWith(`<`))return null;let n=t.match(/^<\/([a-z][a-z0-9]*)\s*>/i);if(n)return{tag:n[1].toLowerCase(),attrs:{},isVoid:!1,isClose:!0};let r=null,i=new cw({onopentag(e,t){r={tag:e,attrs:uw(t,!0),isVoid:lw.has(e),isClose:!1}}},{decodeEntities:!1});return i.write(t),i.end(),r}function fw(e){let t=[],n=[],r=new cw({onopentag(e,r){let i=uw(r);if(lw.has(e)){let r=[e,i];n.length>0?n[n.length-1].children.push(r):t.push(r)}else n.push({tag:e,attrs:i,children:[]})},ontext(e){let r=e.trim();r&&(n.length>0?n[n.length-1].children.push(r):t.push(r))},onclosetag(e){if(lw.has(e))return;let r=n.length-1;for(;r>=0&&n[r].tag!==e;)r--;if(r>=0)for(;n.length>r;){let e=n.pop(),r=e.children.length>0?[e.tag,e.attrs,...e.children]:[e.tag,e.attrs];n.length>0?n[n.length-1].children.push(r):t.push(r)}},oncomment(e){let r=[null,{},e];n.length>0?n[n.length-1].children.push(r):t.push(r)}},{decodeEntities:!0});return r.write(e.trim()),r.end(),t}var pw=new Set([`ul`,`ol`,`table`,`blockquote`,`pre`]),mw={blockquote_open:`blockquote`,ordered_list_open:`ol`,bullet_list_open:`ul`,list_item_open:`li`,paragraph_open:`p`,table_open:`table`,thead_open:`thead`,tbody_open:`tbody`,tr_open:`tr`,th_open:`th`,td_open:`td`},hw={strong_open:`strong`,em_open:`em`,s_open:`del`,sub_open:`sub`,sup_open:`sup`};function gw(e,t){let n={startLine:0,preservePositions:!1,headingIds:!0,...t},r={headingSlugCounts:new Map,headingStack:[],preservePositions:n.preservePositions,headingIds:n.headingIds??!0},i=[],a=0,o=n.startLine;for(;a<e.length;){if(e[a].type===`html_block`){let t=_w(e,a);i.push(...t.nodes),a=t.nextIndex;continue}let t=Sw(e,a,!1,r);if(t.node){if(n.preservePositions){for(let r=a;r<t.nextIndex;r++)e[r].map&&e[r].map[1]&&(o=e[r].map[1]+n.startLine+ +!!e[r].type?.endsWith(`_close`));t.node[1].$||(t.node[1].$={}),t.node[1].$.line=o}i.push(t.node)}a=t.nextIndex}return i}function _w(e,t){return{nodes:fw(typeof e[t]?.content==`string`?e[t].content:``),nextIndex:t+1}}function vw(e,t={}){let{handleJSON:n=!0,filterEmpty:r=!1}=t,i={};if(!e||!Array.isArray(e))return i;for(let t of e)if(Array.isArray(t)&&t.length>=2){let[e]=t,a=t[1];if(r&&(a===``||a==null))continue;if(n&&typeof a==`string`){if(a.startsWith(`{`)&&a.endsWith(`}`))try{a=JSON.parse(a)}catch{}else if(a.startsWith(`[`)&&a.endsWith(`]`))try{a=JSON.parse(a)}catch{}}i[e]=e===`class`&&typeof i[e]==`string`?`${i[e]} ${a}`:a}return i}var yw=1e3;function bw(e){if(!e)return{};let t={},n=e.trim(),r=n.match(/^([^\s[{}"'<>`]+)/);for(r&&(t.language=r[1],n=n.slice(r[1].length).trim());n&&(n.startsWith(`{`)||n.startsWith(`[`));)if(n.startsWith(`{`)){let e=n.match(/^\{([^}]+)\}/);if(e){let r=e[1];n=n.slice(e[0].length).trim();let i=[],a=r.split(`,`);for(let e of a){let t=e.trim();if(t.includes(`-`)){let[e,n]=t.split(`-`).map(e=>Number.parseInt(e.trim(),10));if(!Number.isNaN(e)&&!Number.isNaN(n)&&n-e<=yw)for(let t=e;t<=n&&i.length<yw;t++)i.push(t)}else{let e=Number.parseInt(t,10);!Number.isNaN(e)&&i.length<yw&&i.push(e)}}i.length>0&&(t.highlights=i)}else break}else if(n.startsWith(`[`)){let e=0,r=0;for(;r<n.length;r++)if(n[r]===`[`)e++;else if(n[r]===`]`&&(e--,e===0)){t.filename=n.slice(1,r).replace(/\\\\/g,``),n=n.slice(r+1).trim();break}if(e!==0)break}return n&&(t.meta=n),t}function xw(e,t,n=!0){let r=t;if(n)for(;r<e.length&&e[r].type===`text`&&!e[r].content?.trim();)r++;if(r<e.length&&e[r].type===`mdc_inline_props`){let t=e[r];return{attrs:vw(t.attrs),nextIndex:r+1}}return{attrs:{},nextIndex:t}}function Sw(e,t,n=!1,r){let i=e[t];if(i.type===`hr`)return{node:[`hr`,{}],nextIndex:t+1};if(i.type===`html_block`){let n=_w(e,t);return{node:n.nodes[0]??null,nextIndex:n.nextIndex}}if(i.type===`mdc_block_open`){let n=i.tag||`component`,a=vw(i.attrs),o=Cw(e,t+1,`mdc_block_close`,r);if(pw.has(n)&&o.nodes.length===1&&Array.isArray(o.nodes[0])&&o.nodes[0][0]===n){let e=o.nodes[0],t=e[1],r=e.slice(2);return{node:[n,{...t,...a},...r],nextIndex:o.nextIndex+1}}return{node:[n,a,...o.nodes],nextIndex:o.nextIndex+1}}if(i.type===`mdc_block_shorthand`){let n=t+1,r=i.tag||`component`,a=vw(i.attrs,{handleJSON:!1}),o=[];if(i.nesting===1)for(;n<e.length;){let t=e[n];if(n++,t.type===`mdc_block_shorthand`&&t.nesting===-1)break;if(t.type===`inline`){let e=Ow(t.children||[],!1);o.push(...e)}}return{node:[r,a,...o],nextIndex:n}}if(i.type===`math_block`)return{node:[`math`,{class:`math block`,content:i.content},i.content],nextIndex:t+1};if(i.type===`fence`||i.type===`fenced_code_block`||i.type===`code_block`){let e=i.content||``,n=bw(i.info||i.params||``),r=n,a={};return n.language&&n.language.trim()&&(r.language=n.language,a.class=`language-${n.language}`),{node:[`pre`,r,[`code`,a,e.endsWith(`
90
90
  `)?e.slice(0,-1):e]],nextIndex:t+1}}if(i.type===`heading_open`){let a=Number.parseInt(i.tag.replace(`h`,``),10),o=`h${a}`,s=vw(i.attrs,{handleJSON:!1}),c=ww(e,t+1,`heading_close`,!0,!0,n,r);if(c.nodes.length>0){let e;return e=r?.headingIds?{id:Dw(Ew(c.nodes.map(e=>BS(e)).join(``)),a,r),...s}:s,{node:[o,e,...c.nodes],nextIndex:c.nextIndex+1}}return{node:null,nextIndex:c.nextIndex+1}}if(i.type===`list_item_open`){let n=vw(i.attrs,{handleJSON:!1}),a=ww(e,t+1,`list_item_close`,!1,!1,!0,r);return a.nodes.length>0?{node:[`li`,n,...a.nodes],nextIndex:a.nextIndex+1}:{node:null,nextIndex:a.nextIndex+1}}let a=mw[i.type];if(a){let n=vw(i.attrs,{handleJSON:!1}),o=i.type.replace(`_open`,`_close`),s=[`td`,`th`].includes(a),c=ww(e,t+1,o,!1,!1,s,r);return{node:[a,n,...c.nodes],nextIndex:c.nextIndex+1}}return{node:[i.tag||`component`,vw(i.attrs,{handleJSON:!1})],nextIndex:t+1}}function Cw(e,t,n,r){let i=[],a=t,o=null,s={},c=[];for(;a<e.length&&e[a].type!==n;){let t=e[a];if(t.type===`html_block`){let t=_w(e,a);o===null?i.push(...t.nodes):c.push(...t.nodes),a=t.nextIndex;continue}if(t.type===`mdc_block_slot`){if(t.attrs&&Array.isArray(t.attrs)&&t.attrs.length>0){let e=t.attrs[0];if(Array.isArray(e)&&e.length>0){let n=e[0];if(n.startsWith(`#`)){let e=n.substring(1),r=vw(t.attrs.slice(1));o!==null&&c.length>0&&(i.push([`template`,{name:o,...s},...c]),c=[]),o=e,s=r,a++;continue}}}a++;continue}let n=Sw(e,a,!1,r);a=n.nextIndex,n.node&&(o===null?i.push(n.node):c.push(n.node))}return o!==null&&c.length>0&&i.push([`template`,{name:o,...s},...c]),{nodes:i,nextIndex:a}}function ww(e,t,n,r,i=!1,a=!1,o){let s=[],c=t;for(;c<e.length&&e[c].type!==n;){let t=e[c];if(t.type===`html_block`){let t=_w(e,c);s.push(...t.nodes),c=t.nextIndex}else if(t.type===`inline`){let e=Ow(t.children||[],i);s.push(...e),c++}else if(t.type===`hardbreak`||t.type===`hard_break`)s.push([`br`,{}]),c++;else if(t.type===`softbreak`)s.push(`
91
91
  `),c++;else if(r&&(t.type===`text`||t.type===`code_inline`))t.content&&s.push(t.content),c++;else{let t=Sw(e,c,a,o);c=t.nextIndex,t.node&&s.push(t.node)}}return{nodes:Tw(s),nextIndex:c}}function Tw(e){let t=[];for(let n of e){let e=t[t.length-1];typeof n==`string`&&typeof e==`string`?t[t.length-1]=e+n:t.push(n)}return t}function Ew(e){let t=e.toLowerCase().trim().replace(/\s+/g,`-`).replace(/[^\w-]+/g,``).replace(/-{2,}/g,`-`).replace(/^-+|-+$/g,``);return/^\d/.test(t)&&(t=`_`+t),t}function Dw(e,t,n){if(!n)return e;for(;n.headingStack.length>0&&n.headingStack[n.headingStack.length-1].level>=t;)n.headingStack.pop();if(n.headingStack.length>0){let t=n.headingStack[n.headingStack.length-1];t.level>=2&&(e=t.id+`-`+e)}n.headingStack.push({level:t,id:e});let r=n.headingSlugCounts.get(e)??0;return n.headingSlugCounts.set(e,r+1),r===0?e:`${e}-${r}`}function Ow(e,t=!1){let n=[],r=0;for(;r<e.length;){let i=e[r];if(i.type===`mdc_inline_props`&&i.hidden){r++;continue}let a=Aw(e,r,t);r=a.nextIndex,a.node&&n.push(a.node)}return Tw(n)}var kw=100;function Aw(e,t,n=!1,r=0){let i=e[t];if(i.type===`text`||i.type===`emoji`)return{node:i.content||null,nextIndex:t+1};if(i.type===`html_inline`){let a=i.content||``,o=dw(a);if(!o)return{node:a||null,nextIndex:t+1};if(o.isClose)return{node:null,nextIndex:t+1};if(o.isVoid)return{node:[o.tag,o.attrs],nextIndex:t+1};if(r>=kw)return{node:a||null,nextIndex:t+1};let s=[],c=t+1;for(;c<e.length;){let t=e[c];if(t.type===`html_inline`){let e=dw(t.content||``);if(e?.isClose&&e.tag===o.tag){c++;break}}let i=Aw(e,c,n,r+1);c=i.nextIndex,i.node&&s.push(i.node)}return{node:s.length>0?[o.tag,o.attrs,...s]:[o.tag,o.attrs],nextIndex:c}}if(i.type===`mdc_inline_span`&&i.nesting===1){let i={},a=t+1,o=[];for(;a<e.length;){let t=e[a];if(t.type===`mdc_inline_span`&&t.nesting===-1)break;if(t.type===`text`&&!t.content?.trim()){a++;continue}let i=Aw(e,a,n,r);a=i.nextIndex,i.node&&o.push(i.node)}let{attrs:s,nextIndex:c}=xw(e,a+1);return Object.assign(i,s),o.length>0||Object.keys(i).length>0?{node:[`span`,i,...o],nextIndex:c}:{node:null,nextIndex:c}}if(i.type===`mdc_inline_span`&&i.nesting===-1)return{node:null,nextIndex:t+1};if(i.type===`code_inline`){let{attrs:n,nextIndex:r}=xw(e,t+1);return i.content?{node:[`code`,n,i.content],nextIndex:r}:{node:null,nextIndex:r}}if(i.type===`hardbreak`||i.type===`hard_break`)return{node:[`br`,{}],nextIndex:t+1};if(i.type===`softbreak`)return{node:`
92
92
  `,nextIndex:t+1};if(i.type===`mdc_inline_component`){let a=i.tag||`component`;if(i.nesting===1){let i=[],o=t+1;for(;o<e.length;){let t=e[o];if(t.type===`mdc_inline_component`&&t.nesting===-1){let{attrs:t,nextIndex:n}=xw(e,o+1,!1);return{node:[a,t,...i],nextIndex:n}}let s=Aw(e,o,n,r);o=s.nextIndex,s.node&&i.push(s.node)}return{node:[a,{},...i],nextIndex:o}}if(i.nesting===-1)return{node:null,nextIndex:t+1};{let n={},{attrs:r,nextIndex:o}=xw(e,t+1,!1);Object.assign(n,r);let s=vw(i.attrs,{handleBoolean:!1});Object.assign(n,s);let c=Object.keys(r).length>0?o:t+1;return{node:[a,n],nextIndex:c}}}if(i.type===`image`){let n=vw(i.attrs,{handleJSON:!1,filterEmpty:!0});i.content&&(n.alt=i.content);let{attrs:r,nextIndex:a}=xw(e,t+1);return Object.assign(n,r),{node:[`img`,n],nextIndex:a}}if(i.type===`link_open`){let r=vw(i.attrs,{handleJSON:!1}),a=jw(e,t+1,`link_close`,n),{attrs:o,nextIndex:s}=xw(e,a.nextIndex+1);return Object.assign(r,o),a.nodes.length>0?{node:[`a`,r,...a.nodes],nextIndex:s}:{node:null,nextIndex:s}}if(i.type===`math_inline`)return{node:[`math`,{class:`math inline`,content:i.content},i.content],nextIndex:t+1};let a=hw[i.type];if(a){let r=i.type.replace(`_open`,`_close`),o=jw(e,t+1,r,n),{attrs:s,nextIndex:c}=xw(e,o.nextIndex+1);return o.nodes.length>0?{node:[a,s,...o.nodes],nextIndex:c}:{node:null,nextIndex:c}}if(i.children){let e=Ow(i.children,n);return{node:e.length===1?e[0]:null,nextIndex:t+1}}return{node:null,nextIndex:t+1}}function jw(e,t,n,r=!1){let i=[],a=t;for(;a<e.length;){let t=e[a];if(t.type===n&&(n===`mdc_inline_span`&&t.nesting===-1||n!==`mdc_inline_span`))break;if(t.type===`mdc_inline_props`&&t.hidden){a++;continue}if(t.type===`mdc_inline_component`&&r){let n=t.tag||`component`,r={},{attrs:o,nextIndex:s}=xw(e,a+1,!1);Object.assign(r,o),Object.keys(o).length>0?a=s:a++,i.push([n,r]);continue}let o=Aw(e,a,r);a=o.nextIndex,o.node&&i.push(o.node)}return{nodes:Tw(i),nextIndex:a}}function Mw(e,t){let n=-1,r=t.nodes.length-1,i=!1;for(;r>=0;){let e=t.nodes[r];if(e[1]&&e[1].$?.line){if(i){n=r;break}i=!0}r--}let a=n===-1?null:t.nodes[n];if(a){let r=a[1].$?.line??0;return{remainingMarkdownStartLine:r,reusedNodes:t.nodes.slice(0,n+1),remainingMarkdown:e.split(`
93
93
  `).slice(r).join(`
94
- `)||``}}return{remainingMarkdownStartLine:0,remainingMarkdown:e,reusedNodes:[]}}var Nw={end:()=>{}},Pw={startSpan:()=>Nw,startActiveSpan:(e,t,n)=>(typeof t==`function`?t:n)(Nw)};function Fw(e,t,n,r){return e.startActiveSpan(t,r??{},e=>{try{let t=n();return t instanceof Promise?t.finally(()=>e.end()):(e.end(),t)}catch(t){throw e.end(),t}})}function Iw(e={}){let{autoUnwrap:t=!0,autoClose:n=!0,tracer:r=Pw}=e,i=IC(e.unwrap),a=e.plugins??[];e.html!==void 0&&console.warn("[comark] `ParserOptions.html` is deprecated and will be removed in a future major version. Use `registerDefaultPlugins: false` and register `html()` from `comark/plugins/html` only when needed.");let o=av(e.registerDefaultPlugins===!1?[]:[FC(),...e.html===!1?[]:[jC()],vC(),gC(),lC(),pC()],a),s=e=>o.some(t=>t.name===e),c=new rv({linkify:e.linkify??!0}).enable([`table`,`strikethrough`]);for(let e of o)for(let t of e.markdownItPlugins||[])c.use(t);let l=null,u=null;return async(a,d={})=>await Fw(r,`comark:parse`,async()=>{let f={options:e,tokens:[],markdown:a,tree:null,parsedLines:0,reusableNodes:[],frontmatterText:``,frontmatter:{}},p=l,m=a.startsWith(u??``);if(d.streaming&&p&&m){let{remainingMarkdownStartLine:e,reusedNodes:t,remainingMarkdown:n}=Mw(a,p);if(!n)return p;f.parsedLines=e,f.markdown=n,f.reusableNodes=t}typeof n==`function`?f.markdown=Fw(r,`comark:autoclose`,()=>n(f.markdown)):n&&(f.markdown=Fw(r,`comark:autoclose`,()=>xp(f.markdown,{frontmatter:s(`frontmatter`)&&d.streaming,syntax:s(`components`),attributes:s(`components`)||s(`attributes`),math:s(`math`),dropTrailingOpeners:d.streaming===!0})));for(let e of o)e.pre&&await Fw(r,`comark:pre:${e.name}`,()=>e.pre(f));try{f.tokens=Fw(r,`comark:tokenize`,()=>c.parse(f.markdown,{}))}catch(e){if(d.streaming&&p)return p;throw e}let h=r.startSpan(`comark:nodes`),g=gw(f.tokens,{startLine:f.parsedLines,preservePositions:d.streaming??!1,headingIds:e.headingIds??!0});t&&(g=g.map(e=>Lp(e))),i.length>0&&(g=BC(g,i)),h.end();let _=f.frontmatter??{},v=f.frontmatterText??``;d.streaming?(f.tree={frontmatter:v?_:p?.frontmatter??_,meta:{},nodes:[...f.reusableNodes,...g]},l=f.tree,u=a):(f.tree={frontmatter:_,meta:{},nodes:g},l=null,u=null);for(let e of o)e.post&&await Fw(r,`comark:post:${e.name}`,()=>e.post(f));return f.tree})}function Lw(e={}){return iv(Iw(e))}var Rw=` `,zw=`background-color: currentColor; display: inline-block; margin-left: 0.25rem; margin-right: 0.25rem; animation: pulse 0.75s cubic-bezier(0.4,0,0.6,1) infinite;`;function Bw(e){if(e===!0)return[`span`,{key:`stream-caret`,style:zw},Rw];if(typeof e==`object`){let t=e?.class||``;return[`span`,{key:`stream-caret`,style:zw,...t?{class:t}:{}},Rw]}return null}function Vw(e,t){for(let n=e.length-1;n>=2;n--){let r=e[n];if(typeof r==`string`&&e[1]?.key!==`stream-caret`)return e.push(t),!0;if(Array.isArray(r)&&Vw(r,t))return!0}return!1}var Hw=new Map;function Uw(e){return!!e&&typeof e.then==`function`}function Ww(e){return e&&typeof e==`object`&&`default`in e?e.default:e}function Gw(e){return Array.isArray(e)&&e.length>=1?e[0]:null}function Kw(e){return Array.isArray(e)&&e.length>=2&&e[1]||{}}function qw(e){return Array.isArray(e)&&e.length>2?e.slice(2):[]}function Jw(e,t,n){let r=ut()?.appContext?.components,i=US(e),a=`Prose${i}`,o=t[a]||t[i]||t[e]||r?.[a]||r?.[i];if(!o&&n){let t=e;if(!Hw.has(t)){let r=n(e);Uw(r)?Hw.set(t,U(()=>r)):r&&Hw.set(t,Ww(r))}o=Hw.get(t)}return o}function Yw(e,t={},n,r,i,a={frontmatter:{},meta:{},data:{},props:{}}){if(typeof e==`string`)return e;if(Array.isArray(e)){let o=Gw(e);if(!o)return null;let s=Kw(e),c=qw(e),l;i?.[0]!==`pre`&&(s.as&&(l=Jw(s.as,t,r)),l||=Jw(o,t,r));let u=l||o,d=RS(s,a,{parseJson:!0}),f={};for(let e in d)e===`className`?f.class=d[e]:f[e]=d[e];if((u?.props?.__node||u?.__asyncResolved?.props?.__node)&&(f.__node=e),n!==void 0&&(f.key=n),e.length===2)return ft(u,f);let p=Object.keys(d).length>0?{...a,props:f}:a,m={},h=[];for(let n=0;n<c.length;n++){let i=c[n];if(i==null)continue;let a=Gw(i),o=Kw(i);if(a===`template`&&o){let n;if(o.name)n=o.name;else for(let e in o)if(e.startsWith(`v-slot:`)){n=e.substring(7);break}if(n){let a=qw(i);m[n]=()=>a.map((n,i)=>Yw(n,t,i,r,e,p)).filter(e=>e!==null);continue}}let s=Yw(i,t,n,r,e,p);s!==null&&h.push(s)}return l?(h.length>0&&(m.default=()=>h),ft(u,f,m)):ft(u,f,h)}return null}var Xw=k({name:`MarkdownDocument`,props:{value:{type:Object,default:void 0},components:{type:Object,default:()=>({})},componentsManifest:{type:Function,default:void 0},streaming:{type:Boolean,default:!1},caret:{type:[Boolean,Object],default:!1},data:{type:Object,default:()=>({})},documentKey:{type:String,default:void 0}},async setup(e){let t=H(()=>e.value??{nodes:[],frontmatter:{},meta:{}}),n=W(new Set),r=Yt(null),i=t.value.meta?.key||e.documentKey;if(i&&globalThis.comarkContext){let e=globalThis.comarkContext.get(i,wt(t.value)).listen(e=>{r.value=e});Tt(()=>e(!0))}Qt((e,t,r)=>{let i=t?.$?.type?.name||t?.type?.name||`unknown`;return n.value.add(i),!1});let a=bt(`comark`,{components:{},componentManifest:()=>null}),o=H(()=>({...a?.components,...e.components})),s=t=>{let n=e.componentsManifest?.(t);return n||=a?.componentManifest(t),n||null},c=H(()=>Bw(e.caret||!1));return()=>{let n=wt(r.value??t.value),i=[...n.nodes||[]];e.streaming&&c.value&&i.length>0&&(Vw(i[i.length-1],c.value)||i.push(c.value));let a={frontmatter:n.frontmatter||n.data||{},meta:n.meta||{},data:e.data||{},props:{}},l=i.map((e,t)=>Yw(e,o.value,t,s,void 0,a)).filter(e=>e!==null);return ft(`div`,{class:`comark-content`},l)}}}),Zw={value:{type:[String,Object],default:void 0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},unwrap:{type:[Boolean,String,Array],default:!1},components:{type:Object,default:()=>({})},componentsManifest:{type:Function,default:void 0},streaming:{type:Boolean,default:!1},summary:{type:Boolean,default:!1},caret:{type:[Boolean,Object],default:!1},data:{type:Object,default:()=>({})},documentKey:{type:String,default:void 0}},Qw=k({name:`Markdown`,props:Zw,async setup(e,t){let n=H(()=>{if(zS(e.value))return``;let n=e.value,r=t.slots.default?.();return r&&r.length>0&&typeof r[0].children==`string`&&(n=r[0].children),e.summary&&(n=n?.split(`<!-- more -->`)[0]),(n||``).trim()}),r=Yt(null),i=Lw({...e.options,...e.unwrap?{unwrap:e.unwrap}:{},plugins:e.plugins});return Mt(()=>[n.value,e.streaming],()=>{zS(e.value)||i(n.value,{streaming:e.streaming}).then(e=>r.value=e)}),zS(e.value)||await i(n.value,{streaming:e.streaming}).then(e=>r.value=e),()=>zS(e.value)?ft(Xw,{value:e.value,components:e.components,streaming:e.streaming,componentsManifest:e.componentsManifest,class:e.streaming?`comark-stream`:``,caret:e.caret,data:e.data,documentKey:e.documentKey}):ft(Xw,{value:r.value||{nodes:[],frontmatter:{},meta:{}},components:e.components,streaming:e.streaming,componentsManifest:e.componentsManifest,class:e.streaming?`comark-stream`:``,caret:e.caret,data:e.data,documentKey:e.documentKey})}});function $w(e={}){let{name:t,...n}=e;return k({name:t??`MarkdownComponent`,props:Zw,setup(t,{slots:r}){let i=H(()=>({...n,...t.options})),a=H(()=>[...e.plugins||[],...t.plugins||[]]),o=H(()=>({...e.components,...t.components}));return()=>{let n=e.extends||Qw;return ft(n,{...t,options:i.value,plugins:a.value,components:o.value,class:e.class},{default:r.default})}}})}var eT=$w({name:`ChatComark`,class:`*:first:mt-0 *:last:mb-0`}),tT=[`data-open`],nT=[`aria-expanded`],rT={class:`ai-think-body`},iT=Object.assign(k({__name:`ReasoningBlock`,props:{text:{},streaming:{type:Boolean},duration:{}},setup(e){let t=e,n=W(!t.duration&&!!t.streaming);Mt(()=>t.streaming,(e,t)=>{e?n.value=!0:t&&setTimeout(()=>{n.value=!1},600)});let r=H(()=>t.streaming?`思考中…`:t.duration?`思考了 ${t.duration} 秒`:`思考过程`);return(t,i)=>{let a=kn,o=eT;return j(),R(`div`,{class:`ai-think`,"data-open":E(n)},[P(`button`,{class:`ai-think-btn`,type:`button`,"aria-expanded":E(n),onClick:i[0]||=e=>n.value=!E(n)},[N(a,{class:`ai-think-chev`,name:`i-lucide-chevron-down`}),P(`span`,null,M(E(r)),1)],8,nT),qt(P(`div`,rT,[N(o,{value:e.text,streaming:e.streaming},null,8,[`value`,`streaming`])],512),[[rt,E(n)]])],8,tT)}}}),{__name:`ChatReasoningBlock`}),aT={slots:{root:``,trigger:[`group flex w-full items-center gap-1.5 text-muted text-sm disabled:cursor-default disabled:hover:text-muted hover:text-default min-w-0`,`transition-colors`],leading:`relative size-4 shrink-0`,leadingIcon:`size-4 shrink-0`,chevronIcon:`size-4 shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200 ease-out motion-reduce:transition-none`,label:`truncate`,suffix:`text-dimmed ms-1`,trailingIcon:`size-4 shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200 ease-out motion-reduce:transition-none`,content:`data-[state=open]:animate-[collapsible-down_200ms_var(--ease-out)] data-[state=closed]:animate-[collapsible-up_200ms_var(--ease-out)] data-[state=closed]:overflow-hidden`,body:`text-sm text-dimmed whitespace-pre-wrap`,actions:`flex items-center justify-end gap-1.5`},variants:{variant:{inline:{trigger:`rounded-sm outline-primary/25 focus-visible:outline-3`,body:`pt-2`,actions:`pt-2`},card:{root:`rounded-md ring ring-default overflow-hidden outline-primary/25 has-focus-visible:outline-3 has-focus-visible:ring-primary`,trigger:`px-2 py-1 focus:outline-none`,trailingIcon:`ms-auto`,body:`border-t border-default p-2 max-h-[200px] overflow-y-auto focus:outline-none`,actions:`border-t border-default p-2`}},chevron:{leading:``,trailing:``},loading:{true:{leadingIcon:`animate-spin`}},alone:{false:{leadingIcon:[`absolute inset-0 group-hover:opacity-0 group-data-[state=open]:opacity-0`,`transition-opacity duration-200 ease-out`],chevronIcon:[`absolute inset-0 opacity-0 group-hover:opacity-100 group-data-[state=open]:opacity-100`,`transition-[rotate,opacity] duration-200 ease-out motion-reduce:transition-none`]}}}},oT=[`data-state`],sT={__name:`UChatTool`,props:{text:{type:String,required:!1},suffix:{type:String,required:!1},icon:{type:null,required:!1},loading:{type:Boolean,required:!1,default:!1},loadingIcon:{type:null,required:!1},streaming:{type:Boolean,required:!1,default:!1},variant:{type:null,required:!1,default:`inline`},chevron:{type:String,required:!1,default:`trailing`},chevronIcon:{type:null,required:!1},shimmer:{type:Object,required:!1},actions:{type:Array,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=Vt(),a=Ln(`chatTool`,n),o=Dn(),s=H(()=>zn({extend:aT,...o.ui?.chatTool||{}})({variant:a.variant,chevron:a.chevron,loading:a.loading})),c=H(()=>a.open!==void 0),l=W(a.defaultOpen??!1),u=H(()=>c.value?a.open:l.value);function d(e){l.value=e,r(`update:open`,e)}let f=H(()=>!!i.default);Mt(()=>!!a.actions?.length,e=>{e&&f.value&&a.open===void 0&&a.defaultOpen===void 0&&(l.value=!0)},{immediate:!0});let p=H(()=>a.loadingIcon||o.ui.icons?.loading),m=H(()=>a.loading?p.value:a.icon),h=H(()=>a.chevronIcon||o.ui.icons?.chevronDown);return(e,t)=>(j(),F(E(uc),{open:u.value,disabled:E(a).disabled,"unmount-on-hide":E(a).unmountOnHide,"data-slot":`root`,class:V(s.value.root({class:[E(a).ui?.root,E(a).class]})),"onUpdate:open":d},{default:L(({open:t})=>[N(E(fc),{"as-child":``,disabled:!f.value},{default:L(()=>[P(`button`,{type:`button`,"data-slot":`trigger`,class:V(s.value.trigger({class:E(a).ui?.trigger}))},[m.value||f.value&&E(a).chevron===`leading`?(j(),R(`span`,{key:0,"data-slot":`leading`,class:V(s.value.leading({class:E(a).ui?.leading}))},[m.value?(j(),F(kn,{key:0,name:m.value,"data-slot":`leadingIcon`,class:V(s.value.leadingIcon({class:E(a).ui?.leadingIcon,alone:!(f.value&&E(a).chevron===`leading`)}))},null,8,[`name`,`class`])):z(``,!0),f.value&&E(a).chevron===`leading`?(j(),F(kn,{key:1,name:h.value,"data-slot":`chevronIcon`,class:V(s.value.chevronIcon({class:E(a).ui?.chevronIcon,alone:!m.value}))},null,8,[`name`,`class`])):z(``,!0)],2)):z(``,!0),P(`span`,{"data-slot":`label`,class:V(s.value.label({class:E(a).ui?.label}))},[E(a).streaming&&E(a).text?(j(),F(_p,O({key:0,text:E(a).text},E(a).shimmer),null,16,[`text`])):(j(),R(I,{key:1},[Xt(M(E(a).text),1)],64)),E(a).suffix?(j(),R(`span`,{key:2,"data-slot":`suffix`,class:V(s.value.suffix({class:E(a).ui?.suffix}))},M(E(a).suffix),3)):z(``,!0)],2),f.value&&E(a).chevron===`trailing`?(j(),F(kn,{key:1,name:h.value,"data-slot":`trailingIcon`,class:V(s.value.trailingIcon({class:E(a).ui?.trailingIcon}))},null,8,[`name`,`class`])):z(``,!0)],2)]),_:1},8,[`disabled`]),N(E(dc),{"data-slot":`content`,class:V(s.value.content({class:E(a).ui?.content}))},{default:L(()=>[P(`div`,{"data-slot":`body`,class:V(s.value.body({class:E(a).ui?.body}))},[B(e.$slots,`default`,{open:t})],2)]),_:2},1032,[`class`]),E(a).actions?.length||i.actions?(j(),R(`div`,{key:0,"data-slot":`actions`,"data-state":f.value&&t?`open`:`closed`,class:V(s.value.actions({class:E(a).ui?.actions}))},[B(e.$slots,`actions`,{},()=>[(j(!0),R(I,null,vt(E(a).actions,(e,t)=>(j(),F(Yr,O({key:t,size:`xs`},{ref_for:!0},e),null,16))),128))])],10,oT)):z(``,!0)]),_:3},8,[`open`,`disabled`,`unmount-on-hide`,`class`]))}},cT={class:`ai-tool-io`},lT={key:0,class:`ai-tool-label`},uT={key:1,class:`ai-tool-body`},dT={key:2,class:`ai-tool-label`},fT={key:3,class:`ai-tool-body`},pT=[`data-state`],mT={class:`ai-review-hd`},hT={key:0,class:`ai-review-why`},gT={class:`ai-review-list`},_T={class:`ai-review-before`},vT={class:`ai-review-after`},yT={key:1,class:`ai-review-acts`},bT=[`onClick`],xT=[`onClick`],ST={key:2,class:`ai-review-state`},CT=[`src`,`alt`,`title`],wT={key:4,class:`ai-img-missing`},TT={key:5,class:`ai-md`},ET={key:1,class:`ai-text`},DT=Object.assign(k({__name:`MessageContent`,props:{message:{},streaming:{type:Boolean}},emits:[`resolve`],setup(e,{emit:t}){let n=e,r=t,i=e=>!!n.streaming&&e===n.message.parts.length-1,a={search_agile:`检索敏捷数据`,update_agile:`更新敏捷数据`},o=e=>{let t=a[e.toolName]??e.toolName;return e.state===`running`?`${t}中…`:t},s=e=>{let t=e.args;return t?.query??(t?.file?`agile/${t.file}.json`:``)},c=e=>e.args?JSON.stringify(e.args,null,2):``,l=e=>e.state===`running`?``:e.output??``,u=e=>e===void 0?`(无)`:typeof e==`string`?e:JSON.stringify(e);return(e,t)=>{let a=iT,d=sT,f=kn,p=eT;return j(!0),R(I,null,vt(n.message.parts,(e,m)=>(j(),R(I,{key:`${n.message.id}-${m}`},[e.type===`reasoning`?(j(),F(a,{key:0,text:e.text,streaming:i(m),duration:e.durationSec},null,8,[`text`,`streaming`,`duration`])):e.type===`tool`?(j(),F(d,{key:1,text:o(e),suffix:s(e),streaming:e.state===`running`,chevron:`leading`},{default:L(()=>[P(`div`,cT,[c(e)?(j(),R(`p`,lT,`参数`)):z(``,!0),c(e)?(j(),R(`pre`,uT,M(c(e)),1)):z(``,!0),l(e)?(j(),R(`p`,dT,`结果`)):z(``,!0),l(e)?(j(),R(`pre`,fT,M(l(e)),1)):z(``,!0)])]),_:2},1032,[`text`,`suffix`,`streaming`])):e.type===`review`?(j(),R(`div`,{key:2,class:`ai-review`,"data-state":e.state},[P(`p`,mT,[N(f,{name:`i-lucide-file-pen-line`}),t[0]||=Xt(` 待审变更 · `,-1),P(`code`,null,`agile/`+M(e.file)+`.json`,1)]),e.reason?(j(),R(`p`,hT,M(e.reason),1)):z(``,!0),P(`ul`,gT,[(j(!0),R(I,null,vt(e.changes,e=>(j(),R(`li`,{key:e.path},[P(`code`,null,M(e.path),1),P(`span`,_T,M(u(e.before)),1),t[1]||=P(`span`,{class:`ai-review-arrow`},`→`,-1),P(`span`,vT,M(u(e.after)),1)]))),128))]),e.state===`pending`?(j(),R(`div`,yT,[P(`button`,{class:`btn btn-dark btn-sm`,type:`button`,onClick:t=>r(`resolve`,e.pendingId,!0)},` 批准并写入 `,8,bT),P(`button`,{class:`btn btn-sm`,type:`button`,onClick:t=>r(`resolve`,e.pendingId,!1)},`驳回`,8,xT)])):(j(),R(`p`,ST,M(e.message),1))],8,pT)):e.type===`image`&&e.url?(j(),R(`img`,{key:3,class:`ai-msg-img`,src:e.url,alt:e.name||`图片`,title:e.name},null,8,CT)):e.type===`image`?(j(),R(`p`,wT,[N(f,{name:`i-lucide-image-off`}),P(`span`,null,M(e.name||`图片未保存`)+`(历史会话不保存图片)`,1)])):e.type===`text`?(j(),R(`div`,TT,[n.message.role===`assistant`?(j(),F(p,{key:0,value:e.text,streaming:i(m)},null,8,[`value`,`streaming`])):(j(),R(`p`,ET,M(e.text),1))])):z(``,!0)],64))),128)}}}),{__name:`ChatMessageContent`}),OT={slots:{content:`flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto`,arrow:`fill-bg stroke-default`,text:`truncate`,kbds:`hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5`,kbdsSize:`sm`}},kT={__name:`UTooltip`,props:{text:{type:String,required:!1},kbds:{type:Array,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},delayDuration:{type:Number,required:!1},disableHoverableContent:{type:Boolean,required:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=Vt(),a=Ln(`tooltip`,n),o=Dn(),s=Su(),c=Ar(Er(a,`defaultOpen`,`open`,`delayDuration`,`disableHoverableContent`,`disableClosingTrigger`,`ignoreNonKeyboardFocus`),r),l=tr(pt(()=>a.portal)),u=pt(()=>An(a.content,s.content.value,{side:`bottom`,sideOffset:8,collisionPadding:8})),d=pt(()=>An(a.arrow,{rounded:!0})),{getKbdKey:f}=Wu(),p=H(()=>u.value.ariaLabel||i.content?u.value.ariaLabel:[a.text,...(a.kbds||[]).map(e=>f(typeof e==`object`?e.value:e))].filter(Boolean).join(` `)),m=H(()=>zn({extend:OT,...o.ui?.tooltip||{}})({side:u.value.side}));return(e,t)=>(j(),F(E(Ou),O(E(c),{disabled:!(E(a).text||E(a).kbds?.length||i.content)||E(a).disabled}),{default:L(({open:t})=>[i.default||E(a).reference?(j(),F(E(Nu),O({key:0},e.$attrs,{"as-child":``,reference:E(a).reference,class:E(a).class}),{default:L(()=>[B(e.$slots,`default`,{open:t})]),_:2},1040,[`reference`,`class`])):z(``,!0),N(E(Mu),D(A(E(l))),{default:L(()=>[N(E(Br),null,{default:L(()=>[N(E(ju),O(u.value,{"aria-label":p.value,"data-slot":`content`,class:m.value.content({class:[!i.default&&E(a).class,E(a).ui?.content]})}),{default:L(()=>[B(e.$slots,`content`,{ui:m.value},()=>[E(a).text?(j(),R(`span`,{key:0,"data-slot":`text`,class:V(m.value.text({class:E(a).ui?.text}))},M(E(a).text),3)):z(``,!0),E(a).kbds?.length?(j(),R(`span`,{key:1,"data-slot":`kbds`,class:V(m.value.kbds({class:E(a).ui?.kbds}))},[(j(!0),R(I,null,vt(E(a).kbds,(e,t)=>(j(),F(qu,O({key:t,size:E(a).ui?.kbdsSize||m.value.kbdsSize()},{ref_for:!0},typeof e==`string`?{value:e}:e),null,16,[`size`]))),128))],2)):z(``,!0)]),E(a).arrow?(j(),F(E(xu),O({key:0},d.value,{"data-slot":`arrow`,class:m.value.arrow({class:E(a).ui?.arrow})}),null,16,[`class`])):z(``,!0)]),_:3},16,[`aria-label`,`class`])]),_:3})]),_:3},16)]),_:3},16,[`disabled`]))}},AT={slots:{root:`group/message relative w-full`,header:`flex mb-1.5`,container:`relative flex items-start`,body:`min-w-0`,leading:`inline-flex items-center justify-center min-h-6`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,files:`flex items-center gap-1.5`,content:`relative text-pretty wrap-break-word *:first:mt-0 *:last:mb-0`,actions:[`[@media(hover:hover)]:opacity-0 group-hover/message:opacity-100 absolute bottom-0 flex items-center`,`transition-opacity ease-out`]},variants:{variant:{solid:``,outline:``,soft:``,subtle:``,naked:``},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},side:{left:{},right:{container:`justify-end ms-auto max-w-[75%]`,header:`justify-end`,actions:`right-0`}},leading:{true:``},actions:{true:``},compact:{true:{root:`scroll-mt-3`,container:`gap-1.5 pb-3`,content:`space-y-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`},false:{root:`scroll-mt-4 sm:scroll-mt-6`,container:`gap-3 pb-8`,content:`space-y-4`,leadingIcon:`size-8`,leadingAvatarSize:`md`}}},compoundVariants:[{compact:!0,actions:!0,class:{container:`pb-8`}},{variant:[`solid`,`outline`,`soft`,`subtle`],compact:!1,class:{content:`px-4 py-3 rounded-lg min-h-12`,leading:`mt-2`}},{variant:[`solid`,`outline`,`soft`,`subtle`],compact:!0,class:{content:`px-2 py-1 rounded-lg min-h-8`,leading:`mt-1`}},{variant:`naked`,side:`left`,class:{body:`w-full`,content:`w-full`}},{color:`primary`,variant:`solid`,class:{content:`bg-primary text-inverted`}},{color:`secondary`,variant:`solid`,class:{content:`bg-secondary text-inverted`}},{color:`success`,variant:`solid`,class:{content:`bg-success text-inverted`}},{color:`info`,variant:`solid`,class:{content:`bg-info text-inverted`}},{color:`warning`,variant:`solid`,class:{content:`bg-warning text-inverted`}},{color:`error`,variant:`solid`,class:{content:`bg-error text-inverted`}},{color:`primary`,variant:`outline`,class:{content:`text-primary ring ring-primary/25`}},{color:`secondary`,variant:`outline`,class:{content:`text-secondary ring ring-secondary/25`}},{color:`success`,variant:`outline`,class:{content:`text-success ring ring-success/25`}},{color:`info`,variant:`outline`,class:{content:`text-info ring ring-info/25`}},{color:`warning`,variant:`outline`,class:{content:`text-warning ring ring-warning/25`}},{color:`error`,variant:`outline`,class:{content:`text-error ring ring-error/25`}},{color:`primary`,variant:`soft`,class:{content:`bg-primary/10 text-primary`}},{color:`secondary`,variant:`soft`,class:{content:`bg-secondary/10 text-secondary`}},{color:`success`,variant:`soft`,class:{content:`bg-success/10 text-success`}},{color:`info`,variant:`soft`,class:{content:`bg-info/10 text-info`}},{color:`warning`,variant:`soft`,class:{content:`bg-warning/10 text-warning`}},{color:`error`,variant:`soft`,class:{content:`bg-error/10 text-error`}},{color:`primary`,variant:`subtle`,class:{content:`bg-primary/10 text-primary ring ring-primary/25`}},{color:`secondary`,variant:`subtle`,class:{content:`bg-secondary/10 text-secondary ring ring-secondary/25`}},{color:`success`,variant:`subtle`,class:{content:`bg-success/10 text-success ring ring-success/25`}},{color:`info`,variant:`subtle`,class:{content:`bg-info/10 text-info ring ring-info/25`}},{color:`warning`,variant:`subtle`,class:{content:`bg-warning/10 text-warning ring ring-warning/25`}},{color:`error`,variant:`subtle`,class:{content:`bg-error/10 text-error ring ring-error/25`}},{color:`primary`,variant:`naked`,class:{content:`text-primary`}},{color:`secondary`,variant:`naked`,class:{content:`text-secondary`}},{color:`success`,variant:`naked`,class:{content:`text-success`}},{color:`info`,variant:`naked`,class:{content:`text-info`}},{color:`warning`,variant:`naked`,class:{content:`text-warning`}},{color:`error`,variant:`naked`,class:{content:`text-error`}},{color:`neutral`,variant:`solid`,class:{content:`bg-inverted text-inverted`}},{color:`neutral`,variant:`outline`,class:{content:`bg-default ring ring-default`}},{color:`neutral`,variant:`soft`,class:{content:`bg-elevated/50`}},{color:`neutral`,variant:`subtle`,class:{content:`bg-elevated/50 ring ring-default`}}],defaultVariants:{side:`left`,variant:`naked`,color:`neutral`}},jT={__name:`UChatMessage`,props:{as:{type:null,required:!1,default:`article`},icon:{type:null,required:!1},avatar:{type:Object,required:!1},variant:{type:null,required:!1},color:{type:null,required:!1},side:{type:null,required:!1},actions:{type:Array,required:!1},compact:{type:Boolean,required:!1},content:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},id:{type:String,required:!0},role:{type:String,required:!0},metadata:{type:null,required:!1},parts:{type:Array,required:!0}},setup(e){let t=e,n=Vt(),r=Ln(`chatMessage`,t),i=Dn(),a=H(()=>r.parts?.filter(e=>e.type===`file`)??[]),o=H(()=>r.parts?.filter(e=>e.type===`text`)??[]),s=H(()=>Mn(r,[`as`,`icon`,`avatar`,`variant`,`color`,`side`,`actions`,`compact`,`class`,`ui`,`content`])),c=H(()=>zn({extend:AT,...i.ui?.chatMessage||{}})({variant:r.variant,color:r.color,side:r.side,leading:!!r.icon||!!r.avatar||!!n.leading,actions:!!r.actions||!!n.actions,compact:r.compact}));return(e,t)=>(j(),F(E(yr),{as:E(r).as,"data-role":E(r).role,"data-slot":`root`,class:V(c.value.root({class:[E(r).ui?.root,E(r).class]}))},{default:L(()=>[n.files&&a.value.length||n.header?(j(),R(`div`,{key:0,"data-slot":`header`,class:V(c.value.header({class:E(r).ui?.header}))},[B(e.$slots,`header`,D(A({...s.value})),()=>[n.files&&a.value.length?(j(),R(`div`,{key:0,"data-slot":`files`,class:V(c.value.files({class:E(r).ui?.files}))},[B(e.$slots,`files`,D(A({...s.value,parts:a.value})))],2)):z(``,!0)])],2)):z(``,!0),P(`div`,{"data-slot":`container`,class:V(c.value.container({class:E(r).ui?.container}))},[E(r).icon||E(r).avatar||n.leading?(j(),R(`div`,{key:0,"data-slot":`leading`,class:V(c.value.leading({class:E(r).ui?.leading}))},[B(e.$slots,`leading`,D(A({...s.value,avatar:E(r).avatar,ui:c.value})),()=>[E(r).icon?(j(),F(kn,{key:0,name:E(r).icon,"data-slot":`leadingIcon`,class:V(c.value.leadingIcon({class:E(r).ui?.leadingIcon}))},null,8,[`name`,`class`])):E(r).avatar?(j(),F(Vr,O({key:1,size:E(r).ui?.leadingAvatarSize||c.value.leadingAvatarSize()},E(r).avatar,{"data-slot":`leadingAvatar`,class:c.value.leadingAvatar({class:E(r).ui?.leadingAvatar})}),null,16,[`size`,`class`])):z(``,!0)])],2)):z(``,!0),E(r).content||o.value.length||n.content||E(r).actions||n.actions||n.body?(j(),R(`div`,{key:1,"data-slot":`body`,class:V(c.value.body({class:E(r).ui?.body}))},[B(e.$slots,`body`,D(A({...s.value})),()=>[E(r).content||o.value.length||n.content?(j(),R(`div`,{key:0,"data-slot":`content`,class:V(c.value.content({class:E(r).ui?.content}))},[B(e.$slots,`content`,D(A({...s.value,content:E(r).content})),()=>[E(r).content?(j(),R(I,{key:0},[Xt(M(E(r).content),1)],64)):(j(!0),R(I,{key:1},vt(o.value,(e,t)=>(j(),R(I,{key:`${E(r).id}-${e.type}-${t}`},[Xt(M(e.text),1)],64))),128))])],2)):z(``,!0),E(r).actions||n.actions?(j(),R(`div`,{key:1,"data-slot":`actions`,class:V(c.value.actions({class:E(r).ui?.actions}))},[B(e.$slots,`actions`,D(A({...s.value,actions:E(r).actions})),()=>[(j(!0),R(I,null,vt(E(r).actions,(e,t)=>(j(),F(kT,{key:t,text:e.label},{default:L(()=>[N(Yr,O({size:`sm`,color:`neutral`,variant:`ghost`,"aria-label":e.label},{ref_for:!0},E(Mn)(e,[`onClick`]),{label:void 0,onClick:t=>typeof e.onClick==`function`?e.onClick(t,s.value):void 0}),null,16,[`aria-label`,`onClick`])]),_:2},1032,[`text`]))),128))])],2)):z(``,!0)])],2)):z(``,!0)],2)]),_:3},8,[`as`,`data-role`,`class`]))}},MT={slots:{root:`w-full flex flex-col gap-1 flex-1 px-2.5 [&>article]:last-of-type:min-h-(--last-message-height)`,indicator:`h-6 flex items-center gap-1 py-3 *:size-2 *:rounded-full *:bg-elevated motion-safe:[&>*:nth-child(1)]:animate-[bounce_1s_infinite] motion-safe:[&>*:nth-child(2)]:animate-[bounce_1s_0.15s_infinite] motion-safe:[&>*:nth-child(3)]:animate-[bounce_1s_0.3s_infinite]`,viewport:`absolute inset-x-0 top-[86%] data-[state=open]:animate-[fade-in_200ms_var(--ease-out)] data-[state=closed]:animate-[fade-out_200ms_var(--ease-out)]`,autoScroll:`rounded-full absolute right-1/2 translate-x-1/2 bottom-0`},variants:{compact:{true:``,false:``}}},NT=[`data-status`],PT=[`data-state`],FT={__name:`UChatMessages`,props:{messages:{type:null,required:!1},status:{type:String,required:!1},shouldAutoScroll:{type:Boolean,required:!1,default:!1},shouldScrollToBottom:{type:Boolean,required:!1,default:!0},autoScroll:{type:[Boolean,Object],required:!1,default:!0},autoScrollIcon:{type:null,required:!1},user:{type:Object,required:!1},assistant:{type:Object,required:!1},compact:{type:Boolean,required:!1},spacingOffset:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e,{expose:t}){let n=e,r=Vt(),i=Ln(`chatMessages`,n),a=()=>Mn(r,[`default`,`indicator`,`viewport`]);function o(){if(i.status===`submitted`)return!0;if(i.status!==`streaming`)return!1;let e=i.messages?.[i.messages.length-1];return e?.role===`assistant`&&!e.parts?.length}let{t:s}=Bu(),c=Dn(),l=pt(()=>An(i.user,{side:`right`,variant:`soft`})),u=pt(()=>An(i.assistant,{side:`left`,variant:`naked`})),d=H(()=>zn({extend:MT,...c.ui?.chatMessages||{}})({compact:i.compact})),f=W(null),p=W(null),m=W(new Map),h=W(!1),g=W(0),_=W(!1),v=W(0),y=W(!1);function b(e,t){let n=t?.$el;n&&m.value.set(e,n)}function x(e){let t=m.value.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}function S(e=!0){p.value&&(e?p.value.scrollTo({top:p.value.scrollHeight,behavior:`smooth`}):p.value.scrollTop=p.value.scrollHeight)}xr([()=>i.messages,()=>i.status],([e,t])=>{i.messages?.length?t===`streaming`&&C():(h.value=!1,y.value=!1,v.value=0,m.value.clear())},{deep:!0,throttle:50,leading:!0}),Mt(()=>i.status,e=>{if(e!==`submitted`)return;let t=i.messages?.[i.messages.length-1];t&&t.role===`user`&&(y.value=!1,yt(()=>{_.value=!0,te(),yt(()=>{x(t.id)})}))});function C(){if(!p.value)return;let e=p.value.scrollTop+p.value.clientHeight,t=p.value.scrollHeight;h.value=t-e>=100,p.value.scrollTop<v.value?y.value=!0:t-e<100&&(y.value=!1),v.value=p.value.scrollTop}function w(){y.value=!1,S()}function ee(e){if(!e)return document.documentElement;let t=/auto|scroll/,n=e;for(;n&&n!==document.body&&n!==document.documentElement;){let e=window.getComputedStyle(n);if(t.test(e.overflowY))return n;n=n.parentElement}return document.documentElement}function te(){if(!f.value||!p.value||!i.messages?.length||!_.value)return;let{height:e}=dr(p.value),t=i.messages.findLast(e=>e.role===`user`);if(!t)return;let n=m.value.get(t.id);if(!n)return;let r=i.spacingOffset||0,a=window.getComputedStyle(f.value),o=window.getComputedStyle(p.value);r+=Number.parseFloat(a.rowGap)||Number.parseFloat(a.gap)||0,r+=Number.parseFloat(o.paddingTop)||0,r+=Number.parseFloat(o.paddingBottom)||0,g.value=Math.max(e.value-n.offsetHeight-r,0)}return lt(()=>{p.value=ee(f.value),p.value&&(v.value=p.value.scrollTop,i.shouldScrollToBottom?(S(!1),setTimeout(()=>{S(!1)},100)):yt(()=>{C()}),mr(p,`scroll`,C),mr(window,`resize`,()=>yt(te)),f.value&&ur(f,()=>{i.shouldAutoScroll&&i.status===`streaming`&&!y.value&&S(!1)},{childList:!0,subtree:!0}))}),t({registerMessageRef:b}),(e,t)=>(j(),R(`div`,{ref_key:`el`,ref:f,"data-status":E(i).status,"data-slot":`root`,class:V(d.value.root({class:[E(i).ui?.root,E(i).class]})),style:Ot({"--last-message-height":`${g.value}px`})},[B(e.$slots,`default`,{registerMessageRef:b},()=>[(j(!0),R(I,null,vt(E(i).messages,t=>(j(),R(I,{key:t.id},[t.parts?.length?(j(),F(jT,O({key:0,ref_for:!0},{...t.role===`user`?l.value:u.value,...t},{ref_for:!0,ref:e=>b(t.id,e),compact:E(i).compact}),kt({_:2},[vt(a(),(n,r)=>({name:r,fn:L(n=>[B(e.$slots,r,O({ref_for:!0},{...n,message:t}))])}))]),1040,[`compact`])):z(``,!0)],64))),128))]),o()?(j(),F(jT,O({key:0,id:`indicator`,role:`assistant`},{...u.value,actions:void 0,parts:[]},{compact:E(i).compact}),{content:L(()=>[B(e.$slots,`indicator`,{ui:d.value},()=>[P(`div`,{"data-slot":`indicator`,class:V(d.value.indicator({class:E(i).ui?.indicator}))},[...t[0]||=[P(`span`,null,null,-1),P(`span`,null,null,-1),P(`span`,null,null,-1)]],2)])]),_:3},16,[`compact`])):z(``,!0),N(E(Pr),{present:h.value},{default:L(()=>[P(`div`,{"data-state":h.value?`open`:`closed`,"data-slot":`viewport`,class:V(d.value.viewport({class:E(i).ui?.viewport}))},[B(e.$slots,`viewport`,{ui:d.value,onClick:w},()=>[E(i).autoScroll?(j(),F(Yr,O({key:0,icon:E(i).autoScrollIcon||E(c).ui.icons.arrowDown,color:`neutral`,variant:`outline`,"aria-label":E(s)(`chatMessages.autoScroll`)},typeof E(i).autoScroll==`object`?E(i).autoScroll:{},{"data-slot":`autoScroll`,class:d.value.autoScroll({class:E(i).ui?.autoScroll}),onClick:w}),null,16,[`icon`,`aria-label`,`class`])):z(``,!0)])],10,PT)]),_:3},8,[`present`])],14,NT))}};function IT(e,t={}){let n=e.detail.originalEvent,r=n.target;r?.isConnected?t.scrollable&&(n.offsetX>r.clientWidth||n.offsetY>r.clientHeight)&&e.preventDefault():e.preventDefault()}var LT={slots:{content:`bg-default shadow-lg rounded-md ring ring-default data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-popover-content-transform-origin) focus:outline-none pointer-events-auto`,arrow:`fill-bg stroke-default`}},RT={__name:`UPopover`,props:{mode:{type:null,required:!1,default:`click`},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},modal:{type:Boolean,required:!1},openDelay:{type:Number,required:!1,default:0},closeDelay:{type:Number,required:!1,default:0},enableTouch:{type:Boolean,required:!1}},emits:[`close:prevent`,`update:open`],setup(e,{emit:t}){let n={Root:ml,Trigger:Sl,Portal:xl,Content:bl,Arrow:gl,Anchor:hl},r={Root:Ul,Trigger:Yl,Portal:Jl,Content:ql,Arrow:Bl},i=e,a=t,o=Vt(),s=Ln(`popover`,i),c=Dn(),l=s.mode===`hover`?Er(s,`defaultOpen`,`open`,`openDelay`,`closeDelay`,`enableTouch`):Er(s,`defaultOpen`,`open`,`modal`),u=Ar(l,a),d=tr(pt(()=>s.portal)),f=pt(()=>An(s.content,{side:`bottom`,sideOffset:8,collisionPadding:8})),p=H(()=>s.dismissible?{pointerDownOutside:IT}:[`interactOutside`,`escapeKeyDown`].reduce((e,t)=>(e[t]=e=>{e.preventDefault(),a(`close:prevent`)},e),{})),m=pt(()=>An(s.arrow,{rounded:!0})),h=H(()=>zn({extend:LT,...c.ui?.popover||{}})({side:f.value.side})),g=H(()=>s.mode===`hover`?r:n);return(e,t)=>(j(),F(E(g).Root,D(A(E(u))),{default:L(({open:t,close:n})=>[o.default?(j(),F(E(g).Trigger,{key:0,"as-child":``,class:V(E(s).class)},{default:L(()=>[B(e.$slots,`default`,{open:t})]),_:2},1032,[`class`])):z(``,!0),`Anchor`in g.value&&o.anchor?(j(),F(E(g).Anchor,{key:1,"as-child":``},{default:L(()=>[B(e.$slots,`anchor`,D(A(n?{close:n}:{})))]),_:2},1024)):z(``,!0),N(E(g).Portal,D(A(E(d))),{default:L(()=>[N(E(Br),null,{default:L(()=>[N(E(g).Content,O(f.value,{reference:E(s).reference??E(s).content?.reference,"data-slot":`content`,class:h.value.content({class:[!o.default&&E(s).class,E(s).ui?.content]})},St(p.value)),{default:L(()=>[B(e.$slots,`content`,D(A(n?{close:n}:{}))),E(s).arrow?(j(),F(E(g).Arrow,O({key:0},m.value,{"data-slot":`arrow`,class:h.value.arrow({class:E(s).ui?.arrow})}),null,16,[`class`])):z(``,!0)]),_:2},1040,[`reference`,`class`])]),_:2},1024)]),_:2},1040)]),_:3},16))}},zT={slots:{base:``}},BT=Object.assign({inheritAttrs:!1},{__name:`UChatPromptSubmit`,props:{status:{type:String,required:!1,default:`ready`},icon:{type:[String,Boolean],required:!1,skipCheck:!0},color:{type:null,required:!1},variant:{type:null,required:!1},streamingIcon:{type:null,required:!1},streamingColor:{type:null,required:!1,default:`neutral`},streamingVariant:{type:null,required:!1,default:`subtle`},submittedIcon:{type:null,required:!1},submittedColor:{type:null,required:!1,default:`neutral`},submittedVariant:{type:null,required:!1,default:`subtle`},errorIcon:{type:null,required:!1},errorColor:{type:null,required:!1,default:`error`},errorVariant:{type:null,required:!1,default:`soft`},ui:{type:Object,required:!1},class:{type:null,required:!1},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},emits:[`stop`,`reload`],setup(e,{emit:t}){let n=e,r=t,i=Vt(),a=Ln(`chatPromptSubmit`,n),{t:o}=Bu(),s=Dn(),c=Ar(Dr(a,`icon`,`color`,`variant`,`status`,`disabled`,`streamingIcon`,`streamingColor`,`streamingVariant`,`submittedIcon`,`submittedColor`,`submittedVariant`,`errorIcon`,`errorColor`,`errorVariant`,`class`,`ui`)),l=H(()=>a.status===`ready`&&a.disabled),u=H(()=>({ready:{icon:a.icon===!1?void 0:a.icon??s.ui.icons.arrowUp,color:a.color,variant:a.variant,type:`submit`},submitted:{icon:a.submittedIcon||s.ui.icons.stop,color:a.submittedColor,variant:a.submittedVariant,onClick(e){r(`stop`,e)}},streaming:{icon:a.streamingIcon||s.ui.icons.stop,color:a.streamingColor,variant:a.streamingVariant,onClick(e){r(`stop`,e)}},error:{icon:a.errorIcon||s.ui.icons.reload,color:a.errorColor,variant:a.errorVariant,onClick(e){r(`reload`,e)}}})[a.status]),d=H(()=>({ready:o(`chatPromptSubmit.label`),submitted:o(`chatPromptSubmit.stop`),streaming:o(`chatPromptSubmit.stop`),error:o(`chatPromptSubmit.reload`)})[a.status]),f=H(()=>zn({extend:zT,...s.ui?.chatPromptSubmit||{}})());return(e,t)=>(j(),F(Yr,O({...E(c),...u.value,disabled:l.value,"aria-label":d.value,...e.$attrs},{class:f.value.base({class:[E(a).ui?.base,E(a).class]}),ui:E(In)(f.value,E(a).ui)}),kt({_:2},[vt(i,(t,n)=>({name:n,fn:L(t=>[B(e.$slots,n,D(A(t)))])}))]),1040,[`class`,`ui`]))}});function VT(e){let t=!1;function n(e){return e.isComposing||e.keyCode===229}function r(r){t||n(r)||(r.preventDefault(),e(r))}let i;function a(){clearTimeout(i),t=!0,i=setTimeout(()=>{t=!1},50)}return{onKeydown:r,onCompositionEnd:a}}var HT={slots:{root:`relative flex flex-col items-stretch gap-2 px-2.5 py-2 w-full rounded-lg backdrop-blur-sm`,header:`flex items-center gap-1.5`,body:`items-start gap-1.5`,footer:`flex items-center justify-between gap-1.5`,base:`px-0`},variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{outline:{root:`bg-default/75 ring ring-default`},soft:{root:`bg-elevated/50`},subtle:{root:`bg-elevated/50 ring ring-default`},naked:{root:``}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:{root:`outline-primary/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-primary has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-primary`}},{color:`secondary`,variant:[`outline`,`subtle`],class:{root:`outline-secondary/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-secondary has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-secondary`}},{color:`success`,variant:[`outline`,`subtle`],class:{root:`outline-success/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-success has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-success`}},{color:`info`,variant:[`outline`,`subtle`],class:{root:`outline-info/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-info has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-info`}},{color:`warning`,variant:[`outline`,`subtle`],class:{root:`outline-warning/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-warning has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-warning`}},{color:`error`,variant:[`outline`,`subtle`],class:{root:`outline-error/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-error has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-error`}},{color:`primary`,variant:`soft`,class:{root:`outline-primary/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`secondary`,variant:`soft`,class:{root:`outline-secondary/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`success`,variant:`soft`,class:{root:`outline-success/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`info`,variant:`soft`,class:{root:`outline-info/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`warning`,variant:`soft`,class:{root:`outline-warning/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`error`,variant:`soft`,class:{root:`outline-error/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`neutral`,variant:[`outline`,`subtle`],class:{root:`outline-inverted/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-inverted has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-inverted`}},{color:`neutral`,variant:`soft`,class:{root:`outline-inverted/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}}],defaultVariants:{color:`primary`,variant:`outline`}},UT=Object.assign({inheritAttrs:!1},{__name:`UChatPrompt`,props:Lt({as:{type:null,required:!1,default:`form`},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},submitOnEnter:{type:Boolean,required:!1,default:!0},error:{type:Error,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},rows:{type:Number,required:!1,default:1},autofocus:{type:Boolean,required:!1,default:!0},autofocusDelay:{type:Number,required:!1},autoresize:{type:Boolean,required:!1,default:!0},autoresizeDelay:{type:Number,required:!1},maxrows:{type:Number,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},disabled:{type:Boolean,required:!1}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:Lt([`submit`,`close`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=Vt(),o=Ln(`chatPrompt`,r),s=Kt(e,`modelValue`,{type:String,default:``}),{t:c}=Bu(),l=Dn(),u=Ar(Er(o,`rows`,`autofocus`,`autofocusDelay`,`autoresize`,`autoresizeDelay`,`maxrows`,`icon`,`avatar`,`loading`,`loadingIcon`)),d=()=>Mn(a,[`header`,`footer`,`body`]),f=H(()=>zn({extend:HT,...l.ui?.chatPrompt||{}})({color:o.color,variant:o.variant})),p=Wt(`textareaRef`);function m(e){s.value.trim()!==``&&i(`submit`,e??new Event(`submit`))}function h(e){p.value?.textareaRef?.blur(),i(`close`,e??new Event(`close`))}let{onKeydown:g,onCompositionEnd:_}=VT(e=>{m(e)});function v(e){if(o.submitOnEnter){if(e.shiftKey||e.ctrlKey||e.metaKey||e.altKey)return}else if(!e.ctrlKey&&!e.metaKey)return;g(e)}function y(e){e.key===`Enter`?v(e):e.key===`Escape`&&h(e)}return t({textareaRef:pt(()=>p.value?.textareaRef)}),(e,t)=>(j(),F(E(yr),{as:E(o).as,method:E(o).as===`form`?`post`:void 0,"data-slot":e.$attrs[`data-slot`]??`root`,class:V(f.value.root({class:[E(o).ui?.root,E(o).class]})),onSubmit:tt(m,[`prevent`])},{default:L(()=>[a.header?(j(),R(`div`,{key:0,"data-slot":`header`,class:V(f.value.header({class:E(o).ui?.header}))},[B(e.$slots,`header`)],2)):z(``,!0),B(e.$slots,`body`,{submit:m,close:h,placeholder:E(o).placeholder??E(c)(`chatPrompt.placeholder`),disabled:!!E(o).error||E(o).disabled,ui:f.value},()=>[N(pp,O({ref_key:`textareaRef`,ref:p,modelValue:s.value,"onUpdate:modelValue":t[0]||=e=>s.value=e,placeholder:E(o).placeholder??E(c)(`chatPrompt.placeholder`),disabled:!!E(o).error||E(o).disabled,variant:`none`,fixed:``},{...E(u),...e.$attrs},{ui:E(In)(E(Mn)(f.value,[`root`,`body`,`header`,`footer`]),E(o).ui),"data-slot":`body`,class:f.value.body({class:E(o).ui?.body}),onKeydown:y,onCompositionend:E(_)}),kt({_:2},[vt(d(),(t,n)=>({name:n,fn:L(t=>[B(e.$slots,n,D(A(t)))])}))]),1040,[`modelValue`,`placeholder`,`disabled`,`ui`,`class`,`onCompositionend`])]),a.footer?(j(),R(`div`,{key:1,"data-slot":`footer`,class:V(f.value.footer({class:E(o).ui?.footer}))},[B(e.$slots,`footer`)],2)):z(``,!0)]),_:3},8,[`as`,`method`,`data-slot`,`class`]))}}),WT=e=>`${e}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,GT=1400,KT=`scrum-skills:ai:threads:v1`;function qT(e){return e.map(e=>({...e,parts:e.parts.map(e=>e.type===`image`?{...e,url:``}:e)}))}function JT(e){let t=(e.find(e=>e.role===`user`)?.parts.filter(e=>e.type===`text`).map(e=>e.text).join(``)??``).replace(/\s+/g,` `).trim();return t?t.length>24?`${t.slice(0,24)}…`:t:`新会话`}async function YT(e){let t=e.name||`粘贴的图片`,n=async()=>({id:WT(`img`),url:await XT(e),name:t});try{let r=await createImageBitmap(e),i=Math.min(1,GT/Math.max(r.width,r.height)),a=document.createElement(`canvas`);a.width=Math.max(1,Math.round(r.width*i)),a.height=Math.max(1,Math.round(r.height*i));let o=a.getContext(`2d`);return o?(o.fillStyle=`#fff`,o.fillRect(0,0,a.width,a.height),o.drawImage(r,0,0,a.width,a.height),r.close(),{id:WT(`img`),url:a.toDataURL(`image/jpeg`,.86),name:t}):n()}catch{return n()}}function XT(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result??``)),r.onerror=()=>n(r.error??Error(`读不到这张图片`)),r.readAsDataURL(e)})}var ZT={provider:`deepseek`,baseUrl:`https://api.deepseek.com`,model:`deepseek-chat`,systemPrompt:``,temperature:.3,maxToolRounds:30,contextLimit:256e3,autoCompact:!0,reviewMode:`manual`};function QT(){let e=Tn(`ai-open`,()=>!1),t=Tn(`ai-settings-open`,()=>!1),n=Tn(`ai-config`,()=>({...ZT})),r=Tn(`ai-messages`,()=>[]),i=Tn(`ai-status`,()=>`ready`),a=Tn(`ai-error`,()=>``),o=Tn(`ai-loaded`,()=>!1),s=Tn(`ai-last-write`,()=>0),c=Tn(`ai-awaiting`,()=>``),l=Tn(`ai-threads`,()=>[]),u=Tn(`ai-thread-id`,()=>``),d=null,f=H(()=>o.value&&!n.value.hasKey&&n.value.provider!==`ollama`);async function p(){return(await Oi(`/api/projects`)).token}async function m(e,t){return Oi(e,{method:`POST`,headers:{"x-project-token":await p()},body:t})}async function h(){let e=await Oi(`/api/ai/config`);return n.value={...ZT,...e},o.value=!0,!e.hasKey&&e.provider!==`ollama`&&!e.baseUrl?.includes(`localhost`)&&(t.value=!0),n.value}async function g(e){let r=await m(`/api/ai/config`,e);return n.value={...n.value,...r},o.value=!0,t.value=!1,n.value}function _(){let e={currentId:null,threads:[]};if(typeof localStorage>`u`)return e;try{let t=localStorage.getItem(KT);if(!t)return e;let n=JSON.parse(t),r=Array.isArray(n.threads)?n.threads.filter(e=>e&&typeof e.id==`string`&&Array.isArray(e.messages)):[];return{currentId:typeof n.currentId==`string`?n.currentId:null,threads:r.slice(0,20)}}catch{return e}}function v(e){if(typeof localStorage>`u`)return;let t=t=>localStorage.setItem(KT,JSON.stringify({currentId:e.currentId,threads:t.slice(0,20)}));try{t(e.threads)}catch{try{t(e.threads.slice(0,Math.max(1,Math.ceil(e.threads.length/2))))}catch{}}}function y(e){l.value=e.threads.map(e=>({id:e.id,title:e.title||JT(e.messages),updatedAt:e.updatedAt??0,count:e.messages.length}))}function b(){a.value=``,i.value=`ready`,c.value=``}function x(e=u.value||WT(`t`)){if(u.value&&e!==u.value||!r.value.length)return;u.value=e;let t=_(),n=t.threads.find(t=>t.id===e);t.threads=[{id:e,title:JT(r.value),createdAt:n?.createdAt??Date.now(),updatedAt:Date.now(),messages:qT(r.value)},...t.threads.filter(t=>t.id!==e)],t.currentId=e,v(t),y(t)}function S(){let e=_();y(e);let t=e.threads.find(t=>t.id===e.currentId);t&&(r.value=JSON.parse(JSON.stringify(t.messages)),u.value=t.id)}function C(){ue(),x(),u.value=``,r.value=[],b()}function w(e){ue(),x();let t=_(),n=t.threads.find(t=>t.id===e);n&&(r.value=JSON.parse(JSON.stringify(n.messages)),u.value=e,t.currentId=e,v(t),y(t),b())}function ee(e){let t=_(),n=t.currentId===e;t.threads=t.threads.filter(t=>t.id!==e),n&&(t.currentId=null),v(t),y(t),(n||u.value===e)&&(ue(),u.value=``,r.value=[],b())}let te=()=>r.value[r.value.length-1];function ne(e){let t=te();t?.role===`assistant`&&e(t)}function re(){ne(e=>{let t=Date.now();e.parts=e.parts.map(e=>e.type===`reasoning`&&e.startedAt&&!e.durationSec?{...e,durationSec:Math.max(1,Math.round((t-e.startedAt)/1e3))}:e)})}function ie(e,t){e===`text`&&re(),ne(n=>{let r=n.parts.slice(),i=r[r.length-1];i&&i.type===e?r[r.length-1]=e===`reasoning`?{...i,text:i.text+t,startedAt:i.startedAt??Date.now()}:{...i,text:i.text+t}:r.push(e===`reasoning`?{type:e,text:t,startedAt:Date.now()}:{type:e,text:t}),n.parts=r})}function ae(e){re(),ne(t=>{t.parts=[...t.parts,e]})}function oe(e,t,n){ne(r=>{r.parts=r.parts.map(r=>r.type===`tool`&&r.toolCallId===e?{...r,state:t?`done`:`error`,output:n}:r)})}function se(e,t,n){ne(r=>{r.parts=r.parts.map(r=>r.type===`review`&&r.pendingId===e?{...r,state:t,message:n??r.message}:r)})}function ce(){let e=new Set;for(let t=r.value.length-1;t>=0&&e.size<4;--t)for(let n of r.value[t].parts)n.type===`image`&&e.size<4&&e.add(n.id);let t=[];for(let n of r.value){let r=n.parts.filter(e=>e.type===`text`).map(e=>e.text).join(``),i=n.parts.filter(e=>e.type===`image`),a=i.filter(t=>e.has(t.id)&&t.url),o=i.length-a.length,s=o>0?`(之前附的 ${o} 张图片已省略)`:``;(r.trim()||a.length)&&(a.length?t.push({role:n.role,content:[...r.trim()?[{type:`text`,text:r}]:[],...s?[{type:`text`,text:s}]:[],...a.map(e=>({type:`image_url`,image_url:{url:e.url}}))]}):t.push({role:n.role,content:r.trim()?`${r}\n${s}`:s}))}return t}async function le(e,t=[]){let n=e.trim();if(!n&&!t.length||i.value===`submitted`||i.value===`streaming`)return;a.value=``;let o=u.value||WT(`t`);u.value=o;let l=n?[{type:`text`,text:n}]:[];for(let e of t)l.push({type:`image`,id:e.id,url:e.url,name:e.name});r.value=[...r.value,{id:WT(`u`),role:`user`,parts:l}],r.value=[...r.value,{id:WT(`a`),role:`assistant`,parts:[]}],i.value=`submitted`,d=new AbortController;try{let e=await fetch(`/api/ai/chat`,{method:`POST`,headers:{"content-type":`application/json`,"x-project-token":await p()},body:JSON.stringify({messages:ce()}),signal:d.signal});if(!e.ok||!e.body){let t=await e.text().catch(()=>``);throw Error(t||`对话接口返回 ${e.status}`)}i.value=`streaming`;let t=e.body.getReader(),n=new TextDecoder,r=``;for(;;){let{value:e,done:o}=await t.read();if(o)break;r+=n.decode(e,{stream:!0});let l=r.split(`
95
- `);r=l.pop()??``;for(let e of l){let t=e.trim();if(!t.startsWith(`data:`))continue;let n=t.slice(5).trim();if(!n)continue;let r;try{r=JSON.parse(n)}catch{continue}if(r.type===`text`)ie(`text`,r.delta);else if(r.type===`reasoning`)ie(`reasoning`,r.delta);else if(r.type===`tool-call`)ae({type:`tool`,toolCallId:r.id,toolName:r.name,state:`running`,args:r.args});else if(r.type===`tool-result`)oe(r.id,!!r.ok,r.output),r.wrote&&(s.value=Date.now());else if(r.type===`pending`){let e=r.record;c.value=e.id,ae({type:`review`,pendingId:e.id,file:e.file,reason:e.reason,changes:e.changes??[],state:`pending`})}else r.type===`awaiting-approval`?c.value=r.id||c.value:r.type===`error`&&(a.value=r.message,ie(`text`,`(出错了:${r.message})`),i.value=`error`)}}i.value!==`error`&&(i.value=`ready`)}catch(e){e?.name===`AbortError`?i.value=`ready`:(a.value=e?.message||`对话失败`,i.value=`error`,ie(`text`,`(出错了:${a.value})`))}finally{d=null,x(o)}}function ue(){d?.abort(),i.value=`ready`}function de(){r.value=[],a.value=``,i.value=`ready`,c.value=``}async function fe(e,t){c.value=``;try{t?(await m(`/api/ai/pending/apply`,{id:e}),s.value=Date.now(),se(e,`applied`,`已写入并通过校验`),await le(`【审核】已批准变更 ${e},请确认写入结果并继续。`)):(await m(`/api/ai/pending/reject`,{id:e}),se(e,`rejected`,`已驳回,文件未改动`),await le(`【审核】已驳回变更 ${e},请不要写入,换个方案或先问我。`))}catch(t){let n=t?.data?.error||t?.message||`审核操作失败`;se(e,`error`,n),a.value=n}}async function pe(e){n.value={...n.value,reviewMode:e},await g({reviewMode:e})}return{open:e,settingsOpen:t,config:n,messages:r,status:i,error:a,loaded:o,needsKey:f,lastWriteAt:s,awaiting:c,threads:l,currentThreadId:u,loadConfig:h,saveConfig:g,send:le,stop:ue,resetThread:de,resolvePending:fe,setReviewMode:pe,newThread:C,openThread:w,loadThreads:S,deleteThread:ee}}var $T={class:`ai-dock`},eE=[`aria-expanded`],tE={key:0,class:`ai-fab-dot`,"aria-hidden":`true`},nE={key:0,class:`ai-drawer`,role:`dialog`,"aria-modal":`true`,"aria-label":`看板助手`},rE={class:`ai-head`},iE={class:`ai-head-logo ai-logo`,"aria-hidden":`true`},aE={class:`ai-head-txt`},oE={key:0},sE={class:`ai-head-acts`},cE=[`title`,`aria-label`],lE={key:0,class:`ai-scroll`},uE={class:`ai-banner`},dE={class:`ai-chips`},fE=[`data-on`,`onClick`],pE={class:`ai-field`},mE={class:`ai-field`},hE={class:`ai-field`},gE={class:`ai-field`},_E={class:`ai-field`},vE={class:`ai-grid`},yE={class:`ai-field`},bE={class:`ai-field`},xE={class:`ai-check`},SE={key:0,class:`ai-error`},CE={class:`ai-actions`},wE=[`disabled`],TE={key:1,class:`ai-chat`},EE={class:`ai-indicator`},DE={key:1,class:`ai-empty`},OE={class:`ai-empty-hero`},kE={class:`ai-empty-orb ai-logo`},AE={class:`ai-examples`},jE=[`onClick`],ME=[`data-tone`],NE={class:`ai-example-txt`},PE={key:0,class:`ai-empty-warn`},FE={key:0,class:`ai-await`},IE={key:1,class:`ai-attachments`},LE=[`src`,`alt`],RE=[`onClick`],zE={class:`ai-composer-left`},BE=[`disabled`],VE=[`data-count`,`title`],HE={class:`ai-history`},UE={class:`ai-history-hd`},WE={key:0,class:`ai-history-empty`},GE=[`onClick`],KE=[`aria-label`,`title`,`onClick`],qE=[`data-mode`,`aria-label`,`title`],JE={class:`ai-composer-right`},YE={class:`ai-hint`},XE={key:0,class:`size-4 shrink-0`,viewBox:`0 0 24 24`,"aria-hidden":`true`},ZE={key:2,class:`ai-error`},QE=4,$E=Object.assign(k({__name:`AiAssistant`,setup(e){let{refresh:t}=Of(),n=QT(),{open:r,settingsOpen:i,config:a,messages:o,status:s,error:c,needsKey:l,lastWriteAt:u,awaiting:d,threads:f,currentThreadId:p}=n,m=Zt({provider:`deepseek`,baseUrl:`https://api.deepseek.com`,apiKey:``,model:`deepseek-chat`,systemPrompt:``,temperature:.3,maxToolRounds:30,contextLimit:256e3,autoCompact:!0}),h=W(``),g=W(!1),_=W(``),v=W(!1),y=H(()=>a.value.presets??[]),b=H(()=>a.value.model||`未选模型`),x=[{text:`下一步开发内容是什么`,hint:`按依赖与里程碑,排出接下来该做的`,icon:`i-lucide-compass`,tone:`violet`},{text:`这个迭代还剩什么没做完?`,hint:`未完成的故事和任务,一次列清`,icon:`i-lucide-list-checks`,tone:`mint`},{text:`谁的故事被阻塞了?`,hint:`卡住的故事,以及卡在哪一环`,icon:`i-lucide-circle-slash`,tone:`peach`},{text:`把评审的故事全部完成`,hint:`一次把评审中的故事标完成,改完当场跑校验`,icon:`i-lucide-circle-check-big`,tone:`sky`}],S={base:`ai-input`},C={root:`ai-prompt`,base:[`px-1.5`]};function w(e){m.provider=e.provider,m.baseUrl=e.baseUrl,m.model=e.model,m.systemPrompt=e.systemPrompt,m.temperature=e.temperature,m.maxToolRounds=e.maxToolRounds,m.contextLimit=e.contextLimit,m.autoCompact=e.autoCompact,m.apiKey=``}async function ee(){try{w(await n.loadConfig())}catch(e){_.value=e?.data?.error||e?.message||`读不到 AI 配置,确认看板服务已重启。`}}function te(){r.value=!0,n.loaded.value||ee()}function ne(e){m.provider=e.id,e.baseUrl&&(m.baseUrl=e.baseUrl,m.model=e.model)}async function re(){g.value=!0,_.value=``;try{await n.saveConfig({provider:m.provider,baseUrl:m.baseUrl,model:m.model,systemPrompt:m.systemPrompt,temperature:Number(m.temperature),maxToolRounds:Number(m.maxToolRounds),contextLimit:Number(m.contextLimit),autoCompact:m.autoCompact,apiKey:m.apiKey.trim()?m.apiKey.trim():void 0}),m.apiKey=``}catch(e){_.value=e?.data?.error||e?.message||`保存失败`}finally{g.value=!1}}async function ie(){g.value=!0;try{await n.saveConfig({apiKey:null}),m.apiKey=``,i.value=!0}catch(e){_.value=e?.data?.error||e?.message||`清除失败`}finally{g.value=!1}}function ae(){let e=h.value,t=ce.value;(e.trim()||t.length)&&(h.value=``,ce.value=[],n.send(e,t))}function oe(e){h.value=``,n.send(e)}let se=H(()=>[[{label:`手动审核`,description:`改数据前先出待审卡,你点批准才写入`,icon:a.value.reviewMode===`manual`?`i-lucide-check`:`i-lucide-shield-check`,onSelect:()=>n.setReviewMode(`manual`)},{label:`自动审核`,description:`直接写入并跑校验,校验不过自动回滚`,icon:a.value.reviewMode===`auto`?`i-lucide-check`:`i-lucide-zap`,onSelect:()=>n.setReviewMode(`auto`)}]]),ce=W([]),le=W(!1);function ue(){if(ce.value.length>=QE){c.value=`一次最多带 ${QE} 张图片,先删掉几张再选`;return}let e=document.createElement(`input`);Object.assign(e,{type:`file`,accept:`image/*`,multiple:!0}),e.onchange=()=>{fe([...e.files??[]])},e.click()}function de(e){let t=[...e.clipboardData?.items??[]].filter(e=>e.kind===`file`&&e.type.startsWith(`image/`)).map(e=>e.getAsFile()).filter(e=>!!e);t.length&&(e.preventDefault(),fe(t))}async function fe(e){let t=e.filter(e=>e.type.startsWith(`image/`));if(!t.length)return;let n=QE-ce.value.length;if(n<=0)c.value=`一次最多带 ${QE} 张图片,先删掉几张再选`;else{le.value=!0,c.value=``;try{let e=await Promise.all(t.slice(0,n).map(e=>YT(e)));ce.value=[...ce.value,...e.filter(e=>e.url)]}catch(e){c.value=e?.message||`读不到这张图片`}finally{le.value=!1}}}function pe(e){ce.value=ce.value.filter(t=>t.id!==e)}let me=W(!1);function he(e){if(!e)return``;let t=Date.now()-e;if(t<6e4)return`刚刚`;if(t<36e5)return`${Math.floor(t/6e4)} 分钟前`;if(t<864e5)return`${Math.floor(t/36e5)} 小时前`;let n=new Date(e);return`${n.getMonth()+1} 月 ${n.getDate()} 日`}function ge(e){n.openThread(e),me.value=!1}function _e(){n.newThread(),me.value=!1}let T=W(``),ve=null;function ye(e){T.value===e?(ve&&clearTimeout(ve),T.value=``,n.deleteThread(e)):(T.value=e,ve&&clearTimeout(ve),ve=setTimeout(()=>{T.value=``},3200))}function be(){ve&&clearTimeout(ve),ve=null,T.value=``}function xe(e){e.key===`Escape`&&r.value&&(e.stopPropagation(),r.value=!1)}return Mt(u,()=>t()),Mt(r,e=>{document.documentElement.style.overflow=e?`hidden`:``}),Mt(me,e=>{e||be()}),lt(()=>{ee(),n.loadThreads(),window.addEventListener(`keydown`,xe)}),_t(()=>{window.removeEventListener(`keydown`,xe),be(),document.documentElement.style.overflow=``}),(e,t)=>{let u=kn,w=rr,ee=pp,fe=hp,ve=_p,be=DT,xe=FT,Se=RT,Ce=Xu,we=BT,Te=UT;return j(),R(`div`,$T,[P(`button`,{class:`ai-fab ai-logo`,type:`button`,"aria-label":`打开看板助手`,"aria-expanded":E(r),title:`看板助手:查改当前项目的敏捷数据`,onClick:te},[N(u,{name:`i-lucide-sparkles`}),E(l)?(j(),R(`span`,tE)):z(``,!0)],8,eE),(j(),F(Gt,{to:`body`},[E(r)?(j(),R(`div`,{key:0,class:`ai-scrim`,onClick:t[0]||=e=>r.value=!1})):z(``,!0),N(ot,{name:`ai-sheet`},{default:L(()=>[E(r)?(j(),R(`aside`,nE,[P(`header`,rE,[P(`span`,iE,[N(u,{name:`i-lucide-sparkles`})]),P(`div`,aE,[P(`b`,null,M(E(i)?`模型设置`:`看板助手`),1),E(i)?(j(),R(`small`,oE,`填一次就够,随时可改`)):z(``,!0)]),P(`div`,sE,[P(`button`,{class:`ai-icon-btn`,type:`button`,title:E(i)?`回到对话`:`模型设置`,"aria-label":E(i)?`回到对话`:`模型设置`,onClick:t[1]||=e=>i.value=!E(i)},[N(u,{name:E(i)?`i-lucide-message-square`:`i-lucide-settings-2`},null,8,[`name`])],8,cE),P(`button`,{class:`ai-icon-btn ai-icon-close`,type:`button`,title:`关闭`,"aria-label":`关闭`,onClick:t[2]||=e=>r.value=!1},[N(u,{name:`i-lucide-x`})])])]),E(i)?(j(),R(`div`,lE,[P(`p`,uE,[N(u,{name:`i-lucide-shield-check`}),t[15]||=P(`span`,null,[Xt(`配置只存在这台设备上(`),P(`code`,null,`%APPDATA%/scrum-skills/ai.json`),Xt(`,权限 0600),不写进项目目录,也不回传到浏览器。`)],-1)]),t[28]||=P(`p`,{class:`ai-label`},`常见服务(点一下填地址)`,-1),P(`div`,dE,[(j(!0),R(I,null,vt(E(y),e=>(j(),R(`button`,{key:e.id,class:`ai-chip`,type:`button`,"data-on":E(m).provider===e.id,onClick:t=>ne(e)},M(e.label),9,fE))),128))]),P(`div`,pE,[t[16]||=P(`label`,null,`接口地址`,-1),N(w,{ui:S,modelValue:E(m).baseUrl,"onUpdate:modelValue":t[3]||=e=>E(m).baseUrl=e,placeholder:`https://api.deepseek.com`},null,8,[`modelValue`]),t[17]||=P(`p`,{class:`ai-help`},`原样使用,不会自动补 /v1 —— 厂商要求带版本号的,请自己填全。`,-1)]),P(`div`,mE,[t[18]||=P(`label`,null,`API Key`,-1),N(w,{ui:S,modelValue:E(m).apiKey,"onUpdate:modelValue":t[4]||=e=>E(m).apiKey=e,type:E(v)?`text`:`password`,placeholder:E(a).hasKey?`已保存,留空表示不改动`:`sk-…`,"trailing-icon":E(v)?`i-lucide-eye-off`:`i-lucide-eye`,"onClick:trailing":t[5]||=e=>v.value=!E(v)},null,8,[`modelValue`,`type`,`placeholder`,`trailing-icon`]),t[19]||=P(`p`,{class:`ai-help`},`本地 Ollama 这类不填 Key 的服务可以留空。`,-1)]),P(`div`,hE,[t[20]||=P(`label`,null,`模型名`,-1),N(w,{ui:S,modelValue:E(m).model,"onUpdate:modelValue":t[6]||=e=>E(m).model=e,placeholder:`deepseek-chat`},null,8,[`modelValue`])]),P(`div`,gE,[t[21]||=P(`label`,null,`系统提示词(可选)`,-1),N(ee,{ui:S,modelValue:E(m).systemPrompt,"onUpdate:modelValue":t[7]||=e=>E(m).systemPrompt=e,rows:3,placeholder:`留空即可。只写你自己的偏好,例如「回答先给结论」。`},null,8,[`modelValue`]),t[22]||=P(`p`,{class:`ai-help`},`「能查哪些数据、怎么改」已经内置,不用重复交代。`,-1)]),P(`div`,_E,[t[23]||=P(`label`,null,`温度`,-1),N(w,{ui:S,modelValue:E(m).temperature,"onUpdate:modelValue":t[8]||=e=>E(m).temperature=e,type:`number`,step:`0.1`,min:`0`,max:`2`},null,8,[`modelValue`]),t[24]||=P(`p`,{class:`ai-help`},`越低越稳,越高越发散。日常问答建议 0.2~0.4。`,-1)]),P(`div`,vE,[P(`div`,yE,[t[25]||=P(`label`,null,`上下文上限(token)`,-1),N(w,{ui:S,modelValue:E(m).contextLimit,"onUpdate:modelValue":t[9]||=e=>E(m).contextLimit=e,type:`number`,min:`8000`,step:`1000`},null,8,[`modelValue`])]),P(`div`,bE,[t[26]||=P(`label`,null,`工具调用轮数上限`,-1),N(w,{ui:S,modelValue:E(m).maxToolRounds,"onUpdate:modelValue":t[10]||=e=>E(m).maxToolRounds=e,type:`number`,min:`1`,max:`50`},null,8,[`modelValue`])])]),P(`label`,xE,[t[27]||=P(`div`,{class:`ai-check-txt`},[P(`b`,null,`超长时自动压缩老对话`),P(`small`,null,`超过上下文上限就先压掉最早那几轮;内置说明和当前提问永远保留。`)],-1),N(fe,{modelValue:E(m).autoCompact,"onUpdate:modelValue":t[11]||=e=>E(m).autoCompact=e},null,8,[`modelValue`])]),E(_)?(j(),R(`p`,SE,M(E(_)),1)):z(``,!0),P(`div`,CE,[P(`button`,{class:`btn btn-dark`,type:`button`,disabled:E(g),onClick:re},M(E(g)?`保存中…`:`保存并开始聊天`),9,wE),P(`button`,{class:`btn btn-quiet`,type:`button`,onClick:ie},`清除 Key`)])])):(j(),R(`div`,TE,[E(o).length?(j(),F(xe,{key:0,messages:E(o),status:E(s),"should-auto-scroll":``,"spacing-offset":96,user:{variant:`soft`},class:`ai-messages`},{indicator:L(()=>[P(`div`,EE,[N(ve,{text:`思考中…`})])]),content:L(({message:e})=>[N(be,{message:e,streaming:E(s)===`streaming`&&e.id===E(o)[E(o).length-1]?.id,onResolve:E(n).resolvePending},null,8,[`message`,`streaming`,`onResolve`])]),_:1},8,[`messages`,`status`])):(j(),R(`div`,DE,[P(`div`,OE,[P(`span`,kE,[N(u,{name:`i-lucide-sparkles`})]),t[29]||=P(`p`,{class:`ai-empty-hd`},`有什么要问的?直接说`,-1),t[30]||=P(`p`,{class:`ai-empty-sub`},`查进度、找卡点、改状态,一句话就够`,-1)]),t[31]||=P(`p`,{class:`ai-empty-label`},`常用问题`,-1),P(`div`,AE,[(j(),R(I,null,vt(x,e=>P(`button`,{key:e.text,class:`ai-example`,type:`button`,onClick:t=>oe(e.text)},[P(`span`,{class:`ai-example-icon`,"data-tone":e.tone},[N(u,{name:e.icon},null,8,[`name`])],8,ME),P(`span`,NE,[P(`b`,null,M(e.text),1),P(`small`,null,M(e.hint),1)]),N(u,{class:`ai-example-go`,name:`i-lucide-arrow-up-right`})],8,jE)),64))]),E(l)?(j(),R(`p`,PE,`还没配 API Key:点右上角齿轮填好再聊。`)):z(``,!0)]))])),E(i)?z(``,!0):(j(),R(`div`,{key:2,class:`ai-composer`,onPaste:de},[E(d)?(j(),R(`p`,FE,[N(u,{name:`i-lucide-hand`}),t[32]||=P(`span`,null,`已停在这里等你审:点上面的「批准并写入」或「驳回」后我才会继续。`,-1)])):z(``,!0),E(ce).length?(j(),R(`div`,IE,[(j(!0),R(I,null,vt(E(ce),e=>(j(),R(`figure`,{key:e.id,class:`ai-attach`},[P(`img`,{src:e.url,alt:e.name},null,8,LE),P(`button`,{class:`ai-attach-x`,type:`button`,"aria-label":`移除这张图片`,title:`移除`,onClick:t=>pe(e.id)},[N(u,{name:`i-lucide-x`})],8,RE)]))),128)),P(`p`,{class:`ai-attach-tip`},`最多 `+M(QE)+` 张,随这条提问一起发给模型`)])):z(``,!0),N(Te,{modelValue:E(h),"onUpdate:modelValue":t[14]||=e=>Ft(h)?h.value=e:null,ui:C,color:`neutral`,variant:`subtle`,rows:1,maxrows:6,autofocus:!1,placeholder:`问点什么…(Enter 发送,截图可直接粘贴)`,disabled:E(s)===`streaming`,onSubmit:ae},{footer:L(()=>[P(`div`,zE,[P(`button`,{class:`ai-pick-image`,type:`button`,disabled:E(le),"aria-label":`上传图片`,title:`上传图片(也可以直接在输入框里粘贴截图)`,onClick:ue},[N(u,{name:E(le)?`i-lucide-loader-circle`:`i-lucide-image-plus`,class:V({"animate-spin":E(le)})},null,8,[`name`,`class`])],8,BE),P(`button`,{class:`ai-new-thread`,type:`button`,"aria-label":`新建会话`,title:`新建会话(当前这轮会存进历史会话)`,onClick:_e},[N(u,{name:`i-lucide-plus`})]),N(Se,{open:E(me),"onUpdate:open":t[12]||=e=>Ft(me)?me.value=e:null,content:{align:`start`,side:`top`}},{content:L(()=>[P(`div`,HE,[P(`p`,UE,[t[33]||=Xt(` 历史会话 `,-1),P(`span`,null,M(E(f).length),1)]),E(f).length?z(``,!0):(j(),R(`p`,WE,` 还没有历史会话。聊几句后点左边的「新建会话」,这里就会出现,最多留 20 个。 `)),(j(!0),R(I,null,vt(E(f),e=>(j(),R(`div`,{key:e.id,class:V([`ai-thread`,{on:e.id===E(p),arming:E(T)===e.id}])},[P(`button`,{class:`ai-thread-main`,type:`button`,onClick:t=>ge(e.id)},[P(`b`,null,M(e.title),1),P(`span`,null,M(he(e.updatedAt))+` · `+M(e.count)+` 条`,1)],8,GE),P(`button`,{class:V([`ai-thread-del`,{arm:E(T)===e.id}]),type:`button`,"aria-label":E(T)===e.id?`确认删除会话:${e.title}`:`删除会话:${e.title}`,title:E(T)===e.id?`再点一次就删掉,无法恢复`:`删除这条会话`,onClick:t=>ye(e.id)},[N(u,{name:E(T)===e.id?`i-lucide-trash-2`:`i-lucide-x`},null,8,[`name`]),E(T)===e.id?(j(),R(I,{key:0},[Xt(`删`)],64)):z(``,!0)],10,KE)],2))),128)),t[34]||=P(`p`,{class:`ai-history-tip`},`会话只存在这台浏览器里;图片不落盘,恢复后显示占位。`,-1)])]),default:L(()=>[P(`button`,{class:`ai-history-btn`,type:`button`,"data-count":E(f).length,"aria-label":`历史会话`,title:E(f).length?`历史会话(${E(f).length} 个)`:`历史会话(还没有)`},[N(u,{name:`i-lucide-history`})],8,VE)]),_:1},8,[`open`]),N(Ce,{items:E(se),content:{align:`start`,side:`top`}},{default:L(()=>[P(`button`,{class:`ai-strategy`,type:`button`,"data-mode":E(a).reviewMode,"aria-label":E(a).reviewMode===`manual`?`审核策略:手动审核`:`审核策略:自动审核`,title:E(a).reviewMode===`manual`?`审核策略:手动审核(改文件前要你点批准)`:`审核策略:自动审核(直接写入并跑校验)`},[N(u,{name:E(a).reviewMode===`manual`?`i-lucide-shield-check`:`i-lucide-zap`},null,8,[`name`])],8,qE)]),_:1},8,[`items`])]),P(`div`,JE,[P(`span`,YE,M(E(s)===`streaming`?`正在回答…`:E(b)),1),N(we,{class:`ai-stop`,square:``,status:E(s),icon:!1,color:`neutral`,variant:`solid`,size:`sm`,onStop:t[13]||=e=>E(n).stop()},{default:L(()=>[E(s)===`streaming`||E(s)===`submitted`?(j(),R(`svg`,XE,[...t[35]||=[P(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2.5`,fill:`currentColor`},null,-1)]])):E(s)===`error`?(j(),F(u,{key:1,name:`i-lucide-rotate-ccw`,class:`size-4 shrink-0`})):(j(),F(u,{key:2,name:`i-lucide-arrow-up`,class:`size-4 shrink-0`}))]),_:1},8,[`status`])])]),_:1},8,[`modelValue`,`disabled`]),E(c)?(j(),R(`p`,ZE,M(E(c)),1)):z(``,!0)],32))])):z(``,!0)]),_:1})]))])}}}),{__name:`AiAssistant`}),eD=Symbol(`nuxt-ui.toast-max`),tD=200;function nD(){let e=Tn(`toasts`,()=>[]),t=bt(eD,void 0),n=W(!1),r=[],i=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;function a(t,n){let r=e.value[t],i=Date.now(),a=i-(r._animatedAt||0)<tD;e.value[t]={...r,...n,_duplicate:a?r._duplicate:(r._duplicate||0)+1,_animatedAt:a?r._animatedAt:i}}async function o(){if(!(n.value||r.length===0)){for(n.value=!0;r.length>0;){await yt();let n=r.shift(),i=t?.value??5;if(i<=0){e.value.length&&(e.value=[]);continue}let o=e.value.findIndex(e=>e.id===n.id);o===-1?e.value=[...e.value,{...n,_animatedAt:Date.now()}].slice(-i):a(o,n)}n.value=!1}}function s(t){let n={id:i(),open:!0,...t},s=e.value.findIndex(e=>e.id===n.id);return s===-1?(r.push(n),o(),n):(a(s,n),n)}function c(t,n){let r=e.value.findIndex(e=>e.id===t);r!==-1&&(e.value[r]={...e.value[r],...n,duration:n.duration,open:!0,_updated:!0},yt(()=>{let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated&&(e.value[n]={...e.value[n],_updated:void 0})}))}function l(t){let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated||(n!==-1&&(e.value[n]={...e.value[n],open:!1}),setTimeout(()=>{e.value=e.value.filter(e=>e.id!==t)},200))}function u(){e.value=[]}return{toasts:e,add:s,update:c,remove:l,clear:u}}var rD={slots:{viewport:`fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none`,base:`pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[collapsed=true]:data-[front=false]:h-(--front-height) data-[collapsed=true]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_var(--ease-out)] data-[state=closed]:data-[collapsed=true]:data-[front=false]:animate-[toast-collapsed-closed_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=odd]:animate-[toast-pulse-a_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=even]:animate-[toast-pulse-b_200ms_var(--ease-out)] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out motion-reduce:transition-none`},variants:{position:{"top-left":{viewport:`left-4`},"top-center":{viewport:`left-1/2 transform -translate-x-1/2`},"top-right":{viewport:`right-4`},"bottom-left":{viewport:`left-4`},"bottom-center":{viewport:`left-1/2 transform -translate-x-1/2`},"bottom-right":{viewport:`right-4`}},swipeDirection:{up:`data-[swipe=end]:animate-[toast-slide-up_200ms_var(--ease-out)]`,right:`data-[swipe=end]:animate-[toast-slide-right_200ms_var(--ease-out)]`,down:`data-[swipe=end]:animate-[toast-slide-down_200ms_var(--ease-out)]`,left:`data-[swipe=end]:animate-[toast-slide-left_200ms_var(--ease-out)]`}},compoundVariants:[{position:[`top-left`,`top-center`,`top-right`],class:{viewport:`top-4`,base:`top-0 data-[state=open]:animate-[toast-slide-in-from-top_200ms_var(--ease-out)]`}},{position:[`bottom-left`,`bottom-center`,`bottom-right`],class:{viewport:`bottom-4`,base:`bottom-0 data-[state=open]:animate-[toast-slide-in-from-bottom_200ms_var(--ease-out)]`}},{swipeDirection:[`left`,`right`],class:`data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0`},{swipeDirection:[`up`,`down`],class:`data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0`}],defaultVariants:{position:`bottom-right`}},iD=Object.assign(Object.assign({name:`Toaster`},{inheritAttrs:!1},{props:{position:{type:null,required:!1},expand:{type:Boolean,required:!1,default:!0},progress:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},max:{type:Number,required:!1,default:5},class:{type:null,required:!1},ui:{type:Object,required:!1},label:{type:String,required:!1},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeThreshold:{type:Number,required:!1}},setup(e){let t=Ln(`toaster`,e),n=()=>G(()=>import(`./BAQQngAq.js`),__vite__mapDeps([106,7,8,2,9,15,29,25,4,36,26,20,16,24,30,28,1,3,5,6,10,11,12,31,32,33,13,14,56]),import.meta.url),r=U(n),i;lt(()=>{i=Kr(()=>{n().catch(()=>{})})}),_t(()=>{Gr(i)});let{toasts:a,remove:o}=nD(),{t:s}=Bu(),c=Dn();Et(eD,pt(()=>t.max));let l=Ar(Er(t,`duration`,`swipeThreshold`,`disableSwipe`)),u=tr(pt(()=>t.portal)),d=H(()=>{switch(t.position){case`top-center`:return`up`;case`top-right`:case`bottom-right`:return`right`;case`bottom-center`:return`down`;case`top-left`:case`bottom-left`:return`left`}return`right`}),f=H(()=>zn({extend:rD,...c.ui?.toaster||{}})({position:t.position,swipeDirection:d.value}));function p(e,t){e||o(t)}let m=W(!1),h=H(()=>t.expand||m.value),g=W([]),_=H(()=>g.value.reduce((e,{height:t})=>e+t+16,0)),v=H(()=>g.value[g.value.length-1]?.height||0);function y(e){return g.value.slice(e+1).reduce((e,{height:t})=>e+t+16,0)}return(e,n)=>(j(),F(E(cu),O({"swipe-direction":d.value,label:E(t).label??E(s)(`toaster.label`)},E(l)),{default:L(()=>[B(e.$slots,`default`),(j(!0),R(I,null,vt(E(a),(e,n)=>(j(),F(E(r),O({key:e.id,ref_for:!0,ref_key:`refs`,ref:g,progress:E(t).progress},{ref_for:!0},E(Mn)(e,[`id`,`close`,`_duplicate`,`_updated`,`_animatedAt`,`onClick`]),{close:e.close,"data-collapsed":!h.value,"data-front":!h.value&&n===E(a).length-1,"data-pulsing":e._duplicate?e._duplicate%2==0?`even`:`odd`:void 0,style:{"--index":n-E(a).length+E(a).length,"--before":E(a).length-1-n,"--offset":y(n),"--scale":h.value?`1`:`calc(1 - var(--before) * var(--scale-factor))`,"--translate":h.value?`calc(var(--offset) * var(--translate-factor))`:`calc(var(--before) * var(--gap))`,"--transform":`translateY(var(--translate)) scale(var(--scale))`},"data-slot":`base`,class:f.value.base({class:[E(t).ui?.base,e.onClick?`cursor-pointer`:void 0]}),"onUpdate:open":t=>p(t,e.id),onClick:t=>e.onClick&&e.onClick(e)}),null,16,[`progress`,`close`,`data-collapsed`,`data-front`,`data-pulsing`,`style`,`class`,`onUpdate:open`,`onClick`]))),128)),N(E(vu),D(A(E(u))),{default:L(()=>[N(E(bu),{label:E(s)(`toaster.viewport`),"data-expanded":h.value,"data-slot":`viewport`,class:V(f.value.viewport({class:[E(t).ui?.viewport,E(t).class]})),style:Ot({"--scale-factor":`0.05`,"--translate-factor":E(t).position?.startsWith(`top`)?`1px`:`-1px`,"--gap":E(t).position?.startsWith(`top`)?`16px`:`-16px`,"--front-height":`${v.value}px`,"--height":`${_.value}px`}),onMouseenter:n[0]||=e=>m.value=!0,onMouseleave:n[1]||=e=>m.value=!1},null,8,[`label`,`data-expanded`,`class`,`style`])]),_:1},16)]),_:3},16,[`swipe-direction`,`label`]))}}),{__name:`UToaster`});function aD(){let e=Ct([]),t=(t,i)=>{let{props:a,defaultOpen:s,destroyOnClose:c}=i||{},l=Zt({id:Symbol(``),isOpen:!!s,component:At(t),isMounted:!!s,destroyOnClose:!!c,originalProps:a||{},props:{...a},resolvers:[]});return e.push(l),{...l,open:e=>n(l.id,e),close:e=>r(l.id,e),patch:e=>o(l.id,e)}},n=(e,t)=>{let n=s(e);n.props=t?{...n.originalProps,...t}:{...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvers.push(e));return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},r=(e,t)=>{let n=s(e);n.isOpen=!1;for(let e of n.resolvers.splice(0))e(t)},i=()=>{e.forEach(e=>r(e.id))},a=t=>{let n=s(t);if(n.isMounted=!1,n.destroyOnClose){let n=e.findIndex(e=>e.id===t);e.splice(n,1)}},o=(e,t)=>{let n=s(e);n.props={...n.props,...t}},s=t=>{let n=e.find(e=>e.id===t);if(!n)throw Error(`Overlay not found`);return n};return{overlays:e,open:n,close:r,closeAll:i,create:t,patch:o,unmount:a,isOpen:e=>s(e).isOpen}}var oD=Sr(aD),sD={__name:`UOverlayProvider`,setup(e){let{overlays:t,unmount:n,close:r}=oD(),i=H(()=>t.filter(e=>e.isMounted)),a=e=>{r(e),n(e)},o=(e,t)=>{r(e,t)};return(e,t)=>(j(!0),R(I,null,vt(i.value,e=>(j(),F(Dt(e.component),O({key:e.id},{ref_for:!0},e.props,{open:e.isOpen,"onUpdate:open":t=>e.isOpen=t,onClose:t=>o(e.id,t),"onAfter:leave":t=>a(e.id)}),null,16,[`open`,`onUpdate:open`,`onClose`,`onAfter:leave`]))),128))}},cD=Object.assign(Object.assign({name:`App`},{props:{tooltip:{type:Object,required:!1},toaster:{type:[Object,null],required:!1},locale:{type:Object,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:`body`},dir:{type:String,required:!1},scrollBody:{type:[Boolean,Object],required:!1},nonce:{type:String,required:!1}},setup(e){let t=e,n=zr(Er(t,`scrollBody`,`nonce`)),r=pt(()=>t.tooltip),i=pt(()=>t.toaster),a=bt(zu,void 0),o=pt(()=>{let e=t.locale||a?.value;return t.dir?{...e||Ru,dir:t.dir}:e});Et(zu,o);let s=pt(()=>t.portal);return Et(Qn,s),(a,s)=>(j(),F(E(gr),O({"use-id":()=>Pt(),dir:t.dir||o.value?.dir,locale:o.value?.code},E(n)),{default:L(()=>[N(E(wu),D(A(r.value)),{default:L(()=>[e.toaster===null?B(a.$slots,`default`,{},void 0,void 0,1):(j(),F(iD,D(O({key:0},i.value)),{default:L(()=>[B(a.$slots,`default`)]),_:3},16)),N(sD)]),_:3},16)]),_:3},16,[`use-id`,`dir`,`locale`]))}}),{__name:`UApp`});function lD(){let e=Ne();return H(()=>e.currentRoute.value)}function uD(){let e=lD();return H(()=>e.value?.path||`/`)}var dD={class:`page`},fD={class:`canvas`},pD={class:`side`},mD={class:`side-head`},hD={class:`brand`},gD={class:`brand-glyph`},_D={class:`side-scroll`},vD={class:`nav`},yD={class:`nav-lb`},bD={key:0,class:`nav-ct`},xD={key:0,class:`assist`},SD={class:`assist-hd`},CD={class:`assist-name`},wD={class:`assist-sub mono`},TD={class:`bar mint slim`},ED={class:`assist-pts`},DD={class:`side-cal`},OD={class:`user`},kD={class:`user-txt`},AD={class:`main`},jD={class:`topbar`},MD={class:`tt`},ND={class:`h1`},PD={class:`sub`},FD={class:`acts`},ID={key:0,class:`chip-block`},LD={key:1,class:`chip-sprint`},RD={class:`content`},zD={key:0,class:`callout`},BD={key:1,class:`pg`},VD={key:2,class:`loading`},HD=Lf(k({__name:`app`,setup(e){let t=uD(),{currentSprint:n,sprintCommit:r,burndown:i,now:a,root:o,data:s,error:c,refresh:l,stories:u,epics:d,sprints:f,milestones:p,blockedStories:m,lastChange:h,testStats:g,diagramStats:_,md:v}=Of(),y=H(()=>{let e=n.value;if(!e)return 0;let{days:t}=i(e);return t.length?(t.find(e=>e.date===a)??[...t].reverse().find(e=>e.date<=a)??t[0]).actual:0}),b=H(()=>[{to:`/`,label:`故事看板`,icon:`i-lucide-layout-grid`,count:u.value.length},{to:`/last-change`,label:`最后更新`,icon:`i-lucide-history`,count:h.value?.changes?.length??0},{to:`/epics`,label:`史诗目标`,icon:`i-lucide-target`,count:d.value.length},{to:`/gantt`,label:`甘特图例`,icon:`i-lucide-chart-gantt`,count:f.value.length},{to:`/burndown`,label:`燃尽图例`,icon:`i-lucide-trending-down`,count:y.value,zero:!0},{to:`/tests`,label:`测试用例`,icon:`i-lucide-flask-conical`,count:g.value.failed||g.value.total},{to:`/diagrams`,label:`架构图例`,icon:`i-lucide-network`,count:_.value.total},{to:`/milestones`,label:`里程碑 / MVP`,icon:`i-lucide-flag`,count:p.value.length}]),x=e=>e===`/`?t.value===`/`:t.value.startsWith(e),S={"/":{title:`看板`,sub:`全部故事按状态分列:点数、任务进度、阻塞与范围变更都落在卡片上`},"/last-change":{title:`最后更新`,sub:`最近一次功能交付:改了哪些故事与任务、额外做了什么、验了什么、怎么自己点一遍`},"/epics":{title:`史诗与目标`,sub:`每个史诗的量化关键结果与故事进度,达成口径 = 当前值达到目标值`},"/gantt":{title:`甘特图`,sub:`浅色条是计划排期,实心条是 journal 记录出的真实执行区间`},"/milestones":{title:`里程碑 / MVP 节点`,sub:`里程碑挂在 story 上,挂的故事全部完成即视为达成`},"/burndown":{title:`燃尽图`,sub:`实线来自每个 task 最后一条 pass 的日期,虚线是按容量均摊的理想线`},"/tests":{title:`测试用例`,sub:`前端 / 后端 / E2E 的用例清单与覆盖缺口:需求覆盖按验收条算,代码覆盖各层分开报`},"/diagrams":{title:`架构图例`,sub:`实现过程中沉淀的系统架构、登录/支付时序、ER 关系图:每张图挂在故事上,过期会标出来`}},C=H(()=>t.value.startsWith(`/story`)?{title:`故事详情`,sub:`验收标准 · 依赖与阻塞 · TDD 实施日志`}:S[t.value]??{title:`敏捷看板`,sub:`结构化敏捷数据可视化`}),w=H(()=>{let e=n.value;return e?.capacity?Math.min(100,Math.round(r(e)/e.capacity*100)):0}),ee=H(()=>{let e=n.value;if(!e)return``;let t=Math.round((+rf(e.end)-rf(cf()))/864e5);return t>0?`剩 ${t} 天`:t===0?`今天结束`:`已超期 ${-t} 天`});return(e,i)=>{let a=kn,d=Rf,f=wn,p=Bf,h=tp,g=ap,_=$E,y=cD;return j(),F(y,null,{default:L(()=>[P(`div`,dD,[P(`div`,fD,[P(`aside`,pD,[P(`div`,mD,[P(`div`,hD,[P(`span`,gD,[N(a,{name:`i-lucide-blocks`})]),i[2]||=P(`b`,null,`敏捷看板`,-1)]),N(d)]),P(`div`,_D,[i[6]||=P(`p`,{class:`lbl sec`},`工作台`,-1),P(`nav`,vD,[(j(!0),R(I,null,vt(E(b),e=>(j(),F(f,{key:e.to,to:e.to,class:V([`nav-item`,{on:x(e.to)}])},{default:L(()=>[N(a,{name:e.icon,class:`nav-ic`},null,8,[`name`]),P(`span`,yD,M(e.label),1),e.count||e.zero?(j(),R(`span`,bD,M(e.count),1)):z(``,!0)]),_:2},1032,[`to`,`class`]))),128))]),E(n)?(j(),R(`div`,xD,[N(p,{tone:`mint`,size:`sm`,min:2,max:4}),P(`div`,SD,[N(a,{name:`i-lucide-sparkles`}),i[3]||=Xt(`当前迭代`,-1)]),P(`p`,CD,M(E(n).name),1),P(`p`,wD,M(E(n).id)+` · `+M(E(v)(E(n).start))+` ~ `+M(E(v)(E(n).end)),1),P(`div`,TD,[P(`i`,{style:Ot({width:E(w)+`%`})},null,4)]),P(`p`,ED,[i[4]||=Xt(` 承诺 `,-1),P(`b`,null,M(E(r)(E(n))),1),Xt(` / `+M(E(n).capacity)+` 点 · `+M(E(ee)),1)]),N(f,{to:`/burndown`,class:`assist-btn`},{default:L(()=>[...i[5]||=[Xt(`看燃尽图 →`,-1)]]),_:1})])):z(``,!0),P(`div`,DD,[N(h)])]),P(`div`,OD,[i[8]||=P(`span`,{class:`avatar`},`SS`,-1),P(`div`,kD,[i[7]||=P(`b`,null,`scrum-skills`,-1),P(`small`,null,`本地数据 · `+M(E(u).length)+` 个故事`,1)]),N(a,{name:`i-lucide-chevron-right`,class:`user-chev`})])]),P(`div`,AD,[P(`header`,jD,[P(`div`,MD,[P(`h1`,ND,M(E(C).title),1),P(`p`,PD,M(E(C).sub),1)]),P(`div`,FD,[E(m).length?(j(),R(`span`,ID,[N(a,{name:`i-lucide-octagon-alert`,class:`size-3`}),Xt(M(E(m).length)+` 个阻塞 `,1)])):z(``,!0),E(n)?(j(),R(`span`,LD,M(E(n).id)+` · `+M(E(r)(E(n)))+`/`+M(E(n).capacity)+` 点 `,1)):z(``,!0),P(`button`,{class:`btn btn-icon`,title:`重新拉取 /api/agile`,onClick:i[0]||=e=>E(l)()},[N(a,{name:`i-lucide-refresh-cw`})]),N(f,{to:`/burndown`,class:`btn btn-dark`},{default:L(()=>[N(a,{name:`i-lucide-activity`}),i[9]||=Xt(`迭代健康度 `,-1)]),_:1})])]),P(`main`,RD,[E(c)?(j(),R(`div`,zD,[N(a,{name:`i-lucide-plug-zap`,class:`size-4`}),P(`div`,null,[i[10]||=P(`b`,null,`读不到敏捷数据`,-1),i[11]||=P(`p`,{style:{"margin-top":`3px`}},` 接口 /api/agile 没有返回。确认是在含 agile/ 的目录下运行 scrum-skills serve。 `,-1),P(`button`,{class:`btn btn-sm`,style:{"margin-top":`8px`},onClick:i[1]||=e=>E(l)()},`重试`)])])):E(s)?(j(),R(`div`,BD,[N(g,{"page-key":E(t)+`:`+E(o)},null,8,[`page-key`])])):(j(),R(`div`,VD,[...i[12]||=[P(`div`,{class:`skeleton`,style:{height:`176px`}},null,-1),P(`div`,{class:`skeleton`,style:{height:`420px`}},null,-1)]]))])])]),N(_)])]),_:1})}}}),[[`__scopeId`,`data-v-031eeb08`]]),UD={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,i=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),a=t.message||t.toString(),o=U(()=>G(()=>import(`./D1V1gysQ.js`),__vite__mapDeps([107,13,8,2,14,15,16,9,11,108]),import.meta.url)),s=U(()=>G(()=>import(`./BGwhkDRl.js`),__vite__mapDeps([109,11,8,2,110]),import.meta.url)),c=r?o:s;return(e,t)=>(j(),F(E(c),D(A({status:E(n),statusText:E(i),statusCode:E(n),statusMessage:E(i),description:E(a),stack:E(void 0)})),null,16))}},WD=()=>null,GD={key:0},KD={__name:`nuxt-root`,setup(e){let t=u(),n=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,n),r=Ne().beforeEach(()=>{e(),r()})}window.location.pathname,Et(Ee,xe()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let r=Ue();function i(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return Qt((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),Fe(navigator.userAgent))return g(t,e),!1;if(Xe(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>Ie(e)),On(),i(e,n,r),!1}),(e,t)=>(j(),F(Ht,{onResolve:E(n)},{default:L(()=>[E(!1)?(j(),R(`div`,GD)):E(r)?(j(),F(E(UD),{key:1,error:E(r)},null,8,[`error`])):E(!1)?(j(),F(E(WD),{key:2,context:E(!1)},null,8,[`context`])):E(!1)?(j(),F(Dt(E(!1)),{key:3})):(j(),F(E(HD),{key:4}))]),_:1},8,[`onResolve`]))}},qD;{let e;qD=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?nt(KD):it(KD),r=l({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=ve(e)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&p.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(p.id)?.remove()});try{await f(r,Ys)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(o),await r.hooks.callHook(`app:mounted`,n),await yt()}catch(e){i(e)}return n},e=qD().catch(e=>{throw t.NUXT_E1009({cause:e}),e})}export{kc as A,mu as C,ou as D,gu as E,Fo as F,Oi as I,dc as M,uc as N,Mc as O,Qs as P,pu as S,hu as T,Bu as _,ef as a,uu as b,qd as c,Gd as d,Yd as f,qu as g,Kd as h,Lf as i,fc as j,Ac as k,Xd as l,Jd as m,kT as n,tf as o,Zd as p,Bf as r,Of as s,lD as t,Qd as u,du as v,_u as w,lu as x,fu as y};
94
+ `)||``}}return{remainingMarkdownStartLine:0,remainingMarkdown:e,reusedNodes:[]}}var Nw={end:()=>{}},Pw={startSpan:()=>Nw,startActiveSpan:(e,t,n)=>(typeof t==`function`?t:n)(Nw)};function Fw(e,t,n,r){return e.startActiveSpan(t,r??{},e=>{try{let t=n();return t instanceof Promise?t.finally(()=>e.end()):(e.end(),t)}catch(t){throw e.end(),t}})}function Iw(e={}){let{autoUnwrap:t=!0,autoClose:n=!0,tracer:r=Pw}=e,i=IC(e.unwrap),a=e.plugins??[];e.html!==void 0&&console.warn("[comark] `ParserOptions.html` is deprecated and will be removed in a future major version. Use `registerDefaultPlugins: false` and register `html()` from `comark/plugins/html` only when needed.");let o=ov(e.registerDefaultPlugins===!1?[]:[FC(),...e.html===!1?[]:[jC()],vC(),gC(),lC(),pC()],a),s=e=>o.some(t=>t.name===e),c=new iv({linkify:e.linkify??!0}).enable([`table`,`strikethrough`]);for(let e of o)for(let t of e.markdownItPlugins||[])c.use(t);let l=null,u=null;return async(a,d={})=>await Fw(r,`comark:parse`,async()=>{let f={options:e,tokens:[],markdown:a,tree:null,parsedLines:0,reusableNodes:[],frontmatterText:``,frontmatter:{}},p=l,m=a.startsWith(u??``);if(d.streaming&&p&&m){let{remainingMarkdownStartLine:e,reusedNodes:t,remainingMarkdown:n}=Mw(a,p);if(!n)return p;f.parsedLines=e,f.markdown=n,f.reusableNodes=t}typeof n==`function`?f.markdown=Fw(r,`comark:autoclose`,()=>n(f.markdown)):n&&(f.markdown=Fw(r,`comark:autoclose`,()=>Sp(f.markdown,{frontmatter:s(`frontmatter`)&&d.streaming,syntax:s(`components`),attributes:s(`components`)||s(`attributes`),math:s(`math`),dropTrailingOpeners:d.streaming===!0})));for(let e of o)e.pre&&await Fw(r,`comark:pre:${e.name}`,()=>e.pre(f));try{f.tokens=Fw(r,`comark:tokenize`,()=>c.parse(f.markdown,{}))}catch(e){if(d.streaming&&p)return p;throw e}let h=r.startSpan(`comark:nodes`),g=gw(f.tokens,{startLine:f.parsedLines,preservePositions:d.streaming??!1,headingIds:e.headingIds??!0});t&&(g=g.map(e=>Rp(e))),i.length>0&&(g=BC(g,i)),h.end();let _=f.frontmatter??{},v=f.frontmatterText??``;d.streaming?(f.tree={frontmatter:v?_:p?.frontmatter??_,meta:{},nodes:[...f.reusableNodes,...g]},l=f.tree,u=a):(f.tree={frontmatter:_,meta:{},nodes:g},l=null,u=null);for(let e of o)e.post&&await Fw(r,`comark:post:${e.name}`,()=>e.post(f));return f.tree})}function Lw(e={}){return av(Iw(e))}var Rw=` `,zw=`background-color: currentColor; display: inline-block; margin-left: 0.25rem; margin-right: 0.25rem; animation: pulse 0.75s cubic-bezier(0.4,0,0.6,1) infinite;`;function Bw(e){if(e===!0)return[`span`,{key:`stream-caret`,style:zw},Rw];if(typeof e==`object`){let t=e?.class||``;return[`span`,{key:`stream-caret`,style:zw,...t?{class:t}:{}},Rw]}return null}function Vw(e,t){for(let n=e.length-1;n>=2;n--){let r=e[n];if(typeof r==`string`&&e[1]?.key!==`stream-caret`)return e.push(t),!0;if(Array.isArray(r)&&Vw(r,t))return!0}return!1}var Hw=new Map;function Uw(e){return!!e&&typeof e.then==`function`}function Ww(e){return e&&typeof e==`object`&&`default`in e?e.default:e}function Gw(e){return Array.isArray(e)&&e.length>=1?e[0]:null}function Kw(e){return Array.isArray(e)&&e.length>=2&&e[1]||{}}function qw(e){return Array.isArray(e)&&e.length>2?e.slice(2):[]}function Jw(e,t,n){let r=dt()?.appContext?.components,i=US(e),a=`Prose${i}`,o=t[a]||t[i]||t[e]||r?.[a]||r?.[i];if(!o&&n){let t=e;if(!Hw.has(t)){let r=n(e);Uw(r)?Hw.set(t,H(()=>r)):r&&Hw.set(t,Ww(r))}o=Hw.get(t)}return o}function Yw(e,t={},n,r,i,a={frontmatter:{},meta:{},data:{},props:{}}){if(typeof e==`string`)return e;if(Array.isArray(e)){let o=Gw(e);if(!o)return null;let s=Kw(e),c=qw(e),l;i?.[0]!==`pre`&&(s.as&&(l=Jw(s.as,t,r)),l||=Jw(o,t,r));let u=l||o,d=RS(s,a,{parseJson:!0}),f={};for(let e in d)e===`className`?f.class=d[e]:f[e]=d[e];if((u?.props?.__node||u?.__asyncResolved?.props?.__node)&&(f.__node=e),n!==void 0&&(f.key=n),e.length===2)return pt(u,f);let p=Object.keys(d).length>0?{...a,props:f}:a,m={},h=[];for(let n=0;n<c.length;n++){let i=c[n];if(i==null)continue;let a=Gw(i),o=Kw(i);if(a===`template`&&o){let n;if(o.name)n=o.name;else for(let e in o)if(e.startsWith(`v-slot:`)){n=e.substring(7);break}if(n){let a=qw(i);m[n]=()=>a.map((n,i)=>Yw(n,t,i,r,e,p)).filter(e=>e!==null);continue}}let s=Yw(i,t,n,r,e,p);s!==null&&h.push(s)}return l?(h.length>0&&(m.default=()=>h),pt(u,f,m)):pt(u,f,h)}return null}var Xw=O({name:`MarkdownDocument`,props:{value:{type:Object,default:void 0},components:{type:Object,default:()=>({})},componentsManifest:{type:Function,default:void 0},streaming:{type:Boolean,default:!1},caret:{type:[Boolean,Object],default:!1},data:{type:Object,default:()=>({})},documentKey:{type:String,default:void 0}},async setup(e){let t=V(()=>e.value??{nodes:[],frontmatter:{},meta:{}}),n=U(new Set),r=Xt(null),i=t.value.meta?.key||e.documentKey;if(i&&globalThis.comarkContext){let e=globalThis.comarkContext.get(i,Tt(t.value)).listen(e=>{r.value=e});Et(()=>e(!0))}$t((e,t,r)=>{let i=t?.$?.type?.name||t?.type?.name||`unknown`;return n.value.add(i),!1});let a=xt(`comark`,{components:{},componentManifest:()=>null}),o=V(()=>({...a?.components,...e.components})),s=t=>{let n=e.componentsManifest?.(t);return n||=a?.componentManifest(t),n||null},c=V(()=>Bw(e.caret||!1));return()=>{let n=Tt(r.value??t.value),i=[...n.nodes||[]];e.streaming&&c.value&&i.length>0&&(Vw(i[i.length-1],c.value)||i.push(c.value));let a={frontmatter:n.frontmatter||n.data||{},meta:n.meta||{},data:e.data||{},props:{}},l=i.map((e,t)=>Yw(e,o.value,t,s,void 0,a)).filter(e=>e!==null);return pt(`div`,{class:`comark-content`},l)}}}),Zw={value:{type:[String,Object],default:void 0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},unwrap:{type:[Boolean,String,Array],default:!1},components:{type:Object,default:()=>({})},componentsManifest:{type:Function,default:void 0},streaming:{type:Boolean,default:!1},summary:{type:Boolean,default:!1},caret:{type:[Boolean,Object],default:!1},data:{type:Object,default:()=>({})},documentKey:{type:String,default:void 0}},Qw=O({name:`Markdown`,props:Zw,async setup(e,t){let n=V(()=>{if(zS(e.value))return``;let n=e.value,r=t.slots.default?.();return r&&r.length>0&&typeof r[0].children==`string`&&(n=r[0].children),e.summary&&(n=n?.split(`<!-- more -->`)[0]),(n||``).trim()}),r=Xt(null),i=Lw({...e.options,...e.unwrap?{unwrap:e.unwrap}:{},plugins:e.plugins});return Nt(()=>[n.value,e.streaming],()=>{zS(e.value)||i(n.value,{streaming:e.streaming}).then(e=>r.value=e)}),zS(e.value)||await i(n.value,{streaming:e.streaming}).then(e=>r.value=e),()=>zS(e.value)?pt(Xw,{value:e.value,components:e.components,streaming:e.streaming,componentsManifest:e.componentsManifest,class:e.streaming?`comark-stream`:``,caret:e.caret,data:e.data,documentKey:e.documentKey}):pt(Xw,{value:r.value||{nodes:[],frontmatter:{},meta:{}},components:e.components,streaming:e.streaming,componentsManifest:e.componentsManifest,class:e.streaming?`comark-stream`:``,caret:e.caret,data:e.data,documentKey:e.documentKey})}});function $w(e={}){let{name:t,...n}=e;return O({name:t??`MarkdownComponent`,props:Zw,setup(t,{slots:r}){let i=V(()=>({...n,...t.options})),a=V(()=>[...e.plugins||[],...t.plugins||[]]),o=V(()=>({...e.components,...t.components}));return()=>{let n=e.extends||Qw;return pt(n,{...t,options:i.value,plugins:a.value,components:o.value,class:e.class},{default:r.default})}}})}var eT=$w({name:`ChatComark`,class:`*:first:mt-0 *:last:mb-0`}),tT=[`data-open`],nT=[`aria-expanded`],rT={class:`ai-think-body`},iT=Object.assign(O({__name:`ReasoningBlock`,props:{text:{},streaming:{type:Boolean},duration:{}},setup(e){let t=e,n=U(!t.duration&&!!t.streaming);Nt(()=>t.streaming,(e,t)=>{e?n.value=!0:t&&setTimeout(()=>{n.value=!1},600)});let r=V(()=>t.streaming?`思考中…`:t.duration?`思考了 ${t.duration} 秒`:`思考过程`);return(t,i)=>{let a=An,o=eT;return A(),L(`div`,{class:`ai-think`,"data-open":T(n)},[N(`button`,{class:`ai-think-btn`,type:`button`,"aria-expanded":T(n),onClick:i[0]||=e=>n.value=!T(n)},[M(a,{class:`ai-think-chev`,name:`i-lucide-chevron-down`}),N(`span`,null,j(T(r)),1)],8,nT),Jt(N(`div`,rT,[M(o,{value:e.text,streaming:e.streaming},null,8,[`value`,`streaming`])],512),[[it,T(n)]])],8,tT)}}}),{__name:`ChatReasoningBlock`}),aT={slots:{root:``,trigger:[`group flex w-full items-center gap-1.5 text-muted text-sm disabled:cursor-default disabled:hover:text-muted hover:text-default min-w-0`,`transition-colors`],leading:`relative size-4 shrink-0`,leadingIcon:`size-4 shrink-0`,chevronIcon:`size-4 shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200 ease-out motion-reduce:transition-none`,label:`truncate`,suffix:`text-dimmed ms-1`,trailingIcon:`size-4 shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200 ease-out motion-reduce:transition-none`,content:`data-[state=open]:animate-[collapsible-down_200ms_var(--ease-out)] data-[state=closed]:animate-[collapsible-up_200ms_var(--ease-out)] data-[state=closed]:overflow-hidden`,body:`text-sm text-dimmed whitespace-pre-wrap`,actions:`flex items-center justify-end gap-1.5`},variants:{variant:{inline:{trigger:`rounded-sm outline-primary/25 focus-visible:outline-3`,body:`pt-2`,actions:`pt-2`},card:{root:`rounded-md ring ring-default overflow-hidden outline-primary/25 has-focus-visible:outline-3 has-focus-visible:ring-primary`,trigger:`px-2 py-1 focus:outline-none`,trailingIcon:`ms-auto`,body:`border-t border-default p-2 max-h-[200px] overflow-y-auto focus:outline-none`,actions:`border-t border-default p-2`}},chevron:{leading:``,trailing:``},loading:{true:{leadingIcon:`animate-spin`}},alone:{false:{leadingIcon:[`absolute inset-0 group-hover:opacity-0 group-data-[state=open]:opacity-0`,`transition-opacity duration-200 ease-out`],chevronIcon:[`absolute inset-0 opacity-0 group-hover:opacity-100 group-data-[state=open]:opacity-100`,`transition-[rotate,opacity] duration-200 ease-out motion-reduce:transition-none`]}}}},oT=[`data-state`],sT={__name:`UChatTool`,props:{text:{type:String,required:!1},suffix:{type:String,required:!1},icon:{type:null,required:!1},loading:{type:Boolean,required:!1,default:!1},loadingIcon:{type:null,required:!1},streaming:{type:Boolean,required:!1,default:!1},variant:{type:null,required:!1,default:`inline`},chevron:{type:String,required:!1,default:`trailing`},chevronIcon:{type:null,required:!1},shimmer:{type:Object,required:!1},actions:{type:Array,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=Ht(),a=Rn(`chatTool`,n),o=On(),s=V(()=>Bn({extend:aT,...o.ui?.chatTool||{}})({variant:a.variant,chevron:a.chevron,loading:a.loading})),c=V(()=>a.open!==void 0),l=U(a.defaultOpen??!1),u=V(()=>c.value?a.open:l.value);function d(e){l.value=e,r(`update:open`,e)}let f=V(()=>!!i.default);Nt(()=>!!a.actions?.length,e=>{e&&f.value&&a.open===void 0&&a.defaultOpen===void 0&&(l.value=!0)},{immediate:!0});let p=V(()=>a.loadingIcon||o.ui.icons?.loading),m=V(()=>a.loading?p.value:a.icon),h=V(()=>a.chevronIcon||o.ui.icons?.chevronDown);return(e,t)=>(A(),P(T(dc),{open:u.value,disabled:T(a).disabled,"unmount-on-hide":T(a).unmountOnHide,"data-slot":`root`,class:B(s.value.root({class:[T(a).ui?.root,T(a).class]})),"onUpdate:open":d},{default:I(({open:t})=>[M(T(pc),{"as-child":``,disabled:!f.value},{default:I(()=>[N(`button`,{type:`button`,"data-slot":`trigger`,class:B(s.value.trigger({class:T(a).ui?.trigger}))},[m.value||f.value&&T(a).chevron===`leading`?(A(),L(`span`,{key:0,"data-slot":`leading`,class:B(s.value.leading({class:T(a).ui?.leading}))},[m.value?(A(),P(An,{key:0,name:m.value,"data-slot":`leadingIcon`,class:B(s.value.leadingIcon({class:T(a).ui?.leadingIcon,alone:!(f.value&&T(a).chevron===`leading`)}))},null,8,[`name`,`class`])):R(``,!0),f.value&&T(a).chevron===`leading`?(A(),P(An,{key:1,name:h.value,"data-slot":`chevronIcon`,class:B(s.value.chevronIcon({class:T(a).ui?.chevronIcon,alone:!m.value}))},null,8,[`name`,`class`])):R(``,!0)],2)):R(``,!0),N(`span`,{"data-slot":`label`,class:B(s.value.label({class:T(a).ui?.label}))},[T(a).streaming&&T(a).text?(A(),P(vp,D({key:0,text:T(a).text},T(a).shimmer),null,16,[`text`])):(A(),L(F,{key:1},[Zt(j(T(a).text),1)],64)),T(a).suffix?(A(),L(`span`,{key:2,"data-slot":`suffix`,class:B(s.value.suffix({class:T(a).ui?.suffix}))},j(T(a).suffix),3)):R(``,!0)],2),f.value&&T(a).chevron===`trailing`?(A(),P(An,{key:1,name:h.value,"data-slot":`trailingIcon`,class:B(s.value.trailingIcon({class:T(a).ui?.trailingIcon}))},null,8,[`name`,`class`])):R(``,!0)],2)]),_:1},8,[`disabled`]),M(T(fc),{"data-slot":`content`,class:B(s.value.content({class:T(a).ui?.content}))},{default:I(()=>[N(`div`,{"data-slot":`body`,class:B(s.value.body({class:T(a).ui?.body}))},[z(e.$slots,`default`,{open:t})],2)]),_:2},1032,[`class`]),T(a).actions?.length||i.actions?(A(),L(`div`,{key:0,"data-slot":`actions`,"data-state":f.value&&t?`open`:`closed`,class:B(s.value.actions({class:T(a).ui?.actions}))},[z(e.$slots,`actions`,{},()=>[(A(!0),L(F,null,yt(T(a).actions,(e,t)=>(A(),P(Xr,D({key:t,size:`xs`},{ref_for:!0},e),null,16))),128))])],10,oT)):R(``,!0)]),_:3},8,[`open`,`disabled`,`unmount-on-hide`,`class`]))}},cT={class:`ai-tool-io`},lT={key:0,class:`ai-tool-label`},uT={key:1,class:`ai-tool-body`},dT={key:2,class:`ai-tool-label`},fT={key:3,class:`ai-tool-body`},pT=[`data-state`],mT={class:`ai-review-hd`},hT={key:0,class:`ai-review-why`},gT={class:`ai-review-list`},_T={class:`ai-review-before`},vT={class:`ai-review-after`},yT={key:1,class:`ai-review-acts`},bT=[`onClick`],xT=[`onClick`],ST={key:2,class:`ai-review-state`},CT=[`src`,`alt`,`title`],wT={key:4,class:`ai-img-missing`},TT={key:5,class:`ai-md`},ET={key:1,class:`ai-text`},DT=Object.assign(O({__name:`MessageContent`,props:{message:{},streaming:{type:Boolean}},emits:[`resolve`],setup(e,{emit:t}){let n=e,r=t,i=e=>!!n.streaming&&e===n.message.parts.length-1,a={search_agile:`检索敏捷数据`,update_agile:`更新敏捷数据`},o=e=>{let t=a[e.toolName]??e.toolName;return e.state===`running`?`${t}中…`:t},s=e=>{let t=e.args;return t?.query??(t?.file?`agile/${t.file}.json`:``)},c=e=>e.args?JSON.stringify(e.args,null,2):``,l=e=>e.state===`running`?``:e.output??``,u=e=>e===void 0?`(无)`:typeof e==`string`?e:JSON.stringify(e);return(e,t)=>{let a=iT,d=sT,f=An,p=eT;return A(!0),L(F,null,yt(n.message.parts,(e,m)=>(A(),L(F,{key:`${n.message.id}-${m}`},[e.type===`reasoning`?(A(),P(a,{key:0,text:e.text,streaming:i(m),duration:e.durationSec},null,8,[`text`,`streaming`,`duration`])):e.type===`tool`?(A(),P(d,{key:1,text:o(e),suffix:s(e),streaming:e.state===`running`,chevron:`leading`},{default:I(()=>[N(`div`,cT,[c(e)?(A(),L(`p`,lT,`参数`)):R(``,!0),c(e)?(A(),L(`pre`,uT,j(c(e)),1)):R(``,!0),l(e)?(A(),L(`p`,dT,`结果`)):R(``,!0),l(e)?(A(),L(`pre`,fT,j(l(e)),1)):R(``,!0)])]),_:2},1032,[`text`,`suffix`,`streaming`])):e.type===`review`?(A(),L(`div`,{key:2,class:`ai-review`,"data-state":e.state},[N(`p`,mT,[M(f,{name:`i-lucide-file-pen-line`}),t[0]||=Zt(` 待审变更 · `,-1),N(`code`,null,`agile/`+j(e.file)+`.json`,1)]),e.reason?(A(),L(`p`,hT,j(e.reason),1)):R(``,!0),N(`ul`,gT,[(A(!0),L(F,null,yt(e.changes,e=>(A(),L(`li`,{key:e.path},[N(`code`,null,j(e.path),1),N(`span`,_T,j(u(e.before)),1),t[1]||=N(`span`,{class:`ai-review-arrow`},`→`,-1),N(`span`,vT,j(u(e.after)),1)]))),128))]),e.state===`pending`?(A(),L(`div`,yT,[N(`button`,{class:`btn btn-dark btn-sm`,type:`button`,onClick:t=>r(`resolve`,e.pendingId,!0)},` 批准并写入 `,8,bT),N(`button`,{class:`btn btn-sm`,type:`button`,onClick:t=>r(`resolve`,e.pendingId,!1)},`驳回`,8,xT)])):(A(),L(`p`,ST,j(e.message),1))],8,pT)):e.type===`image`&&e.url?(A(),L(`img`,{key:3,class:`ai-msg-img`,src:e.url,alt:e.name||`图片`,title:e.name},null,8,CT)):e.type===`image`?(A(),L(`p`,wT,[M(f,{name:`i-lucide-image-off`}),N(`span`,null,j(e.name||`图片未保存`)+`(历史会话不保存图片)`,1)])):e.type===`text`?(A(),L(`div`,TT,[n.message.role===`assistant`?(A(),P(p,{key:0,value:e.text,streaming:i(m)},null,8,[`value`,`streaming`])):(A(),L(`p`,ET,j(e.text),1))])):R(``,!0)],64))),128)}}}),{__name:`ChatMessageContent`}),OT={slots:{content:`flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto`,arrow:`fill-bg stroke-default`,text:`truncate`,kbds:`hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5`,kbdsSize:`sm`}},kT={__name:`UTooltip`,props:{text:{type:String,required:!1},kbds:{type:Array,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},delayDuration:{type:Number,required:!1},disableHoverableContent:{type:Boolean,required:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=Ht(),a=Rn(`tooltip`,n),o=On(),s=Cu(),c=jr(Dr(a,`defaultOpen`,`open`,`delayDuration`,`disableHoverableContent`,`disableClosingTrigger`,`ignoreNonKeyboardFocus`),r),l=nr(mt(()=>a.portal)),u=mt(()=>jn(a.content,s.content.value,{side:`bottom`,sideOffset:8,collisionPadding:8})),d=mt(()=>jn(a.arrow,{rounded:!0})),{getKbdKey:f}=Gu(),p=V(()=>u.value.ariaLabel||i.content?u.value.ariaLabel:[a.text,...(a.kbds||[]).map(e=>f(typeof e==`object`?e.value:e))].filter(Boolean).join(` `)),m=V(()=>Bn({extend:OT,...o.ui?.tooltip||{}})({side:u.value.side}));return(e,t)=>(A(),P(T(ku),D(T(c),{disabled:!(T(a).text||T(a).kbds?.length||i.content)||T(a).disabled}),{default:I(({open:t})=>[i.default||T(a).reference?(A(),P(T(Pu),D({key:0},e.$attrs,{"as-child":``,reference:T(a).reference,class:T(a).class}),{default:I(()=>[z(e.$slots,`default`,{open:t})]),_:2},1040,[`reference`,`class`])):R(``,!0),M(T(Nu),E(k(T(l))),{default:I(()=>[M(T(Vr),null,{default:I(()=>[M(T(Mu),D(u.value,{"aria-label":p.value,"data-slot":`content`,class:m.value.content({class:[!i.default&&T(a).class,T(a).ui?.content]})}),{default:I(()=>[z(e.$slots,`content`,{ui:m.value},()=>[T(a).text?(A(),L(`span`,{key:0,"data-slot":`text`,class:B(m.value.text({class:T(a).ui?.text}))},j(T(a).text),3)):R(``,!0),T(a).kbds?.length?(A(),L(`span`,{key:1,"data-slot":`kbds`,class:B(m.value.kbds({class:T(a).ui?.kbds}))},[(A(!0),L(F,null,yt(T(a).kbds,(e,t)=>(A(),P(Ju,D({key:t,size:T(a).ui?.kbdsSize||m.value.kbdsSize()},{ref_for:!0},typeof e==`string`?{value:e}:e),null,16,[`size`]))),128))],2)):R(``,!0)]),T(a).arrow?(A(),P(T(Su),D({key:0},d.value,{"data-slot":`arrow`,class:m.value.arrow({class:T(a).ui?.arrow})}),null,16,[`class`])):R(``,!0)]),_:3},16,[`aria-label`,`class`])]),_:3})]),_:3},16)]),_:3},16,[`disabled`]))}},AT={slots:{root:`group/message relative w-full`,header:`flex mb-1.5`,container:`relative flex items-start`,body:`min-w-0`,leading:`inline-flex items-center justify-center min-h-6`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,files:`flex items-center gap-1.5`,content:`relative text-pretty wrap-break-word *:first:mt-0 *:last:mb-0`,actions:[`[@media(hover:hover)]:opacity-0 group-hover/message:opacity-100 absolute bottom-0 flex items-center`,`transition-opacity ease-out`]},variants:{variant:{solid:``,outline:``,soft:``,subtle:``,naked:``},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},side:{left:{},right:{container:`justify-end ms-auto max-w-[75%]`,header:`justify-end`,actions:`right-0`}},leading:{true:``},actions:{true:``},compact:{true:{root:`scroll-mt-3`,container:`gap-1.5 pb-3`,content:`space-y-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`},false:{root:`scroll-mt-4 sm:scroll-mt-6`,container:`gap-3 pb-8`,content:`space-y-4`,leadingIcon:`size-8`,leadingAvatarSize:`md`}}},compoundVariants:[{compact:!0,actions:!0,class:{container:`pb-8`}},{variant:[`solid`,`outline`,`soft`,`subtle`],compact:!1,class:{content:`px-4 py-3 rounded-lg min-h-12`,leading:`mt-2`}},{variant:[`solid`,`outline`,`soft`,`subtle`],compact:!0,class:{content:`px-2 py-1 rounded-lg min-h-8`,leading:`mt-1`}},{variant:`naked`,side:`left`,class:{body:`w-full`,content:`w-full`}},{color:`primary`,variant:`solid`,class:{content:`bg-primary text-inverted`}},{color:`secondary`,variant:`solid`,class:{content:`bg-secondary text-inverted`}},{color:`success`,variant:`solid`,class:{content:`bg-success text-inverted`}},{color:`info`,variant:`solid`,class:{content:`bg-info text-inverted`}},{color:`warning`,variant:`solid`,class:{content:`bg-warning text-inverted`}},{color:`error`,variant:`solid`,class:{content:`bg-error text-inverted`}},{color:`primary`,variant:`outline`,class:{content:`text-primary ring ring-primary/25`}},{color:`secondary`,variant:`outline`,class:{content:`text-secondary ring ring-secondary/25`}},{color:`success`,variant:`outline`,class:{content:`text-success ring ring-success/25`}},{color:`info`,variant:`outline`,class:{content:`text-info ring ring-info/25`}},{color:`warning`,variant:`outline`,class:{content:`text-warning ring ring-warning/25`}},{color:`error`,variant:`outline`,class:{content:`text-error ring ring-error/25`}},{color:`primary`,variant:`soft`,class:{content:`bg-primary/10 text-primary`}},{color:`secondary`,variant:`soft`,class:{content:`bg-secondary/10 text-secondary`}},{color:`success`,variant:`soft`,class:{content:`bg-success/10 text-success`}},{color:`info`,variant:`soft`,class:{content:`bg-info/10 text-info`}},{color:`warning`,variant:`soft`,class:{content:`bg-warning/10 text-warning`}},{color:`error`,variant:`soft`,class:{content:`bg-error/10 text-error`}},{color:`primary`,variant:`subtle`,class:{content:`bg-primary/10 text-primary ring ring-primary/25`}},{color:`secondary`,variant:`subtle`,class:{content:`bg-secondary/10 text-secondary ring ring-secondary/25`}},{color:`success`,variant:`subtle`,class:{content:`bg-success/10 text-success ring ring-success/25`}},{color:`info`,variant:`subtle`,class:{content:`bg-info/10 text-info ring ring-info/25`}},{color:`warning`,variant:`subtle`,class:{content:`bg-warning/10 text-warning ring ring-warning/25`}},{color:`error`,variant:`subtle`,class:{content:`bg-error/10 text-error ring ring-error/25`}},{color:`primary`,variant:`naked`,class:{content:`text-primary`}},{color:`secondary`,variant:`naked`,class:{content:`text-secondary`}},{color:`success`,variant:`naked`,class:{content:`text-success`}},{color:`info`,variant:`naked`,class:{content:`text-info`}},{color:`warning`,variant:`naked`,class:{content:`text-warning`}},{color:`error`,variant:`naked`,class:{content:`text-error`}},{color:`neutral`,variant:`solid`,class:{content:`bg-inverted text-inverted`}},{color:`neutral`,variant:`outline`,class:{content:`bg-default ring ring-default`}},{color:`neutral`,variant:`soft`,class:{content:`bg-elevated/50`}},{color:`neutral`,variant:`subtle`,class:{content:`bg-elevated/50 ring ring-default`}}],defaultVariants:{side:`left`,variant:`naked`,color:`neutral`}},jT={__name:`UChatMessage`,props:{as:{type:null,required:!1,default:`article`},icon:{type:null,required:!1},avatar:{type:Object,required:!1},variant:{type:null,required:!1},color:{type:null,required:!1},side:{type:null,required:!1},actions:{type:Array,required:!1},compact:{type:Boolean,required:!1},content:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},id:{type:String,required:!0},role:{type:String,required:!0},metadata:{type:null,required:!1},parts:{type:Array,required:!0}},setup(e){let t=e,n=Ht(),r=Rn(`chatMessage`,t),i=On(),a=V(()=>r.parts?.filter(e=>e.type===`file`)??[]),o=V(()=>r.parts?.filter(e=>e.type===`text`)??[]),s=V(()=>Nn(r,[`as`,`icon`,`avatar`,`variant`,`color`,`side`,`actions`,`compact`,`class`,`ui`,`content`])),c=V(()=>Bn({extend:AT,...i.ui?.chatMessage||{}})({variant:r.variant,color:r.color,side:r.side,leading:!!r.icon||!!r.avatar||!!n.leading,actions:!!r.actions||!!n.actions,compact:r.compact}));return(e,t)=>(A(),P(T(br),{as:T(r).as,"data-role":T(r).role,"data-slot":`root`,class:B(c.value.root({class:[T(r).ui?.root,T(r).class]}))},{default:I(()=>[n.files&&a.value.length||n.header?(A(),L(`div`,{key:0,"data-slot":`header`,class:B(c.value.header({class:T(r).ui?.header}))},[z(e.$slots,`header`,E(k({...s.value})),()=>[n.files&&a.value.length?(A(),L(`div`,{key:0,"data-slot":`files`,class:B(c.value.files({class:T(r).ui?.files}))},[z(e.$slots,`files`,E(k({...s.value,parts:a.value})))],2)):R(``,!0)])],2)):R(``,!0),N(`div`,{"data-slot":`container`,class:B(c.value.container({class:T(r).ui?.container}))},[T(r).icon||T(r).avatar||n.leading?(A(),L(`div`,{key:0,"data-slot":`leading`,class:B(c.value.leading({class:T(r).ui?.leading}))},[z(e.$slots,`leading`,E(k({...s.value,avatar:T(r).avatar,ui:c.value})),()=>[T(r).icon?(A(),P(An,{key:0,name:T(r).icon,"data-slot":`leadingIcon`,class:B(c.value.leadingIcon({class:T(r).ui?.leadingIcon}))},null,8,[`name`,`class`])):T(r).avatar?(A(),P(Hr,D({key:1,size:T(r).ui?.leadingAvatarSize||c.value.leadingAvatarSize()},T(r).avatar,{"data-slot":`leadingAvatar`,class:c.value.leadingAvatar({class:T(r).ui?.leadingAvatar})}),null,16,[`size`,`class`])):R(``,!0)])],2)):R(``,!0),T(r).content||o.value.length||n.content||T(r).actions||n.actions||n.body?(A(),L(`div`,{key:1,"data-slot":`body`,class:B(c.value.body({class:T(r).ui?.body}))},[z(e.$slots,`body`,E(k({...s.value})),()=>[T(r).content||o.value.length||n.content?(A(),L(`div`,{key:0,"data-slot":`content`,class:B(c.value.content({class:T(r).ui?.content}))},[z(e.$slots,`content`,E(k({...s.value,content:T(r).content})),()=>[T(r).content?(A(),L(F,{key:0},[Zt(j(T(r).content),1)],64)):(A(!0),L(F,{key:1},yt(o.value,(e,t)=>(A(),L(F,{key:`${T(r).id}-${e.type}-${t}`},[Zt(j(e.text),1)],64))),128))])],2)):R(``,!0),T(r).actions||n.actions?(A(),L(`div`,{key:1,"data-slot":`actions`,class:B(c.value.actions({class:T(r).ui?.actions}))},[z(e.$slots,`actions`,E(k({...s.value,actions:T(r).actions})),()=>[(A(!0),L(F,null,yt(T(r).actions,(e,t)=>(A(),P(kT,{key:t,text:e.label},{default:I(()=>[M(Xr,D({size:`sm`,color:`neutral`,variant:`ghost`,"aria-label":e.label},{ref_for:!0},T(Nn)(e,[`onClick`]),{label:void 0,onClick:t=>typeof e.onClick==`function`?e.onClick(t,s.value):void 0}),null,16,[`aria-label`,`onClick`])]),_:2},1032,[`text`]))),128))])],2)):R(``,!0)])],2)):R(``,!0)],2)]),_:3},8,[`as`,`data-role`,`class`]))}},MT={slots:{root:`w-full flex flex-col gap-1 flex-1 px-2.5 [&>article]:last-of-type:min-h-(--last-message-height)`,indicator:`h-6 flex items-center gap-1 py-3 *:size-2 *:rounded-full *:bg-elevated motion-safe:[&>*:nth-child(1)]:animate-[bounce_1s_infinite] motion-safe:[&>*:nth-child(2)]:animate-[bounce_1s_0.15s_infinite] motion-safe:[&>*:nth-child(3)]:animate-[bounce_1s_0.3s_infinite]`,viewport:`absolute inset-x-0 top-[86%] data-[state=open]:animate-[fade-in_200ms_var(--ease-out)] data-[state=closed]:animate-[fade-out_200ms_var(--ease-out)]`,autoScroll:`rounded-full absolute right-1/2 translate-x-1/2 bottom-0`},variants:{compact:{true:``,false:``}}},NT=[`data-status`],PT=[`data-state`],FT={__name:`UChatMessages`,props:{messages:{type:null,required:!1},status:{type:String,required:!1},shouldAutoScroll:{type:Boolean,required:!1,default:!1},shouldScrollToBottom:{type:Boolean,required:!1,default:!0},autoScroll:{type:[Boolean,Object],required:!1,default:!0},autoScrollIcon:{type:null,required:!1},user:{type:Object,required:!1},assistant:{type:Object,required:!1},compact:{type:Boolean,required:!1},spacingOffset:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e,{expose:t}){let n=e,r=Ht(),i=Rn(`chatMessages`,n),a=()=>Nn(r,[`default`,`indicator`,`viewport`]);function o(){if(i.status===`submitted`)return!0;if(i.status!==`streaming`)return!1;let e=i.messages?.[i.messages.length-1];return e?.role===`assistant`&&!e.parts?.length}let{t:s}=Vu(),c=On(),l=mt(()=>jn(i.user,{side:`right`,variant:`soft`})),u=mt(()=>jn(i.assistant,{side:`left`,variant:`naked`})),d=V(()=>Bn({extend:MT,...c.ui?.chatMessages||{}})({compact:i.compact})),f=U(null),p=U(null),m=U(new Map),h=U(!1),g=U(0),_=U(!1),v=U(0),y=U(!1);function b(e,t){let n=t?.$el;n&&m.value.set(e,n)}function x(e){let t=m.value.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}function S(e=!0){p.value&&(e?p.value.scrollTo({top:p.value.scrollHeight,behavior:`smooth`}):p.value.scrollTop=p.value.scrollHeight)}Sr([()=>i.messages,()=>i.status],([e,t])=>{i.messages?.length?t===`streaming`&&C():(h.value=!1,y.value=!1,v.value=0,m.value.clear())},{deep:!0,throttle:50,leading:!0}),Nt(()=>i.status,e=>{if(e!==`submitted`)return;let t=i.messages?.[i.messages.length-1];t&&t.role===`user`&&(y.value=!1,bt(()=>{_.value=!0,te(),bt(()=>{x(t.id)})}))});function C(){if(!p.value)return;let e=p.value.scrollTop+p.value.clientHeight,t=p.value.scrollHeight;h.value=t-e>=100,p.value.scrollTop<v.value?y.value=!0:t-e<100&&(y.value=!1),v.value=p.value.scrollTop}function w(){y.value=!1,S()}function ee(e){if(!e)return document.documentElement;let t=/auto|scroll/,n=e;for(;n&&n!==document.body&&n!==document.documentElement;){let e=window.getComputedStyle(n);if(t.test(e.overflowY))return n;n=n.parentElement}return document.documentElement}function te(){if(!f.value||!p.value||!i.messages?.length||!_.value)return;let{height:e}=fr(p.value),t=i.messages.findLast(e=>e.role===`user`);if(!t)return;let n=m.value.get(t.id);if(!n)return;let r=i.spacingOffset||0,a=window.getComputedStyle(f.value),o=window.getComputedStyle(p.value);r+=Number.parseFloat(a.rowGap)||Number.parseFloat(a.gap)||0,r+=Number.parseFloat(o.paddingTop)||0,r+=Number.parseFloat(o.paddingBottom)||0,g.value=Math.max(e.value-n.offsetHeight-r,0)}return ut(()=>{p.value=ee(f.value),p.value&&(v.value=p.value.scrollTop,i.shouldScrollToBottom?(S(!1),setTimeout(()=>{S(!1)},100)):bt(()=>{C()}),hr(p,`scroll`,C),hr(window,`resize`,()=>bt(te)),f.value&&dr(f,()=>{i.shouldAutoScroll&&i.status===`streaming`&&!y.value&&S(!1)},{childList:!0,subtree:!0}))}),t({registerMessageRef:b}),(e,t)=>(A(),L(`div`,{ref_key:`el`,ref:f,"data-status":T(i).status,"data-slot":`root`,class:B(d.value.root({class:[T(i).ui?.root,T(i).class]})),style:kt({"--last-message-height":`${g.value}px`})},[z(e.$slots,`default`,{registerMessageRef:b},()=>[(A(!0),L(F,null,yt(T(i).messages,t=>(A(),L(F,{key:t.id},[t.parts?.length?(A(),P(jT,D({key:0,ref_for:!0},{...t.role===`user`?l.value:u.value,...t},{ref_for:!0,ref:e=>b(t.id,e),compact:T(i).compact}),At({_:2},[yt(a(),(n,r)=>({name:r,fn:I(n=>[z(e.$slots,r,D({ref_for:!0},{...n,message:t}))])}))]),1040,[`compact`])):R(``,!0)],64))),128))]),o()?(A(),P(jT,D({key:0,id:`indicator`,role:`assistant`},{...u.value,actions:void 0,parts:[]},{compact:T(i).compact}),{content:I(()=>[z(e.$slots,`indicator`,{ui:d.value},()=>[N(`div`,{"data-slot":`indicator`,class:B(d.value.indicator({class:T(i).ui?.indicator}))},[...t[0]||=[N(`span`,null,null,-1),N(`span`,null,null,-1),N(`span`,null,null,-1)]],2)])]),_:3},16,[`compact`])):R(``,!0),M(T(Fr),{present:h.value},{default:I(()=>[N(`div`,{"data-state":h.value?`open`:`closed`,"data-slot":`viewport`,class:B(d.value.viewport({class:T(i).ui?.viewport}))},[z(e.$slots,`viewport`,{ui:d.value,onClick:w},()=>[T(i).autoScroll?(A(),P(Xr,D({key:0,icon:T(i).autoScrollIcon||T(c).ui.icons.arrowDown,color:`neutral`,variant:`outline`,"aria-label":T(s)(`chatMessages.autoScroll`)},typeof T(i).autoScroll==`object`?T(i).autoScroll:{},{"data-slot":`autoScroll`,class:d.value.autoScroll({class:T(i).ui?.autoScroll}),onClick:w}),null,16,[`icon`,`aria-label`,`class`])):R(``,!0)])],10,PT)]),_:3},8,[`present`])],14,NT))}};function IT(e,t={}){let n=e.detail.originalEvent,r=n.target;r?.isConnected?t.scrollable&&(n.offsetX>r.clientWidth||n.offsetY>r.clientHeight)&&e.preventDefault():e.preventDefault()}var LT={slots:{content:`bg-default shadow-lg rounded-md ring ring-default data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-popover-content-transform-origin) focus:outline-none pointer-events-auto`,arrow:`fill-bg stroke-default`}},RT={__name:`UPopover`,props:{mode:{type:null,required:!1,default:`click`},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},modal:{type:Boolean,required:!1},openDelay:{type:Number,required:!1,default:0},closeDelay:{type:Number,required:!1,default:0},enableTouch:{type:Boolean,required:!1}},emits:[`close:prevent`,`update:open`],setup(e,{emit:t}){let n={Root:hl,Trigger:Cl,Portal:Sl,Content:xl,Arrow:_l,Anchor:gl},r={Root:Wl,Trigger:Xl,Portal:Yl,Content:Jl,Arrow:Vl},i=e,a=t,o=Ht(),s=Rn(`popover`,i),c=On(),l=s.mode===`hover`?Dr(s,`defaultOpen`,`open`,`openDelay`,`closeDelay`,`enableTouch`):Dr(s,`defaultOpen`,`open`,`modal`),u=jr(l,a),d=nr(mt(()=>s.portal)),f=mt(()=>jn(s.content,{side:`bottom`,sideOffset:8,collisionPadding:8})),p=V(()=>s.dismissible?{pointerDownOutside:IT}:[`interactOutside`,`escapeKeyDown`].reduce((e,t)=>(e[t]=e=>{e.preventDefault(),a(`close:prevent`)},e),{})),m=mt(()=>jn(s.arrow,{rounded:!0})),h=V(()=>Bn({extend:LT,...c.ui?.popover||{}})({side:f.value.side})),g=V(()=>s.mode===`hover`?r:n);return(e,t)=>(A(),P(T(g).Root,E(k(T(u))),{default:I(({open:t,close:n})=>[o.default?(A(),P(T(g).Trigger,{key:0,"as-child":``,class:B(T(s).class)},{default:I(()=>[z(e.$slots,`default`,{open:t})]),_:2},1032,[`class`])):R(``,!0),`Anchor`in g.value&&o.anchor?(A(),P(T(g).Anchor,{key:1,"as-child":``},{default:I(()=>[z(e.$slots,`anchor`,E(k(n?{close:n}:{})))]),_:2},1024)):R(``,!0),M(T(g).Portal,E(k(T(d))),{default:I(()=>[M(T(Vr),null,{default:I(()=>[M(T(g).Content,D(f.value,{reference:T(s).reference??T(s).content?.reference,"data-slot":`content`,class:h.value.content({class:[!o.default&&T(s).class,T(s).ui?.content]})},Ct(p.value)),{default:I(()=>[z(e.$slots,`content`,E(k(n?{close:n}:{}))),T(s).arrow?(A(),P(T(g).Arrow,D({key:0},m.value,{"data-slot":`arrow`,class:h.value.arrow({class:T(s).ui?.arrow})}),null,16,[`class`])):R(``,!0)]),_:2},1040,[`reference`,`class`])]),_:2},1024)]),_:2},1040)]),_:3},16))}},zT={slots:{base:``}},BT=Object.assign({inheritAttrs:!1},{__name:`UChatPromptSubmit`,props:{status:{type:String,required:!1,default:`ready`},icon:{type:[String,Boolean],required:!1,skipCheck:!0},color:{type:null,required:!1},variant:{type:null,required:!1},streamingIcon:{type:null,required:!1},streamingColor:{type:null,required:!1,default:`neutral`},streamingVariant:{type:null,required:!1,default:`subtle`},submittedIcon:{type:null,required:!1},submittedColor:{type:null,required:!1,default:`neutral`},submittedVariant:{type:null,required:!1,default:`subtle`},errorIcon:{type:null,required:!1},errorColor:{type:null,required:!1,default:`error`},errorVariant:{type:null,required:!1,default:`soft`},ui:{type:Object,required:!1},class:{type:null,required:!1},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},emits:[`stop`,`reload`],setup(e,{emit:t}){let n=e,r=t,i=Ht(),a=Rn(`chatPromptSubmit`,n),{t:o}=Vu(),s=On(),c=jr(Or(a,`icon`,`color`,`variant`,`status`,`disabled`,`streamingIcon`,`streamingColor`,`streamingVariant`,`submittedIcon`,`submittedColor`,`submittedVariant`,`errorIcon`,`errorColor`,`errorVariant`,`class`,`ui`)),l=V(()=>a.status===`ready`&&a.disabled),u=V(()=>({ready:{icon:a.icon===!1?void 0:a.icon??s.ui.icons.arrowUp,color:a.color,variant:a.variant,type:`submit`},submitted:{icon:a.submittedIcon||s.ui.icons.stop,color:a.submittedColor,variant:a.submittedVariant,onClick(e){r(`stop`,e)}},streaming:{icon:a.streamingIcon||s.ui.icons.stop,color:a.streamingColor,variant:a.streamingVariant,onClick(e){r(`stop`,e)}},error:{icon:a.errorIcon||s.ui.icons.reload,color:a.errorColor,variant:a.errorVariant,onClick(e){r(`reload`,e)}}})[a.status]),d=V(()=>({ready:o(`chatPromptSubmit.label`),submitted:o(`chatPromptSubmit.stop`),streaming:o(`chatPromptSubmit.stop`),error:o(`chatPromptSubmit.reload`)})[a.status]),f=V(()=>Bn({extend:zT,...s.ui?.chatPromptSubmit||{}})());return(e,t)=>(A(),P(Xr,D({...T(c),...u.value,disabled:l.value,"aria-label":d.value,...e.$attrs},{class:f.value.base({class:[T(a).ui?.base,T(a).class]}),ui:T(Ln)(f.value,T(a).ui)}),At({_:2},[yt(i,(t,n)=>({name:n,fn:I(t=>[z(e.$slots,n,E(k(t)))])}))]),1040,[`class`,`ui`]))}});function VT(e){let t=!1;function n(e){return e.isComposing||e.keyCode===229}function r(r){t||n(r)||(r.preventDefault(),e(r))}let i;function a(){clearTimeout(i),t=!0,i=setTimeout(()=>{t=!1},50)}return{onKeydown:r,onCompositionEnd:a}}var HT={slots:{root:`relative flex flex-col items-stretch gap-2 px-2.5 py-2 w-full rounded-lg backdrop-blur-sm`,header:`flex items-center gap-1.5`,body:`items-start gap-1.5`,footer:`flex items-center justify-between gap-1.5`,base:`px-0`},variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{outline:{root:`bg-default/75 ring ring-default`},soft:{root:`bg-elevated/50`},subtle:{root:`bg-elevated/50 ring ring-default`},naked:{root:``}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:{root:`outline-primary/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-primary has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-primary`}},{color:`secondary`,variant:[`outline`,`subtle`],class:{root:`outline-secondary/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-secondary has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-secondary`}},{color:`success`,variant:[`outline`,`subtle`],class:{root:`outline-success/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-success has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-success`}},{color:`info`,variant:[`outline`,`subtle`],class:{root:`outline-info/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-info has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-info`}},{color:`warning`,variant:[`outline`,`subtle`],class:{root:`outline-warning/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-warning has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-warning`}},{color:`error`,variant:[`outline`,`subtle`],class:{root:`outline-error/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-error has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-error`}},{color:`primary`,variant:`soft`,class:{root:`outline-primary/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`secondary`,variant:`soft`,class:{root:`outline-secondary/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`success`,variant:`soft`,class:{root:`outline-success/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`info`,variant:`soft`,class:{root:`outline-info/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`warning`,variant:`soft`,class:{root:`outline-warning/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`error`,variant:`soft`,class:{root:`outline-error/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}},{color:`neutral`,variant:[`outline`,`subtle`],class:{root:`outline-inverted/25 has-[textarea:focus-visible]:outline-3 has-[textarea:focus-visible]:ring-inverted has-[[contenteditable]:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:ring-inverted`}},{color:`neutral`,variant:`soft`,class:{root:`outline-inverted/25 has-[textarea:focus-visible]:outline-3 has-[[contenteditable]:focus-visible]:outline-3`}}],defaultVariants:{color:`primary`,variant:`outline`}},UT=Object.assign({inheritAttrs:!1},{__name:`UChatPrompt`,props:Rt({as:{type:null,required:!1,default:`form`},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},submitOnEnter:{type:Boolean,required:!1,default:!0},error:{type:Error,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},rows:{type:Number,required:!1,default:1},autofocus:{type:Boolean,required:!1,default:!0},autofocusDelay:{type:Number,required:!1},autoresize:{type:Boolean,required:!1,default:!0},autoresizeDelay:{type:Number,required:!1},maxrows:{type:Number,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},disabled:{type:Boolean,required:!1}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:Rt([`submit`,`close`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=Ht(),o=Rn(`chatPrompt`,r),s=qt(e,`modelValue`,{type:String,default:``}),{t:c}=Vu(),l=On(),u=jr(Dr(o,`rows`,`autofocus`,`autofocusDelay`,`autoresize`,`autoresizeDelay`,`maxrows`,`icon`,`avatar`,`loading`,`loadingIcon`)),d=()=>Nn(a,[`header`,`footer`,`body`]),f=V(()=>Bn({extend:HT,...l.ui?.chatPrompt||{}})({color:o.color,variant:o.variant})),p=Gt(`textareaRef`);function m(e){s.value.trim()!==``&&i(`submit`,e??new Event(`submit`))}function h(e){p.value?.textareaRef?.blur(),i(`close`,e??new Event(`close`))}let{onKeydown:g,onCompositionEnd:_}=VT(e=>{m(e)});function v(e){if(o.submitOnEnter){if(e.shiftKey||e.ctrlKey||e.metaKey||e.altKey)return}else if(!e.ctrlKey&&!e.metaKey)return;g(e)}function y(e){e.key===`Enter`?v(e):e.key===`Escape`&&h(e)}return t({textareaRef:mt(()=>p.value?.textareaRef)}),(e,t)=>(A(),P(T(br),{as:T(o).as,method:T(o).as===`form`?`post`:void 0,"data-slot":e.$attrs[`data-slot`]??`root`,class:B(f.value.root({class:[T(o).ui?.root,T(o).class]})),onSubmit:nt(m,[`prevent`])},{default:I(()=>[a.header?(A(),L(`div`,{key:0,"data-slot":`header`,class:B(f.value.header({class:T(o).ui?.header}))},[z(e.$slots,`header`)],2)):R(``,!0),z(e.$slots,`body`,{submit:m,close:h,placeholder:T(o).placeholder??T(c)(`chatPrompt.placeholder`),disabled:!!T(o).error||T(o).disabled,ui:f.value},()=>[M(mp,D({ref_key:`textareaRef`,ref:p,modelValue:s.value,"onUpdate:modelValue":t[0]||=e=>s.value=e,placeholder:T(o).placeholder??T(c)(`chatPrompt.placeholder`),disabled:!!T(o).error||T(o).disabled,variant:`none`,fixed:``},{...T(u),...e.$attrs},{ui:T(Ln)(T(Nn)(f.value,[`root`,`body`,`header`,`footer`]),T(o).ui),"data-slot":`body`,class:f.value.body({class:T(o).ui?.body}),onKeydown:y,onCompositionend:T(_)}),At({_:2},[yt(d(),(t,n)=>({name:n,fn:I(t=>[z(e.$slots,n,E(k(t)))])}))]),1040,[`modelValue`,`placeholder`,`disabled`,`ui`,`class`,`onCompositionend`])]),a.footer?(A(),L(`div`,{key:1,"data-slot":`footer`,class:B(f.value.footer({class:T(o).ui?.footer}))},[z(e.$slots,`footer`)],2)):R(``,!0)]),_:3},8,[`as`,`method`,`data-slot`,`class`]))}}),WT=e=>`${e}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,GT=1400,KT=`scrum-skills:ai:threads:v1`;function qT(e){return e.map(e=>({...e,parts:e.parts.map(e=>e.type===`image`?{...e,url:``}:e)}))}function JT(e){let t=(e.find(e=>e.role===`user`)?.parts.filter(e=>e.type===`text`).map(e=>e.text).join(``)??``).replace(/\s+/g,` `).trim();return t?t.length>24?`${t.slice(0,24)}…`:t:`新会话`}async function YT(e){let t=e.name||`粘贴的图片`,n=async()=>({id:WT(`img`),url:await XT(e),name:t});try{let r=await createImageBitmap(e),i=Math.min(1,GT/Math.max(r.width,r.height)),a=document.createElement(`canvas`);a.width=Math.max(1,Math.round(r.width*i)),a.height=Math.max(1,Math.round(r.height*i));let o=a.getContext(`2d`);return o?(o.fillStyle=`#fff`,o.fillRect(0,0,a.width,a.height),o.drawImage(r,0,0,a.width,a.height),r.close(),{id:WT(`img`),url:a.toDataURL(`image/jpeg`,.86),name:t}):n()}catch{return n()}}function XT(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result??``)),r.onerror=()=>n(r.error??Error(`读不到这张图片`)),r.readAsDataURL(e)})}var ZT={provider:`deepseek`,baseUrl:`https://api.deepseek.com`,model:`deepseek-flash`,systemPrompt:``,temperature:.3,maxToolRounds:30,contextLimit:256e3,autoCompact:!0,reviewMode:`manual`},QT=`帮我定下一步开发计划。严格按下面流程走,别跳步:
95
+ 1. 先查再答:用 search_agile 看 backlog 里未完成的故事(draft / ready / in-progress / review)、sprints 的迭代与里程碑、journal 最近做过什么。查不到就说查不到,不要编 id、状态或日期。
96
+ 2. 列 2~4 个候选,每个写清:故事 id + 标题、当前状态、依赖(dependsOn 是否都已 done)、是否阻塞、以及「为什么现在做它」(价值 / 依赖 / 里程碑截止)。按推荐顺序排。
97
+ 3. 只问我一个问题:选哪个作为下一步。然后停下等我说,不要自己拍板,也不要一口气抛一堆问题。
98
+ 4. 我选定之后,先别改任何数据,输出一段完整、能直接开工的任务描述,按这个骨架:
99
+ · 开工 <故事 id>:<一句话目标>
100
+ · 现状与依据:为什么是它(引用查到的状态 / 依赖 / 里程碑)
101
+ · 实现方式:分步骤写清怎么做,涉及哪些文件或模块,先写测试还是先补数据
102
+ · 验收标准:把它已有的验收列出来,缺的补上(given / when / then)
103
+ · 任务拆分:T1..Tn,标注 test / impl,各自产出什么
104
+ · 收口动作:按本项目敏捷规范走——journal 记 red → green、tests.json 登记用例与执行记录、node tools/validate.mjs、last-change.json 按七项写交付汇报、重建看板产物
105
+ 5. 全程简体中文,直接给结论,不复述问题、不做自我介绍。`,$T=null;function eE(){let e=En(`ai-open`,()=>!1),t=En(`ai-settings-open`,()=>!1),n=En(`ai-config`,()=>({...ZT})),r=En(`ai-messages`,()=>[]),i=En(`ai-status`,()=>`ready`),a=En(`ai-error`,()=>``),o=En(`ai-loaded`,()=>!1),s=En(`ai-last-write`,()=>0),c=En(`ai-awaiting`,()=>``),l=En(`ai-threads`,()=>[]),u=En(`ai-thread-id`,()=>``),d=V(()=>o.value&&!n.value.hasKey&&n.value.provider!==`ollama`);async function f(){return(await ki(`/api/projects`)).token}async function p(e,t){return ki(e,{method:`POST`,headers:{"x-project-token":await f()},body:t})}async function m(){let e=await ki(`/api/ai/config`);return n.value={...ZT,...e},o.value=!0,!e.hasKey&&e.provider!==`ollama`&&!e.baseUrl?.includes(`localhost`)&&(t.value=!0),n.value}async function h(e){let r=await p(`/api/ai/config`,e);return n.value={...n.value,...r},o.value=!0,t.value=!1,n.value}async function g(e={}){return p(`/api/ai/models`,e)}function _(){let e={currentId:null,threads:[]};if(typeof localStorage>`u`)return e;try{let t=localStorage.getItem(KT);if(!t)return e;let n=JSON.parse(t),r=Array.isArray(n.threads)?n.threads.filter(e=>e&&typeof e.id==`string`&&Array.isArray(e.messages)):[];return{currentId:typeof n.currentId==`string`?n.currentId:null,threads:r.slice(0,20)}}catch{return e}}function v(e){if(typeof localStorage>`u`)return;let t=t=>localStorage.setItem(KT,JSON.stringify({currentId:e.currentId,threads:t.slice(0,20)}));try{t(e.threads)}catch{try{t(e.threads.slice(0,Math.max(1,Math.ceil(e.threads.length/2))))}catch{}}}function y(e){l.value=e.threads.map(e=>({id:e.id,title:e.title||JT(e.messages),updatedAt:e.updatedAt??0,count:e.messages.length}))}function b(){a.value=``,i.value=`ready`,c.value=``}function x(e=u.value||WT(`t`)){if(u.value&&e!==u.value||!r.value.length)return;u.value=e;let t=_(),n=t.threads.find(t=>t.id===e);t.threads=[{id:e,title:JT(r.value),createdAt:n?.createdAt??Date.now(),updatedAt:Date.now(),messages:qT(r.value)},...t.threads.filter(t=>t.id!==e)],t.currentId=e,v(t),y(t)}function S(){let e=_();y(e);let t=e.threads.find(t=>t.id===e.currentId);t&&(r.value=JSON.parse(JSON.stringify(t.messages)),u.value=t.id)}function C(){ue(),x(),u.value=``,r.value=[],b()}function w(e){ue(),x();let t=_(),n=t.threads.find(t=>t.id===e);n&&(r.value=JSON.parse(JSON.stringify(n.messages)),u.value=e,t.currentId=e,v(t),y(t),b())}function ee(e){let t=_(),n=t.currentId===e;t.threads=t.threads.filter(t=>t.id!==e),n&&(t.currentId=null),v(t),y(t),(n||u.value===e)&&(ue(),u.value=``,r.value=[],b())}let te=()=>r.value[r.value.length-1];function ne(e){let t=te();t?.role===`assistant`&&e(t)}function re(){ne(e=>{let t=Date.now();e.parts=e.parts.map(e=>e.type===`reasoning`&&e.startedAt&&!e.durationSec?{...e,durationSec:Math.max(1,Math.round((t-e.startedAt)/1e3))}:e)})}function ie(e,t){e===`text`&&re(),ne(n=>{let r=n.parts.slice(),i=r[r.length-1];i&&i.type===e?r[r.length-1]=e===`reasoning`?{...i,text:i.text+t,startedAt:i.startedAt??Date.now()}:{...i,text:i.text+t}:r.push(e===`reasoning`?{type:e,text:t,startedAt:Date.now()}:{type:e,text:t}),n.parts=r})}function ae(e){re(),ne(t=>{t.parts=[...t.parts,e]})}function oe(e,t,n){ne(r=>{r.parts=r.parts.map(r=>r.type===`tool`&&r.toolCallId===e?{...r,state:t?`done`:`error`,output:n}:r)})}function se(e,t,n){ne(r=>{r.parts=r.parts.map(r=>r.type===`review`&&r.pendingId===e?{...r,state:t,message:n??r.message}:r)})}function ce(){let e=new Set;for(let t=r.value.length-1;t>=0&&e.size<4;--t)for(let n of r.value[t].parts)n.type===`image`&&e.size<4&&e.add(n.id);let t=[];for(let n of r.value){let r=n.parts.filter(e=>e.type===`text`).map(e=>e.text).join(``),i=n.parts.filter(e=>e.type===`image`),a=i.filter(t=>e.has(t.id)&&t.url),o=i.length-a.length,s=o>0?`(之前附的 ${o} 张图片已省略)`:``;(r.trim()||a.length)&&(a.length?t.push({role:n.role,content:[...r.trim()?[{type:`text`,text:r}]:[],...s?[{type:`text`,text:s}]:[],...a.map(e=>({type:`image_url`,image_url:{url:e.url}}))]}):t.push({role:n.role,content:r.trim()?`${r}\n${s}`:s}))}return t}async function le(e,t=[]){let n=e.trim();if(!n&&!t.length||i.value===`submitted`||i.value===`streaming`)return;a.value=``;let o=u.value||WT(`t`);u.value=o;let l=n?[{type:`text`,text:n}]:[];for(let e of t)l.push({type:`image`,id:e.id,url:e.url,name:e.name});r.value=[...r.value,{id:WT(`u`),role:`user`,parts:l}],r.value=[...r.value,{id:WT(`a`),role:`assistant`,parts:[]}],i.value=`submitted`,$T=new AbortController;try{let e=await fetch(`/api/ai/chat`,{method:`POST`,headers:{"content-type":`application/json`,"x-project-token":await f()},body:JSON.stringify({messages:ce()}),signal:$T.signal});if(!e.ok||!e.body){let t=await e.text().catch(()=>``);throw Error(t||`对话接口返回 ${e.status}`)}i.value=`streaming`;let t=e.body.getReader(),n=new TextDecoder,r=``;for(;;){let{value:e,done:o}=await t.read();if(o)break;r+=n.decode(e,{stream:!0});let l=r.split(`
106
+ `);r=l.pop()??``;for(let e of l){let t=e.trim();if(!t.startsWith(`data:`))continue;let n=t.slice(5).trim();if(!n)continue;let r;try{r=JSON.parse(n)}catch{continue}if(r.type===`text`)ie(`text`,r.delta);else if(r.type===`reasoning`)ie(`reasoning`,r.delta);else if(r.type===`tool-call`)ae({type:`tool`,toolCallId:r.id,toolName:r.name,state:`running`,args:r.args});else if(r.type===`tool-result`)oe(r.id,!!r.ok,r.output),r.wrote&&(s.value=Date.now());else if(r.type===`pending`){let e=r.record;c.value=e.id,ae({type:`review`,pendingId:e.id,file:e.file,reason:e.reason,changes:e.changes??[],state:`pending`})}else r.type===`awaiting-approval`?c.value=r.id||c.value:r.type===`error`&&(a.value=r.message,ie(`text`,`(出错了:${r.message})`),i.value=`error`)}}i.value!==`error`&&(i.value=`ready`)}catch(e){e?.name===`AbortError`?i.value=`ready`:(a.value=e?.message||`对话失败`,i.value=`error`,ie(`text`,`(出错了:${a.value})`))}finally{$T=null,x(o)}}function ue(){$T?.abort(),i.value=`ready`}function de(){e.value=!0,d.value?t.value=!0:(t.value=!1,i.value!==`submitted`&&i.value!==`streaming`&&le(QT))}function fe(){r.value=[],a.value=``,i.value=`ready`,c.value=``}async function pe(e,t){c.value=``;try{t?(await p(`/api/ai/pending/apply`,{id:e}),s.value=Date.now(),se(e,`applied`,`已写入并通过校验`),await le(`【审核】已批准变更 ${e},请确认写入结果并继续。`)):(await p(`/api/ai/pending/reject`,{id:e}),se(e,`rejected`,`已驳回,文件未改动`),await le(`【审核】已驳回变更 ${e},请不要写入,换个方案或先问我。`))}catch(t){let n=t?.data?.error||t?.message||`审核操作失败`;se(e,`error`,n),a.value=n}}async function me(e){n.value={...n.value,reviewMode:e},await h({reviewMode:e})}return{open:e,settingsOpen:t,config:n,messages:r,status:i,error:a,loaded:o,needsKey:d,lastWriteAt:s,awaiting:c,threads:l,currentThreadId:u,loadConfig:m,saveConfig:h,fetchModels:g,send:le,stop:ue,resetThread:fe,resolvePending:pe,setReviewMode:me,startNextPlan:de,newThread:C,openThread:w,loadThreads:S,deleteThread:ee}}var tE={class:`ai-dock`},nE=[`aria-expanded`],rE={key:0,class:`ai-fab-dot`,"aria-hidden":`true`},iE={key:0,class:`ai-drawer`,role:`dialog`,"aria-modal":`true`,"aria-label":`看板助手`},aE={class:`ai-head`},oE={class:`ai-head-logo ai-logo`,"aria-hidden":`true`},sE={class:`ai-head-txt`},cE={key:0},lE={class:`ai-head-acts`},uE=[`title`,`aria-label`],dE={key:0,class:`ai-scroll`},fE={class:`ai-banner`},pE={class:`ai-chips`},mE=[`data-on`,`onClick`],hE={class:`ai-field`},gE={class:`ai-field`},_E={class:`ai-field`},vE={class:`ai-field-head`},yE=[`disabled`,`title`],bE={key:0,class:`ai-models`},xE={class:`ai-models-hd`},SE={key:0,class:`ai-models-empty`},CE=[`data-on`,`onClick`],wE={class:`ai-model-id`},TE={class:`ai-field`},EE={class:`ai-field`},DE={class:`ai-grid`},OE={class:`ai-field`},kE={class:`ai-field`},AE={class:`ai-check`},jE={key:0,class:`ai-error`},ME={class:`ai-actions`},NE=[`disabled`],PE={key:1,class:`ai-chat`},FE={class:`ai-indicator`},IE={key:1,class:`ai-empty`},LE={class:`ai-empty-hero`},RE={class:`ai-empty-orb ai-logo`},zE={class:`ai-examples`},BE=[`onClick`],VE=[`data-tone`],HE={class:`ai-example-txt`},UE={key:0,class:`ai-empty-warn`},WE={key:0,class:`ai-await`},GE={key:1,class:`ai-attachments`},KE=[`src`,`alt`],qE=[`onClick`],JE={class:`ai-composer-left`},YE=[`disabled`],XE=[`data-count`,`title`],ZE={class:`ai-history`},QE={class:`ai-history-hd`},$E={key:0,class:`ai-history-empty`},eD=[`onClick`],tD=[`aria-label`,`title`,`onClick`],nD=[`data-mode`,`aria-label`,`title`],rD={class:`ai-composer-right`},iD={class:`ai-hint`},aD={key:0,class:`size-4 shrink-0`,viewBox:`0 0 24 24`,"aria-hidden":`true`},oD={key:2,class:`ai-error`},sD=4,cD=Object.assign(O({__name:`AiAssistant`,setup(e){let{refresh:t}=kf(),n=eE(),{open:r,settingsOpen:i,config:a,messages:o,status:s,error:c,needsKey:l,lastWriteAt:u,awaiting:d,threads:f,currentThreadId:p}=n,m=Qt({provider:`deepseek`,baseUrl:`https://api.deepseek.com`,apiKey:``,model:`deepseek-flash`,systemPrompt:``,temperature:.3,maxToolRounds:30,contextLimit:256e3,autoCompact:!0}),h=U(``),g=U(!1),_=U(``),v=U(!1),y=V(()=>a.value.presets??[]),b=V(()=>a.value.model||`未选模型`),x=U([]),S=U(!1),C=U(``),w=V(()=>!!m.apiKey.trim()||a.value.hasKey||m.provider===`ollama`||/^https?:\/\/(localhost|127\.0\.0\.1|\[::1\])/i.test(m.baseUrl));async function ee(){if(w.value&&!S.value){S.value=!0,C.value=``;try{let e=await n.fetchModels({baseUrl:m.baseUrl,apiKey:m.apiKey.trim()||void 0,provider:m.provider});x.value=e.models}catch(e){x.value=[],C.value=e?.data?.error||e?.message||`拉取模型列表失败`}finally{S.value=!1}}}function te(e){m.model=e,C.value=``}function ne(){x.value=[],C.value=``}let re=[{text:`下一步开发内容是什么`,hint:`按依赖与里程碑,排出接下来该做的`,icon:`i-lucide-compass`,tone:`violet`},{text:`这个迭代还剩什么没做完?`,hint:`未完成的故事和任务,一次列清`,icon:`i-lucide-list-checks`,tone:`mint`},{text:`谁的故事被阻塞了?`,hint:`卡住的故事,以及卡在哪一环`,icon:`i-lucide-circle-slash`,tone:`peach`},{text:`把评审的故事全部完成`,hint:`一次把评审中的故事标完成,改完当场跑校验`,icon:`i-lucide-circle-check-big`,tone:`sky`}],ie={base:`ai-input`},ae={root:`ai-prompt`,base:[`px-1.5`]};function oe(e){m.provider=e.provider,m.baseUrl=e.baseUrl,m.model=e.model,m.systemPrompt=e.systemPrompt,m.temperature=e.temperature,m.maxToolRounds=e.maxToolRounds,m.contextLimit=e.contextLimit,m.autoCompact=e.autoCompact,m.apiKey=``}async function se(){try{oe(await n.loadConfig())}catch(e){_.value=e?.data?.error||e?.message||`读不到 AI 配置,确认看板服务已重启。`}}function ce(){r.value=!0,n.loaded.value||se()}function le(e){m.provider=e.id,e.baseUrl&&(m.baseUrl=e.baseUrl,m.model=e.model),ne()}async function ue(){g.value=!0,_.value=``;try{await n.saveConfig({provider:m.provider,baseUrl:m.baseUrl,model:m.model,systemPrompt:m.systemPrompt,temperature:Number(m.temperature),maxToolRounds:Number(m.maxToolRounds),contextLimit:Number(m.contextLimit),autoCompact:m.autoCompact,apiKey:m.apiKey.trim()?m.apiKey.trim():void 0}),m.apiKey=``}catch(e){_.value=e?.data?.error||e?.message||`保存失败`}finally{g.value=!1}}async function de(){g.value=!0;try{await n.saveConfig({apiKey:null}),m.apiKey=``,i.value=!0}catch(e){_.value=e?.data?.error||e?.message||`清除失败`}finally{g.value=!1}}function fe(){let e=h.value,t=he.value;(e.trim()||t.length)&&(h.value=``,he.value=[],n.send(e,t))}function pe(e){h.value=``,n.send(e)}let me=V(()=>[[{label:`手动审核`,description:`改数据前先出待审卡,你点批准才写入`,icon:a.value.reviewMode===`manual`?`i-lucide-check`:`i-lucide-shield-check`,onSelect:()=>n.setReviewMode(`manual`)},{label:`自动审核`,description:`直接写入并跑校验,校验不过自动回滚`,icon:a.value.reviewMode===`auto`?`i-lucide-check`:`i-lucide-zap`,onSelect:()=>n.setReviewMode(`auto`)}]]),he=U([]),ge=U(!1);function _e(){if(he.value.length>=sD){c.value=`一次最多带 ${sD} 张图片,先删掉几张再选`;return}let e=document.createElement(`input`);Object.assign(e,{type:`file`,accept:`image/*`,multiple:!0}),e.onchange=()=>{ye([...e.files??[]])},e.click()}function ve(e){let t=[...e.clipboardData?.items??[]].filter(e=>e.kind===`file`&&e.type.startsWith(`image/`)).map(e=>e.getAsFile()).filter(e=>!!e);t.length&&(e.preventDefault(),ye(t))}async function ye(e){let t=e.filter(e=>e.type.startsWith(`image/`));if(!t.length)return;let n=sD-he.value.length;if(n<=0)c.value=`一次最多带 ${sD} 张图片,先删掉几张再选`;else{ge.value=!0,c.value=``;try{let e=await Promise.all(t.slice(0,n).map(e=>YT(e)));he.value=[...he.value,...e.filter(e=>e.url)]}catch(e){c.value=e?.message||`读不到这张图片`}finally{ge.value=!1}}}function be(e){he.value=he.value.filter(t=>t.id!==e)}let xe=U(!1);function Se(e){if(!e)return``;let t=Date.now()-e;if(t<6e4)return`刚刚`;if(t<36e5)return`${Math.floor(t/6e4)} 分钟前`;if(t<864e5)return`${Math.floor(t/36e5)} 小时前`;let n=new Date(e);return`${n.getMonth()+1} 月 ${n.getDate()} 日`}function Ce(e){n.openThread(e),xe.value=!1}function we(){n.newThread(),xe.value=!1}let Te=U(``),Ee=null;function De(e){Te.value===e?(Ee&&clearTimeout(Ee),Te.value=``,n.deleteThread(e)):(Te.value=e,Ee&&clearTimeout(Ee),Ee=setTimeout(()=>{Te.value=``},3200))}function Oe(){Ee&&clearTimeout(Ee),Ee=null,Te.value=``}function ke(e){e.key===`Escape`&&r.value&&(e.stopPropagation(),r.value=!1)}return Nt(u,()=>t()),Nt(r,e=>{document.documentElement.style.overflow=e?`hidden`:``}),Nt(xe,e=>{e||Oe()}),ut(()=>{se(),n.loadThreads(),window.addEventListener(`keydown`,ke)}),vt(()=>{window.removeEventListener(`keydown`,ke),Oe(),document.documentElement.style.overflow=``}),(e,t)=>{let u=An,oe=ir,se=mp,ye=gp,Ee=vp,Oe=DT,ke=FT,Ae=RT,je=Zu,Me=BT,Ne=UT;return A(),L(`div`,tE,[N(`button`,{class:`ai-fab ai-logo`,type:`button`,"aria-label":`打开看板助手`,"aria-expanded":T(r),title:`看板助手:查改当前项目的敏捷数据`,onClick:ce},[M(u,{name:`i-lucide-sparkles`}),T(l)?(A(),L(`span`,rE)):R(``,!0)],8,nE),(A(),P(Kt,{to:`body`},[T(r)?(A(),L(`div`,{key:0,class:`ai-scrim`,onClick:t[0]||=e=>r.value=!1})):R(``,!0),M(st,{name:`ai-sheet`},{default:I(()=>[T(r)?(A(),L(`aside`,iE,[N(`header`,aE,[N(`span`,oE,[M(u,{name:`i-lucide-sparkles`})]),N(`div`,sE,[N(`b`,null,j(T(i)?`模型设置`:`看板助手`),1),T(i)?(A(),L(`small`,cE,`填一次就够,随时可改`)):R(``,!0)]),N(`div`,lE,[N(`button`,{class:`ai-icon-btn`,type:`button`,title:T(i)?`回到对话`:`模型设置`,"aria-label":T(i)?`回到对话`:`模型设置`,onClick:t[1]||=e=>i.value=!T(i)},[M(u,{name:T(i)?`i-lucide-message-square`:`i-lucide-settings-2`},null,8,[`name`])],8,uE),N(`button`,{class:`ai-icon-btn ai-icon-close`,type:`button`,title:`关闭`,"aria-label":`关闭`,onClick:t[2]||=e=>r.value=!1},[M(u,{name:`i-lucide-x`})])])]),T(i)?(A(),L(`div`,dE,[N(`p`,fE,[M(u,{name:`i-lucide-shield-check`}),t[15]||=N(`span`,null,[Zt(`配置只存在这台设备上(`),N(`code`,null,`%APPDATA%/scrum-skills/ai.json`),Zt(`,权限 0600),不写进项目目录,也不回传到浏览器。`)],-1)]),t[30]||=N(`p`,{class:`ai-label`},`常见服务(点一下填地址)`,-1),N(`div`,pE,[(A(!0),L(F,null,yt(T(y),e=>(A(),L(`button`,{key:e.id,class:`ai-chip`,type:`button`,"data-on":T(m).provider===e.id,onClick:t=>le(e)},j(e.label),9,mE))),128))]),N(`div`,hE,[t[16]||=N(`label`,null,`接口地址`,-1),M(oe,{ui:ie,modelValue:T(m).baseUrl,"onUpdate:modelValue":t[3]||=e=>T(m).baseUrl=e,placeholder:`https://api.deepseek.com`},null,8,[`modelValue`]),t[17]||=N(`p`,{class:`ai-help`},`原样使用,不会自动补 /v1 —— 厂商要求带版本号的,请自己填全。`,-1)]),N(`div`,gE,[t[18]||=N(`label`,null,`API Key`,-1),M(oe,{ui:ie,modelValue:T(m).apiKey,"onUpdate:modelValue":t[4]||=e=>T(m).apiKey=e,type:T(v)?`text`:`password`,placeholder:T(a).hasKey?`已保存,留空表示不改动`:`sk-…`,"trailing-icon":T(v)?`i-lucide-eye-off`:`i-lucide-eye`,"onClick:trailing":t[5]||=e=>v.value=!T(v)},null,8,[`modelValue`,`type`,`placeholder`,`trailing-icon`]),t[19]||=N(`p`,{class:`ai-help`},`本地 Ollama 这类不填 Key 的服务可以留空。`,-1)]),N(`div`,_E,[N(`div`,vE,[t[20]||=N(`label`,null,`模型名`,-1),N(`button`,{class:`ai-model-fetch`,type:`button`,disabled:!T(w)||T(S),title:T(w)?`从接口拉取可用的模型 id,点一条填进来`:`先在下面填好 API Key`,onClick:ee},[M(u,{name:T(S)?`i-lucide-loader-circle`:`i-lucide-refresh-cw`,class:B({"animate-spin":T(S)})},null,8,[`name`,`class`]),N(`span`,null,j(T(S)?`拉取中…`:`拉取列表`),1)],8,yE)]),M(oe,{ui:ie,modelValue:T(m).model,"onUpdate:modelValue":t[6]||=e=>T(m).model=e,placeholder:`deepseek-flash`},null,8,[`modelValue`]),T(x).length||T(C)?(A(),L(`div`,bE,[N(`div`,xE,[N(`span`,null,[t[21]||=Zt(`可选模型 `,-1),N(`b`,null,j(T(x).length),1)]),N(`button`,{class:`ai-models-x`,type:`button`,"aria-label":`收起模型列表`,title:`收起`,onClick:ne},[M(u,{name:`i-lucide-x`})])]),T(C)?(A(),L(`p`,SE,j(T(C)),1)):R(``,!0),(A(!0),L(F,null,yt(T(x),e=>(A(),L(`button`,{key:e,class:`ai-model`,type:`button`,"data-on":T(m).model===e,onClick:t=>te(e)},[N(`span`,wE,j(e),1),T(m).model===e?(A(),P(u,{key:0,name:`i-lucide-check`})):R(``,!0)],8,CE))),128))])):R(``,!0),t[22]||=N(`p`,{class:`ai-help`},`不知道填什么就点「拉取列表」,从接口返回的模型 id 里选一个。`,-1)]),N(`div`,TE,[t[23]||=N(`label`,null,`系统提示词(可选)`,-1),M(se,{ui:ie,modelValue:T(m).systemPrompt,"onUpdate:modelValue":t[7]||=e=>T(m).systemPrompt=e,rows:3,placeholder:`留空即可。只写你自己的偏好,例如「回答先给结论」。`},null,8,[`modelValue`]),t[24]||=N(`p`,{class:`ai-help`},`「能查哪些数据、怎么改」已经内置,不用重复交代。`,-1)]),N(`div`,EE,[t[25]||=N(`label`,null,`温度`,-1),M(oe,{ui:ie,modelValue:T(m).temperature,"onUpdate:modelValue":t[8]||=e=>T(m).temperature=e,type:`number`,step:`0.1`,min:`0`,max:`2`},null,8,[`modelValue`]),t[26]||=N(`p`,{class:`ai-help`},`越低越稳,越高越发散。日常问答建议 0.2~0.4。`,-1)]),N(`div`,DE,[N(`div`,OE,[t[27]||=N(`label`,null,`上下文上限(token)`,-1),M(oe,{ui:ie,modelValue:T(m).contextLimit,"onUpdate:modelValue":t[9]||=e=>T(m).contextLimit=e,type:`number`,min:`8000`,step:`1000`},null,8,[`modelValue`])]),N(`div`,kE,[t[28]||=N(`label`,null,`工具调用轮数上限`,-1),M(oe,{ui:ie,modelValue:T(m).maxToolRounds,"onUpdate:modelValue":t[10]||=e=>T(m).maxToolRounds=e,type:`number`,min:`1`,max:`50`},null,8,[`modelValue`])])]),N(`label`,AE,[t[29]||=N(`div`,{class:`ai-check-txt`},[N(`b`,null,`超长时自动压缩老对话`),N(`small`,null,`超过上下文上限就先压掉最早那几轮;内置说明和当前提问永远保留。`)],-1),M(ye,{modelValue:T(m).autoCompact,"onUpdate:modelValue":t[11]||=e=>T(m).autoCompact=e},null,8,[`modelValue`])]),T(_)?(A(),L(`p`,jE,j(T(_)),1)):R(``,!0),N(`div`,ME,[N(`button`,{class:`btn btn-dark`,type:`button`,disabled:T(g),onClick:ue},j(T(g)?`保存中…`:`保存并开始聊天`),9,NE),N(`button`,{class:`btn btn-quiet`,type:`button`,onClick:de},`清除 Key`)])])):(A(),L(`div`,PE,[T(o).length?(A(),P(ke,{key:0,messages:T(o),status:T(s),"should-auto-scroll":``,"spacing-offset":96,user:{variant:`soft`},class:`ai-messages`},{indicator:I(()=>[N(`div`,FE,[M(Ee,{text:`思考中…`})])]),content:I(({message:e})=>[M(Oe,{message:e,streaming:T(s)===`streaming`&&e.id===T(o)[T(o).length-1]?.id,onResolve:T(n).resolvePending},null,8,[`message`,`streaming`,`onResolve`])]),_:1},8,[`messages`,`status`])):(A(),L(`div`,IE,[N(`div`,LE,[N(`span`,RE,[M(u,{name:`i-lucide-sparkles`})]),t[31]||=N(`p`,{class:`ai-empty-hd`},`有什么要问的?直接说`,-1),t[32]||=N(`p`,{class:`ai-empty-sub`},`查进度、找卡点、改状态,一句话就够`,-1)]),t[33]||=N(`p`,{class:`ai-empty-label`},`常用问题`,-1),N(`div`,zE,[(A(),L(F,null,yt(re,e=>N(`button`,{key:e.text,class:`ai-example`,type:`button`,onClick:t=>pe(e.text)},[N(`span`,{class:`ai-example-icon`,"data-tone":e.tone},[M(u,{name:e.icon},null,8,[`name`])],8,VE),N(`span`,HE,[N(`b`,null,j(e.text),1),N(`small`,null,j(e.hint),1)]),M(u,{class:`ai-example-go`,name:`i-lucide-arrow-up-right`})],8,BE)),64))]),T(l)?(A(),L(`p`,UE,`还没配 API Key:点右上角齿轮填好再聊。`)):R(``,!0)]))])),T(i)?R(``,!0):(A(),L(`div`,{key:2,class:`ai-composer`,onPaste:ve},[T(d)?(A(),L(`p`,WE,[M(u,{name:`i-lucide-hand`}),t[34]||=N(`span`,null,`已停在这里等你审:点上面的「批准并写入」或「驳回」后我才会继续。`,-1)])):R(``,!0),T(he).length?(A(),L(`div`,GE,[(A(!0),L(F,null,yt(T(he),e=>(A(),L(`figure`,{key:e.id,class:`ai-attach`},[N(`img`,{src:e.url,alt:e.name},null,8,KE),N(`button`,{class:`ai-attach-x`,type:`button`,"aria-label":`移除这张图片`,title:`移除`,onClick:t=>be(e.id)},[M(u,{name:`i-lucide-x`})],8,qE)]))),128)),N(`p`,{class:`ai-attach-tip`},`最多 `+j(sD)+` 张,随这条提问一起发给模型`)])):R(``,!0),M(Ne,{modelValue:T(h),"onUpdate:modelValue":t[14]||=e=>It(h)?h.value=e:null,ui:ae,color:`neutral`,variant:`subtle`,rows:1,maxrows:6,autofocus:!1,placeholder:`问点什么…(Enter 发送,截图可直接粘贴)`,disabled:T(s)===`streaming`,onSubmit:fe},{footer:I(()=>[N(`div`,JE,[N(`button`,{class:`ai-pick-image`,type:`button`,disabled:T(ge),"aria-label":`上传图片`,title:`上传图片(也可以直接在输入框里粘贴截图)`,onClick:_e},[M(u,{name:T(ge)?`i-lucide-loader-circle`:`i-lucide-image-plus`,class:B({"animate-spin":T(ge)})},null,8,[`name`,`class`])],8,YE),N(`button`,{class:`ai-new-thread`,type:`button`,"aria-label":`新建会话`,title:`新建会话(当前这轮会存进历史会话)`,onClick:we},[M(u,{name:`i-lucide-plus`})]),M(Ae,{open:T(xe),"onUpdate:open":t[12]||=e=>It(xe)?xe.value=e:null,content:{align:`start`,side:`top`}},{content:I(()=>[N(`div`,ZE,[N(`p`,QE,[t[35]||=Zt(` 历史会话 `,-1),N(`span`,null,j(T(f).length),1)]),T(f).length?R(``,!0):(A(),L(`p`,$E,` 还没有历史会话。聊几句后点左边的「新建会话」,这里就会出现,最多留 20 个。 `)),(A(!0),L(F,null,yt(T(f),e=>(A(),L(`div`,{key:e.id,class:B([`ai-thread`,{on:e.id===T(p),arming:T(Te)===e.id}])},[N(`button`,{class:`ai-thread-main`,type:`button`,onClick:t=>Ce(e.id)},[N(`b`,null,j(e.title),1),N(`span`,null,j(Se(e.updatedAt))+` · `+j(e.count)+` 条`,1)],8,eD),N(`button`,{class:B([`ai-thread-del`,{arm:T(Te)===e.id}]),type:`button`,"aria-label":T(Te)===e.id?`确认删除会话:${e.title}`:`删除会话:${e.title}`,title:T(Te)===e.id?`再点一次就删掉,无法恢复`:`删除这条会话`,onClick:t=>De(e.id)},[M(u,{name:T(Te)===e.id?`i-lucide-trash-2`:`i-lucide-x`},null,8,[`name`]),T(Te)===e.id?(A(),L(F,{key:0},[Zt(`删`)],64)):R(``,!0)],10,tD)],2))),128)),t[36]||=N(`p`,{class:`ai-history-tip`},`会话只存在这台浏览器里;图片不落盘,恢复后显示占位。`,-1)])]),default:I(()=>[N(`button`,{class:`ai-history-btn`,type:`button`,"data-count":T(f).length,"aria-label":`历史会话`,title:T(f).length?`历史会话(${T(f).length} 个)`:`历史会话(还没有)`},[M(u,{name:`i-lucide-history`})],8,XE)]),_:1},8,[`open`]),M(je,{items:T(me),content:{align:`start`,side:`top`}},{default:I(()=>[N(`button`,{class:`ai-strategy`,type:`button`,"data-mode":T(a).reviewMode,"aria-label":T(a).reviewMode===`manual`?`审核策略:手动审核`:`审核策略:自动审核`,title:T(a).reviewMode===`manual`?`审核策略:手动审核(改文件前要你点批准)`:`审核策略:自动审核(直接写入并跑校验)`},[M(u,{name:T(a).reviewMode===`manual`?`i-lucide-shield-check`:`i-lucide-zap`},null,8,[`name`])],8,nD)]),_:1},8,[`items`])]),N(`div`,rD,[N(`span`,iD,j(T(s)===`streaming`?`正在回答…`:T(b)),1),M(Me,{class:`ai-stop`,square:``,status:T(s),icon:!1,color:`neutral`,variant:`solid`,size:`sm`,onStop:t[13]||=e=>T(n).stop()},{default:I(()=>[T(s)===`streaming`||T(s)===`submitted`?(A(),L(`svg`,aD,[...t[37]||=[N(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2.5`,fill:`currentColor`},null,-1)]])):T(s)===`error`?(A(),P(u,{key:1,name:`i-lucide-rotate-ccw`,class:`size-4 shrink-0`})):(A(),P(u,{key:2,name:`i-lucide-arrow-up`,class:`size-4 shrink-0`}))]),_:1},8,[`status`])])]),_:1},8,[`modelValue`,`disabled`]),T(c)?(A(),L(`p`,oD,j(T(c)),1)):R(``,!0)],32))])):R(``,!0)]),_:1})]))])}}}),{__name:`AiAssistant`}),lD=Symbol(`nuxt-ui.toast-max`),uD=200;function dD(){let e=En(`toasts`,()=>[]),t=xt(lD,void 0),n=U(!1),r=[],i=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;function a(t,n){let r=e.value[t],i=Date.now(),a=i-(r._animatedAt||0)<uD;e.value[t]={...r,...n,_duplicate:a?r._duplicate:(r._duplicate||0)+1,_animatedAt:a?r._animatedAt:i}}async function o(){if(!(n.value||r.length===0)){for(n.value=!0;r.length>0;){await bt();let n=r.shift(),i=t?.value??5;if(i<=0){e.value.length&&(e.value=[]);continue}let o=e.value.findIndex(e=>e.id===n.id);o===-1?e.value=[...e.value,{...n,_animatedAt:Date.now()}].slice(-i):a(o,n)}n.value=!1}}function s(t){let n={id:i(),open:!0,...t},s=e.value.findIndex(e=>e.id===n.id);return s===-1?(r.push(n),o(),n):(a(s,n),n)}function c(t,n){let r=e.value.findIndex(e=>e.id===t);r!==-1&&(e.value[r]={...e.value[r],...n,duration:n.duration,open:!0,_updated:!0},bt(()=>{let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated&&(e.value[n]={...e.value[n],_updated:void 0})}))}function l(t){let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated||(n!==-1&&(e.value[n]={...e.value[n],open:!1}),setTimeout(()=>{e.value=e.value.filter(e=>e.id!==t)},200))}function u(){e.value=[]}return{toasts:e,add:s,update:c,remove:l,clear:u}}var fD={slots:{viewport:`fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none`,base:`pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[collapsed=true]:data-[front=false]:h-(--front-height) data-[collapsed=true]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_var(--ease-out)] data-[state=closed]:data-[collapsed=true]:data-[front=false]:animate-[toast-collapsed-closed_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=odd]:animate-[toast-pulse-a_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=even]:animate-[toast-pulse-b_200ms_var(--ease-out)] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out motion-reduce:transition-none`},variants:{position:{"top-left":{viewport:`left-4`},"top-center":{viewport:`left-1/2 transform -translate-x-1/2`},"top-right":{viewport:`right-4`},"bottom-left":{viewport:`left-4`},"bottom-center":{viewport:`left-1/2 transform -translate-x-1/2`},"bottom-right":{viewport:`right-4`}},swipeDirection:{up:`data-[swipe=end]:animate-[toast-slide-up_200ms_var(--ease-out)]`,right:`data-[swipe=end]:animate-[toast-slide-right_200ms_var(--ease-out)]`,down:`data-[swipe=end]:animate-[toast-slide-down_200ms_var(--ease-out)]`,left:`data-[swipe=end]:animate-[toast-slide-left_200ms_var(--ease-out)]`}},compoundVariants:[{position:[`top-left`,`top-center`,`top-right`],class:{viewport:`top-4`,base:`top-0 data-[state=open]:animate-[toast-slide-in-from-top_200ms_var(--ease-out)]`}},{position:[`bottom-left`,`bottom-center`,`bottom-right`],class:{viewport:`bottom-4`,base:`bottom-0 data-[state=open]:animate-[toast-slide-in-from-bottom_200ms_var(--ease-out)]`}},{swipeDirection:[`left`,`right`],class:`data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0`},{swipeDirection:[`up`,`down`],class:`data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0`}],defaultVariants:{position:`bottom-right`}},pD=Object.assign(Object.assign({name:`Toaster`},{inheritAttrs:!1},{props:{position:{type:null,required:!1},expand:{type:Boolean,required:!1,default:!0},progress:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},max:{type:Number,required:!1,default:5},class:{type:null,required:!1},ui:{type:Object,required:!1},label:{type:String,required:!1},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeThreshold:{type:Number,required:!1}},setup(e){let t=Rn(`toaster`,e),n=()=>W(()=>import(`./BAQQngAq.js`),__vite__mapDeps([106,7,8,2,9,15,29,25,4,36,26,20,16,24,30,28,1,3,5,6,10,11,12,31,32,33,13,14,56]),import.meta.url),r=H(n),i;ut(()=>{i=qr(()=>{n().catch(()=>{})})}),vt(()=>{Kr(i)});let{toasts:a,remove:o}=dD(),{t:s}=Vu(),c=On();Dt(lD,mt(()=>t.max));let l=jr(Dr(t,`duration`,`swipeThreshold`,`disableSwipe`)),u=nr(mt(()=>t.portal)),d=V(()=>{switch(t.position){case`top-center`:return`up`;case`top-right`:case`bottom-right`:return`right`;case`bottom-center`:return`down`;case`top-left`:case`bottom-left`:return`left`}return`right`}),f=V(()=>Bn({extend:fD,...c.ui?.toaster||{}})({position:t.position,swipeDirection:d.value}));function p(e,t){e||o(t)}let m=U(!1),h=V(()=>t.expand||m.value),g=U([]),_=V(()=>g.value.reduce((e,{height:t})=>e+t+16,0)),v=V(()=>g.value[g.value.length-1]?.height||0);function y(e){return g.value.slice(e+1).reduce((e,{height:t})=>e+t+16,0)}return(e,n)=>(A(),P(T(lu),D({"swipe-direction":d.value,label:T(t).label??T(s)(`toaster.label`)},T(l)),{default:I(()=>[z(e.$slots,`default`),(A(!0),L(F,null,yt(T(a),(e,n)=>(A(),P(T(r),D({key:e.id,ref_for:!0,ref_key:`refs`,ref:g,progress:T(t).progress},{ref_for:!0},T(Nn)(e,[`id`,`close`,`_duplicate`,`_updated`,`_animatedAt`,`onClick`]),{close:e.close,"data-collapsed":!h.value,"data-front":!h.value&&n===T(a).length-1,"data-pulsing":e._duplicate?e._duplicate%2==0?`even`:`odd`:void 0,style:{"--index":n-T(a).length+T(a).length,"--before":T(a).length-1-n,"--offset":y(n),"--scale":h.value?`1`:`calc(1 - var(--before) * var(--scale-factor))`,"--translate":h.value?`calc(var(--offset) * var(--translate-factor))`:`calc(var(--before) * var(--gap))`,"--transform":`translateY(var(--translate)) scale(var(--scale))`},"data-slot":`base`,class:f.value.base({class:[T(t).ui?.base,e.onClick?`cursor-pointer`:void 0]}),"onUpdate:open":t=>p(t,e.id),onClick:t=>e.onClick&&e.onClick(e)}),null,16,[`progress`,`close`,`data-collapsed`,`data-front`,`data-pulsing`,`style`,`class`,`onUpdate:open`,`onClick`]))),128)),M(T(yu),E(k(T(u))),{default:I(()=>[M(T(xu),{label:T(s)(`toaster.viewport`),"data-expanded":h.value,"data-slot":`viewport`,class:B(f.value.viewport({class:[T(t).ui?.viewport,T(t).class]})),style:kt({"--scale-factor":`0.05`,"--translate-factor":T(t).position?.startsWith(`top`)?`1px`:`-1px`,"--gap":T(t).position?.startsWith(`top`)?`16px`:`-16px`,"--front-height":`${v.value}px`,"--height":`${_.value}px`}),onMouseenter:n[0]||=e=>m.value=!0,onMouseleave:n[1]||=e=>m.value=!1},null,8,[`label`,`data-expanded`,`class`,`style`])]),_:1},16)]),_:3},16,[`swipe-direction`,`label`]))}}),{__name:`UToaster`});function mD(){let e=wt([]),t=(t,i)=>{let{props:a,defaultOpen:s,destroyOnClose:c}=i||{},l=Qt({id:Symbol(``),isOpen:!!s,component:jt(t),isMounted:!!s,destroyOnClose:!!c,originalProps:a||{},props:{...a},resolvers:[]});return e.push(l),{...l,open:e=>n(l.id,e),close:e=>r(l.id,e),patch:e=>o(l.id,e)}},n=(e,t)=>{let n=s(e);n.props=t?{...n.originalProps,...t}:{...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvers.push(e));return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},r=(e,t)=>{let n=s(e);n.isOpen=!1;for(let e of n.resolvers.splice(0))e(t)},i=()=>{e.forEach(e=>r(e.id))},a=t=>{let n=s(t);if(n.isMounted=!1,n.destroyOnClose){let n=e.findIndex(e=>e.id===t);e.splice(n,1)}},o=(e,t)=>{let n=s(e);n.props={...n.props,...t}},s=t=>{let n=e.find(e=>e.id===t);if(!n)throw Error(`Overlay not found`);return n};return{overlays:e,open:n,close:r,closeAll:i,create:t,patch:o,unmount:a,isOpen:e=>s(e).isOpen}}var hD=Cr(mD),gD={__name:`UOverlayProvider`,setup(e){let{overlays:t,unmount:n,close:r}=hD(),i=V(()=>t.filter(e=>e.isMounted)),a=e=>{r(e),n(e)},o=(e,t)=>{r(e,t)};return(e,t)=>(A(!0),L(F,null,yt(i.value,e=>(A(),P(Ot(e.component),D({key:e.id},{ref_for:!0},e.props,{open:e.isOpen,"onUpdate:open":t=>e.isOpen=t,onClose:t=>o(e.id,t),"onAfter:leave":t=>a(e.id)}),null,16,[`open`,`onUpdate:open`,`onClose`,`onAfter:leave`]))),128))}},_D=Object.assign(Object.assign({name:`App`},{props:{tooltip:{type:Object,required:!1},toaster:{type:[Object,null],required:!1},locale:{type:Object,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:`body`},dir:{type:String,required:!1},scrollBody:{type:[Boolean,Object],required:!1},nonce:{type:String,required:!1}},setup(e){let t=e,n=Br(Dr(t,`scrollBody`,`nonce`)),r=mt(()=>t.tooltip),i=mt(()=>t.toaster),a=xt(Bu,void 0),o=mt(()=>{let e=t.locale||a?.value;return t.dir?{...e||zu,dir:t.dir}:e});Dt(Bu,o);let s=mt(()=>t.portal);return Dt($n,s),(a,s)=>(A(),P(T(_r),D({"use-id":()=>Ft(),dir:t.dir||o.value?.dir,locale:o.value?.code},T(n)),{default:I(()=>[M(T(Tu),E(k(r.value)),{default:I(()=>[e.toaster===null?z(a.$slots,`default`,{},void 0,void 0,1):(A(),P(pD,E(D({key:0},i.value)),{default:I(()=>[z(a.$slots,`default`)]),_:3},16)),M(gD)]),_:3},16)]),_:3},16,[`use-id`,`dir`,`locale`]))}}),{__name:`UApp`});function vD(){let e=Pe();return V(()=>e.currentRoute.value)}function yD(){let e=vD();return V(()=>e.value?.path||`/`)}var bD={class:`page`},xD={class:`canvas`},SD={class:`side`},CD={class:`side-head`},wD={class:`brand`},TD={class:`brand-glyph`},ED={class:`side-scroll`},DD={class:`nav`},OD={class:`nav-lb`},kD={key:0,class:`nav-ct`},AD={key:0,class:`assist`},jD={class:`assist-hd`},MD={class:`assist-name`},ND={class:`assist-sub mono`},PD={class:`bar mint slim`},FD={class:`assist-pts`},ID={class:`side-cal`},LD={class:`user`},RD={class:`user-txt`},zD={class:`main`},BD={class:`topbar`},VD={class:`tt`},HD={class:`h1`},UD={class:`sub`},WD={class:`acts`},GD={key:0,class:`chip-block`},KD={key:1,class:`chip-sprint`},qD={class:`content`},JD={key:0,class:`callout`},YD={key:1,class:`pg`},XD={key:2,class:`loading`},ZD=Rf(O({__name:`app`,setup(e){let t=yD(),{currentSprint:n,sprintCommit:r,burndown:i,now:a,root:o,data:s,error:c,refresh:l,stories:u,epics:d,sprints:f,milestones:p,blockedStories:m,lastChange:h,testStats:g,diagramStats:_,md:v}=kf(),y=eE(),b=V(()=>{let e=n.value;if(!e)return 0;let{days:t}=i(e);return t.length?(t.find(e=>e.date===a)??[...t].reverse().find(e=>e.date<=a)??t[0]).actual:0}),x=V(()=>[{to:`/`,label:`故事看板`,icon:`i-lucide-layout-grid`,count:u.value.length},{to:`/last-change`,label:`最后更新`,icon:`i-lucide-history`,count:h.value?.changes?.length??0},{to:`/epics`,label:`史诗目标`,icon:`i-lucide-target`,count:d.value.length},{to:`/gantt`,label:`甘特图例`,icon:`i-lucide-chart-gantt`,count:f.value.length},{to:`/burndown`,label:`燃尽图例`,icon:`i-lucide-trending-down`,count:b.value,zero:!0},{to:`/tests`,label:`测试用例`,icon:`i-lucide-flask-conical`,count:g.value.failed||g.value.total},{to:`/diagrams`,label:`架构图例`,icon:`i-lucide-network`,count:_.value.total},{to:`/milestones`,label:`里程碑 / MVP`,icon:`i-lucide-flag`,count:p.value.length}]),S=e=>e===`/`?t.value===`/`:t.value.startsWith(e),C={"/":{title:`看板`,sub:`全部故事按状态分列:点数、任务进度、阻塞与范围变更都落在卡片上`},"/last-change":{title:`最后更新`,sub:`最近一次功能交付:改了哪些故事与任务、额外做了什么、验了什么、怎么自己点一遍`},"/epics":{title:`史诗与目标`,sub:`每个史诗的量化关键结果与故事进度,达成口径 = 当前值达到目标值`},"/gantt":{title:`甘特图`,sub:`浅色条是计划排期,实心条是 journal 记录出的真实执行区间`},"/milestones":{title:`里程碑 / MVP 节点`,sub:`里程碑挂在 story 上,挂的故事全部完成即视为达成`},"/burndown":{title:`燃尽图`,sub:`实线来自每个 task 最后一条 pass 的日期,虚线是按容量均摊的理想线`},"/tests":{title:`测试用例`,sub:`前端 / 后端 / E2E 的用例清单与覆盖缺口:需求覆盖按验收条算,代码覆盖各层分开报`},"/diagrams":{title:`架构图例`,sub:`实现过程中沉淀的系统架构、登录/支付时序、ER 关系图:每张图挂在故事上,过期会标出来`}},w=V(()=>t.value.startsWith(`/story`)?{title:`故事详情`,sub:`验收标准 · 依赖与阻塞 · TDD 实施日志`}:C[t.value]??{title:`敏捷看板`,sub:`结构化敏捷数据可视化`}),ee=V(()=>{let e=n.value;return e?.capacity?Math.min(100,Math.round(r(e)/e.capacity*100)):0}),te=V(()=>{let e=n.value;if(!e)return``;let t=Math.round((+af(e.end)-af(lf()))/864e5);return t>0?`剩 ${t} 天`:t===0?`今天结束`:`已超期 ${-t} 天`});return(e,i)=>{let a=An,d=zf,f=Tn,p=Vf,h=np,g=op,_=cD,b=_D;return A(),P(b,null,{default:I(()=>[N(`div`,bD,[N(`div`,xD,[N(`aside`,SD,[N(`div`,CD,[N(`div`,wD,[N(`span`,TD,[M(a,{name:`i-lucide-blocks`})]),i[3]||=N(`b`,null,`敏捷看板`,-1)]),M(d)]),N(`div`,ED,[i[7]||=N(`p`,{class:`lbl sec`},`工作台`,-1),N(`nav`,DD,[(A(!0),L(F,null,yt(T(x),e=>(A(),P(f,{key:e.to,to:e.to,class:B([`nav-item`,{on:S(e.to)}])},{default:I(()=>[M(a,{name:e.icon,class:`nav-ic`},null,8,[`name`]),N(`span`,OD,j(e.label),1),e.count||e.zero?(A(),L(`span`,kD,j(e.count),1)):R(``,!0)]),_:2},1032,[`to`,`class`]))),128))]),T(n)?(A(),L(`div`,AD,[M(p,{tone:`mint`,size:`sm`,min:2,max:4}),N(`div`,jD,[M(a,{name:`i-lucide-sparkles`}),i[4]||=Zt(`当前迭代`,-1)]),N(`p`,MD,j(T(n).name),1),N(`p`,ND,j(T(n).id)+` · `+j(T(v)(T(n).start))+` ~ `+j(T(v)(T(n).end)),1),N(`div`,PD,[N(`i`,{style:kt({width:T(ee)+`%`})},null,4)]),N(`p`,FD,[i[5]||=Zt(` 承诺 `,-1),N(`b`,null,j(T(r)(T(n))),1),Zt(` / `+j(T(n).capacity)+` 点 · `+j(T(te)),1)]),M(f,{to:`/burndown`,class:`assist-btn`},{default:I(()=>[...i[6]||=[Zt(`看燃尽图 →`,-1)]]),_:1})])):R(``,!0),N(`div`,ID,[M(h)])]),N(`div`,LD,[i[9]||=N(`span`,{class:`avatar`},`SS`,-1),N(`div`,RD,[i[8]||=N(`b`,null,`scrum-skills`,-1),N(`small`,null,`本地数据 · `+j(T(u).length)+` 个故事`,1)]),M(a,{name:`i-lucide-chevron-right`,class:`user-chev`})])]),N(`div`,zD,[N(`header`,BD,[N(`div`,VD,[N(`h1`,HD,j(T(w).title),1),N(`p`,UD,j(T(w).sub),1)]),N(`div`,WD,[T(m).length?(A(),L(`span`,GD,[M(a,{name:`i-lucide-octagon-alert`,class:`size-3`}),Zt(j(T(m).length)+` 个阻塞 `,1)])):R(``,!0),T(n)?(A(),L(`span`,KD,j(T(n).id)+` · `+j(T(r)(T(n)))+`/`+j(T(n).capacity)+` 点 `,1)):R(``,!0),N(`button`,{class:`btn btn-icon`,title:`重新拉取 /api/agile`,onClick:i[0]||=e=>T(l)()},[M(a,{name:`i-lucide-refresh-cw`})]),N(`button`,{class:`btn btn-ai`,type:`button`,title:`让助手列出候选,跟你敲定下一步做哪个,再给出能直接开工的任务描述`,onClick:i[1]||=e=>T(y).startNextPlan()},[M(a,{name:`i-lucide-sparkles`}),i[10]||=Zt(`下一步开发计划 `,-1)]),M(f,{to:`/burndown`,class:`btn btn-dark`},{default:I(()=>[M(a,{name:`i-lucide-activity`}),i[11]||=Zt(`迭代健康度 `,-1)]),_:1})])]),N(`main`,qD,[T(c)?(A(),L(`div`,JD,[M(a,{name:`i-lucide-plug-zap`,class:`size-4`}),N(`div`,null,[i[12]||=N(`b`,null,`读不到敏捷数据`,-1),i[13]||=N(`p`,{style:{"margin-top":`3px`}},` 接口 /api/agile 没有返回。确认是在含 agile/ 的目录下运行 scrum-skills serve。 `,-1),N(`button`,{class:`btn btn-sm`,style:{"margin-top":`8px`},onClick:i[2]||=e=>T(l)()},`重试`)])])):T(s)?(A(),L(`div`,YD,[M(g,{"page-key":T(t)+`:`+T(o)},null,8,[`page-key`])])):(A(),L(`div`,XD,[...i[14]||=[N(`div`,{class:`skeleton`,style:{height:`176px`}},null,-1),N(`div`,{class:`skeleton`,style:{height:`420px`}},null,-1)]]))])])]),M(_)])]),_:1})}}}),[[`__scopeId`,`data-v-f6ba8281`]]),QD={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,i=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),a=t.message||t.toString(),o=H(()=>W(()=>import(`./D1V1gysQ.js`),__vite__mapDeps([107,13,8,2,14,15,16,9,11,108]),import.meta.url)),s=H(()=>W(()=>import(`./BGwhkDRl.js`),__vite__mapDeps([109,11,8,2,110]),import.meta.url)),c=r?o:s;return(e,t)=>(A(),P(T(c),E(k({status:T(n),statusText:T(i),statusCode:T(n),statusMessage:T(i),description:T(a),stack:T(void 0)})),null,16))}},$D=()=>null,eO={key:0},tO={__name:`nuxt-root`,setup(e){let t=u(),n=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,n),r=Pe().beforeEach(()=>{e(),r()})}window.location.pathname,Dt(De,Se()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let r=We();function i(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return $t((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),Ie(navigator.userAgent))return g(t,e),!1;if(Ze(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>Le(e)),kn(),i(e,n,r),!1}),(e,t)=>(A(),P(Ut,{onResolve:T(n)},{default:I(()=>[T(!1)?(A(),L(`div`,eO)):T(r)?(A(),P(T(QD),{key:1,error:T(r)},null,8,[`error`])):T(!1)?(A(),P(T($D),{key:2,context:T(!1)},null,8,[`context`])):T(!1)?(A(),P(Ot(T(!1)),{key:3})):(A(),P(T(ZD),{key:4}))]),_:1},8,[`onResolve`]))}},nO;{let e;nO=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?rt(tO):at(tO),r=l({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=ye(e)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&p.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(p.id)?.remove()});try{await f(r,Xs)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(o),await r.hooks.callHook(`app:mounted`,n),await bt()}catch(e){i(e)}return n},e=nO().catch(e=>{throw t.NUXT_E1009({cause:e}),e})}export{Ac as A,hu as C,su as D,_u as E,Io as F,ki as I,fc as M,dc as N,Nc as O,$s as P,mu as S,gu as T,Vu as _,tf as a,du as b,Jd as c,Kd as d,Xd as f,Ju as g,qd as h,Rf as i,pc as j,jc as k,Zd as l,Yd as m,kT as n,nf as o,Qd as p,Vf as r,kf as s,vD as t,$d as u,fu as v,vu as w,uu as x,pu as y};