@tickernelz/paperclip-pro-ui 2026.1009.1 → 2026.1009.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-CowKoklf.js → AgentAvatar-Jt6HpvU2.js} +1 -1
- package/dist/assets/{AgentIdentity-B0GifyUo.js → AgentIdentity-2cID8kur.js} +1 -1
- package/dist/assets/{Agents.production-FaM4wpTS.js → Agents.production-DSa6Vl3y.js} +2 -2
- package/dist/assets/{CompanyActivity.production-BcH-cmKg.js → CompanyActivity.production-CXZY_w67.js} +1 -1
- package/dist/assets/{CompanyExport-E9rrQ06I.js → CompanyExport-BlNlzmA0.js} +1 -1
- package/dist/assets/{CompanySkills.production-CZdyIGAh.js → CompanySkills.production-Wzc95Tf4.js} +1 -1
- package/dist/assets/{Costs.production-DVpc3sPN.js → Costs.production-Dgazqe6X.js} +1 -1
- package/dist/assets/{EmptyState-B54qBJdG.js → EmptyState-B1JSbXSE.js} +1 -1
- package/dist/assets/MarkdownBody-CvvH69j_.js +16 -0
- package/dist/assets/{MarkdownEditor-Dkh_ud4t.js → MarkdownEditor-DCE_KC27.js} +7 -7
- package/dist/assets/{OrgChart.production-BVyu-TT-.js → OrgChart.production-BEhpdEr9.js} +1 -1
- package/dist/assets/{PageSkeleton-DOrN07nB.js → PageSkeleton-BmmfQJ6g.js} +1 -1
- package/dist/assets/{RoutineDetail.production-DfjhhWSv.js → RoutineDetail.production-CpuZ5sxp.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-wvsgUi5R.js → RoutineRunVariablesDialog-C-j5V71-.js} +1 -1
- package/dist/assets/{Routines.production-DdwLEgVn.js → Routines.production-Dt1_0n4r.js} +1 -1
- package/dist/assets/{SidebarContext-e0rNi3On.js → SidebarContext-BguZPmI9.js} +1 -1
- package/dist/assets/{StatusIcon-CJevr908.js → StatusIcon-BCy8D6Fj.js} +1 -1
- package/dist/assets/{agent-avatar-url-BgtuDQuJ.js → agent-avatar-url-DtOIjE-b.js} +1 -1
- package/dist/assets/{agents-BqHpxyXa.js → agents-DA5qW1fs.js} +1 -1
- package/dist/assets/{badge-B1opbM2C.js → badge-DEcdN2HY.js} +1 -1
- package/dist/assets/{bot-COgMVxie.js → bot-S2JV9WBV.js} +1 -1
- package/dist/assets/{boxes-CmvDVxbq.js → boxes-CeCVqNtb.js} +1 -1
- package/dist/assets/{button-CiCWqyHT.js → button-yf2m1_gs.js} +1 -1
- package/dist/assets/{card-sHXnFZQl.js → card-Cl_LFk7c.js} +1 -1
- package/dist/assets/{check-Co2tYHc6.js → check-xeGJ2HPN.js} +1 -1
- package/dist/assets/{checkbox-DxzcpGzB.js → checkbox-CIcktoHJ.js} +1 -1
- package/dist/assets/{chevron-down-iZ-OPfMP.js → chevron-down-CZ7qFy9y.js} +1 -1
- package/dist/assets/{chevron-right-C2GZk5mS.js → chevron-right-D0Hti4WB.js} +1 -1
- package/dist/assets/{clipboard-Ch2RFnBG.js → clipboard-NgncerTn.js} +1 -1
- package/dist/assets/{company-members-BJTKKG75.js → company-members-CDG03HZV.js} +1 -1
- package/dist/assets/{definition-BXj7kCHc.js → definition-Doyo4Zr4.js} +1 -1
- package/dist/assets/{dist-CgrzrDl3.js → dist-B6HyW9be.js} +1 -1
- package/dist/assets/{dist-CcAKjIy0.js → dist-BAFQ8Oiq.js} +1 -1
- package/dist/assets/{environments-CrkAniLn.js → environments-BT_uDOM8.js} +1 -1
- package/dist/assets/{external-link-DO6q0R3l.js → external-link-CjUn0PMx.js} +1 -1
- package/dist/assets/{file-text-DPKvkhqC.js → file-text-D87G0ZiA.js} +1 -1
- package/dist/assets/{health-DJWMhATw.js → health-k3cyi4s3.js} +1 -1
- package/dist/assets/{heartbeats-BIzk9_-_.js → heartbeats-DeXOtSp3.js} +1 -1
- package/dist/assets/{index-iLdUWxoA.js → index-DzwtTcH-.js} +153 -153
- package/dist/assets/{input-C5_FG4bG.js → input-DnT08BOo.js} +1 -1
- package/dist/assets/{label-LNcfjNUd.js → label-DSx2Qxn6.js} +1 -1
- package/dist/assets/{loader-circle-ClbceUoH.js → loader-circle-DSiPgghG.js} +1 -1
- package/dist/assets/{mention-chips-DaQB1XXn.js → mention-chips-OAQdMAP9.js} +2 -2
- package/dist/assets/{octagon-alert-DvPiKDSj.js → octagon-alert-BbqyswZU.js} +1 -1
- package/dist/assets/{rotate-ccw-CnVoQJ8c.js → rotate-ccw-Du0rX6yB.js} +1 -1
- package/dist/assets/{router-7hDvVKpK.js → router-CoeH24PK.js} +2 -2
- package/dist/assets/{save-C8Purtgn.js → save-d5benU21.js} +1 -1
- package/dist/assets/{select-B_zFVzlA.js → select-DarpvIBM.js} +1 -1
- package/dist/assets/{sheet-Xthrybbp.js → sheet-_VebRl9q.js} +1 -1
- package/dist/assets/{skeleton-CYpNbxbP.js → skeleton-BY2fv9gX.js} +1 -1
- package/dist/assets/{tabs-DGoH6b9z.js → tabs-BfWJYNcW.js} +1 -1
- package/dist/assets/{triangle-alert-gvuERj81.js → triangle-alert-VjOLPhJL.js} +1 -1
- package/dist/assets/{use-adapter-capabilities-BwZhnyTf.js → use-adapter-capabilities-CI0JeLXc.js} +1 -1
- package/dist/assets/{useHiddenSettings-pmha2KHR.js → useHiddenSettings-BpAre2Wp.js} +1 -1
- package/dist/index.html +45 -45
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/MarkdownBody-C7RW4IEj.js +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
var o=Object.defineProperty;var i=(e,r)=>o(e,"name",{value:r,configurable:!0});import{i as t}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as a,Li as s,S as d}from"./agent-avatar-url-
|
|
1
|
+
var o=Object.defineProperty;var i=(e,r)=>o(e,"name",{value:r,configurable:!0});import{i as t}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as a,Li as s,S as d}from"./agent-avatar-url-DtOIjE-b.js";var m=t(s(),1),l=t(a(),1);function b({className:e,type:r,...n}){return(0,l.jsx)("input",{type:r,"data-slot":"input",className:d("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-(--tp-color-box-shadow) outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-(length:--rad-3)","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}i(b,"Input");export{b as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $t=Object.defineProperty;var i=(e,t)=>$t(e,"name",{value:t,configurable:!0});import{i as je}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as zt,Ii as Wt,Li as Ut,S as k,l as Vt,t as tt}from"./agent-avatar-url-BgtuDQuJ.js";import{Z as nt}from"./mention-chips-DaQB1XXn.js";import{_ as Kt,g as Ht}from"./boxes-CmvDVxbq.js";import{C as Bt}from"./MarkdownEditor-Dkh_ud4t.js";import{a as qt,c as Gt,o as Xt,r as Yt,u as Qt}from"./checkbox-DxzcpGzB.js";import{d as Zt,g as Jt,i as en,p as tn}from"./agents-BqHpxyXa.js";import{t as nn}from"./check-Co2tYHc6.js";import{t as rn}from"./button-CiCWqyHT.js";var s=je(Ut(),1),f=je(zt(),1),on=Object.defineProperty,sn=i((e,t)=>on(e,"name",{value:t,configurable:!0}),"__name"),an=s.forwardRef(sn(i(function(t,n){return(0,f.jsx)(Vt.label,{...t,ref:n,onMouseDown:i(r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())},"onMouseDown")})},"Label2"),"Label")),ln=an,rt={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};rt.node;var un=tt(rt),ot={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};ot.node;var so=tt(ot),We=1,cn=.9,dn=.8,fn=.17,we=.1,Ce=.999,mn=.9999,pn=.99,vn=/[\\\/_+.#"@\[\(\{&]/,gn=/[\\\/_+.#"@\[\(\{&]/g,hn=/[\s-]/,st=/[\s-]/g;function Ie(e,t,n,r,o,a,u){if(a===t.length)return o===e.length?We:pn;var l=`${o},${a}`;if(u[l]!==void 0)return u[l];for(var m=r.charAt(a),c=n.indexOf(m,o),v=0,b,x,w,_;c>=0;)b=Ie(e,t,n,r,c+1,a+1,u),b>v&&(c===o?b*=We:vn.test(e.charAt(c-1))?(b*=dn,w=e.slice(o,c-1).match(gn),w&&o>0&&(b*=Math.pow(Ce,w.length))):hn.test(e.charAt(c-1))?(b*=cn,_=e.slice(o,c-1).match(st),_&&o>0&&(b*=Math.pow(Ce,_.length))):(b*=fn,o>0&&(b*=Math.pow(Ce,c-o))),e.charAt(c)!==t.charAt(a)&&(b*=mn)),(b<we&&n.charAt(c-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(c-1)!==r.charAt(a))&&(x=Ie(e,t,n,r,c+1,a+2,u),x*we>b&&(b=x*we)),b>v&&(v=b),c=n.indexOf(m,c+1);return u[l]=v,v}i(Ie,"G");function Ue(e){return e.toLowerCase().replace(st," ")}i(Ue,"D");function bn(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ie(e,t,Ue(e),Ue(t),0,0,{})}i(bn,"W");var io=!!(typeof window<"u"&&window.document&&window.document.createElement);function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return i(function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)},"handleEvent")}i(Y,"composeEventHandlers");function Ve(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}i(Ve,"setRef");function J(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Ve(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Ve(e[o],null)}}}}i(J,"composeRefs");function ne(...e){return s.useCallback(J(...e),e)}i(ne,"useComposedRefs");function yn(e,t){const n=s.createContext(t),r=i(a=>{const{children:u,...l}=a,m=s.useMemo(()=>l,Object.values(l));return(0,f.jsx)(n.Provider,{value:m,children:u})},"Provider");r.displayName=e+"Provider";function o(a){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return i(o,"useContext2"),[r,o]}i(yn,"createContext2");function En(e,t=[]){let n=[];function r(a,u){const l=s.createContext(u),m=n.length;n=[...n,u];const c=i(b=>{const{scope:x,children:w,..._}=b,C=x?.[e]?.[m]||l,N=s.useMemo(()=>_,Object.values(_));return(0,f.jsx)(C.Provider,{value:N,children:w})},"Provider");c.displayName=a+"Provider";function v(b,x){const w=x?.[e]?.[m]||l,_=s.useContext(w);if(_)return _;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${a}\``)}return i(v,"useContext2"),[c,v]}i(r,"createContext3");const o=i(()=>{const a=n.map(u=>s.createContext(u));return i(function(l){const m=l?.[e]||a;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:m}}),[l,m])},"useScope")},"createScope");return o.scopeName=e,[r,xn(o,...t)]}i(En,"createContextScope");function xn(...e){const t=e[0];if(e.length===1)return t;const n=i(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return i(function(a){const u=r.reduce((l,{useScope:m,scopeName:c})=>{const v=m(a)[`__scope${c}`];return{...l,...v}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}i(xn,"composeContextScopes");var fe=globalThis?.document?s.useLayoutEffect:()=>{},wn=s[" useId ".trim().toString()]||(()=>{}),Cn=0;function H(e){const[t,n]=s.useState(wn());return fe(()=>{e||n(r=>r??String(Cn++))},[e]),e||(t?`radix-${t}`:"")}i(H,"useId");var Sn=s[" useInsertionEffect ".trim().toString()]||fe;function Nn({prop:e,defaultProp:t,onChange:n=i(()=>{},"onChange"),caller:r}){const[o,a,u]=Rn({defaultProp:t,onChange:n}),l=e!==void 0,m=l?e:o;{const c=s.useRef(e!==void 0);s.useEffect(()=>{const v=c.current;c.current=l},[l,r])}return[m,s.useCallback(c=>{if(l){const v=_n(c)?c(e):c;v!==e&&u.current?.(v)}else a(c)},[l,e,a,u])]}i(Nn,"useControllableState");function Rn({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),a=s.useRef(t);return Sn(()=>{a.current=t},[t]),s.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}i(Rn,"useUncontrolledState");function _n(e){return typeof e=="function"}i(_n,"isFunction");var it=je(Wt(),1);function at(e){const t=Dn(e),n=s.forwardRef((r,o)=>{const{children:a,...u}=r,l=s.Children.toArray(a),m=l.find(In);if(m){const c=m.props.children,v=l.map(b=>b===m?s.Children.count(c)>1?s.Children.only(null):s.isValidElement(c)?c.props.children:null:b);return(0,f.jsx)(t,{...u,ref:o,children:s.isValidElement(c)?s.cloneElement(c,void 0,v):null})}return(0,f.jsx)(t,{...u,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}i(at,"createSlot");function Dn(e){const t=s.forwardRef((n,r)=>{const{children:o,...a}=n;if(s.isValidElement(o)){const u=Tn(o),l=On(a,o.props);return o.type!==s.Fragment&&(l.ref=r?J(r,u):u),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}i(Dn,"createSlotClone");var Pn=Symbol("radix.slottable");function In(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pn}i(In,"isSlottable");function On(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...u)=>{const l=a(...u);return o(...u),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}i(On,"mergeProps");function Tn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}i(Tn,"getElementRef$1");var I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=at(`Primitive.${t}`),r=s.forwardRef((o,a)=>{const{asChild:u,...l}=o,m=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(m,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function An(e,t){e&&it.flushSync(()=>e.dispatchEvent(t))}i(An,"dispatchDiscreteCustomEvent");function me(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}i(me,"useCallbackRef");function kn(e,t=globalThis?.document){const n=me(e);s.useEffect(()=>{const r=i(o=>{o.key==="Escape"&&n(o)},"handleKeyDown");return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}i(kn,"useEscapeKeydown");var Mn="DismissableLayer",Oe="dismissableLayer.update",jn="dismissableLayer.pointerDownOutside",Fn="dismissableLayer.focusOutside",Ke,lt=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ut=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:u,onDismiss:l,...m}=e,c=s.useContext(lt),[v,b]=s.useState(null),x=v?.ownerDocument??globalThis?.document,[,w]=s.useState({}),_=ne(t,E=>b(E)),C=Array.from(c.layers),[N]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),O=C.indexOf(N),T=v?C.indexOf(v):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,D=T>=O,$=zn(E=>{const V=E.target,F=[...c.branches].some(U=>U.contains(V));!D||F||(o?.(E),u?.(E),E.defaultPrevented||l?.())},x),R=Wn(E=>{const V=E.target;[...c.branches].some(F=>F.contains(V))||(a?.(E),u?.(E),E.defaultPrevented||l?.())},x);return kn(E=>{T===c.layers.size-1&&(r?.(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},x),s.useEffect(()=>{if(v)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(v)),c.layers.add(v),He(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Ke)}},[v,x,n,c]),s.useEffect(()=>()=>{v&&(c.layers.delete(v),c.layersWithOutsidePointerEventsDisabled.delete(v),He())},[v,c]),s.useEffect(()=>{const E=i(()=>w({}),"handleUpdate");return document.addEventListener(Oe,E),()=>document.removeEventListener(Oe,E)},[]),(0,f.jsx)(I.div,{...m,ref:_,style:{pointerEvents:A?D?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,$.onPointerDownCapture)})});ut.displayName=Mn;var Ln="DismissableLayerBranch",$n=s.forwardRef((e,t)=>{const n=s.useContext(lt),r=s.useRef(null),o=ne(t,r);return s.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),(0,f.jsx)(I.div,{...e,ref:o})});$n.displayName=Ln;function zn(e,t=globalThis?.document){const n=me(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=i(l=>{if(l.target&&!r.current){let m=i(function(){ct(jn,n,c,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);r.current=!1},"handlePointerDown"),u=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:i(()=>r.current=!0,"onPointerDownCapture")}}i(zn,"usePointerDownOutside");function Wn(e,t=globalThis?.document){const n=me(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i(a=>{a.target&&!r.current&&ct(Fn,n,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:i(()=>r.current=!0,"onFocusCapture"),onBlurCapture:i(()=>r.current=!1,"onBlurCapture")}}i(Wn,"useFocusOutside");function He(){const e=new CustomEvent(Oe);document.dispatchEvent(e)}i(He,"dispatchUpdate");function ct(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?An(o,a):o.dispatchEvent(a)}i(ct,"handleAndDispatchCustomEvent");var Se="focusScope.autoFocusOnMount",Ne="focusScope.autoFocusOnUnmount",Be={bubbles:!1,cancelable:!0},Un="FocusScope",dt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[l,m]=s.useState(null),c=me(o),v=me(a),b=s.useRef(null),x=ne(t,C=>m(C)),w=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let C=i(function(A){if(w.paused||!l)return;const D=A.target;l.contains(D)?b.current=D:X(b.current,{select:!0})},"handleFocusIn2"),N=i(function(A){if(w.paused||!l)return;const D=A.relatedTarget;D!==null&&(l.contains(D)||X(b.current,{select:!0}))},"handleFocusOut2"),O=i(function(A){if(document.activeElement===document.body)for(const D of A)D.removedNodes.length>0&&X(l)},"handleMutations2");document.addEventListener("focusin",C),document.addEventListener("focusout",N);const T=new MutationObserver(O);return l&&T.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",N),T.disconnect()}}},[r,l,w.paused]),s.useEffect(()=>{if(l){Ge.add(w);const C=document.activeElement;if(!l.contains(C)){const N=new CustomEvent(Se,Be);l.addEventListener(Se,c),l.dispatchEvent(N),N.defaultPrevented||(Vn(Gn(ft(l)),{select:!0}),document.activeElement===C&&X(l))}return()=>{l.removeEventListener(Se,c),setTimeout(()=>{const N=new CustomEvent(Ne,Be);l.addEventListener(Ne,v),l.dispatchEvent(N),N.defaultPrevented||X(C??document.body,{select:!0}),l.removeEventListener(Ne,v),Ge.remove(w)},0)}}},[l,c,v,w]);const _=s.useCallback(C=>{if(!n&&!r||w.paused)return;const N=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,O=document.activeElement;if(N&&O){const T=C.currentTarget,[A,D]=Kn(T);A&&D?!C.shiftKey&&O===D?(C.preventDefault(),n&&X(A,{select:!0})):C.shiftKey&&O===A&&(C.preventDefault(),n&&X(D,{select:!0})):O===T&&C.preventDefault()}},[n,r,w.paused]);return(0,f.jsx)(I.div,{tabIndex:-1,...u,ref:x,onKeyDown:_})});dt.displayName=Un;function Vn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(X(r,{select:t}),document.activeElement!==n)return}i(Vn,"focusFirst");function Kn(e){const t=ft(e);return[qe(t,e),qe(t.reverse(),e)]}i(Kn,"getTabbableEdges");function ft(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}i(ft,"getTabbableCandidates");function qe(e,t){for(const n of e)if(!Hn(n,{upTo:t}))return n}i(qe,"findVisible");function Hn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}i(Hn,"isHidden");function Bn(e){return e instanceof HTMLInputElement&&"select"in e}i(Bn,"isSelectableInput");function X(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bn(e)&&t&&e.select()}}i(X,"focus");var Ge=qn();function qn(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xe(e,t),e.unshift(t)},remove(t){e=Xe(e,t),e[0]?.resume()}}}i(qn,"createFocusScopesStack");function Xe(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}i(Xe,"arrayRemove");function Gn(e){return e.filter(t=>t.tagName!=="A")}i(Gn,"removeLinks");var Xn="Portal",mt=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=s.useState(!1);fe(()=>a(!0),[]);const u=n||o&&globalThis?.document?.body;return u?it.createPortal((0,f.jsx)(I.div,{...r,ref:t}),u):null});mt.displayName=Xn;function Yn(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}i(Yn,"useStateMachine");var ye=i(e=>{const{present:t,children:n}=e,r=Qn(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),a=ne(r.ref,Zn(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:a}):null},"Presence");ye.displayName="Presence";function Qn(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),a=s.useRef("none"),[u,l]=Yn(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const m=ve(r.current);a.current=u==="mounted"?m:"none"},[u]),fe(()=>{const m=r.current,c=o.current;if(c!==e){const v=a.current,b=ve(m);e?l("MOUNT"):b==="none"||m?.display==="none"?l("UNMOUNT"):l(c&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fe(()=>{if(t){let m;const c=t.ownerDocument.defaultView??window,v=i(x=>{const w=ve(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",m=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},"handleAnimationEnd"),b=i(x=>{x.target===t&&(a.current=ve(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{c.clearTimeout(m),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(m=>{r.current=m?getComputedStyle(m):null,n(m)},[])}}i(Qn,"usePresence");function ve(e){return e?.animationName||"none"}i(ve,"getAnimationName");function Zn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}i(Zn,"getElementRef");var Re=0;function Jn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ye()),document.body.insertAdjacentElement("beforeend",e[1]??Ye()),Re++,()=>{Re===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Re--}},[])}i(Jn,"useFocusGuards");function Ye(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}i(Ye,"createFocusGuard");var Ee="Dialog",[pt,ao]=En(Ee),[er,W]=pt(Ee),vt=i(e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,l=s.useRef(null),m=s.useRef(null),[c,v]=Nn({prop:r,defaultProp:o??!1,onChange:a,caller:Ee});return(0,f.jsx)(er,{scope:t,triggerRef:l,contentRef:m,contentId:H(),titleId:H(),descriptionId:H(),open:c,onOpenChange:v,onOpenToggle:s.useCallback(()=>v(b=>!b),[v]),modal:u,children:n})},"Dialog");vt.displayName=Ee;var gt="DialogTrigger",tr=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(gt,n),a=ne(t,o.triggerRef);return(0,f.jsx)(I.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$e(o.open),...r,ref:a,onClick:Y(e.onClick,o.onOpenToggle)})});tr.displayName=gt;var Fe="DialogPortal",[nr,ht]=pt(Fe,{forceMount:void 0}),bt=i(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=W(Fe,t);return(0,f.jsx)(nr,{scope:t,forceMount:n,children:s.Children.map(r,u=>(0,f.jsx)(ye,{present:n||a.open,children:(0,f.jsx)(mt,{asChild:!0,container:o,children:u})}))})},"DialogPortal");bt.displayName=Fe;var he="DialogOverlay",yt=s.forwardRef((e,t)=>{const n=ht(he,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=W(he,e.__scopeDialog);return a.modal?(0,f.jsx)(ye,{present:r||a.open,children:(0,f.jsx)(or,{...o,ref:t})}):null});yt.displayName=he;var rr=at("DialogOverlay.RemoveScroll"),or=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(he,n);return(0,f.jsx)(Kt,{as:rr,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(I.div,{"data-state":$e(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ee="DialogContent",Et=s.forwardRef((e,t)=>{const n=ht(ee,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=W(ee,e.__scopeDialog);return(0,f.jsx)(ye,{present:r||a.open,children:a.modal?(0,f.jsx)(sr,{...o,ref:t}):(0,f.jsx)(ir,{...o,ref:t})})});Et.displayName=ee;var sr=s.forwardRef((e,t)=>{const n=W(ee,e.__scopeDialog),r=s.useRef(null),o=ne(t,n.contentRef,r);return s.useEffect(()=>{const a=r.current;if(a)return Ht(a)},[]),(0,f.jsx)(xt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Y(e.onPointerDownOutside,a=>{const u=a.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0;(u.button===2||l)&&a.preventDefault()}),onFocusOutside:Y(e.onFocusOutside,a=>a.preventDefault())})}),ir=s.forwardRef((e,t)=>{const n=W(ee,e.__scopeDialog),r=s.useRef(!1),o=s.useRef(!1);return(0,f.jsx)(xt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i(a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},"onCloseAutoFocus"),onInteractOutside:i(a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;n.triggerRef.current?.contains(u)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()},"onInteractOutside")})}),xt=s.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,l=W(ee,n),m=s.useRef(null),c=ne(t,m);return Jn(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(dt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,f.jsx)(ut,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":$e(l.open),...u,ref:c,onDismiss:i(()=>l.onOpenChange(!1),"onDismiss")})}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(cr,{titleId:l.titleId}),(0,f.jsx)(fr,{contentRef:m,descriptionId:l.descriptionId})]})]})}),Le="DialogTitle",ar=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(Le,n);return(0,f.jsx)(I.h2,{id:o.titleId,...r,ref:t})});ar.displayName=Le;var wt="DialogDescription",lr=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(wt,n);return(0,f.jsx)(I.p,{id:o.descriptionId,...r,ref:t})});lr.displayName=wt;var Ct="DialogClose",ur=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(Ct,n);return(0,f.jsx)(I.button,{type:"button",...r,ref:t,onClick:Y(e.onClick,()=>o.onOpenChange(!1))})});ur.displayName=Ct;function $e(e){return e?"open":"closed"}i($e,"getState");var St="DialogTitleWarning",[lo,Nt]=yn(St,{contentName:ee,titleName:Le,docsSlug:"dialog"}),cr=i(({titleId:e})=>{const t=Nt(St),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1
|
+
var $t=Object.defineProperty;var i=(e,t)=>$t(e,"name",{value:t,configurable:!0});import{i as je}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as zt,Ii as Wt,Li as Ut,S as k,l as Vt,t as tt}from"./agent-avatar-url-DtOIjE-b.js";import{Z as nt}from"./mention-chips-OAQdMAP9.js";import{_ as Kt,g as Ht}from"./boxes-CeCVqNtb.js";import{C as Bt}from"./MarkdownEditor-DCE_KC27.js";import{a as qt,c as Gt,o as Xt,r as Yt,u as Qt}from"./checkbox-CIcktoHJ.js";import{d as Zt,g as Jt,i as en,p as tn}from"./agents-DA5qW1fs.js";import{t as nn}from"./check-xeGJ2HPN.js";import{t as rn}from"./button-yf2m1_gs.js";var s=je(Ut(),1),f=je(zt(),1),on=Object.defineProperty,sn=i((e,t)=>on(e,"name",{value:t,configurable:!0}),"__name"),an=s.forwardRef(sn(i(function(t,n){return(0,f.jsx)(Vt.label,{...t,ref:n,onMouseDown:i(r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())},"onMouseDown")})},"Label2"),"Label")),ln=an,rt={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};rt.node;var un=tt(rt),ot={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};ot.node;var so=tt(ot),We=1,cn=.9,dn=.8,fn=.17,we=.1,Ce=.999,mn=.9999,pn=.99,vn=/[\\\/_+.#"@\[\(\{&]/,gn=/[\\\/_+.#"@\[\(\{&]/g,hn=/[\s-]/,st=/[\s-]/g;function Ie(e,t,n,r,o,a,u){if(a===t.length)return o===e.length?We:pn;var l=`${o},${a}`;if(u[l]!==void 0)return u[l];for(var m=r.charAt(a),c=n.indexOf(m,o),v=0,b,x,w,_;c>=0;)b=Ie(e,t,n,r,c+1,a+1,u),b>v&&(c===o?b*=We:vn.test(e.charAt(c-1))?(b*=dn,w=e.slice(o,c-1).match(gn),w&&o>0&&(b*=Math.pow(Ce,w.length))):hn.test(e.charAt(c-1))?(b*=cn,_=e.slice(o,c-1).match(st),_&&o>0&&(b*=Math.pow(Ce,_.length))):(b*=fn,o>0&&(b*=Math.pow(Ce,c-o))),e.charAt(c)!==t.charAt(a)&&(b*=mn)),(b<we&&n.charAt(c-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(c-1)!==r.charAt(a))&&(x=Ie(e,t,n,r,c+1,a+2,u),x*we>b&&(b=x*we)),b>v&&(v=b),c=n.indexOf(m,c+1);return u[l]=v,v}i(Ie,"G");function Ue(e){return e.toLowerCase().replace(st," ")}i(Ue,"D");function bn(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ie(e,t,Ue(e),Ue(t),0,0,{})}i(bn,"W");var io=!!(typeof window<"u"&&window.document&&window.document.createElement);function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return i(function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)},"handleEvent")}i(Y,"composeEventHandlers");function Ve(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}i(Ve,"setRef");function J(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Ve(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Ve(e[o],null)}}}}i(J,"composeRefs");function ne(...e){return s.useCallback(J(...e),e)}i(ne,"useComposedRefs");function yn(e,t){const n=s.createContext(t),r=i(a=>{const{children:u,...l}=a,m=s.useMemo(()=>l,Object.values(l));return(0,f.jsx)(n.Provider,{value:m,children:u})},"Provider");r.displayName=e+"Provider";function o(a){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return i(o,"useContext2"),[r,o]}i(yn,"createContext2");function En(e,t=[]){let n=[];function r(a,u){const l=s.createContext(u),m=n.length;n=[...n,u];const c=i(b=>{const{scope:x,children:w,..._}=b,C=x?.[e]?.[m]||l,N=s.useMemo(()=>_,Object.values(_));return(0,f.jsx)(C.Provider,{value:N,children:w})},"Provider");c.displayName=a+"Provider";function v(b,x){const w=x?.[e]?.[m]||l,_=s.useContext(w);if(_)return _;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${a}\``)}return i(v,"useContext2"),[c,v]}i(r,"createContext3");const o=i(()=>{const a=n.map(u=>s.createContext(u));return i(function(l){const m=l?.[e]||a;return s.useMemo(()=>({[`__scope${e}`]:{...l,[e]:m}}),[l,m])},"useScope")},"createScope");return o.scopeName=e,[r,xn(o,...t)]}i(En,"createContextScope");function xn(...e){const t=e[0];if(e.length===1)return t;const n=i(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return i(function(a){const u=r.reduce((l,{useScope:m,scopeName:c})=>{const v=m(a)[`__scope${c}`];return{...l,...v}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}i(xn,"composeContextScopes");var fe=globalThis?.document?s.useLayoutEffect:()=>{},wn=s[" useId ".trim().toString()]||(()=>{}),Cn=0;function H(e){const[t,n]=s.useState(wn());return fe(()=>{e||n(r=>r??String(Cn++))},[e]),e||(t?`radix-${t}`:"")}i(H,"useId");var Sn=s[" useInsertionEffect ".trim().toString()]||fe;function Nn({prop:e,defaultProp:t,onChange:n=i(()=>{},"onChange"),caller:r}){const[o,a,u]=Rn({defaultProp:t,onChange:n}),l=e!==void 0,m=l?e:o;{const c=s.useRef(e!==void 0);s.useEffect(()=>{const v=c.current;c.current=l},[l,r])}return[m,s.useCallback(c=>{if(l){const v=_n(c)?c(e):c;v!==e&&u.current?.(v)}else a(c)},[l,e,a,u])]}i(Nn,"useControllableState");function Rn({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),a=s.useRef(t);return Sn(()=>{a.current=t},[t]),s.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}i(Rn,"useUncontrolledState");function _n(e){return typeof e=="function"}i(_n,"isFunction");var it=je(Wt(),1);function at(e){const t=Dn(e),n=s.forwardRef((r,o)=>{const{children:a,...u}=r,l=s.Children.toArray(a),m=l.find(In);if(m){const c=m.props.children,v=l.map(b=>b===m?s.Children.count(c)>1?s.Children.only(null):s.isValidElement(c)?c.props.children:null:b);return(0,f.jsx)(t,{...u,ref:o,children:s.isValidElement(c)?s.cloneElement(c,void 0,v):null})}return(0,f.jsx)(t,{...u,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}i(at,"createSlot");function Dn(e){const t=s.forwardRef((n,r)=>{const{children:o,...a}=n;if(s.isValidElement(o)){const u=Tn(o),l=On(a,o.props);return o.type!==s.Fragment&&(l.ref=r?J(r,u):u),s.cloneElement(o,l)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}i(Dn,"createSlotClone");var Pn=Symbol("radix.slottable");function In(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pn}i(In,"isSlottable");function On(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...u)=>{const l=a(...u);return o(...u),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}i(On,"mergeProps");function Tn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}i(Tn,"getElementRef$1");var I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=at(`Primitive.${t}`),r=s.forwardRef((o,a)=>{const{asChild:u,...l}=o,m=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(m,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function An(e,t){e&&it.flushSync(()=>e.dispatchEvent(t))}i(An,"dispatchDiscreteCustomEvent");function me(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}i(me,"useCallbackRef");function kn(e,t=globalThis?.document){const n=me(e);s.useEffect(()=>{const r=i(o=>{o.key==="Escape"&&n(o)},"handleKeyDown");return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}i(kn,"useEscapeKeydown");var Mn="DismissableLayer",Oe="dismissableLayer.update",jn="dismissableLayer.pointerDownOutside",Fn="dismissableLayer.focusOutside",Ke,lt=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ut=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:u,onDismiss:l,...m}=e,c=s.useContext(lt),[v,b]=s.useState(null),x=v?.ownerDocument??globalThis?.document,[,w]=s.useState({}),_=ne(t,E=>b(E)),C=Array.from(c.layers),[N]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),O=C.indexOf(N),T=v?C.indexOf(v):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,D=T>=O,$=zn(E=>{const V=E.target,F=[...c.branches].some(U=>U.contains(V));!D||F||(o?.(E),u?.(E),E.defaultPrevented||l?.())},x),R=Wn(E=>{const V=E.target;[...c.branches].some(F=>F.contains(V))||(a?.(E),u?.(E),E.defaultPrevented||l?.())},x);return kn(E=>{T===c.layers.size-1&&(r?.(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},x),s.useEffect(()=>{if(v)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(v)),c.layers.add(v),He(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Ke)}},[v,x,n,c]),s.useEffect(()=>()=>{v&&(c.layers.delete(v),c.layersWithOutsidePointerEventsDisabled.delete(v),He())},[v,c]),s.useEffect(()=>{const E=i(()=>w({}),"handleUpdate");return document.addEventListener(Oe,E),()=>document.removeEventListener(Oe,E)},[]),(0,f.jsx)(I.div,{...m,ref:_,style:{pointerEvents:A?D?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,$.onPointerDownCapture)})});ut.displayName=Mn;var Ln="DismissableLayerBranch",$n=s.forwardRef((e,t)=>{const n=s.useContext(lt),r=s.useRef(null),o=ne(t,r);return s.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),(0,f.jsx)(I.div,{...e,ref:o})});$n.displayName=Ln;function zn(e,t=globalThis?.document){const n=me(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=i(l=>{if(l.target&&!r.current){let m=i(function(){ct(jn,n,c,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);r.current=!1},"handlePointerDown"),u=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:i(()=>r.current=!0,"onPointerDownCapture")}}i(zn,"usePointerDownOutside");function Wn(e,t=globalThis?.document){const n=me(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i(a=>{a.target&&!r.current&&ct(Fn,n,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:i(()=>r.current=!0,"onFocusCapture"),onBlurCapture:i(()=>r.current=!1,"onBlurCapture")}}i(Wn,"useFocusOutside");function He(){const e=new CustomEvent(Oe);document.dispatchEvent(e)}i(He,"dispatchUpdate");function ct(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?An(o,a):o.dispatchEvent(a)}i(ct,"handleAndDispatchCustomEvent");var Se="focusScope.autoFocusOnMount",Ne="focusScope.autoFocusOnUnmount",Be={bubbles:!1,cancelable:!0},Un="FocusScope",dt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[l,m]=s.useState(null),c=me(o),v=me(a),b=s.useRef(null),x=ne(t,C=>m(C)),w=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let C=i(function(A){if(w.paused||!l)return;const D=A.target;l.contains(D)?b.current=D:X(b.current,{select:!0})},"handleFocusIn2"),N=i(function(A){if(w.paused||!l)return;const D=A.relatedTarget;D!==null&&(l.contains(D)||X(b.current,{select:!0}))},"handleFocusOut2"),O=i(function(A){if(document.activeElement===document.body)for(const D of A)D.removedNodes.length>0&&X(l)},"handleMutations2");document.addEventListener("focusin",C),document.addEventListener("focusout",N);const T=new MutationObserver(O);return l&&T.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",N),T.disconnect()}}},[r,l,w.paused]),s.useEffect(()=>{if(l){Ge.add(w);const C=document.activeElement;if(!l.contains(C)){const N=new CustomEvent(Se,Be);l.addEventListener(Se,c),l.dispatchEvent(N),N.defaultPrevented||(Vn(Gn(ft(l)),{select:!0}),document.activeElement===C&&X(l))}return()=>{l.removeEventListener(Se,c),setTimeout(()=>{const N=new CustomEvent(Ne,Be);l.addEventListener(Ne,v),l.dispatchEvent(N),N.defaultPrevented||X(C??document.body,{select:!0}),l.removeEventListener(Ne,v),Ge.remove(w)},0)}}},[l,c,v,w]);const _=s.useCallback(C=>{if(!n&&!r||w.paused)return;const N=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,O=document.activeElement;if(N&&O){const T=C.currentTarget,[A,D]=Kn(T);A&&D?!C.shiftKey&&O===D?(C.preventDefault(),n&&X(A,{select:!0})):C.shiftKey&&O===A&&(C.preventDefault(),n&&X(D,{select:!0})):O===T&&C.preventDefault()}},[n,r,w.paused]);return(0,f.jsx)(I.div,{tabIndex:-1,...u,ref:x,onKeyDown:_})});dt.displayName=Un;function Vn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(X(r,{select:t}),document.activeElement!==n)return}i(Vn,"focusFirst");function Kn(e){const t=ft(e);return[qe(t,e),qe(t.reverse(),e)]}i(Kn,"getTabbableEdges");function ft(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}i(ft,"getTabbableCandidates");function qe(e,t){for(const n of e)if(!Hn(n,{upTo:t}))return n}i(qe,"findVisible");function Hn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}i(Hn,"isHidden");function Bn(e){return e instanceof HTMLInputElement&&"select"in e}i(Bn,"isSelectableInput");function X(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bn(e)&&t&&e.select()}}i(X,"focus");var Ge=qn();function qn(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xe(e,t),e.unshift(t)},remove(t){e=Xe(e,t),e[0]?.resume()}}}i(qn,"createFocusScopesStack");function Xe(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}i(Xe,"arrayRemove");function Gn(e){return e.filter(t=>t.tagName!=="A")}i(Gn,"removeLinks");var Xn="Portal",mt=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=s.useState(!1);fe(()=>a(!0),[]);const u=n||o&&globalThis?.document?.body;return u?it.createPortal((0,f.jsx)(I.div,{...r,ref:t}),u):null});mt.displayName=Xn;function Yn(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}i(Yn,"useStateMachine");var ye=i(e=>{const{present:t,children:n}=e,r=Qn(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),a=ne(r.ref,Zn(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:a}):null},"Presence");ye.displayName="Presence";function Qn(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),a=s.useRef("none"),[u,l]=Yn(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const m=ve(r.current);a.current=u==="mounted"?m:"none"},[u]),fe(()=>{const m=r.current,c=o.current;if(c!==e){const v=a.current,b=ve(m);e?l("MOUNT"):b==="none"||m?.display==="none"?l("UNMOUNT"):l(c&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fe(()=>{if(t){let m;const c=t.ownerDocument.defaultView??window,v=i(x=>{const w=ve(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",m=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},"handleAnimationEnd"),b=i(x=>{x.target===t&&(a.current=ve(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{c.clearTimeout(m),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(m=>{r.current=m?getComputedStyle(m):null,n(m)},[])}}i(Qn,"usePresence");function ve(e){return e?.animationName||"none"}i(ve,"getAnimationName");function Zn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}i(Zn,"getElementRef");var Re=0;function Jn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ye()),document.body.insertAdjacentElement("beforeend",e[1]??Ye()),Re++,()=>{Re===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Re--}},[])}i(Jn,"useFocusGuards");function Ye(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}i(Ye,"createFocusGuard");var Ee="Dialog",[pt,ao]=En(Ee),[er,W]=pt(Ee),vt=i(e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,l=s.useRef(null),m=s.useRef(null),[c,v]=Nn({prop:r,defaultProp:o??!1,onChange:a,caller:Ee});return(0,f.jsx)(er,{scope:t,triggerRef:l,contentRef:m,contentId:H(),titleId:H(),descriptionId:H(),open:c,onOpenChange:v,onOpenToggle:s.useCallback(()=>v(b=>!b),[v]),modal:u,children:n})},"Dialog");vt.displayName=Ee;var gt="DialogTrigger",tr=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(gt,n),a=ne(t,o.triggerRef);return(0,f.jsx)(I.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$e(o.open),...r,ref:a,onClick:Y(e.onClick,o.onOpenToggle)})});tr.displayName=gt;var Fe="DialogPortal",[nr,ht]=pt(Fe,{forceMount:void 0}),bt=i(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=W(Fe,t);return(0,f.jsx)(nr,{scope:t,forceMount:n,children:s.Children.map(r,u=>(0,f.jsx)(ye,{present:n||a.open,children:(0,f.jsx)(mt,{asChild:!0,container:o,children:u})}))})},"DialogPortal");bt.displayName=Fe;var he="DialogOverlay",yt=s.forwardRef((e,t)=>{const n=ht(he,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=W(he,e.__scopeDialog);return a.modal?(0,f.jsx)(ye,{present:r||a.open,children:(0,f.jsx)(or,{...o,ref:t})}):null});yt.displayName=he;var rr=at("DialogOverlay.RemoveScroll"),or=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(he,n);return(0,f.jsx)(Kt,{as:rr,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(I.div,{"data-state":$e(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ee="DialogContent",Et=s.forwardRef((e,t)=>{const n=ht(ee,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=W(ee,e.__scopeDialog);return(0,f.jsx)(ye,{present:r||a.open,children:a.modal?(0,f.jsx)(sr,{...o,ref:t}):(0,f.jsx)(ir,{...o,ref:t})})});Et.displayName=ee;var sr=s.forwardRef((e,t)=>{const n=W(ee,e.__scopeDialog),r=s.useRef(null),o=ne(t,n.contentRef,r);return s.useEffect(()=>{const a=r.current;if(a)return Ht(a)},[]),(0,f.jsx)(xt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Y(e.onPointerDownOutside,a=>{const u=a.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0;(u.button===2||l)&&a.preventDefault()}),onFocusOutside:Y(e.onFocusOutside,a=>a.preventDefault())})}),ir=s.forwardRef((e,t)=>{const n=W(ee,e.__scopeDialog),r=s.useRef(!1),o=s.useRef(!1);return(0,f.jsx)(xt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i(a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},"onCloseAutoFocus"),onInteractOutside:i(a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;n.triggerRef.current?.contains(u)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()},"onInteractOutside")})}),xt=s.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,l=W(ee,n),m=s.useRef(null),c=ne(t,m);return Jn(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(dt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,f.jsx)(ut,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":$e(l.open),...u,ref:c,onDismiss:i(()=>l.onOpenChange(!1),"onDismiss")})}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(cr,{titleId:l.titleId}),(0,f.jsx)(fr,{contentRef:m,descriptionId:l.descriptionId})]})]})}),Le="DialogTitle",ar=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(Le,n);return(0,f.jsx)(I.h2,{id:o.titleId,...r,ref:t})});ar.displayName=Le;var wt="DialogDescription",lr=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(wt,n);return(0,f.jsx)(I.p,{id:o.descriptionId,...r,ref:t})});lr.displayName=wt;var Ct="DialogClose",ur=s.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=W(Ct,n);return(0,f.jsx)(I.button,{type:"button",...r,ref:t,onClick:Y(e.onClick,()=>o.onOpenChange(!1))})});ur.displayName=Ct;function $e(e){return e?"open":"closed"}i($e,"getState");var St="DialogTitleWarning",[lo,Nt]=yn(St,{contentName:ee,titleName:Le,docsSlug:"dialog"}),cr=i(({titleId:e})=>{const t=Nt(St),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./agent-avatar-url-
|
|
1
|
+
import{t as e}from"./agent-avatar-url-DtOIjE-b.js";var a={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};a.node;var o=e(a);export{o as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var pn=Object.defineProperty;var r=(e,n)=>pn(e,"name",{value:n,configurable:!0});import{n as mn}from"./rolldown-runtime-ZpX3ckPj.js";import{Nt as gn,kt as kn,t as xn}from"./agent-avatar-url-BgtuDQuJ.js";var Je="project://",et="agent://",dn="user://",tt="skill://",bn="routine://",yn=/^[0-9a-f]{6}$/i,wn=/^[0-9a-f]{3}$/i,In=/^#[0-9a-f]{6}$/i,Sn=/^#[0-9a-f]{3}$/i,Cn=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,vn=/^[a-z0-9-]+$/i,En=/^[a-z0-9][a-z0-9-]*$/i;function St(e){if(!e)return null;const n=e.trim();if(!n)return null;if(In.test(n))return n.toLowerCase();if(yn.test(n))return`#${n.toLowerCase()}`;if(Sn.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(wn.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(St,"normalizeHexColor");function sl(e,n){const t=e.trim(),i=St(n??null);return i?`${Je}${t}?c=${encodeURIComponent(i.slice(1))}`:`${Je}${t}`}r(sl,"buildProjectMentionHref");function Tn(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:St(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(Tn,"parseProjectMentionHref");function cl(e,n){const t=e.trim(),i=vt(n??null);return i?`${et}${t}?i=${encodeURIComponent(i)}`:`${et}${t}`}r(cl,"buildAgentMentionHref");function Ct(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:vt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(Ct,"parseAgentMentionHref");function hl(e){return`${dn}${e.trim()}`}r(hl,"buildUserMentionHref");function zn(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(zn,"parseUserMentionHref");function fl(e,n){const t=e.trim(),i=Et(n??null);return i?`${tt}${t}?s=${encodeURIComponent(i)}`:`${tt}${t}`}r(fl,"buildSkillMentionHref");function _n(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:Et(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(_n,"parseSkillMentionHref");function pl(e){return`${bn}${e.trim()}`}r(pl,"buildRoutineMentionHref");function An(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(An,"parseRoutineMentionHref");function ml(e){if(!e)return[];const n=new Set,t=new RegExp(Cn);let i;for(;(i=t.exec(e))!==null;){const u=Ct(i[1]);u&&n.add(u.agentId)}return[...n]}r(ml,"extractAgentMentionIds");function vt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!vn.test(n)?null:n}r(vt,"normalizeAgentIcon");function Et(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!En.test(n)?null:n}r(Et,"normalizeSkillSlug");var Ln=/^[A-Z][A-Z0-9]*-\d+$/;function Tt(e){const n=e.trim().toUpperCase();return Ln.test(n)?n:null}r(Tt,"normalizeIssueIdentifier");function gl(e){return`/issues/${Tt(e)??e.trim()}`}r(gl,"buildIssueReferenceHref");function Fn(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const l=Tt(i[u+1]??"");if(l)return{identifier:l}}return null}r(Fn,"parseIssueReferenceHref");var zt={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};zt.node;var kl=xn(zt);function K(e,n,t,i){const u=e.length;let l=0,a;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<i.length;)a=i.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}r(K,"splice");function Y(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(Y,"push");var ee=ce(/[A-Za-z]/),J=ce(/[\dA-Za-z]/),Rn=ce(/[#-'*+\--9=?A-Z^-~]/);function Pe(e){return e!==null&&(e<32||e===127)}r(Pe,"asciiControl");var Oe=ce(/\d/),Mn=ce(/[\dA-Fa-f]/),Bn=ce(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Dn=ce(new RegExp("\\p{P}|\\p{S}","u")),Pn=ce(/\s/);function ce(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(ce,"regexCheck");function de(e){if(e===null||U(e)||Pn(e))return 1;if(Dn(e))return 2}r(de,"classifyCharacter");function _e(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const l=e[u].resolveAll;l&&!i.includes(l)&&(n=l(n,t),i.push(l))}return n}r(_e,"resolveAll");function xl(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(l,a){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let s=o;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[o][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[o][1].end)},p={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[o][1].start)},f=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",p,a]],k=a.parser.constructs.insideSpan.null;k&&K(f,f.length,0,_e(k,l.slice(s+1,o),a)),K(f,f.length,0,[["exit",p,a],["enter",l[o][1],a],["exit",l[o][1],a],["exit",c,a]]),K(l,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}r(i,"resolveAllStrikethrough");function u(l,a,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(l.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=de(s);if(h===126)return p>1?o(h):(l.consume(h),p++,k);if(p<2&&!n)return o(h);const C=l.exit("strikethroughSequenceTemporary"),v=de(h);return C._open=!v||v===2&&!!w,C._close=!w||w===2&&!!v,a(h)}}r(u,"tokenizeStrikethrough")}r(xl,"gfmStrikethrough");var On=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_t.peek=Nn;function dl(){return{canContainEols:["delete"],enter:{strikethrough:$n},exit:{strikethrough:Hn}}}r(dl,"gfmStrikethroughFromMarkdown");function bl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:On}],handlers:{delete:_t}}}r(bl,"gfmStrikethroughToMarkdown");function $n(e){this.enter({type:"delete",children:[]},e)}r($n,"enterStrikethrough");function Hn(e){this.exit(e)}r(Hn,"exitStrikethrough");function _t(e,n,t,i){const u=t.createTracker(i),l=t.enter("strikethrough");let a=u.move("~~");return a+=t.containerPhrasing(e,{...u.current(),before:a,after:"~"}),a+=u.move("~~"),l(),a}r(_t,"handleDelete");function Nn(){return"~"}r(Nn,"peekDelete");function yl(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(yl,"ccount");function wl(){}r(wl,"ok$1");function Il(){}r(Il,"unreachable");var nt=document.createElement("i");function Ne(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(Ne,"decodeNamedCharacterReference");function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rt(e.position):"start"in e||"end"in e?rt(e):"line"in e||"column"in e?$e(e):""}r(Se,"stringifyPosition");function $e(e){return it(e&&e.line)+":"+it(e&&e.column)}r($e,"point$1");function rt(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}r(rt,"position");function it(e){return e&&typeof e=="number"?e:1}r(it,"index");var X=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.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=Se(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;var jn=/[$_\p{ID_Start}]/u,qn=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Vn=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Un=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,At={};function Sl(e){return e?jn.test(String.fromCodePoint(e)):!1}r(Sl,"start");function Cl(e,n){const t=(n||At).jsx?Vn:qn;return e?t.test(String.fromCodePoint(e)):!1}r(Cl,"cont");function vl(e,n){return((n||At).jsx?Qn:Un).test(e)}r(vl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&l++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function Wn(e,n,t,i){const u=t.enter("blockquote"),l=t.createTracker(i);l.move("> "),l.shift(2);const a=t.indentLines(t.containerFlow(e,l.current()),Gn);return u(),a}r(Wn,"blockquote");function Gn(e,n,t){return">"+(t?"":" ")+e}r(Gn,"map$1");function Kn(e,n){return ut(e,n.inConstruct,!0)&&!ut(e,n.notInConstruct,!1)}r(Kn,"patternInScope");function ut(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(ut,"listInScope");function lt(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
|
|
1
|
+
var pn=Object.defineProperty;var r=(e,n)=>pn(e,"name",{value:n,configurable:!0});import{n as mn}from"./rolldown-runtime-ZpX3ckPj.js";import{Nt as gn,kt as kn,t as xn}from"./agent-avatar-url-DtOIjE-b.js";var Je="project://",et="agent://",dn="user://",tt="skill://",bn="routine://",yn=/^[0-9a-f]{6}$/i,wn=/^[0-9a-f]{3}$/i,In=/^#[0-9a-f]{6}$/i,Sn=/^#[0-9a-f]{3}$/i,Cn=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,vn=/^[a-z0-9-]+$/i,En=/^[a-z0-9][a-z0-9-]*$/i;function St(e){if(!e)return null;const n=e.trim();if(!n)return null;if(In.test(n))return n.toLowerCase();if(yn.test(n))return`#${n.toLowerCase()}`;if(Sn.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(wn.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(St,"normalizeHexColor");function sl(e,n){const t=e.trim(),i=St(n??null);return i?`${Je}${t}?c=${encodeURIComponent(i.slice(1))}`:`${Je}${t}`}r(sl,"buildProjectMentionHref");function Tn(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:St(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(Tn,"parseProjectMentionHref");function cl(e,n){const t=e.trim(),i=vt(n??null);return i?`${et}${t}?i=${encodeURIComponent(i)}`:`${et}${t}`}r(cl,"buildAgentMentionHref");function Ct(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:vt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(Ct,"parseAgentMentionHref");function hl(e){return`${dn}${e.trim()}`}r(hl,"buildUserMentionHref");function zn(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(zn,"parseUserMentionHref");function fl(e,n){const t=e.trim(),i=Et(n??null);return i?`${tt}${t}?s=${encodeURIComponent(i)}`:`${tt}${t}`}r(fl,"buildSkillMentionHref");function _n(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:Et(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(_n,"parseSkillMentionHref");function pl(e){return`${bn}${e.trim()}`}r(pl,"buildRoutineMentionHref");function An(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(An,"parseRoutineMentionHref");function ml(e){if(!e)return[];const n=new Set,t=new RegExp(Cn);let i;for(;(i=t.exec(e))!==null;){const u=Ct(i[1]);u&&n.add(u.agentId)}return[...n]}r(ml,"extractAgentMentionIds");function vt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!vn.test(n)?null:n}r(vt,"normalizeAgentIcon");function Et(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!En.test(n)?null:n}r(Et,"normalizeSkillSlug");var Ln=/^[A-Z][A-Z0-9]*-\d+$/;function Tt(e){const n=e.trim().toUpperCase();return Ln.test(n)?n:null}r(Tt,"normalizeIssueIdentifier");function gl(e){return`/issues/${Tt(e)??e.trim()}`}r(gl,"buildIssueReferenceHref");function Fn(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const l=Tt(i[u+1]??"");if(l)return{identifier:l}}return null}r(Fn,"parseIssueReferenceHref");var zt={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};zt.node;var kl=xn(zt);function K(e,n,t,i){const u=e.length;let l=0,a;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<i.length;)a=i.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}r(K,"splice");function Y(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(Y,"push");var ee=ce(/[A-Za-z]/),J=ce(/[\dA-Za-z]/),Rn=ce(/[#-'*+\--9=?A-Z^-~]/);function Pe(e){return e!==null&&(e<32||e===127)}r(Pe,"asciiControl");var Oe=ce(/\d/),Mn=ce(/[\dA-Fa-f]/),Bn=ce(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Dn=ce(new RegExp("\\p{P}|\\p{S}","u")),Pn=ce(/\s/);function ce(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(ce,"regexCheck");function de(e){if(e===null||U(e)||Pn(e))return 1;if(Dn(e))return 2}r(de,"classifyCharacter");function _e(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const l=e[u].resolveAll;l&&!i.includes(l)&&(n=l(n,t),i.push(l))}return n}r(_e,"resolveAll");function xl(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(l,a){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let s=o;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[o][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[o][1].end)},p={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[o][1].start)},f=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",p,a]],k=a.parser.constructs.insideSpan.null;k&&K(f,f.length,0,_e(k,l.slice(s+1,o),a)),K(f,f.length,0,[["exit",p,a],["enter",l[o][1],a],["exit",l[o][1],a],["exit",c,a]]),K(l,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}r(i,"resolveAllStrikethrough");function u(l,a,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(l.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=de(s);if(h===126)return p>1?o(h):(l.consume(h),p++,k);if(p<2&&!n)return o(h);const C=l.exit("strikethroughSequenceTemporary"),v=de(h);return C._open=!v||v===2&&!!w,C._close=!w||w===2&&!!v,a(h)}}r(u,"tokenizeStrikethrough")}r(xl,"gfmStrikethrough");var On=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_t.peek=Nn;function dl(){return{canContainEols:["delete"],enter:{strikethrough:$n},exit:{strikethrough:Hn}}}r(dl,"gfmStrikethroughFromMarkdown");function bl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:On}],handlers:{delete:_t}}}r(bl,"gfmStrikethroughToMarkdown");function $n(e){this.enter({type:"delete",children:[]},e)}r($n,"enterStrikethrough");function Hn(e){this.exit(e)}r(Hn,"exitStrikethrough");function _t(e,n,t,i){const u=t.createTracker(i),l=t.enter("strikethrough");let a=u.move("~~");return a+=t.containerPhrasing(e,{...u.current(),before:a,after:"~"}),a+=u.move("~~"),l(),a}r(_t,"handleDelete");function Nn(){return"~"}r(Nn,"peekDelete");function yl(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(yl,"ccount");function wl(){}r(wl,"ok$1");function Il(){}r(Il,"unreachable");var nt=document.createElement("i");function Ne(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(Ne,"decodeNamedCharacterReference");function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rt(e.position):"start"in e||"end"in e?rt(e):"line"in e||"column"in e?$e(e):""}r(Se,"stringifyPosition");function $e(e){return it(e&&e.line)+":"+it(e&&e.column)}r($e,"point$1");function rt(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}r(rt,"position");function it(e){return e&&typeof e=="number"?e:1}r(it,"index");var X=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.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=Se(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;var jn=/[$_\p{ID_Start}]/u,qn=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Vn=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Un=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,At={};function Sl(e){return e?jn.test(String.fromCodePoint(e)):!1}r(Sl,"start");function Cl(e,n){const t=(n||At).jsx?Vn:qn;return e?t.test(String.fromCodePoint(e)):!1}r(Cl,"cont");function vl(e,n){return((n||At).jsx?Qn:Un).test(e)}r(vl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&l++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function Wn(e,n,t,i){const u=t.enter("blockquote"),l=t.createTracker(i);l.move("> "),l.shift(2);const a=t.indentLines(t.containerFlow(e,l.current()),Gn);return u(),a}r(Wn,"blockquote");function Gn(e,n,t){return">"+(t?"":" ")+e}r(Gn,"map$1");function Kn(e,n){return ut(e,n.inConstruct,!0)&&!ut(e,n.notInConstruct,!1)}r(Kn,"patternInScope");function ut(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(ut,"listInScope");function lt(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
|
|
2
2
|
`&&Kn(t.stack,t.unsafe[u]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
3
3
|
`}r(lt,"hardBreak");function Xn(e,n){const t=String(e);let i=t.indexOf(n),u=i,l=0,a=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===u?++l>a&&(a=l):l=1,u=i+n.length,i=t.indexOf(n,u);return a}r(Xn,"longestStreak");function Yn(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}r(Yn,"formatCodeAsIndented");function Zn(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}r(Zn,"checkFence");function Jn(e,n,t,i){const u=Zn(t),l=e.value||"",a=u==="`"?"GraveAccent":"Tilde";if(Yn(e,t)){const f=t.enter("codeIndented"),k=t.indentLines(l,er);return f(),k}const o=t.createTracker(i),s=u.repeat(Math.max(Xn(l,u)+1,3)),c=t.enter("codeFenced");let p=o.move(s);if(e.lang){const f=t.enter(`codeFencedLang${a}`);p+=o.move(t.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${a}`);p+=o.move(" "),p+=o.move(t.safe(e.meta,{before:p,after:`
|
|
4
4
|
`,encode:["`"],...o.current()})),f()}return p+=o.move(`
|
|
@@ -14,4 +14,4 @@ var pn=Object.defineProperty;var r=(e,n)=>pn(e,"name",{value:n,configurable:!0})
|
|
|
14
14
|
`;break;case-2:a=n?" ":" ";break;case-1:if(!n&&u)continue;a=" ";break;default:a=String.fromCharCode(l)}u=l===-2,i.push(a)}return i.join("")}r(vu,"serializeChunks");function Eu(e){const n={constructs:Or([pu,...(e||{}).extensions||[]]),content:t(Nr),defined:[],document:t(qr),flow:t(au),lazy:{},string:t(cu),text:t(hu)};return n;function t(i){return u;function u(l){return Su(n,i,l)}}}r(Eu,"parse");function Tu(e){for(;!Gt(e););return e}r(Tu,"postprocess");var gt=/[\0\t\n\r]/g;function zu(){let e=1,n="",t=!0,i;return u;function u(l,a,o){const s=[];let c,p,f,k,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,c=gt.exec(l),k=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(k),!c){n=l.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(l.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(zu,"preprocess");var en={}.hasOwnProperty;function El(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),_u(t)(Tu(Eu(t).document().write(zu()(e,n,!0))))}r(El,"fromMarkdown");function _u(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ye),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Ge),blockQuote:l(pe),characterEscape:P,characterReference:P,codeFenced:l(We),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(We,a),codeText:l(rn,a),codeTextData:P,data:P,codeFlowValue:P,definition:l(un),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(ln),hardBreakEscape:l(Ke),hardBreakTrailing:l(Ke),htmlFlow:l(Xe,a),htmlFlowData:P,htmlText:l(Xe,a),htmlTextData:P,image:l(an),label:a,link:l(Ye),listItem:l(on),listItemValue:k,listOrdered:l(Ze,f),listUnordered:l(Ze),paragraph:l(sn),reference:g,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Ge),strong:l(cn),thematicBreak:l(fn)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:fe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:V,characterReference:be,codeFenced:s(v),codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:x,codeIndented:s(b),codeText:s(B),codeTextData:x,data:x,definition:s(),definitionDestinationString:R,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(O),htmlFlowData:x,htmlText:s(j),htmlTextData:x,image:s(q),label:te,labelText:Z,lineEnding:E,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:le,resource:ne,setextHeading:s($),setextHeadingLineSequence:M,setextHeadingText:y,strong:s(),thematicBreak:s()}};tn(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(d){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:a,resume:p,data:t},H=[];let N=-1;for(;++N<d.length;)(d[N][1].type==="listOrdered"||d[N][1].type==="listUnordered")&&(d[N][0]==="enter"?H.push(N):N=u(d,H.pop(),N));for(N=-1;++N<d.length;){const oe=n[d[N][0]];en.call(oe,d[N][1].type)&&oe[d[N][1].type].call(Object.assign({sliceSerialize:d[N][2].sliceSerialize},A),d[N][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||kt).call(A,void 0,oe[0])}for(I.position={start:se(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:se(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<n.transforms.length;)I=n.transforms[N](I)||I;return I}function u(d,I,A){let H=I-1,N=-1,oe=!1,me,ie,ye,we;for(;++H<=A;){const G=d[H];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":G[0]==="enter"?N++:N--,we=void 0;break;case"lineEndingBlank":G[0]==="enter"&&(me&&!we&&!N&&!ye&&(ye=H),we=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:we=void 0}if(!N&&G[0]==="enter"&&G[1].type==="listItemPrefix"||N===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(me){let ge=H;for(ie=void 0;ge--;){const ue=d[ge];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(d[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ge}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}ye&&(!ie||ye<ie)&&(me._spread=!0),me.end=Object.assign({},ie?d[ie][1].start:G[1].end),d.splice(ie||H,0,["exit",me,G[2]]),H++,A++}if(G[1].type==="listItemPrefix"){const ge={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};me=ge,d.splice(H,0,["enter",ge,G[2]]),H++,A++,ye=void 0,we=!0}}}return d[I][1]._spread=oe,A}function l(d,I){return A;function A(H){o.call(this,d(H),H),I&&I.call(this,H)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(d,I,A){this.stack[this.stack.length-1].children.push(d),this.stack.push(d),this.tokenStack.push([I,A||void 0]),d.position={start:se(I.start),end:void 0}}function s(d){return I;function I(A){d&&d.call(this,A),c.call(this,A)}}function c(d,I){const A=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==d.type&&(I?I.call(this,d,H[0]):(H[1]||kt).call(this,d,H[0]));else throw new Error("Cannot close `"+d.type+"` ("+Se({start:d.start,end:d.end})+"): it’s not open");A.position.end=se(d.end)}function p(){return Ve(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(d){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(d),10),this.data.expectingFirstListItemValue=void 0}}function h(){const d=this.resume(),I=this.stack[this.stack.length-1];I.lang=d}function w(){const d=this.resume(),I=this.stack[this.stack.length-1];I.meta=d}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/(\r?\n|\r)$/g,"")}function _(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase()}function S(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function R(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function F(d){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(d).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function M(d){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(d).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function P(d){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=hn(),A.position={start:se(d.start),end:void 0},I.push(A)),this.stack.push(A)}function x(d){const I=this.stack.pop();I.value+=this.sliceSerialize(d),I.position.end=se(d.end)}function E(d){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(d.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,d),x.call(this,d))}function T(){this.data.atHardBreak=!0}function O(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function j(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function B(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function Q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function Z(d){const I=this.sliceSerialize(d),A=this.stack[this.stack.length-2];A.label=Dr(I),A.identifier=xe(I).toLowerCase()}function te(){const d=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=d.children:A.alt=I}function m(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function le(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase(),this.data.referenceType="full"}function he(d){this.data.characterReferenceType=d.type}function V(d){const I=this.sliceSerialize(d),A=this.data.characterReferenceType;let H;A?(H=Vt(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Ne(I);const N=this.stack[this.stack.length-1];N.value+=H}function be(d){const I=this.stack.pop();I.position.end=se(d.end)}function re(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(d)}function fe(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(d)}function pe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function rn(){return{type:"inlineCode",value:""}}function un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ln(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function Ke(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function an(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function Ze(d){return{type:"list",ordered:d.type==="listOrdered",start:null,spread:d._spread,children:[]}}function on(d){return{type:"listItem",spread:d._spread,checked:null,children:[]}}function sn(){return{type:"paragraph",children:[]}}function cn(){return{type:"strong",children:[]}}function hn(){return{type:"text",value:""}}function fn(){return{type:"thematicBreak"}}}r(_u,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function tn(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?tn(e,i):Au(e,i)}}r(tn,"configure");function Au(e,n){let t;for(t in n)if(en.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(Au,"extension");function kt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Se({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is still open")}r(kt,"defaultOnError");var Lu={name:"tasklistCheck",tokenize:Fu};function Tl(){return{text:{91:Lu}}}r(Tl,"gfmTaskListItem");function Fu(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):t(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:Ru},n,t)(s):t(s)}}r(Fu,"tokenizeTasklistCheck");function Ru(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(Ru,"spaceThenNonSpace");function zl(){return{exit:{taskListCheckValueChecked:xt,taskListCheckValueUnchecked:xt,paragraph:Mu}}}r(zl,"gfmTaskListItemFromMarkdown");function _l(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bu}}}r(_l,"gfmTaskListItemToMarkdown");function xt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(xt,"exitCheck");function Mu(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const u=n.children;let l=-1,a;for(;++l<u.length;){const o=u[l];if(o.type==="paragraph"){a=o;break}}a===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(Mu,"exitParagraphWithTaskListItem");function Bu(e,n,t,i){const u=e.children[0],l=typeof e.checked=="boolean"&&u&&u.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);l&&o.move(a);let s=qt.listItem(e,n,t,{...i,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+a}r(c,"check")}r(Bu,"listItemWithTaskListItem");function Du(e){return e.length}r(Du,"defaultStringLength");function Pu(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Du,l=[],a=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const C=[],v=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Ou(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);v[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}C.push(_)}a[p]=C,o[p]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)l[f]=dt(i[f]);else{const C=dt(i);for(;++f<c;)l[f]=C}f=-1;const k=[],h=[];for(;++f<c;){const C=l[f];let v="",b="";C===99?(v=":",b=":"):C===108?v=":":C===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-v.length-b.length);const S=v+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=v.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}a.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<a.length;){const C=a[p],v=o[p];f=-1;const b=[];for(;++f<c;){const _=C[f]||"";let S="",R="";if(t.alignDelimiters!==!1){const F=s[f]-(v[f]||0),y=l[f];y===114?S=" ".repeat(F):y===99?F%2?(S=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),R=S):R=" ".repeat(F)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(R),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
|
|
15
15
|
`)}r(Pu,"markdownTable");function Ou(e){return e==null?"":String(e)}r(Ou,"serialize");function dt(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}r(dt,"toAlignment");function Al(){return{enter:{table:$u,tableData:bt,tableHeader:bt,tableRow:Nu},exit:{codeText:ju,table:Hu,tableData:Me,tableHeader:Me,tableRow:Me}}}r(Al,"gfmTableFromMarkdown");function $u(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}r($u,"enterTable");function Hu(e){this.exit(e),this.data.inTable=void 0}r(Hu,"exitTable");function Nu(e){this.enter({type:"tableRow",children:[]},e)}r(Nu,"enterRow");function Me(e){this.exit(e)}r(Me,"exit");function bt(e){this.enter({type:"tableCell",children:[]},e)}r(bt,"enterCell");function ju(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,qu));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}r(ju,"exitCodeText");function qu(e,n){return n==="|"?n:e}r(qu,"replace");function Ll(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,u=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
16
16
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:a,tableCell:s,tableRow:o}};function a(h,w,C,v){return c(p(h,C,v),h.align)}function o(h,w,C,v){const b=c([f(h,C,v)]);return b.slice(0,b.indexOf(`
|
|
17
|
-
`))}function s(h,w,C,v){const b=C.enter("tableCell"),_=C.enter("phrasing"),S=C.containerPhrasing(h,{...v,before:l,after:l});return _(),b(),S}function c(h,w){return Pu(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<v.length;)_[b]=f(v[b],w,C);return S(),_}function f(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<v.length;)_[b]=s(v[b],h,w,C);return S(),_}function k(h,w,C){let v=qt.inlineCode(h,w,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}r(Ll,"gfmTableToMarkdown");var Vu=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){Uu(this,e,n,t)}consume(e){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function Uu(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(Uu,"addImplementation");function Qu(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(Qu,"gfmTableAlign");function Fl(){return{flow:{null:{name:"table",tokenize:Wu,resolveAll:Gu}}}}r(Fl,"gfmTable");function Wu(e,n,t){const i=this;let u=0,l=0,a;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,O=T==="tableHead"||T==="tableRow"?y:s;return O===y&&i.parser.lazy[i.now().line]?t(x):O(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),c(x)}function c(x){return x===124||(a=!0,l+=1),p(x)}function p(x){return x===null?t(x):z(x)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):L(x)?D(e,p,"whitespace")(x):(l+=1,a&&(a=!1,u+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||U(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?k:f)}function k(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(x):(e.enter("tableDelimiterRow"),a=!1,L(x)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):w(x))}function w(x){return x===45||x===58?v(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):F(x)}function C(x){return L(x)?D(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||z(x)?R(x):F(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):F(x)}function _(x){return x===45?(e.consume(x),_):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return L(x)?D(e,R,"whitespace")(x):R(x)}function R(x){return x===124?w(x):x===null||z(x)?!a||u!==l?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function y(x){return e.enter("tableRow"),M(x)}function M(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),M):x===null||z(x)?(e.exit("tableRow"),n(x)):L(x)?D(e,M,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||U(x)?(e.exit("data"),M(x)):(e.consume(x),x===92?P:$)}function P(x){return x===92||x===124?(e.consume(x),$):$(x)}}r(Wu,"tokenizeTable");function Gu(e,n){let t=-1,i=!0,u=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,c,p,f;const k=new Vu;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(yt(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],a=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f),l=[0,0,0,0]),a[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f)),l=a,a=[l[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,l[1]!==0?(a[0]=a[1],f=Ee(k,n,l,u,t,f)):a[1]!==0&&(f=Ee(k,n,a,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(a[3]=t)}for(s!==0&&yt(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Qu(n.events,t))}return e}r(Gu,"resolveTable");function Ee(e,n,t,i,u,l){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},ke(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=ke(n.events,t[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=ke(n.events,t[2]),p=ke(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,C=t[3]-t[2]-1;e.add(w,C,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(l.end=Object.assign({},ke(n.events,u)),e.add(u,0,[["exit",l,n]]),l=void 0),l}r(Ee,"flushCell");function yt(e,n,t,i,u){const l=[],a=ke(n.events,t);u&&(u.end=Object.assign({},a),l.push(["exit",u,n])),i.end=Object.assign({},a),l.push(["exit",i,n]),e.add(t+1,0,l)}r(yt,"flushTableEnd");function ke(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(ke,"getPoint");var Ku={r:24,g:24,b:27},Xu={r:255,g:255,b:255};function nn(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(nn,"hexToRgb");function Be(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(Be,"relativeLuminanceChannel");function De(e,n,t){return .2126*Be(e)+.7152*Be(n)+.0722*Be(t)}r(De,"relativeLuminance");function wt(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(wt,"contrastRatio");function Yu(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Yu,"isDarkMode");function Zu(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Zu,"composite");var Ju="#f8fafc",el="#111827",It=Ju,tl=el;function nl(e,n=.22){const t=nn(e);if(!t)return It;const i=Zu(t,Yu()?Ku:Xu,n),u=De(i.r,i.g,i.b),l=De(248,250,252),a=De(17,24,39);return wt(u,l)>=wt(u,a)?It:tl}r(nl,"pickTextColorForPillBg");function Rl(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=Fn(e);if(n)return{kind:"issue",identifier:n.identifier};const t=Ct(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=Tn(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=zn(e);if(u)return{kind:"user",userId:u.userId};const l=_n(e);if(l)return{kind:"skill",skillId:l.skillId,slug:l.slug};const a=An(e);return a?{kind:"routine",routineId:a.routineId}:null}r(Rl,"parseMentionChipHref");function rl(e){const n={};if(e.kind==="project"&&e.color){const t=ul(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=gn(e.appearance,e.agentId);n["--paperclip-mention-avatar-image"]=`url("${kn(t,16,2)}")`}return Object.keys(n).length>0?n:void 0}r(rl,"mentionChipInlineStyle");function Ml(e,n){il(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=rl(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Ml,"applyMentionChipDecoration");function il(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask"),e.style.removeProperty("--paperclip-mention-avatar-image")}r(il,"clearMentionChipDecoration");function ul(e){const n=nn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:nl(e)}:{}}r(ul,"projectMentionColors");export{cl as $,Sl as A,_e as B,qe as C,D,Kn as E,Il as F,z as G,ee as H,yl as I,Dn as J,U as K,dl as L,Se as M,Ne as N,Cl as O,wl as P,gl as Q,bl as R,sr as S,Yn as T,J as U,de as V,Pe as W,K as X,Pn as Y,kl as Z,Or as _,el as a,Ct as at,mr as b,Fl as c,zl as d,sl as et,_l as f,xe as g,Le as h,Rl as i,ml as it,X as j,vl as k,Al as l,El as m,il as n,fl as nt,Ju as o,Tl as p,L as q,rl as r,hl as rt,nl as s,Ml as t,pl as tt,Ll as u,Dr as v,ve as w,hr as x,qt as y,xl as z};
|
|
17
|
+
`))}function s(h,w,C,v){const b=C.enter("tableCell"),_=C.enter("phrasing"),S=C.containerPhrasing(h,{...v,before:l,after:l});return _(),b(),S}function c(h,w){return Pu(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<v.length;)_[b]=f(v[b],w,C);return S(),_}function f(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<v.length;)_[b]=s(v[b],h,w,C);return S(),_}function k(h,w,C){let v=qt.inlineCode(h,w,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}r(Ll,"gfmTableToMarkdown");var Vu=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){Uu(this,e,n,t)}consume(e){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function Uu(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(Uu,"addImplementation");function Qu(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(Qu,"gfmTableAlign");function Fl(){return{flow:{null:{name:"table",tokenize:Wu,resolveAll:Gu}}}}r(Fl,"gfmTable");function Wu(e,n,t){const i=this;let u=0,l=0,a;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,O=T==="tableHead"||T==="tableRow"?y:s;return O===y&&i.parser.lazy[i.now().line]?t(x):O(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),c(x)}function c(x){return x===124||(a=!0,l+=1),p(x)}function p(x){return x===null?t(x):z(x)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):L(x)?D(e,p,"whitespace")(x):(l+=1,a&&(a=!1,u+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||U(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?k:f)}function k(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(x):(e.enter("tableDelimiterRow"),a=!1,L(x)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):w(x))}function w(x){return x===45||x===58?v(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):F(x)}function C(x){return L(x)?D(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||z(x)?R(x):F(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):F(x)}function _(x){return x===45?(e.consume(x),_):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return L(x)?D(e,R,"whitespace")(x):R(x)}function R(x){return x===124?w(x):x===null||z(x)?!a||u!==l?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function y(x){return e.enter("tableRow"),M(x)}function M(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),M):x===null||z(x)?(e.exit("tableRow"),n(x)):L(x)?D(e,M,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||U(x)?(e.exit("data"),M(x)):(e.consume(x),x===92?P:$)}function P(x){return x===92||x===124?(e.consume(x),$):$(x)}}r(Wu,"tokenizeTable");function Gu(e,n){let t=-1,i=!0,u=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,c,p,f;const k=new Vu;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(yt(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],a=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f),l=[0,0,0,0]),a[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f)),l=a,a=[l[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,l[1]!==0?(a[0]=a[1],f=Ee(k,n,l,u,t,f)):a[1]!==0&&(f=Ee(k,n,a,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(a[3]=t)}for(s!==0&&yt(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Qu(n.events,t))}return e}r(Gu,"resolveTable");function Ee(e,n,t,i,u,l){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},ke(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=ke(n.events,t[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=ke(n.events,t[2]),p=ke(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,C=t[3]-t[2]-1;e.add(w,C,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(l.end=Object.assign({},ke(n.events,u)),e.add(u,0,[["exit",l,n]]),l=void 0),l}r(Ee,"flushCell");function yt(e,n,t,i,u){const l=[],a=ke(n.events,t);u&&(u.end=Object.assign({},a),l.push(["exit",u,n])),i.end=Object.assign({},a),l.push(["exit",i,n]),e.add(t+1,0,l)}r(yt,"flushTableEnd");function ke(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(ke,"getPoint");var Ku={r:24,g:24,b:27},Xu={r:255,g:255,b:255};function nn(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(nn,"hexToRgb");function Be(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(Be,"relativeLuminanceChannel");function De(e,n,t){return .2126*Be(e)+.7152*Be(n)+.0722*Be(t)}r(De,"relativeLuminance");function wt(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(wt,"contrastRatio");function Yu(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Yu,"isDarkMode");function Zu(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Zu,"composite");var Ju="#f8fafc",el="#111827",It=Ju,tl=el;function nl(e,n=.22){const t=nn(e);if(!t)return It;const i=Zu(t,Yu()?Ku:Xu,n),u=De(i.r,i.g,i.b),l=De(248,250,252),a=De(17,24,39);return wt(u,l)>=wt(u,a)?It:tl}r(nl,"pickTextColorForPillBg");function Rl(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=Fn(e);if(n)return{kind:"issue",identifier:n.identifier};const t=Ct(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=Tn(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=zn(e);if(u)return{kind:"user",userId:u.userId};const l=_n(e);if(l)return{kind:"skill",skillId:l.skillId,slug:l.slug};const a=An(e);return a?{kind:"routine",routineId:a.routineId}:null}r(Rl,"parseMentionChipHref");function rl(e){const n={};if(e.kind==="project"&&e.color){const t=ul(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=gn(e.appearance,e.agentId);n["--paperclip-mention-avatar-image"]=`url("${kn(t,16,2)}")`}return Object.keys(n).length>0?n:void 0}r(rl,"mentionChipInlineStyle");function Ml(e,n){il(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=rl(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Ml,"applyMentionChipDecoration");function il(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask"),e.style.removeProperty("--paperclip-mention-avatar-image")}r(il,"clearMentionChipDecoration");function ul(e){const n=nn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:nl(e)}:{}}r(ul,"projectMentionColors");export{Tt as $,Sl as A,_e as B,qe as C,D,Kn as E,Il as F,z as G,ee as H,yl as I,Dn as J,U as K,dl as L,Se as M,Ne as N,Cl as O,wl as P,gl as Q,bl as R,sr as S,Yn as T,J as U,de as V,Pe as W,K as X,Pn as Y,kl as Z,Or as _,el as a,ml as at,mr as b,Fl as c,zl as d,cl as et,_l as f,xe as g,Le as h,Rl as i,hl as it,X as j,vl as k,Al as l,El as m,il as n,pl as nt,Ju as o,Ct as ot,Tl as p,L as q,rl as r,fl as rt,nl as s,Ml as t,sl as tt,Ll as u,Dr as v,ve as w,hr as x,qt as y,xl as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t}from"./agent-avatar-url-
|
|
1
|
+
import{t}from"./agent-avatar-url-DtOIjE-b.js";var a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;var o=t(a);export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./agent-avatar-url-
|
|
1
|
+
import{t as e}from"./agent-avatar-url-DtOIjE-b.js";var a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;var o=e(a);export{o as t};
|