@thxgg/steward 0.1.7 → 0.1.10
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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Bo1Fdv48.js → BPaqwWyl.js} +2 -2
- package/.output/public/_nuxt/{DhQtydpF.js → C8LtDyY4.js} +1 -1
- package/.output/public/_nuxt/{D0zW6lUK.js → CQgu_W_k.js} +1 -1
- package/.output/public/_nuxt/{BRDbaJqY.js → CZKCADv6.js} +2 -2
- package/.output/public/_nuxt/{CEJOILWG.js → CeO4HNxC.js} +1 -1
- package/.output/public/_nuxt/{BNzFoVmP.js → Cs5ptsBk.js} +1 -1
- package/.output/public/_nuxt/{CFsNy2aC.js → CshyynD6.js} +1 -1
- package/.output/public/_nuxt/{DYDTtHLR.js → CzKPXRws.js} +1 -1
- package/.output/public/_nuxt/{BqmZq_gb.js → DOvbLsAq.js} +1 -1
- package/.output/public/_nuxt/{Bri1ZtcQ.js → DbloiS5Y.js} +1 -1
- package/.output/public/_nuxt/{B3hkJjmY.js → DcRwFvvS.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7fda7510-94bc-443a-a338-a8d2af142ed9.json +1 -0
- package/.output/public/_nuxt/{X6fIXIFO.js → vr7VLA9A.js} +1 -1
- package/.output/server/chunks/build/{_prd_-CnwhMRyf.mjs → _prd_-CkKfJB6U.mjs} +2 -2
- package/.output/server/chunks/build/_prd_-CkKfJB6U.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/server.mjs +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +617 -617
- package/.output/server/package.json +1 -1
- package/README.md +22 -4
- package/dist/host/src/api/git.js +1 -8
- package/dist/host/src/api/prds.js +2 -8
- package/dist/host/src/api/repo-context.js +60 -0
- package/dist/host/src/api/repos.js +6 -0
- package/dist/host/src/api/state.js +20 -21
- package/dist/host/src/executor.js +215 -29
- package/dist/host/src/help.js +124 -0
- package/dist/host/src/mcp.js +49 -25
- package/docs/MCP.md +50 -3
- package/package.json +1 -1
- package/.output/public/_nuxt/builds/meta/6683a0d9-9c02-4098-b750-bbbc0305261e.json +0 -1
- package/.output/server/chunks/build/_prd_-CnwhMRyf.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./Cn7AkR1O.js","./BGJmEYvX.js","./CylS5w8V.js","./Cp-IABpG.js","./DxSwrfjg.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./5X7smno1.js","./DGP4VlC8.js","./BLtJtn59.js","./CquLrc37.js","./DVxCFoDh.js","./CO1LY3CK.js","./B6aJPvgy.js","./BYV0-3_D.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./fKv21gyL.js","./Yzrsuije.js","./DZu-aV2c.js","./CpOuai2O.js","./CeZK1NFH.js","./CGscLIrv.js","./Bhrxn6JZ.js","./CmIQRyeF.js","./C9oPPf7i.js","./g9-lgVsj.js","./CnsnAmq5.js","./Buea-lGh.js","./CuPHTKiy.js","./Cvjx9yec.js","./B7c-h3xW.js","./BxgE0vQu.js","./BTifaqeh.js","./CenWIFCC.js","./DkwncUOv.js","./C5YyOfLZ.js","./CxGSJlkm.js","./D97Zzqfu.js","./CSXwinHm.js","./YqXBG_HV.js","./BR5kRUq4.js","./CLZrNe3w.js","./m17aaUwq.js","./CufHLc7y.js","./CYsAdtH9.js","./fuZLfV_i.js","./DWrx1Km3.js","./CzTSHFRz.js","./CXZktZb0.js","./Br6cN0cg.js","./W9tJ9s81.js","./Dspwwk_N.js","./DMwsHuHA.js","./CQ8jqdy-.js","./mjskCLCv.js","./83L43bj1.js","./B1dDrJ26.js","./TsXTqZ29.js","./Dph4kLrZ.js","./DhmSosst.js","./BzTr9Aqm.js","./DJjDtW9f.js","./BLmx8bSh.js","./BVQ-GDCI.js","./DsumFeuD.js","./COcwbKMJ.js","./DQwYQDb2.js","./D1j8_8rp.js","./CG8Ifv2g.js","./BqTXFGrv.js","./D3lLCCz7.js","./Cq5zzVJU.js","./Dzze3sRP.js","./BRZ36xJF.js","./BsS91CYL.js","./DM8c43g1.js","./BH7IYjvW.js","./DYoxhk2S.js","./CZhp0h8q.js","./CxLEBnE3.js","./Cm3UrAx6.js","./RNghxpo_.js","./DEthMvLe.js","./DqQDbK_p.js","./CW8IKDeL.js","./BEDo0Tqx.js","./yv6CvBhz.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as _l}from"./X6fIXIFO.js";import{u as Ts,a as As,f as Ss,c as Ft,E as yl,b as vl,d as vi,g as bl,w as kl,e as Ce,P as Rs,V as wl,D as xl,h as Ls,i as rr,T as El,B as Nt,C as cn,A as yo,j as Tl,R as Hr,L as Gr,K as Al,S as Sl,k as Rl,l as Ll,m as Cl,n as Pl,o as Ol,p as Il,q as Dl,r as Nl,s as Ml,t as $l,v as vo}from"./DhQtydpF.js";import{c as se,r as Vl,t as Bl,d as zl,e as Fl,f as bi,P as nt,g as jl,h as Cs,i as bo,j as Ve,B as at,k as jt,b as Ps,F as Os,u as ql,a as Hl}from"./D0zW6lUK.js";import{v as Ur,q as j,x as dt,s as $,g as U,y as ir,o as w,z as K,w as M,b as R,l as m,A as ne,B as Is,C as Gl,D as Ds,c as A,E as Pe,k as Te,G as Ul,H as Wl,I as Ot,J as Ns,K as un,L as Kl,M as Xl,n as Y,N as Yl,p as Ms,O as gn,P as _n,d as re,t as G,Q as kt,R as Ql,a as T,_ as p,S as ue,F as ve,r as He,T as Ln,U as Jl,V as Zl,W as ec,X as tc,m as ko,i as nc}from"./BRDbaJqY.js";import{_ as $s}from"./DlAUqK2U.js";import{A as wo}from"./BqmZq_gb.js";const rc=se("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);const ic=se("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const Vs=se("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const Wr=se("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const oc=se("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);const sc=se("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const an=se("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const ac=se("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const lc=se("diff",[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]]);const xo=se("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const cc=se("file-code",[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);const uc=se("file-diff",[["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",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);const dc=se("file-exclamation-point",[["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",key:"1oefj6"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const pc=se("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]]);const mc=se("file-plus",[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);const fc=se("file-x",[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]);const hc=se("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);const gc=se("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);const _c=se("link-2-off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);const yc=se("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);const vc=se("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const bc=se("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]);const Kr=se("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);const kc=se("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const wc=se("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Xr=se("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const xc=se("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Ec(t,e){const n=Vl(!1,300);Bl(()=>{n.value=!1});const r=j(null),i=zl();function o(){r.value=null,n.value=!1}function s(l,a){const c=l.currentTarget,u={x:l.clientX,y:l.clientY},d=Tc(u,c.getBoundingClientRect()),h=Ac(u,d,1),f=Sc(a.getBoundingClientRect()),g=Lc([...h,...f]);r.value=g,n.value=!0}return Ur(l=>{if(t.value&&e.value){const a=u=>s(u,e.value),c=u=>s(u,t.value);t.value.addEventListener("pointerleave",a),e.value.addEventListener("pointerleave",c),l(()=>{t.value?.removeEventListener("pointerleave",a),e.value?.removeEventListener("pointerleave",c)})}}),Ur(l=>{if(r.value){const a=c=>{if(!r.value||!(c.target instanceof Element))return;const u=c.target,d={x:c.clientX,y:c.clientY},h=t.value?.contains(u)||e.value?.contains(u),f=!Rc(d,r.value),g=!!u.closest("[data-grace-area-trigger]");h?o():(f||g)&&(o(),i.trigger())};t.value?.ownerDocument.addEventListener("pointermove",a),l(()=>t.value?.ownerDocument.removeEventListener("pointermove",a))}}),{isPointerInTransit:n,onPointerExit:i.on}}function Tc(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ac(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function Sc(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}function Rc(t,e){const{x:n,y:r}=t;let i=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const l=e[o].x,a=e[o].y,c=e[s].x,u=e[s].y;a>r!=u>r&&n<(c-l)*(r-a)/(u-a)+l&&(i=!i)}return i}function Lc(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Cc(e)}function Cc(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e.length>=2;){const o=e[e.length-1],s=e[e.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))e.pop();else break}e.push(i)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}function Pc(t){const e=j(),n=$(()=>e.value?.width??0),r=$(()=>e.value?.height??0);return dt(()=>{const i=Fl(t);if(i){e.value={width:i.offsetWidth,height:i.offsetHeight};const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let a,c;if("borderBoxSize"in l){const u=l.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=i.offsetWidth,c=i.offsetHeight;e.value={width:a,height:c}});return o.observe(i,{box:"border-box"}),()=>o.unobserve(i)}else e.value=void 0}),{width:n,height:r}}const[Oc,Ic]=Ft("RovingFocusGroup");var Dc=U({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(t,{expose:e,emit:n}){const r=t,i=n,{loop:o,orientation:s,dir:l}=ir(r),a=Ts(l),c=bi(r,"currentTabStopId",i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=j(!1),d=j(!1),h=j(0),{getItems:f,CollectionSlot:g}=As({isProvider:!0});function y(v){const k=!d.value;if(v.currentTarget&&v.target===v.currentTarget&&k&&!u.value){const b=new CustomEvent(yl,vl);if(v.currentTarget.dispatchEvent(b),i("entryFocus",b),!b.defaultPrevented){const E=f().map(B=>B.ref).filter(B=>B.dataset.disabled!==""),P=E.find(B=>B.getAttribute("data-active")===""),V=E.find(B=>B.getAttribute("data-highlighted")===""),q=E.find(B=>B.id===c.value),J=[P,V,q,...E].filter(Boolean);Ss(J,r.preventScrollOnEntryFocus)}}d.value=!1}function x(){setTimeout(()=>{d.value=!1},1)}return e({getItems:f}),Ic({loop:o,dir:a,orientation:s,currentTabStopId:c,onItemFocus:v=>{c.value=v},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{h.value++},onFocusableItemRemove:()=>{h.value--}}),(v,k)=>(w(),K(m(g),null,{default:M(()=>[R(m(nt),{tabindex:u.value||h.value===0?-1:0,"data-orientation":m(s),as:v.as,"as-child":v.asChild,dir:m(a),style:{outline:"none"},onMousedown:k[0]||(k[0]=b=>d.value=!0),onMouseup:x,onFocus:y,onBlur:k[1]||(k[1]=b=>u.value=!1)},{default:M(()=>[ne(v.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Nc=Dc,Mc=U({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(t){const e=t,n=Oc(),r=vi(),i=$(()=>e.tabStopId||r),o=$(()=>n.currentTabStopId.value===i.value),{getItems:s,CollectionItem:l}=As();dt(()=>{e.focusable&&n.onFocusableItemAdd()}),Is(()=>{e.focusable&&n.onFocusableItemRemove()});function a(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const u=bl(c,n.orientation.value,n.dir.value);if(u!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!e.allowShiftKey&&c.shiftKey)return;c.preventDefault();let d=[...s().map(h=>h.ref).filter(h=>h.dataset.disabled!=="")];if(u==="last")d.reverse();else if(u==="prev"||u==="next"){u==="prev"&&d.reverse();const h=d.indexOf(c.currentTarget);d=n.loop.value?kl(d,h+1):d.slice(h+1)}Gl(()=>Ss(d))}}return(c,u)=>(w(),K(m(l),null,{default:M(()=>[R(m(nt),{tabindex:o.value?0:-1,"data-orientation":m(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:u[0]||(u[0]=d=>{c.focusable?m(n).onItemFocus(i.value):d.preventDefault()}),onFocus:u[1]||(u[1]=d=>m(n).onItemFocus(i.value)),onKeydown:a},{default:M(()=>[ne(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),$c=Mc;const[Bs,Vc]=Ft("PopperRoot");var Bc=U({inheritAttrs:!1,__name:"PopperRoot",setup(t){const e=j();return Vc({anchor:e,onAnchorChange:n=>e.value=n}),(n,r)=>ne(n.$slots,"default")}}),zc=Bc,Fc=U({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{forwardRef:n,currentElement:r}=Ce(),i=Bs();return Ds(()=>{i.onAnchorChange(e.reference??r.value)}),(o,s)=>(w(),K(m(nt),{ref:m(n),as:o.as,"as-child":o.asChild},{default:M(()=>[ne(o.$slots,"default")]),_:3},8,["as","as-child"]))}}),jc=Fc;const qc={key:0,d:"M0 0L6 6L12 0"},Hc={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var Gc=U({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Ce(),(n,r)=>(w(),K(m(nt),Pe(e,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:M(()=>[ne(n.$slots,"default",{},()=>[n.rounded?(w(),A("path",Hc)):(w(),A("path",qc))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Uc=Gc;function Wc(t){return t!==null}function Kc(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,l=s?0:t.arrowWidth,a=s?0:t.arrowHeight,[c,u]=Yr(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+l/2,f=(i.arrow?.y??0)+a/2;let g="",y="";return c==="bottom"?(g=s?d:`${h}px`,y=`${-a}px`):c==="top"?(g=s?d:`${h}px`,y=`${r.floating.height+a}px`):c==="right"?(g=`${-a}px`,y=s?d:`${f}px`):c==="left"&&(g=`${r.floating.width+a}px`,y=s?d:`${f}px`),{data:{x:g,y}}}}}function Yr(t){const[e,n="center"]=t.split("-");return[e,n]}const Xc=["top","right","bottom","left"],pt=Math.min,Me=Math.max,Fn=Math.round,Cn=Math.floor,et=t=>({x:t,y:t}),Yc={left:"right",right:"left",bottom:"top",top:"bottom"},Qc={start:"end",end:"start"};function Qr(t,e,n){return Me(t,pt(e,n))}function lt(t,e){return typeof t=="function"?t(e):t}function ct(t){return t.split("-")[0]}function qt(t){return t.split("-")[1]}function ki(t){return t==="x"?"y":"x"}function wi(t){return t==="y"?"height":"width"}const Jc=new Set(["top","bottom"]);function Ze(t){return Jc.has(ct(t))?"y":"x"}function xi(t){return ki(Ze(t))}function Zc(t,e,n){n===void 0&&(n=!1);const r=qt(t),i=xi(t),o=wi(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=jn(s)),[s,jn(s)]}function eu(t){const e=jn(t);return[Jr(t),e,Jr(e)]}function Jr(t){return t.replace(/start|end/g,e=>Qc[e])}const Eo=["left","right"],To=["right","left"],tu=["top","bottom"],nu=["bottom","top"];function ru(t,e,n){switch(t){case"top":case"bottom":return n?e?To:Eo:e?Eo:To;case"left":case"right":return e?tu:nu;default:return[]}}function iu(t,e,n,r){const i=qt(t);let o=ru(ct(t),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(Jr)))),o}function jn(t){return t.replace(/left|right|bottom|top/g,e=>Yc[e])}function ou(t){return{top:0,right:0,bottom:0,left:0,...t}}function zs(t){return typeof t!="number"?ou(t):{top:t,right:t,bottom:t,left:t}}function qn(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Ao(t,e,n){let{reference:r,floating:i}=t;const o=Ze(e),s=xi(e),l=wi(s),a=ct(e),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[l]/2-i[l]/2;let f;switch(a){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(qt(e)){case"start":f[s]-=h*(n&&c?-1:1);break;case"end":f[s]+=h*(n&&c?-1:1);break}return f}async function su(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:o,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=lt(e,t),g=zs(f),x=l[h?d==="floating"?"reference":"floating":d],v=qn(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),k=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),E=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},P=qn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:b,strategy:a}):k);return{top:(v.top-P.top+g.top)/E.y,bottom:(P.bottom-v.bottom+g.bottom)/E.y,left:(v.left-P.left+g.left)/E.x,right:(P.right-v.right+g.right)/E.x}}const au=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=Ao(c,r,a),h=r,f={},g=0;for(let x=0;x<l.length;x++){var y;const{name:v,fn:k}=l[x],{x:b,y:E,data:P,reset:V}=await k({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:c,platform:{...s,detectOverflow:(y=s.detectOverflow)!=null?y:su},elements:{reference:t,floating:e}});u=b??u,d=E??d,f={...f,[v]:{...f[v],...P}},V&&g<=50&&(g++,typeof V=="object"&&(V.placement&&(h=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y:d}=Ao(c,h,a)),x=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}},lu=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=lt(t,e)||{};if(c==null)return{};const d=zs(u),h={x:n,y:r},f=xi(i),g=wi(f),y=await s.getDimensions(c),x=f==="y",v=x?"top":"left",k=x?"bottom":"right",b=x?"clientHeight":"clientWidth",E=o.reference[g]+o.reference[f]-h[f]-o.floating[g],P=h[f]-o.reference[f],V=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let q=V?V[b]:0;(!q||!await(s.isElement==null?void 0:s.isElement(V)))&&(q=l.floating[b]||o.floating[g]);const J=E/2-P/2,B=q/2-y[g]/2-1,S=pt(d[v],B),O=pt(d[k],B),N=S,D=q-y[g]-O,I=q/2-y[g]/2+J,z=Qr(N,I,D),W=!a.arrow&&qt(i)!=null&&I!==z&&o.reference[g]/2-(I<N?S:O)-y[g]/2<0,ee=W?I<N?I-N:I-D:0;return{[f]:h[f]+ee,data:{[f]:z,centerOffset:I-z-ee,...W&&{alignmentOffset:ee}},reset:W}}}),cu=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=lt(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=ct(i),k=Ze(l),b=ct(l)===l,E=await(a.isRTL==null?void 0:a.isRTL(c.floating)),P=h||(b||!y?[jn(l)]:eu(l)),V=g!=="none";!h&&V&&P.push(...iu(l,y,g,E));const q=[l,...P],J=await a.detectOverflow(e,x),B=[];let S=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&B.push(J[v]),d){const I=Zc(i,s,E);B.push(J[I[0]],J[I[1]])}if(S=[...S,{placement:i,overflows:B}],!B.every(I=>I<=0)){var O,N;const I=(((O=o.flip)==null?void 0:O.index)||0)+1,z=q[I];if(z&&(!(d==="alignment"?k!==Ze(z):!1)||S.every(Z=>Ze(Z.placement)===k?Z.overflows[0]>0:!0)))return{data:{index:I,overflows:S},reset:{placement:z}};let W=(N=S.filter(ee=>ee.overflows[0]<=0).sort((ee,Z)=>ee.overflows[1]-Z.overflows[1])[0])==null?void 0:N.placement;if(!W)switch(f){case"bestFit":{var D;const ee=(D=S.filter(Z=>{if(V){const oe=Ze(Z.placement);return oe===k||oe==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(oe=>oe>0).reduce((oe,Oe)=>oe+Oe,0)]).sort((Z,oe)=>Z[1]-oe[1])[0])==null?void 0:D[0];ee&&(W=ee);break}case"initialPlacement":W=l;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function So(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ro(t){return Xc.some(e=>t[e]>=0)}const uu=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:i="referenceHidden",...o}=lt(t,e);switch(i){case"referenceHidden":{const s=await r.detectOverflow(e,{...o,elementContext:"reference"}),l=So(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ro(l)}}}case"escaped":{const s=await r.detectOverflow(e,{...o,altBoundary:!0}),l=So(s,n.floating);return{data:{escapedOffsets:l,escaped:Ro(l)}}}default:return{}}}}},Fs=new Set(["left","top"]);async function du(t,e){const{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ct(n),l=qt(n),a=Ze(n)==="y",c=Fs.has(s)?-1:1,u=o&&a?-1:1,d=lt(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof g=="number"&&(f=l==="end"?g*-1:g),a?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const pu=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=e,a=await du(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},mu=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:k,y:b}=v;return{x:k,y:b}}},...c}=lt(t,e),u={x:n,y:r},d=await o.detectOverflow(e,c),h=Ze(ct(i)),f=ki(h);let g=u[f],y=u[h];if(s){const v=f==="y"?"top":"left",k=f==="y"?"bottom":"right",b=g+d[v],E=g-d[k];g=Qr(b,g,E)}if(l){const v=h==="y"?"top":"left",k=h==="y"?"bottom":"right",b=y+d[v],E=y-d[k];y=Qr(b,y,E)}const x=a.fn({...e,[f]:g,[h]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[f]:s,[h]:l}}}}}},fu=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=e,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=lt(t,e),u={x:n,y:r},d=Ze(i),h=ki(d);let f=u[h],g=u[d];const y=lt(l,e),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const b=h==="y"?"height":"width",E=o.reference[h]-o.floating[b]+x.mainAxis,P=o.reference[h]+o.reference[b]-x.mainAxis;f<E?f=E:f>P&&(f=P)}if(c){var v,k;const b=h==="y"?"width":"height",E=Fs.has(ct(i)),P=o.reference[d]-o.floating[b]+(E&&((v=s.offset)==null?void 0:v[d])||0)+(E?0:x.crossAxis),V=o.reference[d]+o.reference[b]+(E?0:((k=s.offset)==null?void 0:k[d])||0)-(E?x.crossAxis:0);g<P?g=P:g>V&&(g=V)}return{[h]:f,[d]:g}}}},hu=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:o,platform:s,elements:l}=e,{apply:a=()=>{},...c}=lt(t,e),u=await s.detectOverflow(e,c),d=ct(i),h=qt(i),f=Ze(i)==="y",{width:g,height:y}=o.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(v=d,x=h==="end"?"top":"bottom");const k=y-u.top-u.bottom,b=g-u.left-u.right,E=pt(y-u[x],k),P=pt(g-u[v],b),V=!e.middlewareData.shift;let q=E,J=P;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(J=b),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(q=k),V&&!h){const S=Me(u.left,0),O=Me(u.right,0),N=Me(u.top,0),D=Me(u.bottom,0);f?J=g-2*(S!==0||O!==0?S+O:Me(u.left,u.right)):q=y-2*(N!==0||D!==0?N+D:Me(u.top,u.bottom))}await a({...e,availableWidth:J,availableHeight:q});const B=await s.getDimensions(l.floating);return g!==B.width||y!==B.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function wt(t){return Ei(t)?(t.nodeName||"").toLowerCase():"#document"}function $e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function rt(t){var e;return(e=(Ei(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ei(t){return or()?t instanceof Node||t instanceof $e(t).Node:!1}function Ge(t){return or()?t instanceof Element||t instanceof $e(t).Element:!1}function tt(t){return or()?t instanceof HTMLElement||t instanceof $e(t).HTMLElement:!1}function Lo(t){return!or()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $e(t).ShadowRoot}const gu=new Set(["inline","contents"]);function yn(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!gu.has(i)}const _u=new Set(["table","td","th"]);function yu(t){return _u.has(wt(t))}const vu=[":popover-open",":modal"];function sr(t){return vu.some(e=>{try{return t.matches(e)}catch{return!1}})}const bu=["transform","translate","scale","rotate","perspective"],ku=["transform","translate","scale","rotate","perspective","filter"],wu=["paint","layout","strict","content"];function Ti(t){const e=Ai(),n=Ge(t)?Ue(t):t;return bu.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ku.some(r=>(n.willChange||"").includes(r))||wu.some(r=>(n.contain||"").includes(r))}function xu(t){let e=mt(t);for(;tt(e)&&!Bt(e);){if(Ti(e))return e;if(sr(e))return null;e=mt(e)}return null}function Ai(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Eu=new Set(["html","body","#document"]);function Bt(t){return Eu.has(wt(t))}function Ue(t){return $e(t).getComputedStyle(t)}function ar(t){return Ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if(wt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Lo(t)&&t.host||rt(t);return Lo(e)?e.host:e}function js(t){const e=mt(t);return Bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&yn(e)?e:js(e)}function dn(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=js(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),s=$e(i);if(o){const l=Zr(s);return e.concat(s,s.visualViewport||[],yn(i)?i:[],l&&n?dn(l):[])}return e.concat(i,dn(i,[],n))}function Zr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qs(t){const e=Ue(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=tt(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,l=Fn(n)!==o||Fn(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function Si(t){return Ge(t)?t:t.contextElement}function Mt(t){const e=Si(t);if(!tt(e))return et(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=qs(e);let s=(o?Fn(n.width):n.width)/r,l=(o?Fn(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Tu=et(0);function Hs(t){const e=$e(t);return!Ai()||!e.visualViewport?Tu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Au(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==$e(t)?!1:e}function vt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=Si(t);let s=et(1);e&&(r?Ge(r)&&(s=Mt(r)):s=Mt(t));const l=Au(o,n,r)?Hs(o):et(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const h=$e(o),f=r&&Ge(r)?$e(r):r;let g=h,y=Zr(g);for(;y&&r&&f!==g;){const x=Mt(y),v=y.getBoundingClientRect(),k=Ue(y),b=v.left+(y.clientLeft+parseFloat(k.paddingLeft))*x.x,E=v.top+(y.clientTop+parseFloat(k.paddingTop))*x.y;a*=x.x,c*=x.y,u*=x.x,d*=x.y,a+=b,c+=E,g=$e(y),y=Zr(g)}}return qn({width:u,height:d,x:a,y:c})}function lr(t,e){const n=ar(t).scrollLeft;return e?e.left+n:vt(rt(t)).left+n}function Gs(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-lr(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function Su(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o=i==="fixed",s=rt(r),l=e?sr(e.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=et(1);const u=et(0),d=tt(r);if((d||!d&&!o)&&((wt(r)!=="body"||yn(s))&&(a=ar(r)),tt(r))){const f=vt(r);c=Mt(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const h=s&&!d&&!o?Gs(s,a):et(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}}function Ru(t){return Array.from(t.getClientRects())}function Lu(t){const e=rt(t),n=ar(t),r=t.ownerDocument.body,i=Me(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Me(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+lr(t);const l=-n.scrollTop;return Ue(r).direction==="rtl"&&(s+=Me(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}const Co=25;function Cu(t,e){const n=$e(t),r=rt(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=Ai();(!u||u&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}const c=lr(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Co&&(o-=g)}else c<=Co&&(o+=c);return{width:o,height:s,x:l,y:a}}const Pu=new Set(["absolute","fixed"]);function Ou(t,e){const n=vt(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=tt(t)?Mt(t):et(1),s=t.clientWidth*o.x,l=t.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function Po(t,e,n){let r;if(e==="viewport")r=Cu(t,n);else if(e==="document")r=Lu(rt(t));else if(Ge(e))r=Ou(e,n);else{const i=Hs(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return qn(r)}function Us(t,e){const n=mt(t);return n===e||!Ge(n)||Bt(n)?!1:Ue(n).position==="fixed"||Us(n,e)}function Iu(t,e){const n=e.get(t);if(n)return n;let r=dn(t,[],!1).filter(l=>Ge(l)&&wt(l)!=="body"),i=null;const o=Ue(t).position==="fixed";let s=o?mt(t):t;for(;Ge(s)&&!Bt(s);){const l=Ue(s),a=Ti(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&Pu.has(i.position)||yn(s)&&!a&&Us(t,s))?r=r.filter(u=>u!==s):i=l,s=mt(s)}return e.set(t,r),r}function Du(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?sr(e)?[]:Iu(e,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,u)=>{const d=Po(e,u,i);return c.top=Me(d.top,c.top),c.right=pt(d.right,c.right),c.bottom=pt(d.bottom,c.bottom),c.left=Me(d.left,c.left),c},Po(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Nu(t){const{width:e,height:n}=qs(t);return{width:e,height:n}}function Mu(t,e,n){const r=tt(e),i=rt(e),o=n==="fixed",s=vt(t,!0,o,e);let l={scrollLeft:0,scrollTop:0};const a=et(0);function c(){a.x=lr(i)}if(r||!r&&!o)if((wt(e)!=="body"||yn(i))&&(l=ar(e)),r){const f=vt(e,!0,o,e);a.x=f.x+e.clientLeft,a.y=f.y+e.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?Gs(i,l):et(0),d=s.left+l.scrollLeft-a.x-u.x,h=s.top+l.scrollTop-a.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function Lr(t){return Ue(t).position==="static"}function Oo(t,e){if(!tt(t)||Ue(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return rt(t)===n&&(n=n.ownerDocument.body),n}function Ws(t,e){const n=$e(t);if(sr(t))return n;if(!tt(t)){let i=mt(t);for(;i&&!Bt(i);){if(Ge(i)&&!Lr(i))return i;i=mt(i)}return n}let r=Oo(t,e);for(;r&&yu(r)&&Lr(r);)r=Oo(r,e);return r&&Bt(r)&&Lr(r)&&!Ti(r)?n:r||xu(t)||n}const $u=async function(t){const e=this.getOffsetParent||Ws,n=this.getDimensions,r=await n(t.floating);return{reference:Mu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vu(t){return Ue(t).direction==="rtl"}const Bu={convertOffsetParentRelativeRectToViewportRelativeRect:Su,getDocumentElement:rt,getClippingRect:Du,getOffsetParent:Ws,getElementRects:$u,getClientRects:Ru,getDimensions:Nu,getScale:Mt,isElement:Ge,isRTL:Vu};function Ks(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function zu(t,e){let n=null,r;const i=rt(t);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const c=t.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(l||e(),!h||!f)return;const g=Cn(d),y=Cn(i.clientWidth-(u+h)),x=Cn(i.clientHeight-(d+f)),v=Cn(u),b={rootMargin:-g+"px "+-y+"px "+-x+"px "+-v+"px",threshold:Me(0,pt(1,a))||1};let E=!0;function P(V){const q=V[0].intersectionRatio;if(q!==a){if(!E)return s();q?s(!1,q):r=setTimeout(()=>{s(!1,1e-7)},1e3)}q===1&&!Ks(c,t.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(P,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,b)}n.observe(t)}return s(!0),o}function Fu(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=Si(t),u=i||o?[...c?dn(c):[],...dn(e)]:[];u.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=c&&l?zu(c,n):null;let h=-1,f=null;s&&(f=new ResizeObserver(v=>{let[k]=v;k&&k.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(e)})),n()}),c&&!a&&f.observe(c),f.observe(e));let g,y=a?vt(t):null;a&&x();function x(){const v=vt(t);y&&!Ks(y,v)&&n(),y=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(k=>{i&&k.removeEventListener("scroll",n),o&&k.removeEventListener("resize",n)}),d?.(),(v=f)==null||v.disconnect(),f=null,a&&cancelAnimationFrame(g)}}const ju=pu,qu=mu,Io=cu,Hu=hu,Gu=uu,Uu=lu,Wu=fu,Ku=(t,e,n)=>{const r=new Map,i={platform:Bu,...n},o={...i.platform,_c:r};return au(t,e,{...i,platform:o})};function Xu(t){return t!=null&&typeof t=="object"&&"$el"in t}function ei(t){if(Xu(t)){const e=t.$el;return Ei(e)&&wt(e)==="#comment"?null:e}return t}function It(t){return typeof t=="function"?t():m(t)}function Yu(t){return{name:"arrow",options:t,fn(e){const n=ei(It(t.element));return n==null?{}:Uu({element:n,padding:t.padding}).fn(e)}}}function Xs(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Do(t,e){const n=Xs(t);return Math.round(e*n)/n}function Qu(t,e,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=$(()=>{var q;return(q=It(n.open))!=null?q:!0}),o=$(()=>It(n.middleware)),s=$(()=>{var q;return(q=It(n.placement))!=null?q:"bottom"}),l=$(()=>{var q;return(q=It(n.strategy))!=null?q:"absolute"}),a=$(()=>{var q;return(q=It(n.transform))!=null?q:!0}),c=$(()=>ei(t.value)),u=$(()=>ei(e.value)),d=j(0),h=j(0),f=j(l.value),g=j(s.value),y=Ns({}),x=j(!1),v=$(()=>{const q={position:f.value,left:"0",top:"0"};if(!u.value)return q;const J=Do(u.value,d.value),B=Do(u.value,h.value);return a.value?{...q,transform:"translate("+J+"px, "+B+"px)",...Xs(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:J+"px",top:B+"px"}});let k;function b(){if(c.value==null||u.value==null)return;const q=i.value;Ku(c.value,u.value,{middleware:o.value,placement:s.value,strategy:l.value}).then(J=>{d.value=J.x,h.value=J.y,f.value=J.strategy,g.value=J.placement,y.value=J.middlewareData,x.value=q!==!1})}function E(){typeof k=="function"&&(k(),k=void 0)}function P(){if(E(),r===void 0){b();return}if(c.value!=null&&u.value!=null){k=r(c.value,u.value,b);return}}function V(){i.value||(x.value=!1)}return Te([o,s,l,i],b,{flush:"sync"}),Te([c,u],P,{flush:"sync"}),Te(i,V,{flush:"sync"}),Ul()&&Wl(E),{x:Ot(d),y:Ot(h),strategy:Ot(f),placement:Ot(g),middlewareData:Ot(y),isPositioned:Ot(x),floatingStyles:v,update:b}}const Ju={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Zu,ed]=Ft("PopperContent");var td=U({inheritAttrs:!1,__name:"PopperContent",props:Kl({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Ju}),emits:["placed"],setup(t,{emit:e}){const n=t,r=e,i=Bs(),{forwardRef:o,currentElement:s}=Ce(),l=j(),a=j(),{width:c,height:u}=Pc(a),d=$(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),h=$(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=$(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),g=$(()=>({padding:h.value,boundary:f.value.filter(Wc),altBoundary:f.value.length>0})),y=$(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),x=jl(()=>[ju({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Io({...g.value,...y.value}),n.avoidCollisions&&qu({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Wu():void 0,...g.value}),!n.prioritizePosition&&n.avoidCollisions&&Io({...g.value,...y.value}),Hu({...g.value,apply:({elements:N,rects:D,availableWidth:I,availableHeight:z})=>{const{width:W,height:ee}=D.reference,Z=N.floating.style;Z.setProperty("--reka-popper-available-width",`${I}px`),Z.setProperty("--reka-popper-available-height",`${z}px`),Z.setProperty("--reka-popper-anchor-width",`${W}px`),Z.setProperty("--reka-popper-anchor-height",`${ee}px`)}}),a.value&&Yu({element:a.value,padding:n.arrowPadding}),Kc({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&Gu({strategy:"referenceHidden",...g.value})]),v=$(()=>n.reference??i.anchor.value),{floatingStyles:k,placement:b,isPositioned:E,middlewareData:P}=Qu(v,l,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...N)=>Fu(...N,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:x}),V=$(()=>Yr(b.value)[0]),q=$(()=>Yr(b.value)[1]);Ds(()=>{E.value&&r("placed")});const J=$(()=>{const N=P.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&N}),B=j("");Ur(()=>{s.value&&(B.value=window.getComputedStyle(s.value).zIndex)});const S=$(()=>P.value.arrow?.x??0),O=$(()=>P.value.arrow?.y??0);return ed({placedSide:V,onArrowChange:N=>a.value=N,arrowX:S,arrowY:O,shouldHideArrow:J}),(N,D)=>(w(),A("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:un({...m(k),transform:m(E)?m(k).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B.value,"--reka-popper-transform-origin":[m(P).transformOrigin?.x,m(P).transformOrigin?.y].join(" "),...m(P).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[R(m(nt),Pe({ref:m(o)},N.$attrs,{"as-child":n.asChild,as:N.as,"data-side":V.value,"data-align":q.value,style:{animation:m(E)?void 0:"none"}}),{default:M(()=>[ne(N.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),nd=td;const rd={top:"bottom",right:"left",bottom:"top",left:"right"};var id=U({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const{forwardRef:e}=Ce(),n=Zu(),r=$(()=>rd[n.placedSide.value]);return(i,o)=>(w(),A("span",{ref:s=>{m(n).onArrowChange(s)},style:un({position:"absolute",left:m(n).arrowX?.value?`${m(n).arrowX?.value}px`:void 0,top:m(n).arrowY?.value?`${m(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[m(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[m(n).placedSide.value],visibility:m(n).shouldHideArrow.value?"hidden":void 0})},[R(Uc,Pe(i.$attrs,{ref:m(e),style:{display:"block"},as:i.as,"as-child":i.asChild,rounded:i.rounded,width:i.width,height:i.height}),{default:M(()=>[ne(i.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),od=id;const[Ri,sd]=Ft("TabsRoot");var ad=U({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,{orientation:i,unmountOnHide:o,dir:s}=ir(n),l=Ts(s);Ce();const a=bi(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=j(),u=Ns(new Set);return sd({modelValue:a,changeModelValue:d=>{a.value=d},orientation:i,dir:l,unmountOnHide:o,activationMode:n.activationMode,baseId:vi(void 0,"reka-tabs"),tabsList:c,contentIds:u,registerContent:d=>{u.value=new Set([...u.value,d])},unregisterContent:d=>{const h=new Set(u.value);h.delete(d),u.value=h}}),(d,h)=>(w(),K(m(nt),{dir:m(l),"data-orientation":m(i),"as-child":d.asChild,as:d.as},{default:M(()=>[ne(d.$slots,"default",{modelValue:m(a)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),ld=ad;function Ys(t,e){return`${t}-trigger-${e}`}function Qs(t,e){return`${t}-content-${e}`}var cd=U({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{forwardRef:n}=Ce(),r=Ri(),i=$(()=>Ys(r.baseId,e.value)),o=$(()=>Qs(r.baseId,e.value)),s=$(()=>e.value===r.modelValue.value),l=j(s.value);return dt(()=>{r.registerContent(e.value),requestAnimationFrame(()=>{l.value=!1})}),Xl(()=>{r.unregisterContent(e.value)}),(a,c)=>(w(),K(m(Rs),{present:a.forceMount||s.value,"force-mount":""},{default:M(({present:u})=>[R(m(nt),{id:o.value,ref:m(n),"as-child":a.asChild,as:a.as,role:"tabpanel","data-state":s.value?"active":"inactive","data-orientation":m(r).orientation.value,"aria-labelledby":i.value,hidden:!u,tabindex:"0",style:un({animationDuration:l.value?"0s":void 0})},{default:M(()=>[!m(r).unmountOnHide.value||u?ne(a.$slots,"default",{key:0}):Y("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),ud=cd,dd=U({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{loop:n}=ir(e),{forwardRef:r,currentElement:i}=Ce(),o=Ri();return o.tabsList=i,(s,l)=>(w(),K(m(Nc),{"as-child":"",orientation:m(o).orientation.value,dir:m(o).dir.value,loop:m(n)},{default:M(()=>[R(m(nt),{ref:m(r),role:"tablist","as-child":s.asChild,as:s.as,"aria-orientation":m(o).orientation.value},{default:M(()=>[ne(s.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),pd=dd,md=U({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const e=t,{forwardRef:n}=Ce(),r=Ri(),i=$(()=>Ys(r.baseId,e.value)),o=$(()=>r.contentIds.value.has(e.value)?Qs(r.baseId,e.value):void 0),s=$(()=>e.value===r.modelValue.value);return(l,a)=>(w(),K(m($c),{"as-child":"",focusable:!l.disabled,active:s.value},{default:M(()=>[R(m(nt),{id:i.value,ref:m(n),role:"tab",type:l.as==="button"?"button":void 0,as:l.as,"as-child":l.asChild,"aria-selected":s.value?"true":"false","aria-controls":o.value,"data-state":s.value?"active":"inactive",disabled:l.disabled,"data-disabled":l.disabled?"":void 0,"data-orientation":m(r).orientation.value,onMousedown:a[0]||(a[0]=Ms(c=>{!l.disabled&&c.ctrlKey===!1?m(r).changeModelValue(l.value):c.preventDefault()},["left"])),onKeydown:a[1]||(a[1]=Yl(c=>m(r).changeModelValue(l.value),["enter","space"])),onFocus:a[2]||(a[2]=()=>{const c=m(r).activationMode!=="manual";!s.value&&!l.disabled&&c&&m(r).changeModelValue(l.value)})},{default:M(()=>[ne(l.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),fd=md,hd=U({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Ce(),(n,r)=>(w(),K(m(od),gn(_n(e)),{default:M(()=>[ne(n.$slots,"default")]),_:3},16))}}),gd=hd;const[Li,_d]=Ft("TooltipProvider");var yd=U({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:i,disableClosingTrigger:o,ignoreNonKeyboardFocus:s,disabled:l}=ir(e);Ce();const a=j(!0),c=j(!1),{start:u,stop:d}=Cs(()=>{a.value=!0},r,{immediate:!1});return _d({isOpenDelayed:a,delayDuration:n,onOpen(){d(),a.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:i,disableClosingTrigger:o,disabled:l,ignoreNonKeyboardFocus:s}),(h,f)=>ne(h.$slots,"default")}}),vd=yd;const Js="tooltip.open",[cr,bd]=Ft("TooltipRoot");var kd=U({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(t,{emit:e}){const n=t,r=e;Ce();const i=Li(),o=$(()=>n.disableHoverableContent??i.disableHoverableContent.value),s=$(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),l=$(()=>n.disabled??i.disabled.value),a=$(()=>n.delayDuration??i.delayDuration.value),c=$(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=bi(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Te(u,b=>{i.onClose&&(b?(i.onOpen(),document.dispatchEvent(new CustomEvent(Js))):i.onClose())});const d=j(!1),h=j(),f=$(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:g,stop:y}=Cs(()=>{d.value=!0,u.value=!0},a,{immediate:!1});function x(){y(),d.value=!1,u.value=!0}function v(){y(),u.value=!1}function k(){g()}return bd({contentId:"",open:u,stateAttribute:f,trigger:h,onTriggerChange(b){h.value=b},onTriggerEnter(){i.isOpenDelayed.value?k():x()},onTriggerLeave(){o.value?v():y()},onOpen:x,onClose:v,disableHoverableContent:o,disableClosingTrigger:s,disabled:l,ignoreNonKeyboardFocus:c}),(b,E)=>(w(),K(m(zc),null,{default:M(()=>[ne(b.$slots,"default",{open:m(u)})]),_:3}))}}),wd=kd,xd=U({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:"center"},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,r=e,i=cr(),{forwardRef:o,currentElement:s}=Ce(),l=$(()=>n.ariaLabel||s.value?.textContent),a=$(()=>{const{ariaLabel:c,...u}=n;return u});return dt(()=>{bo(window,"scroll",c=>{c.target?.contains(i.trigger.value)&&i.onClose()}),bo(window,Js,i.onClose)}),(c,u)=>(w(),K(m(xl),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:u[0]||(u[0]=d=>r("escapeKeyDown",d)),onPointerDownOutside:u[1]||(u[1]=d=>{m(i).disableClosingTrigger.value&&m(i).trigger.value?.contains(d.target)&&d.preventDefault(),r("pointerDownOutside",d)}),onFocusOutside:u[2]||(u[2]=Ms(()=>{},["prevent"])),onDismiss:u[3]||(u[3]=d=>m(i).onClose())},{default:M(()=>[R(m(nd),Pe({ref:m(o),"data-state":m(i).stateAttribute.value},{...c.$attrs,...a.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:M(()=>[ne(c.$slots,"default"),R(m(wl),{id:m(i).contentId,role:"tooltip"},{default:M(()=>[re(G(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Zs=xd,Ed=U({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(t){const n=Ls(t),{forwardRef:r,currentElement:i}=Ce(),{trigger:o,onClose:s}=cr(),l=Li(),{isPointerInTransit:a,onPointerExit:c}=Ec(o,i);return l.isPointerInTransitRef=a,c(()=>{s()}),(u,d)=>(w(),K(Zs,Pe({ref:m(r)},m(n)),{default:M(()=>[ne(u.$slots,"default")]),_:3},16))}}),Td=Ed,Ad=U({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,r=e,i=cr(),o=rr(n,r),{forwardRef:s}=Ce();return(l,a)=>(w(),K(m(Rs),{present:l.forceMount||m(i).open.value},{default:M(()=>[(w(),K(kt(m(i).disableHoverableContent.value?Zs:Td),Pe({ref:m(s)},m(o)),{default:M(()=>[ne(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Sd=Ad,Rd=U({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const e=t;return(n,r)=>(w(),K(m(El),gn(_n(e)),{default:M(()=>[ne(n.$slots,"default")]),_:3},16))}}),Ld=Rd,Cd=U({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const e=t,n=cr(),r=Li();n.contentId||=vi(void 0,"reka-tooltip-content");const{forwardRef:i,currentElement:o}=Ce(),s=j(!1),l=j(!1),a=$(()=>n.disabled.value?{}:{click:y,focus:f,pointermove:d,pointerleave:h,pointerdown:u,blur:g});dt(()=>{n.onTriggerChange(o.value)});function c(){setTimeout(()=>{s.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(x){x.pointerType!=="touch"&&!l.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),l.value=!0)}function h(){n.onTriggerLeave(),l.value=!1}function f(x){s.value||n.ignoreNonKeyboardFocus.value&&!x.target.matches?.(":focus-visible")||n.onOpen()}function g(){n.onClose()}function y(){n.disableClosingTrigger.value||n.onClose()}return(x,v)=>(w(),K(m(jc),{"as-child":"",reference:x.reference},{default:M(()=>[R(m(nt),Pe({ref:m(i),"aria-describedby":m(n).open.value?m(n).contentId:void 0,"data-state":m(n).stateAttribute.value,as:x.as,"as-child":e.asChild,"data-grace-area-trigger":""},Ql(a.value)),{default:M(()=>[ne(x.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Pd=Cd;const Od={key:0,class:"flex flex-wrap items-center gap-3 text-sm"},Id={key:0,class:"flex items-center gap-1.5 text-muted-foreground"},Dd={key:1,class:"flex items-center gap-1.5 text-muted-foreground"},Nd=["href"],Md={key:4,class:"flex items-center gap-1.5 text-muted-foreground"},$d=U({__name:"Meta",props:{metadata:{}},setup(t){const e=t,n=$(()=>{const i=e.metadata.status?.toLowerCase();return i?i.includes("complete")||i.includes("done")||i.includes("progress")||i.includes("active")?"default":i.includes("draft")?"secondary":i.includes("blocked")||i.includes("paused")?"destructive":"secondary":"secondary"}),r=$(()=>e.metadata.author||e.metadata.date||e.metadata.status||e.metadata.shortcutStory);return(i,o)=>m(r)?(w(),A("div",Od,[t.metadata.author?(w(),A("div",Id,[R(m(xc),{class:"size-3.5"}),T("span",null,G(t.metadata.author),1)])):Y("",!0),t.metadata.date?(w(),A("div",Dd,[R(m(Vs),{class:"size-3.5"}),T("span",null,G(t.metadata.date),1)])):Y("",!0),t.metadata.status?(w(),K(m(Nt),{key:2,variant:m(n),class:"gap-1"},{default:M(()=>[R(m(oc),{class:"size-3"}),re(" "+G(t.metadata.status),1)]),_:1},8,["variant"])):Y("",!0),t.metadata.shortcutStory&&t.metadata.shortcutUrl?(w(),A("a",{key:3,href:t.metadata.shortcutUrl,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1.5 text-primary hover:underline"},[R(m(xo),{class:"size-3.5"}),T("span",null,G(t.metadata.shortcutStory),1)],8,Nd)):t.metadata.shortcutStory?(w(),A("span",Md,[R(m(xo),{class:"size-3.5"}),T("span",null,G(t.metadata.shortcutStory),1)])):Y("",!0)])):Y("",!0)}}),Vd=Object.assign($d,{__name:"PrdMeta"});function Ci(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xt=Ci();function ea(t){xt=t}var _t={exec:()=>null};function te(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Se.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var Bd=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Se={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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},zd=/^(?:[ \t]*(?:\n|$))+/,Fd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ta=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,na=te(ta).replace(/bull/g,Pi).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(),Hd=te(ta).replace(/bull/g,Pi).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(),Oi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gd=/^[^\n]+/,Ii=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ud=te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ii).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Wd=te(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pi).getRegex(),ur="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",Di=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Kd=te("^ {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",Di).replace("tag",ur).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ra=te(Oi).replace("hr",vn).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",ur).getRegex(),Xd=te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ra).getRegex(),Ni={blockquote:Xd,code:Fd,def:Ud,fences:jd,heading:qd,hr:vn,html:Kd,lheading:na,list:Wd,newline:zd,paragraph:ra,table:_t,text:Gd},No=te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vn).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",ur).getRegex(),Yd={...Ni,lheading:Hd,table:No,paragraph:te(Oi).replace("hr",vn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",No).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",ur).getRegex()},Qd={...Ni,html:te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Di).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:_t,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:te(Oi).replace("hr",vn).replace("heading",` *#{1,6} *[^
|
|
2
|
+
import{_ as _l}from"./vr7VLA9A.js";import{u as Ts,a as As,f as Ss,c as Ft,E as yl,b as vl,d as vi,g as bl,w as kl,e as Ce,P as Rs,V as wl,D as xl,h as Ls,i as rr,T as El,B as Nt,C as cn,A as yo,j as Tl,R as Hr,L as Gr,K as Al,S as Sl,k as Rl,l as Ll,m as Cl,n as Pl,o as Ol,p as Il,q as Dl,r as Nl,s as Ml,t as $l,v as vo}from"./C8LtDyY4.js";import{c as se,r as Vl,t as Bl,d as zl,e as Fl,f as bi,P as nt,g as jl,h as Cs,i as bo,j as Ve,B as at,k as jt,b as Ps,F as Os,u as ql,a as Hl}from"./CQgu_W_k.js";import{v as Ur,q as j,x as dt,s as $,g as U,y as ir,o as w,z as K,w as M,b as R,l as m,A as ne,B as Is,C as Gl,D as Ds,c as A,E as Pe,k as Te,G as Ul,H as Wl,I as Ot,J as Ns,K as un,L as Kl,M as Xl,n as Y,N as Yl,p as Ms,O as gn,P as _n,d as re,t as G,Q as kt,R as Ql,a as T,_ as p,S as ue,F as ve,r as He,T as Ln,U as Jl,V as Zl,W as ec,X as tc,m as ko,i as nc}from"./CZKCADv6.js";import{_ as $s}from"./DlAUqK2U.js";import{A as wo}from"./DOvbLsAq.js";const rc=se("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);const ic=se("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const Vs=se("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const Wr=se("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const oc=se("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);const sc=se("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const an=se("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const ac=se("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const lc=se("diff",[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]]);const xo=se("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const cc=se("file-code",[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);const uc=se("file-diff",[["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",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);const dc=se("file-exclamation-point",[["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",key:"1oefj6"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const pc=se("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]]);const mc=se("file-plus",[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);const fc=se("file-x",[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]);const hc=se("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);const gc=se("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);const _c=se("link-2-off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);const yc=se("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);const vc=se("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const bc=se("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]);const Kr=se("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);const kc=se("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const wc=se("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Xr=se("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const xc=se("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Ec(t,e){const n=Vl(!1,300);Bl(()=>{n.value=!1});const r=j(null),i=zl();function o(){r.value=null,n.value=!1}function s(l,a){const c=l.currentTarget,u={x:l.clientX,y:l.clientY},d=Tc(u,c.getBoundingClientRect()),h=Ac(u,d,1),f=Sc(a.getBoundingClientRect()),g=Lc([...h,...f]);r.value=g,n.value=!0}return Ur(l=>{if(t.value&&e.value){const a=u=>s(u,e.value),c=u=>s(u,t.value);t.value.addEventListener("pointerleave",a),e.value.addEventListener("pointerleave",c),l(()=>{t.value?.removeEventListener("pointerleave",a),e.value?.removeEventListener("pointerleave",c)})}}),Ur(l=>{if(r.value){const a=c=>{if(!r.value||!(c.target instanceof Element))return;const u=c.target,d={x:c.clientX,y:c.clientY},h=t.value?.contains(u)||e.value?.contains(u),f=!Rc(d,r.value),g=!!u.closest("[data-grace-area-trigger]");h?o():(f||g)&&(o(),i.trigger())};t.value?.ownerDocument.addEventListener("pointermove",a),l(()=>t.value?.ownerDocument.removeEventListener("pointermove",a))}}),{isPointerInTransit:n,onPointerExit:i.on}}function Tc(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ac(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function Sc(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}function Rc(t,e){const{x:n,y:r}=t;let i=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const l=e[o].x,a=e[o].y,c=e[s].x,u=e[s].y;a>r!=u>r&&n<(c-l)*(r-a)/(u-a)+l&&(i=!i)}return i}function Lc(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Cc(e)}function Cc(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e.length>=2;){const o=e[e.length-1],s=e[e.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))e.pop();else break}e.push(i)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}function Pc(t){const e=j(),n=$(()=>e.value?.width??0),r=$(()=>e.value?.height??0);return dt(()=>{const i=Fl(t);if(i){e.value={width:i.offsetWidth,height:i.offsetHeight};const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let a,c;if("borderBoxSize"in l){const u=l.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=i.offsetWidth,c=i.offsetHeight;e.value={width:a,height:c}});return o.observe(i,{box:"border-box"}),()=>o.unobserve(i)}else e.value=void 0}),{width:n,height:r}}const[Oc,Ic]=Ft("RovingFocusGroup");var Dc=U({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(t,{expose:e,emit:n}){const r=t,i=n,{loop:o,orientation:s,dir:l}=ir(r),a=Ts(l),c=bi(r,"currentTabStopId",i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=j(!1),d=j(!1),h=j(0),{getItems:f,CollectionSlot:g}=As({isProvider:!0});function y(v){const k=!d.value;if(v.currentTarget&&v.target===v.currentTarget&&k&&!u.value){const b=new CustomEvent(yl,vl);if(v.currentTarget.dispatchEvent(b),i("entryFocus",b),!b.defaultPrevented){const E=f().map(B=>B.ref).filter(B=>B.dataset.disabled!==""),P=E.find(B=>B.getAttribute("data-active")===""),V=E.find(B=>B.getAttribute("data-highlighted")===""),q=E.find(B=>B.id===c.value),J=[P,V,q,...E].filter(Boolean);Ss(J,r.preventScrollOnEntryFocus)}}d.value=!1}function x(){setTimeout(()=>{d.value=!1},1)}return e({getItems:f}),Ic({loop:o,dir:a,orientation:s,currentTabStopId:c,onItemFocus:v=>{c.value=v},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{h.value++},onFocusableItemRemove:()=>{h.value--}}),(v,k)=>(w(),K(m(g),null,{default:M(()=>[R(m(nt),{tabindex:u.value||h.value===0?-1:0,"data-orientation":m(s),as:v.as,"as-child":v.asChild,dir:m(a),style:{outline:"none"},onMousedown:k[0]||(k[0]=b=>d.value=!0),onMouseup:x,onFocus:y,onBlur:k[1]||(k[1]=b=>u.value=!1)},{default:M(()=>[ne(v.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Nc=Dc,Mc=U({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(t){const e=t,n=Oc(),r=vi(),i=$(()=>e.tabStopId||r),o=$(()=>n.currentTabStopId.value===i.value),{getItems:s,CollectionItem:l}=As();dt(()=>{e.focusable&&n.onFocusableItemAdd()}),Is(()=>{e.focusable&&n.onFocusableItemRemove()});function a(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const u=bl(c,n.orientation.value,n.dir.value);if(u!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!e.allowShiftKey&&c.shiftKey)return;c.preventDefault();let d=[...s().map(h=>h.ref).filter(h=>h.dataset.disabled!=="")];if(u==="last")d.reverse();else if(u==="prev"||u==="next"){u==="prev"&&d.reverse();const h=d.indexOf(c.currentTarget);d=n.loop.value?kl(d,h+1):d.slice(h+1)}Gl(()=>Ss(d))}}return(c,u)=>(w(),K(m(l),null,{default:M(()=>[R(m(nt),{tabindex:o.value?0:-1,"data-orientation":m(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:u[0]||(u[0]=d=>{c.focusable?m(n).onItemFocus(i.value):d.preventDefault()}),onFocus:u[1]||(u[1]=d=>m(n).onItemFocus(i.value)),onKeydown:a},{default:M(()=>[ne(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),$c=Mc;const[Bs,Vc]=Ft("PopperRoot");var Bc=U({inheritAttrs:!1,__name:"PopperRoot",setup(t){const e=j();return Vc({anchor:e,onAnchorChange:n=>e.value=n}),(n,r)=>ne(n.$slots,"default")}}),zc=Bc,Fc=U({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{forwardRef:n,currentElement:r}=Ce(),i=Bs();return Ds(()=>{i.onAnchorChange(e.reference??r.value)}),(o,s)=>(w(),K(m(nt),{ref:m(n),as:o.as,"as-child":o.asChild},{default:M(()=>[ne(o.$slots,"default")]),_:3},8,["as","as-child"]))}}),jc=Fc;const qc={key:0,d:"M0 0L6 6L12 0"},Hc={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var Gc=U({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Ce(),(n,r)=>(w(),K(m(nt),Pe(e,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:M(()=>[ne(n.$slots,"default",{},()=>[n.rounded?(w(),A("path",Hc)):(w(),A("path",qc))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Uc=Gc;function Wc(t){return t!==null}function Kc(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,l=s?0:t.arrowWidth,a=s?0:t.arrowHeight,[c,u]=Yr(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+l/2,f=(i.arrow?.y??0)+a/2;let g="",y="";return c==="bottom"?(g=s?d:`${h}px`,y=`${-a}px`):c==="top"?(g=s?d:`${h}px`,y=`${r.floating.height+a}px`):c==="right"?(g=`${-a}px`,y=s?d:`${f}px`):c==="left"&&(g=`${r.floating.width+a}px`,y=s?d:`${f}px`),{data:{x:g,y}}}}}function Yr(t){const[e,n="center"]=t.split("-");return[e,n]}const Xc=["top","right","bottom","left"],pt=Math.min,Me=Math.max,Fn=Math.round,Cn=Math.floor,et=t=>({x:t,y:t}),Yc={left:"right",right:"left",bottom:"top",top:"bottom"},Qc={start:"end",end:"start"};function Qr(t,e,n){return Me(t,pt(e,n))}function lt(t,e){return typeof t=="function"?t(e):t}function ct(t){return t.split("-")[0]}function qt(t){return t.split("-")[1]}function ki(t){return t==="x"?"y":"x"}function wi(t){return t==="y"?"height":"width"}const Jc=new Set(["top","bottom"]);function Ze(t){return Jc.has(ct(t))?"y":"x"}function xi(t){return ki(Ze(t))}function Zc(t,e,n){n===void 0&&(n=!1);const r=qt(t),i=xi(t),o=wi(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=jn(s)),[s,jn(s)]}function eu(t){const e=jn(t);return[Jr(t),e,Jr(e)]}function Jr(t){return t.replace(/start|end/g,e=>Qc[e])}const Eo=["left","right"],To=["right","left"],tu=["top","bottom"],nu=["bottom","top"];function ru(t,e,n){switch(t){case"top":case"bottom":return n?e?To:Eo:e?Eo:To;case"left":case"right":return e?tu:nu;default:return[]}}function iu(t,e,n,r){const i=qt(t);let o=ru(ct(t),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(Jr)))),o}function jn(t){return t.replace(/left|right|bottom|top/g,e=>Yc[e])}function ou(t){return{top:0,right:0,bottom:0,left:0,...t}}function zs(t){return typeof t!="number"?ou(t):{top:t,right:t,bottom:t,left:t}}function qn(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Ao(t,e,n){let{reference:r,floating:i}=t;const o=Ze(e),s=xi(e),l=wi(s),a=ct(e),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[l]/2-i[l]/2;let f;switch(a){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(qt(e)){case"start":f[s]-=h*(n&&c?-1:1);break;case"end":f[s]+=h*(n&&c?-1:1);break}return f}async function su(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:o,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=lt(e,t),g=zs(f),x=l[h?d==="floating"?"reference":"floating":d],v=qn(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),k=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),E=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},P=qn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:b,strategy:a}):k);return{top:(v.top-P.top+g.top)/E.y,bottom:(P.bottom-v.bottom+g.bottom)/E.y,left:(v.left-P.left+g.left)/E.x,right:(P.right-v.right+g.right)/E.x}}const au=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=Ao(c,r,a),h=r,f={},g=0;for(let x=0;x<l.length;x++){var y;const{name:v,fn:k}=l[x],{x:b,y:E,data:P,reset:V}=await k({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:c,platform:{...s,detectOverflow:(y=s.detectOverflow)!=null?y:su},elements:{reference:t,floating:e}});u=b??u,d=E??d,f={...f,[v]:{...f[v],...P}},V&&g<=50&&(g++,typeof V=="object"&&(V.placement&&(h=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y:d}=Ao(c,h,a)),x=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}},lu=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=lt(t,e)||{};if(c==null)return{};const d=zs(u),h={x:n,y:r},f=xi(i),g=wi(f),y=await s.getDimensions(c),x=f==="y",v=x?"top":"left",k=x?"bottom":"right",b=x?"clientHeight":"clientWidth",E=o.reference[g]+o.reference[f]-h[f]-o.floating[g],P=h[f]-o.reference[f],V=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let q=V?V[b]:0;(!q||!await(s.isElement==null?void 0:s.isElement(V)))&&(q=l.floating[b]||o.floating[g]);const J=E/2-P/2,B=q/2-y[g]/2-1,S=pt(d[v],B),O=pt(d[k],B),N=S,D=q-y[g]-O,I=q/2-y[g]/2+J,z=Qr(N,I,D),W=!a.arrow&&qt(i)!=null&&I!==z&&o.reference[g]/2-(I<N?S:O)-y[g]/2<0,ee=W?I<N?I-N:I-D:0;return{[f]:h[f]+ee,data:{[f]:z,centerOffset:I-z-ee,...W&&{alignmentOffset:ee}},reset:W}}}),cu=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=lt(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=ct(i),k=Ze(l),b=ct(l)===l,E=await(a.isRTL==null?void 0:a.isRTL(c.floating)),P=h||(b||!y?[jn(l)]:eu(l)),V=g!=="none";!h&&V&&P.push(...iu(l,y,g,E));const q=[l,...P],J=await a.detectOverflow(e,x),B=[];let S=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&B.push(J[v]),d){const I=Zc(i,s,E);B.push(J[I[0]],J[I[1]])}if(S=[...S,{placement:i,overflows:B}],!B.every(I=>I<=0)){var O,N;const I=(((O=o.flip)==null?void 0:O.index)||0)+1,z=q[I];if(z&&(!(d==="alignment"?k!==Ze(z):!1)||S.every(Z=>Ze(Z.placement)===k?Z.overflows[0]>0:!0)))return{data:{index:I,overflows:S},reset:{placement:z}};let W=(N=S.filter(ee=>ee.overflows[0]<=0).sort((ee,Z)=>ee.overflows[1]-Z.overflows[1])[0])==null?void 0:N.placement;if(!W)switch(f){case"bestFit":{var D;const ee=(D=S.filter(Z=>{if(V){const oe=Ze(Z.placement);return oe===k||oe==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(oe=>oe>0).reduce((oe,Oe)=>oe+Oe,0)]).sort((Z,oe)=>Z[1]-oe[1])[0])==null?void 0:D[0];ee&&(W=ee);break}case"initialPlacement":W=l;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function So(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ro(t){return Xc.some(e=>t[e]>=0)}const uu=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:i="referenceHidden",...o}=lt(t,e);switch(i){case"referenceHidden":{const s=await r.detectOverflow(e,{...o,elementContext:"reference"}),l=So(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ro(l)}}}case"escaped":{const s=await r.detectOverflow(e,{...o,altBoundary:!0}),l=So(s,n.floating);return{data:{escapedOffsets:l,escaped:Ro(l)}}}default:return{}}}}},Fs=new Set(["left","top"]);async function du(t,e){const{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ct(n),l=qt(n),a=Ze(n)==="y",c=Fs.has(s)?-1:1,u=o&&a?-1:1,d=lt(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof g=="number"&&(f=l==="end"?g*-1:g),a?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const pu=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=e,a=await du(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},mu=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:k,y:b}=v;return{x:k,y:b}}},...c}=lt(t,e),u={x:n,y:r},d=await o.detectOverflow(e,c),h=Ze(ct(i)),f=ki(h);let g=u[f],y=u[h];if(s){const v=f==="y"?"top":"left",k=f==="y"?"bottom":"right",b=g+d[v],E=g-d[k];g=Qr(b,g,E)}if(l){const v=h==="y"?"top":"left",k=h==="y"?"bottom":"right",b=y+d[v],E=y-d[k];y=Qr(b,y,E)}const x=a.fn({...e,[f]:g,[h]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[f]:s,[h]:l}}}}}},fu=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=e,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=lt(t,e),u={x:n,y:r},d=Ze(i),h=ki(d);let f=u[h],g=u[d];const y=lt(l,e),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const b=h==="y"?"height":"width",E=o.reference[h]-o.floating[b]+x.mainAxis,P=o.reference[h]+o.reference[b]-x.mainAxis;f<E?f=E:f>P&&(f=P)}if(c){var v,k;const b=h==="y"?"width":"height",E=Fs.has(ct(i)),P=o.reference[d]-o.floating[b]+(E&&((v=s.offset)==null?void 0:v[d])||0)+(E?0:x.crossAxis),V=o.reference[d]+o.reference[b]+(E?0:((k=s.offset)==null?void 0:k[d])||0)-(E?x.crossAxis:0);g<P?g=P:g>V&&(g=V)}return{[h]:f,[d]:g}}}},hu=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:o,platform:s,elements:l}=e,{apply:a=()=>{},...c}=lt(t,e),u=await s.detectOverflow(e,c),d=ct(i),h=qt(i),f=Ze(i)==="y",{width:g,height:y}=o.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(v=d,x=h==="end"?"top":"bottom");const k=y-u.top-u.bottom,b=g-u.left-u.right,E=pt(y-u[x],k),P=pt(g-u[v],b),V=!e.middlewareData.shift;let q=E,J=P;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(J=b),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(q=k),V&&!h){const S=Me(u.left,0),O=Me(u.right,0),N=Me(u.top,0),D=Me(u.bottom,0);f?J=g-2*(S!==0||O!==0?S+O:Me(u.left,u.right)):q=y-2*(N!==0||D!==0?N+D:Me(u.top,u.bottom))}await a({...e,availableWidth:J,availableHeight:q});const B=await s.getDimensions(l.floating);return g!==B.width||y!==B.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function wt(t){return Ei(t)?(t.nodeName||"").toLowerCase():"#document"}function $e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function rt(t){var e;return(e=(Ei(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ei(t){return or()?t instanceof Node||t instanceof $e(t).Node:!1}function Ge(t){return or()?t instanceof Element||t instanceof $e(t).Element:!1}function tt(t){return or()?t instanceof HTMLElement||t instanceof $e(t).HTMLElement:!1}function Lo(t){return!or()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $e(t).ShadowRoot}const gu=new Set(["inline","contents"]);function yn(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!gu.has(i)}const _u=new Set(["table","td","th"]);function yu(t){return _u.has(wt(t))}const vu=[":popover-open",":modal"];function sr(t){return vu.some(e=>{try{return t.matches(e)}catch{return!1}})}const bu=["transform","translate","scale","rotate","perspective"],ku=["transform","translate","scale","rotate","perspective","filter"],wu=["paint","layout","strict","content"];function Ti(t){const e=Ai(),n=Ge(t)?Ue(t):t;return bu.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ku.some(r=>(n.willChange||"").includes(r))||wu.some(r=>(n.contain||"").includes(r))}function xu(t){let e=mt(t);for(;tt(e)&&!Bt(e);){if(Ti(e))return e;if(sr(e))return null;e=mt(e)}return null}function Ai(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Eu=new Set(["html","body","#document"]);function Bt(t){return Eu.has(wt(t))}function Ue(t){return $e(t).getComputedStyle(t)}function ar(t){return Ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if(wt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Lo(t)&&t.host||rt(t);return Lo(e)?e.host:e}function js(t){const e=mt(t);return Bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&yn(e)?e:js(e)}function dn(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=js(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),s=$e(i);if(o){const l=Zr(s);return e.concat(s,s.visualViewport||[],yn(i)?i:[],l&&n?dn(l):[])}return e.concat(i,dn(i,[],n))}function Zr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qs(t){const e=Ue(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=tt(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,l=Fn(n)!==o||Fn(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function Si(t){return Ge(t)?t:t.contextElement}function Mt(t){const e=Si(t);if(!tt(e))return et(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=qs(e);let s=(o?Fn(n.width):n.width)/r,l=(o?Fn(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Tu=et(0);function Hs(t){const e=$e(t);return!Ai()||!e.visualViewport?Tu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Au(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==$e(t)?!1:e}function vt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=Si(t);let s=et(1);e&&(r?Ge(r)&&(s=Mt(r)):s=Mt(t));const l=Au(o,n,r)?Hs(o):et(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const h=$e(o),f=r&&Ge(r)?$e(r):r;let g=h,y=Zr(g);for(;y&&r&&f!==g;){const x=Mt(y),v=y.getBoundingClientRect(),k=Ue(y),b=v.left+(y.clientLeft+parseFloat(k.paddingLeft))*x.x,E=v.top+(y.clientTop+parseFloat(k.paddingTop))*x.y;a*=x.x,c*=x.y,u*=x.x,d*=x.y,a+=b,c+=E,g=$e(y),y=Zr(g)}}return qn({width:u,height:d,x:a,y:c})}function lr(t,e){const n=ar(t).scrollLeft;return e?e.left+n:vt(rt(t)).left+n}function Gs(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-lr(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function Su(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o=i==="fixed",s=rt(r),l=e?sr(e.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=et(1);const u=et(0),d=tt(r);if((d||!d&&!o)&&((wt(r)!=="body"||yn(s))&&(a=ar(r)),tt(r))){const f=vt(r);c=Mt(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const h=s&&!d&&!o?Gs(s,a):et(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}}function Ru(t){return Array.from(t.getClientRects())}function Lu(t){const e=rt(t),n=ar(t),r=t.ownerDocument.body,i=Me(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Me(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+lr(t);const l=-n.scrollTop;return Ue(r).direction==="rtl"&&(s+=Me(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}const Co=25;function Cu(t,e){const n=$e(t),r=rt(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=Ai();(!u||u&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}const c=lr(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Co&&(o-=g)}else c<=Co&&(o+=c);return{width:o,height:s,x:l,y:a}}const Pu=new Set(["absolute","fixed"]);function Ou(t,e){const n=vt(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=tt(t)?Mt(t):et(1),s=t.clientWidth*o.x,l=t.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function Po(t,e,n){let r;if(e==="viewport")r=Cu(t,n);else if(e==="document")r=Lu(rt(t));else if(Ge(e))r=Ou(e,n);else{const i=Hs(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return qn(r)}function Us(t,e){const n=mt(t);return n===e||!Ge(n)||Bt(n)?!1:Ue(n).position==="fixed"||Us(n,e)}function Iu(t,e){const n=e.get(t);if(n)return n;let r=dn(t,[],!1).filter(l=>Ge(l)&&wt(l)!=="body"),i=null;const o=Ue(t).position==="fixed";let s=o?mt(t):t;for(;Ge(s)&&!Bt(s);){const l=Ue(s),a=Ti(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&Pu.has(i.position)||yn(s)&&!a&&Us(t,s))?r=r.filter(u=>u!==s):i=l,s=mt(s)}return e.set(t,r),r}function Du(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?sr(e)?[]:Iu(e,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,u)=>{const d=Po(e,u,i);return c.top=Me(d.top,c.top),c.right=pt(d.right,c.right),c.bottom=pt(d.bottom,c.bottom),c.left=Me(d.left,c.left),c},Po(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Nu(t){const{width:e,height:n}=qs(t);return{width:e,height:n}}function Mu(t,e,n){const r=tt(e),i=rt(e),o=n==="fixed",s=vt(t,!0,o,e);let l={scrollLeft:0,scrollTop:0};const a=et(0);function c(){a.x=lr(i)}if(r||!r&&!o)if((wt(e)!=="body"||yn(i))&&(l=ar(e)),r){const f=vt(e,!0,o,e);a.x=f.x+e.clientLeft,a.y=f.y+e.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?Gs(i,l):et(0),d=s.left+l.scrollLeft-a.x-u.x,h=s.top+l.scrollTop-a.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function Lr(t){return Ue(t).position==="static"}function Oo(t,e){if(!tt(t)||Ue(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return rt(t)===n&&(n=n.ownerDocument.body),n}function Ws(t,e){const n=$e(t);if(sr(t))return n;if(!tt(t)){let i=mt(t);for(;i&&!Bt(i);){if(Ge(i)&&!Lr(i))return i;i=mt(i)}return n}let r=Oo(t,e);for(;r&&yu(r)&&Lr(r);)r=Oo(r,e);return r&&Bt(r)&&Lr(r)&&!Ti(r)?n:r||xu(t)||n}const $u=async function(t){const e=this.getOffsetParent||Ws,n=this.getDimensions,r=await n(t.floating);return{reference:Mu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vu(t){return Ue(t).direction==="rtl"}const Bu={convertOffsetParentRelativeRectToViewportRelativeRect:Su,getDocumentElement:rt,getClippingRect:Du,getOffsetParent:Ws,getElementRects:$u,getClientRects:Ru,getDimensions:Nu,getScale:Mt,isElement:Ge,isRTL:Vu};function Ks(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function zu(t,e){let n=null,r;const i=rt(t);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const c=t.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(l||e(),!h||!f)return;const g=Cn(d),y=Cn(i.clientWidth-(u+h)),x=Cn(i.clientHeight-(d+f)),v=Cn(u),b={rootMargin:-g+"px "+-y+"px "+-x+"px "+-v+"px",threshold:Me(0,pt(1,a))||1};let E=!0;function P(V){const q=V[0].intersectionRatio;if(q!==a){if(!E)return s();q?s(!1,q):r=setTimeout(()=>{s(!1,1e-7)},1e3)}q===1&&!Ks(c,t.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(P,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,b)}n.observe(t)}return s(!0),o}function Fu(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=Si(t),u=i||o?[...c?dn(c):[],...dn(e)]:[];u.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=c&&l?zu(c,n):null;let h=-1,f=null;s&&(f=new ResizeObserver(v=>{let[k]=v;k&&k.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(e)})),n()}),c&&!a&&f.observe(c),f.observe(e));let g,y=a?vt(t):null;a&&x();function x(){const v=vt(t);y&&!Ks(y,v)&&n(),y=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(k=>{i&&k.removeEventListener("scroll",n),o&&k.removeEventListener("resize",n)}),d?.(),(v=f)==null||v.disconnect(),f=null,a&&cancelAnimationFrame(g)}}const ju=pu,qu=mu,Io=cu,Hu=hu,Gu=uu,Uu=lu,Wu=fu,Ku=(t,e,n)=>{const r=new Map,i={platform:Bu,...n},o={...i.platform,_c:r};return au(t,e,{...i,platform:o})};function Xu(t){return t!=null&&typeof t=="object"&&"$el"in t}function ei(t){if(Xu(t)){const e=t.$el;return Ei(e)&&wt(e)==="#comment"?null:e}return t}function It(t){return typeof t=="function"?t():m(t)}function Yu(t){return{name:"arrow",options:t,fn(e){const n=ei(It(t.element));return n==null?{}:Uu({element:n,padding:t.padding}).fn(e)}}}function Xs(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Do(t,e){const n=Xs(t);return Math.round(e*n)/n}function Qu(t,e,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=$(()=>{var q;return(q=It(n.open))!=null?q:!0}),o=$(()=>It(n.middleware)),s=$(()=>{var q;return(q=It(n.placement))!=null?q:"bottom"}),l=$(()=>{var q;return(q=It(n.strategy))!=null?q:"absolute"}),a=$(()=>{var q;return(q=It(n.transform))!=null?q:!0}),c=$(()=>ei(t.value)),u=$(()=>ei(e.value)),d=j(0),h=j(0),f=j(l.value),g=j(s.value),y=Ns({}),x=j(!1),v=$(()=>{const q={position:f.value,left:"0",top:"0"};if(!u.value)return q;const J=Do(u.value,d.value),B=Do(u.value,h.value);return a.value?{...q,transform:"translate("+J+"px, "+B+"px)",...Xs(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:J+"px",top:B+"px"}});let k;function b(){if(c.value==null||u.value==null)return;const q=i.value;Ku(c.value,u.value,{middleware:o.value,placement:s.value,strategy:l.value}).then(J=>{d.value=J.x,h.value=J.y,f.value=J.strategy,g.value=J.placement,y.value=J.middlewareData,x.value=q!==!1})}function E(){typeof k=="function"&&(k(),k=void 0)}function P(){if(E(),r===void 0){b();return}if(c.value!=null&&u.value!=null){k=r(c.value,u.value,b);return}}function V(){i.value||(x.value=!1)}return Te([o,s,l,i],b,{flush:"sync"}),Te([c,u],P,{flush:"sync"}),Te(i,V,{flush:"sync"}),Ul()&&Wl(E),{x:Ot(d),y:Ot(h),strategy:Ot(f),placement:Ot(g),middlewareData:Ot(y),isPositioned:Ot(x),floatingStyles:v,update:b}}const Ju={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Zu,ed]=Ft("PopperContent");var td=U({inheritAttrs:!1,__name:"PopperContent",props:Kl({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Ju}),emits:["placed"],setup(t,{emit:e}){const n=t,r=e,i=Bs(),{forwardRef:o,currentElement:s}=Ce(),l=j(),a=j(),{width:c,height:u}=Pc(a),d=$(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),h=$(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=$(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),g=$(()=>({padding:h.value,boundary:f.value.filter(Wc),altBoundary:f.value.length>0})),y=$(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),x=jl(()=>[ju({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Io({...g.value,...y.value}),n.avoidCollisions&&qu({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Wu():void 0,...g.value}),!n.prioritizePosition&&n.avoidCollisions&&Io({...g.value,...y.value}),Hu({...g.value,apply:({elements:N,rects:D,availableWidth:I,availableHeight:z})=>{const{width:W,height:ee}=D.reference,Z=N.floating.style;Z.setProperty("--reka-popper-available-width",`${I}px`),Z.setProperty("--reka-popper-available-height",`${z}px`),Z.setProperty("--reka-popper-anchor-width",`${W}px`),Z.setProperty("--reka-popper-anchor-height",`${ee}px`)}}),a.value&&Yu({element:a.value,padding:n.arrowPadding}),Kc({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&Gu({strategy:"referenceHidden",...g.value})]),v=$(()=>n.reference??i.anchor.value),{floatingStyles:k,placement:b,isPositioned:E,middlewareData:P}=Qu(v,l,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...N)=>Fu(...N,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:x}),V=$(()=>Yr(b.value)[0]),q=$(()=>Yr(b.value)[1]);Ds(()=>{E.value&&r("placed")});const J=$(()=>{const N=P.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&N}),B=j("");Ur(()=>{s.value&&(B.value=window.getComputedStyle(s.value).zIndex)});const S=$(()=>P.value.arrow?.x??0),O=$(()=>P.value.arrow?.y??0);return ed({placedSide:V,onArrowChange:N=>a.value=N,arrowX:S,arrowY:O,shouldHideArrow:J}),(N,D)=>(w(),A("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:un({...m(k),transform:m(E)?m(k).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B.value,"--reka-popper-transform-origin":[m(P).transformOrigin?.x,m(P).transformOrigin?.y].join(" "),...m(P).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[R(m(nt),Pe({ref:m(o)},N.$attrs,{"as-child":n.asChild,as:N.as,"data-side":V.value,"data-align":q.value,style:{animation:m(E)?void 0:"none"}}),{default:M(()=>[ne(N.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),nd=td;const rd={top:"bottom",right:"left",bottom:"top",left:"right"};var id=U({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const{forwardRef:e}=Ce(),n=Zu(),r=$(()=>rd[n.placedSide.value]);return(i,o)=>(w(),A("span",{ref:s=>{m(n).onArrowChange(s)},style:un({position:"absolute",left:m(n).arrowX?.value?`${m(n).arrowX?.value}px`:void 0,top:m(n).arrowY?.value?`${m(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[m(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[m(n).placedSide.value],visibility:m(n).shouldHideArrow.value?"hidden":void 0})},[R(Uc,Pe(i.$attrs,{ref:m(e),style:{display:"block"},as:i.as,"as-child":i.asChild,rounded:i.rounded,width:i.width,height:i.height}),{default:M(()=>[ne(i.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),od=id;const[Ri,sd]=Ft("TabsRoot");var ad=U({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,{orientation:i,unmountOnHide:o,dir:s}=ir(n),l=Ts(s);Ce();const a=bi(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=j(),u=Ns(new Set);return sd({modelValue:a,changeModelValue:d=>{a.value=d},orientation:i,dir:l,unmountOnHide:o,activationMode:n.activationMode,baseId:vi(void 0,"reka-tabs"),tabsList:c,contentIds:u,registerContent:d=>{u.value=new Set([...u.value,d])},unregisterContent:d=>{const h=new Set(u.value);h.delete(d),u.value=h}}),(d,h)=>(w(),K(m(nt),{dir:m(l),"data-orientation":m(i),"as-child":d.asChild,as:d.as},{default:M(()=>[ne(d.$slots,"default",{modelValue:m(a)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),ld=ad;function Ys(t,e){return`${t}-trigger-${e}`}function Qs(t,e){return`${t}-content-${e}`}var cd=U({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{forwardRef:n}=Ce(),r=Ri(),i=$(()=>Ys(r.baseId,e.value)),o=$(()=>Qs(r.baseId,e.value)),s=$(()=>e.value===r.modelValue.value),l=j(s.value);return dt(()=>{r.registerContent(e.value),requestAnimationFrame(()=>{l.value=!1})}),Xl(()=>{r.unregisterContent(e.value)}),(a,c)=>(w(),K(m(Rs),{present:a.forceMount||s.value,"force-mount":""},{default:M(({present:u})=>[R(m(nt),{id:o.value,ref:m(n),"as-child":a.asChild,as:a.as,role:"tabpanel","data-state":s.value?"active":"inactive","data-orientation":m(r).orientation.value,"aria-labelledby":i.value,hidden:!u,tabindex:"0",style:un({animationDuration:l.value?"0s":void 0})},{default:M(()=>[!m(r).unmountOnHide.value||u?ne(a.$slots,"default",{key:0}):Y("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),ud=cd,dd=U({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{loop:n}=ir(e),{forwardRef:r,currentElement:i}=Ce(),o=Ri();return o.tabsList=i,(s,l)=>(w(),K(m(Nc),{"as-child":"",orientation:m(o).orientation.value,dir:m(o).dir.value,loop:m(n)},{default:M(()=>[R(m(nt),{ref:m(r),role:"tablist","as-child":s.asChild,as:s.as,"aria-orientation":m(o).orientation.value},{default:M(()=>[ne(s.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),pd=dd,md=U({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const e=t,{forwardRef:n}=Ce(),r=Ri(),i=$(()=>Ys(r.baseId,e.value)),o=$(()=>r.contentIds.value.has(e.value)?Qs(r.baseId,e.value):void 0),s=$(()=>e.value===r.modelValue.value);return(l,a)=>(w(),K(m($c),{"as-child":"",focusable:!l.disabled,active:s.value},{default:M(()=>[R(m(nt),{id:i.value,ref:m(n),role:"tab",type:l.as==="button"?"button":void 0,as:l.as,"as-child":l.asChild,"aria-selected":s.value?"true":"false","aria-controls":o.value,"data-state":s.value?"active":"inactive",disabled:l.disabled,"data-disabled":l.disabled?"":void 0,"data-orientation":m(r).orientation.value,onMousedown:a[0]||(a[0]=Ms(c=>{!l.disabled&&c.ctrlKey===!1?m(r).changeModelValue(l.value):c.preventDefault()},["left"])),onKeydown:a[1]||(a[1]=Yl(c=>m(r).changeModelValue(l.value),["enter","space"])),onFocus:a[2]||(a[2]=()=>{const c=m(r).activationMode!=="manual";!s.value&&!l.disabled&&c&&m(r).changeModelValue(l.value)})},{default:M(()=>[ne(l.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),fd=md,hd=U({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Ce(),(n,r)=>(w(),K(m(od),gn(_n(e)),{default:M(()=>[ne(n.$slots,"default")]),_:3},16))}}),gd=hd;const[Li,_d]=Ft("TooltipProvider");var yd=U({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:i,disableClosingTrigger:o,ignoreNonKeyboardFocus:s,disabled:l}=ir(e);Ce();const a=j(!0),c=j(!1),{start:u,stop:d}=Cs(()=>{a.value=!0},r,{immediate:!1});return _d({isOpenDelayed:a,delayDuration:n,onOpen(){d(),a.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:i,disableClosingTrigger:o,disabled:l,ignoreNonKeyboardFocus:s}),(h,f)=>ne(h.$slots,"default")}}),vd=yd;const Js="tooltip.open",[cr,bd]=Ft("TooltipRoot");var kd=U({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(t,{emit:e}){const n=t,r=e;Ce();const i=Li(),o=$(()=>n.disableHoverableContent??i.disableHoverableContent.value),s=$(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),l=$(()=>n.disabled??i.disabled.value),a=$(()=>n.delayDuration??i.delayDuration.value),c=$(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=bi(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Te(u,b=>{i.onClose&&(b?(i.onOpen(),document.dispatchEvent(new CustomEvent(Js))):i.onClose())});const d=j(!1),h=j(),f=$(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:g,stop:y}=Cs(()=>{d.value=!0,u.value=!0},a,{immediate:!1});function x(){y(),d.value=!1,u.value=!0}function v(){y(),u.value=!1}function k(){g()}return bd({contentId:"",open:u,stateAttribute:f,trigger:h,onTriggerChange(b){h.value=b},onTriggerEnter(){i.isOpenDelayed.value?k():x()},onTriggerLeave(){o.value?v():y()},onOpen:x,onClose:v,disableHoverableContent:o,disableClosingTrigger:s,disabled:l,ignoreNonKeyboardFocus:c}),(b,E)=>(w(),K(m(zc),null,{default:M(()=>[ne(b.$slots,"default",{open:m(u)})]),_:3}))}}),wd=kd,xd=U({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:"center"},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,r=e,i=cr(),{forwardRef:o,currentElement:s}=Ce(),l=$(()=>n.ariaLabel||s.value?.textContent),a=$(()=>{const{ariaLabel:c,...u}=n;return u});return dt(()=>{bo(window,"scroll",c=>{c.target?.contains(i.trigger.value)&&i.onClose()}),bo(window,Js,i.onClose)}),(c,u)=>(w(),K(m(xl),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:u[0]||(u[0]=d=>r("escapeKeyDown",d)),onPointerDownOutside:u[1]||(u[1]=d=>{m(i).disableClosingTrigger.value&&m(i).trigger.value?.contains(d.target)&&d.preventDefault(),r("pointerDownOutside",d)}),onFocusOutside:u[2]||(u[2]=Ms(()=>{},["prevent"])),onDismiss:u[3]||(u[3]=d=>m(i).onClose())},{default:M(()=>[R(m(nd),Pe({ref:m(o),"data-state":m(i).stateAttribute.value},{...c.$attrs,...a.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:M(()=>[ne(c.$slots,"default"),R(m(wl),{id:m(i).contentId,role:"tooltip"},{default:M(()=>[re(G(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Zs=xd,Ed=U({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(t){const n=Ls(t),{forwardRef:r,currentElement:i}=Ce(),{trigger:o,onClose:s}=cr(),l=Li(),{isPointerInTransit:a,onPointerExit:c}=Ec(o,i);return l.isPointerInTransitRef=a,c(()=>{s()}),(u,d)=>(w(),K(Zs,Pe({ref:m(r)},m(n)),{default:M(()=>[ne(u.$slots,"default")]),_:3},16))}}),Td=Ed,Ad=U({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,r=e,i=cr(),o=rr(n,r),{forwardRef:s}=Ce();return(l,a)=>(w(),K(m(Rs),{present:l.forceMount||m(i).open.value},{default:M(()=>[(w(),K(kt(m(i).disableHoverableContent.value?Zs:Td),Pe({ref:m(s)},m(o)),{default:M(()=>[ne(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Sd=Ad,Rd=U({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const e=t;return(n,r)=>(w(),K(m(El),gn(_n(e)),{default:M(()=>[ne(n.$slots,"default")]),_:3},16))}}),Ld=Rd,Cd=U({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const e=t,n=cr(),r=Li();n.contentId||=vi(void 0,"reka-tooltip-content");const{forwardRef:i,currentElement:o}=Ce(),s=j(!1),l=j(!1),a=$(()=>n.disabled.value?{}:{click:y,focus:f,pointermove:d,pointerleave:h,pointerdown:u,blur:g});dt(()=>{n.onTriggerChange(o.value)});function c(){setTimeout(()=>{s.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(x){x.pointerType!=="touch"&&!l.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),l.value=!0)}function h(){n.onTriggerLeave(),l.value=!1}function f(x){s.value||n.ignoreNonKeyboardFocus.value&&!x.target.matches?.(":focus-visible")||n.onOpen()}function g(){n.onClose()}function y(){n.disableClosingTrigger.value||n.onClose()}return(x,v)=>(w(),K(m(jc),{"as-child":"",reference:x.reference},{default:M(()=>[R(m(nt),Pe({ref:m(i),"aria-describedby":m(n).open.value?m(n).contentId:void 0,"data-state":m(n).stateAttribute.value,as:x.as,"as-child":e.asChild,"data-grace-area-trigger":""},Ql(a.value)),{default:M(()=>[ne(x.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Pd=Cd;const Od={key:0,class:"flex flex-wrap items-center gap-3 text-sm"},Id={key:0,class:"flex items-center gap-1.5 text-muted-foreground"},Dd={key:1,class:"flex items-center gap-1.5 text-muted-foreground"},Nd=["href"],Md={key:4,class:"flex items-center gap-1.5 text-muted-foreground"},$d=U({__name:"Meta",props:{metadata:{}},setup(t){const e=t,n=$(()=>{const i=e.metadata.status?.toLowerCase();return i?i.includes("complete")||i.includes("done")||i.includes("progress")||i.includes("active")?"default":i.includes("draft")?"secondary":i.includes("blocked")||i.includes("paused")?"destructive":"secondary":"secondary"}),r=$(()=>e.metadata.author||e.metadata.date||e.metadata.status||e.metadata.shortcutStory);return(i,o)=>m(r)?(w(),A("div",Od,[t.metadata.author?(w(),A("div",Id,[R(m(xc),{class:"size-3.5"}),T("span",null,G(t.metadata.author),1)])):Y("",!0),t.metadata.date?(w(),A("div",Dd,[R(m(Vs),{class:"size-3.5"}),T("span",null,G(t.metadata.date),1)])):Y("",!0),t.metadata.status?(w(),K(m(Nt),{key:2,variant:m(n),class:"gap-1"},{default:M(()=>[R(m(oc),{class:"size-3"}),re(" "+G(t.metadata.status),1)]),_:1},8,["variant"])):Y("",!0),t.metadata.shortcutStory&&t.metadata.shortcutUrl?(w(),A("a",{key:3,href:t.metadata.shortcutUrl,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1.5 text-primary hover:underline"},[R(m(xo),{class:"size-3.5"}),T("span",null,G(t.metadata.shortcutStory),1)],8,Nd)):t.metadata.shortcutStory?(w(),A("span",Md,[R(m(xo),{class:"size-3.5"}),T("span",null,G(t.metadata.shortcutStory),1)])):Y("",!0)])):Y("",!0)}}),Vd=Object.assign($d,{__name:"PrdMeta"});function Ci(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xt=Ci();function ea(t){xt=t}var _t={exec:()=>null};function te(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Se.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var Bd=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Se={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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},zd=/^(?:[ \t]*(?:\n|$))+/,Fd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ta=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,na=te(ta).replace(/bull/g,Pi).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(),Hd=te(ta).replace(/bull/g,Pi).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(),Oi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gd=/^[^\n]+/,Ii=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ud=te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ii).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Wd=te(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pi).getRegex(),ur="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",Di=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Kd=te("^ {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",Di).replace("tag",ur).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ra=te(Oi).replace("hr",vn).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",ur).getRegex(),Xd=te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ra).getRegex(),Ni={blockquote:Xd,code:Fd,def:Ud,fences:jd,heading:qd,hr:vn,html:Kd,lheading:na,list:Wd,newline:zd,paragraph:ra,table:_t,text:Gd},No=te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vn).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",ur).getRegex(),Yd={...Ni,lheading:Hd,table:No,paragraph:te(Oi).replace("hr",vn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",No).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",ur).getRegex()},Qd={...Ni,html:te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Di).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:_t,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:te(Oi).replace("hr",vn).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",na).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Jd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Zd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ia=/^( {2,}|\\)\n(?!\s*$)/,ep=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,dr=/[\p{P}\p{S}]/u,Mi=/[\s\p{P}\p{S}]/u,oa=/[^\s\p{P}\p{S}]/u,tp=te(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Mi).getRegex(),sa=/(?!~)[\p{P}\p{S}]/u,np=/(?!~)[\s\p{P}\p{S}]/u,rp=/(?:[^\s\p{P}\p{S}]|~)/u,aa=/(?![*_])[\p{P}\p{S}]/u,ip=/(?![*_])[\s\p{P}\p{S}]/u,op=/(?:[^\s\p{P}\p{S}]|[*_])/u,sp=te(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Bd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),la=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ap=te(la,"u").replace(/punct/g,dr).getRegex(),lp=te(la,"u").replace(/punct/g,sa).getRegex(),ca="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",cp=te(ca,"gu").replace(/notPunctSpace/g,oa).replace(/punctSpace/g,Mi).replace(/punct/g,dr).getRegex(),up=te(ca,"gu").replace(/notPunctSpace/g,rp).replace(/punctSpace/g,np).replace(/punct/g,sa).getRegex(),dp=te("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,oa).replace(/punctSpace/g,Mi).replace(/punct/g,dr).getRegex(),pp=te(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,aa).getRegex(),mp="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",fp=te(mp,"gu").replace(/notPunctSpace/g,op).replace(/punctSpace/g,ip).replace(/punct/g,aa).getRegex(),hp=te(/\\(punct)/,"gu").replace(/punct/g,dr).getRegex(),gp=te(/^<(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(),_p=te(Di).replace("(?:-->|$)","-->").getRegex(),yp=te("^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",_p).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,vp=te(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Hn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ua=te(/^!?\[(label)\]\[(ref)\]/).replace("label",Hn).replace("ref",Ii).getRegex(),da=te(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ii).getRegex(),bp=te("reflink|nolink(?!\\()","g").replace("reflink",ua).replace("nolink",da).getRegex(),Mo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$i={_backpedal:_t,anyPunctuation:hp,autolink:gp,blockSkip:sp,br:ia,code:Zd,del:_t,delLDelim:_t,delRDelim:_t,emStrongLDelim:ap,emStrongRDelimAst:cp,emStrongRDelimUnd:dp,escape:Jd,link:vp,nolink:da,punctuation:tp,reflink:ua,reflinkSearch:bp,tag:yp,text:ep,url:_t},kp={...$i,link:te(/^!?\[(label)\]\((.*?)\)/).replace("label",Hn).getRegex(),reflink:te(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hn).getRegex()},ti={...$i,emStrongRDelimAst:up,emStrongLDelim:lp,delLDelim:pp,delRDelim:fp,url:te(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Mo).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:te(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Mo).getRegex()},wp={...ti,br:te(ia).replace("{2,}","*").getRegex(),text:te(ti.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Pn={normal:Ni,gfm:Yd,pedantic:Qd},Xt={normal:$i,gfm:ti,breaks:wp,pedantic:kp},xp={"&":"&","<":"<",">":">",'"':""","'":"'"},$o=t=>xp[t];function Xe(t,e){if(e){if(Se.escapeTest.test(t))return t.replace(Se.escapeReplace,$o)}else if(Se.escapeTestNoEncode.test(t))return t.replace(Se.escapeReplaceNoEncode,$o);return t}function Vo(t){try{t=encodeURI(t).replace(Se.percentDecode,"%")}catch{return null}return t}function Bo(t,e){let n=t.replace(Se.findPipe,(o,s,l)=>{let a=!1,c=s;for(;--c>=0&&l[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(Se.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Se.slashPipe,"|");return r}function Yt(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function Ep(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Tp(t,e=0){let n=e,r="";for(let i of t)if(i===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=i,n++;return r}function zo(t,e,n,r,i){let o=e.href,s=e.title||null,l=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}function Ap(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
|
|
4
4
|
`).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[l]=s;return l.length>=i.length?o.slice(i.length):o}).join(`
|
|
5
5
|
`)}var Gn=class{options;rules;lexer;constructor(t){this.options=t||xt}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Yt(n,`
|
|
@@ -69,7 +69,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
69
69
|
\f\r "&'<=>\``.split(""),`\0
|
|
70
70
|
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function gf(t,e,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const l=[];let a;i.space==="html"&&t.tagName==="svg"&&(r.schema=Da);const c=_f(r,t.properties),u=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,u&&(s=!1),(c||!o||!uf(t,e,n))&&(l.push("<",t.tagName,c?" "+c:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(u),!s&&(!o||!ji(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}function _f(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=yf(t,i,e[i]);o&&n.push(o)}}for(;++r<n.length;){const o=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function yf(t,e,n){const r=bm(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let s=t.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const a=Vt(r.attribute,Object.assign({},t.settings.characterReferences,{subset:Dn.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Um:Wm)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?a:(t.settings.preferUnquoted&&(l=Vt(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Dn.unquoted[i][o]}))),l!==n&&(t.settings.quoteSmart&&Zo(n,s)>Zo(n,t.alternative)&&(s=t.alternative),l=s+Vt(n,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?Dn.single:Dn.double)[i][o],attribute:!0}))+s),a+(l&&"="+l))}const vf=["<","&"];function Ba(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Vt(t.value,Object.assign({},r.settings.characterReferences,{subset:vf}))}function bf(t,e,n,r){return r.settings.allowDangerousHtml?t.value:Ba(t,e,n,r)}function kf(t,e,n,r){return r.all(t)}const wf=Em("type",{invalid:xf,unknown:Ef,handlers:{comment:Hm,doctype:Gm,element:gf,raw:bf,root:kf,text:Ba}});function xf(t){throw new Error("Expected node, not `"+t+"`")}function Ef(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Tf={},Af={},Sf=[];function Rf(t,e){const n=e||Tf,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Lf,all:Cf,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||fm,characterReferences:n.characterReferences||Af,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Da:xm,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Lf(t,e,n){return wf(t,e,n,this)}function Cf(t){const e=[],n=t&&t.children||Sf;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}function Jn(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function ut(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function Pf(t){return Array.isArray(t)?t:[t]}async function za(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function qi(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Fa(t){return t==="ansi"||qi(t)}function Hi(t){return t==="none"}function ja(t){return Hi(t)}function qa(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}function pr(t,e=!1){if(t.length===0)return[["",0]];const n=t.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<n.length;o+=2){const s=e?n[o]+(n[o+1]||""):n[o];i.push([s,r]),r+=n[o].length,r+=n[o+1]?.length||0}return i}function Of(t){const e=pr(t,!0).map(([i])=>i);function n(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,s=0;for(const l of e){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function r(i,o){let s=0;for(let l=0;l<i;l++)s+=e[l].length;return s+=o,s}return{lines:e,indexToPos:n,posToIndex:r}}function Ha(t,e,n){const r=new Set;for(const o of t.matchAll(/:?lang=["']([^"']+)["']/g)){const s=o[1].toLowerCase().trim();s&&r.add(s)}for(const o of t.matchAll(/(?:```|~~~)([\w-]+)/g)){const s=o[1].toLowerCase().trim();s&&r.add(s)}for(const o of t.matchAll(/\\begin\{([\w-]+)\}/g)){const s=o[1].toLowerCase().trim();s&&r.add(s)}for(const o of t.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const s=o[1].toLowerCase().trim(),l=s.includes("/")?s.split("/").pop():s;l&&r.add(l)}if(!n)return Array.from(r);const i=n.getBundledLanguages();return Array.from(r).filter(o=>o&&i[o])}const Gi="light-dark()",If=["color","background-color"];function Df(t,e){let n=0;const r=[];for(const i of e)i>n&&r.push({...t,content:t.content.slice(n,i),offset:t.offset+n}),n=i;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function Nf(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return n.length?t.map(r=>r.flatMap(i=>{const o=n.filter(s=>i.offset<s&&s<i.offset+i.content.length).map(s=>s-i.offset).sort((s,l)=>s-l);return o.length?Df(i,o):i})):t}function Mf(t,e,n,r,i="css-vars"){const o={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(u=>Zn(t.variants[u])),l=new Set(s.flatMap(u=>Object.keys(u))),a={},c=(u,d)=>{const h=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+e[u]+(d==="color"?"":h)};return s.forEach((u,d)=>{for(const h of l){const f=u[h]||"inherit";if(d===0&&r&&If.includes(h))if(r===Gi&&s.length>1){const g=e.findIndex(k=>k==="light"),y=e.findIndex(k=>k==="dark");if(g===-1||y===-1)throw new fe('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const x=s[g][h]||"inherit",v=s[y][h]||"inherit";a[h]=`light-dark(${x}, ${v})`,i==="css-vars"&&(a[c(d,h)]=f)}else a[h]=f;else i==="css-vars"&&(a[c(d,h)]=f)}}),o.htmlStyle=a,o}function Zn(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&Ee.Italic&&(e["font-style"]="italic"),t.fontStyle&Ee.Bold&&(e["font-weight"]="bold");const n=[];t.fontStyle&Ee.Underline&&n.push("underline"),t.fontStyle&Ee.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function hi(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}const Ga=new WeakMap;function mr(t,e){Ga.set(t,e)}function hn(t){return Ga.get(t)}class Gt{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new Gt(Object.fromEntries(Pf(n).map(r=>[r,ui])),e)}constructor(...e){if(e.length===2){const[n,r]=e;this.lang=r,this._stacks=n}else{const[n,r,i]=e;this.lang=r,this._stacks={[i]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return $f(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function $f(t){const e=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const o=i?.nameScopesList?.scopeName;o&&e.push(o),i.parent&&r(i.parent)}return r(t),e}function Vf(t,e){if(!(t instanceof Gt))throw new fe("Invalid grammar state");return t.getInternalStack(e)}function Bf(){const t=new WeakMap;function e(n){if(!t.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new fe(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...i.indexToPos(s),offset:s}}else{const l=i.lines[s.line];if(l===void 0)throw new fe(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new fe(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:i.posToIndex(s.line,a)}}};const i=Of(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));zf(o),t.set(n.meta,{decorations:o,converter:i,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const i=e(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return Nf(n,i)},code(n){if(!this.options.decorations?.length)return;const r=e(this),i=Array.from(n.children).filter(u=>u.type==="element"&&u.tagName==="span");if(i.length!==r.converter.lines.length)throw new fe(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,d,h,f){const g=i[u];let y="",x=-1,v=-1;if(d===0&&(x=0),h===0&&(v=0),h===Number.POSITIVE_INFINITY&&(v=g.children.length),x===-1||v===-1)for(let b=0;b<g.children.length;b++)y+=Ua(g.children[b]),x===-1&&y.length===d&&(x=b+1),v===-1&&y.length===h&&(v=b+1);if(x===-1)throw new fe(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(v===-1)throw new fe(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const k=g.children.slice(x,v);if(!f.alwaysWrap&&k.length===g.children.length)l(g,f,"line");else if(!f.alwaysWrap&&k.length===1&&k[0].type==="element")l(k[0],f,"token");else{const b={type:"element",tagName:"span",properties:{},children:k};l(b,f,"wrapper"),g.children.splice(x,k.length,b)}}function s(u,d){i[u]=l(i[u],d,"line")}function l(u,d,h){const f=d.properties||{},g=d.transform||(y=>y);return u.tagName=d.tagName||"span",u.properties={...u.properties,...f,class:u.properties.class},d.properties?.class&&qa(u,d.properties.class),u=g(u,h)||u,u}const a=[],c=r.decorations.sort((u,d)=>d.start.offset-u.start.offset||u.end.offset-d.end.offset);for(const u of c){const{start:d,end:h}=u;if(d.line===h.line)o(d.line,d.character,h.character,u);else if(d.line<h.line){o(d.line,d.character,Number.POSITIVE_INFINITY,u);for(let f=d.line+1;f<h.line;f++)a.unshift(()=>s(f,u));o(h.line,0,h.character,u)}}a.forEach(u=>u())}}}function zf(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new fe(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){const i=t[r],o=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,s=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,l=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,a=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&n.start.offset===n.end.offset||s&&i.start.offset===i.end.offset)continue;throw new fe(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Ua(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(Ua).join(""):""}const Ff=[Bf()];function er(t){const e=jf(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Ff]}function jf(t){const e=[],n=[],r=[];for(const i of t)switch(i.enforce){case"pre":e.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:e,post:n,normal:r}}var yt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Mr={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function qf(t,e){const n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){const r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function rs(t){const e=t.shift();if(e==="2"){const n=t.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(e==="5"){const n=t.shift();if(n)return{type:"table",index:Number(n)}}}function Hf(t){const e=[];for(;t.length>0;){const n=t.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)Mr[r]&&e.push({type:"setDecoration",value:Mr[r]});else if(r<=29){const i=Mr[r-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:yt[r-30]}});else if(r===38){const i=rs(t);i&&e.push({type:"setForegroundColor",value:i})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:yt[r-40]}});else if(r===48){const i=rs(t);i&&e.push({type:"setBackgroundColor",value:i})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:yt[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:yt[r-100+8]}})}return e}function Gf(){let t=null,e=null,n=new Set;return{parse(r){const i=[];let o=0;do{const s=qf(r,o),l=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(l.length>0&&i.push({value:l,foreground:t,background:e,decorations:new Set(n)}),s.sequence){const a=Hf(s.sequence);for(const c of a)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of a)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}o=s.position}while(o<r.length);return i}}}var Uf={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Wf(t=Uf){function e(l){return t[l]}function n(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let c=0;c<yt.length;c++)r.push(e(yt[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let d=0;d<6;d++)r.push(n([l[c],l[u],l[d]]));let a=8;for(let c=0;c<24;c++,a+=10)r.push(n([a,a,a]));return r}function o(l){return i()[l]}function s(l){switch(l.type){case"named":return e(l.name);case"rgb":return n(l.rgb);case"table":return o(l.index)}}return{value:s}}const Kf={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Xf(t,e,n){const r=Jn(t,n),i=pr(e),o=Object.fromEntries(yt.map(a=>{const c=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,u=t.colors?.[c];return[a,u||Kf[a]]})),s=Wf(o),l=Gf();return i.map(a=>l.parse(a[0]).map(c=>{let u,d;c.decorations.has("reverse")?(u=c.background?s.value(c.background):t.bg,d=c.foreground?s.value(c.foreground):t.fg):(u=c.foreground?s.value(c.foreground):t.fg,d=c.background?s.value(c.background):void 0),u=ut(u,r),d=ut(d,r),c.decorations.has("dim")&&(u=Yf(u));let h=Ee.None;return c.decorations.has("bold")&&(h|=Ee.Bold),c.decorations.has("italic")&&(h|=Ee.Italic),c.decorations.has("underline")&&(h|=Ee.Underline),c.decorations.has("strikethrough")&&(h|=Ee.Strikethrough),{content:c.value,offset:a[1],color:u,bgColor:d,fontStyle:h}}))}function Yf(t){const e=t.match(/#([0-9a-f]{3,8})/i);if(e){const r=e[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],o=r[1],s=r[2],l=r[3],a=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${s}${s}${a}`}else if(r.length===3){const i=r[0],o=r[1],s=r[2];return`#${i}${i}${o}${o}${s}${s}80`}}}const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}function Ui(t,e,n={}){const{theme:r=t.getLoadedThemes()[0]}=n,i=t.resolveLangAlias(n.lang||"text");if(qi(i)||Hi(r))return pr(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:o,colorMap:s}=t.setTheme(r);if(i==="ansi")return Xf(o,e,n);const l=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new fe(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(o.name))throw new fe(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return Jf(e,l,o,s,n)}function Qf(...t){if(t.length===2)return hn(t[1]);const[e,n,r={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=r;if(qi(i)||Hi(o))throw new fe("Plain language does not have grammar state");if(i==="ansi")throw new fe("ANSI language does not have grammar state");const{theme:s,colorMap:l}=e.setTheme(o),a=e.getLanguage(i);return new Gt(Wi(n,a,s,l,r).stateStack,a.name,s.name)}function Jf(t,e,n,r,i){const o=Wi(t,e,n,r,i),s=new Gt(o.stateStack,e.name,n.name);return mr(o.tokens,s),o.tokens}function Wi(t,e,n,r,i){const o=Jn(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=i,a=pr(t);let c=i.grammarState?Vf(i.grammarState,n.name)??ui:i.grammarContextCode!=null?Wi(i.grammarContextCode,e,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ui,u=[];const d=[];for(let h=0,f=a.length;h<f;h++){const[g,y]=a[h];if(g===""){u=[],d.push([]);continue}if(s>0&&g.length>=s){u=[],d.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let x,v,k;i.includeExplanation&&(x=e.tokenizeLine(g,c,l),v=x.tokens,k=0);const b=e.tokenizeLine2(g,c,l),E=b.tokens.length/2;for(let P=0;P<E;P++){const V=b.tokens[2*P],q=P+1<E?b.tokens[2*P+2]:g.length;if(V===q)continue;const J=b.tokens[2*P+1],B=ut(r[zt.getForeground(J)],o),S=zt.getFontStyle(J),O={content:g.substring(V,q),offset:y+V,color:B,fontStyle:S};if(i.includeExplanation){const N=[];if(i.includeExplanation!=="scopeName")for(const I of n.settings){let z;switch(typeof I.scope){case"string":z=I.scope.split(/,/).map(W=>W.trim());break;case"object":z=I.scope;break;default:continue}N.push({settings:I,selectors:z.map(W=>W.split(/ /))})}O.explanation=[];let D=0;for(;V+D<q;){const I=v[k],z=g.substring(I.startIndex,I.endIndex);D+=z.length,O.explanation.push({content:z,scopes:i.includeExplanation==="scopeName"?Zf(I.scopes):eh(N,I.scopes)}),k+=1}}u.push(O)}d.push(u),u=[],c=b.ruleStack}return{tokens:d,stateStack:c}}function Zf(t){return t.map(e=>({scopeName:e}))}function eh(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const o=e[r];n[r]={scopeName:o,themeMatches:nh(t,o,e.slice(0,r))}}return n}function is(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function th(t,e,n){if(!is(t[t.length-1],e))return!1;let r=t.length-2,i=n.length-1;for(;r>=0&&i>=0;)is(t[r],n[i])&&(r-=1),i-=1;return r===-1}function nh(t,e,n){const r=[];for(const{selectors:i,settings:o}of t)for(const s of i)if(th(s,e,n)){r.push(o);break}return r}function Wa(t,e,n){const r=Object.entries(n.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),i=r.map(a=>{const c=Ui(t,e,{...n,theme:a.theme}),u=hn(c),d=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:c,state:u,theme:d}}),o=rh(...i.map(a=>a.tokens)),s=o[0].map((a,c)=>a.map((u,d)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),o.forEach((f,g)=>{const{content:y,explanation:x,offset:v,...k}=f[c][d];h.variants[r[g].color]=k}),h})),l=i[0].state?new Gt(Object.fromEntries(i.map(a=>[a.theme,a.state?.getInternalStack(a.theme)])),i[0].state.lang):void 0;return l&&mr(s,l),s}function rh(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const i=t.map(a=>a[r]),o=e.map(()=>[]);e.forEach((a,c)=>a.push(o[c]));const s=i.map(()=>0),l=i.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(c=>c.content.length));for(let c=0;c<n;c++){const u=l[c];u.content.length===a?(o[c].push(u),s[c]+=1,l[c]=i[c][s[c]]):(o[c].push({...u,content:u.content.slice(0,a)}),l[c]={...u,content:u.content.slice(a),offset:u.offset+a})}}}return e}function tr(t,e,n){let r,i,o,s,l,a;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,h=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,k)=>v.color===c?-1:k.color===c?1:0);if(h.length===0)throw new fe("`themes` option must not be empty");const f=Wa(t,e,n);if(a=hn(f),c&&Gi!==c&&!h.find(v=>v.color===c))throw new fe(`\`themes\` option must contain the defaultColor key \`${c}\``);const g=h.map(v=>t.getTheme(v.theme)),y=h.map(v=>v.color);o=f.map(v=>v.map(k=>Mf(k,y,u,c,d))),a&&mr(o,a);const x=h.map(v=>Jn(v.theme,n));i=os(h,g,x,u,c,"fg",d),r=os(h,g,x,u,c,"bg",d),s=`shiki-themes ${g.map(v=>v.name).join(" ")}`,l=c?void 0:[i,r].join(";")}else if("theme"in n){const c=Jn(n.theme,n);o=Ui(t,e,n);const u=t.getTheme(n.theme);r=ut(u.bg,c),i=ut(u.fg,c),s=u.name,a=hn(o)}else throw new fe("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:s,rootStyle:l,grammarState:a}}function os(t,e,n,r,i,o,s){return t.map((l,a)=>{const c=ut(e[a][o],n[a])||"inherit",u=`${r+l.color}${o==="bg"?"-bg":""}:${c}`;if(a===0&&i){if(i===Gi&&t.length>1){const d=t.findIndex(y=>y.color==="light"),h=t.findIndex(y=>y.color==="dark");if(d===-1||h===-1)throw new fe('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const f=ut(e[d][o],n[d])||"inherit",g=ut(e[h][o],n[h])||"inherit";return`light-dark(${f}, ${g});${u}`}return c}return s==="css-vars"?u:null}).filter(l=>!!l).join(";")}function nr(t,e,n,r={meta:{},options:n,codeToHast:(i,o)=>nr(t,i,o),codeToTokens:(i,o)=>tr(t,i,o)}){let i=e;for(const g of er(n))i=g.preprocess?.call(r,i,n)||i;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:c,grammarState:u}=tr(t,i,n);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;d===!0?o=oh(o):d==="never"&&(o=sh(o)),h&&(o=ah(o));const f={...r,get source(){return i}};for(const g of er(n))o=g.tokens?.call(f,o)||o;return ih(o,{...n,fg:s,bg:l,themeName:a,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},f,u)}function ih(t,e,n,r=hn(t)){const i=er(e),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),a!==!1&&a!=null&&(c.tabindex=a.toString());for(const[y,x]of Object.entries(e.meta||{}))y.startsWith("_")||(c[y]=x);let u={type:"element",tagName:"pre",properties:c,children:[],data:e.data},d={type:"element",tagName:"code",properties:{},children:o};const h=[],f={...n,structure:l,addClassToHast:qa,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return s},get pre(){return u},get code(){return d},get lines(){return h}};if(t.forEach((y,x)=>{x&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
71
71
|
`}));let v={type:"element",tagName:"span",properties:{class:"line"},children:[]},k=0;for(const b of y){let E={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]};const P=hi(b.htmlStyle||Zn(b));P&&(E.properties.style=P);for(const V of i)E=V?.span?.call(f,E,x+1,k,v,b)||E;l==="inline"?s.children.push(E):l==="classic"&&v.children.push(E),k+=b.content.length}if(l==="classic"){for(const b of i)v=b?.line?.call(f,v,x+1)||v;h.push(v),o.push(v)}else l==="inline"&&h.push(v)}),l==="classic"){for(const y of i)d=y?.code?.call(f,d)||d;u.children.push(d);for(const y of i)u=y?.pre?.call(f,u)||u;s.children.push(u)}else if(l==="inline"){const y=[];let x={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const b of s.children)b.type==="element"&&b.tagName==="br"?(y.push(x),x={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(b.type==="element"||b.type==="text")&&x.children.push(b);y.push(x);let k={type:"element",tagName:"code",properties:{},children:y};for(const b of i)k=b?.code?.call(f,k)||k;s.children=[];for(let b=0;b<k.children.length;b++){b>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const E=k.children[b];E.type==="element"&&s.children.push(...E.children)}}let g=s;for(const y of i)g=y?.root?.call(f,g)||g;return r&&mr(g,r),g}function oh(t){return t.map(e=>{const n=[];let r="",i;return e.forEach((o,s)=>{const a=!(o.fontStyle&&(o.fontStyle&Ee.Underline||o.fontStyle&Ee.Strikethrough));a&&o.content.match(/^\s+$/)&&e[s+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(a?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function sh(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,o,s]=r;if(!i&&!s)return n;const l=[{...n,offset:n.offset+i.length,content:o}];return i&&l.unshift({content:i,offset:n.offset}),s&&l.push({content:s,offset:n.offset+i.length+o.length}),l}))}function ah(t){return t.map(e=>{const n=[];for(const r of e){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],o=hi(i.htmlStyle||Zn(i)),s=hi(r.htmlStyle||Zn(r)),l=i.fontStyle&&(i.fontStyle&Ee.Underline||i.fontStyle&Ee.Strikethrough),a=r.fontStyle&&(r.fontStyle&Ee.Underline||r.fontStyle&Ee.Strikethrough);!l&&!a&&o===s?i.content+=r.content:n.push({...r})}return n})}const lh=Rf;function ch(t,e,n){const r={meta:{},options:n,codeToHast:(o,s)=>nr(t,o,s),codeToTokens:(o,s)=>tr(t,o,s)};let i=lh(nr(t,e,n,r));for(const o of er(n))i=o.postprocess?.call(r,i,n)||i;return i}const ss={light:"#333333",dark:"#bbbbbb"},as={light:"#fffffe",dark:"#1e1e1e"},ls="__shiki_resolved";function Ki(t){if(t?.[ls])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){const l=e.settings?e.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?ss.light:ss.dark),n||(n=e.type==="light"?as.light:as.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function s(l){if(o.has(l))return o.get(l);i+=1;const a=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${a}`]?s(l):(o.set(l,a),a)}e.settings=e.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!c)return l;const u={...l,settings:{...l.settings}};if(a){const d=s(l.settings.foreground);e.colorReplacements[d]=l.settings.foreground,u.settings.foreground=d}if(c){const d=s(l.settings.background);e.colorReplacements[d]=l.settings.background,u.settings.background=d}return u});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const a=s(e.colors[l]);e.colorReplacements[a]=e.colors[l],e.colors[l]=a}return Object.defineProperty(e,ls,{enumerable:!1,writable:!1,value:!0}),e}async function Ka(t){return Array.from(new Set((await Promise.all(t.filter(e=>!Fa(e)).map(async e=>await za(e).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Xa(t){return(await Promise.all(t.map(async n=>ja(n)?null:Ki(await za(n))))).filter(n=>!!n)}let uh=3;function dh(t,e=3){e>uh||console.trace(`[SHIKI DEPRECATE]: ${t}`)}let Dt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Ya(t,e){if(!e)return t;if(e[t]){const n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new Dt(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return t}class ph extends mm{constructor(e,n,r,i={}){super(e),this._resolver=e,this._themes=n,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=Ki(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=Wn.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=Ya(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,o])=>!o);if(r.length){const i=n.filter(([o,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(a=>r.map(([c])=>c).includes(a)):!1).filter(o=>!r.includes(o));throw new Dt(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of n)this._resolver.addLanguage(o);for(const[i,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const n=e.embeddedLanguages??e.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class mh{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let r=[];for(let i=1;i<=n.length;i++){const o=n.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Qt=0;function fh(t){Qt+=1,t.warnings!==!1&&Qt>=10&&Qt%10===0&&console.warn(`[Shiki] ${Qt} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new Dt("`engine` option is required for synchronous mode");const n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(Ki),i=new mh(t.engine,n),o=new ph(i,r,n,t.langAlias);let s;function l(b){return Ya(b,t.langAlias)}function a(b){v();const E=o.getGrammar(typeof b=="string"?b:b.name);if(!E)throw new Dt(`Language \`${b}\` not found, you may need to load it first`);return E}function c(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const E=o.getTheme(b);if(!E)throw new Dt(`Theme \`${b}\` not found, you may need to load it first`);return E}function u(b){v();const E=c(b);s!==b&&(o.setTheme(E),s=b);const P=o.getColorMap();return{theme:E,colorMap:P}}function d(){return v(),o.getLoadedThemes()}function h(){return v(),o.getLoadedLanguages()}function f(...b){v(),o.loadLanguages(b.flat(1))}async function g(...b){return f(await Ka(b))}function y(...b){v();for(const E of b.flat(1))o.loadTheme(E)}async function x(...b){return v(),y(await Xa(b))}function v(){if(e)throw new Dt("Shiki instance has been disposed")}function k(){e||(e=!0,o.dispose(),Qt-=1)}return{setTheme:u,getTheme:c,getLanguage:a,getLoadedThemes:d,getLoadedLanguages:h,resolveLangAlias:l,loadLanguage:g,loadLanguageSync:f,loadTheme:x,loadThemeSync:y,dispose:k,[Symbol.dispose]:k}}async function hh(t){t.engine||dh("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,n,r]=await Promise.all([Xa(t.themes||[]),Ka(t.langs||[]),t.engine]);return fh({...t,themes:e,langs:n,engine:r})}async function gh(t){const e=await hh(t);return{getLastGrammarState:(...n)=>Qf(e,...n),codeToTokensBase:(n,r)=>Ui(e,n,r),codeToTokensWithThemes:(n,r)=>Wa(e,n,r),codeToTokens:(n,r)=>tr(e,n,r),codeToHast:(n,r)=>nr(e,n,r),codeToHtml:(n,r)=>ch(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Qa(t){const e=t.langs,n=t.themes,r=t.engine;async function i(o){function s(d){if(typeof d=="string"){if(d=o.langAlias?.[d]||d,Fa(d))return[];const h=e[d];if(!h)throw new fe(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return h}return d}function l(d){if(ja(d))return"none";if(typeof d=="string"){const h=n[d];if(!h)throw new fe(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return h}return d}const a=(o.themes??[]).map(d=>l(d)),c=(o.langs??[]).map(d=>s(d)),u=await gh({engine:o.engine??r(),...o,themes:a,langs:c});return{...u,loadLanguage(...d){return u.loadLanguage(...d.map(s))},loadTheme(...d){return u.loadTheme(...d.map(l))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return i}function _h(t){let e;async function n(r={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{e=t({...r,themes:[],langs:[]});const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function Ja(t,e){const n=_h(t);async function r(i,o){const s=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),l=await e?.guessEmbeddedLanguages?.(i,o.lang,s);return l&&await s.loadLanguage(...l),s}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const Za=[{id:"abap",name:"ABAP",import:(()=>p(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>p(()=>import("./CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>p(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./DxNHbxmM.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>p(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>p(()=>import("./D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>p(()=>import("./Cn7AkR1O.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>p(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>p(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>p(()=>import("./Dv7Oe6Be.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>p(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>p(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>p(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>p(()=>import("./BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>p(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>p(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>p(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>p(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>p(()=>import("./CquLrc37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>p(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>p(()=>import("./VCDPK7BO.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>p(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>p(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>p(()=>import("./D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>p(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>p(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>p(()=>import("./BYV0-3_D.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>p(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>p(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>p(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>p(()=>import("./DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>p(()=>import("./fKv21gyL.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>p(()=>import("./COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>p(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>p(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>p(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>p(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>p(()=>import("./CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>p(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>p(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>p(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>p(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>p(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>p(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>p(()=>import("./DZu-aV2c.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>p(()=>import("./CpOuai2O.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>p(()=>import("./CeZK1NFH.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>p(()=>import("./C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>p(()=>import("./CGscLIrv.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>p(()=>import("./CuPHTKiy.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>p(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>p(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>p(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>p(()=>import("./B7c-h3xW.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>p(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>p(()=>import("./BTifaqeh.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>p(()=>import("./CenWIFCC.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>p(()=>import("./C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>p(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>p(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>p(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>p(()=>import("./CxGSJlkm.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>p(()=>import("./CSXwinHm.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>p(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>p(()=>import("./YqXBG_HV.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>p(()=>import("./BR5kRUq4.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>p(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>p(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>p(()=>import("./CxLEBnE3.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>p(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>p(()=>import("./CLZrNe3w.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>p(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>p(()=>import("./CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>p(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>p(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>p(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>p(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>p(()=>import("./DWrx1Km3.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>p(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>p(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>p(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>p(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>p(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>p(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>p(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>p(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>p(()=>import("./DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>p(()=>import("./DMwsHuHA.js"),__vite__mapDeps([63,64,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>p(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>p(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>p(()=>import("./mjskCLCv.js"),__vite__mapDeps([65,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>p(()=>import("./BtvRca6l.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>p(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>p(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>p(()=>import("./CnsnAmq5.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>p(()=>import("./C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>p(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./83L43bj1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>p(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./TsXTqZ29.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>p(()=>import("./mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>p(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>p(()=>import("./B93PlW-d.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>p(()=>import("./Ba13S78F.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>p(()=>import("./IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>p(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>p(()=>import("./BrzmwbiE.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>p(()=>import("./Dph4kLrZ.js"),__vite__mapDeps([69,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>p(()=>import("./DhmSosst.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>p(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>p(()=>import("./C-sUppwS.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>p(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>p(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>p(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>p(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>p(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>p(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>p(()=>import("./BzTr9Aqm.js"),__vite__mapDeps([71,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>p(()=>import("./DJjDtW9f.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>p(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>p(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>p(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>p(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>p(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>p(()=>import("./Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>p(()=>import("./Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>p(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>p(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./BLmx8bSh.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>p(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>p(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>p(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([74,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>p(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>p(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>p(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>p(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>p(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>p(()=>import("./DsumFeuD.js"),__vite__mapDeps([75,1,2,3,76]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>p(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>p(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>p(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>p(()=>import("./BhRPY-oY.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>p(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>p(()=>import("./DQwYQDb2.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>p(()=>import("./Bhrxn6JZ.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>p(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>p(()=>import("./CG8Ifv2g.js"),__vite__mapDeps([79,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>p(()=>import("./C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>p(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>p(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>p(()=>import("./BqTXFGrv.js"),__vite__mapDeps([80,81]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>p(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([82,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>p(()=>import("./BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>p(()=>import("./rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>p(()=>import("./Dzze3sRP.js"),__vite__mapDeps([83,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>p(()=>import("./BRZ36xJF.js"),__vite__mapDeps([84,85]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>p(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>p(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>p(()=>import("./DM8c43g1.js"),__vite__mapDeps([86,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>p(()=>import("./BH7IYjvW.js"),__vite__mapDeps([87,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./DYoxhk2S.js"),__vite__mapDeps([88,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>p(()=>import("./Dg5xB15N.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>p(()=>import("./CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>p(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>p(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>p(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>p(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>p(()=>import("./CZhp0h8q.js"),__vite__mapDeps([89,90,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>p(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>p(()=>import("./CQ8jqdy-.js"),__vite__mapDeps([64,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>p(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>p(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>p(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>p(()=>import("./RNghxpo_.js"),__vite__mapDeps([92,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>p(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>p(()=>import("./BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>p(()=>import("./DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>p(()=>import("./BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>p(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>p(()=>import("./D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>p(()=>import("./BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>p(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>p(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./DEthMvLe.js"),__vite__mapDeps([93,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./DqQDbK_p.js"),__vite__mapDeps([94,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./CW8IKDeL.js"),__vite__mapDeps([95,3,5,67,96,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>p(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>p(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>p(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>p(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>p(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>p(()=>import("./yv6CvBhz.js"),__vite__mapDeps([97,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>p(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>p(()=>import("./VOosw3JB.js"),[],import.meta.url))}],yh=Object.fromEntries(Za.map(t=>[t.id,t.import])),vh=Object.fromEntries(Za.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),bh={...yh,...vh},kh=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>p(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>p(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>p(()=>import("./CMjwMIkn.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>p(()=>import("./C47S-Tmv.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>p(()=>import("./CjoLj4QM.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>p(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>p(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>p(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>p(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>p(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>p(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>p(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>p(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>p(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>p(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>p(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>p(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>p(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>p(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>p(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>p(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>p(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>p(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>p(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>p(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>p(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>p(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>p(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>p(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>p(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>p(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>p(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>p(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>p(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>p(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>p(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>p(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>p(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>p(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>p(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>p(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>p(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>p(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>p(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>p(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>p(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>p(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>p(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>p(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>p(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>p(()=>import("./qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>p(()=>import("./DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>p(()=>import("./D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>p(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>p(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>p(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>p(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>p(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>p(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>p(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>p(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>p(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>p(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>p(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],el=Object.fromEntries(kh.map(t=>[t.id,t.import]));class Xi extends Error{constructor(e){super(e),this.name="ShikiError"}}function wh(){return 2147483648}function xh(){return typeof performance<"u"?performance.now():Date.now()}const Eh=(t,e)=>t+(e-t%e)%e;async function Th(t){let e,n;const r={};function i(f){n=f,r.HEAPU8=new Uint8Array(f),r.HEAPU32=new Uint32Array(f)}function o(f,g,y){r.HEAPU8.copyWithin(f,g,g+y)}function s(f){try{return e.grow(f-n.byteLength+65535>>>16),i(e.buffer),1}catch{}}function l(f){const g=r.HEAPU8.length;f=f>>>0;const y=wh();if(f>y)return!1;for(let x=1;x<=4;x*=2){let v=g*(1+.2/x);v=Math.min(v,f+100663296);const k=Math.min(y,Eh(Math.max(f,v),65536));if(s(k))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(f,g,y=1024){const x=g+y;let v=g;for(;f[v]&&!(v>=x);)++v;if(v-g>16&&f.buffer&&a)return a.decode(f.subarray(g,v));let k="";for(;g<v;){let b=f[g++];if(!(b&128)){k+=String.fromCharCode(b);continue}const E=f[g++]&63;if((b&224)===192){k+=String.fromCharCode((b&31)<<6|E);continue}const P=f[g++]&63;if((b&240)===224?b=(b&15)<<12|E<<6|P:b=(b&7)<<18|E<<12|P<<6|f[g++]&63,b<65536)k+=String.fromCharCode(b);else{const V=b-65536;k+=String.fromCharCode(55296|V>>10,56320|V&1023)}}return k}function u(f,g){return f?c(r.HEAPU8,f,g):""}const d={emscripten_get_now:xh,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function h(){const g=await t({env:d,wasi_snapshot_preview1:d});e=g.memory,i(e.buffer),Object.assign(r,g),r.UTF8ToString=u}return await h(),r}var Ah=Object.defineProperty,Sh=(t,e,n)=>e in t?Ah(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ge=(t,e,n)=>Sh(t,typeof e!="symbol"?e+"":e,n);let ye=null;function Rh(t){throw new Xi(t.UTF8ToString(t.getLastOnigError()))}class fr{constructor(e){ge(this,"utf16Length"),ge(this,"utf8Length"),ge(this,"utf16Value"),ge(this,"utf8Value"),ge(this,"utf16OffsetToUtf8"),ge(this,"utf8OffsetToUtf16");const n=e.length,r=fr._utf8ByteLength(e),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const l=new Uint8Array(r);let a=0;for(let c=0;c<n;c++){const u=e.charCodeAt(c);let d=u,h=!1;if(u>=55296&&u<=56319&&c+1<n){const f=e.charCodeAt(c+1);f>=56320&&f<=57343&&(d=(u-55296<<10)+65536|f-56320,h=!0)}i&&(o[c]=a,h&&(o[c+1]=a),d<=127?s[a+0]=c:d<=2047?(s[a+0]=c,s[a+1]=c):d<=65535?(s[a+0]=c,s[a+1]=c,s[a+2]=c):(s[a+0]=c,s[a+1]=c,s[a+2]=c,s[a+3]=c)),d<=127?l[a++]=d:d<=2047?(l[a++]=192|(d&1984)>>>6,l[a++]=128|(d&63)>>>0):d<=65535?(l[a++]=224|(d&61440)>>>12,l[a++]=128|(d&4032)>>>6,l[a++]=128|(d&63)>>>0):(l[a++]=240|(d&1835008)>>>18,l[a++]=128|(d&258048)>>>12,l[a++]=128|(d&4032)>>>6,l[a++]=128|(d&63)>>>0),h&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let n=0;for(let r=0,i=e.length;r<i;r++){const o=e.charCodeAt(r);let s=o,l=!1;if(o>=55296&&o<=56319&&r+1<i){const a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&r++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const hr=class Qe{constructor(e){if(ge(this,"id",++Qe.LAST_ID),ge(this,"_onigBinding"),ge(this,"content"),ge(this,"utf16Length"),ge(this,"utf8Length"),ge(this,"utf16OffsetToUtf8"),ge(this,"utf8OffsetToUtf16"),ge(this,"ptr"),!ye)throw new Xi("Must invoke loadWasm first.");this._onigBinding=ye,this.content=e;const n=new fr(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Qe._sharedPtrInUse?(Qe._sharedPtr||(Qe._sharedPtr=ye.omalloc(1e4)),Qe._sharedPtrInUse=!0,ye.HEAPU8.set(n.utf8Value,Qe._sharedPtr),this.ptr=Qe._sharedPtr):this.ptr=n.createString(ye)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===Qe._sharedPtr?Qe._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ge(hr,"LAST_ID",0);ge(hr,"_sharedPtr",0);ge(hr,"_sharedPtrInUse",!1);let tl=hr;class Lh{constructor(e){if(ge(this,"_onigBinding"),ge(this,"_ptr"),!ye)throw new Xi("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,a=e.length;l<a;l++){const c=new fr(e[l]);n[l]=c.createString(ye),r[l]=c.utf8Length}const i=ye.omalloc(4*e.length);ye.HEAPU32.set(n,i/4);const o=ye.omalloc(4*e.length);ye.HEAPU32.set(r,o/4);const s=ye.createOnigScanner(i,o,e.length);for(let l=0,a=e.length;l<a;l++)ye.ofree(n[l]);ye.ofree(o),ye.ofree(i),s===0&&Rh(ye),this._onigBinding=ye,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new tl(e);const o=this._findNextMatchSync(e,n,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,n,!1,i)}_findNextMatchSync(e,n,r,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const c=l[a++],u=l[a++],d=[];for(let h=0;h<u;h++){const f=e.convertUtf8OffsetToUtf16(l[a++]),g=e.convertUtf8OffsetToUtf16(l[a++]);d[h]={start:f,end:g,length:g-f}}return{index:c,captureIndices:d}}}function Ch(t){return typeof t.instantiator=="function"}function Ph(t){return typeof t.default=="function"}function Oh(t){return typeof t.data<"u"}function Ih(t){return typeof Response<"u"&&t instanceof Response}function Dh(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let Nn;function Nh(t){if(Nn)return Nn;async function e(){ye=await Th(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Ch(r)?r=await r.instantiator(n):Ph(r)?r=await r.default(n):(Oh(r)&&(r=r.data),Ih(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Mh(r)(n):r=await $h(r)(n):Dh(r)?r=await $r(r)(n):r instanceof WebAssembly.Module?r=await $r(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await $r(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Nn=e(),Nn}function $r(t){return e=>WebAssembly.instantiate(t,e)}function Mh(t){return e=>WebAssembly.instantiateStreaming(t,e)}function $h(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}async function nl(t){return t&&await Nh(t),{createScanner(e){return new Lh(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new tl(e)}}}const Vh=Qa({langs:bh,themes:el,engine:()=>nl(p(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Bh}=Ja(Vh,{guessEmbeddedLanguages:Ha});const{entries:rl,setPrototypeOf:cs,isFrozen:zh,getPrototypeOf:Fh,getOwnPropertyDescriptor:jh}=Object;let{freeze:Re,seal:ze,create:gi}=Object,{apply:_i,construct:yi}=typeof Reflect<"u"&&Reflect;Re||(Re=function(e){return e});ze||(ze=function(e){return e});_i||(_i=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return e.apply(n,i)});yi||(yi=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const Mn=Le(Array.prototype.forEach),qh=Le(Array.prototype.lastIndexOf),us=Le(Array.prototype.pop),Jt=Le(Array.prototype.push),Hh=Le(Array.prototype.splice),zn=Le(String.prototype.toLowerCase),Vr=Le(String.prototype.toString),Br=Le(String.prototype.match),Zt=Le(String.prototype.replace),Gh=Le(String.prototype.indexOf),Uh=Le(String.prototype.trim),Fe=Le(Object.prototype.hasOwnProperty),Ae=Le(RegExp.prototype.test),en=Wh(TypeError);function Le(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return _i(t,e,r)}}function Wh(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yi(t,n)}}function Q(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zn;cs&&cs(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(zh(e)||(e[r]=o),i=o)}t[i]=!0}return t}function Kh(t){for(let e=0;e<t.length;e++)Fe(t,e)||(t[e]=null);return t}function Je(t){const e=gi(null);for(const[n,r]of rl(t))Fe(t,n)&&(Array.isArray(r)?e[n]=Kh(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Je(r):e[n]=r);return e}function tn(t,e){for(;t!==null;){const r=jh(t,e);if(r){if(r.get)return Le(r.get);if(typeof r.value=="function")return Le(r.value)}t=Fh(t)}function n(){return null}return n}const ds=Re(["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"]),zr=Re(["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"]),Fr=Re(["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"]),Xh=Re(["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"]),jr=Re(["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"]),Yh=Re(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ps=Re(["#text"]),ms=Re(["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"]),qr=Re(["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"]),fs=Re(["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"]),$n=Re(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qh=ze(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jh=ze(/<%[\w\W]*|[\w\W]*%>/gm),Zh=ze(/\$\{[\w\W]*/gm),eg=ze(/^data-[\-\w.\u00B7-\uFFFF]+$/),tg=ze(/^aria-[\-\w]+$/),il=ze(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ng=ze(/^(?:\w+script|data):/i),rg=ze(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ol=ze(/^html$/i),ig=ze(/^[a-z][.\w]*(-[.\w]+)+$/i);var hs=Object.freeze({__proto__:null,ARIA_ATTR:tg,ATTR_WHITESPACE:rg,CUSTOM_ELEMENT:ig,DATA_ATTR:eg,DOCTYPE_NAME:ol,ERB_EXPR:Jh,IS_ALLOWED_URI:il,IS_SCRIPT_OR_DATA:ng,MUSTACHE_EXPR:Qh,TMPLIT_EXPR:Zh});const nn={element:1,text:3,progressingInstruction:7,comment:8,document:9},og=function(){return typeof window>"u"?null:window},sg=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},gs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function sl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:og();const e=H=>sl(H);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==nn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:a,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,g=a.prototype,y=tn(g,"cloneNode"),x=tn(g,"remove"),v=tn(g,"nextSibling"),k=tn(g,"childNodes"),b=tn(g,"parentNode");if(typeof s=="function"){const H=n.createElement("template");H.content&&H.content.ownerDocument&&(n=H.content.ownerDocument)}let E,P="";const{implementation:V,createNodeIterator:q,createDocumentFragment:J,getElementsByTagName:B}=n,{importNode:S}=r;let O=gs();e.isSupported=typeof rl=="function"&&typeof b=="function"&&V&&V.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:D,TMPLIT_EXPR:I,DATA_ATTR:z,ARIA_ATTR:W,IS_SCRIPT_OR_DATA:ee,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:oe}=hs;let{IS_ALLOWED_URI:Oe}=hs,le=null;const gr=Q({},[...ds,...zr,...Fr,...jr,...ps]);let be=null;const Yi=Q({},[...ms,...qr,...fs,...$n]);let de=Object.seal(gi(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}})),Ut=null,_r=null;const Tt=Object.seal(gi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qi=!0,yr=!0,Ji=!1,Zi=!0,At=!1,wn=!0,ft=!1,vr=!1,br=!1,St=!1,xn=!1,En=!1,eo=!0,to=!1;const cl="user-content-";let kr=!0,Wt=!1,Rt={},We=null;const wr=Q({},["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 no=null;const ro=Q({},["audio","video","img","source","image","track"]);let xr=null;const io=Q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Tn="http://www.w3.org/1998/Math/MathML",An="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let Lt=it,Er=!1,Tr=null;const ul=Q({},[Tn,An,it],Vr);let Sn=Q({},["mi","mo","mn","ms","mtext"]),Rn=Q({},["annotation-xml"]);const dl=Q({},["title","style","font","a","script"]);let Kt=null;const pl=["application/xhtml+xml","text/html"],ml="text/html";let he=null,Ct=null;const fl=n.createElement("form"),oo=function(_){return _ instanceof RegExp||_ instanceof Function},Ar=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ct&&Ct===_)){if((!_||typeof _!="object")&&(_={}),_=Je(_),Kt=pl.indexOf(_.PARSER_MEDIA_TYPE)===-1?ml:_.PARSER_MEDIA_TYPE,he=Kt==="application/xhtml+xml"?Vr:zn,le=Fe(_,"ALLOWED_TAGS")?Q({},_.ALLOWED_TAGS,he):gr,be=Fe(_,"ALLOWED_ATTR")?Q({},_.ALLOWED_ATTR,he):Yi,Tr=Fe(_,"ALLOWED_NAMESPACES")?Q({},_.ALLOWED_NAMESPACES,Vr):ul,xr=Fe(_,"ADD_URI_SAFE_ATTR")?Q(Je(io),_.ADD_URI_SAFE_ATTR,he):io,no=Fe(_,"ADD_DATA_URI_TAGS")?Q(Je(ro),_.ADD_DATA_URI_TAGS,he):ro,We=Fe(_,"FORBID_CONTENTS")?Q({},_.FORBID_CONTENTS,he):wr,Ut=Fe(_,"FORBID_TAGS")?Q({},_.FORBID_TAGS,he):Je({}),_r=Fe(_,"FORBID_ATTR")?Q({},_.FORBID_ATTR,he):Je({}),Rt=Fe(_,"USE_PROFILES")?_.USE_PROFILES:!1,Qi=_.ALLOW_ARIA_ATTR!==!1,yr=_.ALLOW_DATA_ATTR!==!1,Ji=_.ALLOW_UNKNOWN_PROTOCOLS||!1,Zi=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,At=_.SAFE_FOR_TEMPLATES||!1,wn=_.SAFE_FOR_XML!==!1,ft=_.WHOLE_DOCUMENT||!1,St=_.RETURN_DOM||!1,xn=_.RETURN_DOM_FRAGMENT||!1,En=_.RETURN_TRUSTED_TYPE||!1,br=_.FORCE_BODY||!1,eo=_.SANITIZE_DOM!==!1,to=_.SANITIZE_NAMED_PROPS||!1,kr=_.KEEP_CONTENT!==!1,Wt=_.IN_PLACE||!1,Oe=_.ALLOWED_URI_REGEXP||il,Lt=_.NAMESPACE||it,Sn=_.MATHML_TEXT_INTEGRATION_POINTS||Sn,Rn=_.HTML_INTEGRATION_POINTS||Rn,de=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&oo(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(de.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&oo(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(de.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),At&&(yr=!1),xn&&(St=!0),Rt&&(le=Q({},ps),be=[],Rt.html===!0&&(Q(le,ds),Q(be,ms)),Rt.svg===!0&&(Q(le,zr),Q(be,qr),Q(be,$n)),Rt.svgFilters===!0&&(Q(le,Fr),Q(be,qr),Q(be,$n)),Rt.mathMl===!0&&(Q(le,jr),Q(be,fs),Q(be,$n))),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?Tt.tagCheck=_.ADD_TAGS:(le===gr&&(le=Je(le)),Q(le,_.ADD_TAGS,he))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?Tt.attributeCheck=_.ADD_ATTR:(be===Yi&&(be=Je(be)),Q(be,_.ADD_ATTR,he))),_.ADD_URI_SAFE_ATTR&&Q(xr,_.ADD_URI_SAFE_ATTR,he),_.FORBID_CONTENTS&&(We===wr&&(We=Je(We)),Q(We,_.FORBID_CONTENTS,he)),_.ADD_FORBID_CONTENTS&&(We===wr&&(We=Je(We)),Q(We,_.ADD_FORBID_CONTENTS,he)),kr&&(le["#text"]=!0),ft&&Q(le,["html","head","body"]),le.table&&(Q(le,["tbody"]),delete Ut.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=_.TRUSTED_TYPES_POLICY,P=E.createHTML("")}else E===void 0&&(E=sg(f,i)),E!==null&&typeof P=="string"&&(P=E.createHTML(""));Re&&Re(_),Ct=_}},so=Q({},[...zr,...Fr,...Xh]),ao=Q({},[...jr,...Yh]),hl=function(_){let C=b(_);(!C||!C.tagName)&&(C={namespaceURI:Lt,tagName:"template"});const F=zn(_.tagName),ce=zn(C.tagName);return Tr[_.namespaceURI]?_.namespaceURI===An?C.namespaceURI===it?F==="svg":C.namespaceURI===Tn?F==="svg"&&(ce==="annotation-xml"||Sn[ce]):!!so[F]:_.namespaceURI===Tn?C.namespaceURI===it?F==="math":C.namespaceURI===An?F==="math"&&Rn[ce]:!!ao[F]:_.namespaceURI===it?C.namespaceURI===An&&!Rn[ce]||C.namespaceURI===Tn&&!Sn[ce]?!1:!ao[F]&&(dl[F]||!so[F]):!!(Kt==="application/xhtml+xml"&&Tr[_.namespaceURI]):!1},Ke=function(_){Jt(e.removed,{element:_});try{b(_).removeChild(_)}catch{x(_)}},ht=function(_,C){try{Jt(e.removed,{attribute:C.getAttributeNode(_),from:C})}catch{Jt(e.removed,{attribute:null,from:C})}if(C.removeAttribute(_),_==="is")if(St||xn)try{Ke(C)}catch{}else try{C.setAttribute(_,"")}catch{}},lo=function(_){let C=null,F=null;if(br)_="<remove></remove>"+_;else{const pe=Br(_,/^[\r\n\t ]+/);F=pe&&pe[0]}Kt==="application/xhtml+xml"&&Lt===it&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const ce=E?E.createHTML(_):_;if(Lt===it)try{C=new h().parseFromString(ce,Kt)}catch{}if(!C||!C.documentElement){C=V.createDocument(Lt,"template",null);try{C.documentElement.innerHTML=Er?P:ce}catch{}}const we=C.body||C.documentElement;return _&&F&&we.insertBefore(n.createTextNode(F),we.childNodes[0]||null),Lt===it?B.call(C,ft?"html":"body")[0]:ft?C.documentElement:we},co=function(_){return q.call(_.ownerDocument||_,_,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Sr=function(_){return _ instanceof d&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof u)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},uo=function(_){return typeof l=="function"&&_ instanceof l};function ot(H,_,C){Mn(H,F=>{F.call(e,_,C,Ct)})}const po=function(_){let C=null;if(ot(O.beforeSanitizeElements,_,null),Sr(_))return Ke(_),!0;const F=he(_.nodeName);if(ot(O.uponSanitizeElement,_,{tagName:F,allowedTags:le}),wn&&_.hasChildNodes()&&!uo(_.firstElementChild)&&Ae(/<[/\w!]/g,_.innerHTML)&&Ae(/<[/\w!]/g,_.textContent)||_.nodeType===nn.progressingInstruction||wn&&_.nodeType===nn.comment&&Ae(/<[/\w]/g,_.data))return Ke(_),!0;if(!(Tt.tagCheck instanceof Function&&Tt.tagCheck(F))&&(!le[F]||Ut[F])){if(!Ut[F]&&fo(F)&&(de.tagNameCheck instanceof RegExp&&Ae(de.tagNameCheck,F)||de.tagNameCheck instanceof Function&&de.tagNameCheck(F)))return!1;if(kr&&!We[F]){const ce=b(_)||_.parentNode,we=k(_)||_.childNodes;if(we&&ce){const pe=we.length;for(let Ie=pe-1;Ie>=0;--Ie){const st=y(we[Ie],!0);st.__removalCount=(_.__removalCount||0)+1,ce.insertBefore(st,v(_))}}}return Ke(_),!0}return _ instanceof a&&!hl(_)||(F==="noscript"||F==="noembed"||F==="noframes")&&Ae(/<\/no(script|embed|frames)/i,_.innerHTML)?(Ke(_),!0):(At&&_.nodeType===nn.text&&(C=_.textContent,Mn([N,D,I],ce=>{C=Zt(C,ce," ")}),_.textContent!==C&&(Jt(e.removed,{element:_.cloneNode()}),_.textContent=C)),ot(O.afterSanitizeElements,_,null),!1)},mo=function(_,C,F){if(eo&&(C==="id"||C==="name")&&(F in n||F in fl))return!1;if(!(yr&&!_r[C]&&Ae(z,C))){if(!(Qi&&Ae(W,C))){if(!(Tt.attributeCheck instanceof Function&&Tt.attributeCheck(C,_))){if(!be[C]||_r[C]){if(!(fo(_)&&(de.tagNameCheck instanceof RegExp&&Ae(de.tagNameCheck,_)||de.tagNameCheck instanceof Function&&de.tagNameCheck(_))&&(de.attributeNameCheck instanceof RegExp&&Ae(de.attributeNameCheck,C)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(C,_))||C==="is"&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&Ae(de.tagNameCheck,F)||de.tagNameCheck instanceof Function&&de.tagNameCheck(F))))return!1}else if(!xr[C]){if(!Ae(Oe,Zt(F,Z,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&_!=="script"&&Gh(F,"data:")===0&&no[_])){if(!(Ji&&!Ae(ee,Zt(F,Z,"")))){if(F)return!1}}}}}}}return!0},fo=function(_){return _!=="annotation-xml"&&Br(_,oe)},ho=function(_){ot(O.beforeSanitizeAttributes,_,null);const{attributes:C}=_;if(!C||Sr(_))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0};let ce=C.length;for(;ce--;){const we=C[ce],{name:pe,namespaceURI:Ie,value:st}=we,Pt=he(pe),Rr=st;let ke=pe==="value"?Rr:Uh(Rr);if(F.attrName=Pt,F.attrValue=ke,F.keepAttr=!0,F.forceKeepAttr=void 0,ot(O.uponSanitizeAttribute,_,F),ke=F.attrValue,to&&(Pt==="id"||Pt==="name")&&(ht(pe,_),ke=cl+ke),wn&&Ae(/((--!?|])>)|<\/(style|title|textarea)/i,ke)){ht(pe,_);continue}if(Pt==="attributename"&&Br(ke,"href")){ht(pe,_);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){ht(pe,_);continue}if(!Zi&&Ae(/\/>/i,ke)){ht(pe,_);continue}At&&Mn([N,D,I],_o=>{ke=Zt(ke,_o," ")});const go=he(_.nodeName);if(!mo(go,Pt,ke)){ht(pe,_);continue}if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ie)switch(f.getAttributeType(go,Pt)){case"TrustedHTML":{ke=E.createHTML(ke);break}case"TrustedScriptURL":{ke=E.createScriptURL(ke);break}}if(ke!==Rr)try{Ie?_.setAttributeNS(Ie,pe,ke):_.setAttribute(pe,ke),Sr(_)?Ke(_):us(e.removed)}catch{ht(pe,_)}}ot(O.afterSanitizeAttributes,_,null)},gl=function H(_){let C=null;const F=co(_);for(ot(O.beforeSanitizeShadowDOM,_,null);C=F.nextNode();)ot(O.uponSanitizeShadowNode,C,null),po(C),ho(C),C.content instanceof o&&H(C.content);ot(O.afterSanitizeShadowDOM,_,null)};return e.sanitize=function(H){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,F=null,ce=null,we=null;if(Er=!H,Er&&(H="<!-->"),typeof H!="string"&&!uo(H))if(typeof H.toString=="function"){if(H=H.toString(),typeof H!="string")throw en("dirty is not a string, aborting")}else throw en("toString is not a function");if(!e.isSupported)return H;if(vr||Ar(_),e.removed=[],typeof H=="string"&&(Wt=!1),Wt){if(H.nodeName){const st=he(H.nodeName);if(!le[st]||Ut[st])throw en("root node is forbidden and cannot be sanitized in-place")}}else if(H instanceof l)C=lo("<!---->"),F=C.ownerDocument.importNode(H,!0),F.nodeType===nn.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?C=F:C.appendChild(F);else{if(!St&&!At&&!ft&&H.indexOf("<")===-1)return E&&En?E.createHTML(H):H;if(C=lo(H),!C)return St?null:En?P:""}C&&br&&Ke(C.firstChild);const pe=co(Wt?H:C);for(;ce=pe.nextNode();)po(ce),ho(ce),ce.content instanceof o&&gl(ce.content);if(Wt)return H;if(St){if(xn)for(we=J.call(C.ownerDocument);C.firstChild;)we.appendChild(C.firstChild);else we=C;return(be.shadowroot||be.shadowrootmode)&&(we=S.call(r,we,!0)),we}let Ie=ft?C.outerHTML:C.innerHTML;return ft&&le["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Ae(ol,C.ownerDocument.doctype.name)&&(Ie="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
72
|
-
`+Ie),At&&Mn([N,D,I],st=>{Ie=Zt(Ie,st," ")}),E&&En?E.createHTML(Ie):Ie},e.setConfig=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ar(H),vr=!0},e.clearConfig=function(){Ct=null,vr=!1},e.isValidAttribute=function(H,_,C){Ct||Ar({});const F=he(H),ce=he(_);return mo(F,ce,C)},e.addHook=function(H,_){typeof _=="function"&&Jt(O[H],_)},e.removeHook=function(H,_){if(_!==void 0){const C=qh(O[H],_);return C===-1?void 0:Hh(O[H],C,1)[0]}return us(O[H])},e.removeHooks=function(H){O[H]=[]},e.removeAllHooks=function(){O=gs()},e}var ag=sl();const lg={class:"prd-viewer"},cg={key:0,class:"flex items-center justify-center py-8"},ug=["innerHTML"],dg=U({__name:"Viewer",props:{content:{}},setup(t){const e=t,n=j(""),r=j(!0),i={ADD_TAGS:["style"],ADD_ATTR:["style","class","target","rel"]},o=new ie.Renderer;o.link=({href:c,title:u,text:d})=>{const h=u?` title="${u}"`:"";return`<a href="${c}"${h} target="_blank" rel="noopener noreferrer">${d}</a>`};async function s(c,u){try{return await Bh(c,{lang:u||"text",themes:{light:"github-light",dark:"github-dark"}})}catch{return`<pre><code class="language-${u}">${l(c)}</code></pre>`}}function l(c){return c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function a(c){const u=/```(\w*)\n([\s\S]*?)```/g,d=[];let h=0;const f=c.replace(u,(v,k,b)=>{const E=`CODEBLOCK${h++}PLACEHOLDER`;return d.push({placeholder:E,lang:k||"text",code:b.trim()}),E});ie.setOptions({renderer:o,gfm:!0,breaks:!1});let g=await ie.parse(f);const y=d.map(async({placeholder:v,lang:k,code:b})=>{const E=await s(b,k);return{placeholder:v,highlighted:E}}),x=await Promise.all(y);for(const{placeholder:v,highlighted:k}of x)g=g.replace(`<p>${v}</p>`,k),g=g.replace(v,k);return ag.sanitize(g,i)}return Te(()=>e.content,async c=>{if(c){r.value=!0;try{n.value=await a(c)}finally{r.value=!1}}},{immediate:!0}),(c,u)=>(w(),A("div",lg,[m(r)?(w(),A("div",cg,[...u[0]||(u[0]=[T("div",{class:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"},null,-1)])])):(w(),A("div",{key:1,class:"prose prose-sm dark:prose-invert max-w-none",innerHTML:m(n)},null,8,ug))]))}}),pg=Object.assign(dg,{__name:"PrdViewer"}),mg=U({__name:"Card",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card",class:ue(m(Ve)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class))},[ne(n.$slots,"default")],2))}}),fg=Object.assign(mg,{__name:"UiCard"}),hg=U({__name:"CardAction",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-action",class:ue(m(Ve)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(hg,{__name:"UiCardAction"});const gg=U({__name:"CardContent",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-content",class:ue(m(Ve)("px-6",e.class))},[ne(n.$slots,"default")],2))}}),_g=Object.assign(gg,{__name:"UiCardContent"}),yg=U({__name:"CardDescription",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("p",{"data-slot":"card-description",class:ue(m(Ve)("text-muted-foreground text-sm",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(yg,{__name:"UiCardDescription"});const vg=U({__name:"CardFooter",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-footer",class:ue(m(Ve)("flex items-center px-6 [.border-t]:pt-6",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(vg,{__name:"UiCardFooter"});const bg=U({__name:"CardHeader",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-header",class:ue(m(Ve)("@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",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(bg,{__name:"UiCardHeader"});const kg=U({__name:"CardTitle",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("h3",{"data-slot":"card-title",class:ue(m(Ve)("leading-none font-semibold",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(kg,{__name:"UiCardTitle"});const wg={class:"flex items-center justify-between gap-2 mb-1.5"},xg={class:"text-sm font-medium leading-snug"},Eg={class:"text-muted-foreground"},Tg={key:0,class:"mt-2 flex items-center gap-1.5 text-xs text-destructive"},Ag=U({__name:"Card",props:{task:{},blockedBy:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,i=$(()=>{switch(n.task.category){case"setup":return{label:"Setup",variant:"secondary"};case"feature":return{label:"Feature",variant:"default"};case"integration":return{label:"Integration",variant:"outline"};case"testing":return{label:"Testing",variant:"secondary"};case"documentation":return{label:"Docs",variant:"secondary"};default:return{label:n.task.category,variant:"secondary"}}}),o=$(()=>{switch(n.task.priority){case"critical":return{icon:yo,class:"text-destructive",label:"Critical"};case"high":return{icon:yo,class:"text-orange-500",label:"High"};case"medium":return{icon:Kr,class:"text-muted-foreground",label:"Medium"};case"low":return{icon:rc,class:"text-muted-foreground",label:"Low"};default:return{icon:Kr,class:"text-muted-foreground",label:"Unknown"}}}),s=$(()=>n.blockedBy&&n.blockedBy.length>0),l=$(()=>{const d=n.task.id.match(/(\d+)$/)?.[1];return d?parseInt(d,10):0}),a=$(()=>n.blockedBy?.length??0);function c(){r("click",n.task)}return(u,d)=>(w(),K(m(fg),{class:ue(["cursor-pointer py-0 gap-0 transition-all hover:shadow-md hover:border-primary/50",{"opacity-60":m(s)}]),onClick:c},{default:M(()=>[R(m(_g),{class:"p-2.5"},{default:M(()=>[T("div",wg,[R(m(Nt),{variant:m(i).variant,class:"text-xs"},{default:M(()=>[re(G(m(i).label),1)]),_:1},8,["variant"]),(w(),K(kt(m(o).icon),{class:ue(["size-4",m(o).class]),title:m(o).label},null,8,["class","title"]))]),T("h4",xg,[T("span",Eg,"#"+G(m(l)),1),re(" "+G(t.task.title),1)]),m(s)?(w(),A("div",Tg,[R(m(cn),{class:"size-3.5"}),T("span",null,"Blocked by "+G(m(a))+" task"+G(m(a)===1?"":"s"),1)])):Y("",!0)]),_:1})]),_:1},8,["class"]))}}),Sg=Object.assign(Ag,{__name:"TasksCard"}),Rg={class:"flex h-full min-w-56 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-card"},Lg={class:"text-sm font-medium"},Cg={class:"ml-auto text-xs text-muted-foreground"},Pg={class:"scrollbar-hide min-h-0 flex-1 overflow-y-auto p-1.5"},Og={class:"space-y-1.5"},Ig={key:0,class:"py-8 text-center text-sm text-muted-foreground"},Dg=U({__name:"Column",props:{status:{},tasks:{},blockedByMap:{}},emits:["taskClick"],setup(t,{emit:e}){const n=t,r=e,i=$(()=>{switch(n.status){case"pending":return{label:"Pending",icon:an,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"};case"in_progress":return{label:"In Progress",icon:sc,headerClass:"bg-blue-500/10",iconClass:"text-blue-500"};case"completed":return{label:"Completed",icon:Wr,headerClass:"bg-green-500/10",iconClass:"text-green-500"};default:return{label:n.status,icon:an,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"}}});function o(l){return n.blockedByMap?.get(l)??[]}function s(l){r("taskClick",l)}return(l,a)=>{const c=Sg;return w(),A("div",Rg,[T("div",{class:ue(["flex items-center gap-2 rounded-t-lg border-b border-border px-3 py-2",m(i).headerClass])},[(w(),K(kt(m(i).icon),{class:ue(["size-4",m(i).iconClass])},null,8,["class"])),T("h3",Lg,G(m(i).label),1),T("span",Cg,G(t.tasks.length),1)],2),T("div",Pg,[T("div",Og,[(w(!0),A(ve,null,He(t.tasks,u=>(w(),K(c,{key:u.id,task:u,"blocked-by":o(u.id),onClick:s},null,8,["task","blocked-by"]))),128)),t.tasks.length===0?(w(),A("div",Ig," No tasks ")):Y("",!0)])])])}}}),Ng=Object.assign($s(Dg,[["__scopeId","data-v-a1317eba"]]),{__name:"TasksColumn"}),Mg={class:"flex h-full gap-3 overflow-x-auto pb-2"},$g=U({__name:"Board",props:{tasks:{}},emits:["taskClick"],setup(t,{emit:e}){const n=t,r=e;function i(d){const f=d.id.match(/(\d+)$/)?.[1];return f?parseInt(f,10):0}const o=$(()=>n.tasks.filter(d=>d.status==="pending").sort((d,h)=>i(d)-i(h))),s=$(()=>n.tasks.filter(d=>d.status==="in_progress").sort((d,h)=>i(d)-i(h))),l=$(()=>n.tasks.filter(d=>d.status==="completed").sort((d,h)=>{const f=d.completedAt?new Date(d.completedAt).getTime():0;return(h.completedAt?new Date(h.completedAt).getTime():0)-f})),a=$(()=>{const d=new Map,h=new Set(l.value.map(f=>f.id));for(const f of n.tasks)if(f.dependencies.length>0){const g=f.dependencies.filter(y=>!h.has(y));g.length>0&&d.set(f.id,g)}return d}),c=[{status:"pending",tasks:o},{status:"in_progress",tasks:s},{status:"completed",tasks:l}];function u(d){r("taskClick",d)}return(d,h)=>{const f=Ng;return w(),A("div",Mg,[(w(),A(ve,null,He(c,g=>R(f,{key:g.status,status:g.status,tasks:g.tasks.value,"blocked-by-map":m(a),onTaskClick:u},null,8,["status","tasks","blocked-by-map"])),64))])}}}),Vg=Object.assign($g,{__name:"TasksBoard"}),Bg={class:"space-y-0.5 p-2"},zg=["onClick"],Fg={class:"min-w-0 flex-1"},jg=["title"],qg={class:"text-muted-foreground"},Hg={class:"mt-1 flex h-1.5 w-full overflow-hidden rounded-full bg-muted"},Gg={class:"flex shrink-0 items-center gap-1 text-xs"},Ug={key:0,class:"text-green-600 dark:text-green-400"},Wg={key:1,class:"text-red-600 dark:text-red-400"},Kg={key:0,class:"py-4 text-center text-sm text-muted-foreground"},Xg=U({__name:"ChangesMinimap",props:{files:{},selectedFile:{}},emits:["select"],setup(t,{emit:e}){const n=t,r=e,i=$(()=>n.files.length===0?1:Math.max(...n.files.map(u=>u.additions+u.deletions),1));function o(u){switch(u){case"added":return{icon:mc,class:"text-green-600 dark:text-green-400"};case"deleted":return{icon:fc,class:"text-red-600 dark:text-red-400"};case"renamed":return{icon:wo,class:"text-blue-600 dark:text-blue-400"};default:return{icon:pc,class:"text-yellow-600 dark:text-yellow-400"}}}function s(u){const d=u.additions+u.deletions;if(d===0)return{additions:0,deletions:0,total:0};const h=d/i.value*100,f=u.additions/d*h,g=u.deletions/d*h;return{additions:f,deletions:g,total:h}}function l(u){return u.status==="renamed"&&u.oldPath?`${u.oldPath} → ${u.path}`:u.path}function a(u){return u.split("/").pop()||u}function c(u){r("select",u)}return(u,d)=>(w(),A("div",Bg,[(w(!0),A(ve,null,He(t.files,h=>(w(),A("button",{key:h.path,class:ue(["group flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted/50",{"bg-muted":t.selectedFile===h.path}]),onClick:f=>c(h.path)},[(w(),K(kt(o(h.status).icon),{class:ue(["size-4 shrink-0",o(h.status).class])},null,8,["class"])),T("div",Fg,[T("div",{class:ue(["truncate text-xs",{"font-medium":t.selectedFile===h.path}]),title:l(h)},[h.status==="renamed"&&h.oldPath?(w(),A(ve,{key:0},[T("span",qg,G(a(h.oldPath)),1),R(m(wo),{class:"mx-1 inline size-3 text-muted-foreground"}),T("span",null,G(a(h.path)),1)],64)):(w(),A(ve,{key:1},[re(G(h.path),1)],64))],10,jg),T("div",Hg,[s(h).additions>0?(w(),A("div",{key:0,class:"bg-green-500 dark:bg-green-400",style:un({width:`${s(h).additions}%`})},null,4)):Y("",!0),s(h).deletions>0?(w(),A("div",{key:1,class:"bg-red-500 dark:bg-red-400",style:un({width:`${s(h).deletions}%`})},null,4)):Y("",!0)])]),T("div",Gg,[h.additions>0?(w(),A("span",Ug," +"+G(h.additions),1)):Y("",!0),h.deletions>0?(w(),A("span",Wg," -"+G(h.deletions),1)):Y("",!0)])],10,zg))),128)),t.files.length===0?(w(),A("div",Kg," No files changed ")):Y("",!0)]))}}),Yg=Object.assign(Xg,{__name:"GitChangesMinimap"}),al=[{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./DxNHbxmM.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"c",name:"C",import:(()=>p(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"css",name:"CSS",import:(()=>p(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"html",name:"HTML",import:(()=>p(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>p(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>p(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"less",name:"Less",import:(()=>p(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./83L43bj1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./TsXTqZ29.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"php",name:"PHP",import:(()=>p(()=>import("./DJjDtW9f.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./BLmx8bSh.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>p(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./DYoxhk2S.js"),__vite__mapDeps([88,2,11,3,12]),import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>p(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./DEthMvLe.js"),__vite__mapDeps([93,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./DqQDbK_p.js"),__vite__mapDeps([94,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./CW8IKDeL.js"),__vite__mapDeps([95,3,5,67,96,12,2]),import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>p(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./Buea-lGh.js"),[],import.meta.url))}],Qg=Object.fromEntries(al.map(t=>[t.id,t.import])),Jg=Object.fromEntries(al.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),Zg={...Qg,...Jg},e_=Qa({langs:Zg,themes:el,engine:()=>nl(p(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:_s}=Ja(e_,{guessEmbeddedLanguages:Ha}),t_={class:"diff-viewer"},n_={key:0,class:"flex items-center justify-center py-8"},r_={key:1,class:"flex flex-col items-center justify-center gap-3 py-12 text-muted-foreground"},i_={key:2,class:"flex flex-col items-center justify-center gap-3 py-12 text-muted-foreground"},o_={key:3,class:"diff-container"},s_={class:"flex flex-col items-center justify-center gap-3 border-b border-border bg-muted/30 py-6"},a_={class:"text-center"},l_={class:"text-sm text-muted-foreground"},c_={key:4,class:"diff-container"},u_={class:"full-file-view"},d_={class:"diff-gutter"},p_={class:"line-number"},m_={class:"diff-content"},f_=["innerHTML"],h_={key:5,class:"diff-container"},g_={class:"diff-toolbar"},__={class:"diff-split"},y_={class:"diff-column-content"},v_={key:0,class:"diff-separator-half"},b_={class:"diff-gutter"},k_={key:0,class:"line-number"},w_={class:"diff-content"},x_=["innerHTML"],E_={class:"diff-column-content"},T_={key:0,class:"diff-separator-half"},A_={class:"diff-gutter"},S_={key:0,class:"line-number"},R_={class:"diff-content"},L_=["innerHTML"],ys=1e4,C_=U({__name:"DiffViewer",props:{hunks:{},filePath:{},binary:{type:Boolean},oldPath:{},fileContent:{},showFullFile:{type:Boolean},isLoadingContent:{type:Boolean}},setup(t){const e=t,n=j(!1),r=j(!0),i=j(null),o=j(null),s=j(!1);function l(S){if(!r.value||s.value)return;const O=S.target;o.value&&(s.value=!0,o.value.scrollLeft=O.scrollLeft,requestAnimationFrame(()=>{s.value=!1}))}function a(S){if(!r.value||s.value)return;const O=S.target;i.value&&(s.value=!0,i.value.scrollLeft=O.scrollLeft,requestAnimationFrame(()=>{s.value=!1}))}const c=$(()=>{let S=0;for(const O of e.hunks)S+=O.lines.length;return S}),u=$(()=>c.value>ys),d=$(()=>e.hunks.length===0&&!e.binary),h=$(()=>{const S=new Set,O=new Set;for(const N of e.hunks)for(const D of N.lines)D.type==="add"&&D.newNumber!==void 0&&S.add(D.newNumber),D.type==="remove"&&D.oldNumber!==void 0&&O.add(D.oldNumber);return{added:S,removed:O}}),f=$(()=>e.fileContent?e.fileContent.split(`
|
|
72
|
+
`+Ie),At&&Mn([N,D,I],st=>{Ie=Zt(Ie,st," ")}),E&&En?E.createHTML(Ie):Ie},e.setConfig=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ar(H),vr=!0},e.clearConfig=function(){Ct=null,vr=!1},e.isValidAttribute=function(H,_,C){Ct||Ar({});const F=he(H),ce=he(_);return mo(F,ce,C)},e.addHook=function(H,_){typeof _=="function"&&Jt(O[H],_)},e.removeHook=function(H,_){if(_!==void 0){const C=qh(O[H],_);return C===-1?void 0:Hh(O[H],C,1)[0]}return us(O[H])},e.removeHooks=function(H){O[H]=[]},e.removeAllHooks=function(){O=gs()},e}var ag=sl();const lg={class:"prd-viewer"},cg={key:0,class:"flex items-center justify-center py-8"},ug=["innerHTML"],dg=U({__name:"Viewer",props:{content:{}},setup(t){const e=t,n=j(""),r=j(!0),i={ADD_TAGS:["style"],ADD_ATTR:["style","class","target","rel"]},o=new ie.Renderer;o.link=({href:c,title:u,text:d})=>{const h=u?` title="${u}"`:"";return`<a href="${c}"${h} target="_blank" rel="noopener noreferrer">${d}</a>`};async function s(c,u){try{return await Bh(c,{lang:u||"text",themes:{light:"github-light",dark:"github-dark"}})}catch{return`<pre><code class="language-${u}">${l(c)}</code></pre>`}}function l(c){return c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function a(c){const u=/```(\w*)\n([\s\S]*?)```/g,d=[];let h=0;const f=c.replace(u,(v,k,b)=>{const E=`CODEBLOCK${h++}PLACEHOLDER`;return d.push({placeholder:E,lang:k||"text",code:b.trim()}),E});ie.setOptions({renderer:o,gfm:!0,breaks:!0});let g=await ie.parse(f);const y=d.map(async({placeholder:v,lang:k,code:b})=>{const E=await s(b,k);return{placeholder:v,highlighted:E}}),x=await Promise.all(y);for(const{placeholder:v,highlighted:k}of x)g=g.replace(`<p>${v}</p>`,k),g=g.replace(v,k);return ag.sanitize(g,i)}return Te(()=>e.content,async c=>{if(c){r.value=!0;try{n.value=await a(c)}finally{r.value=!1}}},{immediate:!0}),(c,u)=>(w(),A("div",lg,[m(r)?(w(),A("div",cg,[...u[0]||(u[0]=[T("div",{class:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"},null,-1)])])):(w(),A("div",{key:1,class:"prose prose-sm dark:prose-invert max-w-none",innerHTML:m(n)},null,8,ug))]))}}),pg=Object.assign(dg,{__name:"PrdViewer"}),mg=U({__name:"Card",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card",class:ue(m(Ve)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class))},[ne(n.$slots,"default")],2))}}),fg=Object.assign(mg,{__name:"UiCard"}),hg=U({__name:"CardAction",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-action",class:ue(m(Ve)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(hg,{__name:"UiCardAction"});const gg=U({__name:"CardContent",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-content",class:ue(m(Ve)("px-6",e.class))},[ne(n.$slots,"default")],2))}}),_g=Object.assign(gg,{__name:"UiCardContent"}),yg=U({__name:"CardDescription",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("p",{"data-slot":"card-description",class:ue(m(Ve)("text-muted-foreground text-sm",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(yg,{__name:"UiCardDescription"});const vg=U({__name:"CardFooter",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-footer",class:ue(m(Ve)("flex items-center px-6 [.border-t]:pt-6",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(vg,{__name:"UiCardFooter"});const bg=U({__name:"CardHeader",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("div",{"data-slot":"card-header",class:ue(m(Ve)("@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",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(bg,{__name:"UiCardHeader"});const kg=U({__name:"CardTitle",props:{class:{}},setup(t){const e=t;return(n,r)=>(w(),A("h3",{"data-slot":"card-title",class:ue(m(Ve)("leading-none font-semibold",e.class))},[ne(n.$slots,"default")],2))}});Object.assign(kg,{__name:"UiCardTitle"});const wg={class:"flex items-center justify-between gap-2 mb-1.5"},xg={class:"text-sm font-medium leading-snug"},Eg={class:"text-muted-foreground"},Tg={key:0,class:"mt-2 flex items-center gap-1.5 text-xs text-destructive"},Ag=U({__name:"Card",props:{task:{},blockedBy:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,i=$(()=>{switch(n.task.category){case"setup":return{label:"Setup",variant:"secondary"};case"feature":return{label:"Feature",variant:"default"};case"integration":return{label:"Integration",variant:"outline"};case"testing":return{label:"Testing",variant:"secondary"};case"documentation":return{label:"Docs",variant:"secondary"};default:return{label:n.task.category,variant:"secondary"}}}),o=$(()=>{switch(n.task.priority){case"critical":return{icon:yo,class:"text-destructive",label:"Critical"};case"high":return{icon:yo,class:"text-orange-500",label:"High"};case"medium":return{icon:Kr,class:"text-muted-foreground",label:"Medium"};case"low":return{icon:rc,class:"text-muted-foreground",label:"Low"};default:return{icon:Kr,class:"text-muted-foreground",label:"Unknown"}}}),s=$(()=>n.blockedBy&&n.blockedBy.length>0),l=$(()=>{const d=n.task.id.match(/(\d+)$/)?.[1];return d?parseInt(d,10):0}),a=$(()=>n.blockedBy?.length??0);function c(){r("click",n.task)}return(u,d)=>(w(),K(m(fg),{class:ue(["cursor-pointer py-0 gap-0 transition-all hover:shadow-md hover:border-primary/50",{"opacity-60":m(s)}]),onClick:c},{default:M(()=>[R(m(_g),{class:"p-2.5"},{default:M(()=>[T("div",wg,[R(m(Nt),{variant:m(i).variant,class:"text-xs"},{default:M(()=>[re(G(m(i).label),1)]),_:1},8,["variant"]),(w(),K(kt(m(o).icon),{class:ue(["size-4",m(o).class]),title:m(o).label},null,8,["class","title"]))]),T("h4",xg,[T("span",Eg,"#"+G(m(l)),1),re(" "+G(t.task.title),1)]),m(s)?(w(),A("div",Tg,[R(m(cn),{class:"size-3.5"}),T("span",null,"Blocked by "+G(m(a))+" task"+G(m(a)===1?"":"s"),1)])):Y("",!0)]),_:1})]),_:1},8,["class"]))}}),Sg=Object.assign(Ag,{__name:"TasksCard"}),Rg={class:"flex h-full min-w-56 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-card"},Lg={class:"text-sm font-medium"},Cg={class:"ml-auto text-xs text-muted-foreground"},Pg={class:"scrollbar-hide min-h-0 flex-1 overflow-y-auto p-1.5"},Og={class:"space-y-1.5"},Ig={key:0,class:"py-8 text-center text-sm text-muted-foreground"},Dg=U({__name:"Column",props:{status:{},tasks:{},blockedByMap:{}},emits:["taskClick"],setup(t,{emit:e}){const n=t,r=e,i=$(()=>{switch(n.status){case"pending":return{label:"Pending",icon:an,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"};case"in_progress":return{label:"In Progress",icon:sc,headerClass:"bg-blue-500/10",iconClass:"text-blue-500"};case"completed":return{label:"Completed",icon:Wr,headerClass:"bg-green-500/10",iconClass:"text-green-500"};default:return{label:n.status,icon:an,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"}}});function o(l){return n.blockedByMap?.get(l)??[]}function s(l){r("taskClick",l)}return(l,a)=>{const c=Sg;return w(),A("div",Rg,[T("div",{class:ue(["flex items-center gap-2 rounded-t-lg border-b border-border px-3 py-2",m(i).headerClass])},[(w(),K(kt(m(i).icon),{class:ue(["size-4",m(i).iconClass])},null,8,["class"])),T("h3",Lg,G(m(i).label),1),T("span",Cg,G(t.tasks.length),1)],2),T("div",Pg,[T("div",Og,[(w(!0),A(ve,null,He(t.tasks,u=>(w(),K(c,{key:u.id,task:u,"blocked-by":o(u.id),onClick:s},null,8,["task","blocked-by"]))),128)),t.tasks.length===0?(w(),A("div",Ig," No tasks ")):Y("",!0)])])])}}}),Ng=Object.assign($s(Dg,[["__scopeId","data-v-a1317eba"]]),{__name:"TasksColumn"}),Mg={class:"flex h-full gap-3 overflow-x-auto pb-2"},$g=U({__name:"Board",props:{tasks:{}},emits:["taskClick"],setup(t,{emit:e}){const n=t,r=e;function i(d){const f=d.id.match(/(\d+)$/)?.[1];return f?parseInt(f,10):0}const o=$(()=>n.tasks.filter(d=>d.status==="pending").sort((d,h)=>i(d)-i(h))),s=$(()=>n.tasks.filter(d=>d.status==="in_progress").sort((d,h)=>i(d)-i(h))),l=$(()=>n.tasks.filter(d=>d.status==="completed").sort((d,h)=>{const f=d.completedAt?new Date(d.completedAt).getTime():0;return(h.completedAt?new Date(h.completedAt).getTime():0)-f})),a=$(()=>{const d=new Map,h=new Set(l.value.map(f=>f.id));for(const f of n.tasks)if(f.dependencies.length>0){const g=f.dependencies.filter(y=>!h.has(y));g.length>0&&d.set(f.id,g)}return d}),c=[{status:"pending",tasks:o},{status:"in_progress",tasks:s},{status:"completed",tasks:l}];function u(d){r("taskClick",d)}return(d,h)=>{const f=Ng;return w(),A("div",Mg,[(w(),A(ve,null,He(c,g=>R(f,{key:g.status,status:g.status,tasks:g.tasks.value,"blocked-by-map":m(a),onTaskClick:u},null,8,["status","tasks","blocked-by-map"])),64))])}}}),Vg=Object.assign($g,{__name:"TasksBoard"}),Bg={class:"space-y-0.5 p-2"},zg=["onClick"],Fg={class:"min-w-0 flex-1"},jg=["title"],qg={class:"text-muted-foreground"},Hg={class:"mt-1 flex h-1.5 w-full overflow-hidden rounded-full bg-muted"},Gg={class:"flex shrink-0 items-center gap-1 text-xs"},Ug={key:0,class:"text-green-600 dark:text-green-400"},Wg={key:1,class:"text-red-600 dark:text-red-400"},Kg={key:0,class:"py-4 text-center text-sm text-muted-foreground"},Xg=U({__name:"ChangesMinimap",props:{files:{},selectedFile:{}},emits:["select"],setup(t,{emit:e}){const n=t,r=e,i=$(()=>n.files.length===0?1:Math.max(...n.files.map(u=>u.additions+u.deletions),1));function o(u){switch(u){case"added":return{icon:mc,class:"text-green-600 dark:text-green-400"};case"deleted":return{icon:fc,class:"text-red-600 dark:text-red-400"};case"renamed":return{icon:wo,class:"text-blue-600 dark:text-blue-400"};default:return{icon:pc,class:"text-yellow-600 dark:text-yellow-400"}}}function s(u){const d=u.additions+u.deletions;if(d===0)return{additions:0,deletions:0,total:0};const h=d/i.value*100,f=u.additions/d*h,g=u.deletions/d*h;return{additions:f,deletions:g,total:h}}function l(u){return u.status==="renamed"&&u.oldPath?`${u.oldPath} → ${u.path}`:u.path}function a(u){return u.split("/").pop()||u}function c(u){r("select",u)}return(u,d)=>(w(),A("div",Bg,[(w(!0),A(ve,null,He(t.files,h=>(w(),A("button",{key:h.path,class:ue(["group flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted/50",{"bg-muted":t.selectedFile===h.path}]),onClick:f=>c(h.path)},[(w(),K(kt(o(h.status).icon),{class:ue(["size-4 shrink-0",o(h.status).class])},null,8,["class"])),T("div",Fg,[T("div",{class:ue(["truncate text-xs",{"font-medium":t.selectedFile===h.path}]),title:l(h)},[h.status==="renamed"&&h.oldPath?(w(),A(ve,{key:0},[T("span",qg,G(a(h.oldPath)),1),R(m(wo),{class:"mx-1 inline size-3 text-muted-foreground"}),T("span",null,G(a(h.path)),1)],64)):(w(),A(ve,{key:1},[re(G(h.path),1)],64))],10,jg),T("div",Hg,[s(h).additions>0?(w(),A("div",{key:0,class:"bg-green-500 dark:bg-green-400",style:un({width:`${s(h).additions}%`})},null,4)):Y("",!0),s(h).deletions>0?(w(),A("div",{key:1,class:"bg-red-500 dark:bg-red-400",style:un({width:`${s(h).deletions}%`})},null,4)):Y("",!0)])]),T("div",Gg,[h.additions>0?(w(),A("span",Ug," +"+G(h.additions),1)):Y("",!0),h.deletions>0?(w(),A("span",Wg," -"+G(h.deletions),1)):Y("",!0)])],10,zg))),128)),t.files.length===0?(w(),A("div",Kg," No files changed ")):Y("",!0)]))}}),Yg=Object.assign(Xg,{__name:"GitChangesMinimap"}),al=[{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./DxNHbxmM.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"c",name:"C",import:(()=>p(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"css",name:"CSS",import:(()=>p(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"html",name:"HTML",import:(()=>p(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>p(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>p(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"less",name:"Less",import:(()=>p(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./83L43bj1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./TsXTqZ29.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"php",name:"PHP",import:(()=>p(()=>import("./DJjDtW9f.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./BLmx8bSh.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>p(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./DYoxhk2S.js"),__vite__mapDeps([88,2,11,3,12]),import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>p(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./DEthMvLe.js"),__vite__mapDeps([93,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./DqQDbK_p.js"),__vite__mapDeps([94,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./CW8IKDeL.js"),__vite__mapDeps([95,3,5,67,96,12,2]),import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>p(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./Buea-lGh.js"),[],import.meta.url))}],Qg=Object.fromEntries(al.map(t=>[t.id,t.import])),Jg=Object.fromEntries(al.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),Zg={...Qg,...Jg},e_=Qa({langs:Zg,themes:el,engine:()=>nl(p(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:_s}=Ja(e_,{guessEmbeddedLanguages:Ha}),t_={class:"diff-viewer"},n_={key:0,class:"flex items-center justify-center py-8"},r_={key:1,class:"flex flex-col items-center justify-center gap-3 py-12 text-muted-foreground"},i_={key:2,class:"flex flex-col items-center justify-center gap-3 py-12 text-muted-foreground"},o_={key:3,class:"diff-container"},s_={class:"flex flex-col items-center justify-center gap-3 border-b border-border bg-muted/30 py-6"},a_={class:"text-center"},l_={class:"text-sm text-muted-foreground"},c_={key:4,class:"diff-container"},u_={class:"full-file-view"},d_={class:"diff-gutter"},p_={class:"line-number"},m_={class:"diff-content"},f_=["innerHTML"],h_={key:5,class:"diff-container"},g_={class:"diff-toolbar"},__={class:"diff-split"},y_={class:"diff-column-content"},v_={key:0,class:"diff-separator-half"},b_={class:"diff-gutter"},k_={key:0,class:"line-number"},w_={class:"diff-content"},x_=["innerHTML"],E_={class:"diff-column-content"},T_={key:0,class:"diff-separator-half"},A_={class:"diff-gutter"},S_={key:0,class:"line-number"},R_={class:"diff-content"},L_=["innerHTML"],ys=1e4,C_=U({__name:"DiffViewer",props:{hunks:{},filePath:{},binary:{type:Boolean},oldPath:{},fileContent:{},showFullFile:{type:Boolean},isLoadingContent:{type:Boolean}},setup(t){const e=t,n=j(!1),r=j(!0),i=j(null),o=j(null),s=j(!1);function l(S){if(!r.value||s.value)return;const O=S.target;o.value&&(s.value=!0,o.value.scrollLeft=O.scrollLeft,requestAnimationFrame(()=>{s.value=!1}))}function a(S){if(!r.value||s.value)return;const O=S.target;i.value&&(s.value=!0,i.value.scrollLeft=O.scrollLeft,requestAnimationFrame(()=>{s.value=!1}))}const c=$(()=>{let S=0;for(const O of e.hunks)S+=O.lines.length;return S}),u=$(()=>c.value>ys),d=$(()=>e.hunks.length===0&&!e.binary),h=$(()=>{const S=new Set,O=new Set;for(const N of e.hunks)for(const D of N.lines)D.type==="add"&&D.newNumber!==void 0&&S.add(D.newNumber),D.type==="remove"&&D.oldNumber!==void 0&&O.add(D.oldNumber);return{added:S,removed:O}}),f=$(()=>e.fileContent?e.fileContent.split(`
|
|
73
73
|
`):[]);function g(S){const O=S.split(".").pop()?.toLowerCase()||"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",vue:"vue",svelte:"svelte",py:"python",rb:"ruby",rs:"rust",go:"go",java:"java",kt:"kotlin",swift:"swift",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",php:"php",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",xml:"xml",md:"markdown",mdx:"mdx",sh:"bash",bash:"bash",zsh:"bash",fish:"fish",ps1:"powershell",sql:"sql",graphql:"graphql",gql:"graphql",dockerfile:"dockerfile",makefile:"makefile"}[O]||"text"}const y=$(()=>g(e.filePath)),x=j(new Map),v=j(!0),k=$(()=>{const S=[];for(let O=0;O<e.hunks.length;O++){const N=e.hunks[O];O>0&&S.push({type:"separator",hunkIndex:O});const D=N.lines;let I=0;for(;I<D.length;){const z=D[I];if(z.type==="context")S.push({type:"line",pair:{id:`${O}-${I}`,left:{lineNum:z.oldNumber,content:z.content,type:"context"},right:{lineNum:z.newNumber,content:z.content,type:"context"}}}),I++;else if(z.type==="remove"){const W=[],ee=[];for(;I<D.length&&D[I].type==="remove";)W.push(D[I]),I++;for(;I<D.length&&D[I].type==="add";)ee.push(D[I]),I++;const Z=Math.max(W.length,ee.length);for(let oe=0;oe<Z;oe++){const Oe=W[oe],le=ee[oe];S.push({type:"line",pair:{id:`${O}-${I-Z+oe}`,left:Oe?{lineNum:Oe.oldNumber,content:Oe.content,type:"remove"}:{content:"",type:"empty"},right:le?{lineNum:le.newNumber,content:le.content,type:"add"}:{content:"",type:"empty"}}})}}else z.type==="add"&&S.push({type:"line",pair:{id:`${O}-${I}`,left:{content:"",type:"empty"},right:{lineNum:z.newNumber,content:z.content,type:"add"}}}),I++}}return S});async function b(S,O){if(!S.trim())return"";try{const D=(await _s(S,{lang:O,themes:{light:"catppuccin-latte",dark:"catppuccin-mocha"}})).match(/<code[^>]*>([\s\S]*?)<\/code>/);return D?D[1]||"":P(S)}catch{return P(S)}}async function E(S,O){if(!S)return[];try{const D=(await _s(S,{lang:O,themes:{light:"catppuccin-latte",dark:"catppuccin-mocha"}})).match(/<code[^>]*>([\s\S]*?)<\/code>/);return!D||!D[1]?S.split(`
|
|
74
74
|
`).map(P):D[1].split(`
|
|
75
75
|
`)}catch{return S.split(`
|