@kynetic-ai/spec 0.10.0 → 0.11.0

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 (145) hide show
  1. package/dist/agent-runtime/dispatch.d.ts +31 -0
  2. package/dist/agent-runtime/dispatch.d.ts.map +1 -1
  3. package/dist/agent-runtime/dispatch.js +102 -33
  4. package/dist/agent-runtime/dispatch.js.map +1 -1
  5. package/dist/agent-runtime/invocation.js +1 -1
  6. package/dist/agent-runtime/invocation.js.map +1 -1
  7. package/dist/cli/commands/meta.d.ts.map +1 -1
  8. package/dist/cli/commands/meta.js +10 -1
  9. package/dist/cli/commands/meta.js.map +1 -1
  10. package/dist/daemon/routes/agent-dispatch.ts +9 -2
  11. package/dist/daemon/routes/items.ts +22 -0
  12. package/dist/daemon/routes/meta.ts +141 -1
  13. package/dist/daemon/routes/plans.ts +147 -0
  14. package/dist/daemon/routes/sessions.ts +180 -0
  15. package/dist/daemon/routes/tasks.ts +198 -0
  16. package/dist/daemon/routes/validation.ts +1 -1
  17. package/dist/daemon/server.ts +22 -1
  18. package/dist/parser/alignment.d.ts.map +1 -1
  19. package/dist/parser/alignment.js +4 -2
  20. package/dist/parser/alignment.js.map +1 -1
  21. package/dist/schema/meta.d.ts +15 -0
  22. package/dist/schema/meta.d.ts.map +1 -1
  23. package/dist/schema/meta.js +1 -0
  24. package/dist/schema/meta.js.map +1 -1
  25. package/dist/sessions/store.d.ts +14 -0
  26. package/dist/sessions/store.d.ts.map +1 -1
  27. package/dist/sessions/store.js +26 -0
  28. package/dist/sessions/store.js.map +1 -1
  29. package/dist/web-ui/_app/immutable/assets/0.BJaYkGW2.css +1 -0
  30. package/dist/web-ui/_app/immutable/assets/9.SzGLxi4x.css +1 -0
  31. package/dist/web-ui/_app/immutable/chunks/-lc0BifF.js +1 -0
  32. package/dist/web-ui/_app/immutable/chunks/62JVKtnb.js +1 -0
  33. package/dist/web-ui/_app/immutable/chunks/8RBjHMN1.js +1 -0
  34. package/dist/web-ui/_app/immutable/chunks/B5LJFxqa.js +1 -0
  35. package/dist/web-ui/_app/immutable/chunks/B5wTVqxm.js +1 -0
  36. package/dist/web-ui/_app/immutable/chunks/B6VSmczZ.js +1 -0
  37. package/dist/web-ui/_app/immutable/chunks/B8a0xDxR.js +1 -0
  38. package/dist/web-ui/_app/immutable/chunks/BEOQc37C.js +1 -0
  39. package/dist/web-ui/_app/immutable/chunks/BHtYorjv.js +1 -0
  40. package/dist/web-ui/_app/immutable/chunks/BJ0JX3ea.js +1 -0
  41. package/dist/web-ui/_app/immutable/chunks/BMuCqDX8.js +1 -0
  42. package/dist/web-ui/_app/immutable/chunks/{i-XnOIX0.js → BP352uRn.js} +1 -1
  43. package/dist/web-ui/_app/immutable/chunks/BUZujXJ2.js +1 -0
  44. package/dist/web-ui/_app/immutable/chunks/BVA9Exy-.js +1 -0
  45. package/dist/web-ui/_app/immutable/chunks/BWET-efb.js +1 -0
  46. package/dist/web-ui/_app/immutable/chunks/BXkNecpt.js +1 -0
  47. package/dist/web-ui/_app/immutable/chunks/BYzrIfX8.js +1 -0
  48. package/dist/web-ui/_app/immutable/chunks/BkOJ8DkV.js +1 -0
  49. package/dist/web-ui/_app/immutable/chunks/BpuwufMc.js +1 -0
  50. package/dist/web-ui/_app/immutable/chunks/BwMO4RrG.js +1 -0
  51. package/dist/web-ui/_app/immutable/chunks/BysXJlZb.js +1 -0
  52. package/dist/web-ui/_app/immutable/chunks/C076q4JN.js +1 -0
  53. package/dist/web-ui/_app/immutable/chunks/C33JaVbg.js +1 -0
  54. package/dist/web-ui/_app/immutable/chunks/CGtqifKp.js +1 -0
  55. package/dist/web-ui/_app/immutable/chunks/CHDZZ7OG.js +1 -0
  56. package/dist/web-ui/_app/immutable/chunks/CPPfDSei.js +5 -0
  57. package/dist/web-ui/_app/immutable/chunks/CUir3f4J.js +60 -0
  58. package/dist/web-ui/_app/immutable/chunks/Cncwi6fQ.js +1 -0
  59. package/dist/web-ui/_app/immutable/chunks/CrCIbn0C.js +1 -0
  60. package/dist/web-ui/_app/immutable/chunks/CwELQvbx.js +1 -0
  61. package/dist/web-ui/_app/immutable/chunks/D3vxvonu.js +1 -0
  62. package/dist/web-ui/_app/immutable/chunks/D6TVmR9T.js +1 -0
  63. package/dist/web-ui/_app/immutable/chunks/D7LTux4W.js +1 -0
  64. package/dist/web-ui/_app/immutable/chunks/{D28BF5MJ.js → D82RulSH.js} +1 -1
  65. package/dist/web-ui/_app/immutable/chunks/D9QNBZM2.js +2 -0
  66. package/dist/web-ui/_app/immutable/chunks/DAMmvwn4.js +1 -0
  67. package/dist/web-ui/_app/immutable/chunks/DAh4Wfku.js +1 -0
  68. package/dist/web-ui/_app/immutable/chunks/DAx07bEQ.js +1 -0
  69. package/dist/web-ui/_app/immutable/chunks/DBYE9jOd.js +1 -0
  70. package/dist/web-ui/_app/immutable/chunks/DOno4cA2.js +1 -0
  71. package/dist/web-ui/_app/immutable/chunks/DQA8NZIH.js +2 -0
  72. package/dist/web-ui/_app/immutable/chunks/DRfPm2bo.js +1 -0
  73. package/dist/web-ui/_app/immutable/chunks/DhQhksaB.js +1 -0
  74. package/dist/web-ui/_app/immutable/chunks/DjG7s6hm.js +1 -0
  75. package/dist/web-ui/_app/immutable/chunks/DjcCz-PU.js +2 -0
  76. package/dist/web-ui/_app/immutable/chunks/DkltRNvh.js +1 -0
  77. package/dist/web-ui/_app/immutable/chunks/DlaTnPKL.js +1 -0
  78. package/dist/web-ui/_app/immutable/chunks/DvA-KON-.js +1 -0
  79. package/dist/web-ui/_app/immutable/chunks/{D1ArdqNb.js → DxCk-KHc.js} +1 -1
  80. package/dist/web-ui/_app/immutable/chunks/DzO4hlg9.js +1 -0
  81. package/dist/web-ui/_app/immutable/chunks/{BCkp8Hs8.js → Eo4gF7ih.js} +1 -1
  82. package/dist/web-ui/_app/immutable/chunks/ExCq5swK.js +1 -0
  83. package/dist/web-ui/_app/immutable/chunks/T3zZGv51.js +1 -0
  84. package/dist/web-ui/_app/immutable/chunks/XZumBYeP.js +1 -0
  85. package/dist/web-ui/_app/immutable/chunks/_ySfNjkF.js +1 -0
  86. package/dist/web-ui/_app/immutable/chunks/iEtR5cV6.js +1 -0
  87. package/dist/web-ui/_app/immutable/chunks/k_Qegko0.js +1 -0
  88. package/dist/web-ui/_app/immutable/chunks/pE6cYWlS.js +1 -0
  89. package/dist/web-ui/_app/immutable/entry/app.Cgu6uKeS.js +2 -0
  90. package/dist/web-ui/_app/immutable/entry/start.9XifnLoB.js +1 -0
  91. package/dist/web-ui/_app/immutable/nodes/0.DISwcKSK.js +1 -0
  92. package/dist/web-ui/_app/immutable/nodes/1.Cx2Ufqp1.js +1 -0
  93. package/dist/web-ui/_app/immutable/nodes/10.C3z8ijXL.js +1 -0
  94. package/dist/web-ui/_app/immutable/nodes/11.DZdIjZmM.js +1 -0
  95. package/dist/web-ui/_app/immutable/nodes/12.FsIGfAOa.js +1 -0
  96. package/dist/web-ui/_app/immutable/nodes/13.DZoFwagf.js +1 -0
  97. package/dist/web-ui/_app/immutable/nodes/14.DaIzDKbQ.js +1 -0
  98. package/dist/web-ui/_app/immutable/nodes/15.BYyt4XWF.js +2 -0
  99. package/dist/web-ui/_app/immutable/nodes/16.CQkSqpOe.js +1 -0
  100. package/dist/web-ui/_app/immutable/nodes/2.Bkf_j2UJ.js +1 -0
  101. package/dist/web-ui/_app/immutable/nodes/3.kaMCurJG.js +1 -0
  102. package/dist/web-ui/_app/immutable/nodes/4.BSsFPTHG.js +2 -0
  103. package/dist/web-ui/_app/immutable/nodes/5.CpPlcCEZ.js +1 -0
  104. package/dist/web-ui/_app/immutable/nodes/6.BN4FqQmY.js +1 -0
  105. package/dist/web-ui/_app/immutable/nodes/7.9kBYIZik.js +1 -0
  106. package/dist/web-ui/_app/immutable/nodes/8.BuijtZ6B.js +1 -0
  107. package/dist/web-ui/_app/immutable/nodes/9.C-Weba8R.js +1 -0
  108. package/dist/web-ui/_app/version.json +1 -1
  109. package/dist/web-ui/index.html +14 -11
  110. package/package.json +3 -2
  111. package/plugin/.claude-plugin/marketplace.json +1 -1
  112. package/plugin/.claude-plugin/plugin.json +1 -1
  113. package/dist/web-ui/_app/immutable/assets/0.BxCxvrZR.css +0 -1
  114. package/dist/web-ui/_app/immutable/chunks/B-CZR0q8.js +0 -1
  115. package/dist/web-ui/_app/immutable/chunks/B1IR5Su5.js +0 -1
  116. package/dist/web-ui/_app/immutable/chunks/B_Cvvtc4.js +0 -1
  117. package/dist/web-ui/_app/immutable/chunks/BtFaGGII.js +0 -1
  118. package/dist/web-ui/_app/immutable/chunks/Bu8JVsCH.js +0 -1
  119. package/dist/web-ui/_app/immutable/chunks/C87u-CNA.js +0 -1
  120. package/dist/web-ui/_app/immutable/chunks/CrFkBTYp.js +0 -1
  121. package/dist/web-ui/_app/immutable/chunks/D6RtLpzL.js +0 -1
  122. package/dist/web-ui/_app/immutable/chunks/D7FHSgx2.js +0 -1
  123. package/dist/web-ui/_app/immutable/chunks/DBXrsxZQ.js +0 -2
  124. package/dist/web-ui/_app/immutable/chunks/Da_hHMuA.js +0 -1
  125. package/dist/web-ui/_app/immutable/chunks/Do6LchSF.js +0 -1
  126. package/dist/web-ui/_app/immutable/chunks/DoNPtcAw.js +0 -1
  127. package/dist/web-ui/_app/immutable/chunks/DtUbXRZz.js +0 -1
  128. package/dist/web-ui/_app/immutable/chunks/DyFPRlLl.js +0 -1
  129. package/dist/web-ui/_app/immutable/chunks/DzAP8lRM.js +0 -1
  130. package/dist/web-ui/_app/immutable/chunks/DzVXElzN.js +0 -2
  131. package/dist/web-ui/_app/immutable/chunks/aoPBFken.js +0 -1
  132. package/dist/web-ui/_app/immutable/chunks/laxtrUO3.js +0 -1
  133. package/dist/web-ui/_app/immutable/chunks/q1nIWgqB.js +0 -1
  134. package/dist/web-ui/_app/immutable/chunks/sTLbk5Nm.js +0 -1
  135. package/dist/web-ui/_app/immutable/chunks/vwKgQu5P.js +0 -5
  136. package/dist/web-ui/_app/immutable/entry/app.BCwMcqnT.js +0 -2
  137. package/dist/web-ui/_app/immutable/entry/start.wKCQH-tt.js +0 -1
  138. package/dist/web-ui/_app/immutable/nodes/0.CjGVMG74.js +0 -1
  139. package/dist/web-ui/_app/immutable/nodes/1.B6_AIPan.js +0 -1
  140. package/dist/web-ui/_app/immutable/nodes/2.q4oCS7Ws.js +0 -1
  141. package/dist/web-ui/_app/immutable/nodes/3.rTKZf9o2.js +0 -1
  142. package/dist/web-ui/_app/immutable/nodes/4.DVIDRu1d.js +0 -1
  143. package/dist/web-ui/_app/immutable/nodes/5.8PtPXIOd.js +0 -1
  144. package/dist/web-ui/_app/immutable/nodes/6.ZZrTemy_.js +0 -1
  145. package/dist/web-ui/_app/immutable/nodes/7.IP-gxCxi.js +0 -1
