zdashboard 2.8.3 → 2.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/cli.js +3 -2
  2. package/dist/cli.js.map +1 -1
  3. package/dist/web/assets/BatchView-pClKtVa8.js +2 -0
  4. package/dist/web/assets/{CheckpointViewer-DJ9yKpMh.js → CheckpointViewer-CAbXbMti.js} +1 -1
  5. package/dist/web/assets/{CodeViewer-C_3Ms2Ri.js → CodeViewer-Cs0mG1h6.js} +1 -1
  6. package/dist/web/assets/{DependencyGraph-hsA8ZmBD.js → DependencyGraph-Czdg00AM.js} +1 -1
  7. package/dist/web/assets/{FileIcon-a612-H-j.js → FileIcon-1KBdrfw3.js} +1 -1
  8. package/dist/web/assets/{FilterPills-BVAToHeu.js → FilterPills-CCubROoX.js} +1 -1
  9. package/dist/web/assets/{ProgressBar-YEvCsTOC.js → ProgressBar-DVfldtzq.js} +1 -1
  10. package/dist/web/assets/{Sidebar-CmJ0RfM6.js → Sidebar-D4sJtPI_.js} +1 -1
  11. package/dist/web/assets/{Sidebar-CYYR-the.js → Sidebar-DE0UBp9b.js} +1 -1
  12. package/dist/web/assets/{SingleChangeView-CCpmUD7z.js → SingleChangeView-BYcaGOyR.js} +1 -1
  13. package/dist/web/assets/{ViewHeader-C_euf5UJ.js → ViewHeader-DPfbaJmK.js} +1 -1
  14. package/dist/web/assets/Workspace-B7MhdnwY.js +2 -0
  15. package/dist/web/assets/{Workspace-Coooyssr.js → Workspace-CAcrVL-m.js} +1 -1
  16. package/dist/web/assets/{Workspace-DT0JWcsX.js → Workspace-CvG5lIPT.js} +1 -1
  17. package/dist/web/assets/{Workspace-BLaqqsJU.js → Workspace-DWHHR42N.js} +1 -1
  18. package/dist/web/assets/{Workspace-C70CR7yx.js → Workspace-cXLWoMNL.js} +1 -1
  19. package/dist/web/assets/{index-C_16tmIU.js → index-Co7MWSFf.js} +2 -2
  20. package/dist/web/assets/{index-DvE_prho.js → index-D6EJRHBV.js} +1 -1
  21. package/dist/web/assets/{usePluginData-pzvMTyoN.js → usePluginData-IoRqReIJ.js} +1 -1
  22. package/dist/web/assets/{web-CF8JCQ-n.js → web-BZSTgldm.js} +2 -2
  23. package/dist/web/assets/{web-D-wmMJ1D.js → web-CX1FEFxC.js} +2 -2
  24. package/dist/web/assets/{web-qAmlbo_B.js → web-DLwxO4fO.js} +2 -2
  25. package/dist/web/assets/{web-DwYp5Vde.js → web-DOEmlI8d.js} +2 -2
  26. package/dist/web/assets/{web-BXIb25pa.js → web-DxbVzGf3.js} +2 -2
  27. package/dist/web/index.html +1 -1
  28. package/package.json +1 -1
  29. package/dist/web/assets/BatchView-D9TMypRX.js +0 -2
  30. package/dist/web/assets/Workspace-NqbDbmhC.js +0 -2
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-D-wmMJ1D.js","assets/client-Cw4K1Nx3.js","assets/web-CF8JCQ-n.js","assets/web-DwYp5Vde.js","assets/web-qAmlbo_B.js","assets/web-BXIb25pa.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-CX1FEFxC.js","assets/client-Cw4K1Nx3.js","assets/web-BZSTgldm.js","assets/web-DOEmlI8d.js","assets/web-DLwxO4fO.js","assets/web-DxbVzGf3.js"])))=>i.map(i=>d[i]);
2
2
  var jO=Object.defineProperty;var kb=e=>{throw TypeError(e)};var AO=(e,t,n)=>t in e?jO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var TV=(e,t,n)=>AO(e,typeof t!="symbol"?t+"":t,n),xb=(e,t,n)=>t.has(e)||kb("Cannot "+n);var Se=(e,t,n)=>(xb(e,t,"read from private field"),n?n.call(e):t.get(e)),Vb=(e,t,n)=>t.has(e)?kb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),DV=(e,t,n,r)=>(xb(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function BO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Sce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function CZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var EZ={exports:{}},cV={},LZ={exports:{}},G={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -7813,4 +7813,4 @@ Error generating stack: `+i.message+`
7813
7813
  `)},Vie=0,$0=[];function Cie(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(Vie++)[0],i=h.useState(NB)[0],l=h.useRef(e);h.useEffect(function(){l.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=Woe([e.lockRef.current],(e.shards||[]).map(dZ),!0).filter(Boolean);return w.forEach(function(H){return H.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(H){return H.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=h.useCallback(function(w,H){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!l.current.allowPinchZoom;var g=uo(w),y=n.current,M="deltaX"in w?w.deltaX:y[0]-g[0],k="deltaY"in w?w.deltaY:y[1]-g[1],V,x=w.target,C=Math.abs(M)>Math.abs(k)?"h":"v";if("touches"in w&&C==="h"&&x.type==="range")return!1;var E=window.getSelection(),j=E&&E.anchorNode,Z=j?j===x||j.contains(x):!1;if(Z)return!1;var P=sZ(C,x);if(!P)return!0;if(P?V=C:(V=C==="v"?"h":"v",P=sZ(C,x)),!P)return!1;if(!r.current&&"changedTouches"in w&&(M||k)&&(r.current=V),!V)return!0;var A=r.current||V;return Hie(A,H,w,A==="h"?M:k)},[]),s=h.useCallback(function(w){var H=w;if(!(!$0.length||$0[$0.length-1]!==i)){var g="deltaY"in H?vZ(H):uo(H),y=t.current.filter(function(V){return V.name===H.type&&(V.target===H.target||H.target===V.shadowParent)&&kie(V.delta,g)})[0];if(y&&y.should){H.cancelable&&H.preventDefault();return}if(!y){var M=(l.current.shards||[]).map(dZ).filter(Boolean).filter(function(V){return V.contains(H.target)}),k=M.length>0?c(H,M[0]):!l.current.noIsolation;k&&H.cancelable&&H.preventDefault()}}},[]),v=h.useCallback(function(w,H,g,y){var M={name:w,delta:H,target:g,should:y,shadowParent:Eie(g)};t.current.push(M),setTimeout(function(){t.current=t.current.filter(function(k){return k!==M})},1)},[]),p=h.useCallback(function(w){n.current=uo(w),r.current=void 0},[]),d=h.useCallback(function(w){v(w.type,vZ(w),w.target,c(w,e.lockRef.current))},[]),u=h.useCallback(function(w){v(w.type,uo(w),w.target,c(w,e.lockRef.current))},[]);h.useEffect(function(){return $0.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:u}),document.addEventListener("wheel",s,U0),document.addEventListener("touchmove",s,U0),document.addEventListener("touchstart",p,U0),function(){$0=$0.filter(function(w){return w!==i}),document.removeEventListener("wheel",s,U0),document.removeEventListener("touchmove",s,U0),document.removeEventListener("touchstart",p,U0)}},[]);var m=e.removeScrollBar,z=e.inert;return h.createElement(h.Fragment,null,z?h.createElement(i,{styles:xie(o)}):null,m?h.createElement(pie,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Eie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Lie=hie(FB,Cie);var WB=h.forwardRef(function(e,t){return h.createElement(BV,j2({},e,{ref:t,sideCar:Lie}))});WB.classNames=BV.classNames;var bie=Object.defineProperty,he=(e,t)=>bie(e,"name",{value:t,configurable:!0}),Sie=["Enter"," "],Zie=["ArrowDown","PageUp","Home"],GB=["ArrowUp","PageDown","End"],Iie=[...Zie,...GB],OV="Menu",[FE,jie,Aie]=rb(OV),[O0,XB]=Ot(OV,[Aie,SV,BB]),db=SV(),KB=BB(),[Bie,Pa]=O0(OV),[Oie,mb]=O0(OV),Pie=he(e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:l=!0}=e,c=db(t),[s,v]=h.useState(null),p=h.useRef(!1),d=J2(i),u=ob(o);return h.useEffect(()=>{const m=he(()=>{p.current=!0,document.addEventListener("pointerdown",z,{capture:!0,once:!0}),document.addEventListener("pointermove",z,{capture:!0,once:!0})},"handleKeyDown"),z=he(()=>p.current=!1,"handlePointer");return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",z,{capture:!0}),document.removeEventListener("pointermove",z,{capture:!0})}},[]),h.useEffect(()=>{if(!n)return;const m=he(()=>d(!1),"handleBlur");return window.addEventListener("blur",m),()=>window.removeEventListener("blur",m)},[n,d]),f.jsx(IA,{...c,children:f.jsx(Bie,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:v,children:f.jsx(Oie,{scope:t,onClose:h.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:p,dir:u,modal:l,children:r})})})},"Menu"),qie=h.forwardRef(he(function(t,n){const{__scopeMenu:r,...o}=t,i=db(r);return f.jsx(jA,{...i,...o,ref:n})},"MenuAnchor")),QB="MenuPortal",[Rie,Tie]=O0(QB,{forceMount:void 0}),Die=he(e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Pa(QB,t);return f.jsx(Rie,{scope:t,forceMount:n,children:f.jsx(IV,{present:n||i.open,children:f.jsx(BA,{asChild:!0,container:o,children:r})})})},"MenuPortal"),Ct="MenuContent",[Fie,YB]=O0(Ct),Nie=h.forwardRef(he(function(t,n){const r=Tie(Ct,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,l=Pa(Ct,t.__scopeMenu),c=mb(Ct,t.__scopeMenu);return f.jsx(FE.Provider,{scope:t.__scopeMenu,children:f.jsx(IV,{present:o||l.open,children:f.jsx(FE.Slot,{scope:t.__scopeMenu,children:c.modal?f.jsx(Uie,{...i,ref:n}):f.jsx($ie,{...i,ref:n})})})})},"MenuContent")),Uie=h.forwardRef(he(function(t,n){const r=Pa(Ct,t.__scopeMenu),o=h.useRef(null),i=ze(n,o);return h.useEffect(()=>{const l=o.current;if(l)return _oe(l)},[]),f.jsx(JB,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Q(t.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),$ie=h.forwardRef(he(function(t,n){const r=Pa(Ct,t.__scopeMenu);return f.jsx(JB,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),_ie=St("MenuContent.ScrollLock"),JB=h.forwardRef(he(function(t,n){const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:v,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:m,onDismiss:z,disableOutsideScroll:w,...H}=t,g=Pa(Ct,r),y=mb(Ct,r),M=db(r),k=KB(r),V=jie(r),[x,C]=h.useState(null),E=h.useRef(null),j=ze(n,E,g.onContentChange),Z=h.useRef(0),P=h.useRef(""),A=h.useRef(0),T=h.useRef(null),R=h.useRef("right"),K=h.useRef(0),N=w?WB:h.Fragment,D=w?{as:_ie,allowPinchZoom:!0}:void 0,L=he(S=>{var t2,d2;const F=P.current+S,q=V().filter(Ce=>!Ce.disabled),U=document.activeElement,W=(t2=q.find(Ce=>Ce.ref.current===U))==null?void 0:t2.textValue,oe=q.map(Ce=>Ce.textValue),ge=rO(oe,F,W),X=(d2=q.find(Ce=>Ce.textValue===ge))==null?void 0:d2.ref.current;he(function Ce(m2){P.current=m2,window.clearTimeout(Z.current),m2!==""&&(Z.current=window.setTimeout(()=>Ce(""),1e3))},"updateSearch")(F),X&&setTimeout(()=>X.focus())},"handleTypeaheadSearch");h.useEffect(()=>()=>window.clearTimeout(Z.current),[]),lb();const b=h.useCallback(S=>{var q,U;return R.current===((q=T.current)==null?void 0:q.side)&&oO(S,(U=T.current)==null?void 0:U.area)},[]);return f.jsx(Fie,{scope:r,searchRef:P,onItemEnter:h.useCallback(S=>{b(S)&&S.preventDefault()},[b]),onItemLeave:h.useCallback(S=>{var F;b(S)||((F=E.current)==null||F.focus(),C(null))},[b]),onTriggerLeave:h.useCallback(S=>{b(S)&&S.preventDefault()},[b]),pointerGraceTimerRef:A,onPointerGraceIntentChange:h.useCallback(S=>{T.current=S},[]),children:f.jsx(N,{...D,children:f.jsx(Eoe,{asChild:!0,trapped:i,onMountAutoFocus:Q(l,S=>{var F;S.preventDefault(),(F=E.current)==null||F.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:f.jsx(dA,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:m,onDismiss:z,children:f.jsx(Doe,{asChild:!0,...k,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:x,onCurrentTabStopIdChange:C,onEntryFocus:Q(v,S=>{y.isUsingKeyboardRef.current||S.preventDefault()}),preventScrollOnEntryFocus:!0,children:f.jsx(AA,{role:"menu","aria-orientation":"vertical","data-state":eO(g.open),"data-radix-menu-content":"",dir:y.dir,...M,...H,ref:j,style:{outline:"none",...H.style},onKeyDown:Q(H.onKeyDown,S=>{const q=S.target.closest("[data-radix-menu-content]")===S.currentTarget,U=S.ctrlKey||S.altKey||S.metaKey,W=S.key.length===1;q&&(S.key==="Tab"&&S.preventDefault(),!U&&W&&L(S.key));const oe=E.current;if(S.target!==oe||!Iie.includes(S.key))return;S.preventDefault();const X=V().filter(t2=>!t2.disabled).map(t2=>t2.ref.current);GB.includes(S.key)&&X.reverse(),hO(X)}),onBlur:Q(t.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(Z.current),P.current="")}),onPointerMove:Q(t.onPointerMove,oV(S=>{const F=S.target,q=K.current!==S.clientX;if(S.currentTarget.contains(F)&&q){const U=S.clientX>K.current?"right":"left";R.current=U,K.current=S.clientX}}))})})})})})})},"MenuContentImpl")),NE="MenuItem",mZ="menu.itemSelect",Wie=h.forwardRef(he(function(t,n){const{disabled:r=!1,onSelect:o,...i}=t,l=h.useRef(null),c=mb(NE,t.__scopeMenu),s=YB(NE,t.__scopeMenu),v=ze(n,l),p=h.useRef(!1),d=he(()=>{const u=l.current;if(!r&&u){const m=new CustomEvent(mZ,{bubbles:!0,cancelable:!0});u.addEventListener(mZ,z=>o==null?void 0:o(z),{once:!0}),$L(u,m),m.defaultPrevented?p.current=!1:c.onClose()}},"handleSelect");return f.jsx(Gie,{...i,ref:v,disabled:r,onClick:Q(t.onClick,d),onPointerDown:u=>{var m;(m=t.onPointerDown)==null||m.call(t,u),p.current=!0},onPointerUp:Q(t.onPointerUp,u=>{var m;p.current||(m=u.currentTarget)==null||m.click()}),onKeyDown:Q(t.onKeyDown,u=>{r||u.target!==u.currentTarget||s.searchRef.current!==""&&u.key===" "||Sie.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})},"MenuItem")),Gie=h.forwardRef(he(function(t,n){const{__scopeMenu:r,disabled:o=!1,textValue:i,...l}=t,c=YB(NE,r),s=KB(r),v=h.useRef(null),p=ze(n,v),[d,u]=h.useState(!1),[m,z]=h.useState("");return h.useEffect(()=>{const w=v.current;w&&z((w.textContent??"").trim())},[l.children]),f.jsx(FE.ItemSlot,{scope:r,disabled:o,textValue:i??m,children:f.jsx(Foe,{asChild:!0,...s,focusable:!o,children:f.jsx(v2.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...l,ref:p,onPointerMove:Q(t.onPointerMove,oV(w=>{o?c.onItemLeave(w):(c.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Q(t.onPointerLeave,oV(w=>c.onItemLeave(w))),onFocus:Q(t.onFocus,()=>u(!0)),onBlur:Q(t.onBlur,()=>u(!1))})})})},"MenuItemImpl")),Xie="MenuRadioGroup",[Ace,Bce]=O0(Xie,{value:void 0,onValueChange:he(()=>{},"onValueChange")}),Kie="MenuItemIndicator",[Oce,Pce]=O0(Kie,{checked:!1}),Qie=h.forwardRef(he(function(t,n){const{__scopeMenu:r,...o}=t;return f.jsx(v2.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})},"MenuSeparator")),Yie="MenuSub",[qce,Rce]=O0(Yie);function eO(e){return e?"open":"closed"}he(eO,"getOpenState");function tO(e){return e==="indeterminate"}he(tO,"isIndeterminate");function Jie(e){return tO(e)?"indeterminate":e?"checked":"unchecked"}he(Jie,"getCheckedState");function hO(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}he(hO,"focusFirst");function nO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}he(nO,"wrapArray");function rO(e,t,n){const o=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=nO(e,Math.max(i,0));o.length===1&&(l=l.filter(v=>v!==n));const s=l.find(v=>v.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}he(rO,"getNextMatch");function aO(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],s=t[l],v=c.x,p=c.y,d=s.x,u=s.y;p>r!=u>r&&n<(d-v)*(r-p)/(u-p)+v&&(o=!o)}return o}he(aO,"isPointInPolygon");function oO(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return aO(n,t)}he(oO,"isPointerInGraceArea");function oV(e){return t=>t.pointerType==="mouse"?e(t):void 0}he(oV,"whenMouse");var ele=Pie,tle=qie,hle=Die,nle=Nie,rle=Wie,ale=Qie,ole=Object.defineProperty,Zr=(e,t)=>ole(e,"name",{value:t,configurable:!0}),ub="DropdownMenu",[ile,Tce]=Ot(ub,[XB]),Ir=XB(),[lle,iO]=ile(ub),cle=Zr(e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,s=Ir(t),v=h.useRef(null),[p,d]=jV({prop:o,defaultProp:i??!1,onChange:l,caller:ub});return f.jsx(lle,{scope:t,triggerId:xa(),triggerRef:v,contentId:xa(),open:p,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),modal:c,children:f.jsx(ele,{...s,open:p,onOpenChange:d,dir:r,modal:c,children:n})})},"DropdownMenu"),sle="DropdownMenuTrigger",vle=h.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,disabled:o=!1,...i}=t,l=iO(sle,r),c=Ir(r),s=ze(n,l.triggerRef);return f.jsx(tle,{asChild:!0,...c,children:f.jsx(v2.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...i,ref:s,onPointerDown:Q(t.onPointerDown,v=>{!o&&v.button===0&&v.ctrlKey===!1&&(l.onOpenToggle(),l.open||v.preventDefault())}),onKeyDown:Q(t.onKeyDown,v=>{o||(["Enter"," "].includes(v.key)&&l.onOpenToggle(),v.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(v.key)&&v.preventDefault())})})})},"DropdownMenuTrigger")),dle=Zr(e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ir(t);return f.jsx(hle,{...r,...n})},"DropdownMenuPortal"),mle="DropdownMenuContent",ule=h.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=iO(mle,r),l=Ir(r),c=h.useRef(!1);return f.jsx(nle,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...o,ref:n,onCloseAutoFocus:Q(t.onCloseAutoFocus,s=>{var v;c.current||(v=i.triggerRef.current)==null||v.focus(),c.current=!1,s.preventDefault()}),onInteractOutside:Q(t.onInteractOutside,s=>{const v=s.detail.originalEvent,p=v.button===0&&v.ctrlKey===!0,d=v.button===2||p;(!i.modal||d)&&(c.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),ple=h.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Ir(r);return f.jsx(rle,{...i,...o,ref:n})},"DropdownMenuItem")),yle=h.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Ir(r);return f.jsx(ale,{...i,...o,ref:n})},"DropdownMenuSeparator")),gle=cle,wle=vle,Mle=dle,lO=ule,cO=ple,sO=yle;const zle=gle,fle=wle,vO=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(Mle,{children:f.jsx(lO,{ref:r,sideOffset:t,className:C2("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));vO.displayName=lO.displayName;const dO=h.forwardRef(({className:e,...t},n)=>f.jsx(cO,{ref:n,className:C2("relative flex cursor-default select-none items-center rounded-[var(--radius-sm)] px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));dO.displayName=cO.displayName;const Hle=h.forwardRef(({className:e,...t},n)=>f.jsx(sO,{ref:n,className:C2("-mx-1 my-1 h-px bg-muted",e),...t}));Hle.displayName=sO.displayName;const kle=[{id:"default",label:"Default",swatch:["#ffffff","#f4f4f5","#4f46e5","#18181b"]},{id:"pixel",label:"Pixel",swatch:["#1a1c2c","#29366f","#ef7d57","#38b764"]},{id:"slate",label:"Slate",swatch:["#f8fafc","#e2e8f0","#3b82f6","#0f172a"]}];function xle(){const[e,t]=h.useState(()=>document.documentElement.dataset.theme??"default"),{icon:n}=R2(),r=o=>{document.documentElement.dataset.theme=o,localStorage.setItem("zd-theme",o),t(o),document.documentElement.dispatchEvent(new CustomEvent("themechange"))};return f.jsxs(zle,{children:[f.jsx(fle,{asChild:!0,children:f.jsx(Er,{variant:"ghost",size:"icon","aria-label":"切换风格",title:"切换风格",children:n("palette","h-4 w-4")})}),f.jsx(vO,{align:"end",className:"w-48",children:kle.map(o=>{const i=e===o.id;return f.jsxs(dO,{onClick:()=>r(o.id),className:"flex items-center gap-2.5 cursor-pointer",children:[f.jsx("span",{className:"flex gap-0.5","aria-hidden":"true",children:o.swatch.map((l,c)=>f.jsx("span",{className:"h-3 w-3 rounded-[var(--radius-sm)] inline-block border border-border/50",style:{backgroundColor:l}},c))}),f.jsx("span",{className:"flex-1 text-sm",children:o.label}),i&&f.jsx("span",{className:"h-3.5 w-3.5 text-foreground",children:n("check","h-3.5 w-3.5")})]},o.id)})})]})}function Vle({stoppedRef:e}){const[t,n]=h.useState(!1),{icon:r}=R2(),o=async()=>{if(confirm("停止预览服务?停止后需重新启动才能继续预览。")){e.current=!0;try{const i=await fetch("/__config").then(c=>c.json()),l=await fetch("/__stop",{method:"POST",headers:{"x-stop-token":i.stopToken??""}});if(!l.ok)throw new Error(`stop ${l.status}`)}catch{OT.error("停止预览服务失败");return}n(!0)}};return t?f.jsx("div",{className:"fixed inset-0 z-50 grid place-items-center bg-muted",children:f.jsxs("div",{className:"text-center text-muted-foreground",children:[f.jsx("div",{className:"mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[var(--radius-md)] bg-primary text-primary-foreground text-2xl font-bold",children:"v"}),f.jsx("p",{children:"预览服务已停止"}),f.jsx("p",{className:"mt-1 text-xs",children:"关闭此页,或在终端重新启动"})]})}):f.jsx(Er,{variant:"ghost",size:"icon",onClick:o,"aria-label":"停止预览服务",title:"停止预览服务",children:r("power","h-4 w-4")})}function Cle({status:e,stoppedRef:t,children:n}){const r=e==="live"?"bg-success":e==="lost"?"bg-destructive":"bg-muted-foreground";return f.jsxs("header",{className:"h-[var(--topbar-h)] border-b bg-background flex items-center px-3.5 gap-2",children:[f.jsx("strong",{className:"text-sm font-bold tracking-tight",children:"zdashboard"}),f.jsx("div",{className:"ml-auto flex items-center gap-2",children:n}),f.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[f.jsx("span",{className:`h-2 w-2 rounded-[var(--radius-full)] ${r}`}),f.jsx("span",{className:"hidden sm:inline",children:e==="live"?"实时":e==="lost"?"已断开":"连接中"})]}),f.jsx(xle,{}),f.jsx(woe,{}),f.jsx(Vle,{stoppedRef:t})]})}function Ele({active:e,onSelect:t,plugins:n}){const{icon:r}=R2();return f.jsxs("nav",{className:"w-[var(--icon-rail-w)] flex-none border-r bg-background flex flex-col items-center py-2 gap-1",children:[f.jsxs(rV,{children:[f.jsx(aV,{asChild:!0,children:f.jsx("button",{onClick:()=>t(null),className:`relative w-9 h-9 flex items-center justify-center rounded-[var(--radius-lg)] text-sm transition-all ${e===null?"bg-primary/10 text-primary":"hover:bg-muted text-muted-foreground hover:scale-105"}`,"aria-current":e===null?"page":void 0,children:r("rail:home","h-4 w-4")})}),f.jsx(La,{side:"right",children:"首页"})]}),n.map(o=>f.jsx(Lle,{plugin:o,active:e===o.mode,onSelect:t},o.mode))]})}function Lle({plugin:e,active:t,onSelect:n}){const r=nb(e.mode,"h-4 w-4");return f.jsxs(rV,{children:[f.jsx(aV,{asChild:!0,children:f.jsx("button",{onClick:()=>n(e.mode),"aria-current":t?"page":void 0,className:`relative w-9 h-9 flex items-center justify-center rounded-[var(--radius-lg)] transition-all ${t?"bg-primary/10 text-primary":"hover:bg-muted text-muted-foreground hover:scale-105"}`,children:r??f.jsx("span",{className:"text-base leading-none",children:e.icon})})}),f.jsx(La,{side:"right",children:e.label})]})}function mO(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}const uZ=(e,t)=>{const n=JSON.stringify(t);window.localStorage.setItem(e,n),mO(e,n)},ble=e=>{window.localStorage.removeItem(e),mO(e,null)},pZ=e=>window.localStorage.getItem(e),Sle=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),Zle=()=>{throw Error("useLocalStorage is a client-only hook")};function Ile(e,t){const n=()=>pZ(e),r=h.useSyncExternalStore(Sle,n,Zle),o=h.useCallback(i=>{try{const l=typeof i=="function"?i(JSON.parse(r)):i;l==null?ble(e):uZ(e,l)}catch(l){console.warn(l)}},[e,r]);return h.useEffect(()=>{pZ(e)===null&&typeof t<"u"&&uZ(e,t)},[e,t]),[r?JSON.parse(r):t,o]}const jle="zd-sidebar-",pb=220,yb=480,oa=280,yZ=16,UE="zd-sidebar-w",Ale=500,Ble=e=>Math.min(yb,Math.max(pb,e));function Ole(){try{const e=localStorage.getItem(UE);if(e===null)return oa;const t=Number(e);return Number.isFinite(t)&&t>=pb&&t<=yb?t:oa}catch{return oa}}function Ple({mode:e,hasContent:t=!0,children:n}){const{icon:r}=R2(),[o,i]=Ile(`${jle}${e}`,!0),[l,c]=h.useState(!1),[s,v]=h.useState(Ole),[p,d]=h.useState(!1),u=h.useRef(s),m=h.useRef(null),z=h.useRef(()=>{}),w=h.useRef(null),H=()=>i(x=>!x),g=(x,C)=>{const E=Ble(x);if(u.current=E,v(E),C)try{localStorage.setItem(UE,String(E))}catch{}},y=()=>{const x=w.current;if(!(x!==null&&Date.now()-x<Ale)){u.current=oa,v(oa);try{localStorage.removeItem(UE)}catch{}}},M=x=>{var P,A;if(m.current)return;m.current={startX:x.clientX,startWidth:u.current},d(!0);try{(A=(P=x.currentTarget).setPointerCapture)==null||A.call(P,x.pointerId)}catch{}let C=!1;const E=T=>{const R=m.current;R&&T.clientX!==R.startX&&(C=!0),R&&g(R.startWidth+(T.clientX-R.startX),!1)},j=()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerup",Z),window.removeEventListener("pointercancel",Z)},Z=()=>{m.current&&(m.current=null,j(),d(!1),C&&(w.current=Date.now()),g(u.current,!0))};z.current=j,window.addEventListener("pointermove",E),window.addEventListener("pointerup",Z),window.addEventListener("pointercancel",Z)};h.useEffect(()=>()=>z.current(),[]);const k=x=>{x.key==="ArrowLeft"?(x.preventDefault(),g(u.current-yZ,!0)):x.key==="ArrowRight"&&(x.preventDefault(),g(u.current+yZ,!0))},V=t&&(o||l);return f.jsxs("div",{className:"relative flex-none",style:{"--sidebar-w":`${s}px`},children:[f.jsxs("div",{className:["bg-background overflow-hidden","fixed left-0 top-0 h-full w-[min(calc(var(--sidebar-w)*0.78),80vw)] max-w-[var(--sidebar-w)] z-40 shadow-lg",p?"transition-none":"transition-[width,transform] duration-200 ease-out",V?"translate-x-0":"-translate-x-full","sm:max-w-none sm:translate-x-0 sm:h-full sm:top-auto sm:left-auto",V?o?"sm:relative sm:z-auto sm:w-[var(--sidebar-w)] sm:shadow-none sm:border-r":"sm:absolute sm:z-30 sm:w-[var(--sidebar-w)] sm:shadow-lg sm:border-r":"sm:relative sm:z-auto sm:w-0 sm:shadow-none"].join(" "),onMouseEnter:()=>!o&&c(!0),onMouseLeave:()=>c(!1),children:[f.jsx("div",{className:"h-full w-[var(--sidebar-w)] overflow-auto",children:n}),t&&o&&f.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"调整侧栏宽度","aria-valuemin":pb,"aria-valuemax":yb,"aria-valuenow":s,tabIndex:0,onPointerDown:M,onDoubleClick:y,onKeyDown:k,className:["absolute right-0 top-0 z-20 hidden h-full w-1.5 cursor-col-resize select-none touch-none","sm:block",p?"bg-primary/20":"hover:bg-primary/20",p?"transition-none":"transition-colors"].join(" ")})]}),f.jsx("div",{className:`sm:hidden fixed inset-0 z-30 bg-black/40 transition-opacity ${V?"opacity-100":"pointer-events-none opacity-0"}`,onClick:H,"aria-hidden":"true"}),t&&f.jsx("button",{onClick:H,"aria-expanded":o,className:`hidden sm:flex absolute right-0 top-1/2 -translate-y-1/2 z-40
7814
7814
  h-10 w-5 items-center justify-center
7815
7815
  rounded-l-[var(--radius-md)] border border-r-0 border-border bg-background
7816
- text-muted-foreground hover:text-foreground hover:bg-muted transition-colors`,"aria-label":o?"折叠侧栏":"展开侧栏",children:r("chevron-left",`h-3.5 w-3.5 transition-transform duration-200 ${o?"":"rotate-180"}`)}),t&&!V&&f.jsx("button",{onClick:H,"aria-label":"展开侧栏",className:"sm:hidden fixed left-0 top-1/2 -translate-y-1/2 z-40 h-12 w-6 flex items-center justify-center rounded-r-[var(--radius-md)] border border-l-0 border-border bg-background text-muted-foreground shadow",children:r("chevron-left","h-3.5 w-3.5 rotate-180")}),t&&!o&&f.jsx("div",{className:"hidden sm:block absolute left-0 top-0 h-full w-1.5 z-10",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1)})]})}const yt=new Set;let Et=null,iV="connecting";const $E=new Set;function EC(e){iV=e,$E.forEach(t=>t(e))}function uO(){if(Et)return;EC("connecting");const e=new EventSource("/__reload");Et=e,e.onopen=()=>{const t=iV==="lost";EC("live"),t&&yt.forEach(n=>n.onFiles())},e.addEventListener("reload",()=>yt.forEach(t=>t.onReload())),e.addEventListener("files",()=>yt.forEach(t=>t.onFiles())),e.addEventListener("config",t=>{try{const n=JSON.parse(t.data||"{}");n!=null&&n.plugin&&yt.forEach(r=>{var o;return(o=r.onConfig)==null?void 0:o.call(r,n.plugin)})}catch{}}),e.onerror=()=>{EC("lost")}}function qle(){typeof window<"u"&&yt.size>0&&!Et&&uO()}function gb(e,t,n,r){const[o,i]=h.useState(iV),l=h.useRef(e),c=h.useRef(t),s=h.useRef(r);return h.useEffect(()=>{l.current=e}),h.useEffect(()=>{c.current=t}),h.useEffect(()=>{s.current=r}),h.useEffect(()=>{const v={onReload:()=>l.current(),onFiles:()=>c.current(),onStatus:i,onConfig:p=>{var d;return(d=s.current)==null?void 0:d.call(s,p)}};return yt.add(v),$E.add(i),i(iV),qle(),()=>{yt.delete(v),$E.delete(i),yt.size===0&&Et&&(Et.close(),Et=null)}},[]),o}function Dce(e,t){const n=h.useRef(t);h.useEffect(()=>{n.current=t}),h.useEffect(()=>{if(!e||typeof globalThis.EventSource>"u")return;Et||uO();const r=Et;if(!r)return;const o=i=>n.current(i.data);return r.addEventListener(e,o),()=>{r.removeEventListener(e,o)}},[e])}const po="inline-flex items-center gap-1.5 rounded-full bg-muted/60 px-2.5 h-[var(--chip-h)] font-mono text-xs leading-none text-muted-foreground";function Rle({projectPath:e,stoppedRef:t}){const[n,r]=h.useState({}),[o,i]=h.useState(""),[l,c]=h.useState(0),s=gb(()=>{},()=>c(d=>d+1)),{icon:v}=R2();h.useEffect(()=>{fetch("/__config",{cache:"no-store"}).then(d=>d.json()).then(d=>{r({branch:d.branch,dirty:d.dirty}),i(d.version??"")}).catch(()=>{})},[l]);const p=s==="live"?"bg-success animate-pulse":"bg-muted-foreground";return f.jsxs("footer",{className:"h-[var(--statusbar-h)] border-t bg-background flex items-center justify-between px-3 gap-2 text-sm",children:[f.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[e&&f.jsxs(rV,{children:[f.jsx(aV,{asChild:!0,children:f.jsxs("span",{className:`${po} shrink-0 cursor-default`,children:[v("folder-open","h-3 w-3"),e.split("/").pop()||e]})}),f.jsx(La,{side:"top",className:"font-mono text-xs",children:e})]}),n.branch&&f.jsxs(rV,{children:[f.jsx(aV,{asChild:!0,children:f.jsxs("span",{className:`${po} shrink-0 cursor-default`,children:[v("git-branch","h-3 w-3"),n.branch,n.dirty?f.jsxs("span",{className:"text-warning",children:["● ",n.dirty]}):f.jsx("span",{className:"text-success",children:"clean"})]})}),f.jsx(La,{side:"top",className:"font-mono text-xs",children:n.dirty?`${n.dirty} 个未提交变更`:"工作区干净"})]})]}),f.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[o&&f.jsx("span",{className:po,children:o}),f.jsxs("span",{className:po,title:s==="live"?"实时推送已连接":s==="lost"?"连接断开,自动重连中":"连接中",children:[f.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${p}`}),s==="live"?"SSE":s==="lost"?"重连中":"连接中"]})]})]})}const Tle=Gj("rounded-[var(--radius-xl)] border bg-card text-card-foreground shadow-sm",{variants:{variant:{default:"",outline:"bg-background"}},defaultVariants:{variant:"default"}}),pO=h.forwardRef(({className:e,variant:t,...n},r)=>f.jsx("div",{ref:r,className:C2(Tle({variant:t,className:e})),...n}));pO.displayName="Card";const yO=h.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:C2("flex flex-col space-y-1.5 p-6",e),...t}));yO.displayName="CardHeader";const gO=h.forwardRef(({className:e,...t},n)=>f.jsx("h3",{ref:n,className:C2("font-semibold leading-none tracking-tight",e),...t}));gO.displayName="CardTitle";const wO=h.forwardRef(({className:e,...t},n)=>f.jsx("p",{ref:n,className:C2("text-sm text-muted-foreground",e),...t}));wO.displayName="CardDescription";const Dle=h.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:C2("p-6 pt-0",e),...t}));Dle.displayName="CardContent";const Fle=h.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:C2("flex items-center p-6 pt-0",e),...t}));Fle.displayName="CardFooter";const Nle=[{key:"hasOpenspec",label:"openspec"},{key:"hasDocs",label:"docs"},{key:"hasJust",label:"just"}];function Ule({plugins:e,detect:t,onSelect:n}){return f.jsxs("div",{className:"space-y-5",children:[f.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.map(r=>f.jsx($le,{plugin:r,onSelect:n},r.mode))}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground",children:[f.jsx("span",{className:"mr-1",children:"探测"}),Nle.map(r=>f.jsxs("span",{className:`inline-flex items-center gap-1 rounded-[var(--radius-full)] border px-2 h-[var(--chip-h)] font-mono ${t[r.key]?"border-success/30 bg-success/10 text-success":"border-border bg-muted/40 text-muted-foreground/70"}`,children:[f.jsx("span",{className:`h-1.5 w-1.5 rounded-[var(--radius-full)] ${t[r.key]?"bg-success":"bg-muted-foreground/40"}`}),r.label]},r.key))]})]})}function $le({plugin:e,onSelect:t}){const n=nb(e.mode,"h-[18px] w-[18px]");return f.jsx("button",{onClick:()=>t(e.mode),className:"text-left group rounded-[var(--radius-lg)] focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:f.jsx(pO,{className:"h-full transition-all duration-200 group-hover:-translate-y-0.5 group-hover:shadow-md group-hover:border-muted-foreground/30",children:f.jsx(yO,{children:f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-[var(--radius-md)] bg-muted leading-none group-hover:bg-primary/10 transition-colors",children:n??e.icon}),f.jsxs("div",{className:"min-w-0",children:[f.jsxs(gO,{className:"text-sm flex items-center gap-1.5",children:[f.jsx("span",{className:"truncate",children:e.label}),e.external&&f.jsx("span",{className:"flex-none text-xs px-1.5 py-0.5 rounded-[var(--radius-full)] bg-muted text-muted-foreground border",children:"外部"})]}),f.jsx(wO,{className:"truncate",children:e.description??e.mode})]})]})})})})}const _le="modulepreload",Wle=function(e){return"/"+e},gZ={},$r=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=Promise.allSettled(n.map(s=>{if(s=Wle(s),s in gZ)return;gZ[s]=!0;const v=s.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${p}`))return;const d=document.createElement("link");if(d.rel=v?"stylesheet":_le,v||(d.as="script"),d.crossOrigin="",d.href=s,c&&d.setAttribute("nonce",c),document.head.appendChild(d),v)return new Promise((u,m)=>{d.addEventListener("load",u),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})},MO="zdashboard",wZ="/__",Gle=403,Xle=502,Kle=new Set(["zd:ready","zd:navigate","zd:fetch"]);function lV(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function zO(e){return lV(e)?Object.values(e).every(t=>typeof t=="string"):!1}function Qle(e){return e===void 0?!0:!(!lV(e)||e.method!==void 0&&typeof e.method!="string"||e.body!==void 0&&typeof e.body!="string"||e.headers!==void 0&&!zO(e.headers))}function Yle(e,t){if(!lV(e)||e.source!==MO||typeof e.type!="string"||!Kle.has(e.type))return null;const r=e;switch(r.type){case"zd:ready":return r;case"zd:init":case"zd:theme":return typeof r.theme=="string"&&typeof r.mode=="string"?r:null;case"zd:navigate":return zO(r.params)?r:null;case"zd:fetch":return typeof r.id=="string"&&typeof r.path=="string"&&Qle(r.init)?r:null;case"zd:fetch:result":return typeof r.id=="string"&&typeof r.status=="number"?r:null;case"zd:config":return typeof r.plugin=="string"&&lV(r.config)?r:null}}const MZ="http://zd.invalid";function Jle(e){if(typeof e!="string")return!1;let t;try{t=new URL(e,MZ)}catch{return!1}if(t.origin!==MZ)return!1;let n;try{n=decodeURIComponent(t.pathname)}catch{return!1}return n.split("/").some(r=>r==="..")?!1:t.pathname.startsWith(wZ)&&n.startsWith(wZ)}function ece(e){if(!e)return;const t={};for(const[n,r]of Object.entries(e.headers??{}))n.toLowerCase()!=="x-stop-token"&&(t[n]=r);return{method:e.method,body:e.body,headers:t}}async function tce(e,t){const n=await fetch(e,t),r=await n.text();let o=r;try{o=JSON.parse(r)}catch{}return{status:n.status,body:o}}function hce(e){const t=e.proxyFetch??tce;let n=!1;const r=l=>{n||!e.target||e.target.postMessage({source:MO,...l},"*")},o=l=>{if(n||!e.target||l.source!==e.target)return;const c=Yle(l.data);if(c)switch(c.type){case"zd:ready":r({type:"zd:init",...e.getSnapshot()});break;case"zd:navigate":e.onNavigate(c.params);break;case"zd:fetch":{const{id:s,path:v}=c;if(!Jle(v)){r({type:"zd:fetch:result",id:s,status:Gle,body:{error:"forbidden"}});return}t(v,ece(c.init)).then(p=>r({type:"zd:fetch:result",id:s,status:p.status,body:p.body})).catch(()=>r({type:"zd:fetch:result",id:s,status:Xle,body:{error:"proxy failed"}}));break}}};return{handle:o,attach:()=>{typeof window<"u"&&window.addEventListener("message",o)},sendTheme:(l,c)=>r({type:"zd:theme",theme:l,mode:c}),sendNavigate:l=>r({type:"zd:navigate",params:l}),sendConfig:(l,c)=>r({type:"zd:config",plugin:l,config:c}),destroy:()=>{n=!0,typeof window<"u"&&window.removeEventListener("message",o)}}}const _E="p",nce="home";function rce(e,t){const n=new URLSearchParams(e);for(const[o,i]of Object.entries(t))i===null?n.delete(o):n.set(o,String(i));const r=n.toString();return r?`?${r}`:""}function zZ(e){return new URLSearchParams(e).toString()}const WE=new Set;let fZ=!1;function fO(){for(const e of[...WE])e()}function ace(e){return oce(),WE.add(e),()=>{WE.delete(e)}}function oce(){fZ||typeof window>"u"||(fZ=!0,window.addEventListener("popstate",fO))}function ice(){return HO(),window.location.search}function lce(){return""}let HZ=!1;function HO(){if(HZ||typeof window>"u")return;HZ=!0;const e=window.location.hash.replace(/^#/,"");if(!e)return;const t=new URLSearchParams(window.location.search);if(!t.has(_E)){e!==nce&&t.set(_E,e);const n=t.toString();window.history.replaceState(null,"",window.location.pathname+(n?`?${n}`:""))}}function kO(){HO(),h.useSyncExternalStore(ace,ice,lce);const e=new URLSearchParams(window.location.search),t=(n,r)=>{const o=rce(window.location.search,n);if(zZ(o)===zZ(window.location.search))return;const i=window.location.pathname+o;r!=null&&r.replace?window.history.replaceState(null,"",i):window.history.pushState(null,"",i),fO()};return{plugin:e.get(_E),params:e,navigate:t}}const cce="/__plugins/config";function kZ(){const e=document.documentElement;return{theme:e.dataset.theme??"default",mode:e.dataset.mode??"dark"}}function xZ(e){return e?Object.fromEntries(e.entries()):{}}function sce({viewerUrl:e,label:t,mode:n,params:r}){const o=h.useRef(null),i=kO(),l=h.useRef(null),[c,s]=h.useState({}),v=h.useRef(r);h.useEffect(()=>{v.current=r},[r]);const p=h.useRef(c);h.useEffect(()=>{p.current=c},[c]);const d=h.useRef(i.navigate);h.useEffect(()=>{d.current=i.navigate},[i.navigate]);const u=h.useCallback(()=>{n&&fetch(cce,{cache:"no-store"}).then(w=>w.json()).then(w=>{var g;const H=(w==null?void 0:w[n])??{};s(H),(g=l.current)==null||g.sendConfig(n,H)}).catch(()=>{})},[n]);h.useEffect(()=>{u()},[u]),gb(()=>{},()=>{},void 0,w=>{(!n||w===n)&&u()}),h.useEffect(()=>{var g;const w=hce({target:((g=o.current)==null?void 0:g.contentWindow)??null,getSnapshot:()=>({...kZ(),params:xZ(v.current),config:p.current}),onNavigate:y=>{n&&d.current({p:n,...y})}});l.current=w,w.attach();const H=new MutationObserver(()=>{const{theme:y,mode:M}=kZ();w.sendTheme(y,M)});return H.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}),()=>{H.disconnect(),w.destroy(),l.current=null}},[n]);const m=(r==null?void 0:r.toString())??"",z=h.useRef(null);return h.useEffect(()=>{var w;if(z.current===null){z.current=m;return}z.current!==m&&(z.current=m,(w=l.current)==null||w.sendNavigate(xZ(r)))},[m,r]),f.jsx("div",{className:"mx-auto h-full w-full max-w-6xl overflow-hidden rounded-lg border bg-background shadow-sm",children:f.jsx("iframe",{ref:o,src:e,title:t,className:"w-full h-full border-0 bg-background",sandbox:"allow-scripts"})})}function vce({icon:e,title:t,hint:n,tone:r="muted"}){return f.jsx("div",{className:"flex-1 grid place-items-center text-muted-foreground select-none",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:`mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[var(--radius-lg)] ${r==="primary"?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground"}`,children:e}),f.jsx("p",{className:"text-sm text-foreground/80",children:t}),n&&f.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:n})]})})}function dce({label:e}){const{icon:t}=R2();return f.jsx(vce,{icon:t("package-open"),title:`${e} · 无可视化界面`,hint:"该插件只提供后端能力;在插件目录添加 web/index.html 可获得 iframe 工作区"})}function mce(e){return typeof e=="function"?!0:!!e&&typeof e=="object"&&"$$typeof"in e}function uce(e){if(!e||typeof e!="object")return null;const t=e;if(t.manifest&&typeof t.manifest=="object"&&mce(t.workspace)){const n=t.manifest;return n.mode?{mode:n.mode,label:n.label,icon:n.icon,description:n.description,external:n.external,order:n.order,manifest:n,params:t.params??void 0,Workspace:t.workspace,Sidebar:t.sidebar}:null}return null}function pce(e,t){const n=e.order??null,r=t.order??null;return n!==null&&r!==null?n!==r?n-r:e.mode.localeCompare(t.mode):n!==null?-1:r!==null?1:e.mode.localeCompare(t.mode)}async function yce(e){return(await Promise.all(Array.from(e,async([n,r])=>{try{const o=await r();return uce(o==null?void 0:o.default)}catch(o){return console.error(`[zdashboard] failed to load web plugin (${n}):`,o),null}}))).filter(n=>n!==null).sort(pce)}function gce(){const[e,t]=B.useState([]),[n,r]=B.useState([]);return B.useEffect(()=>{let o=!1;return(async()=>{const l=await yce(Object.entries(Object.assign({"../../plugins/apply/web.tsx":()=>$r(()=>import("./web-D-wmMJ1D.js").then(c=>c.w),__vite__mapDeps([0,1])),"../../plugins/design/web.tsx":()=>$r(()=>import("./web-CF8JCQ-n.js").then(c=>c.w),__vite__mapDeps([2,1])),"../../plugins/just/web.tsx":()=>$r(()=>import("./web-DwYp5Vde.js").then(c=>c.w),__vite__mapDeps([3,1])),"../../plugins/stats/web.tsx":()=>$r(()=>import("./web-qAmlbo_B.js").then(c=>c.w),__vite__mapDeps([4,1])),"../../plugins/view/web.tsx":()=>$r(()=>import("./web-BXIb25pa.js").then(c=>c.w),__vite__mapDeps([5,1]))})));o||t(l)})(),()=>{o=!0}},[]),B.useEffect(()=>{let o=!1;return(async()=>{try{const l=await(await fetch("/__plugins",{cache:"no-store"})).json();if(!o){const c=(l.plugins??[]).map(s=>{const v=s.viewerUrl??"";return{...s,Workspace:v?d=>B.createElement(sce,{viewerUrl:v,label:s.label,mode:s.mode,params:d.params}):()=>B.createElement(dce,{label:s.label})}});r(c.filter(s=>!e.some(v=>v.mode===s.mode)))}}catch{}})(),()=>{o=!0}},[e]),[...e,...n].filter((o,i,l)=>l.findIndex(c=>c.mode===o.mode)===i)}const wce={default:"bg-muted text-muted-foreground border-border",success:"border-success/30 bg-success/10 text-success",warning:"border-warning/30 bg-warning/10 text-warning",destructive:"border-destructive/30 bg-destructive/10 text-destructive",info:"border-info/30 bg-info/10 text-info"};function Mce({tone:e="default",children:t}){return f.jsx("span",{className:`inline-flex items-center gap-1 rounded-[var(--radius-full)] border px-2 h-[var(--chip-h)] text-xs font-medium ${wce[e]}`,"data-slot":"chip",children:t})}function zce({icon:e,title:t,breadcrumb:n,status:r,actions:o}){return f.jsxs("div",{className:"flex items-start gap-3 flex-wrap mb-4",children:[e&&f.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-[var(--radius-md)] bg-muted text-muted-foreground",children:e}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h2",{className:"text-lg font-bold tracking-tight text-foreground truncate",children:t}),n&&n.length>0&&f.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:n.join(" / ")})]}),r&&f.jsx(Mce,{tone:r.tone??"default",children:r.label}),o&&f.jsx("div",{className:"flex items-center gap-1.5 flex-none",children:o})]})}function fce({children:e,className:t}){return f.jsx("div",{className:`flex items-center gap-2 flex-wrap rounded-[var(--radius-md)] border border-border bg-background px-2.5 py-1.5 mb-3 ${t??""}`,"data-slot":"toolbar",children:e})}function Hce({icon:e,title:t,hint:n,action:r}){const{icon:o}=R2();return f.jsx("div",{className:"flex-1 grid place-items-center text-muted-foreground select-none","data-slot":"empty-state",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[var(--radius-lg)] bg-muted text-muted-foreground",children:e??o("empty:muted","h-6 w-6")}),f.jsx("p",{className:"text-sm text-foreground/80",children:t}),n&&f.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:n}),r&&f.jsx("div",{className:"mt-3 flex justify-center",children:r})]})})}function kce({message:e,onRetry:t,retryLabel:n="重试"}){const{icon:r}=R2();return f.jsx("div",{className:"flex-1 grid place-items-center select-none","data-slot":"error-state",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[var(--radius-lg)] bg-destructive/10 text-destructive",children:r("file-question","h-6 w-6")}),f.jsx("p",{className:"text-sm text-destructive",role:"alert",children:e}),t&&f.jsx(Er,{variant:"outline",size:"sm",className:"mt-3",onClick:t,children:n})]})})}const LC="animate-pulse rounded-[var(--radius-md)] bg-muted";function GE({rows:e=1,className:t}){return e===1?f.jsx("div",{"data-slot":"skeleton","aria-hidden":!0,className:`${LC} h-[var(--chip-h)] ${t??""}`}):f.jsx("div",{className:`space-y-2.5 ${t??""}`,"aria-hidden":!0,children:Array.from({length:e},(n,r)=>f.jsx("div",{"data-slot":"skeleton",className:r%3===2?`${LC} h-[var(--chip-h)] w-2/3`:`${LC} h-[var(--chip-h)]`},r))})}function xce({loading:e,error:t,empty:n,onRetry:r,loadingRows:o=4,emptyTitle:i="暂无数据",children:l}){return t?f.jsx(kce,{message:t,onRetry:r}):e?f.jsx(GE,{rows:o}):n?f.jsx(Hce,{title:i}):f.jsx(f.Fragment,{children:l})}function Vce({manifest:e,icon:t,breadcrumb:n,status:r,actions:o,toolbar:i,state:l,children:c}){return f.jsxs("div",{className:"flex flex-col h-full","data-plugin-page":e.mode,children:[f.jsx(zce,{icon:t,title:e.label,breadcrumb:n??[e.mode],status:r,actions:o}),i&&f.jsx(fce,{children:i}),f.jsx("div",{className:"flex-1 min-h-0",children:l?f.jsx(xce,{...l,children:c}):c})]})}async function VZ(e){try{return await(await fetch(e,{cache:"no-store"})).json()}catch{return null}}function Cce(){const e=gce(),t=kO(),n=t.plugin,[r,o]=h.useState(""),i=h.useRef(!1),[l,c]=h.useState({hasOpenspec:!1,hasDocs:!1,hasJust:!1}),s=gb(()=>{},()=>{});h.useEffect(()=>{let u=!1;return VZ("/__config").then(m=>{!u&&m&&o(m.root??"")}),()=>{u=!0}},[]),h.useEffect(()=>{let u=!1;return VZ("/__detect").then(m=>{!u&&m&&c({hasOpenspec:!!m.hasOpenspec,hasDocs:!!m.hasDocs,hasJust:!!m.hasJust})}),()=>{u=!0}},[]);const v=n&&e.length>0&&!e.some(u=>u.mode===n)?null:n,p=v?e.find(u=>u.mode===v):null;h.useLayoutEffect(()=>{n==="apply-batch"&&t.navigate({p:"apply",view:"batch"},{replace:!0})},[n,t]);const d=h.useCallback(u=>{t.navigate(u===null?{p:null}:{p:u})},[t]);return f.jsxs("div",{className:"flex h-screen flex-col",children:[f.jsx(Cle,{status:s,stoppedRef:i}),f.jsxs("div",{className:"flex-1 min-h-0 flex",children:[f.jsx(Ele,{active:v,onSelect:d,plugins:e.map(u=>({mode:u.mode,label:u.label,icon:u.icon}))}),f.jsx(Ple,{mode:v??"home",hasContent:!!(p!=null&&p.Sidebar),children:p!=null&&p.Sidebar?f.jsx(h.Suspense,{fallback:f.jsx("div",{className:"w-full h-full"}),children:f.jsx("div",{className:"h-full animate-in fade-in slide-in-from-left-1 duration-200",children:f.jsx(p.Sidebar,{})},v)}):null}),f.jsx("section",{className:"flex-1 min-h-0 dot-grid",children:f.jsx("div",{className:"h-full p-6",children:v&&p?p.manifest?f.jsx(h.Suspense,{fallback:f.jsx(GE,{rows:6,className:"mx-auto max-w-6xl"}),children:f.jsx("div",{className:"h-full animate-in fade-in duration-200",children:f.jsx(p.Workspace,{params:t.params})},v)}):f.jsx(Ece,{mode:v,label:p.label,description:p.description,icon:p.icon,children:f.jsx(h.Suspense,{fallback:f.jsx(GE,{rows:6,className:"mx-auto max-w-6xl"}),children:f.jsx(p.Workspace,{params:t.params})})}):f.jsx(Ule,{plugins:e,detect:l,onSelect:d})})})]}),f.jsx(Rle,{projectPath:r,stoppedRef:i})]})}function Ece({mode:e,label:t,description:n,icon:r,children:o}){const i=nb(e,"h-5 w-5");return f.jsx(Vce,{manifest:{mode:e,label:t,description:n},icon:i??(r?f.jsx("span",{className:"text-base leading-none",children:r}):void 0),breadcrumb:["插件",e],children:f.jsx("div",{className:"h-full animate-in fade-in duration-200",children:o},e)})}const wb=document.documentElement;let bx=localStorage.getItem("zd-mode");bx||(bx=localStorage.getItem("zdashboard-theme")==="light"?"light":"dark",localStorage.setItem("zd-mode",bx),localStorage.removeItem("zdashboard-theme"));wb.dataset.mode=bx;let Lce=localStorage.getItem("zd-theme")??"default";wb.dataset.theme=Lce;wb.dispatchEvent(new CustomEvent("themechange"));bC.createRoot(document.getElementById("root")).render(f.jsx(B.StrictMode,{children:f.jsxs(aN,{children:[f.jsx(zT,{children:f.jsx(Cce,{})}),f.jsx(GT,{position:"bottom-right",richColors:!0})]})}));export{Er as B,Mce as C,Hce as E,Vce as P,GE as S,$r as _,kO as a,R2 as b,Sce as c,OT as d,C2 as e,Zce as f,CZ as g,Gj as h,Dce as i,f as j,h as r,nb as u};
7816
+ text-muted-foreground hover:text-foreground hover:bg-muted transition-colors`,"aria-label":o?"折叠侧栏":"展开侧栏",children:r("chevron-left",`h-3.5 w-3.5 transition-transform duration-200 ${o?"":"rotate-180"}`)}),t&&!V&&f.jsx("button",{onClick:H,"aria-label":"展开侧栏",className:"sm:hidden fixed left-0 top-1/2 -translate-y-1/2 z-40 h-12 w-6 flex items-center justify-center rounded-r-[var(--radius-md)] border border-l-0 border-border bg-background text-muted-foreground shadow",children:r("chevron-left","h-3.5 w-3.5 rotate-180")}),t&&!o&&f.jsx("div",{className:"hidden sm:block absolute left-0 top-0 h-full w-1.5 z-10",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1)})]})}const yt=new Set;let Et=null,iV="connecting";const $E=new Set;function EC(e){iV=e,$E.forEach(t=>t(e))}function uO(){if(Et)return;EC("connecting");const e=new EventSource("/__reload");Et=e,e.onopen=()=>{const t=iV==="lost";EC("live"),t&&yt.forEach(n=>n.onFiles())},e.addEventListener("reload",()=>yt.forEach(t=>t.onReload())),e.addEventListener("files",()=>yt.forEach(t=>t.onFiles())),e.addEventListener("config",t=>{try{const n=JSON.parse(t.data||"{}");n!=null&&n.plugin&&yt.forEach(r=>{var o;return(o=r.onConfig)==null?void 0:o.call(r,n.plugin)})}catch{}}),e.onerror=()=>{EC("lost")}}function qle(){typeof window<"u"&&yt.size>0&&!Et&&uO()}function gb(e,t,n,r){const[o,i]=h.useState(iV),l=h.useRef(e),c=h.useRef(t),s=h.useRef(r);return h.useEffect(()=>{l.current=e}),h.useEffect(()=>{c.current=t}),h.useEffect(()=>{s.current=r}),h.useEffect(()=>{const v={onReload:()=>l.current(),onFiles:()=>c.current(),onStatus:i,onConfig:p=>{var d;return(d=s.current)==null?void 0:d.call(s,p)}};return yt.add(v),$E.add(i),i(iV),qle(),()=>{yt.delete(v),$E.delete(i),yt.size===0&&Et&&(Et.close(),Et=null)}},[]),o}function Dce(e,t){const n=h.useRef(t);h.useEffect(()=>{n.current=t}),h.useEffect(()=>{if(!e||typeof globalThis.EventSource>"u")return;Et||uO();const r=Et;if(!r)return;const o=i=>n.current(i.data);return r.addEventListener(e,o),()=>{r.removeEventListener(e,o)}},[e])}const po="inline-flex items-center gap-1.5 rounded-full bg-muted/60 px-2.5 h-[var(--chip-h)] font-mono text-xs leading-none text-muted-foreground";function Rle({projectPath:e,stoppedRef:t}){const[n,r]=h.useState({}),[o,i]=h.useState(""),[l,c]=h.useState(0),s=gb(()=>{},()=>c(d=>d+1)),{icon:v}=R2();h.useEffect(()=>{fetch("/__config",{cache:"no-store"}).then(d=>d.json()).then(d=>{r({branch:d.branch,dirty:d.dirty}),i(d.version??"")}).catch(()=>{})},[l]);const p=s==="live"?"bg-success animate-pulse":"bg-muted-foreground";return f.jsxs("footer",{className:"h-[var(--statusbar-h)] border-t bg-background flex items-center justify-between px-3 gap-2 text-sm",children:[f.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[e&&f.jsxs(rV,{children:[f.jsx(aV,{asChild:!0,children:f.jsxs("span",{className:`${po} shrink-0 cursor-default`,children:[v("folder-open","h-3 w-3"),e.split("/").pop()||e]})}),f.jsx(La,{side:"top",className:"font-mono text-xs",children:e})]}),n.branch&&f.jsxs(rV,{children:[f.jsx(aV,{asChild:!0,children:f.jsxs("span",{className:`${po} shrink-0 cursor-default`,children:[v("git-branch","h-3 w-3"),n.branch,n.dirty?f.jsxs("span",{className:"text-warning",children:["● ",n.dirty]}):f.jsx("span",{className:"text-success",children:"clean"})]})}),f.jsx(La,{side:"top",className:"font-mono text-xs",children:n.dirty?`${n.dirty} 个未提交变更`:"工作区干净"})]})]}),f.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[o&&f.jsx("span",{className:po,children:o}),f.jsxs("span",{className:po,title:s==="live"?"实时推送已连接":s==="lost"?"连接断开,自动重连中":"连接中",children:[f.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${p}`}),s==="live"?"SSE":s==="lost"?"重连中":"连接中"]})]})]})}const Tle=Gj("rounded-[var(--radius-xl)] border bg-card text-card-foreground shadow-sm",{variants:{variant:{default:"",outline:"bg-background"}},defaultVariants:{variant:"default"}}),pO=h.forwardRef(({className:e,variant:t,...n},r)=>f.jsx("div",{ref:r,className:C2(Tle({variant:t,className:e})),...n}));pO.displayName="Card";const yO=h.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:C2("flex flex-col space-y-1.5 p-6",e),...t}));yO.displayName="CardHeader";const gO=h.forwardRef(({className:e,...t},n)=>f.jsx("h3",{ref:n,className:C2("font-semibold leading-none tracking-tight",e),...t}));gO.displayName="CardTitle";const wO=h.forwardRef(({className:e,...t},n)=>f.jsx("p",{ref:n,className:C2("text-sm text-muted-foreground",e),...t}));wO.displayName="CardDescription";const Dle=h.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:C2("p-6 pt-0",e),...t}));Dle.displayName="CardContent";const Fle=h.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:C2("flex items-center p-6 pt-0",e),...t}));Fle.displayName="CardFooter";const Nle=[{key:"hasOpenspec",label:"openspec"},{key:"hasDocs",label:"docs"},{key:"hasJust",label:"just"}];function Ule({plugins:e,detect:t,onSelect:n}){return f.jsxs("div",{className:"space-y-5",children:[f.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.map(r=>f.jsx($le,{plugin:r,onSelect:n},r.mode))}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground",children:[f.jsx("span",{className:"mr-1",children:"探测"}),Nle.map(r=>f.jsxs("span",{className:`inline-flex items-center gap-1 rounded-[var(--radius-full)] border px-2 h-[var(--chip-h)] font-mono ${t[r.key]?"border-success/30 bg-success/10 text-success":"border-border bg-muted/40 text-muted-foreground/70"}`,children:[f.jsx("span",{className:`h-1.5 w-1.5 rounded-[var(--radius-full)] ${t[r.key]?"bg-success":"bg-muted-foreground/40"}`}),r.label]},r.key))]})]})}function $le({plugin:e,onSelect:t}){const n=nb(e.mode,"h-[18px] w-[18px]");return f.jsx("button",{onClick:()=>t(e.mode),className:"text-left group rounded-[var(--radius-lg)] focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:f.jsx(pO,{className:"h-full transition-all duration-200 group-hover:-translate-y-0.5 group-hover:shadow-md group-hover:border-muted-foreground/30",children:f.jsx(yO,{children:f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-[var(--radius-md)] bg-muted leading-none group-hover:bg-primary/10 transition-colors",children:n??e.icon}),f.jsxs("div",{className:"min-w-0",children:[f.jsxs(gO,{className:"text-sm flex items-center gap-1.5",children:[f.jsx("span",{className:"truncate",children:e.label}),e.external&&f.jsx("span",{className:"flex-none text-xs px-1.5 py-0.5 rounded-[var(--radius-full)] bg-muted text-muted-foreground border",children:"外部"})]}),f.jsx(wO,{className:"truncate",children:e.description??e.mode})]})]})})})})}const _le="modulepreload",Wle=function(e){return"/"+e},gZ={},$r=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=Promise.allSettled(n.map(s=>{if(s=Wle(s),s in gZ)return;gZ[s]=!0;const v=s.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${p}`))return;const d=document.createElement("link");if(d.rel=v?"stylesheet":_le,v||(d.as="script"),d.crossOrigin="",d.href=s,c&&d.setAttribute("nonce",c),document.head.appendChild(d),v)return new Promise((u,m)=>{d.addEventListener("load",u),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})},MO="zdashboard",wZ="/__",Gle=403,Xle=502,Kle=new Set(["zd:ready","zd:navigate","zd:fetch"]);function lV(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function zO(e){return lV(e)?Object.values(e).every(t=>typeof t=="string"):!1}function Qle(e){return e===void 0?!0:!(!lV(e)||e.method!==void 0&&typeof e.method!="string"||e.body!==void 0&&typeof e.body!="string"||e.headers!==void 0&&!zO(e.headers))}function Yle(e,t){if(!lV(e)||e.source!==MO||typeof e.type!="string"||!Kle.has(e.type))return null;const r=e;switch(r.type){case"zd:ready":return r;case"zd:init":case"zd:theme":return typeof r.theme=="string"&&typeof r.mode=="string"?r:null;case"zd:navigate":return zO(r.params)?r:null;case"zd:fetch":return typeof r.id=="string"&&typeof r.path=="string"&&Qle(r.init)?r:null;case"zd:fetch:result":return typeof r.id=="string"&&typeof r.status=="number"?r:null;case"zd:config":return typeof r.plugin=="string"&&lV(r.config)?r:null}}const MZ="http://zd.invalid";function Jle(e){if(typeof e!="string")return!1;let t;try{t=new URL(e,MZ)}catch{return!1}if(t.origin!==MZ)return!1;let n;try{n=decodeURIComponent(t.pathname)}catch{return!1}return n.split("/").some(r=>r==="..")?!1:t.pathname.startsWith(wZ)&&n.startsWith(wZ)}function ece(e){if(!e)return;const t={};for(const[n,r]of Object.entries(e.headers??{}))n.toLowerCase()!=="x-stop-token"&&(t[n]=r);return{method:e.method,body:e.body,headers:t}}async function tce(e,t){const n=await fetch(e,t),r=await n.text();let o=r;try{o=JSON.parse(r)}catch{}return{status:n.status,body:o}}function hce(e){const t=e.proxyFetch??tce;let n=!1;const r=l=>{n||!e.target||e.target.postMessage({source:MO,...l},"*")},o=l=>{if(n||!e.target||l.source!==e.target)return;const c=Yle(l.data);if(c)switch(c.type){case"zd:ready":r({type:"zd:init",...e.getSnapshot()});break;case"zd:navigate":e.onNavigate(c.params);break;case"zd:fetch":{const{id:s,path:v}=c;if(!Jle(v)){r({type:"zd:fetch:result",id:s,status:Gle,body:{error:"forbidden"}});return}t(v,ece(c.init)).then(p=>r({type:"zd:fetch:result",id:s,status:p.status,body:p.body})).catch(()=>r({type:"zd:fetch:result",id:s,status:Xle,body:{error:"proxy failed"}}));break}}};return{handle:o,attach:()=>{typeof window<"u"&&window.addEventListener("message",o)},sendTheme:(l,c)=>r({type:"zd:theme",theme:l,mode:c}),sendNavigate:l=>r({type:"zd:navigate",params:l}),sendConfig:(l,c)=>r({type:"zd:config",plugin:l,config:c}),destroy:()=>{n=!0,typeof window<"u"&&window.removeEventListener("message",o)}}}const _E="p",nce="home";function rce(e,t){const n=new URLSearchParams(e);for(const[o,i]of Object.entries(t))i===null?n.delete(o):n.set(o,String(i));const r=n.toString();return r?`?${r}`:""}function zZ(e){return new URLSearchParams(e).toString()}const WE=new Set;let fZ=!1;function fO(){for(const e of[...WE])e()}function ace(e){return oce(),WE.add(e),()=>{WE.delete(e)}}function oce(){fZ||typeof window>"u"||(fZ=!0,window.addEventListener("popstate",fO))}function ice(){return HO(),window.location.search}function lce(){return""}let HZ=!1;function HO(){if(HZ||typeof window>"u")return;HZ=!0;const e=window.location.hash.replace(/^#/,"");if(!e)return;const t=new URLSearchParams(window.location.search);if(!t.has(_E)){e!==nce&&t.set(_E,e);const n=t.toString();window.history.replaceState(null,"",window.location.pathname+(n?`?${n}`:""))}}function kO(){HO(),h.useSyncExternalStore(ace,ice,lce);const e=new URLSearchParams(window.location.search),t=(n,r)=>{const o=rce(window.location.search,n);if(zZ(o)===zZ(window.location.search))return;const i=window.location.pathname+o;r!=null&&r.replace?window.history.replaceState(null,"",i):window.history.pushState(null,"",i),fO()};return{plugin:e.get(_E),params:e,navigate:t}}const cce="/__plugins/config";function kZ(){const e=document.documentElement;return{theme:e.dataset.theme??"default",mode:e.dataset.mode??"dark"}}function xZ(e){return e?Object.fromEntries(e.entries()):{}}function sce({viewerUrl:e,label:t,mode:n,params:r}){const o=h.useRef(null),i=kO(),l=h.useRef(null),[c,s]=h.useState({}),v=h.useRef(r);h.useEffect(()=>{v.current=r},[r]);const p=h.useRef(c);h.useEffect(()=>{p.current=c},[c]);const d=h.useRef(i.navigate);h.useEffect(()=>{d.current=i.navigate},[i.navigate]);const u=h.useCallback(()=>{n&&fetch(cce,{cache:"no-store"}).then(w=>w.json()).then(w=>{var g;const H=(w==null?void 0:w[n])??{};s(H),(g=l.current)==null||g.sendConfig(n,H)}).catch(()=>{})},[n]);h.useEffect(()=>{u()},[u]),gb(()=>{},()=>{},void 0,w=>{(!n||w===n)&&u()}),h.useEffect(()=>{var g;const w=hce({target:((g=o.current)==null?void 0:g.contentWindow)??null,getSnapshot:()=>({...kZ(),params:xZ(v.current),config:p.current}),onNavigate:y=>{n&&d.current({p:n,...y})}});l.current=w,w.attach();const H=new MutationObserver(()=>{const{theme:y,mode:M}=kZ();w.sendTheme(y,M)});return H.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}),()=>{H.disconnect(),w.destroy(),l.current=null}},[n]);const m=(r==null?void 0:r.toString())??"",z=h.useRef(null);return h.useEffect(()=>{var w;if(z.current===null){z.current=m;return}z.current!==m&&(z.current=m,(w=l.current)==null||w.sendNavigate(xZ(r)))},[m,r]),f.jsx("div",{className:"mx-auto h-full w-full max-w-6xl overflow-hidden rounded-lg border bg-background shadow-sm",children:f.jsx("iframe",{ref:o,src:e,title:t,className:"w-full h-full border-0 bg-background",sandbox:"allow-scripts"})})}function vce({icon:e,title:t,hint:n,tone:r="muted"}){return f.jsx("div",{className:"flex-1 grid place-items-center text-muted-foreground select-none",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:`mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[var(--radius-lg)] ${r==="primary"?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground"}`,children:e}),f.jsx("p",{className:"text-sm text-foreground/80",children:t}),n&&f.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:n})]})})}function dce({label:e}){const{icon:t}=R2();return f.jsx(vce,{icon:t("package-open"),title:`${e} · 无可视化界面`,hint:"该插件只提供后端能力;在插件目录添加 web/index.html 可获得 iframe 工作区"})}function mce(e){return typeof e=="function"?!0:!!e&&typeof e=="object"&&"$$typeof"in e}function uce(e){if(!e||typeof e!="object")return null;const t=e;if(t.manifest&&typeof t.manifest=="object"&&mce(t.workspace)){const n=t.manifest;return n.mode?{mode:n.mode,label:n.label,icon:n.icon,description:n.description,external:n.external,order:n.order,manifest:n,params:t.params??void 0,Workspace:t.workspace,Sidebar:t.sidebar}:null}return null}function pce(e,t){const n=e.order??null,r=t.order??null;return n!==null&&r!==null?n!==r?n-r:e.mode.localeCompare(t.mode):n!==null?-1:r!==null?1:e.mode.localeCompare(t.mode)}async function yce(e){return(await Promise.all(Array.from(e,async([n,r])=>{try{const o=await r();return uce(o==null?void 0:o.default)}catch(o){return console.error(`[zdashboard] failed to load web plugin (${n}):`,o),null}}))).filter(n=>n!==null).sort(pce)}function gce(){const[e,t]=B.useState([]),[n,r]=B.useState([]);return B.useEffect(()=>{let o=!1;return(async()=>{const l=await yce(Object.entries(Object.assign({"../../plugins/apply/web.tsx":()=>$r(()=>import("./web-CX1FEFxC.js").then(c=>c.w),__vite__mapDeps([0,1])),"../../plugins/design/web.tsx":()=>$r(()=>import("./web-BZSTgldm.js").then(c=>c.w),__vite__mapDeps([2,1])),"../../plugins/just/web.tsx":()=>$r(()=>import("./web-DOEmlI8d.js").then(c=>c.w),__vite__mapDeps([3,1])),"../../plugins/stats/web.tsx":()=>$r(()=>import("./web-DLwxO4fO.js").then(c=>c.w),__vite__mapDeps([4,1])),"../../plugins/view/web.tsx":()=>$r(()=>import("./web-DxbVzGf3.js").then(c=>c.w),__vite__mapDeps([5,1]))})));o||t(l)})(),()=>{o=!0}},[]),B.useEffect(()=>{let o=!1;return(async()=>{try{const l=await(await fetch("/__plugins",{cache:"no-store"})).json();if(!o){const c=(l.plugins??[]).map(s=>{const v=s.viewerUrl??"";return{...s,Workspace:v?d=>B.createElement(sce,{viewerUrl:v,label:s.label,mode:s.mode,params:d.params}):()=>B.createElement(dce,{label:s.label})}});r(c.filter(s=>!e.some(v=>v.mode===s.mode)))}}catch{}})(),()=>{o=!0}},[e]),[...e,...n].filter((o,i,l)=>l.findIndex(c=>c.mode===o.mode)===i)}const wce={default:"bg-muted text-muted-foreground border-border",success:"border-success/30 bg-success/10 text-success",warning:"border-warning/30 bg-warning/10 text-warning",destructive:"border-destructive/30 bg-destructive/10 text-destructive",info:"border-info/30 bg-info/10 text-info"};function Mce({tone:e="default",children:t}){return f.jsx("span",{className:`inline-flex items-center gap-1 rounded-[var(--radius-full)] border px-2 h-[var(--chip-h)] text-xs font-medium ${wce[e]}`,"data-slot":"chip",children:t})}function zce({icon:e,title:t,breadcrumb:n,status:r,actions:o}){return f.jsxs("div",{className:"flex items-start gap-3 flex-wrap mb-4",children:[e&&f.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-[var(--radius-md)] bg-muted text-muted-foreground",children:e}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h2",{className:"text-lg font-bold tracking-tight text-foreground truncate",children:t}),n&&n.length>0&&f.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:n.join(" / ")})]}),r&&f.jsx(Mce,{tone:r.tone??"default",children:r.label}),o&&f.jsx("div",{className:"flex items-center gap-1.5 flex-none",children:o})]})}function fce({children:e,className:t}){return f.jsx("div",{className:`flex items-center gap-2 flex-wrap rounded-[var(--radius-md)] border border-border bg-background px-2.5 py-1.5 mb-3 ${t??""}`,"data-slot":"toolbar",children:e})}function Hce({icon:e,title:t,hint:n,action:r}){const{icon:o}=R2();return f.jsx("div",{className:"flex-1 grid place-items-center text-muted-foreground select-none","data-slot":"empty-state",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[var(--radius-lg)] bg-muted text-muted-foreground",children:e??o("empty:muted","h-6 w-6")}),f.jsx("p",{className:"text-sm text-foreground/80",children:t}),n&&f.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:n}),r&&f.jsx("div",{className:"mt-3 flex justify-center",children:r})]})})}function kce({message:e,onRetry:t,retryLabel:n="重试"}){const{icon:r}=R2();return f.jsx("div",{className:"flex-1 grid place-items-center select-none","data-slot":"error-state",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[var(--radius-lg)] bg-destructive/10 text-destructive",children:r("file-question","h-6 w-6")}),f.jsx("p",{className:"text-sm text-destructive",role:"alert",children:e}),t&&f.jsx(Er,{variant:"outline",size:"sm",className:"mt-3",onClick:t,children:n})]})})}const LC="animate-pulse rounded-[var(--radius-md)] bg-muted";function GE({rows:e=1,className:t}){return e===1?f.jsx("div",{"data-slot":"skeleton","aria-hidden":!0,className:`${LC} h-[var(--chip-h)] ${t??""}`}):f.jsx("div",{className:`space-y-2.5 ${t??""}`,"aria-hidden":!0,children:Array.from({length:e},(n,r)=>f.jsx("div",{"data-slot":"skeleton",className:r%3===2?`${LC} h-[var(--chip-h)] w-2/3`:`${LC} h-[var(--chip-h)]`},r))})}function xce({loading:e,error:t,empty:n,onRetry:r,loadingRows:o=4,emptyTitle:i="暂无数据",children:l}){return t?f.jsx(kce,{message:t,onRetry:r}):e?f.jsx(GE,{rows:o}):n?f.jsx(Hce,{title:i}):f.jsx(f.Fragment,{children:l})}function Vce({manifest:e,icon:t,breadcrumb:n,status:r,actions:o,toolbar:i,state:l,children:c}){return f.jsxs("div",{className:"flex flex-col h-full","data-plugin-page":e.mode,children:[f.jsx(zce,{icon:t,title:e.label,breadcrumb:n??[e.mode],status:r,actions:o}),i&&f.jsx(fce,{children:i}),f.jsx("div",{className:"flex-1 min-h-0",children:l?f.jsx(xce,{...l,children:c}):c})]})}async function VZ(e){try{return await(await fetch(e,{cache:"no-store"})).json()}catch{return null}}function Cce(){const e=gce(),t=kO(),n=t.plugin,[r,o]=h.useState(""),i=h.useRef(!1),[l,c]=h.useState({hasOpenspec:!1,hasDocs:!1,hasJust:!1}),s=gb(()=>{},()=>{});h.useEffect(()=>{let u=!1;return VZ("/__config").then(m=>{!u&&m&&o(m.root??"")}),()=>{u=!0}},[]),h.useEffect(()=>{let u=!1;return VZ("/__detect").then(m=>{!u&&m&&c({hasOpenspec:!!m.hasOpenspec,hasDocs:!!m.hasDocs,hasJust:!!m.hasJust})}),()=>{u=!0}},[]);const v=n&&e.length>0&&!e.some(u=>u.mode===n)?null:n,p=v?e.find(u=>u.mode===v):null;h.useLayoutEffect(()=>{n==="apply-batch"&&t.navigate({p:"apply",view:"batch"},{replace:!0})},[n,t]);const d=h.useCallback(u=>{t.navigate(u===null?{p:null}:{p:u})},[t]);return f.jsxs("div",{className:"flex h-screen flex-col",children:[f.jsx(Cle,{status:s,stoppedRef:i}),f.jsxs("div",{className:"flex-1 min-h-0 flex",children:[f.jsx(Ele,{active:v,onSelect:d,plugins:e.map(u=>({mode:u.mode,label:u.label,icon:u.icon}))}),f.jsx(Ple,{mode:v??"home",hasContent:!!(p!=null&&p.Sidebar),children:p!=null&&p.Sidebar?f.jsx(h.Suspense,{fallback:f.jsx("div",{className:"w-full h-full"}),children:f.jsx("div",{className:"h-full animate-in fade-in slide-in-from-left-1 duration-200",children:f.jsx(p.Sidebar,{})},v)}):null}),f.jsx("section",{className:"flex-1 min-h-0 dot-grid",children:f.jsx("div",{className:"h-full p-6",children:v&&p?p.manifest?f.jsx(h.Suspense,{fallback:f.jsx(GE,{rows:6}),children:f.jsx("div",{className:"h-full animate-in fade-in duration-200",children:f.jsx(p.Workspace,{params:t.params})},v)}):f.jsx(Ece,{mode:v,label:p.label,description:p.description,icon:p.icon,children:f.jsx(h.Suspense,{fallback:f.jsx(GE,{rows:6}),children:f.jsx(p.Workspace,{params:t.params})})}):f.jsx(Ule,{plugins:e,detect:l,onSelect:d})})})]}),f.jsx(Rle,{projectPath:r,stoppedRef:i})]})}function Ece({mode:e,label:t,description:n,icon:r,children:o}){const i=nb(e,"h-5 w-5");return f.jsx(Vce,{manifest:{mode:e,label:t,description:n},icon:i??(r?f.jsx("span",{className:"text-base leading-none",children:r}):void 0),breadcrumb:["插件",e],children:f.jsx("div",{className:"h-full animate-in fade-in duration-200",children:o},e)})}const wb=document.documentElement;let bx=localStorage.getItem("zd-mode");bx||(bx=localStorage.getItem("zdashboard-theme")==="light"?"light":"dark",localStorage.setItem("zd-mode",bx),localStorage.removeItem("zdashboard-theme"));wb.dataset.mode=bx;let Lce=localStorage.getItem("zd-theme")??"default";wb.dataset.theme=Lce;wb.dispatchEvent(new CustomEvent("themechange"));bC.createRoot(document.getElementById("root")).render(f.jsx(B.StrictMode,{children:f.jsxs(aN,{children:[f.jsx(zT,{children:f.jsx(Cce,{})}),f.jsx(GT,{position:"bottom-right",richColors:!0})]})}));export{Er as B,Mce as C,Hce as E,Vce as P,GE as S,$r as _,kO as a,R2 as b,Sce as c,OT as d,C2 as e,Zce as f,CZ as g,Gj as h,Dce as i,f as j,h as r,nb as u};
@@ -1,4 +1,4 @@
1
- import{c as nn,g as or,j as pn}from"./index-C_16tmIU.js";function mf(){}function gf(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function Si(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ci=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ei=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ii={};function ft(e,t){return(Ii.jsx?Ei:Ci).test(e)}const Ai=/[ \t\n\f\r]/g;function Ti(e){return typeof e=="object"?e.type==="text"?ht(e.value):!1:ht(e)}function ht(e){return e.replace(Ai,"")===""}class qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}qe.prototype.normal={};qe.prototype.property={};qe.prototype.space=void 0;function ar(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new qe(n,r,t)}function vn(e){return e.toLowerCase()}class ee{constructor(t,n){this.attribute=n,this.property=t}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let Pi=0;const z=Te(),W=Te(),zn=Te(),S=Te(),U=Te(),Ie=Te(),te=Te();function Te(){return 2**++Pi}const Dn=Object.freeze(Object.defineProperty({__proto__:null,boolean:z,booleanish:W,commaOrSpaceSeparated:te,commaSeparated:Ie,number:S,overloadedBoolean:zn,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),mn=Object.keys(Dn);class Hn extends ee{constructor(t,n,r,i){let o=-1;if(super(t,n),pt(this,"space",i),typeof r=="number")for(;++o<mn.length;){const l=mn[o];pt(this,mn[o],(r&Dn[l])===Dn[l])}}}Hn.prototype.defined=!0;function pt(e,t,n){n&&(e[t]=n)}function Fe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Hn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[vn(r)]=r,n[vn(o.attribute)]=r}return new qe(t,n,e.space)}const ur=Fe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:W,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:U,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:S,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:U,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:W,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function sr(e,t){return t in e?e[t]:t}function cr(e,t){return sr(e,t.toLowerCase())}const vi=Fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alpha:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:U,autoFocus:z,autoPlay:z,blocking:U,capture:null,charSet:null,checked:z,cite:null,className:U,closedBy:null,colorSpace:null,cols:S,colSpan:S,command:null,commandFor:null,content:null,contentEditable:W,controls:z,controlsList:U,coords:S|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:zn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:U,height:S,hidden:zn,high:S,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:U,itemRef:U,itemScope:z,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:z,optimum:S,pattern:null,ping:U,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:U,required:z,reversed:z,rows:S,rowSpan:S,sandbox:U,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootCustomElementRegistry:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shadowRootSerializable:z,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:W,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:z,disablePictureInPicture:z,disableRemotePlayback:z,exportParts:Ie,part:U,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:cr}),zi=Fe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:te,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:U,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:S,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:te,rev:te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:te,requiredFeatures:te,requiredFonts:te,requiredFormats:te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:te,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sr}),fr=Fe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hr=Fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cr}),pr=Fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Di={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Li=/[A-Z]/g,mt=/-[a-z]/g,Fi=/^data[-\w.:]+$/i;function Ri(e,t){const n=vn(t);let r=t,i=ee;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(mt,Oi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!mt.test(o)){let l=o.replace(Li,_i);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Hn}return new i(r,t)}function _i(e){return"-"+e.toLowerCase()}function Oi(e){return e.charAt(1).toUpperCase()}const Mi=ar([ur,vi,fr,hr,pr],"html"),Un=ar([ur,zi,fr,hr,pr],"svg");function df(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ni(e){return e.join(" ").trim()}var Vn={},gt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Bi=/\n/g,ji=/^\s*/,Hi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ui=/^:\s*/,Vi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$i=/^[;\s]*/,qi=/^\s+|\s+$/g,Wi=`
1
+ import{c as nn,g as or,j as pn}from"./index-Co7MWSFf.js";function mf(){}function gf(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function Si(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ci=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ei=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ii={};function ft(e,t){return(Ii.jsx?Ei:Ci).test(e)}const Ai=/[ \t\n\f\r]/g;function Ti(e){return typeof e=="object"?e.type==="text"?ht(e.value):!1:ht(e)}function ht(e){return e.replace(Ai,"")===""}class qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}qe.prototype.normal={};qe.prototype.property={};qe.prototype.space=void 0;function ar(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new qe(n,r,t)}function vn(e){return e.toLowerCase()}class ee{constructor(t,n){this.attribute=n,this.property=t}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let Pi=0;const z=Te(),W=Te(),zn=Te(),S=Te(),U=Te(),Ie=Te(),te=Te();function Te(){return 2**++Pi}const Dn=Object.freeze(Object.defineProperty({__proto__:null,boolean:z,booleanish:W,commaOrSpaceSeparated:te,commaSeparated:Ie,number:S,overloadedBoolean:zn,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),mn=Object.keys(Dn);class Hn extends ee{constructor(t,n,r,i){let o=-1;if(super(t,n),pt(this,"space",i),typeof r=="number")for(;++o<mn.length;){const l=mn[o];pt(this,mn[o],(r&Dn[l])===Dn[l])}}}Hn.prototype.defined=!0;function pt(e,t,n){n&&(e[t]=n)}function Fe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Hn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[vn(r)]=r,n[vn(o.attribute)]=r}return new qe(t,n,e.space)}const ur=Fe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:W,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:U,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:S,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:U,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:W,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function sr(e,t){return t in e?e[t]:t}function cr(e,t){return sr(e,t.toLowerCase())}const vi=Fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alpha:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:U,autoFocus:z,autoPlay:z,blocking:U,capture:null,charSet:null,checked:z,cite:null,className:U,closedBy:null,colorSpace:null,cols:S,colSpan:S,command:null,commandFor:null,content:null,contentEditable:W,controls:z,controlsList:U,coords:S|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:zn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:U,height:S,hidden:zn,high:S,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:U,itemRef:U,itemScope:z,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:z,optimum:S,pattern:null,ping:U,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:U,required:z,reversed:z,rows:S,rowSpan:S,sandbox:U,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootCustomElementRegistry:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shadowRootSerializable:z,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:W,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:z,disablePictureInPicture:z,disableRemotePlayback:z,exportParts:Ie,part:U,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:cr}),zi=Fe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:te,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:U,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:S,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:te,rev:te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:te,requiredFeatures:te,requiredFonts:te,requiredFormats:te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:te,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sr}),fr=Fe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hr=Fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cr}),pr=Fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Di={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Li=/[A-Z]/g,mt=/-[a-z]/g,Fi=/^data[-\w.:]+$/i;function Ri(e,t){const n=vn(t);let r=t,i=ee;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(mt,Oi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!mt.test(o)){let l=o.replace(Li,_i);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Hn}return new i(r,t)}function _i(e){return"-"+e.toLowerCase()}function Oi(e){return e.charAt(1).toUpperCase()}const Mi=ar([ur,vi,fr,hr,pr],"html"),Un=ar([ur,zi,fr,hr,pr],"svg");function df(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ni(e){return e.join(" ").trim()}var Vn={},gt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Bi=/\n/g,ji=/^\s*/,Hi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ui=/^:\s*/,Vi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$i=/^[;\s]*/,qi=/^\s+|\s+$/g,Wi=`
2
2
  `,dt="/",yt="*",Ee="",Yi="comment",Xi="declaration";function Qi(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(d){var x=d.match(Bi);x&&(n+=x.length);var C=d.lastIndexOf(Wi);r=~C?d.length-C:r+d.length}function o(){var d={line:n,column:r};return function(x){return x.position=new l(d),s(),x}}function l(d){this.start=d,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(d){var x=new Error(t.source+":"+n+":"+r+": "+d);if(x.reason=d,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function u(d){var x=d.exec(e);if(x){var C=x[0];return i(C),e=e.slice(C.length),x}}function s(){u(ji)}function f(d){var x;for(d=d||[];x=c();)x!==!1&&d.push(x);return d}function c(){var d=o();if(!(dt!=e.charAt(0)||yt!=e.charAt(1))){for(var x=2;Ee!=e.charAt(x)&&(yt!=e.charAt(x)||dt!=e.charAt(x+1));)++x;if(x+=2,Ee===e.charAt(x-1))return a("End of comment missing");var C=e.slice(2,x-2);return r+=2,i(C),e=e.slice(x),r+=2,d({type:Yi,comment:C})}}function p(){var d=o(),x=u(Hi);if(x){if(c(),!u(Ui))return a("property missing ':'");var C=u(Vi),y=d({type:Xi,property:kt(x[0].replace(gt,Ee)),value:C?kt(C[0].replace(gt,Ee)):Ee});return u($i),y}}function h(){var d=[];f(d);for(var x;x=p();)x!==!1&&(d.push(x),f(d));return d}return s(),h()}function kt(e){return e?e.replace(qi,Ee):Ee}var Gi=Qi,Ki=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=Zi;const Ji=Ki(Gi);function Zi(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Ji.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var an={};Object.defineProperty(an,"__esModule",{value:!0});an.camelCase=void 0;var el=/^--[a-zA-Z0-9_-]+$/,nl=/-([a-z])/g,tl=/^[^-]+$/,rl=/^-(webkit|moz|ms|o|khtml)-/,il=/^-(ms)-/,ll=function(e){return!e||tl.test(e)||el.test(e)},ol=function(e,t){return t.toUpperCase()},xt=function(e,t){return"".concat(t,"-")},al=function(e,t){return t===void 0&&(t={}),ll(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(il,xt):e=e.replace(rl,xt),e.replace(nl,ol))};an.camelCase=al;var ul=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},sl=ul(Vn),cl=an;function Ln(e,t){var n={};return!e||typeof e!="string"||(0,sl.default)(e,function(r,i){r&&i&&(n[(0,cl.camelCase)(r,t)]=i)}),n}Ln.default=Ln;var fl=Ln;const hl=or(fl),mr=gr("end"),$n=gr("start");function gr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function pl(e){const t=$n(e),n=mr(e);if(t&&n)return{start:t,end:n}}function je(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bt(e.position):"start"in e||"end"in e?bt(e):"line"in e||"column"in e?Fn(e):""}function Fn(e){return wt(e&&e.line)+":"+wt(e&&e.column)}function bt(e){return Fn(e&&e.start)+"-"+Fn(e&&e.end)}function wt(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=je(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const qn={}.hasOwnProperty,ml=new Map,gl=/[A-Z]/g,dl=new Set(["table","tbody","thead","tfoot","tr"]),yl=new Set(["td","th"]),dr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kl(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Al(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Il(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Un:Mi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=yr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function yr(e,t,n){if(t.type==="element")return xl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return bl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Sl(e,t,n);if(t.type==="mdxjsEsm")return wl(e,t);if(t.type==="root")return Cl(e,t,n);if(t.type==="text")return El(e,t)}function xl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Un,e.schema=i),e.ancestors.push(t);const o=xr(e,t.tagName,!1),l=Tl(e,t);let a=Yn(e,t);return dl.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Ti(u):!0})),kr(e,l,o,t),Wn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function bl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ve(e,t.position)}function wl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ve(e,t.position)}function Sl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Un,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:xr(e,t.name,!0),l=Pl(e,t),a=Yn(e,t);return kr(e,l,o,t),Wn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Cl(e,t,n){const r={};return Wn(r,Yn(e,t)),e.create(t,e.Fragment,r,n)}function El(e,t){return t.value}function kr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Il(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function Al(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=$n(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Tl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&qn.call(t.properties,i)){const o=vl(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&yl.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Pl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Ve(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ve(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Yn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ml;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=yr(e,o,l);a!==void 0&&n.push(a)}return n}function vl(e,t,n){const r=Ri(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Si(n):Ni(n)),r.property==="style"){let i=typeof n=="object"?n:zl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Dl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Di[r.property]||r.property:r.attribute,n]}}function zl(e,t){try{return hl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new K("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=dr+"#cannot-parse-style-attribute",i}}function xr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=ft(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=ft(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return qn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ve(e)}function Ve(e,t){const n=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=dr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Dl(e){const t={};let n;for(n in e)qn.call(e,n)&&(t[Ll(n)]=e[n]);return t}function Ll(e){let t=e.replace(gl,Fl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Fl(e){return"-"+e.toLowerCase()}const gn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Rl={};function Xn(e,t){const n=Rl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return br(e,r,i)}function br(e,t,n){if(_l(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return St(e.children,t,n)}return Array.isArray(e)?St(e,t,n):""}function St(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=br(e[i],t,n);return r.join("")}function _l(e){return!!(e&&typeof e=="object")}const Ct=document.createElement("i");function Qn(e){const t="&"+e+";";Ct.innerHTML=t;const n=Ct.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function re(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ie(e,t){return e.length>0?(re(e,e.length,0,t),e):t}const Et={}.hasOwnProperty;function wr(e){const t={};let n=-1;for(;++n<e.length;)Ol(t,e[n]);return t}function Ol(e,t){let n;for(n in t){const i=(Et.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Et.call(i,l)||(i[l]=[]);const a=o[l];Ml(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Ml(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);re(e,0,0,r)}function Sr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J=xe(/[A-Za-z]/),G=xe(/[\dA-Za-z]/),Nl=xe(/[#-'*+\--9=?A-Z^-~]/);function tn(e){return e!==null&&(e<32||e===127)}const Rn=xe(/\d/),Bl=xe(/[\dA-Fa-f]/),jl=xe(/[!-/:-@[-`{-~]/);function v(e){return e!==null&&e<-2}function V(e){return e!==null&&(e<0||e===32)}function R(e){return e===-2||e===-1||e===32}const un=xe(new RegExp("\\p{P}|\\p{S}","u")),Ae=xe(/\s/);function xe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Re(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&G(e.charCodeAt(n+1))&&G(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function O(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return R(u)?(e.enter(n),a(u)):t(u)}function a(u){return R(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}const Hl={tokenize:Ul};function Ul(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),O(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return v(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Vl={tokenize:$l},It={tokenize:ql};function $l(e){const t=this,n=[];let r=0,i,o,l;return a;function a(E){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,u,s)(E)}return s(E)}function u(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const L=t.events.length;let F=L,w;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){w=t.events[F][1].end;break}y(r);let M=L;for(;M<t.events.length;)t.events[M][1].end={...w},M++;return re(t.events,F+1,0,t.events.slice(L)),t.events.length=M,s(E)}return a(E)}function s(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return d(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(It,f,c)(E)}function f(E){return i&&A(),y(r),p(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(E)}function p(E){return t.containerState={},e.attempt(It,h,d)(E)}function h(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function d(E){if(E===null){i&&A(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(E)}function x(E){if(E===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return v(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(E),x)}function C(E,L){const F=t.sliceStream(E);if(L&&F.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(F),t.parser.lazy[E.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const M=t.events.length;let $=M,B,k;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(B){k=t.events[$][1].end;break}B=!0}for(y(r),w=M;w<t.events.length;)t.events[w][1].end={...k},w++;re(t.events,$+1,0,t.events.slice(M)),t.events.length=w}}function y(E){let L=n.length;for(;L-- >E;){const F=n[L];t.containerState=F[1],F[0].exit.call(t,e)}n.length=E}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ql(e,t,n){return O(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Le(e){if(e===null||V(e)||Ae(e))return 1;if(un(e))return 2}function sn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const _n={name:"attention",resolveAll:Wl,tokenize:Yl};function Wl(e,t){let n=-1,r,i,o,l,a,u,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};At(c,-u),At(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=ie(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=ie(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=ie(s,sn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=ie(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=ie(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,re(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Yl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Le(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=Le(u),c=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),t(u)}}function At(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Xl={name:"autolink",tokenize:Ql};function Ql(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return J(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||G(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||G(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||tn(h)?n(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):Nl(h)?(e.consume(h),s):n(h)}function f(h){return G(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||G(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return n(h)}}const We={partial:!0,tokenize:Gl};function Gl(e,t,n){return r;function r(o){return R(o)?O(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||v(o)?t(o):n(o)}}const Cr={continuation:{tokenize:Jl},exit:Zl,name:"blockQuote",tokenize:Kl};function Kl(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return R(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Jl(e,t,n){const r=this;return i;function i(l){return R(l)?O(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Cr,t,n)(l)}}function Zl(e){e.exit("blockQuote")}const Er={name:"characterEscape",tokenize:eo};function eo(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return jl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Ir={name:"characterReference",tokenize:no};function no(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=G,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Bl,f):(e.enter("characterReferenceValue"),o=7,l=Rn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===G&&!Qn(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const Tt={partial:!0,tokenize:ro},Pt={concrete:!0,name:"codeFenced",tokenize:to};function to(e,t,n){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,a;return u;function u(w){return s(w)}function s(w){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(l++,e.consume(w),f):l<3?n(w):(e.exit("codeFencedFenceSequence"),R(w)?O(e,c,"whitespace")(w):c(w))}function c(w){return w===null||v(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Tt,x,L)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||v(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):R(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),O(e,h,"whitespace")(w)):w===96&&w===a?n(w):(e.consume(w),p)}function h(w){return w===null||v(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||v(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?n(w):(e.consume(w),d)}function x(w){return e.attempt(i,L,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&R(w)?O(e,A,"linePrefix",o+1)(w):A(w)}function A(w){return w===null||v(w)?e.check(Tt,x,L)(w):(e.enter("codeFlowValue"),E(w))}function E(w){return w===null||v(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),E)}function L(w){return e.exit("codeFenced"),t(w)}function F(w,M,$){let B=0;return k;function k(N){return w.enter("lineEnding"),w.consume(N),w.exit("lineEnding"),T}function T(N){return w.enter("codeFencedFence"),R(N)?O(w,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):P(N)}function P(N){return N===a?(w.enter("codeFencedFenceSequence"),j(N)):$(N)}function j(N){return N===a?(B++,w.consume(N),j):B>=l?(w.exit("codeFencedFenceSequence"),R(N)?O(w,q,"whitespace")(N):q(N)):$(N)}function q(N){return N===null||v(N)?(w.exit("codeFencedFence"),M(N)):$(N)}}}function ro(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const dn={name:"codeIndented",tokenize:lo},io={partial:!0,tokenize:oo};function lo(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),O(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):v(s)?e.attempt(io,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||v(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function oo(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):v(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):O(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):v(l)?i(l):n(l)}}const ao={name:"codeText",previous:so,resolve:uo,tokenize:co};function uo(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function so(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function co(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):v(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||v(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class fo{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ne(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ne(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ne(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ne(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ne(this.left,n.reverse())}}}function Ne(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ar(e){const t={};let n=-1,r,i,o,l,a,u,s;const f=new fo(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ho(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function ho(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=n,d=0,x=0;const C=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(x=p+1,C.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=a.slice(C[p],C[p+1]),A=o.pop();u.push([A,A+y.length-1]),e.splice(A,2,y)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const po={resolve:go,tokenize:yo},mo={partial:!0,tokenize:ko};function go(e){return Ar(e),e}function yo(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):v(a)?e.check(mo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ko(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),O(e,o,"linePrefix")}function o(l){if(l===null||v(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Tr(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||tn(y)?n(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||v(y)?n(y):(e.consume(y),y===92?d:h)}function d(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function x(y){return!f&&(y===null||y===41||V(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(y)):f<s&&y===40?(e.consume(y),f++,x):y===41?(e.consume(y),f--,x):y===null||y===32||y===40||tn(y)?n(y):(e.consume(y),y===92?C:x)}function C(y){return y===40||y===41||y===92?(e.consume(y),x):x(y)}}function Pr(e,t,n,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):v(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||v(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!R(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function vr(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):n(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?n(p):v(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),O(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||v(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function He(e,t){let n;return r;function r(i){return v(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):R(i)?O(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const xo={name:"definition",tokenize:wo},bo={partial:!0,tokenize:So};function wo(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Pr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return V(h)?He(e,s)(h):s(h)}function s(h){return Tr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(bo,c,c)(h)}function c(h){return R(h)?O(e,p,"whitespace")(h):p(h)}function p(h){return h===null||v(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function So(e,t,n){return r;function r(a){return V(a)?He(e,i)(a):n(a)}function i(a){return vr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return R(a)?O(e,l,"whitespace")(a):l(a)}function l(a){return a===null||v(a)?t(a):n(a)}}const Co={name:"hardBreakEscape",tokenize:Eo};function Eo(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return v(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Io={name:"headingAtx",resolve:Ao,tokenize:To};function Ao(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},re(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function To(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||V(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||v(f)?(e.exit("atxHeading"),t(f)):R(f)?O(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||V(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const Po=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vt=["pre","script","style","textarea"],vo={concrete:!0,name:"htmlFlow",resolveTo:Lo,tokenize:Fo},zo={partial:!0,tokenize:_o},Do={partial:!0,tokenize:Ro};function Lo(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Fo(e,t,n){const r=this;let i,o,l,a,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,x):g===63?(e.consume(g),i=3,r.interrupt?t:m):J(g)?(e.consume(g),l=String.fromCharCode(g),C):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):J(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const ae="CDATA[";return g===ae.charCodeAt(a++)?(e.consume(g),a===ae.length?r.interrupt?t:P:d):n(g)}function x(g){return J(g)?(e.consume(g),l=String.fromCharCode(g),C):n(g)}function C(g){if(g===null||g===47||g===62||V(g)){const ae=g===47,be=l.toLowerCase();return!ae&&!o&&vt.includes(be)?(i=1,r.interrupt?t(g):P(g)):Po.includes(l.toLowerCase())?(i=6,ae?(e.consume(g),y):r.interrupt?t(g):P(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?A(g):E(g))}return g===45||G(g)?(e.consume(g),l+=String.fromCharCode(g),C):n(g)}function y(g){return g===62?(e.consume(g),r.interrupt?t:P):n(g)}function A(g){return R(g)?(e.consume(g),A):k(g)}function E(g){return g===47?(e.consume(g),k):g===58||g===95||J(g)?(e.consume(g),L):R(g)?(e.consume(g),E):k(g)}function L(g){return g===45||g===46||g===58||g===95||G(g)?(e.consume(g),L):F(g)}function F(g){return g===61?(e.consume(g),w):R(g)?(e.consume(g),F):E(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),u=g,M):R(g)?(e.consume(g),w):$(g)}function M(g){return g===u?(e.consume(g),u=null,B):g===null||v(g)?n(g):(e.consume(g),M)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||V(g)?F(g):(e.consume(g),$)}function B(g){return g===47||g===62||R(g)?E(g):n(g)}function k(g){return g===62?(e.consume(g),T):n(g)}function T(g){return g===null||v(g)?P(g):R(g)?(e.consume(g),T):n(g)}function P(g){return g===45&&i===2?(e.consume(g),Q):g===60&&i===1?(e.consume(g),Y):g===62&&i===4?(e.consume(g),oe):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),he):v(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(zo,pe,j)(g)):g===null||v(g)?(e.exit("htmlFlowData"),j(g)):(e.consume(g),P)}function j(g){return e.check(Do,q,pe)(g)}function q(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),N}function N(g){return g===null||v(g)?j(g):(e.enter("htmlFlowData"),P(g))}function Q(g){return g===45?(e.consume(g),m):P(g)}function Y(g){return g===47?(e.consume(g),l="",le):P(g)}function le(g){if(g===62){const ae=l.toLowerCase();return vt.includes(ae)?(e.consume(g),oe):P(g)}return J(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),le):P(g)}function he(g){return g===93?(e.consume(g),m):P(g)}function m(g){return g===62?(e.consume(g),oe):g===45&&i===2?(e.consume(g),m):P(g)}function oe(g){return g===null||v(g)?(e.exit("htmlFlowData"),pe(g)):(e.consume(g),oe)}function pe(g){return e.exit("htmlFlow"),t(g)}}function Ro(e,t,n){const r=this;return i;function i(l){return v(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function _o(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(We,t,n)}}const Oo={name:"htmlText",tokenize:Mo};function Mo(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),F):m===63?(e.consume(m),E):J(m)?(e.consume(m),$):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):J(m)?(e.consume(m),A):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):v(m)?(l=c,Y(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?Q(m):m===45?p(m):c(m)}function d(m){const oe="CDATA[";return m===oe.charCodeAt(o++)?(e.consume(m),o===oe.length?x:d):n(m)}function x(m){return m===null?n(m):m===93?(e.consume(m),C):v(m)?(l=x,Y(m)):(e.consume(m),x)}function C(m){return m===93?(e.consume(m),y):x(m)}function y(m){return m===62?Q(m):m===93?(e.consume(m),y):x(m)}function A(m){return m===null||m===62?Q(m):v(m)?(l=A,Y(m)):(e.consume(m),A)}function E(m){return m===null?n(m):m===63?(e.consume(m),L):v(m)?(l=E,Y(m)):(e.consume(m),E)}function L(m){return m===62?Q(m):E(m)}function F(m){return J(m)?(e.consume(m),w):n(m)}function w(m){return m===45||G(m)?(e.consume(m),w):M(m)}function M(m){return v(m)?(l=M,Y(m)):R(m)?(e.consume(m),M):Q(m)}function $(m){return m===45||G(m)?(e.consume(m),$):m===47||m===62||V(m)?B(m):n(m)}function B(m){return m===47?(e.consume(m),Q):m===58||m===95||J(m)?(e.consume(m),k):v(m)?(l=B,Y(m)):R(m)?(e.consume(m),B):Q(m)}function k(m){return m===45||m===46||m===58||m===95||G(m)?(e.consume(m),k):T(m)}function T(m){return m===61?(e.consume(m),P):v(m)?(l=T,Y(m)):R(m)?(e.consume(m),T):B(m)}function P(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,j):v(m)?(l=P,Y(m)):R(m)?(e.consume(m),P):(e.consume(m),q)}function j(m){return m===i?(e.consume(m),i=void 0,N):m===null?n(m):v(m)?(l=j,Y(m)):(e.consume(m),j)}function q(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||V(m)?B(m):(e.consume(m),q)}function N(m){return m===47||m===62||V(m)?B(m):n(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function Y(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),le}function le(m){return R(m)?O(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):he(m)}function he(m){return e.enter("htmlTextData"),l(m)}}const Gn={name:"labelEnd",resolveAll:Ho,resolveTo:Uo,tokenize:Vo},No={tokenize:$o},Bo={tokenize:qo},jo={tokenize:Wo};function Ho(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&re(e,0,e.length,n),e}function Uo(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,t],["enter",s,t]],a=ie(a,e.slice(o+1,o+r+3)),a=ie(a,[["enter",f,t]]),a=ie(a,sn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=ie(a,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),a=ie(a,e.slice(l+1)),a=ie(a,[["exit",u,t]]),re(e,o,e.length,a),e}function Vo(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(se(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(No,f,l?f:c)(p):p===91?e.attempt(Bo,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(jo,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function $o(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return V(c)?He(e,o)(c):o(c)}function o(c){return c===41?f(c):Tr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return V(c)?He(e,u)(c):f(c)}function a(c){return n(c)}function u(c){return c===34||c===39||c===40?vr(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return V(c)?He(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function qo(e,t,n){const r=this;return i;function i(a){return Pr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function Wo(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Yo={name:"labelStartImage",resolveAll:Gn.resolveAll,tokenize:Xo};function Xo(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Qo={name:"labelStartLink",resolveAll:Gn.resolveAll,tokenize:Go};function Go(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const yn={name:"lineEnding",tokenize:Ko};function Ko(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),O(e,t,"linePrefix")}}const Ze={name:"thematicBreak",tokenize:Jo};function Jo(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||v(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),R(s)?O(e,a,"whitespace")(s):a(s))}}const Z={continuation:{tokenize:ta},exit:ia,name:"list",tokenize:na},Zo={partial:!0,tokenize:la},ea={partial:!0,tokenize:ra};function na(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Rn(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Ze,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return Rn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(We,r.interrupt?n:f,e.attempt(Zo,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return R(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function ta(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(We,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,O(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!R(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ea,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,O(e,e.attempt(Z,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ra(e,t,n){const r=this;return O(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function ia(e){e.exit(this.containerState.type)}function la(e,t,n){const r=this;return O(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!R(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const zt={name:"setextUnderline",resolveTo:oa,tokenize:aa};function oa(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function aa(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),R(s)?O(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||v(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const ua={tokenize:sa};function sa(e){const t=this,n=e.attempt(We,r,e.attempt(this.parser.constructs.flowInitial,i,O(e,e.attempt(this.parser.constructs.flow,i,e.attempt(po,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ca={resolveAll:Dr()},fa=zr("string"),ha=zr("text");function zr(e){return{resolveAll:Dr(e==="text"?pa:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Dr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function pa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const s={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const ma={42:Z,43:Z,45:Z,48:Z,49:Z,50:Z,51:Z,52:Z,53:Z,54:Z,55:Z,56:Z,57:Z,62:Cr},ga={91:xo},da={[-2]:dn,[-1]:dn,32:dn},ya={35:Io,42:Ze,45:[zt,Ze],60:vo,61:zt,95:Ze,96:Pt,126:Pt},ka={38:Ir,92:Er},xa={[-5]:yn,[-4]:yn,[-3]:yn,33:Yo,38:Ir,42:_n,60:[Xl,Oo],91:Qo,92:[Co,Er],93:Gn,95:_n,96:ao},ba={null:[_n,ca]},wa={null:[42,95]},Sa={null:[]},Ca=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wa,contentInitial:ga,disable:Sa,document:ma,flow:ya,flowInitial:da,insideSpan:ba,string:ka,text:xa},Symbol.toStringTag,{value:"Module"}));function Ea(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:M(F),check:M(w),consume:A,enter:E,exit:L,interrupt:M(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:x,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,u);return t.resolveAll&&o.push(t),s;function c(T){return l=ie(l,T),C(),l[l.length-1]!==null?[]:($(t,0),s.events=sn(o,s.events,s),s.events)}function p(T,P){return Aa(h(T),P)}function h(T){return Ia(l,T)}function d(){const{_bufferIndex:T,_index:P,line:j,column:q,offset:N}=r;return{_bufferIndex:T,_index:P,line:j,column:q,offset:N}}function x(T){i[T.line]=T.column,k()}function C(){let T;for(;r._index<l.length;){const P=l[r._index];if(typeof P=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(T){f=f(T)}function A(T){v(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,k()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=T}function E(T,P){const j=P||{};return j.type=T,j.start=d(),s.events.push(["enter",j,s]),a.push(j),j}function L(T){const P=a.pop();return P.end=d(),s.events.push(["exit",P,s]),P}function F(T,P){$(T,P.from)}function w(T,P){P.restore()}function M(T,P){return j;function j(q,N,Q){let Y,le,he,m;return Array.isArray(q)?pe(q):"tokenize"in q?pe([q]):oe(q);function oe(X){return _e;function _e(ye){const Pe=ye!==null&&X[ye],ve=ye!==null&&X.null,Xe=[...Array.isArray(Pe)?Pe:Pe?[Pe]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return pe(Xe)(ye)}}function pe(X){return Y=X,le=0,X.length===0?Q:g(X[le])}function g(X){return _e;function _e(ye){return m=B(),he=X,X.partial||(s.currentConstruct=X),X.name&&s.parser.constructs.disable.null.includes(X.name)?be():X.tokenize.call(P?Object.assign(Object.create(s),P):s,u,ae,be)(ye)}}function ae(X){return T(he,m),N}function be(X){return m.restore(),++le<Y.length?g(Y[le]):Q}}}function $(T,P){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&re(s.events,P,s.events.length-P,T.resolve(s.events.slice(P),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function B(){const T=d(),P=s.previous,j=s.currentConstruct,q=s.events.length,N=Array.from(a);return{from:q,restore:Q};function Q(){r=T,s.previous=P,s.currentConstruct=j,s.events.length=q,a=N,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ia(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Aa(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
3
  `;break}case-3:{l=`\r
4
4
  `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Ta(e){const r={constructs:wr([Ca,...(e||{}).extensions||[]]),content:i(Hl),defined:[],document:i(Vl),flow:i(ua),lazy:{},string:i(fa),text:i(ha)};return r;function i(o){return l;function l(a){return Ea(r,o,a)}}}function Pa(e){for(;!Ar(e););return e}const Dt=/[\0\t\n\r]/g;function va(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Dt.lastIndex=c,s=Dt.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const za=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Da(e){return e.replace(za,La)}function La(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Sr(n.slice(o?2:1),o?16:10)}return Qn(n)||e}const Lr={}.hasOwnProperty;function Fa(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Ra(n)(Pa(Ta(n).document().write(va()(e,t,!0))))}function Ra(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(st),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(ot),blockQuote:o(ve),characterEscape:B,characterReference:B,codeFenced:o(Xe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Xe,l),codeText:o(pi,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(mi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(gi),hardBreakEscape:o(at),hardBreakTrailing:o(at),htmlFlow:o(ut,l),htmlFlowData:B,htmlText:o(ut,l),htmlTextData:B,image:o(di),label:l,link:o(st),listItem:o(yi),listItemValue:p,listOrdered:o(ct,c),listUnordered:o(ct),paragraph:o(ki),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ot),strong:o(xi),thematicBreak:o(wi)},exit:{atxHeading:u(),atxHeadingSequence:F,autolink:u(),autolinkEmail:Pe,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:X,characterReference:_e,codeFenced:u(C),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:u(y),codeText:u(N),codeTextData:k,data:k,definition:u(),definitionDestinationString:L,definitionLabelString:A,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(P),hardBreakTrailing:u(P),htmlFlow:u(j),htmlFlowData:k,htmlText:u(q),htmlTextData:k,image:u(Y),label:he,labelText:le,lineEnding:T,link:u(Q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:m,resourceTitleString:oe,resource:pe,setextHeading:u($),setextHeadingLineSequence:M,setextHeadingText:w,strong:u(),thematicBreak:u()}};Fr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(b){let I={type:"root",children:[]};const D={stack:[I],tokenStack:[],config:t,enter:a,exit:s,buffer:l,resume:f,data:n},_=[];let H=-1;for(;++H<b.length;)if(b[H][1].type==="listOrdered"||b[H][1].type==="listUnordered")if(b[H][0]==="enter")_.push(H);else{const ue=_.pop();H=i(b,ue,H)}for(H=-1;++H<b.length;){const ue=t[b[H][0]];Lr.call(ue,b[H][1].type)&&ue[b[H][1].type].call(Object.assign({sliceSerialize:b[H][2].sliceSerialize},D),b[H][1])}if(D.tokenStack.length>0){const ue=D.tokenStack[D.tokenStack.length-1];(ue[1]||Lt).call(D,void 0,ue[0])}for(I.position={start:ke(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:ke(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<t.transforms.length;)I=t.transforms[H](I)||I;return I}function i(b,I,D){let _=I-1,H=-1,ue=!1,we,me,Oe,Me;for(;++_<=D;){const ne=b[_];switch(ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ne[0]==="enter"?H++:H--,Me=void 0;break}case"lineEndingBlank":{ne[0]==="enter"&&(we&&!Me&&!H&&!Oe&&(Oe=_),Me=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Me=void 0}if(!H&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||H===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(we){let ze=_;for(me=void 0;ze--;){const ge=b[ze];if(ge[1].type==="lineEnding"||ge[1].type==="lineEndingBlank"){if(ge[0]==="exit")continue;me&&(b[me][1].type="lineEndingBlank",ue=!0),ge[1].type="lineEnding",me=ze}else if(!(ge[1].type==="linePrefix"||ge[1].type==="blockQuotePrefix"||ge[1].type==="blockQuotePrefixWhitespace"||ge[1].type==="blockQuoteMarker"||ge[1].type==="listItemIndent"))break}Oe&&(!me||Oe<me)&&(we._spread=!0),we.end=Object.assign({},me?b[me][1].start:ne[1].end),b.splice(me||_,0,["exit",we,ne[2]]),_++,D++}if(ne[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0};we=ze,b.splice(_,0,["enter",ze,ne[2]]),_++,D++,Oe=void 0,Me=!0}}}return b[I][1]._spread=ue,D}function o(b,I){return D;function D(_){a.call(this,b(_),_),I&&I.call(this,_)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,I,D){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([I,D||void 0]),b.position={start:ke(I.start),end:void 0}}function u(b){return I;function I(D){b&&b.call(this,D),s.call(this,D)}}function s(b,I){const D=this.stack.pop(),_=this.tokenStack.pop();if(_)_[0].type!==b.type&&(I?I.call(this,b,_[0]):(_[1]||Lt).call(this,b,_[0]));else throw new Error("Cannot close `"+b.type+"` ("+je({start:b.start,end:b.end})+"): it’s not open");D.position.end=ke(b.end)}function f(){return Xn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),I=this.stack[this.stack.length-1];I.lang=b}function d(){const b=this.resume(),I=this.stack[this.stack.length-1];I.meta=b}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/(\r?\n|\r)$/g,"")}function A(b){const I=this.resume(),D=this.stack[this.stack.length-1];D.label=I,D.identifier=se(this.sliceSerialize(b)).toLowerCase()}function E(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function L(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function F(b){const I=this.stack[this.stack.length-1];if(!I.depth){const D=this.sliceSerialize(b).length;I.depth=D}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function M(b){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function B(b){const D=this.stack[this.stack.length-1].children;let _=D[D.length-1];(!_||_.type!=="text")&&(_=bi(),_.position={start:ke(b.start),end:void 0},D.push(_)),this.stack.push(_)}function k(b){const I=this.stack.pop();I.value+=this.sliceSerialize(b),I.position.end=ke(b.end)}function T(b){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const D=I.children[I.children.length-1];D.position.end=ke(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(B.call(this,b),k.call(this,b))}function P(){this.data.atHardBreak=!0}function j(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function q(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function N(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function Q(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function Y(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function le(b){const I=this.sliceSerialize(b),D=this.stack[this.stack.length-2];D.label=Da(I),D.identifier=se(I).toLowerCase()}function he(){const b=this.stack[this.stack.length-1],I=this.resume(),D=this.stack[this.stack.length-1];if(this.data.inReference=!0,D.type==="link"){const _=b.children;D.children=_}else D.alt=I}function m(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function oe(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function pe(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(b){const I=this.resume(),D=this.stack[this.stack.length-1];D.label=I,D.identifier=se(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function be(b){this.data.characterReferenceType=b.type}function X(b){const I=this.sliceSerialize(b),D=this.data.characterReferenceType;let _;D?(_=Sr(I,D==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_=Qn(I);const H=this.stack[this.stack.length-1];H.value+=_}function _e(b){const I=this.stack.pop();I.position.end=ke(b.end)}function ye(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(b)}function Pe(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(b)}function ve(){return{type:"blockquote",children:[]}}function Xe(){return{type:"code",lang:null,meta:null,value:""}}function pi(){return{type:"inlineCode",value:""}}function mi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function gi(){return{type:"emphasis",children:[]}}function ot(){return{type:"heading",depth:0,children:[]}}function at(){return{type:"break"}}function ut(){return{type:"html",value:""}}function di(){return{type:"image",title:null,url:"",alt:null}}function st(){return{type:"link",title:null,url:"",children:[]}}function ct(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function yi(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function ki(){return{type:"paragraph",children:[]}}function xi(){return{type:"strong",children:[]}}function bi(){return{type:"text",value:""}}function wi(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Fr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fr(e,r):_a(e,r)}}function _a(e,t){let n;for(n in t)if(Lr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Lt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+je({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+je({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+je({start:t.start,end:t.end})+") is still open")}function Oa(e){const t=this;t.parser=n;function n(r){return Fa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ma(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Na(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -1 +1 @@
1
- import{r as a,i as S}from"./index-C_16tmIU.js";const f=new Map,s=new Map,d=new Set;function v(e){for(const i of[...d])i.event===e&&i.cb()}function m(e){return e instanceof Error?e.message:String(e)}function M(e,i,r){const o=a.useRef(i);a.useEffect(()=>{o.current=i}),S((r==null?void 0:r.subscribe)??"",()=>v((r==null?void 0:r.subscribe)??""));const[b,g]=a.useState(0),[h,c]=a.useState(()=>{const t=f.get(e);return t?{data:t.data,error:null,loading:!1}:{data:null,error:null,loading:!0}}),l=a.useCallback(t=>{if(t)f.delete(e),s.delete(e);else{const n=f.get(e);if(n){c({data:n.data,error:null,loading:!1});return}}let u=s.get(e);u||(u=Promise.resolve().then(()=>o.current()),s.set(e,u),u.then(n=>{f.set(e,{data:n,error:null})},()=>{}).finally(()=>{s.get(e)===u&&s.delete(e)})),c(n=>({...n,loading:n.loading||t,error:null})),u.then(n=>c({data:n,error:null,loading:!1}),n=>c({data:null,error:m(n),loading:!1}))},[e]);a.useEffect(()=>{l(!1)},[e,b,l]),a.useEffect(()=>{if(!(r!=null&&r.subscribe))return;const t={event:r.subscribe,cb:()=>{l(!0)}};return d.add(t),()=>{d.delete(t)}},[r==null?void 0:r.subscribe,l]);const E=a.useCallback(()=>{g(t=>t+1),l(!0)},[l]);return{...h,reload:E}}export{M as u};
1
+ import{r as a,i as S}from"./index-Co7MWSFf.js";const f=new Map,s=new Map,d=new Set;function v(e){for(const i of[...d])i.event===e&&i.cb()}function m(e){return e instanceof Error?e.message:String(e)}function M(e,i,r){const o=a.useRef(i);a.useEffect(()=>{o.current=i}),S((r==null?void 0:r.subscribe)??"",()=>v((r==null?void 0:r.subscribe)??""));const[b,g]=a.useState(0),[h,c]=a.useState(()=>{const t=f.get(e);return t?{data:t.data,error:null,loading:!1}:{data:null,error:null,loading:!0}}),l=a.useCallback(t=>{if(t)f.delete(e),s.delete(e);else{const n=f.get(e);if(n){c({data:n.data,error:null,loading:!1});return}}let u=s.get(e);u||(u=Promise.resolve().then(()=>o.current()),s.set(e,u),u.then(n=>{f.set(e,{data:n,error:null})},()=>{}).finally(()=>{s.get(e)===u&&s.delete(e)})),c(n=>({...n,loading:n.loading||t,error:null})),u.then(n=>c({data:n,error:null,loading:!1}),n=>c({data:null,error:m(n),loading:!1}))},[e]);a.useEffect(()=>{l(!1)},[e,b,l]),a.useEffect(()=>{if(!(r!=null&&r.subscribe))return;const t={event:r.subscribe,cb:()=>{l(!0)}};return d.add(t),()=>{d.delete(t)}},[r==null?void 0:r.subscribe,l]);const E=a.useCallback(()=>{g(t=>t+1),l(!0)},[l]);return{...h,reload:E}}export{M as u};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-BLaqqsJU.js","assets/index-C_16tmIU.js","assets/index-CwS-KyOV.css","assets/FilterPills-BVAToHeu.js","assets/CodeViewer-C_3Ms2Ri.js","assets/index-DvE_prho.js","assets/CodeViewer-BTcE7LSd.css","assets/client-Cw4K1Nx3.js","assets/Sidebar-CYYR-the.js","assets/FileIcon-a612-H-j.js","assets/usePluginData-pzvMTyoN.js"])))=>i.map(i=>d[i]);
2
- import{r as e,_ as o}from"./index-C_16tmIU.js";import{d as t}from"./client-Cw4K1Nx3.js";const r={mode:"design",label:"设计资产",icon:"🎨",description:"设计资产分类浏览 · zdesign",order:30},i=[{name:"type",label:"资产类型",type:"string",description:"page/component/icon/token/md/video/audio/pdf/font"},{name:"asset",label:"选中资产",type:"string",description:"资产相对路径"},{name:"folder",label:"当前文件夹",type:"string",description:"限定展示的资产路径前缀"}],n=t({manifest:r,params:i,workspace:e.lazy(()=>o(()=>import("./Workspace-BLaqqsJU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),sidebar:e.lazy(()=>o(()=>import("./Sidebar-CYYR-the.js"),__vite__mapDeps([8,1,2,9,10])))}),d=Object.freeze(Object.defineProperty({__proto__:null,default:n},Symbol.toStringTag,{value:"Module"}));export{r as m,d as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-DWHHR42N.js","assets/index-Co7MWSFf.js","assets/index-CwS-KyOV.css","assets/FilterPills-CCubROoX.js","assets/CodeViewer-Cs0mG1h6.js","assets/index-D6EJRHBV.js","assets/CodeViewer-BTcE7LSd.css","assets/client-Cw4K1Nx3.js","assets/Sidebar-DE0UBp9b.js","assets/FileIcon-1KBdrfw3.js","assets/usePluginData-IoRqReIJ.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,_ as o}from"./index-Co7MWSFf.js";import{d as t}from"./client-Cw4K1Nx3.js";const r={mode:"design",label:"设计资产",icon:"🎨",description:"设计资产分类浏览 · zdesign",order:30},i=[{name:"type",label:"资产类型",type:"string",description:"page/component/icon/token/md/video/audio/pdf/font"},{name:"asset",label:"选中资产",type:"string",description:"资产相对路径"},{name:"folder",label:"当前文件夹",type:"string",description:"限定展示的资产路径前缀"}],n=t({manifest:r,params:i,workspace:e.lazy(()=>o(()=>import("./Workspace-DWHHR42N.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),sidebar:e.lazy(()=>o(()=>import("./Sidebar-DE0UBp9b.js"),__vite__mapDeps([8,1,2,9,10])))}),d=Object.freeze(Object.defineProperty({__proto__:null,default:n},Symbol.toStringTag,{value:"Module"}));export{r as m,d as w};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-NqbDbmhC.js","assets/index-C_16tmIU.js","assets/index-CwS-KyOV.css","assets/client-Cw4K1Nx3.js"])))=>i.map(i=>d[i]);
2
- import{r as e,_ as n}from"./index-C_16tmIU.js";import{d as t}from"./client-Cw4K1Nx3.js";const a={mode:"apply",label:"执行进度",icon:"⚙️",description:"OpenSpec 执行进度 · zapply 单 change 与批量",order:40},r=[{name:"change",label:"Change",type:"string",description:"openspec change 名"},{name:"view",label:"视图",type:"string",description:"single/batch(缺省 single)"},{name:"sel",label:"选中 change",type:"string",description:"批量驾驶舱选中的 change 名"},{name:"run",label:"Run ID",type:"string",description:"显式 runId(多战线时寻址),缺省读 CURRENT"}],o=t({manifest:a,params:r,workspace:e.lazy(()=>n(()=>import("./Workspace-NqbDbmhC.js"),__vite__mapDeps([0,1,2,3])))}),s=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"}));export{a as m,s as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-B7MhdnwY.js","assets/index-Co7MWSFf.js","assets/index-CwS-KyOV.css","assets/client-Cw4K1Nx3.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,_ as n}from"./index-Co7MWSFf.js";import{d as t}from"./client-Cw4K1Nx3.js";const a={mode:"apply",label:"执行进度",icon:"⚙️",description:"OpenSpec 执行进度 · zapply 单 change 与批量",order:40},r=[{name:"change",label:"Change",type:"string",description:"openspec change 名"},{name:"view",label:"视图",type:"string",description:"single/batch(缺省 single)"},{name:"sel",label:"选中 change",type:"string",description:"批量驾驶舱选中的 change 名"},{name:"run",label:"Run ID",type:"string",description:"显式 runId(多战线时寻址),缺省读 CURRENT"}],o=t({manifest:a,params:r,workspace:e.lazy(()=>n(()=>import("./Workspace-B7MhdnwY.js"),__vite__mapDeps([0,1,2,3])))}),s=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"}));export{a as m,s as w};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-Coooyssr.js","assets/index-C_16tmIU.js","assets/index-CwS-KyOV.css","assets/ProgressBar-YEvCsTOC.js","assets/usePluginData-pzvMTyoN.js","assets/client-Cw4K1Nx3.js"])))=>i.map(i=>d[i]);
2
- import{r as e,_ as t}from"./index-C_16tmIU.js";import{d as r}from"./client-Cw4K1Nx3.js";const o={mode:"stats",label:"项目统计",icon:"📊",description:"项目文件统计 · 扫描生成",order:10},a=[{name:"card",label:"钻取来源",type:"string",description:"钻取来源(worktree/dirty),view 侧读取后高亮"}],i=r({manifest:o,params:a,workspace:e.lazy(()=>t(()=>import("./Workspace-Coooyssr.js"),__vite__mapDeps([0,1,2,3,4,5])))}),d=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as m,d as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-CAcrVL-m.js","assets/index-Co7MWSFf.js","assets/index-CwS-KyOV.css","assets/ProgressBar-DVfldtzq.js","assets/usePluginData-IoRqReIJ.js","assets/client-Cw4K1Nx3.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,_ as t}from"./index-Co7MWSFf.js";import{d as r}from"./client-Cw4K1Nx3.js";const o={mode:"stats",label:"项目统计",icon:"📊",description:"项目文件统计 · 扫描生成",order:10},a=[{name:"card",label:"钻取来源",type:"string",description:"钻取来源(worktree/dirty),view 侧读取后高亮"}],i=r({manifest:o,params:a,workspace:e.lazy(()=>t(()=>import("./Workspace-CAcrVL-m.js"),__vite__mapDeps([0,1,2,3,4,5])))}),d=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as m,d as w};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-DT0JWcsX.js","assets/index-C_16tmIU.js","assets/index-CwS-KyOV.css","assets/FilterPills-BVAToHeu.js","assets/usePluginData-pzvMTyoN.js","assets/client-Cw4K1Nx3.js"])))=>i.map(i=>d[i]);
2
- import{r as e,_ as t}from"./index-C_16tmIU.js";import{d as r}from"./client-Cw4K1Nx3.js";const o={mode:"just",label:"Just Runner",icon:"📜",description:"Just 任务日志与执行",order:50},i=[{name:"recipe",label:"Recipe",type:"string",description:"选中的 recipe 名"},{name:"task",label:"任务",type:"string",description:"活跃任务 id"}],s=r({manifest:o,params:i,workspace:e.lazy(()=>t(()=>import("./Workspace-DT0JWcsX.js"),__vite__mapDeps([0,1,2,3,4,5])))}),p=Object.freeze(Object.defineProperty({__proto__:null,default:s},Symbol.toStringTag,{value:"Module"}));export{o as m,p as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-CvG5lIPT.js","assets/index-Co7MWSFf.js","assets/index-CwS-KyOV.css","assets/FilterPills-CCubROoX.js","assets/usePluginData-IoRqReIJ.js","assets/client-Cw4K1Nx3.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,_ as t}from"./index-Co7MWSFf.js";import{d as r}from"./client-Cw4K1Nx3.js";const o={mode:"just",label:"Just Runner",icon:"📜",description:"Just 任务日志与执行",order:50},i=[{name:"recipe",label:"Recipe",type:"string",description:"选中的 recipe 名"},{name:"task",label:"任务",type:"string",description:"活跃任务 id"}],s=r({manifest:o,params:i,workspace:e.lazy(()=>t(()=>import("./Workspace-CvG5lIPT.js"),__vite__mapDeps([0,1,2,3,4,5])))}),p=Object.freeze(Object.defineProperty({__proto__:null,default:s},Symbol.toStringTag,{value:"Module"}));export{o as m,p as w};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-C70CR7yx.js","assets/index-C_16tmIU.js","assets/index-CwS-KyOV.css","assets/CodeViewer-C_3Ms2Ri.js","assets/index-DvE_prho.js","assets/CodeViewer-BTcE7LSd.css","assets/client-Cw4K1Nx3.js","assets/Sidebar-CmJ0RfM6.js","assets/FileIcon-a612-H-j.js","assets/usePluginData-pzvMTyoN.js"])))=>i.map(i=>d[i]);
2
- import{r as e,_ as t}from"./index-C_16tmIU.js";import{d as r}from"./client-Cw4K1Nx3.js";const o={mode:"view",label:"项目浏览",icon:"👁️",description:"openspec / docs / 文档预览",order:20},i=[{name:"wt",label:"Worktree 路径",type:"string",description:"worktree 绝对路径"},{name:"file",label:"文件路径",type:"string",description:"预览文件相对路径"},{name:"filter",label:"过滤词",type:"string",description:"文件树过滤词"}],a=r({manifest:o,params:i,workspace:e.lazy(()=>t(()=>import("./Workspace-C70CR7yx.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),sidebar:e.lazy(()=>t(()=>import("./Sidebar-CmJ0RfM6.js"),__vite__mapDeps([7,1,2,8,9])))}),l=Object.freeze(Object.defineProperty({__proto__:null,default:a},Symbol.toStringTag,{value:"Module"}));export{o as m,l as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Workspace-cXLWoMNL.js","assets/index-Co7MWSFf.js","assets/index-CwS-KyOV.css","assets/CodeViewer-Cs0mG1h6.js","assets/index-D6EJRHBV.js","assets/CodeViewer-BTcE7LSd.css","assets/client-Cw4K1Nx3.js","assets/Sidebar-D4sJtPI_.js","assets/FileIcon-1KBdrfw3.js","assets/usePluginData-IoRqReIJ.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,_ as t}from"./index-Co7MWSFf.js";import{d as r}from"./client-Cw4K1Nx3.js";const o={mode:"view",label:"项目浏览",icon:"👁️",description:"openspec / docs / 文档预览",order:20},i=[{name:"wt",label:"Worktree 路径",type:"string",description:"worktree 绝对路径"},{name:"file",label:"文件路径",type:"string",description:"预览文件相对路径"},{name:"filter",label:"过滤词",type:"string",description:"文件树过滤词"}],a=r({manifest:o,params:i,workspace:e.lazy(()=>t(()=>import("./Workspace-cXLWoMNL.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),sidebar:e.lazy(()=>t(()=>import("./Sidebar-D4sJtPI_.js"),__vite__mapDeps([7,1,2,8,9])))}),l=Object.freeze(Object.defineProperty({__proto__:null,default:a},Symbol.toStringTag,{value:"Module"}));export{o as m,l as w};
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
7
7
  <title>zdashboard · 项目洞察</title>
8
- <script type="module" crossorigin src="/assets/index-C_16tmIU.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-Co7MWSFf.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-CwS-KyOV.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zdashboard",
3
- "version": "2.8.3",
3
+ "version": "2.8.4",
4
4
  "description": "ZCode skill dashboard platform — pluggable viewers for zdesign/zview/zreview/zgoal",
5
5
  "type": "module",
6
6
  "bin": {