@@ -0,0 +1 @@
1
+ import{br as ke,b as A,g as T,e as I,m as Z,bs as ht}from"./D3vxvonu.js";import{a as pt,b as x}from"./D7LTux4W.js";import{o as Ne}from"./CwELQvbx.js";class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function gt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function mt(e){return e.split("%25").map(decodeURI).join("%25")}function _t(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function wt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function vt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const yt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(xe(e)),yt(e,t));const F=new Map;function bt(e,t){const n=xe(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...s}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&F.set(n,{body:r,init:s,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=vt(r)),Promise.resolve(new Response(r,s))}return window.fetch(e,t)}function kt(e,t,n){if(F.size>0){const a=xe(e,n),r=F.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);F.delete(a)}}return window.fetch(t,n)}function xe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${wt(...r)}"]`}return a}const Et=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function St(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${xt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(_=>parseInt(_,16))));const f=Et.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function xt(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,n){const a={},r=e.slice(1),s=r.filter(i=>i!==void 0);let o=0;for(let i=0;i<t.length;i+=1){const c=t[i];let l=r[i-o];if(c.chained&&c.rest&&o&&(l=r.slice(i-o,i+1).filter(f=>f).join("/"),o=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[i+1],h=r[i+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===s.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ut({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([i,[c,l,f]])=>{const{pattern:h,params:w}=St(i),u={id:i,exec:g=>{const _=h.exec(g);if(_)return Lt(_,w,a)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:s(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function s(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function o(i){return i===void 0?i:[r.has(i),e[i]]}}function Ge(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const At="1772928360048",We="sveltekit:snapshot",Ye="sveltekit:scroll",ze="sveltekit:states",Tt="sveltekit:pageurl",B="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ce=location.origin;function Le(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const qe={...j,"":j.hover};function He(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Je(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=He(e)}}function _e(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";a.hash=`#${i}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,s=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===ce&&e.hasAttribute("download");return{url:a,external:s,target:r,download:o}}function ee(e){let t=null,n=null,a=null,r=null,s=null,o=null,i=e;for(;i&&i!==document.documentElement;)a===null&&(a=V(i,"preload-code")),r===null&&(r=V(i,"preload-data")),t===null&&(t=V(i,"keepfocus")),n===null&&(n=V(i,"noscroll")),s===null&&(s=V(i,"reload")),o===null&&(o=V(i,"replacestate")),i=He(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:qe[a??"off"],preload_data:qe[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(o)}}function Ve(e){const t=ke(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function s(o){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&o(i=c)})}return{notify:a,set:r,subscribe:s}}const Xe={v:()=>{}};function It(){const{set:e,subscribe:t}=ke(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${pt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==At;return o&&(e(!0),Xe.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==ce||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function on(e){}const Qe=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Qe];const Ot=new Set([...Qe]);[...Ot];function Pt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof Re?e.status:500}function Ct(e){return e instanceof Re?e.text:"Internal Error"}let k,Y,ge;const $t=Ne.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ne.toString());$t?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},ge={current:!1}):(k=new class{#e=A({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=A(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=A(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#a=A({});get params(){return T(this.#a)}set params(t){I(this.#a,t)}#r=A({id:null});get route(){return T(this.#r)}set route(t){I(this.#r,t)}#o=A({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=A(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},Y=new class{#e=A(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},ge=new class{#e=A(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},Xe.v=()=>ge.current=!0);function jt(e){Object.assign(k,e)}const Nt=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Ge(Ye)??{},z=Ge(We)??{},$={url:Ve({}),page:Ve({}),navigating:ke(null),updated:It()};function Ae(e){D[e]=le()}function Dt(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Be(){}let Te,we,te,O,ve,v;const ne=[],ae=[];let L=null;function ye(){L?.fork?.then(e=>e?.discard()),L=null}const Q=new Map,et=new Set,qt=new Set,G=new Set;let m={branch:[],error:null,url:null},tt=!1,re=!1,Ke=!0,J=!1,M=!1,nt=!1,Ie=!1,at,y,R,N;const oe=new Set,Me=new Map;async function un(e,t,n){globalThis.__sveltekit_1t47v30?.data&&globalThis.__sveltekit_1t47v30.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=Ut(e),O=document.documentElement,ve=t,we=e.nodes[0],te=e.nodes[1],we(),te(),y=history.state?.[B],R=history.state?.[W],y||(y=R=Date.now(),history.replaceState({...history.state,[B]:y,[W]:R},""));const a=D[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Qt(ve,n)):(await K({type:"enter",url:Le(v.hash?tn(new URL(location.href)):location.href),replace_state:!0}),r()),Xt()}function Vt(){ne.length=0,Ie=!1}function rt(e){ae.some(t=>t?.snapshot)&&(z[e]=ae.map(t=>t?.snapshot?.capture()))}function ot(e){z[e]?.forEach((t,n)=>{ae[n]?.snapshot?.restore(t)})}function Fe(){Ae(y),De(Ye,D),rt(R),De(We,z)}async function st(e,t,n,a){let r;t.invalidateAll&&ye(),await K({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Ie=!0,r=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(Jt)}}),t.invalidateAll&&Z().then(Z).then(()=>{Me.forEach(({resource:s},o)=>{r?.includes(o)&&s.refresh?.()})})}async function Bt(e){if(e.id!==L?.id){ye();const t={};oe.add(t),L={id:e.id,token:t,promise:ct({...e,preload:t}).then(n=>(oe.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null}}return L.promise}async function me(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function it(e,t,n){m=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),at=new v.root({target:t,props:{...e.props,stores:$,components:ae},hydrate:n,sync:!1}),await Promise.resolve(),ot(R),n){const r={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(s=>s(r))}re=!0}function se({url:e,params:t,branch:n,status:a,error:r,route:s,form:o}){let i="never";if(x&&(e.pathname===x||e.pathname===x+"/"))i="always";else for(const u of n)u?.slash!==void 0&&(i=u.slash);e.pathname=gt(e.pathname,i),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:s},props:{constructors:Pt(n).map(u=>u.node.component),page:je(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,m.branch.length);u+=1){const g=n[u],_=m.branch[u];g?.data!==_?.data&&(f=!0),g&&(l={...l,...g.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!m.url||e.href!==m.url.href||m.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:s?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:s}){let o=null;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:s,universal:c.universal?.load?{type:"data",data:o,uses:i}:null,data:o??s?.data??null,slash:c.universal?.trailingSlash??s?.slash}}function Kt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=re?kt(a,r.href,t):bt(a,t);return{resolved:r,promise:s}}function Mt(e,t,n,a,r,s){if(Ie)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(s[o]!==m.params[o])return!0;for(const o of r.dependencies)if(ne.some(i=>i(new URL(o))))return!0;return!1}function Pe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),s=t.searchParams.getAll(a);r.every(o=>s.includes(o))&&s.every(o=>r.includes(o))&&n.delete(a)}return n}function Gt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:je(k),constructors:[]}}}async function ct({id:e,invalidating:t,url:n,params:a,route:r,preload:s}){if(L?.id===e)return oe.delete(L.token),L.promise;const{errors:o,layouts:i,leaf:c}=r,l=[...i,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=m.url?e!==ie(m.url):!1,h=m.route?r.id!==m.route.id:!1,w=Ft(m.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const E=m.branch[d];return p[1]===E?.loader&&!Mt(u,h,f,w,E.universal?.uses,a)?E:(u=!0,Oe({loader:p[1],url:n,params:a,route:r,parent:async()=>{const P={};for(let U=0;U<d;U+=1)Object.assign(P,(await g[U])?.data);return P},server_data_node:Pe(p[0]?{type:"skip"}:null,p[0]?E?.server:void 0)}))});for(const p of g)p.catch(()=>{});const _=[];for(let p=0;p<l.length;p+=1)if(l[p])try{_.push(await g[p])}catch(d){if(d instanceof Se)return{type:"redirect",location:d.location};if(oe.has(s))return Gt({error:await X(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Ee)S=d.body;else{if(await $.updated.check())return await Ze(),await H(n);S=await X(d,{params:a,url:n,route:{id:r.id}})}const P=await Wt(p,_,o);return P?se({url:n,params:a,branch:_.slice(0,P.idx).concat(P.node),status:E,error:S,route:r}):await ut(n,{id:r.id},S,E)}else _.push(void 0);return se({url:n,params:a,branch:_,status:200,error:null,route:r,form:t?void 0:null})}async function Wt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ce({status:e,error:t,url:n,route:a}){const r={};let s=null;try{const o=await Oe({loader:we,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Pe(s)}),i={node:await te(),loader:te,universal:null,server:null,data:null};return se({url:n,params:r,branch:[o,i],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return st(new URL(o.location,location.href),{},0);throw o}}async function Yt(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(s,o)=>Kt(s,o,e).promise})??e;if(typeof r=="string"){const s=new URL(e);v.hash?s.hash=r:s.pathname=r,r=s}return r})();Q.set(t,a),n=await a}catch{Q.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,v.hash)){const n=await Yt(e);if(!n)return;const a=zt(n);for(const r of Te){const s=r.exec(a);if(s)return{id:ie(e),invalidating:t,route:r,params:_t(s),url:e}}}}function zt(e){return mt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ie(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function lt({url:e,type:t,intent:n,delta:a,event:r}){let s=!1;const o=$e(m,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const i={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return J||et.forEach(c=>c(i)),s?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o={},redirect_count:i=0,nav_token:c={},accept:l=Be,block:f=Be,event:h}){const w=N;N=c;const u=await fe(t,!1),g=e==="enter"?$e(m,u,t,e):lt({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),N===c&&(N=w);return}const _=y,p=R;l(),J=!0,re&&g.navigation.type!=="enter"&&$.navigating.set(Y.current=g.navigation);let d=u&&await ct(u);if(!d){if(ue(t,x,v.hash))return await H(t,s);d=await ut(t,{id:null},await X(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=u?.url||t,N!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(i<20){await K({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o,redirect_count:i+1,nav_token:c}),g.fulfil(void 0);return}d=await Ce({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await $.updated.check()&&(await Ze(),await H(t,s));if(Vt(),Ae(_),rt(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=s?0:1,q={[B]:y+=b,[W]:R+=b,[ze]:o};(s?history.replaceState:history.pushState).call(history,q,"",t),s||Dt(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,d.props.page.state=o;let S;if(re){const b=(await Promise.all(Array.from(qt,C=>C(g.navigation)))).filter(C=>typeof C=="function");if(b.length>0){let C=function(){b.forEach(de=>{G.delete(de)})};b.push(C),b.forEach(de=>{G.add(de)})}m=d.state,d.props.page&&(d.props.page.url=t);const q=E&&await E;q?S=q.commit():(at.$set(d.props),jt(d.props.page),S=ht?.()),nt=!0}else await it(d,ve,!1);const{activeElement:P}=document;await S,await Z(),await Z();let U=n?n.scroll:r?le():null;if(Ke){const b=t.hash&&document.getElementById(ft(t));if(U)scrollTo(U.x,U.y);else if(b){b.scrollIntoView();const{top:q,left:C}=b.getBoundingClientRect();U={x:pageXOffset+C,y:pageYOffset+q}}else scrollTo(0,0)}const dt=document.activeElement!==P&&document.activeElement!==document.body;!a&&!dt&&en(t,U),Ke=!0,d.props.page&&Object.assign(k,d.props.page),J=!1,e==="popstate"&&ot(R),g.fulfil(void 0),G.forEach(b=>b(g.navigation)),$.navigating.set(Y.current=null)}async function ut(e,t,n,a,r){return e.origin===ce&&e.pathname===location.pathname&&!tt?await Ce({status:a,error:n,url:e,route:t}):await H(e,r)}function Ht(){let e,t={element:void 0,href:void 0},n;O.addEventListener("mousemove",i=>{const c=i.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function a(i){i.defaultPrevented||s(i.composedPath()[0],j.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(i=>{for(const c of i)c.isIntersecting&&(me(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function s(i,c){const l=Je(i,O),f=l===t.element&&l?.href===t.href&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=_e(l,x,v.hash);if(w||u)return;const g=ee(l),_=h&&ie(m.url)===ie(h);if(!(g.reload||_))if(c<=g.preload_data){t={element:l,href:l.href},n=j.tap;const p=await fe(h,!1);if(!p)return;Bt(p)}else c<=g.preload_code&&(t={element:l,href:l.href},n=c,me(h))}function o(){r.disconnect();for(const i of O.querySelectorAll("a")){const{url:c,external:l,download:f}=_e(i,x,v.hash);if(l||f)continue;const h=ee(i);h.reload||(h.preload_code===j.viewport&&r.observe(i),h.preload_code===j.eager&&me(c))}}G.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),a=Ct(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function fn(e,t={}){return e=new URL(Le(e)),e.origin!==ce?Promise.reject(new Error("goto: invalid URL")):st(e,t,0)}function Jt(e){if(typeof e=="function")ne.push(e);else{const{href:t}=new URL(e,location.href);ne.push(n=>n.href===t)}}function Xt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Fe(),!J){const a=$e(m,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};et.forEach(s=>s(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Fe()}),navigator.connection?.saveData||Ht(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Je(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:s,download:o}=_e(n,x,v.hash);if(!a)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const i=ee(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===he(location);if(r||i.reload&&(!h||!f)){lt({url:a,type:"link",event:t})?J=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=m.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(M=!0,Ae(y),e(a),!i.replace_state)return;M=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await K({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,x,!1))return;const i=t.target,c=ee(i);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(i,a);o.search=new URLSearchParams(l).toString(),K({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[B]){const n=t.state[B];if(N={},n===y)return;const a=D[n],r=t.state[ze]??{},s=new URL(t.state[Tt]??location.href),o=t.state[W],i=m.url?he(location)===he(m.url):!1;if(o===R&&(nt||i)){r!==k.state&&(k.state=r),e(s),D[y]=le(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await K({type:"popstate",url:s,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,R=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[B]:++y,[W]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Nt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(Y.current=null)});function e(t){m.url=k.url=t,$.page.set(je(k)),$.page.notify()}}async function Qt(e,{status:t=200,error:n,node_ids:a,params:r,route:s,server_route:o,data:i,form:c}){tt=!0;const l=new URL(location.href);let f;({params:r={},route:s={id:null}}=await fe(l,!1)||{}),f=Te.find(({id:u})=>u===s.id);let h,w=!0;try{const u=a.map(async(_,p)=>{const d=i[p];return d?.uses&&(d.uses=Zt(d.uses)),Oe({loader:v.nodes[_],url:l,params:r,route:s,parent:async()=>{const E={};for(let S=0;S<p;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Pe(d)})}),g=await Promise.all(u);if(f){const _=f.layouts;for(let p=0;p<_.length;p++)_[p]||g.splice(p,0,void 0)}h=se({url:l,params:r,branch:g,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Se){await H(new URL(u.location,location.href));return}h=await Ce({status:Ue(u),error:await X(u,{url:l,params:r,route:s}),url:l,route:s}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await it(h,e,w)}function Zt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function en(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=ft(e);if(a&&document.getElementById(a)){const{x:s,y:o}=t??le();setTimeout(()=>{const i=history.state;be=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(s,o),be=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let o=0;o<r.rangeCount;o+=1)s.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===s.length){for(let o=0;o<r.rangeCount;o+=1){const i=s[o],c=r.getRangeAt(o);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function $e(e,t,n,a){let r,s;const o=new Promise((c,l)=>{r=c,s=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:s}}function je(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function tn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function ft(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{un as a,fn as g,on as l,k as p,$ as s};
@@ -0,0 +1 @@
1
+ import{f as d,a as c}from"./DvA-KON-.js";import{p as l,c as n,i as p,r as f,a as m}from"./D3vxvonu.js";import{l as h,m as u,k as v}from"./DQA8NZIH.js";import{p as _,r as b,b as g}from"./BysXJlZb.js";var w=d("<div><!></div>");function P(e,a){l(a,!0);let t=_(a,"ref",15,null),o=b(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=w();h(r,s=>({"data-slot":"card-header",class:s,...o}),[()=>u("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a.class)]);var i=n(r);v(i,()=>a.children??p),f(r),g(r,s=>t(s),()=>t()),c(e,r),m()}export{P as C};
@@ -0,0 +1 @@
1
+ import{b as j,c as A,a as k}from"./DvA-KON-.js";import"./BUZujXJ2.js";import{o as B,y as I,p as P,q as b,D as i,c as q,f as D,g as m,s as O,r as Q,a as E,h as F,Q as G}from"./D3vxvonu.js";import{l as w,e as H,h as J,x as K}from"./DQA8NZIH.js";import{i as L}from"./BVA9Exy-.js";import{l as p,p as n}from"./BysXJlZb.js";function M(t,e,r,a,l){B&&I();var o=e.$$slots?.[r],s=!1;o===!0&&(o=e.children,s=!0),o===void 0||o(t,s?()=>a:a)}const R={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const T=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const y=(...t)=>t.filter((e,r,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===r).join(" ").trim();var U=j("<svg><!><!></svg>");function re(t,e){const r=p(e,["children","$$slots","$$events","$$legacy"]),a=p(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);P(e,!1);let l=n(e,"name",8,void 0),o=n(e,"color",8,"currentColor"),s=n(e,"size",8,24),f=n(e,"strokeWidth",8,2),g=n(e,"absoluteStrokeWidth",8,!1),x=n(e,"iconNode",24,()=>[]);L();var d=U();w(d,(u,h,c)=>({...R,...u,...a,width:s(),height:s(),stroke:o(),"stroke-width":h,class:c}),[()=>T(a)?void 0:{"aria-hidden":"true"},()=>(i(g()),i(f()),i(s()),b(()=>g()?Number(f())*24/Number(s()):f())),()=>(i(y),i(l()),i(r),b(()=>y("lucide-icon","lucide",l()?`lucide-${l()}`:"",r.class)))]);var v=q(d);H(v,1,x,J,(u,h)=>{var c=F(()=>G(m(h),2));let z=()=>m(c)[0],C=()=>m(c)[1];var _=A(),N=D(_);K(N,z,!0,(S,V)=>{w(S,()=>({...C()}))}),k(u,_)});var W=O(v);M(W,e,"default",{}),Q(d),k(t,d),E()}export{re as I,M as s};
@@ -0,0 +1 @@
1
+ import{c as n,a as i}from"./DvA-KON-.js";import{p as m,f as l,i as c,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function y(r,o){m(o,!0);let a=u(o,["$$slots","$$events","$$legacy"]);const t=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]];$(r,h({name:"inbox"},()=>a,{get iconNode(){return t},children:(e,v)=>{var s=n(),p=l(s);f(p,()=>o.children??c),i(e,s)},$$slots:{default:!0}})),d()}export{y as I};
@@ -0,0 +1 @@
1
+ import{p as Y,c as S,a as y,f as W}from"./DvA-KON-.js";import{o as ye,y as we,bi as Se,x as Ee,b as A,bj as Lt,aj as Te,g as c,e as g,at as j,bk as Ce,bl as Bt,bm as Ae,A as Oe,u as vt,q as Pe,m as Ie,h as T,p as I,f as w,a as N,c as Z,i as D,r as J,bn as Ne,bo as De,s as Vt}from"./D3vxvonu.js";import{k as C,l as Q}from"./DQA8NZIH.js";import{B as Fe,p as d,i as R,r as $,s as mt}from"./BysXJlZb.js";import{r as gt,e as h,c as Zt,l as ke,a as tt,k as lt,d as et,m as M,u as ut,p as xe,v as Re}from"./CPPfDSei.js";import{f as Me,o as P,m as _e,u as Le}from"./D9QNBZM2.js";function Be(r,t,e){ye&&we();var n=new Fe(r),s=!Se();Ee(()=>{var o=t();s&&o!==null&&typeof o=="object"&&(o={}),n.ensure(o,e)})}class Ve extends Map{#t=new Map;#e=A(0);#r=A(0);#n=Lt||-1;constructor(t){if(super(),t){for(var[e,n]of t)super.set(e,n);this.#r.v=super.size}}#s(t){return Lt===this.#n?A(t):Te(t)}has(t){var e=this.#t,n=e.get(t);if(n===void 0){var s=super.get(t);if(s!==void 0)n=this.#s(0),e.set(t,n);else return c(this.#e),!1}return c(n),!0}forEach(t,e){this.#i(),super.forEach(t,e)}get(t){var e=this.#t,n=e.get(t);if(n===void 0){var s=super.get(t);if(s!==void 0)n=this.#s(0),e.set(t,n);else{c(this.#e);return}}return c(n),super.get(t)}set(t,e){var n=this.#t,s=n.get(t),o=super.get(t),i=super.set(t,e),a=this.#e;if(s===void 0)s=this.#s(0),n.set(t,s),g(this.#r,super.size),j(a);else if(o!==e){j(s);var l=a.reactions===null?null:new Set(a.reactions),u=l===null||!s.reactions?.every(b=>l.has(b));u&&j(a)}return i}delete(t){var e=this.#t,n=e.get(t),s=super.delete(t);return n!==void 0&&(e.delete(t),g(this.#r,super.size),g(n,-1),j(this.#e)),s}clear(){if(super.size!==0){super.clear();var t=this.#t;g(this.#r,0);for(var e of t.values())g(e,-1);j(this.#e),t.clear()}}#i(){c(this.#e);var t=this.#t;if(this.#r.v!==t.size){for(var e of super.keys())if(!t.has(e)){var n=this.#s(0);t.set(e,n)}}for([,n]of this.#t)c(n)}keys(){return c(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return c(this.#r),super.size}}const Ue=typeof window<"u"?window:void 0;function We(r){let t=r.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}class Ke{#t;#e;constructor(t={}){const{window:e=Ue,document:n=e?.document}=t;e!==void 0&&(this.#t=n,this.#e=Me(s=>{const o=P(e,"focusin",s),i=P(e,"focusout",s);return()=>{o(),i()}}))}get current(){return this.#e?.(),this.#t?We(this.#t):null}}new Ke;class Jt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return Ce(this.#e)}get(){const t=Bt(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const e=Bt(this.#e);return e===void 0?t:e}set(t){return Ae(this.#e,t)}}function qe(r,t){switch(r){case"post":vt(t);break;case"pre":Oe(t);break}}function Qt(r,t,e,n={}){const{lazy:s=!1}=n;let o=!s,i=Array.isArray(r)?[]:void 0;qe(t,()=>{const a=Array.isArray(r)?r.map(u=>u()):r();if(!o){o=!0,i=a;return}const l=Pe(()=>e(a,i));return i=a,l})}function F(r,t,e){Qt(r,"post",t,e)}function ze(r,t,e){Qt(r,"pre",t,e)}F.pre=ze;function K(r){vt(()=>()=>{r()})}function Ge(r,t){return setTimeout(t,r)}function Tt(r){Ie().then(r)}const je=1,He=9,Xe=11;function St(r){return gt(r)&&r.nodeType===je&&typeof r.nodeName=="string"}function $t(r){return gt(r)&&r.nodeType===He}function Ye(r){return gt(r)&&r.constructor?.name==="VisualViewport"}function Ze(r){return gt(r)&&r.nodeType!==void 0}function te(r){return Ze(r)&&r.nodeType===Xe&&"host"in r}function Je(r,t){if(!r||!t||!St(r)||!St(t))return!1;const e=t.getRootNode?.();if(r===t||r.contains(t))return!0;if(e&&te(e)){let n=t;for(;n;){if(r===n)return!0;n=n.parentNode||n.host}}return!1}function Qe(r){return $t(r)?r:Ye(r)?r.document:r?.ownerDocument??document}function $e(r){return te(r)?$e(r.host):$t(r)?r.defaultView??window:St(r)?r.ownerDocument?.defaultView??window:window}function tr(r){let t=r.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}class ee{element;#t=T(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return c(this.#t)}set root(t){g(this.#t,t)}constructor(t){typeof t=="function"?this.element=h(t):this.element=t}getDocument=()=>Qe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>tr(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,e)=>this.getWindow().setTimeout(t,e);clearTimeout=t=>this.getWindow().clearTimeout(t)}const dn="ArrowDown",hn="ArrowLeft",fn="ArrowRight",pn="ArrowUp",vn="End",er="Enter",rr="Escape",gn="Home",bn="PageDown",mn="PageUp",nr=" ",yn="Tab",wn="p",Sn="n",En="j",Tn="k",Cn="h",An="l",re=typeof document<"u",Ut=sr();function sr(){return re&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Wt(r){return r instanceof HTMLElement}function On(r){return r instanceof Element}function ir(r){return r instanceof Element||r instanceof SVGElement}function Pn(r){return r.matches(":focus-visible")}function In(r){return r!==null}class or{#t;#e=null;constructor(t){this.#t=t,K(()=>this.#r())}#r(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#r();const e=this.#t.ref.current;if(e){if(typeof e.getAnimations!="function"){this.#n(t);return}this.#e=window.requestAnimationFrame(()=>{const n=e.getAnimations();if(n.length===0){this.#n(t);return}Promise.allSettled(n.map(s=>s.finished)).then(()=>{this.#n(t)})})}}#n(t){const e=()=>{t()};this.#t.afterTick?Tt(e):e()}}class Kt{#t;#e;#r;#n=A(!1);constructor(t){this.#t=t,g(this.#n,t.open.current,!0),this.#e=t.enabled??!0,this.#r=new or({ref:this.#t.ref,afterTick:this.#t.open}),F(()=>this.#t.open.current,e=>{e&&g(this.#n,!0),this.#e&&this.#r.run(()=>{e===this.#t.open.current&&(this.#t.open.current||g(this.#n,!1),this.#t.onComplete?.())})})}get shouldRender(){return c(this.#n)}}function E(){}const ar=Zt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),B=new Jt("Dialog.Root | AlertDialog.Root");class Ct{static create(t){const e=B.getOr(null);return B.set(new Ct(t,e))}opts;#t=A(null);get triggerNode(){return c(this.#t)}set triggerNode(t){g(this.#t,t,!0)}#e=A(null);get contentNode(){return c(this.#e)}set contentNode(t){g(this.#e,t,!0)}#r=A(null);get overlayNode(){return c(this.#r)}set overlayNode(t){g(this.#r,t,!0)}#n=A(null);get descriptionNode(){return c(this.#n)}set descriptionNode(t){g(this.#n,t,!0)}#s=A(void 0);get contentId(){return c(this.#s)}set contentId(t){g(this.#s,t,!0)}#i=A(void 0);get titleId(){return c(this.#i)}set titleId(t){g(this.#i,t,!0)}#u=A(void 0);get triggerId(){return c(this.#u)}set triggerId(t){g(this.#u,t,!0)}#o=A(void 0);get descriptionId(){return c(this.#o)}set descriptionId(t){g(this.#o,t,!0)}#l=A(null);get cancelNode(){return c(this.#l)}set cancelNode(t){g(this.#l,t,!0)}#c=A(0);get nestedOpenCount(){return c(this.#c)}set nestedOpenCount(t){g(this.#c,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,e){this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Kt({ref:h(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Kt({ref:h(()=>this.overlayNode),open:this.opts.open,enabled:!0}),F(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),K(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>ar.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#a=T(()=>({"data-state":ke(this.opts.open.current)}));get sharedProps(){return c(this.#a)}set sharedProps(t){g(this.#a,t)}}class At{static create(t){return new At(t,B.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===nr||t.key===er)&&(t.preventDefault(),this.root.handleClose())}#t=T(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return c(this.#t)}set props(t){g(this.#t,t)}}class Ot{static create(t){return new Ot(t,B.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=tt(this.opts.ref),F.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}#t=T(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return c(this.#t)}set props(t){g(this.#t,t)}}class Pt{static create(t){return new Pt(t,B.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.descriptionId=this.opts.id.current,this.attachment=tt(this.opts.ref,n=>{this.root.descriptionNode=n}),F.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}#t=T(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return c(this.#t)}set props(t){g(this.#t,t)}}class It{static create(t){return new It(t,B.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n?.id})}#t=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return c(this.#t)}set snippetProps(t){g(this.#t,t)}#e=T(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":lt(this.root.nestedOpenCount>0),"data-nested":lt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return c(this.#e)}set props(t){g(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class Nt{static create(t){return new Nt(t,B.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(this.opts.ref,n=>this.root.overlayNode=n)}#t=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return c(this.#t)}set snippetProps(t){g(this.#t,t)}#e=T(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":lt(this.root.nestedOpenCount>0),"data-nested":lt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return c(this.#e)}set props(t){g(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}var ur=W("<div><!></div>");function Nn(r,t){const e=Y();I(t,!0);let n=d(t,"id",19,()=>et(e)),s=d(t,"ref",15,null),o=d(t,"level",3,2),i=$(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=Ot.create({id:h(()=>n()),level:h(()=>o()),ref:h(()=>s(),p=>s(p))}),l=T(()=>M(i,a.props));var u=S(),b=w(u);{var v=p=>{var f=S(),O=w(f);C(O,()=>t.child,()=>({props:c(l)})),y(p,f)},m=p=>{var f=ur();Q(f,()=>({...c(l)}));var O=Z(f);C(O,()=>t.children??D),J(f),y(p,f)};R(b,p=>{t.child?p(v):p(m,!1)})}y(r,u),N()}function cr(r,t){var e=S(),n=w(e);Be(n,()=>t.children,s=>{var o=S(),i=w(o);C(i,()=>t.children??D),y(s,o)}),y(r,e)}const lr=new Jt("BitsConfig");function dr(){const r=new hr(null,{});return lr.getOr(r).opts}class hr{opts;constructor(t,e){const n=fr(t,e);this.opts={defaultPortalTo:n(s=>s.defaultPortalTo),defaultLocale:n(s=>s.defaultLocale)}}}function fr(r,t){return e=>h(()=>{const s=e(t)?.current;if(s!==void 0)return s;if(r!==null)return e(r.opts)?.current})}function pr(r,t){return e=>{const n=dr();return h(()=>{const s=e();if(s!==void 0)return s;const o=r(n).current;return o!==void 0?o:t})}}const vr=pr(r=>r.defaultPortalTo,"body");function Dn(r,t){I(t,!0);const e=vr(()=>t.to),n=Ne();let s=T(o);function o(){if(!re||t.disabled)return null;let v=null;return typeof e.current=="string"?v=document.querySelector(e.current):v=e.current,v}let i;function a(){i&&(Le(i),i=null)}F([()=>c(s),()=>t.disabled],([v,m])=>{if(!v||m){a();return}return i=_e(cr,{target:v,props:{children:t.children},context:n}),()=>{a()}});var l=S(),u=w(l);{var b=v=>{var m=S(),p=w(m);C(p,()=>t.children??D),y(v,m)};R(u,v=>{t.disabled&&v(b)})}y(r,l),N()}function qt(r,t=500){let e=null;const n=(...s)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{r(...s)},t)};return n.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},n}function ne(r,t){return r===t||r.contains(t)}function se(r){return r?.ownerDocument??document}function Fn(r){if(!r)return null;for(const t of r.childNodes)if(t.nodeType!==Node.COMMENT_NODE)return t;return null}function gr(r,t){const{clientX:e,clientY:n}=r,s=t.getBoundingClientRect();return e<s.left||e>s.right||n<s.top||n>s.bottom}var ie=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Et=ie.join(","),oe=typeof Element>"u",U=oe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,dt=!oe&&Element.prototype.getRootNode?function(r){var t;return r==null||(t=r.getRootNode)===null||t===void 0?void 0:t.call(r)}:function(r){return r?.ownerDocument},ht=function(t,e){var n;e===void 0&&(e=!0);var s=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=s===""||s==="true",i=o||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):ht(t.parentNode));return i},br=function(t){var e,n=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return n===""||n==="true"},ae=function(t,e,n){if(ht(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(Et));return e&&U.call(t,Et)&&s.unshift(t),s=s.filter(n),s},ft=function(t,e,n){for(var s=[],o=Array.from(t);o.length;){var i=o.shift();if(!ht(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,u=ft(l,!0,n);n.flatten?s.push.apply(s,u):s.push({scopeParent:i,candidates:u})}else{var b=U.call(i,Et);b&&n.filter(i)&&(e||!t.includes(i))&&s.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),m=!ht(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&m){var p=ft(v===!0?i.children:v.children,!0,n);n.flatten?s.push.apply(s,p):s.push({scopeParent:i,candidates:p})}else o.unshift.apply(o,i.children)}}return s},ue=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ce=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||br(t))&&!ue(t)?0:t.tabIndex},mr=function(t,e){var n=ce(t);return n<0&&e&&!ue(t)?0:n},yr=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},le=function(t){return t.tagName==="INPUT"},wr=function(t){return le(t)&&t.type==="hidden"},Sr=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return e},Er=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]},Tr=function(t){if(!t.name)return!0;var e=t.form||dt(t),n=function(a){return e.querySelectorAll('input[type="radio"][name="'+a+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=n(window.CSS.escape(t.name));else try{s=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=Er(s,t.form);return!o||o===t},Cr=function(t){return le(t)&&t.type==="radio"},Ar=function(t){return Cr(t)&&!Tr(t)},Or=function(t){var e,n=t&&dt(t),s=(e=n)===null||e===void 0?void 0:e.host,o=!1;if(n&&n!==t){var i,a,l;for(o=!!((i=s)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(s)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&s;){var u,b,v;n=dt(s),s=(u=n)===null||u===void 0?void 0:u.host,o=!!((b=s)!==null&&b!==void 0&&(v=b.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return o},zt=function(t){var e=t.getBoundingClientRect(),n=e.width,s=e.height;return n===0&&s===0},Pr=function(t,e){var n=e.displayCheck,s=e.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var i=U.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(U.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof s=="function"){for(var l=t;t;){var u=t.parentElement,b=dt(t);if(u&&!u.shadowRoot&&s(u)===!0)return zt(t);t.assignedSlot?t=t.assignedSlot:!u&&b!==t.ownerDocument?t=b.host:t=u}t=l}if(Or(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return zt(t);return!1},Ir=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var n=0;n<e.children.length;n++){var s=e.children.item(n);if(s.tagName==="LEGEND")return U.call(e,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}e=e.parentElement}return!1},pt=function(t,e){return!(e.disabled||wr(e)||Pr(e,t)||Sr(e)||Ir(e))},Gt=function(t,e){return!(Ar(e)||ce(e)<0||!pt(t,e))},Nr=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},de=function(t){var e=[],n=[];return t.forEach(function(s,o){var i=!!s.scopeParent,a=i?s.scopeParent:s,l=mr(a,i),u=i?de(s.candidates):a;l===0?i?e.push.apply(e,u):e.push(a):n.push({documentOrder:o,tabIndex:l,item:s,isScope:i,content:u})}),n.sort(yr).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(e)},Dr=function(t,e){e=e||{};var n;return e.getShadowRoot?n=ft([t],e.includeContainer,{filter:Gt.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Nr}):n=ae(t,e.includeContainer,Gt.bind(null,e)),de(n)},Fr=function(t,e){e=e||{};var n;return e.getShadowRoot?n=ft([t],e.includeContainer,{filter:pt.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):n=ae(t,e.includeContainer,pt.bind(null,e)),n},kr=ie.concat("iframe:not([inert]):not([inert] *)").join(","),xr=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return U.call(t,kr)===!1?!1:pt(e,t)};const Rr="data-context-menu-trigger",Mr="data-context-menu-content";Zt({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??=new Map;class Dt{static create(t){return new Dt(t)}opts;#t;#e;#r={pointerdown:!1};#n=!1;#s=!1;#i=void 0;#u;#o=E;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#u=t.onFocusOutside,vt(()=>{this.#i=se(this.opts.ref.current)});let e=E;const n=()=>{this.#h(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),e()};F([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return Ge(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),e(),e=this.#c())}),n}),K(()=>{this.#h.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#o(),e()})}#l=t=>{t.defaultPrevented||this.opts.ref.current&&Tt(()=>{!this.opts.ref.current||this.#g(t.target)||t.target&&!this.#s&&this.#u.current?.(t)})};#c(){return ut(P(this.#i,"pointerdown",ut(this.#f,this.#v),{capture:!0}),P(this.#i,"pointerdown",ut(this.#p,this.#d)),P(this.#i,"focusin",this.#l))}#a=t=>{let e=t;e.defaultPrevented&&(e=jt(t)),this.#t.current(t)};#d=qt(t=>{if(!this.opts.ref.current){this.#o();return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||Br(t,this.opts.ref.current);if(!this.#n||this.#b()||!e){this.#o();return}let n=t;if(n.defaultPrevented&&(n=jt(n)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#o();return}t.pointerType==="touch"?(this.#o(),this.#o=P(this.#i,"click",this.#a,{once:!0})):this.#t.current(n)},10);#f=t=>{this.#r[t.type]=!0};#p=t=>{this.#r[t.type]=!1};#v=()=>{this.opts.ref.current&&(this.#n=Lr(this.opts.ref.current))};#g=t=>this.opts.ref.current?ne(this.opts.ref.current,t):!1;#h=qt(()=>{for(const t in this.#r)this.#r[t]=!1;this.#n=!1},20);#b(){return Object.values(this.#r).some(Boolean)}#m=()=>{this.#s=!0};#y=()=>{this.#s=!1};props={onfocuscapture:this.#m,onblurcapture:this.#y}}function _r(r=[...globalThis.bitsDismissableLayers]){return r.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function Lr(r){const t=[...globalThis.bitsDismissableLayers],e=_r(t);if(e)return e[0].opts.ref.current===r;const[n]=t[0];return n.opts.ref.current===r}function Br(r,t){const e=r.target;if(!ir(e))return!1;const n=!!e.closest(`[${Rr}]`);if("button"in r&&r.button>0&&!n)return!1;if("button"in r&&r.button===0&&n)return!0;const s=!!t.closest(`[${Mr}]`);return n&&s?!1:se(e).documentElement.contains(e)&&!ne(t,e)&&gr(r,t)}function jt(r){const t=r.currentTarget,e=r.target;let n;r instanceof PointerEvent?n=new PointerEvent(r.type,r):n=new PointerEvent("pointerdown",r);let s=!1;return new Proxy(n,{get:(i,a)=>a==="currentTarget"?t:a==="target"?e:a==="preventDefault"?()=>{s=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?s:a in i?i[a]:r[a]})}function Vr(r,t){I(t,!0);let e=d(t,"interactOutsideBehavior",3,"close"),n=d(t,"onInteractOutside",3,E),s=d(t,"onFocusOutside",3,E),o=d(t,"isValidEvent",3,()=>!1);const i=Dt.create({id:h(()=>t.id),interactOutsideBehavior:h(()=>e()),onInteractOutside:h(()=>n()),enabled:h(()=>t.enabled),onFocusOutside:h(()=>s()),isValidEvent:h(()=>o()),ref:t.ref});var a=S(),l=w(a);C(l,()=>t.children??D,()=>({props:i.props})),y(r,a),N()}globalThis.bitsEscapeLayers??=new Map;class Ft{static create(t){return new Ft(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new ee(this.opts.ref);let e=E;F(()=>t.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=this.#t()),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>P(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==rr||!Ur(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)}}function Ur(r){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([s,{current:o}])=>o==="close"||o==="ignore");if(e)return e[0]===r;const[n]=t[0];return n===r}function Wr(r,t){I(t,!0);let e=d(t,"escapeKeydownBehavior",3,"close"),n=d(t,"onEscapeKeydown",3,E);Ft.create({escapeKeydownBehavior:h(()=>e()),onEscapeKeydown:h(()=>n()),enabled:h(()=>t.enabled),ref:t.ref});var s=S(),o=w(s);C(o,()=>t.children??D),y(r,s),N()}class kt{static instance;#t=xe([]);#e=new WeakMap;#r=new WeakMap;static getInstance(){return this.instance||(this.instance=new kt),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const n=document.activeElement;n&&n!==document.body&&this.#r.set(t,n),this.#t.current=this.#t.current.filter(s=>s!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(n=>n!==t);const e=this.getActive();e&&e.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,e){this.#e.set(t,e)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){this.#r.set(t,e)}getPreFocusMemory(t){return this.#r.get(t)}clearPreFocusMemory(t){this.#r.delete(t)}}class xt{#t=!1;#e=null;#r=kt.getInstance();#n=[];#s;constructor(t){this.#s=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#n)t();this.#n=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#r.register(this),this.#l(),this.#u()}unmount(){this.#e&&(this.#i(),this.#o(),this.#r.unregister(this),this.#r.clearPreFocusMemory(this),this.#e=null)}#u(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#s.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const e=this.#a();e?(e.focus(),this.#r.setFocusMemory(this,e)):this.#e.focus()})}#o(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#s.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const e=this.#r.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#l(){if(!this.#e||!this.#s.trap.current)return;const t=this.#e,e=t.ownerDocument,n=i=>{if(this.#t||!this.#r.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#r.setFocusMemory(this,a);else{const u=this.#r.getFocusMemory(this);if(u&&t.contains(u)&&xr(u))i.preventDefault(),u.focus();else{const b=this.#a(),v=this.#d()[0];(b||v||t).focus()}}},s=i=>{if(!this.#s.loop||this.#t||i.key!=="Tab"||!this.#r.isActiveScope(this))return;const a=this.#c();if(a.length<2)return;const l=a[0],u=a[a.length-1];!i.shiftKey&&e.activeElement===u?(i.preventDefault(),l.focus()):i.shiftKey&&e.activeElement===l&&(i.preventDefault(),u.focus())};this.#n.push(P(e,"focusin",n,{capture:!0}),P(t,"keydown",s));const o=new MutationObserver(()=>{const i=this.#r.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#a(),l=this.#d()[0],u=a||l;u?(u.focus(),this.#r.setFocusMemory(this,u)):t.focus()}});o.observe(t,{childList:!0,subtree:!0}),this.#n.push(()=>o.disconnect())}#c(){return this.#e?Dr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#a(){return this.#c()[0]||null}#d(){return this.#e?Fr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let e=null;return F([()=>t.ref.current,()=>t.enabled.current],([n,s])=>{n&&s?(e||(e=new xt(t)),e.mount(n)):e&&(e.unmount(),e=null)}),K(()=>{e?.unmount()}),{get props(){return{tabindex:-1}}}}}function Kr(r,t){I(t,!0);let e=d(t,"enabled",3,!1),n=d(t,"trapFocus",3,!1),s=d(t,"loop",3,!1),o=d(t,"onCloseAutoFocus",3,E),i=d(t,"onOpenAutoFocus",3,E);const a=xt.use({enabled:h(()=>e()),trap:h(()=>n()),loop:s(),onCloseAutoFocus:h(()=>o()),onOpenAutoFocus:h(()=>i()),ref:t.ref});var l=S(),u=w(l);C(u,()=>t.focusScope??D,()=>({props:a.props})),y(r,l),N()}globalThis.bitsTextSelectionLayers??=new Map;class Rt{static create(t){return new Rt(t)}opts;domContext;#t=E;constructor(t){this.opts=t,this.domContext=new ee(t.ref);let e=E;F(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=this.#e()),()=>{e(),this.#n(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return ut(P(this.domContext.getDocument(),"pointerdown",this.#r),P(this.domContext.getDocument(),"pointerup",Re(this.#n,this.opts.onPointerUp.current)))}#r=t=>{const e=this.opts.ref.current,n=t.target;!Wt(e)||!Wt(n)||!this.opts.enabled.current||!zr(this)||!Je(e,n)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=qr(e,this.domContext.getDocument().body)))};#n=()=>{this.#t(),this.#t=E}}const Ht=r=>r.style.userSelect||r.style.webkitUserSelect;function qr(r,t){const e=Ht(t),n=Ht(r);return ot(t,"none"),ot(r,"text"),()=>{ot(t,e),ot(r,n)}}function ot(r,t){r.style.userSelect=t,r.style.webkitUserSelect=t}function zr(r){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===r:!1}function Gr(r,t){I(t,!0);let e=d(t,"preventOverflowTextSelection",3,!0),n=d(t,"onPointerDown",3,E),s=d(t,"onPointerUp",3,E);Rt.create({id:h(()=>t.id),onPointerDown:h(()=>n()),onPointerUp:h(()=>s()),enabled:h(()=>t.enabled&&e()),ref:t.ref});var o=S(),i=w(o);C(i,()=>t.children??D),y(r,o),N()}globalThis.bitsIdCounter??={current:0};function jr(r="bits"){return globalThis.bitsIdCounter.current++,`${r}-${globalThis.bitsIdCounter.current}`}class Hr{#t;#e=0;#r=A();#n;constructor(t){this.#t=t}#s(){this.#e-=1,this.#n&&this.#e<=0&&(this.#n(),g(this.#r,void 0),this.#n=void 0)}get(...t){return this.#e+=1,c(this.#r)===void 0&&(this.#n=De(()=>{g(this.#r,this.#t(...t),!0)})),vt(()=>()=>{this.#s()}),c(this.#r)}}const ct=new Ve;let at=A(null),yt=null,H=null,X=!1;const Xt=h(()=>{for(const r of ct.values())if(r)return!0;return!1});let wt=null;const Xr=new Hr(()=>{function r(){document.body.setAttribute("style",c(at)??""),document.body.style.removeProperty("--scrollbar-width"),Ut&&yt?.(),g(at,null)}function t(){H!==null&&(window.clearTimeout(H),H=null)}function e(s,o){t(),X=!0,wt=Date.now();const i=wt,a=()=>{H=null,wt===i&&(he(ct)?X=!1:(X=!1,o()))},l=s===null?24:s;H=window.setTimeout(a,l)}function n(){c(at)===null&&ct.size===0&&!X&&g(at,document.body.getAttribute("style"),!0)}return F(()=>Xt.current,()=>{if(!Xt.current)return;n(),X=!1;const s=getComputedStyle(document.documentElement),o=getComputedStyle(document.body),i=s.scrollbarGutter?.includes("stable")||o.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(o.paddingRight??"0",10)+a,margin:Number.parseInt(o.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Ut&&(yt=P(document,"touchmove",b=>{b.target===document.documentElement&&(b.touches.length>1||b.preventDefault())},{passive:!1})),Tt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),K(()=>()=>{yt?.()}),{get lockMap(){return ct},resetBodyStyle:r,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:n}});class Yr{#t=jr();#e;#r=()=>null;#n;locked;constructor(t,e=()=>null){this.#e=t,this.#r=e,this.#n=Xr.get(),this.#n&&(this.#n.cancelPendingCleanup(),this.#n.ensureInitialStyleCaptured(),this.#n.lockMap.set(this.#t,this.#e??!1),this.locked=h(()=>this.#n.lockMap.get(this.#t)??!1,n=>this.#n.lockMap.set(this.#t,n)),K(()=>{if(this.#n.lockMap.delete(this.#t),he(this.#n.lockMap))return;const n=this.#r();this.#n.scheduleCleanupIfNoNewLocks(n,()=>{this.#n.resetBodyStyle()})}))}}function he(r){for(const[t,e]of r)if(e)return!0;return!1}function Yt(r,t){I(t,!0);let e=d(t,"preventScroll",3,!0),n=d(t,"restoreScrollDelay",3,null);e()&&new Yr(e(),()=>n()),N()}var Zr=W("<div><!></div>");function kn(r,t){const e=Y();I(t,!0);let n=d(t,"id",19,()=>et(e)),s=d(t,"forceMount",3,!1),o=d(t,"ref",15,null),i=$(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=Nt.create({id:h(()=>n()),ref:h(()=>o(),m=>o(m))}),l=T(()=>M(i,a.props));var u=S(),b=w(u);{var v=m=>{var p=S(),f=w(p);{var O=_=>{var k=S(),x=w(k);{let nt=T(()=>({props:M(c(l)),...a.snippetProps}));C(x,()=>t.child,()=>c(nt))}y(_,k)},rt=_=>{var k=Zr();Q(k,nt=>({...nt}),[()=>M(c(l))]);var x=Z(k);C(x,()=>t.children??D,()=>a.snippetProps),J(k),y(_,k)};R(f,_=>{t.child?_(O):_(rt,!1)})}y(m,p)};R(b,m=>{(a.shouldRender||s())&&m(v)})}y(r,u),N()}var Jr=W("<div><!></div>");function xn(r,t){const e=Y();I(t,!0);let n=d(t,"id",19,()=>et(e)),s=d(t,"ref",15,null),o=$(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=Pt.create({id:h(()=>n()),ref:h(()=>s(),m=>s(m))}),a=T(()=>M(o,i.props));var l=S(),u=w(l);{var b=m=>{var p=S(),f=w(p);C(f,()=>t.child,()=>({props:c(a)})),y(m,p)},v=m=>{var p=Jr();Q(p,()=>({...c(a)}));var f=Z(p);C(f,()=>t.children??D),J(p),y(m,p)};R(u,m=>{t.child?m(b):m(v,!1)})}y(r,l),N()}function Rn(r,t){I(t,!0);let e=d(t,"open",15,!1),n=d(t,"onOpenChange",3,E),s=d(t,"onOpenChangeComplete",3,E);Ct.create({variant:h(()=>"dialog"),open:h(()=>e(),a=>{e(a),n()(a)}),onOpenChangeComplete:h(()=>s())});var o=S(),i=w(o);C(i,()=>t.children??D),y(r,o),N()}var Qr=W("<button><!></button>");function Mn(r,t){const e=Y();I(t,!0);let n=d(t,"id",19,()=>et(e)),s=d(t,"ref",15,null),o=d(t,"disabled",3,!1),i=$(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const a=At.create({variant:h(()=>"close"),id:h(()=>n()),ref:h(()=>s(),p=>s(p)),disabled:h(()=>!!o())}),l=T(()=>M(i,a.props));var u=S(),b=w(u);{var v=p=>{var f=S(),O=w(f);C(O,()=>t.child,()=>({props:c(l)})),y(p,f)},m=p=>{var f=Qr();Q(f,()=>({...c(l)}));var O=Z(f);C(O,()=>t.children??D),J(f),y(p,f)};R(b,p=>{t.child?p(v):p(m,!1)})}y(r,u),N()}var $r=W("<!> <!>",1),tn=W("<!> <div><!></div>",1);function _n(r,t){const e=Y();I(t,!0);let n=d(t,"id",19,()=>et(e)),s=d(t,"ref",15,null),o=d(t,"forceMount",3,!1),i=d(t,"onCloseAutoFocus",3,E),a=d(t,"onOpenAutoFocus",3,E),l=d(t,"onEscapeKeydown",3,E),u=d(t,"onInteractOutside",3,E),b=d(t,"trapFocus",3,!0),v=d(t,"preventScroll",3,!0),m=d(t,"restoreScrollDelay",3,null),p=$(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const f=It.create({id:h(()=>n()),ref:h(()=>s(),x=>s(x))}),O=T(()=>M(p,f.props));var rt=S(),_=w(rt);{var k=x=>{Kr(x,{get ref(){return f.opts.ref},loop:!0,get trapFocus(){return b()},get enabled(){return f.root.opts.open.current},get onOpenAutoFocus(){return a()},get onCloseAutoFocus(){return i()},focusScope:(fe,pe)=>{let Mt=()=>pe?.().props;Wr(fe,mt(()=>c(O),{get enabled(){return f.root.opts.open.current},get ref(){return f.opts.ref},onEscapeKeydown:st=>{l()(st),!st.defaultPrevented&&f.root.handleClose()},children:(st,en)=>{Vr(st,mt(()=>c(O),{get ref(){return f.opts.ref},get enabled(){return f.root.opts.open.current},onInteractOutside:it=>{u()(it),!it.defaultPrevented&&f.root.handleClose()},children:(it,rn)=>{Gr(it,mt(()=>c(O),{get ref(){return f.opts.ref},get enabled(){return f.root.opts.open.current},children:(ve,nn)=>{var _t=S(),ge=w(_t);{var be=V=>{var q=$r(),z=w(q);{var G=L=>{Yt(L,{get preventScroll(){return v()},get restoreScrollDelay(){return m()}})};R(z,L=>{f.root.opts.open.current&&L(G)})}var bt=Vt(z,2);{let L=T(()=>({props:M(c(O),Mt()),...f.snippetProps}));C(bt,()=>t.child,()=>c(L))}y(V,q)},me=V=>{var q=tn(),z=w(q);Yt(z,{get preventScroll(){return v()}});var G=Vt(z,2);Q(G,L=>({...L}),[()=>M(c(O),Mt())]);var bt=Z(G);C(bt,()=>t.children??D),J(G),y(V,q)};R(ge,V=>{t.child?V(be):V(me,!1)})}y(ve,_t)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};R(_,x=>{(f.shouldRender||o())&&x(k)})}y(r,rt),N()}export{pn as A,Vr as B,Jt as C,Rn as D,vn as E,Kr as F,Gr as G,gn as H,Qe as I,On as J,Pn as K,Fn as L,Cn as M,Tn as N,wn as O,Dn as P,An as Q,En as R,nr as S,yn as T,Sn as U,Be as V,kn as a,Mn as b,_n as c,Nn as d,xn as e,fn as f,hn as g,dn as h,Wt as i,Kt as j,er as k,Tt as l,ee as m,E as n,mn as o,bn as p,K as q,Ut as r,Ge as s,Ue as t,jr as u,In as v,F as w,$e as x,Yt as y,Wr as z};
@@ -1 +1 @@
1
- import{b as i,s as h,g as l}from"./B1IR5Su5.js";import{D as S}from"./DBXrsxZQ.js";const g=`${S}/ws`,m=3e4,r=1e4,a=10;class b{ws=null;baseUrl;projectPath;state="disconnected";intentionalDisconnect=!1;subscriptions=new Map;eventHandlers=new Map;stateChangeHandlers=new Set;lastSeqProcessed=-1;reconnectAttempts=0;reconnectTimer=null;connectionLostTimer=null;stats={connect_count:0,reconnect_count:0,last_connected_at:null,last_disconnected_at:null};constructor(t={}){typeof t=="string"?(this.baseUrl=t,this.projectPath=null):(this.baseUrl=t.url||g,this.projectPath=t.projectPath||null)}getUrl(){if(!this.projectPath)return this.baseUrl;const t=new URL(this.baseUrl);return t.searchParams.set("project",this.projectPath),t.toString()}setProjectPath(t){this.projectPath!==t&&(this.projectPath=t,this.isConnected()&&(this.reconnectAttempts=0,this.disconnect(),this.connect()))}getProjectPath(){return this.projectPath}getState(){return this.state}isConnected(){return this.state==="connected"}isConnectionLost(){return this.state==="connected"||!this.stats.last_disconnected_at?!1:Date.now()-this.stats.last_disconnected_at.getTime()>r}connect(){if(this.ws&&(this.state==="connected"||this.state==="connecting")){console.warn("[WebSocketManager] Already connected or connecting");return}this.intentionalDisconnect=!1,this.setState("connecting");const t=this.getUrl();console.log("[WebSocketManager] Connecting to:",t);const e=new WebSocket(t);this.ws=e,e.onopen=()=>{this.ws===e&&(console.log("[WebSocketManager] Connected"),this.setState("connected"),this.reconnectAttempts=0,this.stats.connect_count++,this.stats.last_connected_at=new Date,this.clearConnectionLostTimer())},e.onmessage=n=>{if(this.ws===e)try{const c=JSON.parse(n.data);this.handleMessage(c)}catch(c){console.error("[WebSocketManager] Failed to parse message:",c)}},e.onerror=n=>{this.ws===e&&console.error("[WebSocketManager] WebSocket error:",n)},e.onclose=n=>{if(this.ws===e){if(console.log("[WebSocketManager] Disconnected:",n.code,n.reason),this.setState("disconnected"),this.stats.last_disconnected_at=new Date,this.ws=null,this.intentionalDisconnect){this.intentionalDisconnect=!1;return}this.startConnectionLostTimer(),this.scheduleReconnect()}}}disconnect(){if(this.clearReconnectTimer(),this.clearConnectionLostTimer(),this.intentionalDisconnect=!0,this.ws){const t=this.ws;this.ws=null,t.close(1e3,"Client disconnect")}this.setState("disconnected")}subscribe(t){for(const e of t)this.subscriptions.has(e)||this.subscriptions.set(e,{topic:e,subscribed_at:new Date});this.isConnected()&&this.sendCommand({action:"subscribe",request_id:crypto.randomUUID(),payload:{topics:t}})}unsubscribe(t){for(const e of t)this.subscriptions.delete(e);this.isConnected()&&this.sendCommand({action:"unsubscribe",request_id:crypto.randomUUID(),payload:{topics:t}})}on(t,e){this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set),this.eventHandlers.get(t).add(e)}off(t,e){const n=this.eventHandlers.get(t);n&&(n.delete(e),n.size===0&&this.eventHandlers.delete(t))}onStateChange(t){this.stateChangeHandlers.add(t)}offStateChange(t){this.stateChangeHandlers.delete(t)}handleMessage(t){if("event"in t&&t.event==="connected"){if(console.log("[WebSocketManager] Session ID:",t.data.session_id),this.lastSeqProcessed=-1,this.subscriptions.size>0){const n=Array.from(this.subscriptions.keys());this.sendCommand({action:"subscribe",request_id:crypto.randomUUID(),payload:{topics:n}})}return}if("ack"in t){const e=t;e.success||console.error("[WebSocketManager] Command failed:",e.error);return}if("msg_id"in t&&"seq"in t){const e=t;if(e.seq<=this.lastSeqProcessed){console.debug("[WebSocketManager] Skipping duplicate event:",e.seq);return}this.lastSeqProcessed=e.seq;const n=this.eventHandlers.get(e.topic);if(n)for(const c of n)try{c(e)}catch(f){console.error("[WebSocketManager] Event handler error:",f)}}}sendCommand(t){if(!this.ws||this.ws.readyState!==WebSocket.OPEN){console.warn("[WebSocketManager] Cannot send command: not connected");return}try{this.ws.send(JSON.stringify(t))}catch(e){console.error("[WebSocketManager] Failed to send command:",e)}}scheduleReconnect(){if(this.reconnectAttempts>=a){console.error("[WebSocketManager] Max reconnect attempts reached");return}this.clearReconnectTimer(),this.reconnectAttempts++,this.stats.reconnect_count++;const t=Math.min(Math.pow(2,this.reconnectAttempts-1)*1e3,m);console.log(`[WebSocketManager] Reconnecting in ${t}ms (attempt ${this.reconnectAttempts}/${a})`),this.reconnectTimer=setTimeout(()=>{this.setState("reconnecting"),this.connect()},t)}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}startConnectionLostTimer(){this.clearConnectionLostTimer(),this.connectionLostTimer=setTimeout(()=>{this.notifyConnectionLostChange()},r)}clearConnectionLostTimer(){this.connectionLostTimer&&(clearTimeout(this.connectionLostTimer),this.connectionLostTimer=null)}setState(t){this.state!==t&&(this.state=t,this.notifyStateChange())}notifyStateChange(){for(const t of this.stateChangeHandlers)try{t(this.state)}catch(e){console.error("[WebSocketManager] State change handler error:",e)}}notifyConnectionLostChange(){this.notifyStateChange()}getStats(){return{...this.stats}}getSubscriptions(){return Array.from(this.subscriptions.keys())}}let s=null,d=h("disconnected"),u=h(!1);function w(o){if(s){console.warn("[ConnectionStore] Already initialized");return}s=new b(o),s.onStateChange(t=>{i(d,t,!0),i(u,s.isConnectionLost(),!0)}),s.connect()}function T(o){if(!s){console.warn("[ConnectionStore] Not initialized, cannot reconnect with project");return}s.setProjectPath(o)}function _(){return l(d)}function M(){return l(u)}function k(o){s&&s.subscribe(o)}function y(o){s&&s.unsubscribe(o)}function P(o,t){s&&s.on(o,t)}function L(o,t){s&&s.off(o,t)}export{L as a,w as b,_ as g,M as i,P as o,T as r,k as s,y as u};
1
+ import{e as i,b as h,g as l}from"./D3vxvonu.js";import{D as S}from"./DQA8NZIH.js";const g=`${S}/ws`,m=3e4,r=1e4,a=10;class b{ws=null;baseUrl;projectPath;state="disconnected";intentionalDisconnect=!1;subscriptions=new Map;eventHandlers=new Map;stateChangeHandlers=new Set;lastSeqProcessed=-1;reconnectAttempts=0;reconnectTimer=null;connectionLostTimer=null;stats={connect_count:0,reconnect_count:0,last_connected_at:null,last_disconnected_at:null};constructor(t={}){typeof t=="string"?(this.baseUrl=t,this.projectPath=null):(this.baseUrl=t.url||g,this.projectPath=t.projectPath||null)}getUrl(){if(!this.projectPath)return this.baseUrl;const t=new URL(this.baseUrl);return t.searchParams.set("project",this.projectPath),t.toString()}setProjectPath(t){this.projectPath!==t&&(this.projectPath=t,this.isConnected()&&(this.reconnectAttempts=0,this.disconnect(),this.connect()))}getProjectPath(){return this.projectPath}getState(){return this.state}isConnected(){return this.state==="connected"}isConnectionLost(){return this.state==="connected"||!this.stats.last_disconnected_at?!1:Date.now()-this.stats.last_disconnected_at.getTime()>r}connect(){if(this.ws&&(this.state==="connected"||this.state==="connecting")){console.warn("[WebSocketManager] Already connected or connecting");return}this.intentionalDisconnect=!1,this.setState("connecting");const t=this.getUrl();console.log("[WebSocketManager] Connecting to:",t);const e=new WebSocket(t);this.ws=e,e.onopen=()=>{this.ws===e&&(console.log("[WebSocketManager] Connected"),this.setState("connected"),this.reconnectAttempts=0,this.stats.connect_count++,this.stats.last_connected_at=new Date,this.clearConnectionLostTimer())},e.onmessage=n=>{if(this.ws===e)try{const c=JSON.parse(n.data);this.handleMessage(c)}catch(c){console.error("[WebSocketManager] Failed to parse message:",c)}},e.onerror=n=>{this.ws===e&&console.error("[WebSocketManager] WebSocket error:",n)},e.onclose=n=>{if(this.ws===e){if(console.log("[WebSocketManager] Disconnected:",n.code,n.reason),this.setState("disconnected"),this.stats.last_disconnected_at=new Date,this.ws=null,this.intentionalDisconnect){this.intentionalDisconnect=!1;return}this.startConnectionLostTimer(),this.scheduleReconnect()}}}disconnect(){if(this.clearReconnectTimer(),this.clearConnectionLostTimer(),this.intentionalDisconnect=!0,this.ws){const t=this.ws;this.ws=null,t.close(1e3,"Client disconnect")}this.setState("disconnected")}subscribe(t){for(const e of t)this.subscriptions.has(e)||this.subscriptions.set(e,{topic:e,subscribed_at:new Date});this.isConnected()&&this.sendCommand({action:"subscribe",request_id:crypto.randomUUID(),payload:{topics:t}})}unsubscribe(t){for(const e of t)this.subscriptions.delete(e);this.isConnected()&&this.sendCommand({action:"unsubscribe",request_id:crypto.randomUUID(),payload:{topics:t}})}on(t,e){this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set),this.eventHandlers.get(t).add(e)}off(t,e){const n=this.eventHandlers.get(t);n&&(n.delete(e),n.size===0&&this.eventHandlers.delete(t))}onStateChange(t){this.stateChangeHandlers.add(t)}offStateChange(t){this.stateChangeHandlers.delete(t)}handleMessage(t){if("event"in t&&t.event==="connected"){if(console.log("[WebSocketManager] Session ID:",t.data.session_id),this.lastSeqProcessed=-1,this.subscriptions.size>0){const n=Array.from(this.subscriptions.keys());this.sendCommand({action:"subscribe",request_id:crypto.randomUUID(),payload:{topics:n}})}return}if("ack"in t){const e=t;e.success||console.error("[WebSocketManager] Command failed:",e.error);return}if("msg_id"in t&&"seq"in t){const e=t;if(e.seq<=this.lastSeqProcessed){console.debug("[WebSocketManager] Skipping duplicate event:",e.seq);return}this.lastSeqProcessed=e.seq;const n=this.eventHandlers.get(e.topic);if(n)for(const c of n)try{c(e)}catch(f){console.error("[WebSocketManager] Event handler error:",f)}}}sendCommand(t){if(!this.ws||this.ws.readyState!==WebSocket.OPEN){console.warn("[WebSocketManager] Cannot send command: not connected");return}try{this.ws.send(JSON.stringify(t))}catch(e){console.error("[WebSocketManager] Failed to send command:",e)}}scheduleReconnect(){if(this.reconnectAttempts>=a){console.error("[WebSocketManager] Max reconnect attempts reached");return}this.clearReconnectTimer(),this.reconnectAttempts++,this.stats.reconnect_count++;const t=Math.min(Math.pow(2,this.reconnectAttempts-1)*1e3,m);console.log(`[WebSocketManager] Reconnecting in ${t}ms (attempt ${this.reconnectAttempts}/${a})`),this.reconnectTimer=setTimeout(()=>{this.setState("reconnecting"),this.connect()},t)}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}startConnectionLostTimer(){this.clearConnectionLostTimer(),this.connectionLostTimer=setTimeout(()=>{this.notifyConnectionLostChange()},r)}clearConnectionLostTimer(){this.connectionLostTimer&&(clearTimeout(this.connectionLostTimer),this.connectionLostTimer=null)}setState(t){this.state!==t&&(this.state=t,this.notifyStateChange())}notifyStateChange(){for(const t of this.stateChangeHandlers)try{t(this.state)}catch(e){console.error("[WebSocketManager] State change handler error:",e)}}notifyConnectionLostChange(){this.notifyStateChange()}getStats(){return{...this.stats}}getSubscriptions(){return Array.from(this.subscriptions.keys())}}let s=null,d=h("disconnected"),u=h(!1);function w(o){if(s){console.warn("[ConnectionStore] Already initialized");return}s=new b(o),s.onStateChange(t=>{i(d,t,!0),i(u,s.isConnectionLost(),!0)}),s.connect()}function T(o){if(!s){console.warn("[ConnectionStore] Not initialized, cannot reconnect with project");return}s.setProjectPath(o)}function _(){return l(d)}function M(){return l(u)}function k(o){s&&s.subscribe(o)}function y(o){s&&s.unsubscribe(o)}function P(o,t){s&&s.on(o,t)}function L(o,t){s&&s.off(o,t)}export{L as a,w as b,_ as g,M as i,P as o,T as r,k as s,y as u};
@@ -0,0 +1 @@
1
+ import{G as a}from"./D3vxvonu.js";a();
@@ -0,0 +1 @@
1
+ import{z as d,A as g,u as i,q as m,B as l,C as b,g as p,D as v,F as h}from"./D3vxvonu.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>v(s.s);if(n){let o=0,t={};const _=h(()=>{let c=!1;const a=s.s;for(const f in a)a[f]!==t[f]&&(t[f]=a[f],c=!0);return c&&o++,o});r=()=>p(_)}e.b.length&&g(()=>{u(s,r),l(e.b)}),i(()=>{const o=m(()=>e.m.map(b));return()=>{for(const t of o)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
@@ -0,0 +1 @@
1
+ import{c as n,a as i}from"./DvA-KON-.js";import{p as m,f as c,i as d,a as f}from"./D3vxvonu.js";import{k as h}from"./DQA8NZIH.js";import{s as l,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(s,o){m(o,!0);let t=u(o,["$$slots","$$events","$$legacy"]);const e=[["path",{d:"m9 18 6-6-6-6"}]];$(s,l({name:"chevron-right"},()=>t,{get iconNode(){return e},children:(a,g)=>{var r=n(),p=c(r);h(p,()=>o.children??d),i(a,r)},$$slots:{default:!0}})),f()}export{k as C};
@@ -0,0 +1 @@
1
+ import{l as k,k as f,m,o as n,q as i,v as u,w as t}from"./D3vxvonu.js";function E(e,a,r=a){var v=new WeakSet;k(e,"input",async c=>{var l=c?e.defaultValue:e.value;if(l=o(e)?h(l):l,r(l),f!==null&&v.add(f),await m(),l!==(l=a())){var _=e.selectionStart,s=e.selectionEnd,b=e.value.length;if(e.value=l??"",s!==null){var d=e.value.length;_===s&&s===b&&d>b?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=_,e.selectionEnd=Math.min(s,d))}}}),(n&&e.defaultValue!==e.value||i(a)==null&&e.value)&&(r(o(e)?h(e.value):e.value),f!==null&&v.add(f)),u(()=>{var c=a();if(e===document.activeElement){var l=t??f;if(v.has(l))return}o(e)&&c===h(e.value)||e.type==="date"&&!c&&!e.value||c!==e.value&&(e.value=c??"")})}function S(e,a,r=a){k(e,"change",v=>{var c=v?e.defaultChecked:e.checked;r(c)}),(n&&e.defaultChecked!==e.checked||i(a)==null)&&r(e.checked),u(()=>{var v=a();e.checked=!!v})}function o(e){var a=e.type;return a==="number"||a==="range"}function h(e){return e===""?null:+e}function C(e,a,r=a){k(e,"change",()=>{r(e.files)}),n&&e.files&&r(e.files),u(()=>{e.files=a()})}export{E as a,C as b,S as c};
@@ -0,0 +1 @@
1
+ import{c as n,a as p}from"./DvA-KON-.js";import{p as i,f as m,i as l,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function G(s,r){i(r,!0);let t=u(r,["$$slots","$$events","$$legacy"]);const a=[["line",{x1:"6",x2:"6",y1:"3",y2:"15"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}],["path",{d:"M18 9a9 9 0 0 1-9 9"}]];$(s,h({name:"git-branch"},()=>t,{get iconNode(){return a},children:(e,x)=>{var o=n(),c=m(o);f(c,()=>r.children??l),p(e,o)},$$slots:{default:!0}})),d()}export{G};
@@ -0,0 +1 @@
1
+ import{c as j,a as d,f as k}from"./DvA-KON-.js";import{t as P,l as b,m as f,k as g}from"./DQA8NZIH.js";import{p as q,f as A,a as C,c as h,i as m,r as x}from"./D3vxvonu.js";import{p as r,i as D,r as E,b as p}from"./BysXJlZb.js";const y=P({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var F=k("<a><!></a>"),G=k("<button><!></button>");function L(_,e){q(e,!0);let o=r(e,"variant",3,"default"),l=r(e,"size",3,"default"),s=r(e,"ref",15,null),c=r(e,"href",3,void 0),z=r(e,"type",3,"button"),v=E(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=j(),w=A(u);{var B=i=>{var a=F();b(a,t=>({"data-slot":"button",class:t,href:e.disabled?void 0:c(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...v}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)},V=i=>{var a=G();b(a,t=>({"data-slot":"button",class:t,type:z(),disabled:e.disabled,...v}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)};D(w,i=>{c()?i(B):i(V,!1)})}d(_,u),C()}export{L as B};
@@ -0,0 +1 @@
1
+ import{c,a as i}from"./DvA-KON-.js";import{p as n,f as m,i as d,a as l}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as _}from"./B5wTVqxm.js";function I(e,o){n(o,!0);let s=u(o,["$$slots","$$events","$$legacy"]);const t=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}],["path",{d:"m9 11 3 3L22 4"}]];_(e,h({name:"circle-check-big"},()=>s,{get iconNode(){return t},children:(a,$)=>{var r=c(),p=m(r);f(p,()=>o.children??d),i(a,r)},$$slots:{default:!0}})),l()}export{I as C};
@@ -0,0 +1 @@
1
+ import{c as n,a as i}from"./DvA-KON-.js";import{p as m,f as l,i as c,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as u,r as $}from"./BysXJlZb.js";import{I as h}from"./B5wTVqxm.js";function N(r,o){m(o,!0);let s=$(o,["$$slots","$$events","$$legacy"]);const t=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];h(r,u({name:"play"},()=>s,{get iconNode(){return t},children:(e,_)=>{var a=n(),p=l(a);f(p,()=>o.children??c),i(e,a)},$$slots:{default:!0}})),d()}export{N as P};
@@ -0,0 +1 @@
1
+ import{k as O,R as j,S as w,T as U,U as y,V as A,o as S,W as q,X as C,Y as Z,x as $,y as z,E as G,Z as H,_ as V,a0 as W,a1 as X,a2 as T,a3 as J,v as Q,q as M,a4 as k,a5 as m,a6 as x,a7 as ee,a8 as B,g as b,F as re,a9 as se,d as te,e as ie,aa as ne,ab as R,ac as ae,ad as fe,I as ue,ae as ce,af as oe,ag as _,ah as N,ai as le,aj as de,P as I,ak as D}from"./D3vxvonu.js";import{c as pe}from"./pE6cYWlS.js";class he{anchor;#r=new Map;#s=new Map;#e=new Map;#t=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#n=()=>{var e=O;if(this.#r.has(e)){var t=this.#r.get(e),s=this.#s.get(t);if(s)j(s),this.#t.delete(t);else{var i=this.#e.get(t);i&&(this.#s.set(t,i.effect),this.#e.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),s=i.effect)}for(const[n,f]of this.#r){if(this.#r.delete(n),n===e)break;const a=this.#e.get(f);a&&(w(a.effect),this.#e.delete(f))}for(const[n,f]of this.#s){if(n===t||this.#t.has(n))continue;const a=()=>{if(Array.from(this.#r.values()).includes(n)){var o=document.createDocumentFragment();C(f,o),o.append(y()),this.#e.set(n,{effect:f,fragment:o})}else w(f);this.#t.delete(n),this.#s.delete(n)};this.#i||!s?(this.#t.add(n),U(f,a,!1)):a()}}};#a=e=>{this.#r.delete(e);const t=Array.from(this.#r.values());for(const[s,i]of this.#e)t.includes(s)||(w(i.effect),this.#e.delete(s))};ensure(e,t){var s=O,i=Z();if(t&&!this.#s.has(e)&&!this.#e.has(e))if(i){var n=document.createDocumentFragment(),f=y();n.append(f),this.#e.set(e,{effect:A(()=>t(f)),fragment:n})}else this.#s.set(e,A(()=>t(this.anchor)));if(this.#r.set(s,e),i){for(const[a,u]of this.#s)a===e?s.skipped_effects.delete(u):s.skipped_effects.add(u);for(const[a,u]of this.#e)a===e?s.skipped_effects.delete(u.effect):s.skipped_effects.add(u.effect);s.oncommit(this.#n),s.ondiscard(this.#a)}else S&&(this.anchor=q),this.#n()}}function xe(r,e,t=!1){S&&z();var s=new he(r),i=t?G:0;function n(f,a){if(S){const o=H(r)===V;if(f===o){var u=W();X(u),s.anchor=u,T(!1),s.ensure(f,a),T(!0);return}}s.ensure(f,a)}$(()=>{var f=!1;e((a,u=!0)=>{f=!0,n(u,a)}),f||n(!1,null)},i)}function L(r,e){return r===e||r?.[m]===e}function me(r={},e,t,s){return J(()=>{var i,n;return Q(()=>{i=n,n=[],M(()=>{r!==t(...n)&&(e(r,...n),i&&L(t(...i),r)&&e(null,...i))})}),()=>{k(()=>{n&&L(t(...n),r)&&e(null,...n)})}}),r}const _e={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function Re(r,e,t){return new Proxy({props:r,exclude:e},_e)}const ve={get(r,e){if(!r.exclude.includes(e))return b(r.version),e in r.special?r.special[e]():r.props[e]},set(r,e,t){if(!(e in r.special)){var s=R;try{D(r.parent_effect),r.special[e]=Pe({get[e](){return r.props[e]}},e,B)}finally{D(s)}}return r.special[e](t),I(r.version),!0},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},deleteProperty(r,e){return r.exclude.includes(e)||(r.exclude.push(e),I(r.version)),!0},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function ge(r,e){return new Proxy({props:r,exclude:e,special:{},version:de(0),parent_effect:R},ve)}const be={get(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s)return s[e]}},set(r,e,t){let s=r.props.length;for(;s--;){let i=r.props[s];_(i)&&(i=i());const n=x(i,e);if(n&&n.set)return n.set(t),!0}return!1},getOwnPropertyDescriptor(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s){const i=x(s,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(r,e){if(e===m||e===N)return!1;for(let t of r.props)if(_(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(r){const e=[];for(let t of r.props)if(_(t)&&(t=t()),!!t){for(const s in t)e.includes(s)||e.push(s);for(const s of Object.getOwnPropertySymbols(t))e.includes(s)||e.push(s)}return e}};function Ee(...r){return new Proxy({props:r},be)}function Pe(r,e,t,s){var i=!ue||(t&ce)!==0,n=(t&fe)!==0,f=(t&le)!==0,a=s,u=!0,o=()=>(u&&(u=!1,a=f?M(s):s),a),d;if(n){var Y=m in r||N in r;d=x(r,e)?.set??(Y&&e in r?c=>r[e]=c:void 0)}var p,g=!1;n?[p,g]=pe(()=>r[e]):p=r[e],p===void 0&&s!==void 0&&(p=o(),d&&(i&&ee(),d(p)));var l;if(i?l=()=>{var c=r[e];return c===void 0?o():(u=!0,c)}:l=()=>{var c=r[e];return c!==void 0&&(a=void 0),c===void 0?a:c},i&&(t&B)===0)return l;if(d){var F=r.$$legacy;return(function(c,v){return arguments.length>0?((!i||!v||F||g)&&d(v?l():c),c):l()})}var P=!1,h=((t&oe)!==0?re:se)(()=>(P=!1,l()));n&&b(h);var K=R;return(function(c,v){if(arguments.length>0){const E=v?b(h):i&&n?te(c):c;return ie(h,E),P=!0,a!==void 0&&(a=E),c}return ne&&P||(K.f&ae)!==0?h.v:b(h)})}export{he as B,me as b,xe as i,ge as l,Pe as p,Re as r,Ee as s};
@@ -0,0 +1 @@
1
+ import{c,a as d}from"./DvA-KON-.js";import"./BUZujXJ2.js";import{f as i}from"./D3vxvonu.js";import{I as l,s as p}from"./BHtYorjv.js";import{l as $,s as h}from"./BysXJlZb.js";function M(a,e){const s=$(e,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];l(a,h({name:"refresh-cw"},()=>s,{get iconNode(){return o},children:(r,f)=>{var t=c(),n=i(t);p(n,e,"default",{}),d(r,t)},$$slots:{default:!0}}))}function N(a,e){const s=$(e,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m9 12 2 2 4-4"}]];l(a,h({name:"shield-check"},()=>s,{get iconNode(){return o},children:(r,f)=>{var t=c(),n=i(t);p(n,e,"default",{}),d(r,t)},$$slots:{default:!0}}))}export{M as R,N as S};
@@ -0,0 +1 @@
1
+ import{c as b,a as d,f as x}from"./DvA-KON-.js";import{p as h,f,a as p,g as y,h as $,s as k,i as z,n as G,c as H,r as I}from"./D3vxvonu.js";import{c as u}from"./DAx07bEQ.js";import{p as g,s as m,r as v,b as J}from"./BysXJlZb.js";import{D as K,P as L,a as M,b as N,c as O,d as Q,e as R}from"./BMuCqDX8.js";import{m as _,t as T,k as V,l as U}from"./DQA8NZIH.js";import{X as W}from"./DAh4Wfku.js";function me(o,e){h(e,!0);let a=g(e,"open",15,!1),s=v(e,["$$slots","$$events","$$legacy","open"]);var t=b(),n=f(t);u(n,()=>K,(r,l)=>{l(r,m(()=>s,{get open(){return a()},set open(i){a(i)}}))}),d(o,t),p()}function Y(o,e){let a=v(e,["$$slots","$$events","$$legacy"]);var s=b(),t=f(s);u(t,()=>L,(n,r)=>{r(n,m(()=>a))}),d(o,s)}function Z(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class"]);var t=b(),n=f(t);{let r=$(()=>_("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e.class));u(n,()=>M,(l,i)=>{i(l,m({"data-slot":"sheet-overlay",get class(){return y(r)}},()=>s,{get ref(){return a()},set ref(c){a(c)}}))})}d(o,t),p()}const ee=T({base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",left:"data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm",right:"data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm"}},defaultVariants:{side:"right"}});var te=x('<!> <span class="sr-only">Close</span>',1),ae=x("<!> <!>",1),se=x("<!> <!>",1);function ve(o,e){h(e,!0);let a=g(e,"ref",15,null),s=g(e,"side",3,"right"),t=v(e,["$$slots","$$events","$$legacy","ref","class","side","portalProps","children"]);Y(o,m(()=>e.portalProps,{children:(n,r)=>{var l=se(),i=f(l);Z(i,{});var c=k(i,2);{let C=$(()=>_(ee({side:s()}),e.class));u(c,()=>O,(X,j)=>{j(X,m({"data-slot":"sheet-content",get class(){return y(C)}},()=>t,{get ref(){return a()},set ref(P){a(P)},children:(P,oe)=>{var S=ae(),D=f(S);V(D,()=>e.children??z);var q=k(D,2);u(q,()=>N,(A,B)=>{B(A,{class:"ring-offset-background focus-visible:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none",children:(E,ne)=>{var w=te(),F=f(w);W(F,{class:"size-4"}),G(2),d(E,w)},$$slots:{default:!0}})}),d(P,S)},$$slots:{default:!0}}))})}d(n,l)},$$slots:{default:!0}})),p()}var re=x("<div><!></div>");function he(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=re();U(t,r=>({"data-slot":"sheet-header",class:r,...s}),[()=>_("flex flex-col gap-1.5 p-4",e.class)]);var n=H(t);V(n,()=>e.children??z),I(t),J(t,r=>a(r),()=>a()),d(o,t),p()}function pe(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class"]);var t=b(),n=f(t);{let r=$(()=>_("text-foreground font-semibold",e.class));u(n,()=>Q,(l,i)=>{i(l,m({"data-slot":"sheet-title",get class(){return y(r)}},()=>s,{get ref(){return a()},set ref(c){a(c)}}))})}d(o,t),p()}function be(o,e){h(e,!0);let a=g(e,"ref",15,null),s=v(e,["$$slots","$$events","$$legacy","ref","class"]);var t=b(),n=f(t);{let r=$(()=>_("text-muted-foreground text-sm",e.class));u(n,()=>R,(l,i)=>{i(l,m({"data-slot":"sheet-description",get class(){return y(r)}},()=>s,{get ref(){return a()},set ref(c){a(c)}}))})}d(o,t),p()}export{me as S,ve as a,he as b,pe as c,be as d};
@@ -0,0 +1 @@
1
+ import{f as l,a as i}from"./DvA-KON-.js";import{p as c,c as f,i as n,r as p,a as m}from"./D3vxvonu.js";import{l as h,m as u,k as v}from"./DQA8NZIH.js";import{p as b,r as x,b as g}from"./BysXJlZb.js";var _=l("<div><!></div>");function P(t,r){c(r,!0);let e=b(r,"ref",15,null),o=x(r,["$$slots","$$events","$$legacy","ref","class","children"]);var a=_();h(a,s=>({"data-slot":"card",class:s,...o}),[()=>u("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",r.class)]);var d=f(a);v(d,()=>r.children??n),p(a),g(a,s=>e(s),()=>e()),i(t,a),m()}export{P as C};
@@ -0,0 +1 @@
1
+ import{c as n,a as i}from"./DvA-KON-.js";import{p as m,f as d,i as c,a as f}from"./D3vxvonu.js";import{k as l}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(a,o){m(o,!0);let s=u(o,["$$slots","$$events","$$legacy"]);const e=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]];$(a,h({name:"folder"},()=>s,{get iconNode(){return e},children:(t,v)=>{var r=n(),p=d(r);l(p,()=>o.children??c),i(t,r)},$$slots:{default:!0}})),f()}export{k as F};
@@ -0,0 +1,5 @@
1
+ import{Y as S}from"./DQA8NZIH.js";import{aX as P,b as L,d as N,e as $,g as _,h as W,q as w}from"./D3vxvonu.js";function B(){return Symbol(P)}function M(t){return typeof t=="function"}function U(t){return t!==null&&typeof t=="object"}const V=["string","number","bigint","boolean"];function T(t){return t==null||V.includes(typeof t)?!0:Array.isArray(t)?t.every(n=>T(n)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const y=Symbol("box"),A=Symbol("is-writable");function F(t,n){const e=W(t);return n?{[y]:!0,[A]:!0,get current(){return _(e)},set current(r){n(r)}}:{[y]:!0,get current(){return t()}}}function v(t){return U(t)&&y in t}function C(t){return v(t)&&A in t}function St(t){return v(t)?t:M(t)?F(t):G(t)}function Tt(t){return Object.entries(t).reduce((n,[e,r])=>v(r)?(C(r)?Object.defineProperty(n,e,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(n,e,{get(){return r.current}}),n):Object.assign(n,{[e]:r}),{})}function At(t){return C(t)?{[y]:!0,get current(){return t.current}}:t}function G(t){let n=L(N(t));return{[y]:!0,[A]:!0,get current(){return _(n)},set current(e){$(n,e,!0)}}}function X(...t){return function(n){for(const e of t)if(e){if(n.defaultPrevented)return;typeof e=="function"?e.call(this,n):e.current?.call(this,n)}}}var O=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H=/\n/g,Y=/^\s*/,K=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,z=/^:\s*/,D=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q=/^[;\s]*/,Z=/^\s+|\s+$/g,J=`
2
+ `,x="/",I="*",m="",Q="comment",tt="declaration";function nt(t,n){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];n=n||{};var e=1,r=1;function o(c){var i=c.match(H);i&&(e+=i.length);var p=c.lastIndexOf(J);r=~p?c.length-p:r+c.length}function s(){var c={line:e,column:r};return function(i){return i.position=new a(c),f(),i}}function a(c){this.start=c,this.end={line:e,column:r},this.source=n.source}a.prototype.content=t;function u(c){var i=new Error(n.source+":"+e+":"+r+": "+c);if(i.reason=c,i.filename=n.source,i.line=e,i.column=r,i.source=t,!n.silent)throw i}function d(c){var i=c.exec(t);if(i){var p=i[0];return o(p),t=t.slice(p.length),i}}function f(){d(Y)}function l(c){var i;for(c=c||[];i=g();)i!==!1&&c.push(i);return c}function g(){var c=s();if(!(x!=t.charAt(0)||I!=t.charAt(1))){for(var i=2;m!=t.charAt(i)&&(I!=t.charAt(i)||x!=t.charAt(i+1));)++i;if(i+=2,m===t.charAt(i-1))return u("End of comment missing");var p=t.slice(2,i-2);return r+=2,o(p),t=t.slice(i),r+=2,c({type:Q,comment:p})}}function b(){var c=s(),i=d(K);if(i){if(g(),!d(z))return u("property missing ':'");var p=d(D),k=c({type:tt,property:R(i[0].replace(O,m)),value:p?R(p[0].replace(O,m)):m});return d(q),k}}function h(){var c=[];l(c);for(var i;i=b();)i!==!1&&(c.push(i),l(c));return c}return f(),h()}function R(t){return t?t.replace(Z,m):m}function et(t,n){let e=null;if(!t||typeof t!="string")return e;const r=nt(t),o=typeof n=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;o?n(a,u,s):u&&(e=e||{},e[a]=u)}),e}const rt=/\d/,ot=["-","_","/","."];function it(t=""){if(!rt.test(t))return t!==t.toLowerCase()}function st(t){const n=[];let e="",r,o;for(const s of t){const a=ot.includes(s);if(a===!0){n.push(e),e="",r=void 0;continue}const u=it(s);if(o===!1){if(r===!1&&u===!0){n.push(e),e=s,r=u;continue}if(r===!0&&u===!1&&e.length>1){const d=e.at(-1);n.push(e.slice(0,Math.max(0,e.length-1))),e=d+s,r=u;continue}}e+=s,r=u,o=a}return n.push(e),n}function j(t){return t?st(t).map(n=>at(n)).join(""):""}function ct(t){return ut(j(t||""))}function at(t){return t?t[0].toUpperCase()+t.slice(1):""}function ut(t){return t?t[0].toLowerCase()+t.slice(1):""}function E(t){if(!t)return{};const n={};function e(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){n[j(r)]=o;return}if(r.startsWith("--")){n[r]=o;return}n[ct(r)]=o}return et(t,e),n}function ft(...t){return(...n)=>{for(const e of t)typeof e=="function"&&e(...n)}}function lt(t,n){const e=RegExp(t,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,n):r}}const pt=lt(/[A-Z]/,t=>`-${t.toLowerCase()}`);function dt(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(n=>`${pt(n)}: ${t[n]};`).join(`
3
+ `)}function ht(t={}){return dt(t).replace(`
4
+ `," ")}const mt=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],gt=new Set(mt);function bt(t){return gt.has(t)}function wt(...t){const n={...t[0]};for(let e=1;e<t.length;e++){const r=t[e];if(r){for(const o of Object.keys(r)){const s=n[o],a=r[o],u=typeof s=="function",d=typeof a=="function";if(u&&bt(o)){const f=s,l=a;n[o]=X(f,l)}else if(u&&d)n[o]=ft(s,a);else if(o==="class"){const f=T(s),l=T(a);f&&l?n[o]=S(s,a):f?n[o]=S(s):l&&(n[o]=S(a))}else if(o==="style"){const f=typeof s=="object",l=typeof a=="object",g=typeof s=="string",b=typeof a=="string";if(f&&l)n[o]={...s,...a};else if(f&&b){const h=E(a);n[o]={...s,...h}}else if(g&&l){const h=E(s);n[o]={...h,...a}}else if(g&&b){const h=E(s),c=E(a);n[o]={...h,...c}}else f?n[o]=s:l?n[o]=a:g?n[o]=s:b&&(n[o]=a)}else n[o]=a!==void 0?a:s}for(const o of Object.getOwnPropertySymbols(r)){const s=n[o],a=r[o];n[o]=a!==void 0?a:s}}}return typeof n.style=="object"&&(n.style=ht(n.style).replaceAll(`
5
+ `," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}function Ot(t,n){return{[B()]:e=>v(t)?(t.current=e,w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t.current=null,n?.(null))}):(t(e),w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t(null),n?.(null))})}}function xt(t){return t?"true":"false"}function It(t){return t?"true":void 0}function Rt(t){return t?"":void 0}function _t(t){return t?!0:void 0}function Ct(t){return t?"open":"closed"}class yt{#t;#n;attrs;constructor(n){this.#t=n.getVariant?n.getVariant():null,this.#n=this.#t?`data-${this.#t}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(e=>[e,this.getAttr(e)]))}getAttr(n,e){return e?`data-${e}-${n}`:`${this.#n}${n}`}selector(n,e){return`[${this.getAttr(n,e)}]`}}function jt(t){const n=new yt(t);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}function kt(t,n){return`bits-${t}`}export{y as B,Ot as a,It as b,jt as c,kt as d,F as e,St as f,Tt as g,v as h,A as i,C as j,Rt as k,Ct as l,wt as m,xt as n,_t as o,G as p,E as q,U as r,ht as s,At as t,ft as u,X as v};
@@ -0,0 +1,60 @@
1
+ import{t as Zn,o as Xt,y as Qt,ab as Yn,aW as jn,W as Vt,aq as Xn,aN as Qn,aU as Vn,aO as Kn,a1 as Jn,al as Ne,p as er,f as tr,i as nr,a as rr}from"./D3vxvonu.js";import{d as Kt,e as sr,c as ir,a as lr}from"./DvA-KON-.js";import{k as ar}from"./DQA8NZIH.js";import{s as or,r as cr}from"./BysXJlZb.js";import{I as pr}from"./B5wTVqxm.js";function Rs(r,e,n=!1,s=!1,t=!1){var a=r,l="";Zn(()=>{var p=Yn;if(l===(l=e()??"")){Xt&&Qt();return}if(p.nodes!==null&&(jn(p.nodes.start,p.nodes.end),p.nodes=null),l!==""){if(Xt){Vt.data;for(var o=Qt(),f=o;o!==null&&(o.nodeType!==Xn||o.data!=="");)f=o,o=Qn(o);if(o===null)throw Vn(),Kn;Kt(Vt,f),a=Jn(o);return}var u=l+"";n?u=`<svg>${u}</svg>`:s&&(u=`<math>${u}</math>`);var d=sr(u);if((n||s)&&(d=Ne(d)),Kt(Ne(d),d.lastChild),n||s)for(;Ne(d);)a.before(Ne(d));else a.before(d)}})}function mt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ne=mt();function gn(r){ne=r}var ee={exec:()=>null};function b(r,e=""){let n=typeof r=="string"?r:r.source,s={replace:(t,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(M.caret,"$1"),n=n.replace(t,l),s},getRegex:()=>new RegExp(n,e)};return s}var ur=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),M={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}>`)},hr=/^(?:[ \t]*(?:\n|$))+/,fr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,gr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_e=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,kt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,dn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,mn=b(dn).replace(/bull/g,kt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mr=b(dn).replace(/bull/g,kt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kr=/^[^\n]+/,xt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,br=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xr=b(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,kt).getRegex(),He="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Tt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Tr=b("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Tt).replace("tag",He).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kn=b(bt).replace("hr",_e).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",He).getRegex(),wr=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kn).getRegex(),wt={blockquote:wr,code:fr,def:br,fences:gr,heading:dr,hr:_e,html:Tr,lheading:mn,list:xr,newline:hr,paragraph:kn,table:ee,text:kr},Jt=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_e).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",He).getRegex(),_r={...wt,lheading:mr,table:Jt,paragraph:b(bt).replace("hr",_e).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jt).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",He).getRegex()},Ar={...wt,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ee,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(bt).replace("hr",_e).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",mn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Er=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bn=/^( {2,}|\\)\n(?!\s*$)/,yr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Be=/[\p{P}\p{S}]/u,_t=/[\s\p{P}\p{S}]/u,xn=/[^\s\p{P}\p{S}]/u,Rr=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_t).getRegex(),Tn=/(?!~)[\p{P}\p{S}]/u,Lr=/(?!~)[\s\p{P}\p{S}]/u,Ir=/(?:[^\s\p{P}\p{S}]|~)/u,wn=/(?![*_])[\p{P}\p{S}]/u,Dr=/(?![*_])[\s\p{P}\p{S}]/u,Or=/(?:[^\s\p{P}\p{S}]|[*_])/u,Cr=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ur?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_n=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Nr=b(_n,"u").replace(/punct/g,Be).getRegex(),Mr=b(_n,"u").replace(/punct/g,Tn).getRegex(),An="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Pr=b(An,"gu").replace(/notPunctSpace/g,xn).replace(/punctSpace/g,_t).replace(/punct/g,Be).getRegex(),vr=b(An,"gu").replace(/notPunctSpace/g,Ir).replace(/punctSpace/g,Lr).replace(/punct/g,Tn).getRegex(),$r=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xn).replace(/punctSpace/g,_t).replace(/punct/g,Be).getRegex(),zr=b(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,wn).getRegex(),Ur="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Fr=b(Ur,"gu").replace(/notPunctSpace/g,Or).replace(/punctSpace/g,Dr).replace(/punct/g,wn).getRegex(),Hr=b(/\\(punct)/,"gu").replace(/punct/g,Be).getRegex(),Br=b(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Gr=b(Tt).replace("(?:-->|$)","-->").getRegex(),Wr=b("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Gr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ze=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,qr=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),En=b(/^!?\[(label)\]\[(ref)\]/).replace("label",ze).replace("ref",xt).getRegex(),Sn=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",xt).getRegex(),Zr=b("reflink|nolink(?!\\()","g").replace("reflink",En).replace("nolink",Sn).getRegex(),en=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,At={_backpedal:ee,anyPunctuation:Hr,autolink:Br,blockSkip:Cr,br:bn,code:Sr,del:ee,delLDelim:ee,delRDelim:ee,emStrongLDelim:Nr,emStrongRDelimAst:Pr,emStrongRDelimUnd:$r,escape:Er,link:qr,nolink:Sn,punctuation:Rr,reflink:En,reflinkSearch:Zr,tag:Wr,text:yr,url:ee},Yr={...At,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",ze).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ze).getRegex()},pt={...At,emStrongRDelimAst:vr,emStrongLDelim:Mr,delLDelim:zr,delRDelim:Fr,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",en).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",en).getRegex()},jr={...pt,br:b(bn).replace("{2,}","*").getRegex(),text:b(pt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Me={normal:wt,gfm:_r,pedantic:Ar},ge={normal:At,gfm:pt,breaks:jr,pedantic:Yr},Xr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn=r=>Xr[r];function q(r,e){if(e){if(M.escapeTest.test(r))return r.replace(M.escapeReplace,tn)}else if(M.escapeTestNoEncode.test(r))return r.replace(M.escapeReplaceNoEncode,tn);return r}function nn(r){try{r=encodeURI(r).replace(M.percentDecode,"%")}catch{return null}return r}function rn(r,e){let n=r.replace(M.findPipe,(a,l,p)=>{let o=!1,f=l;for(;--f>=0&&p[f]==="\\";)o=!o;return o?"|":" |"}),s=n.split(M.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(M.slashPipe,"|");return s}function de(r,e,n){let s=r.length;if(s===0)return"";let t=0;for(;t<s&&r.charAt(s-t-1)===e;)t++;return r.slice(0,s-t)}function Qr(r,e){if(r.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])n++;else if(r[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function Vr(r,e=0){let n=e,s="";for(let t of r)if(t===" "){let a=4-n%4;s+=" ".repeat(a),n+=a}else s+=t,n++;return s}function sn(r,e,n,s,t){let a=e.href,l=e.title||null,p=r[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:l,text:p,tokens:s.inlineTokens(p)};return s.state.inLink=!1,o}function Kr(r,e,n){let s=r.match(n.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
3
+ `).map(a=>{let l=a.match(n.other.beginningSpace);if(l===null)return a;let[p]=l;return p.length>=t.length?a.slice(t.length):a}).join(`
4
+ `)}var Ue=class{options;rules;lexer;constructor(r){this.options=r||ne}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:de(n,`
5
+ `)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let n=e[0],s=Kr(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=de(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:de(e[0],`
6
+ `)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let n=de(e[0],`
7
+ `).split(`
8
+ `),s="",t="",a=[];for(;n.length>0;){let l=!1,p=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))p.push(n[o]),l=!0;else if(!l)p.push(n[o]);else break;n=n.slice(o);let f=p.join(`
9
+ `),u=f.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
11
+ ${f}`:f,t=t?`${t}
12
+ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=d,n.length===0)break;let k=a.at(-1);if(k?.type==="code")break;if(k?.type==="blockquote"){let _=k,T=_.raw+`
13
+ `+n.join(`
14
+ `),U=this.blockquote(T);a[a.length-1]=U,s=s.substring(0,s.length-_.raw.length)+U.raw,t=t.substring(0,t.length-_.text.length)+U.text;break}else if(k?.type==="list"){let _=k,T=_.raw+`
15
+ `+n.join(`
16
+ `),U=this.list(T);a[a.length-1]=U,s=s.substring(0,s.length-k.raw.length)+U.raw,t=t.substring(0,t.length-_.raw.length)+U.raw,n=T.substring(a.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:s,tokens:a,text:t}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim(),s=n.length>1,t={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;r;){let o=!1,f="",u="";if(!(e=a.exec(r))||this.rules.block.hr.test(r))break;f=e[0],r=r.substring(f.length);let d=Vr(e[2].split(`
18
+ `,1)[0],e[1].length),k=r.split(`
19
+ `,1)[0],_=!d.trim(),T=0;if(this.options.pedantic?(T=2,u=d.trimStart()):_?T=e[1].length+1:(T=d.search(this.rules.other.nonSpaceChar),T=T>4?1:T,u=d.slice(T),T+=e[1].length),_&&this.rules.other.blankLine.test(k)&&(f+=k+`
20
+ `,r=r.substring(k.length+1),o=!0),!o){let U=this.rules.other.nextBulletRegex(T),Ae=this.rules.other.hrRegex(T),Ee=this.rules.other.fencesBeginRegex(T),Se=this.rules.other.headingBeginRegex(T),re=this.rules.other.htmlBeginRegex(T),L=this.rules.other.blockquoteBeginRegex(T);for(;r;){let Y=r.split(`
21
+ `,1)[0],j;if(k=Y,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),j=k):j=k.replace(this.rules.other.tabCharGlobal," "),Ee.test(k)||Se.test(k)||re.test(k)||L.test(k)||U.test(k)||Ae.test(k))break;if(j.search(this.rules.other.nonSpaceChar)>=T||!k.trim())u+=`
22
+ `+j.slice(T);else{if(_||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Ee.test(d)||Se.test(d)||Ae.test(d))break;u+=`
23
+ `+k}_=!k.trim(),f+=Y+`
24
+ `,r=r.substring(Y.length+1),d=j.slice(T)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0)),t.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),t.raw+=f}let p=t.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o of t.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(o.raw);if(f){let u={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};o.checked=u.checked,t.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=u.raw+o.tokens[0].raw,o.tokens[0].text=u.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(u)):o.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):o.tokens.unshift(u)}}if(!t.loose){let f=o.tokens.filter(d=>d.type==="space"),u=f.length>0&&f.some(d=>this.rules.other.anyLine.test(d.raw));t.loose=u}}if(t.loose)for(let o of t.items){o.loose=!0;for(let f of o.tokens)f.type==="text"&&(f.type="paragraph")}return t}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:t}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=rn(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of t)a.rows.push(rn(l,a.header.length).map((p,o)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:a.align[o]})));return a}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let n=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=de(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Qr(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),sn(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return sn(n,t,n[0],this.lexer,this.rules)}}emStrong(r,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,a,l,p=t,o=0,f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,e=e.slice(-1*r.length+t);(s=f.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){p+=l;continue}else if((s[5]||s[6])&&t%3&&!((t+l)%3)){o+=l;continue}if(p-=l,p>0)continue;l=Math.min(l,l+p+o);let u=[...s[0]][0].length,d=r.slice(0,t+s.index+u+l);if(Math.min(t,l)%2){let _=d.slice(1,-1);return{type:"em",raw:d,text:_,tokens:this.lexer.inlineTokens(_)}}let k=d.slice(2,-2);return{type:"strong",raw:d,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),t=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&t&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r,e,n=""){let s=this.rules.inline.delLDelim.exec(r);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,a,l,p=t,o=this.rules.inline.delRDelim;for(o.lastIndex=0,e=e.slice(-1*r.length+t);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==t))continue;if(s[3]||s[4]){p+=l;continue}if(p-=l,p>0)continue;l=Math.min(l,l+p);let f=[...s[0]][0].length,u=r.slice(0,t+s.index+f+l),d=u.slice(t,-t);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},H=class ut{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ne,this.options.tokenizer=this.options.tokenizer||new Ue,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:M,block:Me.normal,inline:ge.normal};this.options.pedantic?(n.block=Me.pedantic,n.inline=ge.pedantic):this.options.gfm&&(n.block=Me.gfm,this.options.breaks?n.inline=ge.breaks:n.inline=ge.gfm),this.tokenizer.rules=n}static get rules(){return{block:Me,inline:ge}}static lex(e,n){return new ut(n).lex(e)}static lexInline(e,n){return new ut(n).inlineTokens(e)}lex(e){e=e.replace(M.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.options.pedantic&&(e=e.replace(M.tabCharGlobal," ").replace(M.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(l=>(t=l.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let l=n.at(-1);t.raw.length===1&&l!==void 0?l.raw+=`
28
+ `:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
29
+ `)?"":`
30
+ `)+t.raw,l.text+=`
31
+ `+t.text,this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
32
+ `)?"":`
33
+ `)+t.raw,l.text+=`
34
+ `+t.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},n.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}let a=e;if(this.options.extensions?.startBlock){let l=1/0,p=e.slice(1),o;this.options.extensions.startBlock.forEach(f=>{o=f.call({lexer:this},p),typeof o=="number"&&o>=0&&(l=Math.min(l,o))}),l<1/0&&l>=0&&(a=e.substring(0,l+1))}if(this.state.top&&(t=this.tokenizer.paragraph(a))){let l=n.at(-1);s&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
35
+ `)?"":`
36
+ `)+t.raw,l.text+=`
37
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t),s=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
38
+ `)?"":`
39
+ `)+t.raw,l.text+=`
40
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=t[2]?t[2].length:0,s=s.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,p="";for(;e;){l||(p=""),l=!1;let o;if(this.options.extensions?.inline?.some(u=>(o=u.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let u=n.at(-1);o.type==="text"&&u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,s,p)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e,s,p)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let f=e;if(this.options.extensions?.startInline){let u=1/0,d=e.slice(1),k;this.options.extensions.startInline.forEach(_=>{k=_.call({lexer:this},d),typeof k=="number"&&k>=0&&(u=Math.min(u,k))}),u<1/0&&u>=0&&(f=e.substring(0,u+1))}if(o=this.tokenizer.inlineText(f)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(p=o.raw.slice(-1)),l=!0;let u=n.at(-1);u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):n.push(o);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},Fe=class{options;parser;constructor(r){this.options=r||ne}space(r){return""}code({text:r,lang:e,escaped:n}){let s=(e||"").match(M.notSpaceStart)?.[0],t=r.replace(M.endingNewline,"")+`
41
+ `;return s?'<pre><code class="language-'+q(s)+'">'+(n?t:q(t,!0))+`</code></pre>
42
+ `:"<pre><code>"+(n?t:q(t,!0))+`</code></pre>
43
+ `}blockquote({tokens:r}){return`<blockquote>
44
+ ${this.parser.parse(r)}</blockquote>
45
+ `}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
46
+ `}hr(r){return`<hr>
47
+ `}list(r){let e=r.ordered,n=r.start,s="";for(let l=0;l<r.items.length;l++){let p=r.items[l];s+=this.listitem(p)}let t=e?"ol":"ul",a=e&&n!==1?' start="'+n+'"':"";return"<"+t+a+`>
48
+ `+s+"</"+t+`>
49
+ `}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
50
+ `}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
51
+ `}table(r){let e="",n="";for(let t=0;t<r.header.length;t++)n+=this.tablecell(r.header[t]);e+=this.tablerow({text:n});let s="";for(let t=0;t<r.rows.length;t++){let a=r.rows[t];n="";for(let l=0;l<a.length;l++)n+=this.tablecell(a[l]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
52
+ <thead>
53
+ `+e+`</thead>
54
+ `+s+`</table>
55
+ `}tablerow({text:r}){return`<tr>
56
+ ${r}</tr>
57
+ `}tablecell(r){let e=this.parser.parseInline(r.tokens),n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
58
+ `}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${q(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:n}){let s=this.parser.parseInline(n),t=nn(r);if(t===null)return s;r=t;let a='<a href="'+r+'"';return e&&(a+=' title="'+q(e)+'"'),a+=">"+s+"</a>",a}image({href:r,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let t=nn(r);if(t===null)return q(n);r=t;let a=`<img src="${r}" alt="${q(n)}"`;return e&&(a+=` title="${q(e)}"`),a+=">",a}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:q(r.text)}},Et=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},B=class ht{options;renderer;textRenderer;constructor(e){this.options=e||ne,this.options.renderer=this.options.renderer||new Fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Et}static parse(e,n){return new ht(n).parse(e)}static parseInline(e,n){return new ht(n).parseInline(e)}parse(e){let n="";for(let s=0;s<e.length;s++){let t=e[s];if(this.options.extensions?.renderers?.[t.type]){let l=t,p=this.options.extensions.renderers[l.type].call({parser:this},l);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=p||"";continue}}let a=t;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){let s="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let p=this.options.extensions.renderers[a.type].call({parser:this},a);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=p||"";continue}}let l=a;switch(l.type){case"escape":{s+=n.text(l);break}case"html":{s+=n.html(l);break}case"link":{s+=n.link(l);break}case"image":{s+=n.image(l);break}case"checkbox":{s+=n.checkbox(l);break}case"strong":{s+=n.strong(l);break}case"em":{s+=n.em(l);break}case"codespan":{s+=n.codespan(l);break}case"br":{s+=n.br(l);break}case"del":{s+=n.del(l);break}case"text":{s+=n.text(l);break}default:{let p='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return s}},we=class{options;block;constructor(r){this.options=r||ne}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?H.lex:H.lexInline}provideParser(){return this.block?B.parse:B.parseInline}},Jr=class{defaults=mt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=B;Renderer=Fe;TextRenderer=Et;Lexer=H;Tokenizer=Ue;Hooks=we;constructor(...r){this.use(...r)}walkTokens(r,e){let n=[];for(let s of r)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let a of t.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let t=s;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let l=t[a].flat(1/0);n=n.concat(this.walkTokens(l,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...l){let p=t.renderer.apply(this,l);return p===!1&&(p=a.apply(this,l)),p}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),n.renderer){let t=this.defaults.renderer||new Fe(this.defaults);for(let a in n.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,p=n.renderer[l],o=t[l];t[l]=(...f)=>{let u=p.apply(t,f);return u===!1&&(u=o.apply(t,f)),u||""}}s.renderer=t}if(n.tokenizer){let t=this.defaults.tokenizer||new Ue(this.defaults);for(let a in n.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,p=n.tokenizer[l],o=t[l];t[l]=(...f)=>{let u=p.apply(t,f);return u===!1&&(u=o.apply(t,f)),u}}s.tokenizer=t}if(n.hooks){let t=this.defaults.hooks||new we;for(let a in n.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,p=n.hooks[l],o=t[l];we.passThroughHooks.has(a)?t[l]=f=>{if(this.defaults.async&&we.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await p.call(t,f);return o.call(t,d)})();let u=p.call(t,f);return o.call(t,u)}:t[l]=(...f)=>{if(this.defaults.async)return(async()=>{let d=await p.apply(t,f);return d===!1&&(d=await o.apply(t,f)),d})();let u=p.apply(t,f);return u===!1&&(u=o.apply(t,f)),u}}s.hooks=t}if(n.walkTokens){let t=this.defaults.walkTokens,a=n.walkTokens;s.walkTokens=function(l){let p=[];return p.push(a.call(this,l)),t&&(p=p.concat(t.call(this,l))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return H.lex(r,e??this.defaults)}parser(r,e){return B.parse(r,e??this.defaults)}parseMarkdown(r){return(e,n)=>{let s={...n},t={...this.defaults,...s},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return(async()=>{let l=t.hooks?await t.hooks.preprocess(e):e,p=await(t.hooks?await t.hooks.provideLexer():r?H.lex:H.lexInline)(l,t),o=t.hooks?await t.hooks.processAllTokens(p):p;t.walkTokens&&await Promise.all(this.walkTokens(o,t.walkTokens));let f=await(t.hooks?await t.hooks.provideParser():r?B.parse:B.parseInline)(o,t);return t.hooks?await t.hooks.postprocess(f):f})().catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let l=(t.hooks?t.hooks.provideLexer():r?H.lex:H.lexInline)(e,t);t.hooks&&(l=t.hooks.processAllTokens(l)),t.walkTokens&&this.walkTokens(l,t.walkTokens);let p=(t.hooks?t.hooks.provideParser():r?B.parse:B.parseInline)(l,t);return t.hooks&&(p=t.hooks.postprocess(p)),p}catch(l){return a(l)}}}onError(r,e){return n=>{if(n.message+=`
59
+ Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+q(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},te=new Jr;function x(r,e){return te.parse(r,e)}x.options=x.setOptions=function(r){return te.setOptions(r),x.defaults=te.defaults,gn(x.defaults),x};x.getDefaults=mt;x.defaults=ne;x.use=function(...r){return te.use(...r),x.defaults=te.defaults,gn(x.defaults),x};x.walkTokens=function(r,e){return te.walkTokens(r,e)};x.parseInline=te.parseInline;x.Parser=B;x.parser=B.parse;x.Renderer=Fe;x.TextRenderer=Et;x.Lexer=H;x.lexer=H.lex;x.Tokenizer=Ue;x.Hooks=we;x.parse=x;x.options;x.setOptions;x.use;x.walkTokens;x.parseInline;B.parse;H.lex;const{entries:yn,setPrototypeOf:ln,isFrozen:es,getPrototypeOf:ts,getOwnPropertyDescriptor:ns}=Object;let{freeze:P,seal:z,create:ft}=Object,{apply:gt,construct:dt}=typeof Reflect<"u"&&Reflect;P||(P=function(e){return e});z||(z=function(e){return e});gt||(gt=function(e,n){for(var s=arguments.length,t=new Array(s>2?s-2:0),a=2;a<s;a++)t[a-2]=arguments[a];return e.apply(n,t)});dt||(dt=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),t=1;t<n;t++)s[t-1]=arguments[t];return new e(...s)});const Pe=v(Array.prototype.forEach),rs=v(Array.prototype.lastIndexOf),an=v(Array.prototype.pop),me=v(Array.prototype.push),ss=v(Array.prototype.splice),$e=v(String.prototype.toLowerCase),st=v(String.prototype.toString),it=v(String.prototype.match),ke=v(String.prototype.replace),is=v(String.prototype.indexOf),ls=v(String.prototype.trim),F=v(Object.prototype.hasOwnProperty),N=v(RegExp.prototype.test),be=as(TypeError);function v(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),t=1;t<n;t++)s[t-1]=arguments[t];return gt(r,e,s)}}function as(r){return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return dt(r,n)}}function m(r,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e;ln&&ln(r,null);let s=e.length;for(;s--;){let t=e[s];if(typeof t=="string"){const a=n(t);a!==t&&(es(e)||(e[s]=a),t=a)}r[t]=!0}return r}function os(r){for(let e=0;e<r.length;e++)F(r,e)||(r[e]=null);return r}function Z(r){const e=ft(null);for(const[n,s]of yn(r))F(r,n)&&(Array.isArray(s)?e[n]=os(s):s&&typeof s=="object"&&s.constructor===Object?e[n]=Z(s):e[n]=s);return e}function xe(r,e){for(;r!==null;){const s=ns(r,e);if(s){if(s.get)return v(s.get);if(typeof s.value=="function")return v(s.value)}r=ts(r)}function n(){return null}return n}const on=P(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),lt=P(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),at=P(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cs=P(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ot=P(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ps=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cn=P(["#text"]),pn=P(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ct=P(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),un=P(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ve=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),us=z(/\{\{[\w\W]*|[\w\W]*\}\}/gm),hs=z(/<%[\w\W]*|[\w\W]*%>/gm),fs=z(/\$\{[\w\W]*/gm),gs=z(/^data-[\-\w.\u00B7-\uFFFF]+$/),ds=z(/^aria-[\-\w]+$/),Rn=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ms=z(/^(?:\w+script|data):/i),ks=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ln=z(/^html$/i),bs=z(/^[a-z][.\w]*(-[.\w]+)+$/i);var hn=Object.freeze({__proto__:null,ARIA_ATTR:ds,ATTR_WHITESPACE:ks,CUSTOM_ELEMENT:bs,DATA_ATTR:gs,DOCTYPE_NAME:Ln,ERB_EXPR:hs,IS_ALLOWED_URI:Rn,IS_SCRIPT_OR_DATA:ms,MUSTACHE_EXPR:us,TMPLIT_EXPR:fs});const Te={element:1,text:3,progressingInstruction:7,comment:8,document:9},xs=function(){return typeof window>"u"?null:window},Ts=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const t="data-tt-policy-suffix";n&&n.hasAttribute(t)&&(s=n.getAttribute(t));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},fn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function In(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xs();const e=g=>In(g);if(e.version="3.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==Te.document||!r.Element)return e.isSupported=!1,e;let{document:n}=r;const s=n,t=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:p,Element:o,NodeFilter:f,NamedNodeMap:u=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:d,DOMParser:k,trustedTypes:_}=r,T=o.prototype,U=xe(T,"cloneNode"),Ae=xe(T,"remove"),Ee=xe(T,"nextSibling"),Se=xe(T,"childNodes"),re=xe(T,"parentNode");if(typeof l=="function"){const g=n.createElement("template");g.content&&g.content.ownerDocument&&(n=g.content.ownerDocument)}let L,Y="";const{implementation:j,createNodeIterator:Dn,createDocumentFragment:On,getElementsByTagName:Cn}=n,{importNode:Nn}=s;let C=fn();e.isSupported=typeof yn=="function"&&typeof re=="function"&&j&&j.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ge,ERB_EXPR:We,TMPLIT_EXPR:qe,DATA_ATTR:Mn,ARIA_ATTR:Pn,IS_SCRIPT_OR_DATA:vn,ATTR_WHITESPACE:St,CUSTOM_ELEMENT:$n}=hn;let{IS_ALLOWED_URI:yt}=hn,R=null;const Rt=m({},[...on,...lt,...at,...ot,...cn]);let I=null;const Lt=m({},[...pn,...ct,...un,...ve]);let A=Object.seal(ft(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,Ze=null;const se=Object.seal(ft(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let It=!0,Ye=!0,Dt=!1,Ot=!0,ie=!1,ye=!0,K=!1,je=!1,Xe=!1,le=!1,Re=!1,Le=!1,Ct=!0,Nt=!1;const zn="user-content-";let Qe=!0,he=!1,ae={},G=null;const Ve=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Mt=null;const Pt=m({},["audio","video","img","source","image","track"]);let Ke=null;const vt=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",X="http://www.w3.org/1999/xhtml";let oe=X,Je=!1,et=null;const Un=m({},[Ie,De,X],st);let Oe=m({},["mi","mo","mn","ms","mtext"]),Ce=m({},["annotation-xml"]);const Fn=m({},["title","style","font","a","script"]);let fe=null;const Hn=["application/xhtml+xml","text/html"],Bn="text/html";let y=null,ce=null;const Gn=n.createElement("form"),$t=function(i){return i instanceof RegExp||i instanceof Function},tt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ce&&ce===i)){if((!i||typeof i!="object")&&(i={}),i=Z(i),fe=Hn.indexOf(i.PARSER_MEDIA_TYPE)===-1?Bn:i.PARSER_MEDIA_TYPE,y=fe==="application/xhtml+xml"?st:$e,R=F(i,"ALLOWED_TAGS")?m({},i.ALLOWED_TAGS,y):Rt,I=F(i,"ALLOWED_ATTR")?m({},i.ALLOWED_ATTR,y):Lt,et=F(i,"ALLOWED_NAMESPACES")?m({},i.ALLOWED_NAMESPACES,st):Un,Ke=F(i,"ADD_URI_SAFE_ATTR")?m(Z(vt),i.ADD_URI_SAFE_ATTR,y):vt,Mt=F(i,"ADD_DATA_URI_TAGS")?m(Z(Pt),i.ADD_DATA_URI_TAGS,y):Pt,G=F(i,"FORBID_CONTENTS")?m({},i.FORBID_CONTENTS,y):Ve,ue=F(i,"FORBID_TAGS")?m({},i.FORBID_TAGS,y):Z({}),Ze=F(i,"FORBID_ATTR")?m({},i.FORBID_ATTR,y):Z({}),ae=F(i,"USE_PROFILES")?i.USE_PROFILES:!1,It=i.ALLOW_ARIA_ATTR!==!1,Ye=i.ALLOW_DATA_ATTR!==!1,Dt=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=i.SAFE_FOR_TEMPLATES||!1,ye=i.SAFE_FOR_XML!==!1,K=i.WHOLE_DOCUMENT||!1,le=i.RETURN_DOM||!1,Re=i.RETURN_DOM_FRAGMENT||!1,Le=i.RETURN_TRUSTED_TYPE||!1,Xe=i.FORCE_BODY||!1,Ct=i.SANITIZE_DOM!==!1,Nt=i.SANITIZE_NAMED_PROPS||!1,Qe=i.KEEP_CONTENT!==!1,he=i.IN_PLACE||!1,yt=i.ALLOWED_URI_REGEXP||Rn,oe=i.NAMESPACE||X,Oe=i.MATHML_TEXT_INTEGRATION_POINTS||Oe,Ce=i.HTML_INTEGRATION_POINTS||Ce,A=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&$t(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(A.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&$t(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(A.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(A.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(Ye=!1),Re&&(le=!0),ae&&(R=m({},cn),I=[],ae.html===!0&&(m(R,on),m(I,pn)),ae.svg===!0&&(m(R,lt),m(I,ct),m(I,ve)),ae.svgFilters===!0&&(m(R,at),m(I,ct),m(I,ve)),ae.mathMl===!0&&(m(R,ot),m(I,un),m(I,ve))),i.ADD_TAGS&&(typeof i.ADD_TAGS=="function"?se.tagCheck=i.ADD_TAGS:(R===Rt&&(R=Z(R)),m(R,i.ADD_TAGS,y))),i.ADD_ATTR&&(typeof i.ADD_ATTR=="function"?se.attributeCheck=i.ADD_ATTR:(I===Lt&&(I=Z(I)),m(I,i.ADD_ATTR,y))),i.ADD_URI_SAFE_ATTR&&m(Ke,i.ADD_URI_SAFE_ATTR,y),i.FORBID_CONTENTS&&(G===Ve&&(G=Z(G)),m(G,i.FORBID_CONTENTS,y)),i.ADD_FORBID_CONTENTS&&(G===Ve&&(G=Z(G)),m(G,i.ADD_FORBID_CONTENTS,y)),Qe&&(R["#text"]=!0),K&&m(R,["html","head","body"]),R.table&&(m(R,["tbody"]),delete ue.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=i.TRUSTED_TYPES_POLICY,Y=L.createHTML("")}else L===void 0&&(L=Ts(_,t)),L!==null&&typeof Y=="string"&&(Y=L.createHTML(""));P&&P(i),ce=i}},zt=m({},[...lt,...at,...cs]),Ut=m({},[...ot,...ps]),Wn=function(i){let c=re(i);(!c||!c.tagName)&&(c={namespaceURI:oe,tagName:"template"});const h=$e(i.tagName),w=$e(c.tagName);return et[i.namespaceURI]?i.namespaceURI===De?c.namespaceURI===X?h==="svg":c.namespaceURI===Ie?h==="svg"&&(w==="annotation-xml"||Oe[w]):!!zt[h]:i.namespaceURI===Ie?c.namespaceURI===X?h==="math":c.namespaceURI===De?h==="math"&&Ce[w]:!!Ut[h]:i.namespaceURI===X?c.namespaceURI===De&&!Ce[w]||c.namespaceURI===Ie&&!Oe[w]?!1:!Ut[h]&&(Fn[h]||!zt[h]):!!(fe==="application/xhtml+xml"&&et[i.namespaceURI]):!1},W=function(i){me(e.removed,{element:i});try{re(i).removeChild(i)}catch{Ae(i)}},J=function(i,c){try{me(e.removed,{attribute:c.getAttributeNode(i),from:c})}catch{me(e.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(le||Re)try{W(c)}catch{}else try{c.setAttribute(i,"")}catch{}},Ft=function(i){let c=null,h=null;if(Xe)i="<remove></remove>"+i;else{const E=it(i,/^[\r\n\t ]+/);h=E&&E[0]}fe==="application/xhtml+xml"&&oe===X&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const w=L?L.createHTML(i):i;if(oe===X)try{c=new k().parseFromString(w,fe)}catch{}if(!c||!c.documentElement){c=j.createDocument(oe,"template",null);try{c.documentElement.innerHTML=Je?Y:w}catch{}}const O=c.body||c.documentElement;return i&&h&&O.insertBefore(n.createTextNode(h),O.childNodes[0]||null),oe===X?Cn.call(c,K?"html":"body")[0]:K?c.documentElement:O},Ht=function(i){return Dn.call(i.ownerDocument||i,i,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},nt=function(i){return i instanceof d&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof u)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Bt=function(i){return typeof p=="function"&&i instanceof p};function Q(g,i,c){Pe(g,h=>{h.call(e,i,c,ce)})}const Gt=function(i){let c=null;if(Q(C.beforeSanitizeElements,i,null),nt(i))return W(i),!0;const h=y(i.nodeName);if(Q(C.uponSanitizeElement,i,{tagName:h,allowedTags:R}),ye&&i.hasChildNodes()&&!Bt(i.firstElementChild)&&N(/<[/\w!]/g,i.innerHTML)&&N(/<[/\w!]/g,i.textContent)||i.nodeType===Te.progressingInstruction||ye&&i.nodeType===Te.comment&&N(/<[/\w]/g,i.data))return W(i),!0;if(!(se.tagCheck instanceof Function&&se.tagCheck(h))&&(!R[h]||ue[h])){if(!ue[h]&&qt(h)&&(A.tagNameCheck instanceof RegExp&&N(A.tagNameCheck,h)||A.tagNameCheck instanceof Function&&A.tagNameCheck(h)))return!1;if(Qe&&!G[h]){const w=re(i)||i.parentNode,O=Se(i)||i.childNodes;if(O&&w){const E=O.length;for(let $=E-1;$>=0;--$){const V=U(O[$],!0);V.__removalCount=(i.__removalCount||0)+1,w.insertBefore(V,Ee(i))}}}return W(i),!0}return i instanceof o&&!Wn(i)||(h==="noscript"||h==="noembed"||h==="noframes")&&N(/<\/no(script|embed|frames)/i,i.innerHTML)?(W(i),!0):(ie&&i.nodeType===Te.text&&(c=i.textContent,Pe([Ge,We,qe],w=>{c=ke(c,w," ")}),i.textContent!==c&&(me(e.removed,{element:i.cloneNode()}),i.textContent=c)),Q(C.afterSanitizeElements,i,null),!1)},Wt=function(i,c,h){if(Ct&&(c==="id"||c==="name")&&(h in n||h in Gn))return!1;if(!(Ye&&!Ze[c]&&N(Mn,c))){if(!(It&&N(Pn,c))){if(!(se.attributeCheck instanceof Function&&se.attributeCheck(c,i))){if(!I[c]||Ze[c]){if(!(qt(i)&&(A.tagNameCheck instanceof RegExp&&N(A.tagNameCheck,i)||A.tagNameCheck instanceof Function&&A.tagNameCheck(i))&&(A.attributeNameCheck instanceof RegExp&&N(A.attributeNameCheck,c)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(c,i))||c==="is"&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&N(A.tagNameCheck,h)||A.tagNameCheck instanceof Function&&A.tagNameCheck(h))))return!1}else if(!Ke[c]){if(!N(yt,ke(h,St,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&is(h,"data:")===0&&Mt[i])){if(!(Dt&&!N(vn,ke(h,St,"")))){if(h)return!1}}}}}}}return!0},qt=function(i){return i!=="annotation-xml"&&it(i,$n)},Zt=function(i){Q(C.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||nt(i))return;const h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0};let w=c.length;for(;w--;){const O=c[w],{name:E,namespaceURI:$,value:V}=O,pe=y(E),rt=V;let D=E==="value"?rt:ls(rt);if(h.attrName=pe,h.attrValue=D,h.keepAttr=!0,h.forceKeepAttr=void 0,Q(C.uponSanitizeAttribute,i,h),D=h.attrValue,Nt&&(pe==="id"||pe==="name")&&(J(E,i),D=zn+D),ye&&N(/((--!?|])>)|<\/(style|title|textarea)/i,D)){J(E,i);continue}if(pe==="attributename"&&it(D,"href")){J(E,i);continue}if(h.forceKeepAttr)continue;if(!h.keepAttr){J(E,i);continue}if(!Ot&&N(/\/>/i,D)){J(E,i);continue}ie&&Pe([Ge,We,qe],jt=>{D=ke(D,jt," ")});const Yt=y(i.nodeName);if(!Wt(Yt,pe,D)){J(E,i);continue}if(L&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!$)switch(_.getAttributeType(Yt,pe)){case"TrustedHTML":{D=L.createHTML(D);break}case"TrustedScriptURL":{D=L.createScriptURL(D);break}}if(D!==rt)try{$?i.setAttributeNS($,E,D):i.setAttribute(E,D),nt(i)?W(i):an(e.removed)}catch{J(E,i)}}Q(C.afterSanitizeAttributes,i,null)},qn=function g(i){let c=null;const h=Ht(i);for(Q(C.beforeSanitizeShadowDOM,i,null);c=h.nextNode();)Q(C.uponSanitizeShadowNode,c,null),Gt(c),Zt(c),c.content instanceof a&&g(c.content);Q(C.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(g){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,h=null,w=null,O=null;if(Je=!g,Je&&(g="<!-->"),typeof g!="string"&&!Bt(g))if(typeof g.toString=="function"){if(g=g.toString(),typeof g!="string")throw be("dirty is not a string, aborting")}else throw be("toString is not a function");if(!e.isSupported)return g;if(je||tt(i),e.removed=[],typeof g=="string"&&(he=!1),he){if(g.nodeName){const V=y(g.nodeName);if(!R[V]||ue[V])throw be("root node is forbidden and cannot be sanitized in-place")}}else if(g instanceof p)c=Ft("<!---->"),h=c.ownerDocument.importNode(g,!0),h.nodeType===Te.element&&h.nodeName==="BODY"||h.nodeName==="HTML"?c=h:c.appendChild(h);else{if(!le&&!ie&&!K&&g.indexOf("<")===-1)return L&&Le?L.createHTML(g):g;if(c=Ft(g),!c)return le?null:Le?Y:""}c&&Xe&&W(c.firstChild);const E=Ht(he?g:c);for(;w=E.nextNode();)Gt(w),Zt(w),w.content instanceof a&&qn(w.content);if(he)return g;if(le){if(Re)for(O=On.call(c.ownerDocument);c.firstChild;)O.appendChild(c.firstChild);else O=c;return(I.shadowroot||I.shadowrootmode)&&(O=Nn.call(s,O,!0)),O}let $=K?c.outerHTML:c.innerHTML;return K&&R["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&N(Ln,c.ownerDocument.doctype.name)&&($="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
60
+ `+$),ie&&Pe([Ge,We,qe],V=>{$=ke($,V," ")}),L&&Le?L.createHTML($):$},e.setConfig=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tt(g),je=!0},e.clearConfig=function(){ce=null,je=!1},e.isValidAttribute=function(g,i,c){ce||tt({});const h=y(g),w=y(i);return Wt(h,w,c)},e.addHook=function(g,i){typeof i=="function"&&me(C[g],i)},e.removeHook=function(g,i){if(i!==void 0){const c=rs(C[g],i);return c===-1?void 0:ss(C[g],c,1)[0]}return an(C[g])},e.removeHooks=function(g){C[g]=[]},e.removeAllHooks=function(){C=fn()},e}var S=In(),ws=S;S.sanitize.bind(S);S.isSupported;S.addHook.bind(S);S.removeHook.bind(S);S.removeHooks.bind(S);S.removeAllHooks.bind(S);S.setConfig.bind(S);S.clearConfig.bind(S);S.isValidAttribute.bind(S);S.version;S.removed;x.setOptions({gfm:!0,breaks:!0});function Ls(r){if(!r)return"";const e=x.parse(r,{async:!1});return ws.sanitize(e,{ADD_ATTR:["target"],ALLOWED_TAGS:["p","br","strong","em","del","code","pre","blockquote","ul","ol","li","a","h1","h2","h3","h4","h5","h6","hr","table","thead","tbody","tr","th","td","img","span","div","input"],ALLOWED_ATTR:["href","target","rel","src","alt","title","class","type","checked","disabled"]})}function Is(r,e){er(e,!0);let n=cr(e,["$$slots","$$events","$$legacy"]);const s=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];pr(r,or({name:"file-text"},()=>n,{get iconNode(){return s},children:(t,a)=>{var l=ir(),p=tr(l);ar(p,()=>e.children??nr),lr(t,l)},$$slots:{default:!0}})),rr()}export{Is as F,Rs as h,Ls as r};
@@ -0,0 +1 @@
1
+ import{c as H,a as o,f as u}from"./DvA-KON-.js";import{p as Q,f as b,a as S,c as l,r as f,t as p,g as d,h as L,s as T}from"./D3vxvonu.js";import{d as X,s as k}from"./D9QNBZM2.js";import{p as R,i as w}from"./BysXJlZb.js";import{p as N,q as v}from"./DQA8NZIH.js";import{b as Y}from"./D7LTux4W.js";import{g as $}from"./B8a0xDxR.js";function I(s){return s.startsWith("@")?s.slice(1):s}const ee=/^[0-9A-HJKMNP-TV-Z]{26}$/i;function te(s){return ee.test(I(s))}function ae(s){const e=I(s);return te(e)?e.slice(0,8):e}function ne(s,e,_=""){const c=encodeURIComponent(e);switch(s){case"task":return`${_}/tasks/board?ref=${c}`;case"spec":return`${_}/specs?ref=${c}`;case"plan":return`${_}/plans?ref=${c}`;case"session":return`${_}/sessions/${I(e)}`}}var re=u('<span class="text-sm"> </span> <span class="text-[10px] font-mono text-muted-foreground"> </span>',1),se=u('<span class="text-sm font-mono"> </span>'),oe=u('<span role="link" tabindex="0" data-testid="reference-link"><!></span>'),ie=u('<a data-testid="reference-link"><!></a>'),le=u('<span class="text-sm"> </span> <span class="text-[10px] font-mono text-muted-foreground"> </span>',1),fe=u('<span class="text-sm font-mono text-muted-foreground"> </span>'),ce=u('<span data-testid="reference-link"><!></span>');function ge(s,e){Q(e,!0);const _=n=>{var a=H(),h=b(a);{var x=r=>{var t=re(),i=b(t),E=l(i,!0);f(i);var C=T(i,2),m=l(C);f(C),p(()=>{k(E,c()),k(m,`@${d(A)??""}`)}),o(r,t)},D=r=>{var t=se(),i=l(t);f(t),p(()=>k(i,`@${d(q)??""}`)),o(r,t)};w(h,r=>{c()?r(x):r(D,!1)})}o(n,a)};let c=R(e,"title",3,null),P=R(e,"linked",3,!0),V=R(e,"inline",3,!1),W=R(e,"stopPropagation",3,!1),U=R(e,"class",3,""),q=L(()=>I(e.ref)),A=L(()=>ae(e.ref)),z=L(()=>ne(e.type,e.ref,Y));function Z(n){W()&&n.stopPropagation()}function J(n){n.stopPropagation(),n.preventDefault(),$(d(z))}var K=H(),j=b(K);{var B=n=>{var a=oe();a.__click=J,a.__keydown=x=>x.key==="Enter"&&J(x);var h=l(a);_(h),f(a),p(()=>{N(a,1,`inline-flex items-baseline gap-1 text-primary hover:underline cursor-pointer ${U()??""}`),v(a,"title",e.ref),v(a,"data-ref-type",e.type),v(a,"data-href",d(z))}),o(n,a)},F=n=>{var a=H(),h=b(a);{var x=r=>{var t=ie();t.__click=Z;var i=l(t);_(i),f(t),p(()=>{v(t,"href",d(z)),N(t,1,`inline-flex items-baseline gap-1 text-primary hover:underline ${U()??""}`),v(t,"title",e.ref),v(t,"data-ref-type",e.type)}),o(r,t)},D=r=>{var t=ce(),i=l(t);{var E=m=>{var g=le(),y=b(g),G=l(y,!0);f(y);var M=T(y,2),O=l(M);f(M),p(()=>{k(G,c()),k(O,`@${d(A)??""}`)}),o(m,g)},C=m=>{var g=fe(),y=l(g);f(g),p(()=>k(y,`@${d(q)??""}`)),o(m,g)};w(i,m=>{c()?m(E):m(C,!1)})}f(t),p(()=>{N(t,1,`inline-flex items-baseline gap-1 ${U()??""}`),v(t,"title",e.ref),v(t,"data-ref-type",e.type)}),o(r,t)};w(h,r=>{P()?r(x):r(D,!1)},!0)}o(n,a)};w(j,n=>{P()&&V()?n(B):n(F,!1)})}o(s,K),S()}X(["click","keydown"]);export{ge as R};